@muxoai/platform 1.3.3 → 1.4.1
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/.agents/plugins/marketplace.json +2 -2
- package/.claude-plugin/marketplace.json +2 -2
- package/ARCHITECTURE.md +16 -6
- package/README.md +7 -5
- package/dist/cli.js +393 -13
- package/dist/composio-catalog.d.ts +58 -0
- package/dist/composio-catalog.js +474 -0
- package/dist/config.d.ts +10 -0
- package/dist/config.js +16 -0
- package/dist/durable-workflow.d.ts +45 -0
- package/dist/durable-workflow.js +90 -0
- package/dist/engine.d.ts +276 -5
- package/dist/engine.js +1261 -71
- package/dist/mcp-schema.d.ts +125 -0
- package/dist/mcp-schema.js +1076 -0
- package/dist/mcp.d.ts +2 -30
- package/dist/mcp.js +505 -539
- package/dist/memory-graph.d.ts +21 -0
- package/dist/memory-graph.js +173 -0
- package/dist/nl.js +155 -0
- package/dist/oauth.d.ts +32 -0
- package/dist/oauth.js +134 -0
- package/dist/policy.d.ts +75 -1
- package/dist/policy.js +1119 -0
- package/dist/providers/composio-instant.js +225 -5
- package/dist/providers/composio-sdk.d.ts +68 -5
- package/dist/providers/composio-sdk.js +683 -78
- package/dist/providers/microsoft-governance.d.ts +28 -1
- package/dist/providers/microsoft-governance.js +224 -11
- package/dist/providers/stripe-billing.d.ts +42 -0
- package/dist/providers/stripe-billing.js +230 -1
- package/dist/providers/stripe-projects.d.ts +451 -3
- package/dist/providers/stripe-projects.js +2106 -87
- package/dist/providers/supermemory.d.ts +74 -1
- package/dist/providers/supermemory.js +426 -0
- package/dist/provisioning-managed.d.ts +50 -0
- package/dist/provisioning-managed.js +155 -0
- package/dist/sdk.d.ts +538 -8
- package/dist/sdk.js +377 -10
- package/dist/server.js +1841 -232
- package/dist/store.d.ts +113 -6
- package/dist/store.js +675 -52
- package/dist/types.d.ts +212 -5
- package/dist/ui/console-html.d.ts +10 -1
- package/dist/ui/console-html.js +1188 -462
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/plugins/muxo/.claude-plugin/plugin.json +1 -1
- package/plugins/muxo/.codex-plugin/plugin.json +1 -1
- package/plugins/muxo/plugin.json +2 -2
- package/plugins/muxo/skills/muxo/SKILL.md +42 -1
- package/plugins/muxo/skills/muxo/references/mcp.md +3 -2
- package/plugins/muxo/skills/setup/SKILL.md +8 -0
package/dist/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionPlan, ByokKeyRecord, ConnectionRecord, ExecutionReceipt, ExecutionRun, GovernancePolicy, MuxoTool, ProviderLane, ProvisionedResource, RiskLevel, SupplierSettlementSummary, TemporalGraphFact, Workspace, WorkspaceMemoryRecord } from "./types.js";
|
|
1
|
+
import type { ActionPlan, ByokKeyRecord, ConnectionRecord, ExecutionReceipt, ExecutionRun, GovernancePolicy, HumanFriendlyExplanation, HumanHandoff, LlmGuidance, MemoryKnowledgeGraph, MuxoTool, ProviderLane, ProvisionedResource, RiskLevel, SupplierSettlementSummary, TeamOnboardingKit, TemporalGraphFact, Workspace, WorkspaceMemoryRecord, WorkspaceRole, WorkspaceSummary } from "./types.js";
|
|
2
2
|
export interface MuxoTrustScore {
|
|
3
3
|
overall: number;
|
|
4
4
|
tier: string;
|
|
@@ -11,6 +11,77 @@ export interface MuxoClientOptions {
|
|
|
11
11
|
fetch?: typeof fetch;
|
|
12
12
|
timeoutMs?: number;
|
|
13
13
|
}
|
|
14
|
+
/** Error thrown for any non-OK Muxo API response. Carries the machine-readable code and payload. */
|
|
15
|
+
export declare class MuxoApiError extends Error {
|
|
16
|
+
readonly status: number;
|
|
17
|
+
readonly code?: string;
|
|
18
|
+
readonly url?: string;
|
|
19
|
+
readonly checkoutUrl?: string;
|
|
20
|
+
readonly data: Record<string, unknown>;
|
|
21
|
+
constructor(status: number, payload: Record<string, unknown>);
|
|
22
|
+
}
|
|
23
|
+
export interface BillingPlanInfo {
|
|
24
|
+
tier: "free" | "starter" | "pro";
|
|
25
|
+
name: string;
|
|
26
|
+
tagline: string;
|
|
27
|
+
monthlyActions: number;
|
|
28
|
+
monthlyCredits: number;
|
|
29
|
+
prices: {
|
|
30
|
+
month: {
|
|
31
|
+
cents: number;
|
|
32
|
+
label: string;
|
|
33
|
+
};
|
|
34
|
+
year: {
|
|
35
|
+
cents: number;
|
|
36
|
+
label: string;
|
|
37
|
+
perMonthLabel: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
features: string[];
|
|
41
|
+
}
|
|
42
|
+
export interface PlanCatalog {
|
|
43
|
+
plans: BillingPlanInfo[];
|
|
44
|
+
yearlyDiscount: string;
|
|
45
|
+
creditPriceCents: number;
|
|
46
|
+
creditPacks: Array<{
|
|
47
|
+
credits: number;
|
|
48
|
+
cents: number;
|
|
49
|
+
label: string;
|
|
50
|
+
}>;
|
|
51
|
+
minCheckoutCredits: number;
|
|
52
|
+
}
|
|
53
|
+
export type UpgradePlanResult = {
|
|
54
|
+
ok: true;
|
|
55
|
+
unchanged: true;
|
|
56
|
+
tier: string;
|
|
57
|
+
message: string;
|
|
58
|
+
workspace?: Workspace;
|
|
59
|
+
} | {
|
|
60
|
+
ok: true;
|
|
61
|
+
mode: "portal";
|
|
62
|
+
action: "billing_portal";
|
|
63
|
+
tier: string;
|
|
64
|
+
interval: string;
|
|
65
|
+
portalUrl: string;
|
|
66
|
+
url: string;
|
|
67
|
+
nextStep: string;
|
|
68
|
+
} | {
|
|
69
|
+
ok: false;
|
|
70
|
+
code: "payment_required";
|
|
71
|
+
paymentRequired: true;
|
|
72
|
+
checkoutUrl: string;
|
|
73
|
+
sessionId: string;
|
|
74
|
+
kind: string;
|
|
75
|
+
tier: string;
|
|
76
|
+
interval: string;
|
|
77
|
+
credits: number;
|
|
78
|
+
error: string;
|
|
79
|
+
} | {
|
|
80
|
+
ok: false;
|
|
81
|
+
code: "human_required";
|
|
82
|
+
url: string;
|
|
83
|
+
error: string;
|
|
84
|
+
};
|
|
14
85
|
export declare class MuxoClient {
|
|
15
86
|
readonly baseUrl: string;
|
|
16
87
|
private readonly apiKeyResolver?;
|
|
@@ -44,6 +115,7 @@ export declare class MuxoClient {
|
|
|
44
115
|
user: Record<string, unknown>;
|
|
45
116
|
workspace: Workspace;
|
|
46
117
|
apiKey: string;
|
|
118
|
+
sessionToken: string;
|
|
47
119
|
token: string;
|
|
48
120
|
}>;
|
|
49
121
|
static login(params: {
|
|
@@ -54,6 +126,7 @@ export declare class MuxoClient {
|
|
|
54
126
|
user: Record<string, unknown>;
|
|
55
127
|
workspace: Workspace;
|
|
56
128
|
apiKey: string;
|
|
129
|
+
sessionToken: string;
|
|
57
130
|
token: string;
|
|
58
131
|
}>;
|
|
59
132
|
register(params: {
|
|
@@ -66,6 +139,7 @@ export declare class MuxoClient {
|
|
|
66
139
|
user: Record<string, unknown>;
|
|
67
140
|
workspace: Workspace;
|
|
68
141
|
apiKey: string;
|
|
142
|
+
sessionToken: string;
|
|
69
143
|
token: string;
|
|
70
144
|
}>;
|
|
71
145
|
login(params: {
|
|
@@ -76,6 +150,7 @@ export declare class MuxoClient {
|
|
|
76
150
|
user: Record<string, unknown>;
|
|
77
151
|
workspace: Workspace;
|
|
78
152
|
apiKey: string;
|
|
153
|
+
sessionToken: string;
|
|
79
154
|
token: string;
|
|
80
155
|
}>;
|
|
81
156
|
signupAgent(params: {
|
|
@@ -129,12 +204,31 @@ export declare class MuxoClient {
|
|
|
129
204
|
waitTool: string;
|
|
130
205
|
instructions: string;
|
|
131
206
|
};
|
|
207
|
+
humanHandoff?: HumanHandoff;
|
|
208
|
+
llmGuidance?: LlmGuidance;
|
|
209
|
+
}>;
|
|
210
|
+
getPlan(planId: string, options?: {
|
|
211
|
+
waitForApproval?: boolean;
|
|
212
|
+
timeoutSeconds?: number;
|
|
213
|
+
}): Promise<{
|
|
214
|
+
ok: true;
|
|
215
|
+
plan: ActionPlan;
|
|
216
|
+
approved?: boolean;
|
|
217
|
+
rejected?: boolean;
|
|
218
|
+
timedOut?: boolean;
|
|
219
|
+
humanHandoff?: HumanHandoff;
|
|
220
|
+
llmGuidance?: LlmGuidance;
|
|
132
221
|
}>;
|
|
133
|
-
|
|
222
|
+
waitForPlanApproval(planId: string, timeoutSeconds?: number): Promise<{
|
|
134
223
|
ok: true;
|
|
135
224
|
plan: ActionPlan;
|
|
225
|
+
approved: boolean;
|
|
226
|
+
rejected: boolean;
|
|
227
|
+
timedOut: boolean;
|
|
228
|
+
humanHandoff?: HumanHandoff;
|
|
229
|
+
llmGuidance?: LlmGuidance;
|
|
136
230
|
}>;
|
|
137
|
-
approvePlan(planId: string): Promise<{
|
|
231
|
+
approvePlan(planId: string, decision?: "approved" | "rejected"): Promise<{
|
|
138
232
|
ok: true;
|
|
139
233
|
plan: ActionPlan;
|
|
140
234
|
}>;
|
|
@@ -168,7 +262,28 @@ export declare class MuxoClient {
|
|
|
168
262
|
valid: boolean;
|
|
169
263
|
verified: boolean;
|
|
170
264
|
receipt: ExecutionReceipt;
|
|
265
|
+
agenticReceiptValid?: boolean;
|
|
266
|
+
explanation?: HumanFriendlyExplanation;
|
|
171
267
|
}>;
|
|
268
|
+
verifyReceiptChain(limit?: number): Promise<{
|
|
269
|
+
ok: boolean;
|
|
270
|
+
valid: boolean;
|
|
271
|
+
workspaceId: string;
|
|
272
|
+
totalChecked: number;
|
|
273
|
+
validCount: number;
|
|
274
|
+
brokenLinks: Array<{
|
|
275
|
+
receiptId: string;
|
|
276
|
+
runId: string;
|
|
277
|
+
reason: string;
|
|
278
|
+
}>;
|
|
279
|
+
headReceiptHash: string;
|
|
280
|
+
agentDid: string;
|
|
281
|
+
publicKeyHex: string;
|
|
282
|
+
explanation: HumanFriendlyExplanation;
|
|
283
|
+
}>;
|
|
284
|
+
getMemoryGraph(query?: string): Promise<{
|
|
285
|
+
ok: true;
|
|
286
|
+
} & MemoryKnowledgeGraph>;
|
|
172
287
|
startConnection(paramsOrProvider: string | {
|
|
173
288
|
provider: string;
|
|
174
289
|
lane?: ProviderLane;
|
|
@@ -304,6 +419,64 @@ export declare class MuxoClient {
|
|
|
304
419
|
auditChain?: Record<string, unknown>;
|
|
305
420
|
};
|
|
306
421
|
workspacePolicy: GovernancePolicy;
|
|
422
|
+
plainEnglishGuardrails?: {
|
|
423
|
+
headline: string;
|
|
424
|
+
postureLabel: string;
|
|
425
|
+
rules: string[];
|
|
426
|
+
badges: Array<{
|
|
427
|
+
label: string;
|
|
428
|
+
tone: "safe" | "warn" | "strict";
|
|
429
|
+
}>;
|
|
430
|
+
};
|
|
431
|
+
activeMemoryDefaults?: Record<string, unknown>;
|
|
432
|
+
activeGuardrails?: string[];
|
|
433
|
+
}>;
|
|
434
|
+
getGuardrails(): Promise<{
|
|
435
|
+
ok: true;
|
|
436
|
+
workspaceId: string;
|
|
437
|
+
policy: GovernancePolicy;
|
|
438
|
+
plainEnglish: {
|
|
439
|
+
headline: string;
|
|
440
|
+
postureLabel: string;
|
|
441
|
+
rules: string[];
|
|
442
|
+
badges: Array<{
|
|
443
|
+
label: string;
|
|
444
|
+
tone: "safe" | "warn" | "strict";
|
|
445
|
+
}>;
|
|
446
|
+
};
|
|
447
|
+
activeDefaults: Record<string, unknown>;
|
|
448
|
+
activeGuardrails: string[];
|
|
449
|
+
}>;
|
|
450
|
+
setGuardrail(promptOrParams: string | {
|
|
451
|
+
prompt: string;
|
|
452
|
+
}): Promise<{
|
|
453
|
+
ok: true;
|
|
454
|
+
workspace: Workspace;
|
|
455
|
+
guardrail: Record<string, unknown>;
|
|
456
|
+
plainEnglish: {
|
|
457
|
+
headline: string;
|
|
458
|
+
postureLabel: string;
|
|
459
|
+
rules: string[];
|
|
460
|
+
badges: Array<{
|
|
461
|
+
label: string;
|
|
462
|
+
tone: "safe" | "warn" | "strict";
|
|
463
|
+
}>;
|
|
464
|
+
};
|
|
465
|
+
humanMessage: string;
|
|
466
|
+
}>;
|
|
467
|
+
resetGuardrails(): Promise<{
|
|
468
|
+
ok: true;
|
|
469
|
+
workspace: Workspace;
|
|
470
|
+
plainEnglish: {
|
|
471
|
+
headline: string;
|
|
472
|
+
postureLabel: string;
|
|
473
|
+
rules: string[];
|
|
474
|
+
badges: Array<{
|
|
475
|
+
label: string;
|
|
476
|
+
tone: "safe" | "warn" | "strict";
|
|
477
|
+
}>;
|
|
478
|
+
};
|
|
479
|
+
humanMessage: string;
|
|
307
480
|
}>;
|
|
308
481
|
setKillSwitch(action: "quarantine" | "terminate" | "suspend" | "resume", reason?: string): Promise<{
|
|
309
482
|
ok: true;
|
|
@@ -336,6 +509,45 @@ export declare class MuxoClient {
|
|
|
336
509
|
ok: true;
|
|
337
510
|
workspace: Workspace;
|
|
338
511
|
}>;
|
|
512
|
+
getPolicy(): Promise<{
|
|
513
|
+
ok: true;
|
|
514
|
+
policy: GovernancePolicy;
|
|
515
|
+
plainEnglish: Record<string, unknown>;
|
|
516
|
+
explanation?: HumanFriendlyExplanation;
|
|
517
|
+
activeDefaults: Record<string, unknown>;
|
|
518
|
+
activeGuardrails: string[];
|
|
519
|
+
}>;
|
|
520
|
+
getContext(query?: string): Promise<{
|
|
521
|
+
ok: true;
|
|
522
|
+
workspaceId: string;
|
|
523
|
+
workspaceSlug: string;
|
|
524
|
+
policy: GovernancePolicy;
|
|
525
|
+
plainEnglishPolicy?: Record<string, unknown>;
|
|
526
|
+
languageMode?: string;
|
|
527
|
+
customInstructions?: string[];
|
|
528
|
+
activeDefaults?: Record<string, unknown>;
|
|
529
|
+
activeGuardrails?: string[];
|
|
530
|
+
creditsBalance: number;
|
|
531
|
+
llmSystemPrompt?: string;
|
|
532
|
+
explanation?: HumanFriendlyExplanation;
|
|
533
|
+
supermemoryBrain?: Record<string, unknown>;
|
|
534
|
+
[key: string]: unknown;
|
|
535
|
+
}>;
|
|
536
|
+
listReceipts(limit?: number): Promise<{
|
|
537
|
+
ok: true;
|
|
538
|
+
receipts: Array<ExecutionReceipt & {
|
|
539
|
+
explanation?: HumanFriendlyExplanation;
|
|
540
|
+
}>;
|
|
541
|
+
total: number;
|
|
542
|
+
explanation?: HumanFriendlyExplanation;
|
|
543
|
+
}>;
|
|
544
|
+
remember(instruction: string): Promise<{
|
|
545
|
+
ok: true;
|
|
546
|
+
memory: WorkspaceMemoryRecord;
|
|
547
|
+
activeDefaults?: Record<string, unknown>;
|
|
548
|
+
explanation?: HumanFriendlyExplanation;
|
|
549
|
+
humanMessage?: string;
|
|
550
|
+
}>;
|
|
339
551
|
do(prompt: string, options?: {
|
|
340
552
|
input?: Record<string, unknown>;
|
|
341
553
|
autoApprove?: boolean;
|
|
@@ -398,19 +610,41 @@ export declare class MuxoClient {
|
|
|
398
610
|
provider: string;
|
|
399
611
|
keys: ByokKeyRecord[];
|
|
400
612
|
}>;
|
|
401
|
-
|
|
613
|
+
/** Lists plans, prices, and credit packs. No auth required. */
|
|
614
|
+
getPlans(): Promise<{
|
|
615
|
+
ok: true;
|
|
616
|
+
} & PlanCatalog>;
|
|
617
|
+
/**
|
|
618
|
+
* Moves the workspace to a plan. A first subscription returns a Stripe checkout URL
|
|
619
|
+
* (`payment_required`); changing an existing subscription returns a billing-portal URL.
|
|
620
|
+
* Plan changes are confirmed by a signed-in person; API keys get `human_required`.
|
|
621
|
+
*/
|
|
622
|
+
upgradePlan(options?: {
|
|
623
|
+
tier?: "starter" | "pro";
|
|
624
|
+
interval?: "month" | "year";
|
|
625
|
+
}): Promise<UpgradePlanResult>;
|
|
626
|
+
/**
|
|
627
|
+
* Opens the Stripe billing portal to manage payment details, switch plans, or cancel.
|
|
628
|
+
* Signed-in people only; API keys get a `human_required` MuxoApiError.
|
|
629
|
+
*/
|
|
630
|
+
openBillingPortal(): Promise<{
|
|
402
631
|
ok: true;
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
settlementSummary: SupplierSettlementSummary;
|
|
632
|
+
url: string;
|
|
633
|
+
portalUrl: string;
|
|
406
634
|
}>;
|
|
407
|
-
createCheckoutSession(kind?: "starter_subscription" | "credit_topup",
|
|
635
|
+
createCheckoutSession(kind?: "subscription" | "starter_subscription" | "credit_topup", optionsOrCredits?: number | {
|
|
636
|
+
credits?: number;
|
|
637
|
+
tier?: "starter" | "pro";
|
|
638
|
+
interval?: "month" | "year";
|
|
639
|
+
}): Promise<{
|
|
408
640
|
ok: true;
|
|
409
641
|
sessionId: string;
|
|
410
642
|
url: string;
|
|
411
643
|
mode?: string;
|
|
412
644
|
kind?: string;
|
|
413
645
|
credits?: number;
|
|
646
|
+
tier?: string;
|
|
647
|
+
interval?: string;
|
|
414
648
|
}>;
|
|
415
649
|
verifyCheckoutSession(sessionId: string): Promise<{
|
|
416
650
|
ok: true;
|
|
@@ -418,4 +652,300 @@ export declare class MuxoClient {
|
|
|
418
652
|
workspace: Workspace | null;
|
|
419
653
|
kind: string;
|
|
420
654
|
}>;
|
|
655
|
+
createProvisioningConnectedAccount(params?: {
|
|
656
|
+
contact_email?: string;
|
|
657
|
+
display_name?: string;
|
|
658
|
+
country?: string;
|
|
659
|
+
entity_type?: "individual" | "company";
|
|
660
|
+
}): Promise<{
|
|
661
|
+
ok: true;
|
|
662
|
+
apiVersion: string;
|
|
663
|
+
id: string;
|
|
664
|
+
object: "v2.core.account";
|
|
665
|
+
contact_email?: string;
|
|
666
|
+
display_name?: string;
|
|
667
|
+
configuration?: Record<string, unknown>;
|
|
668
|
+
requirements?: Record<string, unknown>;
|
|
669
|
+
livemode?: boolean;
|
|
670
|
+
}>;
|
|
671
|
+
getProvisioningConnectedAccount(accountId?: string): Promise<any>;
|
|
672
|
+
createProvisioningConnectedAccountLink(params?: {
|
|
673
|
+
account?: string;
|
|
674
|
+
type?: "account_onboarding" | "account_update";
|
|
675
|
+
fields?: "currently_due" | "eventually_due";
|
|
676
|
+
future_requirements?: "include" | "omit";
|
|
677
|
+
refresh_url?: string;
|
|
678
|
+
return_url?: string;
|
|
679
|
+
auto_create?: boolean;
|
|
680
|
+
}): Promise<{
|
|
681
|
+
ok: true;
|
|
682
|
+
apiVersion: string;
|
|
683
|
+
object: "v2.core.account_link";
|
|
684
|
+
account: string;
|
|
685
|
+
url: string;
|
|
686
|
+
expires_at?: string;
|
|
687
|
+
livemode?: boolean;
|
|
688
|
+
}>;
|
|
689
|
+
createProvisioningConnectedAccountSession(params?: {
|
|
690
|
+
account?: string;
|
|
691
|
+
enable_account_management?: boolean;
|
|
692
|
+
disable_stripe_user_authentication?: boolean;
|
|
693
|
+
external_account_collection?: boolean;
|
|
694
|
+
fields?: "currently_due" | "eventually_due";
|
|
695
|
+
future_requirements?: "include" | "omit";
|
|
696
|
+
auto_create?: boolean;
|
|
697
|
+
}): Promise<{
|
|
698
|
+
ok: true;
|
|
699
|
+
apiVersion: string;
|
|
700
|
+
object: "account_session";
|
|
701
|
+
account: string;
|
|
702
|
+
client_secret: string;
|
|
703
|
+
publishable_key: string | null;
|
|
704
|
+
embedded_component: "account-onboarding";
|
|
705
|
+
collection_options: {
|
|
706
|
+
fields: "currently_due" | "eventually_due";
|
|
707
|
+
future_requirements: "include" | "omit";
|
|
708
|
+
};
|
|
709
|
+
components: Record<string, unknown>;
|
|
710
|
+
expires_at: number;
|
|
711
|
+
livemode: boolean;
|
|
712
|
+
}>;
|
|
713
|
+
checkProvisioningEligibility(): Promise<{
|
|
714
|
+
ok: true;
|
|
715
|
+
apiVersion: string;
|
|
716
|
+
object: "v2.provisioning.eligibility";
|
|
717
|
+
is_eligible: boolean;
|
|
718
|
+
livemode: boolean;
|
|
719
|
+
requirements: string[];
|
|
720
|
+
ready?: boolean;
|
|
721
|
+
platform_action?: string;
|
|
722
|
+
source: string;
|
|
723
|
+
}>;
|
|
724
|
+
listProvisioningProviders(params?: {
|
|
725
|
+
catalog?: "dev" | "prod" | "testing";
|
|
726
|
+
limit?: number;
|
|
727
|
+
page?: string;
|
|
728
|
+
}): Promise<{
|
|
729
|
+
ok: true;
|
|
730
|
+
apiVersion: string;
|
|
731
|
+
object: "v2.list";
|
|
732
|
+
data: Array<Record<string, unknown>>;
|
|
733
|
+
next_page_url: string | null;
|
|
734
|
+
previous_page_url: string | null;
|
|
735
|
+
source: string;
|
|
736
|
+
}>;
|
|
737
|
+
listProvisioningServices(params?: {
|
|
738
|
+
catalog?: "dev" | "prod" | "testing";
|
|
739
|
+
provider_name?: string;
|
|
740
|
+
provider_id?: string;
|
|
741
|
+
limit?: number;
|
|
742
|
+
page?: string;
|
|
743
|
+
}): Promise<{
|
|
744
|
+
ok: true;
|
|
745
|
+
apiVersion: string;
|
|
746
|
+
object: "v2.list";
|
|
747
|
+
data: Array<Record<string, unknown>>;
|
|
748
|
+
next_page_url: string | null;
|
|
749
|
+
previous_page_url: string | null;
|
|
750
|
+
source: string;
|
|
751
|
+
}>;
|
|
752
|
+
getProvisioningPaymentProfile(params?: {
|
|
753
|
+
provider?: string;
|
|
754
|
+
livemode?: boolean;
|
|
755
|
+
}): Promise<{
|
|
756
|
+
ok: true;
|
|
757
|
+
apiVersion: string;
|
|
758
|
+
object: "v2.provisioning.payment_profile";
|
|
759
|
+
card_last4: string | null;
|
|
760
|
+
usage_limits: Record<string, unknown> | null;
|
|
761
|
+
providers: Array<Record<string, unknown>>;
|
|
762
|
+
payment_method_owner: string | null;
|
|
763
|
+
livemode: boolean;
|
|
764
|
+
has_payment_method?: boolean;
|
|
765
|
+
source: string;
|
|
766
|
+
}>;
|
|
767
|
+
createProvisioningPaymentMethodRequest(params?: {
|
|
768
|
+
usage_limits?: Record<string, unknown>;
|
|
769
|
+
livemode?: boolean;
|
|
770
|
+
}): Promise<Record<string, unknown>>;
|
|
771
|
+
listProvisioningProviderConnections(params?: {
|
|
772
|
+
provider?: string;
|
|
773
|
+
limit?: number;
|
|
774
|
+
page?: string;
|
|
775
|
+
}): Promise<{
|
|
776
|
+
ok: true;
|
|
777
|
+
apiVersion: string;
|
|
778
|
+
object: "list";
|
|
779
|
+
data: Array<Record<string, unknown>>;
|
|
780
|
+
has_more?: boolean;
|
|
781
|
+
}>;
|
|
782
|
+
createProvisioningProviderConnectionRequest(params: {
|
|
783
|
+
provider: string;
|
|
784
|
+
configuration?: Record<string, string>;
|
|
785
|
+
project?: string;
|
|
786
|
+
}): Promise<Record<string, unknown>>;
|
|
787
|
+
listProvisioningProjects(params?: {
|
|
788
|
+
limit?: number;
|
|
789
|
+
page?: string;
|
|
790
|
+
}): Promise<{
|
|
791
|
+
ok: true;
|
|
792
|
+
apiVersion: string;
|
|
793
|
+
object: "list";
|
|
794
|
+
data: Array<Record<string, unknown>>;
|
|
795
|
+
has_more?: boolean;
|
|
796
|
+
}>;
|
|
797
|
+
createProvisioningProject(params: {
|
|
798
|
+
name: string;
|
|
799
|
+
catalog?: "dev" | "prod" | "testing";
|
|
800
|
+
project_profile?: string;
|
|
801
|
+
}): Promise<Record<string, unknown>>;
|
|
802
|
+
listProvisioningResources(params?: {
|
|
803
|
+
project?: string;
|
|
804
|
+
provider?: string;
|
|
805
|
+
limit?: number;
|
|
806
|
+
page?: string;
|
|
807
|
+
}): Promise<{
|
|
808
|
+
ok: true;
|
|
809
|
+
apiVersion: string;
|
|
810
|
+
object: "list";
|
|
811
|
+
data: Array<Record<string, unknown>>;
|
|
812
|
+
has_more?: boolean;
|
|
813
|
+
}>;
|
|
814
|
+
createProvisioningResource(params: {
|
|
815
|
+
provider: string;
|
|
816
|
+
service_ref: string;
|
|
817
|
+
configuration?: Record<string, unknown>;
|
|
818
|
+
name?: string;
|
|
819
|
+
project?: string;
|
|
820
|
+
environment?: "dev" | "prod";
|
|
821
|
+
catalog?: "dev" | "prod" | "testing";
|
|
822
|
+
livemode?: boolean;
|
|
823
|
+
}): Promise<Record<string, unknown>>;
|
|
824
|
+
revealResourceAccessConfiguration(resourceId: string): Promise<{
|
|
825
|
+
ok: true;
|
|
826
|
+
apiVersion: string;
|
|
827
|
+
object: string;
|
|
828
|
+
resource: string;
|
|
829
|
+
configuration: Record<string, string>;
|
|
830
|
+
created: string;
|
|
831
|
+
expires_at?: string | null;
|
|
832
|
+
livemode: boolean;
|
|
833
|
+
source: string;
|
|
834
|
+
}>;
|
|
835
|
+
getResourceSecrets(resourceId: string): Promise<{
|
|
836
|
+
ok: true;
|
|
837
|
+
resourceId: string;
|
|
838
|
+
resourceName: string;
|
|
839
|
+
workspaceId: string;
|
|
840
|
+
envVarKeys: string[];
|
|
841
|
+
secrets: Record<string, string>;
|
|
842
|
+
}>;
|
|
843
|
+
listWorkspaces(): Promise<{
|
|
844
|
+
ok: true;
|
|
845
|
+
currentWorkspaceId: string;
|
|
846
|
+
workspaces: WorkspaceSummary[];
|
|
847
|
+
}>;
|
|
848
|
+
createWorkspace(params: {
|
|
849
|
+
name: string;
|
|
850
|
+
teamName?: string;
|
|
851
|
+
environment?: "live" | "test";
|
|
852
|
+
}): Promise<{
|
|
853
|
+
ok: true;
|
|
854
|
+
workspace: Workspace;
|
|
855
|
+
apiKey: string;
|
|
856
|
+
workspaces: WorkspaceSummary[];
|
|
857
|
+
}>;
|
|
858
|
+
switchWorkspace(workspaceId: string): Promise<{
|
|
859
|
+
ok: true;
|
|
860
|
+
workspace: Workspace;
|
|
861
|
+
workspaces: WorkspaceSummary[];
|
|
862
|
+
}>;
|
|
863
|
+
joinWorkspaceWithApiKey(apiKey: string): Promise<{
|
|
864
|
+
ok: true;
|
|
865
|
+
mode: "api_key_join";
|
|
866
|
+
workspace: Workspace;
|
|
867
|
+
apiKey: string;
|
|
868
|
+
sessionToken: string | null;
|
|
869
|
+
keyRecord: {
|
|
870
|
+
id: string;
|
|
871
|
+
name: string;
|
|
872
|
+
keyPrefix: string;
|
|
873
|
+
teamName: string | null;
|
|
874
|
+
role: WorkspaceRole;
|
|
875
|
+
environment: "live" | "test";
|
|
876
|
+
};
|
|
877
|
+
workspaces: WorkspaceSummary[];
|
|
878
|
+
message: string;
|
|
879
|
+
}>;
|
|
880
|
+
onboardTeam(params: {
|
|
881
|
+
teamName: string;
|
|
882
|
+
role?: WorkspaceRole;
|
|
883
|
+
mode?: "shared_workspace" | "dedicated_workspace";
|
|
884
|
+
environment?: "live" | "test";
|
|
885
|
+
scopes?: string[];
|
|
886
|
+
}): Promise<{
|
|
887
|
+
ok: true;
|
|
888
|
+
kit: TeamOnboardingKit;
|
|
889
|
+
workspace: Workspace;
|
|
890
|
+
apiKey: string;
|
|
891
|
+
workspaces: WorkspaceSummary[];
|
|
892
|
+
}>;
|
|
893
|
+
updateProvisioningSpendLimit(params: {
|
|
894
|
+
max_amount: string | number;
|
|
895
|
+
currency?: string;
|
|
896
|
+
recurring_interval?: string;
|
|
897
|
+
provider?: string;
|
|
898
|
+
}): Promise<Record<string, unknown>>;
|
|
899
|
+
createProvisioningEventDestination(params: {
|
|
900
|
+
name?: string;
|
|
901
|
+
url: string;
|
|
902
|
+
events?: string[];
|
|
903
|
+
}): Promise<Record<string, unknown>>;
|
|
904
|
+
recordBillingMeterEvent(params: {
|
|
905
|
+
event_name?: string;
|
|
906
|
+
value: number;
|
|
907
|
+
lane?: string;
|
|
908
|
+
tool_slug?: string;
|
|
909
|
+
identifier?: string;
|
|
910
|
+
}): Promise<Record<string, unknown>>;
|
|
911
|
+
listBillingMeterEvents(limit?: number): Promise<Record<string, unknown>>;
|
|
912
|
+
listToolkits(params?: {
|
|
913
|
+
category?: string;
|
|
914
|
+
search?: string;
|
|
915
|
+
}): Promise<Record<string, unknown>>;
|
|
916
|
+
createCustomAuthConfig(params: {
|
|
917
|
+
toolkitSlug: string;
|
|
918
|
+
authScheme: "OAUTH2" | "API_KEY";
|
|
919
|
+
scopeMode?: "read_only" | "full_access";
|
|
920
|
+
customScopes?: string[];
|
|
921
|
+
credentials?: Record<string, string>;
|
|
922
|
+
}): Promise<Record<string, unknown>>;
|
|
923
|
+
listTriggers(provider?: string): Promise<Record<string, unknown>>;
|
|
924
|
+
enableTrigger(params: {
|
|
925
|
+
triggerSlug: string;
|
|
926
|
+
providerSlug: string;
|
|
927
|
+
webhookUrl?: string;
|
|
928
|
+
config?: Record<string, unknown>;
|
|
929
|
+
}): Promise<Record<string, unknown>>;
|
|
930
|
+
ingestTriggerWebhook(params: {
|
|
931
|
+
triggerSlug: string;
|
|
932
|
+
providerSlug?: string;
|
|
933
|
+
payload: Record<string, unknown>;
|
|
934
|
+
}): Promise<Record<string, unknown>>;
|
|
935
|
+
executeBatchPlans(params: {
|
|
936
|
+
items: Array<{
|
|
937
|
+
toolSlug: string;
|
|
938
|
+
input: Record<string, unknown>;
|
|
939
|
+
reason: string;
|
|
940
|
+
}>;
|
|
941
|
+
autoApprove?: boolean;
|
|
942
|
+
}): Promise<Record<string, unknown>>;
|
|
943
|
+
searchMemoryHybrid(query: string, limit?: number): Promise<Record<string, unknown>>;
|
|
944
|
+
startDurableWorkflow(params: {
|
|
945
|
+
provider?: string;
|
|
946
|
+
serviceRef?: string;
|
|
947
|
+
region?: string;
|
|
948
|
+
}): Promise<Record<string, unknown>>;
|
|
949
|
+
advanceDurableWorkflow(workflowId: string, eventPayload?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
950
|
+
exportGovernanceArchive(): Promise<Record<string, unknown>>;
|
|
421
951
|
}
|