Skip to content
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
64 changes: 64 additions & 0 deletions src/management/__generated/managers/clients-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import type {
Client,
ClientCreate,
ClientUpdate,
GetClientConnections200Response,
GetClients200Response,
GetCredentials200ResponseInner,
PatchCredentialsByCredentialIdRequest,
PostCredentialsRequest,
GetClients200ResponseOneOf,
DeleteClientsByIdRequest,
DeleteCredentialsByCredentialIdRequest,
GetClientConnectionsRequest,
GetClientsRequest,
GetClientsByIdRequest,
GetCredentialsRequest,
Expand Down Expand Up @@ -78,6 +80,68 @@ export class ClientsManager extends BaseAPI {
return runtime.VoidApiResponse.fromResponse(response);
}

/**
* Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified.
* <ul>
* <li>
* This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>.
* </li>
* <li>
* <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.
* </li>
* </ul>
*
* Get enabled connections for a client
*
* @throws {RequiredError}
*/
async getEnabledConnections(
requestParameters: GetClientConnectionsRequest,
initOverrides?: InitOverride
): Promise<ApiResponse<GetClientConnections200Response>> {
runtime.validateRequiredRequestParams(requestParameters, ['client_id']);

const queryParameters = runtime.applyQueryParams(requestParameters, [
{
key: 'strategy',
config: {
isArray: true,
isCollectionFormatMulti: true,
},
},
{
key: 'from',
config: {},
},
{
key: 'take',
config: {},
},
{
key: 'fields',
config: {},
},
{
key: 'include_fields',
config: {},
},
]);

const response = await this.request(
{
path: `/clients/{client_id}/connections`.replace(
'{client_id}',
encodeURIComponent(String(requestParameters.client_id))
),
method: 'GET',
query: queryParameters,
},
initOverrides
);

return runtime.JSONApiResponse.fromResponse(response);
}

/**
* Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified.
* For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>.
Expand Down
119 changes: 119 additions & 0 deletions src/management/__generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5477,6 +5477,20 @@
*
*/
export type GetBruteForceProtection200ResponseAllowlistInner = any;
/**
*
*/
export interface GetClientConnections200Response {
[key: string]: any | any;
/**
*/
connections: Array<ConnectionForList>;
/**
* Encoded next token
*
*/
next?: string;
}
/**
*
*/
Expand Down Expand Up @@ -12888,7 +12902,7 @@
/**
*
*/
export interface PostFormsRequestNodesInnerAnyOf2ConfigComponentsInnerAnyOf2AnyOf13Config {}

Check warning on line 12905 in src/management/__generated/models/index.ts

View workflow job for this annotation

GitHub Actions / Build and Test (20.3)

An empty interface is equivalent to `{}`

Check warning on line 12905 in src/management/__generated/models/index.ts

View workflow job for this annotation

GitHub Actions / Build and Test (18.17)

An empty interface is equivalent to `{}`
/**
*
*/
Expand Down Expand Up @@ -18114,6 +18128,111 @@
*/
credential_id: string;
}

/**
*
*/
export const GetClientConnectionsStrategyEnum = {
ad: 'ad',
adfs: 'adfs',
amazon: 'amazon',
apple: 'apple',
dropbox: 'dropbox',
bitbucket: 'bitbucket',
aol: 'aol',
auth0_oidc: 'auth0-oidc',
auth0: 'auth0',
baidu: 'baidu',
bitly: 'bitly',
box: 'box',
custom: 'custom',
daccount: 'daccount',
dwolla: 'dwolla',
email: 'email',
evernote_sandbox: 'evernote-sandbox',
evernote: 'evernote',
exact: 'exact',
facebook: 'facebook',
fitbit: 'fitbit',
flickr: 'flickr',
github: 'github',
google_apps: 'google-apps',
google_oauth2: 'google-oauth2',
instagram: 'instagram',
ip: 'ip',
line: 'line',
linkedin: 'linkedin',
miicard: 'miicard',
oauth1: 'oauth1',
oauth2: 'oauth2',
office365: 'office365',
oidc: 'oidc',
okta: 'okta',
paypal: 'paypal',
paypal_sandbox: 'paypal-sandbox',
pingfederate: 'pingfederate',
planningcenter: 'planningcenter',
renren: 'renren',
salesforce_community: 'salesforce-community',
salesforce_sandbox: 'salesforce-sandbox',
salesforce: 'salesforce',
samlp: 'samlp',
sharepoint: 'sharepoint',
shopify: 'shopify',
sms: 'sms',
soundcloud: 'soundcloud',
thecity_sandbox: 'thecity-sandbox',
thecity: 'thecity',
thirtysevensignals: 'thirtysevensignals',
twitter: 'twitter',
untappd: 'untappd',
vkontakte: 'vkontakte',
waad: 'waad',
weibo: 'weibo',
windowslive: 'windowslive',
wordpress: 'wordpress',
yahoo: 'yahoo',
yammer: 'yammer',
yandex: 'yandex',
} as const;
export type GetClientConnectionsStrategyEnum =
(typeof GetClientConnectionsStrategyEnum)[keyof typeof GetClientConnectionsStrategyEnum];

/**
*
*/
export interface GetClientConnectionsRequest {
/**
* ID of the client for which to retrieve enabled connections.
*
*/
client_id: string;
/**
* Provide strategies to only retrieve connections with such strategies
*
*/
strategy?: Array<GetClientConnectionsStrategyEnum>;
/**
* Optional Id from which to start selection.
*
*/
from?: string;
/**
* Number of results per page. Defaults to 50.
*
*/
take?: number;
/**
* A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields
*
*/
fields?: string;
/**
* <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>)
*
*/
include_fields?: boolean;
}
/**
*
*/
Expand Down
Loading
Loading