@idp.global/interfaces 30.8.1 → 30.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-11-23 - 30.10.0
4
+
5
+ ### Features
6
+
7
+ - Introspection app roles (AGL-655):
8
+ - Added optional `idp_global_authority_versions_supported` to `IOidcDiscoveryDocument`, optional `authority_version?: '1' | '2'` to `IOidcIntrospectionRequest`, `TOidcIntrospectionAuthorityVersion` (`1 | 2`), and optional `app_roles?: string[]` to `IOidcIntrospectionAuthority` (populated on version 2 responses from `IAppConnection.roleMappings`).
9
+ - `login_hint` & Pushed Authorization Requests (PAR, RFC 9126) (AGL-648):
10
+ - Added optional `pushed_authorization_request_endpoint` and `require_pushed_authorization_requests` to `IOidcDiscoveryDocument`, optional `login_hint` and `request_uri` to `IAuthorizationRequest`, `IPushedAuthorizationResponse`, and optional `loginHint` to `IReq_InspectOidcAuthorizationV2['response']`.
11
+
12
+ ## 2026-11-23 - 30.9.0
13
+
14
+ ### Features
15
+
16
+ - Machine provisioning & domain ownership proofs (AGL-1728):
17
+ - Added tenant capabilities `tenant.service-principal.read` and `tenant.service-principal.manage` (delegable).
18
+ - Added `IServicePrincipalDto`, `IDomainOwnershipProofDto`, `ISealedSecretDeliveryDto`, and TypedRequest contracts for listing/creating/revoking service principals (`getServicePrincipals`, `createServicePrincipal`, `revokeServicePrincipal`), listing/creating/checking/reissuing/revoking DNS TXT domain ownership proofs (`getDomainOwnershipProofs`, `createDomainOwnershipProof`, `checkDomainOwnershipProof`, `reissueDomainOwnershipProof`, `revokeDomainOwnershipProof`), and listing organization-registered OIDC clients (`getOrganizationRegisteredApps`).
19
+ - Added optional `ownerOrganizationId` to `IGlobalApp` / `IGlobalAppDto`, optional `platformListingApproved` to `IReq_GetGlobalAppStats`, and global-admin `setGlobalAppPlatformListing` (classified in `globalAdminTypedRequestMethods`).
20
+ - Added audit activity actions and target types for service principals, domain ownership proofs, and platform listing approval.
21
+
22
+ ### Maintenance
23
+
24
+ - Updated repository URLs and `.smartconfig.json` `githost` from retired `code.foss.global` to `foss.global`.
25
+
3
26
  ## 2026-11-22 - 30.8.1
4
27
 
5
28
  ### Fixes
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '30.8.1',
6
+ version: '30.10.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  };
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFNBQVM7SUFDbEIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
@@ -1,4 +1,4 @@
1
- export type TActivityAction = 'login' | 'logout' | 'session_created' | 'session_revoked' | 'passport_device_enrolled' | 'passport_device_revoked' | 'passport_challenge_approved' | 'passport_challenge_rejected' | 'org_created' | 'org_updated' | 'org_deleted' | 'org_ownership_transferred' | 'org_joined' | 'org_left' | 'role_changed' | 'org_app_role_mappings_updated' | 'profile_updated' | 'totp_enabled' | 'totp_disabled' | 'backup_codes_regenerated' | 'mfa_completed' | 'passkey_registered' | 'passkey_revoked' | 'passkey_login' | 'app_connected' | 'app_disconnected' | 'user_suspended' | 'user_unsuspended' | 'global_admin_granted' | 'global_admin_removed' | 'global_capabilities_changed' | 'break_glass_requested' | 'break_glass_activated' | 'break_glass_used' | 'break_glass_reviewed' | 'administrator_recovery_requested' | 'administrator_recovery_activated' | 'administrator_recovery_completed' | 'account_deletion_requested' | 'account_deletion_cancelled' | 'account_purged' | 'sso_connection_created' | 'sso_connection_updated' | 'sso_connection_deleted' | 'sso_domain_verified' | 'sso_login' | 'scim_token_created' | 'scim_token_revoked' | 'scim_user_provisioned' | 'scim_user_updated' | 'scim_user_deactivated' | 'scim_group_membership_changed' | 'oidc_authorization_granted' | 'oidc_code_exchanged' | 'oidc_refresh_rotated' | 'oidc_refresh_reuse_detected' | 'oidc_token_revoked' | 'oidc_logout' | 'oidc_client_created' | 'oidc_client_updated' | 'oidc_client_activation_changed' | 'oidc_client_deleted' | 'oidc_client_secret_rotated' | 'oidc_client_app_connection_requests_enabled' | 'oidc_client_app_connection_requests_disabled' | 'oidc_signing_key_rotated' | 'oidc_lifecycle_revoked' | 'org_suspended' | 'org_unsuspended' | 'upstream_identity_linked' | 'upstream_identity_unlinked';
1
+ export type TActivityAction = 'login' | 'logout' | 'session_created' | 'session_revoked' | 'passport_device_enrolled' | 'passport_device_revoked' | 'passport_challenge_approved' | 'passport_challenge_rejected' | 'org_created' | 'org_updated' | 'org_deleted' | 'org_ownership_transferred' | 'org_joined' | 'org_left' | 'role_changed' | 'org_app_role_mappings_updated' | 'profile_updated' | 'totp_enabled' | 'totp_disabled' | 'backup_codes_regenerated' | 'mfa_completed' | 'passkey_registered' | 'passkey_revoked' | 'passkey_login' | 'app_connected' | 'app_disconnected' | 'user_suspended' | 'user_unsuspended' | 'global_admin_granted' | 'global_admin_removed' | 'global_capabilities_changed' | 'break_glass_requested' | 'break_glass_activated' | 'break_glass_used' | 'break_glass_reviewed' | 'administrator_recovery_requested' | 'administrator_recovery_activated' | 'administrator_recovery_completed' | 'account_deletion_requested' | 'account_deletion_cancelled' | 'account_purged' | 'sso_connection_created' | 'sso_connection_updated' | 'sso_connection_deleted' | 'sso_domain_verified' | 'sso_login' | 'scim_token_created' | 'scim_token_revoked' | 'service_principal_created' | 'service_principal_revoked' | 'domain_ownership_proof_created' | 'domain_ownership_proof_verified' | 'domain_ownership_proof_reissued' | 'domain_ownership_proof_revoked' | 'scim_user_provisioned' | 'scim_user_updated' | 'scim_user_deactivated' | 'scim_group_membership_changed' | 'oidc_authorization_granted' | 'oidc_code_exchanged' | 'oidc_refresh_rotated' | 'oidc_refresh_reuse_detected' | 'oidc_token_revoked' | 'oidc_logout' | 'oidc_client_created' | 'oidc_client_updated' | 'oidc_client_activation_changed' | 'oidc_client_deleted' | 'oidc_client_secret_rotated' | 'oidc_client_app_connection_requests_enabled' | 'oidc_client_app_connection_requests_disabled' | 'oidc_client_platform_listing_approved' | 'oidc_client_platform_listing_revoked' | 'oidc_signing_key_rotated' | 'oidc_lifecycle_revoked' | 'org_suspended' | 'org_unsuspended' | 'upstream_identity_linked' | 'upstream_identity_unlinked';
2
2
  export type TActivityOutcome = 'attempted' | 'succeeded' | 'denied' | 'failed';
3
3
  /**
4
4
  * Public failure reasons are deliberately finite and non-descriptive. They
@@ -6,7 +6,7 @@ export type TActivityOutcome = 'attempted' | 'succeeded' | 'denied' | 'failed';
6
6
  * caller-authored text across the public contract boundary.
7
7
  */
8
8
  export type TActivityReasonCode = 'account_inactive' | 'authentication_failed' | 'authorization_denied' | 'conflict' | 'expired' | 'invalid_request' | 'policy_denied' | 'rate_limited' | 'replay_detected' | 'revoked' | 'step_up_required' | 'upstream_unavailable' | 'user_cancelled';
9
- export type TActivityTargetType = 'account' | 'administrator_recovery' | 'application_connection' | 'break_glass_access' | 'mfa_method' | 'oidc_authorization' | 'oidc_client' | 'oidc_lifecycle' | 'oidc_signing_key' | 'oidc_token' | 'organization' | 'organization_membership' | 'organization_role_mapping' | 'passkey' | 'passport_challenge' | 'passport_device' | 'profile' | 'scim_group_membership' | 'scim_token' | 'scim_user' | 'session' | 'sso_connection' | 'sso_domain' | 'upstream_identity';
9
+ export type TActivityTargetType = 'account' | 'administrator_recovery' | 'application_connection' | 'break_glass_access' | 'domain_ownership_proof' | 'mfa_method' | 'oidc_authorization' | 'oidc_client' | 'oidc_lifecycle' | 'oidc_signing_key' | 'oidc_token' | 'organization' | 'organization_membership' | 'organization_role_mapping' | 'passkey' | 'passport_challenge' | 'passport_device' | 'profile' | 'scim_group_membership' | 'scim_token' | 'scim_user' | 'service_principal' | 'session' | 'sso_connection' | 'sso_domain' | 'upstream_identity';
10
10
  /** The first factor of a `login` event; an upstream provider names itself. */
11
11
  export declare const activityAuthenticationMethods: readonly ["magic_link", "password", "apple", "google"];
12
12
  export type TActivityAuthenticationMethod = (typeof activityAuthenticationMethods)[number];
@@ -5,4 +5,4 @@ export const activityAuthenticationMethods = [
5
5
  'password',
6
6
  ...upstreamIdentityProviders,
7
7
  ];
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2FjdGl2aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBMkhsRSw4RUFBOEU7QUFDOUUsTUFBTSxDQUFDLE1BQU0sNkJBQTZCLEdBQUc7SUFDM0MsWUFBWTtJQUNaLFVBQVU7SUFDVixHQUFHLHlCQUF5QjtDQUNwQixDQUFDIn0=
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2FjdGl2aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBcUlsRSw4RUFBOEU7QUFDOUUsTUFBTSxDQUFDLE1BQU0sNkJBQTZCLEdBQUc7SUFDM0MsWUFBWTtJQUNaLFVBQVU7SUFDVixHQUFHLHlCQUF5QjtDQUNwQixDQUFDIn0=
@@ -30,6 +30,8 @@ export interface IGlobalApp {
30
30
  category: string;
31
31
  createdAt: number;
32
32
  createdByUserId: string;
33
+ /** Present on global OIDC clients registered by an organization's service principal. */
34
+ ownerOrganizationId?: string;
33
35
  };
34
36
  }
35
37
  export interface IPartnerApp {
@@ -9,7 +9,7 @@ export type TDelegableGlobalCapability = (typeof delegableGlobalCapabilities)[nu
9
9
  */
10
10
  export declare const breakGlassEligibleGlobalCapabilities: readonly ["global.oidc-client.manage", "global.organization.manage", "global.alert.manage", "global.user.manage"];
11
11
  export type TBreakGlassEligibleGlobalCapability = (typeof breakGlassEligibleGlobalCapabilities)[number];
12
- export declare const tenantCapabilities: readonly ['tenant.organization.read', 'tenant.organization.manage', 'tenant.organization.delete', 'tenant.organization.export', 'tenant.role.read', 'tenant.role.manage', 'tenant.membership.read', 'tenant.membership.manage', 'tenant.ownership.transfer', 'tenant.app-connection.read', 'tenant.app-connection.manage', 'tenant.sso.read', 'tenant.sso.manage', 'tenant.scim-token.read', 'tenant.scim-token.manage', 'tenant.billing.read', 'tenant.billing.manage', 'tenant.alert.read', 'tenant.alert.manage'];
12
+ export declare const tenantCapabilities: readonly ['tenant.organization.read', 'tenant.organization.manage', 'tenant.organization.delete', 'tenant.organization.export', 'tenant.role.read', 'tenant.role.manage', 'tenant.membership.read', 'tenant.membership.manage', 'tenant.ownership.transfer', 'tenant.app-connection.read', 'tenant.app-connection.manage', 'tenant.sso.read', 'tenant.sso.manage', 'tenant.scim-token.read', 'tenant.scim-token.manage', 'tenant.service-principal.read', 'tenant.service-principal.manage', 'tenant.billing.read', 'tenant.billing.manage', 'tenant.alert.read', 'tenant.alert.manage'];
13
13
  export type TTenantCapability = (typeof tenantCapabilities)[number];
14
- export declare const delegableTenantCapabilities: readonly ["tenant.organization.read", "tenant.organization.manage", "tenant.organization.export", "tenant.role.read", "tenant.role.manage", "tenant.membership.read", "tenant.membership.manage", "tenant.app-connection.read", "tenant.app-connection.manage", "tenant.sso.read", "tenant.sso.manage", "tenant.scim-token.read", "tenant.scim-token.manage", "tenant.billing.read", "tenant.billing.manage", "tenant.alert.read", "tenant.alert.manage"];
14
+ export declare const delegableTenantCapabilities: readonly ["tenant.organization.read", "tenant.organization.manage", "tenant.organization.export", "tenant.role.read", "tenant.role.manage", "tenant.membership.read", "tenant.membership.manage", "tenant.app-connection.read", "tenant.app-connection.manage", "tenant.sso.read", "tenant.sso.manage", "tenant.scim-token.read", "tenant.scim-token.manage", "tenant.service-principal.read", "tenant.service-principal.manage", "tenant.billing.read", "tenant.billing.manage", "tenant.alert.read", "tenant.alert.manage"];
15
15
  export type TDelegableTenantCapability = (typeof delegableTenantCapabilities)[number];
@@ -51,6 +51,8 @@ export const tenantCapabilities = [
51
51
  'tenant.sso.manage',
52
52
  'tenant.scim-token.read',
53
53
  'tenant.scim-token.manage',
54
+ 'tenant.service-principal.read',
55
+ 'tenant.service-principal.manage',
54
56
  'tenant.billing.read',
55
57
  'tenant.billing.manage',
56
58
  'tenant.alert.read',
@@ -70,9 +72,11 @@ export const delegableTenantCapabilities = [
70
72
  'tenant.sso.manage',
71
73
  'tenant.scim-token.read',
72
74
  'tenant.scim-token.manage',
75
+ 'tenant.service-principal.read',
76
+ 'tenant.service-principal.manage',
73
77
  'tenant.billing.read',
74
78
  'tenant.billing.manage',
75
79
  'tenant.alert.read',
76
80
  'tenant.alert.manage',
77
81
  ];
78
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aG9yaXphdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvYXV0aG9yaXphdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRztJQUNoQyx5QkFBeUI7SUFDekIsMkJBQTJCO0lBQzNCLDBCQUEwQjtJQUMxQiw0QkFBNEI7SUFDNUIsbUJBQW1CO0lBQ25CLHFCQUFxQjtJQUNyQixrQkFBa0I7SUFDbEIsb0JBQW9CO0lBQ3BCLG9CQUFvQjtJQUNwQixxQkFBcUI7SUFDckIsMkJBQTJCO0lBQzNCLDRCQUE0QjtJQUM1Qiw0QkFBNEI7Q0FDcEIsQ0FBQztBQUlYLE1BQU0sQ0FBQyxNQUFNLDJCQUEyQixHQUFHO0lBQ3pDLHlCQUF5QjtJQUN6QiwyQkFBMkI7SUFDM0IsMEJBQTBCO0lBQzFCLDRCQUE0QjtJQUM1QixtQkFBbUI7SUFDbkIscUJBQXFCO0lBQ3JCLGtCQUFrQjtJQUNsQixvQkFBb0I7SUFDcEIsNEJBQTRCO0NBQ21CLENBQUM7QUFLbEQ7Ozs7R0FJRztBQUNILE1BQU0sQ0FBQyxNQUFNLG9DQUFvQyxHQUFHO0lBQ2xELDJCQUEyQjtJQUMzQiw0QkFBNEI7SUFDNUIscUJBQXFCO0lBQ3JCLG9CQUFvQjtDQUMyQixDQUFDO0FBS2xELE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUFHO0lBQ2hDLDBCQUEwQjtJQUMxQiw0QkFBNEI7SUFDNUIsNEJBQTRCO0lBQzVCLDRCQUE0QjtJQUM1QixrQkFBa0I7SUFDbEIsb0JBQW9CO0lBQ3BCLHdCQUF3QjtJQUN4QiwwQkFBMEI7SUFDMUIsMkJBQTJCO0lBQzNCLDRCQUE0QjtJQUM1Qiw4QkFBOEI7SUFDOUIsaUJBQWlCO0lBQ2pCLG1CQUFtQjtJQUNuQix3QkFBd0I7SUFDeEIsMEJBQTBCO0lBQzFCLHFCQUFxQjtJQUNyQix1QkFBdUI7SUFDdkIsbUJBQW1CO0lBQ25CLHFCQUFxQjtDQUNiLENBQUM7QUFJWCxNQUFNLENBQUMsTUFBTSwyQkFBMkIsR0FBRztJQUN6QywwQkFBMEI7SUFDMUIsNEJBQTRCO0lBQzVCLDRCQUE0QjtJQUM1QixrQkFBa0I7SUFDbEIsb0JBQW9CO0lBQ3BCLHdCQUF3QjtJQUN4QiwwQkFBMEI7SUFDMUIsNEJBQTRCO0lBQzVCLDhCQUE4QjtJQUM5QixpQkFBaUI7SUFDakIsbUJBQW1CO0lBQ25CLHdCQUF3QjtJQUN4QiwwQkFBMEI7SUFDMUIscUJBQXFCO0lBQ3JCLHVCQUF1QjtJQUN2QixtQkFBbUI7SUFDbkIscUJBQXFCO0NBQzBCLENBQUMifQ==
82
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aG9yaXphdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvYXV0aG9yaXphdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRztJQUNoQyx5QkFBeUI7SUFDekIsMkJBQTJCO0lBQzNCLDBCQUEwQjtJQUMxQiw0QkFBNEI7SUFDNUIsbUJBQW1CO0lBQ25CLHFCQUFxQjtJQUNyQixrQkFBa0I7SUFDbEIsb0JBQW9CO0lBQ3BCLG9CQUFvQjtJQUNwQixxQkFBcUI7SUFDckIsMkJBQTJCO0lBQzNCLDRCQUE0QjtJQUM1Qiw0QkFBNEI7Q0FDcEIsQ0FBQztBQUlYLE1BQU0sQ0FBQyxNQUFNLDJCQUEyQixHQUFHO0lBQ3pDLHlCQUF5QjtJQUN6QiwyQkFBMkI7SUFDM0IsMEJBQTBCO0lBQzFCLDRCQUE0QjtJQUM1QixtQkFBbUI7SUFDbkIscUJBQXFCO0lBQ3JCLGtCQUFrQjtJQUNsQixvQkFBb0I7SUFDcEIsNEJBQTRCO0NBQ21CLENBQUM7QUFLbEQ7Ozs7R0FJRztBQUNILE1BQU0sQ0FBQyxNQUFNLG9DQUFvQyxHQUFHO0lBQ2xELDJCQUEyQjtJQUMzQiw0QkFBNEI7SUFDNUIscUJBQXFCO0lBQ3JCLG9CQUFvQjtDQUMyQixDQUFDO0FBS2xELE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUFHO0lBQ2hDLDBCQUEwQjtJQUMxQiw0QkFBNEI7SUFDNUIsNEJBQTRCO0lBQzVCLDRCQUE0QjtJQUM1QixrQkFBa0I7SUFDbEIsb0JBQW9CO0lBQ3BCLHdCQUF3QjtJQUN4QiwwQkFBMEI7SUFDMUIsMkJBQTJCO0lBQzNCLDRCQUE0QjtJQUM1Qiw4QkFBOEI7SUFDOUIsaUJBQWlCO0lBQ2pCLG1CQUFtQjtJQUNuQix3QkFBd0I7SUFDeEIsMEJBQTBCO0lBQzFCLCtCQUErQjtJQUMvQixpQ0FBaUM7SUFDakMscUJBQXFCO0lBQ3JCLHVCQUF1QjtJQUN2QixtQkFBbUI7SUFDbkIscUJBQXFCO0NBQ2IsQ0FBQztBQUlYLE1BQU0sQ0FBQyxNQUFNLDJCQUEyQixHQUFHO0lBQ3pDLDBCQUEwQjtJQUMxQiw0QkFBNEI7SUFDNUIsNEJBQTRCO0lBQzVCLGtCQUFrQjtJQUNsQixvQkFBb0I7SUFDcEIsd0JBQXdCO0lBQ3hCLDBCQUEwQjtJQUMxQiw0QkFBNEI7SUFDNUIsOEJBQThCO0lBQzlCLGlCQUFpQjtJQUNqQixtQkFBbUI7SUFDbkIsd0JBQXdCO0lBQ3hCLDBCQUEwQjtJQUMxQiwrQkFBK0I7SUFDL0IsaUNBQWlDO0lBQ2pDLHFCQUFxQjtJQUNyQix1QkFBdUI7SUFDdkIsbUJBQW1CO0lBQ25CLHFCQUFxQjtDQUMwQixDQUFDIn0=
@@ -19,6 +19,16 @@ export interface IOidcDiscoveryDocument {
19
19
  /** Optional RFC 7662 support; older providers may omit introspection. */
20
20
  introspection_endpoint?: string;
21
21
  introspection_endpoint_auth_methods_supported?: string[];
22
+ /**
23
+ * Supported `idp_global_authority` contract versions on `POST /oauth/introspect`.
24
+ * Version `1` is returned by default; version `2` adds `app_roles` derived from
25
+ * the active `AppConnection`'s `roleMappings` for the requested organization.
26
+ */
27
+ idp_global_authority_versions_supported?: number[];
28
+ /** Optional RFC 9126 Pushed Authorization Request (PAR) endpoint. */
29
+ pushed_authorization_request_endpoint?: string;
30
+ /** Whether the authorization server requires PAR for all clients (RFC 9126 §5). */
31
+ require_pushed_authorization_requests?: boolean;
22
32
  /**
23
33
  * The RFC 9396 authorization-details types the server supports, server-wide. idp.global
24
34
  * advertises `['app_connection']` from app 16.4.0; whether a given client may send one is gated
@@ -200,6 +210,23 @@ export interface IAuthorizationRequest {
200
210
  * no provider this installation offers is ignored: the login UI shows the sign-in choice.
201
211
  */
202
212
  provider_hint?: TUpstreamIdentityProvider;
213
+ /**
214
+ * Standard OIDC `login_hint` parameter (OpenID Connect Core §3.1.2.1): an email or identifier
215
+ * hint used to pre-fill the login/sign-up prompt. Never trusted as proof of identity.
216
+ */
217
+ login_hint?: string;
218
+ /**
219
+ * RFC 9126 Pushed Authorization Request (PAR) `request_uri` referencing parameters pushed
220
+ * server-to-server to `pushed_authorization_request_endpoint`.
221
+ */
222
+ request_uri?: string;
223
+ }
224
+ /**
225
+ * RFC 9126 Pushed Authorization Request (PAR) response from `POST /oauth/par`.
226
+ */
227
+ export interface IPushedAuthorizationResponse {
228
+ request_uri: string;
229
+ expires_in: number;
203
230
  }
204
231
  /**
205
232
  * Token request for authorization_code grant
@@ -238,10 +265,16 @@ export interface IOidcIntrospectionRequest {
238
265
  /** Fresh cryptographically random base64url value, at least 32 random bytes. */
239
266
  nonce: string;
240
267
  token_type_hint?: 'access_token';
268
+ /**
269
+ * Optional requested `idp_global_authority` contract version (`'1'` or `'2'`).
270
+ * Omitting it defaults to `'1'` for backwards compatibility with older clients.
271
+ */
272
+ authority_version?: '1' | '2';
241
273
  }
274
+ export type TOidcIntrospectionAuthorityVersion = 1 | 2;
242
275
  /** Current authority observed under the provider's membership mutation fences. */
243
276
  export interface IOidcIntrospectionAuthority {
244
- version: 1;
277
+ version: TOidcIntrospectionAuthorityVersion;
245
278
  nonce: string;
246
279
  subject_revision: number;
247
280
  organization_id: string;
@@ -252,6 +285,12 @@ export interface IOidcIntrospectionAuthority {
252
285
  app_connection_revision: number;
253
286
  /** Sorted, unique current organization membership roles. */
254
287
  roles: string[];
288
+ /**
289
+ * Sorted, unique application roles derived from the active `AppConnection`'s
290
+ * `roleMappings` for the subject's current roles in this organization.
291
+ * Present on `version: 2` responses (empty when no mapping applies); omitted on `version: 1`.
292
+ */
293
+ app_roles?: string[];
255
294
  }
256
295
  /**
257
296
  * A live observation for one authorization decision, never a cacheable grant.
@@ -35,7 +35,7 @@ export type TActivityEventDto = TActivityEventFor<'login', 'account', {
35
35
  protocol: 'saml';
36
36
  }> | TActivityEventFor<'sso_login', 'session', {
37
37
  protocol: 'saml';
38
- }> | TActivityEventFor<'scim_token_created', 'scim_token', null> | TActivityEventFor<'scim_token_revoked', 'scim_token', null> | TActivityEventFor<'scim_user_provisioned', 'scim_user', null> | TActivityEventFor<'scim_user_updated', 'scim_user', null> | TActivityEventFor<'scim_user_deactivated', 'scim_user', null> | TActivityEventFor<'scim_group_membership_changed', 'scim_group_membership', {
38
+ }> | TActivityEventFor<'scim_token_created', 'scim_token', null> | TActivityEventFor<'scim_token_revoked', 'scim_token', null> | TActivityEventFor<'service_principal_created', 'service_principal', null> | TActivityEventFor<'service_principal_revoked', 'service_principal', null> | TActivityEventFor<'domain_ownership_proof_created', 'domain_ownership_proof', null> | TActivityEventFor<'domain_ownership_proof_verified', 'domain_ownership_proof', null> | TActivityEventFor<'domain_ownership_proof_reissued', 'domain_ownership_proof', null> | TActivityEventFor<'domain_ownership_proof_revoked', 'domain_ownership_proof', null> | TActivityEventFor<'scim_user_provisioned', 'scim_user', null> | TActivityEventFor<'scim_user_updated', 'scim_user', null> | TActivityEventFor<'scim_user_deactivated', 'scim_user', null> | TActivityEventFor<'scim_group_membership_changed', 'scim_group_membership', {
39
39
  membershipChange: TActivityMembershipChange;
40
40
  }> | TActivityEventFor<'oidc_authorization_granted', 'oidc_authorization', {
41
41
  grantType: 'authorization_code';
@@ -64,6 +64,10 @@ export type TActivityEventDto = TActivityEventFor<'login', 'account', {
64
64
  clientType: TOAuthClientType;
65
65
  }> | TActivityEventFor<'oidc_client_app_connection_requests_disabled', 'oidc_client', {
66
66
  clientType: TOAuthClientType;
67
+ }> | TActivityEventFor<'oidc_client_platform_listing_approved', 'oidc_client', {
68
+ clientType: TOAuthClientType;
69
+ }> | TActivityEventFor<'oidc_client_platform_listing_revoked', 'oidc_client', {
70
+ clientType: TOAuthClientType;
67
71
  }> | TActivityEventFor<'oidc_signing_key_rotated', 'oidc_signing_key', null> | TActivityEventFor<'oidc_lifecycle_revoked', 'oidc_lifecycle', {
68
72
  revocationScope: TActivityRevocationScope;
69
73
  }> | TActivityEventFor<'org_suspended', 'organization', null> | TActivityEventFor<'org_unsuspended', 'organization', null> | TActivityEventFor<'upstream_identity_linked', 'upstream_identity', {
@@ -24,6 +24,8 @@ export interface IGlobalAppDto {
24
24
  isActive: boolean;
25
25
  category: string;
26
26
  createdAt: number;
27
+ /** Present on global OIDC clients registered by an organization's service principal. */
28
+ ownerOrganizationId?: string;
27
29
  };
28
30
  }
29
31
  export interface IAppDto extends IGlobalAppDto {
@@ -6,6 +6,7 @@ export * from './invitation.js';
6
6
  export * from './mfa.js';
7
7
  export * from './organization.js';
8
8
  export * from './passport.js';
9
+ export * from './serviceprincipal.js';
9
10
  export * from './user.js';
10
11
  export * from './ssoconnection.js';
11
12
  export * from './upstreamidentity.js';
@@ -6,7 +6,8 @@ export * from './invitation.js';
6
6
  export * from './mfa.js';
7
7
  export * from './organization.js';
8
8
  export * from './passport.js';
9
+ export * from './serviceprincipal.js';
9
10
  export * from './user.js';
10
11
  export * from './ssoconnection.js';
11
12
  export * from './upstreamidentity.js';
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kdG8vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyx1QkFBdUIsQ0FBQyJ9
13
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kdG8vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLHVCQUF1QixDQUFDIn0=
@@ -0,0 +1,45 @@
1
+ import type { TSecretDeliveryAlgorithm } from '../request/admin.js';
2
+ /**
3
+ * Client-facing machine service principal shape. Never carries the token hash;
4
+ * the credential is sealed once to the caller's RSA-OAEP-256 public key on creation.
5
+ */
6
+ export interface IServicePrincipalDto {
7
+ id: string;
8
+ data: {
9
+ organizationId: string;
10
+ label: string;
11
+ tokenPrefix: string;
12
+ capabilities: string[];
13
+ createdAt: number;
14
+ expiresAt?: number;
15
+ lastUsedAt?: number;
16
+ revoked: boolean;
17
+ };
18
+ }
19
+ /**
20
+ * Client-facing DNS TXT domain ownership proof for an organization.
21
+ */
22
+ export interface IDomainOwnershipProofDto {
23
+ id: string;
24
+ data: {
25
+ organizationId: string;
26
+ domain: string;
27
+ dnsTxtName: string;
28
+ dnsTxtValue: string;
29
+ createdAt: number;
30
+ verifiedAt?: number;
31
+ lastCheckedAt?: number;
32
+ revoked: boolean;
33
+ };
34
+ }
35
+ /**
36
+ * One-shot sealed secret delivery envelope encrypted to the caller's ephemeral
37
+ * RSA-OAEP-256 public key. Plaintext never crosses the wire and ciphertext is
38
+ * not retained at rest.
39
+ */
40
+ export interface ISealedSecretDeliveryDto {
41
+ algorithm: TSecretDeliveryAlgorithm;
42
+ publicKeySha256: string;
43
+ ciphertextSha256: string;
44
+ ciphertextBase64: string;
45
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZXByaW5jaXBhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2R0by9zZXJ2aWNlcHJpbmNpcGFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -80,6 +80,11 @@ export interface IReq_GetGlobalAppStats extends plugins.typedRequestInterfaces.i
80
80
  * absent as `false`.
81
81
  */
82
82
  mayRequestAppConnections?: boolean;
83
+ /**
84
+ * For organization-owned global apps registered by a service principal,
85
+ * whether a global admin has approved showing the app in the platform app list.
86
+ */
87
+ platformListingApproved?: boolean;
83
88
  }>;
84
89
  };
85
90
  }
@@ -141,6 +146,23 @@ export interface IReq_SetGlobalAppConnectionRequests extends plugins.typedReques
141
146
  mayRequestAppConnections: boolean;
142
147
  };
143
148
  }
149
+ /**
150
+ * Approve or revoke platform app-list visibility for an organization-owned
151
+ * global OIDC client registered by a service principal (admin only, with
152
+ * `global.oidc-client.manage` and a fresh passkey step-up).
153
+ */
154
+ export interface IReq_SetGlobalAppPlatformListing extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_SetGlobalAppPlatformListing> {
155
+ method: 'setGlobalAppPlatformListing';
156
+ request: {
157
+ jwt: string;
158
+ appId: string;
159
+ platformListingApproved: boolean;
160
+ };
161
+ response: {
162
+ /** The resulting state. */
163
+ platformListingApproved: boolean;
164
+ };
165
+ }
144
166
  /**
145
167
  * Delete a global app (admin only)
146
168
  */
@@ -59,6 +59,8 @@ export interface IReq_InspectOidcAuthorizationV2 extends plugins.typedRequestInt
59
59
  };
60
60
  /** The authorize request's `provider_hint`: the login UI starts this provider's sign-in itself. */
61
61
  providerHint?: TUpstreamIdentityProvider;
62
+ /** The authorize request's `login_hint` (pre-fills email/identifier on login/sign-up; advisory only). */
63
+ loginHint?: string;
62
64
  };
63
65
  }
64
66
  export interface IReq_PrepareOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_PrepareOidcAuthorizationV2> {
@@ -1,10 +1,10 @@
1
- import type { IReq_AcknowledgeAppSecretDelivery, IReq_ApproveAdministratorRecovery, IReq_ApproveBreakGlassAccess, IReq_ApproveOidcSigningKeyRotation, IReq_CheckGlobalAdmin, IReq_CreateGlobalApp, IReq_DeleteGlobalApp, IReq_GetGlobalAppStats, IReq_GetGlobalOrgStats, IReq_GetGlobalUsers, IReq_RegenerateAppCredentials, IReq_RequestAdministratorRecovery, IReq_RequestBreakGlassAccess, IReq_ReviewBreakGlassAccess, IReq_RotateOidcSigningKey, IReq_SetGlobalAdmin, IReq_SetGlobalAppConnectionRequests, IReq_SetGlobalCapabilityAssignments, IReq_SetOrganizationSuspension, IReq_SetUserSuspension, IReq_UpdateGlobalApp } from './admin.js';
1
+ import type { IReq_AcknowledgeAppSecretDelivery, IReq_ApproveAdministratorRecovery, IReq_ApproveBreakGlassAccess, IReq_ApproveOidcSigningKeyRotation, IReq_CheckGlobalAdmin, IReq_CreateGlobalApp, IReq_DeleteGlobalApp, IReq_GetGlobalAppStats, IReq_GetGlobalOrgStats, IReq_GetGlobalUsers, IReq_RegenerateAppCredentials, IReq_RequestAdministratorRecovery, IReq_RequestBreakGlassAccess, IReq_ReviewBreakGlassAccess, IReq_RotateOidcSigningKey, IReq_SetGlobalAdmin, IReq_SetGlobalAppConnectionRequests, IReq_SetGlobalAppPlatformListing, IReq_SetGlobalCapabilityAssignments, IReq_SetOrganizationSuspension, IReq_SetUserSuspension, IReq_UpdateGlobalApp } from './admin.js';
2
2
  import type { IReq_DeleteSuspendedUser } from './user.js';
3
- export type TGlobalAdminTypedRequest = IReq_AcknowledgeAppSecretDelivery | IReq_ApproveAdministratorRecovery | IReq_ApproveBreakGlassAccess | IReq_ApproveOidcSigningKeyRotation | IReq_CheckGlobalAdmin | IReq_CreateGlobalApp | IReq_DeleteGlobalApp | IReq_DeleteSuspendedUser | IReq_GetGlobalAppStats | IReq_GetGlobalOrgStats | IReq_GetGlobalUsers | IReq_RegenerateAppCredentials | IReq_RequestAdministratorRecovery | IReq_RequestBreakGlassAccess | IReq_ReviewBreakGlassAccess | IReq_RotateOidcSigningKey | IReq_SetGlobalAdmin | IReq_SetGlobalAppConnectionRequests | IReq_SetGlobalCapabilityAssignments | IReq_SetOrganizationSuspension | IReq_SetUserSuspension | IReq_UpdateGlobalApp;
3
+ export type TGlobalAdminTypedRequest = IReq_AcknowledgeAppSecretDelivery | IReq_ApproveAdministratorRecovery | IReq_ApproveBreakGlassAccess | IReq_ApproveOidcSigningKeyRotation | IReq_CheckGlobalAdmin | IReq_CreateGlobalApp | IReq_DeleteGlobalApp | IReq_DeleteSuspendedUser | IReq_GetGlobalAppStats | IReq_GetGlobalOrgStats | IReq_GetGlobalUsers | IReq_RegenerateAppCredentials | IReq_RequestAdministratorRecovery | IReq_RequestBreakGlassAccess | IReq_ReviewBreakGlassAccess | IReq_RotateOidcSigningKey | IReq_SetGlobalAdmin | IReq_SetGlobalAppConnectionRequests | IReq_SetGlobalAppPlatformListing | IReq_SetGlobalCapabilityAssignments | IReq_SetOrganizationSuspension | IReq_SetUserSuspension | IReq_UpdateGlobalApp;
4
4
  export type TGlobalAdminTypedRequestMethod = TGlobalAdminTypedRequest['method'];
5
5
  /**
6
6
  * Canonical transport-boundary classification for platform-wide
7
7
  * administration. Consumers use this inventory to keep privileged request
8
8
  * methods off public transports.
9
9
  */
10
- export declare const globalAdminTypedRequestMethods: readonly ["checkGlobalAdmin", "getGlobalAppStats", "createGlobalApp", "updateGlobalApp", "setGlobalAppConnectionRequests", "deleteGlobalApp", "regenerateAppCredentials", "acknowledgeAppSecretDelivery", "rotateOidcSigningKey", "approveOidcSigningKeyRotation", "setOrganizationSuspension", "getGlobalUsers", "setUserSuspension", "setGlobalAdmin", "setGlobalCapabilityAssignments", "requestBreakGlassAccess", "approveBreakGlassAccess", "reviewBreakGlassAccess", "requestAdministratorRecovery", "approveAdministratorRecovery", "getGlobalOrgStats", "deleteSuspendedUser"];
10
+ export declare const globalAdminTypedRequestMethods: readonly ["checkGlobalAdmin", "getGlobalAppStats", "createGlobalApp", "updateGlobalApp", "setGlobalAppConnectionRequests", "setGlobalAppPlatformListing", "deleteGlobalApp", "regenerateAppCredentials", "acknowledgeAppSecretDelivery", "rotateOidcSigningKey", "approveOidcSigningKeyRotation", "setOrganizationSuspension", "getGlobalUsers", "setUserSuspension", "setGlobalAdmin", "setGlobalCapabilityAssignments", "requestBreakGlassAccess", "approveBreakGlassAccess", "reviewBreakGlassAccess", "requestAdministratorRecovery", "approveAdministratorRecovery", "getGlobalOrgStats", "deleteSuspendedUser"];
@@ -9,6 +9,7 @@ export const globalAdminTypedRequestMethods = [
9
9
  'createGlobalApp',
10
10
  'updateGlobalApp',
11
11
  'setGlobalAppConnectionRequests',
12
+ 'setGlobalAppPlatformListing',
12
13
  'deleteGlobalApp',
13
14
  'regenerateAppCredentials',
14
15
  'acknowledgeAppSecretDelivery',
@@ -27,4 +28,4 @@ export const globalAdminTypedRequestMethods = [
27
28
  'getGlobalOrgStats',
28
29
  'deleteSuspendedUser',
29
30
  ];
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFsYWRtaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2dsb2JhbGFkbWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1EQTs7OztHQUlHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sOEJBQThCLEdBQUc7SUFDNUMsa0JBQWtCO0lBQ2xCLG1CQUFtQjtJQUNuQixpQkFBaUI7SUFDakIsaUJBQWlCO0lBQ2pCLGdDQUFnQztJQUNoQyxpQkFBaUI7SUFDakIsMEJBQTBCO0lBQzFCLDhCQUE4QjtJQUM5QixzQkFBc0I7SUFDdEIsK0JBQStCO0lBQy9CLDJCQUEyQjtJQUMzQixnQkFBZ0I7SUFDaEIsbUJBQW1CO0lBQ25CLGdCQUFnQjtJQUNoQixnQ0FBZ0M7SUFDaEMseUJBQXlCO0lBQ3pCLHlCQUF5QjtJQUN6Qix3QkFBd0I7SUFDeEIsOEJBQThCO0lBQzlCLDhCQUE4QjtJQUM5QixtQkFBbUI7SUFDbkIscUJBQXFCO0NBQ3VDLENBQUMifQ==
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFsYWRtaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2dsb2JhbGFkbWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFEQTs7OztHQUlHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sOEJBQThCLEdBQUc7SUFDNUMsa0JBQWtCO0lBQ2xCLG1CQUFtQjtJQUNuQixpQkFBaUI7SUFDakIsaUJBQWlCO0lBQ2pCLGdDQUFnQztJQUNoQyw2QkFBNkI7SUFDN0IsaUJBQWlCO0lBQ2pCLDBCQUEwQjtJQUMxQiw4QkFBOEI7SUFDOUIsc0JBQXNCO0lBQ3RCLCtCQUErQjtJQUMvQiwyQkFBMkI7SUFDM0IsZ0JBQWdCO0lBQ2hCLG1CQUFtQjtJQUNuQixnQkFBZ0I7SUFDaEIsZ0NBQWdDO0lBQ2hDLHlCQUF5QjtJQUN6Qix5QkFBeUI7SUFDekIsd0JBQXdCO0lBQ3hCLDhCQUE4QjtJQUM5Qiw4QkFBOEI7SUFDOUIsbUJBQW1CO0lBQ25CLHFCQUFxQjtDQUN1QyxDQUFDIn0=
@@ -12,6 +12,7 @@ export * from './organization.js';
12
12
  export * from './passport.js';
13
13
  export * from './plan.js';
14
14
  export * from './registration.js';
15
+ export * from './serviceprincipal.js';
15
16
  export * from './user.js';
16
17
  export * from './userinvitation.js';
17
18
  export * from './ssoconnection.js';
@@ -12,8 +12,9 @@ export * from './organization.js';
12
12
  export * from './passport.js';
13
13
  export * from './plan.js';
14
14
  export * from './registration.js';
15
+ export * from './serviceprincipal.js';
15
16
  export * from './user.js';
16
17
  export * from './userinvitation.js';
17
18
  export * from './ssoconnection.js';
18
19
  export * from './upstreamidentity.js';
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyx1QkFBdUIsQ0FBQyJ9
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLHVCQUF1QixDQUFDIn0=
@@ -0,0 +1,139 @@
1
+ import * as dto from '../dto/index.js';
2
+ import * as plugins from '../plugins.js';
3
+ import type { ISecretDeliveryRequest } from './admin.js';
4
+ /**
5
+ * List the service principals of an organization (org admin or global admin).
6
+ */
7
+ export interface IReq_GetServicePrincipals extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetServicePrincipals> {
8
+ method: 'getServicePrincipals';
9
+ request: {
10
+ jwt: string;
11
+ organizationId: string;
12
+ };
13
+ response: {
14
+ principals: dto.IServicePrincipalDto[];
15
+ };
16
+ }
17
+ /**
18
+ * Create a machine service principal for an organization (org owner/admin after
19
+ * passkey step-up). The bearer credential is returned once sealed to the
20
+ * caller's RSA-OAEP-256 public key.
21
+ */
22
+ export interface IReq_CreateServicePrincipal extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_CreateServicePrincipal> {
23
+ method: 'createServicePrincipal';
24
+ request: {
25
+ jwt: string;
26
+ organizationId: string;
27
+ label: string;
28
+ capabilities?: string[];
29
+ expiresAt?: number;
30
+ secretDelivery: ISecretDeliveryRequest;
31
+ };
32
+ response: {
33
+ principal: dto.IServicePrincipalDto;
34
+ secretDelivery: dto.ISealedSecretDeliveryDto;
35
+ };
36
+ }
37
+ /**
38
+ * Revoke a machine service principal (org owner/admin or global admin after
39
+ * passkey step-up).
40
+ */
41
+ export interface IReq_RevokeServicePrincipal extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_RevokeServicePrincipal> {
42
+ method: 'revokeServicePrincipal';
43
+ request: {
44
+ jwt: string;
45
+ principalId: string;
46
+ };
47
+ response: {
48
+ principal: dto.IServicePrincipalDto;
49
+ };
50
+ }
51
+ /**
52
+ * List the DNS TXT domain ownership proofs of an organization (org admin or
53
+ * global admin).
54
+ */
55
+ export interface IReq_GetDomainOwnershipProofs extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetDomainOwnershipProofs> {
56
+ method: 'getDomainOwnershipProofs';
57
+ request: {
58
+ jwt: string;
59
+ organizationId: string;
60
+ };
61
+ response: {
62
+ proofs: dto.IDomainOwnershipProofDto[];
63
+ };
64
+ }
65
+ /**
66
+ * Mint a DNS TXT domain ownership proof challenge for an organization (org
67
+ * owner/admin after passkey step-up).
68
+ */
69
+ export interface IReq_CreateDomainOwnershipProof extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_CreateDomainOwnershipProof> {
70
+ method: 'createDomainOwnershipProof';
71
+ request: {
72
+ jwt: string;
73
+ organizationId: string;
74
+ domain: string;
75
+ };
76
+ response: {
77
+ proof: dto.IDomainOwnershipProofDto;
78
+ };
79
+ }
80
+ /**
81
+ * Check the published DNS TXT record for a domain ownership proof and mark it
82
+ * verified if it matches (org owner/admin after passkey step-up).
83
+ */
84
+ export interface IReq_CheckDomainOwnershipProof extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_CheckDomainOwnershipProof> {
85
+ method: 'checkDomainOwnershipProof';
86
+ request: {
87
+ jwt: string;
88
+ proofId: string;
89
+ };
90
+ response: {
91
+ verified: boolean;
92
+ proof: dto.IDomainOwnershipProofDto;
93
+ };
94
+ }
95
+ /**
96
+ * Rotate the DNS TXT challenge value on an unrevoked domain ownership proof,
97
+ * clearing any existing verification (org owner/admin after passkey step-up).
98
+ */
99
+ export interface IReq_ReissueDomainOwnershipProof extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_ReissueDomainOwnershipProof> {
100
+ method: 'reissueDomainOwnershipProof';
101
+ request: {
102
+ jwt: string;
103
+ proofId: string;
104
+ };
105
+ response: {
106
+ proof: dto.IDomainOwnershipProofDto;
107
+ };
108
+ }
109
+ /**
110
+ * Revoke a domain ownership proof (org owner/admin or global admin after
111
+ * passkey step-up).
112
+ */
113
+ export interface IReq_RevokeDomainOwnershipProof extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_RevokeDomainOwnershipProof> {
114
+ method: 'revokeDomainOwnershipProof';
115
+ request: {
116
+ jwt: string;
117
+ proofId: string;
118
+ };
119
+ response: {
120
+ proof: dto.IDomainOwnershipProofDto;
121
+ };
122
+ }
123
+ /**
124
+ * List OIDC clients registered under an organization by its service principals
125
+ * (org admin or global admin).
126
+ */
127
+ export interface IReq_GetOrganizationRegisteredApps extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetOrganizationRegisteredApps> {
128
+ method: 'getOrganizationRegisteredApps';
129
+ request: {
130
+ jwt: string;
131
+ organizationId: string;
132
+ };
133
+ response: {
134
+ apps: Array<{
135
+ app: dto.IGlobalAppDto;
136
+ platformListingApproved: boolean;
137
+ }>;
138
+ };
139
+ }
@@ -0,0 +1,3 @@
1
+ import * as dto from '../dto/index.js';
2
+ import * as plugins from '../plugins.js';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZXByaW5jaXBhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3JlcXVlc3Qvc2VydmljZXByaW5jaXBhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssR0FBRyxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZDLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "30.8.1",
3
+ "version": "30.10.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.",
6
6
  "exports": {
@@ -38,12 +38,12 @@
38
38
  ],
39
39
  "repository": {
40
40
  "type": "git",
41
- "url": "git+ssh://git@code.foss.global:29419/idp.global/interfaces.git"
41
+ "url": "git+https://foss.global/idp.global/interfaces.git"
42
42
  },
43
43
  "bugs": {
44
- "url": "https://code.foss.global/idp.global/interfaces/issues"
44
+ "url": "https://foss.global/idp.global/interfaces/issues"
45
45
  },
46
- "homepage": "https://code.foss.global/idp.global/interfaces#readme",
46
+ "homepage": "https://foss.global/idp.global/interfaces#readme",
47
47
  "keywords": [
48
48
  "idp.global",
49
49
  "interfaces",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '30.8.1',
6
+ version: '30.10.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
@@ -49,6 +49,12 @@ export type TActivityAction =
49
49
  | 'sso_login'
50
50
  | 'scim_token_created'
51
51
  | 'scim_token_revoked'
52
+ | 'service_principal_created'
53
+ | 'service_principal_revoked'
54
+ | 'domain_ownership_proof_created'
55
+ | 'domain_ownership_proof_verified'
56
+ | 'domain_ownership_proof_reissued'
57
+ | 'domain_ownership_proof_revoked'
52
58
  | 'scim_user_provisioned'
53
59
  | 'scim_user_updated'
54
60
  | 'scim_user_deactivated'
@@ -66,6 +72,8 @@ export type TActivityAction =
66
72
  | 'oidc_client_secret_rotated'
67
73
  | 'oidc_client_app_connection_requests_enabled'
68
74
  | 'oidc_client_app_connection_requests_disabled'
75
+ | 'oidc_client_platform_listing_approved'
76
+ | 'oidc_client_platform_listing_revoked'
69
77
  | 'oidc_signing_key_rotated'
70
78
  | 'oidc_lifecycle_revoked'
71
79
  | 'org_suspended'
@@ -100,6 +108,7 @@ export type TActivityTargetType =
100
108
  | 'administrator_recovery'
101
109
  | 'application_connection'
102
110
  | 'break_glass_access'
111
+ | 'domain_ownership_proof'
103
112
  | 'mfa_method'
104
113
  | 'oidc_authorization'
105
114
  | 'oidc_client'
@@ -116,6 +125,7 @@ export type TActivityTargetType =
116
125
  | 'scim_group_membership'
117
126
  | 'scim_token'
118
127
  | 'scim_user'
128
+ | 'service_principal'
119
129
  | 'session'
120
130
  | 'sso_connection'
121
131
  | 'sso_domain'
package/ts/data/app.ts CHANGED
@@ -38,6 +38,8 @@ export interface IGlobalApp {
38
38
  category: string;
39
39
  createdAt: number;
40
40
  createdByUserId: string;
41
+ /** Present on global OIDC clients registered by an organization's service principal. */
42
+ ownerOrganizationId?: string;
41
43
  };
42
44
  }
43
45
 
@@ -62,6 +62,8 @@ export const tenantCapabilities = [
62
62
  'tenant.sso.manage',
63
63
  'tenant.scim-token.read',
64
64
  'tenant.scim-token.manage',
65
+ 'tenant.service-principal.read',
66
+ 'tenant.service-principal.manage',
65
67
  'tenant.billing.read',
66
68
  'tenant.billing.manage',
67
69
  'tenant.alert.read',
@@ -84,6 +86,8 @@ export const delegableTenantCapabilities = [
84
86
  'tenant.sso.manage',
85
87
  'tenant.scim-token.read',
86
88
  'tenant.scim-token.manage',
89
+ 'tenant.service-principal.read',
90
+ 'tenant.service-principal.manage',
87
91
  'tenant.billing.read',
88
92
  'tenant.billing.manage',
89
93
  'tenant.alert.read',
package/ts/data/oidc.ts CHANGED
@@ -22,6 +22,16 @@ export interface IOidcDiscoveryDocument {
22
22
  /** Optional RFC 7662 support; older providers may omit introspection. */
23
23
  introspection_endpoint?: string;
24
24
  introspection_endpoint_auth_methods_supported?: string[];
25
+ /**
26
+ * Supported `idp_global_authority` contract versions on `POST /oauth/introspect`.
27
+ * Version `1` is returned by default; version `2` adds `app_roles` derived from
28
+ * the active `AppConnection`'s `roleMappings` for the requested organization.
29
+ */
30
+ idp_global_authority_versions_supported?: number[];
31
+ /** Optional RFC 9126 Pushed Authorization Request (PAR) endpoint. */
32
+ pushed_authorization_request_endpoint?: string;
33
+ /** Whether the authorization server requires PAR for all clients (RFC 9126 §5). */
34
+ require_pushed_authorization_requests?: boolean;
25
35
  /**
26
36
  * The RFC 9396 authorization-details types the server supports, server-wide. idp.global
27
37
  * advertises `['app_connection']` from app 16.4.0; whether a given client may send one is gated
@@ -230,6 +240,24 @@ export interface IAuthorizationRequest {
230
240
  * no provider this installation offers is ignored: the login UI shows the sign-in choice.
231
241
  */
232
242
  provider_hint?: TUpstreamIdentityProvider;
243
+ /**
244
+ * Standard OIDC `login_hint` parameter (OpenID Connect Core §3.1.2.1): an email or identifier
245
+ * hint used to pre-fill the login/sign-up prompt. Never trusted as proof of identity.
246
+ */
247
+ login_hint?: string;
248
+ /**
249
+ * RFC 9126 Pushed Authorization Request (PAR) `request_uri` referencing parameters pushed
250
+ * server-to-server to `pushed_authorization_request_endpoint`.
251
+ */
252
+ request_uri?: string;
253
+ }
254
+
255
+ /**
256
+ * RFC 9126 Pushed Authorization Request (PAR) response from `POST /oauth/par`.
257
+ */
258
+ export interface IPushedAuthorizationResponse {
259
+ request_uri: string;
260
+ expires_in: number;
233
261
  }
234
262
 
235
263
  /**
@@ -272,11 +300,18 @@ export interface IOidcIntrospectionRequest {
272
300
  /** Fresh cryptographically random base64url value, at least 32 random bytes. */
273
301
  nonce: string;
274
302
  token_type_hint?: 'access_token';
303
+ /**
304
+ * Optional requested `idp_global_authority` contract version (`'1'` or `'2'`).
305
+ * Omitting it defaults to `'1'` for backwards compatibility with older clients.
306
+ */
307
+ authority_version?: '1' | '2';
275
308
  }
276
309
 
310
+ export type TOidcIntrospectionAuthorityVersion = 1 | 2;
311
+
277
312
  /** Current authority observed under the provider's membership mutation fences. */
278
313
  export interface IOidcIntrospectionAuthority {
279
- version: 1;
314
+ version: TOidcIntrospectionAuthorityVersion;
280
315
  nonce: string;
281
316
  subject_revision: number;
282
317
  organization_id: string;
@@ -287,6 +322,12 @@ export interface IOidcIntrospectionAuthority {
287
322
  app_connection_revision: number;
288
323
  /** Sorted, unique current organization membership roles. */
289
324
  roles: string[];
325
+ /**
326
+ * Sorted, unique application roles derived from the active `AppConnection`'s
327
+ * `roleMappings` for the subject's current roles in this organization.
328
+ * Present on `version: 2` responses (empty when no mapping applies); omitted on `version: 1`.
329
+ */
330
+ app_roles?: string[];
290
331
  }
291
332
 
292
333
  /**
@@ -108,6 +108,12 @@ export type TActivityEventDto =
108
108
  | TActivityEventFor<'sso_login', 'session', { protocol: 'saml' }>
109
109
  | TActivityEventFor<'scim_token_created', 'scim_token', null>
110
110
  | TActivityEventFor<'scim_token_revoked', 'scim_token', null>
111
+ | TActivityEventFor<'service_principal_created', 'service_principal', null>
112
+ | TActivityEventFor<'service_principal_revoked', 'service_principal', null>
113
+ | TActivityEventFor<'domain_ownership_proof_created', 'domain_ownership_proof', null>
114
+ | TActivityEventFor<'domain_ownership_proof_verified', 'domain_ownership_proof', null>
115
+ | TActivityEventFor<'domain_ownership_proof_reissued', 'domain_ownership_proof', null>
116
+ | TActivityEventFor<'domain_ownership_proof_revoked', 'domain_ownership_proof', null>
111
117
  | TActivityEventFor<'scim_user_provisioned', 'scim_user', null>
112
118
  | TActivityEventFor<'scim_user_updated', 'scim_user', null>
113
119
  | TActivityEventFor<'scim_user_deactivated', 'scim_user', null>
@@ -165,6 +171,16 @@ export type TActivityEventDto =
165
171
  'oidc_client',
166
172
  { clientType: TOAuthClientType }
167
173
  >
174
+ | TActivityEventFor<
175
+ 'oidc_client_platform_listing_approved',
176
+ 'oidc_client',
177
+ { clientType: TOAuthClientType }
178
+ >
179
+ | TActivityEventFor<
180
+ 'oidc_client_platform_listing_revoked',
181
+ 'oidc_client',
182
+ { clientType: TOAuthClientType }
183
+ >
168
184
  | TActivityEventFor<'oidc_signing_key_rotated', 'oidc_signing_key', null>
169
185
  | TActivityEventFor<
170
186
  'oidc_lifecycle_revoked',
package/ts/dto/app.ts CHANGED
@@ -26,6 +26,8 @@ export interface IGlobalAppDto {
26
26
  isActive: boolean;
27
27
  category: string;
28
28
  createdAt: number;
29
+ /** Present on global OIDC clients registered by an organization's service principal. */
30
+ ownerOrganizationId?: string;
29
31
  };
30
32
  }
31
33
 
package/ts/dto/index.ts CHANGED
@@ -6,6 +6,7 @@ export * from './invitation.js';
6
6
  export * from './mfa.js';
7
7
  export * from './organization.js';
8
8
  export * from './passport.js';
9
+ export * from './serviceprincipal.js';
9
10
  export * from './user.js';
10
11
  export * from './ssoconnection.js';
11
12
  export * from './upstreamidentity.js';
@@ -0,0 +1,48 @@
1
+ import type { TSecretDeliveryAlgorithm } from '../request/admin.js';
2
+
3
+ /**
4
+ * Client-facing machine service principal shape. Never carries the token hash;
5
+ * the credential is sealed once to the caller's RSA-OAEP-256 public key on creation.
6
+ */
7
+ export interface IServicePrincipalDto {
8
+ id: string;
9
+ data: {
10
+ organizationId: string;
11
+ label: string;
12
+ tokenPrefix: string;
13
+ capabilities: string[];
14
+ createdAt: number;
15
+ expiresAt?: number;
16
+ lastUsedAt?: number;
17
+ revoked: boolean;
18
+ };
19
+ }
20
+
21
+ /**
22
+ * Client-facing DNS TXT domain ownership proof for an organization.
23
+ */
24
+ export interface IDomainOwnershipProofDto {
25
+ id: string;
26
+ data: {
27
+ organizationId: string;
28
+ domain: string;
29
+ dnsTxtName: string;
30
+ dnsTxtValue: string;
31
+ createdAt: number;
32
+ verifiedAt?: number;
33
+ lastCheckedAt?: number;
34
+ revoked: boolean;
35
+ };
36
+ }
37
+
38
+ /**
39
+ * One-shot sealed secret delivery envelope encrypted to the caller's ephemeral
40
+ * RSA-OAEP-256 public key. Plaintext never crosses the wire and ciphertext is
41
+ * not retained at rest.
42
+ */
43
+ export interface ISealedSecretDeliveryDto {
44
+ algorithm: TSecretDeliveryAlgorithm;
45
+ publicKeySha256: string;
46
+ ciphertextSha256: string;
47
+ ciphertextBase64: string;
48
+ }
@@ -101,6 +101,11 @@ export interface IReq_GetGlobalAppStats
101
101
  * absent as `false`.
102
102
  */
103
103
  mayRequestAppConnections?: boolean;
104
+ /**
105
+ * For organization-owned global apps registered by a service principal,
106
+ * whether a global admin has approved showing the app in the platform app list.
107
+ */
108
+ platformListingApproved?: boolean;
104
109
  }>;
105
110
  };
106
111
  }
@@ -178,6 +183,28 @@ export interface IReq_SetGlobalAppConnectionRequests
178
183
  };
179
184
  }
180
185
 
186
+ /**
187
+ * Approve or revoke platform app-list visibility for an organization-owned
188
+ * global OIDC client registered by a service principal (admin only, with
189
+ * `global.oidc-client.manage` and a fresh passkey step-up).
190
+ */
191
+ export interface IReq_SetGlobalAppPlatformListing
192
+ extends plugins.typedRequestInterfaces.implementsTR<
193
+ plugins.typedRequestInterfaces.ITypedRequest,
194
+ IReq_SetGlobalAppPlatformListing
195
+ > {
196
+ method: 'setGlobalAppPlatformListing';
197
+ request: {
198
+ jwt: string;
199
+ appId: string;
200
+ platformListingApproved: boolean;
201
+ };
202
+ response: {
203
+ /** The resulting state. */
204
+ platformListingApproved: boolean;
205
+ };
206
+ }
207
+
181
208
  /**
182
209
  * Delete a global app (admin only)
183
210
  */
@@ -76,6 +76,8 @@ export interface IReq_InspectOidcAuthorizationV2
76
76
  appConnection?: { requiresPasskey: true };
77
77
  /** The authorize request's `provider_hint`: the login UI starts this provider's sign-in itself. */
78
78
  providerHint?: TUpstreamIdentityProvider;
79
+ /** The authorize request's `login_hint` (pre-fills email/identifier on login/sign-up; advisory only). */
80
+ loginHint?: string;
79
81
  };
80
82
  }
81
83
 
@@ -16,6 +16,7 @@ import type {
16
16
  IReq_RotateOidcSigningKey,
17
17
  IReq_SetGlobalAdmin,
18
18
  IReq_SetGlobalAppConnectionRequests,
19
+ IReq_SetGlobalAppPlatformListing,
19
20
  IReq_SetGlobalCapabilityAssignments,
20
21
  IReq_SetOrganizationSuspension,
21
22
  IReq_SetUserSuspension,
@@ -42,6 +43,7 @@ export type TGlobalAdminTypedRequest =
42
43
  | IReq_RotateOidcSigningKey
43
44
  | IReq_SetGlobalAdmin
44
45
  | IReq_SetGlobalAppConnectionRequests
46
+ | IReq_SetGlobalAppPlatformListing
45
47
  | IReq_SetGlobalCapabilityAssignments
46
48
  | IReq_SetOrganizationSuspension
47
49
  | IReq_SetUserSuspension
@@ -60,6 +62,7 @@ export const globalAdminTypedRequestMethods = [
60
62
  'createGlobalApp',
61
63
  'updateGlobalApp',
62
64
  'setGlobalAppConnectionRequests',
65
+ 'setGlobalAppPlatformListing',
63
66
  'deleteGlobalApp',
64
67
  'regenerateAppCredentials',
65
68
  'acknowledgeAppSecretDelivery',
@@ -12,6 +12,7 @@ export * from './organization.js';
12
12
  export * from './passport.js';
13
13
  export * from './plan.js';
14
14
  export * from './registration.js';
15
+ export * from './serviceprincipal.js';
15
16
  export * from './user.js';
16
17
  export * from './userinvitation.js';
17
18
  export * from './ssoconnection.js';
@@ -0,0 +1,184 @@
1
+ import * as dto from '../dto/index.js';
2
+ import * as plugins from '../plugins.js';
3
+ import type { ISecretDeliveryRequest } from './admin.js';
4
+
5
+ /**
6
+ * List the service principals of an organization (org admin or global admin).
7
+ */
8
+ export interface IReq_GetServicePrincipals
9
+ extends plugins.typedRequestInterfaces.implementsTR<
10
+ plugins.typedRequestInterfaces.ITypedRequest,
11
+ IReq_GetServicePrincipals
12
+ > {
13
+ method: 'getServicePrincipals';
14
+ request: {
15
+ jwt: string;
16
+ organizationId: string;
17
+ };
18
+ response: {
19
+ principals: dto.IServicePrincipalDto[];
20
+ };
21
+ }
22
+
23
+ /**
24
+ * Create a machine service principal for an organization (org owner/admin after
25
+ * passkey step-up). The bearer credential is returned once sealed to the
26
+ * caller's RSA-OAEP-256 public key.
27
+ */
28
+ export interface IReq_CreateServicePrincipal
29
+ extends plugins.typedRequestInterfaces.implementsTR<
30
+ plugins.typedRequestInterfaces.ITypedRequest,
31
+ IReq_CreateServicePrincipal
32
+ > {
33
+ method: 'createServicePrincipal';
34
+ request: {
35
+ jwt: string;
36
+ organizationId: string;
37
+ label: string;
38
+ capabilities?: string[];
39
+ expiresAt?: number;
40
+ secretDelivery: ISecretDeliveryRequest;
41
+ };
42
+ response: {
43
+ principal: dto.IServicePrincipalDto;
44
+ secretDelivery: dto.ISealedSecretDeliveryDto;
45
+ };
46
+ }
47
+
48
+ /**
49
+ * Revoke a machine service principal (org owner/admin or global admin after
50
+ * passkey step-up).
51
+ */
52
+ export interface IReq_RevokeServicePrincipal
53
+ extends plugins.typedRequestInterfaces.implementsTR<
54
+ plugins.typedRequestInterfaces.ITypedRequest,
55
+ IReq_RevokeServicePrincipal
56
+ > {
57
+ method: 'revokeServicePrincipal';
58
+ request: {
59
+ jwt: string;
60
+ principalId: string;
61
+ };
62
+ response: {
63
+ principal: dto.IServicePrincipalDto;
64
+ };
65
+ }
66
+
67
+ /**
68
+ * List the DNS TXT domain ownership proofs of an organization (org admin or
69
+ * global admin).
70
+ */
71
+ export interface IReq_GetDomainOwnershipProofs
72
+ extends plugins.typedRequestInterfaces.implementsTR<
73
+ plugins.typedRequestInterfaces.ITypedRequest,
74
+ IReq_GetDomainOwnershipProofs
75
+ > {
76
+ method: 'getDomainOwnershipProofs';
77
+ request: {
78
+ jwt: string;
79
+ organizationId: string;
80
+ };
81
+ response: {
82
+ proofs: dto.IDomainOwnershipProofDto[];
83
+ };
84
+ }
85
+
86
+ /**
87
+ * Mint a DNS TXT domain ownership proof challenge for an organization (org
88
+ * owner/admin after passkey step-up).
89
+ */
90
+ export interface IReq_CreateDomainOwnershipProof
91
+ extends plugins.typedRequestInterfaces.implementsTR<
92
+ plugins.typedRequestInterfaces.ITypedRequest,
93
+ IReq_CreateDomainOwnershipProof
94
+ > {
95
+ method: 'createDomainOwnershipProof';
96
+ request: {
97
+ jwt: string;
98
+ organizationId: string;
99
+ domain: string;
100
+ };
101
+ response: {
102
+ proof: dto.IDomainOwnershipProofDto;
103
+ };
104
+ }
105
+
106
+ /**
107
+ * Check the published DNS TXT record for a domain ownership proof and mark it
108
+ * verified if it matches (org owner/admin after passkey step-up).
109
+ */
110
+ export interface IReq_CheckDomainOwnershipProof
111
+ extends plugins.typedRequestInterfaces.implementsTR<
112
+ plugins.typedRequestInterfaces.ITypedRequest,
113
+ IReq_CheckDomainOwnershipProof
114
+ > {
115
+ method: 'checkDomainOwnershipProof';
116
+ request: {
117
+ jwt: string;
118
+ proofId: string;
119
+ };
120
+ response: {
121
+ verified: boolean;
122
+ proof: dto.IDomainOwnershipProofDto;
123
+ };
124
+ }
125
+
126
+ /**
127
+ * Rotate the DNS TXT challenge value on an unrevoked domain ownership proof,
128
+ * clearing any existing verification (org owner/admin after passkey step-up).
129
+ */
130
+ export interface IReq_ReissueDomainOwnershipProof
131
+ extends plugins.typedRequestInterfaces.implementsTR<
132
+ plugins.typedRequestInterfaces.ITypedRequest,
133
+ IReq_ReissueDomainOwnershipProof
134
+ > {
135
+ method: 'reissueDomainOwnershipProof';
136
+ request: {
137
+ jwt: string;
138
+ proofId: string;
139
+ };
140
+ response: {
141
+ proof: dto.IDomainOwnershipProofDto;
142
+ };
143
+ }
144
+
145
+ /**
146
+ * Revoke a domain ownership proof (org owner/admin or global admin after
147
+ * passkey step-up).
148
+ */
149
+ export interface IReq_RevokeDomainOwnershipProof
150
+ extends plugins.typedRequestInterfaces.implementsTR<
151
+ plugins.typedRequestInterfaces.ITypedRequest,
152
+ IReq_RevokeDomainOwnershipProof
153
+ > {
154
+ method: 'revokeDomainOwnershipProof';
155
+ request: {
156
+ jwt: string;
157
+ proofId: string;
158
+ };
159
+ response: {
160
+ proof: dto.IDomainOwnershipProofDto;
161
+ };
162
+ }
163
+
164
+ /**
165
+ * List OIDC clients registered under an organization by its service principals
166
+ * (org admin or global admin).
167
+ */
168
+ export interface IReq_GetOrganizationRegisteredApps
169
+ extends plugins.typedRequestInterfaces.implementsTR<
170
+ plugins.typedRequestInterfaces.ITypedRequest,
171
+ IReq_GetOrganizationRegisteredApps
172
+ > {
173
+ method: 'getOrganizationRegisteredApps';
174
+ request: {
175
+ jwt: string;
176
+ organizationId: string;
177
+ };
178
+ response: {
179
+ apps: Array<{
180
+ app: dto.IGlobalAppDto;
181
+ platformListingApproved: boolean;
182
+ }>;
183
+ };
184
+ }