@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.
@@ -610,12 +610,16 @@ var environmentOperations = {
610
610
  "branding.whitelabel.set": { action: "branding.whitelabel.set", operationId: "branding_whitelabel_set", method: "PUT", path: "/branding/whitelabel", pathParams: [], scope: "branding:write", danger: "write", approval: true, body: true, pagination: null },
611
611
  "directories.connect": { action: "directories.connect", operationId: "directories_connect", method: "POST", path: "/directories/connect", pathParams: [], scope: "directory_sync:write", danger: "critical", approval: true, body: true, pagination: null },
612
612
  "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 },
613
+ "directories.credentials.replace": { action: "directories.credentials.replace", operationId: "directories_credentials_replace", method: "PUT", path: "/directories/{id}/credentials", pathParams: ["id"], scope: "directory_sync:write", danger: "critical", approval: true, body: true, pagination: null },
613
614
  "directories.delete": { action: "directories.delete", operationId: "directories_delete", method: "DELETE", path: "/directories/{id}", pathParams: ["id"], scope: "directory_sync:write", danger: "destructive", approval: true, body: true, pagination: null },
614
615
  "directories.get": { action: "directories.get", operationId: "directories_get", method: "GET", path: "/directories/{id}", pathParams: ["id"], scope: "directory_sync:read", danger: "read", approval: true, body: false, pagination: null },
615
616
  "directories.groups.list": { action: "directories.groups.list", operationId: "directories_groups_list", method: "GET", path: "/directories/{id}/groups", pathParams: ["id"], scope: "directory_sync:read", danger: "read", approval: true, body: false, pagination: "cursor" },
616
617
  "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 },
618
+ "directories.hris.connect": { action: "directories.hris.connect", operationId: "directories_hris_connect", method: "POST", path: "/directories/hris", pathParams: [], scope: "directory_sync:write", danger: "critical", approval: true, body: true, pagination: null },
617
619
  "directories.list": { action: "directories.list", operationId: "directories_list", method: "GET", path: "/directories", pathParams: [], scope: "directory_sync:read", danger: "read", approval: true, body: false, pagination: "cursor" },
618
620
  "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 },
621
+ "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 },
622
+ "directories.sync_settings.update": { action: "directories.sync_settings.update", operationId: "directories_sync_settings_update", method: "PATCH", path: "/directories/{id}/sync-settings", pathParams: ["id"], scope: "directory_sync:write", danger: "write", approval: true, body: true, pagination: null },
619
623
  "directories.token.rotate": { action: "directories.token.rotate", operationId: "directories_token_rotate", method: "POST", path: "/directories/{id}/rotate", pathParams: ["id"], scope: "directory_sync:write", danger: "critical", approval: true, body: true, pagination: null },
620
624
  "directories.update": { action: "directories.update", operationId: "directories_update", method: "PATCH", path: "/directories/{id}", pathParams: ["id"], scope: "directory_sync:write", danger: "write", approval: true, body: true, pagination: null },
621
625
  "domains.add": { action: "domains.add", operationId: "domains_add", method: "POST", path: "/domains", pathParams: [], scope: "domains:write", danger: "write", approval: true, body: true, pagination: null },
@@ -623,6 +627,22 @@ var environmentOperations = {
623
627
  "domains.remove": { action: "domains.remove", operationId: "domains_remove", method: "DELETE", path: "/domains", pathParams: [], scope: "domains:write", danger: "destructive", approval: true, body: false, pagination: null },
624
628
  "domains.verify": { action: "domains.verify", operationId: "domains_verify", method: "POST", path: "/domains/verify", pathParams: [], scope: "domains:write", danger: "write", approval: true, body: false, pagination: null },
625
629
  "events.list": { action: "events.list", operationId: "events_list", method: "GET", path: "/events", pathParams: [], scope: "events:read", danger: "read", approval: true, body: false, pagination: "cursor" },
630
+ "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 },
631
+ "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 },
632
+ "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 },
633
+ "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 },
634
+ "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" },
635
+ "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 },
636
+ "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 },
637
+ "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 },
638
+ "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" },
639
+ "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 },
640
+ "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 },
641
+ "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 },
642
+ "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" },
643
+ "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 },
644
+ "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" },
645
+ "fga.tuples.write": { action: "fga.tuples.write", operationId: "fga_tuples_write", method: "POST", path: "/fga/tuples", pathParams: [], scope: "fga:write", danger: "write", approval: true, body: true, pagination: null },
626
646
  "frontend_keys.create": { action: "frontend_keys.create", operationId: "frontend_keys_create", method: "POST", path: "/frontend-keys", pathParams: [], scope: "frontend_keys:write", danger: "write", approval: true, body: true, pagination: null },
627
647
  "frontend_keys.list": { action: "frontend_keys.list", operationId: "frontend_keys_list", method: "GET", path: "/frontend-keys", pathParams: [], scope: "frontend_keys:read", danger: "read", approval: true, body: false, pagination: "cursor" },
628
648
  "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 },
@@ -677,11 +697,34 @@ var environmentOperations = {
677
697
  "permissions.delete": { action: "permissions.delete", operationId: "permissions_delete", method: "DELETE", path: "/permissions/{id}", pathParams: ["id"], scope: "role_definitions:write", danger: "destructive", approval: true, body: false, pagination: null },
678
698
  "permissions.list": { action: "permissions.list", operationId: "permissions_list", method: "GET", path: "/permissions", pathParams: [], scope: "roles:read", danger: "read", approval: true, body: false, pagination: "cursor" },
679
699
  "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 },
700
+ "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 },
701
+ "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" },
702
+ "pipes.create": { action: "pipes.create", operationId: "pipes_create", method: "POST", path: "/pipes", pathParams: [], scope: "pipes:write", danger: "write", approval: true, body: true, pagination: null },
703
+ "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 },
704
+ "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 },
705
+ "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 },
706
+ "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 },
707
+ "pipes.list": { action: "pipes.list", operationId: "pipes_list", method: "GET", path: "/pipes", pathParams: [], scope: "pipes:read", danger: "read", approval: true, body: false, pagination: "cursor" },
708
+ "pipes.update": { action: "pipes.update", operationId: "pipes_update", method: "PATCH", path: "/pipes/{id}", pathParams: ["id"], scope: "pipes:write", danger: "write", approval: true, body: true, pagination: null },
680
709
  "provisioning.targets.create": { action: "provisioning.targets.create", operationId: "provisioning_targets_create", method: "POST", path: "/provisioning-targets", pathParams: [], scope: "provisioning:write", danger: "critical", approval: true, body: true, pagination: null },
681
710
  "provisioning.targets.delete": { action: "provisioning.targets.delete", operationId: "provisioning_targets_delete", method: "DELETE", path: "/provisioning-targets/{id}", pathParams: ["id"], scope: "provisioning:write", danger: "destructive", approval: true, body: true, pagination: null },
682
711
  "provisioning.targets.get": { action: "provisioning.targets.get", operationId: "provisioning_targets_get", method: "GET", path: "/provisioning-targets/{id}", pathParams: ["id"], scope: "provisioning:read", danger: "read", approval: true, body: false, pagination: null },
683
712
  "provisioning.targets.list": { action: "provisioning.targets.list", operationId: "provisioning_targets_list", method: "GET", path: "/provisioning-targets", pathParams: [], scope: "provisioning:read", danger: "read", approval: true, body: false, pagination: "cursor" },
684
713
  "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 },
714
+ "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 },
715
+ "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" },
716
+ "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 },
717
+ "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" },
718
+ "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 },
719
+ "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 },
720
+ "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 },
721
+ "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 },
722
+ "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 },
723
+ "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" },
724
+ "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 },
725
+ "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 },
726
+ "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 },
727
+ "radar.settings.update": { action: "radar.settings.update", operationId: "radar_settings_update", method: "PATCH", path: "/radar/settings", pathParams: [], scope: "radar:write", danger: "write", approval: true, body: true, pagination: null },
685
728
  "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 },
686
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 },
687
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 },
@@ -698,9 +741,16 @@ var environmentOperations = {
698
741
  "signin.policy.inherit": { action: "signin.policy.inherit", operationId: "signin_policy_inherit", method: "DELETE", path: "/sign-in/policy/organizations/{organization_id}", pathParams: ["organization_id"], scope: "signin:write", danger: "critical", approval: true, body: false, pagination: null },
699
742
  "signin.policy.update": { action: "signin.policy.update", operationId: "signin_policy_update", method: "PATCH", path: "/sign-in/policy", pathParams: [], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
700
743
  "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 },
744
+ "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 },
745
+ "signin.sms.update": { action: "signin.sms.update", operationId: "signin_sms_update", method: "PATCH", path: "/sign-in/sms", pathParams: [], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
701
746
  "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 },
747
+ "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 },
748
+ "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 },
749
+ "signin.social.inherit": { action: "signin.social.inherit", operationId: "signin_social_inherit", method: "PUT", path: "/sign-in/social-providers/inherited/{provider}", pathParams: ["provider"], scope: "signin:write", danger: "write", approval: true, body: true, pagination: null },
702
750
  "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" },
751
+ "signin.social.offered": { action: "signin.social.offered", operationId: "signin_social_offered", method: "GET", path: "/sign-in/social-providers/offered", pathParams: [], scope: "signin:read", danger: "read", approval: true, body: false, pagination: null },
703
752
  "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 },
753
+ "signin.social.update": { action: "signin.social.update", operationId: "signin_social_update", method: "PATCH", path: "/sign-in/social-providers/{id}", pathParams: ["id"], scope: "signin:write", danger: "critical", approval: true, body: true, pagination: null },
704
754
  "sod_policies.create": { action: "sod_policies.create", operationId: "sod_policies_create", method: "POST", path: "/sod-policies", pathParams: [], scope: "governance:write", danger: "write", approval: true, body: true, pagination: null },
705
755
  "sod_policies.delete": { action: "sod_policies.delete", operationId: "sod_policies_delete", method: "DELETE", path: "/sod-policies/{id}", pathParams: ["id"], scope: "governance:write", danger: "critical", approval: true, body: true, pagination: null },
706
756
  "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 },
@@ -742,6 +792,7 @@ var environmentOperations = {
742
792
  "users.get": { action: "users.get", operationId: "users_get", method: "GET", path: "/users/{id}", pathParams: ["id"], scope: "users:read", danger: "read", approval: true, body: false, pagination: null },
743
793
  "users.list": { action: "users.list", operationId: "users_list", method: "GET", path: "/users", pathParams: [], scope: "users:read", danger: "read", approval: true, body: false, pagination: "cursor" },
744
794
  "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 },
795
+ "users.mfa.sms.remove": { action: "users.mfa.sms.remove", operationId: "users_mfa_sms_remove", method: "DELETE", path: "/users/{id}/mfa/sms", pathParams: ["id"], scope: "users:write", danger: "critical", approval: true, body: false, pagination: null },
745
796
  "users.password_reset.send": { action: "users.password_reset.send", operationId: "users_password_reset_send", method: "POST", path: "/users/{id}/password-reset", pathParams: ["id"], scope: "users:write", danger: "write", approval: true, body: false, pagination: null },
746
797
  "users.password.set": { action: "users.password.set", operationId: "users_password_set", method: "POST", path: "/users/{id}/password", pathParams: ["id"], scope: "users:write", danger: "critical", approval: true, body: true, pagination: null },
747
798
  "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 },
@@ -1399,7 +1450,7 @@ var EnvironmentClient = class {
1399
1450
  */
1400
1451
  get: (query, options) => this.transport.call(environmentOperations["branding.appearance.get"], [], query, options),
1401
1452
  /**
1402
- * Set the hosted sign-in theme (preset, colours, corners, type, logo) for the environment default or one organization.
1453
+ * Set the hosted sign-in theme (preset, colours, corners, type, uploaded logo and favicon) for the environment default or one organization.
1403
1454
  *
1404
1455
  * Requires scope `branding:write`. Danger: write.
1405
1456
  *
@@ -1493,6 +1544,17 @@ var EnvironmentClient = class {
1493
1544
  list: (query, options) => this.transport.call(environmentOperations["directories.list"], [], query, options),
1494
1545
  /** Every item of `directories.list`, fetching pages as the iteration reaches them. */
1495
1546
  listAll: (query, options) => this.transport.paginate(environmentOperations["directories.list"], [], query, options),
1547
+ /**
1548
+ * 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.
1549
+ *
1550
+ * Requires scope `directory_sync:write`. Danger: write.
1551
+ *
1552
+ * `POST /directories/{id}/sync` · action `directories.sync`
1553
+ * @scope `directory_sync:write`
1554
+ * @danger write
1555
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1556
+ */
1557
+ sync: (id, body, options) => this.transport.call(environmentOperations["directories.sync"], [id], body, options),
1496
1558
  /**
1497
1559
  * Rename an inbound directory.
1498
1560
  *
@@ -1504,6 +1566,19 @@ var EnvironmentClient = class {
1504
1566
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1505
1567
  */
1506
1568
  update: (id, body, options) => this.transport.call(environmentOperations["directories.update"], [id], body, options),
1569
+ credentials: {
1570
+ /**
1571
+ * Replace a pull directory's provider credentials, verifying the new ones first. Write-only; never returned.
1572
+ *
1573
+ * Requires scope `directory_sync:write`. Danger: critical.
1574
+ *
1575
+ * `PUT /directories/{id}/credentials` · action `directories.credentials.replace`
1576
+ * @scope `directory_sync:write`
1577
+ * @danger critical
1578
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1579
+ */
1580
+ replace: (id, body, options) => this.transport.call(environmentOperations["directories.credentials.replace"], [id], body, options)
1581
+ },
1507
1582
  groups: {
1508
1583
  /**
1509
1584
  * List the groups a directory has synced, with the role ids each group is mapped onto.
@@ -1530,6 +1605,19 @@ var EnvironmentClient = class {
1530
1605
  */
1531
1606
  map: (id, body, options) => this.transport.call(environmentOperations["directories.groups.map"], [id], body, options)
1532
1607
  },
1608
+ hris: {
1609
+ /**
1610
+ * 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.
1611
+ *
1612
+ * Requires scope `directory_sync:write`. Danger: critical.
1613
+ *
1614
+ * `POST /directories/hris` · action `directories.hris.connect`
1615
+ * @scope `directory_sync:write`
1616
+ * @danger critical
1617
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1618
+ */
1619
+ connect: (body, options) => this.transport.call(environmentOperations["directories.hris.connect"], [], body, options)
1620
+ },
1533
1621
  status: {
1534
1622
  /**
1535
1623
  * Pause or resume an inbound directory's provisioning.
@@ -1543,6 +1631,19 @@ var EnvironmentClient = class {
1543
1631
  */
1544
1632
  set: (id, body, options) => this.transport.call(environmentOperations["directories.status.set"], [id], body, options)
1545
1633
  },
1634
+ syncSettings: {
1635
+ /**
1636
+ * Set how often a pull directory syncs, and for an HR system which of its fields pass through onto people.
1637
+ *
1638
+ * Requires scope `directory_sync:write`. Danger: write.
1639
+ *
1640
+ * `PATCH /directories/{id}/sync-settings` · action `directories.sync_settings.update`
1641
+ * @scope `directory_sync:write`
1642
+ * @danger write
1643
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1644
+ */
1645
+ update: (id, body, options) => this.transport.call(environmentOperations["directories.sync_settings.update"], [id], body, options)
1646
+ },
1546
1647
  token: {
1547
1648
  /**
1548
1649
  * Issue a new bearer token for a SCIM directory, returned once. The old token stops working immediately.
@@ -1618,6 +1719,202 @@ var EnvironmentClient = class {
1618
1719
  /** Every item of `events.list`, fetching pages as the iteration reaches them. */
1619
1720
  listAll: (query, options) => this.transport.paginate(environmentOperations["events.list"], [], query, options)
1620
1721
  };
1722
+ featureFlags = {
1723
+ /**
1724
+ * Define a feature flag: a key apps ask about, its default, and who it is on for — named users, named organizations, a rollout percentage.
1725
+ *
1726
+ * Requires scope `feature_flags:write`. Danger: write.
1727
+ *
1728
+ * `POST /feature-flags` · action `feature_flags.create`
1729
+ * @scope `feature_flags:write`
1730
+ * @danger write
1731
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1732
+ */
1733
+ create: (body, options) => this.transport.call(environmentOperations["feature_flags.create"], [], body, options),
1734
+ /**
1735
+ * Delete a feature flag and its rules. Its key evaluates to off from now on; tokens already minted keep it until they expire.
1736
+ *
1737
+ * Requires scope `feature_flags:write`. Danger: destructive.
1738
+ *
1739
+ * `DELETE /feature-flags/{id}` · action `feature_flags.delete`
1740
+ * @scope `feature_flags:write`
1741
+ * @danger destructive
1742
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1743
+ */
1744
+ delete: (id, options) => this.transport.call(environmentOperations["feature_flags.delete"], [id], void 0, options),
1745
+ /**
1746
+ * 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.
1747
+ *
1748
+ * Requires scope `feature_flags:read`. Danger: read.
1749
+ *
1750
+ * `GET /feature-flags/evaluate` · action `feature_flags.evaluate`
1751
+ * @scope `feature_flags:read`
1752
+ * @danger read
1753
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1754
+ */
1755
+ evaluate: (query, options) => this.transport.call(environmentOperations["feature_flags.evaluate"], [], query, options),
1756
+ /**
1757
+ * Read one feature flag: its default, whether it is switched on, and every user, organization and rollout rule.
1758
+ *
1759
+ * Requires scope `feature_flags:read`. Danger: read.
1760
+ *
1761
+ * `GET /feature-flags/{id}` · action `feature_flags.get`
1762
+ * @scope `feature_flags:read`
1763
+ * @danger read
1764
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1765
+ */
1766
+ get: (id, options) => this.transport.call(environmentOperations["feature_flags.get"], [id], void 0, options),
1767
+ /**
1768
+ * List this environment's feature flags with their default, kill switch and targeting rules.
1769
+ *
1770
+ * Requires scope `feature_flags:read`. Danger: read.
1771
+ *
1772
+ * `GET /feature-flags` · action `feature_flags.list`
1773
+ * @scope `feature_flags:read`
1774
+ * @danger read
1775
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1776
+ */
1777
+ list: (query, options) => this.transport.call(environmentOperations["feature_flags.list"], [], query, options),
1778
+ /** Every item of `feature_flags.list`, fetching pages as the iteration reaches them. */
1779
+ listAll: (query, options) => this.transport.paginate(environmentOperations["feature_flags.list"], [], query, options),
1780
+ /**
1781
+ * Change a feature flag: switch it on or off for everyone, change its default, or replace its user rules, organization rules or rollout percentage.
1782
+ *
1783
+ * Requires scope `feature_flags:write`. Danger: write.
1784
+ *
1785
+ * `PATCH /feature-flags/{id}` · action `feature_flags.update`
1786
+ * @scope `feature_flags:write`
1787
+ * @danger write
1788
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1789
+ */
1790
+ update: (id, body, options) => this.transport.call(environmentOperations["feature_flags.update"], [id], body, options)
1791
+ };
1792
+ fga = {
1793
+ /**
1794
+ * 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.
1795
+ *
1796
+ * Requires scope `fga:read`. Danger: read.
1797
+ *
1798
+ * `GET /fga/check` · action `fga.check`
1799
+ * @scope `fga:read`
1800
+ * @danger read
1801
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1802
+ */
1803
+ check: (query, options) => this.transport.call(environmentOperations["fga.check"], [], query, options),
1804
+ /**
1805
+ * 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.
1806
+ *
1807
+ * Requires scope `fga:read`. Danger: read.
1808
+ *
1809
+ * `GET /fga/check/batch` · action `fga.check_batch`
1810
+ * @scope `fga:read`
1811
+ * @danger read
1812
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1813
+ */
1814
+ checkBatch: (query, options) => this.transport.call(environmentOperations["fga.check_batch"], [], query, options),
1815
+ resources: {
1816
+ /**
1817
+ * 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.
1818
+ *
1819
+ * Requires scope `fga:read`. Danger: read.
1820
+ *
1821
+ * `GET /fga/resources` · action `fga.resources.list`
1822
+ * @scope `fga:read`
1823
+ * @danger read
1824
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1825
+ */
1826
+ list: (query, options) => this.transport.call(environmentOperations["fga.resources.list"], [], query, options),
1827
+ /** Every item of `fga.resources.list`, fetching pages as the iteration reaches them. */
1828
+ listAll: (query, options) => this.transport.paginate(environmentOperations["fga.resources.list"], [], query, options)
1829
+ },
1830
+ schema: {
1831
+ /**
1832
+ * Read this environment's fine-grained authorization schema: the source text, its parsed types and relations, its version, and the current consistency token.
1833
+ *
1834
+ * Requires scope `fga:read`. Danger: read.
1835
+ *
1836
+ * `GET /fga/schema` · action `fga.schema.get`
1837
+ * @scope `fga:read`
1838
+ * @danger read
1839
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1840
+ */
1841
+ get: (options) => this.transport.call(environmentOperations["fga.schema.get"], [], void 0, options),
1842
+ /**
1843
+ * 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.
1844
+ *
1845
+ * Requires scope `fga:schema`. Danger: critical.
1846
+ *
1847
+ * `PUT /fga/schema` · action `fga.schema.update`
1848
+ * @scope `fga:schema`
1849
+ * @danger critical
1850
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1851
+ */
1852
+ update: (body, options) => this.transport.call(environmentOperations["fga.schema.update"], [], body, options),
1853
+ /**
1854
+ * Check a fine-grained authorization schema without saving it: every error by line, or the parsed types and canonical text.
1855
+ *
1856
+ * Requires scope `fga:read`. Danger: read.
1857
+ *
1858
+ * `GET /fga/schema/validate` · action `fga.schema.validate`
1859
+ * @scope `fga:read`
1860
+ * @danger read
1861
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1862
+ */
1863
+ validate: (query, options) => this.transport.call(environmentOperations["fga.schema.validate"], [], query, options)
1864
+ },
1865
+ subjects: {
1866
+ /**
1867
+ * 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.
1868
+ *
1869
+ * Requires scope `fga:read`. Danger: read.
1870
+ *
1871
+ * `GET /fga/subjects` · action `fga.subjects.list`
1872
+ * @scope `fga:read`
1873
+ * @danger read
1874
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1875
+ */
1876
+ list: (query, options) => this.transport.call(environmentOperations["fga.subjects.list"], [], query, options),
1877
+ /** Every item of `fga.subjects.list`, fetching pages as the iteration reaches them. */
1878
+ listAll: (query, options) => this.transport.paginate(environmentOperations["fga.subjects.list"], [], query, options)
1879
+ },
1880
+ tuples: {
1881
+ /**
1882
+ * Delete 1–100 relationship tuples in one atomic batch. Revokes the access they granted, and everything inherited through them, at once.
1883
+ *
1884
+ * Requires scope `fga:write`. Danger: destructive.
1885
+ *
1886
+ * `POST /fga/tuples/delete` · action `fga.tuples.delete`
1887
+ * @scope `fga:write`
1888
+ * @danger destructive
1889
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1890
+ */
1891
+ delete: (body, options) => this.transport.call(environmentOperations["fga.tuples.delete"], [], body, options),
1892
+ /**
1893
+ * List stored relationship tuples oldest first, filtered by resource type and id, relation and subject; pass next_cursor as after to page.
1894
+ *
1895
+ * Requires scope `fga:read`. Danger: read.
1896
+ *
1897
+ * `GET /fga/tuples` · action `fga.tuples.list`
1898
+ * @scope `fga:read`
1899
+ * @danger read
1900
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1901
+ */
1902
+ list: (query, options) => this.transport.call(environmentOperations["fga.tuples.list"], [], query, options),
1903
+ /** Every item of `fga.tuples.list`, fetching pages as the iteration reaches them. */
1904
+ listAll: (query, options) => this.transport.paginate(environmentOperations["fga.tuples.list"], [], query, options),
1905
+ /**
1906
+ * 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.
1907
+ *
1908
+ * Requires scope `fga:write`. Danger: write.
1909
+ *
1910
+ * `POST /fga/tuples` · action `fga.tuples.write`
1911
+ * @scope `fga:write`
1912
+ * @danger write
1913
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
1914
+ */
1915
+ write: (body, options) => this.transport.call(environmentOperations["fga.tuples.write"], [], body, options)
1916
+ }
1917
+ };
1621
1918
  frontendKeys = {
1622
1919
  /**
1623
1920
  * Create a publishable frontend key for a browser app, usable only from the origins listed. The key is public by design.
@@ -2326,6 +2623,115 @@ var EnvironmentClient = class {
2326
2623
  */
2327
2624
  update: (id, body, options) => this.transport.call(environmentOperations["permissions.update"], [id], body, options)
2328
2625
  };
2626
+ pipes = {
2627
+ /**
2628
+ * 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.
2629
+ *
2630
+ * Requires scope `pipes:write`. Danger: write.
2631
+ *
2632
+ * `POST /pipes` · action `pipes.create`
2633
+ * @scope `pipes:write`
2634
+ * @danger write
2635
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2636
+ */
2637
+ create: (body, options) => this.transport.call(environmentOperations["pipes.create"], [], body, options),
2638
+ /**
2639
+ * Remove a pipe and every connection through it. Their tokens are revoked here, not at the provider — disconnect people first if that matters.
2640
+ *
2641
+ * Requires scope `pipes:write`. Danger: destructive.
2642
+ *
2643
+ * `DELETE /pipes/{id}` · action `pipes.delete`
2644
+ * @scope `pipes:write`
2645
+ * @danger destructive
2646
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2647
+ */
2648
+ delete: (id, options) => this.transport.call(environmentOperations["pipes.delete"], [id], void 0, options),
2649
+ /**
2650
+ * Show one pipe: its provider, OAuth client id, scopes, the redirect URI to register at the provider, and the apps granted its tokens.
2651
+ *
2652
+ * Requires scope `pipes:read`. Danger: read.
2653
+ *
2654
+ * `GET /pipes/{id}` · action `pipes.get`
2655
+ * @scope `pipes:read`
2656
+ * @danger read
2657
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2658
+ */
2659
+ get: (id, options) => this.transport.call(environmentOperations["pipes.get"], [id], void 0, options),
2660
+ /**
2661
+ * 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.
2662
+ *
2663
+ * Requires scope `pipes:read`. Danger: read.
2664
+ *
2665
+ * `GET /pipes` · action `pipes.list`
2666
+ * @scope `pipes:read`
2667
+ * @danger read
2668
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2669
+ */
2670
+ list: (query, options) => this.transport.call(environmentOperations["pipes.list"], [], query, options),
2671
+ /** Every item of `pipes.list`, fetching pages as the iteration reaches them. */
2672
+ listAll: (query, options) => this.transport.paginate(environmentOperations["pipes.list"], [], query, options),
2673
+ /**
2674
+ * Change a pipe — client id, client secret (sealed), scopes, parameters, or whether it is enabled. Only what is sent changes.
2675
+ *
2676
+ * Requires scope `pipes:write`. Danger: write.
2677
+ *
2678
+ * `PATCH /pipes/{id}` · action `pipes.update`
2679
+ * @scope `pipes:write`
2680
+ * @danger write
2681
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2682
+ */
2683
+ update: (id, body, options) => this.transport.call(environmentOperations["pipes.update"], [id], body, options),
2684
+ connections: {
2685
+ /**
2686
+ * Disconnect a person's connected account: revoke it at the provider where supported, revoke its tokens here, and forget it.
2687
+ *
2688
+ * Requires scope `pipes:write`. Danger: destructive.
2689
+ *
2690
+ * `DELETE /pipes/{id}/connections/{connection_id}` · action `pipes.connections.delete`
2691
+ * @scope `pipes:write`
2692
+ * @danger destructive
2693
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2694
+ */
2695
+ delete: (id, connectionId, options) => this.transport.call(environmentOperations["pipes.connections.delete"], [id, connectionId], void 0, options),
2696
+ /**
2697
+ * 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.
2698
+ *
2699
+ * Requires scope `pipes:read`. Danger: read.
2700
+ *
2701
+ * `GET /pipes/{id}/connections` · action `pipes.connections.list`
2702
+ * @scope `pipes:read`
2703
+ * @danger read
2704
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2705
+ */
2706
+ list: (id, query, options) => this.transport.call(environmentOperations["pipes.connections.list"], [id], query, options),
2707
+ /** Every item of `pipes.connections.list`, fetching pages as the iteration reaches them. */
2708
+ listAll: (id, query, options) => this.transport.paginate(environmentOperations["pipes.connections.list"], [id], query, options)
2709
+ },
2710
+ grants: {
2711
+ /**
2712
+ * Grant an app (by OAuth client id) the right to lease fresh access tokens for the accounts people connected through this pipe.
2713
+ *
2714
+ * Requires scope `pipes:write`. Danger: critical.
2715
+ *
2716
+ * `POST /pipes/{id}/grants` · action `pipes.grants.create`
2717
+ * @scope `pipes:write`
2718
+ * @danger critical
2719
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2720
+ */
2721
+ create: (id, body, options) => this.transport.call(environmentOperations["pipes.grants.create"], [id], body, options),
2722
+ /**
2723
+ * Withdraw an app's right to lease the tokens people connected through this pipe.
2724
+ *
2725
+ * Requires scope `pipes:write`. Danger: destructive.
2726
+ *
2727
+ * `DELETE /pipes/{id}/grants/{client_id}` · action `pipes.grants.delete`
2728
+ * @scope `pipes:write`
2729
+ * @danger destructive
2730
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2731
+ */
2732
+ delete: (id, clientId, options) => this.transport.call(environmentOperations["pipes.grants.delete"], [id, clientId], void 0, options)
2733
+ }
2734
+ };
2329
2735
  provisioning = {
2330
2736
  targets: {
2331
2737
  /**
@@ -2389,6 +2795,178 @@ var EnvironmentClient = class {
2389
2795
  }
2390
2796
  }
2391
2797
  };
2798
+ radar = {
2799
+ decisions: {
2800
+ /**
2801
+ * 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.
2802
+ *
2803
+ * Requires scope `radar:read`. Danger: read.
2804
+ *
2805
+ * `GET /radar/decisions/{id}` · action `radar.decisions.get`
2806
+ * @scope `radar:read`
2807
+ * @danger read
2808
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2809
+ */
2810
+ get: (id, options) => this.transport.call(environmentOperations["radar.decisions.get"], [id], void 0, options),
2811
+ /**
2812
+ * 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.
2813
+ *
2814
+ * Requires scope `radar:read`. Danger: read.
2815
+ *
2816
+ * `GET /radar/decisions` · action `radar.decisions.list`
2817
+ * @scope `radar:read`
2818
+ * @danger read
2819
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2820
+ */
2821
+ list: (query, options) => this.transport.call(environmentOperations["radar.decisions.list"], [], query, options),
2822
+ /** Every item of `radar.decisions.list`, fetching pages as the iteration reaches them. */
2823
+ listAll: (query, options) => this.transport.paginate(environmentOperations["radar.decisions.list"], [], query, options)
2824
+ },
2825
+ lists: {
2826
+ /**
2827
+ * 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.
2828
+ *
2829
+ * Requires scope `radar:write`. Danger: write.
2830
+ *
2831
+ * `POST /radar/lists` · action `radar.lists.add`
2832
+ * @scope `radar:write`
2833
+ * @danger write
2834
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2835
+ */
2836
+ add: (body, options) => this.transport.call(environmentOperations["radar.lists.add"], [], body, options),
2837
+ /**
2838
+ * List this environment's Radar allow and deny entries — IPs and CIDR ranges, addresses, mail domains, devices — optionally one list or one kind.
2839
+ *
2840
+ * Requires scope `radar:read`. Danger: read.
2841
+ *
2842
+ * `GET /radar/lists` · action `radar.lists.list`
2843
+ * @scope `radar:read`
2844
+ * @danger read
2845
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2846
+ */
2847
+ list: (query, options) => this.transport.call(environmentOperations["radar.lists.list"], [], query, options),
2848
+ /** Every item of `radar.lists.list`, fetching pages as the iteration reaches them. */
2849
+ listAll: (query, options) => this.transport.paginate(environmentOperations["radar.lists.list"], [], query, options),
2850
+ /**
2851
+ * Remove an entry from this environment's Radar allow or deny list.
2852
+ *
2853
+ * Requires scope `radar:write`. Danger: destructive.
2854
+ *
2855
+ * `DELETE /radar/lists/{id}` · action `radar.lists.remove`
2856
+ * @scope `radar:write`
2857
+ * @danger destructive
2858
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2859
+ */
2860
+ remove: (id, options) => this.transport.call(environmentOperations["radar.lists.remove"], [id], void 0, options)
2861
+ },
2862
+ mode: {
2863
+ /**
2864
+ * 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.
2865
+ *
2866
+ * Requires scope `radar:manage`. Danger: critical.
2867
+ *
2868
+ * `PUT /radar/mode` · action `radar.mode.set`
2869
+ * @scope `radar:manage`
2870
+ * @danger critical
2871
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2872
+ */
2873
+ set: (body, options) => this.transport.call(environmentOperations["radar.mode.set"], [], body, options)
2874
+ },
2875
+ rules: {
2876
+ /**
2877
+ * 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.
2878
+ *
2879
+ * Requires scope `radar:write`. Danger: write.
2880
+ *
2881
+ * `POST /radar/rules` · action `radar.rules.create`
2882
+ * @scope `radar:write`
2883
+ * @danger write
2884
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2885
+ */
2886
+ create: (body, options) => this.transport.call(environmentOperations["radar.rules.create"], [], body, options),
2887
+ /**
2888
+ * Delete a Radar rule. Attempts it decided are decided by the next matching rule, or the built-in rules, from then on.
2889
+ *
2890
+ * Requires scope `radar:write`. Danger: destructive.
2891
+ *
2892
+ * `DELETE /radar/rules/{id}` · action `radar.rules.delete`
2893
+ * @scope `radar:write`
2894
+ * @danger destructive
2895
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2896
+ */
2897
+ delete: (id, options) => this.transport.call(environmentOperations["radar.rules.delete"], [id], void 0, options),
2898
+ /**
2899
+ * Read one Radar rule: its action, the flows it applies to, its position and its conditions.
2900
+ *
2901
+ * Requires scope `radar:read`. Danger: read.
2902
+ *
2903
+ * `GET /radar/rules/{id}` · action `radar.rules.get`
2904
+ * @scope `radar:read`
2905
+ * @danger read
2906
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2907
+ */
2908
+ get: (id, options) => this.transport.call(environmentOperations["radar.rules.get"], [id], void 0, options),
2909
+ /**
2910
+ * 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.
2911
+ *
2912
+ * Requires scope `radar:read`. Danger: read.
2913
+ *
2914
+ * `GET /radar/rules` · action `radar.rules.list`
2915
+ * @scope `radar:read`
2916
+ * @danger read
2917
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2918
+ */
2919
+ list: (query, options) => this.transport.call(environmentOperations["radar.rules.list"], [], query, options),
2920
+ /** Every item of `radar.rules.list`, fetching pages as the iteration reaches them. */
2921
+ listAll: (query, options) => this.transport.paginate(environmentOperations["radar.rules.list"], [], query, options),
2922
+ /**
2923
+ * Set the order Radar rules are evaluated in: `rule_ids` lists every rule of the environment exactly once, first evaluated first.
2924
+ *
2925
+ * Requires scope `radar:write`. Danger: write.
2926
+ *
2927
+ * `PUT /radar/rules/order` · action `radar.rules.reorder`
2928
+ * @scope `radar:write`
2929
+ * @danger write
2930
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2931
+ */
2932
+ reorder: (body, options) => this.transport.call(environmentOperations["radar.rules.reorder"], [], body, options),
2933
+ /**
2934
+ * Change a Radar rule: its name, description, action, flows, enabled state, position, or (replaced whole) its conditions.
2935
+ *
2936
+ * Requires scope `radar:write`. Danger: write.
2937
+ *
2938
+ * `PATCH /radar/rules/{id}` · action `radar.rules.update`
2939
+ * @scope `radar:write`
2940
+ * @danger write
2941
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2942
+ */
2943
+ update: (id, body, options) => this.transport.call(environmentOperations["radar.rules.update"], [id], body, options)
2944
+ },
2945
+ settings: {
2946
+ /**
2947
+ * 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.
2948
+ *
2949
+ * Requires scope `radar:read`. Danger: read.
2950
+ *
2951
+ * `GET /radar/settings` · action `radar.settings.get`
2952
+ * @scope `radar:read`
2953
+ * @danger read
2954
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2955
+ */
2956
+ get: (options) => this.transport.call(environmentOperations["radar.settings.get"], [], void 0, options),
2957
+ /**
2958
+ * 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.
2959
+ *
2960
+ * Requires scope `radar:write`. Danger: write.
2961
+ *
2962
+ * `PATCH /radar/settings` · action `radar.settings.update`
2963
+ * @scope `radar:write`
2964
+ * @danger write
2965
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2966
+ */
2967
+ update: (body, options) => this.transport.call(environmentOperations["radar.settings.update"], [], body, options)
2968
+ }
2969
+ };
2392
2970
  roles = {
2393
2971
  /**
2394
2972
  * Define a role for one organization, or (organization_id null) for the whole environment, optionally scoped to one app, with its opening permissions.
@@ -2556,7 +3134,7 @@ var EnvironmentClient = class {
2556
3134
  */
2557
3135
  inherit: (organizationId, options) => this.transport.call(environmentOperations["signin.policy.inherit"], [organizationId], void 0, options),
2558
3136
  /**
2559
- * Change the authentication policy of the environment baseline, or tighten one organization's override. Requiring SSO signs out password sessions.
3137
+ * Change the authentication policy of the environment baseline — including whether passkeys and magic links are offered and how long sessions last — or tighten one organization's override. Requiring SSO signs out password sessions.
2560
3138
  *
2561
3139
  * Requires scope `signin:write`. Danger: critical.
2562
3140
  *
@@ -2580,6 +3158,30 @@ var EnvironmentClient = class {
2580
3158
  */
2581
3159
  set: (body, options) => this.transport.call(environmentOperations["signin.self_service_signup.set"], [], body, options)
2582
3160
  },
3161
+ sms: {
3162
+ /**
3163
+ * Read the SMS second-factor policy: whether text-message codes are accepted, for which countries, and the administrator rule.
3164
+ *
3165
+ * Requires scope `signin:read`. Danger: read.
3166
+ *
3167
+ * `GET /sign-in/sms` · action `signin.sms.get`
3168
+ * @scope `signin:read`
3169
+ * @danger read
3170
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3171
+ */
3172
+ get: (options) => this.transport.call(environmentOperations["signin.sms.get"], [], void 0, options),
3173
+ /**
3174
+ * 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.
3175
+ *
3176
+ * Requires scope `signin:write`. Danger: critical.
3177
+ *
3178
+ * `PATCH /sign-in/sms` · action `signin.sms.update`
3179
+ * @scope `signin:write`
3180
+ * @danger critical
3181
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3182
+ */
3183
+ update: (body, options) => this.transport.call(environmentOperations["signin.sms.update"], [], body, options)
3184
+ },
2583
3185
  social: {
2584
3186
  /**
2585
3187
  * Stop offering a social login provider. People who used it keep their accounts.
@@ -2593,7 +3195,40 @@ var EnvironmentClient = class {
2593
3195
  */
2594
3196
  delete: (id, body, options) => this.transport.call(environmentOperations["signin.social.delete"], [id], body, options),
2595
3197
  /**
2596
- * List the social login providers (Google, GitHub, Apple…) enabled in this environment, optionally for one organization.
3198
+ * Turn a social login provider off without removing it. People who used it keep their accounts.
3199
+ *
3200
+ * Requires scope `signin:write`. Danger: critical.
3201
+ *
3202
+ * `POST /sign-in/social-providers/{id}/disable` · action `signin.social.disable`
3203
+ * @scope `signin:write`
3204
+ * @danger critical
3205
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3206
+ */
3207
+ disable: (id, body, options) => this.transport.call(environmentOperations["signin.social.disable"], [id], body, options),
3208
+ /**
3209
+ * Turn a social login provider that was turned off back on, with the credentials it already has.
3210
+ *
3211
+ * Requires scope `signin:write`. Danger: write.
3212
+ *
3213
+ * `POST /sign-in/social-providers/{id}/enable` · action `signin.social.enable`
3214
+ * @scope `signin:write`
3215
+ * @danger write
3216
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3217
+ */
3218
+ enable: (id, body, options) => this.transport.call(environmentOperations["signin.social.enable"], [id], body, options),
3219
+ /**
3220
+ * Turn one of the environment's social login providers off (or back on) for one organization's sign-in page.
3221
+ *
3222
+ * Requires scope `signin:write`. Danger: write.
3223
+ *
3224
+ * `PUT /sign-in/social-providers/inherited/{provider}` · action `signin.social.inherit`
3225
+ * @scope `signin:write`
3226
+ * @danger write
3227
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3228
+ */
3229
+ inherit: (provider, body, options) => this.transport.call(environmentOperations["signin.social.inherit"], [provider], body, options),
3230
+ /**
3231
+ * List the social login providers (Google, GitHub, Apple…) set up in this environment — the environment's own and organizations' — optionally for one organization.
2597
3232
  *
2598
3233
  * Requires scope `signin:read`. Danger: read.
2599
3234
  *
@@ -2606,7 +3241,18 @@ var EnvironmentClient = class {
2606
3241
  /** Every item of `signin.social.list`, fetching pages as the iteration reaches them. */
2607
3242
  listAll: (query, options) => this.transport.paginate(environmentOperations["signin.social.list"], [], query, options),
2608
3243
  /**
2609
- * Enable a social login provider (Google, GitHub, Apple…) for one organization with its client credentials. The secret is never returned.
3244
+ * 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.
3245
+ *
3246
+ * Requires scope `signin:read`. Danger: read.
3247
+ *
3248
+ * `GET /sign-in/social-providers/offered` · action `signin.social.offered`
3249
+ * @scope `signin:read`
3250
+ * @danger read
3251
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3252
+ */
3253
+ offered: (query, options) => this.transport.call(environmentOperations["signin.social.offered"], [], query, options),
3254
+ /**
3255
+ * Enable a social login provider (Google, GitHub, Apple…) for the whole environment or for one organization, with its client credentials. The secret is never returned.
2610
3256
  *
2611
3257
  * Requires scope `signin:write`. Danger: critical.
2612
3258
  *
@@ -2615,7 +3261,18 @@ var EnvironmentClient = class {
2615
3261
  * @danger critical
2616
3262
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
2617
3263
  */
2618
- set: (body, options) => this.transport.call(environmentOperations["signin.social.set"], [], body, options)
3264
+ set: (body, options) => this.transport.call(environmentOperations["signin.social.set"], [], body, options),
3265
+ /**
3266
+ * Change a social login provider's client credentials, provider values or extra scopes. Secrets left out keep the ones on file.
3267
+ *
3268
+ * Requires scope `signin:write`. Danger: critical.
3269
+ *
3270
+ * `PATCH /sign-in/social-providers/{id}` · action `signin.social.update`
3271
+ * @scope `signin:write`
3272
+ * @danger critical
3273
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3274
+ */
3275
+ update: (id, body, options) => this.transport.call(environmentOperations["signin.social.update"], [id], body, options)
2619
3276
  }
2620
3277
  };
2621
3278
  sodPolicies = {
@@ -3169,7 +3826,20 @@ var EnvironmentClient = class {
3169
3826
  * @danger critical
3170
3827
  * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3171
3828
  */
3172
- reset: (id, options) => this.transport.call(environmentOperations["users.mfa.reset"], [id], void 0, options)
3829
+ reset: (id, options) => this.transport.call(environmentOperations["users.mfa.reset"], [id], void 0, options),
3830
+ sms: {
3831
+ /**
3832
+ * Remove a user's phone number for text-message sign-in codes. Their other factors and recovery codes stay.
3833
+ *
3834
+ * Requires scope `users:write`. Danger: critical.
3835
+ *
3836
+ * `DELETE /users/{id}/mfa/sms` · action `users.mfa.sms.remove`
3837
+ * @scope `users:write`
3838
+ * @danger critical
3839
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
3840
+ */
3841
+ remove: (id, options) => this.transport.call(environmentOperations["users.mfa.sms.remove"], [id], void 0, options)
3842
+ }
3173
3843
  },
3174
3844
  passwordReset: {
3175
3845
  /**
@@ -3898,8 +4568,10 @@ var accountOperations = {
3898
4568
  "account.api_keys.revoke": { action: "account.api_keys.revoke", operationId: "account_api_keys_revoke", method: "DELETE", path: "/me/organizations/{organization_id}/api-keys/{key_id}", pathParams: ["organization_id", "key_id"], scope: "account:api_keys:write", danger: "destructive", approval: true, body: false, pagination: null },
3899
4569
  "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 },
3900
4570
  "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 },
4571
+ "account.mfa.sms.remove": { action: "account.mfa.sms.remove", operationId: "account_mfa_sms_remove", method: "DELETE", path: "/me/mfa/sms", pathParams: [], scope: "account:sign_in:write", danger: "critical", approval: true, body: false, pagination: null },
3901
4572
  "account.organizations.leave": { action: "account.organizations.leave", operationId: "account_organizations_leave", method: "POST", path: "/me/organizations/{organization_id}/leave", pathParams: ["organization_id"], scope: "account:organizations:write", danger: "destructive", approval: true, body: false, pagination: null },
3902
4573
  "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 },
4574
+ "account.pipes.disconnect": { action: "account.pipes.disconnect", operationId: "account_pipes_disconnect", method: "DELETE", path: "/me/pipes/{provider}", pathParams: ["provider"], scope: "account:pipes:write", danger: "destructive", approval: true, body: false, pagination: null },
3903
4575
  "account.profile.update": { action: "account.profile.update", operationId: "account_profile_update", method: "PATCH", path: "/me/profile", pathParams: [], scope: "account:profile:write", danger: "write", approval: true, body: true, pagination: null },
3904
4576
  "account.sessions.revoke": { action: "account.sessions.revoke", operationId: "account_sessions_revoke", method: "DELETE", path: "/me/sessions/{session_id}", pathParams: ["session_id"], scope: "account:sessions:write", danger: "destructive", approval: true, body: false, pagination: null },
3905
4577
  "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 },
@@ -3975,6 +4647,21 @@ var AccountClient = class {
3975
4647
  */
3976
4648
  remove: (deviceId, options) => this.transport.call(accountOperations["account.devices.remove"], [deviceId], void 0, options)
3977
4649
  };
4650
+ mfa = {
4651
+ sms: {
4652
+ /**
4653
+ * Remove your phone number for text-message sign-in codes.
4654
+ *
4655
+ * 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.
4656
+ *
4657
+ * `DELETE /me/mfa/sms` · action `account.mfa.sms.remove`
4658
+ * @scope `account:sign_in:write`
4659
+ * @danger critical
4660
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4661
+ */
4662
+ remove: (options) => this.transport.call(accountOperations["account.mfa.sms.remove"], [], void 0, options)
4663
+ }
4664
+ };
3978
4665
  organizations = {
3979
4666
  /**
3980
4667
  * Leave one of your own organizations. The last owner cannot leave — transfer ownership first.
@@ -4001,6 +4688,19 @@ var AccountClient = class {
4001
4688
  */
4002
4689
  remove: (passkeyId, options) => this.transport.call(accountOperations["account.passkeys.remove"], [passkeyId], void 0, options)
4003
4690
  };
4691
+ pipes = {
4692
+ /**
4693
+ * Disconnect one of your connected services, revoking the access you gave it.
4694
+ *
4695
+ * 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.
4696
+ *
4697
+ * `DELETE /me/pipes/{provider}` · action `account.pipes.disconnect`
4698
+ * @scope `account:pipes:write`
4699
+ * @danger destructive
4700
+ * May be held for approval (`202 approval_required`); waited on unless `approval: 'return'`.
4701
+ */
4702
+ disconnect: (provider, options) => this.transport.call(accountOperations["account.pipes.disconnect"], [provider], void 0, options)
4703
+ };
4004
4704
  profile = {
4005
4705
  /**
4006
4706
  * Change the display name on your own account.
@@ -4339,6 +5039,25 @@ async function verifyAuditLogChain(client, query, options = {}) {
4339
5039
  return verifyAuditChain(client.auditLogs.events.listAll({ ...query, order: "asc" }), options);
4340
5040
  }
4341
5041
 
5042
+ // src/management/fga.ts
5043
+ function fgaTuple(tuple) {
5044
+ const name = (value, what) => {
5045
+ if (value === "" || /[\s#@:]/.test(value)) {
5046
+ throw new TypeError(`An FGA ${what} cannot be empty or contain whitespace, '#', '@' or ':': ${JSON.stringify(value)}`);
5047
+ }
5048
+ return value;
5049
+ };
5050
+ const id = (value, what) => {
5051
+ if (value === "" || /[\s#@]/.test(value)) {
5052
+ throw new TypeError(`An FGA ${what} cannot be empty or contain whitespace, '#' or '@': ${JSON.stringify(value)}`);
5053
+ }
5054
+ return value;
5055
+ };
5056
+ const subject = `${name(tuple.subject.type, "subject type")}:${id(tuple.subject.id, "subject id")}`;
5057
+ const userset = tuple.subject.relation ? `#${name(tuple.subject.relation, "subject relation")}` : "";
5058
+ return `${name(tuple.resource_type, "resource type")}:${id(tuple.resource_id, "resource id")}#${name(tuple.relation, "relation")}@${subject}${userset}`;
5059
+ }
5060
+
4342
5061
  exports.AUDIT_CHAIN_GENESIS = AUDIT_CHAIN_GENESIS;
4343
5062
  exports.AccountClient = AccountClient;
4344
5063
  exports.ApprovalDeniedError = ApprovalDeniedError;
@@ -4362,6 +5081,7 @@ exports.canonicalJson = canonicalJson;
4362
5081
  exports.createDPoPSigner = createDPoPSigner;
4363
5082
  exports.environmentOperations = environmentOperations;
4364
5083
  exports.exportAuditLogs = exportAuditLogs;
5084
+ exports.fgaTuple = fgaTuple;
4365
5085
  exports.generateDPoPKeyPair = generateDPoPKeyPair;
4366
5086
  exports.platformOperations = platformOperations;
4367
5087
  exports.retryAfterMs = retryAfterMs;