@shipfox/api-definitions-dto 11.0.0 → 12.2.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.
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 7 files with swc (192.76ms)
2
+ Successfully compiled: 7 files with swc (412.8ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @shipfox/api-definitions-dto
2
2
 
3
+ ## 12.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ce0984d]
8
+ - @shipfox/expression@2.1.0
9
+ - @shipfox/workflow-document@3.0.1
10
+
11
+ ## 12.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - adf07e7: Cut over workflow and job display names to literal-only `name` fields, with runtime interpolation supported through `run_name` and `execution_name`.
16
+
17
+ ### Minor Changes
18
+
19
+ - ee2ce67: Accept a `${{ }}` interpolation in an agent step's `thinking` field. The schema
20
+ still offers the per-harness enum for editor completion, and the dispatcher
21
+ checks the resolved value against the harness levels. An unsupported
22
+ resolved level fails the step.
23
+ - 5d2c9cf: Carry checkout steps from workflow normalization through step materialization and surface their setup error category.
24
+ - 89f2c18: Expose non-fatal definition validation warnings from the `/validate` response without
25
+ preventing workflow synchronization. Persistence and surfacing for repo-synced definitions
26
+ remain a follow-up.
27
+ - 9e1d599: Carry first-checkout intent through workflow normalization and step materialization for the upcoming runner checkout execution, including implicit-checkout suppression, checkout opt-out, and position-based primary checkout placement.
28
+ - 3f781ee: Add workflow run and job execution naming fields to the authoring, expression, and normalized definition contracts.
29
+ - 9fdd5e4: Persist definition validation warnings from repository syncs and surface them on the workflow page without changing sync success or run creation behavior.
30
+ - 35a42bd: Resolve run and agent step working directories against the runner job workspace.
31
+ - c2a8e54: Normalize checkout target fields for step-dispatch resolution, reject unsupported job-level checkout fields, and keep the workflow model and runtime checkout contracts aligned.
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [ee2ce67]
36
+ - Updated dependencies [7c4116e]
37
+ - Updated dependencies [e95fdf4]
38
+ - Updated dependencies [3d91d1d]
39
+ - Updated dependencies [045895c]
40
+ - Updated dependencies [f78740d]
41
+ - Updated dependencies [dea1ffd]
42
+ - Updated dependencies [adf07e7]
43
+ - Updated dependencies [3f781ee]
44
+ - Updated dependencies [285fff2]
45
+ - Updated dependencies [4d246d4]
46
+ - Updated dependencies [4444079]
47
+ - Updated dependencies [d77baaa]
48
+ - Updated dependencies [41d558c]
49
+ - Updated dependencies [032d316]
50
+ - Updated dependencies [c2a8e54]
51
+ - Updated dependencies [cb0abfa]
52
+ - Updated dependencies [ee2ce67]
53
+ - Updated dependencies [7f90b0c]
54
+ - @shipfox/workflow-document@3.0.0
55
+ - @shipfox/expression@2.0.0
56
+ - @shipfox/inter-module@0.2.3
57
+
3
58
  ## 11.0.0
4
59
 
5
60
  ### Patch Changes
package/dist/events.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- export declare const DEFINITION_RESOLVED: "definitions.definition.resolved";
3
- export declare const DEFINITION_DELETED: "definitions.definition.deleted";
4
- export declare const DEFINITION_INVALID: "definitions.definition.invalid";
2
+ export declare const DEFINITION_RESOLVED: 'definitions.definition.resolved';
3
+ export declare const DEFINITION_DELETED: 'definitions.definition.deleted';
4
+ export declare const DEFINITION_INVALID: 'definitions.definition.invalid';
5
5
  export declare const definitionResolvedEventSchema: z.ZodObject<{
6
6
  definitionId: z.ZodString;
7
7
  projectId: z.ZodString;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { type CreateDefinitionBodyDto, createDefinitionBodySchema, type DefinitionDto, type DefinitionListQueryDto, type DefinitionListResponseDto, type DefinitionResponseDto, type DefinitionSyncSummaryDto, type DefinitionValidationErrorDto, definitionDtoSchema, definitionListQuerySchema, definitionListResponseSchema, definitionResponseSchema, definitionSyncSummarySchema, definitionValidationErrorSchema, type TriggerDto, } from '#schemas/index.js';
1
+ export { type CreateDefinitionBodyDto, createDefinitionBodySchema, DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH, DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH, DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH, DEFINITION_SYNC_WARNINGS_MAX_COUNT, type DefinitionDto, type DefinitionListQueryDto, type DefinitionListResponseDto, type DefinitionResponseDto, type DefinitionSyncSummaryDto, type DefinitionValidationErrorDto, type DefinitionValidationWarningDto, definitionDtoSchema, definitionListQuerySchema, definitionListResponseSchema, definitionResponseSchema, definitionSyncSummarySchema, definitionValidationErrorSchema, definitionValidationWarningSchema, type TriggerDto, } from '#schemas/index.js';
2
2
  export { DEFINITION_DELETED, DEFINITION_INVALID, DEFINITION_RESOLVED, type DefinitionDeletedEvent, type DefinitionInvalidEvent, type DefinitionResolvedEvent, type DefinitionsEventMap, definitionDeletedEventSchema, definitionInvalidEventSchema, definitionResolvedEventSchema, definitionsEventSchemas, } from './events.js';
3
3
  export type * from './workflow-model.js';
4
- export { createWorkflowModelSnapshot, DEFAULT_JOB_CHECKOUT, DEFAULT_JOB_SUCCESS, DEFAULT_RUN_TIMEOUT_MS, readPersistedWorkflowModel, workflowModelFromSnapshot, workflowModelSnapshotSchema, } from './workflow-model.js';
4
+ export { createWorkflowModelSnapshot, DEFAULT_JOB_CHECKOUT, DEFAULT_JOB_SUCCESS, DEFAULT_RUN_TIMEOUT_MS, readPersistedWorkflowModel, WORKFLOW_MODEL_CHECKOUT_TARGET_FIELDS, workflowModelFromSnapshot, workflowModelSnapshotSchema, } from './workflow-model.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,0BAA0B,EAC1B,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EA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M,aAAa,CAAC;AACrB,mBAAmB,qBAAqB,CAAC;AACzC,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,qCAAqC,EACrC,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { createDefinitionBodySchema, definitionDtoSchema, definitionListQuerySchema, definitionListResponseSchema, definitionResponseSchema, definitionSyncSummarySchema, definitionValidationErrorSchema } from '#schemas/index.js';
1
+ export { createDefinitionBodySchema, DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH, DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH, DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH, DEFINITION_SYNC_WARNINGS_MAX_COUNT, definitionDtoSchema, definitionListQuerySchema, definitionListResponseSchema, definitionResponseSchema, definitionSyncSummarySchema, definitionValidationErrorSchema, definitionValidationWarningSchema } from '#schemas/index.js';
2
2
  export { DEFINITION_DELETED, DEFINITION_INVALID, DEFINITION_RESOLVED, definitionDeletedEventSchema, definitionInvalidEventSchema, definitionResolvedEventSchema, definitionsEventSchemas } from './events.js';
3
- export { createWorkflowModelSnapshot, DEFAULT_JOB_CHECKOUT, DEFAULT_JOB_SUCCESS, DEFAULT_RUN_TIMEOUT_MS, readPersistedWorkflowModel, workflowModelFromSnapshot, workflowModelSnapshotSchema } from './workflow-model.js';
3
+ export { createWorkflowModelSnapshot, DEFAULT_JOB_CHECKOUT, DEFAULT_JOB_SUCCESS, DEFAULT_RUN_TIMEOUT_MS, readPersistedWorkflowModel, WORKFLOW_MODEL_CHECKOUT_TARGET_FIELDS, workflowModelFromSnapshot, workflowModelSnapshotSchema } from './workflow-model.js';
4
4
 
5
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type CreateDefinitionBodyDto,\n createDefinitionBodySchema,\n type DefinitionDto,\n type DefinitionListQueryDto,\n type DefinitionListResponseDto,\n type DefinitionResponseDto,\n type DefinitionSyncSummaryDto,\n type DefinitionValidationErrorDto,\n definitionDtoSchema,\n definitionListQuerySchema,\n definitionListResponseSchema,\n definitionResponseSchema,\n definitionSyncSummarySchema,\n definitionValidationErrorSchema,\n type TriggerDto,\n} from '#schemas/index.js';\nexport {\n DEFINITION_DELETED,\n DEFINITION_INVALID,\n DEFINITION_RESOLVED,\n type DefinitionDeletedEvent,\n type DefinitionInvalidEvent,\n type DefinitionResolvedEvent,\n type DefinitionsEventMap,\n definitionDeletedEventSchema,\n definitionInvalidEventSchema,\n definitionResolvedEventSchema,\n definitionsEventSchemas,\n} from './events.js';\nexport type * from './workflow-model.js';\nexport {\n createWorkflowModelSnapshot,\n DEFAULT_JOB_CHECKOUT,\n DEFAULT_JOB_SUCCESS,\n DEFAULT_RUN_TIMEOUT_MS,\n readPersistedWorkflowModel,\n workflowModelFromSnapshot,\n workflowModelSnapshotSchema,\n} from './workflow-model.js';\n"],"names":["createDefinitionBodySchema","definitionDtoSchema","definitionListQuerySchema","definitionListResponseSchema","definitionResponseSchema","definitionSyncSummarySchema","definitionValidationErrorSchema","DEFINITION_DELETED","DEFINITION_INVALID","DEFINITION_RESOLVED","definitionDeletedEventSchema","definitionInvalidEventSchema","definitionResolvedEventSchema","definitionsEventSchemas","createWorkflowModelSnapshot","DEFAULT_JOB_CHECKOUT","DEFAULT_JOB_SUCCESS","DEFAULT_RUN_TIMEOUT_MS","readPersistedWorkflowModel","workflowModelFromSnapshot","workflowModelSnapshotSchema"],"mappings":"AAAA,SAEEA,0BAA0B,EAO1BC,mBAAmB,EACnBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,wBAAwB,EACxBC,2BAA2B,EAC3BC,+BAA+B,QAE1B,oBAAoB;AAC3B,SACEC,kBAAkB,EAClBC,kBAAkB,EAClBC,mBAAmB,EAKnBC,4BAA4B,EAC5BC,4BAA4B,EAC5BC,6BAA6B,EAC7BC,uBAAuB,QAClB,cAAc;AAErB,SACEC,2BAA2B,EAC3BC,oBAAoB,EACpBC,mBAAmB,EACnBC,sBAAsB,EACtBC,0BAA0B,EAC1BC,yBAAyB,EACzBC,2BAA2B,QACtB,sBAAsB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type CreateDefinitionBodyDto,\n createDefinitionBodySchema,\n DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH,\n DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH,\n DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH,\n DEFINITION_SYNC_WARNINGS_MAX_COUNT,\n type DefinitionDto,\n type DefinitionListQueryDto,\n type DefinitionListResponseDto,\n type DefinitionResponseDto,\n type DefinitionSyncSummaryDto,\n type DefinitionValidationErrorDto,\n type DefinitionValidationWarningDto,\n definitionDtoSchema,\n definitionListQuerySchema,\n definitionListResponseSchema,\n definitionResponseSchema,\n definitionSyncSummarySchema,\n definitionValidationErrorSchema,\n definitionValidationWarningSchema,\n type TriggerDto,\n} from '#schemas/index.js';\nexport {\n DEFINITION_DELETED,\n DEFINITION_INVALID,\n DEFINITION_RESOLVED,\n type DefinitionDeletedEvent,\n type DefinitionInvalidEvent,\n type DefinitionResolvedEvent,\n type DefinitionsEventMap,\n definitionDeletedEventSchema,\n definitionInvalidEventSchema,\n definitionResolvedEventSchema,\n definitionsEventSchemas,\n} from './events.js';\nexport type * from './workflow-model.js';\nexport {\n createWorkflowModelSnapshot,\n DEFAULT_JOB_CHECKOUT,\n DEFAULT_JOB_SUCCESS,\n DEFAULT_RUN_TIMEOUT_MS,\n readPersistedWorkflowModel,\n WORKFLOW_MODEL_CHECKOUT_TARGET_FIELDS,\n workflowModelFromSnapshot,\n workflowModelSnapshotSchema,\n} from './workflow-model.js';\n"],"names":["createDefinitionBodySchema","DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH","DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH","DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH","DEFINITION_SYNC_WARNINGS_MAX_COUNT","definitionDtoSchema","definitionListQuerySchema","definitionListResponseSchema","definitionResponseSchema","definitionSyncSummarySchema","definitionValidationErrorSchema","definitionValidationWarningSchema","DEFINITION_DELETED","DEFINITION_INVALID","DEFINITION_RESOLVED","definitionDeletedEventSchema","definitionInvalidEventSchema","definitionResolvedEventSchema","definitionsEventSchemas","createWorkflowModelSnapshot","DEFAULT_JOB_CHECKOUT","DEFAULT_JOB_SUCCESS","DEFAULT_RUN_TIMEOUT_MS","readPersistedWorkflowModel","WORKFLOW_MODEL_CHECKOUT_TARGET_FIELDS","workflowModelFromSnapshot","workflowModelSnapshotSchema"],"mappings":"AAAA,SAEEA,0BAA0B,EAC1BC,uCAAuC,EACvCC,0CAA0C,EAC1CC,uCAAuC,EACvCC,kCAAkC,EAQlCC,mBAAmB,EACnBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,wBAAwB,EACxBC,2BAA2B,EAC3BC,+BAA+B,EAC/BC,iCAAiC,QAE5B,oBAAoB;AAC3B,SACEC,kBAAkB,EAClBC,kBAAkB,EAClBC,mBAAmB,EAKnBC,4BAA4B,EAC5BC,4BAA4B,EAC5BC,6BAA6B,EAC7BC,uBAAuB,QAClB,cAAc;AAErB,SACEC,2BAA2B,EAC3BC,oBAAoB,EACpBC,mBAAmB,EACnBC,sBAAsB,EACtBC,0BAA0B,EAC1BC,qCAAqC,EACrCC,yBAAyB,EACzBC,2BAA2B,QACtB,sBAAsB"}
@@ -5,7 +5,7 @@ declare const definitionSnapshotSchema: z.ZodObject<{
5
5
  projectId: z.ZodString;
6
6
  name: z.ZodString;
7
7
  model: z.ZodObject<{
8
- version: z.ZodLiteral<1>;
8
+ version: z.ZodLiteral<2>;
9
9
  model: z.ZodCustom<import("./workflow-model.js").WorkflowModel, import("./workflow-model.js").WorkflowModel>;
10
10
  }, z.core.$strip>;
11
11
  sourceSnapshot: z.ZodNullable<z.ZodObject<{
@@ -16,17 +16,17 @@ declare const definitionSnapshotSchema: z.ZodObject<{
16
16
  export declare const definitionsInterModuleContract: import("@shipfox/inter-module").InterModuleContract<{
17
17
  readonly module: "definitions";
18
18
  readonly methods: {
19
- readonly getDefinitionForWorkflowRun: {
20
- readonly input: z.ZodObject<{
19
+ getDefinitionForWorkflowRun: {
20
+ input: z.ZodObject<{
21
21
  definitionId: z.ZodString;
22
22
  }, z.core.$strip>;
23
- readonly output: z.ZodObject<{
23
+ output: z.ZodObject<{
24
24
  definition: z.ZodNullable<z.ZodObject<{
25
25
  id: z.ZodString;
26
26
  projectId: z.ZodString;
27
27
  name: z.ZodString;
28
28
  model: z.ZodObject<{
29
- version: z.ZodLiteral<1>;
29
+ version: z.ZodLiteral<2>;
30
30
  model: z.ZodCustom<import("./workflow-model.js").WorkflowModel, import("./workflow-model.js").WorkflowModel>;
31
31
  }, z.core.$strip>;
32
32
  sourceSnapshot: z.ZodNullable<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,QAAA,MAAM,wBAAwB;;;;;;;;;;;;iBAM5B,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;EAQzC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACpG,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,QAAA,MAAM,wBAAwB;;;;;;;;;;;;iBAM5B,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;QAGvC,2BAA2B;YACzB,KAAK;;;YACL,MAAM;;;;;;;;;;;;;;;;;EAGV,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACpG,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -1,4 +1,8 @@
1
1
  import { z } from 'zod';
2
+ export declare const DEFINITION_SYNC_WARNINGS_MAX_COUNT = 100;
3
+ export declare const DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH = 128;
4
+ export declare const DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH = 2048;
5
+ export declare const DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH = 512;
2
6
  export declare const createDefinitionBodySchema: z.ZodObject<{
3
7
  project_id: z.ZodString;
4
8
  config_path: z.ZodOptional<z.ZodString>;
@@ -58,6 +62,12 @@ export declare const definitionValidationErrorSchema: z.ZodObject<{
58
62
  path: z.ZodOptional<z.ZodString>;
59
63
  }, z.core.$strip>;
60
64
  export type DefinitionValidationErrorDto = z.infer<typeof definitionValidationErrorSchema>;
65
+ export declare const definitionValidationWarningSchema: z.ZodObject<{
66
+ code: z.ZodString;
67
+ message: z.ZodString;
68
+ path: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>;
70
+ export type DefinitionValidationWarningDto = z.infer<typeof definitionValidationWarningSchema>;
61
71
  export declare const definitionListQuerySchema: z.ZodObject<{
62
72
  project_id: z.ZodString;
63
73
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -67,30 +77,35 @@ export type DefinitionListQueryDto = z.infer<typeof definitionListQuerySchema>;
67
77
  export declare const definitionSyncSummarySchema: z.ZodObject<{
68
78
  ref: z.ZodNullable<z.ZodString>;
69
79
  status: z.ZodEnum<{
80
+ failed: "failed";
70
81
  pending: "pending";
71
- syncing: "syncing";
72
82
  succeeded: "succeeded";
73
- failed: "failed";
83
+ syncing: "syncing";
74
84
  }>;
75
85
  last_sync_at: z.ZodString;
76
86
  started_at: z.ZodNullable<z.ZodString>;
77
87
  finished_at: z.ZodNullable<z.ZodString>;
78
88
  last_error_code: z.ZodNullable<z.ZodEnum<{
79
- unknown: "unknown";
80
- "no-workflow-files": "no-workflow-files";
89
+ "connection-unavailable": "connection-unavailable";
90
+ "content-too-large": "content-too-large";
81
91
  "invalid-definition": "invalid-definition";
82
- "provider-repository-not-found": "provider-repository-not-found";
83
- "provider-file-not-found": "provider-file-not-found";
92
+ "no-workflow-files": "no-workflow-files";
84
93
  "provider-access-denied": "provider-access-denied";
94
+ "provider-file-not-found": "provider-file-not-found";
95
+ "provider-malformed-response": "provider-malformed-response";
85
96
  "provider-rate-limited": "provider-rate-limited";
97
+ "provider-repository-not-found": "provider-repository-not-found";
86
98
  "provider-timeout": "provider-timeout";
87
99
  "provider-unavailable": "provider-unavailable";
88
- "provider-malformed-response": "provider-malformed-response";
89
- "content-too-large": "content-too-large";
90
100
  "too-many-files": "too-many-files";
91
- "connection-unavailable": "connection-unavailable";
101
+ unknown: "unknown";
92
102
  }>>;
93
103
  last_error_message: z.ZodNullable<z.ZodString>;
104
+ warnings: z.ZodArray<z.ZodObject<{
105
+ code: z.ZodString;
106
+ message: z.ZodString;
107
+ path: z.ZodOptional<z.ZodString>;
108
+ }, z.core.$strip>>;
94
109
  }, z.core.$strip>;
95
110
  export type DefinitionSyncSummaryDto = z.infer<typeof definitionSyncSummarySchema>;
96
111
  export declare const definitionListResponseSchema: z.ZodObject<{
@@ -117,30 +132,35 @@ export declare const definitionListResponseSchema: z.ZodObject<{
117
132
  sync: z.ZodNullable<z.ZodObject<{
118
133
  ref: z.ZodNullable<z.ZodString>;
119
134
  status: z.ZodEnum<{
135
+ failed: "failed";
120
136
  pending: "pending";
121
- syncing: "syncing";
122
137
  succeeded: "succeeded";
123
- failed: "failed";
138
+ syncing: "syncing";
124
139
  }>;
125
140
  last_sync_at: z.ZodString;
126
141
  started_at: z.ZodNullable<z.ZodString>;
127
142
  finished_at: z.ZodNullable<z.ZodString>;
128
143
  last_error_code: z.ZodNullable<z.ZodEnum<{
129
- unknown: "unknown";
130
- "no-workflow-files": "no-workflow-files";
144
+ "connection-unavailable": "connection-unavailable";
145
+ "content-too-large": "content-too-large";
131
146
  "invalid-definition": "invalid-definition";
132
- "provider-repository-not-found": "provider-repository-not-found";
133
- "provider-file-not-found": "provider-file-not-found";
147
+ "no-workflow-files": "no-workflow-files";
134
148
  "provider-access-denied": "provider-access-denied";
149
+ "provider-file-not-found": "provider-file-not-found";
150
+ "provider-malformed-response": "provider-malformed-response";
135
151
  "provider-rate-limited": "provider-rate-limited";
152
+ "provider-repository-not-found": "provider-repository-not-found";
136
153
  "provider-timeout": "provider-timeout";
137
154
  "provider-unavailable": "provider-unavailable";
138
- "provider-malformed-response": "provider-malformed-response";
139
- "content-too-large": "content-too-large";
140
155
  "too-many-files": "too-many-files";
141
- "connection-unavailable": "connection-unavailable";
156
+ unknown: "unknown";
142
157
  }>>;
143
158
  last_error_message: z.ZodNullable<z.ZodString>;
159
+ warnings: z.ZodArray<z.ZodObject<{
160
+ code: z.ZodString;
161
+ message: z.ZodString;
162
+ path: z.ZodOptional<z.ZodString>;
163
+ }, z.core.$strip>>;
144
164
  }, z.core.$strip>>;
145
165
  next_cursor: z.ZodNullable<z.ZodString>;
146
166
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../src/schemas/dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAiCnC,CAAC;AAEL,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,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+ export const DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH = 128;
4
+ export const DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH = 2048;
5
+ export const DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH = 512;
2
6
  export const createDefinitionBodySchema = z.object({
3
7
  project_id: z.string().uuid(),
4
8
  config_path: z.string().min(1).optional(),
@@ -67,6 +71,11 @@ export const definitionValidationErrorSchema = z.object({
67
71
  message: z.string(),
68
72
  path: z.string().optional()
69
73
  });
74
+ export const definitionValidationWarningSchema = z.object({
75
+ code: z.string().max(DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH),
76
+ message: z.string().max(DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH),
77
+ path: z.string().max(DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH).optional()
78
+ });
70
79
  export const definitionListQuerySchema = z.object({
71
80
  project_id: z.string().uuid(),
72
81
  limit: z.coerce.number().int().min(1).max(100).default(50),
@@ -98,7 +107,8 @@ export const definitionSyncSummarySchema = z.object({
98
107
  'connection-unavailable',
99
108
  'unknown'
100
109
  ]).nullable(),
101
- last_error_message: z.string().nullable()
110
+ last_error_message: z.string().nullable(),
111
+ warnings: z.array(definitionValidationWarningSchema).max(DEFINITION_SYNC_WARNINGS_MAX_COUNT)
102
112
  });
103
113
  export const definitionListResponseSchema = z.object({
104
114
  definitions: z.array(definitionResponseSchema),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/dto.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const createDefinitionBodySchema = z\n .object({\n project_id: z.string().uuid(),\n config_path: z.string().min(1).optional(),\n source: z.enum(['manual', 'vcs']).optional(),\n yaml: z.string().min(1).max(1_000_000),\n sha: z.string().optional(),\n ref: z.string().optional(),\n })\n .superRefine((value, ctx) => {\n const source = value.source ?? 'manual';\n if (source === 'vcs' && !value.config_path) {\n ctx.addIssue({\n code: 'custom',\n message: 'config_path is required for VCS definitions',\n path: ['config_path'],\n });\n }\n const hasRefOrSha = value.ref != null || value.sha != null;\n if (source === 'vcs' && !hasRefOrSha) {\n ctx.addIssue({\n code: 'custom',\n message: 'VCS definitions require a ref or sha',\n path: ['ref'],\n });\n }\n if (source === 'manual' && hasRefOrSha) {\n ctx.addIssue({\n code: 'custom',\n message: 'manual definitions must not set ref or sha',\n path: value.ref != null ? ['ref'] : ['sha'],\n });\n }\n });\n\nexport type CreateDefinitionBodyDto = z.infer<typeof createDefinitionBodySchema>;\n\nexport const definitionDtoSchema = z.object({\n id: z.string().uuid(),\n project_id: z.string().uuid(),\n config_path: z.string().nullable(),\n source: z.enum(['manual', 'vcs']),\n sha: z.string().nullable(),\n ref: z.string().nullable(),\n name: z.string(),\n workflow_document: z.unknown(),\n workflow_model: z.unknown(),\n manual_trigger: z\n .object({\n name: z.string(),\n })\n .nullable(),\n fetched_at: z.string(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type DefinitionDto = z.infer<typeof definitionDtoSchema>;\n\nexport const definitionResponseSchema = definitionDtoSchema;\n\nexport type DefinitionResponseDto = z.infer<typeof definitionResponseSchema>;\n\nexport const definitionValidationErrorSchema = z.object({\n message: z.string(),\n path: z.string().optional(),\n});\n\nexport type DefinitionValidationErrorDto = z.infer<typeof definitionValidationErrorSchema>;\n\nexport const definitionListQuerySchema = z.object({\n project_id: z.string().uuid(),\n limit: z.coerce.number().int().min(1).max(100).default(50),\n cursor: z.string().optional(),\n});\n\nexport type DefinitionListQueryDto = z.infer<typeof definitionListQuerySchema>;\n\nexport const definitionSyncSummarySchema = z.object({\n ref: z.string().nullable(),\n status: z.enum(['pending', 'syncing', 'succeeded', 'failed']),\n last_sync_at: z.string(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n last_error_code: z\n .enum([\n 'no-workflow-files',\n 'invalid-definition',\n 'provider-repository-not-found',\n 'provider-file-not-found',\n 'provider-access-denied',\n 'provider-rate-limited',\n 'provider-timeout',\n 'provider-unavailable',\n 'provider-malformed-response',\n 'content-too-large',\n 'too-many-files',\n 'connection-unavailable',\n 'unknown',\n ])\n .nullable(),\n last_error_message: z.string().nullable(),\n});\n\nexport type DefinitionSyncSummaryDto = z.infer<typeof definitionSyncSummarySchema>;\n\nexport const definitionListResponseSchema = z.object({\n definitions: z.array(definitionResponseSchema),\n sync: definitionSyncSummarySchema.nullable(),\n next_cursor: z.string().nullable(),\n});\n\nexport type DefinitionListResponseDto = z.infer<typeof definitionListResponseSchema>;\n"],"names":["z","createDefinitionBodySchema","object","project_id","string","uuid","config_path","min","optional","source","enum","yaml","max","sha","ref","superRefine","value","ctx","addIssue","code","message","path","hasRefOrSha","definitionDtoSchema","id","nullable","name","workflow_document","unknown","workflow_model","manual_trigger","fetched_at","created_at","updated_at","definitionResponseSchema","definitionValidationErrorSchema","definitionListQuerySchema","limit","coerce","number","int","default","cursor","definitionSyncSummarySchema","status","last_sync_at","started_at","finished_at","last_error_code","last_error_message","definitionListResponseSchema","definitions","array","sync","next_cursor"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,6BAA6BD,EACvCE,MAAM,CAAC;IACNC,YAAYH,EAAEI,MAAM,GAAGC,IAAI;IAC3BC,aAAaN,EAAEI,MAAM,GAAGG,GAAG,CAAC,GAAGC,QAAQ;IACvCC,QAAQT,EAAEU,IAAI,CAAC;QAAC;QAAU;KAAM,EAAEF,QAAQ;IAC1CG,MAAMX,EAAEI,MAAM,GAAGG,GAAG,CAAC,GAAGK,GAAG,CAAC;IAC5BC,KAAKb,EAAEI,MAAM,GAAGI,QAAQ;IACxBM,KAAKd,EAAEI,MAAM,GAAGI,QAAQ;AAC1B,GACCO,WAAW,CAAC,CAACC,OAAOC;IACnB,MAAMR,SAASO,MAAMP,MAAM,IAAI;IAC/B,IAAIA,WAAW,SAAS,CAACO,MAAMV,WAAW,EAAE;QAC1CW,IAAIC,QAAQ,CAAC;YACXC,MAAM;YACNC,SAAS;YACTC,MAAM;gBAAC;aAAc;QACvB;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AI;IAC3BgC,OAAOrC,EAAEsC,MAAM,CAACC,MAAM,GAAGC,GAAG,GAAGjC,GAAG,CAAC,GAAGK,GAAG,CAAC,KAAK6B,OAAO,CAAC;IACvDC,QAAQ1C,EAAEI,MAAM,GAAGI,QAAQ;AAC7B,GAAG;AAIH,OAAO,MAAMmC,8BAA8B3C,EAAEE,MAAM,CAAC;IAClDY,KAAKd,EAAEI,MAAM,GAAGqB,QAAQ;IACxBmB,QAAQ5C,EAAEU,IAAI,CAAC;QAAC;QAAW;QAAW;QAAa;KAAS;IAC5DmC,cAAc7C,EAAEI,MAAM;IACtB0C,YAAY9C,EAAEI,MAAM,GAAGqB,QAAQ;IAC/BsB,aAAa/C,EAAEI,MAAM,GAAGqB,QAAQ;IAChCuB,iBAAiBhD,EACdU,IAAI,CAAC;QACJ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD,EACAe,QAAQ;IACXwB,oBAAoBjD,EAAEI,MAAM,GAAGqB,QAAQ;AACzC,GAAG;AAIH,OAAO,MAAMyB,+BAA+BlD,EAAEE,MAAM,CAAC;IACnDiD,aAAanD,EAAEoD,KAAK,CAAClB;IACrBmB,MAAMV,4BAA4BlB,QAAQ;IAC1C6B,aAAatD,EAAEI,MAAM,GAAGqB,QAAQ;AAClC,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/dto.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const DEFINITION_SYNC_WARNINGS_MAX_COUNT = 100;\nexport const DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH = 128;\nexport const DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH = 2048;\nexport const DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH = 512;\n\nexport const createDefinitionBodySchema = z\n .object({\n project_id: z.string().uuid(),\n config_path: z.string().min(1).optional(),\n source: z.enum(['manual', 'vcs']).optional(),\n yaml: z.string().min(1).max(1_000_000),\n sha: z.string().optional(),\n ref: z.string().optional(),\n })\n .superRefine((value, ctx) => {\n const source = value.source ?? 'manual';\n if (source === 'vcs' && !value.config_path) {\n ctx.addIssue({\n code: 'custom',\n message: 'config_path is required for VCS definitions',\n path: ['config_path'],\n });\n }\n const hasRefOrSha = value.ref != null || value.sha != null;\n if (source === 'vcs' && !hasRefOrSha) {\n ctx.addIssue({\n code: 'custom',\n message: 'VCS definitions require a ref or sha',\n path: ['ref'],\n });\n }\n if (source === 'manual' && hasRefOrSha) {\n ctx.addIssue({\n code: 'custom',\n message: 'manual definitions must not set ref or sha',\n path: value.ref != null ? ['ref'] : ['sha'],\n });\n }\n });\n\nexport type CreateDefinitionBodyDto = z.infer<typeof createDefinitionBodySchema>;\n\nexport const definitionDtoSchema = z.object({\n id: z.string().uuid(),\n project_id: z.string().uuid(),\n config_path: z.string().nullable(),\n source: z.enum(['manual', 'vcs']),\n sha: z.string().nullable(),\n ref: z.string().nullable(),\n name: z.string(),\n workflow_document: z.unknown(),\n workflow_model: z.unknown(),\n manual_trigger: z\n .object({\n name: z.string(),\n })\n .nullable(),\n fetched_at: z.string(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type DefinitionDto = z.infer<typeof definitionDtoSchema>;\n\nexport const definitionResponseSchema = definitionDtoSchema;\n\nexport type DefinitionResponseDto = z.infer<typeof definitionResponseSchema>;\n\nexport const definitionValidationErrorSchema = z.object({\n message: z.string(),\n path: z.string().optional(),\n});\n\nexport type DefinitionValidationErrorDto = z.infer<typeof definitionValidationErrorSchema>;\n\nexport const definitionValidationWarningSchema = z.object({\n code: z.string().max(DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH),\n message: z.string().max(DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH),\n path: z.string().max(DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH).optional(),\n});\n\nexport type DefinitionValidationWarningDto = z.infer<typeof definitionValidationWarningSchema>;\n\nexport const definitionListQuerySchema = z.object({\n project_id: z.string().uuid(),\n limit: z.coerce.number().int().min(1).max(100).default(50),\n cursor: z.string().optional(),\n});\n\nexport type DefinitionListQueryDto = z.infer<typeof definitionListQuerySchema>;\n\nexport const definitionSyncSummarySchema = z.object({\n ref: z.string().nullable(),\n status: z.enum(['pending', 'syncing', 'succeeded', 'failed']),\n last_sync_at: z.string(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n last_error_code: z\n .enum([\n 'no-workflow-files',\n 'invalid-definition',\n 'provider-repository-not-found',\n 'provider-file-not-found',\n 'provider-access-denied',\n 'provider-rate-limited',\n 'provider-timeout',\n 'provider-unavailable',\n 'provider-malformed-response',\n 'content-too-large',\n 'too-many-files',\n 'connection-unavailable',\n 'unknown',\n ])\n .nullable(),\n last_error_message: z.string().nullable(),\n warnings: z.array(definitionValidationWarningSchema).max(DEFINITION_SYNC_WARNINGS_MAX_COUNT),\n});\n\nexport type DefinitionSyncSummaryDto = z.infer<typeof definitionSyncSummarySchema>;\n\nexport const definitionListResponseSchema = z.object({\n definitions: z.array(definitionResponseSchema),\n sync: definitionSyncSummarySchema.nullable(),\n next_cursor: z.string().nullable(),\n});\n\nexport type DefinitionListResponseDto = z.infer<typeof definitionListResponseSchema>;\n"],"names":["z","DEFINITION_SYNC_WARNINGS_MAX_COUNT","DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH","DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH","DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH","createDefinitionBodySchema","object","project_id","string","uuid","config_path","min","optional","source","enum","yaml","max","sha","ref","superRefine","value","ctx","addIssue","code","message","path","hasRefOrSha","definitionDtoSchema","id","nullable","name","workflow_document","unknown","workflow_model","manual_trigger","fetched_at","created_at","updated_at","definitionResponseSchema","definitionValidationErrorSchema","definitionValidationWarningSchema","definitionListQuerySchema","limit","coerce","number","int","default","cursor","definitionSyncSummarySchema","status","last_sync_at","started_at","finished_at","last_error_code","last_error_message","warnings","array","definitionListResponseSchema","definitions","sync","next_cursor"],"mappings":"AAAA,SAAQA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C;IAClDY,KAAKlB,EAAEQ,MAAM,GAAGqB,QAAQ;IACxBoB,QAAQjD,EAAEc,IAAI,CAAC;QAAC;QAAW;QAAW;QAAa;KAAS;IAC5DoC,cAAclD,EAAEQ,MAAM;IACtB2C,YAAYnD,EAAEQ,MAAM,GAAGqB,QAAQ;IAC/BuB,aAAapD,EAAEQ,MAAM,GAAGqB,QAAQ;IAChCwB,iBAAiBrD,EACdc,IAAI,CAAC;QACJ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD,EACAe,QAAQ;IACXyB,oBAAoBtD,EAAEQ,MAAM,GAAGqB,QAAQ;IACvC0B,UAAUvD,EAAEwD,KAAK,CAAChB,mCAAmCxB,GAAG,CAACf;AAC3D,GAAG;AAIH,OAAO,MAAMwD,+BAA+BzD,EAAEM,MAAM,CAAC;IACnDoD,aAAa1D,EAAEwD,KAAK,CAAClB;IACrBqB,MAAMX,4BAA4BnB,QAAQ;IAC1C+B,aAAa5D,EAAEQ,MAAM,GAAGqB,QAAQ;AAClC,GAAG"}
@@ -1,3 +1,3 @@
1
- export { type CreateDefinitionBodyDto, createDefinitionBodySchema, type DefinitionDto, type DefinitionListQueryDto, type DefinitionListResponseDto, type DefinitionResponseDto, type DefinitionSyncSummaryDto, type DefinitionValidationErrorDto, definitionDtoSchema, definitionListQuerySchema, definitionListResponseSchema, definitionResponseSchema, definitionSyncSummarySchema, definitionValidationErrorSchema, } from './dto.js';
1
+ export { type CreateDefinitionBodyDto, createDefinitionBodySchema, DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH, DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH, DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH, DEFINITION_SYNC_WARNINGS_MAX_COUNT, type DefinitionDto, type DefinitionListQueryDto, type DefinitionListResponseDto, type DefinitionResponseDto, type DefinitionSyncSummaryDto, type DefinitionValidationErrorDto, type DefinitionValidationWarningDto, definitionDtoSchema, definitionListQuerySchema, definitionListResponseSchema, definitionResponseSchema, definitionSyncSummarySchema, definitionValidationErrorSchema, definitionValidationWarningSchema, } from './dto.js';
2
2
  export type { TriggerDto } from './trigger.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,0BAA0B,EAC1B,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,mBAAmB,EACnB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,UAAU,CAAC;AAClB,YAAY,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,0BAA0B,EAC1B,uCAAuC,EACvC,0CAA0C,EAC1C,uCAAuC,EACvC,kCAAkC,EAClC,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,mBAAmB,EACnB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,2BAA2B,EAC3B,+BAA+B,EAC/B,iCAAiC,GAClC,MAAM,UAAU,CAAC;AAClB,YAAY,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC"}
@@ -1,3 +1,3 @@
1
- export { createDefinitionBodySchema, definitionDtoSchema, definitionListQuerySchema, definitionListResponseSchema, definitionResponseSchema, definitionSyncSummarySchema, definitionValidationErrorSchema } from './dto.js';
1
+ export { createDefinitionBodySchema, DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH, DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH, DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH, DEFINITION_SYNC_WARNINGS_MAX_COUNT, definitionDtoSchema, definitionListQuerySchema, definitionListResponseSchema, definitionResponseSchema, definitionSyncSummarySchema, definitionValidationErrorSchema, definitionValidationWarningSchema } from './dto.js';
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type CreateDefinitionBodyDto,\n createDefinitionBodySchema,\n type DefinitionDto,\n type DefinitionListQueryDto,\n type DefinitionListResponseDto,\n type DefinitionResponseDto,\n type DefinitionSyncSummaryDto,\n type DefinitionValidationErrorDto,\n definitionDtoSchema,\n definitionListQuerySchema,\n definitionListResponseSchema,\n definitionResponseSchema,\n definitionSyncSummarySchema,\n definitionValidationErrorSchema,\n} from './dto.js';\nexport type {TriggerDto} from './trigger.js';\n"],"names":["createDefinitionBodySchema","definitionDtoSchema","definitionListQuerySchema","definitionListResponseSchema","definitionResponseSchema","definitionSyncSummarySchema","definitionValidationErrorSchema"],"mappings":"AAAA,SAEEA,0BAA0B,EAO1BC,mBAAmB,EACnBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,wBAAwB,EACxBC,2BAA2B,EAC3BC,+BAA+B,QAC1B,WAAW"}
1
+ {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type CreateDefinitionBodyDto,\n createDefinitionBodySchema,\n DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH,\n DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH,\n DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH,\n DEFINITION_SYNC_WARNINGS_MAX_COUNT,\n type DefinitionDto,\n type DefinitionListQueryDto,\n type DefinitionListResponseDto,\n type DefinitionResponseDto,\n type DefinitionSyncSummaryDto,\n type DefinitionValidationErrorDto,\n type DefinitionValidationWarningDto,\n definitionDtoSchema,\n definitionListQuerySchema,\n definitionListResponseSchema,\n definitionResponseSchema,\n definitionSyncSummarySchema,\n definitionValidationErrorSchema,\n definitionValidationWarningSchema,\n} from './dto.js';\nexport type {TriggerDto} from './trigger.js';\n"],"names":["createDefinitionBodySchema","DEFINITION_SYNC_WARNING_CODE_MAX_LENGTH","DEFINITION_SYNC_WARNING_MESSAGE_MAX_LENGTH","DEFINITION_SYNC_WARNING_PATH_MAX_LENGTH","DEFINITION_SYNC_WARNINGS_MAX_COUNT","definitionDtoSchema","definitionListQuerySchema","definitionListResponseSchema","definitionResponseSchema","definitionSyncSummarySchema","definitionValidationErrorSchema","definitionValidationWarningSchema"],"mappings":"AAAA,SAEEA,0BAA0B,EAC1BC,uCAAuC,EACvCC,0CAA0C,EAC1CC,uCAAuC,EACvCC,kCAAkC,EAQlCC,mBAAmB,EACnBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,wBAAwB,EACxBC,2BAA2B,EAC3BC,+BAA+B,EAC/BC,iCAAiC,QAC5B,WAAW"}