@wildo-ai/platform-core-shared 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/runtime/application-backend-env.contracts.d.ts +28 -2
- package/dist/esm/runtime/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/runtime/application-backend-env.contracts.js +27 -1
- package/dist/esm/runtime/application-backend-env.contracts.js.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts +60 -66
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts +60 -66
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js +2 -2
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts +6 -10
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts +6 -10
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js +26 -28
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts +27 -0
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js +56 -0
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts +13 -0
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js +418 -1
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.d.ts +0 -98
- package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.d.ts.map +0 -1
- package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.js.map +0 -1
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts +103 -0
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts.map +1 -0
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js +99 -0
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js.map +1 -0
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.d.ts +49 -0
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.d.ts.map +1 -0
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.js +42 -0
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.js.map +1 -0
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts +378 -11
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js +426 -5
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts +882 -9
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js +1154 -14
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts +117 -1
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js +160 -0
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts +184 -7
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts +2 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js +10 -5
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -13
- package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.js +0 -86
|
@@ -25,6 +25,58 @@ export declare const Wildo_Application_ActorSystem_Execution_Schema: z.ZodObject
|
|
|
25
25
|
updatedAt: z.ZodString;
|
|
26
26
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
27
27
|
kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowActorSystem_Kind.ACTOR>;
|
|
28
|
+
suspension: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
decision: z.ZodObject<{
|
|
30
|
+
decisionId: z.ZodString;
|
|
31
|
+
title: z.ZodString;
|
|
32
|
+
description: z.ZodString;
|
|
33
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
34
|
+
ref: z.ZodString;
|
|
35
|
+
question: z.ZodString;
|
|
36
|
+
kind: z.ZodEnum<typeof import("@wildo-ai/saas-models").HumanDecision_FieldKind>;
|
|
37
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
why: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
options: z.ZodArray<z.ZodObject<{
|
|
41
|
+
ref: z.ZodString;
|
|
42
|
+
label: z.ZodString;
|
|
43
|
+
intent: z.ZodEnum<typeof import("@wildo-ai/saas-models").HumanDecision_ResponseIntent>;
|
|
44
|
+
description: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
requestedAt: z.ZodString;
|
|
47
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
suspendedAt: z.ZodISODateTime;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
checkpoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
52
|
+
context: z.ZodAny;
|
|
53
|
+
checkpointedAt: z.ZodISODateTime;
|
|
54
|
+
resumedSuspension: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
decision: z.ZodObject<{
|
|
56
|
+
decisionId: z.ZodString;
|
|
57
|
+
title: z.ZodString;
|
|
58
|
+
description: z.ZodString;
|
|
59
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
60
|
+
ref: z.ZodString;
|
|
61
|
+
question: z.ZodString;
|
|
62
|
+
kind: z.ZodEnum<typeof import("@wildo-ai/saas-models").HumanDecision_FieldKind>;
|
|
63
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
+
why: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
options: z.ZodArray<z.ZodObject<{
|
|
67
|
+
ref: z.ZodString;
|
|
68
|
+
label: z.ZodString;
|
|
69
|
+
intent: z.ZodEnum<typeof import("@wildo-ai/saas-models").HumanDecision_ResponseIntent>;
|
|
70
|
+
description: z.ZodOptional<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
requestedAt: z.ZodString;
|
|
73
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
suspendedAt: z.ZodISODateTime;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
interruptedContinuations: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
exclusiveSubject: z.ZodOptional<z.ZodString>;
|
|
28
80
|
plan: z.ZodOptional<z.ZodObject<{
|
|
29
81
|
_id: z.ZodString;
|
|
30
82
|
goalDescription: z.ZodString;
|
|
@@ -134,7 +186,6 @@ export declare const Wildo_Application_ActorSystem_Execution_Schema: z.ZodObject
|
|
|
134
186
|
}, z.core.$strip>>;
|
|
135
187
|
}, z.core.$strip>>;
|
|
136
188
|
errorStates: z.ZodOptional<z.ZodObject<{
|
|
137
|
-
circuitBreakerStatus: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_CircuitBreaker_Status>>;
|
|
138
189
|
errorItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
190
|
type: z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorType>;
|
|
140
191
|
severity: z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorSeverity>;
|
|
@@ -235,65 +286,12 @@ export declare const Wildo_Application_ActorSystem_Execution_Schema: z.ZodObject
|
|
|
235
286
|
createdAt: z.ZodString;
|
|
236
287
|
updatedAt: z.ZodString;
|
|
237
288
|
}, z.core.$strip>>;
|
|
238
|
-
walkthrough: z.ZodOptional<z.ZodObject<{
|
|
239
|
-
_id: z.ZodString;
|
|
240
|
-
name: z.ZodString;
|
|
241
|
-
description: z.ZodString;
|
|
242
|
-
status: z.ZodEnum<typeof FlowsActors_Status>;
|
|
243
|
-
initiator: z.ZodObject<{
|
|
244
|
-
organizationId: z.ZodOptional<z.ZodString>;
|
|
245
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
246
|
-
applicationId: z.ZodOptional<z.ZodString>;
|
|
247
|
-
machineCredential: z.ZodOptional<z.ZodObject<{
|
|
248
|
-
authMethod: z.ZodEnum<typeof import("@wildo-ai/saas-models").MachineAuthMethod>;
|
|
249
|
-
credentialId: z.ZodString;
|
|
250
|
-
}, z.core.$strip>>;
|
|
251
|
-
consumableTokenId: z.ZodOptional<z.ZodString>;
|
|
252
|
-
webhookProviderId: z.ZodOptional<z.ZodString>;
|
|
253
|
-
anonymousUserId: z.ZodOptional<z.ZodString>;
|
|
254
|
-
}, z.core.$strip>;
|
|
255
|
-
relationships: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
256
|
-
kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW>;
|
|
257
|
-
relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
|
|
258
|
-
flowId: z.ZodString;
|
|
259
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
-
kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR>;
|
|
261
|
-
relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
|
|
262
|
-
actorId: z.ZodString;
|
|
263
|
-
actorSystemId: z.ZodString;
|
|
264
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
-
kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW_STEP>;
|
|
266
|
-
relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
|
|
267
|
-
flowId: z.ZodString;
|
|
268
|
-
stepId: z.ZodString;
|
|
269
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
270
|
-
kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.TASK>;
|
|
271
|
-
relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
|
|
272
|
-
taskId: z.ZodString;
|
|
273
|
-
actorSystemId: z.ZodString;
|
|
274
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
275
|
-
kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN>;
|
|
276
|
-
relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
|
|
277
|
-
planId: z.ZodString;
|
|
278
|
-
actorSystemId: z.ZodString;
|
|
279
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
-
kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.PLAN_STEP>;
|
|
281
|
-
relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
|
|
282
|
-
planId: z.ZodString;
|
|
283
|
-
planStepId: z.ZodString;
|
|
284
|
-
actorSystemId: z.ZodString;
|
|
285
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
286
|
-
kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.ACTOR_SYSTEM>;
|
|
287
|
-
relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
|
|
288
|
-
actorSystemId: z.ZodString;
|
|
289
|
-
}, z.core.$strip>], "kind">>;
|
|
290
|
-
}, z.core.$strip>>;
|
|
291
289
|
standaloneTasks: z.ZodArray<z.ZodObject<{
|
|
292
290
|
_id: z.ZodString;
|
|
293
291
|
title: z.ZodString;
|
|
294
292
|
description: z.ZodString;
|
|
295
|
-
topic: z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics
|
|
296
|
-
status: z.ZodEnum<typeof FlowsActors_Status
|
|
293
|
+
topic: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>>;
|
|
294
|
+
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof FlowsActors_Status>>;
|
|
297
295
|
initiator: z.ZodObject<{
|
|
298
296
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
299
297
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -397,11 +395,10 @@ export declare const Wildo_Application_ActorSystem_Execution_Schema: z.ZodObject
|
|
|
397
395
|
}, z.core.$strip>;
|
|
398
396
|
}, z.core.$strip>;
|
|
399
397
|
context: z.ZodObject<{
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
stepRef: z.ZodOptional<z.ZodString>;
|
|
398
|
+
correlation: z.ZodOptional<z.ZodObject<{
|
|
399
|
+
domain: z.ZodString;
|
|
400
|
+
refs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
401
|
+
}, z.core.$strip>>;
|
|
405
402
|
}, z.core.$strip>;
|
|
406
403
|
artifacts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
407
404
|
ref: z.ZodString;
|
|
@@ -514,7 +511,6 @@ export declare const Wildo_Application_ActorSystem_Execution_Schema: z.ZodObject
|
|
|
514
511
|
}, z.core.$strip>>;
|
|
515
512
|
}, z.core.$strip>>;
|
|
516
513
|
errorStates: z.ZodOptional<z.ZodObject<{
|
|
517
|
-
circuitBreakerStatus: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_CircuitBreaker_Status>>;
|
|
518
514
|
errorItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
519
515
|
type: z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorType>;
|
|
520
516
|
severity: z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorSeverity>;
|
|
@@ -627,7 +623,6 @@ export declare const Wildo_Application_ActorSystem_Execution_Schema: z.ZodObject
|
|
|
627
623
|
}, z.core.$strip>>;
|
|
628
624
|
}, z.core.$strip>>;
|
|
629
625
|
errorStates: z.ZodOptional<z.ZodObject<{
|
|
630
|
-
circuitBreakerStatus: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_CircuitBreaker_Status>>;
|
|
631
626
|
checkpointChecks: z.ZodArray<z.ZodObject<{
|
|
632
627
|
checkpoint: z.ZodObject<{
|
|
633
628
|
point: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -709,7 +704,7 @@ export declare const Wildo_Application_ActorSystem_Execution_Schema: z.ZodObject
|
|
|
709
704
|
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>>>>;
|
|
710
705
|
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>>>>;
|
|
711
706
|
systemRef: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>;
|
|
712
|
-
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof FlowsActors_Status
|
|
707
|
+
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof FlowsActors_Status>>>>;
|
|
713
708
|
}, z.core.$strip>;
|
|
714
709
|
export type Wildo_Application_ActorSystem_Execution = z.infer<typeof Wildo_Application_ActorSystem_Execution_Schema>;
|
|
715
710
|
/**
|
|
@@ -747,7 +742,6 @@ export declare const Wildo_Application_FlowSystem_Execution_Schema: z.ZodObject<
|
|
|
747
742
|
}, z.core.$strip>>;
|
|
748
743
|
}, z.core.$strip>>;
|
|
749
744
|
errorStates: z.ZodOptional<z.ZodObject<{
|
|
750
|
-
circuitBreakerStatus: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_CircuitBreaker_Status>>;
|
|
751
745
|
checkpointChecks: z.ZodArray<z.ZodObject<{
|
|
752
746
|
checkpoint: z.ZodObject<{
|
|
753
747
|
point: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -828,7 +822,7 @@ export declare const Wildo_Application_FlowSystem_Execution_Schema: z.ZodObject<
|
|
|
828
822
|
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>>>>;
|
|
829
823
|
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>>>>;
|
|
830
824
|
systemRef: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>;
|
|
831
|
-
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof FlowsActors_Status
|
|
825
|
+
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof FlowsActors_Status>>>>;
|
|
832
826
|
}, z.core.$strip>;
|
|
833
827
|
export type Wildo_Application_FlowSystem_Execution = z.infer<typeof Wildo_Application_FlowSystem_Execution_Schema>;
|
|
834
828
|
//# sourceMappingURL=wildo-application-executions.custom.shared.schemas.d.ts.map
|
|
@@ -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,MAAM,uBAAuB,CAAC;AAK/B;;;GAGG;AACH,eAAO,MAAM,8CAA8C
|
|
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,MAAM,uBAAuB,CAAC;AAK/B;;;GAGG;AACH,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzD,CAAC;AACH,MAAM,MAAM,uCAAuC,GACjD,CAAC,CAAC,KAAK,CAAC,OAAO,8CAA8C,CAAC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxD,CAAC;AACH,MAAM,MAAM,sCAAsC,GAChD,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAC"}
|
package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js
CHANGED
|
@@ -11,7 +11,7 @@ export const Wildo_Application_ActorSystem_Execution_Schema = ActorSystem_Execut
|
|
|
11
11
|
organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
|
|
12
12
|
wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
|
|
13
13
|
systemRef: z.string().min(1).isDBIndexed().isSummaryField(),
|
|
14
|
-
status: z.enum(FlowsActors_Status).isDBIndexed().isSummaryField(),
|
|
14
|
+
status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),
|
|
15
15
|
});
|
|
16
16
|
/**
|
|
17
17
|
* Flow executions follow the same platform ownership chain as actor executions:
|
|
@@ -22,6 +22,6 @@ export const Wildo_Application_FlowSystem_Execution_Schema = FlowSystem_Executio
|
|
|
22
22
|
organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
|
|
23
23
|
wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
|
|
24
24
|
systemRef: z.string().min(1).isDBIndexed().isSummaryField(),
|
|
25
|
-
status: z.enum(FlowsActors_Status).isDBIndexed().isSummaryField(),
|
|
25
|
+
status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),
|
|
26
26
|
});
|
|
27
27
|
//# 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,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,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,WAAW,EAAE,CAAC,cAAc,EAAE;
|
|
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,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,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;CACnG,CAAC,CAAC;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAC9F,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,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;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"]}
|
|
@@ -7,7 +7,7 @@ type WildoApplicationActorTasks_CoreOperations = CoreResourceOperation.CREATE |
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const wildoApplicationActorTasks_ResourceConfiguration_InitializationFactory: (resourcesRelationships: ResourceRelationship[]) => import("@wildo-ai/saas-models").ResourceConfiguration<any, WildoApplicationActorTasks_CoreOperations, import("zod").ZodObject<{
|
|
9
9
|
description: import("zod").ZodString;
|
|
10
|
-
topic: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics
|
|
10
|
+
topic: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>>;
|
|
11
11
|
initiator: import("zod").ZodObject<{
|
|
12
12
|
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
13
|
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -111,11 +111,10 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
|
|
|
111
111
|
}, import("zod/v4/core").$strip>;
|
|
112
112
|
}, import("zod/v4/core").$strip>;
|
|
113
113
|
context: import("zod").ZodObject<{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
stepRef: import("zod").ZodOptional<import("zod").ZodString>;
|
|
114
|
+
correlation: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
115
|
+
domain: import("zod").ZodString;
|
|
116
|
+
refs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
117
|
+
}, import("zod/v4/core").$strip>>;
|
|
119
118
|
}, import("zod/v4/core").$strip>;
|
|
120
119
|
artifacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
121
120
|
ref: import("zod").ZodString;
|
|
@@ -228,7 +227,6 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
|
|
|
228
227
|
}, import("zod/v4/core").$strip>>;
|
|
229
228
|
}, import("zod/v4/core").$strip>>;
|
|
230
229
|
errorStates: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
231
|
-
circuitBreakerStatus: import("zod").ZodOptional<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_CircuitBreaker_Status>>;
|
|
232
230
|
errorItems: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
233
231
|
type: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ErrorType>;
|
|
234
232
|
severity: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ErrorSeverity>;
|
|
@@ -333,10 +331,8 @@ export declare const wildoApplicationActorTasks_ResourceConfiguration_Initializa
|
|
|
333
331
|
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>>>>;
|
|
334
332
|
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>>>>;
|
|
335
333
|
wildoApplicationActorSystemExecutionId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
336
|
-
continuityAttemptKey: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
337
|
-
workbenchBuildPlanTaskId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
338
334
|
title: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>;
|
|
339
|
-
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Status
|
|
335
|
+
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>>>>;
|
|
340
336
|
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>;
|
|
341
337
|
}, import("zod/v4/core").$strip>>;
|
|
342
338
|
export {};
|
|
@@ -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
|
|
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"}
|
|
@@ -8,7 +8,7 @@ import { FlowsActors_Status } from '@wildo-ai/saas-models';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
|
|
10
10
|
description: z.ZodString;
|
|
11
|
-
topic: z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics
|
|
11
|
+
topic: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>>;
|
|
12
12
|
initiator: z.ZodObject<{
|
|
13
13
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
14
14
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -112,11 +112,10 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
|
|
|
112
112
|
}, z.core.$strip>;
|
|
113
113
|
}, z.core.$strip>;
|
|
114
114
|
context: z.ZodObject<{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
stepRef: z.ZodOptional<z.ZodString>;
|
|
115
|
+
correlation: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
domain: z.ZodString;
|
|
117
|
+
refs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
120
119
|
}, z.core.$strip>;
|
|
121
120
|
artifacts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
121
|
ref: z.ZodString;
|
|
@@ -229,7 +228,6 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
|
|
|
229
228
|
}, z.core.$strip>>;
|
|
230
229
|
}, z.core.$strip>>;
|
|
231
230
|
errorStates: z.ZodOptional<z.ZodObject<{
|
|
232
|
-
circuitBreakerStatus: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_CircuitBreaker_Status>>;
|
|
233
231
|
errorItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
234
232
|
type: z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorType>;
|
|
235
233
|
severity: z.ZodEnum<typeof import("@wildo-ai/saas-models").ErrorSeverity>;
|
|
@@ -334,10 +332,8 @@ export declare const Wildo_Application_Actor_Task_Schema: z.ZodObject<{
|
|
|
334
332
|
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
333
|
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
334
|
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
|
-
workbenchBuildPlanTaskId: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>;
|
|
339
335
|
title: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>;
|
|
340
|
-
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof FlowsActors_Status
|
|
336
|
+
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof FlowsActors_Status>>>>;
|
|
341
337
|
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>;
|
|
342
338
|
}, z.core.$strip>;
|
|
343
339
|
export type Wildo_Application_Actor_Task = z.infer<typeof Wildo_Application_Actor_Task_Schema>;
|
package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map
CHANGED
|
@@ -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
|
|
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"}
|
|
@@ -13,39 +13,37 @@ export const Wildo_Application_Actor_Task_Schema = Actors_Task_Schema.extend({
|
|
|
13
13
|
organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
|
|
14
14
|
wildoApplicationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
|
|
15
15
|
wildoApplicationActorSystemExecutionId: z.string().isDBIndexed().isForeignKey().optional(),
|
|
16
|
-
|
|
17
|
-
*
|
|
16
|
+
/*
|
|
17
|
+
* `continuityAttemptKey` was here until 2026-09-19 (#1337), described as the "server-managed
|
|
18
|
+
* physical-attempt identity for continuity-bound Tasks" and carrying a sparse unique
|
|
19
|
+
* `(wildoApplicationId, continuityAttemptKey)` index as a database backstop against concurrent
|
|
20
|
+
* creation of one Execution-Binding attempt.
|
|
18
21
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
22
|
+
* Execution bindings were demolished on 2026-08-23, and the field was measured to have ZERO
|
|
23
|
+
* writers anywhere — so every application was materializing a unique index, on every actor-task
|
|
24
|
+
* table, for a column that is always null, and the workbench rendered an always-empty field as a
|
|
25
|
+
* machine identity. Removed with its index, its UI field, its label, its interface member and
|
|
26
|
+
* the test that pinned the index shape.
|
|
24
27
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
compoundWith: 'wildoApplicationId',
|
|
30
|
-
sparse: true,
|
|
31
|
-
})
|
|
32
|
-
.excludeFromUpdate()
|
|
33
|
-
.optional(),
|
|
34
|
-
/**
|
|
35
|
-
* The CROSS-PLANE join (creation board, Phase 4 R5): the workbench build-plan DISPATCH row this
|
|
36
|
-
* task executes, as its SANITIZED identity (`sanitizeWorkbenchCreationPlaneIdentity(taskRef)` —
|
|
37
|
-
* task refs are URL-safe by their own regex, so this is currently the ref verbatim).
|
|
28
|
+
/*
|
|
29
|
+
* `workbenchBuildPlanTaskId` was here until 2026-09-20 (#1348) — a foreign key from the GENERIC
|
|
30
|
+
* platform actor-task row into an app-creation workbench resource, and the last app-creation
|
|
31
|
+
* field on this row.
|
|
38
32
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
33
|
+
* It is not folded away, it is MOVED: the association now travels in the engine's own
|
|
34
|
+
* `Actors_Task_Context.correlation` envelope as
|
|
35
|
+
* `{ domain: 'application-creation', refs: { buildPlanTaskRef } }`, which is durable on this same
|
|
36
|
+
* row and says nothing about what a build-plan task is. The traversable edge moved with it, to
|
|
37
|
+
* the plane that owns the vocabulary: `Workbench_BuildDispatch.codingTaskId` already pointed at
|
|
38
|
+
* this row and is now a DECLARED relationship.
|
|
39
|
+
*
|
|
40
|
+
* What that cost, recorded because it was the objection to folding: this row no longer renders
|
|
41
|
+
* the build-plan task as a summary field, and no longer declares the edge from its own side.
|
|
42
|
+
* Nothing queried the column — measured across the companion before removing it — so the loss is
|
|
43
|
+
* a rendered field on the generic row, which is the thing that should not have been here.
|
|
45
44
|
*/
|
|
46
|
-
workbenchBuildPlanTaskId: z.string().min(1).isForeignKey().isSummaryField().optional(),
|
|
47
45
|
title: z.string().min(1).isSummaryField(),
|
|
48
|
-
status: z.enum(FlowsActors_Status).isDBIndexed().isSummaryField(),
|
|
46
|
+
status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status').isDBIndexed().isSummaryField(),
|
|
49
47
|
updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }).isDBIndexed(),
|
|
50
48
|
});
|
|
51
49
|
//# sourceMappingURL=wildo-application-tasks.custom.shared.schemas.js.map
|
package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js.map
CHANGED
|
@@ -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
|
|
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"]}
|
|
@@ -11,6 +11,31 @@
|
|
|
11
11
|
* All WAML resources reference wildoApplicationId as their parent.
|
|
12
12
|
*/
|
|
13
13
|
import { z } from 'zod';
|
|
14
|
+
/**
|
|
15
|
+
* Whether the platform still schedules and serves this application (#1556).
|
|
16
|
+
*
|
|
17
|
+
* TWO members, and the pair is the whole point: an application is either live, or it has been
|
|
18
|
+
* WITHDRAWN without anything of its being destroyed. There is deliberately no member meaning
|
|
19
|
+
* "destroyed" — destruction is #1562 and is parked, so nothing in this vocabulary may be read as
|
|
20
|
+
* authorising it.
|
|
21
|
+
*
|
|
22
|
+
* The shape is the one `Organization` already uses for a marked tenant — *authorization-dead and
|
|
23
|
+
* data-alive* — one level up. That is not a coincidence to be tidied away later: a tenant and an
|
|
24
|
+
* application are both things an operator must be able to take out of service without losing what
|
|
25
|
+
* they contain, and the two should keep answering that question the same way.
|
|
26
|
+
*/
|
|
27
|
+
export declare enum WildoApplicationStatus {
|
|
28
|
+
/** Scheduled, served, and re-registerable. The default and the state every application is created in. */
|
|
29
|
+
ACTIVE = "ACTIVE",
|
|
30
|
+
/**
|
|
31
|
+
* Withdrawn: the platform no longer schedules it, and its slug is refused for re-registration
|
|
32
|
+
* until it is restored. **Nothing of its data is touched** — its database, broker vhost, cache
|
|
33
|
+
* namespace, blobs and credentials are exactly as they were. `restore` returns it to
|
|
34
|
+
* {@link WildoApplicationStatus.ACTIVE} and the next boot re-establishes its cron schedule from
|
|
35
|
+
* its own code, because that schedule is DERIVED rather than stored authority.
|
|
36
|
+
*/
|
|
37
|
+
DEREGISTERED = "DEREGISTERED"
|
|
38
|
+
}
|
|
14
39
|
export declare const Wildo_Application_Schema: z.ZodObject<{
|
|
15
40
|
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>;
|
|
16
41
|
appId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodOptional<z.ZodString>>>;
|
|
@@ -18,6 +43,8 @@ export declare const Wildo_Application_Schema: z.ZodObject<{
|
|
|
18
43
|
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
44
|
lastVersion: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodOptional<z.ZodString>>>;
|
|
20
45
|
gitRepositoryPath: z.ZodString;
|
|
46
|
+
status: 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<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof WildoApplicationStatus>>>>>>>;
|
|
47
|
+
deregisteredAt: 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.ZodOptional<z.ZodNullable<z.ZodDate>>>>>>;
|
|
21
48
|
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
49
|
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodDefault<z.ZodDate>>>>;
|
|
23
50
|
}, z.core.$strip>;
|
|
@@ -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,eAAO,MAAM,wBAAwB
|
|
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;;;;;;OAMG;IACH,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBA0EnC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -15,6 +15,32 @@ import { ErrorCustomMessageReference } from '@wildo-ai/saas-models';
|
|
|
15
15
|
// Initialize Zod decorators early (lazy init will also happen on first use)
|
|
16
16
|
import { initZodDecorators } from '@wildo-ai/zod-decorators';
|
|
17
17
|
initZodDecorators(z);
|
|
18
|
+
/**
|
|
19
|
+
* Whether the platform still schedules and serves this application (#1556).
|
|
20
|
+
*
|
|
21
|
+
* TWO members, and the pair is the whole point: an application is either live, or it has been
|
|
22
|
+
* WITHDRAWN without anything of its being destroyed. There is deliberately no member meaning
|
|
23
|
+
* "destroyed" — destruction is #1562 and is parked, so nothing in this vocabulary may be read as
|
|
24
|
+
* authorising it.
|
|
25
|
+
*
|
|
26
|
+
* The shape is the one `Organization` already uses for a marked tenant — *authorization-dead and
|
|
27
|
+
* data-alive* — one level up. That is not a coincidence to be tidied away later: a tenant and an
|
|
28
|
+
* application are both things an operator must be able to take out of service without losing what
|
|
29
|
+
* they contain, and the two should keep answering that question the same way.
|
|
30
|
+
*/
|
|
31
|
+
export var WildoApplicationStatus;
|
|
32
|
+
(function (WildoApplicationStatus) {
|
|
33
|
+
/** Scheduled, served, and re-registerable. The default and the state every application is created in. */
|
|
34
|
+
WildoApplicationStatus["ACTIVE"] = "ACTIVE";
|
|
35
|
+
/**
|
|
36
|
+
* Withdrawn: the platform no longer schedules it, and its slug is refused for re-registration
|
|
37
|
+
* until it is restored. **Nothing of its data is touched** — its database, broker vhost, cache
|
|
38
|
+
* namespace, blobs and credentials are exactly as they were. `restore` returns it to
|
|
39
|
+
* {@link WildoApplicationStatus.ACTIVE} and the next boot re-establishes its cron schedule from
|
|
40
|
+
* its own code, because that schedule is DERIVED rather than stored authority.
|
|
41
|
+
*/
|
|
42
|
+
WildoApplicationStatus["DEREGISTERED"] = "DEREGISTERED";
|
|
43
|
+
})(WildoApplicationStatus || (WildoApplicationStatus = {}));
|
|
18
44
|
export const Wildo_Application_Schema = z.object({
|
|
19
45
|
_id: z.string().min(1).isPrimaryKey().isSummaryField(),
|
|
20
46
|
appId: z.string().optional().isDBIndexed().excludeFromUpdate(),
|
|
@@ -54,6 +80,36 @@ export const Wildo_Application_Schema = z.object({
|
|
|
54
80
|
organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),
|
|
55
81
|
lastVersion: z.string().optional().excludeFromCreate().excludeFromUpdate(),
|
|
56
82
|
gitRepositoryPath: z.string(),
|
|
83
|
+
/**
|
|
84
|
+
* Whether the platform still schedules and serves this application (#1556).
|
|
85
|
+
*
|
|
86
|
+
* Server-owned: written only by the deregister/restore lifecycle operations, never by a client
|
|
87
|
+
* patch — the same posture `Organization.status` takes, and for the same reason. A field that any
|
|
88
|
+
* UPDATE could set would let the withdrawal be performed by something that does not also withdraw
|
|
89
|
+
* the cron schedule, which is the only part of a withdrawal that actually stops work happening.
|
|
90
|
+
*
|
|
91
|
+
* Defaulted rather than required so that every row written before this field existed reads as
|
|
92
|
+
* {@link WildoApplicationStatus.ACTIVE}, which is what they are.
|
|
93
|
+
*/
|
|
94
|
+
status: z.enum(WildoApplicationStatus)
|
|
95
|
+
.systemEnum('WildoApplicationStatus')
|
|
96
|
+
.default(WildoApplicationStatus.ACTIVE)
|
|
97
|
+
.isDBIndexed()
|
|
98
|
+
.isSummaryField()
|
|
99
|
+
.excludeFromCreate()
|
|
100
|
+
.excludeFromUpdate(),
|
|
101
|
+
/**
|
|
102
|
+
* When the application was withdrawn, or `null` while it is live.
|
|
103
|
+
*
|
|
104
|
+
* `.nullish()` because `restore` CLEARS it: a restored application is not "deregistered a while
|
|
105
|
+
* ago", it is live, and a lingering timestamp would make every later reader decide for itself
|
|
106
|
+
* which field wins. Existing rows legitimately have none.
|
|
107
|
+
*
|
|
108
|
+
* It is a record, not a deadline. There is no window here and nothing consumes it — an application
|
|
109
|
+
* stays withdrawn until somebody restores it. The field that WOULD be a deadline
|
|
110
|
+
* (`purgeScheduledAt`) belongs to #1562 and is deliberately absent.
|
|
111
|
+
*/
|
|
112
|
+
deregisteredAt: z.date().nullish().isDBIndexed().excludeFromCreate().excludeFromUpdate().isHidden(),
|
|
57
113
|
createdAt: z.date().default(() => new Date()).isDBIndexed().isSummaryField().excludeFromCreate().excludeFromUpdate(),
|
|
58
114
|
updatedAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),
|
|
59
115
|
});
|
|
@@ -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;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEpE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAChB,WAAW,EAAE;SACb,QAAQ,CAAC,EAAE,wBAAwB,EAAE,2BAA2B,CAAC,uBAAuB,EAAE,CAAC;SAC3F,cAAc,EAAE;SAChB,iBAAiB,EAAE;IACtB,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;
|
|
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;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEpE,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,sBAYX;AAZD,WAAY,sBAAsB;IAChC,yGAAyG;IACzG,2CAAiB,CAAA;IAEjB;;;;;;OAMG;IACH,uDAA6B,CAAA;AAC/B,CAAC,EAZW,sBAAsB,KAAtB,sBAAsB,QAYjC;AAED,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;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAChB,WAAW,EAAE;SACb,QAAQ,CAAC,EAAE,wBAAwB,EAAE,2BAA2B,CAAC,uBAAuB,EAAE,CAAC;SAC3F,cAAc,EAAE;SAChB,iBAAiB,EAAE;IACtB,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;IAE7B;;;;;;;;;;OAUG;IACH,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC;SACnC,UAAU,CAAC,wBAAwB,CAAC;SACpC,OAAO,CAAC,sBAAsB,CAAC,MAAM,CAAC;SACtC,WAAW,EAAE;SACb,cAAc,EAAE;SAChB,iBAAiB,EAAE;SACnB,iBAAiB,EAAE;IAEtB;;;;;;;;;;OAUG;IACH,cAAc,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE;IAEnG,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","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\n/**\n * Whether the platform still schedules and serves this application (#1556).\n *\n * TWO members, and the pair is the whole point: an application is either live, or it has been\n * WITHDRAWN without anything of its being destroyed. There is deliberately no member meaning\n * \"destroyed\" — destruction is #1562 and is parked, so nothing in this vocabulary may be read as\n * authorising it.\n *\n * The shape is the one `Organization` already uses for a marked tenant — *authorization-dead and\n * data-alive* — one level up. That is not a coincidence to be tidied away later: a tenant and an\n * application are both things an operator must be able to take out of service without losing what\n * they contain, and the two should keep answering that question the same way.\n */\nexport enum WildoApplicationStatus {\n /** Scheduled, served, and re-registerable. The default and the state every application is created in. */\n ACTIVE = 'ACTIVE',\n\n /**\n * Withdrawn: the platform no longer schedules it, and its slug is refused for re-registration\n * until it is restored. **Nothing of its data is touched** — its database, broker vhost, cache\n * namespace, blobs and credentials are exactly as they were. `restore` returns it to\n * {@link WildoApplicationStatus.ACTIVE} and the next boot re-establishes its cron schedule from\n * its own code, because that schedule is DERIVED rather than stored authority.\n */\n DEREGISTERED = 'DEREGISTERED',\n}\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\n /**\n * Whether the platform still schedules and serves this application (#1556).\n *\n * Server-owned: written only by the deregister/restore lifecycle operations, never by a client\n * patch — the same posture `Organization.status` takes, and for the same reason. A field that any\n * UPDATE could set would let the withdrawal be performed by something that does not also withdraw\n * the cron schedule, which is the only part of a withdrawal that actually stops work happening.\n *\n * Defaulted rather than required so that every row written before this field existed reads as\n * {@link WildoApplicationStatus.ACTIVE}, which is what they are.\n */\n status: z.enum(WildoApplicationStatus)\n .systemEnum('WildoApplicationStatus')\n .default(WildoApplicationStatus.ACTIVE)\n .isDBIndexed()\n .isSummaryField()\n .excludeFromCreate()\n .excludeFromUpdate(),\n\n /**\n * When the application was withdrawn, or `null` while it is live.\n *\n * `.nullish()` because `restore` CLEARS it: a restored application is not \"deregistered a while\n * ago\", it is live, and a lingering timestamp would make every later reader decide for itself\n * which field wins. Existing rows legitimately have none.\n *\n * It is a record, not a deadline. There is no window here and nothing consumes it — an application\n * stays withdrawn until somebody restores it. The field that WOULD be a deadline\n * (`purgeScheduledAt`) belongs to #1562 and is deliberately absent.\n */\n deregisteredAt: z.date().nullish().isDBIndexed().excludeFromCreate().excludeFromUpdate().isHidden(),\n\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"]}
|