getstack 4.0.0__py3-none-any.whl → 4.4.0__py3-none-any.whl
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.
- getstack/__init__.py +327 -11
- getstack/_async/accounts.py +1081 -0
- getstack/_async/agent_identity.py +42 -0
- getstack/_async/agents.py +45 -0
- getstack/_async/billing.py +32 -0
- getstack/_async/brain.py +71 -0
- getstack/_async/calendar.py +170 -0
- getstack/_async/catalogue.py +38 -0
- getstack/_async/chat_channels.py +56 -0
- getstack/_async/control_policies.py +114 -0
- getstack/_async/control_socket.py +154 -0
- getstack/_async/drive.py +277 -0
- getstack/_async/dropoffs.py +16 -4
- getstack/_async/flagged_content.py +24 -0
- getstack/_async/governance.py +22 -0
- getstack/_async/identity.py +56 -3
- getstack/_async/inbound_webhooks.py +11 -0
- getstack/_async/intents.py +8 -1
- getstack/_async/llm.py +73 -3
- getstack/_async/making.py +189 -0
- getstack/_async/meetings.py +162 -0
- getstack/_async/memory.py +300 -0
- getstack/_async/message_access.py +39 -0
- getstack/_async/missions.py +58 -2
- getstack/_async/network.py +220 -0
- getstack/_async/partner_accounts.py +275 -0
- getstack/_async/passports.py +4 -2
- getstack/_async/payments.py +127 -0
- getstack/_async/pii_config.py +4 -6
- getstack/_async/post.py +221 -0
- getstack/_async/proxy.py +50 -0
- getstack/_async/rentahuman.py +115 -0
- getstack/_async/services.py +94 -1
- getstack/_async/team.py +22 -0
- getstack/_async/trust.py +37 -0
- getstack/_async/usage.py +2 -2
- getstack/_async/wake.py +123 -0
- getstack/_async/website.py +130 -0
- getstack/_control_ref.py +42 -0
- getstack/accounts.py +1326 -0
- getstack/agent_auth.py +13 -5
- getstack/agent_identity.py +91 -0
- getstack/agents.py +78 -9
- getstack/audit.py +6 -1
- getstack/auth.py +67 -2
- getstack/billing.py +67 -0
- getstack/brain.py +138 -0
- getstack/browser_bootstrap.py +5 -2
- getstack/calendar.py +265 -0
- getstack/catalogue.py +97 -0
- getstack/chat_channels.py +77 -0
- getstack/client.py +323 -3
- getstack/control_policies.py +266 -0
- getstack/control_server.py +220 -0
- getstack/control_socket.py +259 -0
- getstack/detector_config.py +11 -10
- getstack/drive.py +555 -0
- getstack/dropoffs.py +21 -5
- getstack/errors.py +493 -4
- getstack/evidence_packs.py +3 -1
- getstack/flagged_content.py +46 -0
- getstack/governance.py +48 -0
- getstack/identity.py +65 -3
- getstack/inbound_webhooks.py +10 -0
- getstack/intents.py +7 -1
- getstack/llm.py +108 -6
- getstack/making.py +197 -0
- getstack/meetings.py +235 -0
- getstack/memory.py +508 -0
- getstack/message_access.py +65 -0
- getstack/missions.py +102 -2
- getstack/network.py +322 -0
- getstack/network_install.py +233 -0
- getstack/network_keys.py +137 -0
- getstack/partner_accounts.py +272 -0
- getstack/passports.py +6 -4
- getstack/payments.py +163 -0
- getstack/pii_config.py +7 -14
- getstack/post.py +312 -0
- getstack/proxy.py +70 -3
- getstack/rentahuman.py +177 -0
- getstack/scan.py +3 -3
- getstack/service_mcp.py +145 -0
- getstack/services.py +140 -1
- getstack/team.py +28 -0
- getstack/trust.py +66 -0
- getstack/types.py +397 -6
- getstack/usage.py +5 -3
- getstack/verify_agent_identity.py +157 -0
- getstack/verify_network.py +285 -0
- getstack/wake.py +199 -0
- getstack/wake_webhook.py +71 -0
- getstack/wallet_key.py +195 -0
- getstack/webhook.py +214 -0
- getstack/website.py +204 -0
- getstack/x402.py +326 -0
- getstack-4.4.0.dist-info/METADATA +725 -0
- getstack-4.4.0.dist-info/RECORD +129 -0
- {getstack-4.0.0.dist-info → getstack-4.4.0.dist-info}/WHEEL +1 -1
- {getstack-4.0.0.dist-info → getstack-4.4.0.dist-info}/licenses/LICENSE +1 -1
- getstack/_async/partner_connect.py +0 -43
- getstack/_async/partner_tenants.py +0 -164
- getstack/partner_connect.py +0 -68
- getstack/partner_tenants.py +0 -191
- getstack-4.0.0.dist-info/METADATA +0 -202
- getstack-4.0.0.dist-info/RECORD +0 -74
getstack/__init__.py
CHANGED
|
@@ -48,44 +48,111 @@ import os
|
|
|
48
48
|
from importlib.metadata import PackageNotFoundError, version
|
|
49
49
|
from typing import TYPE_CHECKING, Any
|
|
50
50
|
|
|
51
|
+
from ._async.accounts import AsyncAccountsService
|
|
51
52
|
from ._async.authority import AsyncAuthorityService
|
|
53
|
+
from ._async.brain import AsyncBrainService
|
|
54
|
+
from ._async.catalogue import AsyncCatalogueService
|
|
55
|
+
from ._async.drive import AsyncDriveService
|
|
52
56
|
from ._async.fleets import AsyncFleetsService
|
|
57
|
+
from ._async.memory import AsyncMemoryService
|
|
58
|
+
from ._async.payments import AsyncPaymentsService
|
|
59
|
+
from ._async.website import AsyncWebsiteService
|
|
53
60
|
from ._authority_request import create_authority_request_id
|
|
61
|
+
from ._control_ref import scoped_stack
|
|
62
|
+
from .accounts import AccountsService
|
|
54
63
|
from .agent_auth import AgentKeypairAuth
|
|
64
|
+
from .agent_identity import AgentIdentityService
|
|
55
65
|
from .agents import AgentService
|
|
56
66
|
from .audit import AuditService
|
|
57
67
|
from .auth import ApiKeyAuth, CredentialsFileAuth, OAuthAuth, SessionAuth
|
|
58
68
|
from .authority import AuthorityService
|
|
69
|
+
from .billing import BillingService
|
|
70
|
+
from .brain import BrainService
|
|
71
|
+
from .calendar import CalendarService
|
|
72
|
+
from .catalogue import CatalogueService
|
|
73
|
+
from .chat_channels import ChatChannelsService
|
|
59
74
|
from .client import DEFAULT_BASE_URL, AsyncHttpClient, HttpClient
|
|
75
|
+
from .control_policies import ControlPoliciesService, ControlReviewsService
|
|
76
|
+
from .control_server import (
|
|
77
|
+
ControlSignatureError,
|
|
78
|
+
SignedControlAnswer,
|
|
79
|
+
sign_control_answer,
|
|
80
|
+
verify_control_request,
|
|
81
|
+
)
|
|
82
|
+
from .control_socket import ControlSocketService
|
|
60
83
|
from .credentials import CredentialService
|
|
61
84
|
from .delivery_methods import DeliveryMethodService
|
|
62
85
|
from .detector_config import DetectorConfigService
|
|
86
|
+
from .drive import DriveService
|
|
63
87
|
from .dropoffs import DropoffService
|
|
64
88
|
from .errors import (
|
|
89
|
+
AccountCallFailedError,
|
|
90
|
+
AccountPieceNotReadyError,
|
|
91
|
+
AgentBudgetExceededError,
|
|
92
|
+
BrowserSessionLengthRefusedError,
|
|
93
|
+
BrowserTimeUsedUpError,
|
|
94
|
+
BudgetNeedsControlsError,
|
|
95
|
+
CatalogueUnavailableError,
|
|
96
|
+
ControlDeniedError,
|
|
97
|
+
ControlLimitExceededError,
|
|
98
|
+
ControlsRequiredError,
|
|
99
|
+
DestinationNotAvailableError,
|
|
65
100
|
ForbiddenError,
|
|
101
|
+
GovernanceApprovalRequiredError,
|
|
102
|
+
GovernanceApprovalStateError,
|
|
103
|
+
MakingUnavailableError,
|
|
66
104
|
MissionEndedError,
|
|
105
|
+
ModelCostCapError,
|
|
67
106
|
NotFoundError,
|
|
68
107
|
PassportBlockedError,
|
|
108
|
+
PaymentConnectionRequiredError,
|
|
109
|
+
PlatformSubscriptionRequiredError,
|
|
110
|
+
PostalAddressNotActiveError,
|
|
111
|
+
PostRefusedError,
|
|
112
|
+
PostUnavailableError,
|
|
113
|
+
ProviderCapacityUnavailableError,
|
|
114
|
+
RecipientOptedOutError,
|
|
115
|
+
SharedMailDailyLimitError,
|
|
69
116
|
StackError,
|
|
117
|
+
StripeRequestFailedError,
|
|
118
|
+
TelegramSendRefusedError,
|
|
119
|
+
ToolPriceRefusedError,
|
|
120
|
+
ToolRunRejectedError,
|
|
121
|
+
ToolsUnavailableError,
|
|
70
122
|
UnauthorizedError,
|
|
123
|
+
UnboundedSendRuleError,
|
|
71
124
|
ValidationError,
|
|
125
|
+
WebsiteHostnameUnavailableError,
|
|
126
|
+
WebsiteLimitExceededError,
|
|
127
|
+
WebsitePublishRejectedError,
|
|
128
|
+
WebsiteSuspendedError,
|
|
72
129
|
)
|
|
73
130
|
from .evidence_packs import EvidencePacksService
|
|
131
|
+
from .flagged_content import FlaggedContentService
|
|
74
132
|
from .fleets import FleetsService
|
|
133
|
+
from .governance import GovernanceService
|
|
75
134
|
from .identity import IdentityService
|
|
76
135
|
from .inbound_webhooks import InboundWebhookService
|
|
77
136
|
from .intents import IntentsService
|
|
78
137
|
from .llm import LlmService
|
|
138
|
+
from .meetings import MeetingsService
|
|
139
|
+
from .memory import MemoryService
|
|
140
|
+
from .message_access import MessageAccessService
|
|
79
141
|
from .missions import MissionsService
|
|
142
|
+
from .network import NetworkService
|
|
143
|
+
from .network_install import AsyncInstallClient, InstallClient
|
|
144
|
+
from .network_keys import InstallKey, install_key_thumbprint, passport_digest
|
|
80
145
|
from .notifications import NotificationService
|
|
81
|
-
from .
|
|
82
|
-
from .partner_tenants import PartnerTenantsService
|
|
146
|
+
from .partner_accounts import PartnerAccountsService
|
|
83
147
|
from .passport_header_verify import verify_passport_header
|
|
84
148
|
from .passport_session import PassportSession
|
|
85
149
|
from .passports import Mission, PassportService, _require_one_mission
|
|
150
|
+
from .payments import PaymentsService
|
|
86
151
|
from .pii_config import PiiConfigService
|
|
152
|
+
from .post import PostService
|
|
87
153
|
from .proxy import ProxyOperation, ProxyResponse
|
|
88
154
|
from .proxy import ProxyService as ProxySvc
|
|
155
|
+
from .rentahuman import RentAHumanService
|
|
89
156
|
from .reviews import ReviewService
|
|
90
157
|
from .scan import ScanService
|
|
91
158
|
from .security_events import SecurityEventService as SecurityEventSvc
|
|
@@ -93,35 +160,90 @@ from .services import ServiceService
|
|
|
93
160
|
from .sign_claim import sign_claim_envelope
|
|
94
161
|
from .skills import SkillService
|
|
95
162
|
from .team import TeamService
|
|
163
|
+
from .trust import TrustService
|
|
96
164
|
from .types import (
|
|
97
165
|
Agent,
|
|
98
166
|
AuthorityReference,
|
|
167
|
+
CatalogueAccountPiece,
|
|
168
|
+
CatalogueAccountView,
|
|
169
|
+
CatalogueActionBand,
|
|
170
|
+
CatalogueConnectedService,
|
|
171
|
+
CatalogueCostCap,
|
|
172
|
+
CatalogueDocument,
|
|
173
|
+
CatalogueEntry,
|
|
174
|
+
CatalogueKind,
|
|
175
|
+
CatalogueModalities,
|
|
176
|
+
CatalogueOrigin,
|
|
177
|
+
CataloguePrice,
|
|
178
|
+
CataloguePricing,
|
|
179
|
+
CatalogueProviderCost,
|
|
180
|
+
CatalogueRead,
|
|
181
|
+
CatalogueResultTrust,
|
|
182
|
+
CatalogueRun,
|
|
183
|
+
CatalogueSearchResult,
|
|
184
|
+
CatalogueSection,
|
|
99
185
|
CheckoutResult,
|
|
100
186
|
CheckpointResult,
|
|
101
187
|
Credential,
|
|
188
|
+
EmailAttachment,
|
|
189
|
+
EmailDriveAttachment,
|
|
190
|
+
EmailDropped,
|
|
191
|
+
EmailInlineAttachment,
|
|
192
|
+
EmailSendResult,
|
|
193
|
+
EmailSentAttachment,
|
|
194
|
+
ForwardEmailInput,
|
|
102
195
|
IdentityClaim,
|
|
103
196
|
IdentityProvider,
|
|
104
197
|
IdentitySettings,
|
|
198
|
+
MessageAttachment,
|
|
199
|
+
MessageEnvelope,
|
|
105
200
|
NotificationChannel,
|
|
106
201
|
Passport,
|
|
107
202
|
PassportReport,
|
|
108
203
|
PassportStackClaims,
|
|
109
204
|
ReplaceServiceRequirementResult,
|
|
205
|
+
ReplyEmailInput,
|
|
110
206
|
ReviewDecisionResult,
|
|
111
207
|
ReviewFlag,
|
|
112
208
|
ReviewQueue,
|
|
113
209
|
ReviewQueueItem,
|
|
210
|
+
SendEmailInput,
|
|
114
211
|
ServiceRequirement,
|
|
115
212
|
SetServiceRequirementInput,
|
|
116
213
|
Skill,
|
|
117
214
|
SkillInvocation,
|
|
118
215
|
SkillRequest,
|
|
119
216
|
ToolCall,
|
|
217
|
+
ToolRunFile,
|
|
218
|
+
ToolRunResult,
|
|
120
219
|
VerificationSession,
|
|
121
220
|
VerifiedPassportClaims,
|
|
122
221
|
)
|
|
123
222
|
from .usage import UsageService
|
|
223
|
+
from .verify_agent_identity import AgentIdentityVerificationError, verify_agent_identity
|
|
224
|
+
from .verify_network import (
|
|
225
|
+
NetworkVerificationError,
|
|
226
|
+
revocation_covers,
|
|
227
|
+
verify_countersigned_passport,
|
|
228
|
+
verify_detection_rules,
|
|
229
|
+
verify_revocation_list,
|
|
230
|
+
verify_verified_statement,
|
|
231
|
+
)
|
|
124
232
|
from .verify_offline import verify_passport_offline
|
|
233
|
+
from .wake import WakesService
|
|
234
|
+
from .wake_webhook import WakeSignatureError, verify_wake_webhook
|
|
235
|
+
from .wallet_key import (
|
|
236
|
+
AgentWalletKey,
|
|
237
|
+
WalletKeyInSandboxError,
|
|
238
|
+
WalletPaymentTarget,
|
|
239
|
+
generate_agent_wallet_key,
|
|
240
|
+
load_agent_wallet_key,
|
|
241
|
+
sign_wallet_payment,
|
|
242
|
+
wallet_payment_authorization_payload,
|
|
243
|
+
)
|
|
244
|
+
from .webhook import ReplayGuard, WebhookSignatureError, verify_webhook
|
|
245
|
+
from .website import WebsiteService, site_files
|
|
246
|
+
from .x402 import X402PaymentError, X402Result, X402Wallet, pay_x402, pay_x402_async, read_x402_ask
|
|
125
247
|
|
|
126
248
|
if TYPE_CHECKING:
|
|
127
249
|
from ._async.passport_session import AsyncPassportSession
|
|
@@ -168,62 +290,184 @@ def _resolve_creds_or_bootstrap(base_url: str) -> CredentialsFileAuth:
|
|
|
168
290
|
raise ValueError(
|
|
169
291
|
"STACK SDK: browser bootstrap reported success but credentials file still missing."
|
|
170
292
|
) from e
|
|
171
|
-
raise ValueError(
|
|
172
|
-
"No STACK credentials found. Pass api_key=, set STACK_API_KEY, or run `stack-cli auth login`."
|
|
173
|
-
) from err
|
|
293
|
+
raise ValueError("No STACK credentials found. Run `npx @getstackrun/cli auth login`.") from err
|
|
174
294
|
|
|
175
295
|
|
|
176
296
|
__all__ = [
|
|
297
|
+
"AccountCallFailedError",
|
|
298
|
+
"AccountPieceNotReadyError",
|
|
299
|
+
"AccountsService",
|
|
177
300
|
"Agent",
|
|
301
|
+
"AgentBudgetExceededError",
|
|
302
|
+
"AgentIdentityService",
|
|
303
|
+
"AgentIdentityVerificationError",
|
|
304
|
+
"AgentWalletKey",
|
|
305
|
+
"AsyncAccountsService",
|
|
178
306
|
"AsyncAuthorityService",
|
|
307
|
+
"AsyncBrainService",
|
|
308
|
+
"AsyncCatalogueService",
|
|
309
|
+
"AsyncDriveService",
|
|
179
310
|
"AsyncFleetsService",
|
|
311
|
+
"AsyncInstallClient",
|
|
312
|
+
"AsyncMemoryService",
|
|
313
|
+
"AsyncPaymentsService",
|
|
180
314
|
"AsyncStack",
|
|
315
|
+
"AsyncWebsiteService",
|
|
181
316
|
"AuthorityReference",
|
|
182
317
|
"AuthorityService",
|
|
318
|
+
"BrainService",
|
|
319
|
+
"BrowserSessionLengthRefusedError",
|
|
320
|
+
"BrowserTimeUsedUpError",
|
|
321
|
+
"BudgetNeedsControlsError",
|
|
322
|
+
"CalendarService",
|
|
323
|
+
"CatalogueAccountPiece",
|
|
324
|
+
"CatalogueAccountView",
|
|
325
|
+
"CatalogueActionBand",
|
|
326
|
+
"CatalogueConnectedService",
|
|
327
|
+
"CatalogueCostCap",
|
|
328
|
+
"CatalogueDocument",
|
|
329
|
+
"CatalogueEntry",
|
|
330
|
+
"CatalogueKind",
|
|
331
|
+
"CatalogueModalities",
|
|
332
|
+
"CatalogueOrigin",
|
|
333
|
+
"CataloguePrice",
|
|
334
|
+
"CataloguePricing",
|
|
335
|
+
"CatalogueProviderCost",
|
|
336
|
+
"CatalogueRead",
|
|
337
|
+
"CatalogueResultTrust",
|
|
338
|
+
"CatalogueRun",
|
|
339
|
+
"CatalogueSearchResult",
|
|
340
|
+
"CatalogueSection",
|
|
341
|
+
"CatalogueService",
|
|
342
|
+
"CatalogueUnavailableError",
|
|
183
343
|
"CheckoutResult",
|
|
184
344
|
"CheckpointResult",
|
|
345
|
+
"ControlDeniedError",
|
|
346
|
+
"ControlLimitExceededError",
|
|
347
|
+
"ControlPoliciesService",
|
|
348
|
+
"ControlReviewsService",
|
|
349
|
+
"ControlSignatureError",
|
|
350
|
+
"ControlSocketService",
|
|
351
|
+
"ControlsRequiredError",
|
|
185
352
|
"Credential",
|
|
186
353
|
"DeliveryMethodService",
|
|
354
|
+
"DestinationNotAvailableError",
|
|
187
355
|
"DetectorConfigService",
|
|
356
|
+
"DriveService",
|
|
357
|
+
"EmailAttachment",
|
|
358
|
+
"EmailDriveAttachment",
|
|
359
|
+
"EmailDropped",
|
|
360
|
+
"EmailInlineAttachment",
|
|
361
|
+
"EmailSendResult",
|
|
362
|
+
"EmailSentAttachment",
|
|
188
363
|
"FleetsService",
|
|
189
364
|
"ForbiddenError",
|
|
365
|
+
"ForwardEmailInput",
|
|
366
|
+
"GovernanceApprovalRequiredError",
|
|
367
|
+
"GovernanceApprovalStateError",
|
|
190
368
|
"IdentityClaim",
|
|
191
369
|
"IdentityProvider",
|
|
192
370
|
"IdentitySettings",
|
|
371
|
+
"InstallClient",
|
|
372
|
+
"InstallKey",
|
|
373
|
+
"MakingUnavailableError",
|
|
374
|
+
"MemoryService",
|
|
375
|
+
"MessageAccessService",
|
|
376
|
+
"MessageAttachment",
|
|
377
|
+
"MessageEnvelope",
|
|
193
378
|
"Mission",
|
|
194
379
|
"MissionEndedError",
|
|
380
|
+
"ModelCostCapError",
|
|
381
|
+
"NetworkService",
|
|
382
|
+
"NetworkVerificationError",
|
|
195
383
|
"NotFoundError",
|
|
196
384
|
"NotificationChannel",
|
|
197
385
|
"Passport",
|
|
198
386
|
"PassportBlockedError",
|
|
199
387
|
"PassportReport",
|
|
200
388
|
"PassportStackClaims",
|
|
389
|
+
"PaymentConnectionRequiredError",
|
|
390
|
+
"PaymentsService",
|
|
201
391
|
"PiiConfigService",
|
|
392
|
+
"PlatformSubscriptionRequiredError",
|
|
393
|
+
"PostRefusedError",
|
|
394
|
+
"PostService",
|
|
395
|
+
"PostUnavailableError",
|
|
396
|
+
"PostalAddressNotActiveError",
|
|
397
|
+
"ProviderCapacityUnavailableError",
|
|
202
398
|
"ProxyOperation",
|
|
203
399
|
"ProxyResponse",
|
|
400
|
+
"RecipientOptedOutError",
|
|
204
401
|
"ReplaceServiceRequirementResult",
|
|
402
|
+
"ReplayGuard",
|
|
403
|
+
"ReplyEmailInput",
|
|
205
404
|
"ReviewDecisionResult",
|
|
206
405
|
"ReviewFlag",
|
|
207
406
|
"ReviewQueue",
|
|
208
407
|
"ReviewQueueItem",
|
|
408
|
+
"SendEmailInput",
|
|
209
409
|
"ServiceRequirement",
|
|
210
410
|
"SetServiceRequirementInput",
|
|
411
|
+
"SharedMailDailyLimitError",
|
|
412
|
+
"SignedControlAnswer",
|
|
211
413
|
"Skill",
|
|
212
414
|
"SkillInvocation",
|
|
213
415
|
"SkillRequest",
|
|
214
416
|
"Stack",
|
|
215
417
|
"StackError",
|
|
418
|
+
"StripeRequestFailedError",
|
|
216
419
|
"TeamService",
|
|
420
|
+
"TelegramSendRefusedError",
|
|
217
421
|
"ToolCall",
|
|
422
|
+
"ToolPriceRefusedError",
|
|
423
|
+
"ToolRunFile",
|
|
424
|
+
"ToolRunRejectedError",
|
|
425
|
+
"ToolRunResult",
|
|
426
|
+
"ToolsUnavailableError",
|
|
427
|
+
"TrustService",
|
|
218
428
|
"UnauthorizedError",
|
|
429
|
+
"UnboundedSendRuleError",
|
|
219
430
|
"ValidationError",
|
|
220
431
|
"VerificationSession",
|
|
221
432
|
"VerifiedPassportClaims",
|
|
433
|
+
"WakeSignatureError",
|
|
434
|
+
"WakesService",
|
|
435
|
+
"WalletKeyInSandboxError",
|
|
436
|
+
"WalletPaymentTarget",
|
|
437
|
+
"WebhookSignatureError",
|
|
438
|
+
"WebsiteHostnameUnavailableError",
|
|
439
|
+
"WebsiteLimitExceededError",
|
|
440
|
+
"WebsitePublishRejectedError",
|
|
441
|
+
"WebsiteService",
|
|
442
|
+
"WebsiteSuspendedError",
|
|
443
|
+
"X402PaymentError",
|
|
444
|
+
"X402Result",
|
|
445
|
+
"X402Wallet",
|
|
222
446
|
"__version__",
|
|
223
447
|
"create_authority_request_id",
|
|
448
|
+
"generate_agent_wallet_key",
|
|
449
|
+
"install_key_thumbprint",
|
|
450
|
+
"load_agent_wallet_key",
|
|
451
|
+
"passport_digest",
|
|
452
|
+
"pay_x402",
|
|
453
|
+
"pay_x402_async",
|
|
454
|
+
"read_x402_ask",
|
|
455
|
+
"revocation_covers",
|
|
224
456
|
"sign_claim_envelope",
|
|
457
|
+
"sign_control_answer",
|
|
458
|
+
"sign_wallet_payment",
|
|
459
|
+
"site_files",
|
|
460
|
+
"verify_agent_identity",
|
|
461
|
+
"verify_control_request",
|
|
462
|
+
"verify_countersigned_passport",
|
|
463
|
+
"verify_detection_rules",
|
|
225
464
|
"verify_passport_header",
|
|
226
465
|
"verify_passport_offline",
|
|
466
|
+
"verify_revocation_list",
|
|
467
|
+
"verify_verified_statement",
|
|
468
|
+
"verify_wake_webhook",
|
|
469
|
+
"verify_webhook",
|
|
470
|
+
"wallet_payment_authorization_payload",
|
|
227
471
|
]
|
|
228
472
|
|
|
229
473
|
|
|
@@ -281,6 +525,21 @@ class Stack:
|
|
|
281
525
|
self.proxy = ProxySvc(self._client)
|
|
282
526
|
self.scan = ScanService(self._client)
|
|
283
527
|
self.usage = UsageService(self._client)
|
|
528
|
+
self.billing = BillingService(self._client)
|
|
529
|
+
self.control_socket = ControlSocketService(self._client)
|
|
530
|
+
self.network = NetworkService(self._client)
|
|
531
|
+
self.agent_identity = AgentIdentityService(self._client)
|
|
532
|
+
self.control_policies = ControlPoliciesService(self._client)
|
|
533
|
+
self.control_reviews = ControlReviewsService(self._client)
|
|
534
|
+
self.wakes = WakesService(self._client)
|
|
535
|
+
self.trust = TrustService(self._client)
|
|
536
|
+
self.message_access = MessageAccessService(self._client)
|
|
537
|
+
self.calendar = CalendarService(self._client)
|
|
538
|
+
self.meetings = MeetingsService(self._client)
|
|
539
|
+
self.rentahuman = RentAHumanService(self._client)
|
|
540
|
+
self.governance = GovernanceService(self._client)
|
|
541
|
+
self.flagged_content = FlaggedContentService(self._client)
|
|
542
|
+
self.chat_channels = ChatChannelsService(self._client)
|
|
284
543
|
self.security_events = SecurityEventSvc(self._client)
|
|
285
544
|
self.skills = SkillService(self._client)
|
|
286
545
|
self.identity = IdentityService(self._client)
|
|
@@ -290,13 +549,20 @@ class Stack:
|
|
|
290
549
|
self.evidence_packs = EvidencePacksService(self._client)
|
|
291
550
|
self.llm = LlmService(self._client)
|
|
292
551
|
self.inbound_webhooks = InboundWebhookService(self._client)
|
|
293
|
-
self.
|
|
294
|
-
self.partner_connect = PartnerConnectService(self._client)
|
|
552
|
+
self.partner_accounts = PartnerAccountsService(self._client)
|
|
295
553
|
self.team = TeamService(self._client)
|
|
296
554
|
self.delivery_methods = DeliveryMethodService(self._client)
|
|
297
555
|
self.detector_config = DetectorConfigService(self._client)
|
|
298
556
|
self.pii_config = PiiConfigService(self._client)
|
|
299
557
|
self.authority = AuthorityService(self._client)
|
|
558
|
+
self.accounts = AccountsService(self._client)
|
|
559
|
+
self.catalogue = CatalogueService(self._client)
|
|
560
|
+
self.drive = DriveService(self._client)
|
|
561
|
+
self.memory = MemoryService(self._client)
|
|
562
|
+
self.brain = BrainService(self._client)
|
|
563
|
+
self.website = WebsiteService(self._client)
|
|
564
|
+
self.payments = PaymentsService(self._client)
|
|
565
|
+
self.post = PostService(self._client)
|
|
300
566
|
|
|
301
567
|
def issue_passport(
|
|
302
568
|
self,
|
|
@@ -368,6 +634,16 @@ class Stack:
|
|
|
368
634
|
"""Close the underlying HTTP client."""
|
|
369
635
|
self._client.close()
|
|
370
636
|
|
|
637
|
+
def with_control_ref(self, ref: str) -> Stack:
|
|
638
|
+
"""The same client with ``X-Control-Ref: <ref>`` on every call it makes.
|
|
639
|
+
|
|
640
|
+
When a policy holds a call for the owner, the refusal (``ControlDeniedError``, reason ``review_required``)
|
|
641
|
+
names a ref in ``retry``; once the owner has approved, make the identical call again through this:
|
|
642
|
+
``stack.with_control_ref(ref).accounts.send_email(...)``. It shares this client's connection and credential
|
|
643
|
+
and is meant for that one call.
|
|
644
|
+
"""
|
|
645
|
+
return scoped_stack(self, ref)
|
|
646
|
+
|
|
371
647
|
def __enter__(self) -> Stack:
|
|
372
648
|
return self
|
|
373
649
|
|
|
@@ -437,33 +713,47 @@ class AsyncStack:
|
|
|
437
713
|
# 14 typed async services attached eagerly
|
|
438
714
|
# matching Stack's posture. Footprint is small; lazy init
|
|
439
715
|
# would only buy us memory we don't need to save.
|
|
716
|
+
from ._async.agent_identity import AsyncAgentIdentityService
|
|
440
717
|
from ._async.agents import AsyncAgentService
|
|
441
718
|
from ._async.audit import AsyncAuditService
|
|
442
719
|
from ._async.authority import AsyncAuthorityService
|
|
720
|
+
from ._async.billing import AsyncBillingService
|
|
721
|
+
from ._async.calendar import AsyncCalendarService
|
|
722
|
+
from ._async.chat_channels import AsyncChatChannelsService
|
|
723
|
+
from ._async.control_policies import AsyncControlPoliciesService, AsyncControlReviewsService
|
|
724
|
+
from ._async.control_socket import AsyncControlSocketService
|
|
443
725
|
from ._async.credentials import AsyncCredentialService
|
|
444
726
|
from ._async.delivery_methods import AsyncDeliveryMethodService
|
|
445
727
|
from ._async.detector_config import AsyncDetectorConfigService
|
|
446
728
|
from ._async.dropoffs import AsyncDropoffService
|
|
447
729
|
from ._async.evidence_packs import AsyncEvidencePacksService
|
|
730
|
+
from ._async.flagged_content import AsyncFlaggedContentService
|
|
731
|
+
from ._async.governance import AsyncGovernanceService
|
|
448
732
|
from ._async.identity import AsyncIdentityService
|
|
449
733
|
from ._async.inbound_webhooks import AsyncInboundWebhookService
|
|
450
734
|
from ._async.intents import AsyncIntentsService
|
|
451
735
|
from ._async.llm import AsyncLlmService
|
|
736
|
+
from ._async.meetings import AsyncMeetingsService
|
|
737
|
+
from ._async.message_access import AsyncMessageAccessService
|
|
452
738
|
from ._async.missions import AsyncMissionsService
|
|
739
|
+
from ._async.network import AsyncNetworkService
|
|
453
740
|
from ._async.notifications import AsyncNotificationService
|
|
454
|
-
from ._async.
|
|
455
|
-
from ._async.partner_tenants import AsyncPartnerTenantsService
|
|
741
|
+
from ._async.partner_accounts import AsyncPartnerAccountsService
|
|
456
742
|
from ._async.passport_session import AsyncPassportSession
|
|
457
743
|
from ._async.passports import AsyncPassportService
|
|
458
744
|
from ._async.pii_config import AsyncPiiConfigService
|
|
745
|
+
from ._async.post import AsyncPostService
|
|
459
746
|
from ._async.proxy import AsyncProxyService
|
|
747
|
+
from ._async.rentahuman import AsyncRentAHumanService
|
|
460
748
|
from ._async.reviews import AsyncReviewService
|
|
461
749
|
from ._async.scan import AsyncScanService
|
|
462
750
|
from ._async.security_events import AsyncSecurityEventService
|
|
463
751
|
from ._async.services import AsyncServiceService
|
|
464
752
|
from ._async.skills import AsyncSkillService
|
|
465
753
|
from ._async.team import AsyncTeamService
|
|
754
|
+
from ._async.trust import AsyncTrustService
|
|
466
755
|
from ._async.usage import AsyncUsageService
|
|
756
|
+
from ._async.wake import AsyncWakesService
|
|
467
757
|
|
|
468
758
|
self.agents = AsyncAgentService(self._client)
|
|
469
759
|
self.passports = AsyncPassportService(self._client)
|
|
@@ -476,6 +766,21 @@ class AsyncStack:
|
|
|
476
766
|
self.proxy = AsyncProxyService(self._client)
|
|
477
767
|
self.scan = AsyncScanService(self._client)
|
|
478
768
|
self.usage = AsyncUsageService(self._client)
|
|
769
|
+
self.billing = AsyncBillingService(self._client)
|
|
770
|
+
self.control_socket = AsyncControlSocketService(self._client)
|
|
771
|
+
self.network = AsyncNetworkService(self._client)
|
|
772
|
+
self.agent_identity = AsyncAgentIdentityService(self._client)
|
|
773
|
+
self.control_policies = AsyncControlPoliciesService(self._client)
|
|
774
|
+
self.control_reviews = AsyncControlReviewsService(self._client)
|
|
775
|
+
self.wakes = AsyncWakesService(self._client)
|
|
776
|
+
self.trust = AsyncTrustService(self._client)
|
|
777
|
+
self.message_access = AsyncMessageAccessService(self._client)
|
|
778
|
+
self.calendar = AsyncCalendarService(self._client)
|
|
779
|
+
self.meetings = AsyncMeetingsService(self._client)
|
|
780
|
+
self.rentahuman = AsyncRentAHumanService(self._client)
|
|
781
|
+
self.governance = AsyncGovernanceService(self._client)
|
|
782
|
+
self.flagged_content = AsyncFlaggedContentService(self._client)
|
|
783
|
+
self.chat_channels = AsyncChatChannelsService(self._client)
|
|
479
784
|
self.security_events = AsyncSecurityEventService(self._client)
|
|
480
785
|
self.skills = AsyncSkillService(self._client)
|
|
481
786
|
self.identity = AsyncIdentityService(self._client)
|
|
@@ -484,14 +789,21 @@ class AsyncStack:
|
|
|
484
789
|
self.fleets = AsyncFleetsService(self._client)
|
|
485
790
|
self.llm = AsyncLlmService(self._client)
|
|
486
791
|
self.inbound_webhooks = AsyncInboundWebhookService(self._client)
|
|
487
|
-
self.
|
|
488
|
-
self.partner_connect = AsyncPartnerConnectService(self._client)
|
|
792
|
+
self.partner_accounts = AsyncPartnerAccountsService(self._client)
|
|
489
793
|
self.evidence_packs = AsyncEvidencePacksService(self._client)
|
|
490
794
|
self.team = AsyncTeamService(self._client)
|
|
491
795
|
self.delivery_methods = AsyncDeliveryMethodService(self._client)
|
|
492
796
|
self.detector_config = AsyncDetectorConfigService(self._client)
|
|
493
797
|
self.pii_config = AsyncPiiConfigService(self._client)
|
|
494
798
|
self.authority = AsyncAuthorityService(self._client)
|
|
799
|
+
self.accounts = AsyncAccountsService(self._client)
|
|
800
|
+
self.catalogue = AsyncCatalogueService(self._client)
|
|
801
|
+
self.drive = AsyncDriveService(self._client)
|
|
802
|
+
self.memory = AsyncMemoryService(self._client)
|
|
803
|
+
self.brain = AsyncBrainService(self._client)
|
|
804
|
+
self.website = AsyncWebsiteService(self._client)
|
|
805
|
+
self.payments = AsyncPaymentsService(self._client)
|
|
806
|
+
self.post = AsyncPostService(self._client)
|
|
495
807
|
# Stash for issue_passport() — Python doesn't easily expose the
|
|
496
808
|
# class binding without re-importing inside the method body.
|
|
497
809
|
self._AsyncPassportSession = AsyncPassportSession
|
|
@@ -557,6 +869,10 @@ class AsyncStack:
|
|
|
557
869
|
"""Close the underlying HTTP client."""
|
|
558
870
|
await self._client.close()
|
|
559
871
|
|
|
872
|
+
def with_control_ref(self, ref: str) -> AsyncStack:
|
|
873
|
+
"""The same client with ``X-Control-Ref: <ref>`` on every call it makes (see ``Stack.with_control_ref``)."""
|
|
874
|
+
return scoped_stack(self, ref)
|
|
875
|
+
|
|
560
876
|
async def __aenter__(self) -> AsyncStack:
|
|
561
877
|
return self
|
|
562
878
|
|