@getstackrun/sdk 3.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.
- package/LICENSE +1 -1
- package/README.md +366 -22
- package/dist/agent-auth.js +5 -6
- package/dist/agent-auth.js.map +1 -1
- package/dist/browser-bootstrap.js +2 -2
- package/dist/browser-bootstrap.js.map +1 -1
- package/dist/client.d.ts +88 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +237 -42
- package/dist/client.js.map +1 -1
- package/dist/control-socket-server.d.ts +134 -0
- package/dist/control-socket-server.d.ts.map +1 -0
- package/dist/control-socket-server.js +108 -0
- package/dist/control-socket-server.js.map +1 -0
- package/dist/credentials-file.d.ts +7 -0
- package/dist/credentials-file.d.ts.map +1 -1
- package/dist/credentials-file.js +57 -2
- package/dist/credentials-file.js.map +1 -1
- package/dist/errors.d.ts +316 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +572 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +130 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +157 -29
- package/dist/index.js.map +1 -1
- package/dist/network-install-key.d.ts +56 -0
- package/dist/network-install-key.d.ts.map +1 -0
- package/dist/network-install-key.js +92 -0
- package/dist/network-install-key.js.map +1 -0
- package/dist/network-install.d.ts +134 -0
- package/dist/network-install.d.ts.map +1 -0
- package/dist/network-install.js +70 -0
- package/dist/network-install.js.map +1 -0
- package/dist/service-mcp.d.ts +49 -0
- package/dist/service-mcp.d.ts.map +1 -0
- package/dist/service-mcp.js +122 -0
- package/dist/service-mcp.js.map +1 -0
- package/dist/services/accounts.d.ts +1548 -0
- package/dist/services/accounts.d.ts.map +1 -0
- package/dist/services/accounts.js +724 -0
- package/dist/services/accounts.js.map +1 -0
- package/dist/services/agent-identity.d.ts +58 -0
- package/dist/services/agent-identity.d.ts.map +1 -0
- package/dist/services/agent-identity.js +50 -0
- package/dist/services/agent-identity.js.map +1 -0
- package/dist/services/agents.d.ts +79 -4
- package/dist/services/agents.d.ts.map +1 -1
- package/dist/services/agents.js +30 -3
- package/dist/services/agents.js.map +1 -1
- package/dist/services/audit.d.ts +5 -0
- package/dist/services/audit.d.ts.map +1 -1
- package/dist/services/audit.js +5 -0
- package/dist/services/audit.js.map +1 -1
- package/dist/services/billing.d.ts +67 -0
- package/dist/services/billing.d.ts.map +1 -0
- package/dist/services/billing.js +42 -0
- package/dist/services/billing.js.map +1 -0
- package/dist/services/brain.d.ts +122 -0
- package/dist/services/brain.d.ts.map +1 -0
- package/dist/services/brain.js +40 -0
- package/dist/services/brain.js.map +1 -0
- package/dist/services/calendar.d.ts +256 -0
- package/dist/services/calendar.d.ts.map +1 -0
- package/dist/services/calendar.js +75 -0
- package/dist/services/calendar.js.map +1 -0
- package/dist/services/catalogue.d.ts +185 -0
- package/dist/services/catalogue.d.ts.map +1 -0
- package/dist/services/catalogue.js +31 -0
- package/dist/services/catalogue.js.map +1 -0
- package/dist/services/chat-channels.d.ts +82 -0
- package/dist/services/chat-channels.d.ts.map +1 -0
- package/dist/services/chat-channels.js +42 -0
- package/dist/services/chat-channels.js.map +1 -0
- package/dist/services/control-policies.d.ts +409 -0
- package/dist/services/control-policies.d.ts.map +1 -0
- package/dist/services/control-policies.js +101 -0
- package/dist/services/control-policies.js.map +1 -0
- package/dist/services/control-socket.d.ts +201 -0
- package/dist/services/control-socket.d.ts.map +1 -0
- package/dist/services/control-socket.js +165 -0
- package/dist/services/control-socket.js.map +1 -0
- package/dist/services/credentials.d.ts +2 -1
- package/dist/services/credentials.d.ts.map +1 -1
- package/dist/services/credentials.js +3 -2
- package/dist/services/credentials.js.map +1 -1
- package/dist/services/detector-config.d.ts +13 -12
- package/dist/services/detector-config.d.ts.map +1 -1
- package/dist/services/detector-config.js +13 -12
- package/dist/services/detector-config.js.map +1 -1
- package/dist/services/drive.d.ts +257 -0
- package/dist/services/drive.d.ts.map +1 -0
- package/dist/services/drive.js +167 -0
- package/dist/services/drive.js.map +1 -0
- package/dist/services/dropoffs.d.ts +5 -1
- package/dist/services/dropoffs.d.ts.map +1 -1
- package/dist/services/dropoffs.js +3 -1
- package/dist/services/dropoffs.js.map +1 -1
- package/dist/services/evidence-packs.d.ts +5 -3
- package/dist/services/evidence-packs.d.ts.map +1 -1
- package/dist/services/evidence-packs.js +6 -4
- package/dist/services/evidence-packs.js.map +1 -1
- package/dist/services/flagged-content.d.ts +30 -0
- package/dist/services/flagged-content.d.ts.map +1 -0
- package/dist/services/flagged-content.js +24 -0
- package/dist/services/flagged-content.js.map +1 -0
- package/dist/services/governance.d.ts +69 -0
- package/dist/services/governance.d.ts.map +1 -0
- package/dist/services/governance.js +39 -0
- package/dist/services/governance.js.map +1 -0
- package/dist/services/identity.d.ts +44 -4
- package/dist/services/identity.d.ts.map +1 -1
- package/dist/services/identity.js +54 -6
- package/dist/services/identity.js.map +1 -1
- package/dist/services/inbound-webhooks.d.ts +12 -1
- package/dist/services/inbound-webhooks.d.ts.map +1 -1
- package/dist/services/inbound-webhooks.js +7 -0
- package/dist/services/inbound-webhooks.js.map +1 -1
- package/dist/services/intents.d.ts +9 -3
- package/dist/services/intents.d.ts.map +1 -1
- package/dist/services/intents.js +11 -7
- package/dist/services/intents.js.map +1 -1
- package/dist/services/llm.d.ts +73 -1
- package/dist/services/llm.d.ts.map +1 -1
- package/dist/services/llm.js +63 -1
- package/dist/services/llm.js.map +1 -1
- package/dist/services/making.d.ts +263 -0
- package/dist/services/making.d.ts.map +1 -0
- package/dist/services/making.js +114 -0
- package/dist/services/making.js.map +1 -0
- package/dist/services/meetings.d.ts +183 -0
- package/dist/services/meetings.d.ts.map +1 -0
- package/dist/services/meetings.js +148 -0
- package/dist/services/meetings.js.map +1 -0
- package/dist/services/memory.d.ts +288 -0
- package/dist/services/memory.d.ts.map +1 -0
- package/dist/services/memory.js +116 -0
- package/dist/services/memory.js.map +1 -0
- package/dist/services/message-access.d.ts +50 -0
- package/dist/services/message-access.d.ts.map +1 -0
- package/dist/services/message-access.js +36 -0
- package/dist/services/message-access.js.map +1 -0
- package/dist/services/missions.d.ts +93 -7
- package/dist/services/missions.d.ts.map +1 -1
- package/dist/services/missions.js +31 -3
- package/dist/services/missions.js.map +1 -1
- package/dist/services/network.d.ts +266 -0
- package/dist/services/network.d.ts.map +1 -0
- package/dist/services/network.js +209 -0
- package/dist/services/network.js.map +1 -0
- package/dist/services/partner-accounts.d.ts +215 -0
- package/dist/services/partner-accounts.d.ts.map +1 -0
- package/dist/services/partner-accounts.js +133 -0
- package/dist/services/partner-accounts.js.map +1 -0
- package/dist/services/passport-header-verify.js +1 -1
- package/dist/services/passport-header-verify.js.map +1 -1
- package/dist/services/passport-session.js +1 -1
- package/dist/services/passport-session.js.map +1 -1
- package/dist/services/passports.d.ts +6 -4
- package/dist/services/passports.d.ts.map +1 -1
- package/dist/services/passports.js +5 -4
- package/dist/services/passports.js.map +1 -1
- package/dist/services/payments.d.ts +126 -0
- package/dist/services/payments.d.ts.map +1 -0
- package/dist/services/payments.js +66 -0
- package/dist/services/payments.js.map +1 -0
- package/dist/services/pii-config.d.ts +7 -17
- package/dist/services/pii-config.d.ts.map +1 -1
- package/dist/services/pii-config.js +9 -19
- package/dist/services/pii-config.js.map +1 -1
- package/dist/services/post.d.ts +240 -0
- package/dist/services/post.d.ts.map +1 -0
- package/dist/services/post.js +99 -0
- package/dist/services/post.js.map +1 -0
- package/dist/services/proxy.d.ts +22 -5
- package/dist/services/proxy.d.ts.map +1 -1
- package/dist/services/proxy.js +33 -4
- package/dist/services/proxy.js.map +1 -1
- package/dist/services/rentahuman.d.ts +92 -0
- package/dist/services/rentahuman.d.ts.map +1 -0
- package/dist/services/rentahuman.js +53 -0
- package/dist/services/rentahuman.js.map +1 -0
- package/dist/services/scan.d.ts +1 -1
- package/dist/services/scan.d.ts.map +1 -1
- package/dist/services/scan.js +1 -1
- package/dist/services/scan.js.map +1 -1
- package/dist/services/services.d.ts +29 -2
- package/dist/services/services.d.ts.map +1 -1
- package/dist/services/services.js +55 -1
- package/dist/services/services.js.map +1 -1
- package/dist/services/skills.d.ts +1 -1
- package/dist/services/skills.js +1 -1
- package/dist/services/team.d.ts +13 -1
- package/dist/services/team.d.ts.map +1 -1
- package/dist/services/team.js +12 -0
- package/dist/services/team.js.map +1 -1
- package/dist/services/trust.d.ts +39 -0
- package/dist/services/trust.d.ts.map +1 -0
- package/dist/services/trust.js +35 -0
- package/dist/services/trust.js.map +1 -0
- package/dist/services/usage.d.ts +1 -1
- package/dist/services/usage.js +1 -1
- package/dist/services/wake.d.ts +257 -0
- package/dist/services/wake.d.ts.map +1 -0
- package/dist/services/wake.js +80 -0
- package/dist/services/wake.js.map +1 -0
- package/dist/services/website.d.ts +188 -0
- package/dist/services/website.d.ts.map +1 -0
- package/dist/services/website.js +135 -0
- package/dist/services/website.js.map +1 -0
- package/dist/sign-claim.d.ts +1 -1
- package/dist/sign-claim.js +2 -2
- package/dist/types.d.ts +292 -51
- package/dist/types.d.ts.map +1 -1
- package/dist/verify-agent-identity.d.ts +73 -0
- package/dist/verify-agent-identity.d.ts.map +1 -0
- package/dist/verify-agent-identity.js +106 -0
- package/dist/verify-agent-identity.js.map +1 -0
- package/dist/verify-network.d.ts +159 -0
- package/dist/verify-network.d.ts.map +1 -0
- package/dist/verify-network.js +153 -0
- package/dist/verify-network.js.map +1 -0
- package/dist/wake-webhook.d.ts +57 -0
- package/dist/wake-webhook.d.ts.map +1 -0
- package/dist/wake-webhook.js +60 -0
- package/dist/wake-webhook.js.map +1 -0
- package/dist/wallet-key.d.ts +30 -0
- package/dist/wallet-key.d.ts.map +1 -0
- package/dist/wallet-key.js +108 -0
- package/dist/wallet-key.js.map +1 -0
- package/dist/webhook.d.ts +63 -0
- package/dist/webhook.d.ts.map +1 -0
- package/dist/webhook.js +136 -0
- package/dist/webhook.js.map +1 -0
- package/dist/x402-pay.d.ts +139 -0
- package/dist/x402-pay.d.ts.map +1 -0
- package/dist/x402-pay.js +235 -0
- package/dist/x402-pay.js.map +1 -0
- package/package.json +3 -1
- package/dist/services/partner-connect.d.ts +0 -64
- package/dist/services/partner-connect.d.ts.map +0 -1
- package/dist/services/partner-connect.js +0 -42
- package/dist/services/partner-connect.js.map +0 -1
- package/dist/services/partner-tenants.d.ts +0 -126
- package/dist/services/partner-tenants.d.ts.map +0 -1
- package/dist/services/partner-tenants.js +0 -79
- 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 {
|
|
29
|
-
import {
|
|
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,49 +70,96 @@ 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;
|
|
54
|
-
/**
|
|
80
|
+
/** intent simulate / submit / approve / reject. */
|
|
55
81
|
readonly intents: IntentsService;
|
|
56
82
|
/** Mission lifecycle, activity, and Operator review reads. */
|
|
57
83
|
readonly missions: MissionsService;
|
|
58
84
|
readonly fleets: FleetsService;
|
|
59
85
|
/** Create, read, download, and list portable Signed records. */
|
|
60
86
|
readonly evidencePacks: EvidencePacksService;
|
|
61
|
-
/**
|
|
87
|
+
/** LLM gateway. Provider-compatible call shape +
|
|
62
88
|
* usage observability. Pair with `issuePassport(...)` for
|
|
63
89
|
* lifecycle-managed passports across many calls. */
|
|
64
90
|
readonly llm: LlmService;
|
|
65
|
-
/**
|
|
91
|
+
/** hosted inbound webhook surface (AgentMail, generic).
|
|
66
92
|
* Operator creates a webhook + gets back a URL + HMAC secret to paste
|
|
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
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
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
|
-
/**
|
|
84
|
-
|
|
85
|
-
|
|
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
|
|
95
164
|
* returned session directly to LLM calls instead of threading a raw
|
|
96
165
|
* token per call. Every passport is issued for exactly one live
|
|
@@ -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-
|
|
131
|
-
export {
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,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,cAAc,EAAE,MAAM,uB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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 {
|
|
29
|
-
import {
|
|
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,40 +69,83 @@ 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;
|
|
53
|
-
/**
|
|
79
|
+
/** intent simulate / submit / approve / reject. */
|
|
54
80
|
intents;
|
|
55
81
|
/** Mission lifecycle, activity, and Operator review reads. */
|
|
56
82
|
missions;
|
|
57
83
|
fleets;
|
|
58
84
|
/** Create, read, download, and list portable Signed records. */
|
|
59
85
|
evidencePacks;
|
|
60
|
-
/**
|
|
86
|
+
/** LLM gateway. Provider-compatible call shape +
|
|
61
87
|
* usage observability. Pair with `issuePassport(...)` for
|
|
62
88
|
* lifecycle-managed passports across many calls. */
|
|
63
89
|
llm;
|
|
64
|
-
/**
|
|
90
|
+
/** hosted inbound webhook surface (AgentMail, generic).
|
|
65
91
|
* Operator creates a webhook + gets back a URL + HMAC secret to paste
|
|
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
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
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,17 +172,44 @@ 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
|
-
|
|
109
|
-
|
|
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
|
-
|
|
112
|
-
|
|
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
|
}
|
|
117
202
|
/**
|
|
118
|
-
*
|
|
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
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* issue a passport and return a `PassportSession` that
|
|
119
213
|
* holds the token and auto-refreshes ~60s before expiry. Pass the
|
|
120
214
|
* returned session directly to LLM calls instead of threading a raw
|
|
121
215
|
* token per call. Every passport is issued for exactly one live
|
|
@@ -142,28 +236,62 @@ export class Stack {
|
|
|
142
236
|
return new PassportSession(this.client, issued, input);
|
|
143
237
|
}
|
|
144
238
|
}
|
|
145
|
-
//
|
|
239
|
+
// LLM service + passport session types.
|
|
146
240
|
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
|
|
153
283
|
// the STACK API. Pair with a cache against /v1/passports/verify if you
|
|
154
284
|
// also need revocation-aware verdicts.
|
|
155
285
|
export { verifyPassportOffline, } from './verify-offline.js';
|
|
156
|
-
//
|
|
286
|
+
// partner-side helpers for the X-Stack-Passport convention
|
|
157
287
|
// (touch point 3 in the partner integration spec). Pulls the passport
|
|
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
|
-
//
|
|
162
|
-
export {
|
|
163
|
-
// GET-210 — "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
|
|
168
296
|
// path on STACK accepts both. Pair with the existing agent-auth.ts
|
|
169
297
|
// enrollment flow: enroll once (POP-gated, stores pub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