auth0 4.0.0-beta.6 → 4.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -8
- package/dist/{types → cjs}/auth/base-auth-api.d.ts +9 -2
- package/dist/cjs/auth/base-auth-api.js +32 -4
- package/dist/cjs/auth/base-auth-api.js.map +1 -1
- package/dist/{types → cjs}/auth/client-authentication.d.ts +1 -1
- package/dist/cjs/auth/client-authentication.js +2 -3
- package/dist/cjs/auth/client-authentication.js.map +1 -1
- package/dist/{types → cjs}/auth/database.d.ts +4 -0
- package/dist/cjs/auth/database.js.map +1 -1
- package/dist/{types → cjs}/auth/oauth.d.ts +2 -8
- package/dist/cjs/auth/oauth.js +8 -35
- package/dist/cjs/auth/oauth.js.map +1 -1
- package/dist/{types → cjs}/auth/passwordless.d.ts +1 -1
- package/dist/cjs/auth/passwordless.js +16 -8
- package/dist/cjs/auth/passwordless.js.map +1 -1
- package/dist/{types → cjs}/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/{types → cjs}/lib/retry.d.ts +1 -1
- package/dist/cjs/lib/retry.js +2 -4
- package/dist/cjs/lib/retry.js.map +1 -1
- package/dist/{types → cjs}/lib/runtime.d.ts +1 -10
- package/dist/cjs/lib/runtime.js +3 -23
- package/dist/cjs/lib/runtime.js.map +1 -1
- package/dist/cjs/management/__generated/managers/jobs-manager.js +1 -1
- package/dist/cjs/management/__generated/managers/jobs-manager.js.map +1 -1
- package/dist/{types → cjs}/management/__generated/models/index.d.ts +1 -3
- package/dist/cjs/management/__generated/models/index.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/auth/base-auth-api.d.ts +39 -0
- package/dist/esm/auth/base-auth-api.js +31 -4
- package/dist/esm/auth/base-auth-api.js.map +1 -1
- package/dist/esm/auth/client-authentication.d.ts +26 -0
- package/dist/esm/auth/client-authentication.js +2 -3
- package/dist/esm/auth/client-authentication.js.map +1 -1
- package/dist/esm/auth/database.d.ts +157 -0
- package/dist/esm/auth/database.js.map +1 -1
- package/dist/esm/auth/id-token-validator.d.ts +18 -0
- package/dist/esm/auth/index.d.ts +15 -0
- package/dist/esm/auth/oauth.d.ts +297 -0
- package/dist/esm/auth/oauth.js +10 -37
- package/dist/esm/auth/oauth.js.map +1 -1
- package/dist/esm/auth/passwordless.d.ts +165 -0
- package/dist/esm/auth/passwordless.js +17 -9
- package/dist/esm/auth/passwordless.js.map +1 -1
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/errors.d.ts +33 -0
- package/dist/esm/lib/index.d.ts +3 -0
- package/dist/esm/lib/middleware/telemetry-middleware.d.ts +12 -0
- package/dist/esm/lib/models.d.ts +123 -0
- package/dist/esm/lib/retry.d.ts +26 -0
- package/dist/esm/lib/retry.js +2 -4
- package/dist/esm/lib/retry.js.map +1 -1
- package/dist/esm/lib/runtime.d.ts +61 -0
- package/dist/esm/lib/runtime.js +2 -21
- package/dist/esm/lib/runtime.js.map +1 -1
- package/dist/esm/management/__generated/index.d.ts +39 -0
- package/dist/esm/management/__generated/managers/actions-manager.d.ts +136 -0
- package/dist/esm/management/__generated/managers/anomaly-manager.d.ts +24 -0
- package/dist/esm/management/__generated/managers/attack-protection-manager.d.ts +58 -0
- package/dist/esm/management/__generated/managers/blacklists-manager.d.ts +28 -0
- package/dist/esm/management/__generated/managers/branding-manager.d.ts +103 -0
- package/dist/esm/management/__generated/managers/client-grants-manager.d.ts +42 -0
- package/dist/esm/management/__generated/managers/clients-manager.d.ts +168 -0
- package/dist/esm/management/__generated/managers/connections-manager.d.ts +87 -0
- package/dist/esm/management/__generated/managers/custom-domains-manager.d.ts +106 -0
- package/dist/esm/management/__generated/managers/device-credentials-manager.d.ts +42 -0
- package/dist/esm/management/__generated/managers/email-templates-manager.d.ts +38 -0
- package/dist/esm/management/__generated/managers/emails-manager.d.ts +40 -0
- package/dist/esm/management/__generated/managers/grants-manager.d.ts +34 -0
- package/dist/esm/management/__generated/managers/guardian-manager.d.ts +240 -0
- package/dist/esm/management/__generated/managers/hooks-manager.d.ts +90 -0
- package/dist/esm/management/__generated/managers/index.d.ts +31 -0
- package/dist/esm/management/__generated/managers/jobs-manager.d.ts +47 -0
- package/dist/esm/management/__generated/managers/jobs-manager.js +1 -1
- package/dist/esm/management/__generated/managers/jobs-manager.js.map +1 -1
- package/dist/esm/management/__generated/managers/keys-manager.d.ts +34 -0
- package/dist/esm/management/__generated/managers/log-streams-manager.d.ts +326 -0
- package/dist/esm/management/__generated/managers/logs-manager.d.ts +56 -0
- package/dist/esm/management/__generated/managers/organizations-manager.d.ts +191 -0
- package/dist/esm/management/__generated/managers/prompts-manager.d.ts +42 -0
- package/dist/esm/management/__generated/managers/resource-servers-manager.d.ts +48 -0
- package/dist/esm/management/__generated/managers/roles-manager.d.ts +110 -0
- package/dist/esm/management/__generated/managers/rules-configs-manager.d.ts +33 -0
- package/dist/esm/management/__generated/managers/rules-manager.d.ts +55 -0
- package/dist/esm/management/__generated/managers/stats-manager.d.ts +24 -0
- package/dist/esm/management/__generated/managers/tenants-manager.d.ts +24 -0
- package/dist/esm/management/__generated/managers/tickets-manager.d.ts +24 -0
- package/dist/esm/management/__generated/managers/user-blocks-manager.d.ts +45 -0
- package/dist/esm/management/__generated/managers/users-by-email-manager.d.ts +22 -0
- package/dist/esm/management/__generated/managers/users-manager.d.ts +329 -0
- package/dist/esm/management/__generated/models/index.d.ts +13201 -0
- package/dist/esm/management/__generated/models/index.js.map +1 -1
- package/dist/esm/management/index.d.ts +3 -0
- package/dist/esm/management/management-client-options.d.ts +17 -0
- package/dist/esm/management/management-client.d.ts +16 -0
- package/dist/esm/management/token-provider-middleware.d.ts +7 -0
- package/dist/esm/management/token-provider.d.ts +21 -0
- package/dist/esm/userinfo/index.d.ts +55 -0
- package/dist/esm/utils.d.ts +10 -0
- package/dist/esm/version.d.ts +1 -0
- package/dist/esm/version.js +1 -1
- package/package.json +16 -20
- package/dist/types/version.d.ts +0 -1
- /package/dist/{types → cjs}/auth/id-token-validator.d.ts +0 -0
- /package/dist/{types → cjs}/auth/index.d.ts +0 -0
- /package/dist/{types → cjs}/lib/errors.d.ts +0 -0
- /package/dist/{types → cjs}/lib/index.d.ts +0 -0
- /package/dist/{types → cjs}/lib/middleware/telemetry-middleware.d.ts +0 -0
- /package/dist/{types → cjs}/lib/models.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/index.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/actions-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/anomaly-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/attack-protection-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/blacklists-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/branding-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/client-grants-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/clients-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/connections-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/custom-domains-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/device-credentials-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/email-templates-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/emails-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/grants-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/guardian-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/hooks-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/index.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/jobs-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/keys-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/log-streams-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/logs-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/organizations-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/prompts-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/resource-servers-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/roles-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/rules-configs-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/rules-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/stats-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/tenants-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/tickets-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/user-blocks-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/users-by-email-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/__generated/managers/users-manager.d.ts +0 -0
- /package/dist/{types → cjs}/management/index.d.ts +0 -0
- /package/dist/{types → cjs}/management/management-client-options.d.ts +0 -0
- /package/dist/{types → cjs}/management/management-client.d.ts +0 -0
- /package/dist/{types → cjs}/management/token-provider-middleware.d.ts +0 -0
- /package/dist/{types → cjs}/management/token-provider.d.ts +0 -0
- /package/dist/{types → cjs}/userinfo/index.d.ts +0 -0
- /package/dist/{types → cjs}/utils.d.ts +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as runtime from '../../../lib/runtime.js';
|
|
2
|
+
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
+
import type { EmailProvider, PatchProviderRequest, PostProviderRequest, GetProviderRequest } from '../models/index.js';
|
|
4
|
+
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class EmailsManager extends BaseAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve <a href="https://auth0.com/docs/email/providers">email provider</a> details. A list of fields to include or exclude may also be specified.
|
|
11
|
+
*
|
|
12
|
+
* Get the email provider
|
|
13
|
+
*
|
|
14
|
+
* @throws {RequiredError}
|
|
15
|
+
*/
|
|
16
|
+
get(requestParameters?: GetProviderRequest, initOverrides?: InitOverride): Promise<ApiResponse<EmailProvider>>;
|
|
17
|
+
/**
|
|
18
|
+
* Update an <a href="https://auth0.com/docs/email/providers">email provider</a>.
|
|
19
|
+
* The <code>credentials</code> object requires different properties depending on the email provider (which is specified using the <code>name</code> property):
|
|
20
|
+
* <ul><li><code>mandrill</code> requires <code>api_key</code></li><li><code>sendgrid</code> requires <code>api_key</code></li><li><code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li><li><code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and <code>smtp_pass</code></li></ul>Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration options, which will be used when sending an email:
|
|
21
|
+
* <ul><li><code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. When using AWS SES SMTP host, you may provide a name of configuration set in <code>X-SES-Configuration-Set</code> header. Value must be a string.</li><li>for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide a name of configuration set in <code>configuration_set_name</code> property. Value must be a string.</li></ul>
|
|
22
|
+
*
|
|
23
|
+
* Update the email provider
|
|
24
|
+
*
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
update(bodyParameters: PatchProviderRequest, initOverrides?: InitOverride): Promise<ApiResponse<EmailProvider>>;
|
|
28
|
+
/**
|
|
29
|
+
* Create an <a href="https://auth0.com/docs/email/providers">email provider</a>.
|
|
30
|
+
* The <code>credentials</code> object requires different properties depending on the email provider (which is specified using the <code>name</code> property):
|
|
31
|
+
* <ul><li><code>mandrill</code> requires <code>api_key</code></li><li><code>sendgrid</code> requires <code>api_key</code></li><li><code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li><li><code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and <code>smtp_pass</code></li></ul>Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration options, which will be used when sending an email:
|
|
32
|
+
* <ul><li><code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. When using AWS SES SMTP host, you may provide a name of configuration set in <code>X-SES-Configuration-Set</code> header. Value must be a string.</li><li>for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide a name of configuration set in <code>configuration_set_name</code> property. Value must be a string.</li></ul>
|
|
33
|
+
*
|
|
34
|
+
* Configure the email provider
|
|
35
|
+
*
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
configure(bodyParameters: PostProviderRequest, initOverrides?: InitOverride): Promise<ApiResponse<EmailProvider>>;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as runtime from '../../../lib/runtime.js';
|
|
2
|
+
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
+
import type { GetGrants200ResponseOneOf, UserGrant, DeleteGrantsByIdRequest, DeleteGrantsByUserIdRequest, GetGrantsRequest } from '../models/index.js';
|
|
4
|
+
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class GrantsManager extends BaseAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Delete a grant associated with your account.
|
|
11
|
+
* Delete a grant by id
|
|
12
|
+
*
|
|
13
|
+
* @throws {RequiredError}
|
|
14
|
+
*/
|
|
15
|
+
delete(requestParameters: DeleteGrantsByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
16
|
+
/**
|
|
17
|
+
* Delete a grant associated with your account.
|
|
18
|
+
* Delete a grant by user_id
|
|
19
|
+
*
|
|
20
|
+
* @throws {RequiredError}
|
|
21
|
+
*/
|
|
22
|
+
deleteByUserId(requestParameters?: DeleteGrantsByUserIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account.
|
|
25
|
+
* Get grants
|
|
26
|
+
*
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
getAll(requestParameters: GetGrantsRequest & {
|
|
30
|
+
include_totals: true;
|
|
31
|
+
}, initOverrides?: InitOverride): Promise<ApiResponse<GetGrants200ResponseOneOf>>;
|
|
32
|
+
getAll(requestParameters?: GetGrantsRequest, initOverrides?: InitOverride): Promise<ApiResponse<Array<UserGrant>>>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import * as runtime from '../../../lib/runtime.js';
|
|
2
|
+
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
+
import type { Enrollment, EnrollmentCreate, Factor, GetApns200Response, GetMessageTypes200Response, GetPhoneProviders200Response, GetPnProviders200Response, PostTicket200Response, PutApns200Response, PutApnsRequest, PutFactorsByName200Response, PutFactorsByNameRequest, PutFcmRequest, PutMessageTypesRequest, PutPhoneProvidersRequest, PutPnProvidersRequest, PutSnsRequest, PutTwilioRequest, SnsFactorProvider, TemplateMessages, TwilioFactorProvider, DeleteEnrollmentsByIdRequest, GetEnrollmentsByIdRequest, PutFactorsByNameOperationRequest } from '../models/index.js';
|
|
4
|
+
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class GuardianManager extends BaseAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Delete an enrollment to allow the user to enroll with multi-factor authentication again.
|
|
11
|
+
* Delete a multi-factor authentication enrollment
|
|
12
|
+
*
|
|
13
|
+
* @throws {RequiredError}
|
|
14
|
+
*/
|
|
15
|
+
deleteGuardianEnrollment(requestParameters: DeleteEnrollmentsByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve APNS push notification configuration
|
|
18
|
+
*
|
|
19
|
+
* @throws {RequiredError}
|
|
20
|
+
*/
|
|
21
|
+
getPushNotificationProviderAPNS(initOverrides?: InitOverride): Promise<ApiResponse<GetApns200Response>>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve an enrollment (including its status and type).
|
|
24
|
+
*
|
|
25
|
+
* Note: Phone numbers are partially obfuscated.
|
|
26
|
+
* Retrieve a multi-factor authentication enrollment
|
|
27
|
+
*
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
getGuardianEnrollment(requestParameters: GetEnrollmentsByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<Enrollment>>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve phone enrollment and verification templates (subscription required).
|
|
33
|
+
* Retrieve Enrollment and Verification Phone Templates
|
|
34
|
+
*
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
getPhoneFactorTemplates(initOverrides?: InitOverride): Promise<ApiResponse<TemplateMessages>>;
|
|
38
|
+
/**
|
|
39
|
+
* Retrieve SMS enrollment and verification templates (subscription required).
|
|
40
|
+
*
|
|
41
|
+
* A new endpoint is available to retrieve enrollment and verification templates related to phone factors (<a href='https://manage.local.dev.auth0.com/docs/api/management/v2/#!/Guardian/get_templates'>phone templates</a>). It has the same payload as this one. Please use it instead.
|
|
42
|
+
* Retrieve SMS Enrollment and Verification Templates
|
|
43
|
+
*
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
getSmsFactorTemplates(initOverrides?: InitOverride): Promise<ApiResponse<TemplateMessages>>;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieve all <a href="https://auth0.com/docs/multifactor-authentication">multi-factor authentication</a> configurations.
|
|
49
|
+
* Retrieve Factors and their Status
|
|
50
|
+
*
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
getFactors(initOverrides?: InitOverride): Promise<ApiResponse<Array<Factor>>>;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieve the Enabled Phone Factors
|
|
56
|
+
*
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
getPhoneFactorMessageTypes(initOverrides?: InitOverride): Promise<ApiResponse<GetMessageTypes200Response>>;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieve phone configuration (one of auth0|twilio|phone-message-hook)
|
|
62
|
+
*
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
*/
|
|
65
|
+
getPhoneFactorSelectedProvider(initOverrides?: InitOverride): Promise<ApiResponse<GetPhoneProviders200Response>>;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio phone provider configuration</a> (subscription required).
|
|
68
|
+
* Retrieve Twilio phone configuration
|
|
69
|
+
*
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
getPhoneFactorProviderTwilio(initOverrides?: InitOverride): Promise<ApiResponse<TwilioFactorProvider>>;
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve push notification provider
|
|
75
|
+
*
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
getPushNotificationSelectedProvider(initOverrides?: InitOverride): Promise<ApiResponse<GetPnProviders200Response>>;
|
|
79
|
+
/**
|
|
80
|
+
* Gets the MFA policies for the tenant.
|
|
81
|
+
*
|
|
82
|
+
* The following policies are supported: <ul><li><code>all-applications</code> policy - will prompt with MFA for all logins.</li><li><code>confidence-score</code> policy - will prompt with MFA only for low confidence logins.</li></ul>
|
|
83
|
+
* Use of the Adaptive MFA feature requires an add-on for the Enterprise plan. Please contact sales with any questions. For more information about Adaptive MFA, read our <a href="https://auth0.com/docs/mfa/adaptive-mfa">full documentation</a>.
|
|
84
|
+
*
|
|
85
|
+
* Get the Multi-factor Authentication policies
|
|
86
|
+
*
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
getPolicies(initOverrides?: InitOverride): Promise<ApiResponse<Array<string>>>;
|
|
90
|
+
/**
|
|
91
|
+
* A new endpoint is available to retrieve the configuration related to phone factors (<a href='https://manage.local.dev.auth0.com/docs/api/management/v2/#!/Guardian/get_selected_provider'>phone configuration</a>). It has the same payload as this one. Please use it instead.
|
|
92
|
+
* Retrieve SMS configuration (one of auth0|twilio|phone-message-hook)
|
|
93
|
+
*
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
getSmsSelectedProvider(initOverrides?: InitOverride): Promise<ApiResponse<GetPhoneProviders200Response>>;
|
|
97
|
+
/**
|
|
98
|
+
* Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required).
|
|
99
|
+
*
|
|
100
|
+
* A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://manage.local.dev.auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
|
|
101
|
+
* Retrieve Twilio SMS configuration
|
|
102
|
+
*
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
getSmsFactorProviderTwilio(initOverrides?: InitOverride): Promise<ApiResponse<TwilioFactorProvider>>;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required).
|
|
108
|
+
* Retrieve AWS SNS push notification configuration
|
|
109
|
+
*
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
getPushNotificationProviderSNS(initOverrides?: InitOverride): Promise<ApiResponse<SnsFactorProvider>>;
|
|
113
|
+
/**
|
|
114
|
+
* Updates APNs provider configuration
|
|
115
|
+
*
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
updatePushNotificationProviderAPNS(bodyParameters: PutApnsRequest, initOverrides?: InitOverride): Promise<ApiResponse<PutApns200Response>>;
|
|
119
|
+
/**
|
|
120
|
+
* Updates FCM provider configuration
|
|
121
|
+
*
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
updatePushNotificationProviderFCM(bodyParameters: PutFcmRequest, initOverrides?: InitOverride): Promise<ApiResponse<{
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
}>>;
|
|
127
|
+
/**
|
|
128
|
+
* Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required).
|
|
129
|
+
* Update SNS configuration for push notifications
|
|
130
|
+
*
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
updatePushNotificationProviderSNS(bodyParameters: PutSnsRequest, initOverrides?: InitOverride): Promise<ApiResponse<PutSnsRequest>>;
|
|
134
|
+
/**
|
|
135
|
+
* Generate an email with a link to start the multi-factor authentication enrollment process (subscription required).
|
|
136
|
+
* Create a multi-factor authentication enrollment ticket
|
|
137
|
+
*
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
createEnrollmentTicket(bodyParameters: EnrollmentCreate, initOverrides?: InitOverride): Promise<ApiResponse<PostTicket200Response>>;
|
|
141
|
+
/**
|
|
142
|
+
* Updates APNs provider configuration
|
|
143
|
+
*
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
setPushNotificationProviderAPNS(bodyParameters: PutApnsRequest, initOverrides?: InitOverride): Promise<ApiResponse<PutApns200Response>>;
|
|
147
|
+
/**
|
|
148
|
+
* Customize the messages sent to complete phone enrollment and verification (subscription required).
|
|
149
|
+
* Update Enrollment and Verification Phone Templates
|
|
150
|
+
*
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
setPhoneFactorTemplates(bodyParameters: TemplateMessages, initOverrides?: InitOverride): Promise<ApiResponse<TemplateMessages>>;
|
|
154
|
+
/**
|
|
155
|
+
* Customize the messages sent to complete SMS enrollment and verification (subscription required).
|
|
156
|
+
*
|
|
157
|
+
* A new endpoint is available to update enrollment and verification templates related to phone factors (<a href='https://manage.local.dev.auth0.com/docs/api/management/v2/#!/Guardian/put_templates'>phone templates</a>). It has the same payload as this one. Please use it instead.
|
|
158
|
+
* Update SMS Enrollment and Verification Templates
|
|
159
|
+
*
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
setSmsFactorTemplates(bodyParameters: TemplateMessages, initOverrides?: InitOverride): Promise<ApiResponse<TemplateMessages>>;
|
|
163
|
+
/**
|
|
164
|
+
* Update a multi-factor authentication factor (subscription required).
|
|
165
|
+
* Update a Multi-factor Authentication Factor
|
|
166
|
+
*
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
updateFactor(requestParameters: PutFactorsByNameOperationRequest, bodyParameters: PutFactorsByNameRequest, initOverrides?: InitOverride): Promise<ApiResponse<PutFactorsByName200Response>>;
|
|
170
|
+
/**
|
|
171
|
+
* Updates FCM provider configuration
|
|
172
|
+
*
|
|
173
|
+
* @throws {RequiredError}
|
|
174
|
+
*/
|
|
175
|
+
setPushNotificationProviderFCM(bodyParameters: PutFcmRequest, initOverrides?: InitOverride): Promise<ApiResponse<{
|
|
176
|
+
[key: string]: any;
|
|
177
|
+
}>>;
|
|
178
|
+
/**
|
|
179
|
+
* Update enabled phone factors for multi-factor authentication
|
|
180
|
+
* Update the Enabled Phone Factors
|
|
181
|
+
*
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
updatePhoneFactorMessageTypes(bodyParameters: PutMessageTypesRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetMessageTypes200Response>>;
|
|
185
|
+
/**
|
|
186
|
+
* Update phone configuration (one of auth0|twilio|phone-message-hook)
|
|
187
|
+
*
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
updatePhoneFactorSelectedProvider(bodyParameters: PutPhoneProvidersRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetPhoneProviders200Response>>;
|
|
191
|
+
/**
|
|
192
|
+
* Update Push Notification configuration (one of direct|sns|guardian)
|
|
193
|
+
*
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
setPushNotificationSelectedProvider(bodyParameters: PutPnProvidersRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetPnProviders200Response>>;
|
|
197
|
+
/**
|
|
198
|
+
* Sets the MFA policies for the tenant.
|
|
199
|
+
*
|
|
200
|
+
* The following policies are supported: <ul><li><code>all-applications</code> policy - will prompt with MFA for all logins.</li><li><code>confidence-score</code> policy - will prompt with MFA only for low confidence logins.</li></ul> Pass an empty array to remove all MFA policies.
|
|
201
|
+
* Use of the Adaptive MFA feature requires an add-on for the Enterprise plan. Please contact sales with any questions. For more information about Adaptive MFA, read our <a href="https://auth0.com/docs/mfa/adaptive-mfa">full documentation</a>.
|
|
202
|
+
*
|
|
203
|
+
*
|
|
204
|
+
* Set the Multi-factor Authentication policies
|
|
205
|
+
*
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
updatePolicies(bodyParameters: Array<string>, initOverrides?: InitOverride): Promise<ApiResponse<Array<string>>>;
|
|
209
|
+
/**
|
|
210
|
+
* A new endpoint is available to update the configuration related to phone factors (<a href='https://manage.local.dev.auth0.com/docs/api/management/v2/#!/Guardian/put_selected_provider'>phone configuration</a>). It has the same payload as this one. Please use it instead.
|
|
211
|
+
* Update SMS configuration (one of auth0|twilio|phone-message-hook)
|
|
212
|
+
*
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
setSmsSelectedProvider(bodyParameters: PutPhoneProvidersRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetPhoneProviders200Response>>;
|
|
216
|
+
/**
|
|
217
|
+
* Configure the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required).
|
|
218
|
+
*
|
|
219
|
+
* A new endpoint is available to update the Twilio configuration related to phone factors (<a href='https://manage.local.dev.auth0.com/docs/api/management/v2/#!/Guardian/put_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
|
|
220
|
+
* Update Twilio SMS configuration
|
|
221
|
+
*
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
setSmsFactorProviderTwilio(bodyParameters: PutTwilioRequest, initOverrides?: InitOverride): Promise<ApiResponse<PutTwilioRequest>>;
|
|
225
|
+
/**
|
|
226
|
+
* Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required).
|
|
227
|
+
* Update AWS SNS push notification configuration
|
|
228
|
+
*
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
setPushNotificationProviderSNS(bodyParameters: PutSnsRequest, initOverrides?: InitOverride): Promise<ApiResponse<PutSnsRequest>>;
|
|
232
|
+
/**
|
|
233
|
+
* Configure the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio phone provider configuration</a> (subscription required).
|
|
234
|
+
* Update Twilio phone configuration
|
|
235
|
+
*
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
updatePhoneFactorProviderTwilio(bodyParameters: PutTwilioRequest, initOverrides?: InitOverride): Promise<ApiResponse<PutTwilioRequest>>;
|
|
239
|
+
}
|
|
240
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as runtime from '../../../lib/runtime.js';
|
|
2
|
+
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
+
import type { Hook, HookCreate, HookUpdate, GetHooks200ResponseOneOf, DeleteHooksByIdRequest, DeleteSecretsRequest, GetHooksRequest, GetHooksByIdRequest, GetSecretsRequest, PatchHooksByIdRequest, PatchSecretsRequest, PostSecretsRequest } from '../models/index.js';
|
|
4
|
+
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class HooksManager extends BaseAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Delete a hook.
|
|
11
|
+
*
|
|
12
|
+
* Delete a hook
|
|
13
|
+
*
|
|
14
|
+
* @throws {RequiredError}
|
|
15
|
+
*/
|
|
16
|
+
delete(requestParameters: DeleteHooksByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete.
|
|
19
|
+
* Delete hook secrets
|
|
20
|
+
*
|
|
21
|
+
* @throws {RequiredError}
|
|
22
|
+
*/
|
|
23
|
+
deleteSecrets(requestParameters: DeleteSecretsRequest, bodyParameters: Array<string>, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result.
|
|
26
|
+
*
|
|
27
|
+
* Get hooks
|
|
28
|
+
*
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
getAll(requestParameters: GetHooksRequest & {
|
|
32
|
+
include_totals: true;
|
|
33
|
+
}, initOverrides?: InitOverride): Promise<ApiResponse<GetHooks200ResponseOneOf>>;
|
|
34
|
+
getAll(requestParameters?: GetHooksRequest, initOverrides?: InitOverride): Promise<ApiResponse<Array<Hook>>>;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result.
|
|
37
|
+
*
|
|
38
|
+
* Get a hook
|
|
39
|
+
*
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
get(requestParameters: GetHooksByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<Hook>>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve a hook's secrets by the ID of the hook.
|
|
45
|
+
*
|
|
46
|
+
* Get hook secrets
|
|
47
|
+
*
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
getSecrets(requestParameters: GetSecretsRequest, initOverrides?: InitOverride): Promise<ApiResponse<{
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}>>;
|
|
53
|
+
/**
|
|
54
|
+
* Update an existing hook.
|
|
55
|
+
*
|
|
56
|
+
* Update a hook
|
|
57
|
+
*
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
*/
|
|
60
|
+
update(requestParameters: PatchHooksByIdRequest, bodyParameters: HookUpdate, initOverrides?: InitOverride): Promise<ApiResponse<Hook>>;
|
|
61
|
+
/**
|
|
62
|
+
* Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret.
|
|
63
|
+
*
|
|
64
|
+
* Update hook secrets
|
|
65
|
+
*
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
updateSecrets(requestParameters: PatchSecretsRequest, bodyParameters: {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
}, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a new hook.
|
|
73
|
+
*
|
|
74
|
+
* Create a hook
|
|
75
|
+
*
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
create(bodyParameters: HookCreate, initOverrides?: InitOverride): Promise<ApiResponse<Hook>>;
|
|
79
|
+
/**
|
|
80
|
+
* Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets.
|
|
81
|
+
*
|
|
82
|
+
* Add hook secrets
|
|
83
|
+
*
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
addSecrets(requestParameters: PostSecretsRequest, bodyParameters: {
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
}, initOverrides?: InitOverride): Promise<ApiResponse<void>>;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from './actions-manager.js';
|
|
2
|
+
export * from './anomaly-manager.js';
|
|
3
|
+
export * from './attack-protection-manager.js';
|
|
4
|
+
export * from './blacklists-manager.js';
|
|
5
|
+
export * from './branding-manager.js';
|
|
6
|
+
export * from './client-grants-manager.js';
|
|
7
|
+
export * from './clients-manager.js';
|
|
8
|
+
export * from './connections-manager.js';
|
|
9
|
+
export * from './custom-domains-manager.js';
|
|
10
|
+
export * from './device-credentials-manager.js';
|
|
11
|
+
export * from './email-templates-manager.js';
|
|
12
|
+
export * from './emails-manager.js';
|
|
13
|
+
export * from './grants-manager.js';
|
|
14
|
+
export * from './guardian-manager.js';
|
|
15
|
+
export * from './hooks-manager.js';
|
|
16
|
+
export * from './jobs-manager.js';
|
|
17
|
+
export * from './keys-manager.js';
|
|
18
|
+
export * from './log-streams-manager.js';
|
|
19
|
+
export * from './logs-manager.js';
|
|
20
|
+
export * from './organizations-manager.js';
|
|
21
|
+
export * from './prompts-manager.js';
|
|
22
|
+
export * from './resource-servers-manager.js';
|
|
23
|
+
export * from './roles-manager.js';
|
|
24
|
+
export * from './rules-manager.js';
|
|
25
|
+
export * from './rules-configs-manager.js';
|
|
26
|
+
export * from './stats-manager.js';
|
|
27
|
+
export * from './tenants-manager.js';
|
|
28
|
+
export * from './tickets-manager.js';
|
|
29
|
+
export * from './user-blocks-manager.js';
|
|
30
|
+
export * from './users-manager.js';
|
|
31
|
+
export * from './users-by-email-manager.js';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as runtime from '../../../lib/runtime.js';
|
|
2
|
+
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
+
import type { GetErrors200Response, Job, PostUsersExportsRequest, PostVerificationEmailRequest, GetErrorsRequest, GetJobsByIdRequest, PostUsersImportsData } from '../models/index.js';
|
|
4
|
+
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class JobsManager extends BaseAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve error details of a failed job.
|
|
11
|
+
* Get job error details
|
|
12
|
+
*
|
|
13
|
+
* @throws {RequiredError}
|
|
14
|
+
*/
|
|
15
|
+
getErrors(requestParameters: GetErrorsRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetErrors200Response>>;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a job. Useful to check its status.
|
|
18
|
+
* Get a job
|
|
19
|
+
*
|
|
20
|
+
* @throws {RequiredError}
|
|
21
|
+
*/
|
|
22
|
+
get(requestParameters: GetJobsByIdRequest, initOverrides?: InitOverride): Promise<ApiResponse<Job>>;
|
|
23
|
+
/**
|
|
24
|
+
* Export all users to a file via a long-running job.
|
|
25
|
+
* Create export users job
|
|
26
|
+
*
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
exportUsers(bodyParameters: PostUsersExportsRequest, initOverrides?: InitOverride): Promise<ApiResponse<Job>>;
|
|
30
|
+
/**
|
|
31
|
+
* Import users from a <a href="https://manage.local.dev.auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job.
|
|
32
|
+
* Create import users job
|
|
33
|
+
*
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
importUsers(bodyParameters: PostUsersImportsData, initOverrides?: InitOverride): Promise<ApiResponse<Job>>;
|
|
37
|
+
/**
|
|
38
|
+
* Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>.
|
|
39
|
+
*
|
|
40
|
+
* Note: You must have the `Status` toggle enabled for the verification email template for the email to be sent.
|
|
41
|
+
* Send an email address verification email
|
|
42
|
+
*
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
verifyEmail(bodyParameters: PostVerificationEmailRequest, initOverrides?: InitOverride): Promise<ApiResponse<Job>>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -56,7 +56,7 @@ export class JobsManager extends BaseAPI {
|
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
58
58
|
async importUsers(bodyParameters, initOverrides) {
|
|
59
|
-
const formParams = new (
|
|
59
|
+
const formParams = new FormData();
|
|
60
60
|
if (bodyParameters.users !== undefined) {
|
|
61
61
|
formParams.append('users', await runtime.parseFormParam(bodyParameters.users));
|
|
62
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/jobs-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAYnD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAE5B;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAO;IACtC;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,iBAAmC,EACnC,aAA4B;QAE5B,OAAO,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QAEjE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,mBAAmB,CAAC,OAAO,CAAC,MAAM,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;YAC3F,MAAM,EAAE,KAAK;SACd,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,iBAAqC,EACrC,aAA4B;QAE5B,OAAO,CAAC,6BAA6B,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QAEjE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;YACpF,MAAM,EAAE,KAAK;SACd,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,cAAuC,EACvC,aAA4B;QAE5B,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,qBAAqB;YAC3B,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,IAAI,EAAE,cAAc;SACrB,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,cAAoC,EACpC,aAA4B;QAE5B,MAAM,UAAU,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"jobs-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/jobs-manager.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as runtime from '../../../lib/runtime.js';
|
|
2
|
+
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
+
import type { GetSigningKeys200ResponseInner, PostSigningKeys201Response, PutSigningKeys200Response, GetSigningKeyRequest, PutSigningKeysRequest } from '../models/index.js';
|
|
4
|
+
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class KeysManager extends BaseAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Get an Application Signing Key by its key id
|
|
11
|
+
*
|
|
12
|
+
* @throws {RequiredError}
|
|
13
|
+
*/
|
|
14
|
+
get(requestParameters: GetSigningKeyRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetSigningKeys200ResponseInner>>;
|
|
15
|
+
/**
|
|
16
|
+
* Get all Application Signing Keys
|
|
17
|
+
*
|
|
18
|
+
* @throws {RequiredError}
|
|
19
|
+
*/
|
|
20
|
+
getAll(initOverrides?: InitOverride): Promise<ApiResponse<Array<GetSigningKeys200ResponseInner>>>;
|
|
21
|
+
/**
|
|
22
|
+
* Rotate the Application Signing Key
|
|
23
|
+
*
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
rotate(initOverrides?: InitOverride): Promise<ApiResponse<PostSigningKeys201Response>>;
|
|
27
|
+
/**
|
|
28
|
+
* Revoke an Application Signing Key by its key id
|
|
29
|
+
*
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
revoke(requestParameters: PutSigningKeysRequest, initOverrides?: InitOverride): Promise<ApiResponse<PutSigningKeys200Response>>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|