@muxoai/sdk 1.3.0 → 1.4.2
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 +19 -4
- package/.codex/config.toml +9 -2
- package/ARCHITECTURE.md +16 -6
- package/README.md +69 -24
- package/dist/clerk.d.ts +35 -0
- package/dist/clerk.js +201 -0
- package/dist/cli.js +1589 -103
- package/dist/composio-catalog.d.ts +234 -0
- package/dist/composio-catalog.js +1894 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.js +27 -1
- package/dist/durable-workflow.d.ts +45 -0
- package/dist/durable-workflow.js +90 -0
- package/dist/engine.d.ts +315 -6
- package/dist/engine.js +1778 -94
- package/dist/mcp-schema.d.ts +286 -0
- package/dist/mcp-schema.js +2559 -0
- package/dist/mcp.d.ts +2 -25
- package/dist/mcp.js +949 -507
- package/dist/memory-graph.d.ts +21 -0
- package/dist/memory-graph.js +173 -0
- package/dist/nl.js +214 -35
- package/dist/oauth.d.ts +32 -0
- package/dist/oauth.js +134 -0
- package/dist/policy.d.ts +190 -0
- package/dist/policy.js +1597 -0
- package/dist/providers/composio-instant.d.ts +4 -0
- package/dist/providers/composio-instant.js +890 -535
- package/dist/providers/composio-sdk.d.ts +126 -5
- package/dist/providers/composio-sdk.js +902 -79
- package/dist/providers/microsoft-governance.d.ts +89 -3
- package/dist/providers/microsoft-governance.js +673 -26
- package/dist/providers/stripe-billing.d.ts +42 -0
- package/dist/providers/stripe-billing.js +244 -5
- package/dist/providers/stripe-projects.d.ts +459 -4
- package/dist/providers/stripe-projects.js +2674 -122
- package/dist/providers/supermemory.d.ts +102 -6
- package/dist/providers/supermemory.js +609 -55
- package/dist/provisioning-managed.d.ts +50 -0
- package/dist/provisioning-managed.js +155 -0
- package/dist/sdk.d.ts +705 -7
- package/dist/sdk.js +488 -10
- package/dist/server.js +2646 -348
- package/dist/store.d.ts +138 -6
- package/dist/store.js +932 -58
- package/dist/types.d.ts +312 -4
- package/dist/ui/console-html.d.ts +62 -0
- package/dist/ui/console-html.js +3742 -2228
- package/dist/ui/design-tokens.d.ts +177 -0
- package/dist/ui/design-tokens.js +210 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/package.json +5 -4
- package/plugins/muxo/.app.json +1 -1
- package/plugins/muxo/.claude-plugin/plugin.json +3 -3
- package/plugins/muxo/.codex-plugin/plugin.json +19 -10
- package/plugins/muxo/.cursor-plugin/plugin.json +30 -0
- package/plugins/muxo/.mcp.json +1 -33
- package/plugins/muxo/assets/logo.png +0 -0
- package/plugins/muxo/hooks/session-start.sh +16 -4
- package/plugins/muxo/hooks/user-prompt-submit.sh +14 -1
- package/plugins/muxo/mcp.json +0 -10
- package/plugins/muxo/plugin.json +65 -8
- package/plugins/muxo/skills/muxo/SKILL.md +142 -14
- package/plugins/muxo/skills/muxo/agents/openai.yaml +12 -0
- package/plugins/muxo/skills/muxo/references/cli.md +9 -3
- package/plugins/muxo/skills/muxo/references/mcp.md +22 -10
- package/plugins/muxo/skills/muxo-activity-summary/SKILL.md +81 -0
- package/plugins/muxo/skills/setup/SKILL.md +17 -3
- package/plugins/muxo/skills/setup/agents/openai.yaml +12 -0
- package/src/catalogues/stripe-projects-catalog.json +140 -0
package/dist/sdk.d.ts
CHANGED
|
@@ -1,10 +1,87 @@
|
|
|
1
|
-
import type { ActionPlan, ByokKeyRecord, ConnectionRecord, ExecutionReceipt, ExecutionRun, MuxoTool, ProviderLane, ProvisionedResource, RiskLevel, SupplierSettlementSummary, 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
|
+
export interface MuxoTrustScore {
|
|
3
|
+
overall: number;
|
|
4
|
+
tier: string;
|
|
5
|
+
reliability?: number;
|
|
6
|
+
consistency?: number;
|
|
7
|
+
}
|
|
2
8
|
export interface MuxoClientOptions {
|
|
3
9
|
baseUrl?: string;
|
|
4
10
|
apiKey?: string | (() => string | Promise<string>);
|
|
5
11
|
fetch?: typeof fetch;
|
|
6
12
|
timeoutMs?: number;
|
|
7
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
|
+
};
|
|
8
85
|
export declare class MuxoClient {
|
|
9
86
|
readonly baseUrl: string;
|
|
10
87
|
private readonly apiKeyResolver?;
|
|
@@ -28,6 +105,54 @@ export declare class MuxoClient {
|
|
|
28
105
|
governanceDid: string;
|
|
29
106
|
supermemoryNamespace: string;
|
|
30
107
|
}>;
|
|
108
|
+
static register(params: {
|
|
109
|
+
email: string;
|
|
110
|
+
password: string;
|
|
111
|
+
name?: string;
|
|
112
|
+
workspaceName?: string;
|
|
113
|
+
}, baseUrl?: string): Promise<{
|
|
114
|
+
ok: true;
|
|
115
|
+
user: Record<string, unknown>;
|
|
116
|
+
workspace: Workspace;
|
|
117
|
+
apiKey: string;
|
|
118
|
+
sessionToken: string;
|
|
119
|
+
token: string;
|
|
120
|
+
}>;
|
|
121
|
+
static login(params: {
|
|
122
|
+
email: string;
|
|
123
|
+
password: string;
|
|
124
|
+
}, baseUrl?: string): Promise<{
|
|
125
|
+
ok: true;
|
|
126
|
+
user: Record<string, unknown>;
|
|
127
|
+
workspace: Workspace;
|
|
128
|
+
apiKey: string;
|
|
129
|
+
sessionToken: string;
|
|
130
|
+
token: string;
|
|
131
|
+
}>;
|
|
132
|
+
register(params: {
|
|
133
|
+
email: string;
|
|
134
|
+
password: string;
|
|
135
|
+
name?: string;
|
|
136
|
+
workspaceName?: string;
|
|
137
|
+
}): Promise<{
|
|
138
|
+
ok: true;
|
|
139
|
+
user: Record<string, unknown>;
|
|
140
|
+
workspace: Workspace;
|
|
141
|
+
apiKey: string;
|
|
142
|
+
sessionToken: string;
|
|
143
|
+
token: string;
|
|
144
|
+
}>;
|
|
145
|
+
login(params: {
|
|
146
|
+
email: string;
|
|
147
|
+
password: string;
|
|
148
|
+
}): Promise<{
|
|
149
|
+
ok: true;
|
|
150
|
+
user: Record<string, unknown>;
|
|
151
|
+
workspace: Workspace;
|
|
152
|
+
apiKey: string;
|
|
153
|
+
sessionToken: string;
|
|
154
|
+
token: string;
|
|
155
|
+
}>;
|
|
31
156
|
signupAgent(params: {
|
|
32
157
|
agentName?: string;
|
|
33
158
|
harness?: string;
|
|
@@ -65,6 +190,7 @@ export declare class MuxoClient {
|
|
|
65
190
|
toolSlug: string;
|
|
66
191
|
input: Record<string, unknown>;
|
|
67
192
|
reason?: string;
|
|
193
|
+
fundingMode?: "muxo_funded" | "byok";
|
|
68
194
|
}): Promise<{
|
|
69
195
|
ok: true;
|
|
70
196
|
plan: ActionPlan;
|
|
@@ -78,8 +204,31 @@ export declare class MuxoClient {
|
|
|
78
204
|
waitTool: string;
|
|
79
205
|
instructions: string;
|
|
80
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;
|
|
221
|
+
}>;
|
|
222
|
+
waitForPlanApproval(planId: string, timeoutSeconds?: number): Promise<{
|
|
223
|
+
ok: true;
|
|
224
|
+
plan: ActionPlan;
|
|
225
|
+
approved: boolean;
|
|
226
|
+
rejected: boolean;
|
|
227
|
+
timedOut: boolean;
|
|
228
|
+
humanHandoff?: HumanHandoff;
|
|
229
|
+
llmGuidance?: LlmGuidance;
|
|
81
230
|
}>;
|
|
82
|
-
approvePlan(planId: string): Promise<{
|
|
231
|
+
approvePlan(planId: string, decision?: "approved" | "rejected"): Promise<{
|
|
83
232
|
ok: true;
|
|
84
233
|
plan: ActionPlan;
|
|
85
234
|
}>;
|
|
@@ -88,9 +237,19 @@ export declare class MuxoClient {
|
|
|
88
237
|
run: ExecutionRun;
|
|
89
238
|
receipt: ExecutionReceipt;
|
|
90
239
|
}>;
|
|
240
|
+
getRun(runId: string): Promise<{
|
|
241
|
+
ok: true;
|
|
242
|
+
run: ExecutionRun;
|
|
243
|
+
}>;
|
|
244
|
+
cancelRun(runId: string, reason?: string): Promise<{
|
|
245
|
+
ok: true;
|
|
246
|
+
run: ExecutionRun;
|
|
247
|
+
receipt: ExecutionReceipt;
|
|
248
|
+
}>;
|
|
91
249
|
exec(toolSlug: string, input?: Record<string, unknown>, options?: {
|
|
92
250
|
reason?: string;
|
|
93
251
|
approve?: boolean;
|
|
252
|
+
fundingMode?: "muxo_funded" | "byok";
|
|
94
253
|
}): Promise<{
|
|
95
254
|
ok: true;
|
|
96
255
|
plan: ActionPlan;
|
|
@@ -103,7 +262,28 @@ export declare class MuxoClient {
|
|
|
103
262
|
valid: boolean;
|
|
104
263
|
verified: boolean;
|
|
105
264
|
receipt: ExecutionReceipt;
|
|
265
|
+
agenticReceiptValid?: boolean;
|
|
266
|
+
explanation?: HumanFriendlyExplanation;
|
|
106
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>;
|
|
107
287
|
startConnection(paramsOrProvider: string | {
|
|
108
288
|
provider: string;
|
|
109
289
|
lane?: ProviderLane;
|
|
@@ -152,6 +332,11 @@ export declare class MuxoClient {
|
|
|
152
332
|
}>;
|
|
153
333
|
getBillingStatus(): Promise<{
|
|
154
334
|
ok: true;
|
|
335
|
+
workspace?: Workspace;
|
|
336
|
+
creditsBalance?: number;
|
|
337
|
+
creditBalance?: number;
|
|
338
|
+
tier?: string;
|
|
339
|
+
byokKeys?: ByokKeyRecord[];
|
|
155
340
|
settlementSummary: SupplierSettlementSummary & {
|
|
156
341
|
totalCustomerChargedCredits?: number;
|
|
157
342
|
};
|
|
@@ -173,11 +358,202 @@ export declare class MuxoClient {
|
|
|
173
358
|
ok: true;
|
|
174
359
|
namespace: string;
|
|
175
360
|
records: WorkspaceMemoryRecord[];
|
|
361
|
+
recentMemories?: WorkspaceMemoryRecord[];
|
|
362
|
+
memories?: WorkspaceMemoryRecord[];
|
|
363
|
+
}>;
|
|
364
|
+
addMemory(paramsOrContent: string | {
|
|
365
|
+
title?: string;
|
|
366
|
+
content: string;
|
|
367
|
+
kind?: WorkspaceMemoryRecord["kind"];
|
|
368
|
+
subject?: string;
|
|
369
|
+
predicate?: string;
|
|
370
|
+
object?: string;
|
|
371
|
+
confidence?: number;
|
|
372
|
+
metadata?: Record<string, unknown>;
|
|
373
|
+
}): Promise<{
|
|
374
|
+
ok: true;
|
|
375
|
+
memory: WorkspaceMemoryRecord;
|
|
376
|
+
temporalFacts?: Array<Record<string, unknown>>;
|
|
377
|
+
fundingSource?: string;
|
|
378
|
+
}>;
|
|
379
|
+
deleteMemory(id: string): Promise<{
|
|
380
|
+
ok: true;
|
|
381
|
+
deleted: boolean;
|
|
382
|
+
record: WorkspaceMemoryRecord | null;
|
|
383
|
+
}>;
|
|
384
|
+
getMemoryFacts(options?: boolean | {
|
|
385
|
+
includeHistorical?: boolean;
|
|
386
|
+
query?: string;
|
|
387
|
+
subject?: string;
|
|
388
|
+
predicate?: string;
|
|
389
|
+
limit?: number;
|
|
390
|
+
}): Promise<{
|
|
391
|
+
ok: true;
|
|
392
|
+
activeFacts: TemporalGraphFact[];
|
|
393
|
+
historicalFacts: TemporalGraphFact[];
|
|
394
|
+
facts: TemporalGraphFact[];
|
|
395
|
+
}>;
|
|
396
|
+
listTemporalFacts(options?: Parameters<MuxoClient["getMemoryFacts"]>[0]): Promise<{
|
|
397
|
+
ok: true;
|
|
398
|
+
activeFacts: TemporalGraphFact[];
|
|
399
|
+
historicalFacts: TemporalGraphFact[];
|
|
400
|
+
facts: TemporalGraphFact[];
|
|
401
|
+
}>;
|
|
402
|
+
forgetMemory(queryOrParams: string | {
|
|
403
|
+
query: string;
|
|
404
|
+
}): Promise<{
|
|
405
|
+
ok: true;
|
|
406
|
+
query: string;
|
|
407
|
+
deletedLocalCount: number;
|
|
408
|
+
invalidatedFactsCount: number;
|
|
409
|
+
deletedRemoteIds: string[];
|
|
410
|
+
deletedMemories: WorkspaceMemoryRecord[];
|
|
411
|
+
invalidatedFacts: TemporalGraphFact[];
|
|
412
|
+
}>;
|
|
413
|
+
getGovernanceStatus(): Promise<{
|
|
414
|
+
ok: true;
|
|
415
|
+
governance: Record<string, unknown> & {
|
|
416
|
+
modules?: unknown;
|
|
417
|
+
trustScore?: MuxoTrustScore;
|
|
418
|
+
killSwitch?: Record<string, unknown> | null;
|
|
419
|
+
auditChain?: Record<string, unknown>;
|
|
420
|
+
};
|
|
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;
|
|
480
|
+
}>;
|
|
481
|
+
setKillSwitch(action: "quarantine" | "terminate" | "suspend" | "resume", reason?: string): Promise<{
|
|
482
|
+
ok: true;
|
|
483
|
+
activated?: boolean;
|
|
484
|
+
resumed?: boolean;
|
|
485
|
+
killSwitch?: Record<string, unknown>;
|
|
486
|
+
policy: GovernancePolicy;
|
|
487
|
+
trustScore: MuxoTrustScore;
|
|
488
|
+
}>;
|
|
489
|
+
scanContext(contentOrParams: string | {
|
|
490
|
+
content: string;
|
|
491
|
+
sessionId?: string;
|
|
492
|
+
role?: "user" | "assistant" | "tool" | "system";
|
|
493
|
+
}): Promise<{
|
|
494
|
+
ok: true;
|
|
495
|
+
scan: {
|
|
496
|
+
safe: boolean;
|
|
497
|
+
riskLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
498
|
+
findingsCount: number;
|
|
499
|
+
findings: Array<{
|
|
500
|
+
patternId: string;
|
|
501
|
+
patternName: string;
|
|
502
|
+
severity: string;
|
|
503
|
+
description: string;
|
|
504
|
+
}>;
|
|
505
|
+
integrityValid: boolean;
|
|
506
|
+
};
|
|
507
|
+
}>;
|
|
508
|
+
updatePolicy(policy: Partial<Omit<GovernancePolicy, "killSwitchActive" | "killSwitchReason">>): Promise<{
|
|
509
|
+
ok: true;
|
|
510
|
+
workspace: Workspace;
|
|
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;
|
|
176
550
|
}>;
|
|
177
551
|
do(prompt: string, options?: {
|
|
178
552
|
input?: Record<string, unknown>;
|
|
179
553
|
autoApprove?: boolean;
|
|
180
554
|
dryRun?: boolean;
|
|
555
|
+
planOnly?: boolean;
|
|
556
|
+
fundingMode?: "muxo_funded" | "byok";
|
|
181
557
|
}): Promise<{
|
|
182
558
|
ok: boolean;
|
|
183
559
|
executed: boolean;
|
|
@@ -199,6 +575,8 @@ export declare class MuxoClient {
|
|
|
199
575
|
input?: Record<string, unknown>;
|
|
200
576
|
autoApprove?: boolean;
|
|
201
577
|
dryRun?: boolean;
|
|
578
|
+
planOnly?: boolean;
|
|
579
|
+
fundingMode?: "muxo_funded" | "byok";
|
|
202
580
|
}): Promise<{
|
|
203
581
|
ok: boolean;
|
|
204
582
|
executed: boolean;
|
|
@@ -232,17 +610,41 @@ export declare class MuxoClient {
|
|
|
232
610
|
provider: string;
|
|
233
611
|
keys: ByokKeyRecord[];
|
|
234
612
|
}>;
|
|
235
|
-
|
|
613
|
+
/** Lists plans, prices, and credit packs. No auth required. */
|
|
614
|
+
getPlans(): Promise<{
|
|
236
615
|
ok: true;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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<{
|
|
631
|
+
ok: true;
|
|
632
|
+
url: string;
|
|
633
|
+
portalUrl: string;
|
|
240
634
|
}>;
|
|
241
|
-
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<{
|
|
242
640
|
ok: true;
|
|
243
641
|
sessionId: string;
|
|
244
642
|
url: string;
|
|
245
643
|
mode?: string;
|
|
644
|
+
kind?: string;
|
|
645
|
+
credits?: number;
|
|
646
|
+
tier?: string;
|
|
647
|
+
interval?: string;
|
|
246
648
|
}>;
|
|
247
649
|
verifyCheckoutSession(sessionId: string): Promise<{
|
|
248
650
|
ok: true;
|
|
@@ -250,4 +652,300 @@ export declare class MuxoClient {
|
|
|
250
652
|
workspace: Workspace | null;
|
|
251
653
|
kind: string;
|
|
252
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>>;
|
|
253
951
|
}
|