@cboxdk/id-js 0.18.0 → 0.19.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/README.md +97 -1
- 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/index.cjs +211 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +83 -6
- package/dist/index.d.ts +83 -6
- package/dist/index.js +63 -11
- package/dist/index.js.map +1 -1
- package/dist/management.cjs +726 -6
- package/dist/management.cjs.map +1 -1
- package/dist/management.d.cts +2557 -26
- package/dist/management.d.ts +2557 -26
- package/dist/management.js +726 -7
- 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 +3 -2
- package/dist/nextjs.d.ts +3 -2
- package/dist/nextjs.js +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- 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 +1 -1
- package/dist/chunk-CXGKOJRJ.js.map +0 -1
package/dist/management.js
CHANGED
|
@@ -601,12 +601,16 @@ var environmentOperations = {
|
|
|
601
601
|
"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
602
|
"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
603
|
"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 },
|
|
604
|
+
"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
605
|
"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
606
|
"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
607
|
"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
608
|
"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 },
|
|
609
|
+
"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
610
|
"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
611
|
"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 },
|
|
612
|
+
"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 },
|
|
613
|
+
"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
614
|
"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
615
|
"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
616
|
"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 +618,22 @@ var environmentOperations = {
|
|
|
614
618
|
"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
619
|
"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
620
|
"events.list": { action: "events.list", operationId: "events_list", method: "GET", path: "/events", pathParams: [], scope: "events:read", danger: "read", approval: true, body: false, pagination: "cursor" },
|
|
621
|
+
"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 },
|
|
622
|
+
"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 },
|
|
623
|
+
"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 },
|
|
624
|
+
"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 },
|
|
625
|
+
"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" },
|
|
626
|
+
"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 },
|
|
627
|
+
"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 },
|
|
628
|
+
"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 },
|
|
629
|
+
"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" },
|
|
630
|
+
"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 },
|
|
631
|
+
"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 },
|
|
632
|
+
"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 },
|
|
633
|
+
"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" },
|
|
634
|
+
"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 },
|
|
635
|
+
"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" },
|
|
636
|
+
"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
637
|
"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
638
|
"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
639
|
"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 },
|
|
@@ -668,11 +688,34 @@ var environmentOperations = {
|
|
|
668
688
|
"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
689
|
"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
690
|
"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 },
|
|
691
|
+
"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 },
|
|
692
|
+
"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" },
|
|
693
|
+
"pipes.create": { action: "pipes.create", operationId: "pipes_create", method: "POST", path: "/pipes", pathParams: [], scope: "pipes:write", danger: "write", approval: true, body: true, pagination: null },
|
|
694
|
+
"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 },
|
|
695
|
+
"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 },
|
|
696
|
+
"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 },
|
|
697
|
+
"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 },
|
|
698
|
+
"pipes.list": { action: "pipes.list", operationId: "pipes_list", method: "GET", path: "/pipes", pathParams: [], scope: "pipes:read", danger: "read", approval: true, body: false, pagination: "cursor" },
|
|
699
|
+
"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
700
|
"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
701
|
"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
702
|
"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
703
|
"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
704
|
"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 },
|
|
705
|
+
"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 },
|
|
706
|
+
"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" },
|
|
707
|
+
"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 },
|
|
708
|
+
"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" },
|
|
709
|
+
"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 },
|
|
710
|
+
"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 },
|
|
711
|
+
"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 },
|
|
712
|
+
"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 },
|
|
713
|
+
"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 },
|
|
714
|
+
"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" },
|
|
715
|
+
"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 },
|
|
716
|
+
"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 },
|
|
717
|
+
"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 },
|
|
718
|
+
"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
719
|
"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 },
|
|
677
720
|
"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
721
|
"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 },
|
|
@@ -689,9 +732,16 @@ var environmentOperations = {
|
|
|
689
732
|
"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
733
|
"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
734
|
"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 },
|
|
735
|
+
"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 },
|
|
736
|
+
"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
737
|
"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 },
|
|
738
|
+
"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 },
|
|
739
|
+
"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 },
|
|
740
|
+
"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
741
|
"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" },
|
|
742
|
+
"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
743
|
"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 },
|
|
744
|
+
"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
745
|
"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
746
|
"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
747
|
"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 },
|
|
@@ -733,6 +783,7 @@ var environmentOperations = {
|
|
|
733
783
|
"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
784
|
"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
785
|
"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 },
|
|
786
|
+
"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
787
|
"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
788
|
"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
789
|
"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 },
|
|
@@ -1390,7 +1441,7 @@ var EnvironmentClient = class {
|
|
|
1390
1441
|
*/
|
|
1391
1442
|
get: (query, options) => this.transport.call(environmentOperations["branding.appearance.get"], [], query, options),
|
|
1392
1443
|
/**
|
|
1393
|
-
* Set the hosted sign-in theme (preset, colours, corners, type, logo) for the environment default or one organization.
|
|
1444
|
+
* Set the hosted sign-in theme (preset, colours, corners, type, uploaded logo and favicon) for the environment default or one organization.
|
|
1394
1445
|
*
|
|
1395
1446
|
* Requires scope `branding:write`. Danger: write.
|
|
1396
1447
|
*
|
|
@@ -1484,6 +1535,17 @@ var EnvironmentClient = class {
|
|
|
1484
1535
|
list: (query, options) => this.transport.call(environmentOperations["directories.list"], [], query, options),
|
|
1485
1536
|
/** Every item of `directories.list`, fetching pages as the iteration reaches them. */
|
|
1486
1537
|
listAll: (query, options) => this.transport.paginate(environmentOperations["directories.list"], [], query, options),
|
|
1538
|
+
/**
|
|
1539
|
+
* 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.
|
|
1540
|
+
*
|
|
1541
|
+
* Requires scope `directory_sync:write`. Danger: write.
|
|
1542
|
+
*
|
|
1543
|
+
* `POST /directories/{id}/sync` · action `directories.sync`
|
|
1544
|
+
* @scope `directory_sync:write`
|
|
1545
|
+
* @danger write
|
|
1546
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1547
|
+
*/
|
|
1548
|
+
sync: (id, body, options) => this.transport.call(environmentOperations["directories.sync"], [id], body, options),
|
|
1487
1549
|
/**
|
|
1488
1550
|
* Rename an inbound directory.
|
|
1489
1551
|
*
|
|
@@ -1495,6 +1557,19 @@ var EnvironmentClient = class {
|
|
|
1495
1557
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1496
1558
|
*/
|
|
1497
1559
|
update: (id, body, options) => this.transport.call(environmentOperations["directories.update"], [id], body, options),
|
|
1560
|
+
credentials: {
|
|
1561
|
+
/**
|
|
1562
|
+
* Replace a pull directory's provider credentials, verifying the new ones first. Write-only; never returned.
|
|
1563
|
+
*
|
|
1564
|
+
* Requires scope `directory_sync:write`. Danger: critical.
|
|
1565
|
+
*
|
|
1566
|
+
* `PUT /directories/{id}/credentials` · action `directories.credentials.replace`
|
|
1567
|
+
* @scope `directory_sync:write`
|
|
1568
|
+
* @danger critical
|
|
1569
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1570
|
+
*/
|
|
1571
|
+
replace: (id, body, options) => this.transport.call(environmentOperations["directories.credentials.replace"], [id], body, options)
|
|
1572
|
+
},
|
|
1498
1573
|
groups: {
|
|
1499
1574
|
/**
|
|
1500
1575
|
* List the groups a directory has synced, with the role ids each group is mapped onto.
|
|
@@ -1521,6 +1596,19 @@ var EnvironmentClient = class {
|
|
|
1521
1596
|
*/
|
|
1522
1597
|
map: (id, body, options) => this.transport.call(environmentOperations["directories.groups.map"], [id], body, options)
|
|
1523
1598
|
},
|
|
1599
|
+
hris: {
|
|
1600
|
+
/**
|
|
1601
|
+
* 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.
|
|
1602
|
+
*
|
|
1603
|
+
* Requires scope `directory_sync:write`. Danger: critical.
|
|
1604
|
+
*
|
|
1605
|
+
* `POST /directories/hris` · action `directories.hris.connect`
|
|
1606
|
+
* @scope `directory_sync:write`
|
|
1607
|
+
* @danger critical
|
|
1608
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1609
|
+
*/
|
|
1610
|
+
connect: (body, options) => this.transport.call(environmentOperations["directories.hris.connect"], [], body, options)
|
|
1611
|
+
},
|
|
1524
1612
|
status: {
|
|
1525
1613
|
/**
|
|
1526
1614
|
* Pause or resume an inbound directory's provisioning.
|
|
@@ -1534,6 +1622,19 @@ var EnvironmentClient = class {
|
|
|
1534
1622
|
*/
|
|
1535
1623
|
set: (id, body, options) => this.transport.call(environmentOperations["directories.status.set"], [id], body, options)
|
|
1536
1624
|
},
|
|
1625
|
+
syncSettings: {
|
|
1626
|
+
/**
|
|
1627
|
+
* Set how often a pull directory syncs, and for an HR system which of its fields pass through onto people.
|
|
1628
|
+
*
|
|
1629
|
+
* Requires scope `directory_sync:write`. Danger: write.
|
|
1630
|
+
*
|
|
1631
|
+
* `PATCH /directories/{id}/sync-settings` · action `directories.sync_settings.update`
|
|
1632
|
+
* @scope `directory_sync:write`
|
|
1633
|
+
* @danger write
|
|
1634
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1635
|
+
*/
|
|
1636
|
+
update: (id, body, options) => this.transport.call(environmentOperations["directories.sync_settings.update"], [id], body, options)
|
|
1637
|
+
},
|
|
1537
1638
|
token: {
|
|
1538
1639
|
/**
|
|
1539
1640
|
* Issue a new bearer token for a SCIM directory, returned once. The old token stops working immediately.
|
|
@@ -1609,6 +1710,202 @@ var EnvironmentClient = class {
|
|
|
1609
1710
|
/** Every item of `events.list`, fetching pages as the iteration reaches them. */
|
|
1610
1711
|
listAll: (query, options) => this.transport.paginate(environmentOperations["events.list"], [], query, options)
|
|
1611
1712
|
};
|
|
1713
|
+
featureFlags = {
|
|
1714
|
+
/**
|
|
1715
|
+
* Define a feature flag: a key apps ask about, its default, and who it is on for — named users, named organizations, a rollout percentage.
|
|
1716
|
+
*
|
|
1717
|
+
* Requires scope `feature_flags:write`. Danger: write.
|
|
1718
|
+
*
|
|
1719
|
+
* `POST /feature-flags` · action `feature_flags.create`
|
|
1720
|
+
* @scope `feature_flags:write`
|
|
1721
|
+
* @danger write
|
|
1722
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1723
|
+
*/
|
|
1724
|
+
create: (body, options) => this.transport.call(environmentOperations["feature_flags.create"], [], body, options),
|
|
1725
|
+
/**
|
|
1726
|
+
* Delete a feature flag and its rules. Its key evaluates to off from now on; tokens already minted keep it until they expire.
|
|
1727
|
+
*
|
|
1728
|
+
* Requires scope `feature_flags:write`. Danger: destructive.
|
|
1729
|
+
*
|
|
1730
|
+
* `DELETE /feature-flags/{id}` · action `feature_flags.delete`
|
|
1731
|
+
* @scope `feature_flags:write`
|
|
1732
|
+
* @danger destructive
|
|
1733
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1734
|
+
*/
|
|
1735
|
+
delete: (id, options) => this.transport.call(environmentOperations["feature_flags.delete"], [id], void 0, options),
|
|
1736
|
+
/**
|
|
1737
|
+
* 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.
|
|
1738
|
+
*
|
|
1739
|
+
* Requires scope `feature_flags:read`. Danger: read.
|
|
1740
|
+
*
|
|
1741
|
+
* `GET /feature-flags/evaluate` · action `feature_flags.evaluate`
|
|
1742
|
+
* @scope `feature_flags:read`
|
|
1743
|
+
* @danger read
|
|
1744
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1745
|
+
*/
|
|
1746
|
+
evaluate: (query, options) => this.transport.call(environmentOperations["feature_flags.evaluate"], [], query, options),
|
|
1747
|
+
/**
|
|
1748
|
+
* Read one feature flag: its default, whether it is switched on, and every user, organization and rollout rule.
|
|
1749
|
+
*
|
|
1750
|
+
* Requires scope `feature_flags:read`. Danger: read.
|
|
1751
|
+
*
|
|
1752
|
+
* `GET /feature-flags/{id}` · action `feature_flags.get`
|
|
1753
|
+
* @scope `feature_flags:read`
|
|
1754
|
+
* @danger read
|
|
1755
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1756
|
+
*/
|
|
1757
|
+
get: (id, options) => this.transport.call(environmentOperations["feature_flags.get"], [id], void 0, options),
|
|
1758
|
+
/**
|
|
1759
|
+
* List this environment's feature flags with their default, kill switch and targeting rules.
|
|
1760
|
+
*
|
|
1761
|
+
* Requires scope `feature_flags:read`. Danger: read.
|
|
1762
|
+
*
|
|
1763
|
+
* `GET /feature-flags` · action `feature_flags.list`
|
|
1764
|
+
* @scope `feature_flags:read`
|
|
1765
|
+
* @danger read
|
|
1766
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1767
|
+
*/
|
|
1768
|
+
list: (query, options) => this.transport.call(environmentOperations["feature_flags.list"], [], query, options),
|
|
1769
|
+
/** Every item of `feature_flags.list`, fetching pages as the iteration reaches them. */
|
|
1770
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["feature_flags.list"], [], query, options),
|
|
1771
|
+
/**
|
|
1772
|
+
* Change a feature flag: switch it on or off for everyone, change its default, or replace its user rules, organization rules or rollout percentage.
|
|
1773
|
+
*
|
|
1774
|
+
* Requires scope `feature_flags:write`. Danger: write.
|
|
1775
|
+
*
|
|
1776
|
+
* `PATCH /feature-flags/{id}` · action `feature_flags.update`
|
|
1777
|
+
* @scope `feature_flags:write`
|
|
1778
|
+
* @danger write
|
|
1779
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1780
|
+
*/
|
|
1781
|
+
update: (id, body, options) => this.transport.call(environmentOperations["feature_flags.update"], [id], body, options)
|
|
1782
|
+
};
|
|
1783
|
+
fga = {
|
|
1784
|
+
/**
|
|
1785
|
+
* 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.
|
|
1786
|
+
*
|
|
1787
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1788
|
+
*
|
|
1789
|
+
* `GET /fga/check` · action `fga.check`
|
|
1790
|
+
* @scope `fga:read`
|
|
1791
|
+
* @danger read
|
|
1792
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1793
|
+
*/
|
|
1794
|
+
check: (query, options) => this.transport.call(environmentOperations["fga.check"], [], query, options),
|
|
1795
|
+
/**
|
|
1796
|
+
* 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.
|
|
1797
|
+
*
|
|
1798
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1799
|
+
*
|
|
1800
|
+
* `GET /fga/check/batch` · action `fga.check_batch`
|
|
1801
|
+
* @scope `fga:read`
|
|
1802
|
+
* @danger read
|
|
1803
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1804
|
+
*/
|
|
1805
|
+
checkBatch: (query, options) => this.transport.call(environmentOperations["fga.check_batch"], [], query, options),
|
|
1806
|
+
resources: {
|
|
1807
|
+
/**
|
|
1808
|
+
* 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.
|
|
1809
|
+
*
|
|
1810
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1811
|
+
*
|
|
1812
|
+
* `GET /fga/resources` · action `fga.resources.list`
|
|
1813
|
+
* @scope `fga:read`
|
|
1814
|
+
* @danger read
|
|
1815
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1816
|
+
*/
|
|
1817
|
+
list: (query, options) => this.transport.call(environmentOperations["fga.resources.list"], [], query, options),
|
|
1818
|
+
/** Every item of `fga.resources.list`, fetching pages as the iteration reaches them. */
|
|
1819
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["fga.resources.list"], [], query, options)
|
|
1820
|
+
},
|
|
1821
|
+
schema: {
|
|
1822
|
+
/**
|
|
1823
|
+
* Read this environment's fine-grained authorization schema: the source text, its parsed types and relations, its version, and the current consistency token.
|
|
1824
|
+
*
|
|
1825
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1826
|
+
*
|
|
1827
|
+
* `GET /fga/schema` · action `fga.schema.get`
|
|
1828
|
+
* @scope `fga:read`
|
|
1829
|
+
* @danger read
|
|
1830
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1831
|
+
*/
|
|
1832
|
+
get: (options) => this.transport.call(environmentOperations["fga.schema.get"], [], void 0, options),
|
|
1833
|
+
/**
|
|
1834
|
+
* 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.
|
|
1835
|
+
*
|
|
1836
|
+
* Requires scope `fga:schema`. Danger: critical.
|
|
1837
|
+
*
|
|
1838
|
+
* `PUT /fga/schema` · action `fga.schema.update`
|
|
1839
|
+
* @scope `fga:schema`
|
|
1840
|
+
* @danger critical
|
|
1841
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1842
|
+
*/
|
|
1843
|
+
update: (body, options) => this.transport.call(environmentOperations["fga.schema.update"], [], body, options),
|
|
1844
|
+
/**
|
|
1845
|
+
* Check a fine-grained authorization schema without saving it: every error by line, or the parsed types and canonical text.
|
|
1846
|
+
*
|
|
1847
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1848
|
+
*
|
|
1849
|
+
* `GET /fga/schema/validate` · action `fga.schema.validate`
|
|
1850
|
+
* @scope `fga:read`
|
|
1851
|
+
* @danger read
|
|
1852
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1853
|
+
*/
|
|
1854
|
+
validate: (query, options) => this.transport.call(environmentOperations["fga.schema.validate"], [], query, options)
|
|
1855
|
+
},
|
|
1856
|
+
subjects: {
|
|
1857
|
+
/**
|
|
1858
|
+
* 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.
|
|
1859
|
+
*
|
|
1860
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1861
|
+
*
|
|
1862
|
+
* `GET /fga/subjects` · action `fga.subjects.list`
|
|
1863
|
+
* @scope `fga:read`
|
|
1864
|
+
* @danger read
|
|
1865
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1866
|
+
*/
|
|
1867
|
+
list: (query, options) => this.transport.call(environmentOperations["fga.subjects.list"], [], query, options),
|
|
1868
|
+
/** Every item of `fga.subjects.list`, fetching pages as the iteration reaches them. */
|
|
1869
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["fga.subjects.list"], [], query, options)
|
|
1870
|
+
},
|
|
1871
|
+
tuples: {
|
|
1872
|
+
/**
|
|
1873
|
+
* Delete 1–100 relationship tuples in one atomic batch. Revokes the access they granted, and everything inherited through them, at once.
|
|
1874
|
+
*
|
|
1875
|
+
* Requires scope `fga:write`. Danger: destructive.
|
|
1876
|
+
*
|
|
1877
|
+
* `POST /fga/tuples/delete` · action `fga.tuples.delete`
|
|
1878
|
+
* @scope `fga:write`
|
|
1879
|
+
* @danger destructive
|
|
1880
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1881
|
+
*/
|
|
1882
|
+
delete: (body, options) => this.transport.call(environmentOperations["fga.tuples.delete"], [], body, options),
|
|
1883
|
+
/**
|
|
1884
|
+
* List stored relationship tuples oldest first, filtered by resource type and id, relation and subject; pass next_cursor as after to page.
|
|
1885
|
+
*
|
|
1886
|
+
* Requires scope `fga:read`. Danger: read.
|
|
1887
|
+
*
|
|
1888
|
+
* `GET /fga/tuples` · action `fga.tuples.list`
|
|
1889
|
+
* @scope `fga:read`
|
|
1890
|
+
* @danger read
|
|
1891
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1892
|
+
*/
|
|
1893
|
+
list: (query, options) => this.transport.call(environmentOperations["fga.tuples.list"], [], query, options),
|
|
1894
|
+
/** Every item of `fga.tuples.list`, fetching pages as the iteration reaches them. */
|
|
1895
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["fga.tuples.list"], [], query, options),
|
|
1896
|
+
/**
|
|
1897
|
+
* 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.
|
|
1898
|
+
*
|
|
1899
|
+
* Requires scope `fga:write`. Danger: write.
|
|
1900
|
+
*
|
|
1901
|
+
* `POST /fga/tuples` · action `fga.tuples.write`
|
|
1902
|
+
* @scope `fga:write`
|
|
1903
|
+
* @danger write
|
|
1904
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
1905
|
+
*/
|
|
1906
|
+
write: (body, options) => this.transport.call(environmentOperations["fga.tuples.write"], [], body, options)
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1612
1909
|
frontendKeys = {
|
|
1613
1910
|
/**
|
|
1614
1911
|
* Create a publishable frontend key for a browser app, usable only from the origins listed. The key is public by design.
|
|
@@ -2317,6 +2614,115 @@ var EnvironmentClient = class {
|
|
|
2317
2614
|
*/
|
|
2318
2615
|
update: (id, body, options) => this.transport.call(environmentOperations["permissions.update"], [id], body, options)
|
|
2319
2616
|
};
|
|
2617
|
+
pipes = {
|
|
2618
|
+
/**
|
|
2619
|
+
* 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.
|
|
2620
|
+
*
|
|
2621
|
+
* Requires scope `pipes:write`. Danger: write.
|
|
2622
|
+
*
|
|
2623
|
+
* `POST /pipes` · action `pipes.create`
|
|
2624
|
+
* @scope `pipes:write`
|
|
2625
|
+
* @danger write
|
|
2626
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2627
|
+
*/
|
|
2628
|
+
create: (body, options) => this.transport.call(environmentOperations["pipes.create"], [], body, options),
|
|
2629
|
+
/**
|
|
2630
|
+
* Remove a pipe and every connection through it. Their tokens are revoked here, not at the provider — disconnect people first if that matters.
|
|
2631
|
+
*
|
|
2632
|
+
* Requires scope `pipes:write`. Danger: destructive.
|
|
2633
|
+
*
|
|
2634
|
+
* `DELETE /pipes/{id}` · action `pipes.delete`
|
|
2635
|
+
* @scope `pipes:write`
|
|
2636
|
+
* @danger destructive
|
|
2637
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2638
|
+
*/
|
|
2639
|
+
delete: (id, options) => this.transport.call(environmentOperations["pipes.delete"], [id], void 0, options),
|
|
2640
|
+
/**
|
|
2641
|
+
* Show one pipe: its provider, OAuth client id, scopes, the redirect URI to register at the provider, and the apps granted its tokens.
|
|
2642
|
+
*
|
|
2643
|
+
* Requires scope `pipes:read`. Danger: read.
|
|
2644
|
+
*
|
|
2645
|
+
* `GET /pipes/{id}` · action `pipes.get`
|
|
2646
|
+
* @scope `pipes:read`
|
|
2647
|
+
* @danger read
|
|
2648
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2649
|
+
*/
|
|
2650
|
+
get: (id, options) => this.transport.call(environmentOperations["pipes.get"], [id], void 0, options),
|
|
2651
|
+
/**
|
|
2652
|
+
* 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.
|
|
2653
|
+
*
|
|
2654
|
+
* Requires scope `pipes:read`. Danger: read.
|
|
2655
|
+
*
|
|
2656
|
+
* `GET /pipes` · action `pipes.list`
|
|
2657
|
+
* @scope `pipes:read`
|
|
2658
|
+
* @danger read
|
|
2659
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2660
|
+
*/
|
|
2661
|
+
list: (query, options) => this.transport.call(environmentOperations["pipes.list"], [], query, options),
|
|
2662
|
+
/** Every item of `pipes.list`, fetching pages as the iteration reaches them. */
|
|
2663
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["pipes.list"], [], query, options),
|
|
2664
|
+
/**
|
|
2665
|
+
* Change a pipe — client id, client secret (sealed), scopes, parameters, or whether it is enabled. Only what is sent changes.
|
|
2666
|
+
*
|
|
2667
|
+
* Requires scope `pipes:write`. Danger: write.
|
|
2668
|
+
*
|
|
2669
|
+
* `PATCH /pipes/{id}` · action `pipes.update`
|
|
2670
|
+
* @scope `pipes:write`
|
|
2671
|
+
* @danger write
|
|
2672
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2673
|
+
*/
|
|
2674
|
+
update: (id, body, options) => this.transport.call(environmentOperations["pipes.update"], [id], body, options),
|
|
2675
|
+
connections: {
|
|
2676
|
+
/**
|
|
2677
|
+
* Disconnect a person's connected account: revoke it at the provider where supported, revoke its tokens here, and forget it.
|
|
2678
|
+
*
|
|
2679
|
+
* Requires scope `pipes:write`. Danger: destructive.
|
|
2680
|
+
*
|
|
2681
|
+
* `DELETE /pipes/{id}/connections/{connection_id}` · action `pipes.connections.delete`
|
|
2682
|
+
* @scope `pipes:write`
|
|
2683
|
+
* @danger destructive
|
|
2684
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2685
|
+
*/
|
|
2686
|
+
delete: (id, connectionId, options) => this.transport.call(environmentOperations["pipes.connections.delete"], [id, connectionId], void 0, options),
|
|
2687
|
+
/**
|
|
2688
|
+
* 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.
|
|
2689
|
+
*
|
|
2690
|
+
* Requires scope `pipes:read`. Danger: read.
|
|
2691
|
+
*
|
|
2692
|
+
* `GET /pipes/{id}/connections` · action `pipes.connections.list`
|
|
2693
|
+
* @scope `pipes:read`
|
|
2694
|
+
* @danger read
|
|
2695
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2696
|
+
*/
|
|
2697
|
+
list: (id, query, options) => this.transport.call(environmentOperations["pipes.connections.list"], [id], query, options),
|
|
2698
|
+
/** Every item of `pipes.connections.list`, fetching pages as the iteration reaches them. */
|
|
2699
|
+
listAll: (id, query, options) => this.transport.paginate(environmentOperations["pipes.connections.list"], [id], query, options)
|
|
2700
|
+
},
|
|
2701
|
+
grants: {
|
|
2702
|
+
/**
|
|
2703
|
+
* Grant an app (by OAuth client id) the right to lease fresh access tokens for the accounts people connected through this pipe.
|
|
2704
|
+
*
|
|
2705
|
+
* Requires scope `pipes:write`. Danger: critical.
|
|
2706
|
+
*
|
|
2707
|
+
* `POST /pipes/{id}/grants` · action `pipes.grants.create`
|
|
2708
|
+
* @scope `pipes:write`
|
|
2709
|
+
* @danger critical
|
|
2710
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2711
|
+
*/
|
|
2712
|
+
create: (id, body, options) => this.transport.call(environmentOperations["pipes.grants.create"], [id], body, options),
|
|
2713
|
+
/**
|
|
2714
|
+
* Withdraw an app's right to lease the tokens people connected through this pipe.
|
|
2715
|
+
*
|
|
2716
|
+
* Requires scope `pipes:write`. Danger: destructive.
|
|
2717
|
+
*
|
|
2718
|
+
* `DELETE /pipes/{id}/grants/{client_id}` · action `pipes.grants.delete`
|
|
2719
|
+
* @scope `pipes:write`
|
|
2720
|
+
* @danger destructive
|
|
2721
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2722
|
+
*/
|
|
2723
|
+
delete: (id, clientId, options) => this.transport.call(environmentOperations["pipes.grants.delete"], [id, clientId], void 0, options)
|
|
2724
|
+
}
|
|
2725
|
+
};
|
|
2320
2726
|
provisioning = {
|
|
2321
2727
|
targets: {
|
|
2322
2728
|
/**
|
|
@@ -2380,6 +2786,178 @@ var EnvironmentClient = class {
|
|
|
2380
2786
|
}
|
|
2381
2787
|
}
|
|
2382
2788
|
};
|
|
2789
|
+
radar = {
|
|
2790
|
+
decisions: {
|
|
2791
|
+
/**
|
|
2792
|
+
* 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.
|
|
2793
|
+
*
|
|
2794
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2795
|
+
*
|
|
2796
|
+
* `GET /radar/decisions/{id}` · action `radar.decisions.get`
|
|
2797
|
+
* @scope `radar:read`
|
|
2798
|
+
* @danger read
|
|
2799
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2800
|
+
*/
|
|
2801
|
+
get: (id, options) => this.transport.call(environmentOperations["radar.decisions.get"], [id], void 0, options),
|
|
2802
|
+
/**
|
|
2803
|
+
* 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.
|
|
2804
|
+
*
|
|
2805
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2806
|
+
*
|
|
2807
|
+
* `GET /radar/decisions` · action `radar.decisions.list`
|
|
2808
|
+
* @scope `radar:read`
|
|
2809
|
+
* @danger read
|
|
2810
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2811
|
+
*/
|
|
2812
|
+
list: (query, options) => this.transport.call(environmentOperations["radar.decisions.list"], [], query, options),
|
|
2813
|
+
/** Every item of `radar.decisions.list`, fetching pages as the iteration reaches them. */
|
|
2814
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["radar.decisions.list"], [], query, options)
|
|
2815
|
+
},
|
|
2816
|
+
lists: {
|
|
2817
|
+
/**
|
|
2818
|
+
* 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.
|
|
2819
|
+
*
|
|
2820
|
+
* Requires scope `radar:write`. Danger: write.
|
|
2821
|
+
*
|
|
2822
|
+
* `POST /radar/lists` · action `radar.lists.add`
|
|
2823
|
+
* @scope `radar:write`
|
|
2824
|
+
* @danger write
|
|
2825
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2826
|
+
*/
|
|
2827
|
+
add: (body, options) => this.transport.call(environmentOperations["radar.lists.add"], [], body, options),
|
|
2828
|
+
/**
|
|
2829
|
+
* List this environment's Radar allow and deny entries — IPs and CIDR ranges, addresses, mail domains, devices — optionally one list or one kind.
|
|
2830
|
+
*
|
|
2831
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2832
|
+
*
|
|
2833
|
+
* `GET /radar/lists` · action `radar.lists.list`
|
|
2834
|
+
* @scope `radar:read`
|
|
2835
|
+
* @danger read
|
|
2836
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2837
|
+
*/
|
|
2838
|
+
list: (query, options) => this.transport.call(environmentOperations["radar.lists.list"], [], query, options),
|
|
2839
|
+
/** Every item of `radar.lists.list`, fetching pages as the iteration reaches them. */
|
|
2840
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["radar.lists.list"], [], query, options),
|
|
2841
|
+
/**
|
|
2842
|
+
* Remove an entry from this environment's Radar allow or deny list.
|
|
2843
|
+
*
|
|
2844
|
+
* Requires scope `radar:write`. Danger: destructive.
|
|
2845
|
+
*
|
|
2846
|
+
* `DELETE /radar/lists/{id}` · action `radar.lists.remove`
|
|
2847
|
+
* @scope `radar:write`
|
|
2848
|
+
* @danger destructive
|
|
2849
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2850
|
+
*/
|
|
2851
|
+
remove: (id, options) => this.transport.call(environmentOperations["radar.lists.remove"], [id], void 0, options)
|
|
2852
|
+
},
|
|
2853
|
+
mode: {
|
|
2854
|
+
/**
|
|
2855
|
+
* 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.
|
|
2856
|
+
*
|
|
2857
|
+
* Requires scope `radar:manage`. Danger: critical.
|
|
2858
|
+
*
|
|
2859
|
+
* `PUT /radar/mode` · action `radar.mode.set`
|
|
2860
|
+
* @scope `radar:manage`
|
|
2861
|
+
* @danger critical
|
|
2862
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2863
|
+
*/
|
|
2864
|
+
set: (body, options) => this.transport.call(environmentOperations["radar.mode.set"], [], body, options)
|
|
2865
|
+
},
|
|
2866
|
+
rules: {
|
|
2867
|
+
/**
|
|
2868
|
+
* 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.
|
|
2869
|
+
*
|
|
2870
|
+
* Requires scope `radar:write`. Danger: write.
|
|
2871
|
+
*
|
|
2872
|
+
* `POST /radar/rules` · action `radar.rules.create`
|
|
2873
|
+
* @scope `radar:write`
|
|
2874
|
+
* @danger write
|
|
2875
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2876
|
+
*/
|
|
2877
|
+
create: (body, options) => this.transport.call(environmentOperations["radar.rules.create"], [], body, options),
|
|
2878
|
+
/**
|
|
2879
|
+
* Delete a Radar rule. Attempts it decided are decided by the next matching rule, or the built-in rules, from then on.
|
|
2880
|
+
*
|
|
2881
|
+
* Requires scope `radar:write`. Danger: destructive.
|
|
2882
|
+
*
|
|
2883
|
+
* `DELETE /radar/rules/{id}` · action `radar.rules.delete`
|
|
2884
|
+
* @scope `radar:write`
|
|
2885
|
+
* @danger destructive
|
|
2886
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2887
|
+
*/
|
|
2888
|
+
delete: (id, options) => this.transport.call(environmentOperations["radar.rules.delete"], [id], void 0, options),
|
|
2889
|
+
/**
|
|
2890
|
+
* Read one Radar rule: its action, the flows it applies to, its position and its conditions.
|
|
2891
|
+
*
|
|
2892
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2893
|
+
*
|
|
2894
|
+
* `GET /radar/rules/{id}` · action `radar.rules.get`
|
|
2895
|
+
* @scope `radar:read`
|
|
2896
|
+
* @danger read
|
|
2897
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2898
|
+
*/
|
|
2899
|
+
get: (id, options) => this.transport.call(environmentOperations["radar.rules.get"], [id], void 0, options),
|
|
2900
|
+
/**
|
|
2901
|
+
* 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.
|
|
2902
|
+
*
|
|
2903
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2904
|
+
*
|
|
2905
|
+
* `GET /radar/rules` · action `radar.rules.list`
|
|
2906
|
+
* @scope `radar:read`
|
|
2907
|
+
* @danger read
|
|
2908
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2909
|
+
*/
|
|
2910
|
+
list: (query, options) => this.transport.call(environmentOperations["radar.rules.list"], [], query, options),
|
|
2911
|
+
/** Every item of `radar.rules.list`, fetching pages as the iteration reaches them. */
|
|
2912
|
+
listAll: (query, options) => this.transport.paginate(environmentOperations["radar.rules.list"], [], query, options),
|
|
2913
|
+
/**
|
|
2914
|
+
* Set the order Radar rules are evaluated in: `rule_ids` lists every rule of the environment exactly once, first evaluated first.
|
|
2915
|
+
*
|
|
2916
|
+
* Requires scope `radar:write`. Danger: write.
|
|
2917
|
+
*
|
|
2918
|
+
* `PUT /radar/rules/order` · action `radar.rules.reorder`
|
|
2919
|
+
* @scope `radar:write`
|
|
2920
|
+
* @danger write
|
|
2921
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2922
|
+
*/
|
|
2923
|
+
reorder: (body, options) => this.transport.call(environmentOperations["radar.rules.reorder"], [], body, options),
|
|
2924
|
+
/**
|
|
2925
|
+
* Change a Radar rule: its name, description, action, flows, enabled state, position, or (replaced whole) its conditions.
|
|
2926
|
+
*
|
|
2927
|
+
* Requires scope `radar:write`. Danger: write.
|
|
2928
|
+
*
|
|
2929
|
+
* `PATCH /radar/rules/{id}` · action `radar.rules.update`
|
|
2930
|
+
* @scope `radar:write`
|
|
2931
|
+
* @danger write
|
|
2932
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2933
|
+
*/
|
|
2934
|
+
update: (id, body, options) => this.transport.call(environmentOperations["radar.rules.update"], [id], body, options)
|
|
2935
|
+
},
|
|
2936
|
+
settings: {
|
|
2937
|
+
/**
|
|
2938
|
+
* 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.
|
|
2939
|
+
*
|
|
2940
|
+
* Requires scope `radar:read`. Danger: read.
|
|
2941
|
+
*
|
|
2942
|
+
* `GET /radar/settings` · action `radar.settings.get`
|
|
2943
|
+
* @scope `radar:read`
|
|
2944
|
+
* @danger read
|
|
2945
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2946
|
+
*/
|
|
2947
|
+
get: (options) => this.transport.call(environmentOperations["radar.settings.get"], [], void 0, options),
|
|
2948
|
+
/**
|
|
2949
|
+
* 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.
|
|
2950
|
+
*
|
|
2951
|
+
* Requires scope `radar:write`. Danger: write.
|
|
2952
|
+
*
|
|
2953
|
+
* `PATCH /radar/settings` · action `radar.settings.update`
|
|
2954
|
+
* @scope `radar:write`
|
|
2955
|
+
* @danger write
|
|
2956
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2957
|
+
*/
|
|
2958
|
+
update: (body, options) => this.transport.call(environmentOperations["radar.settings.update"], [], body, options)
|
|
2959
|
+
}
|
|
2960
|
+
};
|
|
2383
2961
|
roles = {
|
|
2384
2962
|
/**
|
|
2385
2963
|
* Define a role for one organization, or (organization_id null) for the whole environment, optionally scoped to one app, with its opening permissions.
|
|
@@ -2547,7 +3125,7 @@ var EnvironmentClient = class {
|
|
|
2547
3125
|
*/
|
|
2548
3126
|
inherit: (organizationId, options) => this.transport.call(environmentOperations["signin.policy.inherit"], [organizationId], void 0, options),
|
|
2549
3127
|
/**
|
|
2550
|
-
* Change the authentication policy of the environment baseline
|
|
3128
|
+
* 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
3129
|
*
|
|
2552
3130
|
* Requires scope `signin:write`. Danger: critical.
|
|
2553
3131
|
*
|
|
@@ -2571,6 +3149,30 @@ var EnvironmentClient = class {
|
|
|
2571
3149
|
*/
|
|
2572
3150
|
set: (body, options) => this.transport.call(environmentOperations["signin.self_service_signup.set"], [], body, options)
|
|
2573
3151
|
},
|
|
3152
|
+
sms: {
|
|
3153
|
+
/**
|
|
3154
|
+
* Read the SMS second-factor policy: whether text-message codes are accepted, for which countries, and the administrator rule.
|
|
3155
|
+
*
|
|
3156
|
+
* Requires scope `signin:read`. Danger: read.
|
|
3157
|
+
*
|
|
3158
|
+
* `GET /sign-in/sms` · action `signin.sms.get`
|
|
3159
|
+
* @scope `signin:read`
|
|
3160
|
+
* @danger read
|
|
3161
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3162
|
+
*/
|
|
3163
|
+
get: (options) => this.transport.call(environmentOperations["signin.sms.get"], [], void 0, options),
|
|
3164
|
+
/**
|
|
3165
|
+
* 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.
|
|
3166
|
+
*
|
|
3167
|
+
* Requires scope `signin:write`. Danger: critical.
|
|
3168
|
+
*
|
|
3169
|
+
* `PATCH /sign-in/sms` · action `signin.sms.update`
|
|
3170
|
+
* @scope `signin:write`
|
|
3171
|
+
* @danger critical
|
|
3172
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3173
|
+
*/
|
|
3174
|
+
update: (body, options) => this.transport.call(environmentOperations["signin.sms.update"], [], body, options)
|
|
3175
|
+
},
|
|
2574
3176
|
social: {
|
|
2575
3177
|
/**
|
|
2576
3178
|
* Stop offering a social login provider. People who used it keep their accounts.
|
|
@@ -2584,7 +3186,40 @@ var EnvironmentClient = class {
|
|
|
2584
3186
|
*/
|
|
2585
3187
|
delete: (id, body, options) => this.transport.call(environmentOperations["signin.social.delete"], [id], body, options),
|
|
2586
3188
|
/**
|
|
2587
|
-
*
|
|
3189
|
+
* Turn a social login provider off without removing it. People who used it keep their accounts.
|
|
3190
|
+
*
|
|
3191
|
+
* Requires scope `signin:write`. Danger: critical.
|
|
3192
|
+
*
|
|
3193
|
+
* `POST /sign-in/social-providers/{id}/disable` · action `signin.social.disable`
|
|
3194
|
+
* @scope `signin:write`
|
|
3195
|
+
* @danger critical
|
|
3196
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3197
|
+
*/
|
|
3198
|
+
disable: (id, body, options) => this.transport.call(environmentOperations["signin.social.disable"], [id], body, options),
|
|
3199
|
+
/**
|
|
3200
|
+
* Turn a social login provider that was turned off back on, with the credentials it already has.
|
|
3201
|
+
*
|
|
3202
|
+
* Requires scope `signin:write`. Danger: write.
|
|
3203
|
+
*
|
|
3204
|
+
* `POST /sign-in/social-providers/{id}/enable` · action `signin.social.enable`
|
|
3205
|
+
* @scope `signin:write`
|
|
3206
|
+
* @danger write
|
|
3207
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3208
|
+
*/
|
|
3209
|
+
enable: (id, body, options) => this.transport.call(environmentOperations["signin.social.enable"], [id], body, options),
|
|
3210
|
+
/**
|
|
3211
|
+
* Turn one of the environment's social login providers off (or back on) for one organization's sign-in page.
|
|
3212
|
+
*
|
|
3213
|
+
* Requires scope `signin:write`. Danger: write.
|
|
3214
|
+
*
|
|
3215
|
+
* `PUT /sign-in/social-providers/inherited/{provider}` · action `signin.social.inherit`
|
|
3216
|
+
* @scope `signin:write`
|
|
3217
|
+
* @danger write
|
|
3218
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3219
|
+
*/
|
|
3220
|
+
inherit: (provider, body, options) => this.transport.call(environmentOperations["signin.social.inherit"], [provider], body, options),
|
|
3221
|
+
/**
|
|
3222
|
+
* List the social login providers (Google, GitHub, Apple…) set up in this environment — the environment's own and organizations' — optionally for one organization.
|
|
2588
3223
|
*
|
|
2589
3224
|
* Requires scope `signin:read`. Danger: read.
|
|
2590
3225
|
*
|
|
@@ -2597,7 +3232,18 @@ var EnvironmentClient = class {
|
|
|
2597
3232
|
/** Every item of `signin.social.list`, fetching pages as the iteration reaches them. */
|
|
2598
3233
|
listAll: (query, options) => this.transport.paginate(environmentOperations["signin.social.list"], [], query, options),
|
|
2599
3234
|
/**
|
|
2600
|
-
*
|
|
3235
|
+
* 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.
|
|
3236
|
+
*
|
|
3237
|
+
* Requires scope `signin:read`. Danger: read.
|
|
3238
|
+
*
|
|
3239
|
+
* `GET /sign-in/social-providers/offered` · action `signin.social.offered`
|
|
3240
|
+
* @scope `signin:read`
|
|
3241
|
+
* @danger read
|
|
3242
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3243
|
+
*/
|
|
3244
|
+
offered: (query, options) => this.transport.call(environmentOperations["signin.social.offered"], [], query, options),
|
|
3245
|
+
/**
|
|
3246
|
+
* 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
3247
|
*
|
|
2602
3248
|
* Requires scope `signin:write`. Danger: critical.
|
|
2603
3249
|
*
|
|
@@ -2606,7 +3252,18 @@ var EnvironmentClient = class {
|
|
|
2606
3252
|
* @danger critical
|
|
2607
3253
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
2608
3254
|
*/
|
|
2609
|
-
set: (body, options) => this.transport.call(environmentOperations["signin.social.set"], [], body, options)
|
|
3255
|
+
set: (body, options) => this.transport.call(environmentOperations["signin.social.set"], [], body, options),
|
|
3256
|
+
/**
|
|
3257
|
+
* Change a social login provider's client credentials, provider values or extra scopes. Secrets left out keep the ones on file.
|
|
3258
|
+
*
|
|
3259
|
+
* Requires scope `signin:write`. Danger: critical.
|
|
3260
|
+
*
|
|
3261
|
+
* `PATCH /sign-in/social-providers/{id}` · action `signin.social.update`
|
|
3262
|
+
* @scope `signin:write`
|
|
3263
|
+
* @danger critical
|
|
3264
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3265
|
+
*/
|
|
3266
|
+
update: (id, body, options) => this.transport.call(environmentOperations["signin.social.update"], [id], body, options)
|
|
2610
3267
|
}
|
|
2611
3268
|
};
|
|
2612
3269
|
sodPolicies = {
|
|
@@ -3160,7 +3817,20 @@ var EnvironmentClient = class {
|
|
|
3160
3817
|
* @danger critical
|
|
3161
3818
|
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3162
3819
|
*/
|
|
3163
|
-
reset: (id, options) => this.transport.call(environmentOperations["users.mfa.reset"], [id], void 0, options)
|
|
3820
|
+
reset: (id, options) => this.transport.call(environmentOperations["users.mfa.reset"], [id], void 0, options),
|
|
3821
|
+
sms: {
|
|
3822
|
+
/**
|
|
3823
|
+
* Remove a user's phone number for text-message sign-in codes. Their other factors and recovery codes stay.
|
|
3824
|
+
*
|
|
3825
|
+
* Requires scope `users:write`. Danger: critical.
|
|
3826
|
+
*
|
|
3827
|
+
* `DELETE /users/{id}/mfa/sms` · action `users.mfa.sms.remove`
|
|
3828
|
+
* @scope `users:write`
|
|
3829
|
+
* @danger critical
|
|
3830
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
3831
|
+
*/
|
|
3832
|
+
remove: (id, options) => this.transport.call(environmentOperations["users.mfa.sms.remove"], [id], void 0, options)
|
|
3833
|
+
}
|
|
3164
3834
|
},
|
|
3165
3835
|
passwordReset: {
|
|
3166
3836
|
/**
|
|
@@ -3889,8 +4559,10 @@ var accountOperations = {
|
|
|
3889
4559
|
"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
4560
|
"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 },
|
|
3891
4561
|
"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 },
|
|
4562
|
+
"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
4563
|
"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
4564
|
"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 },
|
|
4565
|
+
"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
4566
|
"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
4567
|
"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
4568
|
"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 },
|
|
@@ -3966,6 +4638,21 @@ var AccountClient = class {
|
|
|
3966
4638
|
*/
|
|
3967
4639
|
remove: (deviceId, options) => this.transport.call(accountOperations["account.devices.remove"], [deviceId], void 0, options)
|
|
3968
4640
|
};
|
|
4641
|
+
mfa = {
|
|
4642
|
+
sms: {
|
|
4643
|
+
/**
|
|
4644
|
+
* Remove your phone number for text-message sign-in codes.
|
|
4645
|
+
*
|
|
4646
|
+
* 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.
|
|
4647
|
+
*
|
|
4648
|
+
* `DELETE /me/mfa/sms` · action `account.mfa.sms.remove`
|
|
4649
|
+
* @scope `account:sign_in:write`
|
|
4650
|
+
* @danger critical
|
|
4651
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4652
|
+
*/
|
|
4653
|
+
remove: (options) => this.transport.call(accountOperations["account.mfa.sms.remove"], [], void 0, options)
|
|
4654
|
+
}
|
|
4655
|
+
};
|
|
3969
4656
|
organizations = {
|
|
3970
4657
|
/**
|
|
3971
4658
|
* Leave one of your own organizations. The last owner cannot leave — transfer ownership first.
|
|
@@ -3992,6 +4679,19 @@ var AccountClient = class {
|
|
|
3992
4679
|
*/
|
|
3993
4680
|
remove: (passkeyId, options) => this.transport.call(accountOperations["account.passkeys.remove"], [passkeyId], void 0, options)
|
|
3994
4681
|
};
|
|
4682
|
+
pipes = {
|
|
4683
|
+
/**
|
|
4684
|
+
* Disconnect one of your connected services, revoking the access you gave it.
|
|
4685
|
+
*
|
|
4686
|
+
* 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.
|
|
4687
|
+
*
|
|
4688
|
+
* `DELETE /me/pipes/{provider}` · action `account.pipes.disconnect`
|
|
4689
|
+
* @scope `account:pipes:write`
|
|
4690
|
+
* @danger destructive
|
|
4691
|
+
* May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
|
|
4692
|
+
*/
|
|
4693
|
+
disconnect: (provider, options) => this.transport.call(accountOperations["account.pipes.disconnect"], [provider], void 0, options)
|
|
4694
|
+
};
|
|
3995
4695
|
profile = {
|
|
3996
4696
|
/**
|
|
3997
4697
|
* Change the display name on your own account.
|
|
@@ -4330,6 +5030,25 @@ async function verifyAuditLogChain(client, query, options = {}) {
|
|
|
4330
5030
|
return verifyAuditChain(client.auditLogs.events.listAll({ ...query, order: "asc" }), options);
|
|
4331
5031
|
}
|
|
4332
5032
|
|
|
4333
|
-
|
|
5033
|
+
// src/management/fga.ts
|
|
5034
|
+
function fgaTuple(tuple) {
|
|
5035
|
+
const name = (value, what) => {
|
|
5036
|
+
if (value === "" || /[\s#@:]/.test(value)) {
|
|
5037
|
+
throw new TypeError(`An FGA ${what} cannot be empty or contain whitespace, '#', '@' or ':': ${JSON.stringify(value)}`);
|
|
5038
|
+
}
|
|
5039
|
+
return value;
|
|
5040
|
+
};
|
|
5041
|
+
const id = (value, what) => {
|
|
5042
|
+
if (value === "" || /[\s#@]/.test(value)) {
|
|
5043
|
+
throw new TypeError(`An FGA ${what} cannot be empty or contain whitespace, '#' or '@': ${JSON.stringify(value)}`);
|
|
5044
|
+
}
|
|
5045
|
+
return value;
|
|
5046
|
+
};
|
|
5047
|
+
const subject = `${name(tuple.subject.type, "subject type")}:${id(tuple.subject.id, "subject id")}`;
|
|
5048
|
+
const userset = tuple.subject.relation ? `#${name(tuple.subject.relation, "subject relation")}` : "";
|
|
5049
|
+
return `${name(tuple.resource_type, "resource type")}:${id(tuple.resource_id, "resource id")}#${name(tuple.relation, "relation")}@${subject}${userset}`;
|
|
5050
|
+
}
|
|
5051
|
+
|
|
5052
|
+
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
5053
|
//# sourceMappingURL=management.js.map
|
|
4335
5054
|
//# sourceMappingURL=management.js.map
|