@wildo-ai/platform-core-shared 1.0.1 → 1.1.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.
Files changed (77) hide show
  1. package/LICENSE +34 -0
  2. package/dist/esm/.builder.pid +9 -0
  3. package/dist/esm/core/resources/resources-operations.custom.shared.definitions.d.ts +1 -1
  4. package/dist/esm/core/resources/resources-operations.custom.shared.definitions.d.ts.map +1 -1
  5. package/dist/esm/core/resources/resources-operations.custom.shared.definitions.js +6 -1
  6. package/dist/esm/core/resources/resources-operations.custom.shared.definitions.js.map +1 -1
  7. package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.d.ts +20 -0
  8. package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.d.ts.map +1 -1
  9. package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.js +93 -3
  10. package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.js.map +1 -1
  11. package/dist/esm/core/resources/resources-types.custom.shared.schemas.d.ts +4 -1
  12. package/dist/esm/core/resources/resources-types.custom.shared.schemas.d.ts.map +1 -1
  13. package/dist/esm/core/resources/resources-types.custom.shared.schemas.js +7 -1
  14. package/dist/esm/core/resources/resources-types.custom.shared.schemas.js.map +1 -1
  15. package/dist/esm/index.d.ts +14 -8
  16. package/dist/esm/index.d.ts.map +1 -1
  17. package/dist/esm/index.js +16 -1
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/runtime/application-backend-env.contracts.d.ts +212 -15
  20. package/dist/esm/runtime/application-backend-env.contracts.d.ts.map +1 -1
  21. package/dist/esm/runtime/application-backend-env.contracts.js +256 -20
  22. package/dist/esm/runtime/application-backend-env.contracts.js.map +1 -1
  23. package/dist/esm/runtime/application-worker-env.contracts.d.ts +82 -0
  24. package/dist/esm/runtime/application-worker-env.contracts.d.ts.map +1 -0
  25. package/dist/esm/runtime/application-worker-env.contracts.js +106 -0
  26. package/dist/esm/runtime/application-worker-env.contracts.js.map +1 -0
  27. package/dist/esm/runtime/runtime-topology.contracts.d.ts +10 -3
  28. package/dist/esm/runtime/runtime-topology.contracts.d.ts.map +1 -1
  29. package/dist/esm/runtime/runtime-topology.contracts.js +8 -5
  30. package/dist/esm/runtime/runtime-topology.contracts.js.map +1 -1
  31. package/dist/esm/security/authorizations/roles.custom.shared.definitions.d.ts.map +1 -1
  32. package/dist/esm/security/authorizations/roles.custom.shared.definitions.js +1 -1
  33. package/dist/esm/security/authorizations/roles.custom.shared.definitions.js.map +1 -1
  34. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts +830 -0
  35. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts.map +1 -0
  36. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.js +58 -0
  37. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.js.map +1 -0
  38. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts +834 -0
  39. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts.map +1 -0
  40. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js +27 -0
  41. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js.map +1 -0
  42. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts +342 -0
  43. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map +1 -0
  44. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.js +38 -0
  45. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.js.map +1 -0
  46. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts +343 -0
  47. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map +1 -0
  48. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js +38 -0
  49. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js.map +1 -0
  50. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.d.ts.map +1 -1
  51. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.js +30 -1
  52. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.js.map +1 -1
  53. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts +2 -2
  54. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts.map +1 -1
  55. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js +35 -2
  56. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js.map +1 -1
  57. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.d.ts.map +1 -1
  58. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.js +1 -1
  59. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.js.map +1 -1
  60. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.d.ts +1 -1
  61. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.d.ts.map +1 -1
  62. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.js +1 -1
  63. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.js.map +1 -1
  64. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts +38 -0
  65. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts.map +1 -0
  66. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js +40 -0
  67. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js.map +1 -0
  68. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts +79 -0
  69. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts.map +1 -0
  70. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js +177 -0
  71. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js.map +1 -0
  72. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts +65 -0
  73. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts.map +1 -0
  74. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js +111 -0
  75. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js.map +1 -0
  76. package/dist/tsconfig.build.tsbuildinfo +1 -1
  77. package/package.json +21 -15
@@ -0,0 +1,343 @@
1
+ import { z } from 'zod';
2
+ import { FlowsActors_Status } from '@wildo-ai/saas-models';
3
+ /**
4
+ * Actor-flow tasks are persisted as first-class platform records because task
5
+ * content evolves independently of one execution snapshot. The execution link is
6
+ * optional/updateable so tasks can outlive a specific run while still being
7
+ * queryable from the current actor-system follow-up record.
8
+ */
9
+ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
10
+ description: z.ZodString;
11
+ topic: z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>;
12
+ initiator: z.ZodObject<{
13
+ organizationId: z.ZodOptional<z.ZodString>;
14
+ userId: z.ZodOptional<z.ZodString>;
15
+ applicationId: z.ZodOptional<z.ZodString>;
16
+ machineCredential: z.ZodOptional<z.ZodObject<{
17
+ authMethod: z.ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>;
18
+ credentialId: z.ZodString;
19
+ }, z.core.$strip>>;
20
+ consumableTokenId: z.ZodOptional<z.ZodString>;
21
+ webhookProviderId: z.ZodOptional<z.ZodString>;
22
+ anonymousUserId: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ relationships: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
25
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW>;
26
+ relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
27
+ flowId: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR>;
30
+ relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
31
+ actorId: z.ZodString;
32
+ actorSystemId: z.ZodString;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW_STEP>;
35
+ relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
36
+ flowId: z.ZodString;
37
+ stepId: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.TASK>;
40
+ relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
41
+ taskId: z.ZodString;
42
+ actorSystemId: z.ZodString;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN>;
45
+ relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
46
+ planId: z.ZodString;
47
+ actorSystemId: z.ZodString;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN_STEP>;
50
+ relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
51
+ planId: z.ZodString;
52
+ planStepId: z.ZodString;
53
+ actorSystemId: z.ZodString;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR_SYSTEM>;
56
+ relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
57
+ actorSystemId: z.ZodString;
58
+ }, z.core.$strip>], "kind">>;
59
+ actors: z.ZodObject<{
60
+ actorRef: z.ZodString;
61
+ }, z.core.$strip>;
62
+ input: z.ZodAny;
63
+ output: z.ZodOptional<z.ZodAny>;
64
+ memory: z.ZodObject<{
65
+ shortTerm: z.ZodObject<{
66
+ entries: z.ZodArray<z.ZodObject<{
67
+ key: z.ZodString;
68
+ value: z.ZodAny;
69
+ type: z.ZodEnum<{
70
+ json: "json";
71
+ text: "text";
72
+ binary: "binary";
73
+ }>;
74
+ timestamp: z.ZodString;
75
+ expiresAt: z.ZodOptional<z.ZodString>;
76
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
77
+ }, z.core.$strip>>;
78
+ maxSize: z.ZodOptional<z.ZodNumber>;
79
+ ttl: z.ZodOptional<z.ZodNumber>;
80
+ }, z.core.$strip>;
81
+ longTerm: z.ZodObject<{
82
+ entries: z.ZodArray<z.ZodObject<{
83
+ key: z.ZodString;
84
+ value: z.ZodAny;
85
+ type: z.ZodEnum<{
86
+ json: "json";
87
+ text: "text";
88
+ binary: "binary";
89
+ }>;
90
+ timestamp: z.ZodString;
91
+ expiresAt: z.ZodOptional<z.ZodString>;
92
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
93
+ }, z.core.$strip>>;
94
+ maxSize: z.ZodOptional<z.ZodNumber>;
95
+ ttl: z.ZodOptional<z.ZodNumber>;
96
+ }, z.core.$strip>;
97
+ working: z.ZodObject<{
98
+ entries: z.ZodArray<z.ZodObject<{
99
+ key: z.ZodString;
100
+ value: z.ZodAny;
101
+ type: z.ZodEnum<{
102
+ json: "json";
103
+ text: "text";
104
+ binary: "binary";
105
+ }>;
106
+ timestamp: z.ZodString;
107
+ expiresAt: z.ZodOptional<z.ZodString>;
108
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ }, z.core.$strip>>;
110
+ maxSize: z.ZodOptional<z.ZodNumber>;
111
+ ttl: z.ZodOptional<z.ZodNumber>;
112
+ }, z.core.$strip>;
113
+ }, z.core.$strip>;
114
+ context: z.ZodObject<{
115
+ journeyId: z.ZodOptional<z.ZodString>;
116
+ playbookRef: z.ZodOptional<z.ZodString>;
117
+ playbookVersion: z.ZodOptional<z.ZodString>;
118
+ playbookRunId: z.ZodOptional<z.ZodString>;
119
+ stepRef: z.ZodOptional<z.ZodString>;
120
+ }, z.core.$strip>;
121
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
122
+ ref: z.ZodString;
123
+ definitionRef: z.ZodOptional<z.ZodString>;
124
+ name: z.ZodString;
125
+ description: z.ZodOptional<z.ZodString>;
126
+ origin: z.ZodObject<{
127
+ taskId: z.ZodOptional<z.ZodString>;
128
+ stepId: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strip>;
130
+ createdAt: z.ZodString;
131
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
132
+ type: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_IO_PartKind.TEXT>;
133
+ content: z.ZodObject<{
134
+ mimeType: z.ZodOptional<z.ZodString>;
135
+ size: z.ZodOptional<z.ZodNumber>;
136
+ checksum: z.ZodOptional<z.ZodString>;
137
+ text: z.ZodString;
138
+ }, z.core.$strip>;
139
+ }, z.core.$strip>, z.ZodObject<{
140
+ ref: z.ZodString;
141
+ definitionRef: z.ZodOptional<z.ZodString>;
142
+ name: z.ZodString;
143
+ description: z.ZodOptional<z.ZodString>;
144
+ origin: z.ZodObject<{
145
+ taskId: z.ZodOptional<z.ZodString>;
146
+ stepId: z.ZodOptional<z.ZodString>;
147
+ }, z.core.$strip>;
148
+ createdAt: z.ZodString;
149
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
150
+ type: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_IO_PartKind.FILE>;
151
+ content: z.ZodObject<{
152
+ mimeType: z.ZodOptional<z.ZodString>;
153
+ size: z.ZodOptional<z.ZodNumber>;
154
+ checksum: z.ZodOptional<z.ZodString>;
155
+ storage: z.ZodObject<{
156
+ data: z.ZodOptional<z.ZodString>;
157
+ url: z.ZodOptional<z.ZodString>;
158
+ path: z.ZodOptional<z.ZodString>;
159
+ }, z.core.$strip>;
160
+ }, z.core.$strip>;
161
+ }, z.core.$strip>, z.ZodObject<{
162
+ ref: z.ZodString;
163
+ definitionRef: z.ZodOptional<z.ZodString>;
164
+ name: z.ZodString;
165
+ description: z.ZodOptional<z.ZodString>;
166
+ origin: z.ZodObject<{
167
+ taskId: z.ZodOptional<z.ZodString>;
168
+ stepId: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$strip>;
170
+ createdAt: z.ZodString;
171
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
172
+ type: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_IO_PartKind.RAW_DATA>;
173
+ content: z.ZodObject<{
174
+ mimeType: z.ZodOptional<z.ZodString>;
175
+ size: z.ZodOptional<z.ZodNumber>;
176
+ checksum: z.ZodOptional<z.ZodString>;
177
+ data: z.ZodAny;
178
+ }, z.core.$strip>;
179
+ }, z.core.$strip>, z.ZodObject<{
180
+ ref: z.ZodString;
181
+ definitionRef: z.ZodOptional<z.ZodString>;
182
+ name: z.ZodString;
183
+ description: z.ZodOptional<z.ZodString>;
184
+ origin: z.ZodObject<{
185
+ taskId: z.ZodOptional<z.ZodString>;
186
+ stepId: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strip>;
188
+ createdAt: z.ZodString;
189
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
190
+ type: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_IO_PartKind.STRUCTURED>;
191
+ content: z.ZodObject<{
192
+ mimeType: z.ZodOptional<z.ZodString>;
193
+ size: z.ZodOptional<z.ZodNumber>;
194
+ checksum: z.ZodOptional<z.ZodString>;
195
+ data: z.ZodAny;
196
+ }, z.core.$strip>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ ref: z.ZodString;
199
+ definitionRef: z.ZodOptional<z.ZodString>;
200
+ name: z.ZodString;
201
+ description: z.ZodOptional<z.ZodString>;
202
+ origin: z.ZodObject<{
203
+ taskId: z.ZodOptional<z.ZodString>;
204
+ stepId: z.ZodOptional<z.ZodString>;
205
+ }, z.core.$strip>;
206
+ createdAt: z.ZodString;
207
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
208
+ type: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_IO_PartKind.IMAGE>;
209
+ content: z.ZodObject<{
210
+ mimeType: z.ZodOptional<z.ZodString>;
211
+ size: z.ZodOptional<z.ZodNumber>;
212
+ checksum: z.ZodOptional<z.ZodString>;
213
+ storage: z.ZodObject<{
214
+ data: z.ZodOptional<z.ZodString>;
215
+ url: z.ZodOptional<z.ZodString>;
216
+ path: z.ZodOptional<z.ZodString>;
217
+ }, z.core.$strip>;
218
+ width: z.ZodOptional<z.ZodNumber>;
219
+ height: z.ZodOptional<z.ZodNumber>;
220
+ }, z.core.$strip>;
221
+ }, z.core.$strip>], "type">>>;
222
+ actorStates: z.ZodArray<z.ZodObject<{
223
+ actorRef: z.ZodString;
224
+ status: z.ZodEnum<typeof FlowsActors_Status>;
225
+ updatedAt: z.ZodString;
226
+ statusChanges: z.ZodArray<z.ZodObject<{
227
+ status: z.ZodEnum<typeof FlowsActors_Status>;
228
+ timestamp: z.ZodString;
229
+ }, z.core.$strip>>;
230
+ }, z.core.$strip>>;
231
+ errorStates: z.ZodOptional<z.ZodObject<{
232
+ circuitBreakerStatus: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_CircuitBreaker_Status>>;
233
+ errorItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
234
+ type: z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorType>;
235
+ severity: z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorSeverity>;
236
+ operationPathKey: z.ZodOptional<z.ZodString>;
237
+ timestamp: z.ZodDate;
238
+ context: z.ZodOptional<z.ZodObject<{
239
+ message: z.ZodOptional<z.ZodString>;
240
+ }, z.core.$catchall<z.ZodAny>>>;
241
+ ipAddress: z.ZodOptional<z.ZodString>;
242
+ errorHandlingStrategy: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorHandling_Strategy>>;
243
+ retryPolicy: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").RetryPolicy_BackoffType>>;
244
+ maxRetries: z.ZodOptional<z.ZodNumber>;
245
+ initialDelay: z.ZodOptional<z.ZodNumber>;
246
+ baseDelay: z.ZodOptional<z.ZodNumber>;
247
+ retryCount: z.ZodOptional<z.ZodNumber>;
248
+ lastRetryTime: z.ZodOptional<z.ZodDate>;
249
+ backendActions: z.ZodArray<z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorActionBackend>>;
250
+ customMessageReference: z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorCustomMessageReference>;
251
+ statusCode: z.ZodNumber;
252
+ stack: z.ZodOptional<z.ZodString>;
253
+ correlationId: z.ZodOptional<z.ZodString>;
254
+ initiatorIds: z.ZodNullable<z.ZodOptional<z.ZodObject<{
255
+ organizationId: z.ZodOptional<z.ZodString>;
256
+ userId: z.ZodOptional<z.ZodString>;
257
+ applicationId: z.ZodOptional<z.ZodString>;
258
+ machineCredential: z.ZodOptional<z.ZodObject<{
259
+ authMethod: z.ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>;
260
+ credentialId: z.ZodString;
261
+ }, z.core.$strip>>;
262
+ consumableTokenId: z.ZodOptional<z.ZodString>;
263
+ webhookProviderId: z.ZodOptional<z.ZodString>;
264
+ anonymousUserId: z.ZodOptional<z.ZodString>;
265
+ }, z.core.$strip>>>;
266
+ executionType: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").ExecutionContext_ExecutionType>>;
267
+ userGuidance: z.ZodOptional<z.ZodObject<{
268
+ guidanceKey: z.ZodOptional<z.ZodString>;
269
+ explanation: z.ZodOptional<z.ZodString>;
270
+ resolution: z.ZodOptional<z.ZodString>;
271
+ completedSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
272
+ nextAction: z.ZodOptional<z.ZodObject<{
273
+ label: z.ZodString;
274
+ ref: z.ZodString;
275
+ type: z.ZodDefault<z.ZodEnum<typeof import("@wildo-ai/saas-models").NotificationNextStepType>>;
276
+ }, z.core.$strip>>;
277
+ retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
278
+ missingConfiguration: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
+ }, z.core.$strip>>;
280
+ actorRef: z.ZodString;
281
+ }, z.core.$strip>>>;
282
+ checkpointChecks: z.ZodArray<z.ZodObject<{
283
+ checkpoint: z.ZodObject<{
284
+ point: z.ZodDiscriminatedUnion<[z.ZodObject<{
285
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR>;
286
+ actorId: z.ZodString;
287
+ actorSystemId: z.ZodString;
288
+ }, z.core.$strip>, z.ZodObject<{
289
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW_STEP>;
290
+ flowId: z.ZodString;
291
+ stepId: z.ZodString;
292
+ }, z.core.$strip>, z.ZodObject<{
293
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.TASK>;
294
+ taskId: z.ZodString;
295
+ actorSystemId: z.ZodString;
296
+ }, z.core.$strip>, z.ZodObject<{
297
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN_STEP>;
298
+ planId: z.ZodString;
299
+ planStepId: z.ZodString;
300
+ actorSystemId: z.ZodString;
301
+ }, z.core.$strip>], "kind">;
302
+ timestamp: z.ZodString;
303
+ context: z.ZodOptional<z.ZodAny>;
304
+ }, z.core.$strip>;
305
+ timestamp: z.ZodString;
306
+ }, z.core.$strip>>;
307
+ availableCheckpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
308
+ point: z.ZodDiscriminatedUnion<[z.ZodObject<{
309
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR>;
310
+ actorId: z.ZodString;
311
+ actorSystemId: z.ZodString;
312
+ }, z.core.$strip>, z.ZodObject<{
313
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW_STEP>;
314
+ flowId: z.ZodString;
315
+ stepId: z.ZodString;
316
+ }, z.core.$strip>, z.ZodObject<{
317
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.TASK>;
318
+ taskId: z.ZodString;
319
+ actorSystemId: z.ZodString;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN_STEP>;
322
+ planId: z.ZodString;
323
+ planStepId: z.ZodString;
324
+ actorSystemId: z.ZodString;
325
+ }, z.core.$strip>], "kind">;
326
+ timestamp: z.ZodString;
327
+ context: z.ZodOptional<z.ZodAny>;
328
+ }, z.core.$strip>>>;
329
+ }, z.core.$strip>>;
330
+ createdAt: z.ZodString;
331
+ startedAt: z.ZodOptional<z.ZodString>;
332
+ completedAt: z.ZodOptional<z.ZodString>;
333
+ _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>;
334
+ 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>>>>;
335
+ 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>>>>;
336
+ wildoApplicationActorSystemExecutionId: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>;
337
+ continuityAttemptKey: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>;
338
+ title: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>;
339
+ status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof FlowsActors_Status>>>;
340
+ updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>;
341
+ }, z.core.$strip>;
342
+ export type Wildo_Application_Actor_Task = z.infer<typeof Wildo_Application_Actor_Task_Schema>;
343
+ //# sourceMappingURL=wildo-application-tasks.custom.shared.schemas.d.ts.map
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0B9C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+ import { Actors_Task_Schema, FlowsActors_Status, } from '@wildo-ai/saas-models';
3
+ import { initZodDecorators } from '@wildo-ai/zod-decorators';
4
+ initZodDecorators(z);
5
+ /**
6
+ * Actor-flow tasks are persisted as first-class platform records because task
7
+ * content evolves independently of one execution snapshot. The execution link is
8
+ * optional/updateable so tasks can outlive a specific run while still being
9
+ * queryable from the current actor-system follow-up record.
10
+ */
11
+ export const Wildo_Application_Actor_Task_Schema = Actors_Task_Schema.extend({
12
+ _id: z.string().min(1).isPrimaryKey().isSummaryField(),
13
+ organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
14
+ wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
15
+ wildoApplicationActorSystemExecutionId: z.string().isDBIndexed().isForeignKey().optional(),
16
+ /**
17
+ * Server-managed physical-attempt identity for continuity-bound Tasks.
18
+ *
19
+ * `compoundWith` produces the required sparse unique
20
+ * `(wildoApplicationId, continuityAttemptKey)` index: legacy/unbound Tasks
21
+ * remain outside the index, while concurrent creation of one exact
22
+ * Execution-Binding attempt has a database backstop. Retry receives a new
23
+ * key and Task; this field is never rewritten in place.
24
+ */
25
+ continuityAttemptKey: z
26
+ .string()
27
+ .min(1)
28
+ .isUnique({
29
+ compoundWith: 'wildoApplicationId',
30
+ sparse: true,
31
+ })
32
+ .excludeFromUpdate()
33
+ .optional(),
34
+ title: z.string().min(1).isSummaryField(),
35
+ status: z.enum(FlowsActors_Status).isDBIndexed().isSummaryField(),
36
+ updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }).isDBIndexed(),
37
+ });
38
+ //# sourceMappingURL=wildo-application-tasks.custom.shared.schemas.js.map
@@ -0,0 +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;;;;;;;;OAQG;IACH,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC;QACR,YAAY,EAAE,oBAAoB;QAClC,MAAM,EAAE,IAAI;KACb,CAAC;SACD,iBAAiB,EAAE;SACnB,QAAQ,EAAE;IACb,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE;IACzC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;IACjE,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 * Server-managed physical-attempt identity for continuity-bound Tasks.\n *\n * `compoundWith` produces the required sparse unique\n * `(wildoApplicationId, continuityAttemptKey)` index: legacy/unbound Tasks\n * remain outside the index, while concurrent creation of one exact\n * Execution-Binding attempt has a database backstop. Retry receives a new\n * key and Task; this field is never rewritten in place.\n */\n continuityAttemptKey: z\n .string()\n .min(1)\n .isUnique({\n compoundWith: 'wildoApplicationId',\n sparse: true,\n })\n .excludeFromUpdate()\n .optional(),\n title: z.string().min(1).isSummaryField(),\n status: z.enum(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 +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,GA0G9F,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,GAuI9F,CAAC"}
@@ -16,6 +16,35 @@ const WildoApplications_Operations = undefined;
16
16
  export const wildoApplications_ResourceConfiguration_InitializationFactory = (resourcesRelationships) => createResourceConfiguration_Initialization({
17
17
  mainSchema: Wildo_Application_Schema,
18
18
  resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION,
19
+ /**
20
+ * BOOTSTRAP-STORE pin RETIRED 2026-08-22 (item C). This resource now follows the platform's
21
+ * configured engine like every other platform resource, instead of declaring MONGODB.
22
+ *
23
+ * The pin existed because this document was WRITTEN by a Mongo-wired plane an adapter override
24
+ * could never redirect, so a PG-engined platform would READ it from PostgreSQL while the
25
+ * bootstrap plane kept WRITING it to MongoDB. Its own contract named the two conditions that
26
+ * would free it, and BOTH are now met — verified rather than assumed:
27
+ *
28
+ * 1. **The infra-manager's raw writers are ported.** `pnpm check:platform-bootstrap-raw-store`
29
+ * inspects 49 files and reports no undeclared raw-driver access; its `--self-test` passes 14
30
+ * cases, so the clean result is the checker working rather than a checker matching nothing.
31
+ * The 8 remaining DECLARED exemptions all sit in the bootstrap seed, and they write
32
+ * `organizations` and `applications` — neither of which is one of these six — through arms
33
+ * that are already adapter-aware.
34
+ * 2. **INIT's repository plane resolves the platform engine.** Phase 2.5
35
+ * (`initializePlatformPostgresIfDeclared`, which calls
36
+ * `setPlatformModeDefaultPersistenceAdapter`) runs BEFORE Phase 2.6 builds the registries —
37
+ * an ordering the file marks as the one constraint that cannot be relaxed.
38
+ *
39
+ * Retired for all SIX declarations in one change, as the pin instructed ("Never migrate one
40
+ * declaration on its own"): a partial retirement is precisely the split-brain the pin prevented.
41
+ * `bootstrap-plane-persistence-adapter.test.ts` now asserts the inverse — that none of the six
42
+ * declares an adapter — so re-pinning any single one fails the suite.
43
+ *
44
+ * NOTE the data consequence, which the pin never covered: flipping the engine does not MOVE
45
+ * existing rows. A platform whose documents live in MongoDB must have them re-provisioned (or
46
+ * migrated) into PostgreSQL, or it reads empty tables. See item G.
47
+ */
19
48
  resourceFieldIdentifier: CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION],
20
49
  resourceRelationships: resourcesRelationships,
21
50
  isSystemResource: false,
@@ -108,4 +137,4 @@ export const wildoApplications_ResourceConfiguration_InitializationFactory = (re
108
137
  },
109
138
  // responseSummaryDto auto-derived from isSummaryField decorators
110
139
  });
111
- //# sourceMappingURL=wildo-applications.custom.shared.resources-config.schemas.js.map
140
+ //# sourceMappingURL=wildo-applications.custom.shared.resources-config.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-applications.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../src/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAsC,qBAAqB,EAA0C,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1J,OAAO,EAAwB,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,uB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AC,WAAW,CAAC;oBACnC,SAAS,EAAE,0BAA0B,CAAC,GAAG;oBACzC,0CAA0C;iBAC3C;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;YAC9B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;oBAClC,SAAS,EAAE,0BAA0B,CAAC,GAAG;iBAC1C;aACF;SACF;KACF;IACD,iEAAiE;CAClE,CAAC,CAAC"}
1
+ {"version":3,"file":"wildo-applications.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAsC,qBAAqB,EAA0C,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1J,OAAO,EAAwB,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACvH,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACrC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAGtF,MAAM,4BAA4B,GAAG,SAAS,CAAC;AAU/C,MAAM,CAAC,MAAM,6DAA6D,GAA6B,CAAC,sBAA8C,EAAE,EAAE,CAAC,0CAA0C,CAInM;IACA,UAAU,EAAE,wBAAwB;IACpC,kBAAkB,EAAE,yBAAyB,CAAC,iBAAiB;IAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,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qB,CAAC,MAAM,CAAC,EAAE;YAC9B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;oBAC7C,SAAS,EAAE,0BAA0B,CAAC,GAAG;oBACzC,YAAY,EAAE,IAAI;oBAClB,gBAAgB,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC;oBAC/C,iBAAiB,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;oBACjE,YAAY,EAAE;wBACZ,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;qBAC3B;oBACD,UAAU,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,CAAU;oBAC5E,8BAA8B,EAAE,GAAG;iBACpC;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;YAC9B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC;oBACnC,SAAS,EAAE,0BAA0B,CAAC,GAAG;oBACzC,0CAA0C;iBAC3C;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;YAC9B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;oBAClC,SAAS,EAAE,0BAA0B,CAAC,GAAG;iBAC1C;aACF;SACF;KACF;IACD,iEAAiE;CAClE,CAAC,CAAC","sourcesContent":["/**\n * Billable Items Shared Resource Configuration\n * \n * Resource configuration for managing invoice line items and billable entries.\n * Handles creation, updates, and management of billable items across invoices.\n */\n\nimport { z } from 'zod';\n\n\nimport { coreResourceShared_FieldIdentifier, CoreResourceOperation, CoreResourceType, ResourceRelationship, CORE_APP_ROLES } from '@wildo-ai/saas-models';\nimport { ResourcePrimaryScope, ResourceOperationVariantType, ResourceOperationRiskLevel } from '@wildo-ai/saas-models';\nimport { CoreUserNotificationTarget, CoreUserNotificationChannel } from '@wildo-ai/saas-models';\nimport { createResourceConfiguration_Initialization } from '@wildo-ai/saas-models';\nimport { CORE_ORG_ROLES } from '@wildo-ai/saas-models';\n\n\nimport {\n CustomShared_ResourceType,\n CustomShared_ResourceFieldIdentifier\n} from '../core/resources/resources-types.custom.shared.schemas';\nimport { Wildo_Application_Schema } from './wildo-applications.custom.shared.schemas';\n\n\nconst WildoApplications_Operations = undefined; \n\ntype WildoApplications_CoreOperations = \n | CoreResourceOperation.READ \n | CoreResourceOperation.LIST\n | CoreResourceOperation.SEARCH\n | CoreResourceOperation.CREATE\n | CoreResourceOperation.UPDATE\n | CoreResourceOperation.DELETE;\n\nexport const wildoApplications_ResourceConfiguration_InitializationFactory: (...args: any[]) => any = (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplications_Operations,\n WildoApplications_CoreOperations,\n typeof Wildo_Application_Schema\n>({\n mainSchema: Wildo_Application_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION,\n /**\n * BOOTSTRAP-STORE pin RETIRED 2026-08-22 (item C). This resource now follows the platform's\n * configured engine like every other platform resource, instead of declaring MONGODB.\n *\n * The pin existed because this document was WRITTEN by a Mongo-wired plane an adapter override\n * could never redirect, so a PG-engined platform would READ it from PostgreSQL while the\n * bootstrap plane kept WRITING it to MongoDB. Its own contract named the two conditions that\n * would free it, and BOTH are now met — verified rather than assumed:\n *\n * 1. **The infra-manager's raw writers are ported.** `pnpm check:platform-bootstrap-raw-store`\n * inspects 49 files and reports no undeclared raw-driver access; its `--self-test` passes 14\n * cases, so the clean result is the checker working rather than a checker matching nothing.\n * The 8 remaining DECLARED exemptions all sit in the bootstrap seed, and they write\n * `organizations` and `applications` — neither of which is one of these six — through arms\n * that are already adapter-aware.\n * 2. **INIT's repository plane resolves the platform engine.** Phase 2.5\n * (`initializePlatformPostgresIfDeclared`, which calls\n * `setPlatformModeDefaultPersistenceAdapter`) runs BEFORE Phase 2.6 builds the registries —\n * an ordering the file marks as the one constraint that cannot be relaxed.\n *\n * Retired for all SIX declarations in one change, as the pin instructed (\"Never migrate one\n * declaration on its own\"): a partial retirement is precisely the split-brain the pin prevented.\n * `bootstrap-plane-persistence-adapter.test.ts` now asserts the inverse — that none of the six\n * declares an adapter — so re-pinning any single one fails the suite.\n *\n * NOTE the data consequence, which the pin never covered: flipping the engine does not MOVE\n * existing rows. A platform whose documents live in MongoDB must have them re-provisioned (or\n * migrated) into PostgreSQL, or it reads empty tables. See item G.\n */\n resourceFieldIdentifier: CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n \n coreOperations: [\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.SEARCH,\n CoreResourceOperation.CREATE,\n CoreResourceOperation.UPDATE,\n CoreResourceOperation.DELETE\n ],\n \n customOperation: WildoApplications_Operations,\n \n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.HIGH,\n // requestDto auto-derived from decorators\n }\n ],\n userNotifications: [\n {\n target: CoreUserNotificationTarget.USER_SELF,\n channel: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }\n ]\n },\n \n [CoreResourceOperation.READ]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n \n [CoreResourceOperation.LIST]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n\n [CoreResourceOperation.SEARCH]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.LOW,\n isSearchable: true,\n searchableFields: ['appSlug', 'organizationId'],\n searchableOptions: { caseSensitive: false, fullMatchOnly: false },\n filterFields: {\n organizationId: z.string(),\n },\n sortFields: ['appSlug', 'organizationId', 'createdAt', 'updatedAt'] as const,\n maxPaginatedResultPerPageLimit: 100,\n }\n ],\n },\n \n [CoreResourceOperation.UPDATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MANAGER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n // requestDto auto-derived from decorators\n }\n ]\n },\n \n [CoreResourceOperation.DELETE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n },\n // responseSummaryDto auto-derived from isSummaryField decorators\n}); "]}
@@ -14,12 +14,12 @@ import { z } from 'zod';
14
14
  export declare const Wildo_Application_Schema: z.ZodObject<{
15
15
  _id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>;
16
16
  appId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodOptional<z.ZodString>>>;
17
- appSlug: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>;
17
+ appSlug: 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>>>>;
18
18
  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>>>>;
19
19
  lastVersion: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodOptional<z.ZodString>>>;
20
20
  gitRepositoryPath: z.ZodString;
21
21
  createdAt: 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.ZodDefault<z.ZodDate>>>>>;
22
22
  updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodDefault<z.ZodDate>>>>;
23
- }, z.core.$strip, core.$ZodObjectExtra>;
23
+ }, z.core.$strip>;
24
24
  export type Wildo_Application = z.infer<typeof Wildo_Application_Schema>;
25
25
  //# sourceMappingURL=wildo-applications.custom.shared.schemas.d.ts.map
@@ -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;AAMxB,eAAO,MAAM,wBAAwB;;;;;;;;;uCASnC,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,eAAO,MAAM,wBAAwB;;;;;;;;;iBAyCnC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -11,17 +11,50 @@
11
11
  * All WAML resources reference wildoApplicationId as their parent.
12
12
  */
13
13
  import { z } from 'zod';
14
+ import { ErrorCustomMessageReference } from '@wildo-ai/saas-models';
14
15
  // Initialize Zod decorators early (lazy init will also happen on first use)
15
16
  import { initZodDecorators } from '@wildo-ai/zod-decorators';
16
17
  initZodDecorators(z);
17
18
  export const Wildo_Application_Schema = z.object({
18
19
  _id: z.string().min(1).isPrimaryKey().isSummaryField(),
19
20
  appId: z.string().optional().isDBIndexed().excludeFromUpdate(),
20
- appSlug: z.string().isDBIndexed().isSummaryField().excludeFromUpdate(),
21
+ /**
22
+ * The application's URL-safe identity — UNIQUE ACROSS THE PLATFORM.
23
+ *
24
+ * Uniqueness is global and deliberately NOT compounded with `organizationId`, even though this
25
+ * resource is organization-scoped. The slug is the sole input, alongside the environment id, from
26
+ * which every provisioned backing resource takes its name:
27
+ * `buildApplicationNamespace(appSlug, environmentId)` carries NO organization component, and the
28
+ * application database, the database username and the RabbitMQ vhost are all derived from it. Two
29
+ * applications sharing a slug in different organizations would be handed the same database and the
30
+ * same vhost, so a per-organization constraint would permit precisely the collision that matters.
31
+ *
32
+ * ## Why this was added (2026-08-19)
33
+ *
34
+ * `appSlug` was indexed but not unique, so two live `wonder-todos` rows coexisted here — one from
35
+ * 2026-08-11 and one minted during a boot on 2026-08-19. `initializeWildoApplication` upserts with
36
+ * lookup `{ appSlug }`, but the repository applies this resource's contextual PRIMARY-SCOPE filter;
37
+ * once the platform organization was re-minted, that org-scoped lookup could no longer see the
38
+ * existing row and INSERTED a second one instead of resolving the first.
39
+ *
40
+ * Nothing reported a duplicate. The orphaned lineage kept its 16 cron jobs, which went on
41
+ * publishing into the queues of an application that was no longer live, and the only symptom was a
42
+ * RabbitMQ `403 ACCESS_REFUSED` naming a queue nobody could explain. A unique index turns that
43
+ * silent divergence into a refusal at the moment of insertion.
44
+ *
45
+ * `.excludeFromUpdate()` makes this creation-time identity rather than an editable label, which is
46
+ * also why the collision must be refused rather than reconciled afterwards: a duplicate that got
47
+ * written could not be resolved through the API at all.
48
+ */
49
+ appSlug: z.string()
50
+ .isDBIndexed()
51
+ .isUnique({ conflictMessageReference: ErrorCustomMessageReference.APPLICATION_SLUG_EXISTS })
52
+ .isSummaryField()
53
+ .excludeFromUpdate(),
21
54
  organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
22
55
  lastVersion: z.string().optional().excludeFromCreate().excludeFromUpdate(),
23
56
  gitRepositoryPath: z.string(),
24
57
  createdAt: z.date().default(() => new Date()).isDBIndexed().isSummaryField().excludeFromCreate().excludeFromUpdate(),
25
58
  updatedAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),
26
59
  });
27
- //# sourceMappingURL=wildo-applications.custom.shared.schemas.js.map
60
+ //# sourceMappingURL=wildo-applications.custom.shared.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-applications.custom.shared.schemas.js","sourceRoot":"","sources":["../../../src/wildo-applications/wildo-applications.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE;IACtD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE;IAC9D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IACtE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAC5F,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;IAC1E,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;IACpH,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;CACpG,CAAC,CAAC"}
1
+ {"version":3,"file":"wildo-applications.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-applications/wildo-applications.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAA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,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;CACpG,CAAC,CAAC","sourcesContent":["/**\n * Wildo Application Schema\n * \n * Represents an application being built in the app-factory (wildo-ai).\n * Each WildoApplication is a custom SaaS application being designed\n * through the WAML metalanguage and UI.\n * \n * APP-FACTORY-SPECIFIC: Fields like `appSlug`, `gitRepositoryPath` are\n * specific to the app-factory paradigm. This is NOT a runtime concept —\n * regular apps don't have a parent \"WildoApplication\" resource.\n * All WAML resources reference wildoApplicationId as their parent.\n */\n\nimport { z } from 'zod';\nimport { ErrorCustomMessageReference } from '@wildo-ai/saas-models';\n\n// Initialize Zod decorators early (lazy init will also happen on first use)\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators(z);\n\nexport const Wildo_Application_Schema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n appId: z.string().optional().isDBIndexed().excludeFromUpdate(),\n /**\n * The application's URL-safe identity — UNIQUE ACROSS THE PLATFORM.\n *\n * Uniqueness is global and deliberately NOT compounded with `organizationId`, even though this\n * resource is organization-scoped. The slug is the sole input, alongside the environment id, from\n * which every provisioned backing resource takes its name:\n * `buildApplicationNamespace(appSlug, environmentId)` carries NO organization component, and the\n * application database, the database username and the RabbitMQ vhost are all derived from it. Two\n * applications sharing a slug in different organizations would be handed the same database and the\n * same vhost, so a per-organization constraint would permit precisely the collision that matters.\n *\n * ## Why this was added (2026-08-19)\n *\n * `appSlug` was indexed but not unique, so two live `wonder-todos` rows coexisted here — one from\n * 2026-08-11 and one minted during a boot on 2026-08-19. `initializeWildoApplication` upserts with\n * lookup `{ appSlug }`, but the repository applies this resource's contextual PRIMARY-SCOPE filter;\n * once the platform organization was re-minted, that org-scoped lookup could no longer see the\n * existing row and INSERTED a second one instead of resolving the first.\n *\n * Nothing reported a duplicate. The orphaned lineage kept its 16 cron jobs, which went on\n * publishing into the queues of an application that was no longer live, and the only symptom was a\n * RabbitMQ `403 ACCESS_REFUSED` naming a queue nobody could explain. A unique index turns that\n * silent divergence into a refusal at the moment of insertion.\n *\n * `.excludeFromUpdate()` makes this creation-time identity rather than an editable label, which is\n * also why the collision must be refused rather than reconciled afterwards: a duplicate that got\n * written could not be resolved through the API at all.\n */\n appSlug: z.string()\n .isDBIndexed()\n .isUnique({ conflictMessageReference: ErrorCustomMessageReference.APPLICATION_SLUG_EXISTS })\n .isSummaryField()\n .excludeFromUpdate(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n lastVersion: z.string().optional().excludeFromCreate().excludeFromUpdate(),\n gitRepositoryPath: z.string(),\n createdAt: z.date().default(() => new Date()).isDBIndexed().isSummaryField().excludeFromCreate().excludeFromUpdate(),\n updatedAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),\n});\nexport type Wildo_Application = z.infer<typeof Wildo_Application_Schema>;\n\n"]}
@@ -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,GA6DrG,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,GA6DrG,CAAC"}
@@ -65,4 +65,4 @@ export const wildoApplicationVersions_ResourceConfiguration_InitializationFactor
65
65
  },
66
66
  // responseSummaryDto auto-derived from isSummaryField decorators
67
67
  });
68
- //# sourceMappingURL=wildo-applications-versions.custom.shared.resources-config.schemas.js.map
68
+ //# sourceMappingURL=wildo-applications-versions.custom.shared.resources-config.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-applications-versions.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAsC,qBAAqB,EAA0C,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1J,OAAO,EAAwB,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACvH,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACrC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAGvG,MAAM,mCAAmC,GAAG,SAAS,CAAC;AAOtD,MAAM,CAAC,MAAM,oEAAoE,GAA6B,CAAC,sBAA8C,EAAE,EAAE,CAAC,0CAA0C,CAI1M;IACA,UAAU,EAAE,gCAAgC;IAC5C,kBAAkB,EAAE,yBAAyB,CAAC,0BAA0B;IACxE,uBAAuB,EAAE,oCAAoC,CAAC,yBAAyB,CAAC,0BAA0B,CAAC;IACnH,qBAAqB,EAAE,sBAAsB;IAC7C,gBAAgB,EAAE,KAAK;IAEvB,cAAc,EAAE;QACd,qBAAqB,CAAC,IAAI;QAC1B,qBAAqB,CAAC,IAAI;QAC1B,qBAAqB,CAAC,MAAM;KAC7B;IAED,eAAe,EAAE,mCAAmC;IAEpD,uBAAuB,EAAE;QACvB,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;YAC9B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;oBAC7C,SAAS,EAAE,0BAA0B,CAAC,IAAI;oBAC1C,0CAA0C;iBAC3C;aACF;YACD,iBAAiB,EAAE;gBACjB;oBACE,MAAM,EAAE,0BAA0B,CAAC,SAAS;oBAC5C,OAAO,EAAE,2BAA2B,CAAC,iBAAiB;iBACvD;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE;YAC5B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;oBAClC,SAAS,EAAE,0BAA0B,CAAC,GAAG;iBAC1C;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE;YAC5B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;oBAClC,SAAS,EAAE,0BAA0B,CAAC,GAAG;iBAC1C;aACF;SACF;KACF;IACD,iEAAiE;CAClE,CAAC,CAAC"}
1
+ {"version":3,"file":"wildo-applications-versions.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAsC,qBAAqB,EAA0C,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1J,OAAO,EAAwB,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACvH,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,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I,CAAC,EAAE;YAC5B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;oBAClC,SAAS,EAAE,0BAA0B,CAAC,GAAG;iBAC1C;aACF;SACF;KACF;IACD,iEAAiE;CAClE,CAAC,CAAC","sourcesContent":["/**\n * Billable Items Shared Resource Configuration\n * \n * Resource configuration for managing invoice line items and billable entries.\n * Handles creation, updates, and management of billable items across invoices.\n */\n\nimport { z } from 'zod';\n\nimport { coreResourceShared_FieldIdentifier, CoreResourceOperation, CoreResourceType, ResourceRelationship, CORE_APP_ROLES } from '@wildo-ai/saas-models';\nimport { ResourcePrimaryScope, ResourceOperationVariantType, ResourceOperationRiskLevel } from '@wildo-ai/saas-models';\nimport { CoreUserNotificationTarget, CoreUserNotificationChannel } from '@wildo-ai/saas-models';\nimport { createResourceConfiguration_Initialization } from '@wildo-ai/saas-models';\nimport { CORE_ORG_ROLES } from '@wildo-ai/saas-models';\n\nimport {\n CustomShared_ResourceType,\n CustomShared_ResourceFieldIdentifier\n} from '../core/resources/resources-types.custom.shared.schemas';\nimport { Wildo_Application_Version_Schema } from './wildo-applications-versions.custom.shared.schemas';\n\n\nconst WildoApplicationVersions_Operations = undefined; \n\ntype WildoApplicationVersions_CoreOperations = \n | CoreResourceOperation.READ \n | CoreResourceOperation.LIST\n | CoreResourceOperation.CREATE\n\nexport const wildoApplicationVersions_ResourceConfiguration_InitializationFactory: (...args: any[]) => any = (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplicationVersions_Operations,\n WildoApplicationVersions_CoreOperations,\n typeof Wildo_Application_Version_Schema\n>({\n mainSchema: Wildo_Application_Version_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS,\n resourceFieldIdentifier: CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n \n coreOperations: [\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.CREATE,\n ],\n \n customOperation: WildoApplicationVersions_Operations,\n \n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.HIGH,\n // requestDto auto-derived from decorators\n }\n ],\n userNotifications: [\n {\n target: CoreUserNotificationTarget.USER_SELF,\n channel: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }\n ]\n },\n \n [CoreResourceOperation.READ]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n \n [CoreResourceOperation.LIST]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n },\n // responseSummaryDto auto-derived from isSummaryField decorators\n}); "]}
@@ -30,6 +30,6 @@ export declare const Wildo_Application_Version_Schema: z.ZodObject<{
30
30
  gitCommitHash: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>;
31
31
  createdAt: 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.ZodDate>>>>;
32
32
  updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodDate>>>;
33
- }, z.core.$strip, core.$ZodObjectExtra>;
33
+ }, z.core.$strip>;
34
34
  export type Wildo_Application_Version = z.infer<typeof Wildo_Application_Version_Schema>;
35
35
  //# sourceMappingURL=wildo-applications-versions.custom.shared.schemas.d.ts.map
@@ -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;;;;;;;;uCAQ3C,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"}
@@ -34,4 +34,4 @@ export const Wildo_Application_Version_Schema = z.object({
34
34
  createdAt: z.date().isDBIndexed().isSummaryField().excludeFromCreate().excludeFromUpdate(),
35
35
  updatedAt: z.date().isDBIndexed().excludeFromCreate().excludeFromUpdate(),
36
36
  });
37
- //# sourceMappingURL=wildo-applications-versions.custom.shared.schemas.js.map
37
+ //# sourceMappingURL=wildo-applications-versions.custom.shared.schemas.js.map