@m8tes/sdk 0.1.0-alpha.4 → 0.1.0-alpha.6
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/CHANGELOG.md +89 -1
- package/README.md +7 -1
- package/dist/{chunk-CURNMC4F.js → chunk-F6B6R3SP.js} +17 -2
- package/dist/chunk-F6B6R3SP.js.map +1 -0
- package/dist/index.cjs +90 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +163 -33
- package/dist/index.d.ts +163 -33
- package/dist/index.js +77 -24
- package/dist/index.js.map +1 -1
- package/dist/protocol/index.cjs +15 -0
- package/dist/protocol/index.cjs.map +1 -1
- package/dist/protocol/index.d.cts +4 -2
- package/dist/protocol/index.d.ts +4 -2
- package/dist/protocol/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CURNMC4F.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -206,10 +206,27 @@ interface Run {
|
|
|
206
206
|
/** Provider behind an OAuth subscription route: claude, openai, xai, or gemini. */
|
|
207
207
|
auth_provider?: string | null;
|
|
208
208
|
retryable?: boolean;
|
|
209
|
+
/** Whether this run performed any non-read-only action. Null when not computed. */
|
|
210
|
+
repeats_actions?: boolean | null;
|
|
211
|
+
/** Whether the offered recovery would repeat an action; latest turn only for chat. */
|
|
212
|
+
recovery_repeats_actions?: boolean | null;
|
|
209
213
|
retry_of_run_id?: number | null;
|
|
210
214
|
retry_count?: number;
|
|
211
215
|
output_data?: JsonObject | null;
|
|
212
216
|
usage?: RunUsage | null;
|
|
217
|
+
/**
|
|
218
|
+
* Which meter the run settles on: "api" (prepaid balance — end-user-scoped /
|
|
219
|
+
* embedding work) or "platform" (subscription plan — first-party work, INCLUDING
|
|
220
|
+
* the account's own API-key calls). Stamped at creation.
|
|
221
|
+
*/
|
|
222
|
+
billing_surface?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Where the run came in: "api", "app", "cli", "email", "slack", "imessage",
|
|
225
|
+
* "webhook". Attribution only, never billing — a first-party API-key call is
|
|
226
|
+
* channel "api" but billing_surface "platform", so filtering a developer view
|
|
227
|
+
* on surface alone hides your own traffic.
|
|
228
|
+
*/
|
|
229
|
+
channel?: string | null;
|
|
213
230
|
}
|
|
214
231
|
/** Condensed run result: what happened, without replaying the transcript. */
|
|
215
232
|
interface RunOutcome {
|
|
@@ -240,10 +257,15 @@ interface PermissionRequest {
|
|
|
240
257
|
created_at: string;
|
|
241
258
|
resolved_at: string | null;
|
|
242
259
|
auto_resolved?: boolean;
|
|
260
|
+
/** Actual saved cross-run grant outcome, also present on listings. Null means unknown. */
|
|
261
|
+
remembered?: boolean | null;
|
|
243
262
|
/** False when the runtime would ignore an "always allow" for this tool. */
|
|
244
263
|
can_remember?: boolean;
|
|
245
264
|
/** False when the Always-allow control must start unticked (force-ask floor). */
|
|
246
265
|
remember_default?: boolean;
|
|
266
|
+
ask_reason?: string;
|
|
267
|
+
surface?: string;
|
|
268
|
+
surface_label?: string | null;
|
|
247
269
|
}
|
|
248
270
|
interface Task {
|
|
249
271
|
id: number;
|
|
@@ -405,6 +427,8 @@ interface Webhook {
|
|
|
405
427
|
/** Signing secret. Returned on create only — store it, you cannot read it back. */
|
|
406
428
|
secret: string | null;
|
|
407
429
|
active: boolean;
|
|
430
|
+
/** End-user scope. Null/omitted = account-level. */
|
|
431
|
+
user_id?: string | null;
|
|
408
432
|
created_at: string;
|
|
409
433
|
updated_at?: string | null;
|
|
410
434
|
}
|
|
@@ -438,12 +462,12 @@ interface WebhookDelivery {
|
|
|
438
462
|
next_retry_at: string | null;
|
|
439
463
|
created_at: string;
|
|
440
464
|
}
|
|
441
|
-
/** A standing tool permission policy: one pre-approved tool for one
|
|
442
|
-
*
|
|
443
|
-
* `tool_name`. */
|
|
465
|
+
/** A standing tool permission policy: one pre-approved tool for one scope.
|
|
466
|
+
* `user_id` is null for the account-level scope. Note the asymmetry — you
|
|
467
|
+
* create it with `tool`, the API returns it as `tool_name`. */
|
|
444
468
|
interface PermissionPolicy {
|
|
445
469
|
id: number;
|
|
446
|
-
user_id: string;
|
|
470
|
+
user_id: string | null;
|
|
447
471
|
tool_name: string;
|
|
448
472
|
created_at: string;
|
|
449
473
|
/** Which surface minted the grant ("run_approval" / "api"); null on legacy rows. */
|
|
@@ -465,6 +489,10 @@ interface Usage {
|
|
|
465
489
|
cost_limit: string;
|
|
466
490
|
period_end: string;
|
|
467
491
|
subscription_status: string | null;
|
|
492
|
+
/** Current paid subscription cadence, when known. */
|
|
493
|
+
subscription_billing_period?: "monthly" | "annual" | null;
|
|
494
|
+
/** Authoritative eligibility for the model-subscription-funded Hobby path. */
|
|
495
|
+
free_path_available: boolean;
|
|
468
496
|
overage_enabled: boolean;
|
|
469
497
|
overage_used_cents: number;
|
|
470
498
|
/** Ceiling on overage spend per period. Runs stop billing overage once reached. */
|
|
@@ -512,7 +540,7 @@ interface Receipt {
|
|
|
512
540
|
receipt_url: string | null;
|
|
513
541
|
created_at: string;
|
|
514
542
|
}
|
|
515
|
-
/** A public
|
|
543
|
+
/** A public Hobby or paid plan from the canonical catalog. All prices in cents. */
|
|
516
544
|
interface Plan {
|
|
517
545
|
slug: string;
|
|
518
546
|
display_name: string;
|
|
@@ -520,9 +548,20 @@ interface Plan {
|
|
|
520
548
|
monthly_price_cents: number;
|
|
521
549
|
annual_price_cents: number;
|
|
522
550
|
overage_rate_cents: number;
|
|
551
|
+
/** `own_subscription` uses the customer's connected model plan; `platform` includes inference. */
|
|
552
|
+
inference_mode: "own_subscription" | "platform";
|
|
553
|
+
/** Whether this plan may opt into metered usage beyond its included runs. */
|
|
554
|
+
overage_available: boolean;
|
|
523
555
|
/** Per-period model-spend fair-use cap; `0` on servers that predate the field. */
|
|
524
556
|
fair_use_cost_limit_cents: number;
|
|
525
557
|
}
|
|
558
|
+
type SubscriptionPlanId = "individual" | "pro" | "max_5x" | "max_20x";
|
|
559
|
+
type SubscriptionBillingPeriod = "monthly" | "annual";
|
|
560
|
+
/** Stripe redirect returned when starting checkout or managing the current plan. */
|
|
561
|
+
interface SubscriptionCheckout {
|
|
562
|
+
url: string;
|
|
563
|
+
destination: "checkout" | "portal" | "sales";
|
|
564
|
+
}
|
|
526
565
|
/** One prepaid token-balance ledger entry. Micro-USD; debits are negative. */
|
|
527
566
|
interface TokenTransaction {
|
|
528
567
|
type: string;
|
|
@@ -836,6 +875,18 @@ interface OverageParams {
|
|
|
836
875
|
/** Hard ceiling on overage spend per period, in cents. */
|
|
837
876
|
monthly_cap_cents: number;
|
|
838
877
|
}
|
|
878
|
+
interface SubscriptionCheckoutParams {
|
|
879
|
+
plan_id: SubscriptionPlanId;
|
|
880
|
+
billing_period?: SubscriptionBillingPeriod;
|
|
881
|
+
}
|
|
882
|
+
interface BillingPortalParams {
|
|
883
|
+
/** Kept for wire compatibility; `subscription_update` returns a sales-contact URL. */
|
|
884
|
+
flow?: "subscription_update";
|
|
885
|
+
}
|
|
886
|
+
interface BillingPlansParams {
|
|
887
|
+
/** Include Hobby, which is activated separately and cannot be submitted to checkout. */
|
|
888
|
+
include_free?: boolean;
|
|
889
|
+
}
|
|
839
890
|
interface TopupParams {
|
|
840
891
|
/** Cents to add. $5 minimum, $1M maximum. */
|
|
841
892
|
amount_cents: number;
|
|
@@ -877,13 +928,19 @@ interface BillingResource {
|
|
|
877
928
|
* `receipt_url` can be `null` when Stripe can no longer retrieve the session.
|
|
878
929
|
*/
|
|
879
930
|
receipts(params?: PageParams): Promise<Page<Receipt>>;
|
|
880
|
-
/**
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
931
|
+
/** Purchasable plans from the canonical catalog. Pass `include_free` to also render Hobby. */
|
|
932
|
+
plans(params?: BillingPlansParams): Promise<Plan[]>;
|
|
933
|
+
/** Start a paid subscription. Existing customers may manage their current tier and cadence;
|
|
934
|
+
* changing either returns `destination="sales"` with a contact URL. */
|
|
935
|
+
checkout(params: SubscriptionCheckoutParams): Promise<SubscriptionCheckout>;
|
|
936
|
+
/** Open Stripe for payment methods, invoices, or cancellation. */
|
|
937
|
+
portal(params?: BillingPortalParams): Promise<string>;
|
|
938
|
+
/** Activate Hobby using a connected model subscription. */
|
|
939
|
+
activateFree(): Promise<Usage>;
|
|
884
940
|
/**
|
|
885
941
|
* Decide whether runs may continue past your plan's included allotment, and how
|
|
886
|
-
* far.
|
|
942
|
+
* far. Available only when the current catalog plan has `overage_available=true`.
|
|
943
|
+
* Off by default; once enabled, extra runs bill at the per-run overage rate
|
|
887
944
|
* until `monthly_cap_cents` is reached. Returns the refreshed usage so you can
|
|
888
945
|
* confirm the new state without a second call.
|
|
889
946
|
*/
|
|
@@ -1020,6 +1077,7 @@ interface ModelConnection {
|
|
|
1020
1077
|
provider: ModelConnectionProvider;
|
|
1021
1078
|
display_name: string;
|
|
1022
1079
|
connected: boolean;
|
|
1080
|
+
is_default: boolean;
|
|
1023
1081
|
status?: string | null;
|
|
1024
1082
|
account_label?: string | null;
|
|
1025
1083
|
expires_at?: string | null;
|
|
@@ -1054,46 +1112,72 @@ interface ModelConnectionsResource {
|
|
|
1054
1112
|
declare function createModelConnectionsResource(http: Http): ModelConnectionsResource;
|
|
1055
1113
|
|
|
1056
1114
|
/**
|
|
1057
|
-
* `client.permissions` — standing tool allow-lists
|
|
1115
|
+
* `client.permissions` — standing tool allow-lists.
|
|
1058
1116
|
*
|
|
1059
1117
|
* A run pauses whenever the agent reaches for a tool that is not pre-approved,
|
|
1060
1118
|
* and stays paused until somebody answers. That is the right default for a first
|
|
1061
1119
|
* run and the wrong one for a tool your product has already decided is fine. A
|
|
1062
|
-
* policy here says "
|
|
1063
|
-
* stop stopping.
|
|
1120
|
+
* policy here says "these runs may use this tool" once, so they stop stopping.
|
|
1064
1121
|
*
|
|
1065
|
-
*
|
|
1066
|
-
*
|
|
1067
|
-
*
|
|
1122
|
+
* TWO SCOPES, and `user_id` is what selects between them — it is not a required
|
|
1123
|
+
* argument. Pass it to reach one end-user's policies. OMIT it to reach the
|
|
1124
|
+
* ACCOUNT-LEVEL scope (`end_user_id IS NULL`), which is the scope a run with no
|
|
1125
|
+
* `user_id` matches and the one the platform writes to when somebody picks
|
|
1126
|
+
* "always allow" on a first-party run. Requiring `user_id` here is exactly what
|
|
1127
|
+
* made those policies ungovernable — grantable, but never listable or revocable
|
|
1128
|
+
* through this SDK. The API stopped requiring it on 2026-08-01
|
|
1129
|
+
* (`PermissionPolicyCreate.user_id`, `_end_user_id_query`); this client did not
|
|
1130
|
+
* follow, and its own docstring asserted the account scope did not exist.
|
|
1131
|
+
*
|
|
1132
|
+
* The two scopes never overlap: a delete must name the SAME scope the policy
|
|
1133
|
+
* lives in, so an end-user-scoped delete cannot reach an account-level policy
|
|
1134
|
+
* (404), and neither can the reverse.
|
|
1135
|
+
*
|
|
1136
|
+
* One account setting narrows this: with strict multi-tenant mode on
|
|
1137
|
+
* (`require_end_user_id`, the default for API-key signups) the server rejects a
|
|
1138
|
+
* programmatic call that resolves to no end-user with a 422 naming the setting.
|
|
1139
|
+
* Omitting `user_id` is still how you ASK for the account scope — on those
|
|
1140
|
+
* accounts the answer is just no.
|
|
1141
|
+
*
|
|
1142
|
+
* Policies outlive the run, unlike `runs.answerPermission()` which unblocks a
|
|
1143
|
+
* single gate. `/docs/users` documents this surface; mirrors
|
|
1068
1144
|
* `sdk/py/m8tes/_resources/permissions.py`.
|
|
1069
1145
|
*/
|
|
1070
1146
|
|
|
1071
1147
|
interface PermissionCreateParams {
|
|
1072
|
-
/**
|
|
1073
|
-
|
|
1148
|
+
/**
|
|
1149
|
+
* The end-user whose runs this policy applies to. Omit for the account-level
|
|
1150
|
+
* scope — the one runs that carry no `user_id` match.
|
|
1151
|
+
*/
|
|
1152
|
+
user_id?: string;
|
|
1074
1153
|
/** The tool to pre-approve, e.g. `"Bash"` or an `mcp__*` tool name. */
|
|
1075
1154
|
tool: string;
|
|
1076
1155
|
}
|
|
1077
1156
|
interface PermissionListParams extends PageParams {
|
|
1078
|
-
/**
|
|
1079
|
-
user_id
|
|
1157
|
+
/** One end-user's policies. Omit to list the account-level scope. */
|
|
1158
|
+
user_id?: string;
|
|
1159
|
+
}
|
|
1160
|
+
interface PermissionDeleteParams {
|
|
1161
|
+
/**
|
|
1162
|
+
* The scope the policy lives in. Omit to delete an account-level policy.
|
|
1163
|
+
* A scope that does not match the policy is a 404, never a silent no-op.
|
|
1164
|
+
*/
|
|
1165
|
+
user_id?: string;
|
|
1080
1166
|
}
|
|
1081
1167
|
interface PermissionsResource {
|
|
1082
1168
|
/**
|
|
1083
|
-
* Pre-approve a tool so
|
|
1169
|
+
* Pre-approve a tool so matching runs no longer pause on it.
|
|
1084
1170
|
* Idempotent — re-approving the same tool returns the existing policy rather
|
|
1085
1171
|
* than erroring or duplicating. Send `tool`; the policy comes back as `tool_name`.
|
|
1086
1172
|
*/
|
|
1087
1173
|
create(params: PermissionCreateParams): Promise<PermissionPolicy>;
|
|
1088
|
-
/** Audit what
|
|
1089
|
-
list(params
|
|
1174
|
+
/** Audit what one scope's runs are allowed to do without asking. */
|
|
1175
|
+
list(params?: PermissionListParams): Promise<Page<PermissionPolicy>>;
|
|
1090
1176
|
/**
|
|
1091
1177
|
* Revoke a pre-approval, so the tool gates again on the next run.
|
|
1092
|
-
* `user_id`
|
|
1178
|
+
* `user_id` scopes the delete and must match the policy's own scope.
|
|
1093
1179
|
*/
|
|
1094
|
-
delete(permissionId: number, params:
|
|
1095
|
-
user_id: string;
|
|
1096
|
-
}): Promise<void>;
|
|
1180
|
+
delete(permissionId: number, params?: PermissionDeleteParams): Promise<void>;
|
|
1097
1181
|
}
|
|
1098
1182
|
declare function createPermissionsResource(http: Http): PermissionsResource;
|
|
1099
1183
|
|
|
@@ -1186,6 +1270,7 @@ interface PollDeps {
|
|
|
1186
1270
|
}, signal?: AbortSignal): Promise<unknown>;
|
|
1187
1271
|
answer(runId: number, params: {
|
|
1188
1272
|
answers: Record<string, string>;
|
|
1273
|
+
request_id?: string;
|
|
1189
1274
|
}, signal?: AbortSignal): Promise<unknown>;
|
|
1190
1275
|
}
|
|
1191
1276
|
/** Thrown when the caller aborts the wait. */
|
|
@@ -1351,6 +1436,10 @@ interface RunListParams {
|
|
|
1351
1436
|
teammate_id?: number;
|
|
1352
1437
|
task_id?: number;
|
|
1353
1438
|
status?: string;
|
|
1439
|
+
/** `created` (newest first, the default) or `priority` (runs waiting on a human first). */
|
|
1440
|
+
sort?: "created" | "priority";
|
|
1441
|
+
/** Hide Company Agent Day-1 / pulse / maintenance (Platform accounts only) — ask whether the user has run anything. */
|
|
1442
|
+
exclude_platform_runs?: boolean;
|
|
1354
1443
|
limit?: number;
|
|
1355
1444
|
starting_after?: number;
|
|
1356
1445
|
}
|
|
@@ -1368,6 +1457,13 @@ interface ApproveParams {
|
|
|
1368
1457
|
* stored policy).
|
|
1369
1458
|
*/
|
|
1370
1459
|
remember?: boolean;
|
|
1460
|
+
/**
|
|
1461
|
+
* Steering in your own words, e.g. with `decision: "deny"`, "use the staging
|
|
1462
|
+
* board instead". The agent reads it and adapts rather than silently skipping
|
|
1463
|
+
* the action. Delivered on both decisions when the run is paused; a deny's
|
|
1464
|
+
* reason also reaches a still-live run.
|
|
1465
|
+
*/
|
|
1466
|
+
reason?: string;
|
|
1371
1467
|
}
|
|
1372
1468
|
interface AnswerParams {
|
|
1373
1469
|
/**
|
|
@@ -1375,6 +1471,20 @@ interface AnswerParams {
|
|
|
1375
1471
|
* `question` strings from the `question` event.
|
|
1376
1472
|
*/
|
|
1377
1473
|
answers: Record<string, string>;
|
|
1474
|
+
/**
|
|
1475
|
+
* The gate this answer is for — `requestId` off the `question` event (the
|
|
1476
|
+
* stream normalises it to camelCase), or `request_id` from
|
|
1477
|
+
* `runs.permissions()`. Required whenever the run has more than one
|
|
1478
|
+
* unresolved `AskUserQuestion`.
|
|
1479
|
+
*
|
|
1480
|
+
* A run accumulates asks over its life, and only some of them get resolved.
|
|
1481
|
+
* With no `request_id` the server does not know which one you answered, so it
|
|
1482
|
+
* falls back to position: the OLDEST ask that is not already allowed. A gate
|
|
1483
|
+
* that timed out earlier still matches that, so the answer you wrote for the
|
|
1484
|
+
* live question is merged into the stale one and the run resumes on the wrong
|
|
1485
|
+
* selection. Send the id and the server targets exactly that gate.
|
|
1486
|
+
*/
|
|
1487
|
+
request_id?: string;
|
|
1378
1488
|
}
|
|
1379
1489
|
interface RunsResource {
|
|
1380
1490
|
/** Start a run and stream it. */
|
|
@@ -1398,6 +1508,9 @@ interface RunsResource {
|
|
|
1398
1508
|
* If the run already did something visible (sent a message, changed data), the
|
|
1399
1509
|
* API refuses with a 409 `retry_needs_confirmation`; pass `confirm: true` to
|
|
1400
1510
|
* proceed. Check `run.retryable` first to avoid a guaranteed conflict.
|
|
1511
|
+
* Provider auth, quota, own-subscription rate-limit, and availability failures
|
|
1512
|
+
* follow the account's current connected/preferred provider. Other failures
|
|
1513
|
+
* replay the original concrete model; `use_credits` pins m8tes credits.
|
|
1401
1514
|
*/
|
|
1402
1515
|
retry(runId: number, params?: {
|
|
1403
1516
|
confirm?: boolean;
|
|
@@ -1405,7 +1518,8 @@ interface RunsResource {
|
|
|
1405
1518
|
}): Promise<Run>;
|
|
1406
1519
|
/** Join a run already in flight. Throws `RunNotStreamingError` if it has finished. */
|
|
1407
1520
|
stream(runId: number, options?: RunStreamOptions): RunStream;
|
|
1408
|
-
/** Continue the
|
|
1521
|
+
/** Continue the same run, streaming only this follow-up. After a provider failure,
|
|
1522
|
+
* the reply follows the account's current connected/preferred provider. */
|
|
1409
1523
|
reply(runId: number, message: string, options?: RunStreamOptions): RunStream;
|
|
1410
1524
|
/** GET /runs/{id}. Pass `user_id` to scope to one end-user (required when the
|
|
1411
1525
|
* account has strict multi-tenant mode on). */
|
|
@@ -1420,7 +1534,11 @@ interface RunsResource {
|
|
|
1420
1534
|
}): Promise<Run>;
|
|
1421
1535
|
/** Approve or deny a pending tool-permission gate. */
|
|
1422
1536
|
approve(runId: number, params: ApproveParams): Promise<PermissionRequest>;
|
|
1423
|
-
/**
|
|
1537
|
+
/**
|
|
1538
|
+
* Answer a pending AskUserQuestion gate, resuming the run. Pass `request_id`
|
|
1539
|
+
* when the run has more than one unresolved ask, or the server picks by
|
|
1540
|
+
* position instead.
|
|
1541
|
+
*/
|
|
1424
1542
|
answer(runId: number, params: AnswerParams): Promise<{
|
|
1425
1543
|
status: string;
|
|
1426
1544
|
resumed: boolean;
|
|
@@ -1639,6 +1757,9 @@ interface TasksResource {
|
|
|
1639
1757
|
* byte on the signing scheme, so a payload verified by one SDK verifies in the
|
|
1640
1758
|
* other.
|
|
1641
1759
|
*
|
|
1760
|
+
* `user_id` scopes an endpoint to one end-user; omit for account-level. The
|
|
1761
|
+
* scopes never mix: an end-user run only delivers to that end-user's endpoints.
|
|
1762
|
+
*
|
|
1642
1763
|
* Scheme: HMAC-SHA256 over `"{webhook-id}.{webhook-timestamp}.{raw body}"`, hex,
|
|
1643
1764
|
* prefixed `v1=`, compared in constant time.
|
|
1644
1765
|
*/
|
|
@@ -1673,22 +1794,31 @@ interface WebhooksResource {
|
|
|
1673
1794
|
create(params: {
|
|
1674
1795
|
url: string;
|
|
1675
1796
|
events?: string[];
|
|
1797
|
+
user_id?: string;
|
|
1676
1798
|
}): Promise<Webhook>;
|
|
1677
1799
|
list(params?: {
|
|
1678
1800
|
limit?: number;
|
|
1679
1801
|
starting_after?: number;
|
|
1802
|
+
user_id?: string;
|
|
1680
1803
|
}): Promise<Page<Webhook>>;
|
|
1681
|
-
get(webhookId: number
|
|
1804
|
+
get(webhookId: number, params?: {
|
|
1805
|
+
user_id?: string;
|
|
1806
|
+
}): Promise<Webhook>;
|
|
1682
1807
|
update(webhookId: number, params: {
|
|
1683
1808
|
url?: string;
|
|
1684
1809
|
events?: string[];
|
|
1685
1810
|
active?: boolean;
|
|
1811
|
+
rotate_secret?: boolean;
|
|
1812
|
+
user_id?: string;
|
|
1686
1813
|
}): Promise<Webhook>;
|
|
1687
|
-
delete(webhookId: number
|
|
1814
|
+
delete(webhookId: number, params?: {
|
|
1815
|
+
user_id?: string;
|
|
1816
|
+
}): Promise<void>;
|
|
1688
1817
|
/** Delivery attempts, for debugging a receiver that is not getting events. */
|
|
1689
1818
|
listDeliveries(webhookId: number, params?: {
|
|
1690
1819
|
limit?: number;
|
|
1691
1820
|
starting_after?: number;
|
|
1821
|
+
user_id?: string;
|
|
1692
1822
|
}): Promise<Page<WebhookDelivery>>;
|
|
1693
1823
|
}
|
|
1694
1824
|
|
|
@@ -1716,7 +1846,7 @@ interface WebhooksResource {
|
|
|
1716
1846
|
*/
|
|
1717
1847
|
|
|
1718
1848
|
/** Kept in lockstep with package.json "version" — guarded by test/version.test.ts. */
|
|
1719
|
-
declare const M8TES_SDK_VERSION = "0.1.0-alpha.
|
|
1849
|
+
declare const M8TES_SDK_VERSION = "0.1.0-alpha.6";
|
|
1720
1850
|
declare class M8tes {
|
|
1721
1851
|
readonly runs: RunsResource;
|
|
1722
1852
|
readonly agents: AgentsResource;
|
|
@@ -1738,4 +1868,4 @@ declare class M8tes {
|
|
|
1738
1868
|
constructor(options?: ClientOptions);
|
|
1739
1869
|
}
|
|
1740
1870
|
|
|
1741
|
-
export { type AccountDeletion, type AccountExport, type AccountResource, type AccountSettings, type AccountSettingsUpdateParams, type Agent, type AgentCreateParams, type AgentListParams, type AgentUpdateParams, type AgentsResource, type AlertThresholdParams, type App, type AppConnectionInitiation, type AppConnectionResult, type AppsResource, type AuthorizableModelConnectionProvider, type AutoReloadParams, type Balance, type BillingResource, type ClientOptions, type CodeModelConnectionProvider, ConversationState, DEFAULT_BASE_URL, type DeviceModelConnectionProvider, type EmailInbox, type EndUser, type EndUserCreateParams, type EndUserUpdateParams, type EndUserUsage, type FetchLike, type Http, type JsonObject, type ListResponse, M8TES_SDK_VERSION, M8tes, M8tesStreamEvent, type MemoriesResource, type Memory, type MemoryCreateParams, type MemoryListParams, type MemoryUpdateParams, type Model, type ModelAuthorization, type ModelConnection, type ModelConnectionProvider, type ModelConnectionsResource, type ModelPricing, type ModelsResource, Normalizer, type OverageParams, Page, type PageParams, type PermissionCreateParams, type PermissionListParams, type PermissionMode, type PermissionPolicy, type PermissionRequest, type PermissionsResource, type Plan, type PollOptions, type Receipt, type Run, type RunCreateParams, type RunFile, type RunListParams, type RunOutcome, RunPausedError, RunStream, type RunStreamOptions, RunTimeoutError, type RunUsage, RunWaitAbortedError, type RunsResource, type SettingsResource, TERMINAL_STATUSES, type Task, type TaskCreateParams, type TaskListParams, type TaskRunParams, type TaskUpdateParams, type TasksResource, type Teammate, type TokenTransaction, type TopupParams, type Trigger, type TriggerCreateParams, type TriggerType, type TriggersResource, type Usage, type UsageBucket, type UsageModelSlice, type UsageTimeseries, type UsageTimeseriesParams, type UsageTotals, type UsersResource, type VerifySignatureOptions, type WaitOptions, type Webhook, type WebhookDelivery, type WebhookToggle, type WebhooksResource, createAccountResource, createBillingResource, createHttp, createMemoriesResource, createModelConnectionsResource, createModelsResource, createPermissionsResource, isPlanApproval, planText, pollRun, verifySignature, waitForRun };
|
|
1871
|
+
export { type AccountDeletion, type AccountExport, type AccountResource, type AccountSettings, type AccountSettingsUpdateParams, type Agent, type AgentCreateParams, type AgentListParams, type AgentUpdateParams, type AgentsResource, type AlertThresholdParams, type App, type AppConnectionInitiation, type AppConnectionResult, type AppsResource, type AuthorizableModelConnectionProvider, type AutoReloadParams, type Balance, type BillingPlansParams, type BillingPortalParams, type BillingResource, type ClientOptions, type CodeModelConnectionProvider, ConversationState, DEFAULT_BASE_URL, type DeviceModelConnectionProvider, type EmailInbox, type EndUser, type EndUserCreateParams, type EndUserUpdateParams, type EndUserUsage, type FetchLike, type Http, type JsonObject, type ListResponse, M8TES_SDK_VERSION, M8tes, M8tesStreamEvent, type MemoriesResource, type Memory, type MemoryCreateParams, type MemoryListParams, type MemoryUpdateParams, type Model, type ModelAuthorization, type ModelConnection, type ModelConnectionProvider, type ModelConnectionsResource, type ModelPricing, type ModelsResource, Normalizer, type OverageParams, Page, type PageParams, type PermissionCreateParams, type PermissionDeleteParams, type PermissionListParams, type PermissionMode, type PermissionPolicy, type PermissionRequest, type PermissionsResource, type Plan, type PollOptions, type Receipt, type Run, type RunCreateParams, type RunFile, type RunListParams, type RunOutcome, RunPausedError, RunStream, type RunStreamOptions, RunTimeoutError, type RunUsage, RunWaitAbortedError, type RunsResource, type SettingsResource, type SubscriptionBillingPeriod, type SubscriptionCheckout, type SubscriptionCheckoutParams, type SubscriptionPlanId, TERMINAL_STATUSES, type Task, type TaskCreateParams, type TaskListParams, type TaskRunParams, type TaskUpdateParams, type TasksResource, type Teammate, type TokenTransaction, type TopupParams, type Trigger, type TriggerCreateParams, type TriggerType, type TriggersResource, type Usage, type UsageBucket, type UsageModelSlice, type UsageTimeseries, type UsageTimeseriesParams, type UsageTotals, type UsersResource, type VerifySignatureOptions, type WaitOptions, type Webhook, type WebhookDelivery, type WebhookToggle, type WebhooksResource, createAccountResource, createBillingResource, createHttp, createMemoriesResource, createModelConnectionsResource, createModelsResource, createPermissionsResource, isPlanApproval, planText, pollRun, verifySignature, waitForRun };
|