auth0 5.3.0 → 5.3.1
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/dist/cjs/management/api/requests/requests.d.ts +29 -126
- package/dist/cjs/management/api/requests/requests.js +0 -108
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.ts +6 -3
- package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +69 -46
- package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/flows/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/flows/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/index.js +0 -1
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +4 -4
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/flows/resources/executions/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/resources/executions/index.js +0 -1
- package/dist/cjs/management/api/resources/flows/resources/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/resources/index.js +0 -4
- package/dist/cjs/management/api/resources/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/index.js +0 -1
- package/dist/cjs/management/api/types/types.d.ts +1013 -547
- package/dist/cjs/management/api/types/types.js +426 -429
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/api/requests/requests.d.mts +29 -126
- package/dist/esm/management/api/requests/requests.mjs +1 -107
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.mts +6 -3
- package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +69 -46
- package/dist/esm/management/api/resources/actions/resources/versions/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/flows/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/flows/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/index.mjs +0 -1
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +4 -4
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/flows/resources/executions/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/resources/executions/index.mjs +0 -1
- package/dist/esm/management/api/resources/flows/resources/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/resources/index.mjs +0 -1
- package/dist/esm/management/api/resources/index.d.mts +0 -1
- package/dist/esm/management/api/resources/index.mjs +0 -1
- package/dist/esm/management/api/types/types.d.mts +1013 -547
- package/dist/esm/management/api/types/types.mjs +416 -419
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +32 -6
- package/dist/cjs/management/api/resources/flows/resources/executions/types/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/resources/executions/types/index.js +0 -17
- package/dist/cjs/management/api/resources/flows/resources/executions/types/types.d.ts +0 -4
- package/dist/cjs/management/api/resources/flows/resources/executions/types/types.js +0 -7
- package/dist/cjs/management/api/resources/flows/types/index.d.ts +0 -1
- package/dist/cjs/management/api/resources/flows/types/index.js +0 -17
- package/dist/cjs/management/api/resources/flows/types/types.d.ts +0 -4
- package/dist/cjs/management/api/resources/flows/types/types.js +0 -7
- package/dist/esm/management/api/resources/flows/resources/executions/types/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/resources/executions/types/index.mjs +0 -1
- package/dist/esm/management/api/resources/flows/resources/executions/types/types.d.mts +0 -4
- package/dist/esm/management/api/resources/flows/resources/executions/types/types.mjs +0 -4
- package/dist/esm/management/api/resources/flows/types/index.d.mts +0 -1
- package/dist/esm/management/api/resources/flows/types/index.mjs +0 -1
- package/dist/esm/management/api/resources/flows/types/types.d.mts +0 -4
- package/dist/esm/management/api/resources/flows/types/types.mjs +0 -4
|
@@ -730,7 +730,7 @@ export interface CreateEventStreamTestEventRequestContent {
|
|
|
730
730
|
* synchronous: true
|
|
731
731
|
* }
|
|
732
732
|
*/
|
|
733
|
-
export interface
|
|
733
|
+
export interface ListFlowsRequestParameters {
|
|
734
734
|
/** Page index of the results to return. First page is 0. */
|
|
735
735
|
page?: number | null;
|
|
736
736
|
/** Number of results per page. Defaults to 50. */
|
|
@@ -738,7 +738,7 @@ export interface FlowsListRequest {
|
|
|
738
738
|
/** Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). */
|
|
739
739
|
include_totals?: boolean | null;
|
|
740
740
|
/** hydration param */
|
|
741
|
-
hydrate?: (Management.
|
|
741
|
+
hydrate?: (Management.ListFlowsRequestParametersHydrateEnum | null) | (Management.ListFlowsRequestParametersHydrateEnum | null)[];
|
|
742
742
|
/** flag to filter by sync/async flows */
|
|
743
743
|
synchronous?: boolean | null;
|
|
744
744
|
}
|
|
@@ -1828,6 +1828,19 @@ export interface RollbackActionModuleRequestParameters {
|
|
|
1828
1828
|
/** The unique ID of the module version to roll back to. */
|
|
1829
1829
|
module_version_id: string;
|
|
1830
1830
|
}
|
|
1831
|
+
/**
|
|
1832
|
+
* @example
|
|
1833
|
+
* {
|
|
1834
|
+
* page: 1,
|
|
1835
|
+
* per_page: 1
|
|
1836
|
+
* }
|
|
1837
|
+
*/
|
|
1838
|
+
export interface GetActionModuleVersionsRequestParameters {
|
|
1839
|
+
/** Use this field to request a specific page of the list results. */
|
|
1840
|
+
page?: number | null;
|
|
1841
|
+
/** The maximum number of results to be returned by the server in a single response. 20 by default. */
|
|
1842
|
+
per_page?: number | null;
|
|
1843
|
+
}
|
|
1831
1844
|
/**
|
|
1832
1845
|
* @example
|
|
1833
1846
|
* {
|
|
@@ -1892,36 +1905,13 @@ export interface UpdateBruteForceSettingsRequestContent {
|
|
|
1892
1905
|
* Action to take when a brute force protection threshold is violated.
|
|
1893
1906
|
* Possible values: <code>block</code>, <code>user_notification</code>.
|
|
1894
1907
|
*/
|
|
1895
|
-
shields?:
|
|
1908
|
+
shields?: Management.BruteForceProtectionShieldsEnum[];
|
|
1896
1909
|
/** List of trusted IP addresses that will not have attack protection enforced against them. */
|
|
1897
1910
|
allowlist?: string[];
|
|
1898
|
-
|
|
1899
|
-
* Account Lockout: Determines whether or not IP address is used when counting failed attempts.
|
|
1900
|
-
* Possible values: <code>count_per_identifier_and_ip</code>, <code>count_per_identifier</code>.
|
|
1901
|
-
*/
|
|
1902
|
-
mode?: UpdateBruteForceSettingsRequestContent.Mode;
|
|
1911
|
+
mode?: Management.BruteForceProtectionModeEnum;
|
|
1903
1912
|
/** Maximum number of unsuccessful attempts. */
|
|
1904
1913
|
max_attempts?: number;
|
|
1905
1914
|
}
|
|
1906
|
-
export declare namespace UpdateBruteForceSettingsRequestContent {
|
|
1907
|
-
type Shields = Shields.Item[];
|
|
1908
|
-
namespace Shields {
|
|
1909
|
-
const Item: {
|
|
1910
|
-
readonly Block: "block";
|
|
1911
|
-
readonly UserNotification: "user_notification";
|
|
1912
|
-
};
|
|
1913
|
-
type Item = (typeof Item)[keyof typeof Item];
|
|
1914
|
-
}
|
|
1915
|
-
/**
|
|
1916
|
-
* Account Lockout: Determines whether or not IP address is used when counting failed attempts.
|
|
1917
|
-
* Possible values: <code>count_per_identifier_and_ip</code>, <code>count_per_identifier</code>.
|
|
1918
|
-
*/
|
|
1919
|
-
const Mode: {
|
|
1920
|
-
readonly CountPerIdentifierAndIp: "count_per_identifier_and_ip";
|
|
1921
|
-
readonly CountPerIdentifier: "count_per_identifier";
|
|
1922
|
-
};
|
|
1923
|
-
type Mode = (typeof Mode)[keyof typeof Mode];
|
|
1924
|
-
}
|
|
1925
1915
|
/**
|
|
1926
1916
|
* @example
|
|
1927
1917
|
* {}
|
|
@@ -2418,7 +2408,7 @@ export interface CreateEventStreamRedeliveryRequestContent {
|
|
|
2418
2408
|
* take: 1
|
|
2419
2409
|
* }
|
|
2420
2410
|
*/
|
|
2421
|
-
export interface
|
|
2411
|
+
export interface ListFlowExecutionsRequestParameters {
|
|
2422
2412
|
/** Optional Id from which to start selection. */
|
|
2423
2413
|
from?: string | null;
|
|
2424
2414
|
/** Number of results per page. Defaults to 50. */
|
|
@@ -2428,9 +2418,9 @@ export interface ExecutionsListRequest {
|
|
|
2428
2418
|
* @example
|
|
2429
2419
|
* {}
|
|
2430
2420
|
*/
|
|
2431
|
-
export interface
|
|
2421
|
+
export interface GetFlowExecutionRequestParameters {
|
|
2432
2422
|
/** Hydration param */
|
|
2433
|
-
hydrate?: (Management.
|
|
2423
|
+
hydrate?: (Management.GetFlowExecutionRequestParametersHydrateEnum | null) | (Management.GetFlowExecutionRequestParametersHydrateEnum | null)[];
|
|
2434
2424
|
}
|
|
2435
2425
|
/**
|
|
2436
2426
|
* @example
|
|
@@ -3244,7 +3234,7 @@ export interface UpdateTenantSettingsRequestContent {
|
|
|
3244
3234
|
/** The default absolute redirection uri, must be https */
|
|
3245
3235
|
default_redirection_uri?: string;
|
|
3246
3236
|
/** Supported locales for the user interface */
|
|
3247
|
-
enabled_locales?:
|
|
3237
|
+
enabled_locales?: Management.TenantSettingsSupportedLocalesEnum[];
|
|
3248
3238
|
session_cookie?: Management.SessionCookieSchema | null;
|
|
3249
3239
|
sessions?: Management.TenantSettingsSessions | null;
|
|
3250
3240
|
oidc_logout?: Management.TenantOidcLogoutSettings;
|
|
@@ -3268,95 +3258,8 @@ export interface UpdateTenantSettingsRequestContent {
|
|
|
3268
3258
|
resource_parameter_profile?: Management.TenantSettingsResourceParameterProfile;
|
|
3269
3259
|
/** Whether Auth0 Guide (AI-powered assistance) is enabled for this tenant. */
|
|
3270
3260
|
enable_ai_guide?: boolean;
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
type EnabledLocales = EnabledLocales.Item[];
|
|
3274
|
-
namespace EnabledLocales {
|
|
3275
|
-
const Item: {
|
|
3276
|
-
readonly Am: "am";
|
|
3277
|
-
readonly Ar: "ar";
|
|
3278
|
-
readonly ArEg: "ar-EG";
|
|
3279
|
-
readonly ArSa: "ar-SA";
|
|
3280
|
-
readonly Az: "az";
|
|
3281
|
-
readonly Bg: "bg";
|
|
3282
|
-
readonly Bn: "bn";
|
|
3283
|
-
readonly Bs: "bs";
|
|
3284
|
-
readonly CaEs: "ca-ES";
|
|
3285
|
-
readonly Cnr: "cnr";
|
|
3286
|
-
readonly Cs: "cs";
|
|
3287
|
-
readonly Cy: "cy";
|
|
3288
|
-
readonly Da: "da";
|
|
3289
|
-
readonly De: "de";
|
|
3290
|
-
readonly El: "el";
|
|
3291
|
-
readonly En: "en";
|
|
3292
|
-
readonly EnCa: "en-CA";
|
|
3293
|
-
readonly Es: "es";
|
|
3294
|
-
readonly Es419: "es-419";
|
|
3295
|
-
readonly EsAr: "es-AR";
|
|
3296
|
-
readonly EsMx: "es-MX";
|
|
3297
|
-
readonly Et: "et";
|
|
3298
|
-
readonly EuEs: "eu-ES";
|
|
3299
|
-
readonly Fa: "fa";
|
|
3300
|
-
readonly Fi: "fi";
|
|
3301
|
-
readonly Fr: "fr";
|
|
3302
|
-
readonly FrCa: "fr-CA";
|
|
3303
|
-
readonly FrFr: "fr-FR";
|
|
3304
|
-
readonly GlEs: "gl-ES";
|
|
3305
|
-
readonly Gu: "gu";
|
|
3306
|
-
readonly He: "he";
|
|
3307
|
-
readonly Hi: "hi";
|
|
3308
|
-
readonly Hr: "hr";
|
|
3309
|
-
readonly Hu: "hu";
|
|
3310
|
-
readonly Hy: "hy";
|
|
3311
|
-
readonly Id: "id";
|
|
3312
|
-
readonly Is: "is";
|
|
3313
|
-
readonly It: "it";
|
|
3314
|
-
readonly Ja: "ja";
|
|
3315
|
-
readonly Ka: "ka";
|
|
3316
|
-
readonly Kk: "kk";
|
|
3317
|
-
readonly Kn: "kn";
|
|
3318
|
-
readonly Ko: "ko";
|
|
3319
|
-
readonly Lt: "lt";
|
|
3320
|
-
readonly Lv: "lv";
|
|
3321
|
-
readonly Mk: "mk";
|
|
3322
|
-
readonly Ml: "ml";
|
|
3323
|
-
readonly Mn: "mn";
|
|
3324
|
-
readonly Mr: "mr";
|
|
3325
|
-
readonly Ms: "ms";
|
|
3326
|
-
readonly My: "my";
|
|
3327
|
-
readonly Nb: "nb";
|
|
3328
|
-
readonly Nl: "nl";
|
|
3329
|
-
readonly Nn: "nn";
|
|
3330
|
-
readonly No: "no";
|
|
3331
|
-
readonly Pa: "pa";
|
|
3332
|
-
readonly Pl: "pl";
|
|
3333
|
-
readonly Pt: "pt";
|
|
3334
|
-
readonly PtBr: "pt-BR";
|
|
3335
|
-
readonly PtPt: "pt-PT";
|
|
3336
|
-
readonly Ro: "ro";
|
|
3337
|
-
readonly Ru: "ru";
|
|
3338
|
-
readonly Sk: "sk";
|
|
3339
|
-
readonly Sl: "sl";
|
|
3340
|
-
readonly So: "so";
|
|
3341
|
-
readonly Sq: "sq";
|
|
3342
|
-
readonly Sr: "sr";
|
|
3343
|
-
readonly Sv: "sv";
|
|
3344
|
-
readonly Sw: "sw";
|
|
3345
|
-
readonly Ta: "ta";
|
|
3346
|
-
readonly Te: "te";
|
|
3347
|
-
readonly Th: "th";
|
|
3348
|
-
readonly Tl: "tl";
|
|
3349
|
-
readonly Tr: "tr";
|
|
3350
|
-
readonly Uk: "uk";
|
|
3351
|
-
readonly Ur: "ur";
|
|
3352
|
-
readonly Vi: "vi";
|
|
3353
|
-
readonly Zgh: "zgh";
|
|
3354
|
-
readonly ZhCn: "zh-CN";
|
|
3355
|
-
readonly ZhHk: "zh-HK";
|
|
3356
|
-
readonly ZhTw: "zh-TW";
|
|
3357
|
-
};
|
|
3358
|
-
type Item = (typeof Item)[keyof typeof Item];
|
|
3359
|
-
}
|
|
3261
|
+
/** Whether Phone Consolidated Experience is enabled for this tenant. */
|
|
3262
|
+
phone_consolidated_experience?: boolean;
|
|
3360
3263
|
}
|
|
3361
3264
|
/**
|
|
3362
3265
|
* @example
|
|
@@ -3635,7 +3538,7 @@ export interface CreateVerifiableCredentialTemplateRequestContent {
|
|
|
3635
3538
|
type: string;
|
|
3636
3539
|
dialect: string;
|
|
3637
3540
|
presentation: Management.MdlPresentationRequest;
|
|
3638
|
-
custom_certificate_authority?: string;
|
|
3541
|
+
custom_certificate_authority?: string | null;
|
|
3639
3542
|
well_known_trusted_issuers: string;
|
|
3640
3543
|
}
|
|
3641
3544
|
/**
|
|
@@ -3643,10 +3546,10 @@ export interface CreateVerifiableCredentialTemplateRequestContent {
|
|
|
3643
3546
|
* {}
|
|
3644
3547
|
*/
|
|
3645
3548
|
export interface UpdateVerifiableCredentialTemplateRequestContent {
|
|
3646
|
-
name?: string;
|
|
3647
|
-
type?: string;
|
|
3648
|
-
dialect?: string;
|
|
3549
|
+
name?: string | null;
|
|
3550
|
+
type?: string | null;
|
|
3551
|
+
dialect?: string | null;
|
|
3649
3552
|
presentation?: Management.MdlPresentationRequest;
|
|
3650
|
-
well_known_trusted_issuers?: string;
|
|
3651
|
-
version?: number;
|
|
3553
|
+
well_known_trusted_issuers?: string | null;
|
|
3554
|
+
version?: number | null;
|
|
3652
3555
|
}
|
|
@@ -1,111 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.UpdateTenantSettingsRequestContent = exports.UpdateBruteForceSettingsRequestContent = void 0;
|
|
5
|
-
var UpdateBruteForceSettingsRequestContent;
|
|
6
|
-
(function (UpdateBruteForceSettingsRequestContent) {
|
|
7
|
-
let Shields;
|
|
8
|
-
(function (Shields) {
|
|
9
|
-
Shields.Item = {
|
|
10
|
-
Block: "block",
|
|
11
|
-
UserNotification: "user_notification",
|
|
12
|
-
};
|
|
13
|
-
})(Shields = UpdateBruteForceSettingsRequestContent.Shields || (UpdateBruteForceSettingsRequestContent.Shields = {}));
|
|
14
|
-
/**
|
|
15
|
-
* Account Lockout: Determines whether or not IP address is used when counting failed attempts.
|
|
16
|
-
* Possible values: <code>count_per_identifier_and_ip</code>, <code>count_per_identifier</code>.
|
|
17
|
-
*/
|
|
18
|
-
UpdateBruteForceSettingsRequestContent.Mode = {
|
|
19
|
-
CountPerIdentifierAndIp: "count_per_identifier_and_ip",
|
|
20
|
-
CountPerIdentifier: "count_per_identifier",
|
|
21
|
-
};
|
|
22
|
-
})(UpdateBruteForceSettingsRequestContent || (exports.UpdateBruteForceSettingsRequestContent = UpdateBruteForceSettingsRequestContent = {}));
|
|
23
|
-
var UpdateTenantSettingsRequestContent;
|
|
24
|
-
(function (UpdateTenantSettingsRequestContent) {
|
|
25
|
-
let EnabledLocales;
|
|
26
|
-
(function (EnabledLocales) {
|
|
27
|
-
EnabledLocales.Item = {
|
|
28
|
-
Am: "am",
|
|
29
|
-
Ar: "ar",
|
|
30
|
-
ArEg: "ar-EG",
|
|
31
|
-
ArSa: "ar-SA",
|
|
32
|
-
Az: "az",
|
|
33
|
-
Bg: "bg",
|
|
34
|
-
Bn: "bn",
|
|
35
|
-
Bs: "bs",
|
|
36
|
-
CaEs: "ca-ES",
|
|
37
|
-
Cnr: "cnr",
|
|
38
|
-
Cs: "cs",
|
|
39
|
-
Cy: "cy",
|
|
40
|
-
Da: "da",
|
|
41
|
-
De: "de",
|
|
42
|
-
El: "el",
|
|
43
|
-
En: "en",
|
|
44
|
-
EnCa: "en-CA",
|
|
45
|
-
Es: "es",
|
|
46
|
-
Es419: "es-419",
|
|
47
|
-
EsAr: "es-AR",
|
|
48
|
-
EsMx: "es-MX",
|
|
49
|
-
Et: "et",
|
|
50
|
-
EuEs: "eu-ES",
|
|
51
|
-
Fa: "fa",
|
|
52
|
-
Fi: "fi",
|
|
53
|
-
Fr: "fr",
|
|
54
|
-
FrCa: "fr-CA",
|
|
55
|
-
FrFr: "fr-FR",
|
|
56
|
-
GlEs: "gl-ES",
|
|
57
|
-
Gu: "gu",
|
|
58
|
-
He: "he",
|
|
59
|
-
Hi: "hi",
|
|
60
|
-
Hr: "hr",
|
|
61
|
-
Hu: "hu",
|
|
62
|
-
Hy: "hy",
|
|
63
|
-
Id: "id",
|
|
64
|
-
Is: "is",
|
|
65
|
-
It: "it",
|
|
66
|
-
Ja: "ja",
|
|
67
|
-
Ka: "ka",
|
|
68
|
-
Kk: "kk",
|
|
69
|
-
Kn: "kn",
|
|
70
|
-
Ko: "ko",
|
|
71
|
-
Lt: "lt",
|
|
72
|
-
Lv: "lv",
|
|
73
|
-
Mk: "mk",
|
|
74
|
-
Ml: "ml",
|
|
75
|
-
Mn: "mn",
|
|
76
|
-
Mr: "mr",
|
|
77
|
-
Ms: "ms",
|
|
78
|
-
My: "my",
|
|
79
|
-
Nb: "nb",
|
|
80
|
-
Nl: "nl",
|
|
81
|
-
Nn: "nn",
|
|
82
|
-
No: "no",
|
|
83
|
-
Pa: "pa",
|
|
84
|
-
Pl: "pl",
|
|
85
|
-
Pt: "pt",
|
|
86
|
-
PtBr: "pt-BR",
|
|
87
|
-
PtPt: "pt-PT",
|
|
88
|
-
Ro: "ro",
|
|
89
|
-
Ru: "ru",
|
|
90
|
-
Sk: "sk",
|
|
91
|
-
Sl: "sl",
|
|
92
|
-
So: "so",
|
|
93
|
-
Sq: "sq",
|
|
94
|
-
Sr: "sr",
|
|
95
|
-
Sv: "sv",
|
|
96
|
-
Sw: "sw",
|
|
97
|
-
Ta: "ta",
|
|
98
|
-
Te: "te",
|
|
99
|
-
Th: "th",
|
|
100
|
-
Tl: "tl",
|
|
101
|
-
Tr: "tr",
|
|
102
|
-
Uk: "uk",
|
|
103
|
-
Ur: "ur",
|
|
104
|
-
Vi: "vi",
|
|
105
|
-
Zgh: "zgh",
|
|
106
|
-
ZhCn: "zh-CN",
|
|
107
|
-
ZhHk: "zh-HK",
|
|
108
|
-
ZhTw: "zh-TW",
|
|
109
|
-
};
|
|
110
|
-
})(EnabledLocales = UpdateTenantSettingsRequestContent.EnabledLocales || (UpdateTenantSettingsRequestContent.EnabledLocales = {}));
|
|
111
|
-
})(UpdateTenantSettingsRequestContent || (exports.UpdateTenantSettingsRequestContent = UpdateTenantSettingsRequestContent = {}));
|
|
@@ -14,6 +14,7 @@ export declare class VersionsClient {
|
|
|
14
14
|
* List all published versions of a specific Actions Module.
|
|
15
15
|
*
|
|
16
16
|
* @param {string} id - The unique ID of the module.
|
|
17
|
+
* @param {Management.GetActionModuleVersionsRequestParameters} request
|
|
17
18
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
19
|
*
|
|
19
20
|
* @throws {@link Management.BadRequestError}
|
|
@@ -23,10 +24,12 @@ export declare class VersionsClient {
|
|
|
23
24
|
* @throws {@link Management.TooManyRequestsError}
|
|
24
25
|
*
|
|
25
26
|
* @example
|
|
26
|
-
* await client.actions.modules.versions.list("id"
|
|
27
|
+
* await client.actions.modules.versions.list("id", {
|
|
28
|
+
* page: 1,
|
|
29
|
+
* per_page: 1
|
|
30
|
+
* })
|
|
27
31
|
*/
|
|
28
|
-
list(id: string, requestOptions?: VersionsClient.RequestOptions): core.
|
|
29
|
-
private __list;
|
|
32
|
+
list(id: string, request?: Management.GetActionModuleVersionsRequestParameters, requestOptions?: VersionsClient.RequestOptions): Promise<core.Page<Management.ActionModuleVersion, Management.GetActionModuleVersionsResponseContent>>;
|
|
30
33
|
/**
|
|
31
34
|
* Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development.
|
|
32
35
|
*
|
|
@@ -59,6 +59,7 @@ class VersionsClient {
|
|
|
59
59
|
* List all published versions of a specific Actions Module.
|
|
60
60
|
*
|
|
61
61
|
* @param {string} id - The unique ID of the module.
|
|
62
|
+
* @param {Management.GetActionModuleVersionsRequestParameters} request
|
|
62
63
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link Management.BadRequestError}
|
|
@@ -68,54 +69,76 @@ class VersionsClient {
|
|
|
68
69
|
* @throws {@link Management.TooManyRequestsError}
|
|
69
70
|
*
|
|
70
71
|
* @example
|
|
71
|
-
* await client.actions.modules.versions.list("id"
|
|
72
|
+
* await client.actions.modules.versions.list("id", {
|
|
73
|
+
* page: 1,
|
|
74
|
+
* per_page: 1
|
|
75
|
+
* })
|
|
72
76
|
*/
|
|
73
|
-
list(
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
82
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `actions/modules/${core.url.encodePathParam(id)}/versions`),
|
|
83
|
-
method: "GET",
|
|
84
|
-
headers: _headers,
|
|
85
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
86
|
-
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
87
|
-
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
88
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
89
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
90
|
-
logging: this._options.logging,
|
|
91
|
-
});
|
|
92
|
-
if (_response.ok) {
|
|
93
|
-
return {
|
|
94
|
-
data: _response.body,
|
|
95
|
-
rawResponse: _response.rawResponse,
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
if (_response.error.reason === "status-code") {
|
|
99
|
-
switch (_response.error.statusCode) {
|
|
100
|
-
case 400:
|
|
101
|
-
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
102
|
-
case 401:
|
|
103
|
-
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
104
|
-
case 403:
|
|
105
|
-
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
106
|
-
case 404:
|
|
107
|
-
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
108
|
-
case 429:
|
|
109
|
-
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
110
|
-
default:
|
|
111
|
-
throw new errors.ManagementError({
|
|
112
|
-
statusCode: _response.error.statusCode,
|
|
113
|
-
body: _response.error.body,
|
|
114
|
-
rawResponse: _response.rawResponse,
|
|
115
|
-
});
|
|
77
|
+
list(id_1) {
|
|
78
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
79
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
81
|
+
const { page = 0, per_page: perPage = 50 } = request;
|
|
82
|
+
const _queryParams = {};
|
|
83
|
+
if (page !== undefined) {
|
|
84
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
116
85
|
}
|
|
117
|
-
|
|
118
|
-
|
|
86
|
+
if (perPage !== undefined) {
|
|
87
|
+
_queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
|
|
88
|
+
}
|
|
89
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
90
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
91
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
92
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ManagementEnvironment.Default, `actions/modules/${core.url.encodePathParam(id)}/versions`),
|
|
93
|
+
method: "GET",
|
|
94
|
+
headers: _headers,
|
|
95
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
96
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
97
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
98
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
100
|
+
logging: this._options.logging,
|
|
101
|
+
});
|
|
102
|
+
if (_response.ok) {
|
|
103
|
+
return {
|
|
104
|
+
data: _response.body,
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
if (_response.error.reason === "status-code") {
|
|
109
|
+
switch (_response.error.statusCode) {
|
|
110
|
+
case 400:
|
|
111
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
112
|
+
case 401:
|
|
113
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
114
|
+
case 403:
|
|
115
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 404:
|
|
117
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
118
|
+
case 429:
|
|
119
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
120
|
+
default:
|
|
121
|
+
throw new errors.ManagementError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
body: _response.error.body,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/actions/modules/{id}/versions");
|
|
129
|
+
}));
|
|
130
|
+
let _offset = (request === null || request === void 0 ? void 0 : request.page) != null ? request === null || request === void 0 ? void 0 : request.page : 0;
|
|
131
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
132
|
+
return new core.Page({
|
|
133
|
+
response: dataWithRawResponse.data,
|
|
134
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
135
|
+
hasNextPage: (response) => { var _a, _b; return ((_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []).length >= Math.floor((_b = request === null || request === void 0 ? void 0 : request.per_page) !== null && _b !== void 0 ? _b : 50); },
|
|
136
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []; },
|
|
137
|
+
loadPage: (_response) => {
|
|
138
|
+
_offset += 1;
|
|
139
|
+
return list(core.setObjectProperty(request, "page", _offset));
|
|
140
|
+
},
|
|
141
|
+
});
|
|
119
142
|
});
|
|
120
143
|
}
|
|
121
144
|
/**
|
|
@@ -52,7 +52,7 @@ export declare class VersionsClient {
|
|
|
52
52
|
*
|
|
53
53
|
* @param {string} actionId - The ID of an action.
|
|
54
54
|
* @param {string} id - The ID of an action version.
|
|
55
|
-
* @param {Management.DeployActionVersionRequestContent |
|
|
55
|
+
* @param {Management.DeployActionVersionRequestContent | null} request
|
|
56
56
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
57
|
*
|
|
58
58
|
* @throws {@link Management.BadRequestError}
|
|
@@ -63,6 +63,6 @@ export declare class VersionsClient {
|
|
|
63
63
|
* @example
|
|
64
64
|
* await client.actions.versions.deploy("actionId", "id")
|
|
65
65
|
*/
|
|
66
|
-
deploy(actionId: string, id: string, request?: Management.DeployActionVersionRequestContent |
|
|
66
|
+
deploy(actionId: string, id: string, request?: Management.DeployActionVersionRequestContent | null, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Management.DeployActionVersionResponseContent>;
|
|
67
67
|
private __deploy;
|
|
68
68
|
}
|
|
@@ -207,7 +207,7 @@ class VersionsClient {
|
|
|
207
207
|
*
|
|
208
208
|
* @param {string} actionId - The ID of an action.
|
|
209
209
|
* @param {string} id - The ID of an action version.
|
|
210
|
-
* @param {Management.DeployActionVersionRequestContent |
|
|
210
|
+
* @param {Management.DeployActionVersionRequestContent | null} request
|
|
211
211
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
212
212
|
*
|
|
213
213
|
* @throws {@link Management.BadRequestError}
|
|
@@ -17,7 +17,7 @@ export declare class FlowsClient {
|
|
|
17
17
|
get executions(): ExecutionsClient;
|
|
18
18
|
get vault(): VaultClient;
|
|
19
19
|
/**
|
|
20
|
-
* @param {Management.
|
|
20
|
+
* @param {Management.ListFlowsRequestParameters} request
|
|
21
21
|
* @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
22
22
|
*
|
|
23
23
|
* @throws {@link Management.BadRequestError}
|
|
@@ -33,7 +33,7 @@ export declare class FlowsClient {
|
|
|
33
33
|
* synchronous: true
|
|
34
34
|
* })
|
|
35
35
|
*/
|
|
36
|
-
list(request?: Management.
|
|
36
|
+
list(request?: Management.ListFlowsRequestParameters, requestOptions?: FlowsClient.RequestOptions): Promise<core.Page<Management.FlowSummary, Management.ListFlowsOffsetPaginatedResponseContent>>;
|
|
37
37
|
/**
|
|
38
38
|
* @param {Management.CreateFlowRequestContent} request
|
|
39
39
|
* @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -66,7 +66,7 @@ class FlowsClient {
|
|
|
66
66
|
return ((_a = this._vault) !== null && _a !== void 0 ? _a : (this._vault = new Client_js_2.VaultClient(this._options)));
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
* @param {Management.
|
|
69
|
+
* @param {Management.ListFlowsRequestParameters} request
|
|
70
70
|
* @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link Management.BadRequestError}
|
|
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client/index.js"), exports);
|
|
18
18
|
__exportStar(require("./resources/index.js"), exports);
|
|
19
|
-
__exportStar(require("./types/index.js"), exports);
|
|
@@ -12,7 +12,7 @@ export declare class ExecutionsClient {
|
|
|
12
12
|
constructor(options: ExecutionsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {string} flow_id - Flow id
|
|
15
|
-
* @param {Management.
|
|
15
|
+
* @param {Management.ListFlowExecutionsRequestParameters} request
|
|
16
16
|
* @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
17
|
*
|
|
18
18
|
* @throws {@link Management.BadRequestError}
|
|
@@ -26,11 +26,11 @@ export declare class ExecutionsClient {
|
|
|
26
26
|
* take: 1
|
|
27
27
|
* })
|
|
28
28
|
*/
|
|
29
|
-
list(flow_id: string, request?: Management.
|
|
29
|
+
list(flow_id: string, request?: Management.ListFlowExecutionsRequestParameters, requestOptions?: ExecutionsClient.RequestOptions): Promise<core.Page<Management.FlowExecutionSummary, Management.ListFlowExecutionsPaginatedResponseContent>>;
|
|
30
30
|
/**
|
|
31
31
|
* @param {string} flow_id - Flow id
|
|
32
32
|
* @param {string} execution_id - Flow execution id
|
|
33
|
-
* @param {Management.
|
|
33
|
+
* @param {Management.GetFlowExecutionRequestParameters} request
|
|
34
34
|
* @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
35
|
*
|
|
36
36
|
* @throws {@link Management.BadRequestError}
|
|
@@ -41,7 +41,7 @@ export declare class ExecutionsClient {
|
|
|
41
41
|
* @example
|
|
42
42
|
* await client.flows.executions.get("flow_id", "execution_id")
|
|
43
43
|
*/
|
|
44
|
-
get(flow_id: string, execution_id: string, request?: Management.
|
|
44
|
+
get(flow_id: string, execution_id: string, request?: Management.GetFlowExecutionRequestParameters, requestOptions?: ExecutionsClient.RequestOptions): core.HttpResponsePromise<Management.GetFlowExecutionResponseContent>;
|
|
45
45
|
private __get;
|
|
46
46
|
/**
|
|
47
47
|
* @param {string} flow_id - Flows id
|
|
@@ -57,7 +57,7 @@ class ExecutionsClient {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* @param {string} flow_id - Flow id
|
|
60
|
-
* @param {Management.
|
|
60
|
+
* @param {Management.ListFlowExecutionsRequestParameters} request
|
|
61
61
|
* @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @throws {@link Management.BadRequestError}
|
|
@@ -137,7 +137,7 @@ class ExecutionsClient {
|
|
|
137
137
|
/**
|
|
138
138
|
* @param {string} flow_id - Flow id
|
|
139
139
|
* @param {string} execution_id - Flow execution id
|
|
140
|
-
* @param {Management.
|
|
140
|
+
* @param {Management.GetFlowExecutionRequestParameters} request
|
|
141
141
|
* @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
142
|
*
|
|
143
143
|
* @throws {@link Management.BadRequestError}
|
|
@@ -32,11 +32,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
36
|
exports.vault = exports.executions = void 0;
|
|
40
37
|
exports.executions = __importStar(require("./executions/index.js"));
|
|
41
|
-
__exportStar(require("./executions/types/index.js"), exports);
|
|
42
38
|
exports.vault = __importStar(require("./vault/index.js"));
|
|
@@ -13,7 +13,6 @@ export * as emailTemplates from "./emailTemplates/index.js";
|
|
|
13
13
|
export * as eventStreams from "./eventStreams/index.js";
|
|
14
14
|
export * from "./eventStreams/types/index.js";
|
|
15
15
|
export * as flows from "./flows/index.js";
|
|
16
|
-
export * from "./flows/types/index.js";
|
|
17
16
|
export * as forms from "./forms/index.js";
|
|
18
17
|
export * as groups from "./groups/index.js";
|
|
19
18
|
export * as guardian from "./guardian/index.js";
|