@imbue-ai/detent 1.13.0 → 1.14.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.
@@ -1 +1 @@
1
- {"version":3,"file":"generatedBuiltinSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/generatedBuiltinSchemas.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAk9O5E,CAAC"}
1
+ {"version":3,"file":"generatedBuiltinSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/generatedBuiltinSchemas.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA4nP5E,CAAC"}
@@ -6757,6 +6757,176 @@ export const generatedBuiltinSchemas = {
6757
6757
  "path"
6758
6758
  ]
6759
6759
  },
6760
+ "tailscale-api": {
6761
+ "$comment": "All requests to the Tailscale admin REST API (api.tailscale.com), which is served under /api/v2/. Covers tailnet-wide user management (roles, approval, suspension, deletion), device management, ACL/policy, DNS, keys, logs, and webhooks. Does not cover the admin console (console.tailscale.com) or the sign-in host (login.tailscale.com), which the browser login visits but which are not API targets.",
6762
+ "properties": {
6763
+ "domain": {
6764
+ "const": "api.tailscale.com"
6765
+ },
6766
+ "path": {
6767
+ "type": "string",
6768
+ "pattern": "^/api/"
6769
+ }
6770
+ },
6771
+ "required": [
6772
+ "domain",
6773
+ "path"
6774
+ ]
6775
+ },
6776
+ "tailscale-read-all": {
6777
+ "$comment": "Read anything from the Tailscale admin API: list users, devices, keys, webhooks, posture integrations, services, tailnets, DNS and logging configuration, and the policy file. Safe methods only.",
6778
+ "properties": {
6779
+ "method": {
6780
+ "enum": [
6781
+ "GET",
6782
+ "HEAD",
6783
+ "OPTIONS"
6784
+ ]
6785
+ }
6786
+ },
6787
+ "required": [
6788
+ "method"
6789
+ ]
6790
+ },
6791
+ "tailscale-write-all": {
6792
+ "$comment": "Change anything through the Tailscale admin API: change user roles, approve/suspend/restore/delete users, authorize/expire/delete devices, set device tags/routes/names, set the policy file, configure DNS and logging, create and revoke keys, and manage webhooks and OAuth apps. Covers every unsafe method.",
6793
+ "properties": {
6794
+ "method": {
6795
+ "enum": [
6796
+ "POST",
6797
+ "PUT",
6798
+ "PATCH",
6799
+ "DELETE"
6800
+ ]
6801
+ }
6802
+ },
6803
+ "required": [
6804
+ "method"
6805
+ ]
6806
+ },
6807
+ "tailscale-read-users": {
6808
+ "$comment": "Read user information and invitations: list users and user invites, get a user's details. Safe methods on the users and user-invites endpoints only. Maps to Tailscale's own OAuth `users:read` scope.",
6809
+ "properties": {
6810
+ "method": {
6811
+ "enum": [
6812
+ "GET",
6813
+ "HEAD",
6814
+ "OPTIONS"
6815
+ ]
6816
+ },
6817
+ "path": {
6818
+ "type": "string",
6819
+ "pattern": "^/api/v2/(users/|user-invites/|tailnet/[^/]+/users|tailnet/[^/]+/user-invites)"
6820
+ }
6821
+ },
6822
+ "required": [
6823
+ "method",
6824
+ "path"
6825
+ ]
6826
+ },
6827
+ "tailscale-write-users": {
6828
+ "$comment": "Change user roles and handle user approval, suspension, deletion, and restoration; create and resend user invites. Unsafe methods on the users and user-invites endpoints only. Maps to Tailscale's own OAuth `users` scope.",
6829
+ "properties": {
6830
+ "method": {
6831
+ "enum": [
6832
+ "POST",
6833
+ "PUT",
6834
+ "PATCH",
6835
+ "DELETE"
6836
+ ]
6837
+ },
6838
+ "path": {
6839
+ "type": "string",
6840
+ "pattern": "^/api/v2/(users/|user-invites/|tailnet/[^/]+/users|tailnet/[^/]+/user-invites)"
6841
+ }
6842
+ },
6843
+ "required": [
6844
+ "method",
6845
+ "path"
6846
+ ]
6847
+ },
6848
+ "tailscale-read-devices": {
6849
+ "$comment": "Read device information: list tailnet devices, get a device's details, posture attributes, and routes. Safe methods on the device and device-invites endpoints only. Maps to Tailscale's own OAuth `devices:read` scope.",
6850
+ "properties": {
6851
+ "method": {
6852
+ "enum": [
6853
+ "GET",
6854
+ "HEAD",
6855
+ "OPTIONS"
6856
+ ]
6857
+ },
6858
+ "path": {
6859
+ "type": "string",
6860
+ "pattern": "^/api/v2/(device-invites/|device/|tailnet/[^/]+/devices|tailnet/[^/]+/device-attributes)"
6861
+ }
6862
+ },
6863
+ "required": [
6864
+ "method",
6865
+ "path"
6866
+ ]
6867
+ },
6868
+ "tailscale-write-devices": {
6869
+ "$comment": "Add or edit machines: authorize, expire, rename, retag, re-route, or delete devices, and manage device invites and posture attributes. Unsafe methods on the device and device-invites endpoints only. Maps to Tailscale's own OAuth `devices` scope.",
6870
+ "properties": {
6871
+ "method": {
6872
+ "enum": [
6873
+ "POST",
6874
+ "PUT",
6875
+ "PATCH",
6876
+ "DELETE"
6877
+ ]
6878
+ },
6879
+ "path": {
6880
+ "type": "string",
6881
+ "pattern": "^/api/v2/(device-invites/|device/|tailnet/[^/]+/devices|tailnet/[^/]+/device-attributes)"
6882
+ }
6883
+ },
6884
+ "required": [
6885
+ "method",
6886
+ "path"
6887
+ ]
6888
+ },
6889
+ "tailscale-read-keys": {
6890
+ "$comment": "Read the tailnet's keys: list and inspect auth keys (tskey-auth, for the tailscale CLI), API access tokens, OAuth clients, and federated identities. Safe methods on the keys endpoint only. Tailscale's own OAuth model splits this across `auth_keys:read`, `api_access_tokens:read`, `oauth_keys:read`, and `federated_keys:read`, but those are all served by the same `/tailnet/{tailnet}/keys` endpoint and cannot be separated by path.",
6891
+ "properties": {
6892
+ "method": {
6893
+ "enum": [
6894
+ "GET",
6895
+ "HEAD",
6896
+ "OPTIONS"
6897
+ ]
6898
+ },
6899
+ "path": {
6900
+ "type": "string",
6901
+ "pattern": "^/api/v2/tailnet/[^/]+/keys"
6902
+ }
6903
+ },
6904
+ "required": [
6905
+ "method",
6906
+ "path"
6907
+ ]
6908
+ },
6909
+ "tailscale-write-keys": {
6910
+ "$comment": "Mint, update, or revoke any key the tailnet's keys endpoint serves: auth keys (tskey-auth, which the tailscale CLI consumes to bring up nodes), API access tokens, OAuth clients, and federated identities. Unsafe methods on the keys endpoint only. Note that minting an OAuth client or federated identity creates a long-lived credential that can mint further access tokens, so this scope is broader than Tailscale's own `auth_keys` OAuth scope (which covers device auth keys only) -- detent matches by method and path, not request body, so the keyType field that distinguishes them cannot be narrowed here. This is the scope an agent needs to connect new machines to the tailnet.",
6911
+ "properties": {
6912
+ "method": {
6913
+ "enum": [
6914
+ "POST",
6915
+ "PUT",
6916
+ "PATCH",
6917
+ "DELETE"
6918
+ ]
6919
+ },
6920
+ "path": {
6921
+ "type": "string",
6922
+ "pattern": "^/api/v2/tailnet/[^/]+/keys"
6923
+ }
6924
+ },
6925
+ "required": [
6926
+ "method",
6927
+ "path"
6928
+ ]
6929
+ },
6760
6930
  "telegram-api": {
6761
6931
  "$comment": "Matches any request to the Telegram Bot API.",
6762
6932
  "properties": {