diff --git a/reference.md b/reference.md index 31dc9fa826..f1475b7f04 100644 --- a/reference.md +++ b/reference.md @@ -2153,6 +2153,7 @@ To search by checkpoint, use the following parameters: const pageableResponse = await client.connections.list({ from: "from", take: 1, + strategy: ["ad"], name: "name", fields: "fields", include_fields: true, @@ -2165,6 +2166,7 @@ for await (const item of pageableResponse) { let page = await client.connections.list({ from: "from", take: 1, + strategy: ["ad"], name: "name", fields: "fields", include_fields: true, @@ -4008,6 +4010,78 @@ await client.eventStreams.test("id", { +## Events + +
client.events.subscribe({ ...params }) -> core.Stream<Management.EventStreamSubscribeEventsResponseContent> +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Subscribe to events via Server-Sent Events (SSE) + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const response = await client.events.subscribe({ + from: "from", + from_timestamp: "from_timestamp", + event_type: ["group.created"], +}); +for await (const item of response) { + console.log(item); +} +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Management.SubscribeEventsRequestParameters` + +
+
+ +
+
+ +**requestOptions:** `EventsClient.RequestOptions` + +
+
+
+
+ +
+
+
+ ## Flows
client.flows.list({ ...params }) -> core.Page<Management.FlowSummary, Management.ListFlowsOffsetPaginatedResponseContent> @@ -4027,6 +4101,7 @@ const pageableResponse = await client.flows.list({ page: 1, per_page: 1, include_totals: true, + hydrate: ["form_count"], synchronous: true, }); for await (const item of pageableResponse) { @@ -4038,6 +4113,7 @@ let page = await client.flows.list({ page: 1, per_page: 1, include_totals: true, + hydrate: ["form_count"], synchronous: true, }); while (page.hasNextPage()) { @@ -4143,7 +4219,9 @@ await client.flows.create({
```typescript -await client.flows.get("id"); +await client.flows.get("id", { + hydrate: ["form_count"], +}); ```
@@ -4309,6 +4387,7 @@ const pageableResponse = await client.forms.list({ page: 1, per_page: 1, include_totals: true, + hydrate: ["flow_count"], }); for await (const item of pageableResponse) { console.log(item); @@ -4319,6 +4398,7 @@ let page = await client.forms.list({ page: 1, per_page: 1, include_totals: true, + hydrate: ["flow_count"], }); while (page.hasNextPage()) { page = page.getNextPage(); @@ -4423,7 +4503,9 @@ await client.forms.create({
```typescript -await client.forms.get("id"); +await client.forms.get("id", { + hydrate: ["flow_count"], +}); ```
@@ -4823,6 +4905,7 @@ const pageableResponse = await client.groups.list({ connection_id: "connection_id", name: "name", external_id: "external_id", + search: "search", fields: "fields", include_fields: true, from: "from", @@ -4837,6 +4920,7 @@ let page = await client.groups.list({ connection_id: "connection_id", name: "name", external_id: "external_id", + search: "search", fields: "fields", include_fields: true, from: "from", @@ -7521,6 +7605,69 @@ const response = page.response;
+
client.refreshTokens.revoke({ ...params }) -> void +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Revoke refresh tokens in bulk by ID list, user, user+client, or client. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.refreshTokens.revoke(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Management.RevokeRefreshTokensRequestContent` + +
+
+ +
+
+ +**requestOptions:** `RefreshTokensClient.RequestOptions` + +
+
+
+
+ +
+
+
+
client.refreshTokens.get(id) -> Management.GetRefreshTokenResponseContent
@@ -7749,6 +7896,7 @@ Retrieve details of all APIs associated with your tenant. ```typescript const pageableResponse = await client.resourceServers.list({ + identifiers: ["identifiers"], page: 1, per_page: 1, include_totals: true, @@ -7760,6 +7908,7 @@ for await (const item of pageableResponse) { // Or you can manually iterate page-by-page let page = await client.resourceServers.list({ + identifiers: ["identifiers"], page: 1, per_page: 1, include_totals: true, @@ -10440,7 +10589,7 @@ const response = page.response;
-Retrieve details about a single User Attribute Profile specified by ID. +Create a User Attribute Profile
@@ -15635,6 +15784,7 @@ Retrieve all connections that are enabled for the specified ```typescript -await client.flows.executions.get("flow_id", "execution_id"); +await client.flows.executions.get("flow_id", "execution_id", { + hydrate: ["debug"], +}); ```
@@ -22202,6 +22355,7 @@ await client.keys.signing.revoke("kid"); const pageableResponse = await client.organizations.clientGrants.list("id", { audience: "audience", client_id: "client_id", + grant_ids: ["grant_ids"], page: 1, per_page: 1, include_totals: true, @@ -22214,6 +22368,7 @@ for await (const item of pageableResponse) { let page = await client.organizations.clientGrants.list("id", { audience: "audience", client_id: "client_id", + grant_ids: ["grant_ids"], page: 1, per_page: 1, include_totals: true, @@ -25663,7 +25818,7 @@ await client.roles.users.assign("id", {
-Retrieves text customizations for a given self-service profile, language and Self Service SSO Flow page. +Retrieves text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page.
@@ -25742,7 +25897,7 @@ await client.selfServiceProfiles.customText.list("id", "en", "get-started");
-Updates text customizations for a given self-service profile, language and Self Service SSO Flow page. +Updates text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page.
@@ -25833,7 +25988,7 @@ await client.selfServiceProfiles.customText.set("id", "en", "get-started", {
-Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. +Creates an access ticket to initiate the Self-Service Enterprise Configuration flow using a self-service profile.
@@ -25904,7 +26059,7 @@ await client.selfServiceProfiles.ssoTicket.create("id");
-Revokes an SSO access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service SSO session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required. +Revokes a Self-Service Enterprise Configuration access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service Enterprise Configuration session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required. Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found.
@@ -28446,7 +28601,7 @@ await client.users.sessions.delete("user_id");
-List a verifiable credential templates. +List verifiable credential templates.
diff --git a/src/management/Client.ts b/src/management/Client.ts index e946a8b278..85e958942e 100644 --- a/src/management/Client.ts +++ b/src/management/Client.ts @@ -12,6 +12,7 @@ import { CustomDomainsClient } from "./api/resources/customDomains/client/Client import { DeviceCredentialsClient } from "./api/resources/deviceCredentials/client/Client.js"; import { EmailsClient } from "./api/resources/emails/client/Client.js"; import { EmailTemplatesClient } from "./api/resources/emailTemplates/client/Client.js"; +import { EventsClient } from "./api/resources/events/client/Client.js"; import { EventStreamsClient } from "./api/resources/eventStreams/client/Client.js"; import { FlowsClient } from "./api/resources/flows/client/Client.js"; import { FormsClient } from "./api/resources/forms/client/Client.js"; @@ -66,6 +67,7 @@ export class ManagementClient { protected _deviceCredentials: DeviceCredentialsClient | undefined; protected _emailTemplates: EmailTemplatesClient | undefined; protected _eventStreams: EventStreamsClient | undefined; + protected _events: EventsClient | undefined; protected _flows: FlowsClient | undefined; protected _forms: FormsClient | undefined; protected _userGrants: UserGrantsClient | undefined; @@ -144,6 +146,10 @@ export class ManagementClient { return (this._eventStreams ??= new EventStreamsClient(this._options)); } + public get events(): EventsClient { + return (this._events ??= new EventsClient(this._options)); + } + public get flows(): FlowsClient { return (this._flows ??= new FlowsClient(this._options)); } diff --git a/src/management/api/errors/GoneError.ts b/src/management/api/errors/GoneError.ts new file mode 100644 index 0000000000..5a77648954 --- /dev/null +++ b/src/management/api/errors/GoneError.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import * as core from "../../core/index.js"; +import * as errors from "../../errors/index.js"; + +export class GoneError extends errors.ManagementError { + constructor(body?: unknown, rawResponse?: core.RawResponse) { + super({ + message: "GoneError", + statusCode: 410, + body: body, + rawResponse: rawResponse, + }); + Object.setPrototypeOf(this, new.target.prototype); + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + + this.name = this.constructor.name; + } +} diff --git a/src/management/api/errors/index.ts b/src/management/api/errors/index.ts index fdd99fc8ed..efa3813ee7 100644 --- a/src/management/api/errors/index.ts +++ b/src/management/api/errors/index.ts @@ -2,6 +2,7 @@ export * from "./BadRequestError.js"; export * from "./ConflictError.js"; export * from "./ContentTooLargeError.js"; export * from "./ForbiddenError.js"; +export * from "./GoneError.js"; export * from "./InternalServerError.js"; export * from "./NotFoundError.js"; export * from "./PaymentRequiredError.js"; diff --git a/src/management/api/requests/requests.ts b/src/management/api/requests/requests.ts index 4aef7bfcd0..65a1d8687e 100644 --- a/src/management/api/requests/requests.ts +++ b/src/management/api/requests/requests.ts @@ -112,6 +112,7 @@ export interface UpdateBrandingRequestContent { favicon_url?: string | null; /** URL for the logo. Must use HTTPS. */ logo_url?: string | null; + identifiers?: Management.UpdateBrandingIdentifiers | null; font?: Management.UpdateBrandingFont | null; } @@ -140,7 +141,7 @@ export interface ListClientGrantsRequestParameters { allow_any_organization?: Management.ClientGrantAllowAnyOrganizationEnum | null; /** The type of application access the client grant allows. */ subject_type?: Management.ClientGrantSubjectTypeEnum | null; - /** Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. */ + /** Applies this client grant as the default for all clients in the specified group. The only accepted value is
`third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. */ default_for?: Management.ClientGrantDefaultForEnum | null; } @@ -497,6 +498,7 @@ export interface UpdateConnectionProfileRequestContent { * { * from: "from", * take: 1, + * strategy: ["ad"], * name: "name", * fields: "fields", * include_fields: true @@ -809,12 +811,32 @@ export interface CreateEventStreamTestEventRequestContent { data?: Management.TestEventDataContent; } +/** + * @example + * { + * from: "from", + * from_timestamp: "from_timestamp", + * event_type: ["group.created"] + * } + */ +export interface SubscribeEventsRequestParameters { + /** Opaque token representing position in the stream. If not provided, stream will start from the latest events. */ + from?: string | null; + /** RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate. */ + from_timestamp?: string | null; + /** Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed. */ + event_type?: + | (Management.EventStreamSubscribeEventsEventTypeEnum | null) + | (Management.EventStreamSubscribeEventsEventTypeEnum | null)[]; +} + /** * @example * { * page: 1, * per_page: 1, * include_totals: true, + * hydrate: ["form_count"], * synchronous: true * } */ @@ -846,7 +868,9 @@ export interface CreateFlowRequestContent { /** * @example - * {} + * { + * hydrate: ["form_count"] + * } */ export interface GetFlowRequestParameters { /** hydration param */ @@ -869,7 +893,8 @@ export interface UpdateFlowRequestContent { * { * page: 1, * per_page: 1, - * include_totals: true + * include_totals: true, + * hydrate: ["flow_count"] * } */ export interface ListFormsRequestParameters { @@ -904,7 +929,9 @@ export interface CreateFormRequestContent { /** * @example - * {} + * { + * hydrate: ["flow_count"] + * } */ export interface GetFormRequestParameters { /** Query parameter to hydrate the response with additional data */ @@ -971,6 +998,7 @@ export interface DeleteUserGrantByUserIdRequestParameters { * connection_id: "connection_id", * name: "name", * external_id: "external_id", + * search: "search", * fields: "fields", * include_fields: true, * from: "from", @@ -984,6 +1012,8 @@ export interface ListGroupsRequestParameters { name?: string | null; /** Filter groups by external ID. */ external_id?: string | null; + /** Search for groups by name or external ID. */ + search?: string | null; /** A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields */ fields?: string | null; /** Whether specified fields are to be included (true) or excluded (false). */ @@ -1271,6 +1301,19 @@ export interface GetRefreshTokensRequestParameters { include_fields?: boolean | null; } +/** + * @example + * {} + */ +export interface RevokeRefreshTokensRequestContent { + /** Array of refresh token IDs to revoke. Limited to 100 at a time. */ + ids?: string[]; + /** Revoke all refresh tokens for this user. */ + user_id?: string; + /** Revoke all refresh tokens for this client. */ + client_id?: string; +} + /** * @example * {} @@ -1283,6 +1326,7 @@ export interface UpdateRefreshTokenRequestContent { /** * @example * { + * identifiers: ["identifiers"], * page: 1, * per_page: 1, * include_totals: true, @@ -1334,6 +1378,7 @@ export interface CreateResourceServerRequestContent { authorization_details?: unknown[] | null; proof_of_possession?: Management.ResourceServerProofOfPossession | null; subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization; + authorization_policy?: Management.ResourceServerAuthorizationPolicy | null; } /** @@ -1375,6 +1420,7 @@ export interface UpdateResourceServerRequestContent { authorization_details?: unknown[] | null; proof_of_possession?: Management.ResourceServerProofOfPossession | null; subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization; + authorization_policy?: Management.ResourceServerAuthorizationPolicy | null; } /** @@ -1534,9 +1580,9 @@ export interface CreateSelfServiceProfileRequestContent { /** The description of the self-service Profile. */ description?: string; branding?: Management.SelfServiceProfileBrandingProperties; - /** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ + /** List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[]; - /** List of attributes to be mapped that will be shown to the user during the SS-SSO flow. */ + /** List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. */ user_attributes?: Management.SelfServiceProfileUserAttribute[]; /** ID of the user-attribute-profile to associate with this self-service profile. */ user_attribute_profile_id?: string; @@ -1551,7 +1597,7 @@ export interface UpdateSelfServiceProfileRequestContent { name?: string; description?: (Management.SelfServiceProfileDescription | undefined) | null; branding?: Management.SelfServiceProfileBranding | undefined; - /** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ + /** List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[]; user_attributes?: (Management.SelfServiceProfileUserAttributes | undefined) | null; /** ID of the user-attribute-profile to associate with this self-service profile. */ @@ -2461,6 +2507,7 @@ export interface PatchClientCredentialRequestContent { /** * @example * { + * strategy: ["ad"], * from: "from", * take: 1, * fields: "fields", @@ -2689,7 +2736,9 @@ export interface ListFlowExecutionsRequestParameters { /** * @example - * {} + * { + * hydrate: ["debug"] + * } */ export interface GetFlowExecutionRequestParameters { /** Hydration param */ @@ -3076,6 +3125,7 @@ export interface ImportEncryptionKeyRequestContent { * { * audience: "audience", * client_id: "client_id", + * grant_ids: ["grant_ids"], * page: 1, * per_page: 1, * include_totals: true @@ -3561,7 +3611,7 @@ export interface AssignRoleUsersRequestContent { * {} */ export interface CreateSelfServiceProfileSsoTicketRequestContent { - /** If provided, this will allow editing of the provided connection during the SSO Flow */ + /** If provided, this will allow editing of the provided connection during the Self-Service Enterprise Configuration flow */ connection_id?: string; connection_config?: Management.SelfServiceProfileSsoTicketConnectionConfig; /** List of client_ids that the connection will be enabled for. */ diff --git a/src/management/api/resources/actions/client/Client.ts b/src/management/api/resources/actions/client/Client.ts index 36ba1e283d..06537046ff 100644 --- a/src/management/api/resources/actions/client/Client.ts +++ b/src/management/api/resources/actions/client/Client.ts @@ -99,7 +99,11 @@ export class ActionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -202,7 +206,7 @@ export class ActionsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -281,7 +285,7 @@ export class ActionsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -366,7 +370,11 @@ export class ActionsClient { ), method: "DELETE", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -446,7 +454,7 @@ export class ActionsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -526,7 +534,7 @@ export class ActionsClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -610,7 +618,7 @@ export class ActionsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/actions/resources/executions/client/Client.ts b/src/management/api/resources/actions/resources/executions/client/Client.ts index 6a103c1cdd..0faecd7524 100644 --- a/src/management/api/resources/actions/resources/executions/client/Client.ts +++ b/src/management/api/resources/actions/resources/executions/client/Client.ts @@ -63,7 +63,7 @@ export class ExecutionsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/actions/resources/modules/client/Client.ts b/src/management/api/resources/actions/resources/modules/client/Client.ts index 52ac9bd10a..765b9eb429 100644 --- a/src/management/api/resources/actions/resources/modules/client/Client.ts +++ b/src/management/api/resources/actions/resources/modules/client/Client.ts @@ -73,7 +73,11 @@ export class ModulesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -175,7 +179,7 @@ export class ModulesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -256,7 +260,7 @@ export class ModulesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -333,7 +337,7 @@ export class ModulesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -419,7 +423,7 @@ export class ModulesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -509,7 +513,11 @@ export class ModulesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -621,7 +629,7 @@ export class ModulesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/actions/resources/modules/resources/versions/client/Client.ts b/src/management/api/resources/actions/resources/modules/resources/versions/client/Client.ts index 5fd94de408..25e1cbd9df 100644 --- a/src/management/api/resources/actions/resources/modules/resources/versions/client/Client.ts +++ b/src/management/api/resources/actions/resources/modules/resources/versions/client/Client.ts @@ -73,7 +73,11 @@ export class VersionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -179,7 +183,7 @@ export class VersionsClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -271,7 +275,7 @@ export class VersionsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/actions/resources/triggers/client/Client.ts b/src/management/api/resources/actions/resources/triggers/client/Client.ts index 3ba37542b0..d782fd7085 100644 --- a/src/management/api/resources/actions/resources/triggers/client/Client.ts +++ b/src/management/api/resources/actions/resources/triggers/client/Client.ts @@ -65,7 +65,7 @@ export class TriggersClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.ts b/src/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.ts index d6bed119e9..4f694f5d3d 100644 --- a/src/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.ts +++ b/src/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.ts @@ -72,7 +72,11 @@ export class BindingsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -178,7 +182,7 @@ export class BindingsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/actions/resources/versions/client/Client.ts b/src/management/api/resources/actions/resources/versions/client/Client.ts index 3629497af8..8241ad94a4 100644 --- a/src/management/api/resources/actions/resources/versions/client/Client.ts +++ b/src/management/api/resources/actions/resources/versions/client/Client.ts @@ -69,7 +69,11 @@ export class VersionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -175,7 +179,7 @@ export class VersionsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -265,7 +269,7 @@ export class VersionsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/anomaly/resources/blocks/client/Client.ts b/src/management/api/resources/anomaly/resources/blocks/client/Client.ts index 091cdde54a..694b73b679 100644 --- a/src/management/api/resources/anomaly/resources/blocks/client/Client.ts +++ b/src/management/api/resources/anomaly/resources/blocks/client/Client.ts @@ -63,7 +63,7 @@ export class BlocksClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -138,7 +138,7 @@ export class BlocksClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/attackProtection/resources/botDetection/client/Client.ts b/src/management/api/resources/attackProtection/resources/botDetection/client/Client.ts index 877b27b8ea..406ed0c264 100644 --- a/src/management/api/resources/attackProtection/resources/botDetection/client/Client.ts +++ b/src/management/api/resources/attackProtection/resources/botDetection/client/Client.ts @@ -59,7 +59,7 @@ export class BotDetectionClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -142,7 +142,7 @@ export class BotDetectionClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.ts b/src/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.ts index 22cd759770..69691eccce 100644 --- a/src/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.ts +++ b/src/management/api/resources/attackProtection/resources/breachedPasswordDetection/client/Client.ts @@ -58,7 +58,7 @@ export class BreachedPasswordDetectionClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -138,7 +138,7 @@ export class BreachedPasswordDetectionClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.ts b/src/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.ts index 311920f7d6..ef5d3977f5 100644 --- a/src/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.ts +++ b/src/management/api/resources/attackProtection/resources/bruteForceProtection/client/Client.ts @@ -58,7 +58,7 @@ export class BruteForceProtectionClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -138,7 +138,7 @@ export class BruteForceProtectionClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/attackProtection/resources/captcha/client/Client.ts b/src/management/api/resources/attackProtection/resources/captcha/client/Client.ts index 03ccdf1e91..e883ca4058 100644 --- a/src/management/api/resources/attackProtection/resources/captcha/client/Client.ts +++ b/src/management/api/resources/attackProtection/resources/captcha/client/Client.ts @@ -59,7 +59,7 @@ export class CaptchaClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -136,7 +136,7 @@ export class CaptchaClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.ts b/src/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.ts index 7e13ec7537..e63797cc0c 100644 --- a/src/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.ts +++ b/src/management/api/resources/attackProtection/resources/suspiciousIpThrottling/client/Client.ts @@ -58,7 +58,7 @@ export class SuspiciousIpThrottlingClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -138,7 +138,7 @@ export class SuspiciousIpThrottlingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/branding/client/Client.ts b/src/management/api/resources/branding/client/Client.ts index c1deded516..cf87110923 100644 --- a/src/management/api/resources/branding/client/Client.ts +++ b/src/management/api/resources/branding/client/Client.ts @@ -76,7 +76,7 @@ export class BrandingClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -151,7 +151,7 @@ export class BrandingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/branding/resources/phone/resources/providers/client/Client.ts b/src/management/api/resources/branding/resources/phone/resources/providers/client/Client.ts index 82add0fa4c..ae6383d58d 100644 --- a/src/management/api/resources/branding/resources/phone/resources/providers/client/Client.ts +++ b/src/management/api/resources/branding/resources/phone/resources/providers/client/Client.ts @@ -71,7 +71,11 @@ export class ProvidersClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -155,7 +159,7 @@ export class ProvidersClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -236,7 +240,7 @@ export class ProvidersClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -316,7 +320,7 @@ export class ProvidersClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -401,7 +405,7 @@ export class ProvidersClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -494,7 +498,7 @@ export class ProvidersClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/branding/resources/phone/resources/templates/client/Client.ts b/src/management/api/resources/branding/resources/phone/resources/templates/client/Client.ts index 4523e4e2ae..0202ca1b39 100644 --- a/src/management/api/resources/branding/resources/phone/resources/templates/client/Client.ts +++ b/src/management/api/resources/branding/resources/phone/resources/templates/client/Client.ts @@ -69,7 +69,11 @@ export class TemplatesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -145,7 +149,7 @@ export class TemplatesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -224,7 +228,7 @@ export class TemplatesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -303,7 +307,7 @@ export class TemplatesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -386,7 +390,7 @@ export class TemplatesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -475,7 +479,7 @@ export class TemplatesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -563,7 +567,7 @@ export class TemplatesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/branding/resources/templates/client/Client.ts b/src/management/api/resources/branding/resources/templates/client/Client.ts index 4c5d6a8ba8..60441d3a54 100644 --- a/src/management/api/resources/branding/resources/templates/client/Client.ts +++ b/src/management/api/resources/branding/resources/templates/client/Client.ts @@ -58,7 +58,7 @@ export class TemplatesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -167,7 +167,7 @@ export class TemplatesClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -244,7 +244,7 @@ export class TemplatesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/branding/resources/themes/client/Client.ts b/src/management/api/resources/branding/resources/themes/client/Client.ts index 3b7d06d0f7..3689bb96a9 100644 --- a/src/management/api/resources/branding/resources/themes/client/Client.ts +++ b/src/management/api/resources/branding/resources/themes/client/Client.ts @@ -135,7 +135,7 @@ export class ThemesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -212,7 +212,7 @@ export class ThemesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -288,7 +288,7 @@ export class ThemesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -361,7 +361,7 @@ export class ThemesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -510,7 +510,7 @@ export class ThemesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/clientGrants/client/Client.ts b/src/management/api/resources/clientGrants/client/Client.ts index 0670b812c7..73a67cd002 100644 --- a/src/management/api/resources/clientGrants/client/Client.ts +++ b/src/management/api/resources/clientGrants/client/Client.ts @@ -90,7 +90,11 @@ export class ClientGrantsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -188,7 +192,7 @@ export class ClientGrantsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -271,7 +275,7 @@ export class ClientGrantsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -344,7 +348,7 @@ export class ClientGrantsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -422,7 +426,7 @@ export class ClientGrantsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/clientGrants/resources/organizations/client/Client.ts b/src/management/api/resources/clientGrants/resources/organizations/client/Client.ts index 955c4f8edd..83a94b20f2 100644 --- a/src/management/api/resources/clientGrants/resources/organizations/client/Client.ts +++ b/src/management/api/resources/clientGrants/resources/organizations/client/Client.ts @@ -67,7 +67,11 @@ export class OrganizationsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/clients/client/Client.ts b/src/management/api/resources/clients/client/Client.ts index 53cc05e2c5..9d9583822e 100644 --- a/src/management/api/resources/clients/client/Client.ts +++ b/src/management/api/resources/clients/client/Client.ts @@ -138,7 +138,11 @@ export class ClientsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -252,7 +256,7 @@ export class ClientsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -340,7 +344,7 @@ export class ClientsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -427,7 +431,7 @@ export class ClientsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -549,7 +553,11 @@ export class ClientsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -621,7 +629,7 @@ export class ClientsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -707,7 +715,7 @@ export class ClientsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -792,7 +800,7 @@ export class ClientsClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/clients/resources/connections/client/Client.ts b/src/management/api/resources/clients/resources/connections/client/Client.ts index 14fad25963..5c9620c80f 100644 --- a/src/management/api/resources/clients/resources/connections/client/Client.ts +++ b/src/management/api/resources/clients/resources/connections/client/Client.ts @@ -45,6 +45,7 @@ export class ConnectionsClient { * * @example * await client.clients.connections.get("id", { + * strategy: ["ad"], * from: "from", * take: 1, * fields: "fields", @@ -87,7 +88,11 @@ export class ConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/clients/resources/credentials/client/Client.ts b/src/management/api/resources/clients/resources/credentials/client/Client.ts index 45f2d34a28..b0c6a170a5 100644 --- a/src/management/api/resources/clients/resources/credentials/client/Client.ts +++ b/src/management/api/resources/clients/resources/credentials/client/Client.ts @@ -64,7 +64,7 @@ export class CredentialsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -181,7 +181,7 @@ export class CredentialsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -271,7 +271,7 @@ export class CredentialsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -355,7 +355,7 @@ export class CredentialsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -441,7 +441,7 @@ export class CredentialsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/connectionProfiles/client/Client.ts b/src/management/api/resources/connectionProfiles/client/Client.ts index 94fc6a137d..ce823563ee 100644 --- a/src/management/api/resources/connectionProfiles/client/Client.ts +++ b/src/management/api/resources/connectionProfiles/client/Client.ts @@ -67,7 +67,11 @@ export class ConnectionProfilesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -167,7 +171,7 @@ export class ConnectionProfilesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -243,7 +247,7 @@ export class ConnectionProfilesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -322,7 +326,7 @@ export class ConnectionProfilesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -403,7 +407,7 @@ export class ConnectionProfilesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -478,7 +482,7 @@ export class ConnectionProfilesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -553,7 +557,7 @@ export class ConnectionProfilesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/connections/client/Client.ts b/src/management/api/resources/connections/client/Client.ts index d60d6fcccb..8488280282 100644 --- a/src/management/api/resources/connections/client/Client.ts +++ b/src/management/api/resources/connections/client/Client.ts @@ -85,6 +85,7 @@ export class ConnectionsClient { * await client.connections.list({ * from: "from", * take: 1, + * strategy: ["ad"], * name: "name", * fields: "fields", * include_fields: true @@ -126,7 +127,11 @@ export class ConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -232,7 +237,7 @@ export class ConnectionsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -324,7 +329,11 @@ export class ConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -401,7 +410,7 @@ export class ConnectionsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -482,7 +491,7 @@ export class ConnectionsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -562,7 +571,7 @@ export class ConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/connections/resources/clients/client/Client.ts b/src/management/api/resources/connections/resources/clients/client/Client.ts index 67c7c2b2f3..22eba4c29a 100644 --- a/src/management/api/resources/connections/resources/clients/client/Client.ts +++ b/src/management/api/resources/connections/resources/clients/client/Client.ts @@ -72,7 +72,11 @@ export class ClientsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -183,7 +187,7 @@ export class ClientsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/connections/resources/directoryProvisioning/client/Client.ts b/src/management/api/resources/connections/resources/directoryProvisioning/client/Client.ts index 9e074b940e..0d31945b5d 100644 --- a/src/management/api/resources/connections/resources/directoryProvisioning/client/Client.ts +++ b/src/management/api/resources/connections/resources/directoryProvisioning/client/Client.ts @@ -73,7 +73,11 @@ export class DirectoryProvisioningClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -175,7 +179,7 @@ export class DirectoryProvisioningClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -264,7 +268,7 @@ export class DirectoryProvisioningClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -352,7 +356,7 @@ export class DirectoryProvisioningClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -437,7 +441,7 @@ export class DirectoryProvisioningClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -523,7 +527,7 @@ export class DirectoryProvisioningClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -614,7 +618,11 @@ export class DirectoryProvisioningClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -727,7 +735,7 @@ export class DirectoryProvisioningClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.ts b/src/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.ts index 9fa6393f1d..687b5dd7a4 100644 --- a/src/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.ts +++ b/src/management/api/resources/connections/resources/directoryProvisioning/resources/synchronizations/client/Client.ts @@ -67,7 +67,7 @@ export class SynchronizationsClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/connections/resources/keys/client/Client.ts b/src/management/api/resources/connections/resources/keys/client/Client.ts index 0a850e7595..5d30a42953 100644 --- a/src/management/api/resources/connections/resources/keys/client/Client.ts +++ b/src/management/api/resources/connections/resources/keys/client/Client.ts @@ -63,7 +63,7 @@ export class KeysClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -144,7 +144,7 @@ export class KeysClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -231,7 +231,7 @@ export class KeysClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/connections/resources/scimConfiguration/client/Client.ts b/src/management/api/resources/connections/resources/scimConfiguration/client/Client.ts index 6d8d3a142f..001d6da517 100644 --- a/src/management/api/resources/connections/resources/scimConfiguration/client/Client.ts +++ b/src/management/api/resources/connections/resources/scimConfiguration/client/Client.ts @@ -73,7 +73,11 @@ export class ScimConfigurationClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -172,7 +176,7 @@ export class ScimConfigurationClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -251,7 +255,7 @@ export class ScimConfigurationClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -325,7 +329,7 @@ export class ScimConfigurationClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -404,7 +408,7 @@ export class ScimConfigurationClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -481,7 +485,7 @@ export class ScimConfigurationClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.ts b/src/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.ts index 5856ca6bb8..89bf853f5b 100644 --- a/src/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.ts +++ b/src/management/api/resources/connections/resources/scimConfiguration/resources/tokens/client/Client.ts @@ -63,7 +63,7 @@ export class TokensClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -143,7 +143,7 @@ export class TokensClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -225,7 +225,7 @@ export class TokensClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/connections/resources/users/client/Client.ts b/src/management/api/resources/connections/resources/users/client/Client.ts index c1d9d255ae..d8f661f635 100644 --- a/src/management/api/resources/connections/resources/users/client/Client.ts +++ b/src/management/api/resources/connections/resources/users/client/Client.ts @@ -71,7 +71,11 @@ export class UsersClient { ), method: "DELETE", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/customDomains/client/Client.ts b/src/management/api/resources/customDomains/client/Client.ts index c14ef7541b..7cb1f957fa 100644 --- a/src/management/api/resources/customDomains/client/Client.ts +++ b/src/management/api/resources/customDomains/client/Client.ts @@ -73,7 +73,11 @@ export class CustomDomainsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -165,7 +169,7 @@ export class CustomDomainsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -241,7 +245,7 @@ export class CustomDomainsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -316,7 +320,7 @@ export class CustomDomainsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -391,7 +395,7 @@ export class CustomDomainsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -466,7 +470,7 @@ export class CustomDomainsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -566,7 +570,7 @@ export class CustomDomainsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -645,7 +649,7 @@ export class CustomDomainsClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -731,7 +735,7 @@ export class CustomDomainsClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/deviceCredentials/client/Client.ts b/src/management/api/resources/deviceCredentials/client/Client.ts index 3da07b3b36..9b231c7e9d 100644 --- a/src/management/api/resources/deviceCredentials/client/Client.ts +++ b/src/management/api/resources/deviceCredentials/client/Client.ts @@ -88,7 +88,11 @@ export class DeviceCredentialsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -198,7 +202,7 @@ export class DeviceCredentialsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -275,7 +279,7 @@ export class DeviceCredentialsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/emailTemplates/client/Client.ts b/src/management/api/resources/emailTemplates/client/Client.ts index 91a136c431..46e9e098d6 100644 --- a/src/management/api/resources/emailTemplates/client/Client.ts +++ b/src/management/api/resources/emailTemplates/client/Client.ts @@ -66,7 +66,7 @@ export class EmailTemplatesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -146,7 +146,7 @@ export class EmailTemplatesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -234,7 +234,7 @@ export class EmailTemplatesClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -324,7 +324,7 @@ export class EmailTemplatesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/emails/resources/provider/client/Client.ts b/src/management/api/resources/emails/resources/provider/client/Client.ts index 5793717c3f..3f5a09c46a 100644 --- a/src/management/api/resources/emails/resources/provider/client/Client.ts +++ b/src/management/api/resources/emails/resources/provider/client/Client.ts @@ -71,7 +71,11 @@ export class ProviderClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -197,7 +201,7 @@ export class ProviderClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -271,7 +275,7 @@ export class ProviderClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -388,7 +392,7 @@ export class ProviderClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/eventStreams/client/Client.ts b/src/management/api/resources/eventStreams/client/Client.ts index 0744bd2121..689af456a9 100644 --- a/src/management/api/resources/eventStreams/client/Client.ts +++ b/src/management/api/resources/eventStreams/client/Client.ts @@ -77,7 +77,11 @@ export class EventStreamsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -184,7 +188,7 @@ export class EventStreamsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -262,7 +266,7 @@ export class EventStreamsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -333,7 +337,7 @@ export class EventStreamsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -408,7 +412,7 @@ export class EventStreamsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -489,7 +493,7 @@ export class EventStreamsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/eventStreams/resources/deliveries/client/Client.ts b/src/management/api/resources/eventStreams/resources/deliveries/client/Client.ts index 84c74f3117..f0064581a2 100644 --- a/src/management/api/resources/eventStreams/resources/deliveries/client/Client.ts +++ b/src/management/api/resources/eventStreams/resources/deliveries/client/Client.ts @@ -87,7 +87,11 @@ export class DeliveriesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -168,7 +172,7 @@ export class DeliveriesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/eventStreams/resources/redeliveries/client/Client.ts b/src/management/api/resources/eventStreams/resources/redeliveries/client/Client.ts index 391fd9dc2f..e5de1739f7 100644 --- a/src/management/api/resources/eventStreams/resources/redeliveries/client/Client.ts +++ b/src/management/api/resources/eventStreams/resources/redeliveries/client/Client.ts @@ -65,7 +65,7 @@ export class RedeliveriesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -152,7 +152,7 @@ export class RedeliveriesClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/events/client/Client.ts b/src/management/api/resources/events/client/Client.ts new file mode 100644 index 0000000000..abedca801d --- /dev/null +++ b/src/management/api/resources/events/client/Client.ts @@ -0,0 +1,116 @@ +// This file was auto-generated by Fern from our API Definition. + +import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; +import { normalizeClientOptionsWithAuth, type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; +import * as core from "../../../../core/index.js"; +import { mergeHeaders } from "../../../../core/headers.js"; +import * as environments from "../../../../environments.js"; +import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js"; +import * as errors from "../../../../errors/index.js"; +import * as Management from "../../../index.js"; + +export declare namespace EventsClient { + export type Options = BaseClientOptions; + + export interface RequestOptions extends BaseRequestOptions {} +} + +export class EventsClient { + protected readonly _options: NormalizedClientOptionsWithAuth; + + constructor(options: EventsClient.Options) { + this._options = normalizeClientOptionsWithAuth(options); + } + + /** + * Subscribe to events via Server-Sent Events (SSE) + */ + public subscribe( + request: Management.SubscribeEventsRequestParameters = {}, + requestOptions?: EventsClient.RequestOptions, + ): core.HttpResponsePromise> { + return core.HttpResponsePromise.fromPromise(this.__subscribe(request, requestOptions)); + } + + private async __subscribe( + request: Management.SubscribeEventsRequestParameters = {}, + requestOptions?: EventsClient.RequestOptions, + ): Promise>> { + const { from: from_, from_timestamp: fromTimestamp, event_type: eventType } = request; + const _queryParams: Record = { + from: from_, + from_timestamp: fromTimestamp, + event_type: Array.isArray(eventType) + ? eventType.map((item) => item) + : eventType !== undefined + ? eventType + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + let _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.ManagementEnvironment.Default, + "events", + ), + method: "GET", + headers: _headers, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), + responseType: "sse", + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: new core.Stream({ + stream: _response.body, + parse: (data) => data as any, + signal: requestOptions?.abortSignal, + eventShape: { + type: "sse", + eventDiscriminator: "type", + }, + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new Management.BadRequestError(_response.error.body as unknown, _response.rawResponse); + case 401: + throw new Management.UnauthorizedError(_response.error.body as unknown, _response.rawResponse); + case 403: + throw new Management.ForbiddenError(_response.error.body as unknown, _response.rawResponse); + case 404: + throw new Management.NotFoundError(_response.error.body as unknown, _response.rawResponse); + case 410: + throw new Management.GoneError(_response.error.body as unknown, _response.rawResponse); + case 429: + throw new Management.TooManyRequestsError(_response.error.body as unknown, _response.rawResponse); + default: + throw new errors.ManagementError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + } + + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/events"); + } +} diff --git a/src/management/api/resources/events/client/index.ts b/src/management/api/resources/events/client/index.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/src/management/api/resources/events/client/index.ts @@ -0,0 +1 @@ +export {}; diff --git a/src/management/api/resources/events/index.ts b/src/management/api/resources/events/index.ts new file mode 100644 index 0000000000..914b8c3c72 --- /dev/null +++ b/src/management/api/resources/events/index.ts @@ -0,0 +1 @@ +export * from "./client/index.js"; diff --git a/src/management/api/resources/flows/client/Client.ts b/src/management/api/resources/flows/client/Client.ts index 8a099016cc..c7fc1d57d9 100644 --- a/src/management/api/resources/flows/client/Client.ts +++ b/src/management/api/resources/flows/client/Client.ts @@ -48,6 +48,7 @@ export class FlowsClient { * page: 1, * per_page: 1, * include_totals: true, + * hydrate: ["form_count"], * synchronous: true * }) */ @@ -92,7 +93,11 @@ export class FlowsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -190,7 +195,7 @@ export class FlowsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -237,7 +242,9 @@ export class FlowsClient { * @throws {@link Management.TooManyRequestsError} * * @example - * await client.flows.get("id") + * await client.flows.get("id", { + * hydrate: ["form_count"] + * }) */ public get( id: string, @@ -271,7 +278,11 @@ export class FlowsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -342,7 +353,7 @@ export class FlowsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -419,7 +430,7 @@ export class FlowsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/flows/resources/executions/client/Client.ts b/src/management/api/resources/flows/resources/executions/client/Client.ts index 744470325c..99a92ed943 100644 --- a/src/management/api/resources/flows/resources/executions/client/Client.ts +++ b/src/management/api/resources/flows/resources/executions/client/Client.ts @@ -67,7 +67,11 @@ export class ExecutionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -140,7 +144,9 @@ export class ExecutionsClient { * @throws {@link Management.TooManyRequestsError} * * @example - * await client.flows.executions.get("flow_id", "execution_id") + * await client.flows.executions.get("flow_id", "execution_id", { + * hydrate: ["debug"] + * }) */ public get( flow_id: string, @@ -176,7 +182,11 @@ export class ExecutionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -258,7 +268,7 @@ export class ExecutionsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/flows/resources/vault/resources/connections/client/Client.ts b/src/management/api/resources/flows/resources/vault/resources/connections/client/Client.ts index 5607cb33bc..bb5a4f54ff 100644 --- a/src/management/api/resources/flows/resources/vault/resources/connections/client/Client.ts +++ b/src/management/api/resources/flows/resources/vault/resources/connections/client/Client.ts @@ -75,7 +75,11 @@ export class ConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -187,7 +191,7 @@ export class ConnectionsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -264,7 +268,7 @@ export class ConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -337,7 +341,7 @@ export class ConnectionsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -418,7 +422,7 @@ export class ConnectionsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/forms/client/Client.ts b/src/management/api/resources/forms/client/Client.ts index f57a3c5cad..859886b27e 100644 --- a/src/management/api/resources/forms/client/Client.ts +++ b/src/management/api/resources/forms/client/Client.ts @@ -35,7 +35,8 @@ export class FormsClient { * await client.forms.list({ * page: 1, * per_page: 1, - * include_totals: true + * include_totals: true, + * hydrate: ["flow_count"] * }) */ public async list( @@ -72,7 +73,11 @@ export class FormsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -170,7 +175,7 @@ export class FormsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -217,7 +222,9 @@ export class FormsClient { * @throws {@link Management.TooManyRequestsError} * * @example - * await client.forms.get("id") + * await client.forms.get("id", { + * hydrate: ["flow_count"] + * }) */ public get( id: string, @@ -251,7 +258,11 @@ export class FormsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -321,7 +332,7 @@ export class FormsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -395,7 +406,7 @@ export class FormsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/groups/client/Client.ts b/src/management/api/resources/groups/client/Client.ts index b0c46f2df6..a82d823426 100644 --- a/src/management/api/resources/groups/client/Client.ts +++ b/src/management/api/resources/groups/client/Client.ts @@ -44,6 +44,7 @@ export class GroupsClient { * connection_id: "connection_id", * name: "name", * external_id: "external_id", + * search: "search", * fields: "fields", * include_fields: true, * from: "from", @@ -62,6 +63,7 @@ export class GroupsClient { connection_id: connectionId, name, external_id: externalId, + search, fields, include_fields: includeFields, from: from_, @@ -71,6 +73,7 @@ export class GroupsClient { connection_id: connectionId, name, external_id: externalId, + search, fields, include_fields: includeFields, from: from_, @@ -91,7 +94,11 @@ export class GroupsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -188,7 +195,7 @@ export class GroupsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -260,7 +267,7 @@ export class GroupsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/groups/resources/members/client/Client.ts b/src/management/api/resources/groups/resources/members/client/Client.ts index e436cbf8bf..db1e56a5b6 100644 --- a/src/management/api/resources/groups/resources/members/client/Client.ts +++ b/src/management/api/resources/groups/resources/members/client/Client.ts @@ -73,7 +73,11 @@ export class MembersClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/guardian/resources/enrollments/client/Client.ts b/src/management/api/resources/guardian/resources/enrollments/client/Client.ts index f9590115e8..bc5e48bc7c 100644 --- a/src/management/api/resources/guardian/resources/enrollments/client/Client.ts +++ b/src/management/api/resources/guardian/resources/enrollments/client/Client.ts @@ -68,7 +68,7 @@ export class EnrollmentsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -145,7 +145,7 @@ export class EnrollmentsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -215,7 +215,7 @@ export class EnrollmentsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/guardian/resources/factors/client/Client.ts b/src/management/api/resources/guardian/resources/factors/client/Client.ts index 01a095ff8f..1016f2d284 100644 --- a/src/management/api/resources/guardian/resources/factors/client/Client.ts +++ b/src/management/api/resources/guardian/resources/factors/client/Client.ts @@ -80,7 +80,7 @@ export class FactorsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -156,7 +156,7 @@ export class FactorsClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.ts b/src/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.ts index ebac5d09a0..38b9c1b1bb 100644 --- a/src/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.ts +++ b/src/management/api/resources/guardian/resources/factors/resources/duo/resources/settings/client/Client.ts @@ -61,7 +61,7 @@ export class SettingsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -140,7 +140,7 @@ export class SettingsClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -219,7 +219,7 @@ export class SettingsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/guardian/resources/factors/resources/phone/client/Client.ts b/src/management/api/resources/guardian/resources/factors/resources/phone/client/Client.ts index 96f5496b68..ad9c4d47b6 100644 --- a/src/management/api/resources/guardian/resources/factors/resources/phone/client/Client.ts +++ b/src/management/api/resources/guardian/resources/factors/resources/phone/client/Client.ts @@ -61,7 +61,7 @@ export class PhoneClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -143,7 +143,7 @@ export class PhoneClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -222,7 +222,7 @@ export class PhoneClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -301,7 +301,7 @@ export class PhoneClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -378,7 +378,7 @@ export class PhoneClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -457,7 +457,7 @@ export class PhoneClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -534,7 +534,7 @@ export class PhoneClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -616,7 +616,7 @@ export class PhoneClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts b/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts index 61934a05ed..c0e6110eae 100644 --- a/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts +++ b/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts @@ -61,7 +61,7 @@ export class PushNotificationClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -140,7 +140,7 @@ export class PushNotificationClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -221,7 +221,7 @@ export class PushNotificationClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -302,7 +302,7 @@ export class PushNotificationClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -383,7 +383,7 @@ export class PushNotificationClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -464,7 +464,7 @@ export class PushNotificationClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -545,7 +545,7 @@ export class PushNotificationClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -622,7 +622,7 @@ export class PushNotificationClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -701,7 +701,7 @@ export class PushNotificationClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -782,7 +782,7 @@ export class PushNotificationClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -859,7 +859,7 @@ export class PushNotificationClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -940,7 +940,7 @@ export class PushNotificationClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/guardian/resources/factors/resources/sms/client/Client.ts b/src/management/api/resources/guardian/resources/factors/resources/sms/client/Client.ts index 5042bfd309..ef0c3820aa 100644 --- a/src/management/api/resources/guardian/resources/factors/resources/sms/client/Client.ts +++ b/src/management/api/resources/guardian/resources/factors/resources/sms/client/Client.ts @@ -63,7 +63,7 @@ export class SmsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -144,7 +144,7 @@ export class SmsClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -223,7 +223,7 @@ export class SmsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -306,7 +306,7 @@ export class SmsClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -385,7 +385,7 @@ export class SmsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -469,7 +469,7 @@ export class SmsClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/guardian/resources/policies/client/Client.ts b/src/management/api/resources/guardian/resources/policies/client/Client.ts index 7e0908fe57..a43a2c2a97 100644 --- a/src/management/api/resources/guardian/resources/policies/client/Client.ts +++ b/src/management/api/resources/guardian/resources/policies/client/Client.ts @@ -66,7 +66,7 @@ export class PoliciesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -148,7 +148,7 @@ export class PoliciesClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/hooks/client/Client.ts b/src/management/api/resources/hooks/client/Client.ts index b386dde24b..8245183f3c 100644 --- a/src/management/api/resources/hooks/client/Client.ts +++ b/src/management/api/resources/hooks/client/Client.ts @@ -89,7 +89,11 @@ export class HooksClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -194,7 +198,7 @@ export class HooksClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -281,7 +285,11 @@ export class HooksClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -353,7 +361,7 @@ export class HooksClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -432,7 +440,7 @@ export class HooksClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/hooks/resources/secrets/client/Client.ts b/src/management/api/resources/hooks/resources/secrets/client/Client.ts index 7868a7f443..da0085e7c6 100644 --- a/src/management/api/resources/hooks/resources/secrets/client/Client.ts +++ b/src/management/api/resources/hooks/resources/secrets/client/Client.ts @@ -63,7 +63,7 @@ export class SecretsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -148,7 +148,7 @@ export class SecretsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -229,7 +229,7 @@ export class SecretsClient { method: "DELETE", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -312,7 +312,7 @@ export class SecretsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/index.ts b/src/management/api/resources/index.ts index e63df53f01..49c914cf74 100644 --- a/src/management/api/resources/index.ts +++ b/src/management/api/resources/index.ts @@ -10,6 +10,7 @@ export * as customDomains from "./customDomains/index.js"; export * as deviceCredentials from "./deviceCredentials/index.js"; export * as emails from "./emails/index.js"; export * as emailTemplates from "./emailTemplates/index.js"; +export * as events from "./events/index.js"; export * as eventStreams from "./eventStreams/index.js"; export * from "./eventStreams/types/index.js"; export * as flows from "./flows/index.js"; diff --git a/src/management/api/resources/jobs/client/Client.ts b/src/management/api/resources/jobs/client/Client.ts index 0d39f34fa9..7377274f9f 100644 --- a/src/management/api/resources/jobs/client/Client.ts +++ b/src/management/api/resources/jobs/client/Client.ts @@ -87,7 +87,7 @@ export class JobsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/jobs/resources/errors/client/Client.ts b/src/management/api/resources/jobs/resources/errors/client/Client.ts index 1a73071d49..e05dbbb5bd 100644 --- a/src/management/api/resources/jobs/resources/errors/client/Client.ts +++ b/src/management/api/resources/jobs/resources/errors/client/Client.ts @@ -63,7 +63,7 @@ export class ErrorsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/jobs/resources/usersExports/client/Client.ts b/src/management/api/resources/jobs/resources/usersExports/client/Client.ts index 5cc4e55da4..27d1846250 100644 --- a/src/management/api/resources/jobs/resources/usersExports/client/Client.ts +++ b/src/management/api/resources/jobs/resources/usersExports/client/Client.ts @@ -63,7 +63,7 @@ export class UsersExportsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/jobs/resources/usersImports/client/Client.ts b/src/management/api/resources/jobs/resources/usersImports/client/Client.ts index e30164a2d1..da19e8c4ac 100644 --- a/src/management/api/resources/jobs/resources/usersImports/client/Client.ts +++ b/src/management/api/resources/jobs/resources/usersImports/client/Client.ts @@ -86,7 +86,7 @@ export class UsersImportsClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "file", duplex: _maybeEncodedRequest.duplex, body: _maybeEncodedRequest.body, diff --git a/src/management/api/resources/jobs/resources/verificationEmail/client/Client.ts b/src/management/api/resources/jobs/resources/verificationEmail/client/Client.ts index b1cfc87ca9..044eee41d8 100644 --- a/src/management/api/resources/jobs/resources/verificationEmail/client/Client.ts +++ b/src/management/api/resources/jobs/resources/verificationEmail/client/Client.ts @@ -67,7 +67,7 @@ export class VerificationEmailClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/keys/resources/customSigning/client/Client.ts b/src/management/api/resources/keys/resources/customSigning/client/Client.ts index ce2de2043c..01d2cbce50 100644 --- a/src/management/api/resources/keys/resources/customSigning/client/Client.ts +++ b/src/management/api/resources/keys/resources/customSigning/client/Client.ts @@ -59,7 +59,7 @@ export class CustomSigningClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -140,7 +140,7 @@ export class CustomSigningClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -210,7 +210,7 @@ export class CustomSigningClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/keys/resources/encryption/client/Client.ts b/src/management/api/resources/keys/resources/encryption/client/Client.ts index f85b946984..ba8632e332 100644 --- a/src/management/api/resources/keys/resources/encryption/client/Client.ts +++ b/src/management/api/resources/keys/resources/encryption/client/Client.ts @@ -69,7 +69,11 @@ export class EncryptionClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -170,7 +174,7 @@ export class EncryptionClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -242,7 +246,7 @@ export class EncryptionClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -314,7 +318,7 @@ export class EncryptionClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -399,7 +403,7 @@ export class EncryptionClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -476,7 +480,7 @@ export class EncryptionClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -550,7 +554,7 @@ export class EncryptionClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/keys/resources/signing/client/Client.ts b/src/management/api/resources/keys/resources/signing/client/Client.ts index 4464cf697e..67b4245170 100644 --- a/src/management/api/resources/keys/resources/signing/client/Client.ts +++ b/src/management/api/resources/keys/resources/signing/client/Client.ts @@ -57,7 +57,7 @@ export class SigningClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -126,7 +126,7 @@ export class SigningClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -200,7 +200,7 @@ export class SigningClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -276,7 +276,7 @@ export class SigningClient { ), method: "PUT", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/logStreams/client/Client.ts b/src/management/api/resources/logStreams/client/Client.ts index 8acd6bdfce..3af529d2d1 100644 --- a/src/management/api/resources/logStreams/client/Client.ts +++ b/src/management/api/resources/logStreams/client/Client.ts @@ -129,7 +129,7 @@ export class LogStreamsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -405,7 +405,7 @@ export class LogStreamsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -636,7 +636,7 @@ export class LogStreamsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -710,7 +710,7 @@ export class LogStreamsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -862,7 +862,7 @@ export class LogStreamsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/logs/client/Client.ts b/src/management/api/resources/logs/client/Client.ts index 59d3eaab10..5be328c6f4 100644 --- a/src/management/api/resources/logs/client/Client.ts +++ b/src/management/api/resources/logs/client/Client.ts @@ -113,7 +113,11 @@ export class LogsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -211,7 +215,7 @@ export class LogsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/networkAcls/client/Client.ts b/src/management/api/resources/networkAcls/client/Client.ts index f640c6ee35..2a36132ee2 100644 --- a/src/management/api/resources/networkAcls/client/Client.ts +++ b/src/management/api/resources/networkAcls/client/Client.ts @@ -71,7 +71,11 @@ export class NetworkAclsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -178,7 +182,7 @@ export class NetworkAclsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -257,7 +261,7 @@ export class NetworkAclsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -345,7 +349,7 @@ export class NetworkAclsClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -423,7 +427,7 @@ export class NetworkAclsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -503,7 +507,7 @@ export class NetworkAclsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/organizations/client/Client.ts b/src/management/api/resources/organizations/client/Client.ts index 54d651b1ad..b174b63cc7 100644 --- a/src/management/api/resources/organizations/client/Client.ts +++ b/src/management/api/resources/organizations/client/Client.ts @@ -123,7 +123,11 @@ export class OrganizationsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -223,7 +227,7 @@ export class OrganizationsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -303,7 +307,7 @@ export class OrganizationsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -379,7 +383,7 @@ export class OrganizationsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -455,7 +459,7 @@ export class OrganizationsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -534,7 +538,7 @@ export class OrganizationsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/organizations/resources/clientGrants/client/Client.ts b/src/management/api/resources/organizations/resources/clientGrants/client/Client.ts index adc3cad8ee..1a6a3ce0df 100644 --- a/src/management/api/resources/organizations/resources/clientGrants/client/Client.ts +++ b/src/management/api/resources/organizations/resources/clientGrants/client/Client.ts @@ -36,6 +36,7 @@ export class ClientGrantsClient { * await client.organizations.clientGrants.list("id", { * audience: "audience", * client_id: "client_id", + * grant_ids: ["grant_ids"], * page: 1, * per_page: 1, * include_totals: true @@ -86,7 +87,11 @@ export class ClientGrantsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -197,7 +202,7 @@ export class ClientGrantsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -286,7 +291,7 @@ export class ClientGrantsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/organizations/resources/connections/client/Client.ts b/src/management/api/resources/organizations/resources/connections/client/Client.ts index 376148938d..e45ed53b3a 100644 --- a/src/management/api/resources/organizations/resources/connections/client/Client.ts +++ b/src/management/api/resources/organizations/resources/connections/client/Client.ts @@ -83,7 +83,11 @@ export class ConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -193,7 +197,7 @@ export class ConnectionsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -279,7 +283,7 @@ export class ConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -360,7 +364,7 @@ export class ConnectionsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -441,7 +445,7 @@ export class ConnectionsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/organizations/resources/discoveryDomains/client/Client.ts b/src/management/api/resources/organizations/resources/discoveryDomains/client/Client.ts index 8d1089aa45..994e970db0 100644 --- a/src/management/api/resources/organizations/resources/discoveryDomains/client/Client.ts +++ b/src/management/api/resources/organizations/resources/discoveryDomains/client/Client.ts @@ -73,7 +73,11 @@ export class DiscoveryDomainsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -187,7 +191,7 @@ export class DiscoveryDomainsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -279,7 +283,7 @@ export class DiscoveryDomainsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -367,7 +371,7 @@ export class DiscoveryDomainsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -453,7 +457,7 @@ export class DiscoveryDomainsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -536,7 +540,7 @@ export class DiscoveryDomainsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/organizations/resources/enabledConnections/client/Client.ts b/src/management/api/resources/organizations/resources/enabledConnections/client/Client.ts index c5eb68b431..8c4fa5fd80 100644 --- a/src/management/api/resources/organizations/resources/enabledConnections/client/Client.ts +++ b/src/management/api/resources/organizations/resources/enabledConnections/client/Client.ts @@ -76,7 +76,11 @@ export class EnabledConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -190,7 +194,7 @@ export class EnabledConnectionsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -275,7 +279,7 @@ export class EnabledConnectionsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -359,7 +363,7 @@ export class EnabledConnectionsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -444,7 +448,7 @@ export class EnabledConnectionsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/organizations/resources/invitations/client/Client.ts b/src/management/api/resources/organizations/resources/invitations/client/Client.ts index 78559d1fa0..e2fce1e6db 100644 --- a/src/management/api/resources/organizations/resources/invitations/client/Client.ts +++ b/src/management/api/resources/organizations/resources/invitations/client/Client.ts @@ -90,7 +90,11 @@ export class InvitationsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -210,7 +214,7 @@ export class InvitationsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -308,7 +312,11 @@ export class InvitationsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -392,7 +400,7 @@ export class InvitationsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/organizations/resources/members/client/Client.ts b/src/management/api/resources/organizations/resources/members/client/Client.ts index 7670139611..8ee22c397a 100644 --- a/src/management/api/resources/organizations/resources/members/client/Client.ts +++ b/src/management/api/resources/organizations/resources/members/client/Client.ts @@ -100,7 +100,11 @@ export class MembersClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -211,7 +215,7 @@ export class MembersClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -290,7 +294,7 @@ export class MembersClient { method: "DELETE", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/organizations/resources/members/resources/roles/client/Client.ts b/src/management/api/resources/organizations/resources/members/resources/roles/client/Client.ts index c9898824fa..ef668dc2c6 100644 --- a/src/management/api/resources/organizations/resources/members/resources/roles/client/Client.ts +++ b/src/management/api/resources/organizations/resources/members/resources/roles/client/Client.ts @@ -78,7 +78,11 @@ export class RolesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -192,7 +196,7 @@ export class RolesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -285,7 +289,7 @@ export class RolesClient { method: "DELETE", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/prompts/client/Client.ts b/src/management/api/resources/prompts/client/Client.ts index c9fda81ed5..eaffa40fec 100644 --- a/src/management/api/resources/prompts/client/Client.ts +++ b/src/management/api/resources/prompts/client/Client.ts @@ -76,7 +76,7 @@ export class PromptsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -151,7 +151,7 @@ export class PromptsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/prompts/resources/customText/client/Client.ts b/src/management/api/resources/prompts/resources/customText/client/Client.ts index e7d0e30ae2..b41d19f32c 100644 --- a/src/management/api/resources/prompts/resources/customText/client/Client.ts +++ b/src/management/api/resources/prompts/resources/customText/client/Client.ts @@ -66,7 +66,7 @@ export class CustomTextClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -158,7 +158,7 @@ export class CustomTextClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/prompts/resources/partials/client/Client.ts b/src/management/api/resources/prompts/resources/partials/client/Client.ts index 8b0648e384..4e8e2bcf5a 100644 --- a/src/management/api/resources/prompts/resources/partials/client/Client.ts +++ b/src/management/api/resources/prompts/resources/partials/client/Client.ts @@ -63,7 +63,7 @@ export class PartialsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -147,7 +147,7 @@ export class PartialsClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/prompts/resources/rendering/client/Client.ts b/src/management/api/resources/prompts/resources/rendering/client/Client.ts index 29b6e34555..17ae792d65 100644 --- a/src/management/api/resources/prompts/resources/rendering/client/Client.ts +++ b/src/management/api/resources/prompts/resources/rendering/client/Client.ts @@ -89,7 +89,11 @@ export class RenderingClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -201,7 +205,7 @@ export class RenderingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -286,7 +290,7 @@ export class RenderingClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -376,7 +380,7 @@ export class RenderingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/refreshTokens/client/Client.ts b/src/management/api/resources/refreshTokens/client/Client.ts index d5b9082647..dc79ea46c2 100644 --- a/src/management/api/resources/refreshTokens/client/Client.ts +++ b/src/management/api/resources/refreshTokens/client/Client.ts @@ -83,7 +83,11 @@ export class RefreshTokensClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -144,12 +148,89 @@ export class RefreshTokensClient { }); } + /** + * Revoke refresh tokens in bulk by ID list, user, user+client, or client. + * + * @param {Management.RevokeRefreshTokensRequestContent} request + * @param {RefreshTokensClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Management.BadRequestError} + * @throws {@link Management.UnauthorizedError} + * @throws {@link Management.ForbiddenError} + * @throws {@link Management.TooManyRequestsError} + * + * @example + * await client.refreshTokens.revoke() + */ + public revoke( + request: Management.RevokeRefreshTokensRequestContent = {}, + requestOptions?: RefreshTokensClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__revoke(request, requestOptions)); + } + + private async __revoke( + request: Management.RevokeRefreshTokensRequestContent = {}, + requestOptions?: RefreshTokensClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + let _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.ManagementEnvironment.Default, + "refresh-tokens/revoke", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), + requestType: "json", + body: request, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { data: undefined, rawResponse: _response.rawResponse }; + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new Management.BadRequestError(_response.error.body as unknown, _response.rawResponse); + case 401: + throw new Management.UnauthorizedError(_response.error.body as unknown, _response.rawResponse); + case 403: + throw new Management.ForbiddenError(_response.error.body as unknown, _response.rawResponse); + case 429: + throw new Management.TooManyRequestsError(_response.error.body as unknown, _response.rawResponse); + default: + throw new errors.ManagementError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + } + + return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/refresh-tokens/revoke"); + } + /** * Retrieve refresh token information. * * @param {string} id - ID refresh token to retrieve * @param {RefreshTokensClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Management.BadRequestError} * @throws {@link Management.UnauthorizedError} * @throws {@link Management.ForbiddenError} * @throws {@link Management.NotFoundError} @@ -184,7 +265,7 @@ export class RefreshTokensClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -200,6 +281,8 @@ export class RefreshTokensClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Management.BadRequestError(_response.error.body as unknown, _response.rawResponse); case 401: throw new Management.UnauthorizedError(_response.error.body as unknown, _response.rawResponse); case 403: @@ -257,7 +340,7 @@ export class RefreshTokensClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -335,7 +418,7 @@ export class RefreshTokensClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/resourceServers/client/Client.ts b/src/management/api/resources/resourceServers/client/Client.ts index 8bd116244f..8fb55aa8d0 100644 --- a/src/management/api/resources/resourceServers/client/Client.ts +++ b/src/management/api/resources/resourceServers/client/Client.ts @@ -35,6 +35,7 @@ export class ResourceServersClient { * * @example * await client.resourceServers.list({ + * identifiers: ["identifiers"], * page: 1, * per_page: 1, * include_totals: true, @@ -78,7 +79,11 @@ export class ResourceServersClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -179,7 +184,7 @@ export class ResourceServersClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -269,7 +274,11 @@ export class ResourceServersClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -344,7 +353,7 @@ export class ResourceServersClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -422,7 +431,7 @@ export class ResourceServersClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/riskAssessments/resources/settings/client/Client.ts b/src/management/api/resources/riskAssessments/resources/settings/client/Client.ts index f4f4086f2a..970bc1dcd3 100644 --- a/src/management/api/resources/riskAssessments/resources/settings/client/Client.ts +++ b/src/management/api/resources/riskAssessments/resources/settings/client/Client.ts @@ -65,7 +65,7 @@ export class SettingsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -145,7 +145,7 @@ export class SettingsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.ts b/src/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.ts index 2079d2d3c6..bda2e74462 100644 --- a/src/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.ts +++ b/src/management/api/resources/riskAssessments/resources/settings/resources/newDevice/client/Client.ts @@ -62,7 +62,7 @@ export class NewDeviceClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -147,7 +147,7 @@ export class NewDeviceClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/roles/client/Client.ts b/src/management/api/resources/roles/client/Client.ts index 51ea3e0174..4a55d56802 100644 --- a/src/management/api/resources/roles/client/Client.ts +++ b/src/management/api/resources/roles/client/Client.ts @@ -90,7 +90,11 @@ export class RolesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -193,7 +197,7 @@ export class RolesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -271,7 +275,7 @@ export class RolesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -344,7 +348,7 @@ export class RolesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -423,7 +427,7 @@ export class RolesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/roles/resources/permissions/client/Client.ts b/src/management/api/resources/roles/resources/permissions/client/Client.ts index 1fe9d52800..3fd5128cb4 100644 --- a/src/management/api/resources/roles/resources/permissions/client/Client.ts +++ b/src/management/api/resources/roles/resources/permissions/client/Client.ts @@ -74,7 +74,11 @@ export class PermissionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -190,7 +194,7 @@ export class PermissionsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -274,7 +278,7 @@ export class PermissionsClient { method: "DELETE", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/roles/resources/users/client/Client.ts b/src/management/api/resources/roles/resources/users/client/Client.ts index efafa44320..35b0871dff 100644 --- a/src/management/api/resources/roles/resources/users/client/Client.ts +++ b/src/management/api/resources/roles/resources/users/client/Client.ts @@ -88,7 +88,11 @@ export class UsersClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -195,7 +199,7 @@ export class UsersClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/rules/client/Client.ts b/src/management/api/resources/rules/client/Client.ts index d5cf2b6cf2..3f3f3b7bab 100644 --- a/src/management/api/resources/rules/client/Client.ts +++ b/src/management/api/resources/rules/client/Client.ts @@ -83,7 +83,11 @@ export class RulesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -189,7 +193,7 @@ export class RulesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -278,7 +282,11 @@ export class RulesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -350,7 +358,7 @@ export class RulesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -429,7 +437,7 @@ export class RulesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/rulesConfigs/client/Client.ts b/src/management/api/resources/rulesConfigs/client/Client.ts index 6206feb4fe..1a9cea7809 100644 --- a/src/management/api/resources/rulesConfigs/client/Client.ts +++ b/src/management/api/resources/rulesConfigs/client/Client.ts @@ -60,7 +60,7 @@ export class RulesConfigsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -136,7 +136,7 @@ export class RulesConfigsClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -208,7 +208,7 @@ export class RulesConfigsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/selfServiceProfiles/client/Client.ts b/src/management/api/resources/selfServiceProfiles/client/Client.ts index a9b814e861..b53cbe51e7 100644 --- a/src/management/api/resources/selfServiceProfiles/client/Client.ts +++ b/src/management/api/resources/selfServiceProfiles/client/Client.ts @@ -81,7 +81,11 @@ export class SelfServiceProfilesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -191,7 +195,7 @@ export class SelfServiceProfilesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -275,7 +279,7 @@ export class SelfServiceProfilesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -356,7 +360,7 @@ export class SelfServiceProfilesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -442,7 +446,7 @@ export class SelfServiceProfilesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/selfServiceProfiles/resources/customText/client/Client.ts b/src/management/api/resources/selfServiceProfiles/resources/customText/client/Client.ts index 8f6568bff5..be6fd5685d 100644 --- a/src/management/api/resources/selfServiceProfiles/resources/customText/client/Client.ts +++ b/src/management/api/resources/selfServiceProfiles/resources/customText/client/Client.ts @@ -23,7 +23,7 @@ export class CustomTextClient { } /** - * Retrieves text customizations for a given self-service profile, language and Self Service SSO Flow page. + * Retrieves text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. * * @param {string} id - The id of the self-service profile. * @param {Management.SelfServiceProfileCustomTextLanguageEnum} language - The language of the custom text. @@ -68,7 +68,7 @@ export class CustomTextClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -110,7 +110,7 @@ export class CustomTextClient { } /** - * Updates text customizations for a given self-service profile, language and Self Service SSO Flow page. + * Updates text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page. * * @param {string} id - The id of the self-service profile. * @param {Management.SelfServiceProfileCustomTextLanguageEnum} language - The language of the custom text. @@ -161,7 +161,7 @@ export class CustomTextClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.ts b/src/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.ts index 1a683c4b79..3e8583add1 100644 --- a/src/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.ts +++ b/src/management/api/resources/selfServiceProfiles/resources/ssoTicket/client/Client.ts @@ -23,7 +23,7 @@ export class SsoTicketClient { } /** - * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. + * Creates an access ticket to initiate the Self-Service Enterprise Configuration flow using a self-service profile. * * @param {string} id - The id of the self-service profile to retrieve * @param {Management.CreateSelfServiceProfileSsoTicketRequestContent} request @@ -66,7 +66,7 @@ export class SsoTicketClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -110,7 +110,7 @@ export class SsoTicketClient { } /** - * Revokes an SSO access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service SSO session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required. + * Revokes a Self-Service Enterprise Configuration access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service Enterprise Configuration session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required. * Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found. * * @param {string} profileId - The id of the self-service profile @@ -152,7 +152,7 @@ export class SsoTicketClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/sessions/client/Client.ts b/src/management/api/resources/sessions/client/Client.ts index c547822d39..fd947eaccb 100644 --- a/src/management/api/resources/sessions/client/Client.ts +++ b/src/management/api/resources/sessions/client/Client.ts @@ -62,7 +62,7 @@ export class SessionsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -132,7 +132,7 @@ export class SessionsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -210,7 +210,7 @@ export class SessionsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -288,7 +288,7 @@ export class SessionsClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/stats/client/Client.ts b/src/management/api/resources/stats/client/Client.ts index 357afdffd8..d7f750bc6d 100644 --- a/src/management/api/resources/stats/client/Client.ts +++ b/src/management/api/resources/stats/client/Client.ts @@ -58,7 +58,7 @@ export class StatsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -140,7 +140,11 @@ export class StatsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/supplementalSignals/client/Client.ts b/src/management/api/resources/supplementalSignals/client/Client.ts index 2d213d2d7d..2742b5fad0 100644 --- a/src/management/api/resources/supplementalSignals/client/Client.ts +++ b/src/management/api/resources/supplementalSignals/client/Client.ts @@ -59,7 +59,7 @@ export class SupplementalSignalsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -138,7 +138,7 @@ export class SupplementalSignalsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/tenants/resources/settings/client/Client.ts b/src/management/api/resources/tenants/resources/settings/client/Client.ts index 2e0fc64c83..0fa166f21d 100644 --- a/src/management/api/resources/tenants/resources/settings/client/Client.ts +++ b/src/management/api/resources/tenants/resources/settings/client/Client.ts @@ -70,7 +70,11 @@ export class SettingsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -147,7 +151,7 @@ export class SettingsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/tickets/client/Client.ts b/src/management/api/resources/tickets/client/Client.ts index fcbb70d497..c1cf9939a5 100644 --- a/src/management/api/resources/tickets/client/Client.ts +++ b/src/management/api/resources/tickets/client/Client.ts @@ -66,7 +66,7 @@ export class TicketsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -150,7 +150,7 @@ export class TicketsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/tokenExchangeProfiles/client/Client.ts b/src/management/api/resources/tokenExchangeProfiles/client/Client.ts index d5fd49139a..66e219c249 100644 --- a/src/management/api/resources/tokenExchangeProfiles/client/Client.ts +++ b/src/management/api/resources/tokenExchangeProfiles/client/Client.ts @@ -79,7 +79,11 @@ export class TokenExchangeProfilesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -192,7 +196,7 @@ export class TokenExchangeProfilesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -275,7 +279,7 @@ export class TokenExchangeProfilesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -355,7 +359,7 @@ export class TokenExchangeProfilesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -439,7 +443,7 @@ export class TokenExchangeProfilesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/userAttributeProfiles/client/Client.ts b/src/management/api/resources/userAttributeProfiles/client/Client.ts index 6e0f4362c4..600f19609e 100644 --- a/src/management/api/resources/userAttributeProfiles/client/Client.ts +++ b/src/management/api/resources/userAttributeProfiles/client/Client.ts @@ -69,7 +69,11 @@ export class UserAttributeProfilesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -134,7 +138,7 @@ export class UserAttributeProfilesClient { } /** - * Retrieve details about a single User Attribute Profile specified by ID. + * Create a User Attribute Profile * * @param {Management.CreateUserAttributeProfileRequestContent} request * @param {UserAttributeProfilesClient.RequestOptions} requestOptions - Request-specific configuration. @@ -185,7 +189,7 @@ export class UserAttributeProfilesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -261,7 +265,7 @@ export class UserAttributeProfilesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -340,7 +344,7 @@ export class UserAttributeProfilesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -421,7 +425,7 @@ export class UserAttributeProfilesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -496,7 +500,7 @@ export class UserAttributeProfilesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -576,7 +580,7 @@ export class UserAttributeProfilesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/userBlocks/client/Client.ts b/src/management/api/resources/userBlocks/client/Client.ts index daefe2013d..cecdd8c2ee 100644 --- a/src/management/api/resources/userBlocks/client/Client.ts +++ b/src/management/api/resources/userBlocks/client/Client.ts @@ -70,7 +70,11 @@ export class UserBlocksClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -154,7 +158,11 @@ export class UserBlocksClient { ), method: "DELETE", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -237,7 +245,11 @@ export class UserBlocksClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -315,7 +327,7 @@ export class UserBlocksClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/userGrants/client/Client.ts b/src/management/api/resources/userGrants/client/Client.ts index c1829327ad..c0e05d0ef8 100644 --- a/src/management/api/resources/userGrants/client/Client.ts +++ b/src/management/api/resources/userGrants/client/Client.ts @@ -81,7 +81,11 @@ export class UserGrantsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -178,7 +182,11 @@ export class UserGrantsClient { ), method: "DELETE", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -245,7 +253,7 @@ export class UserGrantsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/client/Client.ts b/src/management/api/resources/users/client/Client.ts index 31e23df585..10e8303ca0 100644 --- a/src/management/api/resources/users/client/Client.ts +++ b/src/management/api/resources/users/client/Client.ts @@ -198,7 +198,11 @@ export class UsersClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -306,7 +310,7 @@ export class UsersClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -397,7 +401,11 @@ export class UsersClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -482,7 +490,11 @@ export class UsersClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -554,7 +566,7 @@ export class UsersClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -701,7 +713,7 @@ export class UsersClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -778,7 +790,7 @@ export class UsersClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -863,7 +875,7 @@ export class UsersClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/users/resources/authenticationMethods/client/Client.ts b/src/management/api/resources/users/resources/authenticationMethods/client/Client.ts index 83fba64d2d..1d6993507f 100644 --- a/src/management/api/resources/users/resources/authenticationMethods/client/Client.ts +++ b/src/management/api/resources/users/resources/authenticationMethods/client/Client.ts @@ -79,7 +79,11 @@ export class AuthenticationMethodsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -194,7 +198,7 @@ export class AuthenticationMethodsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -290,7 +294,7 @@ export class AuthenticationMethodsClient { method: "PUT", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -375,7 +379,7 @@ export class AuthenticationMethodsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -455,7 +459,7 @@ export class AuthenticationMethodsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -542,7 +546,7 @@ export class AuthenticationMethodsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -632,7 +636,7 @@ export class AuthenticationMethodsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/users/resources/authenticators/client/Client.ts b/src/management/api/resources/users/resources/authenticators/client/Client.ts index 2a5ecd915b..dca89df5e3 100644 --- a/src/management/api/resources/users/resources/authenticators/client/Client.ts +++ b/src/management/api/resources/users/resources/authenticators/client/Client.ts @@ -59,7 +59,7 @@ export class AuthenticatorsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/connectedAccounts/client/Client.ts b/src/management/api/resources/users/resources/connectedAccounts/client/Client.ts index 51c579ccc8..213c4c8f7d 100644 --- a/src/management/api/resources/users/resources/connectedAccounts/client/Client.ts +++ b/src/management/api/resources/users/resources/connectedAccounts/client/Client.ts @@ -69,7 +69,11 @@ export class ConnectedAccountsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/enrollments/client/Client.ts b/src/management/api/resources/users/resources/enrollments/client/Client.ts index 8caa2eec56..103466ed67 100644 --- a/src/management/api/resources/users/resources/enrollments/client/Client.ts +++ b/src/management/api/resources/users/resources/enrollments/client/Client.ts @@ -63,7 +63,7 @@ export class EnrollmentsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.ts b/src/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.ts index a0cf7e7954..f0d78c0ac6 100644 --- a/src/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.ts +++ b/src/management/api/resources/users/resources/federatedConnectionsTokensets/client/Client.ts @@ -62,7 +62,7 @@ export class FederatedConnectionsTokensetsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -144,7 +144,7 @@ export class FederatedConnectionsTokensetsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/groups/client/Client.ts b/src/management/api/resources/users/resources/groups/client/Client.ts index 5a15d739c4..98b153dd88 100644 --- a/src/management/api/resources/users/resources/groups/client/Client.ts +++ b/src/management/api/resources/users/resources/groups/client/Client.ts @@ -73,7 +73,11 @@ export class GroupsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/identities/client/Client.ts b/src/management/api/resources/users/resources/identities/client/Client.ts index aaa3b3a553..f9bf3fe39a 100644 --- a/src/management/api/resources/users/resources/identities/client/Client.ts +++ b/src/management/api/resources/users/resources/identities/client/Client.ts @@ -94,7 +94,7 @@ export class IdentitiesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -179,7 +179,7 @@ export class IdentitiesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/logs/client/Client.ts b/src/management/api/resources/users/resources/logs/client/Client.ts index 0cfaedf6a9..aea8ddbedc 100644 --- a/src/management/api/resources/users/resources/logs/client/Client.ts +++ b/src/management/api/resources/users/resources/logs/client/Client.ts @@ -79,7 +79,11 @@ export class LogsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/multifactor/client/Client.ts b/src/management/api/resources/users/resources/multifactor/client/Client.ts index 895c57cb9a..c3306b9694 100644 --- a/src/management/api/resources/users/resources/multifactor/client/Client.ts +++ b/src/management/api/resources/users/resources/multifactor/client/Client.ts @@ -61,7 +61,7 @@ export class MultifactorClient { ), method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -141,7 +141,7 @@ export class MultifactorClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/organizations/client/Client.ts b/src/management/api/resources/users/resources/organizations/client/Client.ts index 32e1795aba..7c5fc32714 100644 --- a/src/management/api/resources/users/resources/organizations/client/Client.ts +++ b/src/management/api/resources/users/resources/organizations/client/Client.ts @@ -70,7 +70,11 @@ export class OrganizationsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/permissions/client/Client.ts b/src/management/api/resources/users/resources/permissions/client/Client.ts index e712a12704..c1f98b2422 100644 --- a/src/management/api/resources/users/resources/permissions/client/Client.ts +++ b/src/management/api/resources/users/resources/permissions/client/Client.ts @@ -74,7 +74,11 @@ export class PermissionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -190,7 +194,7 @@ export class PermissionsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -274,7 +278,7 @@ export class PermissionsClient { method: "DELETE", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/users/resources/refreshToken/client/Client.ts b/src/management/api/resources/users/resources/refreshToken/client/Client.ts index 0a2bfb8fcf..47a8372f3b 100644 --- a/src/management/api/resources/users/resources/refreshToken/client/Client.ts +++ b/src/management/api/resources/users/resources/refreshToken/client/Client.ts @@ -71,7 +71,11 @@ export class RefreshTokenClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -170,7 +174,7 @@ export class RefreshTokenClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/users/resources/riskAssessments/client/Client.ts b/src/management/api/resources/users/resources/riskAssessments/client/Client.ts index 78e4d2aa0d..c6f9dfe1de 100644 --- a/src/management/api/resources/users/resources/riskAssessments/client/Client.ts +++ b/src/management/api/resources/users/resources/riskAssessments/client/Client.ts @@ -69,7 +69,7 @@ export class RiskAssessmentsClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/users/resources/roles/client/Client.ts b/src/management/api/resources/users/resources/roles/client/Client.ts index 0792728ffb..8a146d7b18 100644 --- a/src/management/api/resources/users/resources/roles/client/Client.ts +++ b/src/management/api/resources/users/resources/roles/client/Client.ts @@ -72,7 +72,11 @@ export class RolesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -172,7 +176,7 @@ export class RolesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -254,7 +258,7 @@ export class RolesClient { method: "DELETE", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/resources/users/resources/sessions/client/Client.ts b/src/management/api/resources/users/resources/sessions/client/Client.ts index 09f8dce396..988d3ea6ec 100644 --- a/src/management/api/resources/users/resources/sessions/client/Client.ts +++ b/src/management/api/resources/users/resources/sessions/client/Client.ts @@ -69,7 +69,11 @@ export class SessionsClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -165,7 +169,7 @@ export class SessionsClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.ts b/src/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.ts index 1a6d09893a..ad5a594444 100644 --- a/src/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.ts +++ b/src/management/api/resources/verifiableCredentials/resources/verification/resources/templates/client/Client.ts @@ -26,7 +26,7 @@ export class TemplatesClient { } /** - * List a verifiable credential templates. + * List verifiable credential templates. * * @param {Management.ListVerifiableCredentialTemplatesRequestParameters} request * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration. @@ -75,7 +75,11 @@ export class TemplatesClient { ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -191,7 +195,7 @@ export class TemplatesClient { method: "POST", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -277,7 +281,7 @@ export class TemplatesClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -357,7 +361,7 @@ export class TemplatesClient { ), method: "DELETE", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -440,7 +444,7 @@ export class TemplatesClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), requestType: "json", body: request, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/management/api/types/types.ts b/src/management/api/types/types.ts index 79fae97857..5d6c1b0d16 100644 --- a/src/management/api/types/types.ts +++ b/src/management/api/types/types.ts @@ -240,6 +240,9 @@ export const OauthScope = { /** * Delete Event Streams */ DeleteEventStreams: "delete:event_streams", + /** + * Read Events */ + ReadEvents: "read:events", /** * Read Federated Connections Tokens */ ReadFederatedConnectionsTokens: "read:federated_connections_tokens", @@ -1509,6 +1512,23 @@ export interface BrandingFont { url?: string | undefined; } +/** + * Identifier input display settings. + */ +export interface BrandingIdentifiers { + login_display?: Management.BrandingLoginDisplayEnum | undefined; + /** Whether OTP autocomplete (autocomplete="one-time-code") is enabled. */ + otp_autocomplete?: boolean | undefined; + phone_display?: Management.BrandingPhoneDisplay | undefined; +} + +/** Controls identifier input presentation on the login flow. Defaults to "unified" for legacy tenants, "separate" for tenants created post-GA of this feature. */ +export const BrandingLoginDisplayEnum = { + Unified: "unified", + Separate: "separate", +} as const; +export type BrandingLoginDisplayEnum = (typeof BrandingLoginDisplayEnum)[keyof typeof BrandingLoginDisplayEnum]; + /** * Page Background Color or Gradient. * Property contains either null to unset, a solid color as a string value #FFFFFF, or a gradient as an object. @@ -1524,6 +1544,30 @@ export interface BrandingFont { */ export type BrandingPageBackground = (string | null) | undefined | (Record | null) | undefined; +/** + * Phone number display settings. + */ +export interface BrandingPhoneDisplay { + masking?: Management.BrandingPhoneMaskingEnum | undefined; + formatting?: Management.BrandingPhoneFormattingEnum | undefined; +} + +/** Controls the format used when displaying phone numbers. */ +export const BrandingPhoneFormattingEnum = { + Regional: "regional", + International: "international", +} as const; +export type BrandingPhoneFormattingEnum = + (typeof BrandingPhoneFormattingEnum)[keyof typeof BrandingPhoneFormattingEnum]; + +/** Controls how phone numbers are masked when displayed back to users. */ +export const BrandingPhoneMaskingEnum = { + ShowAll: "show_all", + HideCountryCode: "hide_country_code", + MaskDigits: "mask_digits", +} as const; +export type BrandingPhoneMaskingEnum = (typeof BrandingPhoneMaskingEnum)[keyof typeof BrandingPhoneMaskingEnum]; + export interface BrandingThemeBorders { /** Button border radius */ button_border_radius: number; @@ -2671,7 +2715,7 @@ export type ClientExternalMetadataTypeEnum = */ export type ClientGrantAllowAnyOrganizationEnum = boolean; -/** Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. */ +/** Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`. */ export const ClientGrantDefaultForEnum = { ThirdPartyClients: "third_party_clients", } as const; @@ -2941,7 +2985,7 @@ export const ClientOrganizationUsagePatchEnum = { export type ClientOrganizationUsagePatchEnum = (typeof ClientOrganizationUsagePatchEnum)[keyof typeof ClientOrganizationUsagePatchEnum]; -/** Controls whether Auth0 redirects users to the application's callback URL on authentication errors or in email verification flows. `open_redirect_protection` shows an error page instead of redirecting, and hides the callback domain from email templates. `allow_always` enables standard redirect behavior. Defaults to `open_redirect_protection` for third-party clients. Only applies when `is_first_party` is `false` and `third_party_security_mode` is `strict`. */ +/** Controls whether Auth0 redirects users to the application's callback URL on authentication errors or in email verification flows. `open_redirect_protection` shows an error page instead of redirecting, and hides the callback domain from email templates. `allow_always` enables standard redirect behavior. Defaults to `open_redirect_protection` for third-party clients. Only applies when `is_first_party` is `false` and `third_party_security_mode` is `strict`. To learn more, read Redirect protection. */ export const ClientRedirectionPolicyEnum = { AllowAlways: "allow_always", OpenRedirectProtection: "open_redirect_protection", @@ -3063,7 +3107,7 @@ export interface ClientSigningKey { */ export type ClientSigningKeys = (Management.ClientSigningKey[] | null) | undefined; -/** Security mode for third-party clients. `strict` enforces enhanced security controls: OAuth 2.1 alignment, explicit API authorization, and a curated set of supported features. `permissive` preserves pre-existing behavior and is only available to tenants with prior third-party client usage. Set on creation and cannot be modified. */ +/** Security mode for third-party clients. `strict` enforces enhanced security controls: OAuth 2.1 alignment, explicit API authorization, and a curated set of supported features. `permissive` preserves pre-existing behavior and is only available to tenants with prior third-party client usage. Set on creation and cannot be modified. */ export const ClientThirdPartySecurityModeEnum = { Strict: "strict", Permissive: "permissive", @@ -3211,6 +3255,22 @@ export type ConnectionApiEnableUsersGoogleApps = Management.ConnectionApiEnableU */ export type ConnectionAppDomainAzureAd = string; +/** The algorithm profile to use for decrypting SAML assertions. */ +export const ConnectionAssertionDecryptionAlgorithmProfileEnum = { + V20261: "v2026-1", +} as const; +export type ConnectionAssertionDecryptionAlgorithmProfileEnum = + (typeof ConnectionAssertionDecryptionAlgorithmProfileEnum)[keyof typeof ConnectionAssertionDecryptionAlgorithmProfileEnum]; + +/** + * Settings for SAML assertion decryption. + */ +export interface ConnectionAssertionDecryptionSettings { + algorithm_profile: Management.ConnectionAssertionDecryptionAlgorithmProfileEnum; + /** A list of insecure algorithms to allow for SAML assertion decryption. */ + algorithm_exceptions?: string[] | undefined; +} + export interface ConnectionAttributeIdentifier { /** Determines if the attribute is used for identification */ active?: boolean | undefined; @@ -4594,6 +4654,7 @@ export interface ConnectionOptionsCommonOidc { token_endpoint?: Management.ConnectionTokenEndpoint | undefined; token_endpoint_auth_method?: (Management.ConnectionTokenEndpointAuthMethodEnum | null) | undefined; token_endpoint_auth_signing_alg?: (Management.ConnectionTokenEndpointAuthSigningAlgEnum | null) | undefined; + token_endpoint_jwtca_aud_format?: Management.ConnectionTokenEndpointJwtcaAudFormatEnumOidc | undefined; upstream_params?: ((Management.ConnectionUpstreamParams | undefined) | null) | undefined; userinfo_endpoint?: Management.ConnectionUserinfoEndpoint | undefined; /** Accepts any additional properties */ @@ -4604,6 +4665,7 @@ export interface ConnectionOptionsCommonOidc { * Common options for SAML-based enterprise connections (shared by samlp and pingfederate). */ export interface ConnectionOptionsCommonSaml { + assertion_decryption_settings?: Management.ConnectionAssertionDecryptionSettings | undefined; cert?: Management.ConnectionSigningCertificateDerSaml | undefined; decryptionKey?: Management.ConnectionDecryptionKeySaml | undefined; digestAlgorithm?: Management.ConnectionDigestAlgorithmSaml | undefined; @@ -5949,6 +6011,11 @@ export interface ConnectionPropertiesOptions { gateway_authentication?: (Management.ConnectionGatewayAuthentication | null) | undefined; federated_connections_access_tokens?: (Management.ConnectionFederatedConnectionsAccessTokens | null) | undefined; password_options?: Management.ConnectionPasswordOptions | undefined; + assertion_decryption_settings?: Management.ConnectionAssertionDecryptionSettings | undefined; + id_token_signed_response_algs?: ((Management.ConnectionIdTokenSignedResponseAlgs | undefined) | null) | undefined; + token_endpoint_auth_method?: (Management.ConnectionTokenEndpointAuthMethodEnum | null) | undefined; + token_endpoint_auth_signing_alg?: (Management.ConnectionTokenEndpointAuthSigningAlgEnum | null) | undefined; + token_endpoint_jwtca_aud_format?: Management.ConnectionTokenEndpointJwtcaAudFormatEnumOidc | undefined; /** Accepts any additional properties */ [key: string]: any; } @@ -6054,7 +6121,7 @@ export type ConnectionRequireRequestUriRegistration = boolean; export type ConnectionRequiresUsername = boolean; export interface ConnectionResponseCommon extends Management.CreateConnectionCommon { - id: Management.ConnectionId; + id?: Management.ConnectionId | undefined; realms?: Management.ConnectionRealms | undefined; } @@ -7339,6 +7406,14 @@ export type ConnectionTokenEndpointAuthSigningAlgEnum = */ export type ConnectionTokenEndpointAuthSigningAlgValuesSupported = string[]; +/** Specifies the format of the aud (audience) claim included in the JWT used for client authentication at the token endpoint. Accepted values are: 'issuer' (the aud claim is set to the OIDC issuer URL) or 'token_endpoint' (the aud claim is set to the token endpoint URL). */ +export const ConnectionTokenEndpointJwtcaAudFormatEnumOidc = { + Issuer: "issuer", + TokenEndpoint: "token_endpoint", +} as const; +export type ConnectionTokenEndpointJwtcaAudFormatEnumOidc = + (typeof ConnectionTokenEndpointJwtcaAudFormatEnumOidc)[keyof typeof ConnectionTokenEndpointJwtcaAudFormatEnumOidc]; + export interface ConnectionTotpEmail { length?: Management.ConnectionTotpLengthEmail | undefined; time_step?: Management.ConnectionTotpTimeStepEmail | undefined; @@ -7771,7 +7846,7 @@ export interface CreateClientResponseContent { } export interface CreateConnectionCommon { - name: Management.ConnectionName; + name?: Management.ConnectionName | undefined; /** Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. */ enabled_clients?: string[] | undefined; display_name?: Management.ConnectionDisplayName | undefined; @@ -8719,7 +8794,7 @@ export interface CreateDirectorySynchronizationResponseContent { } export interface CreateEmailProviderResponseContent { - /** Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. */ + /** Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `resend`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. */ name?: string | undefined; /** Whether the provider is enabled (true) or disabled (false). */ enabled?: boolean | undefined; @@ -9669,6 +9744,7 @@ export interface CreateResourceServerResponseContent { authorization_details?: (unknown[] | null) | undefined; proof_of_possession?: (Management.ResourceServerProofOfPossession | null) | undefined; subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization | undefined; + authorization_policy?: (Management.ResourceServerAuthorizationPolicy | null) | undefined; /** The client ID of the client that this resource server is linked to */ client_id?: string | undefined; } @@ -9743,14 +9819,14 @@ export interface CreateSelfServiceProfileResponseContent { name?: string | undefined; /** The description of the self-service Profile. */ description?: string | undefined; - /** List of attributes to be mapped that will be shown to the user during the SS-SSO flow. */ + /** List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. */ user_attributes?: Management.SelfServiceProfileUserAttribute[] | undefined; /** The time when this self-service Profile was created. */ created_at?: string | undefined; /** The time when this self-service Profile was updated. */ updated_at?: string | undefined; branding?: Management.SelfServiceProfileBrandingProperties | undefined; - /** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ + /** List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[] | undefined; /** ID of the user-attribute-profile to associate with this self-service profile. */ user_attribute_profile_id?: string | undefined; @@ -10418,11 +10494,12 @@ export type EmailProviderCredentialsSchema = } | Management.ExtensibilityEmailProviderCredentials; -/** Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. */ +/** Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `resend`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. */ export const EmailProviderNameEnum = { Mailgun: "mailgun", Mandrill: "mandrill", Sendgrid: "sendgrid", + Resend: "resend", Ses: "ses", Sparkpost: "sparkpost", Smtp: "smtp", @@ -10471,107 +10548,3670 @@ export const EmailTemplateNameEnum = { } as const; export type EmailTemplateNameEnum = (typeof EmailTemplateNameEnum)[keyof typeof EmailTemplateNameEnum]; -/** Enum for enabled features. */ -export const EnabledFeaturesEnum = { - Scim: "scim", - UniversalLogout: "universal_logout", +/** Enum for enabled features. */ +export const EnabledFeaturesEnum = { + Scim: "scim", + UniversalLogout: "universal_logout", +} as const; +export type EnabledFeaturesEnum = (typeof EnabledFeaturesEnum)[keyof typeof EnabledFeaturesEnum]; + +/** + * Encryption key + */ +export interface EncryptionKey { + /** Key ID */ + kid: string; + type: Management.EncryptionKeyType; + state: Management.EncryptionKeyState; + /** Key creation timestamp */ + created_at: string; + /** Key update timestamp */ + updated_at: string; + /** ID of parent wrapping key */ + parent_kid?: (string | null) | undefined; + /** Public key in PEM format */ + public_key?: (string | null) | undefined; +} + +/** Encryption algorithm that shall be used to wrap your key material */ +export const EncryptionKeyPublicWrappingAlgorithm = { + CkmRsaAesKeyWrap: "CKM_RSA_AES_KEY_WRAP", +} as const; +export type EncryptionKeyPublicWrappingAlgorithm = + (typeof EncryptionKeyPublicWrappingAlgorithm)[keyof typeof EncryptionKeyPublicWrappingAlgorithm]; + +/** Key state */ +export const EncryptionKeyState = { + PreActivation: "pre-activation", + Active: "active", + Deactivated: "deactivated", + Destroyed: "destroyed", +} as const; +export type EncryptionKeyState = (typeof EncryptionKeyState)[keyof typeof EncryptionKeyState]; + +/** Key type */ +export const EncryptionKeyType = { + CustomerProvidedRootKey: "customer-provided-root-key", + EnvironmentRootKey: "environment-root-key", + TenantMasterKey: "tenant-master-key", + TenantEncryptionKey: "tenant-encryption-key", +} as const; +export type EncryptionKeyType = (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType]; + +/** + * Configuration specific to an action destination. + */ +export interface EventStreamActionConfiguration { + /** Action ID for the action destination. */ + action_id: string; +} + +export interface EventStreamActionDestination { + type: Management.EventStreamActionDestinationTypeEnum; + configuration: Management.EventStreamActionConfiguration; +} + +export const EventStreamActionDestinationTypeEnum = { + Action: "action", +} as const; +export type EventStreamActionDestinationTypeEnum = + (typeof EventStreamActionDestinationTypeEnum)[keyof typeof EventStreamActionDestinationTypeEnum]; + +export interface EventStreamActionResponseContent { + /** Unique identifier for the event stream. */ + id?: string | undefined; + /** Name of the event stream. */ + name?: string | undefined; + /** List of event types subscribed to in this stream. */ + subscriptions?: Management.EventStreamSubscription[] | undefined; + destination?: Management.EventStreamActionDestination | undefined; + status?: Management.EventStreamStatusEnum | undefined; + /** Timestamp when the event stream was created. */ + created_at?: string | undefined; + /** Timestamp when the event stream was last updated. */ + updated_at?: string | undefined; +} + +/** + * Event content. This will only be set if delivery failed. + */ +export interface EventStreamCloudEvent { + /** Unique identifier for the event */ + id?: string | undefined; + /** Where the event originated */ + source?: string | undefined; + /** Version of CloudEvents spec */ + specversion?: string | undefined; + /** Type of the event (e.g., user.created) */ + type?: string | undefined; + /** Timestamp at which the event was generated */ + time?: string | undefined; + /** Event contents encoded as a string. */ + data?: string | undefined; +} + +/** + * The purpose of this event. This field will typically appear only in special cases + * such as sending a test event. For normal events, this field will be omitted. + */ +export const EventStreamCloudEventA0PurposeEnum = { + Test: "test", +} as const; +export type EventStreamCloudEventA0PurposeEnum = + (typeof EventStreamCloudEventA0PurposeEnum)[keyof typeof EventStreamCloudEventA0PurposeEnum]; + +/** + * Information about the context in which the event was produced. This may include things like + * HTTP request details, client information, connection information, etc. + * + * Note: This field may not be present on all events, depending on the event type and the + * context in which it was generated. + */ +export interface EventStreamCloudEventContext { + client?: Management.EventStreamCloudEventContextClient | undefined; + connection?: Management.EventStreamCloudEventContextConnection | undefined; + request?: Management.EventStreamCloudEventContextRequest | undefined; + tenant: Management.EventStreamCloudEventContextTenant; +} + +/** + * The OAuth Client requesting or presenting an access token. + */ +export interface EventStreamCloudEventContextClient { + /** The client identifier. */ + id: string; + /** The client name. */ + name: string; + metadata: Management.EventStreamCloudEventContextClientMetadata; +} + +/** + * Client metadata. + */ +export type EventStreamCloudEventContextClientMetadata = Record; + +/** + * The Auth0 Connection used for the authentication transaction that generated the event. + */ +export interface EventStreamCloudEventContextConnection { + /** The ID of the connection. */ + id: string; + /** The name of the connection. */ + name: string; + /** The auth strategy implemented by the connection. */ + strategy: string; +} + +/** + * An HTTP request. + */ +export interface EventStreamCloudEventContextRequest { + geo: Management.EventStreamCloudEventContextRequestGeo; + /** The hostname the request is for. */ + hostname: string; + /** The custom domain used in the request (if any). */ + custom_domain?: string | undefined; + /** The originating IP address of the request. */ + ip: string; + /** The HTTP method used for the request. */ + method: string; + /** The value of the `User-Agent` header. */ + user_agent: string; +} + +/** + * Geographic information about the request origin. + */ +export interface EventStreamCloudEventContextRequestGeo { + /** Continent code. */ + continent_code?: string | undefined; + /** Country code. */ + country_code?: string | undefined; + /** Country name. */ + country_name?: string | undefined; + /** Latitude coordinate. */ + latitude?: number | undefined; + /** Longitude coordinate. */ + longitude?: number | undefined; + /** Subdivision (state/province) code. */ + subdivision_code?: string | undefined; + /** Subdivision (state/province) name. */ + subdivision_name?: string | undefined; + /** City name. */ + city_name?: string | undefined; + /** Time zone. */ + time_zone?: string | undefined; +} + +/** + * Reference to a tenant in event context + */ +export interface EventStreamCloudEventContextTenant { + /** Machine-generated unique tenant identifier. */ + tenant_id: string; +} + +/** Machine-readable error code. */ +export const EventStreamCloudEventErrorCodeEnum = { + InvalidCursor: "invalid_cursor", + CursorExpired: "cursor_expired", + Timeout: "timeout", + PayloadTooLarge: "payload_too_large", + ProcessingError: "processing_error", + ConnectionTimeout: "connection_timeout", +} as const; +export type EventStreamCloudEventErrorCodeEnum = + (typeof EventStreamCloudEventErrorCodeEnum)[keyof typeof EventStreamCloudEventErrorCodeEnum]; + +/** + * Error details. + */ +export interface EventStreamCloudEventErrorDetail { + code: Management.EventStreamCloudEventErrorCodeEnum; + /** Human-readable error message. */ + message: string; + /** The cursor at the time of the error (when available). Can be used to resume from this position. */ + offset?: string | undefined; +} + +/** + * An error message delivered via the SSE stream. The stream closes after this message. + */ +export interface EventStreamCloudEventErrorMessage { + error: Management.EventStreamCloudEventErrorDetail; +} + +/** Identifies this as an error message (injected from the SSE event field). */ +export const EventStreamCloudEventErrorMessageTypeEnum = { + Error: "error", +} as const; +export type EventStreamCloudEventErrorMessageTypeEnum = + (typeof EventStreamCloudEventErrorMessageTypeEnum)[keyof typeof EventStreamCloudEventErrorMessageTypeEnum]; + +/** + * SSE message for group.created. + */ +export interface EventStreamCloudEventGroupCreated { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventGroupCreatedCloudEvent; +} + +/** + * Represents an event that occurs when a group is created. + */ +export interface EventStreamCloudEventGroupCreatedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventGroupCreatedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventGroupCreatedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventGroupCreatedCloudEventTypeEnum = { + GroupCreated: "group.created", +} as const; +export type EventStreamCloudEventGroupCreatedCloudEventTypeEnum = + (typeof EventStreamCloudEventGroupCreatedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventGroupCreatedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventGroupCreatedData { + object: Management.EventStreamCloudEventGroupCreatedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export type EventStreamCloudEventGroupCreatedObject = + | Management.EventStreamCloudEventGroupCreatedObject0 + | Management.EventStreamCloudEventGroupCreatedObject1 + | Management.EventStreamCloudEventGroupCreatedObject2; + +/** + * Represents a connection group entity. + */ +export interface EventStreamCloudEventGroupCreatedObject0 { + /** The unique identifier for the group. */ + id: string; + /** The name of the group. */ + name: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + type: Management.EventStreamCloudEventGroupCreatedObject0TypeEnum; + /** The connection ID associated with the group. */ + connection_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupCreatedObject0TypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventGroupCreatedObject0TypeEnum = + (typeof EventStreamCloudEventGroupCreatedObject0TypeEnum)[keyof typeof EventStreamCloudEventGroupCreatedObject0TypeEnum]; + +/** + * Represents an organization group entity. + */ +export interface EventStreamCloudEventGroupCreatedObject1 { + /** The unique identifier for the group. */ + id: string; + /** The name of the group. */ + name: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + type: Management.EventStreamCloudEventGroupCreatedObject1TypeEnum; + /** The organization ID associated with the group. */ + organization_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupCreatedObject1TypeEnum = { + Organization: "organization", +} as const; +export type EventStreamCloudEventGroupCreatedObject1TypeEnum = + (typeof EventStreamCloudEventGroupCreatedObject1TypeEnum)[keyof typeof EventStreamCloudEventGroupCreatedObject1TypeEnum]; + +/** + * Represents a tenant group entity. + */ +export interface EventStreamCloudEventGroupCreatedObject2 { + /** The unique identifier for the group. */ + id: string; + /** The name of the group. */ + name: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + type: Management.EventStreamCloudEventGroupCreatedObject2TypeEnum; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupCreatedObject2TypeEnum = { + Tenant: "tenant", +} as const; +export type EventStreamCloudEventGroupCreatedObject2TypeEnum = + (typeof EventStreamCloudEventGroupCreatedObject2TypeEnum)[keyof typeof EventStreamCloudEventGroupCreatedObject2TypeEnum]; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventGroupCreatedTypeEnum = { + GroupCreated: "group.created", +} as const; +export type EventStreamCloudEventGroupCreatedTypeEnum = + (typeof EventStreamCloudEventGroupCreatedTypeEnum)[keyof typeof EventStreamCloudEventGroupCreatedTypeEnum]; + +/** + * SSE message for group.deleted. + */ +export interface EventStreamCloudEventGroupDeleted { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventGroupDeletedCloudEvent; +} + +/** + * Represents an event that occurs when a group is deleted. + */ +export interface EventStreamCloudEventGroupDeletedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventGroupDeletedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventGroupDeletedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventGroupDeletedCloudEventTypeEnum = { + GroupDeleted: "group.deleted", +} as const; +export type EventStreamCloudEventGroupDeletedCloudEventTypeEnum = + (typeof EventStreamCloudEventGroupDeletedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventGroupDeletedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventGroupDeletedData { + object: Management.EventStreamCloudEventGroupDeletedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export type EventStreamCloudEventGroupDeletedObject = + | Management.EventStreamCloudEventGroupDeletedObject0 + | Management.EventStreamCloudEventGroupDeletedObject1 + | Management.EventStreamCloudEventGroupDeletedObject2; + +/** + * Connection group with updated_at timestamp + */ +export interface EventStreamCloudEventGroupDeletedObject0 { + /** The unique identifier for the group. */ + id: string; + /** The name of the group. */ + name: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + type: Management.EventStreamCloudEventGroupDeletedObject0TypeEnum; + /** The connection ID associated with the group. */ + connection_id: string; + /** Date and time when this entity was last updated/modified (ISO_8601 format). */ + updated_at: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupDeletedObject0TypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventGroupDeletedObject0TypeEnum = + (typeof EventStreamCloudEventGroupDeletedObject0TypeEnum)[keyof typeof EventStreamCloudEventGroupDeletedObject0TypeEnum]; + +/** + * Organization group with updated_at timestamp + */ +export interface EventStreamCloudEventGroupDeletedObject1 { + /** The unique identifier for the group. */ + id: string; + /** The name of the group. */ + name: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + type: Management.EventStreamCloudEventGroupDeletedObject1TypeEnum; + /** The organization ID associated with the group. */ + organization_id: string; + /** Date and time when this entity was last updated/modified (ISO_8601 format). */ + updated_at: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupDeletedObject1TypeEnum = { + Organization: "organization", +} as const; +export type EventStreamCloudEventGroupDeletedObject1TypeEnum = + (typeof EventStreamCloudEventGroupDeletedObject1TypeEnum)[keyof typeof EventStreamCloudEventGroupDeletedObject1TypeEnum]; + +/** + * Tenant group with updated_at timestamp + */ +export interface EventStreamCloudEventGroupDeletedObject2 { + /** The unique identifier for the group. */ + id: string; + /** The name of the group. */ + name: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + type: Management.EventStreamCloudEventGroupDeletedObject2TypeEnum; + /** Date and time when this entity was last updated/modified (ISO_8601 format). */ + updated_at: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupDeletedObject2TypeEnum = { + Tenant: "tenant", +} as const; +export type EventStreamCloudEventGroupDeletedObject2TypeEnum = + (typeof EventStreamCloudEventGroupDeletedObject2TypeEnum)[keyof typeof EventStreamCloudEventGroupDeletedObject2TypeEnum]; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventGroupDeletedTypeEnum = { + GroupDeleted: "group.deleted", +} as const; +export type EventStreamCloudEventGroupDeletedTypeEnum = + (typeof EventStreamCloudEventGroupDeletedTypeEnum)[keyof typeof EventStreamCloudEventGroupDeletedTypeEnum]; + +/** + * SSE message for group.member.added. + */ +export interface EventStreamCloudEventGroupMemberAdded { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventGroupMemberAddedCloudEvent; +} + +/** + * Represents an event that occurs when a member is added to a group. + */ +export interface EventStreamCloudEventGroupMemberAddedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventGroupMemberAddedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum = { + GroupMemberAdded: "group.member.added", +} as const; +export type EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum = + (typeof EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventGroupMemberAddedData { + object: Management.EventStreamCloudEventGroupMemberAddedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventGroupMemberAddedObject { + group: Management.EventStreamCloudEventGroupMemberAddedObjectGroup; + member: Management.EventStreamCloudEventGroupMemberAddedObjectMember; +} + +/** + * The group the member belongs to. + */ +export type EventStreamCloudEventGroupMemberAddedObjectGroup = + | Management.EventStreamCloudEventGroupMemberAddedObjectGroup0 + | Management.EventStreamCloudEventGroupMemberAddedObjectGroup1 + | Management.EventStreamCloudEventGroupMemberAddedObjectGroup2; + +/** + * Reference to a connection group + */ +export interface EventStreamCloudEventGroupMemberAddedObjectGroup0 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum; + /** The connection ID associated with the group. */ + connection_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum = + (typeof EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum)[keyof typeof EventStreamCloudEventGroupMemberAddedObjectGroup0TypeEnum]; + +/** + * Reference to an organization group + */ +export interface EventStreamCloudEventGroupMemberAddedObjectGroup1 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum; + /** The organization ID associated with the group. */ + organization_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum = { + Organization: "organization", +} as const; +export type EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum = + (typeof EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum)[keyof typeof EventStreamCloudEventGroupMemberAddedObjectGroup1TypeEnum]; + +/** + * Reference to a tenant group + */ +export interface EventStreamCloudEventGroupMemberAddedObjectGroup2 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum = { + Tenant: "tenant", +} as const; +export type EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum = + (typeof EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum)[keyof typeof EventStreamCloudEventGroupMemberAddedObjectGroup2TypeEnum]; + +/** + * The member that is a part of the group. + */ +export type EventStreamCloudEventGroupMemberAddedObjectMember = + | Management.EventStreamCloudEventGroupMemberAddedObjectMember0 + | Management.EventStreamCloudEventGroupMemberAddedObjectMember1; + +/** + * A group member of member_type user + */ +export interface EventStreamCloudEventGroupMemberAddedObjectMember0 { + member_type: Management.EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum; + /** The user's unique identifier */ + id: string; +} + +/** Type discriminator for user members */ +export const EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum = { + User: "user", +} as const; +export type EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum = + (typeof EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum)[keyof typeof EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum]; + +/** + * A group member of member_type group + */ +export interface EventStreamCloudEventGroupMemberAddedObjectMember1 { + member_type: Management.EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum; + /** The connection member's unique identifier */ + id: string; + /** The type of the connection */ + type: string; + /** Connection ID associated with the member */ + connection_id: string; +} + +/** Type discriminator for connection members */ +export const EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum = + (typeof EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum)[keyof typeof EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum]; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventGroupMemberAddedTypeEnum = { + GroupMemberAdded: "group.member.added", +} as const; +export type EventStreamCloudEventGroupMemberAddedTypeEnum = + (typeof EventStreamCloudEventGroupMemberAddedTypeEnum)[keyof typeof EventStreamCloudEventGroupMemberAddedTypeEnum]; + +/** + * SSE message for group.member.deleted. + */ +export interface EventStreamCloudEventGroupMemberDeleted { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventGroupMemberDeletedCloudEvent; +} + +/** + * Represents an event that occurs when a member is removed from a group. + */ +export interface EventStreamCloudEventGroupMemberDeletedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventGroupMemberDeletedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum = { + GroupMemberDeleted: "group.member.deleted", +} as const; +export type EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum = + (typeof EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventGroupMemberDeletedData { + object: Management.EventStreamCloudEventGroupMemberDeletedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventGroupMemberDeletedObject { + group: Management.EventStreamCloudEventGroupMemberDeletedObjectGroup; + member: Management.EventStreamCloudEventGroupMemberDeletedObjectMember; +} + +/** + * The group the member belongs to. + */ +export type EventStreamCloudEventGroupMemberDeletedObjectGroup = + | Management.EventStreamCloudEventGroupMemberDeletedObjectGroup0 + | Management.EventStreamCloudEventGroupMemberDeletedObjectGroup1 + | Management.EventStreamCloudEventGroupMemberDeletedObjectGroup2; + +/** + * Reference to a connection group + */ +export interface EventStreamCloudEventGroupMemberDeletedObjectGroup0 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum; + /** The connection ID associated with the group. */ + connection_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum = + (typeof EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum)[keyof typeof EventStreamCloudEventGroupMemberDeletedObjectGroup0TypeEnum]; + +/** + * Reference to an organization group + */ +export interface EventStreamCloudEventGroupMemberDeletedObjectGroup1 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum; + /** The organization ID associated with the group. */ + organization_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum = { + Organization: "organization", +} as const; +export type EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum = + (typeof EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum)[keyof typeof EventStreamCloudEventGroupMemberDeletedObjectGroup1TypeEnum]; + +/** + * Reference to a tenant group + */ +export interface EventStreamCloudEventGroupMemberDeletedObjectGroup2 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum = { + Tenant: "tenant", +} as const; +export type EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum = + (typeof EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum)[keyof typeof EventStreamCloudEventGroupMemberDeletedObjectGroup2TypeEnum]; + +/** + * The member that is a part of the group. + */ +export type EventStreamCloudEventGroupMemberDeletedObjectMember = + | Management.EventStreamCloudEventGroupMemberDeletedObjectMember0 + | Management.EventStreamCloudEventGroupMemberDeletedObjectMember1; + +/** + * A group member of member_type user + */ +export interface EventStreamCloudEventGroupMemberDeletedObjectMember0 { + member_type: Management.EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum; + /** The user's unique identifier */ + id: string; +} + +/** Type discriminator for user members */ +export const EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum = { + User: "user", +} as const; +export type EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum = + (typeof EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum)[keyof typeof EventStreamCloudEventGroupMemberDeletedObjectMember0MemberTypeEnum]; + +/** + * A group member of member_type group + */ +export interface EventStreamCloudEventGroupMemberDeletedObjectMember1 { + member_type: Management.EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum; + /** The connection member's unique identifier */ + id: string; + /** The type of the connection */ + type: string; + /** Connection ID associated with the member */ + connection_id: string; +} + +/** Type discriminator for connection members */ +export const EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum = + (typeof EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum)[keyof typeof EventStreamCloudEventGroupMemberDeletedObjectMember1MemberTypeEnum]; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventGroupMemberDeletedTypeEnum = { + GroupMemberDeleted: "group.member.deleted", +} as const; +export type EventStreamCloudEventGroupMemberDeletedTypeEnum = + (typeof EventStreamCloudEventGroupMemberDeletedTypeEnum)[keyof typeof EventStreamCloudEventGroupMemberDeletedTypeEnum]; + +/** + * SSE message for group.role.assigned. + */ +export interface EventStreamCloudEventGroupRoleAssigned { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventGroupRoleAssignedCloudEvent; +} + +/** + * Represents an event that occurs when a role is assigned to a group. + */ +export interface EventStreamCloudEventGroupRoleAssignedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventGroupRoleAssignedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum = { + GroupRoleAssigned: "group.role.assigned", +} as const; +export type EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum = + (typeof EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventGroupRoleAssignedData { + object: Management.EventStreamCloudEventGroupRoleAssignedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventGroupRoleAssignedObject { + group: Management.EventStreamCloudEventGroupRoleAssignedObjectGroup; + role: Management.EventStreamCloudEventGroupRoleAssignedObjectRole; + /** The time at which the role was assigned to the group. */ + created_at: string; +} + +/** + * The group the role is assigned to. + */ +export type EventStreamCloudEventGroupRoleAssignedObjectGroup = + | Management.EventStreamCloudEventGroupRoleAssignedObjectGroup0 + | Management.EventStreamCloudEventGroupRoleAssignedObjectGroup1 + | Management.EventStreamCloudEventGroupRoleAssignedObjectGroup2; + +/** + * Reference to a connection group + */ +export interface EventStreamCloudEventGroupRoleAssignedObjectGroup0 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum; + /** The connection ID associated with the group. */ + connection_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum = + (typeof EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum)[keyof typeof EventStreamCloudEventGroupRoleAssignedObjectGroup0TypeEnum]; + +/** + * Reference to an organization group + */ +export interface EventStreamCloudEventGroupRoleAssignedObjectGroup1 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum; + /** The organization ID associated with the group. */ + organization_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum = { + Organization: "organization", +} as const; +export type EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum = + (typeof EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum)[keyof typeof EventStreamCloudEventGroupRoleAssignedObjectGroup1TypeEnum]; + +/** + * Reference to a tenant group + */ +export interface EventStreamCloudEventGroupRoleAssignedObjectGroup2 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum = { + Tenant: "tenant", +} as const; +export type EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum = + (typeof EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum)[keyof typeof EventStreamCloudEventGroupRoleAssignedObjectGroup2TypeEnum]; + +/** + * The role assigned to the group. + */ +export interface EventStreamCloudEventGroupRoleAssignedObjectRole { + /** The ID of the role. */ + id: string; + /** The name of the role. */ + name: string; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventGroupRoleAssignedTypeEnum = { + GroupRoleAssigned: "group.role.assigned", +} as const; +export type EventStreamCloudEventGroupRoleAssignedTypeEnum = + (typeof EventStreamCloudEventGroupRoleAssignedTypeEnum)[keyof typeof EventStreamCloudEventGroupRoleAssignedTypeEnum]; + +/** + * SSE message for group.role.deleted. + */ +export interface EventStreamCloudEventGroupRoleDeleted { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventGroupRoleDeletedCloudEvent; +} + +/** + * Represents an event that occurs when a role is removed from a group. + */ +export interface EventStreamCloudEventGroupRoleDeletedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventGroupRoleDeletedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum = { + GroupRoleDeleted: "group.role.deleted", +} as const; +export type EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum = + (typeof EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventGroupRoleDeletedData { + object: Management.EventStreamCloudEventGroupRoleDeletedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventGroupRoleDeletedObject { + group: Management.EventStreamCloudEventGroupRoleDeletedObjectGroup; + role: Management.EventStreamCloudEventGroupRoleDeletedObjectRole; + /** The time at which the role was removed from the group. */ + deleted_at: string; +} + +/** + * The group the role is removed from. + */ +export type EventStreamCloudEventGroupRoleDeletedObjectGroup = + | Management.EventStreamCloudEventGroupRoleDeletedObjectGroup0 + | Management.EventStreamCloudEventGroupRoleDeletedObjectGroup1 + | Management.EventStreamCloudEventGroupRoleDeletedObjectGroup2; + +/** + * Reference to a connection group + */ +export interface EventStreamCloudEventGroupRoleDeletedObjectGroup0 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum; + /** The connection ID associated with the group. */ + connection_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum = + (typeof EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum)[keyof typeof EventStreamCloudEventGroupRoleDeletedObjectGroup0TypeEnum]; + +/** + * Reference to an organization group + */ +export interface EventStreamCloudEventGroupRoleDeletedObjectGroup1 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum; + /** The organization ID associated with the group. */ + organization_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum = { + Organization: "organization", +} as const; +export type EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum = + (typeof EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum)[keyof typeof EventStreamCloudEventGroupRoleDeletedObjectGroup1TypeEnum]; + +/** + * Reference to a tenant group + */ +export interface EventStreamCloudEventGroupRoleDeletedObjectGroup2 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum = { + Tenant: "tenant", +} as const; +export type EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum = + (typeof EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum)[keyof typeof EventStreamCloudEventGroupRoleDeletedObjectGroup2TypeEnum]; + +/** + * The role removed from the group. + */ +export interface EventStreamCloudEventGroupRoleDeletedObjectRole { + /** The ID of the role. */ + id: string; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventGroupRoleDeletedTypeEnum = { + GroupRoleDeleted: "group.role.deleted", +} as const; +export type EventStreamCloudEventGroupRoleDeletedTypeEnum = + (typeof EventStreamCloudEventGroupRoleDeletedTypeEnum)[keyof typeof EventStreamCloudEventGroupRoleDeletedTypeEnum]; + +/** + * SSE message for group.updated. + */ +export interface EventStreamCloudEventGroupUpdated { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventGroupUpdatedCloudEvent; +} + +/** + * Represents an event that occurs when a group is updated. + */ +export interface EventStreamCloudEventGroupUpdatedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventGroupUpdatedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventGroupUpdatedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventGroupUpdatedCloudEventTypeEnum = { + GroupUpdated: "group.updated", +} as const; +export type EventStreamCloudEventGroupUpdatedCloudEventTypeEnum = + (typeof EventStreamCloudEventGroupUpdatedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventGroupUpdatedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventGroupUpdatedData { + object: Management.EventStreamCloudEventGroupUpdatedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export type EventStreamCloudEventGroupUpdatedObject = + | Management.EventStreamCloudEventGroupUpdatedObject0 + | Management.EventStreamCloudEventGroupUpdatedObject1 + | Management.EventStreamCloudEventGroupUpdatedObject2; + +/** + * Connection group with updated_at timestamp + */ +export interface EventStreamCloudEventGroupUpdatedObject0 { + /** The unique identifier for the group. */ + id: string; + /** The name of the group. */ + name: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + type: Management.EventStreamCloudEventGroupUpdatedObject0TypeEnum; + /** The connection ID associated with the group. */ + connection_id: string; + /** Date and time when this entity was last updated/modified (ISO_8601 format). */ + updated_at: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupUpdatedObject0TypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventGroupUpdatedObject0TypeEnum = + (typeof EventStreamCloudEventGroupUpdatedObject0TypeEnum)[keyof typeof EventStreamCloudEventGroupUpdatedObject0TypeEnum]; + +/** + * Organization group with updated_at timestamp + */ +export interface EventStreamCloudEventGroupUpdatedObject1 { + /** The unique identifier for the group. */ + id: string; + /** The name of the group. */ + name: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + type: Management.EventStreamCloudEventGroupUpdatedObject1TypeEnum; + /** The organization ID associated with the group. */ + organization_id: string; + /** Date and time when this entity was last updated/modified (ISO_8601 format). */ + updated_at: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupUpdatedObject1TypeEnum = { + Organization: "organization", +} as const; +export type EventStreamCloudEventGroupUpdatedObject1TypeEnum = + (typeof EventStreamCloudEventGroupUpdatedObject1TypeEnum)[keyof typeof EventStreamCloudEventGroupUpdatedObject1TypeEnum]; + +/** + * Tenant group with updated_at timestamp + */ +export interface EventStreamCloudEventGroupUpdatedObject2 { + /** The unique identifier for the group. */ + id: string; + /** The name of the group. */ + name: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + type: Management.EventStreamCloudEventGroupUpdatedObject2TypeEnum; + /** Date and time when this entity was last updated/modified (ISO_8601 format). */ + updated_at: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventGroupUpdatedObject2TypeEnum = { + Tenant: "tenant", +} as const; +export type EventStreamCloudEventGroupUpdatedObject2TypeEnum = + (typeof EventStreamCloudEventGroupUpdatedObject2TypeEnum)[keyof typeof EventStreamCloudEventGroupUpdatedObject2TypeEnum]; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventGroupUpdatedTypeEnum = { + GroupUpdated: "group.updated", +} as const; +export type EventStreamCloudEventGroupUpdatedTypeEnum = + (typeof EventStreamCloudEventGroupUpdatedTypeEnum)[keyof typeof EventStreamCloudEventGroupUpdatedTypeEnum]; + +/** + * An offset-only heartbeat message. Advances the cursor without delivering an event. + */ +export interface EventStreamCloudEventOffsetOnlyMessage { + /** Opaque cursor representing the latest position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; +} + +/** Identifies this as an offset-only heartbeat message (injected from the SSE event field). */ +export const EventStreamCloudEventOffsetOnlyMessageTypeEnum = { + OffsetOnly: "offset-only", +} as const; +export type EventStreamCloudEventOffsetOnlyMessageTypeEnum = + (typeof EventStreamCloudEventOffsetOnlyMessageTypeEnum)[keyof typeof EventStreamCloudEventOffsetOnlyMessageTypeEnum]; + +/** + * SSE message for organization.connection.added. + */ +export interface EventStreamCloudEventOrgConnectionAdded { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgConnectionAddedCloudEvent; +} + +/** + * Represents an event that occurs when a connection is added to an organization. + */ +export interface EventStreamCloudEventOrgConnectionAddedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgConnectionAddedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum = { + OrganizationConnectionAdded: "organization.connection.added", +} as const; +export type EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgConnectionAddedData { + object: Management.EventStreamCloudEventOrgConnectionAddedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgConnectionAddedObject { + organization: Management.EventStreamCloudEventOrgConnectionAddedObjectOrganization; + connection: Management.EventStreamCloudEventOrgConnectionAddedObjectConnection; + /** + * When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection. + */ + assign_membership_on_login?: boolean | undefined; + /** + * Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections. + */ + show_as_button?: boolean | undefined; + /** + * Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections. + */ + is_signup_enabled?: boolean | undefined; +} + +export interface EventStreamCloudEventOrgConnectionAddedObjectConnection { + /** The ID of the connection. */ + id: string; +} + +/** + * Information about an Auth0 Organization. + */ +export interface EventStreamCloudEventOrgConnectionAddedObjectOrganization { + /** The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. */ + name?: string | undefined; + /** ID of the organization. */ + id: string; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgConnectionAddedTypeEnum = { + OrganizationConnectionAdded: "organization.connection.added", +} as const; +export type EventStreamCloudEventOrgConnectionAddedTypeEnum = + (typeof EventStreamCloudEventOrgConnectionAddedTypeEnum)[keyof typeof EventStreamCloudEventOrgConnectionAddedTypeEnum]; + +/** + * SSE message for organization.connection.removed. + */ +export interface EventStreamCloudEventOrgConnectionRemoved { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgConnectionRemovedCloudEvent; +} + +/** + * Represents an event that occurs when a connection is removed from an organization. + */ +export interface EventStreamCloudEventOrgConnectionRemovedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgConnectionRemovedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum = { + OrganizationConnectionRemoved: "organization.connection.removed", +} as const; +export type EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgConnectionRemovedData { + object: Management.EventStreamCloudEventOrgConnectionRemovedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgConnectionRemovedObject { + organization: Management.EventStreamCloudEventOrgConnectionRemovedObjectOrganization; + connection: Management.EventStreamCloudEventOrgConnectionRemovedObjectConnection; +} + +export interface EventStreamCloudEventOrgConnectionRemovedObjectConnection { + /** The ID of the connection. */ + id: string; +} + +/** + * Information about an Auth0 Organization. + */ +export interface EventStreamCloudEventOrgConnectionRemovedObjectOrganization { + /** The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. */ + name?: string | undefined; + /** ID of the organization. */ + id: string; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgConnectionRemovedTypeEnum = { + OrganizationConnectionRemoved: "organization.connection.removed", +} as const; +export type EventStreamCloudEventOrgConnectionRemovedTypeEnum = + (typeof EventStreamCloudEventOrgConnectionRemovedTypeEnum)[keyof typeof EventStreamCloudEventOrgConnectionRemovedTypeEnum]; + +/** + * SSE message for organization.connection.updated. + */ +export interface EventStreamCloudEventOrgConnectionUpdated { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgConnectionUpdatedCloudEvent; +} + +/** + * Represents an event that occurs when a organization connection is updated. + */ +export interface EventStreamCloudEventOrgConnectionUpdatedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgConnectionUpdatedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum = { + OrganizationConnectionUpdated: "organization.connection.updated", +} as const; +export type EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgConnectionUpdatedData { + object: Management.EventStreamCloudEventOrgConnectionUpdatedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgConnectionUpdatedObject { + organization: Management.EventStreamCloudEventOrgConnectionUpdatedObjectOrganization; + connection: Management.EventStreamCloudEventOrgConnectionUpdatedObjectConnection; + /** + * When true, all users that log in with this connection will be automatically granted membership + * in the organization. When false, users must be granted membership in the organization before + * logging in with this connection. + */ + assign_membership_on_login?: boolean | undefined; + /** + * Determines whether a connection should be displayed on this organization’s login prompt. + * Only applicable for enterprise connections. + */ + show_as_button?: boolean | undefined; + /** + * Determines whether organization signup should be enabled for this organization connection. + * Only applicable for database connections. + */ + is_signup_enabled?: boolean | undefined; +} + +export interface EventStreamCloudEventOrgConnectionUpdatedObjectConnection { + /** The ID of the connection. */ + id: string; +} + +/** + * Information about an Auth0 Organization. + */ +export interface EventStreamCloudEventOrgConnectionUpdatedObjectOrganization { + /** The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. */ + name?: string | undefined; + /** ID of the organization. */ + id: string; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgConnectionUpdatedTypeEnum = { + OrganizationConnectionUpdated: "organization.connection.updated", +} as const; +export type EventStreamCloudEventOrgConnectionUpdatedTypeEnum = + (typeof EventStreamCloudEventOrgConnectionUpdatedTypeEnum)[keyof typeof EventStreamCloudEventOrgConnectionUpdatedTypeEnum]; + +/** + * SSE message for organization.created. + */ +export interface EventStreamCloudEventOrgCreated { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgCreatedCloudEvent; +} + +/** + * Represents an event that occurs when an organization is created. + */ +export interface EventStreamCloudEventOrgCreatedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgCreatedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgCreatedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgCreatedCloudEventTypeEnum = { + OrganizationCreated: "organization.created", +} as const; +export type EventStreamCloudEventOrgCreatedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgCreatedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgCreatedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgCreatedData { + object: Management.EventStreamCloudEventOrgCreatedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgCreatedObject { + /** The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. */ + name?: string | undefined; + /** ID of the organization. */ + id: string; + /** If set, the name that will be displayed to end-users for this organization in any interaction with them. */ + display_name?: string | undefined; + metadata?: Management.EventStreamCloudEventOrgCreatedObjectMetadata | undefined; + branding?: Management.EventStreamCloudEventOrgCreatedObjectBranding | undefined; +} + +/** + * The branding associated with the organization. + */ +export interface EventStreamCloudEventOrgCreatedObjectBranding { + /** URL of logo to display on login page. */ + logo_url?: string | undefined; + colors?: Management.EventStreamCloudEventOrgCreatedObjectBrandingColors | undefined; +} + +/** + * Color scheme used to customize the login pages. + */ +export interface EventStreamCloudEventOrgCreatedObjectBrandingColors { + /** HEX Color for primary elements. */ + primary?: string | undefined; + /** HEX Color for background. */ + page_background?: string | undefined; +} + +/** + * The metadata associated with the organization. + */ +export type EventStreamCloudEventOrgCreatedObjectMetadata = Record; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgCreatedTypeEnum = { + OrganizationCreated: "organization.created", +} as const; +export type EventStreamCloudEventOrgCreatedTypeEnum = + (typeof EventStreamCloudEventOrgCreatedTypeEnum)[keyof typeof EventStreamCloudEventOrgCreatedTypeEnum]; + +/** + * SSE message for organization.deleted. + */ +export interface EventStreamCloudEventOrgDeleted { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgDeletedCloudEvent; +} + +/** + * Represents an event that occurs when an organization is deleted. + */ +export interface EventStreamCloudEventOrgDeletedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgDeletedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgDeletedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgDeletedCloudEventTypeEnum = { + OrganizationDeleted: "organization.deleted", +} as const; +export type EventStreamCloudEventOrgDeletedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgDeletedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgDeletedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgDeletedData { + object: Management.EventStreamCloudEventOrgDeletedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgDeletedObject { + /** The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. */ + name?: string | undefined; + /** ID of the organization. */ + id: string; + /** If set, the name that will be displayed to end-users for this organization in any interaction with them. */ + display_name?: string | undefined; + metadata?: Management.EventStreamCloudEventOrgDeletedObjectMetadata | undefined; +} + +/** + * The metadata associated with the organization. + */ +export type EventStreamCloudEventOrgDeletedObjectMetadata = Record; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgDeletedTypeEnum = { + OrganizationDeleted: "organization.deleted", +} as const; +export type EventStreamCloudEventOrgDeletedTypeEnum = + (typeof EventStreamCloudEventOrgDeletedTypeEnum)[keyof typeof EventStreamCloudEventOrgDeletedTypeEnum]; + +/** + * SSE message for organization.group.role.assigned. + */ +export interface EventStreamCloudEventOrgGroupRoleAssigned { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgGroupRoleAssignedCloudEvent; +} + +/** + * Represents an event that occurs when a role is assigned to an organization group. + */ +export interface EventStreamCloudEventOrgGroupRoleAssignedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgGroupRoleAssignedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum = { + OrganizationGroupRoleAssigned: "organization.group.role.assigned", +} as const; +export type EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgGroupRoleAssignedData { + object: Management.EventStreamCloudEventOrgGroupRoleAssignedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgGroupRoleAssignedObject { + organization: Management.EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization; + role: Management.EventStreamCloudEventOrgGroupRoleAssignedObjectRole; + group: Management.EventStreamCloudEventOrgGroupRoleAssignedObjectGroup; + /** The time at which the role was assigned to the group in the organization. */ + created_at: string; +} + +/** + * The group the role is assigned to. + */ +export type EventStreamCloudEventOrgGroupRoleAssignedObjectGroup = + | Management.EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0 + | Management.EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1 + | Management.EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2; + +/** + * Reference to a connection group + */ +export interface EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum; + /** The connection ID associated with the group. */ + connection_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleAssignedObjectGroup0TypeEnum]; + +/** + * Reference to an organization group + */ +export interface EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum; + /** The organization ID associated with the group. */ + organization_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum = { + Organization: "organization", +} as const; +export type EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum]; + +/** + * Reference to a tenant group + */ +export interface EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum; +} + +/** The type of the group. */ +export const EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum = { + Tenant: "tenant", +} as const; +export type EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum]; + +/** + * The organization the group role is assigned in. + */ +export interface EventStreamCloudEventOrgGroupRoleAssignedObjectOrganization { + /** ID of the organization. */ + id: string; +} + +/** + * The role assigned to the group in the organization. + */ +export interface EventStreamCloudEventOrgGroupRoleAssignedObjectRole { + /** The ID of the role. */ + id: string; + /** The name of the role. */ + name: string; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgGroupRoleAssignedTypeEnum = { + OrganizationGroupRoleAssigned: "organization.group.role.assigned", +} as const; +export type EventStreamCloudEventOrgGroupRoleAssignedTypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleAssignedTypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleAssignedTypeEnum]; + +/** + * SSE message for organization.group.role.deleted. + */ +export interface EventStreamCloudEventOrgGroupRoleDeleted { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgGroupRoleDeletedCloudEvent; +} + +/** + * Represents an event that occurs when a role is removed from an organization group. + */ +export interface EventStreamCloudEventOrgGroupRoleDeletedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgGroupRoleDeletedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum = { + OrganizationGroupRoleDeleted: "organization.group.role.deleted", +} as const; +export type EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgGroupRoleDeletedData { + object: Management.EventStreamCloudEventOrgGroupRoleDeletedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgGroupRoleDeletedObject { + organization: Management.EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization; + role: Management.EventStreamCloudEventOrgGroupRoleDeletedObjectRole; + group: Management.EventStreamCloudEventOrgGroupRoleDeletedObjectGroup; + /** The time at which the role was removed from the group in the organization. */ + deleted_at: string; +} + +/** + * The group the role is removed from. + */ +export type EventStreamCloudEventOrgGroupRoleDeletedObjectGroup = + | Management.EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0 + | Management.EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1 + | Management.EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2; + +/** + * Reference to a connection group + */ +export interface EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum; + /** The connection ID associated with the group. */ + connection_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum = { + Connection: "connection", +} as const; +export type EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleDeletedObjectGroup0TypeEnum]; + +/** + * Reference to an organization group + */ +export interface EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum; + /** The organization ID associated with the group. */ + organization_id: string; +} + +/** The type of the group. */ +export const EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum = { + Organization: "organization", +} as const; +export type EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleDeletedObjectGroup1TypeEnum]; + +/** + * Reference to a tenant group + */ +export interface EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2 { + /** The unique identifier for the group. */ + id: string; + /** The external identifier for the group. */ + external_id?: string | undefined; + type: Management.EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum; +} + +/** The type of the group. */ +export const EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum = { + Tenant: "tenant", +} as const; +export type EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleDeletedObjectGroup2TypeEnum]; + +/** + * The organization the group role is removed from. + */ +export interface EventStreamCloudEventOrgGroupRoleDeletedObjectOrganization { + /** ID of the organization. */ + id: string; +} + +/** + * The role removed from the group. + */ +export interface EventStreamCloudEventOrgGroupRoleDeletedObjectRole { + /** The ID of the role. */ + id: string; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgGroupRoleDeletedTypeEnum = { + OrganizationGroupRoleDeleted: "organization.group.role.deleted", +} as const; +export type EventStreamCloudEventOrgGroupRoleDeletedTypeEnum = + (typeof EventStreamCloudEventOrgGroupRoleDeletedTypeEnum)[keyof typeof EventStreamCloudEventOrgGroupRoleDeletedTypeEnum]; + +/** + * SSE message for organization.member.added. + */ +export interface EventStreamCloudEventOrgMemberAdded { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgMemberAddedCloudEvent; +} + +/** + * Represents an event that occurs when a member is added to an organization. + */ +export interface EventStreamCloudEventOrgMemberAddedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgMemberAddedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum = { + OrganizationMemberAdded: "organization.member.added", +} as const; +export type EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgMemberAddedData { + object: Management.EventStreamCloudEventOrgMemberAddedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgMemberAddedObject { + organization: Management.EventStreamCloudEventOrgMemberAddedObjectOrganization; + user: Management.EventStreamCloudEventOrgMemberAddedObjectUser; +} + +/** + * The organization the member belongs to. + */ +export interface EventStreamCloudEventOrgMemberAddedObjectOrganization { + /** The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. */ + name?: string | undefined; + /** ID of the organization. */ + id: string; +} + +/** + * The user that is a member of the organization. + */ +export interface EventStreamCloudEventOrgMemberAddedObjectUser { + /** ID of the user which can be used when interacting with other APIs. */ + user_id: string; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgMemberAddedTypeEnum = { + OrganizationMemberAdded: "organization.member.added", +} as const; +export type EventStreamCloudEventOrgMemberAddedTypeEnum = + (typeof EventStreamCloudEventOrgMemberAddedTypeEnum)[keyof typeof EventStreamCloudEventOrgMemberAddedTypeEnum]; + +/** + * SSE message for organization.member.deleted. + */ +export interface EventStreamCloudEventOrgMemberDeleted { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgMemberDeletedCloudEvent; +} + +/** + * Represents an event that occurs when a member is removed from an organization. + */ +export interface EventStreamCloudEventOrgMemberDeletedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgMemberDeletedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum = { + OrganizationMemberDeleted: "organization.member.deleted", +} as const; +export type EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgMemberDeletedData { + object: Management.EventStreamCloudEventOrgMemberDeletedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgMemberDeletedObject { + organization: Management.EventStreamCloudEventOrgMemberDeletedObjectOrganization; + user: Management.EventStreamCloudEventOrgMemberDeletedObjectUser; +} + +/** + * The organization the member belongs to. + */ +export interface EventStreamCloudEventOrgMemberDeletedObjectOrganization { + /** The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. */ + name?: string | undefined; + /** ID of the organization. */ + id: string; +} + +/** + * The user that is a member of the organization. + */ +export interface EventStreamCloudEventOrgMemberDeletedObjectUser { + /** ID of the user which can be used when interacting with other APIs. */ + user_id: string; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgMemberDeletedTypeEnum = { + OrganizationMemberDeleted: "organization.member.deleted", +} as const; +export type EventStreamCloudEventOrgMemberDeletedTypeEnum = + (typeof EventStreamCloudEventOrgMemberDeletedTypeEnum)[keyof typeof EventStreamCloudEventOrgMemberDeletedTypeEnum]; + +/** + * SSE message for organization.member.role.assigned. + */ +export interface EventStreamCloudEventOrgMemberRoleAssigned { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgMemberRoleAssignedCloudEvent; +} + +/** + * Represents an event that occurs when a member is added to an organization. + */ +export interface EventStreamCloudEventOrgMemberRoleAssignedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgMemberRoleAssignedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum = { + OrganizationMemberRoleAssigned: "organization.member.role.assigned", +} as const; +export type EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgMemberRoleAssignedData { + object: Management.EventStreamCloudEventOrgMemberRoleAssignedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgMemberRoleAssignedObject { + organization: Management.EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization; + user: Management.EventStreamCloudEventOrgMemberRoleAssignedObjectUser; + role: Management.EventStreamCloudEventOrgMemberRoleAssignedObjectRole; +} + +/** + * The organization the member belongs to. + */ +export interface EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization { + /** ID of the organization. */ + id: string; +} + +/** + * The role assigned to the user in the organization. + */ +export interface EventStreamCloudEventOrgMemberRoleAssignedObjectRole { + /** The ID of the role. */ + id: string; + /** The name of the role. */ + name: string; +} + +/** + * The user that is a member of the organization. + */ +export interface EventStreamCloudEventOrgMemberRoleAssignedObjectUser { + /** ID of the user which can be used when interacting with other APIs. */ + user_id: string; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgMemberRoleAssignedTypeEnum = { + OrganizationMemberRoleAssigned: "organization.member.role.assigned", +} as const; +export type EventStreamCloudEventOrgMemberRoleAssignedTypeEnum = + (typeof EventStreamCloudEventOrgMemberRoleAssignedTypeEnum)[keyof typeof EventStreamCloudEventOrgMemberRoleAssignedTypeEnum]; + +/** + * SSE message for organization.member.role.deleted. + */ +export interface EventStreamCloudEventOrgMemberRoleDeleted { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgMemberRoleDeletedCloudEvent; +} + +/** + * Represents an event that occurs when a member is removed from an organization. + */ +export interface EventStreamCloudEventOrgMemberRoleDeletedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgMemberRoleDeletedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum = { + OrganizationMemberRoleDeleted: "organization.member.role.deleted", +} as const; +export type EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgMemberRoleDeletedData { + object: Management.EventStreamCloudEventOrgMemberRoleDeletedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgMemberRoleDeletedObject { + organization: Management.EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization; + user: Management.EventStreamCloudEventOrgMemberRoleDeletedObjectUser; + role: Management.EventStreamCloudEventOrgMemberRoleDeletedObjectRole; +} + +/** + * The organization the member belongs to. + */ +export interface EventStreamCloudEventOrgMemberRoleDeletedObjectOrganization { + /** ID of the organization. */ + id: string; +} + +/** + * The role assigned to the user in the organization. + */ +export interface EventStreamCloudEventOrgMemberRoleDeletedObjectRole { + /** The ID of the role. */ + id: string; + /** The name of the role. */ + name: string; +} + +/** + * The user that is a member of the organization. + */ +export interface EventStreamCloudEventOrgMemberRoleDeletedObjectUser { + /** ID of the user which can be used when interacting with other APIs. */ + user_id: string; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgMemberRoleDeletedTypeEnum = { + OrganizationMemberRoleDeleted: "organization.member.role.deleted", +} as const; +export type EventStreamCloudEventOrgMemberRoleDeletedTypeEnum = + (typeof EventStreamCloudEventOrgMemberRoleDeletedTypeEnum)[keyof typeof EventStreamCloudEventOrgMemberRoleDeletedTypeEnum]; + +/** + * SSE message for organization.updated. + */ +export interface EventStreamCloudEventOrgUpdated { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventOrgUpdatedCloudEvent; +} + +/** + * Represents an event that occurs when an organization is updated. + */ +export interface EventStreamCloudEventOrgUpdatedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventOrgUpdatedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventOrgUpdatedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventOrgUpdatedCloudEventTypeEnum = { + OrganizationUpdated: "organization.updated", +} as const; +export type EventStreamCloudEventOrgUpdatedCloudEventTypeEnum = + (typeof EventStreamCloudEventOrgUpdatedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventOrgUpdatedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventOrgUpdatedData { + object: Management.EventStreamCloudEventOrgUpdatedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventOrgUpdatedObject { + /** The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application.. */ + name?: string | undefined; + /** ID of the organization. */ + id: string; + /** If set, the name that will be displayed to end-users for this organization in any interaction with them. */ + display_name?: string | undefined; + metadata?: Management.EventStreamCloudEventOrgUpdatedObjectMetadata | undefined; + branding?: Management.EventStreamCloudEventOrgUpdatedObjectBranding | undefined; +} + +/** + * The branding associated with the organization. + */ +export interface EventStreamCloudEventOrgUpdatedObjectBranding { + /** URL of logo to display on login page. */ + logo_url?: string | undefined; + colors?: Management.EventStreamCloudEventOrgUpdatedObjectBrandingColors | undefined; +} + +/** + * Color scheme used to customize the login pages. + */ +export interface EventStreamCloudEventOrgUpdatedObjectBrandingColors { + /** HEX Color for primary elements. */ + primary?: string | undefined; + /** HEX Color for background. */ + page_background?: string | undefined; +} + +/** + * The metadata associated with the organization. + */ +export type EventStreamCloudEventOrgUpdatedObjectMetadata = Record; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventOrgUpdatedTypeEnum = { + OrganizationUpdated: "organization.updated", +} as const; +export type EventStreamCloudEventOrgUpdatedTypeEnum = + (typeof EventStreamCloudEventOrgUpdatedTypeEnum)[keyof typeof EventStreamCloudEventOrgUpdatedTypeEnum]; + +/** + * SSE message for user.created. + */ +export interface EventStreamCloudEventUserCreated { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventUserCreatedCloudEvent; +} + +/** + * Represents an event that occurs when a user is created. + */ +export interface EventStreamCloudEventUserCreatedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventUserCreatedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventUserCreatedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventUserCreatedCloudEventTypeEnum = { + UserCreated: "user.created", +} as const; +export type EventStreamCloudEventUserCreatedCloudEventTypeEnum = + (typeof EventStreamCloudEventUserCreatedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventUserCreatedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventUserCreatedData { + object: Management.EventStreamCloudEventUserCreatedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventUserCreatedObject { + /** ID of the user which can be used when interacting with other APIs. */ + user_id: string; + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + /** Date and time when this entity was last updated/modified (ISO_8601 format). */ + updated_at: string; + /** Array of user identity objects when accounts are linked. */ + identities: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItem[]; + app_metadata?: Management.EventStreamCloudEventUserCreatedObjectAppMetadata | undefined; + user_metadata?: Management.EventStreamCloudEventUserCreatedObjectUserMetadata | undefined; + /** URL to picture, photo, or avatar of this user. */ + picture?: string | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Preferred nickname or alias of this user. */ + nickname?: string | undefined; + /** List of multi-factor authentication providers with which this user has enrolled. */ + multifactor?: string[] | undefined; + /** Last IP address from which this user logged in. */ + last_ip?: string | undefined; + /** Last date and time this user logged in (ISO_8601 format). */ + last_login?: string | undefined; + /** Total number of logins this user has performed. */ + logins_count?: number | undefined; + /** Whether this user was blocked by an administrator (true) or is not (false). */ + blocked?: boolean | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** + * User metadata to which this user has read-only access. + */ +export type EventStreamCloudEventUserCreatedObjectAppMetadata = Record; + +/** + * Identity object when accounts are linked. + */ +export type EventStreamCloudEventUserCreatedObjectIdentitiesItem = + | Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom + | Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase + | Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise + | Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless + | Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial; + +/** + * The identity object for custom identity providers. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemCustom { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId; + profileData?: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData | undefined; + provider: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum; + isSocial: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum; +} + +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of custom identity providers. */ +export const EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum = { + Custom: "custom", +} as const; +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum = + (typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum)[keyof typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemCustomUserId = string | number; + +/** + * The identity object for database identity providers. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabase { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId; + profileData?: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData | undefined; + provider: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum; + isSocial: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum; +} + +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of database identity providers. */ +export const EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum = { + Auth0: "auth0", +} as const; +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum = + (typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum)[keyof typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemDatabaseUserId = string | number; + +/** + * The identity object for enterprise identity providers. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterprise { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId; + profileData?: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData | undefined; + provider: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum; + isSocial: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum; +} + +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of enterprise identity providers. */ +export const EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum = { + Ad: "ad", + Adfs: "adfs", + GoogleApps: "google-apps", + Ip: "ip", + Office365: "office365", + Oidc: "oidc", + Okta: "okta", + Pingfederate: "pingfederate", + Samlp: "samlp", + Sharepoint: "sharepoint", + Waad: "waad", +} as const; +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum = + (typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum)[keyof typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseUserId = string | number; + +/** + * The identity object for passwordless identity providers. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordless { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId; + profileData?: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData | undefined; + provider: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum; + isSocial: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum; +} + +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of passwordless identity providers. */ +export const EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum = { + Email: "email", + Sms: "sms", +} as const; +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum = + (typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum)[keyof typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemPasswordlessUserId = string | number; + +/** + * The identity object for social identity providers. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemSocial { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId; + profileData?: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData | undefined; + provider: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum; + isSocial: Management.EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum; +} + +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of social identity providers. */ +export const EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum = { + Amazon: "amazon", + Apple: "apple", + Dropbox: "dropbox", + Bitbucket: "bitbucket", + Auth0Oidc: "auth0-oidc", + Baidu: "baidu", + Bitly: "bitly", + Box: "box", + Daccount: "daccount", + Dwolla: "dwolla", + EvernoteSandbox: "evernote-sandbox", + Evernote: "evernote", + Exact: "exact", + Facebook: "facebook", + Fitbit: "fitbit", + Github: "github", + GoogleOauth2: "google-oauth2", + Instagram: "instagram", + Line: "line", + Linkedin: "linkedin", + Oauth1: "oauth1", + Oauth2: "oauth2", + Paypal: "paypal", + PaypalSandbox: "paypal-sandbox", + Planningcenter: "planningcenter", + SalesforceCommunity: "salesforce-community", + SalesforceSandbox: "salesforce-sandbox", + Salesforce: "salesforce", + Shopify: "shopify", + Soundcloud: "soundcloud", + Thirtysevensignals: "thirtysevensignals", + Twitter: "twitter", + Untapped: "untapped", + Vkontakte: "vkontakte", + Weibo: "weibo", + Windowslive: "windowslive", + Wordpress: "wordpress", + Yahoo: "yahoo", + Yandex: "yandex", +} as const; +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum = + (typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum)[keyof typeof EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserCreatedObjectIdentitiesItemSocialUserId = string | number; + +/** + * User metadata to which this user has read/write access. + */ +export type EventStreamCloudEventUserCreatedObjectUserMetadata = Record; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventUserCreatedTypeEnum = { + UserCreated: "user.created", +} as const; +export type EventStreamCloudEventUserCreatedTypeEnum = + (typeof EventStreamCloudEventUserCreatedTypeEnum)[keyof typeof EventStreamCloudEventUserCreatedTypeEnum]; + +/** + * SSE message for user.deleted. + */ +export interface EventStreamCloudEventUserDeleted { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventUserDeletedCloudEvent; +} + +/** + * Represents an event that occurs when a user is deleted. + */ +export interface EventStreamCloudEventUserDeletedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventUserDeletedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventUserDeletedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventUserDeletedCloudEventTypeEnum = { + UserDeleted: "user.deleted", +} as const; +export type EventStreamCloudEventUserDeletedCloudEventTypeEnum = + (typeof EventStreamCloudEventUserDeletedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventUserDeletedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventUserDeletedData { + object: Management.EventStreamCloudEventUserDeletedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventUserDeletedObject { + /** ID of the user which can be used when interacting with other APIs. */ + user_id: string; + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + /** Date and time when this entity was last updated/modified (ISO_8601 format). */ + updated_at: string; + /** Array of user identity objects when accounts are linked. */ + identities: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItem[]; + app_metadata?: Management.EventStreamCloudEventUserDeletedObjectAppMetadata | undefined; + user_metadata?: Management.EventStreamCloudEventUserDeletedObjectUserMetadata | undefined; + /** URL to picture, photo, or avatar of this user. */ + picture?: string | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Preferred nickname or alias of this user. */ + nickname?: string | undefined; + /** List of multi-factor authentication providers with which this user has enrolled. */ + multifactor?: string[] | undefined; + /** Last IP address from which this user logged in. */ + last_ip?: string | undefined; + /** Last date and time this user logged in (ISO_8601 format). */ + last_login?: string | undefined; + /** Total number of logins this user has performed. */ + logins_count?: number | undefined; + /** Whether this user was blocked by an administrator (true) or is not (false). */ + blocked?: boolean | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Date and time when this entity was deleted (ISO_8601 format). */ + deleted_at: string; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** + * User metadata to which this user has read-only access. + */ +export type EventStreamCloudEventUserDeletedObjectAppMetadata = Record; + +/** + * Identity object when accounts are linked. + */ +export type EventStreamCloudEventUserDeletedObjectIdentitiesItem = + | Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom + | Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase + | Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise + | Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless + | Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial; + +/** + * The identity object for custom identity providers. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemCustom { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId; + profileData?: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData | undefined; + provider: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum; + isSocial: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum; +} + +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of custom identity providers. */ +export const EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum = { + Custom: "custom", +} as const; +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum = + (typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum)[keyof typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemCustomUserId = string | number; + +/** + * The identity object for database identity providers. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabase { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId; + profileData?: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData | undefined; + provider: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum; + isSocial: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum; +} + +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of database identity providers. */ +export const EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum = { + Auth0: "auth0", +} as const; +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum = + (typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum)[keyof typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId = string | number; + +/** + * The identity object for enterprise identity providers. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterprise { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId; + profileData?: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData | undefined; + provider: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum; + isSocial: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum; +} + +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of enterprise identity providers. */ +export const EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum = { + Ad: "ad", + Adfs: "adfs", + GoogleApps: "google-apps", + Ip: "ip", + Office365: "office365", + Oidc: "oidc", + Okta: "okta", + Pingfederate: "pingfederate", + Samlp: "samlp", + Sharepoint: "sharepoint", + Waad: "waad", +} as const; +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum = + (typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum)[keyof typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseUserId = string | number; + +/** + * The identity object for passwordless identity providers. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordless { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId; + profileData?: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData | undefined; + provider: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum; + isSocial: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum; +} + +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of passwordless identity providers. */ +export const EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum = { + Email: "email", + Sms: "sms", +} as const; +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum = + (typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum)[keyof typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessUserId = string | number; + +/** + * The identity object for social identity providers. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemSocial { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId; + profileData?: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData | undefined; + provider: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum; + isSocial: Management.EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum; +} + +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of social identity providers. */ +export const EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum = { + Amazon: "amazon", + Apple: "apple", + Dropbox: "dropbox", + Bitbucket: "bitbucket", + Auth0Oidc: "auth0-oidc", + Baidu: "baidu", + Bitly: "bitly", + Box: "box", + Daccount: "daccount", + Dwolla: "dwolla", + EvernoteSandbox: "evernote-sandbox", + Evernote: "evernote", + Exact: "exact", + Facebook: "facebook", + Fitbit: "fitbit", + Github: "github", + GoogleOauth2: "google-oauth2", + Instagram: "instagram", + Line: "line", + Linkedin: "linkedin", + Oauth1: "oauth1", + Oauth2: "oauth2", + Paypal: "paypal", + PaypalSandbox: "paypal-sandbox", + Planningcenter: "planningcenter", + SalesforceCommunity: "salesforce-community", + SalesforceSandbox: "salesforce-sandbox", + Salesforce: "salesforce", + Shopify: "shopify", + Soundcloud: "soundcloud", + Thirtysevensignals: "thirtysevensignals", + Twitter: "twitter", + Untapped: "untapped", + Vkontakte: "vkontakte", + Weibo: "weibo", + Windowslive: "windowslive", + Wordpress: "wordpress", + Yahoo: "yahoo", + Yandex: "yandex", +} as const; +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum = + (typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum)[keyof typeof EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserDeletedObjectIdentitiesItemSocialUserId = string | number; + +/** + * User metadata to which this user has read/write access. + */ +export type EventStreamCloudEventUserDeletedObjectUserMetadata = Record; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventUserDeletedTypeEnum = { + UserDeleted: "user.deleted", +} as const; +export type EventStreamCloudEventUserDeletedTypeEnum = + (typeof EventStreamCloudEventUserDeletedTypeEnum)[keyof typeof EventStreamCloudEventUserDeletedTypeEnum]; + +/** + * SSE message for user.updated. + */ +export interface EventStreamCloudEventUserUpdated { + /** Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume. */ + offset: string; + event: Management.EventStreamCloudEventUserUpdatedCloudEvent; +} + +/** + * Represents an event that occurs when a user is updated. + */ +export interface EventStreamCloudEventUserUpdatedCloudEvent { + /** The version of the CloudEvents specification which the event uses. */ + specversion: string; + type: Management.EventStreamCloudEventUserUpdatedCloudEventTypeEnum; + /** The source of the event. This will take the form 'urn:auth0:.'. */ + source: string; + /** A unique identifier for the event. */ + id: string; + /** An ISO-8601 timestamp indicating when the event physically occurred. */ + time: string; + data: Management.EventStreamCloudEventUserUpdatedData; + /** The auth0 tenant ID to which the event is associated. */ + a0tenant: string; + /** The auth0 event stream ID of the stream the event was delivered on. */ + a0stream: string; + a0purpose?: Management.EventStreamCloudEventA0PurposeEnum | undefined; +} + +/** The type of the event which has happened. */ +export const EventStreamCloudEventUserUpdatedCloudEventTypeEnum = { + UserUpdated: "user.updated", +} as const; +export type EventStreamCloudEventUserUpdatedCloudEventTypeEnum = + (typeof EventStreamCloudEventUserUpdatedCloudEventTypeEnum)[keyof typeof EventStreamCloudEventUserUpdatedCloudEventTypeEnum]; + +/** + * The event payload. + */ +export interface EventStreamCloudEventUserUpdatedData { + object: Management.EventStreamCloudEventUserUpdatedObject; + context?: Management.EventStreamCloudEventContext | undefined; +} + +/** + * The event content. + */ +export interface EventStreamCloudEventUserUpdatedObject { + /** ID of the user which can be used when interacting with other APIs. */ + user_id: string; + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Date and time when this entity was created (ISO_8601 format). */ + created_at: string; + /** Date and time when this entity was last updated/modified (ISO_8601 format). */ + updated_at: string; + /** Array of user identity objects when accounts are linked. */ + identities: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItem[]; + app_metadata?: Management.EventStreamCloudEventUserUpdatedObjectAppMetadata | undefined; + user_metadata?: Management.EventStreamCloudEventUserUpdatedObjectUserMetadata | undefined; + /** URL to picture, photo, or avatar of this user. */ + picture?: string | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Preferred nickname or alias of this user. */ + nickname?: string | undefined; + /** List of multi-factor authentication providers with which this user has enrolled. */ + multifactor?: string[] | undefined; + /** Last IP address from which this user logged in. */ + last_ip?: string | undefined; + /** Last date and time this user logged in (ISO_8601 format). */ + last_login?: string | undefined; + /** Total number of logins this user has performed. */ + logins_count?: number | undefined; + /** Whether this user was blocked by an administrator (true) or is not (false). */ + blocked?: boolean | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** + * User metadata to which this user has read-only access. + */ +export type EventStreamCloudEventUserUpdatedObjectAppMetadata = Record; + +/** + * Identity object when accounts are linked. + */ +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItem = + | Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom + | Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase + | Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise + | Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless + | Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial; + +/** + * The identity object for custom identity providers. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustom { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId; + profileData?: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData | undefined; + provider: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum; + isSocial: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum; +} + +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of custom identity providers. */ +export const EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum = { + Custom: "custom", +} as const; +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum = + (typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum)[keyof typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomUserId = string | number; + +/** + * The identity object for database identity providers. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabase { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId; + profileData?: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData | undefined; + provider: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum; + isSocial: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum; +} + +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of database identity providers. */ +export const EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum = { + Auth0: "auth0", +} as const; +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum = + (typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum)[keyof typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseProviderEnum]; + +/** + * The IDP-specific identifer for the user. + */ +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemDatabaseUserId = string | number; + +/** + * The identity object for enterprise identity providers. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterprise { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId; + profileData?: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData | undefined; + provider: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum; + isSocial: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum; +} + +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseIsSocialEnum = boolean; + +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} + +/** List of enterprise identity providers. */ +export const EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum = { + Ad: "ad", + Adfs: "adfs", + GoogleApps: "google-apps", + Ip: "ip", + Office365: "office365", + Oidc: "oidc", + Okta: "okta", + Pingfederate: "pingfederate", + Samlp: "samlp", + Sharepoint: "sharepoint", + Waad: "waad", } as const; -export type EnabledFeaturesEnum = (typeof EnabledFeaturesEnum)[keyof typeof EnabledFeaturesEnum]; +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum = + (typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum)[keyof typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProviderEnum]; /** - * Encryption key + * The IDP-specific identifer for the user. */ -export interface EncryptionKey { - /** Key ID */ - kid: string; - type: Management.EncryptionKeyType; - state: Management.EncryptionKeyState; - /** Key creation timestamp */ - created_at: string; - /** Key update timestamp */ - updated_at: string; - /** ID of parent wrapping key */ - parent_kid?: (string | null) | undefined; - /** Public key in PEM format */ - public_key?: (string | null) | undefined; +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseUserId = string | number; + +/** + * The identity object for passwordless identity providers. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordless { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId; + profileData?: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData | undefined; + provider: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum; + isSocial: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum; } -/** Encryption algorithm that shall be used to wrap your key material */ -export const EncryptionKeyPublicWrappingAlgorithm = { - CkmRsaAesKeyWrap: "CKM_RSA_AES_KEY_WRAP", -} as const; -export type EncryptionKeyPublicWrappingAlgorithm = - (typeof EncryptionKeyPublicWrappingAlgorithm)[keyof typeof EncryptionKeyPublicWrappingAlgorithm]; +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessIsSocialEnum = boolean; -/** Key state */ -export const EncryptionKeyState = { - PreActivation: "pre-activation", - Active: "active", - Deactivated: "deactivated", - Destroyed: "destroyed", -} as const; -export type EncryptionKeyState = (typeof EncryptionKeyState)[keyof typeof EncryptionKeyState]; +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ + name?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; +} -/** Key type */ -export const EncryptionKeyType = { - CustomerProvidedRootKey: "customer-provided-root-key", - EnvironmentRootKey: "environment-root-key", - TenantMasterKey: "tenant-master-key", - TenantEncryptionKey: "tenant-encryption-key", +/** List of passwordless identity providers. */ +export const EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum = { + Email: "email", + Sms: "sms", } as const; -export type EncryptionKeyType = (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType]; +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum = + (typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum)[keyof typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessProviderEnum]; /** - * Configuration specific to an action destination. + * The IDP-specific identifer for the user. */ -export interface EventStreamActionConfiguration { - /** Action ID for the action destination. */ - action_id: string; -} +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemPasswordlessUserId = string | number; -export interface EventStreamActionDestination { - type: Management.EventStreamActionDestinationTypeEnum; - configuration: Management.EventStreamActionConfiguration; +/** + * The identity object for social identity providers. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocial { + /** Name of the connection containing this identity. */ + connection: string; + user_id: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId; + profileData?: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData | undefined; + provider: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum; + isSocial: Management.EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum; } -export const EventStreamActionDestinationTypeEnum = { - Action: "action", -} as const; -export type EventStreamActionDestinationTypeEnum = - (typeof EventStreamActionDestinationTypeEnum)[keyof typeof EventStreamActionDestinationTypeEnum]; +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialIsSocialEnum = boolean; -export interface EventStreamActionResponseContent { - /** Unique identifier for the event stream. */ - id?: string | undefined; - /** Name of the event stream. */ +/** + * Profile data for the user. + */ +export interface EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProfileData { + /** Email address of this user. */ + email?: string | undefined; + /** Whether this email address is verified (true) or unverified (false). */ + email_verified?: boolean | undefined; + /** Name of this user. */ name?: string | undefined; - /** List of event types subscribed to in this stream. */ - subscriptions?: Management.EventStreamSubscription[] | undefined; - destination?: Management.EventStreamActionDestination | undefined; - status?: Management.EventStreamStatusEnum | undefined; - /** Timestamp when the event stream was created. */ - created_at?: string | undefined; - /** Timestamp when the event stream was last updated. */ - updated_at?: string | undefined; + /** Username of this user. */ + username?: string | undefined; + /** Given name/first name/forename of this user. */ + given_name?: string | undefined; + /** Family name/last name/surname of this user. */ + family_name?: string | undefined; + /** Phone number of this user. */ + phone_number?: string | undefined; + /** Whether this phone number has been verified (true) or not (false). */ + phone_verified?: boolean | undefined; + /** Accepts any additional properties */ + [key: string]: any; } +/** List of social identity providers. */ +export const EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum = { + Amazon: "amazon", + Apple: "apple", + Dropbox: "dropbox", + Bitbucket: "bitbucket", + Auth0Oidc: "auth0-oidc", + Baidu: "baidu", + Bitly: "bitly", + Box: "box", + Daccount: "daccount", + Dwolla: "dwolla", + EvernoteSandbox: "evernote-sandbox", + Evernote: "evernote", + Exact: "exact", + Facebook: "facebook", + Fitbit: "fitbit", + Github: "github", + GoogleOauth2: "google-oauth2", + Instagram: "instagram", + Line: "line", + Linkedin: "linkedin", + Oauth1: "oauth1", + Oauth2: "oauth2", + Paypal: "paypal", + PaypalSandbox: "paypal-sandbox", + Planningcenter: "planningcenter", + SalesforceCommunity: "salesforce-community", + SalesforceSandbox: "salesforce-sandbox", + Salesforce: "salesforce", + Shopify: "shopify", + Soundcloud: "soundcloud", + Thirtysevensignals: "thirtysevensignals", + Twitter: "twitter", + Untapped: "untapped", + Vkontakte: "vkontakte", + Weibo: "weibo", + Windowslive: "windowslive", + Wordpress: "wordpress", + Yahoo: "yahoo", + Yandex: "yandex", +} as const; +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum = + (typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum)[keyof typeof EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialProviderEnum]; + /** - * Event content. This will only be set if delivery failed. + * The IDP-specific identifer for the user. */ -export interface EventStreamCloudEvent { - /** Unique identifier for the event */ - id?: string | undefined; - /** Where the event originated */ - source?: string | undefined; - /** Version of CloudEvents spec */ - specversion?: string | undefined; - /** Type of the event (e.g., user.created) */ - type?: string | undefined; - /** Timestamp at which the event was generated */ - time?: string | undefined; - /** Event contents encoded as a string. */ - data?: string | undefined; -} +export type EventStreamCloudEventUserUpdatedObjectIdentitiesItemSocialUserId = string | number; + +/** + * User metadata to which this user has read/write access. + */ +export type EventStreamCloudEventUserUpdatedObjectUserMetadata = Record; + +/** The event type (injected from the SSE event field). */ +export const EventStreamCloudEventUserUpdatedTypeEnum = { + UserUpdated: "user.updated", +} as const; +export type EventStreamCloudEventUserUpdatedTypeEnum = + (typeof EventStreamCloudEventUserUpdatedTypeEnum)[keyof typeof EventStreamCloudEventUserUpdatedTypeEnum]; /** * Metadata about a specific attempt to deliver an event @@ -10752,6 +14392,165 @@ export const EventStreamStatusEnum = { } as const; export type EventStreamStatusEnum = (typeof EventStreamStatusEnum)[keyof typeof EventStreamStatusEnum]; +export const EventStreamSubscribeEventsEventTypeEnum = { + GroupCreated: "group.created", + GroupDeleted: "group.deleted", + GroupMemberAdded: "group.member.added", + GroupMemberDeleted: "group.member.deleted", + GroupRoleAssigned: "group.role.assigned", + GroupRoleDeleted: "group.role.deleted", + GroupUpdated: "group.updated", + OrganizationConnectionAdded: "organization.connection.added", + OrganizationConnectionRemoved: "organization.connection.removed", + OrganizationConnectionUpdated: "organization.connection.updated", + OrganizationCreated: "organization.created", + OrganizationDeleted: "organization.deleted", + OrganizationGroupRoleAssigned: "organization.group.role.assigned", + OrganizationGroupRoleDeleted: "organization.group.role.deleted", + OrganizationMemberAdded: "organization.member.added", + OrganizationMemberDeleted: "organization.member.deleted", + OrganizationMemberRoleAssigned: "organization.member.role.assigned", + OrganizationMemberRoleDeleted: "organization.member.role.deleted", + OrganizationUpdated: "organization.updated", + UserCreated: "user.created", + UserDeleted: "user.deleted", + UserUpdated: "user.updated", +} as const; +export type EventStreamSubscribeEventsEventTypeEnum = + (typeof EventStreamSubscribeEventsEventTypeEnum)[keyof typeof EventStreamSubscribeEventsEventTypeEnum]; + +/** + * Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed. + */ +export type EventStreamSubscribeEventsEventTypeParam = Management.EventStreamSubscribeEventsEventTypeEnum[]; + +/** + * The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, "error" for errors, and "offset-only" for cursor-only heartbeats. + */ +export type EventStreamSubscribeEventsResponseContent = + | Management.EventStreamSubscribeEventsResponseContent.GroupCreated + | Management.EventStreamSubscribeEventsResponseContent.GroupDeleted + | Management.EventStreamSubscribeEventsResponseContent.GroupMemberAdded + | Management.EventStreamSubscribeEventsResponseContent.GroupMemberDeleted + | Management.EventStreamSubscribeEventsResponseContent.GroupRoleAssigned + | Management.EventStreamSubscribeEventsResponseContent.GroupRoleDeleted + | Management.EventStreamSubscribeEventsResponseContent.GroupUpdated + | Management.EventStreamSubscribeEventsResponseContent.OrganizationConnectionAdded + | Management.EventStreamSubscribeEventsResponseContent.OrganizationConnectionRemoved + | Management.EventStreamSubscribeEventsResponseContent.OrganizationConnectionUpdated + | Management.EventStreamSubscribeEventsResponseContent.OrganizationCreated + | Management.EventStreamSubscribeEventsResponseContent.OrganizationDeleted + | Management.EventStreamSubscribeEventsResponseContent.OrganizationGroupRoleAssigned + | Management.EventStreamSubscribeEventsResponseContent.OrganizationGroupRoleDeleted + | Management.EventStreamSubscribeEventsResponseContent.OrganizationMemberAdded + | Management.EventStreamSubscribeEventsResponseContent.OrganizationMemberDeleted + | Management.EventStreamSubscribeEventsResponseContent.OrganizationMemberRoleAssigned + | Management.EventStreamSubscribeEventsResponseContent.OrganizationMemberRoleDeleted + | Management.EventStreamSubscribeEventsResponseContent.OrganizationUpdated + | Management.EventStreamSubscribeEventsResponseContent.UserCreated + | Management.EventStreamSubscribeEventsResponseContent.UserDeleted + | Management.EventStreamSubscribeEventsResponseContent.UserUpdated + | Management.EventStreamSubscribeEventsResponseContent.Error + | Management.EventStreamSubscribeEventsResponseContent.OffsetOnly; + +export namespace EventStreamSubscribeEventsResponseContent { + export interface GroupCreated extends Management.EventStreamCloudEventGroupCreated { + type: "group.created"; + } + + export interface GroupDeleted extends Management.EventStreamCloudEventGroupDeleted { + type: "group.deleted"; + } + + export interface GroupMemberAdded extends Management.EventStreamCloudEventGroupMemberAdded { + type: "group.member.added"; + } + + export interface GroupMemberDeleted extends Management.EventStreamCloudEventGroupMemberDeleted { + type: "group.member.deleted"; + } + + export interface GroupRoleAssigned extends Management.EventStreamCloudEventGroupRoleAssigned { + type: "group.role.assigned"; + } + + export interface GroupRoleDeleted extends Management.EventStreamCloudEventGroupRoleDeleted { + type: "group.role.deleted"; + } + + export interface GroupUpdated extends Management.EventStreamCloudEventGroupUpdated { + type: "group.updated"; + } + + export interface OrganizationConnectionAdded extends Management.EventStreamCloudEventOrgConnectionAdded { + type: "organization.connection.added"; + } + + export interface OrganizationConnectionRemoved extends Management.EventStreamCloudEventOrgConnectionRemoved { + type: "organization.connection.removed"; + } + + export interface OrganizationConnectionUpdated extends Management.EventStreamCloudEventOrgConnectionUpdated { + type: "organization.connection.updated"; + } + + export interface OrganizationCreated extends Management.EventStreamCloudEventOrgCreated { + type: "organization.created"; + } + + export interface OrganizationDeleted extends Management.EventStreamCloudEventOrgDeleted { + type: "organization.deleted"; + } + + export interface OrganizationGroupRoleAssigned extends Management.EventStreamCloudEventOrgGroupRoleAssigned { + type: "organization.group.role.assigned"; + } + + export interface OrganizationGroupRoleDeleted extends Management.EventStreamCloudEventOrgGroupRoleDeleted { + type: "organization.group.role.deleted"; + } + + export interface OrganizationMemberAdded extends Management.EventStreamCloudEventOrgMemberAdded { + type: "organization.member.added"; + } + + export interface OrganizationMemberDeleted extends Management.EventStreamCloudEventOrgMemberDeleted { + type: "organization.member.deleted"; + } + + export interface OrganizationMemberRoleAssigned extends Management.EventStreamCloudEventOrgMemberRoleAssigned { + type: "organization.member.role.assigned"; + } + + export interface OrganizationMemberRoleDeleted extends Management.EventStreamCloudEventOrgMemberRoleDeleted { + type: "organization.member.role.deleted"; + } + + export interface OrganizationUpdated extends Management.EventStreamCloudEventOrgUpdated { + type: "organization.updated"; + } + + export interface UserCreated extends Management.EventStreamCloudEventUserCreated { + type: "user.created"; + } + + export interface UserDeleted extends Management.EventStreamCloudEventUserDeleted { + type: "user.deleted"; + } + + export interface UserUpdated extends Management.EventStreamCloudEventUserUpdated { + type: "user.updated"; + } + + export interface Error extends Management.EventStreamCloudEventErrorMessage { + type: "error"; + } + + export interface OffsetOnly extends Management.EventStreamCloudEventOffsetOnlyMessage { + type: "offset-only"; + } +} + /** * Event types */ @@ -14592,6 +18391,7 @@ export interface GetBrandingResponseContent { favicon_url?: string | undefined; /** URL for the logo. Must use HTTPS. */ logo_url?: string | undefined; + identifiers?: Management.BrandingIdentifiers | undefined; font?: Management.BrandingFont | undefined; /** Accepts any additional properties */ [key: string]: any; @@ -14941,7 +18741,7 @@ export interface GetDirectoryProvisioningResponseContent { } export interface GetEmailProviderResponseContent { - /** Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. */ + /** Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `resend`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. */ name?: string | undefined; /** Whether the provider is enabled (true) or disabled (false). */ enabled?: boolean | undefined; @@ -15558,6 +19358,7 @@ export interface GetResourceServerResponseContent { authorization_details?: (unknown[] | null) | undefined; proof_of_possession?: (Management.ResourceServerProofOfPossession | null) | undefined; subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization | undefined; + authorization_policy?: (Management.ResourceServerAuthorizationPolicy | null) | undefined; /** The client ID of the client that this resource server is linked to */ client_id?: string | undefined; } @@ -15632,14 +19433,14 @@ export interface GetSelfServiceProfileResponseContent { name?: string | undefined; /** The description of the self-service Profile. */ description?: string | undefined; - /** List of attributes to be mapped that will be shown to the user during the SS-SSO flow. */ + /** List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. */ user_attributes?: Management.SelfServiceProfileUserAttribute[] | undefined; /** The time when this self-service Profile was created. */ created_at?: string | undefined; /** The time when this self-service Profile was updated. */ updated_at?: string | undefined; branding?: Management.SelfServiceProfileBrandingProperties | undefined; - /** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ + /** List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[] | undefined; /** ID of the user-attribute-profile to associate with this self-service profile. */ user_attribute_profile_id?: string | undefined; @@ -18313,10 +22114,19 @@ export interface ResourceServer { authorization_details?: (unknown[] | null) | undefined; proof_of_possession?: (Management.ResourceServerProofOfPossession | null) | undefined; subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization | undefined; + authorization_policy?: (Management.ResourceServerAuthorizationPolicy | null) | undefined; /** The client ID of the client that this resource server is linked to */ client_id?: string | undefined; } +/** + * Authorization policy for the resource server. + */ +export interface ResourceServerAuthorizationPolicy { + /** The ID of the authorization policy to apply. */ + policy_id: string; +} + export const ResourceServerConsentPolicyEnum = { TransactionalAuthorizationWithMfa: "transactional-authorization-with-mfa", } as const; @@ -18834,14 +22644,14 @@ export interface SelfServiceProfile { name?: string | undefined; /** The description of the self-service Profile. */ description?: string | undefined; - /** List of attributes to be mapped that will be shown to the user during the SS-SSO flow. */ + /** List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. */ user_attributes?: Management.SelfServiceProfileUserAttribute[] | undefined; /** The time when this self-service Profile was created. */ created_at?: string | undefined; /** The time when this self-service Profile was updated. */ updated_at?: string | undefined; branding?: Management.SelfServiceProfileBrandingProperties | undefined; - /** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ + /** List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[] | undefined; /** ID of the user-attribute-profile to associate with this self-service profile. */ user_attribute_profile_id?: string | undefined; @@ -18897,10 +22707,10 @@ export type SelfServiceProfileCustomTextPageEnum = export type SelfServiceProfileDescription = (string | null) | undefined; /** - * If provided, this will create a new connection for the SSO flow with the given configuration + * If provided, this will create a new connection for the Self-Service Enterprise Configuration flow with the given configuration */ export interface SelfServiceProfileSsoTicketConnectionConfig { - /** The name of the connection that will be created as a part of the SSO flow. */ + /** The name of the connection that will be created as a part of the Self-Service Enterprise Configuration flow. */ name: string; /** Connection name used in the new universal login experience */ display_name?: string | undefined; @@ -18924,11 +22734,11 @@ export interface SelfServiceProfileSsoTicketConnectionOptions { } /** - * Configuration for the setup of the connection’s domain_aliases in the self-service SSO flow. + * Configuration for the setup of the connection’s domain_aliases in the Self-Service Enterprise Configuration flow. */ export interface SelfServiceProfileSsoTicketDomainAliasesConfig { domain_verification: Management.SelfServiceProfileSsoTicketDomainVerificationEnum; - /** List of domains that will be submitted for verification during the self-service SSO flow. */ + /** List of domains that will be submitted for verification during the Self-Service Enterprise Configuration flow. */ pending_domains?: string[] | undefined; } @@ -19028,7 +22838,7 @@ export interface SelfServiceProfileUserAttribute { } /** - * List of attributes to be mapped that will be shown to the user during the SS-SSO flow. + * List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. */ export type SelfServiceProfileUserAttributes = (Management.SelfServiceProfileUserAttribute[] | null) | undefined; @@ -19295,7 +23105,7 @@ export interface SetRulesConfigResponseContent { } /** - * The list of text keys and values to customize the self-service SSO page. Values can be plain text or rich HTML content limited to basic styling tags and hyperlinks. + * The list of text keys and values to customize the Self-Service Enterprise Configuration flow page. Values can be plain text or rich HTML content limited to basic styling tags and hyperlinks. */ export type SetSelfServiceProfileCustomTextRequestContent = Record; @@ -19581,7 +23391,7 @@ export const TenantSettingsDeviceFlowCharset = { export type TenantSettingsDeviceFlowCharset = (typeof TenantSettingsDeviceFlowCharset)[keyof typeof TenantSettingsDeviceFlowCharset]; -/** Sets the `third_party_security_mode` assigned to clients created via Dynamic Client Registration. `strict` applies enhanced security controls. `permissive` preserves pre-existing behavior and is only available to tenants with prior third-party client usage. */ +/** Sets the `third_party_security_mode` assigned to clients created via Dynamic Client Registration. `strict` applies enhanced security controls. `permissive` preserves pre-existing behavior and is only available to tenants with prior third-party client usage. */ export const TenantSettingsDynamicClientRegistrationSecurityMode = { Strict: "strict", Permissive: "permissive", @@ -20011,6 +23821,24 @@ export interface UpdateBrandingFont { url?: (string | null) | undefined; } +/** + * Identifier input display settings. + */ +export interface UpdateBrandingIdentifiers { + login_display?: Management.UpdateBrandingLoginDisplayEnum | undefined; + /** Whether OTP autocomplete (autocomplete="one-time-code") is enabled. */ + otp_autocomplete?: boolean | undefined; + phone_display?: (Management.UpdateBrandingPhoneDisplay | null) | undefined; +} + +/** Controls identifier input presentation on the login flow. Defaults to "unified" for legacy tenants, "separate" for tenants created post-GA of this feature. */ +export const UpdateBrandingLoginDisplayEnum = { + Unified: "unified", + Separate: "separate", +} as const; +export type UpdateBrandingLoginDisplayEnum = + (typeof UpdateBrandingLoginDisplayEnum)[keyof typeof UpdateBrandingLoginDisplayEnum]; + /** * Page Background Color or Gradient. * Property contains either null to unset, a solid color as a string value #FFFFFF, or a gradient as an object. @@ -20026,6 +23854,31 @@ export interface UpdateBrandingFont { */ export type UpdateBrandingPageBackground = (string | null) | undefined | (Record | null) | undefined; +/** + * Phone number display settings. + */ +export interface UpdateBrandingPhoneDisplay { + masking: Management.UpdateBrandingPhoneMaskingEnum; + formatting: Management.UpdateBrandingPhoneFormattingEnum; +} + +/** Controls the format used when displaying phone numbers. */ +export const UpdateBrandingPhoneFormattingEnum = { + Regional: "regional", + International: "international", +} as const; +export type UpdateBrandingPhoneFormattingEnum = + (typeof UpdateBrandingPhoneFormattingEnum)[keyof typeof UpdateBrandingPhoneFormattingEnum]; + +/** Controls how phone numbers are masked when displayed back to users. */ +export const UpdateBrandingPhoneMaskingEnum = { + ShowAll: "show_all", + HideCountryCode: "hide_country_code", + MaskDigits: "mask_digits", +} as const; +export type UpdateBrandingPhoneMaskingEnum = + (typeof UpdateBrandingPhoneMaskingEnum)[keyof typeof UpdateBrandingPhoneMaskingEnum]; + /** * Phone provider configuration schema */ @@ -20050,6 +23903,7 @@ export interface UpdateBrandingResponseContent { favicon_url?: string | undefined; /** URL for the logo. Must use HTTPS. */ logo_url?: string | undefined; + identifiers?: Management.BrandingIdentifiers | undefined; font?: Management.BrandingFont | undefined; /** Accepts any additional properties */ [key: string]: any; @@ -20267,6 +24121,11 @@ export interface UpdateConnectionOptions { gateway_authentication?: (Management.ConnectionGatewayAuthentication | null) | undefined; federated_connections_access_tokens?: (Management.ConnectionFederatedConnectionsAccessTokens | null) | undefined; password_options?: Management.ConnectionPasswordOptions | undefined; + assertion_decryption_settings?: Management.ConnectionAssertionDecryptionSettings | undefined; + id_token_signed_response_algs?: ((Management.ConnectionIdTokenSignedResponseAlgs | undefined) | null) | undefined; + token_endpoint_auth_method?: (Management.ConnectionTokenEndpointAuthMethodEnum | null) | undefined; + token_endpoint_auth_signing_alg?: (Management.ConnectionTokenEndpointAuthSigningAlgEnum | null) | undefined; + token_endpoint_jwtca_aud_format?: Management.ConnectionTokenEndpointJwtcaAudFormatEnumOidc | undefined; /** Accepts any additional properties */ [key: string]: any; } @@ -20794,7 +24653,7 @@ export interface UpdateDirectoryProvisioningResponseContent { } export interface UpdateEmailProviderResponseContent { - /** Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. */ + /** Name of the email provider. Can be `mailgun`, `mandrill`, `sendgrid`, `resend`, `ses`, `sparkpost`, `smtp`, `azure_cs`, `ms365`, or `custom`. */ name?: string | undefined; /** Whether the provider is enabled (true) or disabled (false). */ enabled?: boolean | undefined; @@ -21095,6 +24954,7 @@ export interface UpdateResourceServerResponseContent { authorization_details?: (unknown[] | null) | undefined; proof_of_possession?: (Management.ResourceServerProofOfPossession | null) | undefined; subject_type_authorization?: Management.ResourceServerSubjectTypeAuthorization | undefined; + authorization_policy?: (Management.ResourceServerAuthorizationPolicy | null) | undefined; /** The client ID of the client that this resource server is linked to */ client_id?: string | undefined; } @@ -21159,14 +25019,14 @@ export interface UpdateSelfServiceProfileResponseContent { name?: string | undefined; /** The description of the self-service Profile. */ description?: string | undefined; - /** List of attributes to be mapped that will be shown to the user during the SS-SSO flow. */ + /** List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow. */ user_attributes?: Management.SelfServiceProfileUserAttribute[] | undefined; /** The time when this self-service Profile was created. */ created_at?: string | undefined; /** The time when this self-service Profile was updated. */ updated_at?: string | undefined; branding?: Management.SelfServiceProfileBrandingProperties | undefined; - /** List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ + /** List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */ allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[] | undefined; /** ID of the user-attribute-profile to associate with this self-service profile. */ user_attribute_profile_id?: string | undefined; @@ -21328,6 +25188,8 @@ export interface UpdateUserAuthenticationMethodResponseContent { aaguid?: string | undefined; /** Applies to webauthn authentication methods only. The relying party identifier. */ relying_party_identifier?: string | undefined; + /** Whether the authentication method has been confirmed. */ + confirmed?: boolean | undefined; /** Authentication method creation date */ created_at?: string | undefined; } diff --git a/src/management/core/fetcher/Fetcher.ts b/src/management/core/fetcher/Fetcher.ts index 928dfeaaba..943ec1bfe9 100644 --- a/src/management/core/fetcher/Fetcher.ts +++ b/src/management/core/fetcher/Fetcher.ts @@ -21,7 +21,13 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; + /** + * @deprecated Prefer `queryString` (produced by `core.url.queryBuilder()`). + * Retained for backwards compatibility with custom fetchers and callers that + * still construct request args with a query-parameter object. + */ queryParameters?: Record; + queryString?: string; body?: unknown; timeoutMs?: number; maxRetries?: number; @@ -118,17 +124,15 @@ const SENSITIVE_QUERY_PARAMS = new Set([ "session-id", ]); -function redactQueryParameters(queryParameters?: Record): Record | undefined { +function redactQueryParameters( + queryParameters: Record | undefined, +): Record | undefined { if (queryParameters == null) { - return queryParameters; + return undefined; } const redacted: Record = {}; for (const [key, value] of Object.entries(queryParameters)) { - if (SENSITIVE_QUERY_PARAMS.has(key.toLowerCase())) { - redacted[key] = "[REDACTED]"; - } else { - redacted[key] = value; - } + redacted[key] = SENSITIVE_QUERY_PARAMS.has(key.toLowerCase()) ? "[REDACTED]" : value; } return redacted; } @@ -251,7 +255,12 @@ async function getHeaders(args: Fetcher.Args): Promise { } export async function fetcherImpl(args: Fetcher.Args): Promise> { - const url = createRequestUrl(args.url, args.queryParameters); + let url = args.url; + if (args.queryString != null && args.queryString.length > 0) { + url = `${url}?${args.queryString}`; + } else { + url = createRequestUrl(args.url, args.queryParameters); + } const requestBody: BodyInit | undefined = await getRequestBody({ body: args.body, type: args.requestType ?? "other", diff --git a/src/management/core/index.ts b/src/management/core/index.ts index 7b3d0dd97e..0f99d56e37 100644 --- a/src/management/core/index.ts +++ b/src/management/core/index.ts @@ -6,5 +6,6 @@ export * from "./form-data-utils/index.js"; export * as logging from "./logging/index.js"; export * from "./pagination/index.js"; export * from "./runtime/index.js"; +export * from "./stream/index.js"; export * as url from "./url/index.js"; export * from "./utils/index.js"; diff --git a/src/management/core/stream/Stream.ts b/src/management/core/stream/Stream.ts new file mode 100644 index 0000000000..8ccdecf989 --- /dev/null +++ b/src/management/core/stream/Stream.ts @@ -0,0 +1,235 @@ +import { fromJson } from "../json.js"; +import { RUNTIME } from "../runtime/index.js"; + +export declare namespace Stream { + interface Args { + /** + * The HTTP response stream to read from. + */ + + stream: ReadableStream; + + /** + * The event shape to use for parsing the stream data. + */ + eventShape: JsonEvent | SseEvent; + /** + * An abort signal to stop the stream. + */ + signal?: AbortSignal; + } + + interface JsonEvent { + type: "json"; + messageTerminator: string; + } + + interface SseEvent { + type: "sse"; + streamTerminator?: string; + eventDiscriminator?: string; + } +} + +const DATA_PREFIX = "data:"; +const EVENT_PREFIX = "event:"; + +export class Stream implements AsyncIterable { + private stream: ReadableStream; + + private parse: (val: unknown) => Promise; + /** + * The prefix to use for each message. For example, + * for SSE, the prefix is "data: ". + */ + private prefix: string | undefined; + private messageTerminator: string; + private streamTerminator: string | undefined; + private eventDiscriminator: string | undefined; + private controller: AbortController = new AbortController(); + private decoder: TextDecoder | undefined; + + constructor({ stream, parse, eventShape, signal }: Stream.Args & { parse: (val: unknown) => Promise }) { + this.stream = stream; + this.parse = parse; + if (eventShape.type === "sse") { + this.prefix = DATA_PREFIX; + this.messageTerminator = "\n"; + this.streamTerminator = eventShape.streamTerminator; + this.eventDiscriminator = eventShape.eventDiscriminator; + } else { + this.messageTerminator = eventShape.messageTerminator; + } + signal?.addEventListener("abort", () => this.controller.abort()); + + // Initialize shared TextDecoder + if (typeof TextDecoder !== "undefined") { + this.decoder = new TextDecoder("utf-8"); + } + } + + private async *iterMessages(): AsyncGenerator { + if (this.eventDiscriminator != null) { + yield* this.iterSseEvents(); + } else { + yield* this.iterDataMessages(); + } + } + + private async *iterDataMessages(): AsyncGenerator { + const stream = readableStreamAsyncIterable(this.stream); + let buf = ""; + let prefixSeen = false; + for await (const chunk of stream) { + buf += this.decodeChunk(chunk); + + let terminatorIndex: number; + while ((terminatorIndex = buf.indexOf(this.messageTerminator)) >= 0) { + let line = buf.slice(0, terminatorIndex); + buf = buf.slice(terminatorIndex + this.messageTerminator.length); + + if (!line.trim()) { + continue; + } + + if (!prefixSeen && this.prefix != null) { + const prefixIndex = line.indexOf(this.prefix); + if (prefixIndex === -1) { + continue; + } + prefixSeen = true; + line = line.slice(prefixIndex + this.prefix.length); + } + + if (this.streamTerminator != null && line.includes(this.streamTerminator)) { + return; + } + const message = await this.parse(fromJson(line)); + yield message; + prefixSeen = false; + } + } + } + + private async *iterSseEvents(): AsyncGenerator { + const stream = readableStreamAsyncIterable(this.stream); + let buf = ""; + let eventType: string | undefined; + let dataValue: string | undefined; + + for await (const chunk of stream) { + buf += this.decodeChunk(chunk); + + let terminatorIndex: number; + while ((terminatorIndex = buf.indexOf("\n")) >= 0) { + const line = buf.slice(0, terminatorIndex).replace(/\r$/, ""); + buf = buf.slice(terminatorIndex + 1); + + if (!line.trim()) { + if (dataValue != null) { + const message = await this.dispatchSseEvent(dataValue, eventType); + if (message == null) { + return; + } + yield message; + } + eventType = undefined; + dataValue = undefined; + continue; + } + + if (line.startsWith(EVENT_PREFIX)) { + eventType = line.slice(EVENT_PREFIX.length).trim(); + } else if (line.startsWith(DATA_PREFIX)) { + const val = line.slice(DATA_PREFIX.length).trim(); + dataValue = dataValue != null ? `${dataValue}\n${val}` : val; + } + } + } + + if (dataValue != null) { + const message = await this.dispatchSseEvent(dataValue, eventType); + if (message != null) { + yield message; + } + } + } + + /** + * Parses and returns a single SSE event, or returns null if the event is a stream terminator. + */ + private async dispatchSseEvent(dataValue: string, eventType: string | undefined): Promise { + if (this.streamTerminator != null && dataValue.includes(this.streamTerminator)) { + return null; + } + return this.parse(this.injectDiscriminator(fromJson(dataValue), eventType)); + } + + private injectDiscriminator(parsed: unknown, eventType: string | undefined): unknown { + if (this.eventDiscriminator == null || eventType == null) { + return parsed; + } + if (parsed == null || typeof parsed !== "object" || Array.isArray(parsed)) { + return parsed; + } + const obj = parsed as Record; + if (this.eventDiscriminator in obj) { + return parsed; + } + return { [this.eventDiscriminator]: eventType, ...obj }; + } + + async *[Symbol.asyncIterator](): AsyncIterator { + for await (const message of this.iterMessages()) { + yield message; + } + } + + private decodeChunk(chunk: any): string { + let decoded = ""; + // If TextDecoder is available, use the streaming decoder instance + if (this.decoder != null) { + decoded += this.decoder.decode(chunk, { stream: true }); + } + // Buffer is present in Node.js environment + else if (RUNTIME.type === "node" && typeof chunk !== "undefined") { + decoded += Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk); + } + return decoded; + } +} + +/** + * Browser polyfill for ReadableStream + */ +// biome-ignore lint/suspicious/noExplicitAny: allow explicit any +export function readableStreamAsyncIterable(stream: any): AsyncIterableIterator { + if (stream[Symbol.asyncIterator]) { + return stream; + } + + const reader = stream.getReader(); + return { + async next() { + try { + const result = await reader.read(); + if (result?.done) { + reader.releaseLock(); + } // release lock when stream becomes closed + return result; + } catch (e) { + reader.releaseLock(); // release lock when stream becomes errored + throw e; + } + }, + async return() { + const cancelPromise = reader.cancel(); + reader.releaseLock(); + await cancelPromise; + return { done: true, value: undefined }; + }, + [Symbol.asyncIterator]() { + return this; + }, + }; +} diff --git a/src/management/core/stream/index.ts b/src/management/core/stream/index.ts new file mode 100644 index 0000000000..4e28b34b43 --- /dev/null +++ b/src/management/core/stream/index.ts @@ -0,0 +1 @@ +export { Stream } from "./Stream.js"; diff --git a/src/management/core/url/QueryStringBuilder.ts b/src/management/core/url/QueryStringBuilder.ts new file mode 100644 index 0000000000..b045221c38 --- /dev/null +++ b/src/management/core/url/QueryStringBuilder.ts @@ -0,0 +1,87 @@ +import { toQueryString } from "./qs.js"; + +/** + * Creates a fluent builder for constructing URL query strings. + * + * Each `.add()` call serializes its value immediately (like C#'s builder), + * so no format tracking is needed — the style is applied at add-time. + * + * Usage (generated code): + * + * const qs = core.url.queryBuilder() + * .add("limit", limit) + * .add("tags", tags, { style: "comma" }) // explode: false + * .mergeAdditional(requestOptions?.queryParams) + * .build(); + */ +export function queryBuilder(): QueryStringBuilder { + return new QueryStringBuilder(); +} + +class QueryStringBuilder { + private parts: Map = new Map(); + + /** + * Adds a query parameter, serializing it immediately. + * + * By default arrays use "repeat" format (`key=a&key=b`). + * Pass `{ style: "comma" }` for OpenAPI `explode: false` parameters + * to get comma-separated values (`key=a,b,c`). + * + * Null / undefined values are silently skipped. + */ + add(key: string, value: unknown, options?: { style?: "comma" }): this { + if (value === undefined || value === null) { + return this; + } + const serialized = toQueryString( + { [key]: value }, + { arrayFormat: options?.style === "comma" ? "comma" : "repeat" }, + ); + if (serialized.length > 0) { + this.parts.set(key, serialized); + } + return this; + } + + /** + * Adds multiple query parameters at once from a record. + * All parameters use the default "repeat" array format. + * Null / undefined values are silently skipped. + */ + addMany(params: Record): this { + if (params != null) { + for (const [key, value] of Object.entries(params)) { + this.add(key, value); + } + } + return this; + } + + /** + * Merges additional query parameters supplied at call-time via + * `requestOptions.queryParams`. Overrides existing keys (last-write-wins). + */ + mergeAdditional(additionalParams?: Record): this { + if (additionalParams != null) { + for (const [key, value] of Object.entries(additionalParams)) { + if (value === undefined || value === null) { + continue; + } + const serialized = toQueryString({ [key]: value }, { arrayFormat: "repeat" }); + if (serialized.length > 0) { + this.parts.set(key, serialized); + } + } + } + return this; + } + + /** + * Returns the assembled query string (without the leading `?`). + * Returns an empty string when no parameters were added. + */ + build(): string { + return [...this.parts.values()].join("&"); + } +} diff --git a/src/management/core/url/index.ts b/src/management/core/url/index.ts index f2e0fa2d22..e47c337434 100644 --- a/src/management/core/url/index.ts +++ b/src/management/core/url/index.ts @@ -1,3 +1,4 @@ export { encodePathParam } from "./encodePathParam.js"; export { join } from "./join.js"; export { toQueryString } from "./qs.js"; +export { queryBuilder } from "./QueryStringBuilder.js"; diff --git a/src/management/core/url/qs.ts b/src/management/core/url/qs.ts index 13e89be9d9..f8b455652a 100644 --- a/src/management/core/url/qs.ts +++ b/src/management/core/url/qs.ts @@ -1,5 +1,7 @@ +type ArrayFormat = "indices" | "repeat" | "comma"; + interface QueryStringOptions { - arrayFormat?: "indices" | "repeat"; + arrayFormat?: ArrayFormat; encode?: boolean; } @@ -33,18 +35,29 @@ function stringifyObject(obj: Record, prefix = "", options: Req if (value.length === 0) { continue; } - for (let i = 0; i < value.length; i++) { - const item = value[i]; - if (item === undefined) { - continue; + const effectiveFormat = options.arrayFormat; + if (effectiveFormat === "comma") { + const encodedKey = options.encode ? encodeURIComponent(fullKey) : fullKey; + const encodedValues = value + .filter((item) => item !== undefined && item !== null) + .map((item) => encodeValue(item, options.encode)); + if (encodedValues.length > 0) { + parts.push(`${encodedKey}=${encodedValues.join(",")}`); } - if (typeof item === "object" && !Array.isArray(item) && item !== null) { - const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey; - parts.push(...stringifyObject(item as Record, arrayKey, options)); - } else { - const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey; - const encodedKey = options.encode ? encodeURIComponent(arrayKey) : arrayKey; - parts.push(`${encodedKey}=${encodeValue(item, options.encode)}`); + } else { + for (let i = 0; i < value.length; i++) { + const item = value[i]; + if (item === undefined) { + continue; + } + if (typeof item === "object" && !Array.isArray(item) && item !== null) { + const arrayKey = effectiveFormat === "indices" ? `${fullKey}[${i}]` : fullKey; + parts.push(...stringifyObject(item as Record, arrayKey, options)); + } else { + const arrayKey = effectiveFormat === "indices" ? `${fullKey}[${i}]` : fullKey; + const encodedKey = options.encode ? encodeURIComponent(arrayKey) : arrayKey; + parts.push(`${encodedKey}=${encodeValue(item, options.encode)}`); + } } } } else if (typeof value === "object" && value !== null) { diff --git a/src/management/tests/unit/fetcher/createRequestUrl.test.ts b/src/management/tests/unit/fetcher/createRequestUrl.test.ts index 799ff9d257..f6c2b25367 100644 --- a/src/management/tests/unit/fetcher/createRequestUrl.test.ts +++ b/src/management/tests/unit/fetcher/createRequestUrl.test.ts @@ -160,4 +160,8 @@ describe("Test createRequestUrl", () => { expect(createRequestUrl(baseUrl, queryParams)).toBe(expected); }); }); + + it("should default to repeat format for arrays", () => { + expect(createRequestUrl(BASE_URL, { items: ["a", "b"] })).toBe("https://api.example.com?items=a&items=b"); + }); }); diff --git a/src/management/tests/unit/fetcher/redacting.test.ts b/src/management/tests/unit/fetcher/redacting.test.ts index a235bc92c7..cf033846f1 100644 --- a/src/management/tests/unit/fetcher/redacting.test.ts +++ b/src/management/tests/unit/fetcher/redacting.test.ts @@ -703,6 +703,112 @@ describe("Redacting Logic", () => { }); }); + describe("Query String Redaction", () => { + it("should redact api_key in queryString via URL", async () => { + const mockLogger = createMockLogger(); + mockSuccessResponse(); + + await fetcherImpl({ + url: "https://example.com/api", + method: "GET", + queryString: "api_key=secret-key&page=1", + responseType: "json", + maxRetries: 0, + logging: { + level: "debug", + logger: mockLogger, + silent: false, + }, + }); + + expect(mockLogger.debug).toHaveBeenCalledWith( + "Making HTTP request", + expect.objectContaining({ + url: "https://example.com/api?api_key=[REDACTED]&page=1", + }), + ); + }); + + it("should redact multiple sensitive params in queryString", async () => { + const mockLogger = createMockLogger(); + mockSuccessResponse(); + + await fetcherImpl({ + url: "https://example.com/api", + method: "GET", + queryString: "token=t&password=p&page=1", + responseType: "json", + maxRetries: 0, + logging: { + level: "debug", + logger: mockLogger, + silent: false, + }, + }); + + expect(mockLogger.debug).toHaveBeenCalledWith( + "Making HTTP request", + expect.objectContaining({ + url: "https://example.com/api?token=[REDACTED]&password=[REDACTED]&page=1", + }), + ); + }); + + it("should not redact non-sensitive params in queryString", async () => { + const mockLogger = createMockLogger(); + mockSuccessResponse(); + + await fetcherImpl({ + url: "https://example.com/api", + method: "GET", + queryString: "page=1&limit=10&sort=name", + responseType: "json", + maxRetries: 0, + logging: { + level: "debug", + logger: mockLogger, + silent: false, + }, + }); + + expect(mockLogger.debug).toHaveBeenCalledWith( + "Making HTTP request", + expect.objectContaining({ + url: "https://example.com/api?page=1&limit=10&sort=name", + }), + ); + }); + + it("should prefer queryString over queryParameters when both provided", async () => { + const mockLogger = createMockLogger(); + mockSuccessResponse(); + + await fetcherImpl({ + url: "https://example.com/api", + method: "GET", + queryString: "page=1", + queryParameters: { api_key: "secret-key" }, + responseType: "json", + maxRetries: 0, + logging: { + level: "debug", + logger: mockLogger, + silent: false, + }, + }); + + expect(mockLogger.debug).toHaveBeenCalledWith( + "Making HTTP request", + expect.objectContaining({ + url: "https://example.com/api?page=1", + queryParameters: expect.objectContaining({ + api_key: "[REDACTED]", + }), + }), + ); + }); + }); + describe("URL Redaction", () => { it("should redact credentials in URL", async () => { const mockLogger = createMockLogger(); diff --git a/src/management/tests/unit/stream/Stream.test.ts b/src/management/tests/unit/stream/Stream.test.ts new file mode 100644 index 0000000000..9158aeeeb9 --- /dev/null +++ b/src/management/tests/unit/stream/Stream.test.ts @@ -0,0 +1,563 @@ +import { Stream } from "../../../core/stream/Stream"; + +describe("Stream", () => { + describe("JSON streaming", () => { + it("should parse single JSON message", async () => { + const mockStream = createReadableStream(['{"value": 1}\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }]); + }); + + it("should parse multiple JSON messages", async () => { + const mockStream = createReadableStream(['{"value": 1}\n{"value": 2}\n{"value": 3}\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }, { value: 2 }, { value: 3 }]); + }); + + it("should handle messages split across chunks", async () => { + const mockStream = createReadableStream(['{"val', 'ue": 1}\n{"value":', " 2}\n"]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }, { value: 2 }]); + }); + + it("should skip empty lines", async () => { + const mockStream = createReadableStream(['{"value": 1}\n\n\n{"value": 2}\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }, { value: 2 }]); + }); + + it("should handle custom message terminator", async () => { + const mockStream = createReadableStream(['{"value": 1}|||{"value": 2}|||']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "|||" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }, { value: 2 }]); + }); + }); + + describe("SSE streaming", () => { + it("should parse SSE data with prefix", async () => { + const mockStream = createReadableStream(['data: {"value": 1}\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "sse" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }]); + }); + + it("should parse multiple SSE events", async () => { + const mockStream = createReadableStream(['data: {"value": 1}\ndata: {"value": 2}\ndata: {"value": 3}\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "sse" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }, { value: 2 }, { value: 3 }]); + }); + + it("should stop at stream terminator", async () => { + const mockStream = createReadableStream(['data: {"value": 1}\ndata: [DONE]\ndata: {"value": 2}\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "sse", streamTerminator: "[DONE]" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }]); + }); + + it("should skip lines without data prefix", async () => { + const mockStream = createReadableStream([ + 'event: message\ndata: {"value": 1}\nid: 123\ndata: {"value": 2}\n', + ]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "sse" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }, { value: 2 }]); + }); + }); + + describe("SSE event-level discrimination (inject discriminator)", () => { + it("should inject event type as discriminator into JSON data", async () => { + const mockStream = createReadableStream([ + 'event: completion\ndata: {"content": "hello"}\n\nevent: completion\ndata: {"content": "world"}\n\n', + ]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([ + { type: "completion", content: "hello" }, + { type: "completion", content: "world" }, + ]); + }); + + it("should inject different event types for mixed events", async () => { + const mockStream = createReadableStream([ + 'event: completion\ndata: {"content": "hi"}\n\nevent: error\ndata: {"message": "fail"}\n\n', + ]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "event" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([ + { event: "completion", content: "hi" }, + { event: "error", message: "fail" }, + ]); + }); + + it("should not inject if data already contains discriminator key", async () => { + const mockStream = createReadableStream([ + 'event: completion\ndata: {"type": "existing", "content": "hello"}\n\n', + ]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ type: "existing", content: "hello" }]); + }); + + it("should not false-positive when discriminator key appears inside a value", async () => { + const mockStream = createReadableStream([ + 'event: completion\ndata: {"description": "type: foo", "content": "hello"}\n\n', + ]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ type: "completion", description: "type: foo", content: "hello" }]); + }); + + it("should not inject if no event field is present", async () => { + const mockStream = createReadableStream(['data: {"content": "hello"}\n\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ content: "hello" }]); + }); + + it("should handle empty JSON object", async () => { + const mockStream = createReadableStream(["event: heartbeat\ndata: {}\n\n"]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ type: "heartbeat" }]); + }); + + it("should stop at stream terminator", async () => { + const mockStream = createReadableStream([ + 'event: completion\ndata: {"content": "hi"}\n\nevent: done\ndata: [DONE]\n\nevent: completion\ndata: {"content": "bye"}\n\n', + ]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type", streamTerminator: "[DONE]" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ type: "completion", content: "hi" }]); + }); + + it("should concatenate multiline data fields", async () => { + const mockStream = createReadableStream(['event: completion\ndata: {"delta":\ndata: "hello"}\n\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ type: "completion", delta: "hello" }]); + }); + + it("should handle events split across chunks", async () => { + const mockStream = createReadableStream(["event: comple", 'tion\ndata: {"con', 'tent": "hi"}\n\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ type: "completion", content: "hi" }]); + }); + + it("should handle last event without trailing blank line", async () => { + const mockStream = createReadableStream(['event: completion\ndata: {"content": "hi"}\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ type: "completion", content: "hi" }]); + }); + + it("should handle CRLF line endings", async () => { + const mockStream = createReadableStream([ + 'event: completion\r\ndata: {"content": "hi"}\r\n\r\nevent: completion\r\ndata: {"content": "world"}\r\n\r\n', + ]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([ + { type: "completion", content: "hi" }, + { type: "completion", content: "world" }, + ]); + }); + + it("should inject empty string discriminator when event field is present but empty", async () => { + const mockStream = createReadableStream(['event: \ndata: {"content": "hello"}\n\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val, + eventShape: { type: "sse", eventDiscriminator: "type" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ type: "", content: "hello" }]); + }); + }); + + describe("encoding and decoding", () => { + it("should decode UTF-8 text using TextDecoder", async () => { + const encoder = new TextEncoder(); + const mockStream = createReadableStream([encoder.encode('{"text": "café"}\n')]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { text: string }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ text: "café" }]); + }); + + it("should decode emoji correctly", async () => { + const encoder = new TextEncoder(); + const mockStream = createReadableStream([encoder.encode('{"emoji": "🎉"}\n')]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { emoji: string }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ emoji: "🎉" }]); + }); + + it("should handle binary data chunks", async () => { + const encoder = new TextEncoder(); + const mockStream = createReadableStream([encoder.encode('{"val'), encoder.encode('ue": 1}\n')]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }]); + }); + + it("should handle multi-byte UTF-8 characters split across chunk boundaries", async () => { + // Test string with Japanese (3 bytes), Russian (2 bytes), German (2 bytes), and Chinese (3 bytes) + const testString = '{"text": "こんにちは Привет Größe 你好"}\n'; + const fullBytes = new TextEncoder().encode(testString); + + // Split the bytes in the middle of multi-byte characters + // Japanese "こ" starts at byte 11, is 3 bytes (E3 81 93) + // Split after first byte of "こ" to test mid-character splitting + const splitPoint = 12; // This splits "こ" in the middle + const chunk1 = fullBytes.slice(0, splitPoint); + const chunk2 = fullBytes.slice(splitPoint); + + const mockStream = createReadableStream([chunk1, chunk2]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { text: string }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ text: "こんにちは Привет Größe 你好" }]); + }); + }); + + describe("abort signal", () => { + it("should handle abort signal", async () => { + const controller = new AbortController(); + const mockStream = createReadableStream(['{"value": 1}\n{"value": 2}\n{"value": 3}\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + signal: controller.signal, + }); + + const messages: unknown[] = []; + let count = 0; + for await (const message of stream) { + messages.push(message); + count++; + if (count === 2) { + controller.abort(); + break; + } + } + + expect(messages.length).toBe(2); + }); + }); + + describe("async iteration", () => { + it("should support async iterator protocol", async () => { + const mockStream = createReadableStream(['{"value": 1}\n{"value": 2}\n']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const iterator = stream[Symbol.asyncIterator](); + const first = await iterator.next(); + expect(first.done).toBe(false); + expect(first.value).toEqual({ value: 1 }); + + const second = await iterator.next(); + expect(second.done).toBe(false); + expect(second.value).toEqual({ value: 2 }); + + const third = await iterator.next(); + expect(third.done).toBe(true); + }); + }); + + describe("edge cases", () => { + it("should handle empty stream", async () => { + const mockStream = createReadableStream([]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([]); + }); + + it("should handle stream with only whitespace", async () => { + const mockStream = createReadableStream([" \n\n\t\n "]); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([]); + }); + + it("should handle incomplete message at end of stream", async () => { + const mockStream = createReadableStream(['{"value": 1}\n{"incomplete']); + const stream = new Stream({ + stream: mockStream, + parse: async (val: unknown) => val as { value: number }, + eventShape: { type: "json", messageTerminator: "\n" }, + }); + + const messages: unknown[] = []; + for await (const message of stream) { + messages.push(message); + } + + expect(messages).toEqual([{ value: 1 }]); + }); + }); +}); + +// Helper function to create a ReadableStream from string chunks +function createReadableStream(chunks: (string | Uint8Array)[]): ReadableStream { + // For standard type, return ReadableStream + let index = 0; + return new ReadableStream({ + pull(controller) { + if (index < chunks.length) { + const chunk = chunks[index++]; + controller.enqueue(typeof chunk === "string" ? new TextEncoder().encode(chunk) : chunk); + } else { + controller.close(); + } + }, + }); +} diff --git a/src/management/tests/unit/url/QueryStringBuilder.test.ts b/src/management/tests/unit/url/QueryStringBuilder.test.ts new file mode 100644 index 0000000000..98ef6a0a37 --- /dev/null +++ b/src/management/tests/unit/url/QueryStringBuilder.test.ts @@ -0,0 +1,236 @@ +import { queryBuilder } from "../../../core/url/QueryStringBuilder"; + +describe("QueryStringBuilder", () => { + describe("add() — default repeat format", () => { + it("adds a scalar string value", () => { + const qs = queryBuilder().add("key", "value").build(); + expect(qs).toBe("key=value"); + }); + + it("adds a scalar number value", () => { + const qs = queryBuilder().add("limit", 10).build(); + expect(qs).toBe("limit=10"); + }); + + it("adds a boolean value", () => { + const qs = queryBuilder().add("active", true).build(); + expect(qs).toBe("active=true"); + }); + + it("skips undefined values", () => { + const qs = queryBuilder().add("key", undefined).build(); + expect(qs).toBe(""); + }); + + it("skips null values", () => { + const qs = queryBuilder().add("key", null).build(); + expect(qs).toBe(""); + }); + + it("repeats array elements as separate key=value pairs", () => { + const qs = queryBuilder().add("color", ["red", "blue", "green"]).build(); + expect(qs).toBe("color=red&color=blue&color=green"); + }); + + it("skips undefined items within arrays", () => { + const qs = queryBuilder().add("color", ["red", undefined, "blue"]).build(); + expect(qs).toBe("color=red&color=blue"); + }); + + it("returns empty string for empty array", () => { + const qs = queryBuilder().add("color", []).build(); + expect(qs).toBe(""); + }); + + it("encodes special characters in keys and values", () => { + const qs = queryBuilder().add("my key", "hello world").build(); + expect(qs).toBe("my%20key=hello%20world"); + }); + + it("handles nested objects", () => { + const qs = queryBuilder().add("filter", { status: "active" }).build(); + expect(qs).toBe("filter%5Bstatus%5D=active"); + }); + }); + + describe("add() — comma style", () => { + it("joins array values with literal commas", () => { + const qs = queryBuilder().add("tags", ["a", "b", "c"], { style: "comma" }).build(); + expect(qs).toBe("tags=a,b,c"); + }); + + it("handles single-element array", () => { + const qs = queryBuilder().add("tags", ["only"], { style: "comma" }).build(); + expect(qs).toBe("tags=only"); + }); + + it("returns empty string for empty array", () => { + const qs = queryBuilder().add("tags", [], { style: "comma" }).build(); + expect(qs).toBe(""); + }); + + it("skips undefined values", () => { + const qs = queryBuilder().add("tags", undefined, { style: "comma" }).build(); + expect(qs).toBe(""); + }); + + it("skips null values", () => { + const qs = queryBuilder().add("tags", null, { style: "comma" }).build(); + expect(qs).toBe(""); + }); + + it("treats scalar values same as default add()", () => { + const qs = queryBuilder().add("tag", "single", { style: "comma" }).build(); + expect(qs).toBe("tag=single"); + }); + + it("encodes commas within individual values as %2C", () => { + const qs = queryBuilder().add("items", ["a,b", "c"], { style: "comma" }).build(); + expect(qs).toBe("items=a%2Cb,c"); + }); + + it("encodes special characters in values", () => { + const qs = queryBuilder().add("tags", ["hello world", "foo&bar"], { style: "comma" }).build(); + expect(qs).toBe("tags=hello%20world,foo%26bar"); + }); + }); + + describe("chaining", () => { + it("chains multiple add() calls", () => { + const qs = queryBuilder().add("limit", 10).add("offset", 20).build(); + expect(qs).toBe("limit=10&offset=20"); + }); + + it("chains add() with default and comma styles", () => { + const qs = queryBuilder() + .add("limit", 10) + .add("tags", ["ACCESS_GRANTED", "COPY", "DELETE"], { style: "comma" }) + .add("active", true) + .build(); + expect(qs).toBe("limit=10&tags=ACCESS_GRANTED,COPY,DELETE&active=true"); + }); + + it("skips undefined/null params in chain without breaking", () => { + const qs = queryBuilder() + .add("a", "1") + .add("b", undefined) + .add("c", null, { style: "comma" }) + .add("d", "4") + .build(); + expect(qs).toBe("a=1&d=4"); + }); + }); + + describe("addMany()", () => { + it("adds all params from a record", () => { + const qs = queryBuilder().addMany({ limit: 10, offset: 20, name: "test" }).build(); + expect(qs).toBe("limit=10&offset=20&name=test"); + }); + + it("skips null and undefined values", () => { + const qs = queryBuilder().addMany({ a: "1", b: null, c: undefined, d: "4" }).build(); + expect(qs).toBe("a=1&d=4"); + }); + + it("handles empty record", () => { + const qs = queryBuilder().addMany({}).build(); + expect(qs).toBe(""); + }); + + it("works with comma-style override after addMany", () => { + const params = { limit: 10, tags: ["a", "b"], active: true }; + const qs = queryBuilder().addMany(params).add("tags", params.tags, { style: "comma" }).build(); + expect(qs).toBe("limit=10&tags=a,b&active=true"); + }); + + it("handles array values with default repeat format", () => { + const qs = queryBuilder() + .addMany({ ids: [1, 2, 3] }) + .build(); + expect(qs).toBe("ids=1&ids=2&ids=3"); + }); + }); + + describe("mergeAdditional()", () => { + it("appends additional params", () => { + const qs = queryBuilder().add("limit", 10).mergeAdditional({ extra: "value" }).build(); + expect(qs).toBe("limit=10&extra=value"); + }); + + it("overrides existing keys (last-write-wins)", () => { + const qs = queryBuilder().add("limit", 10).mergeAdditional({ limit: 20 }).build(); + expect(qs).toBe("limit=20"); + }); + + it("handles undefined additional params", () => { + const qs = queryBuilder().add("limit", 10).mergeAdditional(undefined).build(); + expect(qs).toBe("limit=10"); + }); + + it("skips undefined values in additional params", () => { + const qs = queryBuilder().add("limit", 10).mergeAdditional({ extra: undefined }).build(); + expect(qs).toBe("limit=10"); + }); + + it("skips null values in additional params", () => { + const qs = queryBuilder().add("limit", 10).mergeAdditional({ extra: null }).build(); + expect(qs).toBe("limit=10"); + }); + + it("handles array values in additional params using repeat format", () => { + const qs = queryBuilder() + .mergeAdditional({ ids: [1, 2, 3] }) + .build(); + expect(qs).toBe("ids=1&ids=2&ids=3"); + }); + + it("overrides a comma-style param with repeat format", () => { + const qs = queryBuilder() + .add("tags", ["a", "b"], { style: "comma" }) + .mergeAdditional({ tags: ["x", "y"] }) + .build(); + expect(qs).toBe("tags=x&tags=y"); + }); + }); + + describe("build()", () => { + it("returns empty string when no params added", () => { + const qs = queryBuilder().build(); + expect(qs).toBe(""); + }); + + it("does not include leading ?", () => { + const qs = queryBuilder().add("key", "value").build(); + expect(qs).not.toContain("?"); + }); + }); + + describe("end-to-end scenarios", () => { + it("matches expected query-parameters-openapi output pattern", () => { + const params: Record = { + limit: 1, + id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", + date: "2023-01-15", + deadline: "2024-01-15T09:30:00.000Z", + bytes: "SGVsbG8gd29ybGQh", + user: "user", + userList: ["user"], + optionalString: "optionalString", + nestedUser: "nestedUser", + excludeUser: "excludeUser", + filter: "filter", + tags: ["tags"], + optionalTags: undefined, + }; + const qs = queryBuilder() + .addMany(params) + .add("tags", params.tags, { style: "comma" }) + .add("optionalTags", params.optionalTags, { style: "comma" }) + .mergeAdditional(undefined) + .build(); + expect(qs).toContain("limit=1"); + expect(qs).toContain("tags=tags"); + expect(qs).not.toContain("optionalTags"); + }); + }); +}); diff --git a/src/management/tests/unit/url/qs.test.ts b/src/management/tests/unit/url/qs.test.ts index dde350341d..3af9e83b4c 100644 --- a/src/management/tests/unit/url/qs.test.ts +++ b/src/management/tests/unit/url/qs.test.ts @@ -34,7 +34,7 @@ describe("Test qs toQueryString", () => { interface ArrayTestCase { description: string; input: any; - options?: { arrayFormat?: "repeat" | "indices" }; + options?: { arrayFormat?: "repeat" | "indices" | "comma" }; expected: string; } @@ -150,7 +150,7 @@ describe("Test qs toQueryString", () => { interface MixedTestCase { description: string; input: any; - options?: { arrayFormat?: "repeat" | "indices" }; + options?: { arrayFormat?: "repeat" | "indices" | "comma" }; expected: string; } @@ -241,11 +241,107 @@ describe("Test qs toQueryString", () => { }); }); + describe("Comma array format", () => { + interface CommaTestCase { + description: string; + input: any; + options?: { arrayFormat?: "comma"; encode?: boolean }; + expected: string; + } + + const commaTests: CommaTestCase[] = [ + { + description: "should join array values with commas", + input: { event_type: ["ACCESS_GRANTED", "COPY", "DELETE"] }, + options: { arrayFormat: "comma" }, + expected: "event_type=ACCESS_GRANTED,COPY,DELETE", + }, + { + description: "should handle single-element array", + input: { event_type: ["ACCESS_GRANTED"] }, + options: { arrayFormat: "comma" }, + expected: "event_type=ACCESS_GRANTED", + }, + { + description: "should handle empty array", + input: { event_type: [] }, + options: { arrayFormat: "comma" }, + expected: "", + }, + { + description: "should not percent-encode commas", + input: { items: ["a", "b", "c"] }, + options: { arrayFormat: "comma" }, + expected: "items=a,b,c", + }, + { + description: "should encode values but not commas", + input: { items: ["a b", "c d"] }, + options: { arrayFormat: "comma" }, + expected: "items=a%20b,c%20d", + }, + { + description: "should not encode when encode is false", + input: { items: ["a b", "c d"] }, + options: { arrayFormat: "comma", encode: false }, + expected: "items=a b,c d", + }, + { + description: "should handle mixed parameters with comma and non-array values", + input: { event_type: ["ACCESS_GRANTED", "COPY", "DELETE"], limit: 10, offset: 0 }, + options: { arrayFormat: "comma" }, + expected: "event_type=ACCESS_GRANTED,COPY,DELETE&limit=10&offset=0", + }, + { + description: "should handle numeric array values", + input: { ids: [1, 2, 3] }, + options: { arrayFormat: "comma" }, + expected: "ids=1,2,3", + }, + { + description: "should handle boolean array values", + input: { flags: [true, false, true] }, + options: { arrayFormat: "comma" }, + expected: "flags=true,false,true", + }, + { + description: "should skip null values in comma format", + input: { items: ["a", null, "c"] }, + options: { arrayFormat: "comma" }, + expected: "items=a,c", + }, + { + description: "should skip undefined values in comma format", + input: { items: ["a", undefined, "c"] }, + options: { arrayFormat: "comma" }, + expected: "items=a,c", + }, + { + description: "should produce empty string for all-null array in comma format", + input: { items: [null, undefined] }, + options: { arrayFormat: "comma" }, + expected: "", + }, + { + description: "should encode commas within values while keeping separator commas literal", + input: { items: ["a,b", "c"] }, + options: { arrayFormat: "comma" }, + expected: "items=a%2Cb,c", + }, + ]; + + commaTests.forEach(({ description, input, options, expected }) => { + it(description, () => { + expect(toQueryString(input, options)).toBe(expected); + }); + }); + }); + describe("Options combinations", () => { interface OptionsTestCase { description: string; input: any; - options?: { arrayFormat?: "repeat" | "indices"; encode?: boolean }; + options?: { arrayFormat?: "repeat" | "indices" | "comma"; encode?: boolean }; expected: string; } diff --git a/src/management/tests/wire/branding.test.ts b/src/management/tests/wire/branding.test.ts index 057f4edc57..7d8e79edbe 100644 --- a/src/management/tests/wire/branding.test.ts +++ b/src/management/tests/wire/branding.test.ts @@ -13,6 +13,11 @@ describe("BrandingClient", () => { colors: { primary: "primary", page_background: "page_background" }, favicon_url: "favicon_url", logo_url: "logo_url", + identifiers: { + login_display: "unified", + otp_autocomplete: true, + phone_display: { masking: "show_all", formatting: "regional" }, + }, font: { url: "url" }, }; @@ -69,6 +74,11 @@ describe("BrandingClient", () => { colors: { primary: "primary", page_background: "page_background" }, favicon_url: "favicon_url", logo_url: "logo_url", + identifiers: { + login_display: "unified", + otp_autocomplete: true, + phone_display: { masking: "show_all", formatting: "regional" }, + }, font: { url: "url" }, }; diff --git a/src/management/tests/wire/clients/connections.test.ts b/src/management/tests/wire/clients/connections.test.ts index c297374bf7..53bdb06332 100644 --- a/src/management/tests/wire/clients/connections.test.ts +++ b/src/management/tests/wire/clients/connections.test.ts @@ -37,6 +37,7 @@ describe("ConnectionsClient", () => { const expected = rawResponseBody; const page = await client.clients.connections.get("id", { + strategy: ["ad"], from: "from", take: 1, fields: "fields", diff --git a/src/management/tests/wire/connections.test.ts b/src/management/tests/wire/connections.test.ts index d91cec90eb..590465433f 100644 --- a/src/management/tests/wire/connections.test.ts +++ b/src/management/tests/wire/connections.test.ts @@ -39,6 +39,7 @@ describe("ConnectionsClient", () => { const page = await client.connections.list({ from: "from", take: 1, + strategy: ["ad"], name: "name", fields: "fields", include_fields: true, diff --git a/src/management/tests/wire/customDomains.test.ts b/src/management/tests/wire/customDomains.test.ts index 9c1e5512c7..cf12eff99a 100644 --- a/src/management/tests/wire/customDomains.test.ts +++ b/src/management/tests/wire/customDomains.test.ts @@ -135,7 +135,7 @@ describe("CustomDomainsClient", () => { test("create (2)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = { domain: "domain", type: "auth0_managed_certs" }; + const rawRequestBody = { domain: "foo", type: "auth0_managed_certs" }; const rawResponseBody = { key: "value" }; server @@ -149,7 +149,7 @@ describe("CustomDomainsClient", () => { await expect(async () => { return await client.customDomains.create({ - domain: "domain", + domain: "foo", type: "auth0_managed_certs", }); }).rejects.toThrow(Management.BadRequestError); @@ -158,7 +158,7 @@ describe("CustomDomainsClient", () => { test("create (3)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = { domain: "domain", type: "auth0_managed_certs" }; + const rawRequestBody = { domain: "foo", type: "auth0_managed_certs" }; const rawResponseBody = { key: "value" }; server @@ -172,7 +172,7 @@ describe("CustomDomainsClient", () => { await expect(async () => { return await client.customDomains.create({ - domain: "domain", + domain: "foo", type: "auth0_managed_certs", }); }).rejects.toThrow(Management.UnauthorizedError); @@ -181,7 +181,7 @@ describe("CustomDomainsClient", () => { test("create (4)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = { domain: "domain", type: "auth0_managed_certs" }; + const rawRequestBody = { domain: "foo", type: "auth0_managed_certs" }; const rawResponseBody = { key: "value" }; server @@ -195,7 +195,7 @@ describe("CustomDomainsClient", () => { await expect(async () => { return await client.customDomains.create({ - domain: "domain", + domain: "foo", type: "auth0_managed_certs", }); }).rejects.toThrow(Management.ForbiddenError); @@ -204,7 +204,7 @@ describe("CustomDomainsClient", () => { test("create (5)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = { domain: "domain", type: "auth0_managed_certs" }; + const rawRequestBody = { domain: "foo", type: "auth0_managed_certs" }; const rawResponseBody = { key: "value" }; server @@ -218,7 +218,7 @@ describe("CustomDomainsClient", () => { await expect(async () => { return await client.customDomains.create({ - domain: "domain", + domain: "foo", type: "auth0_managed_certs", }); }).rejects.toThrow(Management.ConflictError); @@ -227,7 +227,7 @@ describe("CustomDomainsClient", () => { test("create (6)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = { domain: "domain", type: "auth0_managed_certs" }; + const rawRequestBody = { domain: "foo", type: "auth0_managed_certs" }; const rawResponseBody = { key: "value" }; server @@ -241,7 +241,7 @@ describe("CustomDomainsClient", () => { await expect(async () => { return await client.customDomains.create({ - domain: "domain", + domain: "foo", type: "auth0_managed_certs", }); }).rejects.toThrow(Management.TooManyRequestsError); @@ -394,7 +394,7 @@ describe("CustomDomainsClient", () => { test("setDefault (2)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = { domain: "x" }; + const rawRequestBody = { domain: "foo" }; const rawResponseBody = { key: "value" }; server @@ -408,7 +408,7 @@ describe("CustomDomainsClient", () => { await expect(async () => { return await client.customDomains.setDefault({ - domain: "x", + domain: "foo", }); }).rejects.toThrow(Management.BadRequestError); }); @@ -416,7 +416,7 @@ describe("CustomDomainsClient", () => { test("setDefault (3)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); - const rawRequestBody = { domain: "x" }; + const rawRequestBody = { domain: "foo" }; const rawResponseBody = { key: "value" }; server @@ -430,7 +430,7 @@ describe("CustomDomainsClient", () => { await expect(async () => { return await client.customDomains.setDefault({ - domain: "x", + domain: "foo", }); }).rejects.toThrow(Management.ForbiddenError); }); diff --git a/src/management/tests/wire/events.test.ts b/src/management/tests/wire/events.test.ts new file mode 100644 index 0000000000..d7f0a1112c --- /dev/null +++ b/src/management/tests/wire/events.test.ts @@ -0,0 +1,135 @@ +// This file was auto-generated by Fern from our API Definition. + +import * as Management from "../../api/index"; +import { ManagementClient } from "../../Client"; +import { mockServerPool } from "../mock-server/MockServerPool"; + +describe("EventsClient", () => { + test("subscribe (1)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = + 'event: group.created\ndata: {"offset":"offset","event":{"specversion":"specversion","type":"group.created","source":"source","id":"id","time":"2024-01-15T09:30:00Z","data":{"object":{"id":"id","name":"name","created_at":"2024-01-15T09:30:00Z","type":"connection","connection_id":"connection_id"},"context":{"tenant":{"tenant_id":"tenant_id"}}},"a0tenant":"a0tenant","a0stream":"a0stream","a0purpose":"test"}}\n\n'; + + server.mockEndpoint().get("/events").respondWith().statusCode(200).sseBody(rawResponseBody).build(); + + const response = await client.events.subscribe({ + from: "from", + from_timestamp: "from_timestamp", + event_type: ["group.created"], + }); + const events: unknown[] = []; + for await (const event of response) { + events.push(event); + } + expect(events).toEqual([ + { + type: "group.created", + offset: "offset", + event: { + specversion: "specversion", + type: "group.created", + source: "source", + id: "id", + time: "2024-01-15T09:30:00Z", + data: { + object: { + id: "id", + name: "name", + created_at: "2024-01-15T09:30:00Z", + type: "connection", + connection_id: "connection_id", + }, + context: { + tenant: { + tenant_id: "tenant_id", + }, + }, + }, + a0tenant: "a0tenant", + a0stream: "a0stream", + a0purpose: "test", + }, + }, + ]); + }); + + test("subscribe (2)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/events").respondWith().statusCode(400).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.events.subscribe(); + }).rejects.toThrow(Management.BadRequestError); + }); + + test("subscribe (3)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/events").respondWith().statusCode(401).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.events.subscribe(); + }).rejects.toThrow(Management.UnauthorizedError); + }); + + test("subscribe (4)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/events").respondWith().statusCode(403).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.events.subscribe(); + }).rejects.toThrow(Management.ForbiddenError); + }); + + test("subscribe (5)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/events").respondWith().statusCode(404).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.events.subscribe(); + }).rejects.toThrow(Management.NotFoundError); + }); + + test("subscribe (6)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/events").respondWith().statusCode(410).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.events.subscribe(); + }).rejects.toThrow(Management.GoneError); + }); + + test("subscribe (7)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/events").respondWith().statusCode(429).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.events.subscribe(); + }).rejects.toThrow(Management.TooManyRequestsError); + }); +}); diff --git a/src/management/tests/wire/flows.test.ts b/src/management/tests/wire/flows.test.ts index 3d85cc7b8c..64fc252ccd 100644 --- a/src/management/tests/wire/flows.test.ts +++ b/src/management/tests/wire/flows.test.ts @@ -37,6 +37,7 @@ describe("FlowsClient", () => { page: 1, per_page: 1, include_totals: true, + hydrate: ["form_count"], synchronous: true, }); @@ -273,7 +274,9 @@ describe("FlowsClient", () => { server.mockEndpoint().get("/flows/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - const response = await client.flows.get("id"); + const response = await client.flows.get("id", { + hydrate: ["form_count"], + }); expect(response).toEqual(rawResponseBody); }); diff --git a/src/management/tests/wire/flows/executions.test.ts b/src/management/tests/wire/flows/executions.test.ts index f2050cc603..75d5251a14 100644 --- a/src/management/tests/wire/flows/executions.test.ts +++ b/src/management/tests/wire/flows/executions.test.ts @@ -145,7 +145,9 @@ describe("ExecutionsClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.flows.executions.get("flow_id", "execution_id"); + const response = await client.flows.executions.get("flow_id", "execution_id", { + hydrate: ["debug"], + }); expect(response).toEqual(rawResponseBody); }); diff --git a/src/management/tests/wire/forms.test.ts b/src/management/tests/wire/forms.test.ts index 709875165e..0984f58c45 100644 --- a/src/management/tests/wire/forms.test.ts +++ b/src/management/tests/wire/forms.test.ts @@ -38,6 +38,7 @@ describe("FormsClient", () => { page: 1, per_page: 1, include_totals: true, + hydrate: ["flow_count"], }); expect(expected.forms).toEqual(page.data); @@ -281,7 +282,9 @@ describe("FormsClient", () => { server.mockEndpoint().get("/forms/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - const response = await client.forms.get("id"); + const response = await client.forms.get("id", { + hydrate: ["flow_count"], + }); expect(response).toEqual(rawResponseBody); }); diff --git a/src/management/tests/wire/groups.test.ts b/src/management/tests/wire/groups.test.ts index 3e735c20cb..5eaa0db02e 100644 --- a/src/management/tests/wire/groups.test.ts +++ b/src/management/tests/wire/groups.test.ts @@ -40,6 +40,7 @@ describe("GroupsClient", () => { connection_id: "connection_id", name: "name", external_id: "external_id", + search: "search", fields: "fields", include_fields: true, from: "from", diff --git a/src/management/tests/wire/organizations/clientGrants.test.ts b/src/management/tests/wire/organizations/clientGrants.test.ts index dcba904ce2..817d35d49b 100644 --- a/src/management/tests/wire/organizations/clientGrants.test.ts +++ b/src/management/tests/wire/organizations/clientGrants.test.ts @@ -37,6 +37,7 @@ describe("ClientGrantsClient", () => { const page = await client.organizations.clientGrants.list("id", { audience: "audience", client_id: "client_id", + grant_ids: ["grant_ids"], page: 1, per_page: 1, include_totals: true, diff --git a/src/management/tests/wire/refreshTokens.test.ts b/src/management/tests/wire/refreshTokens.test.ts index 5646b3008e..11c254cb37 100644 --- a/src/management/tests/wire/refreshTokens.test.ts +++ b/src/management/tests/wire/refreshTokens.test.ts @@ -127,6 +127,103 @@ describe("RefreshTokensClient", () => { }).rejects.toThrow(Management.TooManyRequestsError); }); + test("revoke (1)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = {}; + + server + .mockEndpoint() + .post("/refresh-tokens/revoke") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .build(); + + const response = await client.refreshTokens.revoke(); + expect(response).toEqual(undefined); + }); + + test("revoke (2)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = {}; + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .post("/refresh-tokens/revoke") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(400) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.refreshTokens.revoke(); + }).rejects.toThrow(Management.BadRequestError); + }); + + test("revoke (3)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = {}; + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .post("/refresh-tokens/revoke") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(401) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.refreshTokens.revoke(); + }).rejects.toThrow(Management.UnauthorizedError); + }); + + test("revoke (4)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = {}; + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .post("/refresh-tokens/revoke") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(403) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.refreshTokens.revoke(); + }).rejects.toThrow(Management.ForbiddenError); + }); + + test("revoke (5)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = {}; + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .post("/refresh-tokens/revoke") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(429) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.refreshTokens.revoke(); + }).rejects.toThrow(Management.TooManyRequestsError); + }); + test("get (1)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -165,6 +262,19 @@ describe("RefreshTokensClient", () => { const rawResponseBody = { key: "value" }; + server.mockEndpoint().get("/refresh-tokens/id").respondWith().statusCode(400).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.refreshTokens.get("id"); + }).rejects.toThrow(Management.BadRequestError); + }); + + test("get (3)", async () => { + const server = mockServerPool.createServer(); + const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + server.mockEndpoint().get("/refresh-tokens/id").respondWith().statusCode(401).jsonBody(rawResponseBody).build(); await expect(async () => { @@ -172,7 +282,7 @@ describe("RefreshTokensClient", () => { }).rejects.toThrow(Management.UnauthorizedError); }); - test("get (3)", async () => { + test("get (4)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -185,7 +295,7 @@ describe("RefreshTokensClient", () => { }).rejects.toThrow(Management.ForbiddenError); }); - test("get (4)", async () => { + test("get (5)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -198,7 +308,7 @@ describe("RefreshTokensClient", () => { }).rejects.toThrow(Management.NotFoundError); }); - test("get (5)", async () => { + test("get (6)", async () => { const server = mockServerPool.createServer(); const client = new ManagementClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); diff --git a/src/management/tests/wire/resourceServers.test.ts b/src/management/tests/wire/resourceServers.test.ts index f1195fc9f6..0f2758afcb 100644 --- a/src/management/tests/wire/resourceServers.test.ts +++ b/src/management/tests/wire/resourceServers.test.ts @@ -35,6 +35,7 @@ describe("ResourceServersClient", () => { }, consent_policy: "transactional-authorization-with-mfa", proof_of_possession: { mechanism: "mtls", required: true }, + authorization_policy: { policy_id: "policy_id" }, client_id: "client_id", }, ], @@ -50,6 +51,7 @@ describe("ResourceServersClient", () => { const expected = rawResponseBody; const page = await client.resourceServers.list({ + identifiers: ["identifiers"], page: 1, per_page: 1, include_totals: true, @@ -165,6 +167,7 @@ describe("ResourceServersClient", () => { authorization_details: [{ key: "value" }], proof_of_possession: { mechanism: "mtls", required: true, required_for: "public_clients" }, subject_type_authorization: { user: { policy: "allow_all" }, client: { policy: "deny_all" } }, + authorization_policy: { policy_id: "policy_id" }, client_id: "client_id", }; @@ -320,6 +323,7 @@ describe("ResourceServersClient", () => { authorization_details: [{ key: "value" }], proof_of_possession: { mechanism: "mtls", required: true, required_for: "public_clients" }, subject_type_authorization: { user: { policy: "allow_all" }, client: { policy: "deny_all" } }, + authorization_policy: { policy_id: "policy_id" }, client_id: "client_id", }; @@ -545,6 +549,7 @@ describe("ResourceServersClient", () => { authorization_details: [{ key: "value" }], proof_of_possession: { mechanism: "mtls", required: true, required_for: "public_clients" }, subject_type_authorization: { user: { policy: "allow_all" }, client: { policy: "deny_all" } }, + authorization_policy: { policy_id: "policy_id" }, client_id: "client_id", }; diff --git a/src/management/tests/wire/users/authenticationMethods.test.ts b/src/management/tests/wire/users/authenticationMethods.test.ts index 2ccaeb149f..f6e46d12d9 100644 --- a/src/management/tests/wire/users/authenticationMethods.test.ts +++ b/src/management/tests/wire/users/authenticationMethods.test.ts @@ -843,6 +843,7 @@ describe("AuthenticationMethodsClient", () => { public_key: "public_key", aaguid: "aaguid", relying_party_identifier: "relying_party_identifier", + confirmed: true, created_at: "2024-01-15T09:30:00Z", }; diff --git a/yarn.lock b/yarn.lock index 39afcfa7e3..e1e20167c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -694,9 +694,9 @@ strict-event-emitter "^0.5.1" "@mswjs/interceptors@^0.41.0": - version "0.41.4" - resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.41.4.tgz#a2468abcf0517041ecc4a85c51e4b0db0832c057" - integrity sha512-3B9EinUkrdOUGYzHRzRWSXunQ4YFGboJnyLNRwEJWEde+j8fNhPUHvrN1E3g1DU/iS/s8JQrMNVe+S7AHHVs0w== + version "0.41.7" + resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.41.7.tgz#403b9830e2ccfdb6557ea19450bfa9d264220c8e" + integrity sha512-D0nkS5+sx87mYpxFqASImCineYoEl9wGlUPrzkuS0ohzG8wfophLpE+I76qGJ0slLAVI19do5SI9pWJNCVf4fg== dependencies: "@open-draft/deferred-promise" "^2.2.0" "@open-draft/logger" "^0.3.0" @@ -953,99 +953,99 @@ "@types/yargs-parser" "*" "@typescript-eslint/eslint-plugin@^8.38.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.59.0.tgz#fcbe76b693ce2412410cf4d48aefd617d345f2d9" - integrity sha512-HyAZtpdkgZwpq8Sz3FSUvCR4c+ScbuWa9AksK2Jweub7w4M3yTz4O11AqVJzLYjy/B9ZWPyc81I+mOdJU/bDQw== + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.59.1.tgz#781bc6f9002982cfaf75a185240e24ad7276628a" + integrity sha512-BOziFIfE+6osHO9FoJG4zjoHUcvI7fTNBSpdAwrNH0/TLvzjsk2oo8XSSOT2HhqUyhZPfHv4UOffoJ9oEEQ7Ag== dependencies: "@eslint-community/regexpp" "^4.12.2" - "@typescript-eslint/scope-manager" "8.59.0" - "@typescript-eslint/type-utils" "8.59.0" - "@typescript-eslint/utils" "8.59.0" - "@typescript-eslint/visitor-keys" "8.59.0" + "@typescript-eslint/scope-manager" "8.59.1" + "@typescript-eslint/type-utils" "8.59.1" + "@typescript-eslint/utils" "8.59.1" + "@typescript-eslint/visitor-keys" "8.59.1" ignore "^7.0.5" natural-compare "^1.4.0" ts-api-utils "^2.5.0" "@typescript-eslint/parser@^8.38.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.59.0.tgz#57a138280b3ceaf07904fbd62c433d5cc1ee1573" - integrity sha512-TI1XGwKbDpo9tRW8UDIXCOeLk55qe9ZFGs8MTKU6/M08HWTw52DD/IYhfQtOEhEdPhLMT26Ka/x7p70nd3dzDg== - dependencies: - "@typescript-eslint/scope-manager" "8.59.0" - "@typescript-eslint/types" "8.59.0" - "@typescript-eslint/typescript-estree" "8.59.0" - "@typescript-eslint/visitor-keys" "8.59.0" + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.59.1.tgz#835d20a62350659a082a1ae2a60b822c40488905" + integrity sha512-HDQH9O/47Dxi1ceDhBXdaldtf/WV9yRYMjbjCuNk3qnaTD564qwv61Y7+gTxwxRKzSrgO5uhtw584igXVuuZkA== + dependencies: + "@typescript-eslint/scope-manager" "8.59.1" + "@typescript-eslint/types" "8.59.1" + "@typescript-eslint/typescript-estree" "8.59.1" + "@typescript-eslint/visitor-keys" "8.59.1" debug "^4.4.3" -"@typescript-eslint/project-service@8.59.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.59.0.tgz#914bf62069d870faa0389ffd725774a200f511bf" - integrity sha512-Lw5ITrR5s5TbC19YSvlr63ZfLaJoU6vtKTHyB0GQOpX0W7d5/Ir6vUahWi/8Sps/nOukZQ0IB3SmlxZnjaKVnw== +"@typescript-eslint/project-service@8.59.1": + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.59.1.tgz#49efe87c37ef84262f23df8bf62fdc56698ca6fe" + integrity sha512-+MuHQlHiEr00Of/IQbE/MmEoi44znZHbR/Pz7Opq4HryUOlRi+/44dro9Ycy8Fyo+/024IWtw8m4JUMCGTYxDg== dependencies: - "@typescript-eslint/tsconfig-utils" "^8.59.0" - "@typescript-eslint/types" "^8.59.0" + "@typescript-eslint/tsconfig-utils" "^8.59.1" + "@typescript-eslint/types" "^8.59.1" debug "^4.4.3" -"@typescript-eslint/scope-manager@8.59.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.59.0.tgz#f71be268bd31da1c160815c689e4dde7c9bc9e8e" - integrity sha512-UzR16Ut8IpA3Mc4DbgAShlPPkVm8xXMWafXxB0BocaVRHs8ZGakAxGRskF7FId3sdk9lgGD73GSFaWmWFDE4dg== +"@typescript-eslint/scope-manager@8.59.1": + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.59.1.tgz#ed90d054fc3db2d0c81464db3a953a94fb85bb58" + integrity sha512-LwuHQI4pDOYVKvmH2dkaJo6YZCSgouVgnS/z7yBPKBMvgtBvyLqiLy9Z6b7+m/TRcX1NFYUqZetI5Y+aT4GEfg== dependencies: - "@typescript-eslint/types" "8.59.0" - "@typescript-eslint/visitor-keys" "8.59.0" + "@typescript-eslint/types" "8.59.1" + "@typescript-eslint/visitor-keys" "8.59.1" -"@typescript-eslint/tsconfig-utils@8.59.0", "@typescript-eslint/tsconfig-utils@^8.59.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.0.tgz#1276077f5ad77e384446ea28a2474e8f8be1af41" - integrity sha512-91Sbl3s4Kb3SybliIY6muFBmHVv+pYXfybC4Oolp3dvk8BvIE3wOPc+403CWIT7mJNkfQRGtdqghzs2+Z91Tqg== +"@typescript-eslint/tsconfig-utils@8.59.1", "@typescript-eslint/tsconfig-utils@^8.59.1": + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.1.tgz#ba2a779a444f1d5cb92a606f9b209d239fd4cab1" + integrity sha512-/0nEyPbX7gRsk0Uwfe4ALwwgxuA66d/l2mhRDNlAvaj4U3juhUtJNq0DsY8M2AYwwb9rEq2hrC3IcIcEt++iJA== -"@typescript-eslint/type-utils@8.59.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.59.0.tgz#2834ea3b179cedfc9244dcd4f74105a27751a439" - integrity sha512-3TRiZaQSltGqGeNrJzzr1+8YcEobKH9rHnqIp/1psfKFmhRQDNMGP5hBufanYTGznwShzVLs3Mz+gDN7HkWfXg== +"@typescript-eslint/type-utils@8.59.1": + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.59.1.tgz#9c83d3f2ed9187a815e8120f72c08317e513e409" + integrity sha512-klWPBR2ciQHS3f++ug/mVnWKPjBUo7icEL3FAO1lhAR1Z1i5NQYZ1EannMSRYcq5qCv5wNALlXr6fksRHyYl7w== dependencies: - "@typescript-eslint/types" "8.59.0" - "@typescript-eslint/typescript-estree" "8.59.0" - "@typescript-eslint/utils" "8.59.0" + "@typescript-eslint/types" "8.59.1" + "@typescript-eslint/typescript-estree" "8.59.1" + "@typescript-eslint/utils" "8.59.1" debug "^4.4.3" ts-api-utils "^2.5.0" -"@typescript-eslint/types@8.59.0", "@typescript-eslint/types@^8.59.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.59.0.tgz#cfcc643c6e879016479775850d86d84c14492738" - integrity sha512-nLzdsT1gdOgFxxxwrlNVUBzSNBEEHJ86bblmk4QAS6stfig7rcJzWKqCyxFy3YRRHXDWEkb2NralA1nOYkkm/A== +"@typescript-eslint/types@8.59.1", "@typescript-eslint/types@^8.59.1": + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.59.1.tgz#c1d014d3f03a97e0113a8899fc9d4e45a7fb0ca9" + integrity sha512-ZDCjgccSdYPw5Bxh+my4Z0lJU96ZDN7jbBzvmEn0FZx3RtU1C7VWl6NbDx94bwY3V5YsgwRzJPOgeY2Q/nLG8A== -"@typescript-eslint/typescript-estree@8.59.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.0.tgz#feba58a70ab6ea7ac53a2f3ae900db28ce3454c2" - integrity sha512-O9Re9P1BmBLFJyikRbQpLku/QA3/AueZNO9WePLBwQrvkixTmDe8u76B6CYUAITRl/rHawggEqUGn5QIkVRLMw== +"@typescript-eslint/typescript-estree@8.59.1": + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.1.tgz#4391fadf98a22c869c5b6522dbf4e491e53e351a" + integrity sha512-OUd+vJS05sSkOip+BkZ/2NS8RMxrAAJemsC6vU3kmfLyeaJT0TftHkV9mcx2107MmsBVXXexhVu4F0TZXyMl4g== dependencies: - "@typescript-eslint/project-service" "8.59.0" - "@typescript-eslint/tsconfig-utils" "8.59.0" - "@typescript-eslint/types" "8.59.0" - "@typescript-eslint/visitor-keys" "8.59.0" + "@typescript-eslint/project-service" "8.59.1" + "@typescript-eslint/tsconfig-utils" "8.59.1" + "@typescript-eslint/types" "8.59.1" + "@typescript-eslint/visitor-keys" "8.59.1" debug "^4.4.3" minimatch "^10.2.2" semver "^7.7.3" tinyglobby "^0.2.15" ts-api-utils "^2.5.0" -"@typescript-eslint/utils@8.59.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.59.0.tgz#f50df9bd6967881ef64fba62230111153179ead5" - integrity sha512-I1R/K7V07XsMJ12Oaxg/O9GfrysGTmCRhvZJBv0RE0NcULMzjqVpR5kRRQjHsz3J/bElU7HwCO7zkqL+MSUz+g== +"@typescript-eslint/utils@8.59.1": + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.59.1.tgz#cf6204d69701bbbc5b150f98c18aeef0a42c10bd" + integrity sha512-3pIeoXhCeYH9FSCBI8P3iNwJlGuzPlYKkTlen2O9T1DSeeg8UG8jstq6BLk+Mda0qup7mgk4z4XL4OzRaxZ8LA== dependencies: "@eslint-community/eslint-utils" "^4.9.1" - "@typescript-eslint/scope-manager" "8.59.0" - "@typescript-eslint/types" "8.59.0" - "@typescript-eslint/typescript-estree" "8.59.0" + "@typescript-eslint/scope-manager" "8.59.1" + "@typescript-eslint/types" "8.59.1" + "@typescript-eslint/typescript-estree" "8.59.1" -"@typescript-eslint/visitor-keys@8.59.0": - version "8.59.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.0.tgz#2e80de30e7e944ed4bd47d751e37dcb04db03795" - integrity sha512-/uejZt4dSere1bx12WLlPfv8GktzcaDtuJ7s42/HEZ5zGj9oxRaD4bj7qwSunXkf+pbAhFt2zjpHYUiT5lHf0Q== +"@typescript-eslint/visitor-keys@8.59.1": + version "8.59.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.1.tgz#b5cba576287a3eeb0b400b62813189abcc3f976a" + integrity sha512-LdDNl6C5iJExcM0Yh0PwAIBb9PrSiCsWamF/JyEZawm3kFDnRoaq3LGE4bpyRao/fWeGKKyw7icx0YxrLFC5Cg== dependencies: - "@typescript-eslint/types" "8.59.0" + "@typescript-eslint/types" "8.59.1" eslint-visitor-keys "^5.0.0" "@webassemblyjs/ast@1.14.1", "@webassemblyjs/ast@^1.14.1": @@ -1236,9 +1236,9 @@ ajv-keywords@^5.1.0: fast-deep-equal "^3.1.3" ajv@^6.14.0: - version "6.14.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.14.0.tgz#fd067713e228210636ebb08c60bd3765d6dbe73a" - integrity sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw== + version "6.15.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.15.0.tgz#07e982c74626167aa7a2495c53817892d7139492" + integrity sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw== dependencies: fast-deep-equal "^3.1.1" fast-json-stable-stringify "^2.0.0" @@ -1246,9 +1246,9 @@ ajv@^6.14.0: uri-js "^4.2.2" ajv@^8.0.0, ajv@^8.9.0: - version "8.18.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.18.0.tgz#8864186b6738d003eb3a933172bb3833e10cefbc" - integrity sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A== + version "8.20.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.20.0.tgz#304b3636add88ba7d936760dd50ece006dea95f9" + integrity sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA== dependencies: fast-deep-equal "^3.1.3" fast-uri "^3.0.1" @@ -1404,9 +1404,9 @@ balanced-match@^4.0.2: integrity sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA== baseline-browser-mapping@^2.10.12: - version "2.10.20" - resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.10.20.tgz#7c99b86d43ae9be3810cac515f4675802e1f6b87" - integrity sha512-1AaXxEPfXT+GvTBJFuy4yXVHWJBXa4OdbIebGN/wX5DlsIkU0+wzGnd2lOzokSk51d5LUmqjgBLRLlypLUqInQ== + version "2.10.24" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.10.24.tgz#6dc320c7bf53859ec2bf55d54db6d2e5c078df16" + integrity sha512-I2NkZOOrj2XuguvWCK6OVh9GavsNjZjK908Rq3mIBK25+GD8vPX5w2WdxVqnQ7xx3SrZJiCiZFu+/Oz50oSYSA== brace-expansion@^1.1.7: version "1.1.14" @@ -1484,9 +1484,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001782: - version "1.0.30001788" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001788.tgz#31e97d1bfec332b3f2d7eea7781460c97629b3bf" - integrity sha512-6q8HFp+lOQtcf7wBK+uEenxymVWkGKkjFpCvw5W25cmMwEDU45p1xQFBQv8JDlMMry7eNxyBaR+qxgmTUZkIRQ== + version "1.0.30001791" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001791.tgz#dfb93d85c40ad380c57123e72e10f3c575786b51" + integrity sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1711,9 +1711,9 @@ dunder-proto@^1.0.1: gopd "^1.2.0" electron-to-chromium@^1.5.328: - version "1.5.343" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.343.tgz#8e5fb55a61fb1053d888f964f29b65814afed847" - integrity sha512-YHnQ3MXI08icvL9ZKnEBy05F2EQ8ob01UaMOuMbM8l+4UcAq6MPPbBTJBbsBUg3H8JeZNt+O4fjsoWth3p6IFg== + version "1.5.344" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.344.tgz#6437cc08a7d9b914a98120e182f37793c9eaffd4" + integrity sha512-4MxfbmNDm+KPh066EZy+eUnkcDPcZ35wNmOWzFuh/ijvHsve6kbLTLURy88uCNK5FbpN+yk2nQY6BYh1GEt+wg== emittery@^0.13.1: version "0.13.1" @@ -1731,12 +1731,12 @@ emoji-regex@^8.0.0: integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== enhanced-resolve@^5.0.0, enhanced-resolve@^5.20.0: - version "5.20.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.20.1.tgz#eeeb3966bea62c348c40a0cc9e7912e2557d0be0" - integrity sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA== + version "5.21.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.21.0.tgz#bb8e6fabaf74930de70e61397798750429e5b1ae" + integrity sha512-otxSQPw4lkOZWkHpB3zaEQs6gWYEsmX4xQF68ElXC/TWvGxGMSGOvoNbaLXm6/cS/fSfHtsEdw90y20PCd+sCA== dependencies: graceful-fs "^4.2.4" - tapable "^2.3.0" + tapable "^2.3.3" entities@^4.4.0: version "4.5.0" @@ -1771,9 +1771,9 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== es-module-lexer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-2.0.0.tgz#f657cd7a9448dcdda9c070a3cb75e5dc1e85f5b1" - integrity sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw== + version "2.1.0" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-2.1.0.tgz#1dfcbb5ea3bbfb63f28e1fc3676c3676d1c9624c" + integrity sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ== es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: version "1.1.1" @@ -2975,9 +2975,9 @@ listr2@^9.0.5: wrap-ansi "^9.0.0" loader-runner@^4.3.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.1.tgz#6c76ed29b0ccce9af379208299f07f876de737e3" - integrity sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q== + version "4.3.2" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.2.tgz#9913d3a15971f8f635915e601fb5c9d495d918e9" + integrity sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w== locate-path@^5.0.0: version "5.0.0" @@ -3677,9 +3677,9 @@ string-width@^7.0.0: strip-ansi "^7.1.0" string-width@^8.2.0: - version "8.2.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-8.2.0.tgz#bdb6a9bd6d7800db635adae96cdb0443fec56c42" - integrity sha512-6hJPQ8N0V0P3SNmP6h2J99RLuzrWz2gvT7VnK5tKvrNqJoyS9W4/Fb8mo31UiPvy00z7DQXkP2hnKBVav76thw== + version "8.2.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-8.2.1.tgz#165089cfa527cc88fbc23dd73313f5e334af1ea1" + integrity sha512-IIaP0g3iy9Cyy18w3M9YcaDudujEAVHKt3a3QJg1+sr/oX96TbaGUubG0hJyCjCBThFH+tFpcIyoUHUn1ogaLA== dependencies: get-east-asian-width "^1.5.0" strip-ansi "^7.1.2" @@ -3744,15 +3744,15 @@ synckit@^0.11.12: dependencies: "@pkgr/core" "^0.2.9" -tapable@^2.3.0: +tapable@^2.3.0, tapable@^2.3.3: version "2.3.3" resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.3.3.tgz#5da7c9992c46038221267985ab28421a8879f160" integrity sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A== terser-webpack-plugin@^5.3.17: - version "5.4.0" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.4.0.tgz#95fc4cf4437e587be11ecf37d08636089174d76b" - integrity sha512-Bn5vxm48flOIfkdl5CaD2+1CiUVbonWQ3KQPyP7/EuIl9Gbzq/gQFOzaMFUEgVjB1396tcK0SG8XcNJ/2kDH8g== + version "5.5.0" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.5.0.tgz#d92b8e2c892dd09c683c38120394267e8d8660ef" + integrity sha512-UYhptBwhWvfIjKd/UuFo6D8uq9xpGLDK+z8EDsj/zWhrTaH34cKEbrkMKfV5YWqGBvAYA3tlzZbs2R+qYrbQJA== dependencies: "@jridgewell/trace-mapping" "^0.3.25" jest-worker "^27.4.5" @@ -3760,9 +3760,9 @@ terser-webpack-plugin@^5.3.17: terser "^5.31.1" terser@^5.31.1: - version "5.46.1" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.46.1.tgz#40e4b1e35d5f13130f82793a8b3eeb7ec3a92eee" - integrity sha512-vzCjQO/rgUuK9sf8VJZvjqiqiHFaZLnOiimmUuOKODxWL8mm/xua7viT7aqX7dgPY60otQjUotzFMmCB4VdmqQ== + version "5.46.2" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.46.2.tgz#b9529672d5b0024c7959571c83b82f65077b2a4f" + integrity sha512-uxfo9fPcSgLDYob/w1FuL0c99MWiJDnv+5qXSQc5+Ki5NjVNsYi66INnMFBjf6uFz6OnX12piJQPF4IpjJTNTw== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.15.0" @@ -3779,9 +3779,9 @@ test-exclude@^6.0.0: minimatch "^3.0.4" tinyexec@^1.0.4: - version "1.1.1" - resolved "https://registry.yarnpkg.com/tinyexec/-/tinyexec-1.1.1.tgz#e1ff45dfa60d1dedb91b734956b78f6c2a3e821b" - integrity sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg== + version "1.1.2" + resolved "https://registry.yarnpkg.com/tinyexec/-/tinyexec-1.1.2.tgz#11feef204b706d4668ca4013db29f3bd64f5c4dc" + integrity sha512-dAqSqE/RabpBKI8+h26GfLq6Vb3JVXs30XYQjdMjaj/c2tS8IYYMbIzP599KtRj7c57/wYApb3QjgRgXmrCukA== tinyglobby@^0.2.15: version "0.2.16" @@ -3791,17 +3791,17 @@ tinyglobby@^0.2.15: fdir "^6.5.0" picomatch "^4.0.4" -tldts-core@^7.0.28: - version "7.0.28" - resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.28.tgz#28c256edae2ed177b2a8338a51caf81d41580ecf" - integrity sha512-7W5Efjhsc3chVdFhqtaU0KtK32J37Zcr9RKtID54nG+tIpcY79CQK/veYPODxtD/LJ4Lue66jvrQzIX2Z2/pUQ== +tldts-core@^7.0.29: + version "7.0.29" + resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.29.tgz#c3806f5af57b0351ed9415899be2a8dafa3f56dc" + integrity sha512-W99NuU7b1DcG3uJ3v9k9VztCH3WialNbBkBft5wCs8V8mexu0XQqaZEYb9l9RNNzK8+3EJ9PKWB0/RUtTQ/o+Q== tldts@^7.0.5: - version "7.0.28" - resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.28.tgz#5a5bb26ef3f70008d88c6e53ff58cd59ed8d4c68" - integrity sha512-+Zg3vWhRUv8B1maGSTFdev9mjoo8Etn2Ayfs4cnjlD3CsGkxXX4QyW3j2WJ0wdjYcYmy7Lx2RDsZMhgCWafKIw== + version "7.0.29" + resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.29.tgz#5a246d4ffcdf8b34cd9cc2dea424162a653f69d1" + integrity sha512-JIXCerhudr/N6OWLwLF1HVsTTUo7ry6qHa5eWZEkiMuxsIiAACL55tGLfqfHfoH7QaMQUW8fngD7u7TxWexYQg== dependencies: - tldts-core "^7.0.28" + tldts-core "^7.0.29" tmpl@1.0.5: version "1.0.5" @@ -3972,9 +3972,9 @@ url-parse@^1.5.3: requires-port "^1.0.0" uuid@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-11.1.0.tgz#9549028be1753bb934fc96e2bca09bb4105ae912" - integrity sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A== + version "11.1.1" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-11.1.1.tgz#f6d81d2e1c65d00762e5e29b16c5d2d995e208ad" + integrity sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ== uuid@^9.0.0: version "9.0.1" @@ -4018,9 +4018,9 @@ webidl-conversions@^7.0.0: integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g== webpack-sources@^3.3.4: - version "3.3.4" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.3.4.tgz#a338b95eb484ecc75fbb196cbe8a2890618b4891" - integrity sha512-7tP1PdV4vF+lYPnkMR0jMY5/la2ub5Fc/8VQrrU+lXkiM6C4TjVfGw7iKfyhnTQOsD+6Q/iKw0eFciziRgD58Q== + version "3.4.1" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.4.1.tgz#009d110999ebd9fb3a6fa8d32eec6f84d940e65d" + integrity sha512-eACpxRN02yaawnt+uUNIF7Qje6A9zArxBbcAJjK1PK3S9Ycg5jIuJ8pW4q8EMnwNZCEGltcjkRx1QzOxOkKD8A== webpack@^5.105.4: version "5.106.2"