@getstackrun/sdk 4.0.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +326 -10
  3. package/dist/agent-auth.d.ts.map +1 -1
  4. package/dist/agent-auth.js +3 -4
  5. package/dist/agent-auth.js.map +1 -1
  6. package/dist/browser-bootstrap.js +1 -1
  7. package/dist/browser-bootstrap.js.map +1 -1
  8. package/dist/client.d.ts +86 -1
  9. package/dist/client.d.ts.map +1 -1
  10. package/dist/client.js +235 -40
  11. package/dist/client.js.map +1 -1
  12. package/dist/control-socket-server.d.ts +134 -0
  13. package/dist/control-socket-server.d.ts.map +1 -0
  14. package/dist/control-socket-server.js +108 -0
  15. package/dist/control-socket-server.js.map +1 -0
  16. package/dist/credentials-file.d.ts +7 -0
  17. package/dist/credentials-file.d.ts.map +1 -1
  18. package/dist/credentials-file.js +57 -2
  19. package/dist/credentials-file.js.map +1 -1
  20. package/dist/errors.d.ts +316 -0
  21. package/dist/errors.d.ts.map +1 -1
  22. package/dist/errors.js +572 -0
  23. package/dist/errors.js.map +1 -1
  24. package/dist/index.d.ts +126 -24
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +150 -22
  27. package/dist/index.js.map +1 -1
  28. package/dist/network-install-key.d.ts +56 -0
  29. package/dist/network-install-key.d.ts.map +1 -0
  30. package/dist/network-install-key.js +92 -0
  31. package/dist/network-install-key.js.map +1 -0
  32. package/dist/network-install.d.ts +134 -0
  33. package/dist/network-install.d.ts.map +1 -0
  34. package/dist/network-install.js +70 -0
  35. package/dist/network-install.js.map +1 -0
  36. package/dist/service-mcp.d.ts +49 -0
  37. package/dist/service-mcp.d.ts.map +1 -0
  38. package/dist/service-mcp.js +122 -0
  39. package/dist/service-mcp.js.map +1 -0
  40. package/dist/services/accounts.d.ts +1548 -0
  41. package/dist/services/accounts.d.ts.map +1 -0
  42. package/dist/services/accounts.js +724 -0
  43. package/dist/services/accounts.js.map +1 -0
  44. package/dist/services/agent-identity.d.ts +58 -0
  45. package/dist/services/agent-identity.d.ts.map +1 -0
  46. package/dist/services/agent-identity.js +50 -0
  47. package/dist/services/agent-identity.js.map +1 -0
  48. package/dist/services/agents.d.ts +78 -3
  49. package/dist/services/agents.d.ts.map +1 -1
  50. package/dist/services/agents.js +29 -2
  51. package/dist/services/agents.js.map +1 -1
  52. package/dist/services/audit.d.ts +5 -0
  53. package/dist/services/audit.d.ts.map +1 -1
  54. package/dist/services/audit.js +5 -0
  55. package/dist/services/audit.js.map +1 -1
  56. package/dist/services/billing.d.ts +67 -0
  57. package/dist/services/billing.d.ts.map +1 -0
  58. package/dist/services/billing.js +42 -0
  59. package/dist/services/billing.js.map +1 -0
  60. package/dist/services/brain.d.ts +122 -0
  61. package/dist/services/brain.d.ts.map +1 -0
  62. package/dist/services/brain.js +40 -0
  63. package/dist/services/brain.js.map +1 -0
  64. package/dist/services/calendar.d.ts +256 -0
  65. package/dist/services/calendar.d.ts.map +1 -0
  66. package/dist/services/calendar.js +75 -0
  67. package/dist/services/calendar.js.map +1 -0
  68. package/dist/services/catalogue.d.ts +185 -0
  69. package/dist/services/catalogue.d.ts.map +1 -0
  70. package/dist/services/catalogue.js +31 -0
  71. package/dist/services/catalogue.js.map +1 -0
  72. package/dist/services/chat-channels.d.ts +82 -0
  73. package/dist/services/chat-channels.d.ts.map +1 -0
  74. package/dist/services/chat-channels.js +42 -0
  75. package/dist/services/chat-channels.js.map +1 -0
  76. package/dist/services/control-policies.d.ts +409 -0
  77. package/dist/services/control-policies.d.ts.map +1 -0
  78. package/dist/services/control-policies.js +101 -0
  79. package/dist/services/control-policies.js.map +1 -0
  80. package/dist/services/control-socket.d.ts +201 -0
  81. package/dist/services/control-socket.d.ts.map +1 -0
  82. package/dist/services/control-socket.js +165 -0
  83. package/dist/services/control-socket.js.map +1 -0
  84. package/dist/services/credentials.d.ts +2 -1
  85. package/dist/services/credentials.d.ts.map +1 -1
  86. package/dist/services/credentials.js +3 -2
  87. package/dist/services/credentials.js.map +1 -1
  88. package/dist/services/detector-config.d.ts +13 -12
  89. package/dist/services/detector-config.d.ts.map +1 -1
  90. package/dist/services/detector-config.js +13 -12
  91. package/dist/services/detector-config.js.map +1 -1
  92. package/dist/services/drive.d.ts +257 -0
  93. package/dist/services/drive.d.ts.map +1 -0
  94. package/dist/services/drive.js +167 -0
  95. package/dist/services/drive.js.map +1 -0
  96. package/dist/services/dropoffs.d.ts +5 -1
  97. package/dist/services/dropoffs.d.ts.map +1 -1
  98. package/dist/services/dropoffs.js +3 -1
  99. package/dist/services/dropoffs.js.map +1 -1
  100. package/dist/services/evidence-packs.d.ts +4 -2
  101. package/dist/services/evidence-packs.d.ts.map +1 -1
  102. package/dist/services/evidence-packs.js +4 -2
  103. package/dist/services/evidence-packs.js.map +1 -1
  104. package/dist/services/flagged-content.d.ts +30 -0
  105. package/dist/services/flagged-content.d.ts.map +1 -0
  106. package/dist/services/flagged-content.js +24 -0
  107. package/dist/services/flagged-content.js.map +1 -0
  108. package/dist/services/governance.d.ts +69 -0
  109. package/dist/services/governance.d.ts.map +1 -0
  110. package/dist/services/governance.js +39 -0
  111. package/dist/services/governance.js.map +1 -0
  112. package/dist/services/identity.d.ts +44 -4
  113. package/dist/services/identity.d.ts.map +1 -1
  114. package/dist/services/identity.js +54 -6
  115. package/dist/services/identity.js.map +1 -1
  116. package/dist/services/inbound-webhooks.d.ts +12 -1
  117. package/dist/services/inbound-webhooks.d.ts.map +1 -1
  118. package/dist/services/inbound-webhooks.js +7 -0
  119. package/dist/services/inbound-webhooks.js.map +1 -1
  120. package/dist/services/intents.d.ts +8 -2
  121. package/dist/services/intents.d.ts.map +1 -1
  122. package/dist/services/intents.js +7 -3
  123. package/dist/services/intents.js.map +1 -1
  124. package/dist/services/llm.d.ts +73 -1
  125. package/dist/services/llm.d.ts.map +1 -1
  126. package/dist/services/llm.js +62 -0
  127. package/dist/services/llm.js.map +1 -1
  128. package/dist/services/making.d.ts +263 -0
  129. package/dist/services/making.d.ts.map +1 -0
  130. package/dist/services/making.js +114 -0
  131. package/dist/services/making.js.map +1 -0
  132. package/dist/services/meetings.d.ts +183 -0
  133. package/dist/services/meetings.d.ts.map +1 -0
  134. package/dist/services/meetings.js +148 -0
  135. package/dist/services/meetings.js.map +1 -0
  136. package/dist/services/memory.d.ts +288 -0
  137. package/dist/services/memory.d.ts.map +1 -0
  138. package/dist/services/memory.js +116 -0
  139. package/dist/services/memory.js.map +1 -0
  140. package/dist/services/message-access.d.ts +50 -0
  141. package/dist/services/message-access.d.ts.map +1 -0
  142. package/dist/services/message-access.js +36 -0
  143. package/dist/services/message-access.js.map +1 -0
  144. package/dist/services/missions.d.ts +93 -7
  145. package/dist/services/missions.d.ts.map +1 -1
  146. package/dist/services/missions.js +29 -1
  147. package/dist/services/missions.js.map +1 -1
  148. package/dist/services/network.d.ts +266 -0
  149. package/dist/services/network.d.ts.map +1 -0
  150. package/dist/services/network.js +209 -0
  151. package/dist/services/network.js.map +1 -0
  152. package/dist/services/partner-accounts.d.ts +215 -0
  153. package/dist/services/partner-accounts.d.ts.map +1 -0
  154. package/dist/services/partner-accounts.js +133 -0
  155. package/dist/services/partner-accounts.js.map +1 -0
  156. package/dist/services/passports.d.ts +3 -2
  157. package/dist/services/passports.d.ts.map +1 -1
  158. package/dist/services/passports.js +3 -2
  159. package/dist/services/passports.js.map +1 -1
  160. package/dist/services/payments.d.ts +126 -0
  161. package/dist/services/payments.d.ts.map +1 -0
  162. package/dist/services/payments.js +66 -0
  163. package/dist/services/payments.js.map +1 -0
  164. package/dist/services/pii-config.d.ts +7 -17
  165. package/dist/services/pii-config.d.ts.map +1 -1
  166. package/dist/services/pii-config.js +9 -19
  167. package/dist/services/pii-config.js.map +1 -1
  168. package/dist/services/post.d.ts +240 -0
  169. package/dist/services/post.d.ts.map +1 -0
  170. package/dist/services/post.js +99 -0
  171. package/dist/services/post.js.map +1 -0
  172. package/dist/services/proxy.d.ts +20 -2
  173. package/dist/services/proxy.d.ts.map +1 -1
  174. package/dist/services/proxy.js +31 -1
  175. package/dist/services/proxy.js.map +1 -1
  176. package/dist/services/rentahuman.d.ts +92 -0
  177. package/dist/services/rentahuman.d.ts.map +1 -0
  178. package/dist/services/rentahuman.js +53 -0
  179. package/dist/services/rentahuman.js.map +1 -0
  180. package/dist/services/scan.d.ts +1 -1
  181. package/dist/services/scan.d.ts.map +1 -1
  182. package/dist/services/scan.js +1 -1
  183. package/dist/services/scan.js.map +1 -1
  184. package/dist/services/services.d.ts +28 -2
  185. package/dist/services/services.d.ts.map +1 -1
  186. package/dist/services/services.js +49 -1
  187. package/dist/services/services.js.map +1 -1
  188. package/dist/services/team.d.ts +13 -1
  189. package/dist/services/team.d.ts.map +1 -1
  190. package/dist/services/team.js +12 -0
  191. package/dist/services/team.js.map +1 -1
  192. package/dist/services/trust.d.ts +39 -0
  193. package/dist/services/trust.d.ts.map +1 -0
  194. package/dist/services/trust.js +35 -0
  195. package/dist/services/trust.js.map +1 -0
  196. package/dist/services/usage.d.ts +1 -1
  197. package/dist/services/usage.js +1 -1
  198. package/dist/services/wake.d.ts +257 -0
  199. package/dist/services/wake.d.ts.map +1 -0
  200. package/dist/services/wake.js +80 -0
  201. package/dist/services/wake.js.map +1 -0
  202. package/dist/services/website.d.ts +188 -0
  203. package/dist/services/website.d.ts.map +1 -0
  204. package/dist/services/website.js +135 -0
  205. package/dist/services/website.js.map +1 -0
  206. package/dist/types.d.ts +259 -25
  207. package/dist/types.d.ts.map +1 -1
  208. package/dist/verify-agent-identity.d.ts +73 -0
  209. package/dist/verify-agent-identity.d.ts.map +1 -0
  210. package/dist/verify-agent-identity.js +106 -0
  211. package/dist/verify-agent-identity.js.map +1 -0
  212. package/dist/verify-network.d.ts +159 -0
  213. package/dist/verify-network.d.ts.map +1 -0
  214. package/dist/verify-network.js +153 -0
  215. package/dist/verify-network.js.map +1 -0
  216. package/dist/wake-webhook.d.ts +57 -0
  217. package/dist/wake-webhook.d.ts.map +1 -0
  218. package/dist/wake-webhook.js +60 -0
  219. package/dist/wake-webhook.js.map +1 -0
  220. package/dist/wallet-key.d.ts +30 -0
  221. package/dist/wallet-key.d.ts.map +1 -0
  222. package/dist/wallet-key.js +108 -0
  223. package/dist/wallet-key.js.map +1 -0
  224. package/dist/webhook.d.ts +63 -0
  225. package/dist/webhook.d.ts.map +1 -0
  226. package/dist/webhook.js +136 -0
  227. package/dist/webhook.js.map +1 -0
  228. package/dist/x402-pay.d.ts +139 -0
  229. package/dist/x402-pay.d.ts.map +1 -0
  230. package/dist/x402-pay.js +235 -0
  231. package/dist/x402-pay.js.map +1 -0
  232. package/package.json +2 -1
  233. package/dist/services/partner-connect.d.ts +0 -64
  234. package/dist/services/partner-connect.d.ts.map +0 -1
  235. package/dist/services/partner-connect.js +0 -42
  236. package/dist/services/partner-connect.js.map +0 -1
  237. package/dist/services/partner-tenants.d.ts +0 -126
  238. package/dist/services/partner-tenants.d.ts.map +0 -1
  239. package/dist/services/partner-tenants.js +0 -79
  240. package/dist/services/partner-tenants.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-policies.js","sourceRoot":"","sources":["../../src/services/control-policies.ts"],"names":[],"mappings":"AAkGA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,aAAsB,CAAC;AAiSpE,MAAM,GAAG,GAAG,kBAAkB,CAAC;AAE/B,kFAAkF;AAClF,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,+BAA+B,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;AAC5G,CAAC;AAED,SAAS,QAAQ,CAAC,OAAsC;IACtD,OAAO,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,uBAAuB,EAAE,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CA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AI,CACrB,+BAA+B,GAAG,CAAC,OAAO,CAAC,4BAA4B,EACvE,SAAS,EACT,QAAQ,CAAC,OAAO,CAAC,CAClB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,KAAiC;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAA0B,+BAA+B,EAAE,KAAK,CAAC,CAAC;IAC3F,CAAC;IAED,mGAAmG;IACnG,KAAK,CAAC,SAAS,CAAC,QAAgB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,wBAAwB,GAAG,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC9G,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,OAAO,qBAAqB;IACH;IAA7B,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD,uEAAuE;IACvE,KAAK,CAAC,IAAI,CAAC,QAAiC,EAAE;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA2B,qBAAqB,EAAE;YACtE,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,KAAK,EAAE,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SACnE,CAAC,CAAC;IACL,CAAC;IAED,uDAAuD;IACvD,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAgB,uBAAuB,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF"}
@@ -0,0 +1,201 @@
1
+ import type { HttpClient } from '../client.js';
2
+ export declare const CONTROL_ACTION_TYPES: readonly ["model.call", "proxy.call", "tool.run", "email.send", "sms.send", "telegram.send", "call.start", "call.answer", "meeting.join", "browser.session.start", "browser.navigate", "card.checkout", "wallet.payment", "workspace.exec", "account.open", "dropoff.create", "dropoff.deposit", "a2a.send", "skill.invoke", "passport.delegate", "wake.deliver", "drive.upload", "drive.share", "memory.write", "memory.delete", "brain.add", "site.publish", "payment.request", "letter.send", "post.scan", "post.forward", "post.shred", "making.quote", "making.order"];
3
+ /** A kind of action a decision address can be asked about. */
4
+ export type ControlActionType = (typeof CONTROL_ACTION_TYPES)[number];
5
+ /** Which address a call is about. */
6
+ export type ControlSocketTarget = 'decision' | 'events';
7
+ /** Who decides: STACK's hosted controls, your own server, or nobody. */
8
+ export type ControlDecider = 'none' | 'hosted' | 'remote';
9
+ /** What was chosen; `auto` is hosted checks while controls are on, none otherwise. */
10
+ export type ControlModeSetting = 'auto' | 'none' | 'hosted' | 'remote';
11
+ /** The modes a call can switch to. Your own server is switched on by verifying its address. */
12
+ export type ControlSocketMode = 'none' | 'hosted';
13
+ export type ControlDecisionStatus = 'unverified' | 'enforcing' | 'paused';
14
+ export type ControlEventsStatus = 'off' | 'unverified' | 'active' | 'failing';
15
+ export type ControlVerdict = 'allow' | 'deny' | 'unavailable';
16
+ /** What happens when your own decision server does not answer in time. */
17
+ export type ControlOnUnavailable = 'refuse' | 'allow';
18
+ export type ControlUnavailableCause = 'timeout' | 'unreachable' | 'unsafe_address' | 'http_status' | 'bad_signature' | 'bad_body' | 'mismatch' | 'busy' | 'breaker_open' | 'unverified' | 'paused' | 'secret_unavailable' | 'hosted_failure';
19
+ export interface ControlAddressView {
20
+ url: string | null;
21
+ /** A new address that is set but not yet verified; the current one keeps deciding until it is. */
22
+ pending_url: string | null;
23
+ status: string;
24
+ verified_at: string | null;
25
+ secret_set: boolean;
26
+ secret_rotated_at: string | null;
27
+ }
28
+ export interface ControlSocket {
29
+ socket_id: string | null;
30
+ mode_setting: ControlModeSetting;
31
+ /** Who decides right now: `remote` only while the decision address is enforcing. */
32
+ effective_mode: ControlDecider;
33
+ /** Whether STACK's hosted controls are on for this account. */
34
+ controls_enabled: boolean;
35
+ decision: ControlAddressView & {
36
+ status: ControlDecisionStatus;
37
+ timeout_ms: number;
38
+ on_unavailable: ControlOnUnavailable;
39
+ };
40
+ events: ControlAddressView & {
41
+ status: ControlEventsStatus;
42
+ last_acknowledged_seq: number;
43
+ pending_events: number;
44
+ dead_events: number;
45
+ last_error: string | null;
46
+ };
47
+ /** The action kinds checked right now. */
48
+ checked_types: ControlActionType[];
49
+ /** True when every kind is checked, which also covers kinds added later. */
50
+ checks_all_types: boolean;
51
+ }
52
+ export interface SetDecisionAddressInput {
53
+ url: string;
54
+ /** How long STACK waits for your answer, 300 to 2000 ms. The default is 1500. */
55
+ timeout_ms?: number;
56
+ }
57
+ export interface SetEventsAddressInput {
58
+ url: string;
59
+ }
60
+ /** The socket after a change, and the signing secret when this call created it. */
61
+ export interface ControlAddressChange {
62
+ socket: ControlSocket;
63
+ /** Present only when this call created the signing secret. Store it now; it is not shown again. */
64
+ secret: string | null;
65
+ /** Instead of `secret`, for an OAuth token: the Console link where the person reads the new secret once. */
66
+ secret_reveal: ControlSecretReveal | null;
67
+ }
68
+ /** Where a person reads a signing secret created for a caller that must not hold it. Single use, one hour. */
69
+ export interface ControlSecretReveal {
70
+ url: string;
71
+ expires_at: string;
72
+ }
73
+ export interface RotatedControlSecret {
74
+ target: ControlSocketTarget;
75
+ /** The new signing secret, shown once. Null for an OAuth token, which gets `secret_reveal` instead. */
76
+ secret: string | null;
77
+ secret_reveal: ControlSecretReveal | null;
78
+ /** The rotated-out secret keeps verifying until then (24 hours). */
79
+ previous_valid_until: string | null;
80
+ }
81
+ export interface ControlTestResult {
82
+ target: ControlSocketTarget;
83
+ ok: boolean;
84
+ latency_ms: number;
85
+ /** For a decision address: the verdict your server gave. */
86
+ verdict: 'allow' | 'deny' | null;
87
+ cause: ControlUnavailableCause | null;
88
+ /** Set by `verify`: the address is now in use. */
89
+ activated: boolean;
90
+ }
91
+ export interface ControlDecision {
92
+ id: string;
93
+ account_id: string | null;
94
+ agent_id: string | null;
95
+ action_type: string;
96
+ decider: ControlDecider;
97
+ verdict: ControlVerdict;
98
+ reason_code: string | null;
99
+ cause: string | null;
100
+ latency_ms: number;
101
+ charged: boolean;
102
+ request_digest: string;
103
+ /** The request as sent, for a refusal or an unreachable server, within its retention. */
104
+ request: Record<string, unknown> | null;
105
+ /** Which rule of a hosted policy refused (policy_id, policy_revision, section, rule, code, detail?): its side only, never a value from the call. Null otherwise. */
106
+ evidence: Record<string, unknown> | null;
107
+ created_at: string;
108
+ }
109
+ export interface ListControlDecisionsQuery {
110
+ /** 1 to 200; 50 when omitted. */
111
+ limit?: number;
112
+ account_id?: string;
113
+ verdict?: ControlVerdict;
114
+ /** An ISO timestamp: only decisions made before it, for the next page. */
115
+ before?: string;
116
+ }
117
+ export interface ListControlDecisionsResult {
118
+ decisions: ControlDecision[];
119
+ }
120
+ /** Changes a human approves first when the credential is not a dashboard session. */
121
+ export interface ControlSocketGovernedOptions {
122
+ /** The approval id from `GovernanceApprovalRequiredError`, once a human approved it. Call again with the same input. */
123
+ governanceApprovalId?: string;
124
+ }
125
+ /** The decisions made through the socket. Reads; never governed, never metered. */
126
+ export declare class ControlDecisionsService {
127
+ private readonly client;
128
+ constructor(client: HttpClient);
129
+ /** Decisions newest first, filtered by account or verdict; page back with `before`. */
130
+ list(query?: ListControlDecisionsQuery): Promise<ListControlDecisionsResult>;
131
+ /** One decision, with its request while it is within its retention. */
132
+ get(id: string): Promise<ControlDecision>;
133
+ }
134
+ /**
135
+ * Your control socket.
136
+ *
137
+ * @example
138
+ * ```ts
139
+ * const { secret } = await stack.controlSocket.setDecisionAddress({ url: 'https://control.example.com/decide' });
140
+ * // Store `secret` now: it is not shown again. Then run the setup check:
141
+ * const result = await stack.controlSocket.verify('decision');
142
+ * if (result.activated) console.log('your server now decides');
143
+ * ```
144
+ */
145
+ export declare class ControlSocketService {
146
+ private readonly client;
147
+ readonly decisions: ControlDecisionsService;
148
+ constructor(client: HttpClient);
149
+ /** The socket as configured, with who decides now. */
150
+ get(): Promise<ControlSocket>;
151
+ /**
152
+ * Set or change the decision address. The first call creates the signing
153
+ * secret and returns it once in `secret`. The address decides nothing until
154
+ * `verify('decision')` passes; the current one keeps deciding meanwhile.
155
+ * A governance action.
156
+ */
157
+ setDecisionAddress(input: SetDecisionAddressInput, options?: ControlSocketGovernedOptions): Promise<ControlAddressChange>;
158
+ /**
159
+ * Set or change the events address that receives your agents' record. The
160
+ * first call creates the signing secret and returns it once in `secret`.
161
+ * Run `verify('events')` to start delivery. A governance action.
162
+ */
163
+ setEventsAddress(input: SetEventsAddressInput, options?: ControlSocketGovernedOptions): Promise<ControlAddressChange>;
164
+ /**
165
+ * Remove the decision or events address. A governance action; clearing an
166
+ * address that is deciding is a loosening and its approval says so.
167
+ */
168
+ clear(target: ControlSocketTarget, options?: ControlSocketGovernedOptions): Promise<ControlSocket>;
169
+ /**
170
+ * The setup check: one real exchange with the address. When it passes, the
171
+ * address is put into use (`activated: true`). Switching from hosted
172
+ * controls to your own server is a governance action.
173
+ */
174
+ verify(target: ControlSocketTarget, options?: ControlSocketGovernedOptions): Promise<ControlTestResult>;
175
+ /** One test exchange with the address; nothing changes. */
176
+ test(target: ControlSocketTarget): Promise<ControlTestResult>;
177
+ /**
178
+ * Replace the signing secret. The new one is returned once; the old one
179
+ * keeps verifying for 24 hours. A governance action.
180
+ */
181
+ rotateSecret(target: ControlSocketTarget, options?: ControlSocketGovernedOptions): Promise<RotatedControlSecret>;
182
+ /**
183
+ * Switch between STACK's hosted controls and none. `hosted` needs controls
184
+ * on (`CONTROLS_NOT_ENABLED` otherwise). Turning controls off, or leaving
185
+ * your own server for hosted controls, is a governance action.
186
+ */
187
+ setMode(mode: ControlSocketMode, options?: ControlSocketGovernedOptions): Promise<ControlSocket>;
188
+ /**
189
+ * What happens when your own decision server does not answer in time: `'refuse'` (the default: the action is refused) or
190
+ * `'allow'` (it goes through). Only an answer that never came follows it: a forged or garbled answer, a blocked address and a
191
+ * server not verified or paused are refused whatever it says. `'allow'` loosens a control, so it is a governance action;
192
+ * `'refuse'` applies at once.
193
+ */
194
+ setOnUnavailable(onUnavailable: ControlOnUnavailable, options?: ControlSocketGovernedOptions): Promise<ControlSocket>;
195
+ /**
196
+ * Which action kinds are checked. `null` checks every kind, including kinds
197
+ * added later. Removing a kind is a governance action.
198
+ */
199
+ setCheckedTypes(types: readonly ControlActionType[] | null, options?: ControlSocketGovernedOptions): Promise<ControlSocket>;
200
+ }
201
+ //# sourceMappingURL=control-socket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-socket.d.ts","sourceRoot":"","sources":["../../src/services/control-socket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAiB/C,eAAO,MAAM,oBAAoB,6iBAmCvB,CAAC;AACX,8DAA8D;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,qCAAqC;AACrC,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,QAAQ,CAAC;AACxD,wEAAwE;AACxE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC1D,sFAAsF;AACtF,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACvE,+FAA+F;AAC/F,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAClD,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,YAAY,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC9E,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,aAAa,CAAC;AAC9D,0EAA0E;AAC1E,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,OAAO,CAAC;AACtD,MAAM,MAAM,uBAAuB,GAC/B,SAAS,GACT,aAAa,GACb,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AE,qBAAqB,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI3H;;;OAGG;IACG,KAAK,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC;IAIxG;;;;OAIG;IACG,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI7G,2DAA2D;IACrD,IAAI,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAInE;;;OAGG;IACG,YAAY,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAItH;;;;OAIG;IACG,OAAO,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC;IAItG;;;;;OAKG;IACG,gBAAgB,CAAC,aAAa,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC;IAI3H;;;OAGG;IACG,eAAe,CAAC,KAAK,EAAE,SAAS,iBAAiB,EAAE,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC;CAGlI"}
@@ -0,0 +1,165 @@
1
+ // The control socket: who decides for your agents' actions, and where their
2
+ // record is streamed. A decision address is your own server, asked to allow or
3
+ // refuse each checked action; an events address receives the whole record,
4
+ // signed. Both sign with a Standard Webhooks secret that is shown once, when
5
+ // it is created or rotated (see `verifyControlSocketRequest` and
6
+ // `signControlSocketAnswer` for the server side).
7
+ //
8
+ // Every change is an owner or admin decision and never available to an agent.
9
+ // An address change, a rotation and anything that loosens (clearing an
10
+ // enforcing decision address, unchecking an action kind, turning hosted
11
+ // controls off or switching away from your own server) is a governance action:
12
+ // without a dashboard session it throws `GovernanceApprovalRequiredError`
13
+ // first; once a person approves at its link, send the same call again with its
14
+ // `approvalId`. Tightening applies at once. None of it is metered.
15
+ export const CONTROL_ACTION_TYPES = [
16
+ 'model.call',
17
+ 'proxy.call',
18
+ 'tool.run',
19
+ 'email.send',
20
+ 'sms.send',
21
+ 'telegram.send',
22
+ 'call.start',
23
+ 'call.answer',
24
+ 'meeting.join',
25
+ 'browser.session.start',
26
+ 'browser.navigate',
27
+ 'card.checkout',
28
+ 'wallet.payment',
29
+ 'workspace.exec',
30
+ 'account.open',
31
+ 'dropoff.create',
32
+ 'dropoff.deposit',
33
+ 'a2a.send',
34
+ 'skill.invoke',
35
+ 'passport.delegate',
36
+ 'wake.deliver',
37
+ 'drive.upload',
38
+ 'drive.share',
39
+ 'memory.write',
40
+ 'memory.delete',
41
+ 'brain.add',
42
+ 'site.publish',
43
+ 'payment.request',
44
+ 'letter.send',
45
+ 'post.scan',
46
+ 'post.forward',
47
+ 'post.shred',
48
+ 'making.quote',
49
+ 'making.order',
50
+ ];
51
+ const seg = encodeURIComponent;
52
+ function governed(options) {
53
+ return options?.governanceApprovalId ? { headers: { 'X-Governance-Approval': options.governanceApprovalId } } : undefined;
54
+ }
55
+ /** The decisions made through the socket. Reads; never governed, never metered. */
56
+ export class ControlDecisionsService {
57
+ client;
58
+ constructor(client) {
59
+ this.client = client;
60
+ }
61
+ /** Decisions newest first, filtered by account or verdict; page back with `before`. */
62
+ async list(query = {}) {
63
+ return this.client.get('/v1/control-decisions', {
64
+ limit: query.limit !== undefined ? String(query.limit) : undefined,
65
+ account_id: query.account_id,
66
+ verdict: query.verdict,
67
+ before: query.before,
68
+ });
69
+ }
70
+ /** One decision, with its request while it is within its retention. */
71
+ async get(id) {
72
+ return this.client.get(`/v1/control-decisions/${seg(id)}`);
73
+ }
74
+ }
75
+ /**
76
+ * Your control socket.
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const { secret } = await stack.controlSocket.setDecisionAddress({ url: 'https://control.example.com/decide' });
81
+ * // Store `secret` now: it is not shown again. Then run the setup check:
82
+ * const result = await stack.controlSocket.verify('decision');
83
+ * if (result.activated) console.log('your server now decides');
84
+ * ```
85
+ */
86
+ export class ControlSocketService {
87
+ client;
88
+ decisions;
89
+ constructor(client) {
90
+ this.client = client;
91
+ this.decisions = new ControlDecisionsService(client);
92
+ }
93
+ /** The socket as configured, with who decides now. */
94
+ async get() {
95
+ return this.client.get('/v1/control-socket');
96
+ }
97
+ /**
98
+ * Set or change the decision address. The first call creates the signing
99
+ * secret and returns it once in `secret`. The address decides nothing until
100
+ * `verify('decision')` passes; the current one keeps deciding meanwhile.
101
+ * A governance action.
102
+ */
103
+ async setDecisionAddress(input, options) {
104
+ return this.client.put('/v1/control-socket/decision', { url: input.url, ...(input.timeout_ms !== undefined ? { timeout_ms: input.timeout_ms } : {}) }, governed(options));
105
+ }
106
+ /**
107
+ * Set or change the events address that receives your agents' record. The
108
+ * first call creates the signing secret and returns it once in `secret`.
109
+ * Run `verify('events')` to start delivery. A governance action.
110
+ */
111
+ async setEventsAddress(input, options) {
112
+ return this.client.put('/v1/control-socket/events', { url: input.url }, governed(options));
113
+ }
114
+ /**
115
+ * Remove the decision or events address. A governance action; clearing an
116
+ * address that is deciding is a loosening and its approval says so.
117
+ */
118
+ async clear(target, options) {
119
+ return this.client.delete(`/v1/control-socket/${seg(target)}`, governed(options));
120
+ }
121
+ /**
122
+ * The setup check: one real exchange with the address. When it passes, the
123
+ * address is put into use (`activated: true`). Switching from hosted
124
+ * controls to your own server is a governance action.
125
+ */
126
+ async verify(target, options) {
127
+ return this.client.post(`/v1/control-socket/${seg(target)}/verify`, undefined, governed(options));
128
+ }
129
+ /** One test exchange with the address; nothing changes. */
130
+ async test(target) {
131
+ return this.client.post(`/v1/control-socket/${seg(target)}/test`);
132
+ }
133
+ /**
134
+ * Replace the signing secret. The new one is returned once; the old one
135
+ * keeps verifying for 24 hours. A governance action.
136
+ */
137
+ async rotateSecret(target, options) {
138
+ return this.client.post(`/v1/control-socket/${seg(target)}/secret/rotate`, undefined, governed(options));
139
+ }
140
+ /**
141
+ * Switch between STACK's hosted controls and none. `hosted` needs controls
142
+ * on (`CONTROLS_NOT_ENABLED` otherwise). Turning controls off, or leaving
143
+ * your own server for hosted controls, is a governance action.
144
+ */
145
+ async setMode(mode, options) {
146
+ return this.client.put('/v1/control-socket/mode', { mode }, governed(options));
147
+ }
148
+ /**
149
+ * What happens when your own decision server does not answer in time: `'refuse'` (the default: the action is refused) or
150
+ * `'allow'` (it goes through). Only an answer that never came follows it: a forged or garbled answer, a blocked address and a
151
+ * server not verified or paused are refused whatever it says. `'allow'` loosens a control, so it is a governance action;
152
+ * `'refuse'` applies at once.
153
+ */
154
+ async setOnUnavailable(onUnavailable, options) {
155
+ return this.client.put('/v1/control-socket/on-unavailable', { on_unavailable: onUnavailable }, governed(options));
156
+ }
157
+ /**
158
+ * Which action kinds are checked. `null` checks every kind, including kinds
159
+ * added later. Removing a kind is a governance action.
160
+ */
161
+ async setCheckedTypes(types, options) {
162
+ return this.client.put('/v1/control-socket/checked-types', { types: types === null ? null : [...types] }, governed(options));
163
+ }
164
+ }
165
+ //# sourceMappingURL=control-socket.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-socket.js","sourceRoot":"","sources":["../../src/services/control-socket.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,+EAA+E;AAC/E,2EAA2E;AAC3E,6EAA6E;AAC7E,iEAAiE;AACjE,kDAAkD;AAClD,EAAE;AACF,8EAA8E;AAC9E,uEAAuE;AACvE,wEAAwE;AACxE,+EAA+E;AAC/E,0EAA0E;AAC1E,+EAA+E;AAC/E,mEAAmE;AAEnE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,YAAY;IACZ,UAAU;IACV,eAAe;IACf,YAAY;IACZ,aAAa;IACb,cAAc;IACd,uBAAuB;IACvB,kBAAkB;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ialService {
4
4
  private client;
5
5
  constructor(client: HttpClient);
6
- get(provider: string): Promise<CredentialResult>;
6
+ /** The credential of a provider. When the provider has several connections, `connection` (a name, any case, or an `scon_` id) picks one. */
7
+ get(provider: string, connection?: string): Promise<CredentialResult>;
7
8
  getByConnection(connectionId: string): Promise<CredentialResult>;
8
9
  }
9
10
  //# sourceMappingURL=credentials.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/services/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,qBAAa,iBAAiB;IAChB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEhC,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIhD,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGvE"}
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/services/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,qBAAa,iBAAiB;IAChB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC,4IAA4I;IACtI,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIrE,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGvE"}
@@ -3,8 +3,9 @@ export class CredentialService {
3
3
  constructor(client) {
4
4
  this.client = client;
5
5
  }
6
- async get(provider) {
7
- return this.client.get(`/v1/credentials/${provider}`);
6
+ /** The credential of a provider. When the provider has several connections, `connection` (a name, any case, or an `scon_` id) picks one. */
7
+ async get(provider, connection) {
8
+ return this.client.get(`/v1/credentials/${provider}`, connection !== undefined ? { connection } : undefined);
8
9
  }
9
10
  async getByConnection(connectionId) {
10
11
  return this.client.get(`/v1/credentials/by-connection/${connectionId}`);
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/services/credentials.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,iBAAiB;IACR;IAApB,YAAoB,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAE1C,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmB,mBAAmB,QAAQ,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,YAAoB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmB,iCAAiC,YAAY,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF"}
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/services/credentials.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,iBAAiB;IACR;IAApB,YAAoB,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAE1C,4IAA4I;IAC5I,KAAK,CAAC,GAAG,CAAC,QAAgB,EAAE,UAAmB;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmB,mBAAmB,QAAQ,EAAE,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACjI,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,YAAoB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmB,iCAAiC,YAAY,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF"}
@@ -4,7 +4,7 @@ import type { DetectorConfig, DetectorConfigUpsert } from '../types.js';
4
4
  * Per-operator detector customization (L7 of STACK's prompt-injection
5
5
  * defense stack).
6
6
  *
7
- * Operators on studio+ can customize how each detector behaves for
7
+ * A customer with controls can customize how each detector behaves for
8
8
  * their traffic:
9
9
  * - **custom_patterns** — additional regex specific to your domain
10
10
  * (e.g. `"ignore the rules of our employee handbook"`)
@@ -14,9 +14,11 @@ import type { DetectorConfig, DetectorConfigUpsert } from '../types.js';
14
14
  * - **enabled** — master switch (set false to disable the detector
15
15
  * entirely for this operator)
16
16
  *
17
- * Reads are open to all tiers (returns 404 when no row exists, which
18
- * means the detector is running on built-in defaults). Writes require
19
- * the studio tier or above and return 403 otherwise.
17
+ * Reads are open (404 when no row exists, which means the detector is
18
+ * running on built-in defaults). Writes are a controls feature: they
19
+ * apply at once with no approval, and without controls they throw a
20
+ * `StackError` with code `CONTROLS_REQUIRED` (402). A self-managed
21
+ * install has every controls feature.
20
22
  *
21
23
  * @example
22
24
  * ```ts
@@ -42,18 +44,17 @@ export declare class DetectorConfigService {
42
44
  * absence means the detector is running on built-in defaults. */
43
45
  get(detectorKey: string): Promise<DetectorConfig>;
44
46
  /** Upsert this operator's customization for the named detector.
45
- * Returns the row as stored. studio+ only. */
46
- /** pass governanceApprovalId (gvr_*) when retrying after a
47
- * 403 GOVERNANCE_APPROVAL_REQUIRED, once a human approved it in the
48
- * dashboard at /governance/approvals. */
47
+ * Returns the row as stored. Needs controls (402 CONTROLS_REQUIRED).
48
+ * `governanceApprovalId` is no longer needed (a change asks no
49
+ * approval); it is still accepted so existing calls keep working. */
49
50
  upsert(detectorKey: string, input: DetectorConfigUpsert, opts?: {
50
51
  governanceApprovalId?: string;
51
52
  }): Promise<DetectorConfig>;
52
53
  /** Reset this detector to defaults — deletes the row so the next
53
- * scan reads built-in patterns only. studio+ only. */
54
- /** pass governanceApprovalId (gvr_*) when retrying after a
55
- * 403 GOVERNANCE_APPROVAL_REQUIRED, once a human approved it in the
56
- * dashboard at /governance/approvals. */
54
+ * scan reads built-in patterns only. Needs controls (402
55
+ * CONTROLS_REQUIRED). `governanceApprovalId` is no longer needed (a
56
+ * reset asks no approval); it is still accepted so existing calls keep
57
+ * working. */
57
58
  reset(detectorKey: string, opts?: {
58
59
  governanceApprovalId?: string;
59
60
  }): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"detector-config.d.ts","sourceRoot":"","sources":["../../src/services/detector-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,qBAAqB;IACpB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;uDACmD;IAC7C,IAAI,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,cAAc,EAAE,CAAA;KAAE,CAAC;IAIpD;qEACiE;IAC3D,GAAG,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAIvD;kDAC8C;IAC9C;;6CAEyC;IACnC,MAAM,CACV,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,oBAAoB,EAC3B,IAAI,CAAC,EAAE;QAAE,oBAAoB,CAAC,EAAE,MAAM,CAAA;KAAE,GACvC,OAAO,CAAC,cAAc,CAAC;IAQ1B;0DACsD;IACtD;;6CAEyC;IACnC,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,oBAAoB,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAM1F"}
1
+ {"version":3,"file":"detector-config.d.ts","sourceRoot":"","sources":["../../src/services/detector-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,qBAAqB;IACpB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;uDACmD;IAC7C,IAAI,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,cAAc,EAAE,CAAA;KAAE,CAAC;IAIpD;qEACiE;IAC3D,GAAG,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAIvD;;;yEAGqE;IAC/D,MAAM,CACV,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,oBAAoB,EAC3B,IAAI,CAAC,EAAE;QAAE,oBAAoB,CAAC,EAAE,MAAM,CAAA;KAAE,GACvC,OAAO,CAAC,cAAc,CAAC;IAQ1B;;;;kBAIc;IACR,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,oBAAoB,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAM1F"}
@@ -2,7 +2,7 @@
2
2
  * Per-operator detector customization (L7 of STACK's prompt-injection
3
3
  * defense stack).
4
4
  *
5
- * Operators on studio+ can customize how each detector behaves for
5
+ * A customer with controls can customize how each detector behaves for
6
6
  * their traffic:
7
7
  * - **custom_patterns** — additional regex specific to your domain
8
8
  * (e.g. `"ignore the rules of our employee handbook"`)
@@ -12,9 +12,11 @@
12
12
  * - **enabled** — master switch (set false to disable the detector
13
13
  * entirely for this operator)
14
14
  *
15
- * Reads are open to all tiers (returns 404 when no row exists, which
16
- * means the detector is running on built-in defaults). Writes require
17
- * the studio tier or above and return 403 otherwise.
15
+ * Reads are open (404 when no row exists, which means the detector is
16
+ * running on built-in defaults). Writes are a controls feature: they
17
+ * apply at once with no approval, and without controls they throw a
18
+ * `StackError` with code `CONTROLS_REQUIRED` (402). A self-managed
19
+ * install has every controls feature.
18
20
  *
19
21
  * @example
20
22
  * ```ts
@@ -44,18 +46,17 @@ export class DetectorConfigService {
44
46
  return this.client.get(`/v1/detectors/${encodeURIComponent(detectorKey)}/config`);
45
47
  }
46
48
  /** Upsert this operator's customization for the named detector.
47
- * Returns the row as stored. studio+ only. */
48
- /** pass governanceApprovalId (gvr_*) when retrying after a
49
- * 403 GOVERNANCE_APPROVAL_REQUIRED, once a human approved it in the
50
- * dashboard at /governance/approvals. */
49
+ * Returns the row as stored. Needs controls (402 CONTROLS_REQUIRED).
50
+ * `governanceApprovalId` is no longer needed (a change asks no
51
+ * approval); it is still accepted so existing calls keep working. */
51
52
  async upsert(detectorKey, input, opts) {
52
53
  return this.client.put(`/v1/detectors/${encodeURIComponent(detectorKey)}/config`, input, opts?.governanceApprovalId ? { headers: { 'X-Governance-Approval': opts.governanceApprovalId } } : undefined);
53
54
  }
54
55
  /** Reset this detector to defaults — deletes the row so the next
55
- * scan reads built-in patterns only. studio+ only. */
56
- /** pass governanceApprovalId (gvr_*) when retrying after a
57
- * 403 GOVERNANCE_APPROVAL_REQUIRED, once a human approved it in the
58
- * dashboard at /governance/approvals. */
56
+ * scan reads built-in patterns only. Needs controls (402
57
+ * CONTROLS_REQUIRED). `governanceApprovalId` is no longer needed (a
58
+ * reset asks no approval); it is still accepted so existing calls keep
59
+ * working. */
59
60
  async reset(detectorKey, opts) {
60
61
  await this.client.delete(`/v1/detectors/${encodeURIComponent(detectorKey)}/config`, opts?.governanceApprovalId ? { headers: { 'X-Governance-Approval': opts.governanceApprovalId } } : undefined);
61
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"detector-config.js","sourceRoot":"","sources":["../../src/services/detector-config.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,OAAO,qBAAqB;IACZ;IAApB,YAAoB,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAE1C;uDACmD;IACnD,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,MA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