@cboxdk/id-js 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/README.md +121 -4
  3. package/RELEASE-CANDIDATE.md +11 -0
  4. package/dist/api-keys-BE3R3q_A.d.ts +105 -0
  5. package/dist/api-keys-C8-Q4eFA.d.cts +105 -0
  6. package/dist/chunk-EVZ6RB3K.js +98 -0
  7. package/dist/chunk-EVZ6RB3K.js.map +1 -0
  8. package/dist/{chunk-CXGKOJRJ.js → chunk-YGLMLIKL.js} +144 -9
  9. package/dist/chunk-YGLMLIKL.js.map +1 -0
  10. package/dist/{client-BxUHm5hX.d.cts → client-BT-jOm0p.d.cts} +126 -2
  11. package/dist/{client-BSZASrMo.d.ts → client-xlEJalu8.d.ts} +126 -2
  12. package/dist/decisions-C84Fzah4.d.ts +23 -0
  13. package/dist/decisions-DNd9UXwi.d.cts +23 -0
  14. package/dist/index.cjs +338 -28
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +84 -6
  17. package/dist/index.d.ts +84 -6
  18. package/dist/index.js +87 -15
  19. package/dist/index.js.map +1 -1
  20. package/dist/management.cjs +1115 -62
  21. package/dist/management.cjs.map +1 -1
  22. package/dist/management.d.cts +3618 -135
  23. package/dist/management.d.ts +3618 -135
  24. package/dist/management.js +1115 -63
  25. package/dist/management.js.map +1 -1
  26. package/dist/nextjs.cjs +136 -5
  27. package/dist/nextjs.cjs.map +1 -1
  28. package/dist/nextjs.d.cts +4 -3
  29. package/dist/nextjs.d.ts +4 -3
  30. package/dist/nextjs.js +1 -1
  31. package/dist/server.cjs +103 -9
  32. package/dist/server.cjs.map +1 -1
  33. package/dist/server.d.cts +3 -105
  34. package/dist/server.d.ts +3 -105
  35. package/dist/server.js +1 -0
  36. package/dist/{types-BYZldock.d.cts → types-CC1bz68x.d.cts} +30 -1
  37. package/dist/{types-BYZldock.d.ts → types-CC1bz68x.d.ts} +30 -1
  38. package/package.json +8 -3
  39. package/dist/chunk-CXGKOJRJ.js.map +0 -1
@@ -572,6 +572,10 @@ var environmentOperations = {
572
572
  "apis.scopes.define": { action: "apis.scopes.define", operationId: "apis_scopes_define", method: "PUT", path: "/apis/{id}/scopes/{key}", pathParams: ["id", "key"], scope: "apis:write", danger: "write", approval: true, body: true, pagination: null },
573
573
  "apis.scopes.remove": { action: "apis.scopes.remove", operationId: "apis_scopes_remove", method: "DELETE", path: "/apis/{id}/scopes/{key}", pathParams: ["id", "key"], scope: "apis:write", danger: "destructive", approval: true, body: false, pagination: null },
574
574
  "apis.update": { action: "apis.update", operationId: null, method: "PATCH", path: "/apis/{id}", pathParams: ["id"], scope: "apis:write", danger: "write", approval: true, body: true, pagination: null },
575
+ "app_catalog.delete": { action: "app_catalog.delete", operationId: "app_catalog_delete", method: "DELETE", path: "/app-catalog/{key}", pathParams: ["key"], scope: "app_catalog:write", danger: "destructive", approval: true, body: true, pagination: null },
576
+ "app_catalog.list": { action: "app_catalog.list", operationId: "app_catalog_list", method: "GET", path: "/app-catalog", pathParams: [], scope: "app_catalog:read", danger: "read", approval: true, body: false, pagination: null },
577
+ "app_catalog.save": { action: "app_catalog.save", operationId: "app_catalog_save", method: "PUT", path: "/app-catalog/{key}", pathParams: ["key"], scope: "app_catalog:write", danger: "write", approval: true, body: true, pagination: null },
578
+ "app_catalog.show": { action: "app_catalog.show", operationId: "app_catalog_show", method: "GET", path: "/app-catalog/{key}", pathParams: ["key"], scope: "app_catalog:read", danger: "read", approval: true, body: false, pagination: null },
575
579
  "approvals.deny": { action: "approvals.deny", operationId: "approvals_deny", method: "POST", path: "/agent-requests/{request_id}/deny", pathParams: ["request_id"], scope: "approvals:write", danger: "destructive", approval: true, body: false, pagination: null },
576
580
  "approvals.list": { action: "approvals.list", operationId: "approvals_list", method: "GET", path: "/agent-requests", pathParams: [], scope: "approvals:read", danger: "read", approval: true, body: false, pagination: "cursor" },
577
581
  "apps.blueprint": { action: "apps.blueprint", operationId: "apps_blueprint", method: "GET", path: "/apps/{id}/blueprint", pathParams: ["id"], scope: "apps:read", danger: "read", approval: true, body: false, pagination: null },
@@ -588,6 +592,7 @@ var environmentOperations = {
588
592
  "apps.secrets.rotate": { action: "apps.secrets.rotate", operationId: "apps_secrets_rotate", method: "POST", path: "/apps/{id}/secrets", pathParams: ["id"], scope: "apps:write", danger: "critical", approval: true, body: true, pagination: null },
589
593
  "apps.settings.api_key_prefix": { action: "apps.settings.api_key_prefix", operationId: "apps_settings_api_key_prefix", method: "PUT", path: "/apps/{id}/settings/api-key-prefix", pathParams: ["id"], scope: "apps:write", danger: "write", approval: true, body: true, pagination: null },
590
594
  "apps.settings.backchannel_logout": { action: "apps.settings.backchannel_logout", operationId: "apps_settings_backchannel_logout", method: "PUT", path: "/apps/{id}/settings/backchannel-logout", pathParams: ["id"], scope: "apps:write", danger: "write", approval: true, body: true, pagination: null },
595
+ "apps.settings.client_credentials": { action: "apps.settings.client_credentials", operationId: "apps_settings_client_credentials", method: "PUT", path: "/apps/{id}/settings/client-credentials", pathParams: ["id"], scope: "apps:write", danger: "write", approval: true, body: true, pagination: null },
591
596
  "apps.settings.token_exchange": { action: "apps.settings.token_exchange", operationId: "apps_settings_token_exchange", method: "PUT", path: "/apps/{id}/settings/token-exchange", pathParams: ["id"], scope: "apps:write", danger: "write", approval: true, body: true, pagination: null },
592
597
  "apps.settings.token_lifetime": { action: "apps.settings.token_lifetime", operationId: "apps_settings_token_lifetime", method: "PUT", path: "/apps/{id}/settings/token-lifetime", pathParams: ["id"], scope: "apps:write", danger: "write", approval: true, body: true, pagination: null },
593
598
  "apps.update": { action: "apps.update", operationId: "apps_update", method: "PATCH", path: "/apps/{id}", pathParams: ["id"], scope: "apps:write", danger: "write", approval: true, body: true, pagination: null },
@@ -604,18 +609,23 @@ var environmentOperations = {
604
609
  "audit_logs.settings.update": { action: "audit_logs.settings.update", operationId: "audit_logs_settings_update", method: "PATCH", path: "/audit-logs/settings", pathParams: [], scope: "audit_logs:manage", danger: "destructive", approval: true, body: true, pagination: null },
605
610
  "audit_logs.verify": { action: "audit_logs.verify", operationId: "audit_logs_verify", method: "GET", path: "/audit-logs/verify", pathParams: [], scope: "audit_logs:read", danger: "read", approval: true, body: false, pagination: null },
606
611
  "audit.list": { action: "audit.list", operationId: "audit_list", method: "GET", path: "/audit-log", pathParams: [], scope: "audit:read", danger: "read", approval: true, body: false, pagination: "cursor" },
612
+ "authenticator.me.list": { action: null, operationId: "authenticatorIdentity", method: "GET", path: "/authenticator/me", pathParams: [], scope: null, danger: null, approval: false, body: false, pagination: null },
607
613
  "branding.appearance.get": { action: "branding.appearance.get", operationId: "branding_appearance_get", method: "GET", path: "/branding/appearance", pathParams: [], scope: "branding:read", danger: "read", approval: true, body: false, pagination: null },
608
614
  "branding.appearance.set": { action: "branding.appearance.set", operationId: "branding_appearance_set", method: "PUT", path: "/branding/appearance", pathParams: [], scope: "branding:write", danger: "write", approval: true, body: true, pagination: null },
609
615
  "branding.whitelabel.get": { action: "branding.whitelabel.get", operationId: "branding_whitelabel_get", method: "GET", path: "/branding/whitelabel", pathParams: [], scope: "branding:read", danger: "read", approval: true, body: false, pagination: null },
610
616
  "branding.whitelabel.set": { action: "branding.whitelabel.set", operationId: "branding_whitelabel_set", method: "PUT", path: "/branding/whitelabel", pathParams: [], scope: "branding:write", danger: "write", approval: true, body: true, pagination: null },
611
617
  "directories.connect": { action: "directories.connect", operationId: "directories_connect", method: "POST", path: "/directories/connect", pathParams: [], scope: "directory_sync:write", danger: "critical", approval: true, body: true, pagination: null },
612
618
  "directories.create": { action: "directories.create", operationId: "directories_create", method: "POST", path: "/directories", pathParams: [], scope: "directory_sync:write", danger: "critical", approval: true, body: true, pagination: null },
619
+ "directories.credentials.replace": { action: "directories.credentials.replace", operationId: "directories_credentials_replace", method: "PUT", path: "/directories/{id}/credentials", pathParams: ["id"], scope: "directory_sync:write", danger: "critical", approval: true, body: true, pagination: null },
613
620
  "directories.delete": { action: "directories.delete", operationId: "directories_delete", method: "DELETE", path: "/directories/{id}", pathParams: ["id"], scope: "directory_sync:write", danger: "destructive", approval: true, body: true, pagination: null },
614
621
  "directories.get": { action: "directories.get", operationId: "directories_get", method: "GET", path: "/directories/{id}", pathParams: ["id"], scope: "directory_sync:read", danger: "read", approval: true, body: false, pagination: null },
615
622
  "directories.groups.list": { action: "directories.groups.list", operationId: "directories_groups_list", method: "GET", path: "/directories/{id}/groups", pathParams: ["id"], scope: "directory_sync:read", danger: "read", approval: true, body: false, pagination: "cursor" },
616
623
  "directories.groups.map": { action: "directories.groups.map", operationId: "directories_groups_map", method: "POST", path: "/directories/{id}/group-roles", pathParams: ["id"], scope: "directory_sync:write", danger: "write", approval: true, body: true, pagination: null },
624
+ "directories.hris.connect": { action: "directories.hris.connect", operationId: "directories_hris_connect", method: "POST", path: "/directories/hris", pathParams: [], scope: "directory_sync:write", danger: "critical", approval: true, body: true, pagination: null },
617
625
  "directories.list": { action: "directories.list", operationId: "directories_list", method: "GET", path: "/directories", pathParams: [], scope: "directory_sync:read", danger: "read", approval: true, body: false, pagination: "cursor" },
618
626
  "directories.status.set": { action: "directories.status.set", operationId: "directories_status_set", method: "POST", path: "/directories/{id}/status", pathParams: ["id"], scope: "directory_sync:write", danger: "write", approval: true, body: true, pagination: null },
627
+ "directories.sync": { action: "directories.sync", operationId: "directories_sync", method: "POST", path: "/directories/{id}/sync", pathParams: ["id"], scope: "directory_sync:write", danger: "write", approval: true, body: true, pagination: null },
628
+ "directories.sync_settings.update": { action: "directories.sync_settings.update", operationId: "directories_sync_settings_update", method: "PATCH", path: "/directories/{id}/sync-settings", pathParams: ["id"], scope: "directory_sync:write", danger: "write", approval: true, body: true, pagination: null },
619
629
  "directories.token.rotate": { action: "directories.token.rotate", operationId: "directories_token_rotate", method: "POST", path: "/directories/{id}/rotate", pathParams: ["id"], scope: "directory_sync:write", danger: "critical", approval: true, body: true, pagination: null },
620
630
  "directories.update": { action: "directories.update", operationId: "directories_update", method: "PATCH", path: "/directories/{id}", pathParams: ["id"], scope: "directory_sync:write", danger: "write", approval: true, body: true, pagination: null },
621
631
  "domains.add": { action: "domains.add", operationId: "domains_add", method: "POST", path: "/domains", pathParams: [], scope: "domains:write", danger: "write", approval: true, body: true, pagination: null },
@@ -623,6 +633,22 @@ var environmentOperations = {
623
633
  "domains.remove": { action: "domains.remove", operationId: "domains_remove", method: "DELETE", path: "/domains", pathParams: [], scope: "domains:write", danger: "destructive", approval: true, body: false, pagination: null },
624
634
  "domains.verify": { action: "domains.verify", operationId: "domains_verify", method: "POST", path: "/domains/verify", pathParams: [], scope: "domains:write", danger: "write", approval: true, body: false, pagination: null },
625
635
  "events.list": { action: "events.list", operationId: "events_list", method: "GET", path: "/events", pathParams: [], scope: "events:read", danger: "read", approval: true, body: false, pagination: "cursor" },
636
+ "feature_flags.create": { action: "feature_flags.create", operationId: "feature_flags_create", method: "POST", path: "/feature-flags", pathParams: [], scope: "feature_flags:write", danger: "write", approval: true, body: true, pagination: null },
637
+ "feature_flags.delete": { action: "feature_flags.delete", operationId: "feature_flags_delete", method: "DELETE", path: "/feature-flags/{id}", pathParams: ["id"], scope: "feature_flags:write", danger: "destructive", approval: true, body: false, pagination: null },
638
+ "feature_flags.evaluate": { action: "feature_flags.evaluate", operationId: "feature_flags_evaluate", method: "GET", path: "/feature-flags/evaluate", pathParams: [], scope: "feature_flags:read", danger: "read", approval: true, body: false, pagination: null },
639
+ "feature_flags.get": { action: "feature_flags.get", operationId: "feature_flags_get", method: "GET", path: "/feature-flags/{id}", pathParams: ["id"], scope: "feature_flags:read", danger: "read", approval: true, body: false, pagination: null },
640
+ "feature_flags.list": { action: "feature_flags.list", operationId: "feature_flags_list", method: "GET", path: "/feature-flags", pathParams: [], scope: "feature_flags:read", danger: "read", approval: true, body: false, pagination: "cursor" },
641
+ "feature_flags.update": { action: "feature_flags.update", operationId: "feature_flags_update", method: "PATCH", path: "/feature-flags/{id}", pathParams: ["id"], scope: "feature_flags:write", danger: "write", approval: true, body: true, pagination: null },
642
+ "fga.check": { action: "fga.check", operationId: "fga_check", method: "GET", path: "/fga/check", pathParams: [], scope: "fga:read", danger: "read", approval: true, body: false, pagination: null },
643
+ "fga.check_batch": { action: "fga.check_batch", operationId: "fga_check_batch", method: "GET", path: "/fga/check/batch", pathParams: [], scope: "fga:read", danger: "read", approval: true, body: false, pagination: null },
644
+ "fga.resources.list": { action: "fga.resources.list", operationId: "fga_resources_list", method: "GET", path: "/fga/resources", pathParams: [], scope: "fga:read", danger: "read", approval: true, body: false, pagination: "cursor" },
645
+ "fga.schema.get": { action: "fga.schema.get", operationId: "fga_schema_get", method: "GET", path: "/fga/schema", pathParams: [], scope: "fga:read", danger: "read", approval: true, body: false, pagination: null },
646
+ "fga.schema.update": { action: "fga.schema.update", operationId: "fga_schema_update", method: "PUT", path: "/fga/schema", pathParams: [], scope: "fga:schema", danger: "critical", approval: true, body: true, pagination: null },
647
+ "fga.schema.validate": { action: "fga.schema.validate", operationId: "fga_schema_validate", method: "GET", path: "/fga/schema/validate", pathParams: [], scope: "fga:read", danger: "read", approval: true, body: false, pagination: null },
648
+ "fga.subjects.list": { action: "fga.subjects.list", operationId: "fga_subjects_list", method: "GET", path: "/fga/subjects", pathParams: [], scope: "fga:read", danger: "read", approval: true, body: false, pagination: "cursor" },
649
+ "fga.tuples.delete": { action: "fga.tuples.delete", operationId: "fga_tuples_delete", method: "POST", path: "/fga/tuples/delete", pathParams: [], scope: "fga:write", danger: "destructive", approval: true, body: true, pagination: null },
650
+ "fga.tuples.list": { action: "fga.tuples.list", operationId: "fga_tuples_list", method: "GET", path: "/fga/tuples", pathParams: [], scope: "fga:read", danger: "read", approval: true, body: false, pagination: "cursor" },
651
+ "fga.tuples.write": { action: "fga.tuples.write", operationId: "fga_tuples_write", method: "POST", path: "/fga/tuples", pathParams: [], scope: "fga:write", danger: "write", approval: true, body: true, pagination: null },
626
652
  "frontend_keys.create": { action: "frontend_keys.create", operationId: "frontend_keys_create", method: "POST", path: "/frontend-keys", pathParams: [], scope: "frontend_keys:write", danger: "write", approval: true, body: true, pagination: null },
627
653
  "frontend_keys.list": { action: "frontend_keys.list", operationId: "frontend_keys_list", method: "GET", path: "/frontend-keys", pathParams: [], scope: "frontend_keys:read", danger: "read", approval: true, body: false, pagination: "cursor" },
628
654
  "frontend_keys.revoke": { action: "frontend_keys.revoke", operationId: "frontend_keys_revoke", method: "DELETE", path: "/frontend-keys/{id}", pathParams: ["id"], scope: "frontend_keys:write", danger: "destructive", approval: true, body: false, pagination: null },
@@ -632,6 +658,7 @@ var environmentOperations = {
632
658
  "hooks.get": { action: "hooks.get", operationId: "hooks_get", method: "GET", path: "/hooks/{id}", pathParams: ["id"], scope: "hooks:read", danger: "read", approval: true, body: false, pagination: null },
633
659
  "hooks.list": { action: "hooks.list", operationId: "hooks_list", method: "GET", path: "/hooks", pathParams: [], scope: "hooks:read", danger: "read", approval: true, body: false, pagination: "cursor" },
634
660
  "hooks.update": { action: "hooks.update", operationId: "hooks_update", method: "PATCH", path: "/hooks/{id}", pathParams: ["id"], scope: "hooks:write", danger: "critical", approval: true, body: true, pagination: null },
661
+ "invitations.get": { action: "invitations.get", operationId: "invitations_get", method: "GET", path: "/organizations/{organization_id}/invitations/{invitation_id}", pathParams: ["organization_id", "invitation_id"], scope: "invitations:read", danger: "read", approval: true, body: false, pagination: null },
635
662
  "invitations.list": { action: "invitations.list", operationId: "invitations_list", method: "GET", path: "/organizations/{organization_id}/invitations", pathParams: ["organization_id"], scope: "invitations:read", danger: "read", approval: true, body: false, pagination: "cursor" },
636
663
  "invitations.resend": { action: "invitations.resend", operationId: "invitations_resend", method: "POST", path: "/organizations/{organization_id}/invitations/{invitation_id}/resend", pathParams: ["organization_id", "invitation_id"], scope: "invitations:write", danger: "write", approval: true, body: false, pagination: null },
637
664
  "invitations.revoke": { action: "invitations.revoke", operationId: "invitations_revoke", method: "DELETE", path: "/organizations/{organization_id}/invitations/{invitation_id}", pathParams: ["organization_id", "invitation_id"], scope: "invitations:write", danger: "destructive", approval: true, body: false, pagination: null },
@@ -651,6 +678,7 @@ var environmentOperations = {
651
678
  "log_streams.test": { action: "log_streams.test", operationId: "log_streams_test", method: "POST", path: "/log-streams/{id}/test", pathParams: ["id"], scope: "log_streams:write", danger: "write", approval: true, body: false, pagination: null },
652
679
  "log_streams.update": { action: "log_streams.update", operationId: "log_streams_update", method: "PATCH", path: "/log-streams/{id}", pathParams: ["id"], scope: "log_streams:write", danger: "critical", approval: true, body: true, pagination: null },
653
680
  "members.add": { action: "members.add", operationId: "members_add", method: "POST", path: "/organizations/{organization_id}/members", pathParams: ["organization_id"], scope: "members:write", danger: "write", approval: true, body: true, pagination: null },
681
+ "members.apps.roles.replace": { action: "members.apps.roles.replace", operationId: "members_apps_roles_replace", method: "PUT", path: "/organizations/{organization_id}/members/{user_id}/apps/{client_id}/roles", pathParams: ["organization_id", "user_id", "client_id"], scope: "roles:write", danger: "write", approval: true, body: true, pagination: null },
654
682
  "members.list": { action: "members.list", operationId: "members_list", method: "GET", path: "/organizations/{organization_id}/members", pathParams: ["organization_id"], scope: "members:read", danger: "read", approval: true, body: false, pagination: "cursor" },
655
683
  "members.remove": { action: "members.remove", operationId: "members_remove", method: "DELETE", path: "/organizations/{organization_id}/members/{user_id}", pathParams: ["organization_id", "user_id"], scope: "members:write", danger: "destructive", approval: true, body: false, pagination: null },
656
684
  "members.roles.grant": { action: "members.roles.grant", operationId: "members_roles_grant", method: "PUT", path: "/organizations/{organization_id}/members/{user_id}/roles/{role_id}", pathParams: ["organization_id", "user_id", "role_id"], scope: "roles:write", danger: "write", approval: true, body: false, pagination: null },
@@ -677,12 +705,36 @@ var environmentOperations = {
677
705
  "permissions.delete": { action: "permissions.delete", operationId: "permissions_delete", method: "DELETE", path: "/permissions/{id}", pathParams: ["id"], scope: "role_definitions:write", danger: "destructive", approval: true, body: false, pagination: null },
678
706
  "permissions.list": { action: "permissions.list", operationId: "permissions_list", method: "GET", path: "/permissions", pathParams: [], scope: "roles:read", danger: "read", approval: true, body: false, pagination: "cursor" },
679
707
  "permissions.update": { action: "permissions.update", operationId: "permissions_update", method: "PATCH", path: "/permissions/{id}", pathParams: ["id"], scope: "role_definitions:write", danger: "write", approval: true, body: true, pagination: null },
708
+ "pipes.connections.delete": { action: "pipes.connections.delete", operationId: "pipes_connections_delete", method: "DELETE", path: "/pipes/{id}/connections/{connection_id}", pathParams: ["id", "connection_id"], scope: "pipes:write", danger: "destructive", approval: true, body: false, pagination: null },
709
+ "pipes.connections.list": { action: "pipes.connections.list", operationId: "pipes_connections_list", method: "GET", path: "/pipes/{id}/connections", pathParams: ["id"], scope: "pipes:read", danger: "read", approval: true, body: false, pagination: "cursor" },
710
+ "pipes.create": { action: "pipes.create", operationId: "pipes_create", method: "POST", path: "/pipes", pathParams: [], scope: "pipes:write", danger: "write", approval: true, body: true, pagination: null },
711
+ "pipes.delete": { action: "pipes.delete", operationId: "pipes_delete", method: "DELETE", path: "/pipes/{id}", pathParams: ["id"], scope: "pipes:write", danger: "destructive", approval: true, body: false, pagination: null },
712
+ "pipes.get": { action: "pipes.get", operationId: "pipes_get", method: "GET", path: "/pipes/{id}", pathParams: ["id"], scope: "pipes:read", danger: "read", approval: true, body: false, pagination: null },
713
+ "pipes.grants.create": { action: "pipes.grants.create", operationId: "pipes_grants_create", method: "POST", path: "/pipes/{id}/grants", pathParams: ["id"], scope: "pipes:write", danger: "critical", approval: true, body: true, pagination: null },
714
+ "pipes.grants.delete": { action: "pipes.grants.delete", operationId: "pipes_grants_delete", method: "DELETE", path: "/pipes/{id}/grants/{client_id}", pathParams: ["id", "client_id"], scope: "pipes:write", danger: "destructive", approval: true, body: false, pagination: null },
715
+ "pipes.list": { action: "pipes.list", operationId: "pipes_list", method: "GET", path: "/pipes", pathParams: [], scope: "pipes:read", danger: "read", approval: true, body: false, pagination: "cursor" },
716
+ "pipes.update": { action: "pipes.update", operationId: "pipes_update", method: "PATCH", path: "/pipes/{id}", pathParams: ["id"], scope: "pipes:write", danger: "write", approval: true, body: true, pagination: null },
680
717
  "provisioning.targets.create": { action: "provisioning.targets.create", operationId: "provisioning_targets_create", method: "POST", path: "/provisioning-targets", pathParams: [], scope: "provisioning:write", danger: "critical", approval: true, body: true, pagination: null },
681
718
  "provisioning.targets.delete": { action: "provisioning.targets.delete", operationId: "provisioning_targets_delete", method: "DELETE", path: "/provisioning-targets/{id}", pathParams: ["id"], scope: "provisioning:write", danger: "destructive", approval: true, body: true, pagination: null },
682
719
  "provisioning.targets.get": { action: "provisioning.targets.get", operationId: "provisioning_targets_get", method: "GET", path: "/provisioning-targets/{id}", pathParams: ["id"], scope: "provisioning:read", danger: "read", approval: true, body: false, pagination: null },
683
720
  "provisioning.targets.list": { action: "provisioning.targets.list", operationId: "provisioning_targets_list", method: "GET", path: "/provisioning-targets", pathParams: [], scope: "provisioning:read", danger: "read", approval: true, body: false, pagination: "cursor" },
684
721
  "provisioning.targets.status.set": { action: "provisioning.targets.status.set", operationId: "provisioning_targets_status_set", method: "POST", path: "/provisioning-targets/{id}/status", pathParams: ["id"], scope: "provisioning:write", danger: "write", approval: true, body: true, pagination: null },
722
+ "radar.decisions.get": { action: "radar.decisions.get", operationId: "radar_decisions_get", method: "GET", path: "/radar/decisions/{id}", pathParams: ["id"], scope: "radar:read", danger: "read", approval: true, body: false, pagination: null },
723
+ "radar.decisions.list": { action: "radar.decisions.list", operationId: "radar_decisions_list", method: "GET", path: "/radar/decisions", pathParams: [], scope: "radar:read", danger: "read", approval: true, body: false, pagination: "cursor" },
724
+ "radar.lists.add": { action: "radar.lists.add", operationId: "radar_lists_add", method: "POST", path: "/radar/lists", pathParams: [], scope: "radar:write", danger: "write", approval: true, body: true, pagination: null },
725
+ "radar.lists.list": { action: "radar.lists.list", operationId: "radar_lists_list", method: "GET", path: "/radar/lists", pathParams: [], scope: "radar:read", danger: "read", approval: true, body: false, pagination: "cursor" },
726
+ "radar.lists.remove": { action: "radar.lists.remove", operationId: "radar_lists_remove", method: "DELETE", path: "/radar/lists/{id}", pathParams: ["id"], scope: "radar:write", danger: "destructive", approval: true, body: false, pagination: null },
727
+ "radar.mode.set": { action: "radar.mode.set", operationId: "radar_mode_set", method: "PUT", path: "/radar/mode", pathParams: [], scope: "radar:manage", danger: "critical", approval: true, body: true, pagination: null },
728
+ "radar.rules.create": { action: "radar.rules.create", operationId: "radar_rules_create", method: "POST", path: "/radar/rules", pathParams: [], scope: "radar:write", danger: "write", approval: true, body: true, pagination: null },
729
+ "radar.rules.delete": { action: "radar.rules.delete", operationId: "radar_rules_delete", method: "DELETE", path: "/radar/rules/{id}", pathParams: ["id"], scope: "radar:write", danger: "destructive", approval: true, body: false, pagination: null },
730
+ "radar.rules.get": { action: "radar.rules.get", operationId: "radar_rules_get", method: "GET", path: "/radar/rules/{id}", pathParams: ["id"], scope: "radar:read", danger: "read", approval: true, body: false, pagination: null },
731
+ "radar.rules.list": { action: "radar.rules.list", operationId: "radar_rules_list", method: "GET", path: "/radar/rules", pathParams: [], scope: "radar:read", danger: "read", approval: true, body: false, pagination: "cursor" },
732
+ "radar.rules.reorder": { action: "radar.rules.reorder", operationId: "radar_rules_reorder", method: "PUT", path: "/radar/rules/order", pathParams: [], scope: "radar:write", danger: "write", approval: true, body: true, pagination: null },
733
+ "radar.rules.update": { action: "radar.rules.update", operationId: "radar_rules_update", method: "PATCH", path: "/radar/rules/{id}", pathParams: ["id"], scope: "radar:write", danger: "write", approval: true, body: true, pagination: null },
734
+ "radar.settings.get": { action: "radar.settings.get", operationId: "radar_settings_get", method: "GET", path: "/radar/settings", pathParams: [], scope: "radar:read", danger: "read", approval: true, body: false, pagination: null },
735
+ "radar.settings.update": { action: "radar.settings.update", operationId: "radar_settings_update", method: "PATCH", path: "/radar/settings", pathParams: [], scope: "radar:write", danger: "write", approval: true, body: true, pagination: null },
685
736
  "roles.create": { action: "roles.create", operationId: "roles_create", method: "POST", path: "/roles", pathParams: [], scope: "role_definitions:write", danger: "write", approval: true, body: true, pagination: null },
737
+ "roles.definition.activate": { action: "roles.definition.activate", operationId: "roles_definition_activate", method: "POST", path: "/roles/{id}/definition/activate", pathParams: ["id"], scope: "role_definitions:write", danger: "destructive", approval: true, body: true, pagination: null },
686
738
  "roles.delete": { action: "roles.delete", operationId: "roles_delete", method: "DELETE", path: "/roles/{id}", pathParams: ["id"], scope: "role_definitions:write", danger: "destructive", approval: true, body: false, pagination: null },
687
739
  "roles.get": { action: "roles.get", operationId: "roles_get", method: "GET", path: "/roles/{id}", pathParams: ["id"], scope: "roles:read", danger: "read", approval: true, body: false, pagination: null },
688
740
  "roles.list": { action: "roles.list", operationId: "roles_list", method: "GET", path: "/roles", pathParams: [], scope: "roles:read", danger: "read", approval: true, body: false, pagination: null },
@@ -694,13 +746,22 @@ var environmentOperations = {
694
746
  "saml_apps.get": { action: "saml_apps.get", operationId: "saml_apps_get", method: "GET", path: "/saml-apps/{id}", pathParams: ["id"], scope: "saml_apps:read", danger: "read", approval: true, body: false, pagination: null },
695
747
  "saml_apps.list": { action: "saml_apps.list", operationId: "saml_apps_list", method: "GET", path: "/saml-apps", pathParams: [], scope: "saml_apps:read", danger: "read", approval: true, body: false, pagination: "cursor" },
696
748
  "saml_apps.update": { action: "saml_apps.update", operationId: "saml_apps_update", method: "PATCH", path: "/saml-apps/{id}", pathParams: ["id"], scope: "saml_apps:write", danger: "critical", approval: true, body: true, pagination: null },
749
+ "signals.source.erasures.list": { action: null, operationId: "signals_source_erasures", method: "GET", path: "/signals/source/erasures", pathParams: [], scope: null, danger: null, approval: false, body: false, pagination: "cursor" },
750
+ "signals.source.list": { action: null, operationId: "signals_source_list", method: "GET", path: "/signals/source", pathParams: [], scope: null, danger: null, approval: false, body: false, pagination: "cursor" },
697
751
  "signin.policy.get": { action: "signin.policy.get", operationId: "signin_policy_get", method: "GET", path: "/sign-in/policy", pathParams: [], scope: "signin:read", danger: "read", approval: true, body: false, pagination: null },
698
752
  "signin.policy.inherit": { action: "signin.policy.inherit", operationId: "signin_policy_inherit", method: "DELETE", path: "/sign-in/policy/organizations/{organization_id}", pathParams: ["organization_id"], scope: "signin:write", danger: "critical", approval: true, body: false, pagination: null },
699
753
  "signin.policy.update": { action: "signin.policy.update", operationId: "signin_policy_update", method: "PATCH", path: "/sign-in/policy", pathParams: [], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
700
754
  "signin.self_service_signup.set": { action: "signin.self_service_signup.set", operationId: "signin_self_service_signup_set", method: "PUT", path: "/sign-in/self-service-signup", pathParams: [], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
755
+ "signin.sms.get": { action: "signin.sms.get", operationId: "signin_sms_get", method: "GET", path: "/sign-in/sms", pathParams: [], scope: "signin:read", danger: "read", approval: true, body: false, pagination: null },
756
+ "signin.sms.update": { action: "signin.sms.update", operationId: "signin_sms_update", method: "PATCH", path: "/sign-in/sms", pathParams: [], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
701
757
  "signin.social.delete": { action: "signin.social.delete", operationId: "signin_social_delete", method: "DELETE", path: "/sign-in/social-providers/{id}", pathParams: ["id"], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
758
+ "signin.social.disable": { action: "signin.social.disable", operationId: "signin_social_disable", method: "POST", path: "/sign-in/social-providers/{id}/disable", pathParams: ["id"], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
759
+ "signin.social.enable": { action: "signin.social.enable", operationId: "signin_social_enable", method: "POST", path: "/sign-in/social-providers/{id}/enable", pathParams: ["id"], scope: "signin:write", danger: "write", approval: true, body: true, pagination: null },
760
+ "signin.social.inherit": { action: "signin.social.inherit", operationId: "signin_social_inherit", method: "PUT", path: "/sign-in/social-providers/inherited/{provider}", pathParams: ["provider"], scope: "signin:write", danger: "write", approval: true, body: true, pagination: null },
702
761
  "signin.social.list": { action: "signin.social.list", operationId: "signin_social_list", method: "GET", path: "/sign-in/social-providers", pathParams: [], scope: "signin:read", danger: "read", approval: true, body: false, pagination: "cursor" },
762
+ "signin.social.offered": { action: "signin.social.offered", operationId: "signin_social_offered", method: "GET", path: "/sign-in/social-providers/offered", pathParams: [], scope: "signin:read", danger: "read", approval: true, body: false, pagination: null },
703
763
  "signin.social.set": { action: "signin.social.set", operationId: "signin_social_set", method: "POST", path: "/sign-in/social-providers", pathParams: [], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
764
+ "signin.social.update": { action: "signin.social.update", operationId: "signin_social_update", method: "PATCH", path: "/sign-in/social-providers/{id}", pathParams: ["id"], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
704
765
  "sod_policies.create": { action: "sod_policies.create", operationId: "sod_policies_create", method: "POST", path: "/sod-policies", pathParams: [], scope: "governance:write", danger: "write", approval: true, body: true, pagination: null },
705
766
  "sod_policies.delete": { action: "sod_policies.delete", operationId: "sod_policies_delete", method: "DELETE", path: "/sod-policies/{id}", pathParams: ["id"], scope: "governance:write", danger: "critical", approval: true, body: true, pagination: null },
706
767
  "sod_policies.get": { action: "sod_policies.get", operationId: "sod_policies_get", method: "GET", path: "/sod-policies/{id}", pathParams: ["id"], scope: "governance:read", danger: "read", approval: true, body: false, pagination: null },
@@ -732,6 +793,8 @@ var environmentOperations = {
732
793
  "token_vault.secrets.list": { action: "token_vault.secrets.list", operationId: "token_vault_secrets_list", method: "GET", path: "/token-vault/secrets", pathParams: [], scope: "token_vault:read", danger: "read", approval: true, body: false, pagination: "cursor" },
733
794
  "token_vault.secrets.revoke": { action: "token_vault.secrets.revoke", operationId: "token_vault_secrets_revoke", method: "POST", path: "/token-vault/secrets/{id}/revoke", pathParams: ["id"], scope: "token_vault:write", danger: "destructive", approval: true, body: true, pagination: null },
734
795
  "token_vault.secrets.rotate": { action: "token_vault.secrets.rotate", operationId: "token_vault_secrets_rotate", method: "POST", path: "/token-vault/secrets/{id}/rotate", pathParams: ["id"], scope: "token_vault:write", danger: "critical", approval: true, body: true, pagination: null },
796
+ "user_property_namespaces.configure": { action: "user_property_namespaces.configure", operationId: "user_property_namespaces_configure", method: "PUT", path: "/user-property-namespaces/{name}", pathParams: ["name"], scope: "user_property_namespaces:write", danger: "critical", approval: true, body: true, pagination: null },
797
+ "user_property_namespaces.show": { action: "user_property_namespaces.show", operationId: "user_property_namespaces_show", method: "GET", path: "/user-property-namespaces/{name}", pathParams: ["name"], scope: "user_property_namespaces:read", danger: "read", approval: true, body: false, pagination: null },
735
798
  "users.create": { action: "users.create", operationId: "users_create", method: "POST", path: "/users", pathParams: [], scope: "users:write", danger: "write", approval: true, body: true, pagination: null },
736
799
  "users.deactivate": { action: "users.deactivate", operationId: "users_deactivate", method: "DELETE", path: "/users/{id}", pathParams: ["id"], scope: "users:write", danger: "destructive", approval: true, body: false, pagination: null },
737
800
  "users.environment_roles.get": { action: "users.environment_roles.get", operationId: "users_environment_roles_get", method: "GET", path: "/users/{id}/environment-roles/{role_id}", pathParams: ["id", "role_id"], scope: "roles:read", danger: "read", approval: true, body: false, pagination: null },
@@ -742,6 +805,7 @@ var environmentOperations = {
742
805
  "users.get": { action: "users.get", operationId: "users_get", method: "GET", path: "/users/{id}", pathParams: ["id"], scope: "users:read", danger: "read", approval: true, body: false, pagination: null },
743
806
  "users.list": { action: "users.list", operationId: "users_list", method: "GET", path: "/users", pathParams: [], scope: "users:read", danger: "read", approval: true, body: false, pagination: "cursor" },
744
807
  "users.mfa.reset": { action: "users.mfa.reset", operationId: "users_mfa_reset", method: "DELETE", path: "/users/{id}/mfa", pathParams: ["id"], scope: "users:write", danger: "critical", approval: true, body: false, pagination: null },
808
+ "users.mfa.sms.remove": { action: "users.mfa.sms.remove", operationId: "users_mfa_sms_remove", method: "DELETE", path: "/users/{id}/mfa/sms", pathParams: ["id"], scope: "users:write", danger: "critical", approval: true, body: false, pagination: null },
745
809
  "users.password_reset.send": { action: "users.password_reset.send", operationId: "users_password_reset_send", method: "POST", path: "/users/{id}/password-reset", pathParams: ["id"], scope: "users:write", danger: "write", approval: true, body: false, pagination: null },
746
810
  "users.password.set": { action: "users.password.set", operationId: "users_password_set", method: "POST", path: "/users/{id}/password", pathParams: ["id"], scope: "users:write", danger: "critical", approval: true, body: true, pagination: null },
747
811
  "users.reactivate": { action: "users.reactivate", operationId: "users_reactivate", method: "POST", path: "/users/{id}/reactivate", pathParams: ["id"], scope: "users:write", danger: "write", approval: true, body: false, pagination: null },
@@ -977,6 +1041,52 @@ var EnvironmentClient = class {
977
1041
  remove: (id, key, options) => this.transport.call(environmentOperations["apis.scopes.remove"], [id, key], void 0, options)
978
1042
  }
979
1043
  };
1044
+ appCatalog = {
1045
+ /**
1046
+ * Remove a catalog app without deleting its OAuth clients or user data.
1047
+ *
1048
+ * Requires scope `app_catalog:write`. Danger: destructive.
1049
+ *
1050
+ * `DELETE /app-catalog/{key}` · action `app_catalog.delete`
1051
+ * @scope `app_catalog:write`
1052
+ * @danger destructive
1053
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1054
+ */
1055
+ delete: (key, body, options) => this.transport.call(environmentOperations["app_catalog.delete"], [key], body, options),
1056
+ /**
1057
+ * List catalog apps, including drafts and visibility settings.
1058
+ *
1059
+ * Requires scope `app_catalog:read`. Danger: read.
1060
+ *
1061
+ * `GET /app-catalog` · action `app_catalog.list`
1062
+ * @scope `app_catalog:read`
1063
+ * @danger read
1064
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1065
+ */
1066
+ list: (options) => this.transport.call(environmentOperations["app_catalog.list"], [], void 0, options),
1067
+ /**
1068
+ * Create or replace a catalog app, its icon and visibility. Version zero creates; a stale version conflicts.
1069
+ *
1070
+ * Requires scope `app_catalog:write`. Danger: write.
1071
+ *
1072
+ * `PUT /app-catalog/{key}` · action `app_catalog.save`
1073
+ * @scope `app_catalog:write`
1074
+ * @danger write
1075
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1076
+ */
1077
+ save: (key, body, options) => this.transport.call(environmentOperations["app_catalog.save"], [key], body, options),
1078
+ /**
1079
+ * Read a catalog app and its publication settings.
1080
+ *
1081
+ * Requires scope `app_catalog:read`. Danger: read.
1082
+ *
1083
+ * `GET /app-catalog/{key}` · action `app_catalog.show`
1084
+ * @scope `app_catalog:read`
1085
+ * @danger read
1086
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1087
+ */
1088
+ show: (key, options) => this.transport.call(environmentOperations["app_catalog.show"], [key], void 0, options)
1089
+ };
980
1090
  approvals = {
981
1091
  /**
982
1092
  * Deny a pending approval request (CIBA) for the person it was raised for: the agent gets access_denied and no token.
@@ -1200,6 +1310,17 @@ var EnvironmentClient = class {
1200
1310
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1201
1311
  */
1202
1312
  backchannelLogout: (id, body, options) => this.transport.call(environmentOperations["apps.settings.backchannel_logout"], [id], body, options),
1313
+ /**
1314
+ * Turn client-credentials authentication on or off for a confidential app; other grants and scopes stay unchanged.
1315
+ *
1316
+ * Requires scope `apps:write`. Danger: write.
1317
+ *
1318
+ * `PUT /apps/{id}/settings/client-credentials` · action `apps.settings.client_credentials`
1319
+ * @scope `apps:write`
1320
+ * @danger write
1321
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1322
+ */
1323
+ clientCredentials: (id, body, options) => this.transport.call(environmentOperations["apps.settings.client_credentials"], [id], body, options),
1203
1324
  /**
1204
1325
  * Turn token exchange (RFC 8693) on or off for a confidential app.
1205
1326
  *
@@ -1385,6 +1506,18 @@ var EnvironmentClient = class {
1385
1506
  /** Every item of `audit.list`, fetching pages as the iteration reaches them. */
1386
1507
  listAll: (query, options) => this.transport.paginate(environmentOperations["audit.list"], [], query, options)
1387
1508
  };
1509
+ authenticator = {
1510
+ me: {
1511
+ /**
1512
+ * Verified identity for the authenticator
1513
+ *
1514
+ * Requires the provisioned public authenticator client, devices.manage and a DPoP proof. Available before device registration; revoked keys are refused.
1515
+ *
1516
+ * `GET /authenticator/me`
1517
+ */
1518
+ list: (options) => this.transport.call(environmentOperations["authenticator.me.list"], [], void 0, options)
1519
+ }
1520
+ };
1388
1521
  branding = {
1389
1522
  appearance: {
1390
1523
  /**
@@ -1399,7 +1532,7 @@ var EnvironmentClient = class {
1399
1532
  */
1400
1533
  get: (query, options) => this.transport.call(environmentOperations["branding.appearance.get"], [], query, options),
1401
1534
  /**
1402
- * Set the hosted sign-in theme (preset, colours, corners, type, logo) for the environment default or one organization.
1535
+ * Set the hosted sign-in theme (preset, colours, corners, type, uploaded logo and favicon) for the environment default or one organization.
1403
1536
  *
1404
1537
  * Requires scope `branding:write`. Danger: write.
1405
1538
  *
@@ -1493,6 +1626,17 @@ var EnvironmentClient = class {
1493
1626
  list: (query, options) => this.transport.call(environmentOperations["directories.list"], [], query, options),
1494
1627
  /** Every item of `directories.list`, fetching pages as the iteration reaches them. */
1495
1628
  listAll: (query, options) => this.transport.paginate(environmentOperations["directories.list"], [], query, options),
1629
+ /**
1630
+ * Pull a Google Workspace, Microsoft Entra or HR-system directory now, on a worker. `full` asks an HR system for everybody rather than what changed.
1631
+ *
1632
+ * Requires scope `directory_sync:write`. Danger: write.
1633
+ *
1634
+ * `POST /directories/{id}/sync` · action `directories.sync`
1635
+ * @scope `directory_sync:write`
1636
+ * @danger write
1637
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1638
+ */
1639
+ sync: (id, body, options) => this.transport.call(environmentOperations["directories.sync"], [id], body, options),
1496
1640
  /**
1497
1641
  * Rename an inbound directory.
1498
1642
  *
@@ -1504,6 +1648,19 @@ var EnvironmentClient = class {
1504
1648
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1505
1649
  */
1506
1650
  update: (id, body, options) => this.transport.call(environmentOperations["directories.update"], [id], body, options),
1651
+ credentials: {
1652
+ /**
1653
+ * Replace a pull directory's provider credentials, verifying the new ones first. Write-only; never returned.
1654
+ *
1655
+ * Requires scope `directory_sync:write`. Danger: critical.
1656
+ *
1657
+ * `PUT /directories/{id}/credentials` · action `directories.credentials.replace`
1658
+ * @scope `directory_sync:write`
1659
+ * @danger critical
1660
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1661
+ */
1662
+ replace: (id, body, options) => this.transport.call(environmentOperations["directories.credentials.replace"], [id], body, options)
1663
+ },
1507
1664
  groups: {
1508
1665
  /**
1509
1666
  * List the groups a directory has synced, with the role ids each group is mapped onto.
@@ -1530,6 +1687,19 @@ var EnvironmentClient = class {
1530
1687
  */
1531
1688
  map: (id, body, options) => this.transport.call(environmentOperations["directories.groups.map"], [id], body, options)
1532
1689
  },
1690
+ hris: {
1691
+ /**
1692
+ * Connect an HR system (Workday, BambooHR, Rippling, HiBob or Personio) to sync an organization's people from, verifying the credentials first. The first sync is queued.
1693
+ *
1694
+ * Requires scope `directory_sync:write`. Danger: critical.
1695
+ *
1696
+ * `POST /directories/hris` · action `directories.hris.connect`
1697
+ * @scope `directory_sync:write`
1698
+ * @danger critical
1699
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1700
+ */
1701
+ connect: (body, options) => this.transport.call(environmentOperations["directories.hris.connect"], [], body, options)
1702
+ },
1533
1703
  status: {
1534
1704
  /**
1535
1705
  * Pause or resume an inbound directory's provisioning.
@@ -1543,6 +1713,19 @@ var EnvironmentClient = class {
1543
1713
  */
1544
1714
  set: (id, body, options) => this.transport.call(environmentOperations["directories.status.set"], [id], body, options)
1545
1715
  },
1716
+ syncSettings: {
1717
+ /**
1718
+ * Set how often a pull directory syncs, and for an HR system which of its fields pass through onto people.
1719
+ *
1720
+ * Requires scope `directory_sync:write`. Danger: write.
1721
+ *
1722
+ * `PATCH /directories/{id}/sync-settings` · action `directories.sync_settings.update`
1723
+ * @scope `directory_sync:write`
1724
+ * @danger write
1725
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1726
+ */
1727
+ update: (id, body, options) => this.transport.call(environmentOperations["directories.sync_settings.update"], [id], body, options)
1728
+ },
1546
1729
  token: {
1547
1730
  /**
1548
1731
  * Issue a new bearer token for a SCIM directory, returned once. The old token stops working immediately.
@@ -1618,6 +1801,202 @@ var EnvironmentClient = class {
1618
1801
  /** Every item of `events.list`, fetching pages as the iteration reaches them. */
1619
1802
  listAll: (query, options) => this.transport.paginate(environmentOperations["events.list"], [], query, options)
1620
1803
  };
1804
+ featureFlags = {
1805
+ /**
1806
+ * Define a feature flag: a key apps ask about, its default, and who it is on for — named users, named organizations, a rollout percentage.
1807
+ *
1808
+ * Requires scope `feature_flags:write`. Danger: write.
1809
+ *
1810
+ * `POST /feature-flags` · action `feature_flags.create`
1811
+ * @scope `feature_flags:write`
1812
+ * @danger write
1813
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1814
+ */
1815
+ create: (body, options) => this.transport.call(environmentOperations["feature_flags.create"], [], body, options),
1816
+ /**
1817
+ * Delete a feature flag and its rules. Its key evaluates to off from now on; tokens already minted keep it until they expire.
1818
+ *
1819
+ * Requires scope `feature_flags:write`. Danger: destructive.
1820
+ *
1821
+ * `DELETE /feature-flags/{id}` · action `feature_flags.delete`
1822
+ * @scope `feature_flags:write`
1823
+ * @danger destructive
1824
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1825
+ */
1826
+ delete: (id, options) => this.transport.call(environmentOperations["feature_flags.delete"], [id], void 0, options),
1827
+ /**
1828
+ * Evaluate every feature flag for a user in an organization: whether each is on, and the rule that decided. For app backends without a token in hand.
1829
+ *
1830
+ * Requires scope `feature_flags:read`. Danger: read.
1831
+ *
1832
+ * `GET /feature-flags/evaluate` · action `feature_flags.evaluate`
1833
+ * @scope `feature_flags:read`
1834
+ * @danger read
1835
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1836
+ */
1837
+ evaluate: (query, options) => this.transport.call(environmentOperations["feature_flags.evaluate"], [], query, options),
1838
+ /**
1839
+ * Read one feature flag: its default, whether it is switched on, and every user, organization and rollout rule.
1840
+ *
1841
+ * Requires scope `feature_flags:read`. Danger: read.
1842
+ *
1843
+ * `GET /feature-flags/{id}` · action `feature_flags.get`
1844
+ * @scope `feature_flags:read`
1845
+ * @danger read
1846
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1847
+ */
1848
+ get: (id, options) => this.transport.call(environmentOperations["feature_flags.get"], [id], void 0, options),
1849
+ /**
1850
+ * List this environment's feature flags with their default, kill switch and targeting rules.
1851
+ *
1852
+ * Requires scope `feature_flags:read`. Danger: read.
1853
+ *
1854
+ * `GET /feature-flags` · action `feature_flags.list`
1855
+ * @scope `feature_flags:read`
1856
+ * @danger read
1857
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1858
+ */
1859
+ list: (query, options) => this.transport.call(environmentOperations["feature_flags.list"], [], query, options),
1860
+ /** Every item of `feature_flags.list`, fetching pages as the iteration reaches them. */
1861
+ listAll: (query, options) => this.transport.paginate(environmentOperations["feature_flags.list"], [], query, options),
1862
+ /**
1863
+ * Change a feature flag: switch it on or off for everyone, change its default, or replace its user rules, organization rules or rollout percentage.
1864
+ *
1865
+ * Requires scope `feature_flags:write`. Danger: write.
1866
+ *
1867
+ * `PATCH /feature-flags/{id}` · action `feature_flags.update`
1868
+ * @scope `feature_flags:write`
1869
+ * @danger write
1870
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1871
+ */
1872
+ update: (id, body, options) => this.transport.call(environmentOperations["feature_flags.update"], [id], body, options)
1873
+ };
1874
+ fga = {
1875
+ /**
1876
+ * Check whether a subject has a relation on a resource — directly, through computed relations, parents or nested groups. Optionally at least as fresh as a consistency_token.
1877
+ *
1878
+ * Requires scope `fga:read`. Danger: read.
1879
+ *
1880
+ * `GET /fga/check` · action `fga.check`
1881
+ * @scope `fga:read`
1882
+ * @danger read
1883
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1884
+ */
1885
+ check: (query, options) => this.transport.call(environmentOperations["fga.check"], [], query, options),
1886
+ /**
1887
+ * Run 1–100 checks in one round trip, each written resource#relation@subject (document:readme#viewer@user:alice), all at the same revision, answered in order.
1888
+ *
1889
+ * Requires scope `fga:read`. Danger: read.
1890
+ *
1891
+ * `GET /fga/check/batch` · action `fga.check_batch`
1892
+ * @scope `fga:read`
1893
+ * @danger read
1894
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1895
+ */
1896
+ checkBatch: (query, options) => this.transport.call(environmentOperations["fga.check_batch"], [], query, options),
1897
+ resources: {
1898
+ /**
1899
+ * List the resources of one type a subject has a relation on (e.g. every document alice can view), through all inheritance; sorted ids, paged with after.
1900
+ *
1901
+ * Requires scope `fga:read`. Danger: read.
1902
+ *
1903
+ * `GET /fga/resources` · action `fga.resources.list`
1904
+ * @scope `fga:read`
1905
+ * @danger read
1906
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1907
+ */
1908
+ list: (query, options) => this.transport.call(environmentOperations["fga.resources.list"], [], query, options),
1909
+ /** Every item of `fga.resources.list`, fetching pages as the iteration reaches them. */
1910
+ listAll: (query, options) => this.transport.paginate(environmentOperations["fga.resources.list"], [], query, options)
1911
+ },
1912
+ schema: {
1913
+ /**
1914
+ * Read this environment's fine-grained authorization schema: the source text, its parsed types and relations, its version, and the current consistency token.
1915
+ *
1916
+ * Requires scope `fga:read`. Danger: read.
1917
+ *
1918
+ * `GET /fga/schema` · action `fga.schema.get`
1919
+ * @scope `fga:read`
1920
+ * @danger read
1921
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1922
+ */
1923
+ get: (options) => this.transport.call(environmentOperations["fga.schema.get"], [], void 0, options),
1924
+ /**
1925
+ * Replace this environment's fine-grained authorization schema (types, relations and how each is decided). Changes the answer to every check at once; refused if invalid or if existing tuples would no longer fit.
1926
+ *
1927
+ * Requires scope `fga:schema`. Danger: critical.
1928
+ *
1929
+ * `PUT /fga/schema` · action `fga.schema.update`
1930
+ * @scope `fga:schema`
1931
+ * @danger critical
1932
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1933
+ */
1934
+ update: (body, options) => this.transport.call(environmentOperations["fga.schema.update"], [], body, options),
1935
+ /**
1936
+ * Check a fine-grained authorization schema without saving it: every error by line, or the parsed types and canonical text.
1937
+ *
1938
+ * Requires scope `fga:read`. Danger: read.
1939
+ *
1940
+ * `GET /fga/schema/validate` · action `fga.schema.validate`
1941
+ * @scope `fga:read`
1942
+ * @danger read
1943
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1944
+ */
1945
+ validate: (query, options) => this.transport.call(environmentOperations["fga.schema.validate"], [], query, options)
1946
+ },
1947
+ subjects: {
1948
+ /**
1949
+ * List the subjects of one type that have a relation on a resource (e.g. every user who can view the readme), groups and inheritance expanded; sorted ids, paged with after.
1950
+ *
1951
+ * Requires scope `fga:read`. Danger: read.
1952
+ *
1953
+ * `GET /fga/subjects` · action `fga.subjects.list`
1954
+ * @scope `fga:read`
1955
+ * @danger read
1956
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1957
+ */
1958
+ list: (query, options) => this.transport.call(environmentOperations["fga.subjects.list"], [], query, options),
1959
+ /** Every item of `fga.subjects.list`, fetching pages as the iteration reaches them. */
1960
+ listAll: (query, options) => this.transport.paginate(environmentOperations["fga.subjects.list"], [], query, options)
1961
+ },
1962
+ tuples: {
1963
+ /**
1964
+ * Delete 1–100 relationship tuples in one atomic batch. Revokes the access they granted, and everything inherited through them, at once.
1965
+ *
1966
+ * Requires scope `fga:write`. Danger: destructive.
1967
+ *
1968
+ * `POST /fga/tuples/delete` · action `fga.tuples.delete`
1969
+ * @scope `fga:write`
1970
+ * @danger destructive
1971
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1972
+ */
1973
+ delete: (body, options) => this.transport.call(environmentOperations["fga.tuples.delete"], [], body, options),
1974
+ /**
1975
+ * List stored relationship tuples oldest first, filtered by resource type and id, relation and subject; pass next_cursor as after to page.
1976
+ *
1977
+ * Requires scope `fga:read`. Danger: read.
1978
+ *
1979
+ * `GET /fga/tuples` · action `fga.tuples.list`
1980
+ * @scope `fga:read`
1981
+ * @danger read
1982
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1983
+ */
1984
+ list: (query, options) => this.transport.call(environmentOperations["fga.tuples.list"], [], query, options),
1985
+ /** Every item of `fga.tuples.list`, fetching pages as the iteration reaches them. */
1986
+ listAll: (query, options) => this.transport.paginate(environmentOperations["fga.tuples.list"], [], query, options),
1987
+ /**
1988
+ * Write 1–100 relationship tuples (resource#relation@subject) in one atomic batch, each checked against the schema. Grants access at once; returns a consistency_token for checks that must see it.
1989
+ *
1990
+ * Requires scope `fga:write`. Danger: write.
1991
+ *
1992
+ * `POST /fga/tuples` · action `fga.tuples.write`
1993
+ * @scope `fga:write`
1994
+ * @danger write
1995
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1996
+ */
1997
+ write: (body, options) => this.transport.call(environmentOperations["fga.tuples.write"], [], body, options)
1998
+ }
1999
+ };
1621
2000
  frontendKeys = {
1622
2001
  /**
1623
2002
  * Create a publishable frontend key for a browser app, usable only from the origins listed. The key is public by design.
@@ -1726,6 +2105,17 @@ var EnvironmentClient = class {
1726
2105
  update: (id, body, options) => this.transport.call(environmentOperations["hooks.update"], [id], body, options)
1727
2106
  };
1728
2107
  invitations = {
2108
+ /**
2109
+ * Get an invitation and its acceptance receipt, confined to its organization.
2110
+ *
2111
+ * Requires scope `invitations:read`. Danger: read.
2112
+ *
2113
+ * `GET /organizations/{organization_id}/invitations/{invitation_id}` · action `invitations.get`
2114
+ * @scope `invitations:read`
2115
+ * @danger read
2116
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2117
+ */
2118
+ get: (organizationId, invitationId, options) => this.transport.call(environmentOperations["invitations.get"], [organizationId, invitationId], void 0, options),
1729
2119
  /**
1730
2120
  * List an organization's pending invitations
1731
2121
  *
@@ -2025,6 +2415,21 @@ var EnvironmentClient = class {
2025
2415
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2026
2416
  */
2027
2417
  update: (organizationId, userId, body, options) => this.transport.call(environmentOperations["members.update"], [organizationId, userId], body, options),
2418
+ apps: {
2419
+ roles: {
2420
+ /**
2421
+ * Replace one app's member roles atomically. Other apps and the organization membership remain unchanged. An empty role list removes this app's access only.
2422
+ *
2423
+ * Requires scope `roles:write`. Danger: write.
2424
+ *
2425
+ * `PUT /organizations/{organization_id}/members/{user_id}/apps/{client_id}/roles` · action `members.apps.roles.replace`
2426
+ * @scope `roles:write`
2427
+ * @danger write
2428
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2429
+ */
2430
+ replace: (organizationId, userId, clientId, body, options) => this.transport.call(environmentOperations["members.apps.roles.replace"], [organizationId, userId, clientId], body, options)
2431
+ }
2432
+ },
2028
2433
  roles: {
2029
2434
  /**
2030
2435
  * Grant a member a role in the organization
@@ -2326,67 +2731,348 @@ var EnvironmentClient = class {
2326
2731
  */
2327
2732
  update: (id, body, options) => this.transport.call(environmentOperations["permissions.update"], [id], body, options)
2328
2733
  };
2734
+ pipes = {
2735
+ /**
2736
+ * Configure a pipe: the environment's OAuth app at a third-party provider (GitHub, Google, Microsoft 365, Slack, Salesforce, HubSpot, Linear, Notion), so people can connect their accounts. The client secret is sealed and never returned.
2737
+ *
2738
+ * Requires scope `pipes:write`. Danger: write.
2739
+ *
2740
+ * `POST /pipes` · action `pipes.create`
2741
+ * @scope `pipes:write`
2742
+ * @danger write
2743
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2744
+ */
2745
+ create: (body, options) => this.transport.call(environmentOperations["pipes.create"], [], body, options),
2746
+ /**
2747
+ * Remove a pipe and every connection through it. Their tokens are revoked here, not at the provider — disconnect people first if that matters.
2748
+ *
2749
+ * Requires scope `pipes:write`. Danger: destructive.
2750
+ *
2751
+ * `DELETE /pipes/{id}` · action `pipes.delete`
2752
+ * @scope `pipes:write`
2753
+ * @danger destructive
2754
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2755
+ */
2756
+ delete: (id, options) => this.transport.call(environmentOperations["pipes.delete"], [id], void 0, options),
2757
+ /**
2758
+ * Show one pipe: its provider, OAuth client id, scopes, the redirect URI to register at the provider, and the apps granted its tokens.
2759
+ *
2760
+ * Requires scope `pipes:read`. Danger: read.
2761
+ *
2762
+ * `GET /pipes/{id}` · action `pipes.get`
2763
+ * @scope `pipes:read`
2764
+ * @danger read
2765
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2766
+ */
2767
+ get: (id, options) => this.transport.call(environmentOperations["pipes.get"], [id], void 0, options),
2768
+ /**
2769
+ * List the pipes — the third-party providers people can connect their accounts to — with their scopes and the apps granted their tokens. Never a client secret.
2770
+ *
2771
+ * Requires scope `pipes:read`. Danger: read.
2772
+ *
2773
+ * `GET /pipes` · action `pipes.list`
2774
+ * @scope `pipes:read`
2775
+ * @danger read
2776
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2777
+ */
2778
+ list: (query, options) => this.transport.call(environmentOperations["pipes.list"], [], query, options),
2779
+ /** Every item of `pipes.list`, fetching pages as the iteration reaches them. */
2780
+ listAll: (query, options) => this.transport.paginate(environmentOperations["pipes.list"], [], query, options),
2781
+ /**
2782
+ * Change a pipe — client id, client secret (sealed), scopes, parameters, or whether it is enabled. Only what is sent changes.
2783
+ *
2784
+ * Requires scope `pipes:write`. Danger: write.
2785
+ *
2786
+ * `PATCH /pipes/{id}` · action `pipes.update`
2787
+ * @scope `pipes:write`
2788
+ * @danger write
2789
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2790
+ */
2791
+ update: (id, body, options) => this.transport.call(environmentOperations["pipes.update"], [id], body, options),
2792
+ connections: {
2793
+ /**
2794
+ * Disconnect a person's connected account: revoke it at the provider where supported, revoke its tokens here, and forget it.
2795
+ *
2796
+ * Requires scope `pipes:write`. Danger: destructive.
2797
+ *
2798
+ * `DELETE /pipes/{id}/connections/{connection_id}` · action `pipes.connections.delete`
2799
+ * @scope `pipes:write`
2800
+ * @danger destructive
2801
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2802
+ */
2803
+ delete: (id, connectionId, options) => this.transport.call(environmentOperations["pipes.connections.delete"], [id, connectionId], void 0, options),
2804
+ /**
2805
+ * List the accounts people connected through a pipe: who, which account, granted scopes, status (active / needs_reauth) and when the token expires. Never a token.
2806
+ *
2807
+ * Requires scope `pipes:read`. Danger: read.
2808
+ *
2809
+ * `GET /pipes/{id}/connections` · action `pipes.connections.list`
2810
+ * @scope `pipes:read`
2811
+ * @danger read
2812
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2813
+ */
2814
+ list: (id, query, options) => this.transport.call(environmentOperations["pipes.connections.list"], [id], query, options),
2815
+ /** Every item of `pipes.connections.list`, fetching pages as the iteration reaches them. */
2816
+ listAll: (id, query, options) => this.transport.paginate(environmentOperations["pipes.connections.list"], [id], query, options)
2817
+ },
2818
+ grants: {
2819
+ /**
2820
+ * Grant an app (by OAuth client id) the right to lease fresh access tokens for the accounts people connected through this pipe.
2821
+ *
2822
+ * Requires scope `pipes:write`. Danger: critical.
2823
+ *
2824
+ * `POST /pipes/{id}/grants` · action `pipes.grants.create`
2825
+ * @scope `pipes:write`
2826
+ * @danger critical
2827
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2828
+ */
2829
+ create: (id, body, options) => this.transport.call(environmentOperations["pipes.grants.create"], [id], body, options),
2830
+ /**
2831
+ * Withdraw an app's right to lease the tokens people connected through this pipe.
2832
+ *
2833
+ * Requires scope `pipes:write`. Danger: destructive.
2834
+ *
2835
+ * `DELETE /pipes/{id}/grants/{client_id}` · action `pipes.grants.delete`
2836
+ * @scope `pipes:write`
2837
+ * @danger destructive
2838
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2839
+ */
2840
+ delete: (id, clientId, options) => this.transport.call(environmentOperations["pipes.grants.delete"], [id, clientId], void 0, options)
2841
+ }
2842
+ };
2329
2843
  provisioning = {
2330
2844
  targets: {
2331
2845
  /**
2332
- * Register a downstream app this platform pushes an organization's people to over SCIM, or every organization's with environment_wide.
2846
+ * Register a downstream app this platform pushes an organization's people to over SCIM, or every organization's with environment_wide.
2847
+ *
2848
+ * Requires scope `provisioning:write`. Danger: critical.
2849
+ *
2850
+ * `POST /provisioning-targets` · action `provisioning.targets.create`
2851
+ * @scope `provisioning:write`
2852
+ * @danger critical
2853
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2854
+ */
2855
+ create: (body, options) => this.transport.call(environmentOperations["provisioning.targets.create"], [], body, options),
2856
+ /**
2857
+ * Delete a downstream SCIM target. Nothing more is pushed to it.
2858
+ *
2859
+ * Requires scope `provisioning:write`. Danger: destructive.
2860
+ *
2861
+ * `DELETE /provisioning-targets/{id}` · action `provisioning.targets.delete`
2862
+ * @scope `provisioning:write`
2863
+ * @danger destructive
2864
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2865
+ */
2866
+ delete: (id, body, options) => this.transport.call(environmentOperations["provisioning.targets.delete"], [id], body, options),
2867
+ /**
2868
+ * Read one downstream SCIM target: its URL, auth scheme, status and last error. Never its credential.
2869
+ *
2870
+ * Requires scope `provisioning:read`. Danger: read.
2871
+ *
2872
+ * `GET /provisioning-targets/{id}` · action `provisioning.targets.get`
2873
+ * @scope `provisioning:read`
2874
+ * @danger read
2875
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2876
+ */
2877
+ get: (id, query, options) => this.transport.call(environmentOperations["provisioning.targets.get"], [id], query, options),
2878
+ /**
2879
+ * List the downstream SCIM targets people are provisioned to, optionally for one organization, with their failures. Never their credentials.
2880
+ *
2881
+ * Requires scope `provisioning:read`. Danger: read.
2882
+ *
2883
+ * `GET /provisioning-targets` · action `provisioning.targets.list`
2884
+ * @scope `provisioning:read`
2885
+ * @danger read
2886
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2887
+ */
2888
+ list: (query, options) => this.transport.call(environmentOperations["provisioning.targets.list"], [], query, options),
2889
+ /** Every item of `provisioning.targets.list`, fetching pages as the iteration reaches them. */
2890
+ listAll: (query, options) => this.transport.paginate(environmentOperations["provisioning.targets.list"], [], query, options),
2891
+ status: {
2892
+ /**
2893
+ * Pause or resume pushing people to a downstream SCIM target.
2894
+ *
2895
+ * Requires scope `provisioning:write`. Danger: write.
2896
+ *
2897
+ * `POST /provisioning-targets/{id}/status` · action `provisioning.targets.status.set`
2898
+ * @scope `provisioning:write`
2899
+ * @danger write
2900
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2901
+ */
2902
+ set: (id, body, options) => this.transport.call(environmentOperations["provisioning.targets.status.set"], [id], body, options)
2903
+ }
2904
+ }
2905
+ };
2906
+ radar = {
2907
+ decisions: {
2908
+ /**
2909
+ * Read one Radar decision: the verdict, whether it was enforced, the deciding rule, every rule that fired, the reasons, the risk score and the facts it was decided on.
2910
+ *
2911
+ * Requires scope `radar:read`. Danger: read.
2912
+ *
2913
+ * `GET /radar/decisions/{id}` · action `radar.decisions.get`
2914
+ * @scope `radar:read`
2915
+ * @danger read
2916
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2917
+ */
2918
+ get: (id, options) => this.transport.call(environmentOperations["radar.decisions.get"], [id], void 0, options),
2919
+ /**
2920
+ * List this environment's Radar decisions newest first — verdict, deciding rule, every rule that fired, reasons and facts — filtered by verdict, flow, rule, country, email, IP, device or time; pass `next_cursor` as `after` to page. Email and IP are matched by keyed pseudonym and never returned.
2921
+ *
2922
+ * Requires scope `radar:read`. Danger: read.
2923
+ *
2924
+ * `GET /radar/decisions` · action `radar.decisions.list`
2925
+ * @scope `radar:read`
2926
+ * @danger read
2927
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2928
+ */
2929
+ list: (query, options) => this.transport.call(environmentOperations["radar.decisions.list"], [], query, options),
2930
+ /** Every item of `radar.decisions.list`, fetching pages as the iteration reaches them. */
2931
+ listAll: (query, options) => this.transport.paginate(environmentOperations["radar.decisions.list"], [], query, options)
2932
+ },
2933
+ lists: {
2934
+ /**
2935
+ * Add an entry to this environment's Radar allow or deny list: an IP or CIDR range, an email address, a mail domain (and its subdomains), or a device id from the decisions explorer. Deny blocks before every rule; allow skips every rule.
2936
+ *
2937
+ * Requires scope `radar:write`. Danger: write.
2938
+ *
2939
+ * `POST /radar/lists` · action `radar.lists.add`
2940
+ * @scope `radar:write`
2941
+ * @danger write
2942
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2943
+ */
2944
+ add: (body, options) => this.transport.call(environmentOperations["radar.lists.add"], [], body, options),
2945
+ /**
2946
+ * List this environment's Radar allow and deny entries — IPs and CIDR ranges, addresses, mail domains, devices — optionally one list or one kind.
2947
+ *
2948
+ * Requires scope `radar:read`. Danger: read.
2949
+ *
2950
+ * `GET /radar/lists` · action `radar.lists.list`
2951
+ * @scope `radar:read`
2952
+ * @danger read
2953
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2954
+ */
2955
+ list: (query, options) => this.transport.call(environmentOperations["radar.lists.list"], [], query, options),
2956
+ /** Every item of `radar.lists.list`, fetching pages as the iteration reaches them. */
2957
+ listAll: (query, options) => this.transport.paginate(environmentOperations["radar.lists.list"], [], query, options),
2958
+ /**
2959
+ * Remove an entry from this environment's Radar allow or deny list.
2960
+ *
2961
+ * Requires scope `radar:write`. Danger: destructive.
2962
+ *
2963
+ * `DELETE /radar/lists/{id}` · action `radar.lists.remove`
2964
+ * @scope `radar:write`
2965
+ * @danger destructive
2966
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2967
+ */
2968
+ remove: (id, options) => this.transport.call(environmentOperations["radar.lists.remove"], [id], void 0, options)
2969
+ },
2970
+ mode: {
2971
+ /**
2972
+ * Switch this environment's Radar between `monitor` (verdicts recorded, never acted on) and `enforce` (blocks refuse sign-ins and sign-ups, challenges demand a second factor). Changes the environment's security posture.
2973
+ *
2974
+ * Requires scope `radar:manage`. Danger: critical.
2975
+ *
2976
+ * `PUT /radar/mode` · action `radar.mode.set`
2977
+ * @scope `radar:manage`
2978
+ * @danger critical
2979
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2980
+ */
2981
+ set: (body, options) => this.transport.call(environmentOperations["radar.mode.set"], [], body, options)
2982
+ },
2983
+ rules: {
2984
+ /**
2985
+ * Add a Radar rule: when EVERY condition (field, operator, value) holds, allow, challenge or block. Rules run in order after the allow/deny lists and before the built-in rules; the first match decides. Example: country not_in [DK, SE] → challenge.
2986
+ *
2987
+ * Requires scope `radar:write`. Danger: write.
2988
+ *
2989
+ * `POST /radar/rules` · action `radar.rules.create`
2990
+ * @scope `radar:write`
2991
+ * @danger write
2992
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2993
+ */
2994
+ create: (body, options) => this.transport.call(environmentOperations["radar.rules.create"], [], body, options),
2995
+ /**
2996
+ * Delete a Radar rule. Attempts it decided are decided by the next matching rule, or the built-in rules, from then on.
2333
2997
  *
2334
- * Requires scope `provisioning:write`. Danger: critical.
2998
+ * Requires scope `radar:write`. Danger: destructive.
2335
2999
  *
2336
- * `POST /provisioning-targets` · action `provisioning.targets.create`
2337
- * @scope `provisioning:write`
2338
- * @danger critical
3000
+ * `DELETE /radar/rules/{id}` · action `radar.rules.delete`
3001
+ * @scope `radar:write`
3002
+ * @danger destructive
2339
3003
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2340
3004
  */
2341
- create: (body, options) => this.transport.call(environmentOperations["provisioning.targets.create"], [], body, options),
3005
+ delete: (id, options) => this.transport.call(environmentOperations["radar.rules.delete"], [id], void 0, options),
2342
3006
  /**
2343
- * Delete a downstream SCIM target. Nothing more is pushed to it.
3007
+ * Read one Radar rule: its action, the flows it applies to, its position and its conditions.
2344
3008
  *
2345
- * Requires scope `provisioning:write`. Danger: destructive.
3009
+ * Requires scope `radar:read`. Danger: read.
2346
3010
  *
2347
- * `DELETE /provisioning-targets/{id}` · action `provisioning.targets.delete`
2348
- * @scope `provisioning:write`
2349
- * @danger destructive
3011
+ * `GET /radar/rules/{id}` · action `radar.rules.get`
3012
+ * @scope `radar:read`
3013
+ * @danger read
2350
3014
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2351
3015
  */
2352
- delete: (id, body, options) => this.transport.call(environmentOperations["provisioning.targets.delete"], [id], body, options),
3016
+ get: (id, options) => this.transport.call(environmentOperations["radar.rules.get"], [id], void 0, options),
2353
3017
  /**
2354
- * Read one downstream SCIM target: its URL, auth scheme, status and last error. Never its credential.
3018
+ * List this environment's own Radar rules in evaluation order (the first whose conditions all hold decides), with their conditions and a readable summary of each.
2355
3019
  *
2356
- * Requires scope `provisioning:read`. Danger: read.
3020
+ * Requires scope `radar:read`. Danger: read.
2357
3021
  *
2358
- * `GET /provisioning-targets/{id}` · action `provisioning.targets.get`
2359
- * @scope `provisioning:read`
3022
+ * `GET /radar/rules` · action `radar.rules.list`
3023
+ * @scope `radar:read`
2360
3024
  * @danger read
2361
3025
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2362
3026
  */
2363
- get: (id, query, options) => this.transport.call(environmentOperations["provisioning.targets.get"], [id], query, options),
3027
+ list: (query, options) => this.transport.call(environmentOperations["radar.rules.list"], [], query, options),
3028
+ /** Every item of `radar.rules.list`, fetching pages as the iteration reaches them. */
3029
+ listAll: (query, options) => this.transport.paginate(environmentOperations["radar.rules.list"], [], query, options),
2364
3030
  /**
2365
- * List the downstream SCIM targets people are provisioned to, optionally for one organization, with their failures. Never their credentials.
3031
+ * Set the order Radar rules are evaluated in: `rule_ids` lists every rule of the environment exactly once, first evaluated first.
2366
3032
  *
2367
- * Requires scope `provisioning:read`. Danger: read.
3033
+ * Requires scope `radar:write`. Danger: write.
2368
3034
  *
2369
- * `GET /provisioning-targets` · action `provisioning.targets.list`
2370
- * @scope `provisioning:read`
3035
+ * `PUT /radar/rules/order` · action `radar.rules.reorder`
3036
+ * @scope `radar:write`
3037
+ * @danger write
3038
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3039
+ */
3040
+ reorder: (body, options) => this.transport.call(environmentOperations["radar.rules.reorder"], [], body, options),
3041
+ /**
3042
+ * Change a Radar rule: its name, description, action, flows, enabled state, position, or (replaced whole) its conditions.
3043
+ *
3044
+ * Requires scope `radar:write`. Danger: write.
3045
+ *
3046
+ * `PATCH /radar/rules/{id}` · action `radar.rules.update`
3047
+ * @scope `radar:write`
3048
+ * @danger write
3049
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3050
+ */
3051
+ update: (id, body, options) => this.transport.call(environmentOperations["radar.rules.update"], [id], body, options)
3052
+ },
3053
+ settings: {
3054
+ /**
3055
+ * Read this environment's Radar settings: the mode (monitor or enforce, and whether it is inherited from the deployment), the IP intelligence source, and every built-in rule with its action and threshold.
3056
+ *
3057
+ * Requires scope `radar:read`. Danger: read.
3058
+ *
3059
+ * `GET /radar/settings` · action `radar.settings.get`
3060
+ * @scope `radar:read`
2371
3061
  * @danger read
2372
3062
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2373
3063
  */
2374
- list: (query, options) => this.transport.call(environmentOperations["provisioning.targets.list"], [], query, options),
2375
- /** Every item of `provisioning.targets.list`, fetching pages as the iteration reaches them. */
2376
- listAll: (query, options) => this.transport.paginate(environmentOperations["provisioning.targets.list"], [], query, options),
2377
- status: {
2378
- /**
2379
- * Pause or resume pushing people to a downstream SCIM target.
2380
- *
2381
- * Requires scope `provisioning:write`. Danger: write.
2382
- *
2383
- * `POST /provisioning-targets/{id}/status` · action `provisioning.targets.status.set`
2384
- * @scope `provisioning:write`
2385
- * @danger write
2386
- * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2387
- */
2388
- set: (id, body, options) => this.transport.call(environmentOperations["provisioning.targets.status.set"], [id], body, options)
2389
- }
3064
+ get: (options) => this.transport.call(environmentOperations["radar.settings.get"], [], void 0, options),
3065
+ /**
3066
+ * Tune this environment's built-in Radar rules: `builtin_rules` maps a rule key (credential_stuffing, bot_velocity, account_attack, impossible_travel, new_device, anonymous_network, hosting_network, disposable_email, risk_score_reject, risk_score_elevated) to any of enabled, action and threshold.
3067
+ *
3068
+ * Requires scope `radar:write`. Danger: write.
3069
+ *
3070
+ * `PATCH /radar/settings` · action `radar.settings.update`
3071
+ * @scope `radar:write`
3072
+ * @danger write
3073
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3074
+ */
3075
+ update: (body, options) => this.transport.call(environmentOperations["radar.settings.update"], [], body, options)
2390
3076
  }
2391
3077
  };
2392
3078
  roles = {
@@ -2447,6 +3133,19 @@ var EnvironmentClient = class {
2447
3133
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2448
3134
  */
2449
3135
  update: (id, body, options) => this.transport.call(environmentOperations["roles.update"], [id], body, options),
3136
+ definition: {
3137
+ /**
3138
+ * Activate a reviewed application role definition for its existing holders.
3139
+ *
3140
+ * Requires scope `role_definitions:write`. Danger: destructive.
3141
+ *
3142
+ * `POST /roles/{id}/definition/activate` · action `roles.definition.activate`
3143
+ * @scope `role_definitions:write`
3144
+ * @danger destructive
3145
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3146
+ */
3147
+ activate: (id, body, options) => this.transport.call(environmentOperations["roles.definition.activate"], [id], body, options)
3148
+ },
2450
3149
  permissions: {
2451
3150
  /**
2452
3151
  * Add a permission to a role: everyone holding the role gains it. The permission must be unscoped or declared by the role's own app.
@@ -2531,6 +3230,45 @@ var EnvironmentClient = class {
2531
3230
  */
2532
3231
  update: (id, body, options) => this.transport.call(environmentOperations["saml_apps.update"], [id], body, options)
2533
3232
  };
3233
+ signals = {
3234
+ source: {
3235
+ /**
3236
+ * Read the environment-owner identity source
3237
+ *
3238
+ * Requires an environment key with `signals_source:read` and explicit operator
3239
+ * opt-in for this environment. Organization grants and delegated user tokens
3240
+ * cannot read this source. Records include pre-organization authentication.
3241
+ * The cursor follows committed sequence order and is bound to the source generation.
3242
+ * Follow `next_cursor`, including on empty pages; a stale generation or purged
3243
+ * cursor requires an explicit restart. Pages are at most 1000 records / 1 MiB.
3244
+ * Data follows the Signals 2.0.0 identity event contracts. Scope is attached by
3245
+ * the consumer's explicit grant; producer_environment is always host-bound.
3246
+ * Replay is limited to seven days, including raw-IP retention. A heartbeat
3247
+ * proves exporter maintenance, not complete coverage of every identity flow.
3248
+ *
3249
+ * `GET /signals/source`
3250
+ */
3251
+ list: (query, options) => this.transport.call(environmentOperations["signals.source.list"], [], query, options),
3252
+ /** Every item of `signals.source.list`, fetching pages as the iteration reaches them. */
3253
+ listAll: (query, options) => this.transport.paginate(environmentOperations["signals.source.list"], [], query, options),
3254
+ erasures: {
3255
+ /**
3256
+ * Replay source deletion receipts
3257
+ *
3258
+ * Requires `signals_source:read` on an environment-owner key. Replay this stream
3259
+ * before making a restored or newly backfilled consumer eligible. It retains only
3260
+ * opaque subject references and deletion facts beyond the raw-event replay window.
3261
+ * Publication order and cursor integrity match the event source. The credential
3262
+ * is checked on every page. Ordinary tenant grants cannot access this stream.
3263
+ *
3264
+ * `GET /signals/source/erasures`
3265
+ */
3266
+ list: (query, options) => this.transport.call(environmentOperations["signals.source.erasures.list"], [], query, options),
3267
+ /** Every item of `signals.source.erasures.list`, fetching pages as the iteration reaches them. */
3268
+ listAll: (query, options) => this.transport.paginate(environmentOperations["signals.source.erasures.list"], [], query, options)
3269
+ }
3270
+ }
3271
+ };
2534
3272
  signin = {
2535
3273
  policy: {
2536
3274
  /**
@@ -2556,7 +3294,7 @@ var EnvironmentClient = class {
2556
3294
  */
2557
3295
  inherit: (organizationId, options) => this.transport.call(environmentOperations["signin.policy.inherit"], [organizationId], void 0, options),
2558
3296
  /**
2559
- * Change the authentication policy of the environment baseline, or tighten one organization's override. Requiring SSO signs out password sessions.
3297
+ * Change the authentication policy of the environment baseline — including whether passkeys and magic links are offered and how long sessions last — or tighten one organization's override. Requiring SSO signs out password sessions.
2560
3298
  *
2561
3299
  * Requires scope `signin:write`. Danger: critical.
2562
3300
  *
@@ -2580,6 +3318,30 @@ var EnvironmentClient = class {
2580
3318
  */
2581
3319
  set: (body, options) => this.transport.call(environmentOperations["signin.self_service_signup.set"], [], body, options)
2582
3320
  },
3321
+ sms: {
3322
+ /**
3323
+ * Read the SMS second-factor policy: whether text-message codes are accepted, for which countries, and the administrator rule.
3324
+ *
3325
+ * Requires scope `signin:read`. Danger: read.
3326
+ *
3327
+ * `GET /sign-in/sms` · action `signin.sms.get`
3328
+ * @scope `signin:read`
3329
+ * @danger read
3330
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3331
+ */
3332
+ get: (options) => this.transport.call(environmentOperations["signin.sms.get"], [], void 0, options),
3333
+ /**
3334
+ * Change the SMS second-factor policy: accept text-message codes or not, the countries they may go to, and whether SMS may be an administrator's only factor.
3335
+ *
3336
+ * Requires scope `signin:write`. Danger: critical.
3337
+ *
3338
+ * `PATCH /sign-in/sms` · action `signin.sms.update`
3339
+ * @scope `signin:write`
3340
+ * @danger critical
3341
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3342
+ */
3343
+ update: (body, options) => this.transport.call(environmentOperations["signin.sms.update"], [], body, options)
3344
+ },
2583
3345
  social: {
2584
3346
  /**
2585
3347
  * Stop offering a social login provider. People who used it keep their accounts.
@@ -2593,7 +3355,40 @@ var EnvironmentClient = class {
2593
3355
  */
2594
3356
  delete: (id, body, options) => this.transport.call(environmentOperations["signin.social.delete"], [id], body, options),
2595
3357
  /**
2596
- * List the social login providers (Google, GitHub, Apple…) enabled in this environment, optionally for one organization.
3358
+ * Turn a social login provider off without removing it. People who used it keep their accounts.
3359
+ *
3360
+ * Requires scope `signin:write`. Danger: critical.
3361
+ *
3362
+ * `POST /sign-in/social-providers/{id}/disable` · action `signin.social.disable`
3363
+ * @scope `signin:write`
3364
+ * @danger critical
3365
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3366
+ */
3367
+ disable: (id, body, options) => this.transport.call(environmentOperations["signin.social.disable"], [id], body, options),
3368
+ /**
3369
+ * Turn a social login provider that was turned off back on, with the credentials it already has.
3370
+ *
3371
+ * Requires scope `signin:write`. Danger: write.
3372
+ *
3373
+ * `POST /sign-in/social-providers/{id}/enable` · action `signin.social.enable`
3374
+ * @scope `signin:write`
3375
+ * @danger write
3376
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3377
+ */
3378
+ enable: (id, body, options) => this.transport.call(environmentOperations["signin.social.enable"], [id], body, options),
3379
+ /**
3380
+ * Turn one of the environment's social login providers off (or back on) for one organization's sign-in page.
3381
+ *
3382
+ * Requires scope `signin:write`. Danger: write.
3383
+ *
3384
+ * `PUT /sign-in/social-providers/inherited/{provider}` · action `signin.social.inherit`
3385
+ * @scope `signin:write`
3386
+ * @danger write
3387
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3388
+ */
3389
+ inherit: (provider, body, options) => this.transport.call(environmentOperations["signin.social.inherit"], [provider], body, options),
3390
+ /**
3391
+ * List the social login providers (Google, GitHub, Apple…) set up in this environment — the environment's own and organizations' — optionally for one organization.
2597
3392
  *
2598
3393
  * Requires scope `signin:read`. Danger: read.
2599
3394
  *
@@ -2606,7 +3401,18 @@ var EnvironmentClient = class {
2606
3401
  /** Every item of `signin.social.list`, fetching pages as the iteration reaches them. */
2607
3402
  listAll: (query, options) => this.transport.paginate(environmentOperations["signin.social.list"], [], query, options),
2608
3403
  /**
2609
- * Enable a social login provider (Google, GitHub, Apple…) for one organization with its client credentials. The secret is never returned.
3404
+ * The social login buttons one organization's sign-in page shows (or the plain sign-in page's), after inheritance from the environment, with where each comes from.
3405
+ *
3406
+ * Requires scope `signin:read`. Danger: read.
3407
+ *
3408
+ * `GET /sign-in/social-providers/offered` · action `signin.social.offered`
3409
+ * @scope `signin:read`
3410
+ * @danger read
3411
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3412
+ */
3413
+ offered: (query, options) => this.transport.call(environmentOperations["signin.social.offered"], [], query, options),
3414
+ /**
3415
+ * Enable a social login provider (Google, GitHub, Apple…) for the whole environment or for one organization, with its client credentials. The secret is never returned.
2610
3416
  *
2611
3417
  * Requires scope `signin:write`. Danger: critical.
2612
3418
  *
@@ -2615,7 +3421,18 @@ var EnvironmentClient = class {
2615
3421
  * @danger critical
2616
3422
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2617
3423
  */
2618
- set: (body, options) => this.transport.call(environmentOperations["signin.social.set"], [], body, options)
3424
+ set: (body, options) => this.transport.call(environmentOperations["signin.social.set"], [], body, options),
3425
+ /**
3426
+ * Change a social login provider's client credentials, provider values or extra scopes. Secrets left out keep the ones on file.
3427
+ *
3428
+ * Requires scope `signin:write`. Danger: critical.
3429
+ *
3430
+ * `PATCH /sign-in/social-providers/{id}` · action `signin.social.update`
3431
+ * @scope `signin:write`
3432
+ * @danger critical
3433
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3434
+ */
3435
+ update: (id, body, options) => this.transport.call(environmentOperations["signin.social.update"], [id], body, options)
2619
3436
  }
2620
3437
  };
2621
3438
  sodPolicies = {
@@ -3011,6 +3828,30 @@ var EnvironmentClient = class {
3011
3828
  rotate: (id, body, options) => this.transport.call(environmentOperations["token_vault.secrets.rotate"], [id], body, options)
3012
3829
  }
3013
3830
  };
3831
+ userPropertyNamespaces = {
3832
+ /**
3833
+ * Create or replace the app and webhook grants for a user-property namespace. Empty grants revoke access without deleting user data.
3834
+ *
3835
+ * Requires scope `user_property_namespaces:write`. Danger: critical.
3836
+ *
3837
+ * `PUT /user-property-namespaces/{name}` · action `user_property_namespaces.configure`
3838
+ * @scope `user_property_namespaces:write`
3839
+ * @danger critical
3840
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3841
+ */
3842
+ configure: (name, body, options) => this.transport.call(environmentOperations["user_property_namespaces.configure"], [name], body, options),
3843
+ /**
3844
+ * Read the app and webhook grants for a user-property namespace.
3845
+ *
3846
+ * Requires scope `user_property_namespaces:read`. Danger: read.
3847
+ *
3848
+ * `GET /user-property-namespaces/{name}` · action `user_property_namespaces.show`
3849
+ * @scope `user_property_namespaces:read`
3850
+ * @danger read
3851
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3852
+ */
3853
+ show: (name, options) => this.transport.call(environmentOperations["user_property_namespaces.show"], [name], void 0, options)
3854
+ };
3014
3855
  users = {
3015
3856
  /**
3016
3857
  * Create a user
@@ -3169,7 +4010,20 @@ var EnvironmentClient = class {
3169
4010
  * @danger critical
3170
4011
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3171
4012
  */
3172
- reset: (id, options) => this.transport.call(environmentOperations["users.mfa.reset"], [id], void 0, options)
4013
+ reset: (id, options) => this.transport.call(environmentOperations["users.mfa.reset"], [id], void 0, options),
4014
+ sms: {
4015
+ /**
4016
+ * Remove a user's phone number for text-message sign-in codes. Their other factors and recovery codes stay.
4017
+ *
4018
+ * Requires scope `users:write`. Danger: critical.
4019
+ *
4020
+ * `DELETE /users/{id}/mfa/sms` · action `users.mfa.sms.remove`
4021
+ * @scope `users:write`
4022
+ * @danger critical
4023
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4024
+ */
4025
+ remove: (id, options) => this.transport.call(environmentOperations["users.mfa.sms.remove"], [id], void 0, options)
4026
+ }
3173
4027
  },
3174
4028
  passwordReset: {
3175
4029
  /**
@@ -3360,6 +4214,9 @@ var EnvironmentClient = class {
3360
4214
  // src/management/generated/workspace.ts
3361
4215
  var workspaceOperations = {
3362
4216
  "action_approvals.get": { action: null, operationId: null, method: "GET", path: "/workspace/action-approvals/{id}", pathParams: ["id"], scope: null, danger: null, approval: false, body: false, pagination: null },
4217
+ "billing.account.update": { action: "billing.account.update", operationId: "billing_account_update", method: "PATCH", path: "/workspace/billing/account", pathParams: [], scope: "billing:write", danger: "write", approval: true, body: true, pagination: null },
4218
+ "billing.payment_method.default": { action: "billing.payment_method.default", operationId: "billing_payment_method_default", method: "PATCH", path: "/workspace/billing/payment-methods/{id}/default", pathParams: ["id"], scope: "billing:write", danger: "write", approval: true, body: false, pagination: null },
4219
+ "billing.payment_method.remove": { action: "billing.payment_method.remove", operationId: "billing_payment_method_remove", method: "DELETE", path: "/workspace/billing/payment-methods/{id}", pathParams: ["id"], scope: "billing:write", danger: "write", approval: true, body: false, pagination: null },
3363
4220
  "environments.create": { action: "environments.create", operationId: "environments_create", method: "POST", path: "/workspace/environments", pathParams: [], scope: "environments:write", danger: "critical", approval: true, body: true, pagination: null },
3364
4221
  "environments.domain.remove": { action: "environments.domain.remove", operationId: "environments_domain_remove", method: "DELETE", path: "/workspace/environments/{environment_id}/domain", pathParams: ["environment_id"], scope: "environments:write", danger: "destructive", approval: true, body: false, pagination: null },
3365
4222
  "environments.domain.request": { action: "environments.domain.request", operationId: "environments_domain_request", method: "POST", path: "/workspace/environments/{environment_id}/domain", pathParams: ["environment_id"], scope: "environments:write", danger: "write", approval: true, body: true, pagination: null },
@@ -3382,7 +4239,7 @@ var workspaceOperations = {
3382
4239
  "team.invitations.revoke": { action: "team.invitations.revoke", operationId: "team_invitations_revoke", method: "DELETE", path: "/workspace/invitations/{id}", pathParams: ["id"], scope: "team:write", danger: "destructive", approval: true, body: false, pagination: null },
3383
4240
  "team.invite": { action: "team.invite", operationId: "team_invite", method: "POST", path: "/workspace/members", pathParams: [], scope: "team:write", danger: "write", approval: true, body: true, pagination: null },
3384
4241
  "team.list": { action: "team.list", operationId: "team_list", method: "GET", path: "/workspace/members", pathParams: [], scope: "team:read", danger: "read", approval: true, body: false, pagination: "page" },
3385
- "team.remove": { action: "team.remove", operationId: "team_remove", method: "DELETE", path: "/workspace/members/{id}", pathParams: ["id"], scope: "team:write", danger: "destructive", approval: true, body: false, pagination: null },
4242
+ "team.remove": { action: "team.remove", operationId: "team_remove", method: "DELETE", path: "/workspace/members/{id}", pathParams: ["id"], scope: "team:write", danger: "destructive", approval: true, body: true, pagination: null },
3386
4243
  "team.role": { action: "team.role", operationId: "team_role", method: "PATCH", path: "/workspace/members/{id}/role", pathParams: ["id"], scope: "team:write", danger: "write", approval: true, body: true, pagination: null },
3387
4244
  "team.transfer_ownership": { action: "team.transfer_ownership", operationId: "team_transfer_ownership", method: "POST", path: "/workspace/members/{id}/transfer-ownership", pathParams: ["id"], scope: "team:write", danger: "critical", approval: true, body: false, pagination: null },
3388
4245
  "workspace.get": { action: "workspace.get", operationId: "workspace_get", method: "GET", path: "/workspace", pathParams: [], scope: "workspace:read", danger: "read", approval: true, body: false, pagination: null },
@@ -3409,12 +4266,51 @@ var WorkspaceClient = class {
3409
4266
  */
3410
4267
  get: (id, options) => this.transport.call(workspaceOperations["action_approvals.get"], [id], void 0, options)
3411
4268
  };
4269
+ billing = {
4270
+ account: {
4271
+ /**
4272
+ * Update the workspace billing contact and invoice address.
4273
+ *
4274
+ * Requires scope `billing:write` and a role that may `manage-billing`. Danger: write.
4275
+ *
4276
+ * `PATCH /workspace/billing/account` · action `billing.account.update`
4277
+ * @scope `billing:write`
4278
+ * @danger write
4279
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4280
+ */
4281
+ update: (body, options) => this.transport.call(workspaceOperations["billing.account.update"], [], body, options)
4282
+ },
4283
+ paymentMethod: {
4284
+ /**
4285
+ * Choose the workspace default payment card.
4286
+ *
4287
+ * Requires scope `billing:write` and a role that may `manage-billing`. Danger: write.
4288
+ *
4289
+ * `PATCH /workspace/billing/payment-methods/{id}/default` · action `billing.payment_method.default`
4290
+ * @scope `billing:write`
4291
+ * @danger write
4292
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4293
+ */
4294
+ default: (id, options) => this.transport.call(workspaceOperations["billing.payment_method.default"], [id], void 0, options),
4295
+ /**
4296
+ * Remove an unneeded payment card from this workspace.
4297
+ *
4298
+ * Requires scope `billing:write` and a role that may `manage-billing`. Danger: write.
4299
+ *
4300
+ * `DELETE /workspace/billing/payment-methods/{id}` · action `billing.payment_method.remove`
4301
+ * @scope `billing:write`
4302
+ * @danger write
4303
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4304
+ */
4305
+ remove: (id, options) => this.transport.call(workspaceOperations["billing.payment_method.remove"], [id], void 0, options)
4306
+ }
4307
+ };
3412
4308
  environments = {
3413
4309
  /**
3414
4310
  * Create an environment
3415
4311
  *
3416
4312
  * Requires scope `environments:write` and the `manage-environments` capability
3417
- * (owner/admin/developer). Danger: critical — with `initial_key` it mints a credential.
4313
+ * (`id:write` for human members, or current ownership). Danger: critical — with `initial_key` it mints a credential.
3418
4314
  *
3419
4315
  * With `initial_key`, the environment's first management key is minted in the same
3420
4316
  * call and returned once as `initial_key.token` — enough for an agent holding one
@@ -3430,7 +4326,7 @@ var WorkspaceClient = class {
3430
4326
  /**
3431
4327
  * List environments
3432
4328
  *
3433
- * Requires scope `workspace:read` (any role).
4329
+ * Requires scope `workspace:read` and permission to read environments. Returns only currently permitted environments; Billing-only members cannot list them.
3434
4330
  *
3435
4331
  * `GET /workspace/environments` · action `environments.list`
3436
4332
  * @scope `workspace:read`
@@ -3543,7 +4439,7 @@ var WorkspaceClient = class {
3543
4439
  /**
3544
4440
  * Create a project
3545
4441
  *
3546
- * Stand up another independently-billed IdP product. Requires scope `projects:write` and the `manage-environments` capability (owner/admin/developer).
4442
+ * Stand up another independently-billed IdP product. Requires scope `projects:write` and the `manage-environments` capability (`id:write` for human members, or current ownership).
3547
4443
  *
3548
4444
  * `POST /workspace/projects` · action `projects.create`
3549
4445
  * @scope `projects:write`
@@ -3554,7 +4450,7 @@ var WorkspaceClient = class {
3554
4450
  /**
3555
4451
  * List projects
3556
4452
  *
3557
- * Requires scope `workspace:read` (any role). The workspace's projects (IdP products). Each carries its own plan and environment allowance.
4453
+ * Requires scope `workspace:read` and permission to read environments. Human callers see only projects containing environments they may access; environment counts include only those environments. Billing-only members cannot list projects.
3558
4454
  *
3559
4455
  * `GET /workspace/projects` · action `projects.list`
3560
4456
  * @scope `workspace:read`
@@ -3624,11 +4520,10 @@ var WorkspaceClient = class {
3624
4520
  /**
3625
4521
  * Invite a member
3626
4522
  *
3627
- * Requires scope `team:write` and the `manage-members` capability (owner/admin). Invites the address onto the
3628
- * workspace's team — the same invitation the console's Team page sends: a mail naming
3629
- * this key as the inviter and the role, with a signed link on which the invitee sets a
3630
- * password and is signed in. Owner is never invited; ownership is transferred. An
3631
- * earlier pending invitation for the same address is superseded. List, re-send and
4523
+ * Requires scope `team:write` and the `manage-members` capability (`members:manage` for human members, or current ownership). Invites the address onto the
4524
+ * ID product team with the selected app roles. Existing shared membership and other
4525
+ * apps are preserved. Owner is never invited; ownership is transferred separately. An
4526
+ * earlier pending invitation for the same address and this app is superseded. List, re-send and
3632
4527
  * withdraw it under `/workspace/invitations`.
3633
4528
  *
3634
4529
  * `POST /workspace/members` · action `team.invite`
@@ -3640,7 +4535,7 @@ var WorkspaceClient = class {
3640
4535
  /**
3641
4536
  * List members
3642
4537
  *
3643
- * Requires scope `team:read` and the `read-members` capability (owner/admin/viewer). The roster is PII — a developer key is refused.
4538
+ * Requires scope `team:read` and the `read-members` capability (`members:read` for human members, or current ownership). The roster contains personal information; a machine key also needs an explicit role allowing member reads.
3644
4539
  *
3645
4540
  * `GET /workspace/members` · action `team.list`
3646
4541
  * @scope `team:read`
@@ -3651,7 +4546,7 @@ var WorkspaceClient = class {
3651
4546
  /** Every item of `team.list`, fetching pages as the iteration reaches them. */
3652
4547
  listAll: (query, options) => this.transport.paginate(workspaceOperations["team.list"], [], query, options),
3653
4548
  /**
3654
- * Remove a member from the workspace's team. The owner is never removed; transfer ownership first.
4549
+ * Remove native ID app roles while preserving shared organization membership and other apps. The current owner cannot be removed.
3655
4550
  *
3656
4551
  * Requires scope `team:write` and a role that may `manage-members`. Danger: destructive.
3657
4552
  *
@@ -3660,9 +4555,9 @@ var WorkspaceClient = class {
3660
4555
  * @danger destructive
3661
4556
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3662
4557
  */
3663
- remove: (id, options) => this.transport.call(workspaceOperations["team.remove"], [id], void 0, options),
4558
+ remove: (id, body, options) => this.transport.call(workspaceOperations["team.remove"], [id], body, options),
3664
4559
  /**
3665
- * Change a team member's role (admin, developer, member or viewer). The owner's role changes only by transferring ownership.
4560
+ * Replace native ID app roles atomically. Shared organization membership is preserved.
3666
4561
  *
3667
4562
  * Requires scope `team:write` and a role that may `manage-members`. Danger: write.
3668
4563
  *
@@ -3673,7 +4568,7 @@ var WorkspaceClient = class {
3673
4568
  */
3674
4569
  role: (id, body, options) => this.transport.call(workspaceOperations["team.role"], [id], body, options),
3675
4570
  /**
3676
- * Make another member the workspace's owner; the current owner stays on as an admin. Only the owner, signed in, may do this.
4571
+ * Transfer shared organization ownership. Existing app roles are preserved; the previous owner may lose native ID access. Only the current owner, signed in, may do this.
3677
4572
  *
3678
4573
  * Requires scope `team:write` and a role that may `manage-members`. Danger: critical.
3679
4574
  *
@@ -3725,7 +4620,7 @@ var WorkspaceClient = class {
3725
4620
  /**
3726
4621
  * Get the workspace
3727
4622
  *
3728
- * Requires scope `workspace:read` (any role). Returns the workspace's identity. The `projects` block (each project's plan/allowance) is included only for keys whose role can read billing (owner/admin/viewer — not developer).
4623
+ * Requires scope `workspace:read` and current workspace access. Returns only the workspace identity and status, including for members with only the Billing app role.
3729
4624
  *
3730
4625
  * `GET /workspace` · action `workspace.get`
3731
4626
  * @scope `workspace:read`
@@ -3737,7 +4632,7 @@ var WorkspaceClient = class {
3737
4632
  /**
3738
4633
  * Rename the workspace.
3739
4634
  *
3740
- * Requires scope `settings:write` and a role that may `manage-members`. Danger: write.
4635
+ * Requires scope `settings:write` and a role that may `own-organization` and `manage-members`. Danger: write.
3741
4636
  *
3742
4637
  * `PATCH /workspace` · action `workspace.settings.update`
3743
4638
  * @scope `settings:write`
@@ -3897,13 +4792,23 @@ var accountOperations = {
3897
4792
  "account.api_keys.create": { action: "account.api_keys.create", operationId: "account_api_keys_create", method: "POST", path: "/me/organizations/{organization_id}/api-keys", pathParams: ["organization_id"], scope: "account:api_keys:write", danger: "critical", approval: true, body: true, pagination: null },
3898
4793
  "account.api_keys.revoke": { action: "account.api_keys.revoke", operationId: "account_api_keys_revoke", method: "DELETE", path: "/me/organizations/{organization_id}/api-keys/{key_id}", pathParams: ["organization_id", "key_id"], scope: "account:api_keys:write", danger: "destructive", approval: true, body: false, pagination: null },
3899
4794
  "account.applications.revoke": { action: "account.applications.revoke", operationId: "account_applications_revoke", method: "DELETE", path: "/me/applications/{client_id}", pathParams: ["client_id"], scope: "account:applications:write", danger: "destructive", approval: true, body: false, pagination: null },
4795
+ "account.apps.list": { action: "account.apps.list", operationId: "account_apps_list", method: "GET", path: "/me/apps", pathParams: [], scope: "account:apps:read", danger: "read", approval: true, body: false, pagination: null },
3900
4796
  "account.devices.remove": { action: "account.devices.remove", operationId: "account_devices_remove", method: "DELETE", path: "/me/devices/{device_id}", pathParams: ["device_id"], scope: "account:devices:write", danger: "destructive", approval: true, body: false, pagination: null },
4797
+ "account.email.confirmation.send": { action: "account.email.confirmation.send", operationId: "account_email_confirmation_send", method: "POST", path: "/me/email/confirmation", pathParams: [], scope: "account:profile:write", danger: "write", approval: true, body: false, pagination: null },
4798
+ "account.mfa.sms.remove": { action: "account.mfa.sms.remove", operationId: "account_mfa_sms_remove", method: "DELETE", path: "/me/mfa/sms", pathParams: [], scope: "account:sign_in:write", danger: "critical", approval: true, body: false, pagination: null },
3901
4799
  "account.organizations.leave": { action: "account.organizations.leave", operationId: "account_organizations_leave", method: "POST", path: "/me/organizations/{organization_id}/leave", pathParams: ["organization_id"], scope: "account:organizations:write", danger: "destructive", approval: true, body: false, pagination: null },
3902
4800
  "account.passkeys.remove": { action: "account.passkeys.remove", operationId: "account_passkeys_remove", method: "DELETE", path: "/me/passkeys/{passkey_id}", pathParams: ["passkey_id"], scope: "account:sign_in:write", danger: "critical", approval: true, body: false, pagination: null },
4801
+ "account.passkeys.rename": { action: "account.passkeys.rename", operationId: "account_passkeys_rename", method: "PATCH", path: "/me/passkeys/{passkey_id}", pathParams: ["passkey_id"], scope: "account:sign_in:write", danger: "write", approval: true, body: true, pagination: null },
4802
+ "account.pipes.disconnect": { action: "account.pipes.disconnect", operationId: "account_pipes_disconnect", method: "DELETE", path: "/me/pipes/{provider}", pathParams: ["provider"], scope: "account:pipes:write", danger: "destructive", approval: true, body: false, pagination: null },
3903
4803
  "account.profile.update": { action: "account.profile.update", operationId: "account_profile_update", method: "PATCH", path: "/me/profile", pathParams: [], scope: "account:profile:write", danger: "write", approval: true, body: true, pagination: null },
3904
4804
  "account.sessions.revoke": { action: "account.sessions.revoke", operationId: "account_sessions_revoke", method: "DELETE", path: "/me/sessions/{session_id}", pathParams: ["session_id"], scope: "account:sessions:write", danger: "destructive", approval: true, body: false, pagination: null },
3905
4805
  "account.sessions.revoke_others": { action: "account.sessions.revoke_others", operationId: "account_sessions_revoke_others", method: "POST", path: "/me/sessions/revoke-others", pathParams: [], scope: "account:sessions:write", danger: "critical", approval: true, body: false, pagination: null },
3906
- "account.social.unlink": { action: "account.social.unlink", operationId: "account_social_unlink", method: "DELETE", path: "/me/social/{provider}", pathParams: ["provider"], scope: "account:sign_in:write", danger: "critical", approval: true, body: false, pagination: null }
4806
+ "account.sign_in_methods.disconnect": { action: "account.sign_in_methods.disconnect", operationId: "account_sign_in_methods_disconnect", method: "DELETE", path: "/me/sign-in-methods/{identity_id}", pathParams: ["identity_id"], scope: "account:sign_in:write", danger: "critical", approval: true, body: false, pagination: null },
4807
+ "account.social.unlink": { action: "account.social.unlink", operationId: "account_social_unlink", method: "DELETE", path: "/me/social/{provider}", pathParams: ["provider"], scope: "account:sign_in:write", danger: "critical", approval: true, body: false, pagination: null },
4808
+ "account.totp.remove": { action: "account.totp.remove", operationId: "account_totp_remove", method: "DELETE", path: "/me/two-factor/apps/{factor_id}", pathParams: ["factor_id"], scope: "account:sign_in:write", danger: "critical", approval: true, body: false, pagination: null },
4809
+ "account.totp.rename": { action: "account.totp.rename", operationId: "account_totp_rename", method: "PATCH", path: "/me/two-factor/apps/{factor_id}", pathParams: ["factor_id"], scope: "account:sign_in:write", danger: "write", approval: true, body: true, pagination: null },
4810
+ "account.waitlists.join": { action: "account.waitlists.join", operationId: "account_waitlists_join", method: "POST", path: "/me/services/{program}/waitlist", pathParams: ["program"], scope: "account:waitlists:write", danger: "write", approval: true, body: true, pagination: null },
4811
+ "account.waitlists.leave": { action: "account.waitlists.leave", operationId: "account_waitlists_leave", method: "POST", path: "/me/services/{program}/waitlist/leave", pathParams: ["program"], scope: "account:waitlists:write", danger: "write", approval: true, body: true, pagination: null }
3907
4812
  };
3908
4813
  var AccountClient = class {
3909
4814
  /** The transport every method runs on — authentication, retries, approvals. */
@@ -3962,6 +4867,19 @@ var AccountClient = class {
3962
4867
  */
3963
4868
  revoke: (clientId, options) => this.transport.call(accountOperations["account.applications.revoke"], [clientId], void 0, options)
3964
4869
  };
4870
+ apps = {
4871
+ /**
4872
+ * List the published apps visible to you in this environment. Optional organization context must be one you actively belong to.
4873
+ *
4874
+ * Requires scope `account:apps:read` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: read.
4875
+ *
4876
+ * `GET /me/apps` · action `account.apps.list`
4877
+ * @scope `account:apps:read`
4878
+ * @danger read
4879
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4880
+ */
4881
+ list: (query, options) => this.transport.call(accountOperations["account.apps.list"], [], query, options)
4882
+ };
3965
4883
  devices = {
3966
4884
  /**
3967
4885
  * Remove one of your trusted devices; it is no longer asked to approve anything.
@@ -3975,6 +4893,36 @@ var AccountClient = class {
3975
4893
  */
3976
4894
  remove: (deviceId, options) => this.transport.call(accountOperations["account.devices.remove"], [deviceId], void 0, options)
3977
4895
  };
4896
+ email = {
4897
+ confirmation: {
4898
+ /**
4899
+ * Mail yourself a link that confirms your email address.
4900
+ *
4901
+ * Requires scope `account:profile:write` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: write.
4902
+ *
4903
+ * `POST /me/email/confirmation` · action `account.email.confirmation.send`
4904
+ * @scope `account:profile:write`
4905
+ * @danger write
4906
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4907
+ */
4908
+ send: (options) => this.transport.call(accountOperations["account.email.confirmation.send"], [], void 0, options)
4909
+ }
4910
+ };
4911
+ mfa = {
4912
+ sms: {
4913
+ /**
4914
+ * Remove your phone number for text-message sign-in codes.
4915
+ *
4916
+ * Requires scope `account:sign_in:write` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: critical.
4917
+ *
4918
+ * `DELETE /me/mfa/sms` · action `account.mfa.sms.remove`
4919
+ * @scope `account:sign_in:write`
4920
+ * @danger critical
4921
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4922
+ */
4923
+ remove: (options) => this.transport.call(accountOperations["account.mfa.sms.remove"], [], void 0, options)
4924
+ }
4925
+ };
3978
4926
  organizations = {
3979
4927
  /**
3980
4928
  * Leave one of your own organizations. The last owner cannot leave — transfer ownership first.
@@ -3999,7 +4947,31 @@ var AccountClient = class {
3999
4947
  * @danger critical
4000
4948
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4001
4949
  */
4002
- remove: (passkeyId, options) => this.transport.call(accountOperations["account.passkeys.remove"], [passkeyId], void 0, options)
4950
+ remove: (passkeyId, options) => this.transport.call(accountOperations["account.passkeys.remove"], [passkeyId], void 0, options),
4951
+ /**
4952
+ * Rename one of your passkeys.
4953
+ *
4954
+ * Requires scope `account:sign_in:write` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: write.
4955
+ *
4956
+ * `PATCH /me/passkeys/{passkey_id}` · action `account.passkeys.rename`
4957
+ * @scope `account:sign_in:write`
4958
+ * @danger write
4959
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4960
+ */
4961
+ rename: (passkeyId, body, options) => this.transport.call(accountOperations["account.passkeys.rename"], [passkeyId], body, options)
4962
+ };
4963
+ pipes = {
4964
+ /**
4965
+ * Disconnect one of your connected services, revoking the access you gave it.
4966
+ *
4967
+ * Requires scope `account:pipes:write` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: destructive.
4968
+ *
4969
+ * `DELETE /me/pipes/{provider}` · action `account.pipes.disconnect`
4970
+ * @scope `account:pipes:write`
4971
+ * @danger destructive
4972
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4973
+ */
4974
+ disconnect: (provider, options) => this.transport.call(accountOperations["account.pipes.disconnect"], [provider], void 0, options)
4003
4975
  };
4004
4976
  profile = {
4005
4977
  /**
@@ -4038,6 +5010,19 @@ var AccountClient = class {
4038
5010
  */
4039
5011
  revokeOthers: (options) => this.transport.call(accountOperations["account.sessions.revoke_others"], [], void 0, options)
4040
5012
  };
5013
+ signInMethods = {
5014
+ /**
5015
+ * Disconnect one linked sign-in identity (Google, GitHub, …) from your account — never the last way you can sign in.
5016
+ *
5017
+ * Requires scope `account:sign_in:write` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: critical.
5018
+ *
5019
+ * `DELETE /me/sign-in-methods/{identity_id}` · action `account.sign_in_methods.disconnect`
5020
+ * @scope `account:sign_in:write`
5021
+ * @danger critical
5022
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
5023
+ */
5024
+ disconnect: (identityId, options) => this.transport.call(accountOperations["account.sign_in_methods.disconnect"], [identityId], void 0, options)
5025
+ };
4041
5026
  social = {
4042
5027
  /**
4043
5028
  * Disconnect a social account from yours — never the last way you can sign in.
@@ -4051,6 +5036,54 @@ var AccountClient = class {
4051
5036
  */
4052
5037
  unlink: (provider, options) => this.transport.call(accountOperations["account.social.unlink"], [provider], void 0, options)
4053
5038
  };
5039
+ totp = {
5040
+ /**
5041
+ * Remove one of your authenticator apps.
5042
+ *
5043
+ * Requires scope `account:sign_in:write` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: critical.
5044
+ *
5045
+ * `DELETE /me/two-factor/apps/{factor_id}` · action `account.totp.remove`
5046
+ * @scope `account:sign_in:write`
5047
+ * @danger critical
5048
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
5049
+ */
5050
+ remove: (factorId, options) => this.transport.call(accountOperations["account.totp.remove"], [factorId], void 0, options),
5051
+ /**
5052
+ * Rename one of your authenticator apps.
5053
+ *
5054
+ * Requires scope `account:sign_in:write` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: write.
5055
+ *
5056
+ * `PATCH /me/two-factor/apps/{factor_id}` · action `account.totp.rename`
5057
+ * @scope `account:sign_in:write`
5058
+ * @danger write
5059
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
5060
+ */
5061
+ rename: (factorId, body, options) => this.transport.call(accountOperations["account.totp.rename"], [factorId], body, options)
5062
+ };
5063
+ waitlists = {
5064
+ /**
5065
+ * Join a published service waitlist with your verified email. Does not buy a plan or grant access.
5066
+ *
5067
+ * Requires scope `account:waitlists:write` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: write.
5068
+ *
5069
+ * `POST /me/services/{program}/waitlist` · action `account.waitlists.join`
5070
+ * @scope `account:waitlists:write`
5071
+ * @danger write
5072
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
5073
+ */
5074
+ join: (program, body, options) => this.transport.call(accountOperations["account.waitlists.join"], [program], body, options),
5075
+ /**
5076
+ * Withdraw your own feature interest or beta application for a team. Active grants are managed by the service.
5077
+ *
5078
+ * Requires scope `account:waitlists:write` on an access token you delegated; it acts on your own account only. No management key is accepted. Danger: write.
5079
+ *
5080
+ * `POST /me/services/{program}/waitlist/leave` · action `account.waitlists.leave`
5081
+ * @scope `account:waitlists:write`
5082
+ * @danger write
5083
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
5084
+ */
5085
+ leave: (program, body, options) => this.transport.call(accountOperations["account.waitlists.leave"], [program], body, options)
5086
+ };
4054
5087
  };
4055
5088
 
4056
5089
  // src/management/dpop.ts
@@ -4339,6 +5372,25 @@ async function verifyAuditLogChain(client, query, options = {}) {
4339
5372
  return verifyAuditChain(client.auditLogs.events.listAll({ ...query, order: "asc" }), options);
4340
5373
  }
4341
5374
 
5375
+ // src/management/fga.ts
5376
+ function fgaTuple(tuple) {
5377
+ const name = (value, what) => {
5378
+ if (value === "" || /[\s#@:]/.test(value)) {
5379
+ throw new TypeError(`An FGA ${what} cannot be empty or contain whitespace, '#', '@' or ':': ${JSON.stringify(value)}`);
5380
+ }
5381
+ return value;
5382
+ };
5383
+ const id = (value, what) => {
5384
+ if (value === "" || /[\s#@]/.test(value)) {
5385
+ throw new TypeError(`An FGA ${what} cannot be empty or contain whitespace, '#' or '@': ${JSON.stringify(value)}`);
5386
+ }
5387
+ return value;
5388
+ };
5389
+ const subject = `${name(tuple.subject.type, "subject type")}:${id(tuple.subject.id, "subject id")}`;
5390
+ const userset = tuple.subject.relation ? `#${name(tuple.subject.relation, "subject relation")}` : "";
5391
+ return `${name(tuple.resource_type, "resource type")}:${id(tuple.resource_id, "resource id")}#${name(tuple.relation, "relation")}@${subject}${userset}`;
5392
+ }
5393
+
4342
5394
  exports.AUDIT_CHAIN_GENESIS = AUDIT_CHAIN_GENESIS;
4343
5395
  exports.AccountClient = AccountClient;
4344
5396
  exports.ApprovalDeniedError = ApprovalDeniedError;
@@ -4362,6 +5414,7 @@ exports.canonicalJson = canonicalJson;
4362
5414
  exports.createDPoPSigner = createDPoPSigner;
4363
5415
  exports.environmentOperations = environmentOperations;
4364
5416
  exports.exportAuditLogs = exportAuditLogs;
5417
+ exports.fgaTuple = fgaTuple;
4365
5418
  exports.generateDPoPKeyPair = generateDPoPKeyPair;
4366
5419
  exports.platformOperations = platformOperations;
4367
5420
  exports.retryAfterMs = retryAfterMs;