@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.
- package/CHANGELOG.md +185 -0
- package/README.md +121 -4
- package/RELEASE-CANDIDATE.md +11 -0
- package/dist/api-keys-BE3R3q_A.d.ts +105 -0
- package/dist/api-keys-C8-Q4eFA.d.cts +105 -0
- package/dist/chunk-EVZ6RB3K.js +98 -0
- package/dist/chunk-EVZ6RB3K.js.map +1 -0
- package/dist/{chunk-CXGKOJRJ.js → chunk-YGLMLIKL.js} +144 -9
- package/dist/chunk-YGLMLIKL.js.map +1 -0
- package/dist/{client-BxUHm5hX.d.cts → client-BT-jOm0p.d.cts} +126 -2
- package/dist/{client-BSZASrMo.d.ts → client-xlEJalu8.d.ts} +126 -2
- package/dist/decisions-C84Fzah4.d.ts +23 -0
- package/dist/decisions-DNd9UXwi.d.cts +23 -0
- package/dist/index.cjs +338 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +84 -6
- package/dist/index.d.ts +84 -6
- package/dist/index.js +87 -15
- package/dist/index.js.map +1 -1
- package/dist/management.cjs +1115 -62
- package/dist/management.cjs.map +1 -1
- package/dist/management.d.cts +3618 -135
- package/dist/management.d.ts +3618 -135
- package/dist/management.js +1115 -63
- package/dist/management.js.map +1 -1
- package/dist/nextjs.cjs +136 -5
- package/dist/nextjs.cjs.map +1 -1
- package/dist/nextjs.d.cts +4 -3
- package/dist/nextjs.d.ts +4 -3
- package/dist/nextjs.js +1 -1
- package/dist/server.cjs +103 -9
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +3 -105
- package/dist/server.d.ts +3 -105
- package/dist/server.js +1 -0
- package/dist/{types-BYZldock.d.cts → types-CC1bz68x.d.cts} +30 -1
- package/dist/{types-BYZldock.d.ts → types-CC1bz68x.d.ts} +30 -1
- package/package.json +8 -3
- package/dist/chunk-CXGKOJRJ.js.map +0 -1
package/dist/management.js
CHANGED
|
@@ -563,6 +563,10 @@ var environmentOperations = {
|
|
|
563
563
|
"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 },
|
|
564
564
|
"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 },
|
|
565
565
|
"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 },
|
|
566
|
+
"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 },
|
|
567
|
+
"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 },
|
|
568
|
+
"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 },
|
|
569
|
+
"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 },
|
|
566
570
|
"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 },
|
|
567
571
|
"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" },
|
|
568
572
|
"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 },
|
|
@@ -579,6 +583,7 @@ var environmentOperations = {
|
|
|
579
583
|
"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 },
|
|
580
584
|
"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 },
|
|
581
585
|
"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 },
|
|
586
|
+
"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 },
|
|
582
587
|
"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 },
|
|
583
588
|
"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 },
|
|
584
589
|
"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 },
|
|
@@ -595,18 +600,23 @@ var environmentOperations = {
|
|
|
595
600
|
"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 },
|
|
596
601
|
"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 },
|
|
597
602
|
"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" },
|
|
603
|
+
"authenticator.me.list": { action: null, operationId: "authenticatorIdentity", method: "GET", path: "/authenticator/me", pathParams: [], scope: null, danger: null, approval: false, body: false, pagination: null },
|
|
598
604
|
"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 },
|
|
599
605
|
"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 },
|
|
600
606
|
"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 },
|
|
601
607
|
"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 },
|
|
602
608
|
"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 },
|
|
603
609
|
"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 },
|
|
610
|
+
"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 },
|
|
604
611
|
"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 },
|
|
605
612
|
"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 },
|
|
606
613
|
"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" },
|
|
607
614
|
"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 },
|
|
615
|
+
"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 },
|
|
608
616
|
"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" },
|
|
609
617
|
"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 },
|
|
618
|
+
"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 },
|
|
619
|
+
"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 },
|
|
610
620
|
"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 },
|
|
611
621
|
"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 },
|
|
612
622
|
"domains.add": { action: "domains.add", operationId: "domains_add", method: "POST", path: "/domains", pathParams: [], scope: "domains:write", danger: "write", approval: true, body: true, pagination: null },
|
|
@@ -614,6 +624,22 @@ var environmentOperations = {
|
|
|
614
624
|
"domains.remove": { action: "domains.remove", operationId: "domains_remove", method: "DELETE", path: "/domains", pathParams: [], scope: "domains:write", danger: "destructive", approval: true, body: false, pagination: null },
|
|
615
625
|
"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 },
|
|
616
626
|
"events.list": { action: "events.list", operationId: "events_list", method: "GET", path: "/events", pathParams: [], scope: "events:read", danger: "read", approval: true, body: false, pagination: "cursor" },
|
|
627
|
+
"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 },
|
|
628
|
+
"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 },
|
|
629
|
+
"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 },
|
|
630
|
+
"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 },
|
|
631
|
+
"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" },
|
|
632
|
+
"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 },
|
|
633
|
+
"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 },
|
|
634
|
+
"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 },
|
|
635
|
+
"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" },
|
|
636
|
+
"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 },
|
|
637
|
+
"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 },
|
|
638
|
+
"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 },
|
|
639
|
+
"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" },
|
|
640
|
+
"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 },
|
|
641
|
+
"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" },
|
|
642
|
+
"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 },
|
|
617
643
|
"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 },
|
|
618
644
|
"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" },
|
|
619
645
|
"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 },
|
|
@@ -623,6 +649,7 @@ var environmentOperations = {
|
|
|
623
649
|
"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 },
|
|
624
650
|
"hooks.list": { action: "hooks.list", operationId: "hooks_list", method: "GET", path: "/hooks", pathParams: [], scope: "hooks:read", danger: "read", approval: true, body: false, pagination: "cursor" },
|
|
625
651
|
"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 },
|
|
652
|
+
"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 },
|
|
626
653
|
"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" },
|
|
627
654
|
"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 },
|
|
628
655
|
"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 },
|
|
@@ -642,6 +669,7 @@ var environmentOperations = {
|
|
|
642
669
|
"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 },
|
|
643
670
|
"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 },
|
|
644
671
|
"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 },
|
|
672
|
+
"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 },
|
|
645
673
|
"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" },
|
|
646
674
|
"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 },
|
|
647
675
|
"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 },
|
|
@@ -668,12 +696,36 @@ var environmentOperations = {
|
|
|
668
696
|
"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 },
|
|
669
697
|
"permissions.list": { action: "permissions.list", operationId: "permissions_list", method: "GET", path: "/permissions", pathParams: [], scope: "roles:read", danger: "read", approval: true, body: false, pagination: "cursor" },
|
|
670
698
|
"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 },
|
|
699
|
+
"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 },
|
|
700
|
+
"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" },
|
|
701
|
+
"pipes.create": { action: "pipes.create", operationId: "pipes_create", method: "POST", path: "/pipes", pathParams: [], scope: "pipes:write", danger: "write", approval: true, body: true, pagination: null },
|
|
702
|
+
"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 },
|
|
703
|
+
"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 },
|
|
704
|
+
"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 },
|
|
705
|
+
"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 },
|
|
706
|
+
"pipes.list": { action: "pipes.list", operationId: "pipes_list", method: "GET", path: "/pipes", pathParams: [], scope: "pipes:read", danger: "read", approval: true, body: false, pagination: "cursor" },
|
|
707
|
+
"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 },
|
|
671
708
|
"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 },
|
|
672
709
|
"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 },
|
|
673
710
|
"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 },
|
|
674
711
|
"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" },
|
|
675
712
|
"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 },
|
|
713
|
+
"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 },
|
|
714
|
+
"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" },
|
|
715
|
+
"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 },
|
|
716
|
+
"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" },
|
|
717
|
+
"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 },
|
|
718
|
+
"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 },
|
|
719
|
+
"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 },
|
|
720
|
+
"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 },
|
|
721
|
+
"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 },
|
|
722
|
+
"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" },
|
|
723
|
+
"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 },
|
|
724
|
+
"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 },
|
|
725
|
+
"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 },
|
|
726
|
+
"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 },
|
|
676
727
|
"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 },
|
|
728
|
+
"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 },
|
|
677
729
|
"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 },
|
|
678
730
|
"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 },
|
|
679
731
|
"roles.list": { action: "roles.list", operationId: "roles_list", method: "GET", path: "/roles", pathParams: [], scope: "roles:read", danger: "read", approval: true, body: false, pagination: null },
|
|
@@ -685,13 +737,22 @@ var environmentOperations = {
|
|
|
685
737
|
"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 },
|
|
686
738
|
"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" },
|
|
687
739
|
"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 },
|
|
740
|
+
"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" },
|
|
741
|
+
"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" },
|
|
688
742
|
"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 },
|
|
689
743
|
"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 },
|
|
690
744
|
"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 },
|
|
691
745
|
"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 },
|
|
746
|
+
"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 },
|
|
747
|
+
"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 },
|
|
692
748
|
"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 },
|
|
749
|
+
"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 },
|
|
750
|
+
"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 },
|
|
751
|
+
"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 },
|
|
693
752
|
"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" },
|
|
753
|
+
"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 },
|
|
694
754
|
"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 },
|
|
755
|
+
"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 },
|
|
695
756
|
"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 },
|
|
696
757
|
"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 },
|
|
697
758
|
"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 },
|
|
@@ -723,6 +784,8 @@ var environmentOperations = {
|
|
|
723
784
|
"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" },
|
|
724
785
|
"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 },
|
|
725
786
|
"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 },
|
|
787
|
+
"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 },
|
|
788
|
+
"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 },
|
|
726
789
|
"users.create": { action: "users.create", operationId: "users_create", method: "POST", path: "/users", pathParams: [], scope: "users:write", danger: "write", approval: true, body: true, pagination: null },
|
|
727
790
|
"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 },
|
|
728
791
|
"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 },
|
|
@@ -733,6 +796,7 @@ var environmentOperations = {
|
|
|
733
796
|
"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 },
|
|
734
797
|
"users.list": { action: "users.list", operationId: "users_list", method: "GET", path: "/users", pathParams: [], scope: "users:read", danger: "read", approval: true, body: false, pagination: "cursor" },
|
|
735
798
|
"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 },
|
|
799
|
+
"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 },
|
|
736
800
|
"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 },
|
|
737
801
|
"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 },
|
|
738
802
|
"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 },
|
|
@@ -968,6 +1032,52 @@ var EnvironmentClient = class {
|
|
|
968
1032
|
remove: (id, key, options) => this.transport.call(environmentOperations["apis.scopes.remove"], [id, key], void 0, options)
|
|
969
1033
|
}
|
|
970
1034
|
};
|
|
1035
|
+
appCatalog = {
|
|
1036
|
+
/**
|
|
1037
|
+
* Remove a catalog app without deleting its OAuth clients or user data.
|
|
1038
|
+
*
|
|
1039
|
+
* Requires scope `app_catalog:write`. Danger: destructive.
|
|
1040
|
+
*
|
|
1041
|
+
* `DELETE /app-catalog/{key}` · action `app_catalog.delete`
|
|
1042
|
+
* @scope `app_catalog:write`
|
|
1043
|
+
* @danger destructive
|
|
1044
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1045
|
+
*/
|
|
1046
|
+
delete: (key, body, options) => this.transport.call(environmentOperations["app_catalog.delete"], [key], body, options),
|
|
1047
|
+
/**
|
|
1048
|
+
* List catalog apps, including drafts and visibility settings.
|
|
1049
|
+
*
|
|
1050
|
+
* Requires scope `app_catalog:read`. Danger: read.
|
|
1051
|
+
*
|
|
1052
|
+
* `GET /app-catalog` · action `app_catalog.list`
|
|
1053
|
+
* @scope `app_catalog:read`
|
|
1054
|
+
* @danger read
|
|
1055
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1056
|
+
*/
|
|
1057
|
+
list: (options) => this.transport.call(environmentOperations["app_catalog.list"], [], void 0, options),
|
|
1058
|
+
/**
|
|
1059
|
+
* Create or replace a catalog app, its icon and visibility. Version zero creates; a stale version conflicts.
|
|
1060
|
+
*
|
|
1061
|
+
* Requires scope `app_catalog:write`. Danger: write.
|
|
1062
|
+
*
|
|
1063
|
+
* `PUT /app-catalog/{key}` · action `app_catalog.save`
|
|
1064
|
+
* @scope `app_catalog:write`
|
|
1065
|
+
* @danger write
|
|
1066
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1067
|
+
*/
|
|
1068
|
+
save: (key, body, options) => this.transport.call(environmentOperations["app_catalog.save"], [key], body, options),
|
|
1069
|
+
/**
|
|
1070
|
+
* Read a catalog app and its publication settings.
|
|
1071
|
+
*
|
|
1072
|
+
* Requires scope `app_catalog:read`. Danger: read.
|
|
1073
|
+
*
|
|
1074
|
+
* `GET /app-catalog/{key}` · action `app_catalog.show`
|
|
1075
|
+
* @scope `app_catalog:read`
|
|
1076
|
+
* @danger read
|
|
1077
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1078
|
+
*/
|
|
1079
|
+
show: (key, options) => this.transport.call(environmentOperations["app_catalog.show"], [key], void 0, options)
|
|
1080
|
+
};
|
|
971
1081
|
approvals = {
|
|
972
1082
|
/**
|
|
973
1083
|
* Deny a pending approval request (CIBA) for the person it was raised for: the agent gets access_denied and no token.
|
|
@@ -1191,6 +1301,17 @@ var EnvironmentClient = class {
|
|
|
1191
1301
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1192
1302
|
*/
|
|
1193
1303
|
backchannelLogout: (id, body, options) => this.transport.call(environmentOperations["apps.settings.backchannel_logout"], [id], body, options),
|
|
1304
|
+
/**
|
|
1305
|
+
* Turn client-credentials authentication on or off for a confidential app; other grants and scopes stay unchanged.
|
|
1306
|
+
*
|
|
1307
|
+
* Requires scope `apps:write`. Danger: write.
|
|
1308
|
+
*
|
|
1309
|
+
* `PUT /apps/{id}/settings/client-credentials` · action `apps.settings.client_credentials`
|
|
1310
|
+
* @scope `apps:write`
|
|
1311
|
+
* @danger write
|
|
1312
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1313
|
+
*/
|
|
1314
|
+
clientCredentials: (id, body, options) => this.transport.call(environmentOperations["apps.settings.client_credentials"], [id], body, options),
|
|
1194
1315
|
/**
|
|
1195
1316
|
* Turn token exchange (RFC 8693) on or off for a confidential app.
|
|
1196
1317
|
*
|
|
@@ -1376,6 +1497,18 @@ var EnvironmentClient = class {
|
|
|
1376
1497
|
/** Every item of `audit.list`, fetching pages as the iteration reaches them. */
|
|
1377
1498
|
listAll: (query, options) => this.transport.paginate(environmentOperations["audit.list"], [], query, options)
|
|
1378
1499
|
};
|
|
1500
|
+
authenticator = {
|
|
1501
|
+
me: {
|
|
1502
|
+
/**
|
|
1503
|
+
* Verified identity for the authenticator
|
|
1504
|
+
*
|
|
1505
|
+
* Requires the provisioned public authenticator client, devices.manage and a DPoP proof. Available before device registration; revoked keys are refused.
|
|
1506
|
+
*
|
|
1507
|
+
* `GET /authenticator/me`
|
|
1508
|
+
*/
|
|
1509
|
+
list: (options) => this.transport.call(environmentOperations["authenticator.me.list"], [], void 0, options)
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1379
1512
|
branding = {
|
|
1380
1513
|
appearance: {
|
|
1381
1514
|
/**
|
|
@@ -1390,7 +1523,7 @@ var EnvironmentClient = class {
|
|
|
1390
1523
|
*/
|
|
1391
1524
|
get: (query, options) => this.transport.call(environmentOperations["branding.appearance.get"], [], query, options),
|
|
1392
1525
|
/**
|
|
1393
|
-
* Set the hosted sign-in theme (preset, colours, corners, type, logo) for the environment default or one organization.
|
|
1526
|
+
* Set the hosted sign-in theme (preset, colours, corners, type, uploaded logo and favicon) for the environment default or one organization.
|
|
1394
1527
|
*
|
|
1395
1528
|
* Requires scope `branding:write`. Danger: write.
|
|
1396
1529
|
*
|
|
@@ -1484,6 +1617,17 @@ var EnvironmentClient = class {
|
|
|
1484
1617
|
list: (query, options) => this.transport.call(environmentOperations["directories.list"], [], query, options),
|
|
1485
1618
|
/** Every item of `directories.list`, fetching pages as the iteration reaches them. */
|
|
1486
1619
|
listAll: (query, options) => this.transport.paginate(environmentOperations["directories.list"], [], query, options),
|
|
1620
|
+
/**
|
|
1621
|
+
* 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.
|
|
1622
|
+
*
|
|
1623
|
+
* Requires scope `directory_sync:write`. Danger: write.
|
|
1624
|
+
*
|
|
1625
|
+
* `POST /directories/{id}/sync` · action `directories.sync`
|
|
1626
|
+
* @scope `directory_sync:write`
|
|
1627
|
+
* @danger write
|
|
1628
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1629
|
+
*/
|
|
1630
|
+
sync: (id, body, options) => this.transport.call(environmentOperations["directories.sync"], [id], body, options),
|
|
1487
1631
|
/**
|
|
1488
1632
|
* Rename an inbound directory.
|
|
1489
1633
|
*
|
|
@@ -1495,6 +1639,19 @@ var EnvironmentClient = class {
|
|
|
1495
1639
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1496
1640
|
*/
|
|
1497
1641
|
update: (id, body, options) => this.transport.call(environmentOperations["directories.update"], [id], body, options),
|
|
1642
|
+
credentials: {
|
|
1643
|
+
/**
|
|
1644
|
+
* Replace a pull directory's provider credentials, verifying the new ones first. Write-only; never returned.
|
|
1645
|
+
*
|
|
1646
|
+
* Requires scope `directory_sync:write`. Danger: critical.
|
|
1647
|
+
*
|
|
1648
|
+
* `PUT /directories/{id}/credentials` · action `directories.credentials.replace`
|
|
1649
|
+
* @scope `directory_sync:write`
|
|
1650
|
+
* @danger critical
|
|
1651
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1652
|
+
*/
|
|
1653
|
+
replace: (id, body, options) => this.transport.call(environmentOperations["directories.credentials.replace"], [id], body, options)
|
|
1654
|
+
},
|
|
1498
1655
|
groups: {
|
|
1499
1656
|
/**
|
|
1500
1657
|
* List the groups a directory has synced, with the role ids each group is mapped onto.
|
|
@@ -1521,6 +1678,19 @@ var EnvironmentClient = class {
|
|
|
1521
1678
|
*/
|
|
1522
1679
|
map: (id, body, options) => this.transport.call(environmentOperations["directories.groups.map"], [id], body, options)
|
|
1523
1680
|
},
|
|
1681
|
+
hris: {
|
|
1682
|
+
/**
|
|
1683
|
+
* 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.
|
|
1684
|
+
*
|
|
1685
|
+
* Requires scope `directory_sync:write`. Danger: critical.
|
|
1686
|
+
*
|
|
1687
|
+
* `POST /directories/hris` · action `directories.hris.connect`
|
|
1688
|
+
* @scope `directory_sync:write`
|
|
1689
|
+
* @danger critical
|
|
1690
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1691
|
+
*/
|
|
1692
|
+
connect: (body, options) => this.transport.call(environmentOperations["directories.hris.connect"], [], body, options)
|
|
1693
|
+
},
|
|
1524
1694
|
status: {
|
|
1525
1695
|
/**
|
|
1526
1696
|
* Pause or resume an inbound directory's provisioning.
|
|
@@ -1534,6 +1704,19 @@ var EnvironmentClient = class {
|
|
|
1534
1704
|
*/
|
|
1535
1705
|
set: (id, body, options) => this.transport.call(environmentOperations["directories.status.set"], [id], body, options)
|
|
1536
1706
|
},
|
|
1707
|
+
syncSettings: {
|
|
1708
|
+
/**
|
|
1709
|
+
* Set how often a pull directory syncs, and for an HR system which of its fields pass through onto people.
|
|
1710
|
+
*
|
|
1711
|
+
* Requires scope `directory_sync:write`. Danger: write.
|
|
1712
|
+
*
|
|
1713
|
+
* `PATCH /directories/{id}/sync-settings` · action `directories.sync_settings.update`
|
|
1714
|
+
* @scope `directory_sync:write`
|
|
1715
|
+
* @danger write
|
|
1716
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1717
|
+
*/
|
|
1718
|
+
update: (id, body, options) => this.transport.call(environmentOperations["directories.sync_settings.update"], [id], body, options)
|
|
1719
|
+
},
|
|
1537
1720
|
token: {
|
|
1538
1721
|
/**
|
|
1539
1722
|
* Issue a new bearer token for a SCIM directory, returned once. The old token stops working immediately.
|
|
@@ -1609,6 +1792,202 @@ var EnvironmentClient = class {
|
|
|
1609
1792
|
/** Every item of `events.list`, fetching pages as the iteration reaches them. */
|
|
1610
1793
|
listAll: (query, options) => this.transport.paginate(environmentOperations["events.list"], [], query, options)
|
|
1611
1794
|
};
|
|
1795
|
+
featureFlags = {
|
|
1796
|
+
/**
|
|
1797
|
+
* Define a feature flag: a key apps ask about, its default, and who it is on for — named users, named organizations, a rollout percentage.
|
|
1798
|
+
*
|
|
1799
|
+
* Requires scope `feature_flags:write`. Danger: write.
|
|
1800
|
+
*
|
|
1801
|
+
* `POST /feature-flags` · action `feature_flags.create`
|
|
1802
|
+
* @scope `feature_flags:write`
|
|
1803
|
+
* @danger write
|
|
1804
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1805
|
+
*/
|
|
1806
|
+
create: (body, options) => this.transport.call(environmentOperations["feature_flags.create"], [], body, options),
|
|
1807
|
+
/**
|
|
1808
|
+
* Delete a feature flag and its rules. Its key evaluates to off from now on; tokens already minted keep it until they expire.
|
|
1809
|
+
*
|
|
1810
|
+
* Requires scope `feature_flags:write`. Danger: destructive.
|
|
1811
|
+
*
|
|
1812
|
+
* `DELETE /feature-flags/{id}` · action `feature_flags.delete`
|
|
1813
|
+
* @scope `feature_flags:write`
|
|
1814
|
+
* @danger destructive
|
|
1815
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1816
|
+
*/
|
|
1817
|
+
delete: (id, options) => this.transport.call(environmentOperations["feature_flags.delete"], [id], void 0, options),
|
|
1818
|
+
/**
|
|
1819
|
+
* 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.
|
|
1820
|
+
*
|
|
1821
|
+
* Requires scope `feature_flags:read`. Danger: read.
|
|
1822
|
+
*
|
|
1823
|
+
* `GET /feature-flags/evaluate` · action `feature_flags.evaluate`
|
|
1824
|
+
* @scope `feature_flags:read`
|
|
1825
|
+
* @danger read
|
|
1826
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1827
|
+
*/
|
|
1828
|
+
evaluate: (query, options) => this.transport.call(environmentOperations["feature_flags.evaluate"], [], query, options),
|
|
1829
|
+
/**
|
|
1830
|
+
* Read one feature flag: its default, whether it is switched on, and every user, organization and rollout rule.
|
|
1831
|
+
*
|
|
1832
|
+
* Requires scope `feature_flags:read`. Danger: read.
|
|
1833
|
+
*
|
|
1834
|
+
* `GET /feature-flags/{id}` · action `feature_flags.get`
|
|
1835
|
+
* @scope `feature_flags:read`
|
|
1836
|
+
* @danger read
|
|
1837
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1838
|
+
*/
|
|
1839
|
+
get: (id, options) => this.transport.call(environmentOperations["feature_flags.get"], [id], void 0, options),
|
|
1840
|
+
/**
|
|
1841
|
+
* List this environment's feature flags with their default, kill switch and targeting rules.
|
|
1842
|
+
*
|
|
1843
|
+
* Requires scope `feature_flags:read`. Danger: read.
|
|
1844
|
+
*
|
|
1845
|
+
* `GET /feature-flags` · action `feature_flags.list`
|
|
1846
|
+
* @scope `feature_flags:read`
|
|
1847
|
+
* @danger read
|
|
1848
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1849
|
+
*/
|
|
1850
|
+
list: (query, options) => this.transport.call(environmentOperations["feature_flags.list"], [], query, options),
|
|
1851
|
+
/** Every item of `feature_flags.list`, fetching pages as the iteration reaches them. */
|
|
1852
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["feature_flags.list"], [], query, options),
|
|
1853
|
+
/**
|
|
1854
|
+
* Change a feature flag: switch it on or off for everyone, change its default, or replace its user rules, organization rules or rollout percentage.
|
|
1855
|
+
*
|
|
1856
|
+
* Requires scope `feature_flags:write`. Danger: write.
|
|
1857
|
+
*
|
|
1858
|
+
* `PATCH /feature-flags/{id}` · action `feature_flags.update`
|
|
1859
|
+
* @scope `feature_flags:write`
|
|
1860
|
+
* @danger write
|
|
1861
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1862
|
+
*/
|
|
1863
|
+
update: (id, body, options) => this.transport.call(environmentOperations["feature_flags.update"], [id], body, options)
|
|
1864
|
+
};
|
|
1865
|
+
fga = {
|
|
1866
|
+
/**
|
|
1867
|
+
* 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.
|
|
1868
|
+
*
|
|
1869
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1870
|
+
*
|
|
1871
|
+
* `GET /fga/check` · action `fga.check`
|
|
1872
|
+
* @scope `fga:read`
|
|
1873
|
+
* @danger read
|
|
1874
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1875
|
+
*/
|
|
1876
|
+
check: (query, options) => this.transport.call(environmentOperations["fga.check"], [], query, options),
|
|
1877
|
+
/**
|
|
1878
|
+
* 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.
|
|
1879
|
+
*
|
|
1880
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1881
|
+
*
|
|
1882
|
+
* `GET /fga/check/batch` · action `fga.check_batch`
|
|
1883
|
+
* @scope `fga:read`
|
|
1884
|
+
* @danger read
|
|
1885
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1886
|
+
*/
|
|
1887
|
+
checkBatch: (query, options) => this.transport.call(environmentOperations["fga.check_batch"], [], query, options),
|
|
1888
|
+
resources: {
|
|
1889
|
+
/**
|
|
1890
|
+
* 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.
|
|
1891
|
+
*
|
|
1892
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1893
|
+
*
|
|
1894
|
+
* `GET /fga/resources` · action `fga.resources.list`
|
|
1895
|
+
* @scope `fga:read`
|
|
1896
|
+
* @danger read
|
|
1897
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1898
|
+
*/
|
|
1899
|
+
list: (query, options) => this.transport.call(environmentOperations["fga.resources.list"], [], query, options),
|
|
1900
|
+
/** Every item of `fga.resources.list`, fetching pages as the iteration reaches them. */
|
|
1901
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["fga.resources.list"], [], query, options)
|
|
1902
|
+
},
|
|
1903
|
+
schema: {
|
|
1904
|
+
/**
|
|
1905
|
+
* Read this environment's fine-grained authorization schema: the source text, its parsed types and relations, its version, and the current consistency token.
|
|
1906
|
+
*
|
|
1907
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1908
|
+
*
|
|
1909
|
+
* `GET /fga/schema` · action `fga.schema.get`
|
|
1910
|
+
* @scope `fga:read`
|
|
1911
|
+
* @danger read
|
|
1912
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1913
|
+
*/
|
|
1914
|
+
get: (options) => this.transport.call(environmentOperations["fga.schema.get"], [], void 0, options),
|
|
1915
|
+
/**
|
|
1916
|
+
* 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.
|
|
1917
|
+
*
|
|
1918
|
+
* Requires scope `fga:schema`. Danger: critical.
|
|
1919
|
+
*
|
|
1920
|
+
* `PUT /fga/schema` · action `fga.schema.update`
|
|
1921
|
+
* @scope `fga:schema`
|
|
1922
|
+
* @danger critical
|
|
1923
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1924
|
+
*/
|
|
1925
|
+
update: (body, options) => this.transport.call(environmentOperations["fga.schema.update"], [], body, options),
|
|
1926
|
+
/**
|
|
1927
|
+
* Check a fine-grained authorization schema without saving it: every error by line, or the parsed types and canonical text.
|
|
1928
|
+
*
|
|
1929
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1930
|
+
*
|
|
1931
|
+
* `GET /fga/schema/validate` · action `fga.schema.validate`
|
|
1932
|
+
* @scope `fga:read`
|
|
1933
|
+
* @danger read
|
|
1934
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1935
|
+
*/
|
|
1936
|
+
validate: (query, options) => this.transport.call(environmentOperations["fga.schema.validate"], [], query, options)
|
|
1937
|
+
},
|
|
1938
|
+
subjects: {
|
|
1939
|
+
/**
|
|
1940
|
+
* 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.
|
|
1941
|
+
*
|
|
1942
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1943
|
+
*
|
|
1944
|
+
* `GET /fga/subjects` · action `fga.subjects.list`
|
|
1945
|
+
* @scope `fga:read`
|
|
1946
|
+
* @danger read
|
|
1947
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1948
|
+
*/
|
|
1949
|
+
list: (query, options) => this.transport.call(environmentOperations["fga.subjects.list"], [], query, options),
|
|
1950
|
+
/** Every item of `fga.subjects.list`, fetching pages as the iteration reaches them. */
|
|
1951
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["fga.subjects.list"], [], query, options)
|
|
1952
|
+
},
|
|
1953
|
+
tuples: {
|
|
1954
|
+
/**
|
|
1955
|
+
* Delete 1–100 relationship tuples in one atomic batch. Revokes the access they granted, and everything inherited through them, at once.
|
|
1956
|
+
*
|
|
1957
|
+
* Requires scope `fga:write`. Danger: destructive.
|
|
1958
|
+
*
|
|
1959
|
+
* `POST /fga/tuples/delete` · action `fga.tuples.delete`
|
|
1960
|
+
* @scope `fga:write`
|
|
1961
|
+
* @danger destructive
|
|
1962
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1963
|
+
*/
|
|
1964
|
+
delete: (body, options) => this.transport.call(environmentOperations["fga.tuples.delete"], [], body, options),
|
|
1965
|
+
/**
|
|
1966
|
+
* List stored relationship tuples oldest first, filtered by resource type and id, relation and subject; pass next_cursor as after to page.
|
|
1967
|
+
*
|
|
1968
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1969
|
+
*
|
|
1970
|
+
* `GET /fga/tuples` · action `fga.tuples.list`
|
|
1971
|
+
* @scope `fga:read`
|
|
1972
|
+
* @danger read
|
|
1973
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1974
|
+
*/
|
|
1975
|
+
list: (query, options) => this.transport.call(environmentOperations["fga.tuples.list"], [], query, options),
|
|
1976
|
+
/** Every item of `fga.tuples.list`, fetching pages as the iteration reaches them. */
|
|
1977
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["fga.tuples.list"], [], query, options),
|
|
1978
|
+
/**
|
|
1979
|
+
* 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.
|
|
1980
|
+
*
|
|
1981
|
+
* Requires scope `fga:write`. Danger: write.
|
|
1982
|
+
*
|
|
1983
|
+
* `POST /fga/tuples` · action `fga.tuples.write`
|
|
1984
|
+
* @scope `fga:write`
|
|
1985
|
+
* @danger write
|
|
1986
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1987
|
+
*/
|
|
1988
|
+
write: (body, options) => this.transport.call(environmentOperations["fga.tuples.write"], [], body, options)
|
|
1989
|
+
}
|
|
1990
|
+
};
|
|
1612
1991
|
frontendKeys = {
|
|
1613
1992
|
/**
|
|
1614
1993
|
* Create a publishable frontend key for a browser app, usable only from the origins listed. The key is public by design.
|
|
@@ -1717,6 +2096,17 @@ var EnvironmentClient = class {
|
|
|
1717
2096
|
update: (id, body, options) => this.transport.call(environmentOperations["hooks.update"], [id], body, options)
|
|
1718
2097
|
};
|
|
1719
2098
|
invitations = {
|
|
2099
|
+
/**
|
|
2100
|
+
* Get an invitation and its acceptance receipt, confined to its organization.
|
|
2101
|
+
*
|
|
2102
|
+
* Requires scope `invitations:read`. Danger: read.
|
|
2103
|
+
*
|
|
2104
|
+
* `GET /organizations/{organization_id}/invitations/{invitation_id}` · action `invitations.get`
|
|
2105
|
+
* @scope `invitations:read`
|
|
2106
|
+
* @danger read
|
|
2107
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2108
|
+
*/
|
|
2109
|
+
get: (organizationId, invitationId, options) => this.transport.call(environmentOperations["invitations.get"], [organizationId, invitationId], void 0, options),
|
|
1720
2110
|
/**
|
|
1721
2111
|
* List an organization's pending invitations
|
|
1722
2112
|
*
|
|
@@ -2016,6 +2406,21 @@ var EnvironmentClient = class {
|
|
|
2016
2406
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2017
2407
|
*/
|
|
2018
2408
|
update: (organizationId, userId, body, options) => this.transport.call(environmentOperations["members.update"], [organizationId, userId], body, options),
|
|
2409
|
+
apps: {
|
|
2410
|
+
roles: {
|
|
2411
|
+
/**
|
|
2412
|
+
* 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.
|
|
2413
|
+
*
|
|
2414
|
+
* Requires scope `roles:write`. Danger: write.
|
|
2415
|
+
*
|
|
2416
|
+
* `PUT /organizations/{organization_id}/members/{user_id}/apps/{client_id}/roles` · action `members.apps.roles.replace`
|
|
2417
|
+
* @scope `roles:write`
|
|
2418
|
+
* @danger write
|
|
2419
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2420
|
+
*/
|
|
2421
|
+
replace: (organizationId, userId, clientId, body, options) => this.transport.call(environmentOperations["members.apps.roles.replace"], [organizationId, userId, clientId], body, options)
|
|
2422
|
+
}
|
|
2423
|
+
},
|
|
2019
2424
|
roles: {
|
|
2020
2425
|
/**
|
|
2021
2426
|
* Grant a member a role in the organization
|
|
@@ -2317,67 +2722,348 @@ var EnvironmentClient = class {
|
|
|
2317
2722
|
*/
|
|
2318
2723
|
update: (id, body, options) => this.transport.call(environmentOperations["permissions.update"], [id], body, options)
|
|
2319
2724
|
};
|
|
2725
|
+
pipes = {
|
|
2726
|
+
/**
|
|
2727
|
+
* 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.
|
|
2728
|
+
*
|
|
2729
|
+
* Requires scope `pipes:write`. Danger: write.
|
|
2730
|
+
*
|
|
2731
|
+
* `POST /pipes` · action `pipes.create`
|
|
2732
|
+
* @scope `pipes:write`
|
|
2733
|
+
* @danger write
|
|
2734
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2735
|
+
*/
|
|
2736
|
+
create: (body, options) => this.transport.call(environmentOperations["pipes.create"], [], body, options),
|
|
2737
|
+
/**
|
|
2738
|
+
* Remove a pipe and every connection through it. Their tokens are revoked here, not at the provider — disconnect people first if that matters.
|
|
2739
|
+
*
|
|
2740
|
+
* Requires scope `pipes:write`. Danger: destructive.
|
|
2741
|
+
*
|
|
2742
|
+
* `DELETE /pipes/{id}` · action `pipes.delete`
|
|
2743
|
+
* @scope `pipes:write`
|
|
2744
|
+
* @danger destructive
|
|
2745
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2746
|
+
*/
|
|
2747
|
+
delete: (id, options) => this.transport.call(environmentOperations["pipes.delete"], [id], void 0, options),
|
|
2748
|
+
/**
|
|
2749
|
+
* Show one pipe: its provider, OAuth client id, scopes, the redirect URI to register at the provider, and the apps granted its tokens.
|
|
2750
|
+
*
|
|
2751
|
+
* Requires scope `pipes:read`. Danger: read.
|
|
2752
|
+
*
|
|
2753
|
+
* `GET /pipes/{id}` · action `pipes.get`
|
|
2754
|
+
* @scope `pipes:read`
|
|
2755
|
+
* @danger read
|
|
2756
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2757
|
+
*/
|
|
2758
|
+
get: (id, options) => this.transport.call(environmentOperations["pipes.get"], [id], void 0, options),
|
|
2759
|
+
/**
|
|
2760
|
+
* 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.
|
|
2761
|
+
*
|
|
2762
|
+
* Requires scope `pipes:read`. Danger: read.
|
|
2763
|
+
*
|
|
2764
|
+
* `GET /pipes` · action `pipes.list`
|
|
2765
|
+
* @scope `pipes:read`
|
|
2766
|
+
* @danger read
|
|
2767
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2768
|
+
*/
|
|
2769
|
+
list: (query, options) => this.transport.call(environmentOperations["pipes.list"], [], query, options),
|
|
2770
|
+
/** Every item of `pipes.list`, fetching pages as the iteration reaches them. */
|
|
2771
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["pipes.list"], [], query, options),
|
|
2772
|
+
/**
|
|
2773
|
+
* Change a pipe — client id, client secret (sealed), scopes, parameters, or whether it is enabled. Only what is sent changes.
|
|
2774
|
+
*
|
|
2775
|
+
* Requires scope `pipes:write`. Danger: write.
|
|
2776
|
+
*
|
|
2777
|
+
* `PATCH /pipes/{id}` · action `pipes.update`
|
|
2778
|
+
* @scope `pipes:write`
|
|
2779
|
+
* @danger write
|
|
2780
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2781
|
+
*/
|
|
2782
|
+
update: (id, body, options) => this.transport.call(environmentOperations["pipes.update"], [id], body, options),
|
|
2783
|
+
connections: {
|
|
2784
|
+
/**
|
|
2785
|
+
* Disconnect a person's connected account: revoke it at the provider where supported, revoke its tokens here, and forget it.
|
|
2786
|
+
*
|
|
2787
|
+
* Requires scope `pipes:write`. Danger: destructive.
|
|
2788
|
+
*
|
|
2789
|
+
* `DELETE /pipes/{id}/connections/{connection_id}` · action `pipes.connections.delete`
|
|
2790
|
+
* @scope `pipes:write`
|
|
2791
|
+
* @danger destructive
|
|
2792
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2793
|
+
*/
|
|
2794
|
+
delete: (id, connectionId, options) => this.transport.call(environmentOperations["pipes.connections.delete"], [id, connectionId], void 0, options),
|
|
2795
|
+
/**
|
|
2796
|
+
* 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.
|
|
2797
|
+
*
|
|
2798
|
+
* Requires scope `pipes:read`. Danger: read.
|
|
2799
|
+
*
|
|
2800
|
+
* `GET /pipes/{id}/connections` · action `pipes.connections.list`
|
|
2801
|
+
* @scope `pipes:read`
|
|
2802
|
+
* @danger read
|
|
2803
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2804
|
+
*/
|
|
2805
|
+
list: (id, query, options) => this.transport.call(environmentOperations["pipes.connections.list"], [id], query, options),
|
|
2806
|
+
/** Every item of `pipes.connections.list`, fetching pages as the iteration reaches them. */
|
|
2807
|
+
listAll: (id, query, options) => this.transport.paginate(environmentOperations["pipes.connections.list"], [id], query, options)
|
|
2808
|
+
},
|
|
2809
|
+
grants: {
|
|
2810
|
+
/**
|
|
2811
|
+
* Grant an app (by OAuth client id) the right to lease fresh access tokens for the accounts people connected through this pipe.
|
|
2812
|
+
*
|
|
2813
|
+
* Requires scope `pipes:write`. Danger: critical.
|
|
2814
|
+
*
|
|
2815
|
+
* `POST /pipes/{id}/grants` · action `pipes.grants.create`
|
|
2816
|
+
* @scope `pipes:write`
|
|
2817
|
+
* @danger critical
|
|
2818
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2819
|
+
*/
|
|
2820
|
+
create: (id, body, options) => this.transport.call(environmentOperations["pipes.grants.create"], [id], body, options),
|
|
2821
|
+
/**
|
|
2822
|
+
* Withdraw an app's right to lease the tokens people connected through this pipe.
|
|
2823
|
+
*
|
|
2824
|
+
* Requires scope `pipes:write`. Danger: destructive.
|
|
2825
|
+
*
|
|
2826
|
+
* `DELETE /pipes/{id}/grants/{client_id}` · action `pipes.grants.delete`
|
|
2827
|
+
* @scope `pipes:write`
|
|
2828
|
+
* @danger destructive
|
|
2829
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2830
|
+
*/
|
|
2831
|
+
delete: (id, clientId, options) => this.transport.call(environmentOperations["pipes.grants.delete"], [id, clientId], void 0, options)
|
|
2832
|
+
}
|
|
2833
|
+
};
|
|
2320
2834
|
provisioning = {
|
|
2321
2835
|
targets: {
|
|
2322
2836
|
/**
|
|
2323
|
-
* Register a downstream app this platform pushes an organization's people to over SCIM, or every organization's with environment_wide.
|
|
2837
|
+
* Register a downstream app this platform pushes an organization's people to over SCIM, or every organization's with environment_wide.
|
|
2838
|
+
*
|
|
2839
|
+
* Requires scope `provisioning:write`. Danger: critical.
|
|
2840
|
+
*
|
|
2841
|
+
* `POST /provisioning-targets` · action `provisioning.targets.create`
|
|
2842
|
+
* @scope `provisioning:write`
|
|
2843
|
+
* @danger critical
|
|
2844
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2845
|
+
*/
|
|
2846
|
+
create: (body, options) => this.transport.call(environmentOperations["provisioning.targets.create"], [], body, options),
|
|
2847
|
+
/**
|
|
2848
|
+
* Delete a downstream SCIM target. Nothing more is pushed to it.
|
|
2849
|
+
*
|
|
2850
|
+
* Requires scope `provisioning:write`. Danger: destructive.
|
|
2851
|
+
*
|
|
2852
|
+
* `DELETE /provisioning-targets/{id}` · action `provisioning.targets.delete`
|
|
2853
|
+
* @scope `provisioning:write`
|
|
2854
|
+
* @danger destructive
|
|
2855
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2856
|
+
*/
|
|
2857
|
+
delete: (id, body, options) => this.transport.call(environmentOperations["provisioning.targets.delete"], [id], body, options),
|
|
2858
|
+
/**
|
|
2859
|
+
* Read one downstream SCIM target: its URL, auth scheme, status and last error. Never its credential.
|
|
2860
|
+
*
|
|
2861
|
+
* Requires scope `provisioning:read`. Danger: read.
|
|
2862
|
+
*
|
|
2863
|
+
* `GET /provisioning-targets/{id}` · action `provisioning.targets.get`
|
|
2864
|
+
* @scope `provisioning:read`
|
|
2865
|
+
* @danger read
|
|
2866
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2867
|
+
*/
|
|
2868
|
+
get: (id, query, options) => this.transport.call(environmentOperations["provisioning.targets.get"], [id], query, options),
|
|
2869
|
+
/**
|
|
2870
|
+
* List the downstream SCIM targets people are provisioned to, optionally for one organization, with their failures. Never their credentials.
|
|
2871
|
+
*
|
|
2872
|
+
* Requires scope `provisioning:read`. Danger: read.
|
|
2873
|
+
*
|
|
2874
|
+
* `GET /provisioning-targets` · action `provisioning.targets.list`
|
|
2875
|
+
* @scope `provisioning:read`
|
|
2876
|
+
* @danger read
|
|
2877
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2878
|
+
*/
|
|
2879
|
+
list: (query, options) => this.transport.call(environmentOperations["provisioning.targets.list"], [], query, options),
|
|
2880
|
+
/** Every item of `provisioning.targets.list`, fetching pages as the iteration reaches them. */
|
|
2881
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["provisioning.targets.list"], [], query, options),
|
|
2882
|
+
status: {
|
|
2883
|
+
/**
|
|
2884
|
+
* Pause or resume pushing people to a downstream SCIM target.
|
|
2885
|
+
*
|
|
2886
|
+
* Requires scope `provisioning:write`. Danger: write.
|
|
2887
|
+
*
|
|
2888
|
+
* `POST /provisioning-targets/{id}/status` · action `provisioning.targets.status.set`
|
|
2889
|
+
* @scope `provisioning:write`
|
|
2890
|
+
* @danger write
|
|
2891
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2892
|
+
*/
|
|
2893
|
+
set: (id, body, options) => this.transport.call(environmentOperations["provisioning.targets.status.set"], [id], body, options)
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2896
|
+
};
|
|
2897
|
+
radar = {
|
|
2898
|
+
decisions: {
|
|
2899
|
+
/**
|
|
2900
|
+
* 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.
|
|
2901
|
+
*
|
|
2902
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2903
|
+
*
|
|
2904
|
+
* `GET /radar/decisions/{id}` · action `radar.decisions.get`
|
|
2905
|
+
* @scope `radar:read`
|
|
2906
|
+
* @danger read
|
|
2907
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2908
|
+
*/
|
|
2909
|
+
get: (id, options) => this.transport.call(environmentOperations["radar.decisions.get"], [id], void 0, options),
|
|
2910
|
+
/**
|
|
2911
|
+
* 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.
|
|
2912
|
+
*
|
|
2913
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2914
|
+
*
|
|
2915
|
+
* `GET /radar/decisions` · action `radar.decisions.list`
|
|
2916
|
+
* @scope `radar:read`
|
|
2917
|
+
* @danger read
|
|
2918
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2919
|
+
*/
|
|
2920
|
+
list: (query, options) => this.transport.call(environmentOperations["radar.decisions.list"], [], query, options),
|
|
2921
|
+
/** Every item of `radar.decisions.list`, fetching pages as the iteration reaches them. */
|
|
2922
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["radar.decisions.list"], [], query, options)
|
|
2923
|
+
},
|
|
2924
|
+
lists: {
|
|
2925
|
+
/**
|
|
2926
|
+
* 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.
|
|
2927
|
+
*
|
|
2928
|
+
* Requires scope `radar:write`. Danger: write.
|
|
2929
|
+
*
|
|
2930
|
+
* `POST /radar/lists` · action `radar.lists.add`
|
|
2931
|
+
* @scope `radar:write`
|
|
2932
|
+
* @danger write
|
|
2933
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2934
|
+
*/
|
|
2935
|
+
add: (body, options) => this.transport.call(environmentOperations["radar.lists.add"], [], body, options),
|
|
2936
|
+
/**
|
|
2937
|
+
* List this environment's Radar allow and deny entries — IPs and CIDR ranges, addresses, mail domains, devices — optionally one list or one kind.
|
|
2938
|
+
*
|
|
2939
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2940
|
+
*
|
|
2941
|
+
* `GET /radar/lists` · action `radar.lists.list`
|
|
2942
|
+
* @scope `radar:read`
|
|
2943
|
+
* @danger read
|
|
2944
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2945
|
+
*/
|
|
2946
|
+
list: (query, options) => this.transport.call(environmentOperations["radar.lists.list"], [], query, options),
|
|
2947
|
+
/** Every item of `radar.lists.list`, fetching pages as the iteration reaches them. */
|
|
2948
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["radar.lists.list"], [], query, options),
|
|
2949
|
+
/**
|
|
2950
|
+
* Remove an entry from this environment's Radar allow or deny list.
|
|
2951
|
+
*
|
|
2952
|
+
* Requires scope `radar:write`. Danger: destructive.
|
|
2953
|
+
*
|
|
2954
|
+
* `DELETE /radar/lists/{id}` · action `radar.lists.remove`
|
|
2955
|
+
* @scope `radar:write`
|
|
2956
|
+
* @danger destructive
|
|
2957
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2958
|
+
*/
|
|
2959
|
+
remove: (id, options) => this.transport.call(environmentOperations["radar.lists.remove"], [id], void 0, options)
|
|
2960
|
+
},
|
|
2961
|
+
mode: {
|
|
2962
|
+
/**
|
|
2963
|
+
* 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.
|
|
2964
|
+
*
|
|
2965
|
+
* Requires scope `radar:manage`. Danger: critical.
|
|
2966
|
+
*
|
|
2967
|
+
* `PUT /radar/mode` · action `radar.mode.set`
|
|
2968
|
+
* @scope `radar:manage`
|
|
2969
|
+
* @danger critical
|
|
2970
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2971
|
+
*/
|
|
2972
|
+
set: (body, options) => this.transport.call(environmentOperations["radar.mode.set"], [], body, options)
|
|
2973
|
+
},
|
|
2974
|
+
rules: {
|
|
2975
|
+
/**
|
|
2976
|
+
* 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.
|
|
2977
|
+
*
|
|
2978
|
+
* Requires scope `radar:write`. Danger: write.
|
|
2979
|
+
*
|
|
2980
|
+
* `POST /radar/rules` · action `radar.rules.create`
|
|
2981
|
+
* @scope `radar:write`
|
|
2982
|
+
* @danger write
|
|
2983
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2984
|
+
*/
|
|
2985
|
+
create: (body, options) => this.transport.call(environmentOperations["radar.rules.create"], [], body, options),
|
|
2986
|
+
/**
|
|
2987
|
+
* Delete a Radar rule. Attempts it decided are decided by the next matching rule, or the built-in rules, from then on.
|
|
2324
2988
|
*
|
|
2325
|
-
* Requires scope `
|
|
2989
|
+
* Requires scope `radar:write`. Danger: destructive.
|
|
2326
2990
|
*
|
|
2327
|
-
* `
|
|
2328
|
-
* @scope `
|
|
2329
|
-
* @danger
|
|
2991
|
+
* `DELETE /radar/rules/{id}` · action `radar.rules.delete`
|
|
2992
|
+
* @scope `radar:write`
|
|
2993
|
+
* @danger destructive
|
|
2330
2994
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2331
2995
|
*/
|
|
2332
|
-
|
|
2996
|
+
delete: (id, options) => this.transport.call(environmentOperations["radar.rules.delete"], [id], void 0, options),
|
|
2333
2997
|
/**
|
|
2334
|
-
*
|
|
2998
|
+
* Read one Radar rule: its action, the flows it applies to, its position and its conditions.
|
|
2335
2999
|
*
|
|
2336
|
-
* Requires scope `
|
|
3000
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2337
3001
|
*
|
|
2338
|
-
* `
|
|
2339
|
-
* @scope `
|
|
2340
|
-
* @danger
|
|
3002
|
+
* `GET /radar/rules/{id}` · action `radar.rules.get`
|
|
3003
|
+
* @scope `radar:read`
|
|
3004
|
+
* @danger read
|
|
2341
3005
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2342
3006
|
*/
|
|
2343
|
-
|
|
3007
|
+
get: (id, options) => this.transport.call(environmentOperations["radar.rules.get"], [id], void 0, options),
|
|
2344
3008
|
/**
|
|
2345
|
-
*
|
|
3009
|
+
* 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.
|
|
2346
3010
|
*
|
|
2347
|
-
* Requires scope `
|
|
3011
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2348
3012
|
*
|
|
2349
|
-
* `GET /
|
|
2350
|
-
* @scope `
|
|
3013
|
+
* `GET /radar/rules` · action `radar.rules.list`
|
|
3014
|
+
* @scope `radar:read`
|
|
2351
3015
|
* @danger read
|
|
2352
3016
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2353
3017
|
*/
|
|
2354
|
-
|
|
3018
|
+
list: (query, options) => this.transport.call(environmentOperations["radar.rules.list"], [], query, options),
|
|
3019
|
+
/** Every item of `radar.rules.list`, fetching pages as the iteration reaches them. */
|
|
3020
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["radar.rules.list"], [], query, options),
|
|
2355
3021
|
/**
|
|
2356
|
-
*
|
|
3022
|
+
* Set the order Radar rules are evaluated in: `rule_ids` lists every rule of the environment exactly once, first evaluated first.
|
|
2357
3023
|
*
|
|
2358
|
-
* Requires scope `
|
|
3024
|
+
* Requires scope `radar:write`. Danger: write.
|
|
2359
3025
|
*
|
|
2360
|
-
* `
|
|
2361
|
-
* @scope `
|
|
3026
|
+
* `PUT /radar/rules/order` · action `radar.rules.reorder`
|
|
3027
|
+
* @scope `radar:write`
|
|
3028
|
+
* @danger write
|
|
3029
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3030
|
+
*/
|
|
3031
|
+
reorder: (body, options) => this.transport.call(environmentOperations["radar.rules.reorder"], [], body, options),
|
|
3032
|
+
/**
|
|
3033
|
+
* Change a Radar rule: its name, description, action, flows, enabled state, position, or (replaced whole) its conditions.
|
|
3034
|
+
*
|
|
3035
|
+
* Requires scope `radar:write`. Danger: write.
|
|
3036
|
+
*
|
|
3037
|
+
* `PATCH /radar/rules/{id}` · action `radar.rules.update`
|
|
3038
|
+
* @scope `radar:write`
|
|
3039
|
+
* @danger write
|
|
3040
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3041
|
+
*/
|
|
3042
|
+
update: (id, body, options) => this.transport.call(environmentOperations["radar.rules.update"], [id], body, options)
|
|
3043
|
+
},
|
|
3044
|
+
settings: {
|
|
3045
|
+
/**
|
|
3046
|
+
* 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.
|
|
3047
|
+
*
|
|
3048
|
+
* Requires scope `radar:read`. Danger: read.
|
|
3049
|
+
*
|
|
3050
|
+
* `GET /radar/settings` · action `radar.settings.get`
|
|
3051
|
+
* @scope `radar:read`
|
|
2362
3052
|
* @danger read
|
|
2363
3053
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2364
3054
|
*/
|
|
2365
|
-
|
|
2366
|
-
/**
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2378
|
-
*/
|
|
2379
|
-
set: (id, body, options) => this.transport.call(environmentOperations["provisioning.targets.status.set"], [id], body, options)
|
|
2380
|
-
}
|
|
3055
|
+
get: (options) => this.transport.call(environmentOperations["radar.settings.get"], [], void 0, options),
|
|
3056
|
+
/**
|
|
3057
|
+
* 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.
|
|
3058
|
+
*
|
|
3059
|
+
* Requires scope `radar:write`. Danger: write.
|
|
3060
|
+
*
|
|
3061
|
+
* `PATCH /radar/settings` · action `radar.settings.update`
|
|
3062
|
+
* @scope `radar:write`
|
|
3063
|
+
* @danger write
|
|
3064
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3065
|
+
*/
|
|
3066
|
+
update: (body, options) => this.transport.call(environmentOperations["radar.settings.update"], [], body, options)
|
|
2381
3067
|
}
|
|
2382
3068
|
};
|
|
2383
3069
|
roles = {
|
|
@@ -2438,6 +3124,19 @@ var EnvironmentClient = class {
|
|
|
2438
3124
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2439
3125
|
*/
|
|
2440
3126
|
update: (id, body, options) => this.transport.call(environmentOperations["roles.update"], [id], body, options),
|
|
3127
|
+
definition: {
|
|
3128
|
+
/**
|
|
3129
|
+
* Activate a reviewed application role definition for its existing holders.
|
|
3130
|
+
*
|
|
3131
|
+
* Requires scope `role_definitions:write`. Danger: destructive.
|
|
3132
|
+
*
|
|
3133
|
+
* `POST /roles/{id}/definition/activate` · action `roles.definition.activate`
|
|
3134
|
+
* @scope `role_definitions:write`
|
|
3135
|
+
* @danger destructive
|
|
3136
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3137
|
+
*/
|
|
3138
|
+
activate: (id, body, options) => this.transport.call(environmentOperations["roles.definition.activate"], [id], body, options)
|
|
3139
|
+
},
|
|
2441
3140
|
permissions: {
|
|
2442
3141
|
/**
|
|
2443
3142
|
* 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.
|
|
@@ -2522,6 +3221,45 @@ var EnvironmentClient = class {
|
|
|
2522
3221
|
*/
|
|
2523
3222
|
update: (id, body, options) => this.transport.call(environmentOperations["saml_apps.update"], [id], body, options)
|
|
2524
3223
|
};
|
|
3224
|
+
signals = {
|
|
3225
|
+
source: {
|
|
3226
|
+
/**
|
|
3227
|
+
* Read the environment-owner identity source
|
|
3228
|
+
*
|
|
3229
|
+
* Requires an environment key with `signals_source:read` and explicit operator
|
|
3230
|
+
* opt-in for this environment. Organization grants and delegated user tokens
|
|
3231
|
+
* cannot read this source. Records include pre-organization authentication.
|
|
3232
|
+
* The cursor follows committed sequence order and is bound to the source generation.
|
|
3233
|
+
* Follow `next_cursor`, including on empty pages; a stale generation or purged
|
|
3234
|
+
* cursor requires an explicit restart. Pages are at most 1000 records / 1 MiB.
|
|
3235
|
+
* Data follows the Signals 2.0.0 identity event contracts. Scope is attached by
|
|
3236
|
+
* the consumer's explicit grant; producer_environment is always host-bound.
|
|
3237
|
+
* Replay is limited to seven days, including raw-IP retention. A heartbeat
|
|
3238
|
+
* proves exporter maintenance, not complete coverage of every identity flow.
|
|
3239
|
+
*
|
|
3240
|
+
* `GET /signals/source`
|
|
3241
|
+
*/
|
|
3242
|
+
list: (query, options) => this.transport.call(environmentOperations["signals.source.list"], [], query, options),
|
|
3243
|
+
/** Every item of `signals.source.list`, fetching pages as the iteration reaches them. */
|
|
3244
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["signals.source.list"], [], query, options),
|
|
3245
|
+
erasures: {
|
|
3246
|
+
/**
|
|
3247
|
+
* Replay source deletion receipts
|
|
3248
|
+
*
|
|
3249
|
+
* Requires `signals_source:read` on an environment-owner key. Replay this stream
|
|
3250
|
+
* before making a restored or newly backfilled consumer eligible. It retains only
|
|
3251
|
+
* opaque subject references and deletion facts beyond the raw-event replay window.
|
|
3252
|
+
* Publication order and cursor integrity match the event source. The credential
|
|
3253
|
+
* is checked on every page. Ordinary tenant grants cannot access this stream.
|
|
3254
|
+
*
|
|
3255
|
+
* `GET /signals/source/erasures`
|
|
3256
|
+
*/
|
|
3257
|
+
list: (query, options) => this.transport.call(environmentOperations["signals.source.erasures.list"], [], query, options),
|
|
3258
|
+
/** Every item of `signals.source.erasures.list`, fetching pages as the iteration reaches them. */
|
|
3259
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["signals.source.erasures.list"], [], query, options)
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
};
|
|
2525
3263
|
signin = {
|
|
2526
3264
|
policy: {
|
|
2527
3265
|
/**
|
|
@@ -2547,7 +3285,7 @@ var EnvironmentClient = class {
|
|
|
2547
3285
|
*/
|
|
2548
3286
|
inherit: (organizationId, options) => this.transport.call(environmentOperations["signin.policy.inherit"], [organizationId], void 0, options),
|
|
2549
3287
|
/**
|
|
2550
|
-
* Change the authentication policy of the environment baseline
|
|
3288
|
+
* 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.
|
|
2551
3289
|
*
|
|
2552
3290
|
* Requires scope `signin:write`. Danger: critical.
|
|
2553
3291
|
*
|
|
@@ -2571,6 +3309,30 @@ var EnvironmentClient = class {
|
|
|
2571
3309
|
*/
|
|
2572
3310
|
set: (body, options) => this.transport.call(environmentOperations["signin.self_service_signup.set"], [], body, options)
|
|
2573
3311
|
},
|
|
3312
|
+
sms: {
|
|
3313
|
+
/**
|
|
3314
|
+
* Read the SMS second-factor policy: whether text-message codes are accepted, for which countries, and the administrator rule.
|
|
3315
|
+
*
|
|
3316
|
+
* Requires scope `signin:read`. Danger: read.
|
|
3317
|
+
*
|
|
3318
|
+
* `GET /sign-in/sms` · action `signin.sms.get`
|
|
3319
|
+
* @scope `signin:read`
|
|
3320
|
+
* @danger read
|
|
3321
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3322
|
+
*/
|
|
3323
|
+
get: (options) => this.transport.call(environmentOperations["signin.sms.get"], [], void 0, options),
|
|
3324
|
+
/**
|
|
3325
|
+
* 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.
|
|
3326
|
+
*
|
|
3327
|
+
* Requires scope `signin:write`. Danger: critical.
|
|
3328
|
+
*
|
|
3329
|
+
* `PATCH /sign-in/sms` · action `signin.sms.update`
|
|
3330
|
+
* @scope `signin:write`
|
|
3331
|
+
* @danger critical
|
|
3332
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3333
|
+
*/
|
|
3334
|
+
update: (body, options) => this.transport.call(environmentOperations["signin.sms.update"], [], body, options)
|
|
3335
|
+
},
|
|
2574
3336
|
social: {
|
|
2575
3337
|
/**
|
|
2576
3338
|
* Stop offering a social login provider. People who used it keep their accounts.
|
|
@@ -2584,7 +3346,40 @@ var EnvironmentClient = class {
|
|
|
2584
3346
|
*/
|
|
2585
3347
|
delete: (id, body, options) => this.transport.call(environmentOperations["signin.social.delete"], [id], body, options),
|
|
2586
3348
|
/**
|
|
2587
|
-
*
|
|
3349
|
+
* Turn a social login provider off without removing it. People who used it keep their accounts.
|
|
3350
|
+
*
|
|
3351
|
+
* Requires scope `signin:write`. Danger: critical.
|
|
3352
|
+
*
|
|
3353
|
+
* `POST /sign-in/social-providers/{id}/disable` · action `signin.social.disable`
|
|
3354
|
+
* @scope `signin:write`
|
|
3355
|
+
* @danger critical
|
|
3356
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3357
|
+
*/
|
|
3358
|
+
disable: (id, body, options) => this.transport.call(environmentOperations["signin.social.disable"], [id], body, options),
|
|
3359
|
+
/**
|
|
3360
|
+
* Turn a social login provider that was turned off back on, with the credentials it already has.
|
|
3361
|
+
*
|
|
3362
|
+
* Requires scope `signin:write`. Danger: write.
|
|
3363
|
+
*
|
|
3364
|
+
* `POST /sign-in/social-providers/{id}/enable` · action `signin.social.enable`
|
|
3365
|
+
* @scope `signin:write`
|
|
3366
|
+
* @danger write
|
|
3367
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3368
|
+
*/
|
|
3369
|
+
enable: (id, body, options) => this.transport.call(environmentOperations["signin.social.enable"], [id], body, options),
|
|
3370
|
+
/**
|
|
3371
|
+
* Turn one of the environment's social login providers off (or back on) for one organization's sign-in page.
|
|
3372
|
+
*
|
|
3373
|
+
* Requires scope `signin:write`. Danger: write.
|
|
3374
|
+
*
|
|
3375
|
+
* `PUT /sign-in/social-providers/inherited/{provider}` · action `signin.social.inherit`
|
|
3376
|
+
* @scope `signin:write`
|
|
3377
|
+
* @danger write
|
|
3378
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3379
|
+
*/
|
|
3380
|
+
inherit: (provider, body, options) => this.transport.call(environmentOperations["signin.social.inherit"], [provider], body, options),
|
|
3381
|
+
/**
|
|
3382
|
+
* List the social login providers (Google, GitHub, Apple…) set up in this environment — the environment's own and organizations' — optionally for one organization.
|
|
2588
3383
|
*
|
|
2589
3384
|
* Requires scope `signin:read`. Danger: read.
|
|
2590
3385
|
*
|
|
@@ -2597,7 +3392,18 @@ var EnvironmentClient = class {
|
|
|
2597
3392
|
/** Every item of `signin.social.list`, fetching pages as the iteration reaches them. */
|
|
2598
3393
|
listAll: (query, options) => this.transport.paginate(environmentOperations["signin.social.list"], [], query, options),
|
|
2599
3394
|
/**
|
|
2600
|
-
*
|
|
3395
|
+
* 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.
|
|
3396
|
+
*
|
|
3397
|
+
* Requires scope `signin:read`. Danger: read.
|
|
3398
|
+
*
|
|
3399
|
+
* `GET /sign-in/social-providers/offered` · action `signin.social.offered`
|
|
3400
|
+
* @scope `signin:read`
|
|
3401
|
+
* @danger read
|
|
3402
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3403
|
+
*/
|
|
3404
|
+
offered: (query, options) => this.transport.call(environmentOperations["signin.social.offered"], [], query, options),
|
|
3405
|
+
/**
|
|
3406
|
+
* 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.
|
|
2601
3407
|
*
|
|
2602
3408
|
* Requires scope `signin:write`. Danger: critical.
|
|
2603
3409
|
*
|
|
@@ -2606,7 +3412,18 @@ var EnvironmentClient = class {
|
|
|
2606
3412
|
* @danger critical
|
|
2607
3413
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2608
3414
|
*/
|
|
2609
|
-
set: (body, options) => this.transport.call(environmentOperations["signin.social.set"], [], body, options)
|
|
3415
|
+
set: (body, options) => this.transport.call(environmentOperations["signin.social.set"], [], body, options),
|
|
3416
|
+
/**
|
|
3417
|
+
* Change a social login provider's client credentials, provider values or extra scopes. Secrets left out keep the ones on file.
|
|
3418
|
+
*
|
|
3419
|
+
* Requires scope `signin:write`. Danger: critical.
|
|
3420
|
+
*
|
|
3421
|
+
* `PATCH /sign-in/social-providers/{id}` · action `signin.social.update`
|
|
3422
|
+
* @scope `signin:write`
|
|
3423
|
+
* @danger critical
|
|
3424
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3425
|
+
*/
|
|
3426
|
+
update: (id, body, options) => this.transport.call(environmentOperations["signin.social.update"], [id], body, options)
|
|
2610
3427
|
}
|
|
2611
3428
|
};
|
|
2612
3429
|
sodPolicies = {
|
|
@@ -3002,6 +3819,30 @@ var EnvironmentClient = class {
|
|
|
3002
3819
|
rotate: (id, body, options) => this.transport.call(environmentOperations["token_vault.secrets.rotate"], [id], body, options)
|
|
3003
3820
|
}
|
|
3004
3821
|
};
|
|
3822
|
+
userPropertyNamespaces = {
|
|
3823
|
+
/**
|
|
3824
|
+
* Create or replace the app and webhook grants for a user-property namespace. Empty grants revoke access without deleting user data.
|
|
3825
|
+
*
|
|
3826
|
+
* Requires scope `user_property_namespaces:write`. Danger: critical.
|
|
3827
|
+
*
|
|
3828
|
+
* `PUT /user-property-namespaces/{name}` · action `user_property_namespaces.configure`
|
|
3829
|
+
* @scope `user_property_namespaces:write`
|
|
3830
|
+
* @danger critical
|
|
3831
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3832
|
+
*/
|
|
3833
|
+
configure: (name, body, options) => this.transport.call(environmentOperations["user_property_namespaces.configure"], [name], body, options),
|
|
3834
|
+
/**
|
|
3835
|
+
* Read the app and webhook grants for a user-property namespace.
|
|
3836
|
+
*
|
|
3837
|
+
* Requires scope `user_property_namespaces:read`. Danger: read.
|
|
3838
|
+
*
|
|
3839
|
+
* `GET /user-property-namespaces/{name}` · action `user_property_namespaces.show`
|
|
3840
|
+
* @scope `user_property_namespaces:read`
|
|
3841
|
+
* @danger read
|
|
3842
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3843
|
+
*/
|
|
3844
|
+
show: (name, options) => this.transport.call(environmentOperations["user_property_namespaces.show"], [name], void 0, options)
|
|
3845
|
+
};
|
|
3005
3846
|
users = {
|
|
3006
3847
|
/**
|
|
3007
3848
|
* Create a user
|
|
@@ -3160,7 +4001,20 @@ var EnvironmentClient = class {
|
|
|
3160
4001
|
* @danger critical
|
|
3161
4002
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3162
4003
|
*/
|
|
3163
|
-
reset: (id, options) => this.transport.call(environmentOperations["users.mfa.reset"], [id], void 0, options)
|
|
4004
|
+
reset: (id, options) => this.transport.call(environmentOperations["users.mfa.reset"], [id], void 0, options),
|
|
4005
|
+
sms: {
|
|
4006
|
+
/**
|
|
4007
|
+
* Remove a user's phone number for text-message sign-in codes. Their other factors and recovery codes stay.
|
|
4008
|
+
*
|
|
4009
|
+
* Requires scope `users:write`. Danger: critical.
|
|
4010
|
+
*
|
|
4011
|
+
* `DELETE /users/{id}/mfa/sms` · action `users.mfa.sms.remove`
|
|
4012
|
+
* @scope `users:write`
|
|
4013
|
+
* @danger critical
|
|
4014
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4015
|
+
*/
|
|
4016
|
+
remove: (id, options) => this.transport.call(environmentOperations["users.mfa.sms.remove"], [id], void 0, options)
|
|
4017
|
+
}
|
|
3164
4018
|
},
|
|
3165
4019
|
passwordReset: {
|
|
3166
4020
|
/**
|
|
@@ -3351,6 +4205,9 @@ var EnvironmentClient = class {
|
|
|
3351
4205
|
// src/management/generated/workspace.ts
|
|
3352
4206
|
var workspaceOperations = {
|
|
3353
4207
|
"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 },
|
|
4208
|
+
"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 },
|
|
4209
|
+
"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 },
|
|
4210
|
+
"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 },
|
|
3354
4211
|
"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 },
|
|
3355
4212
|
"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 },
|
|
3356
4213
|
"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 },
|
|
@@ -3373,7 +4230,7 @@ var workspaceOperations = {
|
|
|
3373
4230
|
"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 },
|
|
3374
4231
|
"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 },
|
|
3375
4232
|
"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" },
|
|
3376
|
-
"team.remove": { action: "team.remove", operationId: "team_remove", method: "DELETE", path: "/workspace/members/{id}", pathParams: ["id"], scope: "team:write", danger: "destructive", approval: true, body:
|
|
4233
|
+
"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 },
|
|
3377
4234
|
"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 },
|
|
3378
4235
|
"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 },
|
|
3379
4236
|
"workspace.get": { action: "workspace.get", operationId: "workspace_get", method: "GET", path: "/workspace", pathParams: [], scope: "workspace:read", danger: "read", approval: true, body: false, pagination: null },
|
|
@@ -3400,12 +4257,51 @@ var WorkspaceClient = class {
|
|
|
3400
4257
|
*/
|
|
3401
4258
|
get: (id, options) => this.transport.call(workspaceOperations["action_approvals.get"], [id], void 0, options)
|
|
3402
4259
|
};
|
|
4260
|
+
billing = {
|
|
4261
|
+
account: {
|
|
4262
|
+
/**
|
|
4263
|
+
* Update the workspace billing contact and invoice address.
|
|
4264
|
+
*
|
|
4265
|
+
* Requires scope `billing:write` and a role that may `manage-billing`. Danger: write.
|
|
4266
|
+
*
|
|
4267
|
+
* `PATCH /workspace/billing/account` · action `billing.account.update`
|
|
4268
|
+
* @scope `billing:write`
|
|
4269
|
+
* @danger write
|
|
4270
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4271
|
+
*/
|
|
4272
|
+
update: (body, options) => this.transport.call(workspaceOperations["billing.account.update"], [], body, options)
|
|
4273
|
+
},
|
|
4274
|
+
paymentMethod: {
|
|
4275
|
+
/**
|
|
4276
|
+
* Choose the workspace default payment card.
|
|
4277
|
+
*
|
|
4278
|
+
* Requires scope `billing:write` and a role that may `manage-billing`. Danger: write.
|
|
4279
|
+
*
|
|
4280
|
+
* `PATCH /workspace/billing/payment-methods/{id}/default` · action `billing.payment_method.default`
|
|
4281
|
+
* @scope `billing:write`
|
|
4282
|
+
* @danger write
|
|
4283
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4284
|
+
*/
|
|
4285
|
+
default: (id, options) => this.transport.call(workspaceOperations["billing.payment_method.default"], [id], void 0, options),
|
|
4286
|
+
/**
|
|
4287
|
+
* Remove an unneeded payment card from this workspace.
|
|
4288
|
+
*
|
|
4289
|
+
* Requires scope `billing:write` and a role that may `manage-billing`. Danger: write.
|
|
4290
|
+
*
|
|
4291
|
+
* `DELETE /workspace/billing/payment-methods/{id}` · action `billing.payment_method.remove`
|
|
4292
|
+
* @scope `billing:write`
|
|
4293
|
+
* @danger write
|
|
4294
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4295
|
+
*/
|
|
4296
|
+
remove: (id, options) => this.transport.call(workspaceOperations["billing.payment_method.remove"], [id], void 0, options)
|
|
4297
|
+
}
|
|
4298
|
+
};
|
|
3403
4299
|
environments = {
|
|
3404
4300
|
/**
|
|
3405
4301
|
* Create an environment
|
|
3406
4302
|
*
|
|
3407
4303
|
* Requires scope `environments:write` and the `manage-environments` capability
|
|
3408
|
-
* (
|
|
4304
|
+
* (`id:write` for human members, or current ownership). Danger: critical — with `initial_key` it mints a credential.
|
|
3409
4305
|
*
|
|
3410
4306
|
* With `initial_key`, the environment's first management key is minted in the same
|
|
3411
4307
|
* call and returned once as `initial_key.token` — enough for an agent holding one
|
|
@@ -3421,7 +4317,7 @@ var WorkspaceClient = class {
|
|
|
3421
4317
|
/**
|
|
3422
4318
|
* List environments
|
|
3423
4319
|
*
|
|
3424
|
-
* Requires scope `workspace:read`
|
|
4320
|
+
* Requires scope `workspace:read` and permission to read environments. Returns only currently permitted environments; Billing-only members cannot list them.
|
|
3425
4321
|
*
|
|
3426
4322
|
* `GET /workspace/environments` · action `environments.list`
|
|
3427
4323
|
* @scope `workspace:read`
|
|
@@ -3534,7 +4430,7 @@ var WorkspaceClient = class {
|
|
|
3534
4430
|
/**
|
|
3535
4431
|
* Create a project
|
|
3536
4432
|
*
|
|
3537
|
-
* Stand up another independently-billed IdP product. Requires scope `projects:write` and the `manage-environments` capability (
|
|
4433
|
+
* Stand up another independently-billed IdP product. Requires scope `projects:write` and the `manage-environments` capability (`id:write` for human members, or current ownership).
|
|
3538
4434
|
*
|
|
3539
4435
|
* `POST /workspace/projects` · action `projects.create`
|
|
3540
4436
|
* @scope `projects:write`
|
|
@@ -3545,7 +4441,7 @@ var WorkspaceClient = class {
|
|
|
3545
4441
|
/**
|
|
3546
4442
|
* List projects
|
|
3547
4443
|
*
|
|
3548
|
-
* Requires scope `workspace:read`
|
|
4444
|
+
* 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.
|
|
3549
4445
|
*
|
|
3550
4446
|
* `GET /workspace/projects` · action `projects.list`
|
|
3551
4447
|
* @scope `workspace:read`
|
|
@@ -3615,11 +4511,10 @@ var WorkspaceClient = class {
|
|
|
3615
4511
|
/**
|
|
3616
4512
|
* Invite a member
|
|
3617
4513
|
*
|
|
3618
|
-
* Requires scope `team:write` and the `manage-members` capability (
|
|
3619
|
-
*
|
|
3620
|
-
*
|
|
3621
|
-
*
|
|
3622
|
-
* earlier pending invitation for the same address is superseded. List, re-send and
|
|
4514
|
+
* Requires scope `team:write` and the `manage-members` capability (`members:manage` for human members, or current ownership). Invites the address onto the
|
|
4515
|
+
* ID product team with the selected app roles. Existing shared membership and other
|
|
4516
|
+
* apps are preserved. Owner is never invited; ownership is transferred separately. An
|
|
4517
|
+
* earlier pending invitation for the same address and this app is superseded. List, re-send and
|
|
3623
4518
|
* withdraw it under `/workspace/invitations`.
|
|
3624
4519
|
*
|
|
3625
4520
|
* `POST /workspace/members` · action `team.invite`
|
|
@@ -3631,7 +4526,7 @@ var WorkspaceClient = class {
|
|
|
3631
4526
|
/**
|
|
3632
4527
|
* List members
|
|
3633
4528
|
*
|
|
3634
|
-
* Requires scope `team:read` and the `read-members` capability (
|
|
4529
|
+
* 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.
|
|
3635
4530
|
*
|
|
3636
4531
|
* `GET /workspace/members` · action `team.list`
|
|
3637
4532
|
* @scope `team:read`
|
|
@@ -3642,7 +4537,7 @@ var WorkspaceClient = class {
|
|
|
3642
4537
|
/** Every item of `team.list`, fetching pages as the iteration reaches them. */
|
|
3643
4538
|
listAll: (query, options) => this.transport.paginate(workspaceOperations["team.list"], [], query, options),
|
|
3644
4539
|
/**
|
|
3645
|
-
* Remove
|
|
4540
|
+
* Remove native ID app roles while preserving shared organization membership and other apps. The current owner cannot be removed.
|
|
3646
4541
|
*
|
|
3647
4542
|
* Requires scope `team:write` and a role that may `manage-members`. Danger: destructive.
|
|
3648
4543
|
*
|
|
@@ -3651,9 +4546,9 @@ var WorkspaceClient = class {
|
|
|
3651
4546
|
* @danger destructive
|
|
3652
4547
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3653
4548
|
*/
|
|
3654
|
-
remove: (id, options) => this.transport.call(workspaceOperations["team.remove"], [id],
|
|
4549
|
+
remove: (id, body, options) => this.transport.call(workspaceOperations["team.remove"], [id], body, options),
|
|
3655
4550
|
/**
|
|
3656
|
-
*
|
|
4551
|
+
* Replace native ID app roles atomically. Shared organization membership is preserved.
|
|
3657
4552
|
*
|
|
3658
4553
|
* Requires scope `team:write` and a role that may `manage-members`. Danger: write.
|
|
3659
4554
|
*
|
|
@@ -3664,7 +4559,7 @@ var WorkspaceClient = class {
|
|
|
3664
4559
|
*/
|
|
3665
4560
|
role: (id, body, options) => this.transport.call(workspaceOperations["team.role"], [id], body, options),
|
|
3666
4561
|
/**
|
|
3667
|
-
*
|
|
4562
|
+
* 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.
|
|
3668
4563
|
*
|
|
3669
4564
|
* Requires scope `team:write` and a role that may `manage-members`. Danger: critical.
|
|
3670
4565
|
*
|
|
@@ -3716,7 +4611,7 @@ var WorkspaceClient = class {
|
|
|
3716
4611
|
/**
|
|
3717
4612
|
* Get the workspace
|
|
3718
4613
|
*
|
|
3719
|
-
* Requires scope `workspace:read`
|
|
4614
|
+
* Requires scope `workspace:read` and current workspace access. Returns only the workspace identity and status, including for members with only the Billing app role.
|
|
3720
4615
|
*
|
|
3721
4616
|
* `GET /workspace` · action `workspace.get`
|
|
3722
4617
|
* @scope `workspace:read`
|
|
@@ -3728,7 +4623,7 @@ var WorkspaceClient = class {
|
|
|
3728
4623
|
/**
|
|
3729
4624
|
* Rename the workspace.
|
|
3730
4625
|
*
|
|
3731
|
-
* Requires scope `settings:write` and a role that may `manage-members`. Danger: write.
|
|
4626
|
+
* Requires scope `settings:write` and a role that may `own-organization` and `manage-members`. Danger: write.
|
|
3732
4627
|
*
|
|
3733
4628
|
* `PATCH /workspace` · action `workspace.settings.update`
|
|
3734
4629
|
* @scope `settings:write`
|
|
@@ -3888,13 +4783,23 @@ var accountOperations = {
|
|
|
3888
4783
|
"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 },
|
|
3889
4784
|
"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 },
|
|
3890
4785
|
"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 },
|
|
4786
|
+
"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 },
|
|
3891
4787
|
"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 },
|
|
4788
|
+
"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 },
|
|
4789
|
+
"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 },
|
|
3892
4790
|
"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 },
|
|
3893
4791
|
"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 },
|
|
4792
|
+
"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 },
|
|
4793
|
+
"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 },
|
|
3894
4794
|
"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 },
|
|
3895
4795
|
"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 },
|
|
3896
4796
|
"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 },
|
|
3897
|
-
"account.
|
|
4797
|
+
"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 },
|
|
4798
|
+
"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 },
|
|
4799
|
+
"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 },
|
|
4800
|
+
"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 },
|
|
4801
|
+
"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 },
|
|
4802
|
+
"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 }
|
|
3898
4803
|
};
|
|
3899
4804
|
var AccountClient = class {
|
|
3900
4805
|
/** The transport every method runs on — authentication, retries, approvals. */
|
|
@@ -3953,6 +4858,19 @@ var AccountClient = class {
|
|
|
3953
4858
|
*/
|
|
3954
4859
|
revoke: (clientId, options) => this.transport.call(accountOperations["account.applications.revoke"], [clientId], void 0, options)
|
|
3955
4860
|
};
|
|
4861
|
+
apps = {
|
|
4862
|
+
/**
|
|
4863
|
+
* List the published apps visible to you in this environment. Optional organization context must be one you actively belong to.
|
|
4864
|
+
*
|
|
4865
|
+
* 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.
|
|
4866
|
+
*
|
|
4867
|
+
* `GET /me/apps` · action `account.apps.list`
|
|
4868
|
+
* @scope `account:apps:read`
|
|
4869
|
+
* @danger read
|
|
4870
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4871
|
+
*/
|
|
4872
|
+
list: (query, options) => this.transport.call(accountOperations["account.apps.list"], [], query, options)
|
|
4873
|
+
};
|
|
3956
4874
|
devices = {
|
|
3957
4875
|
/**
|
|
3958
4876
|
* Remove one of your trusted devices; it is no longer asked to approve anything.
|
|
@@ -3966,6 +4884,36 @@ var AccountClient = class {
|
|
|
3966
4884
|
*/
|
|
3967
4885
|
remove: (deviceId, options) => this.transport.call(accountOperations["account.devices.remove"], [deviceId], void 0, options)
|
|
3968
4886
|
};
|
|
4887
|
+
email = {
|
|
4888
|
+
confirmation: {
|
|
4889
|
+
/**
|
|
4890
|
+
* Mail yourself a link that confirms your email address.
|
|
4891
|
+
*
|
|
4892
|
+
* 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.
|
|
4893
|
+
*
|
|
4894
|
+
* `POST /me/email/confirmation` · action `account.email.confirmation.send`
|
|
4895
|
+
* @scope `account:profile:write`
|
|
4896
|
+
* @danger write
|
|
4897
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4898
|
+
*/
|
|
4899
|
+
send: (options) => this.transport.call(accountOperations["account.email.confirmation.send"], [], void 0, options)
|
|
4900
|
+
}
|
|
4901
|
+
};
|
|
4902
|
+
mfa = {
|
|
4903
|
+
sms: {
|
|
4904
|
+
/**
|
|
4905
|
+
* Remove your phone number for text-message sign-in codes.
|
|
4906
|
+
*
|
|
4907
|
+
* 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.
|
|
4908
|
+
*
|
|
4909
|
+
* `DELETE /me/mfa/sms` · action `account.mfa.sms.remove`
|
|
4910
|
+
* @scope `account:sign_in:write`
|
|
4911
|
+
* @danger critical
|
|
4912
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4913
|
+
*/
|
|
4914
|
+
remove: (options) => this.transport.call(accountOperations["account.mfa.sms.remove"], [], void 0, options)
|
|
4915
|
+
}
|
|
4916
|
+
};
|
|
3969
4917
|
organizations = {
|
|
3970
4918
|
/**
|
|
3971
4919
|
* Leave one of your own organizations. The last owner cannot leave — transfer ownership first.
|
|
@@ -3990,7 +4938,31 @@ var AccountClient = class {
|
|
|
3990
4938
|
* @danger critical
|
|
3991
4939
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3992
4940
|
*/
|
|
3993
|
-
remove: (passkeyId, options) => this.transport.call(accountOperations["account.passkeys.remove"], [passkeyId], void 0, options)
|
|
4941
|
+
remove: (passkeyId, options) => this.transport.call(accountOperations["account.passkeys.remove"], [passkeyId], void 0, options),
|
|
4942
|
+
/**
|
|
4943
|
+
* Rename one of your passkeys.
|
|
4944
|
+
*
|
|
4945
|
+
* 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.
|
|
4946
|
+
*
|
|
4947
|
+
* `PATCH /me/passkeys/{passkey_id}` · action `account.passkeys.rename`
|
|
4948
|
+
* @scope `account:sign_in:write`
|
|
4949
|
+
* @danger write
|
|
4950
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4951
|
+
*/
|
|
4952
|
+
rename: (passkeyId, body, options) => this.transport.call(accountOperations["account.passkeys.rename"], [passkeyId], body, options)
|
|
4953
|
+
};
|
|
4954
|
+
pipes = {
|
|
4955
|
+
/**
|
|
4956
|
+
* Disconnect one of your connected services, revoking the access you gave it.
|
|
4957
|
+
*
|
|
4958
|
+
* 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.
|
|
4959
|
+
*
|
|
4960
|
+
* `DELETE /me/pipes/{provider}` · action `account.pipes.disconnect`
|
|
4961
|
+
* @scope `account:pipes:write`
|
|
4962
|
+
* @danger destructive
|
|
4963
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4964
|
+
*/
|
|
4965
|
+
disconnect: (provider, options) => this.transport.call(accountOperations["account.pipes.disconnect"], [provider], void 0, options)
|
|
3994
4966
|
};
|
|
3995
4967
|
profile = {
|
|
3996
4968
|
/**
|
|
@@ -4029,6 +5001,19 @@ var AccountClient = class {
|
|
|
4029
5001
|
*/
|
|
4030
5002
|
revokeOthers: (options) => this.transport.call(accountOperations["account.sessions.revoke_others"], [], void 0, options)
|
|
4031
5003
|
};
|
|
5004
|
+
signInMethods = {
|
|
5005
|
+
/**
|
|
5006
|
+
* Disconnect one linked sign-in identity (Google, GitHub, …) from your account — never the last way you can sign in.
|
|
5007
|
+
*
|
|
5008
|
+
* 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.
|
|
5009
|
+
*
|
|
5010
|
+
* `DELETE /me/sign-in-methods/{identity_id}` · action `account.sign_in_methods.disconnect`
|
|
5011
|
+
* @scope `account:sign_in:write`
|
|
5012
|
+
* @danger critical
|
|
5013
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
5014
|
+
*/
|
|
5015
|
+
disconnect: (identityId, options) => this.transport.call(accountOperations["account.sign_in_methods.disconnect"], [identityId], void 0, options)
|
|
5016
|
+
};
|
|
4032
5017
|
social = {
|
|
4033
5018
|
/**
|
|
4034
5019
|
* Disconnect a social account from yours — never the last way you can sign in.
|
|
@@ -4042,6 +5027,54 @@ var AccountClient = class {
|
|
|
4042
5027
|
*/
|
|
4043
5028
|
unlink: (provider, options) => this.transport.call(accountOperations["account.social.unlink"], [provider], void 0, options)
|
|
4044
5029
|
};
|
|
5030
|
+
totp = {
|
|
5031
|
+
/**
|
|
5032
|
+
* Remove one of your authenticator apps.
|
|
5033
|
+
*
|
|
5034
|
+
* 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.
|
|
5035
|
+
*
|
|
5036
|
+
* `DELETE /me/two-factor/apps/{factor_id}` · action `account.totp.remove`
|
|
5037
|
+
* @scope `account:sign_in:write`
|
|
5038
|
+
* @danger critical
|
|
5039
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
5040
|
+
*/
|
|
5041
|
+
remove: (factorId, options) => this.transport.call(accountOperations["account.totp.remove"], [factorId], void 0, options),
|
|
5042
|
+
/**
|
|
5043
|
+
* Rename one of your authenticator apps.
|
|
5044
|
+
*
|
|
5045
|
+
* 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.
|
|
5046
|
+
*
|
|
5047
|
+
* `PATCH /me/two-factor/apps/{factor_id}` · action `account.totp.rename`
|
|
5048
|
+
* @scope `account:sign_in:write`
|
|
5049
|
+
* @danger write
|
|
5050
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
5051
|
+
*/
|
|
5052
|
+
rename: (factorId, body, options) => this.transport.call(accountOperations["account.totp.rename"], [factorId], body, options)
|
|
5053
|
+
};
|
|
5054
|
+
waitlists = {
|
|
5055
|
+
/**
|
|
5056
|
+
* Join a published service waitlist with your verified email. Does not buy a plan or grant access.
|
|
5057
|
+
*
|
|
5058
|
+
* 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.
|
|
5059
|
+
*
|
|
5060
|
+
* `POST /me/services/{program}/waitlist` · action `account.waitlists.join`
|
|
5061
|
+
* @scope `account:waitlists:write`
|
|
5062
|
+
* @danger write
|
|
5063
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
5064
|
+
*/
|
|
5065
|
+
join: (program, body, options) => this.transport.call(accountOperations["account.waitlists.join"], [program], body, options),
|
|
5066
|
+
/**
|
|
5067
|
+
* Withdraw your own feature interest or beta application for a team. Active grants are managed by the service.
|
|
5068
|
+
*
|
|
5069
|
+
* 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.
|
|
5070
|
+
*
|
|
5071
|
+
* `POST /me/services/{program}/waitlist/leave` · action `account.waitlists.leave`
|
|
5072
|
+
* @scope `account:waitlists:write`
|
|
5073
|
+
* @danger write
|
|
5074
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
5075
|
+
*/
|
|
5076
|
+
leave: (program, body, options) => this.transport.call(accountOperations["account.waitlists.leave"], [program], body, options)
|
|
5077
|
+
};
|
|
4045
5078
|
};
|
|
4046
5079
|
|
|
4047
5080
|
// src/management/dpop.ts
|
|
@@ -4330,6 +5363,25 @@ async function verifyAuditLogChain(client, query, options = {}) {
|
|
|
4330
5363
|
return verifyAuditChain(client.auditLogs.events.listAll({ ...query, order: "asc" }), options);
|
|
4331
5364
|
}
|
|
4332
5365
|
|
|
4333
|
-
|
|
5366
|
+
// src/management/fga.ts
|
|
5367
|
+
function fgaTuple(tuple) {
|
|
5368
|
+
const name = (value, what) => {
|
|
5369
|
+
if (value === "" || /[\s#@:]/.test(value)) {
|
|
5370
|
+
throw new TypeError(`An FGA ${what} cannot be empty or contain whitespace, '#', '@' or ':': ${JSON.stringify(value)}`);
|
|
5371
|
+
}
|
|
5372
|
+
return value;
|
|
5373
|
+
};
|
|
5374
|
+
const id = (value, what) => {
|
|
5375
|
+
if (value === "" || /[\s#@]/.test(value)) {
|
|
5376
|
+
throw new TypeError(`An FGA ${what} cannot be empty or contain whitespace, '#' or '@': ${JSON.stringify(value)}`);
|
|
5377
|
+
}
|
|
5378
|
+
return value;
|
|
5379
|
+
};
|
|
5380
|
+
const subject = `${name(tuple.subject.type, "subject type")}:${id(tuple.subject.id, "subject id")}`;
|
|
5381
|
+
const userset = tuple.subject.relation ? `#${name(tuple.subject.relation, "subject relation")}` : "";
|
|
5382
|
+
return `${name(tuple.resource_type, "resource type")}:${id(tuple.resource_id, "resource id")}#${name(tuple.relation, "relation")}@${subject}${userset}`;
|
|
5383
|
+
}
|
|
5384
|
+
|
|
5385
|
+
export { AUDIT_CHAIN_GENESIS, AccountClient, ApprovalDeniedError, ApprovalError, ApprovalExpiredError, AuditLogExportError, AuditLogger, CboxIdApiError, EnvironmentClient, MAX_AUDIT_BATCH, ManagementNetworkError, ManagementTransport, PlatformClient, WorkspaceClient, accountOperations, auditEventDocument, auditEventHash, canonicalJson, createDPoPSigner, environmentOperations, exportAuditLogs, fgaTuple, generateDPoPKeyPair, platformOperations, retryAfterMs, verifyAuditChain, verifyAuditLogChain, workspaceOperations };
|
|
4334
5386
|
//# sourceMappingURL=management.js.map
|
|
4335
5387
|
//# sourceMappingURL=management.js.map
|