@canopy-io/node 0.18.0 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +93 -12
- package/dist/index.d.ts +93 -12
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -504,7 +504,7 @@ interface paths {
|
|
|
504
504
|
};
|
|
505
505
|
/**
|
|
506
506
|
* Get an identity
|
|
507
|
-
* @description Returns a single identity by id, scoped to the current Environment. The response carries profile metadata
|
|
507
|
+
* @description Returns a single identity by id, scoped to the current Environment. The response carries profile metadata (id, email, name, `external_id`, `is_active`, `created_at`) and `social_links`, the social provider accounts the identity signs in with (read-only; the identity links and unlinks them on its security page); use the detail endpoint for role assignments. Returns `404` when the id does not resolve to an identity with membership in this Environment.
|
|
508
508
|
*/
|
|
509
509
|
get: operations["ApiIdentitiesController_getIdentity"];
|
|
510
510
|
put?: never;
|
|
@@ -532,7 +532,7 @@ interface paths {
|
|
|
532
532
|
};
|
|
533
533
|
/**
|
|
534
534
|
* Get identity detail with role assignments
|
|
535
|
-
* @description Returns an enriched view of a single identity in the current Environment: profile fields plus `email_verified`, `metadata`,
|
|
535
|
+
* @description Returns an enriched view of a single identity in the current Environment: profile fields plus `email_verified`, `metadata`, the identity's role assignments resolved to role and node names, and `social_links`, the social provider accounts it signs in with. Also returns `can_manage`, reflecting whether the calling principal holds `identity.manage` in this Application. Returns `404` when the identity has no membership in this Environment.
|
|
536
536
|
*/
|
|
537
537
|
get: operations["ApiIdentitiesController_getIdentityDetail"];
|
|
538
538
|
put?: never;
|
|
@@ -3547,6 +3547,40 @@ interface components {
|
|
|
3547
3547
|
ApiBulkCreateIdentitiesDto: {
|
|
3548
3548
|
identities: components["schemas"]["ApiCreateIdentityDto"][];
|
|
3549
3549
|
};
|
|
3550
|
+
IdentitySocialLinkResponseDto: {
|
|
3551
|
+
id: string;
|
|
3552
|
+
/** @description The provider's name as the sign-in page shows it, or, when the provider has been removed, the host the account signed in at. */
|
|
3553
|
+
label: string;
|
|
3554
|
+
/** @description The slug of the provider it signs in through, or null when the provider has been removed. */
|
|
3555
|
+
slug?: string | null;
|
|
3556
|
+
/**
|
|
3557
|
+
* @description The provider's kind, `oidc` for a custom OpenID Connect provider, or null when the provider has been removed.
|
|
3558
|
+
* @enum {string|null}
|
|
3559
|
+
*/
|
|
3560
|
+
kind?: "google" | "github" | "microsoft" | "apple" | "oidc" | null;
|
|
3561
|
+
/** @description The email the provider reported when the account was linked. It need not match the identity's. */
|
|
3562
|
+
email?: string | null;
|
|
3563
|
+
/** Format: date-time */
|
|
3564
|
+
linked_at: string;
|
|
3565
|
+
/**
|
|
3566
|
+
* Format: date-time
|
|
3567
|
+
* @description The last time the identity signed in with this account.
|
|
3568
|
+
*/
|
|
3569
|
+
last_used_at?: string | null;
|
|
3570
|
+
};
|
|
3571
|
+
IdentityWithSocialLinksResponseDto: {
|
|
3572
|
+
id: string;
|
|
3573
|
+
email: string;
|
|
3574
|
+
first_name: string;
|
|
3575
|
+
last_name: string;
|
|
3576
|
+
avatar_url?: string | null;
|
|
3577
|
+
external_id?: string | null;
|
|
3578
|
+
is_active: boolean;
|
|
3579
|
+
/** Format: date-time */
|
|
3580
|
+
created_at: string;
|
|
3581
|
+
/** @description The social provider accounts the identity signs in with, oldest first. Linked and unlinked by the identity on its security page. */
|
|
3582
|
+
social_links: components["schemas"]["IdentitySocialLinkResponseDto"][];
|
|
3583
|
+
};
|
|
3550
3584
|
IdentityDetailResponseDto: {
|
|
3551
3585
|
id: string;
|
|
3552
3586
|
email: string;
|
|
@@ -3559,6 +3593,7 @@ interface components {
|
|
|
3559
3593
|
is_active: boolean;
|
|
3560
3594
|
email_verified: boolean;
|
|
3561
3595
|
roles: components["schemas"]["IdentityRoleDto"][];
|
|
3596
|
+
social_links: components["schemas"]["IdentitySocialLinkResponseDto"][];
|
|
3562
3597
|
can_manage: boolean;
|
|
3563
3598
|
/** Format: date-time */
|
|
3564
3599
|
created_at: string;
|
|
@@ -3608,6 +3643,14 @@ interface components {
|
|
|
3608
3643
|
*/
|
|
3609
3644
|
webauthn_rp_id: string | null;
|
|
3610
3645
|
};
|
|
3646
|
+
MfaRequiredEnvironmentResponseDto: {
|
|
3647
|
+
/** Format: uuid */
|
|
3648
|
+
environment_id: string;
|
|
3649
|
+
/** @example production */
|
|
3650
|
+
environment_slug: string;
|
|
3651
|
+
/** @example ledger */
|
|
3652
|
+
application_slug: string;
|
|
3653
|
+
};
|
|
3611
3654
|
AccountIdentityMfaResponseDto: {
|
|
3612
3655
|
factors: components["schemas"]["MfaFactorResponseDto"][];
|
|
3613
3656
|
/** @description Generation number of the active recovery-code batch. 0 means no batch has ever been issued; 1+ tracks regenerations. */
|
|
@@ -3619,6 +3662,8 @@ interface components {
|
|
|
3619
3662
|
* @description Timestamp of the most recent admin force-reset. `null` if MFA has never been reset for this identity.
|
|
3620
3663
|
*/
|
|
3621
3664
|
mfa_admin_reset_at?: string | null;
|
|
3665
|
+
/** @description The Environments where the identity's next sign-in asks for a second factor: the Environment requires MFA, or an organization the identity belongs to there does. Empty when MFA is required nowhere they sign in, so after a reset they sign in without one. On the public API it lists the key's own Environment at most. */
|
|
3666
|
+
mfa_required_in: components["schemas"]["MfaRequiredEnvironmentResponseDto"][];
|
|
3622
3667
|
};
|
|
3623
3668
|
IdentityAuthStateResponseDto: {
|
|
3624
3669
|
/** @description Master kill-switch — false means the identity cannot sign in. */
|
|
@@ -4310,10 +4355,18 @@ interface components {
|
|
|
4310
4355
|
mfa_factor_allowlist: ("totp" | "webauthn" | "email_otp")[];
|
|
4311
4356
|
/** @enum {string} */
|
|
4312
4357
|
mfa_after_sso: "exempt" | "require";
|
|
4313
|
-
/** @description The sign-in methods on offer: on the Environment, the ones it has turned on; on the effective policy, those narrowed by the organization, and `["sso"]` alone while it requires SSO. */
|
|
4314
|
-
allowed_sign_in_methods:
|
|
4358
|
+
/** @description The sign-in methods on offer: on the Environment, the ones it has turned on; on the effective policy, those narrowed by the organization, and `["sso"]` alone while it requires SSO. Each is `password`, `email_otp`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
|
|
4359
|
+
allowed_sign_in_methods: string[];
|
|
4315
4360
|
require_sso: boolean;
|
|
4316
4361
|
};
|
|
4362
|
+
PolicySocialProviderDto: {
|
|
4363
|
+
/** @description The sign-in method the provider adds: its kind, or `oidc:<slug>` for a custom provider. */
|
|
4364
|
+
method: string;
|
|
4365
|
+
/** @enum {string} */
|
|
4366
|
+
kind: "google" | "github" | "microsoft" | "apple" | "oidc";
|
|
4367
|
+
/** @description The provider's name as the sign-in page shows it. */
|
|
4368
|
+
label: string;
|
|
4369
|
+
};
|
|
4317
4370
|
OrganizationPolicyResponseDto: {
|
|
4318
4371
|
/** @description The organization this policy belongs to. */
|
|
4319
4372
|
organization_id: string;
|
|
@@ -4321,8 +4374,8 @@ interface components {
|
|
|
4321
4374
|
mfa_factor_allowlist?: ("totp" | "webauthn" | "email_otp")[] | null;
|
|
4322
4375
|
/** @enum {string|null} */
|
|
4323
4376
|
mfa_after_sso?: "exempt" | "require" | null;
|
|
4324
|
-
/** @description The methods the organization keeps of the Environment's, or null to inherit them all. */
|
|
4325
|
-
allowed_sign_in_methods?:
|
|
4377
|
+
/** @description The methods the organization keeps of the Environment's, or null to inherit them all. Each is `password`, `email_otp`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
|
|
4378
|
+
allowed_sign_in_methods?: string[] | null;
|
|
4326
4379
|
require_sso: boolean;
|
|
4327
4380
|
/**
|
|
4328
4381
|
* @description Whether the Environment's staff (identities holding a role at the Environment root) may enter this organization. `allowed` until the organization refuses them.
|
|
@@ -4331,6 +4384,8 @@ interface components {
|
|
|
4331
4384
|
staff_entry: "allowed" | "refused";
|
|
4332
4385
|
/** @description The Environment's own settings, the floor this organization's policy tightens from. */
|
|
4333
4386
|
environment: components["schemas"]["EffectiveOrganizationPolicyDto"];
|
|
4387
|
+
/** @description The Environment's enabled social providers, in the order they are offered, naming the methods they add to `allowed_sign_in_methods`. */
|
|
4388
|
+
social_providers: components["schemas"]["PolicySocialProviderDto"][];
|
|
4334
4389
|
/** @description The policy the organization's members sign in under. */
|
|
4335
4390
|
effective: components["schemas"]["EffectiveOrganizationPolicyDto"];
|
|
4336
4391
|
/** @description Optimistic-concurrency version. 0 until the organization sets a policy of its own. */
|
|
@@ -4352,8 +4407,8 @@ interface components {
|
|
|
4352
4407
|
* @enum {string|null}
|
|
4353
4408
|
*/
|
|
4354
4409
|
mfa_after_sso?: "exempt" | "require" | null;
|
|
4355
|
-
/** @description The sign-in methods this organization's members may use. A non-empty subset of the methods the Environment offers (`password` unless the Environment turned it off, `email_otp` where the Environment turned it on, and `sso`); a method the Environment does not offer is refused with `organization.policy_loosens`. `null` inherits the Environment's. While `require_sso` is on, SSO is the only method whatever this says. */
|
|
4356
|
-
allowed_sign_in_methods?:
|
|
4410
|
+
/** @description The sign-in methods this organization's members may use. A non-empty subset of the methods the Environment offers (`password` unless the Environment turned it off, `email_otp` where the Environment turned it on, each social provider it enabled, and `sso`); a method the Environment does not offer is refused with `organization.policy_loosens`. `null` inherits the Environment's. While `require_sso` is on, SSO is the only method whatever this says. Each is `password`, `email_otp`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
|
|
4411
|
+
allowed_sign_in_methods?: string[] | null;
|
|
4357
4412
|
/** @description Members must sign in through SSO. Password and email-code logins are refused for the organization's members and for any email whose domain routes to a connection bound to this organization. */
|
|
4358
4413
|
require_sso?: boolean;
|
|
4359
4414
|
/**
|
|
@@ -6036,6 +6091,32 @@ interface components {
|
|
|
6036
6091
|
};
|
|
6037
6092
|
};
|
|
6038
6093
|
};
|
|
6094
|
+
/** @description A delivery of the `identity.social_link.added` webhook event. */
|
|
6095
|
+
WebhookIdentitySocialLinkAddedEvent: {
|
|
6096
|
+
/** @enum {string} */
|
|
6097
|
+
event: "identity.social_link.added";
|
|
6098
|
+
data: components["schemas"]["ChangeEventDataDto"] & {
|
|
6099
|
+
/** @enum {string} */
|
|
6100
|
+
resource_type: "identity";
|
|
6101
|
+
metadata: {
|
|
6102
|
+
/** @description The sign-in method the link adds: google, github, microsoft, apple, or oidc:<name> for a custom provider. */
|
|
6103
|
+
method: string;
|
|
6104
|
+
};
|
|
6105
|
+
};
|
|
6106
|
+
};
|
|
6107
|
+
/** @description A delivery of the `identity.social_link.removed` webhook event. */
|
|
6108
|
+
WebhookIdentitySocialLinkRemovedEvent: {
|
|
6109
|
+
/** @enum {string} */
|
|
6110
|
+
event: "identity.social_link.removed";
|
|
6111
|
+
data: components["schemas"]["ChangeEventDataDto"] & {
|
|
6112
|
+
/** @enum {string} */
|
|
6113
|
+
resource_type: "identity";
|
|
6114
|
+
metadata: {
|
|
6115
|
+
/** @description The sign-in method the identity no longer has: google, github, microsoft, apple, or oidc:<name> for a custom provider. */
|
|
6116
|
+
method: string;
|
|
6117
|
+
};
|
|
6118
|
+
};
|
|
6119
|
+
};
|
|
6039
6120
|
/** @description A delivery of the `identity.env_membership.added` webhook event. */
|
|
6040
6121
|
WebhookIdentityEnvMembershipAddedEvent: {
|
|
6041
6122
|
/** @enum {string} */
|
|
@@ -7203,8 +7284,8 @@ interface components {
|
|
|
7203
7284
|
* @enum {string|null}
|
|
7204
7285
|
*/
|
|
7205
7286
|
mfa_after_sso: "exempt" | "require" | null;
|
|
7206
|
-
/** @description The sign-in methods members may use, or null to inherit the Environment's. */
|
|
7207
|
-
allowed_sign_in_methods:
|
|
7287
|
+
/** @description The sign-in methods members may use, or null to inherit the Environment's. Each is `password`, `email_otp`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
|
|
7288
|
+
allowed_sign_in_methods: string[] | null;
|
|
7208
7289
|
/** @description Whether members must sign in with SSO. */
|
|
7209
7290
|
require_sso: boolean;
|
|
7210
7291
|
/**
|
|
@@ -8943,7 +9024,7 @@ interface operations {
|
|
|
8943
9024
|
};
|
|
8944
9025
|
content: {
|
|
8945
9026
|
"application/json": {
|
|
8946
|
-
data: components["schemas"]["
|
|
9027
|
+
data: components["schemas"]["IdentityWithSocialLinksResponseDto"];
|
|
8947
9028
|
};
|
|
8948
9029
|
};
|
|
8949
9030
|
};
|
|
@@ -9903,7 +9984,7 @@ interface operations {
|
|
|
9903
9984
|
};
|
|
9904
9985
|
requestBody?: never;
|
|
9905
9986
|
responses: {
|
|
9906
|
-
/** @description Returns the identity's enrolled factors (TOTP and WebAuthn rows with redacted secrets), the current recovery-code generation count + remaining count,
|
|
9987
|
+
/** @description Returns the identity's enrolled factors (TOTP and WebAuthn rows with redacted secrets), the current recovery-code generation count + remaining count, the most-recent admin-reset timestamp, and the Environments where their next sign-in asks for a second factor. */
|
|
9907
9988
|
200: {
|
|
9908
9989
|
headers: {
|
|
9909
9990
|
[name: string]: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -504,7 +504,7 @@ interface paths {
|
|
|
504
504
|
};
|
|
505
505
|
/**
|
|
506
506
|
* Get an identity
|
|
507
|
-
* @description Returns a single identity by id, scoped to the current Environment. The response carries profile metadata
|
|
507
|
+
* @description Returns a single identity by id, scoped to the current Environment. The response carries profile metadata (id, email, name, `external_id`, `is_active`, `created_at`) and `social_links`, the social provider accounts the identity signs in with (read-only; the identity links and unlinks them on its security page); use the detail endpoint for role assignments. Returns `404` when the id does not resolve to an identity with membership in this Environment.
|
|
508
508
|
*/
|
|
509
509
|
get: operations["ApiIdentitiesController_getIdentity"];
|
|
510
510
|
put?: never;
|
|
@@ -532,7 +532,7 @@ interface paths {
|
|
|
532
532
|
};
|
|
533
533
|
/**
|
|
534
534
|
* Get identity detail with role assignments
|
|
535
|
-
* @description Returns an enriched view of a single identity in the current Environment: profile fields plus `email_verified`, `metadata`,
|
|
535
|
+
* @description Returns an enriched view of a single identity in the current Environment: profile fields plus `email_verified`, `metadata`, the identity's role assignments resolved to role and node names, and `social_links`, the social provider accounts it signs in with. Also returns `can_manage`, reflecting whether the calling principal holds `identity.manage` in this Application. Returns `404` when the identity has no membership in this Environment.
|
|
536
536
|
*/
|
|
537
537
|
get: operations["ApiIdentitiesController_getIdentityDetail"];
|
|
538
538
|
put?: never;
|
|
@@ -3547,6 +3547,40 @@ interface components {
|
|
|
3547
3547
|
ApiBulkCreateIdentitiesDto: {
|
|
3548
3548
|
identities: components["schemas"]["ApiCreateIdentityDto"][];
|
|
3549
3549
|
};
|
|
3550
|
+
IdentitySocialLinkResponseDto: {
|
|
3551
|
+
id: string;
|
|
3552
|
+
/** @description The provider's name as the sign-in page shows it, or, when the provider has been removed, the host the account signed in at. */
|
|
3553
|
+
label: string;
|
|
3554
|
+
/** @description The slug of the provider it signs in through, or null when the provider has been removed. */
|
|
3555
|
+
slug?: string | null;
|
|
3556
|
+
/**
|
|
3557
|
+
* @description The provider's kind, `oidc` for a custom OpenID Connect provider, or null when the provider has been removed.
|
|
3558
|
+
* @enum {string|null}
|
|
3559
|
+
*/
|
|
3560
|
+
kind?: "google" | "github" | "microsoft" | "apple" | "oidc" | null;
|
|
3561
|
+
/** @description The email the provider reported when the account was linked. It need not match the identity's. */
|
|
3562
|
+
email?: string | null;
|
|
3563
|
+
/** Format: date-time */
|
|
3564
|
+
linked_at: string;
|
|
3565
|
+
/**
|
|
3566
|
+
* Format: date-time
|
|
3567
|
+
* @description The last time the identity signed in with this account.
|
|
3568
|
+
*/
|
|
3569
|
+
last_used_at?: string | null;
|
|
3570
|
+
};
|
|
3571
|
+
IdentityWithSocialLinksResponseDto: {
|
|
3572
|
+
id: string;
|
|
3573
|
+
email: string;
|
|
3574
|
+
first_name: string;
|
|
3575
|
+
last_name: string;
|
|
3576
|
+
avatar_url?: string | null;
|
|
3577
|
+
external_id?: string | null;
|
|
3578
|
+
is_active: boolean;
|
|
3579
|
+
/** Format: date-time */
|
|
3580
|
+
created_at: string;
|
|
3581
|
+
/** @description The social provider accounts the identity signs in with, oldest first. Linked and unlinked by the identity on its security page. */
|
|
3582
|
+
social_links: components["schemas"]["IdentitySocialLinkResponseDto"][];
|
|
3583
|
+
};
|
|
3550
3584
|
IdentityDetailResponseDto: {
|
|
3551
3585
|
id: string;
|
|
3552
3586
|
email: string;
|
|
@@ -3559,6 +3593,7 @@ interface components {
|
|
|
3559
3593
|
is_active: boolean;
|
|
3560
3594
|
email_verified: boolean;
|
|
3561
3595
|
roles: components["schemas"]["IdentityRoleDto"][];
|
|
3596
|
+
social_links: components["schemas"]["IdentitySocialLinkResponseDto"][];
|
|
3562
3597
|
can_manage: boolean;
|
|
3563
3598
|
/** Format: date-time */
|
|
3564
3599
|
created_at: string;
|
|
@@ -3608,6 +3643,14 @@ interface components {
|
|
|
3608
3643
|
*/
|
|
3609
3644
|
webauthn_rp_id: string | null;
|
|
3610
3645
|
};
|
|
3646
|
+
MfaRequiredEnvironmentResponseDto: {
|
|
3647
|
+
/** Format: uuid */
|
|
3648
|
+
environment_id: string;
|
|
3649
|
+
/** @example production */
|
|
3650
|
+
environment_slug: string;
|
|
3651
|
+
/** @example ledger */
|
|
3652
|
+
application_slug: string;
|
|
3653
|
+
};
|
|
3611
3654
|
AccountIdentityMfaResponseDto: {
|
|
3612
3655
|
factors: components["schemas"]["MfaFactorResponseDto"][];
|
|
3613
3656
|
/** @description Generation number of the active recovery-code batch. 0 means no batch has ever been issued; 1+ tracks regenerations. */
|
|
@@ -3619,6 +3662,8 @@ interface components {
|
|
|
3619
3662
|
* @description Timestamp of the most recent admin force-reset. `null` if MFA has never been reset for this identity.
|
|
3620
3663
|
*/
|
|
3621
3664
|
mfa_admin_reset_at?: string | null;
|
|
3665
|
+
/** @description The Environments where the identity's next sign-in asks for a second factor: the Environment requires MFA, or an organization the identity belongs to there does. Empty when MFA is required nowhere they sign in, so after a reset they sign in without one. On the public API it lists the key's own Environment at most. */
|
|
3666
|
+
mfa_required_in: components["schemas"]["MfaRequiredEnvironmentResponseDto"][];
|
|
3622
3667
|
};
|
|
3623
3668
|
IdentityAuthStateResponseDto: {
|
|
3624
3669
|
/** @description Master kill-switch — false means the identity cannot sign in. */
|
|
@@ -4310,10 +4355,18 @@ interface components {
|
|
|
4310
4355
|
mfa_factor_allowlist: ("totp" | "webauthn" | "email_otp")[];
|
|
4311
4356
|
/** @enum {string} */
|
|
4312
4357
|
mfa_after_sso: "exempt" | "require";
|
|
4313
|
-
/** @description The sign-in methods on offer: on the Environment, the ones it has turned on; on the effective policy, those narrowed by the organization, and `["sso"]` alone while it requires SSO. */
|
|
4314
|
-
allowed_sign_in_methods:
|
|
4358
|
+
/** @description The sign-in methods on offer: on the Environment, the ones it has turned on; on the effective policy, those narrowed by the organization, and `["sso"]` alone while it requires SSO. Each is `password`, `email_otp`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
|
|
4359
|
+
allowed_sign_in_methods: string[];
|
|
4315
4360
|
require_sso: boolean;
|
|
4316
4361
|
};
|
|
4362
|
+
PolicySocialProviderDto: {
|
|
4363
|
+
/** @description The sign-in method the provider adds: its kind, or `oidc:<slug>` for a custom provider. */
|
|
4364
|
+
method: string;
|
|
4365
|
+
/** @enum {string} */
|
|
4366
|
+
kind: "google" | "github" | "microsoft" | "apple" | "oidc";
|
|
4367
|
+
/** @description The provider's name as the sign-in page shows it. */
|
|
4368
|
+
label: string;
|
|
4369
|
+
};
|
|
4317
4370
|
OrganizationPolicyResponseDto: {
|
|
4318
4371
|
/** @description The organization this policy belongs to. */
|
|
4319
4372
|
organization_id: string;
|
|
@@ -4321,8 +4374,8 @@ interface components {
|
|
|
4321
4374
|
mfa_factor_allowlist?: ("totp" | "webauthn" | "email_otp")[] | null;
|
|
4322
4375
|
/** @enum {string|null} */
|
|
4323
4376
|
mfa_after_sso?: "exempt" | "require" | null;
|
|
4324
|
-
/** @description The methods the organization keeps of the Environment's, or null to inherit them all. */
|
|
4325
|
-
allowed_sign_in_methods?:
|
|
4377
|
+
/** @description The methods the organization keeps of the Environment's, or null to inherit them all. Each is `password`, `email_otp`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
|
|
4378
|
+
allowed_sign_in_methods?: string[] | null;
|
|
4326
4379
|
require_sso: boolean;
|
|
4327
4380
|
/**
|
|
4328
4381
|
* @description Whether the Environment's staff (identities holding a role at the Environment root) may enter this organization. `allowed` until the organization refuses them.
|
|
@@ -4331,6 +4384,8 @@ interface components {
|
|
|
4331
4384
|
staff_entry: "allowed" | "refused";
|
|
4332
4385
|
/** @description The Environment's own settings, the floor this organization's policy tightens from. */
|
|
4333
4386
|
environment: components["schemas"]["EffectiveOrganizationPolicyDto"];
|
|
4387
|
+
/** @description The Environment's enabled social providers, in the order they are offered, naming the methods they add to `allowed_sign_in_methods`. */
|
|
4388
|
+
social_providers: components["schemas"]["PolicySocialProviderDto"][];
|
|
4334
4389
|
/** @description The policy the organization's members sign in under. */
|
|
4335
4390
|
effective: components["schemas"]["EffectiveOrganizationPolicyDto"];
|
|
4336
4391
|
/** @description Optimistic-concurrency version. 0 until the organization sets a policy of its own. */
|
|
@@ -4352,8 +4407,8 @@ interface components {
|
|
|
4352
4407
|
* @enum {string|null}
|
|
4353
4408
|
*/
|
|
4354
4409
|
mfa_after_sso?: "exempt" | "require" | null;
|
|
4355
|
-
/** @description The sign-in methods this organization's members may use. A non-empty subset of the methods the Environment offers (`password` unless the Environment turned it off, `email_otp` where the Environment turned it on, and `sso`); a method the Environment does not offer is refused with `organization.policy_loosens`. `null` inherits the Environment's. While `require_sso` is on, SSO is the only method whatever this says. */
|
|
4356
|
-
allowed_sign_in_methods?:
|
|
4410
|
+
/** @description The sign-in methods this organization's members may use. A non-empty subset of the methods the Environment offers (`password` unless the Environment turned it off, `email_otp` where the Environment turned it on, each social provider it enabled, and `sso`); a method the Environment does not offer is refused with `organization.policy_loosens`. `null` inherits the Environment's. While `require_sso` is on, SSO is the only method whatever this says. Each is `password`, `email_otp`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
|
|
4411
|
+
allowed_sign_in_methods?: string[] | null;
|
|
4357
4412
|
/** @description Members must sign in through SSO. Password and email-code logins are refused for the organization's members and for any email whose domain routes to a connection bound to this organization. */
|
|
4358
4413
|
require_sso?: boolean;
|
|
4359
4414
|
/**
|
|
@@ -6036,6 +6091,32 @@ interface components {
|
|
|
6036
6091
|
};
|
|
6037
6092
|
};
|
|
6038
6093
|
};
|
|
6094
|
+
/** @description A delivery of the `identity.social_link.added` webhook event. */
|
|
6095
|
+
WebhookIdentitySocialLinkAddedEvent: {
|
|
6096
|
+
/** @enum {string} */
|
|
6097
|
+
event: "identity.social_link.added";
|
|
6098
|
+
data: components["schemas"]["ChangeEventDataDto"] & {
|
|
6099
|
+
/** @enum {string} */
|
|
6100
|
+
resource_type: "identity";
|
|
6101
|
+
metadata: {
|
|
6102
|
+
/** @description The sign-in method the link adds: google, github, microsoft, apple, or oidc:<name> for a custom provider. */
|
|
6103
|
+
method: string;
|
|
6104
|
+
};
|
|
6105
|
+
};
|
|
6106
|
+
};
|
|
6107
|
+
/** @description A delivery of the `identity.social_link.removed` webhook event. */
|
|
6108
|
+
WebhookIdentitySocialLinkRemovedEvent: {
|
|
6109
|
+
/** @enum {string} */
|
|
6110
|
+
event: "identity.social_link.removed";
|
|
6111
|
+
data: components["schemas"]["ChangeEventDataDto"] & {
|
|
6112
|
+
/** @enum {string} */
|
|
6113
|
+
resource_type: "identity";
|
|
6114
|
+
metadata: {
|
|
6115
|
+
/** @description The sign-in method the identity no longer has: google, github, microsoft, apple, or oidc:<name> for a custom provider. */
|
|
6116
|
+
method: string;
|
|
6117
|
+
};
|
|
6118
|
+
};
|
|
6119
|
+
};
|
|
6039
6120
|
/** @description A delivery of the `identity.env_membership.added` webhook event. */
|
|
6040
6121
|
WebhookIdentityEnvMembershipAddedEvent: {
|
|
6041
6122
|
/** @enum {string} */
|
|
@@ -7203,8 +7284,8 @@ interface components {
|
|
|
7203
7284
|
* @enum {string|null}
|
|
7204
7285
|
*/
|
|
7205
7286
|
mfa_after_sso: "exempt" | "require" | null;
|
|
7206
|
-
/** @description The sign-in methods members may use, or null to inherit the Environment's. */
|
|
7207
|
-
allowed_sign_in_methods:
|
|
7287
|
+
/** @description The sign-in methods members may use, or null to inherit the Environment's. Each is `password`, `email_otp`, `sso`, a social provider (`google`, `github`, `microsoft`, `apple`), or `oidc:<slug>` for a custom OpenID Connect provider. */
|
|
7288
|
+
allowed_sign_in_methods: string[] | null;
|
|
7208
7289
|
/** @description Whether members must sign in with SSO. */
|
|
7209
7290
|
require_sso: boolean;
|
|
7210
7291
|
/**
|
|
@@ -8943,7 +9024,7 @@ interface operations {
|
|
|
8943
9024
|
};
|
|
8944
9025
|
content: {
|
|
8945
9026
|
"application/json": {
|
|
8946
|
-
data: components["schemas"]["
|
|
9027
|
+
data: components["schemas"]["IdentityWithSocialLinksResponseDto"];
|
|
8947
9028
|
};
|
|
8948
9029
|
};
|
|
8949
9030
|
};
|
|
@@ -9903,7 +9984,7 @@ interface operations {
|
|
|
9903
9984
|
};
|
|
9904
9985
|
requestBody?: never;
|
|
9905
9986
|
responses: {
|
|
9906
|
-
/** @description Returns the identity's enrolled factors (TOTP and WebAuthn rows with redacted secrets), the current recovery-code generation count + remaining count,
|
|
9987
|
+
/** @description Returns the identity's enrolled factors (TOTP and WebAuthn rows with redacted secrets), the current recovery-code generation count + remaining count, the most-recent admin-reset timestamp, and the Environments where their next sign-in asks for a second factor. */
|
|
9907
9988
|
200: {
|
|
9908
9989
|
headers: {
|
|
9909
9990
|
[name: string]: unknown;
|
package/dist/index.js
CHANGED
|
@@ -1210,6 +1210,9 @@ var NO_ACCESS_CHANGE = /* @__PURE__ */ new Set([
|
|
|
1210
1210
|
"organization.policy.updated",
|
|
1211
1211
|
"organization.sso_connection.bound",
|
|
1212
1212
|
"organization.sso_connection.unbound",
|
|
1213
|
+
// How an identity signs in, not what it may do.
|
|
1214
|
+
"identity.social_link.added",
|
|
1215
|
+
"identity.social_link.removed",
|
|
1213
1216
|
// A pushed group grants nothing until it is mapped, which is its own event.
|
|
1214
1217
|
"scim.group.created"
|
|
1215
1218
|
]);
|