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.
Files changed (62) hide show
  1. package/dist/cjs/management/api/requests/requests.d.ts +29 -126
  2. package/dist/cjs/management/api/requests/requests.js +0 -108
  3. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.ts +6 -3
  4. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +69 -46
  5. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.d.ts +2 -2
  6. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +1 -1
  7. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -2
  8. package/dist/cjs/management/api/resources/flows/client/Client.js +1 -1
  9. package/dist/cjs/management/api/resources/flows/index.d.ts +0 -1
  10. package/dist/cjs/management/api/resources/flows/index.js +0 -1
  11. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +4 -4
  12. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +2 -2
  13. package/dist/cjs/management/api/resources/flows/resources/executions/index.d.ts +0 -1
  14. package/dist/cjs/management/api/resources/flows/resources/executions/index.js +0 -1
  15. package/dist/cjs/management/api/resources/flows/resources/index.d.ts +0 -1
  16. package/dist/cjs/management/api/resources/flows/resources/index.js +0 -4
  17. package/dist/cjs/management/api/resources/index.d.ts +0 -1
  18. package/dist/cjs/management/api/resources/index.js +0 -1
  19. package/dist/cjs/management/api/types/types.d.ts +1013 -547
  20. package/dist/cjs/management/api/types/types.js +426 -429
  21. package/dist/cjs/management/version.d.ts +1 -1
  22. package/dist/cjs/management/version.js +1 -1
  23. package/dist/esm/management/api/requests/requests.d.mts +29 -126
  24. package/dist/esm/management/api/requests/requests.mjs +1 -107
  25. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.mts +6 -3
  26. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +69 -46
  27. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.d.mts +2 -2
  28. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +1 -1
  29. package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -2
  30. package/dist/esm/management/api/resources/flows/client/Client.mjs +1 -1
  31. package/dist/esm/management/api/resources/flows/index.d.mts +0 -1
  32. package/dist/esm/management/api/resources/flows/index.mjs +0 -1
  33. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +4 -4
  34. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +2 -2
  35. package/dist/esm/management/api/resources/flows/resources/executions/index.d.mts +0 -1
  36. package/dist/esm/management/api/resources/flows/resources/executions/index.mjs +0 -1
  37. package/dist/esm/management/api/resources/flows/resources/index.d.mts +0 -1
  38. package/dist/esm/management/api/resources/flows/resources/index.mjs +0 -1
  39. package/dist/esm/management/api/resources/index.d.mts +0 -1
  40. package/dist/esm/management/api/resources/index.mjs +0 -1
  41. package/dist/esm/management/api/types/types.d.mts +1013 -547
  42. package/dist/esm/management/api/types/types.mjs +416 -419
  43. package/dist/esm/management/version.d.mts +1 -1
  44. package/dist/esm/management/version.mjs +1 -1
  45. package/package.json +1 -1
  46. package/reference.md +32 -6
  47. package/dist/cjs/management/api/resources/flows/resources/executions/types/index.d.ts +0 -1
  48. package/dist/cjs/management/api/resources/flows/resources/executions/types/index.js +0 -17
  49. package/dist/cjs/management/api/resources/flows/resources/executions/types/types.d.ts +0 -4
  50. package/dist/cjs/management/api/resources/flows/resources/executions/types/types.js +0 -7
  51. package/dist/cjs/management/api/resources/flows/types/index.d.ts +0 -1
  52. package/dist/cjs/management/api/resources/flows/types/index.js +0 -17
  53. package/dist/cjs/management/api/resources/flows/types/types.d.ts +0 -4
  54. package/dist/cjs/management/api/resources/flows/types/types.js +0 -7
  55. package/dist/esm/management/api/resources/flows/resources/executions/types/index.d.mts +0 -1
  56. package/dist/esm/management/api/resources/flows/resources/executions/types/index.mjs +0 -1
  57. package/dist/esm/management/api/resources/flows/resources/executions/types/types.d.mts +0 -4
  58. package/dist/esm/management/api/resources/flows/resources/executions/types/types.mjs +0 -4
  59. package/dist/esm/management/api/resources/flows/types/index.d.mts +0 -1
  60. package/dist/esm/management/api/resources/flows/types/index.mjs +0 -1
  61. package/dist/esm/management/api/resources/flows/types/types.d.mts +0 -4
  62. package/dist/esm/management/api/resources/flows/types/types.mjs +0 -4
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.3.0";
1
+ export declare const SDK_VERSION = "5.3.1";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "5.3.0";
4
+ exports.SDK_VERSION = "5.3.1";
@@ -730,7 +730,7 @@ export interface CreateEventStreamTestEventRequestContent {
730
730
  * synchronous: true
731
731
  * }
732
732
  */
733
- export interface FlowsListRequest {
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.FlowsListRequestHydrateItem | null) | (Management.FlowsListRequestHydrateItem | null)[];
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?: UpdateBruteForceSettingsRequestContent.Shields.Item[];
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 ExecutionsListRequest {
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 ExecutionsGetRequest {
2421
+ export interface GetFlowExecutionRequestParameters {
2432
2422
  /** Hydration param */
2433
- hydrate?: (Management.flows.ExecutionsGetRequestHydrateItem | null) | (Management.flows.ExecutionsGetRequestHydrateItem | null)[];
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?: UpdateTenantSettingsRequestContent.EnabledLocales.Item[];
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
- export declare namespace UpdateTenantSettingsRequestContent {
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,108 +1,2 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export var UpdateBruteForceSettingsRequestContent;
3
- (function (UpdateBruteForceSettingsRequestContent) {
4
- let Shields;
5
- (function (Shields) {
6
- Shields.Item = {
7
- Block: "block",
8
- UserNotification: "user_notification",
9
- };
10
- })(Shields = UpdateBruteForceSettingsRequestContent.Shields || (UpdateBruteForceSettingsRequestContent.Shields = {}));
11
- /**
12
- * Account Lockout: Determines whether or not IP address is used when counting failed attempts.
13
- * Possible values: <code>count_per_identifier_and_ip</code>, <code>count_per_identifier</code>.
14
- */
15
- UpdateBruteForceSettingsRequestContent.Mode = {
16
- CountPerIdentifierAndIp: "count_per_identifier_and_ip",
17
- CountPerIdentifier: "count_per_identifier",
18
- };
19
- })(UpdateBruteForceSettingsRequestContent || (UpdateBruteForceSettingsRequestContent = {}));
20
- export var UpdateTenantSettingsRequestContent;
21
- (function (UpdateTenantSettingsRequestContent) {
22
- let EnabledLocales;
23
- (function (EnabledLocales) {
24
- EnabledLocales.Item = {
25
- Am: "am",
26
- Ar: "ar",
27
- ArEg: "ar-EG",
28
- ArSa: "ar-SA",
29
- Az: "az",
30
- Bg: "bg",
31
- Bn: "bn",
32
- Bs: "bs",
33
- CaEs: "ca-ES",
34
- Cnr: "cnr",
35
- Cs: "cs",
36
- Cy: "cy",
37
- Da: "da",
38
- De: "de",
39
- El: "el",
40
- En: "en",
41
- EnCa: "en-CA",
42
- Es: "es",
43
- Es419: "es-419",
44
- EsAr: "es-AR",
45
- EsMx: "es-MX",
46
- Et: "et",
47
- EuEs: "eu-ES",
48
- Fa: "fa",
49
- Fi: "fi",
50
- Fr: "fr",
51
- FrCa: "fr-CA",
52
- FrFr: "fr-FR",
53
- GlEs: "gl-ES",
54
- Gu: "gu",
55
- He: "he",
56
- Hi: "hi",
57
- Hr: "hr",
58
- Hu: "hu",
59
- Hy: "hy",
60
- Id: "id",
61
- Is: "is",
62
- It: "it",
63
- Ja: "ja",
64
- Ka: "ka",
65
- Kk: "kk",
66
- Kn: "kn",
67
- Ko: "ko",
68
- Lt: "lt",
69
- Lv: "lv",
70
- Mk: "mk",
71
- Ml: "ml",
72
- Mn: "mn",
73
- Mr: "mr",
74
- Ms: "ms",
75
- My: "my",
76
- Nb: "nb",
77
- Nl: "nl",
78
- Nn: "nn",
79
- No: "no",
80
- Pa: "pa",
81
- Pl: "pl",
82
- Pt: "pt",
83
- PtBr: "pt-BR",
84
- PtPt: "pt-PT",
85
- Ro: "ro",
86
- Ru: "ru",
87
- Sk: "sk",
88
- Sl: "sl",
89
- So: "so",
90
- Sq: "sq",
91
- Sr: "sr",
92
- Sv: "sv",
93
- Sw: "sw",
94
- Ta: "ta",
95
- Te: "te",
96
- Th: "th",
97
- Tl: "tl",
98
- Tr: "tr",
99
- Uk: "uk",
100
- Ur: "ur",
101
- Vi: "vi",
102
- Zgh: "zgh",
103
- ZhCn: "zh-CN",
104
- ZhHk: "zh-HK",
105
- ZhTw: "zh-TW",
106
- };
107
- })(EnabledLocales = UpdateTenantSettingsRequestContent.EnabledLocales || (UpdateTenantSettingsRequestContent.EnabledLocales = {}));
108
- })(UpdateTenantSettingsRequestContent || (UpdateTenantSettingsRequestContent = {}));
2
+ export {};
@@ -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.HttpResponsePromise<Management.GetActionModuleVersionsResponseContent>;
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
  *
@@ -23,6 +23,7 @@ export class VersionsClient {
23
23
  * List all published versions of a specific Actions Module.
24
24
  *
25
25
  * @param {string} id - The unique ID of the module.
26
+ * @param {Management.GetActionModuleVersionsRequestParameters} request
26
27
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
27
28
  *
28
29
  * @throws {@link Management.BadRequestError}
@@ -32,54 +33,76 @@ export class VersionsClient {
32
33
  * @throws {@link Management.TooManyRequestsError}
33
34
  *
34
35
  * @example
35
- * await client.actions.modules.versions.list("id")
36
+ * await client.actions.modules.versions.list("id", {
37
+ * page: 1,
38
+ * per_page: 1
39
+ * })
36
40
  */
37
- list(id, requestOptions) {
38
- return core.HttpResponsePromise.fromPromise(this.__list(id, requestOptions));
39
- }
40
- __list(id, requestOptions) {
41
- return __awaiter(this, void 0, void 0, function* () {
42
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
43
- const _authRequest = yield this._options.authProvider.getAuthRequest();
44
- let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
45
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
46
- 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`),
47
- method: "GET",
48
- headers: _headers,
49
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
50
- 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,
51
- 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,
52
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
53
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
54
- logging: this._options.logging,
55
- });
56
- if (_response.ok) {
57
- return {
58
- data: _response.body,
59
- rawResponse: _response.rawResponse,
60
- };
61
- }
62
- if (_response.error.reason === "status-code") {
63
- switch (_response.error.statusCode) {
64
- case 400:
65
- throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
66
- case 401:
67
- throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
68
- case 403:
69
- throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
70
- case 404:
71
- throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
72
- case 429:
73
- throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
74
- default:
75
- throw new errors.ManagementError({
76
- statusCode: _response.error.statusCode,
77
- body: _response.error.body,
78
- rawResponse: _response.rawResponse,
79
- });
41
+ list(id_1) {
42
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
43
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
45
+ const { page = 0, per_page: perPage = 50 } = request;
46
+ const _queryParams = {};
47
+ if (page !== undefined) {
48
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
80
49
  }
81
- }
82
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/actions/modules/{id}/versions");
50
+ if (perPage !== undefined) {
51
+ _queryParams["per_page"] = (_b = perPage === null || perPage === void 0 ? void 0 : perPage.toString()) !== null && _b !== void 0 ? _b : null;
52
+ }
53
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
54
+ let _headers = mergeHeaders(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
55
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
56
+ 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`),
57
+ method: "GET",
58
+ headers: _headers,
59
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
60
+ 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,
61
+ 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,
62
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
63
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
64
+ logging: this._options.logging,
65
+ });
66
+ if (_response.ok) {
67
+ return {
68
+ data: _response.body,
69
+ rawResponse: _response.rawResponse,
70
+ };
71
+ }
72
+ if (_response.error.reason === "status-code") {
73
+ switch (_response.error.statusCode) {
74
+ case 400:
75
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
76
+ case 401:
77
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
78
+ case 403:
79
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
80
+ case 404:
81
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
82
+ case 429:
83
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
84
+ default:
85
+ throw new errors.ManagementError({
86
+ statusCode: _response.error.statusCode,
87
+ body: _response.error.body,
88
+ rawResponse: _response.rawResponse,
89
+ });
90
+ }
91
+ }
92
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/actions/modules/{id}/versions");
93
+ }));
94
+ let _offset = (request === null || request === void 0 ? void 0 : request.page) != null ? request === null || request === void 0 ? void 0 : request.page : 0;
95
+ const dataWithRawResponse = yield list(request).withRawResponse();
96
+ return new core.Page({
97
+ response: dataWithRawResponse.data,
98
+ rawResponse: dataWithRawResponse.rawResponse,
99
+ 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); },
100
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.versions) !== null && _a !== void 0 ? _a : []; },
101
+ loadPage: (_response) => {
102
+ _offset += 1;
103
+ return list(core.setObjectProperty(request, "page", _offset));
104
+ },
105
+ });
83
106
  });
84
107
  }
85
108
  /**
@@ -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 | undefined} request
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 | undefined, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Management.DeployActionVersionResponseContent>;
66
+ deploy(actionId: string, id: string, request?: Management.DeployActionVersionRequestContent | null, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Management.DeployActionVersionResponseContent>;
67
67
  private __deploy;
68
68
  }
@@ -171,7 +171,7 @@ export class VersionsClient {
171
171
  *
172
172
  * @param {string} actionId - The ID of an action.
173
173
  * @param {string} id - The ID of an action version.
174
- * @param {Management.DeployActionVersionRequestContent | undefined} request
174
+ * @param {Management.DeployActionVersionRequestContent | null} request
175
175
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
176
176
  *
177
177
  * @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.FlowsListRequest} request
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.FlowsListRequest, requestOptions?: FlowsClient.RequestOptions): Promise<core.Page<Management.FlowSummary, Management.ListFlowsOffsetPaginatedResponseContent>>;
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.
@@ -30,7 +30,7 @@ export class FlowsClient {
30
30
  return ((_a = this._vault) !== null && _a !== void 0 ? _a : (this._vault = new VaultClient(this._options)));
31
31
  }
32
32
  /**
33
- * @param {Management.FlowsListRequest} request
33
+ * @param {Management.ListFlowsRequestParameters} request
34
34
  * @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
35
35
  *
36
36
  * @throws {@link Management.BadRequestError}
@@ -1,3 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
2
  export * from "./resources/index.mjs";
3
- export * from "./types/index.mjs";
@@ -1,3 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
2
  export * from "./resources/index.mjs";
3
- export * from "./types/index.mjs";
@@ -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.ExecutionsListRequest} request
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.ExecutionsListRequest, requestOptions?: ExecutionsClient.RequestOptions): Promise<core.Page<Management.FlowExecutionSummary, Management.ListFlowExecutionsPaginatedResponseContent>>;
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.ExecutionsGetRequest} request
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.ExecutionsGetRequest, requestOptions?: ExecutionsClient.RequestOptions): core.HttpResponsePromise<Management.GetFlowExecutionResponseContent>;
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
@@ -21,7 +21,7 @@ export class ExecutionsClient {
21
21
  }
22
22
  /**
23
23
  * @param {string} flow_id - Flow id
24
- * @param {Management.ExecutionsListRequest} request
24
+ * @param {Management.ListFlowExecutionsRequestParameters} request
25
25
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
27
27
  * @throws {@link Management.BadRequestError}
@@ -101,7 +101,7 @@ export class ExecutionsClient {
101
101
  /**
102
102
  * @param {string} flow_id - Flow id
103
103
  * @param {string} execution_id - Flow execution id
104
- * @param {Management.ExecutionsGetRequest} request
104
+ * @param {Management.GetFlowExecutionRequestParameters} request
105
105
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
106
106
  *
107
107
  * @throws {@link Management.BadRequestError}
@@ -1,2 +1 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./types/index.mjs";
@@ -1,2 +1 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./types/index.mjs";
@@ -1,3 +1,2 @@
1
1
  export * as executions from "./executions/index.mjs";
2
- export * from "./executions/types/index.mjs";
3
2
  export * as vault from "./vault/index.mjs";
@@ -1,3 +1,2 @@
1
1
  export * as executions from "./executions/index.mjs";
2
- export * from "./executions/types/index.mjs";
3
2
  export * as vault from "./vault/index.mjs";
@@ -13,7 +13,6 @@ export * as emailTemplates from "./emailTemplates/index.mjs";
13
13
  export * as eventStreams from "./eventStreams/index.mjs";
14
14
  export * from "./eventStreams/types/index.mjs";
15
15
  export * as flows from "./flows/index.mjs";
16
- export * from "./flows/types/index.mjs";
17
16
  export * as forms from "./forms/index.mjs";
18
17
  export * as groups from "./groups/index.mjs";
19
18
  export * as guardian from "./guardian/index.mjs";