Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing endpoint and model properties #866

Merged
merged 2 commits into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions src/management/__generated/managers/clients-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ export class ClientsManager extends BaseAPI {
* Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude
* may also be specified. Note:
* <ul>
* <li>
* <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code> can be retrieved with
* <li><code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code> can be retrieved with
* any scope.
* </li>
* <li>
* <code>callbacks</code>, <code>oidc_backchannel_logout</code>, <code>allowed_origins</code>,
* <li><code>callbacks</code>, <code>oidc_backchannel_logout</code>, <code>allowed_origins</code>,
* <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>,
* <code>callback_url_template</code>, <code>jwt_configuration</code>,
* <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>,
Expand All @@ -65,8 +63,7 @@ export class ClientsManager extends BaseAPI {
* <code>organization_require_behavior</code> properties can only be retrieved with the <code>read:clients</code> or
* <code>read:client_keys</code> scope.
* </li>
* <li>
* <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>,
* <li><code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>,
* <code>client_secret</code>, and <code>signing_key</code> properties can only be retrieved with the
* <code>read:client_keys</code> scope.
* </li>
Expand Down Expand Up @@ -130,12 +127,10 @@ export class ClientsManager extends BaseAPI {
/**
* Retrieve client details. A list of fields to include or exclude may also be specified. Note:
* <ul>
* <li>
* <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code> can be retrieved with
* <li><code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code> can be retrieved with
* the any of the scopes.
* </li>
* <li>
* <code>callbacks</code>, <code>oidc_backchannel_logout</code>, <code>allowed_origins</code>,
* <li><code>callbacks</code>, <code>oidc_backchannel_logout</code>, <code>allowed_origins</code>,
* <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>,
* <code>callback_url_template</code>, <code>jwt_configuration</code>,
* <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>,
Expand All @@ -151,8 +146,7 @@ export class ClientsManager extends BaseAPI {
* <code>organization_require_behavior</code> properties can only be retrieved with the <code>read:clients</code> or
* <code>read:client_keys</code> scope.
* </li>
* <li>
* <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>,
* <li><code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>,
* <code>client_secret</code>, and <code>signing_key</code> properties can only be retrieved with the
* <code>read:client_keys</code> scope.
* </li>
Expand Down
34 changes: 17 additions & 17 deletions src/management/__generated/managers/grants-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import type {
GetGrants200Response,
GetGrants200ResponseOneOf,
UserGrant,
DeleteRequest,
DeleteGrantsByIdRequest,
DeleteGrantsByUserIdRequest,
GetGrantsRequest,
} from '../models/index.js';

Expand All @@ -17,26 +17,20 @@ const { BaseAPI } = runtime;
export class GrantsManager extends BaseAPI {
/**
* Delete a grant associated with your account.
* Delete a grant by user_id
* Delete a grant by id
*
* @throws {RequiredError}
*/
async deleteByUserId(
requestParameters: DeleteRequest = {},
async delete(
requestParameters: DeleteGrantsByIdRequest,
initOverrides?: InitOverride
): Promise<ApiResponse<void>> {
const queryParameters = runtime.applyQueryParams(requestParameters, [
{
key: 'user_id',
config: {},
},
]);
runtime.validateRequiredRequestParams(requestParameters, ['id']);

const response = await this.request(
{
path: `/grants/`,
path: `/grants/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
method: 'DELETE',
query: queryParameters,
},
initOverrides
);
Expand All @@ -46,20 +40,26 @@ export class GrantsManager extends BaseAPI {

/**
* Delete a grant associated with your account.
* Delete a grant by id
* Delete a grant by user_id
*
* @throws {RequiredError}
*/
async delete(
requestParameters: DeleteGrantsByIdRequest,
async deleteByUserId(
requestParameters: DeleteGrantsByUserIdRequest = {},
initOverrides?: InitOverride
): Promise<ApiResponse<void>> {
runtime.validateRequiredRequestParams(requestParameters, ['id']);
const queryParameters = runtime.applyQueryParams(requestParameters, [
{
key: 'user_id',
config: {},
},
]);

const response = await this.request(
{
path: `/grants/{id}`.replace('{id}', encodeURIComponent(String(requestParameters.id))),
path: `/grants/`,
method: 'DELETE',
query: queryParameters,
},
initOverrides
);
Expand Down
28 changes: 27 additions & 1 deletion src/management/__generated/managers/users-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import type {
GetOrganizationMemberRoles200ResponseOneOf,
GetOrganizationMemberRoles200ResponseOneOfInner,
GetUsers200ResponseOneOf,
DeleteAuthenticationMethodsRequest,
DeleteAuthenticationMethodsByAuthenticationMethodIdRequest,
DeleteAuthenticatorsRequest,
DeleteMultifactorByProviderRequest,
Expand Down Expand Up @@ -68,6 +69,31 @@ const { BaseAPI } = runtime;
*
*/
export class UsersManager extends BaseAPI {
/**
* Deletes all authentication methods for the given user
*
* @throws {RequiredError}
*/
async deleteAuthenticationMethods(
requestParameters: DeleteAuthenticationMethodsRequest,
initOverrides?: InitOverride
): Promise<ApiResponse<void>> {
runtime.validateRequiredRequestParams(requestParameters, ['id']);

const response = await this.request(
{
path: `/users/{id}/authentication-methods`.replace(
'{id}',
encodeURIComponent(String(requestParameters.id))
),
method: 'DELETE',
},
initOverrides
);

return runtime.VoidApiResponse.fromResponse(response);
}

/**
* Deletes an authentication method by ID
*
Expand Down Expand Up @@ -817,7 +843,7 @@ export class UsersManager extends BaseAPI {
}

/**
* Creates an authentication method for a given user.
* Creates an authentication method for a given user. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed.
*
* @throws {RequiredError}
*/
Expand Down
Loading