Skip to content

Commit a917ec5

Browse files
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-typescript-sdk: 3.66.5
1 parent a7ff7c0 commit a917ec5

10 files changed

Lines changed: 320 additions & 128 deletions

File tree

.fern/replay.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.fernignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ eslint.config.mjs
4848

4949
.prettierignore
5050
CONTRIBUTING.md
51-
.fern/
51+
.fern/
52+
.fern/replay.lock
53+
.fern/replay.yml
54+
.gitattributes

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.fern/replay.lock linguist-generated=true

src/management/api/requests/requests.ts

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,8 @@ export interface RevokeRefreshTokensRequestContent {
13121312
user_id?: string;
13131313
/** Revoke all refresh tokens for this client. */
13141314
client_id?: string;
1315+
/** Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`. */
1316+
audience?: string;
13151317
}
13161318

13171319
/**
@@ -1366,6 +1368,8 @@ export interface CreateResourceServerRequestContent {
13661368
allow_offline_access?: boolean;
13671369
/** Whether Online Refresh Tokens can be issued for this API (true) or not (false). */
13681370
allow_online_access?: boolean;
1371+
/** Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). */
1372+
allow_online_access_with_ephemeral_sessions?: boolean;
13691373
/** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
13701374
token_lifetime?: number;
13711375
token_dialect?: Management.ResourceServerTokenDialectSchemaEnum;
@@ -1410,6 +1414,8 @@ export interface UpdateResourceServerRequestContent {
14101414
allow_offline_access?: boolean;
14111415
/** Whether Online Refresh Tokens can be issued for this API (true) or not (false). */
14121416
allow_online_access?: boolean;
1417+
/** Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). */
1418+
allow_online_access_with_ephemeral_sessions?: boolean;
14131419
/** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
14141420
token_lifetime?: number;
14151421
token_dialect?: Management.ResourceServerTokenDialectSchemaEnum;
@@ -1665,7 +1671,7 @@ export interface VerifyEmailTicketRequestContent {
16651671
* {}
16661672
*/
16671673
export interface ChangePasswordTicketRequestContent {
1668-
/** URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id. */
1674+
/** URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using organization_id. May be specified together with client_id when the tenant has a custom password reset page enabled and a password-reset-post-challenge Action bound. */
16691675
result_url?: string;
16701676
/** user_id of for whom the ticket should be created. */
16711677
user_id?: string;
@@ -3747,12 +3753,25 @@ export interface CreateUserAuthenticationMethodRequestContent {
37473753
/** Applies to email authentication methods only. The email address used to send verification messages. */
37483754
email?: string;
37493755
preferred_authentication_method?: Management.PreferredAuthenticationMethodEnum;
3750-
/** Applies to webauthn authentication methods only. The id of the credential. */
3756+
/** Applies to webauthn/passkey authentication methods only. The id of the credential. */
37513757
key_id?: string;
3752-
/** Applies to webauthn authentication methods only. The public key, which is encoded as base64. */
3758+
/** Applies to webauthn/passkey authentication methods only. The public key, which is encoded as base64. */
37533759
public_key?: string;
3760+
/** Applies to passkeys only. Authenticator Attestation Globally Unique Identifier */
3761+
aaguid?: string;
37543762
/** Applies to webauthn authentication methods only. The relying party identifier. */
37553763
relying_party_identifier?: string;
3764+
credential_device_type?: Management.CredentialDeviceTypeEnum;
3765+
/** Applies to passkeys only. Whether the credential was backed up. */
3766+
credential_backed_up?: boolean;
3767+
/** Applies to passkeys only. The ID of the user identity linked with the authentication method. */
3768+
identity_user_id?: string;
3769+
/** Applies to passkeys only. The user-agent of the browser used to create the passkey. */
3770+
user_agent?: string;
3771+
/** Applies to passkeys only. The user handle of the user identity. */
3772+
user_handle?: string;
3773+
/** Applies to passkeys only. The transports used by clients to communicate with the authenticator. */
3774+
transports?: string[];
37563775
}
37573776

37583777
/**

src/management/api/resources/users/resources/roles/client/Client.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ export class RolesClient {
3131
* @param {Management.ListUserRolesRequestParameters} request
3232
* @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
3333
*
34+
* @throws {@link Management.BadRequestError}
3435
* @throws {@link Management.UnauthorizedError}
3536
* @throws {@link Management.ForbiddenError}
37+
* @throws {@link Management.NotFoundError}
3638
* @throws {@link Management.TooManyRequestsError}
3739
*
3840
* @example
@@ -91,13 +93,20 @@ export class RolesClient {
9193
}
9294
if (_response.error.reason === "status-code") {
9395
switch (_response.error.statusCode) {
96+
case 400:
97+
throw new Management.BadRequestError(
98+
_response.error.body as unknown,
99+
_response.rawResponse,
100+
);
94101
case 401:
95102
throw new Management.UnauthorizedError(
96103
_response.error.body as unknown,
97104
_response.rawResponse,
98105
);
99106
case 403:
100107
throw new Management.ForbiddenError(_response.error.body as unknown, _response.rawResponse);
108+
case 404:
109+
throw new Management.NotFoundError(_response.error.body as unknown, _response.rawResponse);
101110
case 429:
102111
throw new Management.TooManyRequestsError(
103112
_response.error.body as unknown,

src/management/api/types/types.ts

Lines changed: 100 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,22 @@ export const AuthenticationTypeEnum = {
14251425
} as const;
14261426
export type AuthenticationTypeEnum = (typeof AuthenticationTypeEnum)[keyof typeof AuthenticationTypeEnum];
14271427

1428+
/**
1429+
* Bad Request
1430+
*/
1431+
export interface BadRequestSchema {
1432+
message: string;
1433+
statusCode: string;
1434+
error: BadRequestSchema.Error_;
1435+
}
1436+
1437+
export namespace BadRequestSchema {
1438+
export const Error_ = {
1439+
BadRequest: "Bad Request",
1440+
} as const;
1441+
export type Error_ = (typeof Error_)[keyof typeof Error_];
1442+
}
1443+
14281444
/**
14291445
* List of IP addresses or CIDR blocks to allowlist
14301446
*/
@@ -6121,7 +6137,7 @@ export type ConnectionRequireRequestUriRegistration = boolean;
61216137
export type ConnectionRequiresUsername = boolean;
61226138

61236139
export interface ConnectionResponseCommon extends Management.CreateConnectionCommon {
6124-
id?: Management.ConnectionId | undefined;
6140+
id: Management.ConnectionId;
61256141
realms?: Management.ConnectionRealms | undefined;
61266142
}
61276143

@@ -7846,7 +7862,7 @@ export interface CreateClientResponseContent {
78467862
}
78477863

78487864
export interface CreateConnectionCommon {
7849-
name?: Management.ConnectionName | undefined;
7865+
name: Management.ConnectionName;
78507866
/** Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. */
78517867
enabled_clients?: string[] | undefined;
78527868
display_name?: Management.ConnectionDisplayName | undefined;
@@ -9730,6 +9746,8 @@ export interface CreateResourceServerResponseContent {
97309746
allow_offline_access?: boolean | undefined;
97319747
/** Whether Online Refresh Tokens can be issued for this API (true) or not (false). */
97329748
allow_online_access?: boolean | undefined;
9749+
/** Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). */
9750+
allow_online_access_with_ephemeral_sessions?: boolean | undefined;
97339751
/** Whether to skip user consent for applications flagged as first party (true) or not (false). */
97349752
skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
97359753
/** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
@@ -9892,6 +9910,17 @@ export interface CreateUserAuthenticationMethodResponseContent {
98929910
aaguid?: string | undefined;
98939911
/** Applies to webauthn authenticators only. The relying party identifier. */
98949912
relying_party_identifier?: string | undefined;
9913+
credential_device_type?: Management.CredentialDeviceTypeEnum | undefined;
9914+
/** Applies to passkeys only. Whether the credential was backed up. */
9915+
credential_backed_up?: boolean | undefined;
9916+
/** Applies to passkeys only. The ID of the user identity linked with the authentication method. */
9917+
identity_user_id?: string | undefined;
9918+
/** Applies to passkeys only. The user-agent of the browser used to create the passkey. */
9919+
user_agent?: string | undefined;
9920+
/** Applies to passkeys only. The user handle of the user identity. */
9921+
user_handle?: string | undefined;
9922+
/** Applies to passkeys only. The transports used by clients to communicate with the authenticator. */
9923+
transports?: string[] | undefined;
98959924
/** Authentication method creation date */
98969925
created_at?: string | undefined;
98979926
}
@@ -9992,6 +10021,13 @@ export const CreatedUserAuthenticationMethodTypeEnum = {
999210021
export type CreatedUserAuthenticationMethodTypeEnum =
999310022
(typeof CreatedUserAuthenticationMethodTypeEnum)[keyof typeof CreatedUserAuthenticationMethodTypeEnum];
999410023

10024+
/** Applies to passkeys only. The kind of device the credential is stored on as defined by backup eligibility. "single_device" credentials cannot be backed up and synced to another device, "multi_device" credentials can be backed up if enabled by the end-user. */
10025+
export const CredentialDeviceTypeEnum = {
10026+
SingleDevice: "single_device",
10027+
MultiDevice: "multi_device",
10028+
} as const;
10029+
export type CredentialDeviceTypeEnum = (typeof CredentialDeviceTypeEnum)[keyof typeof CredentialDeviceTypeEnum];
10030+
999510031
export interface CredentialId {
999610032
/** Credential ID */
999710033
id: string;
@@ -17201,6 +17237,22 @@ export interface FlowsVaultConnectionSummary {
1720117237
fingerprint: string;
1720217238
}
1720317239

17240+
/**
17241+
* Forbidden
17242+
*/
17243+
export interface ForbiddenSchema {
17244+
message: string;
17245+
statusCode: string;
17246+
error: ForbiddenSchema.Error_;
17247+
}
17248+
17249+
export namespace ForbiddenSchema {
17250+
export const Error_ = {
17251+
Forbidden: "Forbidden",
17252+
} as const;
17253+
export type Error_ = (typeof Error_)[keyof typeof Error_];
17254+
}
17255+
1720417256
export type FormBlock =
1720517257
| Management.FormBlockDivider
1720617258
| Management.FormBlockHtml
@@ -19344,6 +19396,8 @@ export interface GetResourceServerResponseContent {
1934419396
allow_offline_access?: boolean | undefined;
1934519397
/** Whether Online Refresh Tokens can be issued for this API (true) or not (false). */
1934619398
allow_online_access?: boolean | undefined;
19399+
/** Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). */
19400+
allow_online_access_with_ephemeral_sessions?: boolean | undefined;
1934719401
/** Whether to skip user consent for applications flagged as first party (true) or not (false). */
1934819402
skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
1934919403
/** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
@@ -19669,6 +19723,10 @@ export interface GetUserAuthenticationMethodResponseContent {
1966919723
identity_user_id?: string | undefined;
1967019724
/** Applies to passkeys only. The user-agent of the browser used to create the passkey. */
1967119725
user_agent?: string | undefined;
19726+
/** Applies to passkeys only. The user handle of the user identity. */
19727+
user_handle?: string | undefined;
19728+
/** Applies to passkeys only. The transports used by clients to communicate with the authenticator. */
19729+
transports?: string[] | undefined;
1967219730
/** Applies to passkey authentication methods only. Authenticator Attestation Globally Unique Identifier. */
1967319731
aaguid?: string | undefined;
1967419732
/** Applies to webauthn/passkey authentication methods only. The credential's relying party identifier. */
@@ -22100,6 +22158,8 @@ export interface ResourceServer {
2210022158
allow_offline_access?: boolean | undefined;
2210122159
/** Whether Online Refresh Tokens can be issued for this API (true) or not (false). */
2210222160
allow_online_access?: boolean | undefined;
22161+
/** Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). */
22162+
allow_online_access_with_ephemeral_sessions?: boolean | undefined;
2210322163
/** Whether to skip user consent for applications flagged as first party (true) or not (false). */
2210422164
skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
2210522165
/** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
@@ -23679,6 +23739,22 @@ export interface TokenQuotaConfiguration {
2367923739
[key: string]: any;
2368023740
}
2368123741

23742+
/**
23743+
* Too Many Requests
23744+
*/
23745+
export interface TooManyRequestsSchema {
23746+
message: string;
23747+
statusCode: string;
23748+
error: TooManyRequestsSchema.Error_;
23749+
}
23750+
23751+
export namespace TooManyRequestsSchema {
23752+
export const Error_ = {
23753+
TooManyRequests: "Too Many Requests",
23754+
} as const;
23755+
export type Error_ = (typeof Error_)[keyof typeof Error_];
23756+
}
23757+
2368223758
export interface TwilioProviderConfiguration {
2368323759
default_from?: string | undefined;
2368423760
mssid?: string | undefined;
@@ -23697,6 +23773,22 @@ export const TwilioProviderDeliveryMethodEnum = {
2369723773
export type TwilioProviderDeliveryMethodEnum =
2369823774
(typeof TwilioProviderDeliveryMethodEnum)[keyof typeof TwilioProviderDeliveryMethodEnum];
2369923775

23776+
/**
23777+
* Unauthorized
23778+
*/
23779+
export interface UnauthorizedSchema {
23780+
message: string;
23781+
statusCode: string;
23782+
error: UnauthorizedSchema.Error_;
23783+
}
23784+
23785+
export namespace UnauthorizedSchema {
23786+
export const Error_ = {
23787+
Unauthorized: "Unauthorized",
23788+
} as const;
23789+
export type Error_ = (typeof Error_)[keyof typeof Error_];
23790+
}
23791+
2370023792
/** Which login experience to use. Can be `new` or `classic`. */
2370123793
export const UniversalLoginExperienceEnum = {
2370223794
New: "new",
@@ -24940,6 +25032,8 @@ export interface UpdateResourceServerResponseContent {
2494025032
allow_offline_access?: boolean | undefined;
2494125033
/** Whether Online Refresh Tokens can be issued for this API (true) or not (false). */
2494225034
allow_online_access?: boolean | undefined;
25035+
/** Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false). */
25036+
allow_online_access_with_ephemeral_sessions?: boolean | undefined;
2494325037
/** Whether to skip user consent for applications flagged as first party (true) or not (false). */
2494425038
skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
2494525039
/** Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */
@@ -25448,6 +25542,10 @@ export interface UserAuthenticationMethod {
2544825542
identity_user_id?: string | undefined;
2544925543
/** Applies to passkeys only. The user-agent of the browser used to create the passkey. */
2545025544
user_agent?: string | undefined;
25545+
/** Applies to passkeys only. The user handle of the user identity. */
25546+
user_handle?: string | undefined;
25547+
/** Applies to passkeys only. The transports used by clients to communicate with the authenticator. */
25548+
transports?: string[] | undefined;
2545125549
/** Applies to passkey authentication methods only. Authenticator Attestation Globally Unique Identifier. */
2545225550
aaguid?: string | undefined;
2545325551
/** Applies to webauthn/passkey authentication methods only. The credential's relying party identifier. */

src/management/tests/wire/resourceServers.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe("ResourceServersClient", () => {
2424
signing_secret: "signing_secret",
2525
allow_offline_access: true,
2626
allow_online_access: true,
27+
allow_online_access_with_ephemeral_sessions: true,
2728
skip_consent_for_verifiable_first_party_clients: true,
2829
token_lifetime: 1,
2930
token_lifetime_for_web: 1,
@@ -154,6 +155,7 @@ describe("ResourceServersClient", () => {
154155
signing_secret: "signing_secret",
155156
allow_offline_access: true,
156157
allow_online_access: true,
158+
allow_online_access_with_ephemeral_sessions: true,
157159
skip_consent_for_verifiable_first_party_clients: true,
158160
token_lifetime: 1,
159161
token_lifetime_for_web: 1,
@@ -310,6 +312,7 @@ describe("ResourceServersClient", () => {
310312
signing_secret: "signing_secret",
311313
allow_offline_access: true,
312314
allow_online_access: true,
315+
allow_online_access_with_ephemeral_sessions: true,
313316
skip_consent_for_verifiable_first_party_clients: true,
314317
token_lifetime: 1,
315318
token_lifetime_for_web: 1,
@@ -536,6 +539,7 @@ describe("ResourceServersClient", () => {
536539
signing_secret: "signing_secret",
537540
allow_offline_access: true,
538541
allow_online_access: true,
542+
allow_online_access_with_ephemeral_sessions: true,
539543
skip_consent_for_verifiable_first_party_clients: true,
540544
token_lifetime: 1,
541545
token_lifetime_for_web: 1,

src/management/tests/wire/users/authenticationMethods.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ describe("AuthenticationMethodsClient", () => {
3333
credential_backed_up: true,
3434
identity_user_id: "identity_user_id",
3535
user_agent: "user_agent",
36+
user_handle: "user_handle",
37+
transports: ["transports"],
3638
aaguid: "aaguid",
3739
relying_party_identifier: "relying_party_identifier",
3840
},
@@ -172,6 +174,12 @@ describe("AuthenticationMethodsClient", () => {
172174
public_key: "public_key",
173175
aaguid: "aaguid",
174176
relying_party_identifier: "relying_party_identifier",
177+
credential_device_type: "single_device",
178+
credential_backed_up: true,
179+
identity_user_id: "identity_user_id",
180+
user_agent: "user_agent",
181+
user_handle: "user_handle",
182+
transports: ["transports"],
175183
created_at: "2024-01-15T09:30:00Z",
176184
};
177185

@@ -605,6 +613,8 @@ describe("AuthenticationMethodsClient", () => {
605613
credential_backed_up: true,
606614
identity_user_id: "identity_user_id",
607615
user_agent: "user_agent",
616+
user_handle: "user_handle",
617+
transports: ["transports"],
608618
aaguid: "aaguid",
609619
relying_party_identifier: "relying_party_identifier",
610620
};

0 commit comments

Comments
 (0)