@contractspec/lib.contracts 1.45.1 → 1.45.2

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.
@@ -3,50 +3,50 @@ import { OperationSpec } from "../operations/operation.js";
3
3
  import { OperationSpecRegistry } from "../operations/registry.js";
4
4
  import "../operations/index.js";
5
5
  import "../index.js";
6
- import * as _contractspec_lib_schema102 from "@contractspec/lib.schema";
6
+ import * as _contractspec_lib_schema167 from "@contractspec/lib.schema";
7
7
  import { SchemaModel } from "@contractspec/lib.schema";
8
8
 
9
9
  //#region src/app-config/lifecycle-contracts.d.ts
10
10
  declare const CreateTenantConfigDraftCommand: OperationSpec<SchemaModel<{
11
11
  tenantId: {
12
- type: _contractspec_lib_schema102.FieldType<string, string>;
12
+ type: _contractspec_lib_schema167.FieldType<string, string>;
13
13
  isOptional: false;
14
14
  };
15
15
  appId: {
16
- type: _contractspec_lib_schema102.FieldType<string, string>;
16
+ type: _contractspec_lib_schema167.FieldType<string, string>;
17
17
  isOptional: false;
18
18
  };
19
19
  blueprintName: {
20
- type: _contractspec_lib_schema102.FieldType<string, string>;
20
+ type: _contractspec_lib_schema167.FieldType<string, string>;
21
21
  isOptional: false;
22
22
  };
23
23
  blueprintVersion: {
24
- type: _contractspec_lib_schema102.FieldType<number, number>;
24
+ type: _contractspec_lib_schema167.FieldType<number, number>;
25
25
  isOptional: false;
26
26
  };
27
27
  environment: {
28
- type: _contractspec_lib_schema102.FieldType<string, string>;
28
+ type: _contractspec_lib_schema167.FieldType<string, string>;
29
29
  isOptional: true;
30
30
  };
31
31
  fromVersion: {
32
- type: _contractspec_lib_schema102.FieldType<string, string>;
32
+ type: _contractspec_lib_schema167.FieldType<string, string>;
33
33
  isOptional: true;
34
34
  };
35
35
  createdBy: {
36
- type: _contractspec_lib_schema102.FieldType<string, string>;
36
+ type: _contractspec_lib_schema167.FieldType<string, string>;
37
37
  isOptional: false;
38
38
  };
39
39
  }>, SchemaModel<{
40
40
  version: {
41
- type: _contractspec_lib_schema102.FieldType<string, string>;
41
+ type: _contractspec_lib_schema167.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  status: {
45
- type: _contractspec_lib_schema102.FieldType<string, string>;
45
+ type: _contractspec_lib_schema167.FieldType<string, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  createdAt: {
49
- type: _contractspec_lib_schema102.FieldType<Date, string>;
49
+ type: _contractspec_lib_schema167.FieldType<Date, string>;
50
50
  isOptional: false;
51
51
  };
52
52
  }>, {
@@ -55,32 +55,32 @@ declare const CreateTenantConfigDraftCommand: OperationSpec<SchemaModel<{
55
55
  }[]>;
56
56
  declare const PromoteTenantConfigToPreviewCommand: OperationSpec<SchemaModel<{
57
57
  tenantId: {
58
- type: _contractspec_lib_schema102.FieldType<string, string>;
58
+ type: _contractspec_lib_schema167.FieldType<string, string>;
59
59
  isOptional: false;
60
60
  };
61
61
  appId: {
62
- type: _contractspec_lib_schema102.FieldType<string, string>;
62
+ type: _contractspec_lib_schema167.FieldType<string, string>;
63
63
  isOptional: false;
64
64
  };
65
65
  version: {
66
- type: _contractspec_lib_schema102.FieldType<string, string>;
66
+ type: _contractspec_lib_schema167.FieldType<string, string>;
67
67
  isOptional: false;
68
68
  };
69
69
  promotedBy: {
70
- type: _contractspec_lib_schema102.FieldType<string, string>;
70
+ type: _contractspec_lib_schema167.FieldType<string, string>;
71
71
  isOptional: false;
72
72
  };
73
73
  }>, SchemaModel<{
74
74
  version: {
75
- type: _contractspec_lib_schema102.FieldType<string, string>;
75
+ type: _contractspec_lib_schema167.FieldType<string, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  status: {
79
- type: _contractspec_lib_schema102.FieldType<string, string>;
79
+ type: _contractspec_lib_schema167.FieldType<string, string>;
80
80
  isOptional: false;
81
81
  };
82
82
  warnings: {
83
- type: _contractspec_lib_schema102.FieldType<string, string>;
83
+ type: _contractspec_lib_schema167.FieldType<string, string>;
84
84
  isOptional: true;
85
85
  isArray: true;
86
86
  };
@@ -90,44 +90,44 @@ declare const PromoteTenantConfigToPreviewCommand: OperationSpec<SchemaModel<{
90
90
  }[]>;
91
91
  declare const PublishTenantConfigCommand: OperationSpec<SchemaModel<{
92
92
  tenantId: {
93
- type: _contractspec_lib_schema102.FieldType<string, string>;
93
+ type: _contractspec_lib_schema167.FieldType<string, string>;
94
94
  isOptional: false;
95
95
  };
96
96
  appId: {
97
- type: _contractspec_lib_schema102.FieldType<string, string>;
97
+ type: _contractspec_lib_schema167.FieldType<string, string>;
98
98
  isOptional: false;
99
99
  };
100
100
  version: {
101
- type: _contractspec_lib_schema102.FieldType<string, string>;
101
+ type: _contractspec_lib_schema167.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  environment: {
105
- type: _contractspec_lib_schema102.FieldType<string, string>;
105
+ type: _contractspec_lib_schema167.FieldType<string, string>;
106
106
  isOptional: true;
107
107
  };
108
108
  publishedBy: {
109
- type: _contractspec_lib_schema102.FieldType<string, string>;
109
+ type: _contractspec_lib_schema167.FieldType<string, string>;
110
110
  isOptional: false;
111
111
  };
112
112
  changeSummary: {
113
- type: _contractspec_lib_schema102.FieldType<string, string>;
113
+ type: _contractspec_lib_schema167.FieldType<string, string>;
114
114
  isOptional: true;
115
115
  };
116
116
  }>, SchemaModel<{
117
117
  version: {
118
- type: _contractspec_lib_schema102.FieldType<string, string>;
118
+ type: _contractspec_lib_schema167.FieldType<string, string>;
119
119
  isOptional: false;
120
120
  };
121
121
  status: {
122
- type: _contractspec_lib_schema102.FieldType<string, string>;
122
+ type: _contractspec_lib_schema167.FieldType<string, string>;
123
123
  isOptional: false;
124
124
  };
125
125
  previousVersion: {
126
- type: _contractspec_lib_schema102.FieldType<string, string>;
126
+ type: _contractspec_lib_schema167.FieldType<string, string>;
127
127
  isOptional: true;
128
128
  };
129
129
  publishedAt: {
130
- type: _contractspec_lib_schema102.FieldType<Date, string>;
130
+ type: _contractspec_lib_schema167.FieldType<Date, string>;
131
131
  isOptional: false;
132
132
  };
133
133
  }>, {
@@ -136,40 +136,40 @@ declare const PublishTenantConfigCommand: OperationSpec<SchemaModel<{
136
136
  }[]>;
137
137
  declare const RollbackTenantConfigCommand: OperationSpec<SchemaModel<{
138
138
  tenantId: {
139
- type: _contractspec_lib_schema102.FieldType<string, string>;
139
+ type: _contractspec_lib_schema167.FieldType<string, string>;
140
140
  isOptional: false;
141
141
  };
142
142
  appId: {
143
- type: _contractspec_lib_schema102.FieldType<string, string>;
143
+ type: _contractspec_lib_schema167.FieldType<string, string>;
144
144
  isOptional: false;
145
145
  };
146
146
  toVersion: {
147
- type: _contractspec_lib_schema102.FieldType<string, string>;
147
+ type: _contractspec_lib_schema167.FieldType<string, string>;
148
148
  isOptional: false;
149
149
  };
150
150
  environment: {
151
- type: _contractspec_lib_schema102.FieldType<string, string>;
151
+ type: _contractspec_lib_schema167.FieldType<string, string>;
152
152
  isOptional: true;
153
153
  };
154
154
  rolledBackBy: {
155
- type: _contractspec_lib_schema102.FieldType<string, string>;
155
+ type: _contractspec_lib_schema167.FieldType<string, string>;
156
156
  isOptional: false;
157
157
  };
158
158
  reason: {
159
- type: _contractspec_lib_schema102.FieldType<string, string>;
159
+ type: _contractspec_lib_schema167.FieldType<string, string>;
160
160
  isOptional: false;
161
161
  };
162
162
  }>, SchemaModel<{
163
163
  newVersion: {
164
- type: _contractspec_lib_schema102.FieldType<string, string>;
164
+ type: _contractspec_lib_schema167.FieldType<string, string>;
165
165
  isOptional: false;
166
166
  };
167
167
  status: {
168
- type: _contractspec_lib_schema102.FieldType<string, string>;
168
+ type: _contractspec_lib_schema167.FieldType<string, string>;
169
169
  isOptional: false;
170
170
  };
171
171
  rolledBackFrom: {
172
- type: _contractspec_lib_schema102.FieldType<number, number>;
172
+ type: _contractspec_lib_schema167.FieldType<number, number>;
173
173
  isOptional: false;
174
174
  };
175
175
  }>, {
@@ -178,22 +178,22 @@ declare const RollbackTenantConfigCommand: OperationSpec<SchemaModel<{
178
178
  }[]>;
179
179
  declare const ListTenantConfigVersionsQuery: OperationSpec<SchemaModel<{
180
180
  tenantId: {
181
- type: _contractspec_lib_schema102.FieldType<string, string>;
181
+ type: _contractspec_lib_schema167.FieldType<string, string>;
182
182
  isOptional: false;
183
183
  };
184
184
  appId: {
185
- type: _contractspec_lib_schema102.FieldType<string, string>;
185
+ type: _contractspec_lib_schema167.FieldType<string, string>;
186
186
  isOptional: false;
187
187
  };
188
188
  }>, SchemaModel<{
189
189
  versions: {
190
190
  type: SchemaModel<{
191
191
  meta: {
192
- type: _contractspec_lib_schema102.FieldType<Record<string, unknown>, Record<string, unknown>>;
192
+ type: _contractspec_lib_schema167.FieldType<Record<string, unknown>, Record<string, unknown>>;
193
193
  isOptional: false;
194
194
  };
195
195
  config: {
196
- type: _contractspec_lib_schema102.FieldType<Record<string, unknown>, Record<string, unknown>>;
196
+ type: _contractspec_lib_schema167.FieldType<Record<string, unknown>, Record<string, unknown>>;
197
197
  isOptional: false;
198
198
  };
199
199
  }>;
@@ -203,35 +203,35 @@ declare const ListTenantConfigVersionsQuery: OperationSpec<SchemaModel<{
203
203
  transitions: {
204
204
  type: SchemaModel<{
205
205
  tenantId: {
206
- type: _contractspec_lib_schema102.FieldType<string, string>;
206
+ type: _contractspec_lib_schema167.FieldType<string, string>;
207
207
  isOptional: false;
208
208
  };
209
209
  appId: {
210
- type: _contractspec_lib_schema102.FieldType<string, string>;
210
+ type: _contractspec_lib_schema167.FieldType<string, string>;
211
211
  isOptional: false;
212
212
  };
213
213
  fromStatus: {
214
- type: _contractspec_lib_schema102.FieldType<string, string>;
214
+ type: _contractspec_lib_schema167.FieldType<string, string>;
215
215
  isOptional: false;
216
216
  };
217
217
  toStatus: {
218
- type: _contractspec_lib_schema102.FieldType<string, string>;
218
+ type: _contractspec_lib_schema167.FieldType<string, string>;
219
219
  isOptional: false;
220
220
  };
221
221
  version: {
222
- type: _contractspec_lib_schema102.FieldType<string, string>;
222
+ type: _contractspec_lib_schema167.FieldType<string, string>;
223
223
  isOptional: false;
224
224
  };
225
225
  timestamp: {
226
- type: _contractspec_lib_schema102.FieldType<Date, string>;
226
+ type: _contractspec_lib_schema167.FieldType<Date, string>;
227
227
  isOptional: false;
228
228
  };
229
229
  actor: {
230
- type: _contractspec_lib_schema102.FieldType<string, string>;
230
+ type: _contractspec_lib_schema167.FieldType<string, string>;
231
231
  isOptional: false;
232
232
  };
233
233
  reason: {
234
- type: _contractspec_lib_schema102.FieldType<string, string>;
234
+ type: _contractspec_lib_schema167.FieldType<string, string>;
235
235
  isOptional: true;
236
236
  };
237
237
  }>;
@@ -241,26 +241,26 @@ declare const ListTenantConfigVersionsQuery: OperationSpec<SchemaModel<{
241
241
  }>, undefined>;
242
242
  declare const GetTenantConfigVersionQuery: OperationSpec<SchemaModel<{
243
243
  tenantId: {
244
- type: _contractspec_lib_schema102.FieldType<string, string>;
244
+ type: _contractspec_lib_schema167.FieldType<string, string>;
245
245
  isOptional: false;
246
246
  };
247
247
  appId: {
248
- type: _contractspec_lib_schema102.FieldType<string, string>;
248
+ type: _contractspec_lib_schema167.FieldType<string, string>;
249
249
  isOptional: false;
250
250
  };
251
251
  version: {
252
- type: _contractspec_lib_schema102.FieldType<string, string>;
252
+ type: _contractspec_lib_schema167.FieldType<string, string>;
253
253
  isOptional: false;
254
254
  };
255
255
  }>, SchemaModel<{
256
256
  version: {
257
257
  type: SchemaModel<{
258
258
  meta: {
259
- type: _contractspec_lib_schema102.FieldType<Record<string, unknown>, Record<string, unknown>>;
259
+ type: _contractspec_lib_schema167.FieldType<Record<string, unknown>, Record<string, unknown>>;
260
260
  isOptional: false;
261
261
  };
262
262
  config: {
263
- type: _contractspec_lib_schema102.FieldType<Record<string, unknown>, Record<string, unknown>>;
263
+ type: _contractspec_lib_schema167.FieldType<Record<string, unknown>, Record<string, unknown>>;
264
264
  isOptional: false;
265
265
  };
266
266
  }>;
@@ -46,12 +46,12 @@ declare const ContractRegistryItemSchema: z.ZodObject<{
46
46
  description: z.ZodString;
47
47
  meta: z.ZodObject<{
48
48
  stability: z.ZodEnum<{
49
- experimental: "experimental";
50
- beta: "beta";
51
- stable: "stable";
52
49
  deprecated: "deprecated";
53
50
  idea: "idea";
54
51
  in_creation: "in_creation";
52
+ experimental: "experimental";
53
+ beta: "beta";
54
+ stable: "stable";
55
55
  }>;
56
56
  owners: z.ZodDefault<z.ZodArray<z.ZodString>>;
57
57
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -95,12 +95,12 @@ declare const ContractRegistryManifestSchema: z.ZodObject<{
95
95
  description: z.ZodString;
96
96
  meta: z.ZodObject<{
97
97
  stability: z.ZodEnum<{
98
- experimental: "experimental";
99
- beta: "beta";
100
- stable: "stable";
101
98
  deprecated: "deprecated";
102
99
  idea: "idea";
103
100
  in_creation: "in_creation";
101
+ experimental: "experimental";
102
+ beta: "beta";
103
+ stable: "stable";
104
104
  }>;
105
105
  owners: z.ZodDefault<z.ZodArray<z.ZodString>>;
106
106
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -3,10 +3,10 @@ import { z as z$1 } from "zod";
3
3
 
4
4
  //#region src/examples/schema.d.ts
5
5
  declare const ExampleKindSchema: z$1.ZodEnum<{
6
+ knowledge: "knowledge";
6
7
  template: "template";
7
8
  workflow: "workflow";
8
9
  integration: "integration";
9
- knowledge: "knowledge";
10
10
  blueprint: "blueprint";
11
11
  ui: "ui";
12
12
  script: "script";
@@ -25,12 +25,12 @@ declare const ExampleSandboxModeSchema: z$1.ZodEnum<{
25
25
  evolution: "evolution";
26
26
  }>;
27
27
  declare const StabilitySchema: z$1.ZodEnum<{
28
- experimental: "experimental";
29
- beta: "beta";
30
- stable: "stable";
31
28
  deprecated: "deprecated";
32
29
  idea: "idea";
33
30
  in_creation: "in_creation";
31
+ experimental: "experimental";
32
+ beta: "beta";
33
+ stable: "stable";
34
34
  }>;
35
35
  declare const ExampleDocumentationSchema: z$1.ZodObject<{
36
36
  rootDocId: z$1.ZodOptional<z$1.ZodString>;
@@ -93,21 +93,21 @@ declare const ExampleMetaSchema: z$1.ZodObject<{
93
93
  description: z$1.ZodString;
94
94
  domain: z$1.ZodOptional<z$1.ZodString>;
95
95
  stability: z$1.ZodEnum<{
96
- experimental: "experimental";
97
- beta: "beta";
98
- stable: "stable";
99
96
  deprecated: "deprecated";
100
97
  idea: "idea";
101
98
  in_creation: "in_creation";
99
+ experimental: "experimental";
100
+ beta: "beta";
101
+ stable: "stable";
102
102
  }>;
103
103
  owners: z$1.ZodArray<z$1.ZodString>;
104
104
  tags: z$1.ZodArray<z$1.ZodString>;
105
105
  docId: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
106
106
  kind: z$1.ZodEnum<{
107
+ knowledge: "knowledge";
107
108
  template: "template";
108
109
  workflow: "workflow";
109
110
  integration: "integration";
110
- knowledge: "knowledge";
111
111
  blueprint: "blueprint";
112
112
  ui: "ui";
113
113
  script: "script";
@@ -141,21 +141,21 @@ declare const ExampleSpecSchema: z$1.ZodObject<{
141
141
  description: z$1.ZodString;
142
142
  domain: z$1.ZodOptional<z$1.ZodString>;
143
143
  stability: z$1.ZodEnum<{
144
- experimental: "experimental";
145
- beta: "beta";
146
- stable: "stable";
147
144
  deprecated: "deprecated";
148
145
  idea: "idea";
149
146
  in_creation: "in_creation";
147
+ experimental: "experimental";
148
+ beta: "beta";
149
+ stable: "stable";
150
150
  }>;
151
151
  owners: z$1.ZodArray<z$1.ZodString>;
152
152
  tags: z$1.ZodArray<z$1.ZodString>;
153
153
  docId: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
154
154
  kind: z$1.ZodEnum<{
155
+ knowledge: "knowledge";
155
156
  template: "template";
156
157
  workflow: "workflow";
157
158
  integration: "integration";
158
- knowledge: "knowledge";
159
159
  blueprint: "blueprint";
160
160
  ui: "ui";
161
161
  script: "script";
@@ -221,10 +221,10 @@ declare function safeParseExampleSpec(data: unknown): z$1.ZodSafeParseResult<{
221
221
  version: string;
222
222
  key: string;
223
223
  description: string;
224
- stability: "experimental" | "beta" | "stable" | "deprecated" | "idea" | "in_creation";
224
+ stability: "deprecated" | "idea" | "in_creation" | "experimental" | "beta" | "stable";
225
225
  owners: string[];
226
226
  tags: string[];
227
- kind: "template" | "workflow" | "integration" | "knowledge" | "blueprint" | "ui" | "script" | "library";
227
+ kind: "knowledge" | "template" | "workflow" | "integration" | "blueprint" | "ui" | "script" | "library";
228
228
  visibility: "experimental" | "public" | "internal";
229
229
  title?: string | undefined;
230
230
  domain?: string | undefined;