openxiangda-contracts 2.24.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.d.ts +38 -0
  3. package/dist/cli.d.ts.map +1 -0
  4. package/dist/cli.js +11 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/native-compiler/compiler.d.ts.map +1 -1
  11. package/dist/native-compiler/compiler.js +21 -2
  12. package/dist/native-compiler/compiler.js.map +1 -1
  13. package/dist/native-compiler/decimal-lifecycle.d.ts +12 -0
  14. package/dist/native-compiler/decimal-lifecycle.d.ts.map +1 -0
  15. package/dist/native-compiler/decimal-lifecycle.js +83 -0
  16. package/dist/native-compiler/decimal-lifecycle.js.map +1 -0
  17. package/dist/native-compiler/index.cjs +2 -2
  18. package/dist/native-compiler/index.d.ts +1 -0
  19. package/dist/native-compiler/index.d.ts.map +1 -1
  20. package/dist/native-compiler/index.js +2 -2
  21. package/dist/native-version.d.ts +1 -0
  22. package/dist/native-version.d.ts.map +1 -1
  23. package/dist/native-version.js +1 -0
  24. package/dist/native-version.js.map +1 -1
  25. package/dist/schemas.d.ts +91 -799
  26. package/dist/schemas.d.ts.map +1 -1
  27. package/dist/schemas.js +28 -280
  28. package/dist/schemas.js.map +1 -1
  29. package/dist/types.d.ts +17 -6
  30. package/dist/types.d.ts.map +1 -1
  31. package/dist/types.js +2 -5
  32. package/dist/types.js.map +1 -1
  33. package/dist/validation.d.ts.map +1 -1
  34. package/dist/validation.js +9 -0
  35. package/dist/validation.js.map +1 -1
  36. package/package.json +1 -1
  37. package/dist/studio.d.ts +0 -140
  38. package/dist/studio.d.ts.map +0 -1
  39. package/dist/studio.js +0 -23
  40. package/dist/studio.js.map +0 -1
package/dist/schemas.d.ts CHANGED
@@ -35,7 +35,7 @@ export declare const diagnosticSchema: {
35
35
  };
36
36
  };
37
37
  };
38
- export declare const studioCliEventSchema: {
38
+ export declare const cliEventSchema: {
39
39
  readonly $id: "openxiangda.cli-event/v1";
40
40
  readonly type: "object";
41
41
  readonly additionalProperties: false;
@@ -88,212 +88,6 @@ export declare const workspaceTemplateBindingSchema: {
88
88
  };
89
89
  };
90
90
  };
91
- export declare const studioWorkspaceBindingSchema: {
92
- readonly $id: "openxiangda.studio-workspace-binding/v1";
93
- readonly type: "object";
94
- readonly additionalProperties: false;
95
- readonly required: readonly ["schemaVersion", "applicationAuthority", "siteBaseUrl", "projectId", "provisioningRunId", "appType", "appName", "template", "state", "compiler"];
96
- readonly properties: {
97
- readonly schemaVersion: {
98
- readonly const: "openxiangda.studio-workspace-binding/v1";
99
- };
100
- readonly applicationAuthority: {
101
- readonly const: "site-project-provisioning-run";
102
- };
103
- readonly siteBaseUrl: {
104
- readonly type: "string";
105
- readonly format: "uri";
106
- readonly pattern: "^https://[^/?#@]+(?:/[^?#]*)?$";
107
- readonly maxLength: 2048;
108
- };
109
- readonly projectId: {
110
- readonly type: "string";
111
- readonly format: "uuid";
112
- };
113
- readonly provisioningRunId: {
114
- readonly type: "string";
115
- readonly format: "uuid";
116
- };
117
- readonly appType: {
118
- readonly type: "string";
119
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
120
- };
121
- readonly appName: {
122
- readonly type: "string";
123
- readonly minLength: 1;
124
- readonly maxLength: 256;
125
- };
126
- readonly template: {
127
- readonly $id: "openxiangda.workspace-template-binding/v1";
128
- readonly type: "object";
129
- readonly additionalProperties: false;
130
- readonly required: readonly ["schemaVersion", "ref", "digest"];
131
- readonly properties: {
132
- readonly schemaVersion: {
133
- readonly const: "openxiangda.workspace-template-binding/v1";
134
- };
135
- readonly ref: {
136
- readonly type: "string";
137
- readonly minLength: 1;
138
- };
139
- readonly digest: {
140
- readonly type: "string";
141
- readonly pattern: "^sha256:[0-9a-f]{64}$";
142
- };
143
- };
144
- };
145
- readonly state: {
146
- readonly enum: readonly ["prepared", "compiled"];
147
- };
148
- readonly compiler: {
149
- readonly anyOf: readonly [{
150
- readonly type: "null";
151
- }, {
152
- readonly type: "object";
153
- readonly additionalProperties: false;
154
- readonly required: readonly ["toolchainVersion", "contractVersion", "compilerContractVersion", "configurationDigest", "contractDigest", "aiCatalogDigest"];
155
- readonly properties: {
156
- readonly toolchainVersion: {
157
- readonly type: "string";
158
- readonly minLength: 1;
159
- };
160
- readonly contractVersion: {
161
- readonly type: "string";
162
- readonly minLength: 1;
163
- };
164
- readonly compilerContractVersion: {
165
- readonly type: "string";
166
- readonly minLength: 1;
167
- };
168
- readonly configurationDigest: {
169
- readonly type: "string";
170
- readonly pattern: "^[0-9a-f]{64}$";
171
- };
172
- readonly contractDigest: {
173
- readonly type: "string";
174
- readonly pattern: "^[0-9a-f]{64}$";
175
- };
176
- readonly aiCatalogDigest: {
177
- readonly type: "string";
178
- readonly pattern: "^[0-9a-f]{64}$";
179
- };
180
- };
181
- }];
182
- };
183
- };
184
- };
185
- export declare const studioWorkspaceInitializationSchema: {
186
- readonly $id: "openxiangda.studio-workspace-initialization/v1";
187
- readonly type: "object";
188
- readonly additionalProperties: false;
189
- readonly required: readonly ["schemaVersion", "applicationAuthority", "siteBaseUrl", "projectId", "provisioningRunId", "appType", "appName", "workspace", "cliVersion", "protocolVersion", "template", "compiler", "bindingDigest", "workspaceDigest"];
190
- readonly properties: {
191
- readonly schemaVersion: {
192
- readonly const: "openxiangda.studio-workspace-initialization/v1";
193
- };
194
- readonly applicationAuthority: {
195
- readonly const: "site-project-provisioning-run";
196
- };
197
- readonly siteBaseUrl: {
198
- readonly type: "string";
199
- readonly format: "uri";
200
- readonly pattern: "^https://[^/?#@]+(?:/[^?#]*)?$";
201
- readonly maxLength: 2048;
202
- };
203
- readonly projectId: {
204
- readonly type: "string";
205
- readonly format: "uuid";
206
- };
207
- readonly provisioningRunId: {
208
- readonly type: "string";
209
- readonly format: "uuid";
210
- };
211
- readonly appType: {
212
- readonly type: "string";
213
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
214
- };
215
- readonly appName: {
216
- readonly type: "string";
217
- readonly minLength: 1;
218
- readonly maxLength: 256;
219
- };
220
- readonly workspace: {
221
- readonly type: "object";
222
- readonly additionalProperties: false;
223
- readonly required: readonly ["reused"];
224
- readonly properties: {
225
- readonly reused: {
226
- readonly type: "boolean";
227
- };
228
- };
229
- };
230
- readonly cliVersion: {
231
- readonly type: "string";
232
- readonly minLength: 1;
233
- };
234
- readonly protocolVersion: {
235
- readonly const: "openxiangda.studio-workspace/v2";
236
- };
237
- readonly template: {
238
- readonly $id: "openxiangda.workspace-template-binding/v1";
239
- readonly type: "object";
240
- readonly additionalProperties: false;
241
- readonly required: readonly ["schemaVersion", "ref", "digest"];
242
- readonly properties: {
243
- readonly schemaVersion: {
244
- readonly const: "openxiangda.workspace-template-binding/v1";
245
- };
246
- readonly ref: {
247
- readonly type: "string";
248
- readonly minLength: 1;
249
- };
250
- readonly digest: {
251
- readonly type: "string";
252
- readonly pattern: "^sha256:[0-9a-f]{64}$";
253
- };
254
- };
255
- };
256
- readonly compiler: {
257
- readonly type: "object";
258
- readonly additionalProperties: false;
259
- readonly required: readonly ["toolchainVersion", "contractVersion", "compilerContractVersion", "configurationDigest", "contractDigest", "aiCatalogDigest"];
260
- readonly properties: {
261
- readonly toolchainVersion: {
262
- readonly type: "string";
263
- readonly minLength: 1;
264
- };
265
- readonly contractVersion: {
266
- readonly type: "string";
267
- readonly minLength: 1;
268
- };
269
- readonly compilerContractVersion: {
270
- readonly type: "string";
271
- readonly minLength: 1;
272
- };
273
- readonly configurationDigest: {
274
- readonly type: "string";
275
- readonly pattern: "^[0-9a-f]{64}$";
276
- };
277
- readonly contractDigest: {
278
- readonly type: "string";
279
- readonly pattern: "^[0-9a-f]{64}$";
280
- };
281
- readonly aiCatalogDigest: {
282
- readonly type: "string";
283
- readonly pattern: "^[0-9a-f]{64}$";
284
- };
285
- };
286
- };
287
- readonly bindingDigest: {
288
- readonly type: "string";
289
- readonly pattern: "^sha256:[0-9a-f]{64}$";
290
- };
291
- readonly workspaceDigest: {
292
- readonly type: "string";
293
- readonly pattern: "^sha256:[0-9a-f]{64}$";
294
- };
295
- };
296
- };
297
91
  export declare const workspaceContextSchema: {
298
92
  readonly $id: "openxiangda.workspace-context/v3";
299
93
  readonly type: "object";
@@ -531,13 +325,13 @@ export declare const workspaceContextSchema: {
531
325
  readonly type: "string";
532
326
  readonly minLength: 1;
533
327
  };
534
- readonly studio: {
328
+ readonly cli: {
535
329
  readonly type: "object";
536
330
  readonly additionalProperties: false;
537
- readonly required: readonly ["schemaVersion", "cliResultSchemaVersion", "cliEvents", "templates", "initialization"];
331
+ readonly required: readonly ["schemaVersion", "cliResultSchemaVersion", "cliEvents", "templates"];
538
332
  readonly properties: {
539
333
  readonly schemaVersion: {
540
- readonly const: "openxiangda.studio-workspace/v2";
334
+ readonly const: "openxiangda.cli/v1";
541
335
  };
542
336
  readonly cliResultSchemaVersion: {
543
337
  readonly const: "openxiangda.cli-result/v2";
@@ -597,50 +391,6 @@ export declare const workspaceContextSchema: {
597
391
  };
598
392
  };
599
393
  };
600
- readonly initialization: {
601
- readonly type: "object";
602
- readonly additionalProperties: false;
603
- readonly required: readonly ["schemaVersion", "bindingSchemaVersion", "applicationAuthority", "applicationKey", "requiredCreateFlags", "repositoryAuthority"];
604
- readonly properties: {
605
- readonly schemaVersion: {
606
- readonly const: "openxiangda.studio-workspace-initialization/v1";
607
- };
608
- readonly bindingSchemaVersion: {
609
- readonly const: "openxiangda.studio-workspace-binding/v1";
610
- };
611
- readonly applicationAuthority: {
612
- readonly const: "site-project-provisioning-run";
613
- };
614
- readonly applicationKey: {
615
- readonly const: "appType";
616
- };
617
- readonly requiredCreateFlags: {
618
- readonly type: "array";
619
- readonly prefixItems: readonly [{
620
- readonly const: "app-code";
621
- }, {
622
- readonly const: "name";
623
- }, {
624
- readonly const: "template-ref";
625
- }, {
626
- readonly const: "template-digest";
627
- }, {
628
- readonly const: "studio-project-id";
629
- }, {
630
- readonly const: "provisioning-run-id";
631
- }, {
632
- readonly const: "json-events";
633
- }, {
634
- readonly const: "run-id";
635
- }];
636
- readonly minItems: 8;
637
- readonly maxItems: 8;
638
- };
639
- readonly repositoryAuthority: {
640
- readonly const: "site-git-broker";
641
- };
642
- };
643
- };
644
394
  };
645
395
  };
646
396
  };
@@ -4423,6 +4173,38 @@ export declare const dataResourceSchema: {
4423
4173
  };
4424
4174
  };
4425
4175
  };
4176
+ readonly decimalReservationLifecycle: {
4177
+ readonly type: "object";
4178
+ readonly additionalProperties: false;
4179
+ readonly required: readonly ["parentTransitions", "childTransitions", "fulfilledChildStatuses", "lockedParentStatuses"];
4180
+ readonly properties: {
4181
+ readonly [x: string]: {
4182
+ type: string;
4183
+ maxItems: number;
4184
+ uniqueItems: boolean;
4185
+ items: {
4186
+ type: string;
4187
+ additionalProperties: boolean;
4188
+ required: string[];
4189
+ properties: {
4190
+ [k: string]: {
4191
+ type: string;
4192
+ pattern: string;
4193
+ };
4194
+ };
4195
+ };
4196
+ } | {
4197
+ type: string;
4198
+ minItems: number;
4199
+ maxItems: number;
4200
+ uniqueItems: boolean;
4201
+ items: {
4202
+ type: string;
4203
+ pattern: string;
4204
+ };
4205
+ };
4206
+ };
4207
+ };
4426
4208
  readonly invariants: {
4427
4209
  readonly type: "array";
4428
4210
  readonly uniqueItems: true;
@@ -8756,171 +8538,35 @@ export declare const deploymentRunSchema: {
8756
8538
  };
8757
8539
  };
8758
8540
  };
8759
- export declare const studioCapabilitiesSchema: {
8760
- readonly $id: "openxiangda.studio-capabilities/v1";
8541
+ export declare const platformCapabilitiesSchema: {
8542
+ readonly $id: "openxiangda.platform-capabilities/v3";
8761
8543
  readonly type: "object";
8762
8544
  readonly additionalProperties: false;
8763
- readonly required: readonly ["schemaVersion", "studioContractVersion", "studio"];
8545
+ readonly required: readonly ["schemaVersion", "apiVersion", "contractVersion", "platformVersion", "features", "configurationCompatibility", "deployment"];
8764
8546
  readonly properties: {
8765
8547
  readonly schemaVersion: {
8766
- readonly const: "openxiangda.studio-capabilities/v1";
8548
+ readonly const: "openxiangda.platform-capabilities/v3";
8549
+ };
8550
+ readonly apiVersion: {
8551
+ readonly const: "v2";
8767
8552
  };
8768
- readonly studioContractVersion: {
8769
- readonly const: "1.0.0";
8553
+ readonly contractVersion: {
8554
+ readonly const: "2.0.0-alpha.5";
8555
+ };
8556
+ readonly platformVersion: {
8557
+ readonly type: "string";
8558
+ readonly minLength: 1;
8770
8559
  };
8771
- readonly studio: {
8560
+ readonly sourceHosting: {
8772
8561
  readonly type: "object";
8773
8562
  readonly additionalProperties: false;
8774
- readonly required: readonly ["contractVersion", "profile", "compatibility"];
8563
+ readonly required: readonly ["provider", "enabled"];
8775
8564
  readonly properties: {
8776
- readonly contractVersion: {
8777
- readonly const: "1.0.0";
8778
- };
8779
- readonly profile: {
8780
- readonly oneOf: readonly [{
8781
- readonly type: "object";
8782
- readonly additionalProperties: false;
8783
- readonly required: readonly ["schemaVersion", "endpoint", "status", "signatureAlgorithm", "verificationOwner"];
8784
- readonly properties: {
8785
- readonly schemaVersion: {
8786
- readonly const: "openxiangda.studio-site-profile/v1";
8787
- };
8788
- readonly endpoint: {
8789
- readonly const: "/openxiangda-api/v2/studio/profile";
8790
- };
8791
- readonly status: {
8792
- readonly const: "available";
8793
- };
8794
- readonly signatureAlgorithm: {
8795
- readonly const: "Ed25519";
8796
- };
8797
- readonly verificationOwner: {
8798
- readonly const: "studio-client-trust-store";
8799
- };
8800
- };
8801
- }, {
8802
- readonly type: "object";
8803
- readonly additionalProperties: false;
8804
- readonly required: readonly ["schemaVersion", "endpoint", "status", "unavailableCode", "signatureAlgorithm", "verificationOwner"];
8805
- readonly properties: {
8806
- readonly schemaVersion: {
8807
- readonly const: "openxiangda.studio-site-profile/v1";
8808
- };
8809
- readonly endpoint: {
8810
- readonly const: "/openxiangda-api/v2/studio/profile";
8811
- };
8812
- readonly status: {
8813
- readonly const: "unavailable";
8814
- };
8815
- readonly unavailableCode: {
8816
- readonly enum: readonly ["STUDIO_SITE_PROFILE_NOT_CONFIGURED", "STUDIO_SITE_PROFILE_INVALID", "STUDIO_SITE_PROFILE_EXPIRED"];
8817
- };
8818
- readonly signatureAlgorithm: {
8819
- readonly const: "Ed25519";
8820
- };
8821
- readonly verificationOwner: {
8822
- readonly const: "studio-client-trust-store";
8823
- };
8824
- };
8825
- }];
8565
+ readonly provider: {
8566
+ readonly const: "forgejo";
8826
8567
  };
8827
- readonly compatibility: {
8828
- readonly type: "object";
8829
- readonly additionalProperties: false;
8830
- readonly required: readonly ["studioContractRange", "cliContractRange"];
8831
- readonly properties: {
8832
- readonly studioContractRange: {
8833
- readonly type: readonly ["string", "null"];
8834
- readonly minLength: 1;
8835
- readonly maxLength: 128;
8836
- };
8837
- readonly cliContractRange: {
8838
- readonly type: readonly ["string", "null"];
8839
- readonly minLength: 1;
8840
- readonly maxLength: 128;
8841
- };
8842
- };
8843
- };
8844
- };
8845
- readonly allOf: readonly [{
8846
- readonly if: {
8847
- readonly properties: {
8848
- readonly profile: {
8849
- readonly properties: {
8850
- readonly status: {
8851
- readonly const: "available";
8852
- };
8853
- };
8854
- readonly required: readonly ["status"];
8855
- };
8856
- };
8857
- readonly required: readonly ["profile"];
8858
- };
8859
- readonly then: {
8860
- readonly properties: {
8861
- readonly compatibility: {
8862
- readonly properties: {
8863
- readonly studioContractRange: {
8864
- readonly type: "string";
8865
- readonly minLength: 1;
8866
- readonly maxLength: 128;
8867
- };
8868
- readonly cliContractRange: {
8869
- readonly type: "string";
8870
- readonly minLength: 1;
8871
- readonly maxLength: 128;
8872
- };
8873
- };
8874
- };
8875
- };
8876
- };
8877
- readonly else: {
8878
- readonly properties: {
8879
- readonly compatibility: {
8880
- readonly properties: {
8881
- readonly studioContractRange: {
8882
- readonly const: null;
8883
- };
8884
- readonly cliContractRange: {
8885
- readonly const: null;
8886
- };
8887
- };
8888
- };
8889
- };
8890
- };
8891
- }];
8892
- };
8893
- };
8894
- };
8895
- export declare const platformCapabilitiesSchema: {
8896
- readonly $id: "openxiangda.platform-capabilities/v3";
8897
- readonly type: "object";
8898
- readonly additionalProperties: false;
8899
- readonly required: readonly ["schemaVersion", "apiVersion", "contractVersion", "platformVersion", "features", "configurationCompatibility", "deployment"];
8900
- readonly properties: {
8901
- readonly schemaVersion: {
8902
- readonly const: "openxiangda.platform-capabilities/v3";
8903
- };
8904
- readonly apiVersion: {
8905
- readonly const: "v2";
8906
- };
8907
- readonly contractVersion: {
8908
- readonly const: "2.0.0-alpha.5";
8909
- };
8910
- readonly platformVersion: {
8911
- readonly type: "string";
8912
- readonly minLength: 1;
8913
- };
8914
- readonly sourceHosting: {
8915
- readonly type: "object";
8916
- readonly additionalProperties: false;
8917
- readonly required: readonly ["provider", "enabled"];
8918
- readonly properties: {
8919
- readonly provider: {
8920
- readonly const: "forgejo";
8921
- };
8922
- readonly enabled: {
8923
- readonly type: "boolean";
8568
+ readonly enabled: {
8569
+ readonly type: "boolean";
8924
8570
  };
8925
8571
  };
8926
8572
  };
@@ -18594,143 +18240,7 @@ export declare const contractSchemas: {
18594
18240
  };
18595
18241
  };
18596
18242
  };
18597
- readonly studioCapabilities: {
18598
- readonly $id: "openxiangda.studio-capabilities/v1";
18599
- readonly type: "object";
18600
- readonly additionalProperties: false;
18601
- readonly required: readonly ["schemaVersion", "studioContractVersion", "studio"];
18602
- readonly properties: {
18603
- readonly schemaVersion: {
18604
- readonly const: "openxiangda.studio-capabilities/v1";
18605
- };
18606
- readonly studioContractVersion: {
18607
- readonly const: "1.0.0";
18608
- };
18609
- readonly studio: {
18610
- readonly type: "object";
18611
- readonly additionalProperties: false;
18612
- readonly required: readonly ["contractVersion", "profile", "compatibility"];
18613
- readonly properties: {
18614
- readonly contractVersion: {
18615
- readonly const: "1.0.0";
18616
- };
18617
- readonly profile: {
18618
- readonly oneOf: readonly [{
18619
- readonly type: "object";
18620
- readonly additionalProperties: false;
18621
- readonly required: readonly ["schemaVersion", "endpoint", "status", "signatureAlgorithm", "verificationOwner"];
18622
- readonly properties: {
18623
- readonly schemaVersion: {
18624
- readonly const: "openxiangda.studio-site-profile/v1";
18625
- };
18626
- readonly endpoint: {
18627
- readonly const: "/openxiangda-api/v2/studio/profile";
18628
- };
18629
- readonly status: {
18630
- readonly const: "available";
18631
- };
18632
- readonly signatureAlgorithm: {
18633
- readonly const: "Ed25519";
18634
- };
18635
- readonly verificationOwner: {
18636
- readonly const: "studio-client-trust-store";
18637
- };
18638
- };
18639
- }, {
18640
- readonly type: "object";
18641
- readonly additionalProperties: false;
18642
- readonly required: readonly ["schemaVersion", "endpoint", "status", "unavailableCode", "signatureAlgorithm", "verificationOwner"];
18643
- readonly properties: {
18644
- readonly schemaVersion: {
18645
- readonly const: "openxiangda.studio-site-profile/v1";
18646
- };
18647
- readonly endpoint: {
18648
- readonly const: "/openxiangda-api/v2/studio/profile";
18649
- };
18650
- readonly status: {
18651
- readonly const: "unavailable";
18652
- };
18653
- readonly unavailableCode: {
18654
- readonly enum: readonly ["STUDIO_SITE_PROFILE_NOT_CONFIGURED", "STUDIO_SITE_PROFILE_INVALID", "STUDIO_SITE_PROFILE_EXPIRED"];
18655
- };
18656
- readonly signatureAlgorithm: {
18657
- readonly const: "Ed25519";
18658
- };
18659
- readonly verificationOwner: {
18660
- readonly const: "studio-client-trust-store";
18661
- };
18662
- };
18663
- }];
18664
- };
18665
- readonly compatibility: {
18666
- readonly type: "object";
18667
- readonly additionalProperties: false;
18668
- readonly required: readonly ["studioContractRange", "cliContractRange"];
18669
- readonly properties: {
18670
- readonly studioContractRange: {
18671
- readonly type: readonly ["string", "null"];
18672
- readonly minLength: 1;
18673
- readonly maxLength: 128;
18674
- };
18675
- readonly cliContractRange: {
18676
- readonly type: readonly ["string", "null"];
18677
- readonly minLength: 1;
18678
- readonly maxLength: 128;
18679
- };
18680
- };
18681
- };
18682
- };
18683
- readonly allOf: readonly [{
18684
- readonly if: {
18685
- readonly properties: {
18686
- readonly profile: {
18687
- readonly properties: {
18688
- readonly status: {
18689
- readonly const: "available";
18690
- };
18691
- };
18692
- readonly required: readonly ["status"];
18693
- };
18694
- };
18695
- readonly required: readonly ["profile"];
18696
- };
18697
- readonly then: {
18698
- readonly properties: {
18699
- readonly compatibility: {
18700
- readonly properties: {
18701
- readonly studioContractRange: {
18702
- readonly type: "string";
18703
- readonly minLength: 1;
18704
- readonly maxLength: 128;
18705
- };
18706
- readonly cliContractRange: {
18707
- readonly type: "string";
18708
- readonly minLength: 1;
18709
- readonly maxLength: 128;
18710
- };
18711
- };
18712
- };
18713
- };
18714
- };
18715
- readonly else: {
18716
- readonly properties: {
18717
- readonly compatibility: {
18718
- readonly properties: {
18719
- readonly studioContractRange: {
18720
- readonly const: null;
18721
- };
18722
- readonly cliContractRange: {
18723
- readonly const: null;
18724
- };
18725
- };
18726
- };
18727
- };
18728
- };
18729
- }];
18730
- };
18731
- };
18732
- };
18733
- readonly studioCliEvent: {
18243
+ readonly cliEvent: {
18734
18244
  readonly $id: "openxiangda.cli-event/v1";
18735
18245
  readonly type: "object";
18736
18246
  readonly additionalProperties: false;
@@ -18764,212 +18274,6 @@ export declare const contractSchemas: {
18764
18274
  };
18765
18275
  };
18766
18276
  };
18767
- readonly studioWorkspaceBinding: {
18768
- readonly $id: "openxiangda.studio-workspace-binding/v1";
18769
- readonly type: "object";
18770
- readonly additionalProperties: false;
18771
- readonly required: readonly ["schemaVersion", "applicationAuthority", "siteBaseUrl", "projectId", "provisioningRunId", "appType", "appName", "template", "state", "compiler"];
18772
- readonly properties: {
18773
- readonly schemaVersion: {
18774
- readonly const: "openxiangda.studio-workspace-binding/v1";
18775
- };
18776
- readonly applicationAuthority: {
18777
- readonly const: "site-project-provisioning-run";
18778
- };
18779
- readonly siteBaseUrl: {
18780
- readonly type: "string";
18781
- readonly format: "uri";
18782
- readonly pattern: "^https://[^/?#@]+(?:/[^?#]*)?$";
18783
- readonly maxLength: 2048;
18784
- };
18785
- readonly projectId: {
18786
- readonly type: "string";
18787
- readonly format: "uuid";
18788
- };
18789
- readonly provisioningRunId: {
18790
- readonly type: "string";
18791
- readonly format: "uuid";
18792
- };
18793
- readonly appType: {
18794
- readonly type: "string";
18795
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
18796
- };
18797
- readonly appName: {
18798
- readonly type: "string";
18799
- readonly minLength: 1;
18800
- readonly maxLength: 256;
18801
- };
18802
- readonly template: {
18803
- readonly $id: "openxiangda.workspace-template-binding/v1";
18804
- readonly type: "object";
18805
- readonly additionalProperties: false;
18806
- readonly required: readonly ["schemaVersion", "ref", "digest"];
18807
- readonly properties: {
18808
- readonly schemaVersion: {
18809
- readonly const: "openxiangda.workspace-template-binding/v1";
18810
- };
18811
- readonly ref: {
18812
- readonly type: "string";
18813
- readonly minLength: 1;
18814
- };
18815
- readonly digest: {
18816
- readonly type: "string";
18817
- readonly pattern: "^sha256:[0-9a-f]{64}$";
18818
- };
18819
- };
18820
- };
18821
- readonly state: {
18822
- readonly enum: readonly ["prepared", "compiled"];
18823
- };
18824
- readonly compiler: {
18825
- readonly anyOf: readonly [{
18826
- readonly type: "null";
18827
- }, {
18828
- readonly type: "object";
18829
- readonly additionalProperties: false;
18830
- readonly required: readonly ["toolchainVersion", "contractVersion", "compilerContractVersion", "configurationDigest", "contractDigest", "aiCatalogDigest"];
18831
- readonly properties: {
18832
- readonly toolchainVersion: {
18833
- readonly type: "string";
18834
- readonly minLength: 1;
18835
- };
18836
- readonly contractVersion: {
18837
- readonly type: "string";
18838
- readonly minLength: 1;
18839
- };
18840
- readonly compilerContractVersion: {
18841
- readonly type: "string";
18842
- readonly minLength: 1;
18843
- };
18844
- readonly configurationDigest: {
18845
- readonly type: "string";
18846
- readonly pattern: "^[0-9a-f]{64}$";
18847
- };
18848
- readonly contractDigest: {
18849
- readonly type: "string";
18850
- readonly pattern: "^[0-9a-f]{64}$";
18851
- };
18852
- readonly aiCatalogDigest: {
18853
- readonly type: "string";
18854
- readonly pattern: "^[0-9a-f]{64}$";
18855
- };
18856
- };
18857
- }];
18858
- };
18859
- };
18860
- };
18861
- readonly studioWorkspaceInitialization: {
18862
- readonly $id: "openxiangda.studio-workspace-initialization/v1";
18863
- readonly type: "object";
18864
- readonly additionalProperties: false;
18865
- readonly required: readonly ["schemaVersion", "applicationAuthority", "siteBaseUrl", "projectId", "provisioningRunId", "appType", "appName", "workspace", "cliVersion", "protocolVersion", "template", "compiler", "bindingDigest", "workspaceDigest"];
18866
- readonly properties: {
18867
- readonly schemaVersion: {
18868
- readonly const: "openxiangda.studio-workspace-initialization/v1";
18869
- };
18870
- readonly applicationAuthority: {
18871
- readonly const: "site-project-provisioning-run";
18872
- };
18873
- readonly siteBaseUrl: {
18874
- readonly type: "string";
18875
- readonly format: "uri";
18876
- readonly pattern: "^https://[^/?#@]+(?:/[^?#]*)?$";
18877
- readonly maxLength: 2048;
18878
- };
18879
- readonly projectId: {
18880
- readonly type: "string";
18881
- readonly format: "uuid";
18882
- };
18883
- readonly provisioningRunId: {
18884
- readonly type: "string";
18885
- readonly format: "uuid";
18886
- };
18887
- readonly appType: {
18888
- readonly type: "string";
18889
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
18890
- };
18891
- readonly appName: {
18892
- readonly type: "string";
18893
- readonly minLength: 1;
18894
- readonly maxLength: 256;
18895
- };
18896
- readonly workspace: {
18897
- readonly type: "object";
18898
- readonly additionalProperties: false;
18899
- readonly required: readonly ["reused"];
18900
- readonly properties: {
18901
- readonly reused: {
18902
- readonly type: "boolean";
18903
- };
18904
- };
18905
- };
18906
- readonly cliVersion: {
18907
- readonly type: "string";
18908
- readonly minLength: 1;
18909
- };
18910
- readonly protocolVersion: {
18911
- readonly const: "openxiangda.studio-workspace/v2";
18912
- };
18913
- readonly template: {
18914
- readonly $id: "openxiangda.workspace-template-binding/v1";
18915
- readonly type: "object";
18916
- readonly additionalProperties: false;
18917
- readonly required: readonly ["schemaVersion", "ref", "digest"];
18918
- readonly properties: {
18919
- readonly schemaVersion: {
18920
- readonly const: "openxiangda.workspace-template-binding/v1";
18921
- };
18922
- readonly ref: {
18923
- readonly type: "string";
18924
- readonly minLength: 1;
18925
- };
18926
- readonly digest: {
18927
- readonly type: "string";
18928
- readonly pattern: "^sha256:[0-9a-f]{64}$";
18929
- };
18930
- };
18931
- };
18932
- readonly compiler: {
18933
- readonly type: "object";
18934
- readonly additionalProperties: false;
18935
- readonly required: readonly ["toolchainVersion", "contractVersion", "compilerContractVersion", "configurationDigest", "contractDigest", "aiCatalogDigest"];
18936
- readonly properties: {
18937
- readonly toolchainVersion: {
18938
- readonly type: "string";
18939
- readonly minLength: 1;
18940
- };
18941
- readonly contractVersion: {
18942
- readonly type: "string";
18943
- readonly minLength: 1;
18944
- };
18945
- readonly compilerContractVersion: {
18946
- readonly type: "string";
18947
- readonly minLength: 1;
18948
- };
18949
- readonly configurationDigest: {
18950
- readonly type: "string";
18951
- readonly pattern: "^[0-9a-f]{64}$";
18952
- };
18953
- readonly contractDigest: {
18954
- readonly type: "string";
18955
- readonly pattern: "^[0-9a-f]{64}$";
18956
- };
18957
- readonly aiCatalogDigest: {
18958
- readonly type: "string";
18959
- readonly pattern: "^[0-9a-f]{64}$";
18960
- };
18961
- };
18962
- };
18963
- readonly bindingDigest: {
18964
- readonly type: "string";
18965
- readonly pattern: "^sha256:[0-9a-f]{64}$";
18966
- };
18967
- readonly workspaceDigest: {
18968
- readonly type: "string";
18969
- readonly pattern: "^sha256:[0-9a-f]{64}$";
18970
- };
18971
- };
18972
- };
18973
18277
  readonly workspaceTemplateBinding: {
18974
18278
  readonly $id: "openxiangda.workspace-template-binding/v1";
18975
18279
  readonly type: "object";
@@ -19226,13 +18530,13 @@ export declare const contractSchemas: {
19226
18530
  readonly type: "string";
19227
18531
  readonly minLength: 1;
19228
18532
  };
19229
- readonly studio: {
18533
+ readonly cli: {
19230
18534
  readonly type: "object";
19231
18535
  readonly additionalProperties: false;
19232
- readonly required: readonly ["schemaVersion", "cliResultSchemaVersion", "cliEvents", "templates", "initialization"];
18536
+ readonly required: readonly ["schemaVersion", "cliResultSchemaVersion", "cliEvents", "templates"];
19233
18537
  readonly properties: {
19234
18538
  readonly schemaVersion: {
19235
- readonly const: "openxiangda.studio-workspace/v2";
18539
+ readonly const: "openxiangda.cli/v1";
19236
18540
  };
19237
18541
  readonly cliResultSchemaVersion: {
19238
18542
  readonly const: "openxiangda.cli-result/v2";
@@ -19292,50 +18596,6 @@ export declare const contractSchemas: {
19292
18596
  };
19293
18597
  };
19294
18598
  };
19295
- readonly initialization: {
19296
- readonly type: "object";
19297
- readonly additionalProperties: false;
19298
- readonly required: readonly ["schemaVersion", "bindingSchemaVersion", "applicationAuthority", "applicationKey", "requiredCreateFlags", "repositoryAuthority"];
19299
- readonly properties: {
19300
- readonly schemaVersion: {
19301
- readonly const: "openxiangda.studio-workspace-initialization/v1";
19302
- };
19303
- readonly bindingSchemaVersion: {
19304
- readonly const: "openxiangda.studio-workspace-binding/v1";
19305
- };
19306
- readonly applicationAuthority: {
19307
- readonly const: "site-project-provisioning-run";
19308
- };
19309
- readonly applicationKey: {
19310
- readonly const: "appType";
19311
- };
19312
- readonly requiredCreateFlags: {
19313
- readonly type: "array";
19314
- readonly prefixItems: readonly [{
19315
- readonly const: "app-code";
19316
- }, {
19317
- readonly const: "name";
19318
- }, {
19319
- readonly const: "template-ref";
19320
- }, {
19321
- readonly const: "template-digest";
19322
- }, {
19323
- readonly const: "studio-project-id";
19324
- }, {
19325
- readonly const: "provisioning-run-id";
19326
- }, {
19327
- readonly const: "json-events";
19328
- }, {
19329
- readonly const: "run-id";
19330
- }];
19331
- readonly minItems: 8;
19332
- readonly maxItems: 8;
19333
- };
19334
- readonly repositoryAuthority: {
19335
- readonly const: "site-git-broker";
19336
- };
19337
- };
19338
- };
19339
18599
  };
19340
18600
  };
19341
18601
  };
@@ -23060,6 +22320,38 @@ export declare const contractSchemas: {
23060
22320
  };
23061
22321
  };
23062
22322
  };
22323
+ readonly decimalReservationLifecycle: {
22324
+ readonly type: "object";
22325
+ readonly additionalProperties: false;
22326
+ readonly required: readonly ["parentTransitions", "childTransitions", "fulfilledChildStatuses", "lockedParentStatuses"];
22327
+ readonly properties: {
22328
+ readonly [x: string]: {
22329
+ type: string;
22330
+ maxItems: number;
22331
+ uniqueItems: boolean;
22332
+ items: {
22333
+ type: string;
22334
+ additionalProperties: boolean;
22335
+ required: string[];
22336
+ properties: {
22337
+ [k: string]: {
22338
+ type: string;
22339
+ pattern: string;
22340
+ };
22341
+ };
22342
+ };
22343
+ } | {
22344
+ type: string;
22345
+ minItems: number;
22346
+ maxItems: number;
22347
+ uniqueItems: boolean;
22348
+ items: {
22349
+ type: string;
22350
+ pattern: string;
22351
+ };
22352
+ };
22353
+ };
22354
+ };
23063
22355
  readonly invariants: {
23064
22356
  readonly type: "array";
23065
22357
  readonly uniqueItems: true;