@oneie/sdk 0.13.8 → 0.14.0

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.
@@ -262,6 +262,7 @@ export declare const RECEIVERS: {
262
262
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
263
263
  model: z.ZodOptional<z.ZodString>;
264
264
  prompt: z.ZodOptional<z.ZodString>;
265
+ meta: z.ZodOptional<z.ZodUnknown>;
265
266
  }, z.core.$strip>, z.ZodObject<{
266
267
  aid: z.ZodString;
267
268
  }, z.core.$strip>>;
@@ -271,6 +272,7 @@ export declare const RECEIVERS: {
271
272
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
272
273
  prompt: z.ZodOptional<z.ZodString>;
273
274
  model: z.ZodOptional<z.ZodString>;
275
+ meta: z.ZodOptional<z.ZodUnknown>;
274
276
  }, z.core.$strip>, z.ZodObject<{
275
277
  ok: z.ZodBoolean;
276
278
  }, z.core.$strip>>;
@@ -442,12 +444,45 @@ export declare const RECEIVERS: {
442
444
  }, z.core.$strip>, z.ZodObject<{
443
445
  ok: z.ZodBoolean;
444
446
  }, z.core.$strip>>;
447
+ "lifecycle:save": Receiver<z.ZodObject<{
448
+ slug: z.ZodString;
449
+ lifecycle: z.ZodString;
450
+ def: z.ZodRecord<z.ZodString, z.ZodUnknown>;
451
+ }, z.core.$strip>, z.ZodObject<{
452
+ ok: z.ZodLiteral<true>;
453
+ id: z.ZodString;
454
+ }, z.core.$strip>>;
455
+ "tools:connect": Receiver<z.ZodObject<{
456
+ slug: z.ZodString;
457
+ toolkit: z.ZodString;
458
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
459
+ authScheme: z.ZodOptional<z.ZodString>;
460
+ }, z.core.$strip>, z.ZodObject<{
461
+ ok: z.ZodLiteral<true>;
462
+ connectionId: z.ZodOptional<z.ZodString>;
463
+ authUrl: z.ZodOptional<z.ZodString>;
464
+ }, z.core.$strip>>;
465
+ "brand:set": Receiver<z.ZodObject<{
466
+ slug: z.ZodString;
467
+ tokens: z.ZodObject<{
468
+ primary: z.ZodOptional<z.ZodString>;
469
+ secondary: z.ZodOptional<z.ZodString>;
470
+ accent: z.ZodOptional<z.ZodString>;
471
+ bg: z.ZodOptional<z.ZodString>;
472
+ text: z.ZodOptional<z.ZodString>;
473
+ border: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>;
475
+ }, z.core.$strip>, z.ZodObject<{
476
+ ok: z.ZodLiteral<true>;
477
+ theme: z.ZodRecord<z.ZodString, z.ZodUnknown>;
478
+ }, z.core.$strip>>;
445
479
  "world:create-thing": Receiver<z.ZodObject<{
446
480
  name: z.ZodString;
447
481
  type: z.ZodString;
448
482
  group: z.ZodOptional<z.ZodString>;
449
483
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
450
484
  price: z.ZodOptional<z.ZodNumber>;
485
+ meta: z.ZodOptional<z.ZodUnknown>;
451
486
  }, z.core.$strip>, z.ZodObject<{
452
487
  tid: z.ZodString;
453
488
  }, z.core.$strip>>;
@@ -468,6 +503,7 @@ export declare const RECEIVERS: {
468
503
  "world:list-things": Receiver<z.ZodObject<{
469
504
  group: z.ZodString;
470
505
  type: z.ZodString;
506
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
471
507
  }, z.core.$strip>, z.ZodObject<{
472
508
  items: z.ZodArray<z.ZodObject<{
473
509
  tid: z.ZodString;
@@ -477,6 +513,7 @@ export declare const RECEIVERS: {
477
513
  "world:list-actors": Receiver<z.ZodObject<{
478
514
  group: z.ZodString;
479
515
  type: z.ZodString;
516
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
480
517
  }, z.core.$strip>, z.ZodObject<{
481
518
  items: z.ZodArray<z.ZodObject<{
482
519
  aid: z.ZodString;
@@ -869,6 +906,7 @@ export declare const RECEIVERS: {
869
906
  mode: z.ZodOptional<z.ZodString>;
870
907
  visibility: z.ZodOptional<z.ZodString>;
871
908
  scope: z.ZodOptional<z.ZodString>;
909
+ entitlement: z.ZodOptional<z.ZodString>;
872
910
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
873
911
  rubricThresholds: z.ZodOptional<z.ZodObject<{
874
912
  fit: z.ZodOptional<z.ZodNumber>;
@@ -1111,6 +1149,16 @@ export declare const RECEIVERS: {
1111
1149
  actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1112
1150
  }, z.core.$strip>>>;
1113
1151
  }, z.core.$strip>>;
1152
+ "meta:entitlements": Receiver<z.ZodObject<{
1153
+ feature: z.ZodString;
1154
+ }, z.core.$strip>, z.ZodObject<{
1155
+ feature: z.ZodString;
1156
+ allowed: z.ZodBoolean;
1157
+ remaining: z.ZodNullable<z.ZodNumber>;
1158
+ limit: z.ZodNullable<z.ZodNumber>;
1159
+ used: z.ZodNumber;
1160
+ soft: z.ZodBoolean;
1161
+ }, z.core.$strip>>;
1114
1162
  "actors:find": Receiver<z.ZodObject<{
1115
1163
  type: z.ZodOptional<z.ZodEnum<{
1116
1164
  agent: "agent";
@@ -1350,6 +1398,46 @@ export declare const RECEIVERS: {
1350
1398
  }, z.core.$strip>>;
1351
1399
  error: z.ZodOptional<z.ZodString>;
1352
1400
  }, z.core.$strip>>;
1401
+ "funnel:create": Receiver<z.ZodObject<{
1402
+ workspaceSlug: z.ZodString;
1403
+ slug: z.ZodString;
1404
+ name: z.ZodString;
1405
+ playbookNode: z.ZodOptional<z.ZodString>;
1406
+ }, z.core.$strip>, z.ZodObject<{
1407
+ ok: z.ZodBoolean;
1408
+ id: z.ZodOptional<z.ZodString>;
1409
+ error: z.ZodOptional<z.ZodString>;
1410
+ }, z.core.$strip>>;
1411
+ "funnel:update-step": Receiver<z.ZodObject<{
1412
+ workspaceSlug: z.ZodString;
1413
+ funnelId: z.ZodString;
1414
+ steps: z.ZodArray<z.ZodUnknown>;
1415
+ edges: z.ZodArray<z.ZodUnknown>;
1416
+ }, z.core.$strip>, z.ZodObject<{
1417
+ ok: z.ZodBoolean;
1418
+ version: z.ZodOptional<z.ZodNumber>;
1419
+ error: z.ZodOptional<z.ZodString>;
1420
+ }, z.core.$strip>>;
1421
+ "funnel:publish": Receiver<z.ZodObject<{
1422
+ workspaceSlug: z.ZodString;
1423
+ funnelId: z.ZodString;
1424
+ }, z.core.$strip>, z.ZodObject<{
1425
+ ok: z.ZodBoolean;
1426
+ status: z.ZodOptional<z.ZodString>;
1427
+ error: z.ZodOptional<z.ZodString>;
1428
+ }, z.core.$strip>>;
1429
+ "funnel:advance": Receiver<z.ZodObject<{
1430
+ workspaceSlug: z.ZodString;
1431
+ funnelSlug: z.ZodString;
1432
+ stepSlug: z.ZodString;
1433
+ visitorHash: z.ZodString;
1434
+ formData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1435
+ }, z.core.$strip>, z.ZodObject<{
1436
+ ok: z.ZodBoolean;
1437
+ nextStepSlug: z.ZodOptional<z.ZodString>;
1438
+ lifecycleStage: z.ZodOptional<z.ZodString>;
1439
+ error: z.ZodOptional<z.ZodString>;
1440
+ }, z.core.$strip>>;
1353
1441
  "entity:meta": Receiver<z.ZodObject<{
1354
1442
  id: z.ZodString;
1355
1443
  meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -1992,6 +2080,7 @@ export declare const RECEIVERS: {
1992
2080
  skills: z.ZodArray<z.ZodObject<{
1993
2081
  name: z.ZodString;
1994
2082
  size: z.ZodNumber;
2083
+ sealed: z.ZodOptional<z.ZodBoolean>;
1995
2084
  }, z.core.$strip>>;
1996
2085
  }, z.core.$strip>>;
1997
2086
  "skill:run": Receiver<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"receivers.d.ts","sourceRoot":"","sources":["../src/receivers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB;;;;;;;;;;;;;GAaG;AAEH;sEACsE;AACtE,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,+DAA+D;AAC/D,MA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sD;AACtD,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAElD,+CAA+C;AAC/C,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,YAAY,IACtC,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEzF,iDAAiD;AACjD,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,YAAY,IACtC,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,UAAU,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE1F;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAClB,iFAAiF;;IAEjF,wDAAwD;;IAExD,iEAAiE;;IAEjE,mDAAmD;;IAEnD,8DAA8D;;CAEb,CAAC;AAEpD,8BAA8B;AAC9B,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAC"}
package/dist/receivers.js CHANGED
@@ -188,14 +188,15 @@ export const RECEIVERS = {
188
188
  request: z.object({
189
189
  name: z.string(), type: z.string(), group: z.string().optional(),
190
190
  tags: z.array(z.string()).optional(), model: z.string().optional(), prompt: z.string().optional(),
191
+ meta: z.unknown().optional(),
191
192
  }),
192
193
  response: z.object({ aid: z.string() }), effect: "ask", auth: "manage_actors",
193
194
  examples: [{ name: "scout", type: "agent" }],
194
195
  }),
195
196
  "world:update-actor": receiver({
196
197
  receiver: "world:update-actor",
197
- summary: "Update an actor's name, tags, prompt, or model",
198
- request: z.object({ aid: z.string(), name: z.string().optional(), tags: z.array(z.string()).optional(), prompt: z.string().optional(), model: z.string().optional() }),
198
+ summary: "Update an actor's name, tags, prompt, model, or custom meta fields",
199
+ request: z.object({ aid: z.string(), name: z.string().optional(), tags: z.array(z.string()).optional(), prompt: z.string().optional(), model: z.string().optional(), meta: z.unknown().optional() }),
199
200
  response: ok, effect: "ask", auth: "manage_actors",
200
201
  }),
201
202
  "visitor:promote": receiver({
@@ -308,10 +309,34 @@ export const RECEIVERS = {
308
309
  request: z.object({ group: z.string().optional(), key: z.string(), fields: z.array(FieldSchema), label: z.string().optional() }),
309
310
  response: ok, effect: "ask", auth: "manage_things",
310
311
  }),
312
+ "lifecycle:save": receiver({
313
+ receiver: "lifecycle:save",
314
+ summary: "Save a lifecycle definition to a workspace (operator push from data/lifecycles/*.toml via `one push`)",
315
+ request: z.object({ slug: z.string(), lifecycle: z.string(), def: z.record(z.string(), z.unknown()) }),
316
+ response: z.object({ ok: z.literal(true), id: z.string() }),
317
+ effect: "ask", auth: "manage_lifecycle", reversible: false,
318
+ examples: [{ slug: "acme", lifecycle: "marketing", def: { id: "marketing", name: "Marketing Funnel", version: 1, stages: [], transitions: [], arcs: [], monotonic: true } }],
319
+ }),
320
+ "tools:connect": receiver({
321
+ receiver: "tools:connect",
322
+ summary: "Connect a Composio API-KEY toolkit to a workspace headlessly (OAuth stays in the browser flow)",
323
+ request: z.object({ slug: z.string(), toolkit: z.string(), credentials: z.record(z.string(), z.string()).optional(), authScheme: z.string().optional() }),
324
+ response: z.object({ ok: z.literal(true), connectionId: z.string().optional(), authUrl: z.string().optional() }),
325
+ effect: "ask", auth: "manage_integrations", reversible: false,
326
+ examples: [{ slug: "acme", toolkit: "stripe", credentials: { api_key: "sk_test_..." } }],
327
+ }),
328
+ "brand:set": receiver({
329
+ receiver: "brand:set",
330
+ summary: "Write up to 6 brand color tokens (primary/secondary/accent/bg/text/border) to a workspace theme",
331
+ request: z.object({ slug: z.string(), tokens: z.object({ primary: z.string().optional(), secondary: z.string().optional(), accent: z.string().optional(), bg: z.string().optional(), text: z.string().optional(), border: z.string().optional() }) }),
332
+ response: z.object({ ok: z.literal(true), theme: z.record(z.string(), z.unknown()) }),
333
+ effect: "ask", auth: "manage_workspace", reversible: true,
334
+ examples: [{ slug: "acme", tokens: { primary: "hsl(216 55% 25%)", secondary: "hsl(160 40% 45%)" } }],
335
+ }),
311
336
  "world:create-thing": receiver({
312
337
  receiver: "world:create-thing",
313
338
  summary: "Create a thing (skill, token, product) in the world",
314
- request: z.object({ name: z.string(), type: z.string(), group: z.string().optional(), tags: z.array(z.string()).optional(), price: z.number().optional() }),
339
+ request: z.object({ name: z.string(), type: z.string(), group: z.string().optional(), tags: z.array(z.string()).optional(), price: z.number().optional(), meta: z.unknown().optional() }),
315
340
  response: z.object({ tid: z.string() }), effect: "ask", auth: "manage_things",
316
341
  }),
317
342
  "world:update-thing": receiver({
@@ -327,15 +352,15 @@ export const RECEIVERS = {
327
352
  }),
328
353
  "world:list-things": receiver({
329
354
  receiver: "world:list-things",
330
- summary: "List things of a given type in a workspace used by relation-field pickers",
331
- request: z.object({ group: z.string(), type: z.string() }),
355
+ summary: "List things of a given type relation pickers (browse, first 100 by name) and name resolution (pass `ids` to resolve exactly those, uncapped)",
356
+ request: z.object({ group: z.string(), type: z.string(), ids: z.array(z.string()).optional() }),
332
357
  response: z.object({ items: z.array(z.object({ tid: z.string(), name: z.string() })) }),
333
358
  effect: "ask", auth: "member", cost: "free", idempotent: true,
334
359
  }),
335
360
  "world:list-actors": receiver({
336
361
  receiver: "world:list-actors",
337
- summary: "List actors of a given type in a workspace used by relation-field pickers and name resolution",
338
- request: z.object({ group: z.string(), type: z.string() }),
362
+ summary: "List actors of a given type relation pickers (browse, first 100 by name) and name resolution (pass `ids` to resolve exactly those, uncapped)",
363
+ request: z.object({ group: z.string(), type: z.string(), ids: z.array(z.string()).optional() }),
339
364
  response: z.object({ items: z.array(z.object({ aid: z.string(), name: z.string() })) }),
340
365
  effect: "ask", auth: "member", cost: "free", idempotent: true,
341
366
  }),
@@ -693,7 +718,7 @@ export const RECEIVERS = {
693
718
  summary: "Publish a capability (skill listing) to the market",
694
719
  request: z.object({
695
720
  skillId: z.string(), name: z.string(), price: z.number(),
696
- mode: z.string().optional(), visibility: z.string().optional(), scope: z.string().optional(),
721
+ mode: z.string().optional(), visibility: z.string().optional(), scope: z.string().optional(), entitlement: z.string().optional(),
697
722
  tags: z.array(z.string()).optional(),
698
723
  rubricThresholds: z.object({
699
724
  fit: z.number().optional(), form: z.number().optional(),
@@ -793,6 +818,21 @@ export const RECEIVERS = {
793
818
  }),
794
819
  effect: "ask", cost: "free", idempotent: true,
795
820
  }),
821
+ "meta:entitlements": receiver({
822
+ receiver: "meta:entitlements",
823
+ summary: "Check the caller workspace's entitlement for one feature — the authoritative paid-plugin gate; absent/over-limit claim → not allowed (backend returns 402)",
824
+ request: z.object({ feature: z.string() }),
825
+ response: z.object({
826
+ feature: z.string(),
827
+ allowed: z.boolean(),
828
+ remaining: z.number().nullable(),
829
+ limit: z.number().nullable(),
830
+ used: z.number(),
831
+ soft: z.boolean(),
832
+ }),
833
+ effect: "ask", cost: "free", idempotent: true,
834
+ examples: [{ feature: "premium" }],
835
+ }),
796
836
  // ── actor discovery + messaging ──────────────────────────────────────────
797
837
  "actors:find": receiver({
798
838
  receiver: "actors:find",
@@ -1113,6 +1153,61 @@ export const RECEIVERS = {
1113
1153
  }),
1114
1154
  effect: "ask", cost: "free", reversible: true, idempotent: false, auth: "member",
1115
1155
  }),
1156
+ // ── FUNNELS (text/funnels-plan.md) — author + run funnel definitions ──────────
1157
+ // funnel:create — create a new funnel definition (draft).
1158
+ "funnel:create": receiver({
1159
+ receiver: "funnel:create",
1160
+ summary: "Create a new funnel definition in a workspace (draft status); slug unique per workspace",
1161
+ request: z.object({
1162
+ workspaceSlug: z.string(),
1163
+ slug: z.string(),
1164
+ name: z.string(),
1165
+ playbookNode: z.string().optional(),
1166
+ }),
1167
+ response: z.object({ ok: z.boolean(), id: z.string().optional(), error: z.string().optional() }),
1168
+ effect: "ask", cost: "free", reversible: false, idempotent: false, auth: "admin",
1169
+ }),
1170
+ // funnel:update-step — replace the steps + edges graph of a funnel (bumps version).
1171
+ "funnel:update-step": receiver({
1172
+ receiver: "funnel:update-step",
1173
+ summary: "Replace a funnel's steps + edges graph; returns the new version (idempotent on identical payload)",
1174
+ request: z.object({
1175
+ workspaceSlug: z.string(),
1176
+ funnelId: z.string(),
1177
+ steps: z.array(z.unknown()),
1178
+ edges: z.array(z.unknown()),
1179
+ }),
1180
+ response: z.object({ ok: z.boolean(), version: z.number().optional(), error: z.string().optional() }),
1181
+ effect: "ask", cost: "free", reversible: true, idempotent: true, auth: "admin",
1182
+ }),
1183
+ // funnel:publish — flip a funnel from draft to published.
1184
+ "funnel:publish": receiver({
1185
+ receiver: "funnel:publish",
1186
+ summary: "Publish a funnel (status draft → published); idempotent if already published",
1187
+ request: z.object({ workspaceSlug: z.string(), funnelId: z.string() }),
1188
+ response: z.object({ ok: z.boolean(), status: z.string().optional(), error: z.string().optional() }),
1189
+ effect: "ask", cost: "free", reversible: true, idempotent: true, auth: "admin",
1190
+ }),
1191
+ // funnel:advance — move a visitor's session cursor; may move the visitor's lifecycle stage
1192
+ // (delegates to entity:tag — the sole stage_transition writer). Public: anonymous visitors fire this.
1193
+ "funnel:advance": receiver({
1194
+ receiver: "funnel:advance",
1195
+ summary: "Advance a visitor through a funnel step; returns next step + any lifecycle stage moved via entity:tag",
1196
+ request: z.object({
1197
+ workspaceSlug: z.string(),
1198
+ funnelSlug: z.string(),
1199
+ stepSlug: z.string(),
1200
+ visitorHash: z.string(),
1201
+ formData: z.record(z.string(), z.unknown()).optional(),
1202
+ }),
1203
+ response: z.object({
1204
+ ok: z.boolean(),
1205
+ nextStepSlug: z.string().optional(),
1206
+ lifecycleStage: z.string().optional(),
1207
+ error: z.string().optional(),
1208
+ }),
1209
+ effect: "signal", cost: "free", reversible: false, idempotent: false, auth: "public",
1210
+ }),
1116
1211
  // entity:meta — editable profile fields for an entity (website, industry, location, …).
1117
1212
  "entity:meta": receiver({
1118
1213
  receiver: "entity:meta",
@@ -1721,7 +1816,7 @@ export const RECEIVERS = {
1721
1816
  summary: "List the caller's workspace skill catalog (R2) — powers the canvas SkillPicker",
1722
1817
  request: z.object({}),
1723
1818
  response: z.object({
1724
- skills: z.array(z.object({ name: z.string(), size: z.number() })),
1819
+ skills: z.array(z.object({ name: z.string(), size: z.number(), sealed: z.boolean().optional() })),
1725
1820
  }),
1726
1821
  effect: "ask", cost: "free", idempotent: true, simulatable: false, auth: "view_workflows",
1727
1822
  examples: [{}],