auth0 7.0.0 → 7.1.0

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 (110) hide show
  1. package/dist/cjs/management/Client.d.ts +5 -5
  2. package/dist/cjs/management/Client.js +28 -28
  3. package/dist/cjs/management/api/errors/GatewayTimeoutError.d.ts +5 -0
  4. package/dist/cjs/management/api/errors/GatewayTimeoutError.js +54 -0
  5. package/dist/cjs/management/api/errors/index.d.ts +1 -0
  6. package/dist/cjs/management/api/errors/index.js +1 -0
  7. package/dist/cjs/management/api/requests/requests.d.ts +112 -88
  8. package/dist/cjs/management/api/resources/experimentation/client/Client.d.ts +12 -0
  9. package/dist/cjs/management/api/resources/experimentation/client/Client.js +16 -0
  10. package/dist/cjs/management/api/resources/experimentation/exports.d.ts +3 -0
  11. package/dist/cjs/management/api/resources/experimentation/exports.js +22 -0
  12. package/dist/cjs/management/api/resources/experimentation/index.d.ts +2 -0
  13. package/dist/cjs/management/api/resources/experimentation/index.js +18 -0
  14. package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.d.ts +34 -0
  15. package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/Client.js +131 -0
  16. package/dist/cjs/management/api/resources/experimentation/resources/experiments/client/index.js +2 -0
  17. package/dist/cjs/management/api/resources/experimentation/resources/experiments/exports.d.ts +2 -0
  18. package/dist/cjs/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/exports.js +2 -2
  19. package/dist/cjs/management/api/resources/experimentation/resources/index.d.ts +1 -0
  20. package/dist/cjs/management/api/resources/experimentation/resources/index.js +37 -0
  21. package/dist/cjs/management/api/resources/guardian/client/Client.d.ts +40 -1
  22. package/dist/cjs/management/api/resources/guardian/client/Client.js +172 -0
  23. package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.d.ts +3 -0
  24. package/dist/cjs/management/api/resources/guardian/resources/factors/client/Client.js +11 -6
  25. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/client/Client.d.ts +46 -0
  26. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/client/Client.js +181 -0
  27. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/client/index.js +2 -0
  28. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/exports.d.ts +2 -0
  29. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/exports.js +21 -0
  30. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/index.d.ts +1 -0
  31. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/email/index.js +17 -0
  32. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/index.d.ts +1 -0
  33. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/index.js +2 -1
  34. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.d.ts +33 -0
  35. package/dist/cjs/management/api/resources/guardian/resources/factors/resources/phone/client/Client.js +122 -0
  36. package/dist/cjs/management/api/resources/index.d.ts +1 -1
  37. package/dist/cjs/management/api/resources/index.js +2 -2
  38. package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +36 -0
  39. package/dist/cjs/management/api/resources/organizations/client/Client.js +104 -0
  40. package/dist/cjs/management/api/resources/resourceServers/client/Client.d.ts +29 -0
  41. package/dist/cjs/management/api/resources/resourceServers/client/Client.js +103 -0
  42. package/dist/cjs/management/api/types/types.d.ts +226 -51
  43. package/dist/cjs/management/api/types/types.js +37 -36
  44. package/dist/cjs/management/version.d.ts +1 -1
  45. package/dist/cjs/management/version.js +1 -1
  46. package/dist/esm/management/Client.d.mts +5 -5
  47. package/dist/esm/management/Client.mjs +7 -7
  48. package/dist/esm/management/api/errors/GatewayTimeoutError.d.mts +5 -0
  49. package/dist/esm/management/api/errors/GatewayTimeoutError.mjs +17 -0
  50. package/dist/esm/management/api/errors/index.d.mts +1 -0
  51. package/dist/esm/management/api/errors/index.mjs +1 -0
  52. package/dist/esm/management/api/requests/requests.d.mts +112 -88
  53. package/dist/esm/management/api/resources/experimentation/client/Client.d.mts +12 -0
  54. package/dist/esm/management/api/resources/experimentation/client/Client.mjs +12 -0
  55. package/dist/esm/management/api/resources/experimentation/client/index.d.mts +1 -0
  56. package/dist/esm/management/api/resources/experimentation/client/index.mjs +1 -0
  57. package/dist/esm/management/api/resources/experimentation/exports.d.mts +3 -0
  58. package/dist/esm/management/api/resources/experimentation/exports.mjs +4 -0
  59. package/dist/esm/management/api/resources/experimentation/index.d.mts +2 -0
  60. package/dist/esm/management/api/resources/experimentation/index.mjs +2 -0
  61. package/dist/esm/management/api/resources/experimentation/resources/experiments/client/Client.d.mts +34 -0
  62. package/dist/esm/management/api/resources/experimentation/resources/experiments/client/Client.mjs +94 -0
  63. package/dist/esm/management/api/resources/experimentation/resources/experiments/client/index.d.mts +1 -0
  64. package/dist/esm/management/api/resources/experimentation/resources/experiments/client/index.mjs +1 -0
  65. package/dist/esm/management/api/resources/experimentation/resources/experiments/exports.d.mts +2 -0
  66. package/dist/esm/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/exports.mjs +1 -1
  67. package/dist/esm/management/api/resources/experimentation/resources/index.d.mts +1 -0
  68. package/dist/esm/management/api/resources/experimentation/resources/index.mjs +1 -0
  69. package/dist/esm/management/api/resources/guardian/client/Client.d.mts +40 -1
  70. package/dist/esm/management/api/resources/guardian/client/Client.mjs +139 -0
  71. package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.d.mts +3 -0
  72. package/dist/esm/management/api/resources/guardian/resources/factors/client/Client.mjs +5 -0
  73. package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/client/Client.d.mts +46 -0
  74. package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/client/Client.mjs +144 -0
  75. package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/client/index.d.mts +1 -0
  76. package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/client/index.mjs +1 -0
  77. package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/exports.d.mts +2 -0
  78. package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/exports.mjs +3 -0
  79. package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/index.d.mts +1 -0
  80. package/dist/esm/management/api/resources/guardian/resources/factors/resources/email/index.mjs +1 -0
  81. package/dist/esm/management/api/resources/guardian/resources/factors/resources/index.d.mts +1 -0
  82. package/dist/esm/management/api/resources/guardian/resources/factors/resources/index.mjs +1 -0
  83. package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.d.mts +33 -0
  84. package/dist/esm/management/api/resources/guardian/resources/factors/resources/phone/client/Client.mjs +122 -0
  85. package/dist/esm/management/api/resources/index.d.mts +1 -1
  86. package/dist/esm/management/api/resources/index.mjs +1 -1
  87. package/dist/esm/management/api/resources/organizations/client/Client.d.mts +36 -0
  88. package/dist/esm/management/api/resources/organizations/client/Client.mjs +104 -0
  89. package/dist/esm/management/api/resources/resourceServers/client/Client.d.mts +29 -0
  90. package/dist/esm/management/api/resources/resourceServers/client/Client.mjs +103 -0
  91. package/dist/esm/management/api/types/types.d.mts +226 -51
  92. package/dist/esm/management/api/types/types.mjs +34 -33
  93. package/dist/esm/management/version.d.mts +1 -1
  94. package/dist/esm/management/version.mjs +1 -1
  95. package/package.json +46 -23
  96. package/reference.md +654 -389
  97. package/dist/cjs/management/api/resources/organizationTemplates/client/Client.d.ts +0 -106
  98. package/dist/cjs/management/api/resources/organizationTemplates/client/Client.js +0 -411
  99. package/dist/cjs/management/api/resources/organizationTemplates/exports.d.ts +0 -2
  100. package/dist/esm/management/api/resources/organizationTemplates/client/Client.d.mts +0 -106
  101. package/dist/esm/management/api/resources/organizationTemplates/client/Client.mjs +0 -374
  102. package/dist/esm/management/api/resources/organizationTemplates/exports.d.mts +0 -2
  103. /package/dist/cjs/management/api/resources/{organizationTemplates → experimentation}/client/index.d.ts +0 -0
  104. /package/dist/cjs/management/api/resources/{organizationTemplates → experimentation}/client/index.js +0 -0
  105. /package/dist/{esm/management/api/resources/organizationTemplates/client/index.d.mts → cjs/management/api/resources/experimentation/resources/experiments/client/index.d.ts} +0 -0
  106. /package/dist/cjs/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/index.d.ts +0 -0
  107. /package/dist/cjs/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/index.js +0 -0
  108. /package/dist/{esm/management/api/resources/organizationTemplates/client/index.mjs → cjs/management/api/resources/guardian/resources/factors/resources/email/client/index.d.ts} +0 -0
  109. /package/dist/esm/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/index.d.mts +0 -0
  110. /package/dist/esm/management/api/resources/{organizationTemplates → experimentation/resources/experiments}/index.mjs +0 -0
@@ -13,6 +13,7 @@ import { EmailsClient } from "./api/resources/emails/client/Client.js";
13
13
  import { EmailTemplatesClient } from "./api/resources/emailTemplates/client/Client.js";
14
14
  import { EventsClient } from "./api/resources/events/client/Client.js";
15
15
  import { EventStreamsClient } from "./api/resources/eventStreams/client/Client.js";
16
+ import { ExperimentationClient } from "./api/resources/experimentation/client/Client.js";
16
17
  import { FlowsClient } from "./api/resources/flows/client/Client.js";
17
18
  import { FormsClient } from "./api/resources/forms/client/Client.js";
18
19
  import { GroupsClient } from "./api/resources/groups/client/Client.js";
@@ -24,7 +25,6 @@ import { LogsClient } from "./api/resources/logs/client/Client.js";
24
25
  import { LogStreamsClient } from "./api/resources/logStreams/client/Client.js";
25
26
  import { NetworkAclsClient } from "./api/resources/networkAcls/client/Client.js";
26
27
  import { OrganizationsClient } from "./api/resources/organizations/client/Client.js";
27
- import { OrganizationTemplatesClient } from "./api/resources/organizationTemplates/client/Client.js";
28
28
  import { PromptsClient } from "./api/resources/prompts/client/Client.js";
29
29
  import { RateLimitPoliciesClient } from "./api/resources/rateLimitPolicies/client/Client.js";
30
30
  import { RefreshTokensClient } from "./api/resources/refreshTokens/client/Client.js";
@@ -71,12 +71,12 @@ export declare class ManagementClient {
71
71
  protected _forms: FormsClient | undefined;
72
72
  protected _userGrants: UserGrantsClient | undefined;
73
73
  protected _groups: GroupsClient | undefined;
74
+ protected _guardian: GuardianClient | undefined;
74
75
  protected _hooks: HooksClient | undefined;
75
76
  protected _jobs: JobsClient | undefined;
76
77
  protected _logStreams: LogStreamsClient | undefined;
77
78
  protected _logs: LogsClient | undefined;
78
79
  protected _networkAcls: NetworkAclsClient | undefined;
79
- protected _organizationTemplates: OrganizationTemplatesClient | undefined;
80
80
  protected _organizations: OrganizationsClient | undefined;
81
81
  protected _prompts: PromptsClient | undefined;
82
82
  protected _rateLimitPolicies: RateLimitPoliciesClient | undefined;
@@ -97,7 +97,7 @@ export declare class ManagementClient {
97
97
  protected _anomaly: AnomalyClient | undefined;
98
98
  protected _attackProtection: AttackProtectionClient | undefined;
99
99
  protected _emails: EmailsClient | undefined;
100
- protected _guardian: GuardianClient | undefined;
100
+ protected _experimentation: ExperimentationClient | undefined;
101
101
  protected _keys: KeysClient | undefined;
102
102
  protected _riskAssessments: RiskAssessmentsClient | undefined;
103
103
  protected _tenants: TenantsClient | undefined;
@@ -119,12 +119,12 @@ export declare class ManagementClient {
119
119
  get forms(): FormsClient;
120
120
  get userGrants(): UserGrantsClient;
121
121
  get groups(): GroupsClient;
122
+ get guardian(): GuardianClient;
122
123
  get hooks(): HooksClient;
123
124
  get jobs(): JobsClient;
124
125
  get logStreams(): LogStreamsClient;
125
126
  get logs(): LogsClient;
126
127
  get networkAcls(): NetworkAclsClient;
127
- get organizationTemplates(): OrganizationTemplatesClient;
128
128
  get organizations(): OrganizationsClient;
129
129
  get prompts(): PromptsClient;
130
130
  get rateLimitPolicies(): RateLimitPoliciesClient;
@@ -145,7 +145,7 @@ export declare class ManagementClient {
145
145
  get anomaly(): AnomalyClient;
146
146
  get attackProtection(): AttackProtectionClient;
147
147
  get emails(): EmailsClient;
148
- get guardian(): GuardianClient;
148
+ get experimentation(): ExperimentationClient;
149
149
  get keys(): KeysClient;
150
150
  get riskAssessments(): RiskAssessmentsClient;
151
151
  get tenants(): TenantsClient;
@@ -59,18 +59,18 @@ const Client_js_12 = require("./api/resources/emails/client/Client.js");
59
59
  const Client_js_13 = require("./api/resources/emailTemplates/client/Client.js");
60
60
  const Client_js_14 = require("./api/resources/events/client/Client.js");
61
61
  const Client_js_15 = require("./api/resources/eventStreams/client/Client.js");
62
- const Client_js_16 = require("./api/resources/flows/client/Client.js");
63
- const Client_js_17 = require("./api/resources/forms/client/Client.js");
64
- const Client_js_18 = require("./api/resources/groups/client/Client.js");
65
- const Client_js_19 = require("./api/resources/guardian/client/Client.js");
66
- const Client_js_20 = require("./api/resources/hooks/client/Client.js");
67
- const Client_js_21 = require("./api/resources/jobs/client/Client.js");
68
- const Client_js_22 = require("./api/resources/keys/client/Client.js");
69
- const Client_js_23 = require("./api/resources/logs/client/Client.js");
70
- const Client_js_24 = require("./api/resources/logStreams/client/Client.js");
71
- const Client_js_25 = require("./api/resources/networkAcls/client/Client.js");
72
- const Client_js_26 = require("./api/resources/organizations/client/Client.js");
73
- const Client_js_27 = require("./api/resources/organizationTemplates/client/Client.js");
62
+ const Client_js_16 = require("./api/resources/experimentation/client/Client.js");
63
+ const Client_js_17 = require("./api/resources/flows/client/Client.js");
64
+ const Client_js_18 = require("./api/resources/forms/client/Client.js");
65
+ const Client_js_19 = require("./api/resources/groups/client/Client.js");
66
+ const Client_js_20 = require("./api/resources/guardian/client/Client.js");
67
+ const Client_js_21 = require("./api/resources/hooks/client/Client.js");
68
+ const Client_js_22 = require("./api/resources/jobs/client/Client.js");
69
+ const Client_js_23 = require("./api/resources/keys/client/Client.js");
70
+ const Client_js_24 = require("./api/resources/logs/client/Client.js");
71
+ const Client_js_25 = require("./api/resources/logStreams/client/Client.js");
72
+ const Client_js_26 = require("./api/resources/networkAcls/client/Client.js");
73
+ const Client_js_27 = require("./api/resources/organizations/client/Client.js");
74
74
  const Client_js_28 = require("./api/resources/prompts/client/Client.js");
75
75
  const Client_js_29 = require("./api/resources/rateLimitPolicies/client/Client.js");
76
76
  const Client_js_30 = require("./api/resources/refreshTokens/client/Client.js");
@@ -147,11 +147,11 @@ class ManagementClient {
147
147
  }
148
148
  get flows() {
149
149
  var _a;
150
- return ((_a = this._flows) !== null && _a !== void 0 ? _a : (this._flows = new Client_js_16.FlowsClient(this._options)));
150
+ return ((_a = this._flows) !== null && _a !== void 0 ? _a : (this._flows = new Client_js_17.FlowsClient(this._options)));
151
151
  }
152
152
  get forms() {
153
153
  var _a;
154
- return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_js_17.FormsClient(this._options)));
154
+ return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_js_18.FormsClient(this._options)));
155
155
  }
156
156
  get userGrants() {
157
157
  var _a;
@@ -159,35 +159,35 @@ class ManagementClient {
159
159
  }
160
160
  get groups() {
161
161
  var _a;
162
- return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_18.GroupsClient(this._options)));
162
+ return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_19.GroupsClient(this._options)));
163
+ }
164
+ get guardian() {
165
+ var _a;
166
+ return ((_a = this._guardian) !== null && _a !== void 0 ? _a : (this._guardian = new Client_js_20.GuardianClient(this._options)));
163
167
  }
164
168
  get hooks() {
165
169
  var _a;
166
- return ((_a = this._hooks) !== null && _a !== void 0 ? _a : (this._hooks = new Client_js_20.HooksClient(this._options)));
170
+ return ((_a = this._hooks) !== null && _a !== void 0 ? _a : (this._hooks = new Client_js_21.HooksClient(this._options)));
167
171
  }
168
172
  get jobs() {
169
173
  var _a;
170
- return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_js_21.JobsClient(this._options)));
174
+ return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_js_22.JobsClient(this._options)));
171
175
  }
172
176
  get logStreams() {
173
177
  var _a;
174
- return ((_a = this._logStreams) !== null && _a !== void 0 ? _a : (this._logStreams = new Client_js_24.LogStreamsClient(this._options)));
178
+ return ((_a = this._logStreams) !== null && _a !== void 0 ? _a : (this._logStreams = new Client_js_25.LogStreamsClient(this._options)));
175
179
  }
176
180
  get logs() {
177
181
  var _a;
178
- return ((_a = this._logs) !== null && _a !== void 0 ? _a : (this._logs = new Client_js_23.LogsClient(this._options)));
182
+ return ((_a = this._logs) !== null && _a !== void 0 ? _a : (this._logs = new Client_js_24.LogsClient(this._options)));
179
183
  }
180
184
  get networkAcls() {
181
185
  var _a;
182
- return ((_a = this._networkAcls) !== null && _a !== void 0 ? _a : (this._networkAcls = new Client_js_25.NetworkAclsClient(this._options)));
183
- }
184
- get organizationTemplates() {
185
- var _a;
186
- return ((_a = this._organizationTemplates) !== null && _a !== void 0 ? _a : (this._organizationTemplates = new Client_js_27.OrganizationTemplatesClient(this._options)));
186
+ return ((_a = this._networkAcls) !== null && _a !== void 0 ? _a : (this._networkAcls = new Client_js_26.NetworkAclsClient(this._options)));
187
187
  }
188
188
  get organizations() {
189
189
  var _a;
190
- return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_26.OrganizationsClient(this._options)));
190
+ return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_js_27.OrganizationsClient(this._options)));
191
191
  }
192
192
  get prompts() {
193
193
  var _a;
@@ -265,13 +265,13 @@ class ManagementClient {
265
265
  var _a;
266
266
  return ((_a = this._emails) !== null && _a !== void 0 ? _a : (this._emails = new Client_js_12.EmailsClient(this._options)));
267
267
  }
268
- get guardian() {
268
+ get experimentation() {
269
269
  var _a;
270
- return ((_a = this._guardian) !== null && _a !== void 0 ? _a : (this._guardian = new Client_js_19.GuardianClient(this._options)));
270
+ return ((_a = this._experimentation) !== null && _a !== void 0 ? _a : (this._experimentation = new Client_js_16.ExperimentationClient(this._options)));
271
271
  }
272
272
  get keys() {
273
273
  var _a;
274
- return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new Client_js_22.KeysClient(this._options)));
274
+ return ((_a = this._keys) !== null && _a !== void 0 ? _a : (this._keys = new Client_js_23.KeysClient(this._options)));
275
275
  }
276
276
  get riskAssessments() {
277
277
  var _a;
@@ -0,0 +1,5 @@
1
+ import * as core from "../../core/index.js";
2
+ import * as errors from "../../errors/index.js";
3
+ export declare class GatewayTimeoutError extends errors.ManagementError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.GatewayTimeoutError = void 0;
38
+ const errors = __importStar(require("../../errors/index.js"));
39
+ class GatewayTimeoutError extends errors.ManagementError {
40
+ constructor(body, rawResponse) {
41
+ super({
42
+ message: "GatewayTimeoutError",
43
+ statusCode: 504,
44
+ body: body,
45
+ rawResponse: rawResponse,
46
+ });
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = "GatewayTimeoutError";
52
+ }
53
+ }
54
+ exports.GatewayTimeoutError = GatewayTimeoutError;
@@ -2,6 +2,7 @@ export * from "./BadRequestError.js";
2
2
  export * from "./ConflictError.js";
3
3
  export * from "./ContentTooLargeError.js";
4
4
  export * from "./ForbiddenError.js";
5
+ export * from "./GatewayTimeoutError.js";
5
6
  export * from "./GoneError.js";
6
7
  export * from "./InternalServerError.js";
7
8
  export * from "./NotFoundError.js";
@@ -18,6 +18,7 @@ __exportStar(require("./BadRequestError.js"), exports);
18
18
  __exportStar(require("./ConflictError.js"), exports);
19
19
  __exportStar(require("./ContentTooLargeError.js"), exports);
20
20
  __exportStar(require("./ForbiddenError.js"), exports);
21
+ __exportStar(require("./GatewayTimeoutError.js"), exports);
21
22
  __exportStar(require("./GoneError.js"), exports);
22
23
  __exportStar(require("./InternalServerError.js"), exports);
23
24
  __exportStar(require("./NotFoundError.js"), exports);
@@ -340,6 +340,7 @@ export interface CreateClientRequestContent {
340
340
  /** The identifier of the resource server that this client is linked to. */
341
341
  resource_server_identifier?: string;
342
342
  identity_assertion_authorization_grant?: Management.CreateIdentityAssertionAuthorizationGrant;
343
+ anonymous_sessions?: Management.CreateAnonymousSessions;
343
344
  third_party_security_mode?: Management.ClientThirdPartySecurityModeEnum;
344
345
  redirection_policy?: Management.ClientRedirectionPolicyEnum;
345
346
  express_configuration?: Management.ExpressConfiguration;
@@ -438,6 +439,7 @@ export interface UpdateClientRequestContent {
438
439
  custom_login_page_preview?: string;
439
440
  token_quota?: Management.UpdateTokenQuota | null;
440
441
  identity_assertion_authorization_grant?: Management.UpdateIdentityAssertionAuthorizationGrant | null;
442
+ anonymous_sessions?: Management.UpdateAnonymousSessions | null;
441
443
  /** Form template for WS-Federation protocol */
442
444
  form_template?: string;
443
445
  addons?: Management.ClientAddons;
@@ -699,7 +701,7 @@ export interface ListDeviceCredentialsRequestParameters {
699
701
  user_id?: string | null;
700
702
  /** client_id of the devices to retrieve. */
701
703
  client_id?: string | null;
702
- /** Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. The property will default to `refresh_token` when paging is requested */
704
+ /** Type of credentials to retrieve. Must be `public_key`, `refresh_token` or `rotating_refresh_token`. If none is provided a combined list of `refresh_tokens` and `public_keys` will be returned (and no `rotating_refresh_token`), in this case `page`, `per_page` and `include_totals` will be ignored. */
703
705
  type?: Management.DeviceCredentialTypeEnum | null;
704
706
  }
705
707
  /**
@@ -1024,6 +1026,25 @@ export interface ListGroupsRequestParameters {
1024
1026
  /** Number of results per page. Defaults to 50. */
1025
1027
  take?: number | null;
1026
1028
  }
1029
+ /**
1030
+ * @example
1031
+ * {
1032
+ * display_remember_me_checkbox: true,
1033
+ * remember_me_default_value: true,
1034
+ * mfa_session_inactivity_timeout: 1,
1035
+ * mfa_session_overall_timeout: 1
1036
+ * }
1037
+ */
1038
+ export interface SetGuardianSettingsRequestContent {
1039
+ /** Determines whether to display the "Remember Me" checkbox on the MFA prompt in Universal Login. */
1040
+ display_remember_me_checkbox: boolean;
1041
+ /** Determines the default state of the "Remember Me" checkbox on the MFA prompt in Universal Login. */
1042
+ remember_me_default_value: boolean;
1043
+ /** Duration of inactivity after which the user will be prompted for MFA. Represented as seconds. Minimum duration is 1 hour, maximum is 30 days, and cannot exceed the overall timeout. */
1044
+ mfa_session_inactivity_timeout: number;
1045
+ /** Maximum duration after which the user will be prompted for MFA regardless of activity. Represented as seconds. Minimum duration is 1 hour, maximum is 90 days. */
1046
+ mfa_session_overall_timeout: number;
1047
+ }
1027
1048
  /**
1028
1049
  * @example
1029
1050
  * {
@@ -1204,93 +1225,6 @@ export interface UpdateNetworkAclRequestContent {
1204
1225
  priority?: number;
1205
1226
  rule?: Management.NetworkAclRule;
1206
1227
  }
1207
- /**
1208
- * @example
1209
- * {
1210
- * from: "from",
1211
- * take: 1
1212
- * }
1213
- */
1214
- export interface ListOrganizationTemplatesRequestParameters {
1215
- /** Optional Id from which to start selection. */
1216
- from?: string | null;
1217
- /** Number of results per page. Defaults to 5. Values greater than 10 are capped at 10. */
1218
- take?: number | null;
1219
- }
1220
- /**
1221
- * @example
1222
- * {
1223
- * name: "name",
1224
- * organization_deletion_behavior: "allow",
1225
- * enforce_permission_ceiling: true,
1226
- * enforce_self_assignment_restriction: true
1227
- * }
1228
- */
1229
- export interface CreateOrganizationTemplateRequestContent {
1230
- /** The name of the organization template. */
1231
- name: string;
1232
- /** Whether this is the default template applied to new organizations. */
1233
- is_default?: boolean;
1234
- organization_deletion_behavior: Management.OrganizationDeletionBehaviorEnum;
1235
- connection_deletion_behavior?: Management.ConnectionDeletionBehaviorEnum;
1236
- /** Whether to enforce permission ceiling for organizations using this template. */
1237
- enforce_permission_ceiling: boolean;
1238
- /** Whether to enforce self-assignment restrictions for organizations using this template. */
1239
- enforce_self_assignment_restriction: boolean;
1240
- /** The connection profile to apply to new connections. */
1241
- connection_profile_id?: string | null;
1242
- /** The user attribute profile to apply to organizations. */
1243
- user_attribute_profile_id?: string | null;
1244
- /** List of allowed connection strategies for this template. */
1245
- allowed_strategies?: Management.OrganizationTemplateAllowedStrategyEnum[] | null;
1246
- /** The client ID for the invitation landing page. */
1247
- invitation_landing_client_id?: string | null;
1248
- /** Default admin roles to assign to organization creators. */
1249
- admin_roles_assignment?: string[] | null;
1250
- use_for_organization_discovery?: Management.OrganizationTemplateUseForOrganizationDiscovery | null;
1251
- role_visibility_policy?: Management.OrganizationTemplateRoleVisibilityPolicy | null;
1252
- }
1253
- /**
1254
- * @example
1255
- * {}
1256
- */
1257
- export interface UpdateOrganizationTemplateRequestContent {
1258
- /** The name of the organization template. */
1259
- name?: string;
1260
- /** Whether this is the default template applied to new organizations. */
1261
- is_default?: boolean;
1262
- organization_deletion_behavior?: Management.OrganizationDeletionBehaviorEnum;
1263
- connection_deletion_behavior?: Management.ConnectionDeletionBehaviorEnum;
1264
- /** Whether to enforce permission ceiling for organizations using this template. */
1265
- enforce_permission_ceiling?: boolean;
1266
- /** Whether to enforce self-assignment restrictions for organizations using this template. */
1267
- enforce_self_assignment_restriction?: boolean;
1268
- /** The connection profile to apply to new connections. */
1269
- connection_profile_id?: string | null;
1270
- /** The user attribute profile to apply to organizations. */
1271
- user_attribute_profile_id?: string | null;
1272
- /** List of allowed connection strategies for this template. */
1273
- allowed_strategies?: Management.OrganizationTemplateAllowedStrategyEnum[] | null;
1274
- /** The client ID for the invitation landing page. */
1275
- invitation_landing_client_id?: string | null;
1276
- /** Default admin roles to assign to organization creators. */
1277
- admin_roles_assignment?: string[] | null;
1278
- use_for_organization_discovery?: Management.OrganizationTemplateUseForOrganizationDiscovery | null;
1279
- role_visibility_policy?: Management.OrganizationTemplateRoleVisibilityPolicy | null;
1280
- }
1281
- /**
1282
- * @example
1283
- * {
1284
- * from: "from",
1285
- * take: 1
1286
- * }
1287
- */
1288
- export interface ListTemplateOrganizationsRequestParameters {
1289
- /** Optional Id from which to start selection. */
1290
- from?: string | null;
1291
- /** Number of results per page. Defaults to 5. Values greater than 10 are capped at 10. */
1292
- take?: number | null;
1293
- }
1294
1228
  /**
1295
1229
  * @example
1296
1230
  * {
@@ -1333,6 +1267,28 @@ export interface CreateOrganizationRequestContent {
1333
1267
  /** Whether app entitlement is active for this organization. */
1334
1268
  is_app_entitlement_active?: boolean;
1335
1269
  }
1270
+ /**
1271
+ * @example
1272
+ * {
1273
+ * q: "q",
1274
+ * parser: "scim",
1275
+ * take: 1,
1276
+ * from: "from",
1277
+ * sort: "name"
1278
+ * }
1279
+ */
1280
+ export interface SearchOrganizationsRequestParameters {
1281
+ /** Filter expression in SCIM or Lucene syntax (depending on parser parameter, default: Lucene). Lucene examples: `name:acme*`, `display_name:*auth*`. SCIM examples: `name eq "Auth0"`, `display_name sw "auth" and created_at gt "2024-01-01"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or. <br /><br /><b>Supported Fields</b>:<ul><li><i>id</i> - Organization ID (case-sensitive, exact match)</li><li><i>name</i> - Organization name (supports contains, starts-with, ends-with operators; sortable)</li><li><i>display_name</i> - Organization display name (supports contains, starts-with, ends-with operators; sortable)</li><li><i>created_at</i> - Creation timestamp (supports date range operators; sortable)</li><li><i>metadata.{key}</i> - Filter by organization metadata key-value pairs</li></ul>Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. */
1282
+ q?: string | null;
1283
+ /** Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). */
1284
+ parser?: Management.SearchParserEnum | null;
1285
+ /** Maximum number of results to return per page (1-100). Defaults to 50. */
1286
+ take?: number | null;
1287
+ /** Cursor for the next page of results. Use the value from the next field in the previous response. */
1288
+ from?: string | null;
1289
+ /** Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. */
1290
+ sort?: Management.OrganizationSortFieldEnum | null;
1291
+ }
1336
1292
  /**
1337
1293
  * @example
1338
1294
  * {}
@@ -1504,6 +1460,8 @@ export interface CreateResourceServerRequestContent {
1504
1460
  allow_online_access_with_ephemeral_sessions?: boolean;
1505
1461
  /** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
1506
1462
  token_lifetime?: number;
1463
+ /** Expiration value (in seconds) for anonymous-session access tokens issued for this API. */
1464
+ token_lifetime_for_anonymous_access_tokens?: number | null;
1507
1465
  token_dialect?: Management.ResourceServerTokenDialectSchemaEnum;
1508
1466
  /** Whether to skip user consent for applications flagged as first party (true) or not (false). */
1509
1467
  skip_consent_for_verifiable_first_party_clients?: boolean;
@@ -1516,6 +1474,34 @@ export interface CreateResourceServerRequestContent {
1516
1474
  subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization;
1517
1475
  authorization_policy?: Management.ResourceServerAuthorizationPolicy | null;
1518
1476
  }
1477
+ /**
1478
+ * @example
1479
+ * {
1480
+ * q: "q",
1481
+ * parser: "scim",
1482
+ * fields: "fields",
1483
+ * include_fields: true,
1484
+ * take: 1,
1485
+ * from: "from",
1486
+ * sort: "identifier"
1487
+ * }
1488
+ */
1489
+ export interface SearchResourceServersRequestParameters {
1490
+ /** Filter expression in SCIM or Lucene syntax (depending on parser parameter). SCIM examples: `name eq "My API"`, `identifier sw "https://"`. SCIM operators: eq, ne, sw, ew, co, pr, gt, ge, lt, le, and, or. <br /><br /><b>Supported Fields</b>:<ul><li><i>id</i> - Filter by resource server ID</li><li><i>identifier</i> - Filter by resource server identifier</li><li><i>name</i> - Filter by resource server name</li><li><i>updated_at</i> - Filter by last update date</li></ul>Maximum 5 filter operations per query. Results are eventually consistent and may not reflect recent updates. */
1491
+ q?: string | null;
1492
+ /** Query parser to use for the filter expression. Use "scim" for SCIM filter syntax or "lucene" for Lucene query syntax (default). */
1493
+ parser?: Management.SearchParserEnum | null;
1494
+ /** Comma-separated list of fields to include or exclude in the response. Works with the include_fields parameter to control projection mode. */
1495
+ fields?: string | null;
1496
+ /** Controls field projection mode. Set to true to include only fields specified in the fields parameter. Set to false to exclude fields specified in the fields parameter. Defaults to true if not specified. */
1497
+ include_fields?: boolean | null;
1498
+ /** Maximum number of results to return per page (1-100). Defaults to 50. */
1499
+ take?: number | null;
1500
+ /** Cursor for the next page of results. Use the value from the next field in the previous response. */
1501
+ from?: string | null;
1502
+ /** Field name to sort results by in ascending order only. Defaults to insertion order (oldest first) if not provided. */
1503
+ sort?: Management.ResourceServerSortFieldEnum | null;
1504
+ }
1519
1505
  /**
1520
1506
  * @example
1521
1507
  * {
@@ -1548,6 +1534,8 @@ export interface UpdateResourceServerRequestContent {
1548
1534
  allow_online_access_with_ephemeral_sessions?: boolean;
1549
1535
  /** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
1550
1536
  token_lifetime?: number;
1537
+ /** Expiration value (in seconds) for anonymous-session access tokens issued for this API. */
1538
+ token_lifetime_for_anonymous_access_tokens?: number | null;
1551
1539
  token_dialect?: Management.ResourceServerTokenDialectSchemaEnum;
1552
1540
  /** Whether authorization policies are enforced (true) or not enforced (false). */
1553
1541
  enforce_policies?: boolean;
@@ -2834,6 +2822,16 @@ export interface CreateEventStreamRedeliveryRequestContent {
2834
2822
  /** Filter by event type */
2835
2823
  event_types?: Management.EventStreamEventTypeEnum[];
2836
2824
  }
2825
+ /**
2826
+ * @example
2827
+ * {
2828
+ * target_level: 1
2829
+ * }
2830
+ */
2831
+ export interface AdvanceRampRequestContent {
2832
+ /** The target percentage level from the experiment schedule. Must be the immediate next level. */
2833
+ target_level: number;
2834
+ }
2837
2835
  /**
2838
2836
  * @example
2839
2837
  * {
@@ -2966,6 +2964,19 @@ export interface SetGuardianFactorRequestContent {
2966
2964
  /** Whether this factor is enabled (true) or disabled (false). */
2967
2965
  enabled: boolean;
2968
2966
  }
2967
+ /**
2968
+ * @example
2969
+ * {
2970
+ * otp_length: 1,
2971
+ * otp_expiration_time: 1
2972
+ * }
2973
+ */
2974
+ export interface SetEmailFactorSettingsRequestContent {
2975
+ /** The length of the OTP code. */
2976
+ otp_length: number;
2977
+ /** The OTP expiration time in seconds. */
2978
+ otp_expiration_time: number;
2979
+ }
2969
2980
  /**
2970
2981
  * @example
2971
2982
  * {
@@ -2999,6 +3010,19 @@ export interface SetGuardianFactorsProviderPhoneTwilioRequestContent {
2999
3010
  export interface SetGuardianFactorsProviderPhoneRequestContent {
3000
3011
  provider: Management.GuardianFactorsProviderSmsProviderEnum;
3001
3012
  }
3013
+ /**
3014
+ * @example
3015
+ * {
3016
+ * otp_length: 1,
3017
+ * otp_expiration_time: 1
3018
+ * }
3019
+ */
3020
+ export interface SetPhoneFactorSettingsRequestContent {
3021
+ /** The length of the OTP code. */
3022
+ otp_length: number;
3023
+ /** The OTP expiration time in seconds. */
3024
+ otp_expiration_time: number;
3025
+ }
3002
3026
  /**
3003
3027
  * @example
3004
3028
  * {
@@ -0,0 +1,12 @@
1
+ import type { BaseClientOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import { ExperimentsClient } from "../resources/experiments/client/Client.js";
4
+ export declare namespace ExperimentationClient {
5
+ type Options = BaseClientOptions;
6
+ }
7
+ export declare class ExperimentationClient {
8
+ protected readonly _options: NormalizedClientOptionsWithAuth<ExperimentationClient.Options>;
9
+ protected _experiments: ExperimentsClient | undefined;
10
+ constructor(options: ExperimentationClient.Options);
11
+ get experiments(): ExperimentsClient;
12
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ExperimentationClient = void 0;
5
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
6
+ const Client_js_1 = require("../resources/experiments/client/Client.js");
7
+ class ExperimentationClient {
8
+ constructor(options) {
9
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
10
+ }
11
+ get experiments() {
12
+ var _a;
13
+ return ((_a = this._experiments) !== null && _a !== void 0 ? _a : (this._experiments = new Client_js_1.ExperimentsClient(this._options)));
14
+ }
15
+ }
16
+ exports.ExperimentationClient = ExperimentationClient;
@@ -0,0 +1,3 @@
1
+ export { ExperimentationClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
3
+ export * from "./resources/index.js";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ExperimentationClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "ExperimentationClient", { enumerable: true, get: function () { return Client_js_1.ExperimentationClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
22
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,34 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
+ import * as core from "../../../../../../core/index.js";
4
+ import * as Management from "../../../../../index.js";
5
+ export declare namespace ExperimentsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ExperimentsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ExperimentsClient.Options>;
12
+ constructor(options: ExperimentsClient.Options);
13
+ /**
14
+ * Increments the current ramp index to the requested target level. Up-only: the target must be the immediate next level in the schedule. Idempotent: calling with the current level returns success without writing anything.
15
+ *
16
+ * @param {string} id - The ID of the experiment to advance.
17
+ * @param {Management.AdvanceRampRequestContent} request
18
+ * @param {ExperimentsClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link Management.BadRequestError}
21
+ * @throws {@link Management.UnauthorizedError}
22
+ * @throws {@link Management.ForbiddenError}
23
+ * @throws {@link Management.NotFoundError}
24
+ * @throws {@link Management.ConflictError}
25
+ * @throws {@link Management.TooManyRequestsError}
26
+ *
27
+ * @example
28
+ * await client.experimentation.experiments.advanceRamp("id", {
29
+ * target_level: 1
30
+ * })
31
+ */
32
+ advanceRamp(id: string, request: Management.AdvanceRampRequestContent, requestOptions?: ExperimentsClient.RequestOptions): core.HttpResponsePromise<Management.AdvanceRampResponseContent>;
33
+ private __advanceRamp;
34
+ }