Skip to content

Commit

Permalink
Merge branch 'beta' into feat/grants_deleteUserById
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Sep 11, 2023
2 parents 91048fc + 279b981 commit 9f783af
Show file tree
Hide file tree
Showing 6 changed files with 317 additions and 333 deletions.
34 changes: 25 additions & 9 deletions src/management/__generated/managers/clients-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import type {
Client,
ClientCreate,
ClientUpdate,
GetClients200Response,
GetCredentials200ResponseInner,
PatchCredentialsByCredentialIdRequest,
PostCredentialsRequest,
GetClients200ResponseOneOf,
DeleteClientsByIdRequest,
DeleteCredentialsByCredentialIdRequest,
GetClientsRequest,
Expand Down Expand Up @@ -79,10 +81,12 @@ 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 @@ -99,7 +103,8 @@ export class ClientsManager extends BaseAPI {
* 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>, <code>client_authentication_methods</code> and <code>signing_key</code> properties can only be retrieved with the
* <code>read:client_keys</code> or <code>read:client_credentials</code> scope.
* </li>
Expand All @@ -109,10 +114,18 @@ export class ClientsManager extends BaseAPI {
*
* @throws {RequiredError}
*/
async getAll(
requestParameters: GetClientsRequest & { include_totals: true },
initOverrides?: InitOverride
): Promise<ApiResponse<GetClients200ResponseOneOf>>;
async getAll(
requestParameters?: GetClientsRequest,
initOverrides?: InitOverride
): Promise<ApiResponse<Array<Client>>>;
async getAll(
requestParameters: GetClientsRequest = {},
initOverrides?: InitOverride
): Promise<ApiResponse<Array<Client>>> {
): Promise<ApiResponse<GetClients200Response>> {
const queryParameters = runtime.applyQueryParams(requestParameters, [
{
key: 'fields',
Expand Down Expand Up @@ -163,10 +176,12 @@ 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 @@ -183,7 +198,8 @@ export class ClientsManager extends BaseAPI {
* 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>, <code>client_authentication_methods</code> and <code>signing_key</code> properties can only be retrieved with the
* <code>read:client_keys</code> or <code>read:client_credentials</code> scope.
* </li>
Expand Down Expand Up @@ -228,7 +244,7 @@ export class ClientsManager extends BaseAPI {
/**
* Get the list of client credentials that are associated to the client.
*
* Important: To enable credentials to be used for Private Key JWT authentication method, set the <code>client_authentication_methods</code> property on the client.
* Important: To enable credentials to be used
* Get client credentials
*
* @throws {RequiredError}
Expand Down Expand Up @@ -391,7 +407,7 @@ export class ClientsManager extends BaseAPI {
}

/**
* Create a client credential associated to the client. The credential will be created but not yet enabled for use with Private Key JWT authentication method. To enable the credential, set the <code>client_authentication_methods</code> property on the client.
* Create a client credential associated to the client. The credential will be created but not yet enabled
* Create a client credential
*
* @throws {RequiredError}
Expand Down
3 changes: 0 additions & 3 deletions src/management/__generated/managers/connections-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,7 @@ export class ConnectionsManager extends BaseAPI {

/**
* Creates a new connection according to the JSON object received in <code>body</code>.
* The samples on the right show all available attributes. Mandatory attributes are <code>name</code> and <code>strategy</code>.
* Valid Strategy names are: <code>ad</code>, <code>adfs</code>, <code>amazon</code>, <code>apple</code>, <code>dropbox</code>, <code>bitbucket</code>, <code>aol</code>, <code>auth0-oidc</code>, <code>auth0</code>, <code>baidu</code>, <code>bitly</code>, <code>box</code>, <code>custom</code>, <code>daccount</code>, <code>dwolla</code>, <code>email</code>, <code>evernote-sandbox</code>, <code>evernote</code>, <code>exact</code>, <code>facebook</code>, <code>fitbit</code>, <code>flickr</code>, <code>github</code>, <code>google-apps</code>, <code>google-oauth2</code>, <code>instagram</code>, <code>ip</code>, <code>line</code>, <code>linkedin</code>, <code>miicard</code>, <code>oauth1</code>, <code>oauth2</code>, <code>office365</code>, <code>oidc</code>, <code>okta</code>, <code>paypal</code>, <code>paypal-sandbox</code>, <code>pingfederate</code>, <code>planningcenter</code>, <code>renren</code>, <code>salesforce-community</code>, <code>salesforce-sandbox</code>, <code>salesforce</code>, <code>samlp</code>, <code>sharepoint</code>, <code>shopify</code>, <code>sms</code>, <code>soundcloud</code>, <code>thecity-sandbox</code>, <code>thecity</code>, <code>thirtysevensignals</code>, <code>twitter</code>, <code>untappd</code>, <code>vkontakte</code>, <code>waad</code>, <code>weibo</code>, <code>windowslive</code>, <code>wordpress</code>, <code>yahoo</code>, <code>yammer</code>, <code>yandex</code>
*
* <div class="alert alert-warning">Connections created via this endpoint may redirect users to log in, receive and store user identities, and update user root profiles</div>
* Create a connection
*
* @throws {RequiredError}
Expand Down
8 changes: 4 additions & 4 deletions src/management/__generated/managers/guardian-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import type {
PutFcmRequest,
PutSns200Response,
PutSnsRequest,
PutTwilio200Response,
PutTwilioRequest,
SmsTwilioFactorProvider,
SnsFactorProvider,
TemplateMessages,
TwilioFactorProvider,
Expand Down Expand Up @@ -294,7 +294,7 @@ export class GuardianManager extends BaseAPI {
*/
async getSmsFactorProviderTwilio(
initOverrides?: InitOverride
): Promise<ApiResponse<TwilioFactorProvider>> {
): Promise<ApiResponse<SmsTwilioFactorProvider>> {
const response = await this.request(
{
path: `/guardian/factors/sms/providers/twilio`,
Expand Down Expand Up @@ -722,7 +722,7 @@ export class GuardianManager extends BaseAPI {
async setSmsFactorProviderTwilio(
bodyParameters: PutTwilioRequest,
initOverrides?: InitOverride
): Promise<ApiResponse<PutTwilio200Response>> {
): Promise<ApiResponse<SmsTwilioFactorProvider>> {
const headerParameters: runtime.HTTPHeaders = {};

headerParameters['Content-Type'] = 'application/json';
Expand Down Expand Up @@ -776,7 +776,7 @@ export class GuardianManager extends BaseAPI {
async updatePhoneFactorProviderTwilio(
bodyParameters: PutTwilioRequest,
initOverrides?: InitOverride
): Promise<ApiResponse<PutTwilio200Response>> {
): Promise<ApiResponse<TwilioFactorProvider>> {
const headerParameters: runtime.HTTPHeaders = {};

headerParameters['Content-Type'] = 'application/json';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as runtime from '../../../lib/runtime.js';
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
import type {
GetResourceServers200Response,
PostResourceServersRequest,
ResourceServer,
ResourceServerCreate,
ResourceServerUpdate,
GetResourceServers200ResponseOneOf,
DeleteResourceServersByIdRequest,
Expand Down Expand Up @@ -167,7 +167,7 @@ export class ResourceServersManager extends BaseAPI {
* @throws {RequiredError}
*/
async create(
bodyParameters: PostResourceServersRequest,
bodyParameters: ResourceServerCreate,
initOverrides?: InitOverride
): Promise<ApiResponse<ResourceServer>> {
const headerParameters: runtime.HTTPHeaders = {};
Expand Down
5 changes: 2 additions & 3 deletions src/management/__generated/managers/users-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
DeleteUserIdentityByUserId200ResponseInner,
DeleteUserRolesRequest,
GetAuthenticationMethods200Response,
GetAuthenticationMethods200ResponseOneOfAuthenticatorsInner,
GetAuthenticationMethods200ResponseOneOfInner,
GetLogs200Response,
GetOrganizationMemberRoles200Response,
GetPermissions200Response,
Expand All @@ -26,7 +26,6 @@ import type {
UserIdentity,
UserUpdate,
GetAuthenticationMethods200ResponseOneOf,
GetAuthenticationMethods200ResponseOneOfInner,
GetLogs200ResponseOneOf,
Log,
GetPermissions200ResponseOneOf,
Expand Down Expand Up @@ -342,7 +341,7 @@ export class UsersManager extends BaseAPI {
async getAuthenticationMethod(
requestParameters: GetAuthenticationMethodsByAuthenticationMethodIdRequest,
initOverrides?: InitOverride
): Promise<ApiResponse<GetAuthenticationMethods200ResponseOneOfAuthenticatorsInner>> {
): Promise<ApiResponse<GetAuthenticationMethods200ResponseOneOfInner>> {
runtime.validateRequiredRequestParams(requestParameters, ['id', 'authentication_method_id']);

const response = await this.request(
Expand Down
Loading

0 comments on commit 9f783af

Please sign in to comment.