@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
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type ClientOptions } from './client.js';
1
+ import { HttpClient, type ClientOptions } from './client.js';
2
2
  import { AgentService } from './services/agents.js';
3
3
  import { PassportService } from './services/passports.js';
4
4
  import { ServiceService } from './services/services.js';
@@ -13,11 +13,14 @@ import { SecurityEventService } from './services/security-events.js';
13
13
  import { ProxyService } from './services/proxy.js';
14
14
  import { ScanService } from './services/scan.js';
15
15
  import { UsageService } from './services/usage.js';
16
+ import { BillingService } from './services/billing.js';
17
+ import { GovernanceService } from './services/governance.js';
16
18
  import { AuditService } from './services/audit.js';
17
19
  import { DetectorConfigService } from './services/detector-config.js';
18
20
  import { PiiConfigService } from './services/pii-config.js';
19
21
  import { IntentsService } from './services/intents.js';
20
22
  import { MissionsService } from './services/missions.js';
23
+ export { MISSION_RECIPIENT_ANY_PATH } from './services/missions.js';
21
24
  export { createAgentTokenProvider } from './agent-auth.js';
22
25
  export { delegationScopesFromToken } from './delegation-scopes.js';
23
26
  import { FleetsService } from './services/fleets.js';
@@ -25,8 +28,27 @@ export * from './services/fleets.js';
25
28
  import { EvidencePacksService } from './services/evidence-packs.js';
26
29
  import { LlmService } from './services/llm.js';
27
30
  import { InboundWebhookService } from './services/inbound-webhooks.js';
28
- import { PartnerTenantsService, type MintOutboundPassportInput, type MintOutboundPassportResult } from './services/partner-tenants.js';
29
- import { PartnerConnectService } from './services/partner-connect.js';
31
+ import { AccountsService } from './services/accounts.js';
32
+ import { ChatChannelsService } from './services/chat-channels.js';
33
+ import { DriveService } from './services/drive.js';
34
+ import { MemoryService } from './services/memory.js';
35
+ import { BrainService } from './services/brain.js';
36
+ import { FlaggedContentService } from './services/flagged-content.js';
37
+ import { CatalogueService } from './services/catalogue.js';
38
+ import { WebsiteService } from './services/website.js';
39
+ import { AgentIdentityService } from './services/agent-identity.js';
40
+ import { PaymentsService } from './services/payments.js';
41
+ import { PostService } from './services/post.js';
42
+ import { ControlSocketService } from './services/control-socket.js';
43
+ import { NetworkService } from './services/network.js';
44
+ import { ControlPoliciesService, ControlReviewsService } from './services/control-policies.js';
45
+ import { WakesService } from './services/wake.js';
46
+ import { MessageAccessService } from './services/message-access.js';
47
+ import { TrustService } from './services/trust.js';
48
+ import { CalendarService } from './services/calendar.js';
49
+ import { MeetingsService } from './services/meetings.js';
50
+ import { RentAHumanService } from './services/rentahuman.js';
51
+ import { PartnerAccountsService, type MintOutboundPassportInput, type MintOutboundPassportResult } from './services/partner-accounts.js';
30
52
  import { PassportSession } from './services/passport-session.js';
31
53
  import type { IssuePassportInput } from './types.js';
32
54
  import { AuthorityService } from './services/authority.js';
@@ -48,6 +70,10 @@ export declare class Stack {
48
70
  readonly proxy: ProxyService;
49
71
  readonly scan: ScanService;
50
72
  readonly usage: UsageService;
73
+ /** Agent-account subscriptions: platform and controls checkout, status, resume without controls. */
74
+ readonly billing: BillingService;
75
+ /** Read one governance approval: its status, the hash of the change it covers and its link. */
76
+ readonly governance: GovernanceService;
51
77
  readonly audit: AuditService;
52
78
  readonly detectorConfig: DetectorConfigService;
53
79
  readonly piiConfig: PiiConfigService;
@@ -67,28 +93,71 @@ export declare class Stack {
67
93
  * into the provider's webhook config. STACK runs the detector on
68
94
  * inbound content before forwarding to a configurable downstream URL. */
69
95
  readonly inboundWebhooks: InboundWebhookService;
96
+ /** Agent accounts: open, read, close; messages, mail and texts, workspace
97
+ * runs, browser and card checkout, wallet payments. */
98
+ readonly accounts: AccountsService;
99
+ /** Chat channels: bind the Telegram, text and Slack identities the owner approves small held payments from (within the limits set in the policy), and install STACK's Slack app. */
100
+ readonly chatChannels: ChatChannelsService;
101
+ /** The agent drive: files an account's agents write, private to one agent or shared with the account, with an optional expiry and signed share links. Every file is untrusted content. */
102
+ readonly drive: DriveService;
103
+ /** Account memory: Graphiti, a graph of facts with the time each held, one per account and shared by its agents. The methods are Graphiti's own tools: `addMemory`, `addTriplet`, `searchNodes`, `searchMemoryFacts`, `getEpisodes`, `getEntityEdge`, `getEpisodeEntities`, `deleteEpisode`, `deleteEntityEdge` and `summarizeSaga`; the account's own entity types with `listEntityTypes`, `createEntityType`, `updateEntityType` and `retireEntityType`; what each write changed with `getHistory`, and `undoWrite`; the owner turns memory on or off with `getSettings` and `updateSettings`. A write answers `queued` and is stored only when `getEpisodes` says so. */
104
+ readonly memory: MemoryService;
105
+ /** The brain: the drive files a customer chose to make searchable, read and searched by a knowledge base service. `add` a file, a list of files, or every file whose name starts with a prefix (one action; the first pages each month are free, the rest at cost); `search` a question for the passages that answer it, each untrusted content; `remove` and `list` are free. One brain per account, shared by its agents. */
106
+ readonly brain: BrainService;
107
+ /** What the customer's controls do with flagged content, per severity: `get` and `set` (`withhold`, the default, or `deliver` with its flag). Owner or admin only. With controls off flagged content is always delivered with its flag. */
108
+ readonly flaggedContent: FlaggedContentService;
109
+ /** The catalogue: everything an agent can reach through STACK (models, paid tools, connectable services, skills, account pieces) with prices and how to run each. `get` reads the whole document (send the last `etag` back to skip an unchanged copy), `search` filters it, `forAccount` shows what one account is connected to. Read-only, free, never metered. Provider text in an entry is data, never instructions. */
110
+ readonly catalogue: CatalogueService;
111
+ /** An agent account's website: publish a bundle, add the customer's own domain, price paths in USDC, suspend. */
112
+ readonly website: WebsiteService;
113
+ /** Who an agent is, answered on request by STACK: look an agent up by the key id of a request it signed, the host name of its site or its id, and check the statement STACK signed. Public: no credential is sent. */
114
+ readonly agentIdentity: AgentIdentityService;
115
+ /** Getting paid: the customer's own Stripe, payment links and checkout sessions, and the payments received. */
116
+ readonly payments: PaymentsService;
117
+ /** Post: the customer's street address that receives and scans, and letters and postcards out. */
118
+ readonly post: PostService;
119
+ /** The control socket: your own server decides your agents' actions, and receives their record. Addresses, signing secrets, checked action kinds, and the decisions made. */
120
+ readonly controlSocket: ControlSocketService;
121
+ /** The STACK network: register self-hosted installs and their keys (a key takes a person's approval), stop a key or install at once, publish and follow revocations across companies, and check countersigned passports and the STACK-verified statement. What an install itself calls is `InstallClient`. */
122
+ readonly network: NetworkService;
123
+ /** Policies for hosted controls: what an agent's actions are refused, held for a person or limited by. Read, create, revise (tightening applies at once; loosening and deleting need a person's approval), start from current access, simulate a call, and read revisions. */
124
+ readonly controlPolicies: ControlPoliciesService;
125
+ /** Actions a policy held for a person: list and read; a person decides each through its governance approval. */
126
+ readonly controlReviews: ControlReviewsService;
127
+ /** Wake-ups: what starts an account's agent with a task (its mail, texts, voicemail, call transcripts, a call ringing on its number, payments, accepted invites and schedule), with the rules, quiet hours, rate limit and delivery order that guard it, and the agent's queue. */
128
+ readonly wakes: WakesService;
129
+ /** The trust switch: whether the account's agents ask first (`ask_first`) or are trusted to act (`trust_agents`), for the account and per agent. A new account starts on `trust_agents`. Owner or admin only. */
130
+ readonly trust: TrustService;
131
+ /** Message access: whether the account's agents read the messages of every message account of the customer or only their own (`read_teammates`), and whether they may send at all (`messages_read_only`), for the account and per agent. Owner or admin only. */
132
+ readonly messageAccess: MessageAccessService;
133
+ /** The agent's calendar: its own events, the invites sent to its address, the agenda and a private read-only feed. */
134
+ readonly calendar: CalendarService;
135
+ /** Meetings: the agent in the room of one of its own calendar events (made with `meeting: true`): join, hear what participants say and write, speak, write in the chat and leave, by calls or a live stream. STACK runs no model; the time is charged at cost. */
136
+ readonly meetings: MeetingsService;
137
+ /** RentAHuman for the agent: open an account with its own wallet (`join`, `joinWithKey`), top its wallet up (`fund`, `fundWithKey`) and read the connection (`get`). The key never reaches the agent. Call RentAHuman through `proxy.serviceTools('rentahuman')` and `proxy.serviceCallTool('rentahuman', tool, args)`, including its conversations with people (`send_message`, `get_conversation`, `list_conversations`); a person applying, delivering or writing wakes the agent (source `service_event`). */
138
+ readonly rentahuman: RentAHumanService;
70
139
  /** Partner surface (is_partner=true operators only).
71
140
  *
72
- * "Connect with STACK": `connect(email)` + connection
73
- * list/get/revoke/rotate. The account is USER-OWNED (real email); you
74
- * hold an sk_grant_* scoped token.
75
- *
76
- * `tenants` — white-label deployment, the alternative to Connect: you
77
- * provision and manage an isolated child operator per customer, and
78
- * every tenant draws from your single allowance and wallet.
79
- * @see PartnerConnectService
80
- * @see PartnerTenantsService
141
+ * `accounts` — partner-managed accounts: you open an account for each
142
+ * customer by your own reference, the account draws from your single
143
+ * allowance and wallet, and you can invite the customer to see it and
144
+ * release it to them when the relationship ends.
145
+ * @see PartnerAccountsService
81
146
  */
82
147
  readonly partner: {
83
- /** connect(email) → { grant_token... }. One call. */
84
- connect: PartnerConnectService['connect'];
85
- connections: PartnerConnectService;
86
- /** White-label tenants: partner-managed child operators that share
87
- * your plan, allowance and wallet. */
88
- tenants: PartnerTenantsService;
148
+ /** Partner-managed accounts: they share your plan, allowance and wallet
149
+ * until you release them to the customer. */
150
+ accounts: PartnerAccountsService;
89
151
  mintOutboundPassport(tenantId: string, agentId: string, input: MintOutboundPassportInput): Promise<MintOutboundPassportResult>;
90
152
  };
91
- constructor(options?: ClientOptions);
153
+ constructor(options?: ClientOptions | HttpClient);
154
+ /**
155
+ * The same SDK, with `X-Control-Ref: <ref>` on every call it makes. When a policy holds a call for the owner, the
156
+ * refusal (`ControlDeniedError`, reason `review_required`) names a ref in `retry.ref`; once the owner has approved,
157
+ * make the identical call again through this: `stack.withControlRef(ref).accounts.sendEmail(...)`. It shares this
158
+ * SDK's credential and server, and is meant for that one call.
159
+ */
160
+ withControlRef(ref: string): Stack;
92
161
  /**
93
162
  * issue a passport and return a `PassportSession` that
94
163
  * holds the token and auto-refreshes ~60s before expiry. Pass the
@@ -114,21 +183,54 @@ export declare class Stack {
114
183
  */
115
184
  issuePassport(input: IssuePassportInput): Promise<PassportSession>;
116
185
  }
117
- export type { OpenMissionInput, OpenMissionResult, OperatorMissionSpec, OperatorMissionStartInput, OperatorMissionStartResult, CompleteMissionInput, CompleteMissionResult, RevokeMissionInput, RevokeMissionResult, MissionRecord, FleetUsage, MissionTerminalState, MissionRevokeReason, MissionCapName, MissionCapBehavior, ListMissionsQuery, ListMissionsResult, ReplayedEventKind, ReplayedEvent, ReplayedTimeline, IncidentClassification, DossierDecisionEntry, DossierAlertEntry, CreateDossierInput, CreateDossierResult, DossierClaim, DossierEnvelope, ListDossiersResult, OperatorReviewAuthor, OperatorReviewClaim, OperatorReviewEnvelope, ListOperatorReviewsResult, } from './services/missions.js';
186
+ export type { OpenMissionInput, OpenMissionResult, MissionRecipientPin, MissionRecipientsInput, OperatorMissionSpec, OperatorMissionStartInput, OperatorMissionStartResult, CompleteMissionInput, CompleteMissionResult, RevokeMissionInput, RevokeMissionResult, MissionRecord, FleetUsage, MissionTerminalState, MissionRevokeReason, MissionCapName, MissionCapBehavior, CoverageCapPeriod, MissionReviewDecision, MissionReviewInput, MissionReviewResult, ListMissionsQuery, ListMissionsResult, ReplayedEventKind, ReplayedEvent, ReplayedTimeline, IncidentClassification, DossierDecisionEntry, DossierAlertEntry, CreateDossierInput, CreateDossierResult, DossierClaim, DossierEnvelope, ListDossiersResult, OperatorReviewAuthor, OperatorReviewClaim, OperatorReviewEnvelope, ListOperatorReviewsResult, } from './services/missions.js';
118
187
  export type { EvidencePackScopeKind, EvidencePackScope, ExportPackInput, ExportPackResult, EvidencePackClaim, EvidencePackManifest, PackListItem, ListPacksQuery, ListPacksResult, GetPackResult, } from './services/evidence-packs.js';
119
188
  export type { IntentInput, SimulationCost, SimulationDiagnostics, SimulateInput, SimulateResult, SubmitInput, SubmitResult, PendingApproval, DecisionResult, DecideInput, SubmitAndWaitResult, } from './services/intents.js';
120
- export { LlmService, type LlmCallOptions, type LlmProvider, type PassportInput, type AnthropicMessagesBody, type OpenAIChatCompletionsBody, type AnthropicStreamEvent, type OpenAIStreamEvent, type LlmUsageRow, type ListLlmUsageQueryInput, type ListLlmUsageResult, type SummaryLlmUsageQueryInput, type SummaryLlmUsageResult, type LlmUsageSummaryBucket, } from './services/llm.js';
189
+ export { LlmService, type LlmCallOptions, type LlmProvider, type PassportInput, type AnthropicMessagesBody, type OpenAIChatCompletionsBody, type LlmImageBody, type LlmImageResult, type OpenRouterMethod, type OpenRouterRequestOptions, type OpenRouterBytes, type AnthropicStreamEvent, type OpenAIStreamEvent, type LlmUsageRow, type ListLlmUsageQueryInput, type ListLlmUsageResult, type SummaryLlmUsageQueryInput, type SummaryLlmUsageResult, type LlmUsageSummaryBucket, } from './services/llm.js';
121
190
  export { PassportSession } from './services/passport-session.js';
122
191
  export type { InvokeSkillOptions } from './services/skills.js';
123
192
  export * from './services/authority.js';
124
193
  export { AUTHORITY_REQUEST_ID_HEADER, createAuthorityRequestId } from './authority-request.js';
194
+ export { generateAgentWalletKey, loadAgentWalletKey, signWalletPayment, walletPaymentAuthorizationPayload, WalletKeyInSandboxError, type AgentWalletKey, type WalletPaymentTarget, } from './wallet-key.js';
195
+ export { payX402, readX402Ask, x402TransferTypedData, x402PaymentHeader, x402WalletOf, assertPayableUrl, centsOfAtomic, X402PaymentError, type X402Ask, type X402Requirement, type X402Result, type X402Wallet, type X402StackPayment, type X402PaymentErrorCode, type PayX402Options, type TransferTypedData as X402TransferTypedData, } from './x402-pay.js';
196
+ export * from './services/rentahuman.js';
197
+ export { SERVICE_MCP_ENDPOINTS, serviceMcpEndpoint, serviceMcpUrlOf, serviceMcpRequest, toolListOf as serviceToolListOf, toolResultOf as serviceToolResultOf, type ServiceMcpTool, type ServiceToolList, type ServiceToolResult, } from './service-mcp.js';
198
+ export * from './services/accounts.js';
199
+ export * from './services/chat-channels.js';
200
+ export * from './services/drive.js';
201
+ export * from './services/memory.js';
202
+ export * from './services/brain.js';
203
+ export * from './services/flagged-content.js';
204
+ export * from './services/catalogue.js';
205
+ export * from './services/website.js';
206
+ export * from './services/agent-identity.js';
207
+ export { verifyAgentIdentity, AGENT_IDENTITY_AUDIENCE, AGENT_IDENTITY_TYP, type AgentIdentityClaims, type AgentIdentityFacts, type AgentIdentityKeySource, type AgentIdentityLookup, type AgentIdentityStatus, type AgentIdentityVerificationReason, type VerifyAgentIdentityOptions, } from './verify-agent-identity.js';
208
+ export * from './services/payments.js';
209
+ export * from './services/post.js';
210
+ export * from './services/making.js';
211
+ export * from './services/billing.js';
212
+ export * from './services/governance.js';
213
+ export * from './services/control-socket.js';
214
+ export * from './services/control-policies.js';
215
+ export * from './services/network.js';
216
+ export { InstallKey, installKeyThumbprint, passportDigest, INSTALL_PROOF_LIFETIME_SECONDS, NETWORK_AUDIENCE, type InstallPublicJwk, type NetworkProofAction, } from './network-install-key.js';
217
+ export { InstallClient, type ClassifyResult, type Countersignature, type FetchedRules, type InstallClientOptions, type IntentDeviationInput, type IntentDeviationResult, } from './network-install.js';
218
+ export { verifyCountersignedPassport, revocationCovers, verifyRevocationList, verifyVerifiedStatement, verifyDetectionRules, NetworkVerificationError, type CountersignatureClaims, type DetectionRule, type DetectionRulePack, type DetectionRuleSet, type NetworkKeySource, type NetworkVerificationReason, type RevocationEntry, type RevocationList, type VerifiedCountersignedPassport, type VerifiedStatement, type VerifyNetworkOptions, } from './verify-network.js';
219
+ export * from './services/wake.js';
220
+ export * from './services/message-access.js';
221
+ export * from './services/trust.js';
222
+ export type { AgentOverviewHandoff, AgentOverviewRow, AgentOverviewStatus, AgentsOverviewPage } from './services/agents.js';
223
+ export * from './services/calendar.js';
224
+ export * from './services/meetings.js';
225
+ export { verifyWebhook, createReplayGuard, webhookSecretKey, WEBHOOK_TOLERANCE_SECONDS, type ReplayGuard, type VerifiedWebhook, type VerifyWebhookInput, type WebhookFailure, } from './webhook.js';
226
+ export { verifyWakeWebhook, WAKE_WEBHOOK_TOLERANCE_SECONDS, type VerifiedWakeWebhook, type VerifyWakeWebhookInput, type WakeWebhookFailure, type WakeWebhookPayload, } from './wake-webhook.js';
227
+ export { verifyControlSocketRequest, signControlSocketAnswer, CONTROL_SOCKET_SIGNATURE_TOLERANCE_SECONDS, type ControlDecisionRequest, type ControlDecisionAnswer, type ControlSocketRequestFailure, type VerifiedControlSocketRequest, type VerifyControlSocketRequestInput, type SignControlSocketAnswerInput, type SignedControlSocketAnswer, } from './control-socket-server.js';
125
228
  export type { ClientOptions } from './client.js';
126
229
  export * from './types.js';
127
230
  export * from './errors.js';
128
231
  export { verifyPassportOffline, type VerifiedPassportClaims, type VerifyOfflineOptions, } from './verify-offline.js';
129
232
  export { verifyPassportHeader, stackPassportMiddleware, type VerifyPassportHeaderOptions, } from './services/passport-header-verify.js';
130
- export type { MintOutboundPassportInput, MintOutboundPassportResult, } from './services/partner-tenants.js';
131
- export { PartnerTenantsService, type CreateTenantInput, type CreateTenantResult, type TenantView, type TenantUsage, type RevokeTenantResult, type IssueTenantPassportInput, } from './services/partner-tenants.js';
132
- export { PartnerConnectService, type ConnectInput, type ConnectResult, type PartnerGrantView, type PartnerGrantStatus, type RevokeGrantResult, } from './services/partner-connect.js';
233
+ export type { MintOutboundPassportInput, MintOutboundPassportResult, } from './services/partner-accounts.js';
234
+ export { PartnerAccountsService, type CreateAccountInput, type CreateAccountResult, type AccountView, type AccountUsage, type AccountPlan, type RevokeAccountResult, type InviteAccountInput, type InviteAccountResult, type ReleaseAccountInput, type ReleaseRecord, type ReleaseStatus, type IssueAccountPassportInput, } from './services/partner-accounts.js';
133
235
  export { signClaimEnvelope, type ClaimEnvelope, type SignClaimEnvelopeOptions, } from './sign-claim.js';
134
236
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD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AAK,yBAAyB,GAC/B,MAAM,4BAA4B,CAAC;AAGpC,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAK5B,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,2BAA2B,GACjC,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,sBAAsB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,yBAAyB,GAC/B,MAAM,gCAAgC,CAAC;AAQxC,OAAO,EACL,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,wBAAwB,GAC9B,MAAM,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -13,11 +13,14 @@ import { SecurityEventService } from './services/security-events.js';
13
13
  import { ProxyService } from './services/proxy.js';
14
14
  import { ScanService } from './services/scan.js';
15
15
  import { UsageService } from './services/usage.js';
16
+ import { BillingService } from './services/billing.js';
17
+ import { GovernanceService } from './services/governance.js';
16
18
  import { AuditService } from './services/audit.js';
17
19
  import { DetectorConfigService } from './services/detector-config.js';
18
20
  import { PiiConfigService } from './services/pii-config.js';
19
21
  import { IntentsService } from './services/intents.js';
20
22
  import { MissionsService } from './services/missions.js';
23
+ export { MISSION_RECIPIENT_ANY_PATH } from './services/missions.js';
21
24
  export { createAgentTokenProvider } from './agent-auth.js';
22
25
  export { delegationScopesFromToken } from './delegation-scopes.js';
23
26
  import { FleetsService } from './services/fleets.js';
@@ -25,8 +28,27 @@ export * from './services/fleets.js';
25
28
  import { EvidencePacksService } from './services/evidence-packs.js';
26
29
  import { LlmService } from './services/llm.js';
27
30
  import { InboundWebhookService } from './services/inbound-webhooks.js';
28
- import { PartnerTenantsService, mintOutboundPassportImpl, } from './services/partner-tenants.js';
29
- import { PartnerConnectService } from './services/partner-connect.js';
31
+ import { AccountsService } from './services/accounts.js';
32
+ import { ChatChannelsService } from './services/chat-channels.js';
33
+ import { DriveService } from './services/drive.js';
34
+ import { MemoryService } from './services/memory.js';
35
+ import { BrainService } from './services/brain.js';
36
+ import { FlaggedContentService } from './services/flagged-content.js';
37
+ import { CatalogueService } from './services/catalogue.js';
38
+ import { WebsiteService } from './services/website.js';
39
+ import { AgentIdentityService } from './services/agent-identity.js';
40
+ import { PaymentsService } from './services/payments.js';
41
+ import { PostService } from './services/post.js';
42
+ import { ControlSocketService } from './services/control-socket.js';
43
+ import { NetworkService } from './services/network.js';
44
+ import { ControlPoliciesService, ControlReviewsService } from './services/control-policies.js';
45
+ import { WakesService } from './services/wake.js';
46
+ import { MessageAccessService } from './services/message-access.js';
47
+ import { TrustService } from './services/trust.js';
48
+ import { CalendarService } from './services/calendar.js';
49
+ import { MeetingsService } from './services/meetings.js';
50
+ import { RentAHumanService } from './services/rentahuman.js';
51
+ import { PartnerAccountsService, mintOutboundPassportImpl, } from './services/partner-accounts.js';
30
52
  import { PassportSession } from './services/passport-session.js';
31
53
  import { AuthorityService } from './services/authority.js';
32
54
  export class Stack {
@@ -47,6 +69,10 @@ export class Stack {
47
69
  proxy;
48
70
  scan;
49
71
  usage;
72
+ /** Agent-account subscriptions: platform and controls checkout, status, resume without controls. */
73
+ billing;
74
+ /** Read one governance approval: its status, the hash of the change it covers and its link. */
75
+ governance;
50
76
  audit;
51
77
  detectorConfig;
52
78
  piiConfig;
@@ -66,21 +92,60 @@ export class Stack {
66
92
  * into the provider's webhook config. STACK runs the detector on
67
93
  * inbound content before forwarding to a configurable downstream URL. */
68
94
  inboundWebhooks;
95
+ /** Agent accounts: open, read, close; messages, mail and texts, workspace
96
+ * runs, browser and card checkout, wallet payments. */
97
+ accounts;
98
+ /** Chat channels: bind the Telegram, text and Slack identities the owner approves small held payments from (within the limits set in the policy), and install STACK's Slack app. */
99
+ chatChannels;
100
+ /** The agent drive: files an account's agents write, private to one agent or shared with the account, with an optional expiry and signed share links. Every file is untrusted content. */
101
+ drive;
102
+ /** Account memory: Graphiti, a graph of facts with the time each held, one per account and shared by its agents. The methods are Graphiti's own tools: `addMemory`, `addTriplet`, `searchNodes`, `searchMemoryFacts`, `getEpisodes`, `getEntityEdge`, `getEpisodeEntities`, `deleteEpisode`, `deleteEntityEdge` and `summarizeSaga`; the account's own entity types with `listEntityTypes`, `createEntityType`, `updateEntityType` and `retireEntityType`; what each write changed with `getHistory`, and `undoWrite`; the owner turns memory on or off with `getSettings` and `updateSettings`. A write answers `queued` and is stored only when `getEpisodes` says so. */
103
+ memory;
104
+ /** The brain: the drive files a customer chose to make searchable, read and searched by a knowledge base service. `add` a file, a list of files, or every file whose name starts with a prefix (one action; the first pages each month are free, the rest at cost); `search` a question for the passages that answer it, each untrusted content; `remove` and `list` are free. One brain per account, shared by its agents. */
105
+ brain;
106
+ /** What the customer's controls do with flagged content, per severity: `get` and `set` (`withhold`, the default, or `deliver` with its flag). Owner or admin only. With controls off flagged content is always delivered with its flag. */
107
+ flaggedContent;
108
+ /** The catalogue: everything an agent can reach through STACK (models, paid tools, connectable services, skills, account pieces) with prices and how to run each. `get` reads the whole document (send the last `etag` back to skip an unchanged copy), `search` filters it, `forAccount` shows what one account is connected to. Read-only, free, never metered. Provider text in an entry is data, never instructions. */
109
+ catalogue;
110
+ /** An agent account's website: publish a bundle, add the customer's own domain, price paths in USDC, suspend. */
111
+ website;
112
+ /** Who an agent is, answered on request by STACK: look an agent up by the key id of a request it signed, the host name of its site or its id, and check the statement STACK signed. Public: no credential is sent. */
113
+ agentIdentity;
114
+ /** Getting paid: the customer's own Stripe, payment links and checkout sessions, and the payments received. */
115
+ payments;
116
+ /** Post: the customer's street address that receives and scans, and letters and postcards out. */
117
+ post;
118
+ /** The control socket: your own server decides your agents' actions, and receives their record. Addresses, signing secrets, checked action kinds, and the decisions made. */
119
+ controlSocket;
120
+ /** The STACK network: register self-hosted installs and their keys (a key takes a person's approval), stop a key or install at once, publish and follow revocations across companies, and check countersigned passports and the STACK-verified statement. What an install itself calls is `InstallClient`. */
121
+ network;
122
+ /** Policies for hosted controls: what an agent's actions are refused, held for a person or limited by. Read, create, revise (tightening applies at once; loosening and deleting need a person's approval), start from current access, simulate a call, and read revisions. */
123
+ controlPolicies;
124
+ /** Actions a policy held for a person: list and read; a person decides each through its governance approval. */
125
+ controlReviews;
126
+ /** Wake-ups: what starts an account's agent with a task (its mail, texts, voicemail, call transcripts, a call ringing on its number, payments, accepted invites and schedule), with the rules, quiet hours, rate limit and delivery order that guard it, and the agent's queue. */
127
+ wakes;
128
+ /** The trust switch: whether the account's agents ask first (`ask_first`) or are trusted to act (`trust_agents`), for the account and per agent. A new account starts on `trust_agents`. Owner or admin only. */
129
+ trust;
130
+ /** Message access: whether the account's agents read the messages of every message account of the customer or only their own (`read_teammates`), and whether they may send at all (`messages_read_only`), for the account and per agent. Owner or admin only. */
131
+ messageAccess;
132
+ /** The agent's calendar: its own events, the invites sent to its address, the agenda and a private read-only feed. */
133
+ calendar;
134
+ /** Meetings: the agent in the room of one of its own calendar events (made with `meeting: true`): join, hear what participants say and write, speak, write in the chat and leave, by calls or a live stream. STACK runs no model; the time is charged at cost. */
135
+ meetings;
136
+ /** RentAHuman for the agent: open an account with its own wallet (`join`, `joinWithKey`), top its wallet up (`fund`, `fundWithKey`) and read the connection (`get`). The key never reaches the agent. Call RentAHuman through `proxy.serviceTools('rentahuman')` and `proxy.serviceCallTool('rentahuman', tool, args)`, including its conversations with people (`send_message`, `get_conversation`, `list_conversations`); a person applying, delivering or writing wakes the agent (source `service_event`). */
137
+ rentahuman;
69
138
  /** Partner surface (is_partner=true operators only).
70
139
  *
71
- * "Connect with STACK": `connect(email)` + connection
72
- * list/get/revoke/rotate. The account is USER-OWNED (real email); you
73
- * hold an sk_grant_* scoped token.
74
- *
75
- * `tenants` — white-label deployment, the alternative to Connect: you
76
- * provision and manage an isolated child operator per customer, and
77
- * every tenant draws from your single allowance and wallet.
78
- * @see PartnerConnectService
79
- * @see PartnerTenantsService
140
+ * `accounts` — partner-managed accounts: you open an account for each
141
+ * customer by your own reference, the account draws from your single
142
+ * allowance and wallet, and you can invite the customer to see it and
143
+ * release it to them when the relationship ends.
144
+ * @see PartnerAccountsService
80
145
  */
81
146
  partner;
82
147
  constructor(options = {}) {
83
- this.client = new HttpClient(options);
148
+ this.client = options instanceof HttpClient ? options : new HttpClient(options);
84
149
  this.agents = new AgentService(this.client);
85
150
  this.passports = new PassportService(this.client);
86
151
  this.authority = new AuthorityService(this.client);
@@ -96,6 +161,8 @@ export class Stack {
96
161
  this.proxy = new ProxyService(this.client);
97
162
  this.scan = new ScanService(this.client);
98
163
  this.usage = new UsageService(this.client);
164
+ this.billing = new BillingService(this.client);
165
+ this.governance = new GovernanceService(this.client);
99
166
  this.audit = new AuditService(this.client);
100
167
  this.detectorConfig = new DetectorConfigService(this.client);
101
168
  this.piiConfig = new PiiConfigService(this.client);
@@ -105,15 +172,42 @@ export class Stack {
105
172
  this.evidencePacks = new EvidencePacksService(this.client);
106
173
  this.llm = new LlmService(this.client);
107
174
  this.inboundWebhooks = new InboundWebhookService(this.client);
108
- const partnerTenants = new PartnerTenantsService(this.client);
109
- const partnerConnect = new PartnerConnectService(this.client);
175
+ this.accounts = new AccountsService(this.client);
176
+ this.chatChannels = new ChatChannelsService(this.client);
177
+ this.drive = new DriveService(this.client);
178
+ this.memory = new MemoryService(this.client);
179
+ this.brain = new BrainService(this.client);
180
+ this.flaggedContent = new FlaggedContentService(this.client);
181
+ this.catalogue = new CatalogueService(this.client);
182
+ this.website = new WebsiteService(this.client);
183
+ this.agentIdentity = new AgentIdentityService(this.client);
184
+ this.payments = new PaymentsService(this.client);
185
+ this.post = new PostService(this.client);
186
+ this.controlSocket = new ControlSocketService(this.client);
187
+ this.network = new NetworkService(this.client);
188
+ this.controlPolicies = new ControlPoliciesService(this.client);
189
+ this.controlReviews = new ControlReviewsService(this.client);
190
+ this.wakes = new WakesService(this.client);
191
+ this.trust = new TrustService(this.client);
192
+ this.messageAccess = new MessageAccessService(this.client);
193
+ this.calendar = new CalendarService(this.client);
194
+ this.meetings = new MeetingsService(this.client);
195
+ this.rentahuman = new RentAHumanService(this.client);
196
+ const partnerAccounts = new PartnerAccountsService(this.client);
110
197
  this.partner = {
111
- connect: partnerConnect.connect.bind(partnerConnect),
112
- connections: partnerConnect,
113
- tenants: partnerTenants,
114
- mintOutboundPassport: (tenantId, agentId, input) => mintOutboundPassportImpl(partnerTenants, tenantId, agentId, input),
198
+ accounts: partnerAccounts,
199
+ mintOutboundPassport: (accountId, agentId, input) => mintOutboundPassportImpl(partnerAccounts, accountId, agentId, input),
115
200
  };
116
201
  }
202
+ /**
203
+ * The same SDK, with `X-Control-Ref: <ref>` on every call it makes. When a policy holds a call for the owner, the
204
+ * refusal (`ControlDeniedError`, reason `review_required`) names a ref in `retry.ref`; once the owner has approved,
205
+ * make the identical call again through this: `stack.withControlRef(ref).accounts.sendEmail(...)`. It shares this
206
+ * SDK's credential and server, and is meant for that one call.
207
+ */
208
+ withControlRef(ref) {
209
+ return new Stack(this.client.withControlRef(ref));
210
+ }
117
211
  /**
118
212
  * issue a passport and return a `PassportSession` that
119
213
  * holds the token and auto-refreshes ~60s before expiry. Pass the
@@ -147,6 +241,42 @@ export { LlmService, } from './services/llm.js';
147
241
  export { PassportSession } from './services/passport-session.js';
148
242
  export * from './services/authority.js';
149
243
  export { AUTHORITY_REQUEST_ID_HEADER, createAuthorityRequestId } from './authority-request.js';
244
+ export { generateAgentWalletKey, loadAgentWalletKey, signWalletPayment, walletPaymentAuthorizationPayload, WalletKeyInSandboxError, } from './wallet-key.js';
245
+ export { payX402, readX402Ask, x402TransferTypedData, x402PaymentHeader, x402WalletOf, assertPayableUrl, centsOfAtomic, X402PaymentError, } from './x402-pay.js';
246
+ export * from './services/rentahuman.js';
247
+ export { SERVICE_MCP_ENDPOINTS, serviceMcpEndpoint, serviceMcpUrlOf, serviceMcpRequest, toolListOf as serviceToolListOf, toolResultOf as serviceToolResultOf, } from './service-mcp.js';
248
+ export * from './services/accounts.js';
249
+ export * from './services/chat-channels.js';
250
+ export * from './services/drive.js';
251
+ export * from './services/memory.js';
252
+ export * from './services/brain.js';
253
+ export * from './services/flagged-content.js';
254
+ export * from './services/catalogue.js';
255
+ export * from './services/website.js';
256
+ export * from './services/agent-identity.js';
257
+ // The offline check of a statement that says who an agent is. It cannot see what changed after it was signed.
258
+ export { verifyAgentIdentity, AGENT_IDENTITY_AUDIENCE, AGENT_IDENTITY_TYP, } from './verify-agent-identity.js';
259
+ export * from './services/payments.js';
260
+ export * from './services/post.js';
261
+ export * from './services/making.js';
262
+ export * from './services/billing.js';
263
+ export * from './services/governance.js';
264
+ export * from './services/control-socket.js';
265
+ export * from './services/control-policies.js';
266
+ export * from './services/network.js';
267
+ // A self-hosted install's side of the network: its key, and what it calls with it.
268
+ export { InstallKey, installKeyThumbprint, passportDigest, INSTALL_PROOF_LIFETIME_SECONDS, NETWORK_AUDIENCE, } from './network-install-key.js';
269
+ export { InstallClient, } from './network-install.js';
270
+ // Offline checks of what STACK signs for the network. They cannot see a revocation made after issue.
271
+ export { verifyCountersignedPassport, revocationCovers, verifyRevocationList, verifyVerifiedStatement, verifyDetectionRules, NetworkVerificationError, } from './verify-network.js';
272
+ export * from './services/wake.js';
273
+ export * from './services/message-access.js';
274
+ export * from './services/trust.js';
275
+ export * from './services/calendar.js';
276
+ export * from './services/meetings.js';
277
+ export { verifyWebhook, createReplayGuard, webhookSecretKey, WEBHOOK_TOLERANCE_SECONDS, } from './webhook.js';
278
+ export { verifyWakeWebhook, WAKE_WEBHOOK_TOLERANCE_SECONDS, } from './wake-webhook.js';
279
+ export { verifyControlSocketRequest, signControlSocketAnswer, CONTROL_SOCKET_SIGNATURE_TOLERANCE_SECONDS, } from './control-socket-server.js';
150
280
  export * from './types.js';
151
281
  export * from './errors.js';
152
282
  // Offline passport verification — public-key crypto only, no network to
@@ -158,10 +288,8 @@ export { verifyPassportOffline, } from './verify-offline.js';
158
288
  // from request headers, resolves the deployment JWKS, verifies offline.
159
289
  // Pair with mintOutboundPassport on the sender side (touch point 4).
160
290
  export { verifyPassportHeader, stackPassportMiddleware, } from './services/passport-header-verify.js';
161
- // White-label tenants — partner-managed child operators on the partner's pool.
162
- export { PartnerTenantsService, } from './services/partner-tenants.js';
163
- // "Connect with STACK" partner surface.
164
- export { PartnerConnectService, } from './services/partner-connect.js';
291
+ // Partner-managed accounts, billed to the partner until released to the customer.
292
+ export { PartnerAccountsService, } from './services/partner-accounts.js';
165
293
  // Customer-side claim envelope signing for `customer_managed` agents
166
294
  // . Produces a COSE_Sign1 byte-identical to
167
295
  // what STACK's server-side ClaimSigner produces, so the same verify
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CA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0CAA0C,GAQ3C,MAAM,4BAA4B,CAAC;AAIpC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAE5B,wEAAwE;AACxE,uEAAuE;AACvE,uCAAuC;AACvC,OAAO,EACL,qBAAqB,GAGtB,MAAM,qBAAqB,CAAC;AAE7B,2DAA2D;AAC3D,sEAAsE;AACtE,wEAAwE;AACxE,qEAAqE;AACrE,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GAExB,MAAM,sCAAsC,CAAC;AAK9C,kFAAkF;AAClF,OAAO,EACL,sBAAsB,GAavB,MAAM,gCAAgC,CAAC;AAExC,qEAAqE;AACrE,4CAA4C;AAC5C,oEAAoE;AACpE,mEAAmE;AACnE,qEAAqE;AACrE,gDAAgD;AAChD,OAAO,EACL,iBAAiB,GAGlB,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,56 @@
1
+ /** Who an install's signed requests are addressed to. */
2
+ export declare const NETWORK_AUDIENCE = "stack:network";
3
+ export declare const NETWORK_INSTALL_PROOF_TYP = "stack-install+jwt";
4
+ export declare const NETWORK_INSTALL_POP_TYP = "stack-install-pop+jwt";
5
+ /** A proof lives this long by default, in seconds; the API accepts at most 120. */
6
+ export declare const INSTALL_PROOF_LIFETIME_SECONDS = 60;
7
+ /** An Ed25519 public key as the API takes it: these three members and nothing else. */
8
+ export interface InstallPublicJwk {
9
+ kty: 'OKP';
10
+ crv: 'Ed25519';
11
+ x: string;
12
+ }
13
+ /** What an install asks for. */
14
+ export type NetworkProofAction = 'rules' | 'classify' | 'countersign' | 'revoke';
15
+ /** RFC 7638 thumbprint of an Ed25519 public key: the key's id everywhere in the network. */
16
+ export declare function installKeyThumbprint(jwk: Pick<InstallPublicJwk, 'x'>): string;
17
+ /** The digest a countersignature binds: base64url SHA-256 of the passport's compact serialisation, byte for byte as issued. */
18
+ export declare function passportDigest(passport: string): string;
19
+ /**
20
+ * An install's signing key. Create one with {@link InstallKey.generate}, keep the
21
+ * private half in a file only the install can read ({@link InstallKey.toPem}), and
22
+ * register the public half with `stack.network.installs.registerKey`.
23
+ */
24
+ export declare class InstallKey {
25
+ private readonly privateKey;
26
+ /** The public key, as the API takes it. */
27
+ readonly publicJwk: InstallPublicJwk;
28
+ /** The key's thumbprint: its id in the network. */
29
+ readonly kid: string;
30
+ private constructor();
31
+ /** A new key pair. The private half exists only in the returned object: write it out with `toPem()`. */
32
+ static generate(): Promise<InstallKey>;
33
+ /** Load a key from its PKCS#8 PEM, as written by `toPem()`. */
34
+ static fromPem(pem: string): Promise<InstallKey>;
35
+ private static fromPrivate;
36
+ /** The private key as PKCS#8 PEM. Secret: write it to a file with mode 0600 and never log it. */
37
+ toPem(): Promise<string>;
38
+ /**
39
+ * The proof of possession that registers this key: a JWS over the challenge STACK
40
+ * issued, signed with the key being registered.
41
+ */
42
+ signKeyProof(installId: string, nonce: string, options?: {
43
+ now?: Date;
44
+ }): Promise<string>;
45
+ /**
46
+ * One signed request: a fresh `jti` every time, so a proof is good for exactly one
47
+ * call. `claims` carries `act` and the fields that action needs.
48
+ */
49
+ signProof(installId: string, claims: {
50
+ act: NetworkProofAction;
51
+ } & Record<string, unknown>, options?: {
52
+ now?: Date;
53
+ lifetimeSeconds?: number;
54
+ }): Promise<string>;
55
+ }
56
+ //# sourceMappingURL=network-install-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network-install-key.d.ts","sourceRoot":"","sources":["../src/network-install-key.ts"],"names":[],"mappings":"AASA,yDAAyD;AACzD,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,yBAAyB,sBAAsB,CAAC;AAC7D,eAAO,MAAM,uBAAuB,0BAA0B,CAAC;AAE/D,mFAAmF;AACnF,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD,uFAAuF;AACvF,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,KAAK,CAAC;IACX,GAAG,EAAE,SAAS,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;CACX;AAED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