@oneie/sdk 0.13.9 → 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.
@@ -444,6 +444,38 @@ export declare const RECEIVERS: {
444
444
  }, z.core.$strip>, z.ZodObject<{
445
445
  ok: z.ZodBoolean;
446
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>>;
447
479
  "world:create-thing": Receiver<z.ZodObject<{
448
480
  name: z.ZodString;
449
481
  type: z.ZodString;
@@ -874,6 +906,7 @@ export declare const RECEIVERS: {
874
906
  mode: z.ZodOptional<z.ZodString>;
875
907
  visibility: z.ZodOptional<z.ZodString>;
876
908
  scope: z.ZodOptional<z.ZodString>;
909
+ entitlement: z.ZodOptional<z.ZodString>;
877
910
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
878
911
  rubricThresholds: z.ZodOptional<z.ZodObject<{
879
912
  fit: z.ZodOptional<z.ZodNumber>;
@@ -1365,6 +1398,46 @@ export declare const RECEIVERS: {
1365
1398
  }, z.core.$strip>>;
1366
1399
  error: z.ZodOptional<z.ZodString>;
1367
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>>;
1368
1441
  "entity:meta": Receiver<z.ZodObject<{
1369
1442
  id: z.ZodString;
1370
1443
  meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -2007,6 +2080,7 @@ export declare const RECEIVERS: {
2007
2080
  skills: z.ZodArray<z.ZodObject<{
2008
2081
  name: z.ZodString;
2009
2082
  size: z.ZodNumber;
2083
+ sealed: z.ZodOptional<z.ZodBoolean>;
2010
2084
  }, z.core.$strip>>;
2011
2085
  }, z.core.$strip>>;
2012
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,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,oDAAoD;AACpD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAEzD,6CAA6C;AAC7C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,QAAQ,CACvB,GAAG,SAAS,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,EACvC,GAAG,SAAS,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU;IAEvC,i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AAC,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
@@ -309,6 +309,30 @@ export const RECEIVERS = {
309
309
  request: z.object({ group: z.string().optional(), key: z.string(), fields: z.array(FieldSchema), label: z.string().optional() }),
310
310
  response: ok, effect: "ask", auth: "manage_things",
311
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
+ }),
312
336
  "world:create-thing": receiver({
313
337
  receiver: "world:create-thing",
314
338
  summary: "Create a thing (skill, token, product) in the world",
@@ -694,7 +718,7 @@ export const RECEIVERS = {
694
718
  summary: "Publish a capability (skill listing) to the market",
695
719
  request: z.object({
696
720
  skillId: z.string(), name: z.string(), price: z.number(),
697
- 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(),
698
722
  tags: z.array(z.string()).optional(),
699
723
  rubricThresholds: z.object({
700
724
  fit: z.number().optional(), form: z.number().optional(),
@@ -1129,6 +1153,61 @@ export const RECEIVERS = {
1129
1153
  }),
1130
1154
  effect: "ask", cost: "free", reversible: true, idempotent: false, auth: "member",
1131
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
+ }),
1132
1211
  // entity:meta — editable profile fields for an entity (website, industry, location, …).
1133
1212
  "entity:meta": receiver({
1134
1213
  receiver: "entity:meta",
@@ -1737,7 +1816,7 @@ export const RECEIVERS = {
1737
1816
  summary: "List the caller's workspace skill catalog (R2) — powers the canvas SkillPicker",
1738
1817
  request: z.object({}),
1739
1818
  response: z.object({
1740
- 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() })),
1741
1820
  }),
1742
1821
  effect: "ask", cost: "free", idempotent: true, simulatable: false, auth: "view_workflows",
1743
1822
  examples: [{}],