@wildo-ai/platform-core-shared 1.1.10 → 1.1.11

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.
Files changed (63) hide show
  1. package/dist/esm/core/resources/resources-operations.custom.shared.definitions.d.ts.map +1 -1
  2. package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.d.ts.map +1 -1
  3. package/dist/esm/index.d.ts.map +1 -1
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/esm/runtime/application-backend-env.contracts.d.ts +9 -2
  6. package/dist/esm/runtime/application-backend-env.contracts.d.ts.map +1 -1
  7. package/dist/esm/runtime/application-backend-env.contracts.js +12 -0
  8. package/dist/esm/runtime/application-backend-env.contracts.js.map +1 -1
  9. package/dist/esm/runtime/application-worker-env.contracts.d.ts +4 -2
  10. package/dist/esm/runtime/application-worker-env.contracts.d.ts.map +1 -1
  11. package/dist/esm/runtime/application-worker-env.contracts.js +3 -0
  12. package/dist/esm/runtime/application-worker-env.contracts.js.map +1 -1
  13. package/dist/esm/runtime/backend-start-outcome.contracts.d.ts.map +1 -1
  14. package/dist/esm/runtime/backend-start-outcome.contracts.js.map +1 -1
  15. package/dist/esm/runtime/runtime-topology.contracts.d.ts.map +1 -1
  16. package/dist/esm/security/authorizations/roles.custom.shared.definitions.d.ts.map +1 -1
  17. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts +362 -44
  18. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts.map +1 -1
  19. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts +400 -45
  20. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts.map +1 -1
  21. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js +107 -1
  22. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js.map +1 -1
  23. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts +24 -14
  24. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map +1 -1
  25. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts +31 -15
  26. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map +1 -1
  27. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js +26 -2
  28. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js.map +1 -1
  29. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.d.ts.map +1 -1
  30. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts.map +1 -1
  31. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.d.ts.map +1 -1
  32. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.d.ts.map +1 -1
  33. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts.map +1 -1
  34. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js +30 -0
  35. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js.map +1 -1
  36. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.d.ts.map +1 -1
  37. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.js.map +1 -1
  38. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts +21 -3
  39. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts.map +1 -1
  40. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js +7 -0
  41. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js.map +1 -1
  42. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts +185 -0
  43. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts.map +1 -1
  44. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js +78 -2
  45. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js.map +1 -1
  46. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts +412 -10
  47. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts.map +1 -1
  48. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js +524 -15
  49. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js.map +1 -1
  50. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.d.ts +34 -0
  51. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.d.ts.map +1 -1
  52. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.js +31 -0
  53. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.js.map +1 -1
  54. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts +7 -2
  55. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts.map +1 -1
  56. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js +12 -2
  57. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js.map +1 -1
  58. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts +93 -0
  59. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts.map +1 -1
  60. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js +1 -0
  61. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js.map +1 -1
  62. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts.map +1 -1
  63. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-executions.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-application-executions/wildo-application-executions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGL,kBAAkB,EACnB,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxD,CAAC;AACH,MAAM,MAAM,sCAAsC,GAChD,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAC"}
1
+ {"version":3,"file":"wildo-application-executions.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-application-executions/wildo-application-executions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGL,kBAAkB,EAElB,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AA6B/B;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,EAAE,SAAS,gBAAgB,EAA+B,CAAC;AAgBzG;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,8CAA8C,EAAE,SAAS,gBAAgB,EAWrF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ystem_ExecutionSchema, FlowSystem_Execution_Schema, FlowsActors_Status, } from '@wildo-ai/saas-models';
2
+ import { ActorSystem_ExecutionSchema, FlowSystem_Execution_Schema, FlowsActors_Status, forwardedUserNameDirectory, } from '@wildo-ai/saas-models';
3
3
  import { initZodDecorators } from '@wildo-ai/zod-decorators';
4
4
  initZodDecorators(z);
5
+ /**
6
+ * A persisted run's INSTANTS, as dates (#2187).
7
+ *
8
+ * The canonical execution schema (`FlowActorSystem_ExecutionSchema`) carries `createdAt` /
9
+ * `updatedAt` / `finishedAt` as ISO strings, which is right for the in-memory and wire form and
10
+ * wrong for a stored row: the PostgreSQL planner maps every string to `text`, so the platform
11
+ * stored these as text holding a LOCAL offset (`2026-10-01T16:26:43.497+02:00`, 381 rows measured),
12
+ * and every newest-first listing sorted the strings. String order is time order only while every
13
+ * value has the same offset — not across a daylight-saving change, nor between hosts in different
14
+ * zones. As dates they plan `timestamptz` and compare as instants. The engine's own persisted
15
+ * execution schemas declare the same fields as `z.date()` for the same reason.
16
+ *
17
+ * Only the persisted row changes. The wire (the companion's HTTP contracts, the in-memory runtime)
18
+ * keeps ISO strings; the companion's executions service converts at its persistence boundary.
19
+ *
20
+ * `updatedAt` is indexed: the companion's listing reads the newest rows of an application by it
21
+ * (#2186), and without the index PostgreSQL sorts every row of the application to return a page.
22
+ */
23
+ const PersistedExecutionInstants = {
24
+ createdAt: z.date(),
25
+ updatedAt: z.date().isDBIndexed(),
26
+ finishedAt: z.date().optional(),
27
+ };
28
+ /**
29
+ * Where a run record's execution-context initiators name a PERSON (#2823), on every control-plane run record (an actor
30
+ * run, a flow run, a task): the one who started it (`initiator`), and the one whose request each error item records
31
+ * (`errorStates.errorItems[].initiatorIds`). In each, `userId` is the signed-in person and `inboundScopeUserId` the
32
+ * person an inbound delivery belongs to; both are user ids. The initiator's other ids (an organization, an application,
33
+ * a credential, an anonymous visitor, a delivery) are not people with a profile, and are left as recorded.
34
+ */
35
+ export const RUN_RECORD_INITIATOR_PERSON_PATHS = initiatorPersonPathsAt('');
36
+ /**
37
+ * The initiator person paths of a record nested at `prefix` (`''` for the record itself): a run's plan and each of its
38
+ * standalone tasks carry an initiator and error items of their own, of the same shape.
39
+ */
40
+ function initiatorPersonPathsAt(prefix) {
41
+ const at = (path) => (prefix ? `${prefix}.${path}` : path);
42
+ return [
43
+ at('initiator.userId'),
44
+ at('initiator.inboundScopeUserId'),
45
+ at('errorStates.errorItems[].initiatorIds.userId'),
46
+ at('errorStates.errorItems[].initiatorIds.inboundScopeUserId'),
47
+ ];
48
+ }
49
+ /**
50
+ * Every place an actor run's schema types a PERSON by user id below its top level (#2823), named by the run's
51
+ * `userNames`:
52
+ *
53
+ * - who started it, and whose request each error item records ({@link RUN_RECORD_INITIATOR_PERSON_PATHS}), on the run
54
+ * itself, on its plan (`plan.`) and on each standalone task it carries (`standaloneTasks[].`);
55
+ * - who decided each decision the run waited on (`statusChanges[].resolution.decidedByUserId`);
56
+ * - for the question the run is waiting on, and for the one a resume is answering (`checkpoint.resumedSuspension`): the
57
+ * person it was raised for (`requester.ref`) and the person it is assigned to (`route.assigneeUserId`);
58
+ * - for a settled review whose agent-work record is still owed (`pendingCorrectionRecord`): who decided it
59
+ * (`deciderUserId`) and the person whose work it was, when the work was a person's (`owner.userId`; the owner is an
60
+ * organization or an application otherwise, which this path does not reach).
61
+ *
62
+ * `requester.ref` is a CREDENTIAL id when the requester is a machine. No profile carries a credential id, so the
63
+ * directory names nothing there and the id stays as recorded, which is what a machine's reference should show.
64
+ *
65
+ * Not walked, because they are not typed: the free-form `checkpoint.context`, a task's `input`, `output` and `memory`.
66
+ * Not people: a task's correlation refs, a plan step's relationships, an organization unit.
67
+ *
68
+ * A display that shows these ids reads this list too (`nameUserIdsAtPaths`), so a person is named where their id was
69
+ * by the same statement that made the backend look them up.
70
+ */
71
+ export const WILDO_APPLICATION_ACTOR_EXECUTION_PERSON_PATHS = [
72
+ ...RUN_RECORD_INITIATOR_PERSON_PATHS,
73
+ 'statusChanges[].resolution.decidedByUserId',
74
+ 'suspension.requester.ref',
75
+ 'suspension.route.assigneeUserId',
76
+ 'checkpoint.resumedSuspension.requester.ref',
77
+ 'checkpoint.resumedSuspension.route.assigneeUserId',
78
+ 'pendingCorrectionRecord.deciderUserId',
79
+ 'pendingCorrectionRecord.owner.userId',
80
+ ...initiatorPersonPathsAt('plan'),
81
+ ...initiatorPersonPathsAt('standaloneTasks[]'),
82
+ ];
5
83
  /**
6
84
  * Platform-owned actor executions are persisted in the apps-manager database but
7
85
  * stay explicitly attached to the owning Wildo application row.
@@ -12,7 +90,28 @@ export const Wildo_Application_ActorSystem_Execution_Schema = ActorSystem_Execut
12
90
  wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
13
91
  systemRef: z.string().min(1).isDBIndexed().isSummaryField(),
14
92
  status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),
93
+ ...PersistedExecutionInstants,
94
+ /**
95
+ * The people this run records, by name (#2823): user id → their profile's first and last name, for every id at
96
+ * {@link WILDO_APPLICATION_ACTOR_EXECUTION_PERSON_PATHS}. Virtual: resolved when the run is read, never stored, so no
97
+ * column and no migration; an erased person reads as their profile now does (hidden, or masked), never by the name
98
+ * they had. No email fallback.
99
+ *
100
+ * WHO MAY BE TOLD: whoever may READ the run, i.e. a member of the organization that owns it (`ORG_MEMBER`, see the
101
+ * resource configuration). The people it names acted on this application's runs in that organization: the companion's
102
+ * signed-in operators who started a run, were asked by it, or decided for it. Their names are what the organization's
103
+ * own member list already tells its members, and nothing more (no email, no role).
104
+ *
105
+ * Not a summary field: only a run's own page shows its decisions and its question, so a LIST pays no profile read.
106
+ */
107
+ userNames: forwardedUserNameDirectory({ paths: WILDO_APPLICATION_ACTOR_EXECUTION_PERSON_PATHS }),
15
108
  });
109
+ /**
110
+ * Every place a flow run's schema types a PERSON by user id below its top level (#2823): its initiators only. A flow
111
+ * run's history carries no decision, so it has no decider, and its nodes are references to the flow's own steps (a
112
+ * step's `toUserId` is a value reference the step resolves, never stored on the run).
113
+ */
114
+ export const WILDO_APPLICATION_FLOW_EXECUTION_PERSON_PATHS = [...RUN_RECORD_INITIATOR_PERSON_PATHS];
16
115
  /**
17
116
  * Flow executions follow the same platform ownership chain as actor executions:
18
117
  * org-scoped in the apps-manager DB and child-linked to a single Wildo app.
@@ -23,5 +122,12 @@ export const Wildo_Application_FlowSystem_Execution_Schema = FlowSystem_Executio
23
122
  wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
24
123
  systemRef: z.string().min(1).isDBIndexed().isSummaryField(),
25
124
  status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),
125
+ ...PersistedExecutionInstants,
126
+ /**
127
+ * The people this flow run records, by name (#2823), at {@link WILDO_APPLICATION_FLOW_EXECUTION_PERSON_PATHS}. The
128
+ * actor run's `userNames` explains the field and its disclosure; the same reader (an organization member) is told the
129
+ * same thing (a profile name) about the same people (the companion's operators of this application).
130
+ */
131
+ userNames: forwardedUserNameDirectory({ paths: WILDO_APPLICATION_FLOW_EXECUTION_PERSON_PATHS }),
26
132
  });
27
133
  //# sourceMappingURL=wildo-application-executions.custom.shared.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-executions.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-application-executions/wildo-application-executions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB;;;GAGG;AACH,MAAM,CAAC,MAAM,8CAA8C,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAC/F,GAAG,EAAE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c,EAAE;CACnG,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n ActorSystem_ExecutionSchema,\n FlowSystem_Execution_Schema,\n FlowsActors_Status,\n} from '@wildo-ai/saas-models';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\n\ninitZodDecorators(z);\n\n/**\n * Platform-owned actor executions are persisted in the apps-manager database but\n * stay explicitly attached to the owning Wildo application row.\n */\nexport const Wildo_Application_ActorSystem_Execution_Schema = ActorSystem_ExecutionSchema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n systemRef: z.string().min(1).isDBIndexed().isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n});\nexport type Wildo_Application_ActorSystem_Execution =\n z.infer<typeof Wildo_Application_ActorSystem_Execution_Schema>;\n\n/**\n * Flow executions follow the same platform ownership chain as actor executions:\n * org-scoped in the apps-manager DB and child-linked to a single Wildo app.\n */\nexport const Wildo_Application_FlowSystem_Execution_Schema = FlowSystem_Execution_Schema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n systemRef: z.string().min(1).isDBIndexed().isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n});\nexport type Wildo_Application_FlowSystem_Execution =\n z.infer<typeof Wildo_Application_FlowSystem_Execution_Schema>;\n"]}
1
+ {"version":3,"file":"wildo-application-executions.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-application-executions/wildo-application-executions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,E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CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAChG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;IAC3D,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;IAClG,GAAG,0BAA0B;IAC7B;;;;OAIG;IACH,SAAS,EAAE,0BAA0B,CAAC,EAAE,KAAK,EAAE,6CAA6C,EAAE,CAAC;CAChG,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n ActorSystem_ExecutionSchema,\n FlowSystem_Execution_Schema,\n FlowsActors_Status,\n forwardedUserNameDirectory,\n type NestedUserIdPath,\n} from '@wildo-ai/saas-models';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\n\ninitZodDecorators(z);\n\n/**\n * A persisted run's INSTANTS, as dates (#2187).\n *\n * The canonical execution schema (`FlowActorSystem_ExecutionSchema`) carries `createdAt` /\n * `updatedAt` / `finishedAt` as ISO strings, which is right for the in-memory and wire form and\n * wrong for a stored row: the PostgreSQL planner maps every string to `text`, so the platform\n * stored these as text holding a LOCAL offset (`2026-10-01T16:26:43.497+02:00`, 381 rows measured),\n * and every newest-first listing sorted the strings. String order is time order only while every\n * value has the same offset — not across a daylight-saving change, nor between hosts in different\n * zones. As dates they plan `timestamptz` and compare as instants. The engine's own persisted\n * execution schemas declare the same fields as `z.date()` for the same reason.\n *\n * Only the persisted row changes. The wire (the companion's HTTP contracts, the in-memory runtime)\n * keeps ISO strings; the companion's executions service converts at its persistence boundary.\n *\n * `updatedAt` is indexed: the companion's listing reads the newest rows of an application by it\n * (#2186), and without the index PostgreSQL sorts every row of the application to return a page.\n */\nconst PersistedExecutionInstants = {\n createdAt: z.date(),\n updatedAt: z.date().isDBIndexed(),\n finishedAt: z.date().optional(),\n};\n\n/**\n * Where a run record's execution-context initiators name a PERSON (#2823), on every control-plane run record (an actor\n * run, a flow run, a task): the one who started it (`initiator`), and the one whose request each error item records\n * (`errorStates.errorItems[].initiatorIds`). In each, `userId` is the signed-in person and `inboundScopeUserId` the\n * person an inbound delivery belongs to; both are user ids. The initiator's other ids (an organization, an application,\n * a credential, an anonymous visitor, a delivery) are not people with a profile, and are left as recorded.\n */\nexport const RUN_RECORD_INITIATOR_PERSON_PATHS: readonly NestedUserIdPath[] = initiatorPersonPathsAt('');\n\n/**\n * The initiator person paths of a record nested at `prefix` (`''` for the record itself): a run's plan and each of its\n * standalone tasks carry an initiator and error items of their own, of the same shape.\n */\nfunction initiatorPersonPathsAt(prefix: string): NestedUserIdPath[] {\n const at = (path: string): NestedUserIdPath => (prefix ? `${prefix}.${path}` : path);\n return [\n at('initiator.userId'),\n at('initiator.inboundScopeUserId'),\n at('errorStates.errorItems[].initiatorIds.userId'),\n at('errorStates.errorItems[].initiatorIds.inboundScopeUserId'),\n ];\n}\n\n/**\n * Every place an actor run's schema types a PERSON by user id below its top level (#2823), named by the run's\n * `userNames`:\n *\n * - who started it, and whose request each error item records ({@link RUN_RECORD_INITIATOR_PERSON_PATHS}), on the run\n * itself, on its plan (`plan.`) and on each standalone task it carries (`standaloneTasks[].`);\n * - who decided each decision the run waited on (`statusChanges[].resolution.decidedByUserId`);\n * - for the question the run is waiting on, and for the one a resume is answering (`checkpoint.resumedSuspension`): the\n * person it was raised for (`requester.ref`) and the person it is assigned to (`route.assigneeUserId`);\n * - for a settled review whose agent-work record is still owed (`pendingCorrectionRecord`): who decided it\n * (`deciderUserId`) and the person whose work it was, when the work was a person's (`owner.userId`; the owner is an\n * organization or an application otherwise, which this path does not reach).\n *\n * `requester.ref` is a CREDENTIAL id when the requester is a machine. No profile carries a credential id, so the\n * directory names nothing there and the id stays as recorded, which is what a machine's reference should show.\n *\n * Not walked, because they are not typed: the free-form `checkpoint.context`, a task's `input`, `output` and `memory`.\n * Not people: a task's correlation refs, a plan step's relationships, an organization unit.\n *\n * A display that shows these ids reads this list too (`nameUserIdsAtPaths`), so a person is named where their id was\n * by the same statement that made the backend look them up.\n */\nexport const WILDO_APPLICATION_ACTOR_EXECUTION_PERSON_PATHS: readonly NestedUserIdPath[] = [\n ...RUN_RECORD_INITIATOR_PERSON_PATHS,\n 'statusChanges[].resolution.decidedByUserId',\n 'suspension.requester.ref',\n 'suspension.route.assigneeUserId',\n 'checkpoint.resumedSuspension.requester.ref',\n 'checkpoint.resumedSuspension.route.assigneeUserId',\n 'pendingCorrectionRecord.deciderUserId',\n 'pendingCorrectionRecord.owner.userId',\n ...initiatorPersonPathsAt('plan'),\n ...initiatorPersonPathsAt('standaloneTasks[]'),\n];\n\n/**\n * Platform-owned actor executions are persisted in the apps-manager database but\n * stay explicitly attached to the owning Wildo application row.\n */\nexport const Wildo_Application_ActorSystem_Execution_Schema = ActorSystem_ExecutionSchema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n systemRef: z.string().min(1).isDBIndexed().isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n ...PersistedExecutionInstants,\n /**\n * The people this run records, by name (#2823): user id → their profile's first and last name, for every id at\n * {@link WILDO_APPLICATION_ACTOR_EXECUTION_PERSON_PATHS}. Virtual: resolved when the run is read, never stored, so no\n * column and no migration; an erased person reads as their profile now does (hidden, or masked), never by the name\n * they had. No email fallback.\n *\n * WHO MAY BE TOLD: whoever may READ the run, i.e. a member of the organization that owns it (`ORG_MEMBER`, see the\n * resource configuration). The people it names acted on this application's runs in that organization: the companion's\n * signed-in operators who started a run, were asked by it, or decided for it. Their names are what the organization's\n * own member list already tells its members, and nothing more (no email, no role).\n *\n * Not a summary field: only a run's own page shows its decisions and its question, so a LIST pays no profile read.\n */\n userNames: forwardedUserNameDirectory({ paths: WILDO_APPLICATION_ACTOR_EXECUTION_PERSON_PATHS }),\n});\nexport type Wildo_Application_ActorSystem_Execution =\n z.infer<typeof Wildo_Application_ActorSystem_Execution_Schema>;\n\n/**\n * Every place a flow run's schema types a PERSON by user id below its top level (#2823): its initiators only. A flow\n * run's history carries no decision, so it has no decider, and its nodes are references to the flow's own steps (a\n * step's `toUserId` is a value reference the step resolves, never stored on the run).\n */\nexport const WILDO_APPLICATION_FLOW_EXECUTION_PERSON_PATHS: readonly NestedUserIdPath[] = [...RUN_RECORD_INITIATOR_PERSON_PATHS];\n\n/**\n * Flow executions follow the same platform ownership chain as actor executions:\n * org-scoped in the apps-manager DB and child-linked to a single Wildo app.\n */\nexport const Wildo_Application_FlowSystem_Execution_Schema = FlowSystem_Execution_Schema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n systemRef: z.string().min(1).isDBIndexed().isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n ...PersistedExecutionInstants,\n /**\n * The people this flow run records, by name (#2823), at {@link WILDO_APPLICATION_FLOW_EXECUTION_PERSON_PATHS}. The\n * actor run's `userNames` explains the field and its disclosure; the same reader (an organization member) is told the\n * same thing (a profile name) about the same people (the companion's operators of this application).\n */\n userNames: forwardedUserNameDirectory({ paths: WILDO_APPLICATION_FLOW_EXECUTION_PERSON_PATHS }),\n});\nexport type Wildo_Application_FlowSystem_Execution =\n z.infer<typeof Wildo_Application_FlowSystem_Execution_Schema>;\n"]}
@@ -13,7 +13,7 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
13
13
  userId: import("zod").ZodOptional<import("zod").ZodString>;
14
14
  applicationId: import("zod").ZodOptional<import("zod").ZodString>;
15
15
  machineCredential: import("zod").ZodOptional<import("zod").ZodObject<{
16
- authMethod: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>;
16
+ authMethod: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>>;
17
17
  credentialId: import("zod").ZodString;
18
18
  }, import("zod/v4/core").$strip>>;
19
19
  consumableTokenId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -22,6 +22,10 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
22
22
  inboundDeliveryId: import("zod").ZodOptional<import("zod").ZodString>;
23
23
  inboundHandlerRef: import("zod").ZodOptional<import("zod").ZodString>;
24
24
  inboundScopeUserId: import("zod").ZodOptional<import("zod").ZodString>;
25
+ decisionNoticeId: import("zod").ZodOptional<import("zod").ZodString>;
26
+ decisionNoticeHandlerRef: import("zod").ZodOptional<import("zod").ZodString>;
27
+ chatConversationId: import("zod").ZodOptional<import("zod").ZodString>;
28
+ chatReplyHandlerRef: import("zod").ZodOptional<import("zod").ZodString>;
25
29
  inboundSender: import("zod").ZodOptional<import("zod").ZodObject<{
26
30
  channel: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").InboundChannelKind>;
27
31
  assurance: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").InboundSenderAssurance>;
@@ -29,37 +33,37 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
29
33
  }, import("zod/v4/core").$strip>;
30
34
  relationships: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
31
35
  kind: import("zod").ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW>;
32
- relation: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
36
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
33
37
  flowId: import("zod").ZodString;
34
38
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
35
39
  kind: import("zod").ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR>;
36
- relation: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
40
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
37
41
  actorId: import("zod").ZodString;
38
42
  actorSystemId: import("zod").ZodString;
39
43
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
40
44
  kind: import("zod").ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW_STEP>;
41
- relation: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
45
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
42
46
  flowId: import("zod").ZodString;
43
47
  stepId: import("zod").ZodString;
44
48
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
45
49
  kind: import("zod").ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.TASK>;
46
- relation: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
50
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
47
51
  taskId: import("zod").ZodString;
48
52
  actorSystemId: import("zod").ZodString;
49
53
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
50
54
  kind: import("zod").ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN>;
51
- relation: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
55
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
52
56
  planId: import("zod").ZodString;
53
57
  actorSystemId: import("zod").ZodString;
54
58
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
55
59
  kind: import("zod").ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN_STEP>;
56
- relation: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
60
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
57
61
  planId: import("zod").ZodString;
58
62
  planStepId: import("zod").ZodString;
59
63
  actorSystemId: import("zod").ZodString;
60
64
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
61
65
  kind: import("zod").ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR_SYSTEM>;
62
- relation: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
66
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
63
67
  actorSystemId: import("zod").ZodString;
64
68
  }, import("zod/v4/core").$strip>], "kind">>;
65
69
  actors: import("zod").ZodObject<{
@@ -260,7 +264,7 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
260
264
  userId: import("zod").ZodOptional<import("zod").ZodString>;
261
265
  applicationId: import("zod").ZodOptional<import("zod").ZodString>;
262
266
  machineCredential: import("zod").ZodOptional<import("zod").ZodObject<{
263
- authMethod: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>;
267
+ authMethod: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>>;
264
268
  credentialId: import("zod").ZodString;
265
269
  }, import("zod/v4/core").$strip>>;
266
270
  consumableTokenId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -269,12 +273,16 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
269
273
  inboundDeliveryId: import("zod").ZodOptional<import("zod").ZodString>;
270
274
  inboundHandlerRef: import("zod").ZodOptional<import("zod").ZodString>;
271
275
  inboundScopeUserId: import("zod").ZodOptional<import("zod").ZodString>;
276
+ decisionNoticeId: import("zod").ZodOptional<import("zod").ZodString>;
277
+ decisionNoticeHandlerRef: import("zod").ZodOptional<import("zod").ZodString>;
278
+ chatConversationId: import("zod").ZodOptional<import("zod").ZodString>;
279
+ chatReplyHandlerRef: import("zod").ZodOptional<import("zod").ZodString>;
272
280
  inboundSender: import("zod").ZodOptional<import("zod").ZodObject<{
273
281
  channel: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").InboundChannelKind>;
274
282
  assurance: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").InboundSenderAssurance>;
275
283
  }, import("zod/v4/core").$strict>>;
276
284
  }, import("zod/v4/core").$strip>>>;
277
- executionType: import("zod").ZodOptional<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ExecutionContext_ExecutionType>>;
285
+ executionType: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ExecutionContext_ExecutionType>>>;
278
286
  userGuidance: import("zod").ZodOptional<import("zod").ZodObject<{
279
287
  guidanceKey: import("zod").ZodOptional<import("zod").ZodString>;
280
288
  explanation: import("zod").ZodOptional<import("zod").ZodString>;
@@ -289,6 +297,7 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
289
297
  retryAfterSeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
290
298
  missingConfiguration: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
291
299
  }, import("zod/v4/core").$strip>>;
300
+ requestOutcome: import("zod").ZodOptional<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ErrorRequestOutcome>>;
292
301
  actorRef: import("zod").ZodString;
293
302
  }, import("zod/v4/core").$strip>>>;
294
303
  checkpointChecks: import("zod").ZodArray<import("zod").ZodObject<{
@@ -339,16 +348,17 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
339
348
  context: import("zod").ZodOptional<import("zod").ZodAny>;
340
349
  }, import("zod/v4/core").$strip>>>;
341
350
  }, import("zod/v4/core").$strip>>;
342
- createdAt: import("zod").ZodString;
343
- startedAt: import("zod").ZodOptional<import("zod").ZodString>;
344
- completedAt: import("zod").ZodOptional<import("zod").ZodString>;
345
351
  _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
346
352
  organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
347
353
  wildoApplicationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
348
354
  wildoApplicationActorSystemExecutionId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
349
355
  title: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>;
350
356
  status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Status>>>>;
351
- updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>;
357
+ createdAt: import("zod").ZodDate;
358
+ updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>;
359
+ startedAt: import("zod").ZodOptional<import("zod").ZodDate>;
360
+ completedAt: import("zod").ZodOptional<import("zod").ZodDate>;
361
+ userNames: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
352
362
  }, import("zod/v4/core").$strip>>;
353
363
  export {};
354
364
  //# sourceMappingURL=wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-tasks.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EAGrB,oBAAoB,EAErB,MAAM,uBAAuB,CAAC;AAS/B,KAAK,yCAAyC,GAC1C,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,MAAM,CAAC;AA2CjC;;;;GAIG;AACH,eAAO,MAAM,sEAAsE,GAChF,wBAAwB,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAwB7C,CAAC"}
1
+ {"version":3,"file":"wildo-application-tasks.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EAGrB,oBAAoB,EAErB,MAAM,uBAAuB,CAAC;AAS/B,KAAK,yCAAyC,GAC1C,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,MAAM,CAAC;AA2CjC;;;;GAIG;AACH,eAAO,MAAM,sEAAsE,GAChF,wBAAwB,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAwB7C,CAAC"}
@@ -1,5 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { FlowsActors_Status } from '@wildo-ai/saas-models';
2
+ import { FlowsActors_Status, type NestedUserIdPath } from '@wildo-ai/saas-models';
3
+ /**
4
+ * Every place an actor task's schema types a PERSON by user id below its top level (#2823): its initiators (who started
5
+ * it, and whose request each error item records). Named by the task's `userNames`. Not walked, because they are not
6
+ * typed: its `input`, `output` and `memory`. Not people: its correlation refs and relationships.
7
+ */
8
+ export declare const WILDO_APPLICATION_ACTOR_TASK_PERSON_PATHS: readonly NestedUserIdPath[];
3
9
  /**
4
10
  * Actor-flow tasks are persisted as first-class platform records because task
5
11
  * content evolves independently of one execution snapshot. The execution link is
@@ -14,7 +20,7 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
14
20
  userId: z.ZodOptional<z.ZodString>;
15
21
  applicationId: z.ZodOptional<z.ZodString>;
16
22
  machineCredential: z.ZodOptional<z.ZodObject<{
17
- authMethod: z.ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>;
23
+ authMethod: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>>;
18
24
  credentialId: z.ZodString;
19
25
  }, z.core.$strip>>;
20
26
  consumableTokenId: z.ZodOptional<z.ZodString>;
@@ -23,6 +29,10 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
23
29
  inboundDeliveryId: z.ZodOptional<z.ZodString>;
24
30
  inboundHandlerRef: z.ZodOptional<z.ZodString>;
25
31
  inboundScopeUserId: z.ZodOptional<z.ZodString>;
32
+ decisionNoticeId: z.ZodOptional<z.ZodString>;
33
+ decisionNoticeHandlerRef: z.ZodOptional<z.ZodString>;
34
+ chatConversationId: z.ZodOptional<z.ZodString>;
35
+ chatReplyHandlerRef: z.ZodOptional<z.ZodString>;
26
36
  inboundSender: z.ZodOptional<z.ZodObject<{
27
37
  channel: z.ZodEnum<typeof import("@wildo-ai/saas-models").InboundChannelKind>;
28
38
  assurance: z.ZodEnum<typeof import("@wildo-ai/saas-models").InboundSenderAssurance>;
@@ -30,37 +40,37 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
30
40
  }, z.core.$strip>;
31
41
  relationships: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
32
42
  kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW>;
33
- relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
43
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
34
44
  flowId: z.ZodString;
35
45
  }, z.core.$strip>, z.ZodObject<{
36
46
  kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR>;
37
- relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
47
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
38
48
  actorId: z.ZodString;
39
49
  actorSystemId: z.ZodString;
40
50
  }, z.core.$strip>, z.ZodObject<{
41
51
  kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW_STEP>;
42
- relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
52
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
43
53
  flowId: z.ZodString;
44
54
  stepId: z.ZodString;
45
55
  }, z.core.$strip>, z.ZodObject<{
46
56
  kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.TASK>;
47
- relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
57
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
48
58
  taskId: z.ZodString;
49
59
  actorSystemId: z.ZodString;
50
60
  }, z.core.$strip>, z.ZodObject<{
51
61
  kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN>;
52
- relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
62
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
53
63
  planId: z.ZodString;
54
64
  actorSystemId: z.ZodString;
55
65
  }, z.core.$strip>, z.ZodObject<{
56
66
  kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN_STEP>;
57
- relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
67
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
58
68
  planId: z.ZodString;
59
69
  planStepId: z.ZodString;
60
70
  actorSystemId: z.ZodString;
61
71
  }, z.core.$strip>, z.ZodObject<{
62
72
  kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR_SYSTEM>;
63
- relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
73
+ relation: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>>;
64
74
  actorSystemId: z.ZodString;
65
75
  }, z.core.$strip>], "kind">>;
66
76
  actors: z.ZodObject<{
@@ -261,7 +271,7 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
261
271
  userId: z.ZodOptional<z.ZodString>;
262
272
  applicationId: z.ZodOptional<z.ZodString>;
263
273
  machineCredential: z.ZodOptional<z.ZodObject<{
264
- authMethod: z.ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>;
274
+ authMethod: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>>;
265
275
  credentialId: z.ZodString;
266
276
  }, z.core.$strip>>;
267
277
  consumableTokenId: z.ZodOptional<z.ZodString>;
@@ -270,12 +280,16 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
270
280
  inboundDeliveryId: z.ZodOptional<z.ZodString>;
271
281
  inboundHandlerRef: z.ZodOptional<z.ZodString>;
272
282
  inboundScopeUserId: z.ZodOptional<z.ZodString>;
283
+ decisionNoticeId: z.ZodOptional<z.ZodString>;
284
+ decisionNoticeHandlerRef: z.ZodOptional<z.ZodString>;
285
+ chatConversationId: z.ZodOptional<z.ZodString>;
286
+ chatReplyHandlerRef: z.ZodOptional<z.ZodString>;
273
287
  inboundSender: z.ZodOptional<z.ZodObject<{
274
288
  channel: z.ZodEnum<typeof import("@wildo-ai/saas-models").InboundChannelKind>;
275
289
  assurance: z.ZodEnum<typeof import("@wildo-ai/saas-models").InboundSenderAssurance>;
276
290
  }, z.core.$strict>>;
277
291
  }, z.core.$strip>>>;
278
- executionType: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").ExecutionContext_ExecutionType>>;
292
+ executionType: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").ExecutionContext_ExecutionType>>>;
279
293
  userGuidance: z.ZodOptional<z.ZodObject<{
280
294
  guidanceKey: z.ZodOptional<z.ZodString>;
281
295
  explanation: z.ZodOptional<z.ZodString>;
@@ -290,6 +304,7 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
290
304
  retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
291
305
  missingConfiguration: z.ZodOptional<z.ZodArray<z.ZodString>>;
292
306
  }, z.core.$strip>>;
307
+ requestOutcome: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorRequestOutcome>>;
293
308
  actorRef: z.ZodString;
294
309
  }, z.core.$strip>>>;
295
310
  checkpointChecks: z.ZodArray<z.ZodObject<{
@@ -340,16 +355,17 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
340
355
  context: z.ZodOptional<z.ZodAny>;
341
356
  }, z.core.$strip>>>;
342
357
  }, z.core.$strip>>;
343
- createdAt: z.ZodString;
344
- startedAt: z.ZodOptional<z.ZodString>;
345
- completedAt: z.ZodOptional<z.ZodString>;
346
358
  _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>;
347
359
  organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>>;
348
360
  wildoApplicationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>>;
349
361
  wildoApplicationActorSystemExecutionId: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>;
350
362
  title: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>;
351
363
  status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof FlowsActors_Status>>>>;
352
- updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>;
364
+ createdAt: z.ZodDate;
365
+ updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodDate>;
366
+ startedAt: z.ZodOptional<z.ZodDate>;
367
+ completedAt: z.ZodOptional<z.ZodDate>;
368
+ userNames: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
353
369
  }, z.core.$strip>;
354
370
  export type Wildo_Application_Actor_Task = z.infer<typeof Wildo_Application_Actor_Task_Schema>;
355
371
  //# sourceMappingURL=wildo-application-tasks.custom.shared.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-tasks.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAK/B;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqC9C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"wildo-application-tasks.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,kBAAkB,EAElB,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAM/B;;;;GAIG;AACH,eAAO,MAAM,yCAAyC,EAAE,SAAS,gBAAgB,EAA2C,CAAC;AAE7H;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsD9C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -1,7 +1,14 @@
1
1
  import { z } from 'zod';
2
- import { Actors_Task_Schema, FlowsActors_Status, } from '@wildo-ai/saas-models';
2
+ import { Actors_Task_Schema, FlowsActors_Status, forwardedUserNameDirectory, } from '@wildo-ai/saas-models';
3
3
  import { initZodDecorators } from '@wildo-ai/zod-decorators';
4
+ import { RUN_RECORD_INITIATOR_PERSON_PATHS } from '../wildo-application-executions/wildo-application-executions.custom.shared.schemas.js';
4
5
  initZodDecorators(z);
6
+ /**
7
+ * Every place an actor task's schema types a PERSON by user id below its top level (#2823): its initiators (who started
8
+ * it, and whose request each error item records). Named by the task's `userNames`. Not walked, because they are not
9
+ * typed: its `input`, `output` and `memory`. Not people: its correlation refs and relationships.
10
+ */
11
+ export const WILDO_APPLICATION_ACTOR_TASK_PERSON_PATHS = [...RUN_RECORD_INITIATOR_PERSON_PATHS];
5
12
  /**
6
13
  * Actor-flow tasks are persisted as first-class platform records because task
7
14
  * content evolves independently of one execution snapshot. The execution link is
@@ -44,6 +51,23 @@ export const Wildo_Application_Actor_Task_Schema = Actors_Task_Schema.extend({
44
51
  */
45
52
  title: z.string().min(1).isSummaryField(),
46
53
  status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),
47
- updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }).isDBIndexed(),
54
+ /*
55
+ * The task's instants are DATES on the persisted row (#2187), not the canonical `Actors_Task_Schema`'s
56
+ * ISO strings: a string plans `text`, which the platform filled with local-offset values whose order
57
+ * breaks across a daylight-saving change. As dates they plan `timestamptz`. The wire keeps strings;
58
+ * the companion converts at its persistence boundary. See the execution schemas for the measurement.
59
+ */
60
+ createdAt: z.date(),
61
+ updatedAt: z.date().isDBIndexed(),
62
+ startedAt: z.date().optional(),
63
+ completedAt: z.date().optional(),
64
+ /**
65
+ * The people this task records, by name (#2823), at {@link WILDO_APPLICATION_ACTOR_TASK_PERSON_PATHS}: user id →
66
+ * their profile's first and last name. Virtual: resolved when the task is read, never stored (no column, no
67
+ * migration), no email fallback; an erased person reads as their profile now does. Told to whoever may read the task
68
+ * (a member of the organization that owns it), about the companion's operators of this application. Not a summary
69
+ * field: only the task's own page shows who started it.
70
+ */
71
+ userNames: forwardedUserNameDirectory({ paths: WILDO_APPLICATION_ACTOR_TASK_PERSON_PATHS }),
48
72
  });
49
73
  //# sourceMappingURL=wildo-application-tasks.custom.shared.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-application-tasks.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAC3E,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE;IACtD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAC5F,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAChG,sCAAsC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE;IAC1F;;;;;;;;;;;OAWG;IACH;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE;IACzC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;IAClG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC,CAAC,WAAW,EAAE;CACnH,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n Actors_Task_Schema,\n FlowsActors_Status,\n} from '@wildo-ai/saas-models';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\n\ninitZodDecorators(z);\n\n/**\n * Actor-flow tasks are persisted as first-class platform records because task\n * content evolves independently of one execution snapshot. The execution link is\n * optional/updateable so tasks can outlive a specific run while still being\n * queryable from the current actor-system follow-up record.\n */\nexport const Wildo_Application_Actor_Task_Schema = Actors_Task_Schema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationActorSystemExecutionId: z.string().isDBIndexed().isForeignKey().optional(),\n /*\n * `continuityAttemptKey` was here until 2026-09-19 (#1337), described as the \"server-managed\n * physical-attempt identity for continuity-bound Tasks\" and carrying a sparse unique\n * `(wildoApplicationId, continuityAttemptKey)` index as a database backstop against concurrent\n * creation of one Execution-Binding attempt.\n *\n * Execution bindings were demolished on 2026-08-23, and the field was measured to have ZERO\n * writers anywhere — so every application was materializing a unique index, on every actor-task\n * table, for a column that is always null, and the workbench rendered an always-empty field as a\n * machine identity. Removed with its index, its UI field, its label, its interface member and\n * the test that pinned the index shape.\n */\n /*\n * `workbenchBuildPlanTaskId` was here until 2026-09-20 (#1348) — a foreign key from the GENERIC\n * platform actor-task row into an app-creation workbench resource, and the last app-creation\n * field on this row.\n *\n * It is not folded away, it is MOVED: the association now travels in the engine's own\n * `Actors_Task_Context.correlation` envelope as\n * `{ domain: 'application-creation', refs: { buildPlanTaskRef } }`, which is durable on this same\n * row and says nothing about what a build-plan task is. The traversable edge moved with it, to\n * the plane that owns the vocabulary: `Workbench_BuildDispatch.codingTaskId` already pointed at\n * this row and is now a DECLARED relationship.\n *\n * What that cost, recorded because it was the objection to folding: this row no longer renders\n * the build-plan task as a summary field, and no longer declares the edge from its own side.\n * Nothing queried the column — measured across the companion before removing it — so the loss is\n * a rendered field on the generic row, which is the thing that should not have been here.\n */\n title: z.string().min(1).isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }).isDBIndexed(),\n});\nexport type Wildo_Application_Actor_Task = z.infer<typeof Wildo_Application_Actor_Task_Schema>;\n"]}
1
+ {"version":3,"file":"wildo-application-tasks.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.ts"],"names":[],"mappings":"AAA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E,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE;IACjC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC9B,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAChC;;;;;;OAMG;IACH,SAAS,EAAE,0BAA0B,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC;CAC5F,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n Actors_Task_Schema,\n FlowsActors_Status,\n forwardedUserNameDirectory,\n type NestedUserIdPath,\n} from '@wildo-ai/saas-models';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\nimport { RUN_RECORD_INITIATOR_PERSON_PATHS } from '../wildo-application-executions/wildo-application-executions.custom.shared.schemas';\n\ninitZodDecorators(z);\n\n/**\n * Every place an actor task's schema types a PERSON by user id below its top level (#2823): its initiators (who started\n * it, and whose request each error item records). Named by the task's `userNames`. Not walked, because they are not\n * typed: its `input`, `output` and `memory`. Not people: its correlation refs and relationships.\n */\nexport const WILDO_APPLICATION_ACTOR_TASK_PERSON_PATHS: readonly NestedUserIdPath[] = [...RUN_RECORD_INITIATOR_PERSON_PATHS];\n\n/**\n * Actor-flow tasks are persisted as first-class platform records because task\n * content evolves independently of one execution snapshot. The execution link is\n * optional/updateable so tasks can outlive a specific run while still being\n * queryable from the current actor-system follow-up record.\n */\nexport const Wildo_Application_Actor_Task_Schema = Actors_Task_Schema.extend({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n wildoApplicationActorSystemExecutionId: z.string().isDBIndexed().isForeignKey().optional(),\n /*\n * `continuityAttemptKey` was here until 2026-09-19 (#1337), described as the \"server-managed\n * physical-attempt identity for continuity-bound Tasks\" and carrying a sparse unique\n * `(wildoApplicationId, continuityAttemptKey)` index as a database backstop against concurrent\n * creation of one Execution-Binding attempt.\n *\n * Execution bindings were demolished on 2026-08-23, and the field was measured to have ZERO\n * writers anywhere — so every application was materializing a unique index, on every actor-task\n * table, for a column that is always null, and the workbench rendered an always-empty field as a\n * machine identity. Removed with its index, its UI field, its label, its interface member and\n * the test that pinned the index shape.\n */\n /*\n * `workbenchBuildPlanTaskId` was here until 2026-09-20 (#1348) — a foreign key from the GENERIC\n * platform actor-task row into an app-creation workbench resource, and the last app-creation\n * field on this row.\n *\n * It is not folded away, it is MOVED: the association now travels in the engine's own\n * `Actors_Task_Context.correlation` envelope as\n * `{ domain: 'application-creation', refs: { buildPlanTaskRef } }`, which is durable on this same\n * row and says nothing about what a build-plan task is. The traversable edge moved with it, to\n * the plane that owns the vocabulary: `Workbench_BuildDispatch.codingTaskId` already pointed at\n * this row and is now a DECLARED relationship.\n *\n * What that cost, recorded because it was the objection to folding: this row no longer renders\n * the build-plan task as a summary field, and no longer declares the edge from its own side.\n * Nothing queried the column — measured across the companion before removing it — so the loss is\n * a rendered field on the generic row, which is the thing that should not have been here.\n */\n title: z.string().min(1).isSummaryField(),\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),\n /*\n * The task's instants are DATES on the persisted row (#2187), not the canonical `Actors_Task_Schema`'s\n * ISO strings: a string plans `text`, which the platform filled with local-offset values whose order\n * breaks across a daylight-saving change. As dates they plan `timestamptz`. The wire keeps strings;\n * the companion converts at its persistence boundary. See the execution schemas for the measurement.\n */\n createdAt: z.date(),\n updatedAt: z.date().isDBIndexed(),\n startedAt: z.date().optional(),\n completedAt: z.date().optional(),\n /**\n * The people this task records, by name (#2823), at {@link WILDO_APPLICATION_ACTOR_TASK_PERSON_PATHS}: user id →\n * their profile's first and last name. Virtual: resolved when the task is read, never stored (no column, no\n * migration), no email fallback; an erased person reads as their profile now does. Told to whoever may read the task\n * (a member of the organization that owns it), about the companion's operators of this application. Not a summary\n * field: only the task's own page shows who started it.\n */\n userNames: forwardedUserNameDirectory({ paths: WILDO_APPLICATION_ACTOR_TASK_PERSON_PATHS }),\n});\nexport type Wildo_Application_Actor_Task = z.infer<typeof Wildo_Application_Actor_Task_Schema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-applications.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA6BH,eAAO,MAAM,6DAA6D,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAkJ9F,CAAC"}
1
+ {"version":3,"file":"wildo-applications.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA6BH,eAAO,MAAM,6DAA6D,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAkJ9F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-applications.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-applications/wildo-applications.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;;;;;;;;;;;GAYG;AACH,oBAAY,sBAAsB;IAChC,yGAAyG;IACzG,MAAM,WAAW;IAEjB;;;;;;;;OAQG;IACH,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBA0EnC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"wildo-applications.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-applications/wildo-applications.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;;;;;;;;;;;GAYG;AACH,oBAAY,sBAAsB;IAChC,yGAAyG;IACzG,MAAM,WAAW;IAEjB;;;;;;;;OAQG;IACH,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBA0EnC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-applications-versions.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH,eAAO,MAAM,oEAAoE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAwErG,CAAC"}
1
+ {"version":3,"file":"wildo-applications-versions.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH,eAAO,MAAM,oEAAoE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAwErG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-applications-versions.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC;;;;;;;;iBAQ3C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
1
+ {"version":3,"file":"wildo-applications-versions.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC;;;;;;;;iBAQ3C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"workbench-aspect-resources.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/workbench/workbench-aspect-resources.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EAMrB,oBAAoB,EAKrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mDAAmD,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;GAOG;AACH,oBAAY,2BAA2B;IACrC,mFAAmF;IACnF,YAAY,iBAAiB;IAC7B,8DAA8D;IAC9D,SAAS,cAAc;IACvB,gGAAgG;IAChG,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC5C,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,4BAA4B,CAAC;IACpD,0EAA0E;IAC1E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,SAAS,6BAA6B,EAAE,CAAC;CAC1D;AAED,eAAO,MAAM,4BAA4B,EAAE,SAAS,yBAAyB,EAo2B5E,CAAC;AAMF,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS,CAErG;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,yBAAyB,GACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAuC5B;AAED,KAAK,8BAA8B,GAAG,qBAAqB,CAAC,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC;AAE9F;;;;;GAKG;AACH,wBAAgB,wCAAwC,CAAC,UAAU,EAAE,yBAAyB,IAEpF,wBAAwB,oBAAoB,EAAE;;oBA6BvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,IAAI,oBAAoB,EAAE,CA8D1E;AAED,mGAAmG;AACnG,eAAO,MAAM,iDAAiD,EAAE,MAAM,CACpE,MAAM,EACN,UAAU,CAAC,OAAO,wCAAwC,CAAC,CAM5D,CAAC"}
1
+ {"version":3,"file":"workbench-aspect-resources.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/workbench/workbench-aspect-resources.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EAMrB,oBAAoB,EAKrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mDAAmD,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;GAOG;AACH,oBAAY,2BAA2B;IACrC,mFAAmF;IACnF,YAAY,iBAAiB;IAC7B,8DAA8D;IAC9D,SAAS,cAAc;IACvB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AAwC,CAAC,CAM5D,CAAC"}
@@ -731,6 +731,36 @@ export const WORKBENCH_ASPECT_DESCRIPTORS = [
731
731
  { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },
732
732
  ],
733
733
  },
734
+ {
735
+ /*
736
+ * One service of the firm (#2305): its case, stages, steps, decisions, deliverables, retention and pricing. Its one
737
+ * spine edge is to the qualifications its decisions are routed to; the domain-plan resources it names are not edges
738
+ * here, because the domain plan is derived from the method and does not exist when it is written.
739
+ */
740
+ aspectKey: 'service-method.service',
741
+ resourceType: WorkbenchShared_ResourceType.ASPECT_SERVICE_METHOD_SERVICE,
742
+ rowsPath: 'serviceMethodServices',
743
+ identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,
744
+ edges: [
745
+ { field: 'serviceMethodQualificationIds', targetAspectKey: 'service-method.qualification', many: true },
746
+ ],
747
+ },
748
+ {
749
+ /* Who may be trusted with a decision: a role, and a professional qualification when the person must hold one. */
750
+ aspectKey: 'service-method.qualification',
751
+ resourceType: WorkbenchShared_ResourceType.ASPECT_SERVICE_METHOD_QUALIFICATION,
752
+ rowsPath: 'serviceMethodQualifications',
753
+ identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,
754
+ edges: [],
755
+ },
756
+ {
757
+ /* Why an expert corrects an agent's work, recorded with each correction. */
758
+ aspectKey: 'service-method.correction-reason',
759
+ resourceType: WorkbenchShared_ResourceType.ASPECT_SERVICE_METHOD_CORRECTION_REASON,
760
+ rowsPath: 'serviceMethodCorrectionReasons',
761
+ identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,
762
+ edges: [],
763
+ },
734
764
  {
735
765
  /*
736
766
  * One requirement's standing (#1496), and the aspect that carries BOTH multi-edge shapes at