@oneie/sdk 0.16.1 → 0.16.3
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/README.md +1 -0
- package/dist/.build-fingerprint +1 -0
- package/dist/billing.d.ts +87 -0
- package/dist/billing.d.ts.map +1 -1
- package/dist/billing.js +97 -1
- package/dist/billing.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/free-tier.d.ts +83 -0
- package/dist/free-tier.d.ts.map +1 -0
- package/dist/free-tier.js +106 -0
- package/dist/free-tier.js.map +1 -0
- package/dist/gateway-meta.d.ts +68 -0
- package/dist/gateway-meta.d.ts.map +1 -0
- package/dist/gateway-meta.js +80 -0
- package/dist/gateway-meta.js.map +1 -0
- package/dist/gateway-route.d.ts +36 -0
- package/dist/gateway-route.d.ts.map +1 -0
- package/dist/gateway-route.js +59 -0
- package/dist/gateway-route.js.map +1 -0
- package/dist/generated/base-manifest.d.ts.map +1 -1
- package/dist/generated/base-manifest.js +5 -0
- package/dist/generated/base-manifest.js.map +1 -1
- package/dist/generated/fn-map.d.ts +2 -2
- package/dist/generated/fn-map.d.ts.map +1 -1
- package/dist/generated/fn-map.js +116 -2
- package/dist/generated/fn-map.js.map +1 -1
- package/dist/generated/schemas.d.ts +35 -1
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +15 -0
- package/dist/generated/schemas.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/key-identity.d.ts +4 -0
- package/dist/key-identity.d.ts.map +1 -0
- package/dist/key-identity.js +38 -0
- package/dist/key-identity.js.map +1 -0
- package/dist/receivers.d.ts +338 -10
- package/dist/receivers.d.ts.map +1 -1
- package/dist/receivers.js +1275 -842
- package/dist/receivers.js.map +1 -1
- package/dist/schemas.d.ts +2 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2 -0
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/work-contract-grammar.json +67 -0
- package/package.json +14 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACnJ,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9D,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,UAAU,IAAI,mBAAmB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAExG,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAk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8BAA8B,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AACtE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAClD,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAInE,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACjE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAI/G,cAAc,gBAAgB,CAAA;AAI9B,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAC/I,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -33,4 +33,11 @@ export { trail, tagFingerprint } from "./trail.js";
|
|
|
33
33
|
// media — the page walk for `media:list`. Root export on purpose: the CLI imports
|
|
34
34
|
// it from "@oneie/sdk", so no new `exports` subpath in package.json is needed.
|
|
35
35
|
export { mediaListAllWith, MEDIA_PAGE_CEILING } from "./media.js";
|
|
36
|
+
// free tier — the models a workspace with NO funder may run (billing-float).
|
|
37
|
+
// Workers import the "@oneie/sdk/free-tier" subpath, never this barrel.
|
|
38
|
+
export * from "./free-tier.js";
|
|
39
|
+
// gateway-meta — the five words (group · actor · signal · via · tags) every model
|
|
40
|
+
// call carries as cf-aig-metadata. Also a subpath (@oneie/sdk/gateway-meta) so a
|
|
41
|
+
// worker imports it without the barrel.
|
|
42
|
+
export { gatewayMetadata, gatewayMetadataHeader, GATEWAY_META_KEYS, GATEWAY_META_MAX_ENTRIES, GATEWAY_META_MAX_VALUE } from "./gateway-meta.js";
|
|
36
43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ACxE,cAAc,gBAAgB,CAAA;AAC9B,kFAAkF;AAClF,iFAAiF;AACjF,wCAAwC;AACxC,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-identity.d.ts","sourceRoot":"","sources":["../src/key-identity.ts"],"names":[],"mappings":"AAkBA,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,mBAAmB,CAAA;AAEhD,wBAAsB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqB3E"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// key-identity.ts — the one PUBLIC value a key yields that a server may hold.
|
|
2
|
+
// Import via the `@oneie/sdk/key-identity` subpath (never the bare barrel).
|
|
3
|
+
//
|
|
4
|
+
// userIdPub = base64url(HKDF-SHA256(entropy, salt = empty, info = 'user-id-pub-v1')),
|
|
5
|
+
// 32 bytes, no padding (43 chars). Byte-identical to one.ie/web vault.ts
|
|
6
|
+
// `deriveUserIdPub(master)`: the master there IS this phrase's 32-byte entropy
|
|
7
|
+
// (vault.ts entropyToMnemonic). It is what `vault_blob.user_id_pub` and
|
|
8
|
+
// `vault_passkey_hints.user_id_pub` store, and it is one-way — it opens nothing.
|
|
9
|
+
// Independent of the address derivation (v1/v2): one key, one identity.
|
|
10
|
+
//
|
|
11
|
+
// WHY NOT IN wallet.ts. packages/recover/dist/page.html bundles wallet.ts and is
|
|
12
|
+
// checked byte-for-byte against a rebuild; any edit there — even one that
|
|
13
|
+
// tree-shakes out — reshuffles the minifier's names and changes the offline
|
|
14
|
+
// artifact holders keep. A sibling module leaves that file, and the page, alone.
|
|
15
|
+
import { mnemonicToEntropy, validateMnemonic } from '@scure/bip39';
|
|
16
|
+
import { wordlist } from '@scure/bip39/wordlists/english.js';
|
|
17
|
+
/** Same info string as one.ie/web vault.ts USER_ID_PUB_INFO. */
|
|
18
|
+
export const USER_ID_PUB_INFO = 'user-id-pub-v1';
|
|
19
|
+
export async function userIdPubFromPhrase(mnemonic) {
|
|
20
|
+
const trimmed = mnemonic.trim().toLowerCase().split(/\s+/).join(' ');
|
|
21
|
+
if (!validateMnemonic(trimmed, wordlist))
|
|
22
|
+
throw new Error('key-identity: invalid BIP-39 recovery phrase');
|
|
23
|
+
const entropy = mnemonicToEntropy(trimmed, wordlist);
|
|
24
|
+
if (entropy.length !== 32)
|
|
25
|
+
throw new Error(`key-identity: expected 32-byte entropy, got ${entropy.length}`);
|
|
26
|
+
const base = await crypto.subtle.importKey('raw', entropy, { name: 'HKDF' }, false, ['deriveBits']);
|
|
27
|
+
const bits = new Uint8Array(await crypto.subtle.deriveBits({
|
|
28
|
+
name: 'HKDF',
|
|
29
|
+
hash: 'SHA-256',
|
|
30
|
+
salt: new Uint8Array(0),
|
|
31
|
+
info: new TextEncoder().encode(USER_ID_PUB_INFO),
|
|
32
|
+
}, base, 256));
|
|
33
|
+
let s = '';
|
|
34
|
+
for (let i = 0; i < bits.length; i++)
|
|
35
|
+
s += String.fromCharCode(bits[i]);
|
|
36
|
+
return btoa(s).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=key-identity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-identity.js","sourceRoot":"","sources":["../src/key-identity.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,4EAA4E;AAC5E,EAAE;AACF,sFAAsF;AACtF,yEAAyE;AACzE,+EAA+E;AAC/E,wEAAwE;AACxE,iFAAiF;AACjF,wEAAwE;AACxE,EAAE;AACF,iFAAiF;AACjF,0EAA0E;AAC1E,4EAA4E;AAC5E,iFAAiF;AAEjF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,EAAE,QAAQ,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,CAAC,CAAA;IACvE,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AAC1E,CAAC"}
|
package/dist/receivers.d.ts
CHANGED
|
@@ -123,6 +123,13 @@ export interface Receiver<Req extends z.ZodTypeAny = z.ZodTypeAny, Res extends z
|
|
|
123
123
|
/**
|
|
124
124
|
* Declare a receiver contract. Identity at runtime — its only job is to pin the
|
|
125
125
|
* `Req`/`Res` generics so the catalog infers payload + outcome types.
|
|
126
|
+
*
|
|
127
|
+
* LAZY SCHEMAS. `scripts/lazy-receivers.mjs` rewrites the BUILT file so each
|
|
128
|
+
* `request`/`response` arrives here as a thunk; this installs an enumerable
|
|
129
|
+
* getter that builds the schema on first touch and replaces itself with the
|
|
130
|
+
* value (stable identity, spread and Object.keys unchanged). Eager, the
|
|
131
|
+
* registry cost 53.4 MB of an isolate's 128 MiB (measured 2026-09-28). A zod
|
|
132
|
+
* schema is never a function, so a source-built (eager) entry passes through.
|
|
126
133
|
*/
|
|
127
134
|
export declare function receiver<Req extends z.ZodTypeAny, Res extends z.ZodTypeAny>(r: Receiver<Req, Res>): Receiver<Req, Res>;
|
|
128
135
|
/**
|
|
@@ -240,7 +247,6 @@ export declare const RECEIVERS: {
|
|
|
240
247
|
plan: z.ZodOptional<z.ZodEnum<{
|
|
241
248
|
free: "free";
|
|
242
249
|
pro: "pro";
|
|
243
|
-
studio: "studio";
|
|
244
250
|
agency: "agency";
|
|
245
251
|
enterprise: "enterprise";
|
|
246
252
|
}>>;
|
|
@@ -261,7 +267,6 @@ export declare const RECEIVERS: {
|
|
|
261
267
|
plan: z.ZodOptional<z.ZodEnum<{
|
|
262
268
|
free: "free";
|
|
263
269
|
pro: "pro";
|
|
264
|
-
studio: "studio";
|
|
265
270
|
agency: "agency";
|
|
266
271
|
enterprise: "enterprise";
|
|
267
272
|
}>>;
|
|
@@ -310,6 +315,8 @@ export declare const RECEIVERS: {
|
|
|
310
315
|
reason: z.ZodOptional<z.ZodString>;
|
|
311
316
|
}, z.core.$strip>, z.ZodObject<{
|
|
312
317
|
requestId: z.ZodString;
|
|
318
|
+
notified: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
+
existing: z.ZodOptional<z.ZodBoolean>;
|
|
313
320
|
}, z.core.$strip>>;
|
|
314
321
|
"world:approve-request": Receiver<z.ZodObject<{
|
|
315
322
|
requestId: z.ZodString;
|
|
@@ -319,6 +326,36 @@ export declare const RECEIVERS: {
|
|
|
319
326
|
}>;
|
|
320
327
|
}, z.core.$strip>, z.ZodObject<{
|
|
321
328
|
ok: z.ZodBoolean;
|
|
329
|
+
membership: z.ZodOptional<z.ZodString>;
|
|
330
|
+
notified: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
+
}, z.core.$strip>>;
|
|
332
|
+
"world:list-requests": Receiver<z.ZodObject<{
|
|
333
|
+
group: z.ZodOptional<z.ZodString>;
|
|
334
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
335
|
+
pending: "pending";
|
|
336
|
+
rejected: "rejected";
|
|
337
|
+
approved: "approved";
|
|
338
|
+
}>>;
|
|
339
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
340
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
341
|
+
requestId: z.ZodString;
|
|
342
|
+
group: z.ZodString;
|
|
343
|
+
requester: z.ZodString;
|
|
344
|
+
requesterKind: z.ZodNullable<z.ZodEnum<{
|
|
345
|
+
agent: "agent";
|
|
346
|
+
human: "human";
|
|
347
|
+
}>>;
|
|
348
|
+
role: z.ZodString;
|
|
349
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
350
|
+
status: z.ZodString;
|
|
351
|
+
decidedBy: z.ZodNullable<z.ZodString>;
|
|
352
|
+
decidedAt: z.ZodNullable<z.ZodNumber>;
|
|
353
|
+
createdAt: z.ZodNumber;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
total: z.ZodNumber;
|
|
356
|
+
truncated: z.ZodOptional<z.ZodObject<{
|
|
357
|
+
rows: z.ZodNumber;
|
|
358
|
+
}, z.core.$strip>>;
|
|
322
359
|
}, z.core.$strip>>;
|
|
323
360
|
"world:remove-member": Receiver<z.ZodObject<{
|
|
324
361
|
workspace: z.ZodString;
|
|
@@ -474,6 +511,24 @@ export declare const RECEIVERS: {
|
|
|
474
511
|
merged: z.ZodOptional<z.ZodBoolean>;
|
|
475
512
|
reason: z.ZodOptional<z.ZodString>;
|
|
476
513
|
}, z.core.$strip>>;
|
|
514
|
+
"enrich:run": Receiver<z.ZodObject<{
|
|
515
|
+
aid: z.ZodString;
|
|
516
|
+
source: z.ZodString;
|
|
517
|
+
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
518
|
+
email: z.ZodOptional<z.ZodString>;
|
|
519
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
520
|
+
ok: z.ZodBoolean;
|
|
521
|
+
aid: z.ZodOptional<z.ZodString>;
|
|
522
|
+
source: z.ZodOptional<z.ZodString>;
|
|
523
|
+
written: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
524
|
+
key: z.ZodString;
|
|
525
|
+
field: z.ZodString;
|
|
526
|
+
value: z.ZodString;
|
|
527
|
+
}, z.core.$strip>>>;
|
|
528
|
+
kept: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
529
|
+
error: z.ZodOptional<z.ZodString>;
|
|
530
|
+
field: z.ZodOptional<z.ZodString>;
|
|
531
|
+
}, z.core.$strip>>;
|
|
477
532
|
"world:update-contact": Receiver<z.ZodObject<{
|
|
478
533
|
aid: z.ZodString;
|
|
479
534
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1078,6 +1133,42 @@ export declare const RECEIVERS: {
|
|
|
1078
1133
|
ok: z.ZodBoolean;
|
|
1079
1134
|
seeded: z.ZodOptional<z.ZodNumber>;
|
|
1080
1135
|
}, z.core.$strip>>;
|
|
1136
|
+
"world:bake-outcome": Receiver<z.ZodObject<{
|
|
1137
|
+
family: z.ZodString;
|
|
1138
|
+
model: z.ZodString;
|
|
1139
|
+
verdict: z.ZodEnum<{
|
|
1140
|
+
pass: "pass";
|
|
1141
|
+
fail: "fail";
|
|
1142
|
+
"could-not-run": "could-not-run";
|
|
1143
|
+
}>;
|
|
1144
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1145
|
+
priceSource: z.ZodOptional<z.ZodEnum<{
|
|
1146
|
+
gateway: "gateway";
|
|
1147
|
+
unmetered: "unmetered";
|
|
1148
|
+
}>>;
|
|
1149
|
+
modelSource: z.ZodOptional<z.ZodEnum<{
|
|
1150
|
+
request: "request";
|
|
1151
|
+
persona: "persona";
|
|
1152
|
+
}>>;
|
|
1153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1154
|
+
ok: z.ZodBoolean;
|
|
1155
|
+
moved: z.ZodOptional<z.ZodEnum<{
|
|
1156
|
+
warn: "warn";
|
|
1157
|
+
mark: "mark";
|
|
1158
|
+
none: "none";
|
|
1159
|
+
}>>;
|
|
1160
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1161
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1162
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1163
|
+
priceSource: z.ZodOptional<z.ZodEnum<{
|
|
1164
|
+
gateway: "gateway";
|
|
1165
|
+
unmetered: "unmetered";
|
|
1166
|
+
}>>;
|
|
1167
|
+
modelSource: z.ZodOptional<z.ZodEnum<{
|
|
1168
|
+
request: "request";
|
|
1169
|
+
persona: "persona";
|
|
1170
|
+
}>>;
|
|
1171
|
+
}, z.core.$strip>>;
|
|
1081
1172
|
"attention:follow": Receiver<z.ZodObject<{
|
|
1082
1173
|
axis: z.ZodString;
|
|
1083
1174
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1236,6 +1327,22 @@ export declare const RECEIVERS: {
|
|
|
1236
1327
|
}, z.core.$strip>, z.ZodObject<{
|
|
1237
1328
|
ok: z.ZodBoolean;
|
|
1238
1329
|
}, z.core.$strip>>;
|
|
1330
|
+
"groups:follow": Receiver<z.ZodObject<{
|
|
1331
|
+
group: z.ZodString;
|
|
1332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1333
|
+
ok: z.ZodBoolean;
|
|
1334
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1335
|
+
following: z.ZodOptional<z.ZodBoolean>;
|
|
1336
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
}, z.core.$strip>>;
|
|
1338
|
+
"groups:unfollow": Receiver<z.ZodObject<{
|
|
1339
|
+
group: z.ZodString;
|
|
1340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1341
|
+
ok: z.ZodBoolean;
|
|
1342
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1343
|
+
following: z.ZodOptional<z.ZodBoolean>;
|
|
1344
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1345
|
+
}, z.core.$strip>>;
|
|
1239
1346
|
"groups:members": Receiver<z.ZodObject<{
|
|
1240
1347
|
gid: z.ZodString;
|
|
1241
1348
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1246,6 +1353,44 @@ export declare const RECEIVERS: {
|
|
|
1246
1353
|
role: z.ZodString;
|
|
1247
1354
|
}, z.core.$strip>>;
|
|
1248
1355
|
}, z.core.$strip>>;
|
|
1356
|
+
"credits:spend": Receiver<z.ZodObject<{
|
|
1357
|
+
model: z.ZodString;
|
|
1358
|
+
tokensIn: z.ZodNumber;
|
|
1359
|
+
tokensOut: z.ZodNumber;
|
|
1360
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1361
|
+
agent_run: "agent_run";
|
|
1362
|
+
skill_call: "skill_call";
|
|
1363
|
+
inference: "inference";
|
|
1364
|
+
}>>;
|
|
1365
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1367
|
+
ok: z.ZodBoolean;
|
|
1368
|
+
credits: z.ZodOptional<z.ZodNumber>;
|
|
1369
|
+
costCredits: z.ZodOptional<z.ZodNumber>;
|
|
1370
|
+
recorded: z.ZodOptional<z.ZodBoolean>;
|
|
1371
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1372
|
+
}, z.core.$strip>>;
|
|
1373
|
+
"credits:request": Receiver<z.ZodObject<{
|
|
1374
|
+
amount: z.ZodNumber;
|
|
1375
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1377
|
+
ok: z.ZodBoolean;
|
|
1378
|
+
funder: z.ZodOptional<z.ZodString>;
|
|
1379
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1380
|
+
token: z.ZodOptional<z.ZodString>;
|
|
1381
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1382
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1383
|
+
topupUrl: z.ZodOptional<z.ZodString>;
|
|
1384
|
+
}, z.core.$strip>>;
|
|
1385
|
+
"credits:approve": Receiver<z.ZodObject<{
|
|
1386
|
+
token: z.ZodString;
|
|
1387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1388
|
+
ok: z.ZodBoolean;
|
|
1389
|
+
recipient: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
monthlyCredits: z.ZodOptional<z.ZodNumber>;
|
|
1391
|
+
clamped: z.ZodOptional<z.ZodBoolean>;
|
|
1392
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1393
|
+
}, z.core.$strip>>;
|
|
1249
1394
|
"billing:clients": Receiver<z.ZodOptional<z.ZodObject<{
|
|
1250
1395
|
slug: z.ZodOptional<z.ZodString>;
|
|
1251
1396
|
}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -1587,8 +1732,8 @@ export declare const RECEIVERS: {
|
|
|
1587
1732
|
}>>;
|
|
1588
1733
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1589
1734
|
ok: "ok";
|
|
1590
|
-
start: "start";
|
|
1591
1735
|
fail: "fail";
|
|
1736
|
+
start: "start";
|
|
1592
1737
|
}>>;
|
|
1593
1738
|
verdict: z.ZodOptional<z.ZodEnum<{
|
|
1594
1739
|
green: "green";
|
|
@@ -1624,8 +1769,8 @@ export declare const RECEIVERS: {
|
|
|
1624
1769
|
}>;
|
|
1625
1770
|
status: z.ZodEnum<{
|
|
1626
1771
|
ok: "ok";
|
|
1627
|
-
start: "start";
|
|
1628
1772
|
fail: "fail";
|
|
1773
|
+
start: "start";
|
|
1629
1774
|
}>;
|
|
1630
1775
|
slug: z.ZodOptional<z.ZodString>;
|
|
1631
1776
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1642,6 +1787,58 @@ export declare const RECEIVERS: {
|
|
|
1642
1787
|
slug: z.ZodOptional<z.ZodString>;
|
|
1643
1788
|
error: z.ZodOptional<z.ZodString>;
|
|
1644
1789
|
}, z.core.$strip>>;
|
|
1790
|
+
"factory:testgen": Receiver<z.ZodObject<{
|
|
1791
|
+
tid: z.ZodString;
|
|
1792
|
+
family: z.ZodOptional<z.ZodString>;
|
|
1793
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1794
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
env: z.ZodOptional<z.ZodString>;
|
|
1796
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1797
|
+
ok: z.ZodBoolean;
|
|
1798
|
+
queued: z.ZodOptional<z.ZodBoolean>;
|
|
1799
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1800
|
+
step: z.ZodOptional<z.ZodString>;
|
|
1801
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1802
|
+
}, z.core.$strip>>;
|
|
1803
|
+
"factory:bake": Receiver<z.ZodObject<{
|
|
1804
|
+
tid: z.ZodString;
|
|
1805
|
+
family: z.ZodOptional<z.ZodString>;
|
|
1806
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1807
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
1808
|
+
env: z.ZodOptional<z.ZodString>;
|
|
1809
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1810
|
+
ok: z.ZodBoolean;
|
|
1811
|
+
queued: z.ZodOptional<z.ZodBoolean>;
|
|
1812
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
step: z.ZodOptional<z.ZodString>;
|
|
1814
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1815
|
+
}, z.core.$strip>>;
|
|
1816
|
+
"factory:cross-check": Receiver<z.ZodObject<{
|
|
1817
|
+
tid: z.ZodString;
|
|
1818
|
+
family: z.ZodOptional<z.ZodString>;
|
|
1819
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1820
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
1821
|
+
env: z.ZodOptional<z.ZodString>;
|
|
1822
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1823
|
+
ok: z.ZodBoolean;
|
|
1824
|
+
queued: z.ZodOptional<z.ZodBoolean>;
|
|
1825
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1826
|
+
step: z.ZodOptional<z.ZodString>;
|
|
1827
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1828
|
+
}, z.core.$strip>>;
|
|
1829
|
+
"factory:gates": Receiver<z.ZodObject<{
|
|
1830
|
+
tid: z.ZodString;
|
|
1831
|
+
family: z.ZodOptional<z.ZodString>;
|
|
1832
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1833
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
env: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1836
|
+
ok: z.ZodBoolean;
|
|
1837
|
+
queued: z.ZodOptional<z.ZodBoolean>;
|
|
1838
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1839
|
+
step: z.ZodOptional<z.ZodString>;
|
|
1840
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1841
|
+
}, z.core.$strip>>;
|
|
1645
1842
|
"ehc:voice-record": Receiver<z.ZodObject<{
|
|
1646
1843
|
cyp: z.ZodString;
|
|
1647
1844
|
body: z.ZodString;
|
|
@@ -1655,6 +1852,36 @@ export declare const RECEIVERS: {
|
|
|
1655
1852
|
error: z.ZodOptional<z.ZodString>;
|
|
1656
1853
|
detail: z.ZodOptional<z.ZodString>;
|
|
1657
1854
|
}, z.core.$strip>>;
|
|
1855
|
+
"ehc:evidence": Receiver<z.ZodObject<{
|
|
1856
|
+
cyp: z.ZodString;
|
|
1857
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1858
|
+
ok: z.ZodBoolean;
|
|
1859
|
+
cyp: z.ZodOptional<z.ZodString>;
|
|
1860
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1861
|
+
id: z.ZodString;
|
|
1862
|
+
caption: z.ZodString;
|
|
1863
|
+
sections: z.ZodArray<z.ZodString>;
|
|
1864
|
+
kind: z.ZodString;
|
|
1865
|
+
removed: z.ZodBoolean;
|
|
1866
|
+
}, z.core.$strip>>>;
|
|
1867
|
+
removed: z.ZodOptional<z.ZodNumber>;
|
|
1868
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1869
|
+
}, z.core.$strip>>;
|
|
1870
|
+
"ehc:evidence-remove": Receiver<z.ZodObject<{
|
|
1871
|
+
cyp: z.ZodString;
|
|
1872
|
+
evidenceId: z.ZodString;
|
|
1873
|
+
removed: z.ZodOptional<z.ZodBoolean>;
|
|
1874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1875
|
+
ok: z.ZodBoolean;
|
|
1876
|
+
cyp: z.ZodOptional<z.ZodString>;
|
|
1877
|
+
evidenceId: z.ZodOptional<z.ZodString>;
|
|
1878
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
1879
|
+
removed: z.ZodOptional<z.ZodBoolean>;
|
|
1880
|
+
by: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
at: z.ZodOptional<z.ZodString>;
|
|
1882
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1884
|
+
}, z.core.$strip>>;
|
|
1658
1885
|
"ehc:meal-served": Receiver<z.ZodObject<{
|
|
1659
1886
|
cyp: z.ZodString;
|
|
1660
1887
|
meal: z.ZodEnum<{
|
|
@@ -1674,6 +1901,37 @@ export declare const RECEIVERS: {
|
|
|
1674
1901
|
error: z.ZodOptional<z.ZodString>;
|
|
1675
1902
|
detail: z.ZodOptional<z.ZodString>;
|
|
1676
1903
|
}, z.core.$strip>>;
|
|
1904
|
+
"trace:read": Receiver<z.ZodObject<{
|
|
1905
|
+
traceId: z.ZodString;
|
|
1906
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1907
|
+
ok: z.ZodBoolean;
|
|
1908
|
+
state: z.ZodEnum<{
|
|
1909
|
+
pending: "pending";
|
|
1910
|
+
failed: "failed";
|
|
1911
|
+
found: "found";
|
|
1912
|
+
}>;
|
|
1913
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
1914
|
+
spans: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1915
|
+
spanId: z.ZodString;
|
|
1916
|
+
parent: z.ZodString;
|
|
1917
|
+
hop: z.ZodString;
|
|
1918
|
+
outcome: z.ZodString;
|
|
1919
|
+
service: z.ZodString;
|
|
1920
|
+
colo: z.ZodString;
|
|
1921
|
+
startMs: z.ZodNumber;
|
|
1922
|
+
durMs: z.ZodNumber;
|
|
1923
|
+
offsetMs: z.ZodNumber;
|
|
1924
|
+
mixedClock: z.ZodBoolean;
|
|
1925
|
+
sampleInterval: z.ZodNumber;
|
|
1926
|
+
}, z.core.$strip>>>;
|
|
1927
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
1928
|
+
sampled: z.ZodOptional<z.ZodBoolean>;
|
|
1929
|
+
truncated: z.ZodOptional<z.ZodObject<{
|
|
1930
|
+
spans: z.ZodNumber;
|
|
1931
|
+
}, z.core.$strip>>;
|
|
1932
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1933
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1934
|
+
}, z.core.$strip>>;
|
|
1677
1935
|
"story:chain": Receiver<z.ZodObject<{
|
|
1678
1936
|
minMembers: z.ZodOptional<z.ZodNumber>;
|
|
1679
1937
|
origin: z.ZodOptional<z.ZodString>;
|
|
@@ -1970,6 +2228,11 @@ export declare const RECEIVERS: {
|
|
|
1970
2228
|
workspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1971
2229
|
asOf: z.ZodOptional<z.ZodString>;
|
|
1972
2230
|
cached: z.ZodOptional<z.ZodBoolean>;
|
|
2231
|
+
stale: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2232
|
+
upstream: z.ZodOptional<z.ZodObject<{
|
|
2233
|
+
status: z.ZodNumber;
|
|
2234
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2235
|
+
}, z.core.$strip>>;
|
|
1973
2236
|
total: z.ZodOptional<z.ZodNumber>;
|
|
1974
2237
|
returned: z.ZodOptional<z.ZodNumber>;
|
|
1975
2238
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
@@ -1987,10 +2250,13 @@ export declare const RECEIVERS: {
|
|
|
1987
2250
|
blocked: z.ZodNumber;
|
|
1988
2251
|
overdue: z.ZodNumber;
|
|
1989
2252
|
unassigned: z.ZodNumber;
|
|
2253
|
+
assigneeUnknown: z.ZodOptional<z.ZodNumber>;
|
|
1990
2254
|
orphans: z.ZodNumber;
|
|
1991
2255
|
noNotes: z.ZodNumber;
|
|
1992
2256
|
readyIds: z.ZodArray<z.ZodString>;
|
|
1993
2257
|
blockedIds: z.ZodArray<z.ZodString>;
|
|
2258
|
+
duplicateNames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
2259
|
+
duplicateNamesOmitted: z.ZodOptional<z.ZodNumber>;
|
|
1994
2260
|
}, z.core.$strip>>;
|
|
1995
2261
|
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1996
2262
|
tid: z.ZodString;
|
|
@@ -1999,6 +2265,7 @@ export declare const RECEIVERS: {
|
|
|
1999
2265
|
priority: z.ZodNumber;
|
|
2000
2266
|
tags: z.ZodArray<z.ZodString>;
|
|
2001
2267
|
assignee: z.ZodOptional<z.ZodString>;
|
|
2268
|
+
assigneeUnknown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2002
2269
|
workspace: z.ZodString;
|
|
2003
2270
|
parent: z.ZodOptional<z.ZodString>;
|
|
2004
2271
|
blockedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2039,7 +2306,7 @@ export declare const RECEIVERS: {
|
|
|
2039
2306
|
removeBlockedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2040
2307
|
comment: z.ZodOptional<z.ZodString>;
|
|
2041
2308
|
workspace: z.ZodOptional<z.ZodString>;
|
|
2042
|
-
}, z.core.$
|
|
2309
|
+
}, z.core.$strict>>>;
|
|
2043
2310
|
creates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2044
2311
|
ref: z.ZodOptional<z.ZodString>;
|
|
2045
2312
|
title: z.ZodString;
|
|
@@ -2051,7 +2318,7 @@ export declare const RECEIVERS: {
|
|
|
2051
2318
|
blockedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2052
2319
|
dueAt: z.ZodOptional<z.ZodString>;
|
|
2053
2320
|
workspace: z.ZodOptional<z.ZodString>;
|
|
2054
|
-
}, z.core.$
|
|
2321
|
+
}, z.core.$strict>>>;
|
|
2055
2322
|
where: z.ZodOptional<z.ZodObject<{
|
|
2056
2323
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2057
2324
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2110,6 +2377,7 @@ export declare const RECEIVERS: {
|
|
|
2110
2377
|
reason: z.ZodOptional<z.ZodString>;
|
|
2111
2378
|
detail: z.ZodOptional<z.ZodString>;
|
|
2112
2379
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2380
|
+
deduped: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2113
2381
|
}, z.core.$strip>>>;
|
|
2114
2382
|
}, z.core.$strip>>>;
|
|
2115
2383
|
}, z.core.$strip>>;
|
|
@@ -2254,6 +2522,7 @@ export declare const RECEIVERS: {
|
|
|
2254
2522
|
task: z.ZodString;
|
|
2255
2523
|
amount: z.ZodNumber;
|
|
2256
2524
|
sui: z.ZodNullable<z.ZodString>;
|
|
2525
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2257
2526
|
}, z.core.$strip>>;
|
|
2258
2527
|
"tasks:stake": Receiver<z.ZodObject<{
|
|
2259
2528
|
tags: z.ZodArray<z.ZodString>;
|
|
@@ -4324,6 +4593,54 @@ export declare const RECEIVERS: {
|
|
|
4324
4593
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
4325
4594
|
error: z.ZodOptional<z.ZodString>;
|
|
4326
4595
|
}, z.core.$strip>>;
|
|
4596
|
+
"nav:next": Receiver<z.ZodObject<{
|
|
4597
|
+
tags: z.ZodArray<z.ZodString>;
|
|
4598
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4599
|
+
ok: z.ZodBoolean;
|
|
4600
|
+
next: z.ZodOptional<z.ZodString>;
|
|
4601
|
+
learned: z.ZodOptional<z.ZodBoolean>;
|
|
4602
|
+
ranked: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4603
|
+
door: z.ZodString;
|
|
4604
|
+
score: z.ZodNumber;
|
|
4605
|
+
learned: z.ZodBoolean;
|
|
4606
|
+
}, z.core.$strip>>>;
|
|
4607
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
4608
|
+
tags: z.ZodArray<z.ZodString>;
|
|
4609
|
+
door: z.ZodString;
|
|
4610
|
+
pairs: z.ZodArray<z.ZodObject<{
|
|
4611
|
+
source: z.ZodString;
|
|
4612
|
+
target: z.ZodString;
|
|
4613
|
+
}, z.core.$strip>>;
|
|
4614
|
+
}, z.core.$strip>>;
|
|
4615
|
+
source: z.ZodOptional<z.ZodLiteral<"edge">>;
|
|
4616
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4617
|
+
}, z.core.$strip>>;
|
|
4618
|
+
"pages:review": Receiver<z.ZodObject<{
|
|
4619
|
+
page: z.ZodString;
|
|
4620
|
+
verdict: z.ZodEnum<{
|
|
4621
|
+
good: "good";
|
|
4622
|
+
bad: "bad";
|
|
4623
|
+
}>;
|
|
4624
|
+
check: z.ZodEnum<{
|
|
4625
|
+
truth: "truth";
|
|
4626
|
+
sense: "sense";
|
|
4627
|
+
beauty: "beauty";
|
|
4628
|
+
machine: "machine";
|
|
4629
|
+
}>;
|
|
4630
|
+
line: z.ZodOptional<z.ZodString>;
|
|
4631
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4632
|
+
ok: z.ZodBoolean;
|
|
4633
|
+
page: z.ZodOptional<z.ZodString>;
|
|
4634
|
+
verdict: z.ZodOptional<z.ZodEnum<{
|
|
4635
|
+
warn: "warn";
|
|
4636
|
+
mark: "mark";
|
|
4637
|
+
}>>;
|
|
4638
|
+
task: z.ZodOptional<z.ZodString>;
|
|
4639
|
+
taskFiled: z.ZodOptional<z.ZodLiteral<false>>;
|
|
4640
|
+
recorded: z.ZodOptional<z.ZodBoolean>;
|
|
4641
|
+
repeat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4642
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4643
|
+
}, z.core.$strip>>;
|
|
4327
4644
|
"pages:get": Receiver<z.ZodObject<{
|
|
4328
4645
|
slug: z.ZodString;
|
|
4329
4646
|
page: z.ZodString;
|
|
@@ -5106,8 +5423,8 @@ export declare const RECEIVERS: {
|
|
|
5106
5423
|
stepId: z.ZodString;
|
|
5107
5424
|
field: z.ZodEnum<{
|
|
5108
5425
|
name: "name";
|
|
5109
|
-
position: "position";
|
|
5110
5426
|
config: "config";
|
|
5427
|
+
position: "position";
|
|
5111
5428
|
"exit-condition": "exit-condition";
|
|
5112
5429
|
owner: "owner";
|
|
5113
5430
|
}>;
|
|
@@ -5156,8 +5473,8 @@ export declare const RECEIVERS: {
|
|
|
5156
5473
|
stepId: z.ZodString;
|
|
5157
5474
|
field: z.ZodEnum<{
|
|
5158
5475
|
name: "name";
|
|
5159
|
-
position: "position";
|
|
5160
5476
|
config: "config";
|
|
5477
|
+
position: "position";
|
|
5161
5478
|
"exit-condition": "exit-condition";
|
|
5162
5479
|
owner: "owner";
|
|
5163
5480
|
}>;
|
|
@@ -5358,11 +5675,22 @@ export declare const RECEIVERS: {
|
|
|
5358
5675
|
skill: z.ZodOptional<z.ZodString>;
|
|
5359
5676
|
instructions: z.ZodOptional<z.ZodString>;
|
|
5360
5677
|
model: z.ZodOptional<z.ZodString>;
|
|
5678
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5361
5679
|
}, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
|
|
5362
5680
|
ok: z.ZodBoolean;
|
|
5363
5681
|
text: z.ZodOptional<z.ZodString>;
|
|
5364
5682
|
actorId: z.ZodOptional<z.ZodString>;
|
|
5365
5683
|
error: z.ZodOptional<z.ZodString>;
|
|
5684
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
5685
|
+
model: z.ZodString;
|
|
5686
|
+
tokensIn: z.ZodNumber;
|
|
5687
|
+
tokensOut: z.ZodNumber;
|
|
5688
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
5689
|
+
credits: z.ZodOptional<z.ZodNumber>;
|
|
5690
|
+
costCredits: z.ZodOptional<z.ZodNumber>;
|
|
5691
|
+
refused: z.ZodOptional<z.ZodString>;
|
|
5692
|
+
unmetered: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5693
|
+
}, z.core.$strip>>;
|
|
5366
5694
|
}, z.core.$strip>>;
|
|
5367
5695
|
"video:create-room": Receiver<z.ZodObject<{
|
|
5368
5696
|
workspace: z.ZodString;
|
|
@@ -5515,8 +5843,8 @@ export declare const RECEIVERS: {
|
|
|
5515
5843
|
}, z.core.$strip>, z.ZodObject<{
|
|
5516
5844
|
ok: z.ZodBoolean;
|
|
5517
5845
|
state: z.ZodOptional<z.ZodEnum<{
|
|
5518
|
-
unknown: "unknown";
|
|
5519
5846
|
live: "live";
|
|
5847
|
+
unknown: "unknown";
|
|
5520
5848
|
empty: "empty";
|
|
5521
5849
|
}>>;
|
|
5522
5850
|
staff: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -5875,8 +6203,8 @@ export declare const RECEIVERS: {
|
|
|
5875
6203
|
}, z.core.$strip>, z.ZodObject<{
|
|
5876
6204
|
ok: z.ZodBoolean;
|
|
5877
6205
|
bound: z.ZodOptional<z.ZodEnum<{
|
|
5878
|
-
created: "created";
|
|
5879
6206
|
existing: "existing";
|
|
6207
|
+
created: "created";
|
|
5880
6208
|
}>>;
|
|
5881
6209
|
referrer: z.ZodOptional<z.ZodString>;
|
|
5882
6210
|
referred: z.ZodOptional<z.ZodString>;
|