openxiangda-contracts 2.25.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.
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
  };
@@ -8788,203 +8538,67 @@ export declare const deploymentRunSchema: {
8788
8538
  };
8789
8539
  };
8790
8540
  };
8791
- export declare const studioCapabilitiesSchema: {
8792
- readonly $id: "openxiangda.studio-capabilities/v1";
8541
+ export declare const platformCapabilitiesSchema: {
8542
+ readonly $id: "openxiangda.platform-capabilities/v3";
8793
8543
  readonly type: "object";
8794
8544
  readonly additionalProperties: false;
8795
- readonly required: readonly ["schemaVersion", "studioContractVersion", "studio"];
8545
+ readonly required: readonly ["schemaVersion", "apiVersion", "contractVersion", "platformVersion", "features", "configurationCompatibility", "deployment"];
8796
8546
  readonly properties: {
8797
8547
  readonly schemaVersion: {
8798
- readonly const: "openxiangda.studio-capabilities/v1";
8548
+ readonly const: "openxiangda.platform-capabilities/v3";
8549
+ };
8550
+ readonly apiVersion: {
8551
+ readonly const: "v2";
8552
+ };
8553
+ readonly contractVersion: {
8554
+ readonly const: "2.0.0-alpha.5";
8799
8555
  };
8800
- readonly studioContractVersion: {
8801
- readonly const: "1.0.0";
8556
+ readonly platformVersion: {
8557
+ readonly type: "string";
8558
+ readonly minLength: 1;
8802
8559
  };
8803
- readonly studio: {
8560
+ readonly sourceHosting: {
8804
8561
  readonly type: "object";
8805
8562
  readonly additionalProperties: false;
8806
- readonly required: readonly ["contractVersion", "profile", "compatibility"];
8563
+ readonly required: readonly ["provider", "enabled"];
8807
8564
  readonly properties: {
8808
- readonly contractVersion: {
8809
- readonly const: "1.0.0";
8565
+ readonly provider: {
8566
+ readonly const: "forgejo";
8810
8567
  };
8811
- readonly profile: {
8812
- readonly oneOf: readonly [{
8568
+ readonly enabled: {
8569
+ readonly type: "boolean";
8570
+ };
8571
+ };
8572
+ };
8573
+ readonly features: {
8574
+ readonly type: "object";
8575
+ readonly maxProperties: 256;
8576
+ readonly propertyNames: {
8577
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
8578
+ };
8579
+ readonly additionalProperties: {
8580
+ readonly type: "object";
8581
+ readonly additionalProperties: false;
8582
+ readonly required: readonly ["contractVersion", "status"];
8583
+ readonly properties: {
8584
+ readonly contractVersion: {
8585
+ readonly type: "string";
8586
+ readonly minLength: 1;
8587
+ };
8588
+ readonly status: {
8589
+ readonly enum: readonly ["available", "preview", "planned"];
8590
+ };
8591
+ readonly limits: {
8813
8592
  readonly type: "object";
8814
- readonly additionalProperties: false;
8815
- readonly required: readonly ["schemaVersion", "endpoint", "status", "signatureAlgorithm", "verificationOwner"];
8816
- readonly properties: {
8817
- readonly schemaVersion: {
8818
- readonly const: "openxiangda.studio-site-profile/v1";
8819
- };
8820
- readonly endpoint: {
8821
- readonly const: "/openxiangda-api/v2/studio/profile";
8822
- };
8823
- readonly status: {
8824
- readonly const: "available";
8825
- };
8826
- readonly signatureAlgorithm: {
8827
- readonly const: "Ed25519";
8828
- };
8829
- readonly verificationOwner: {
8830
- readonly const: "studio-client-trust-store";
8831
- };
8593
+ readonly maxProperties: 64;
8594
+ readonly propertyNames: {
8595
+ readonly pattern: "^[a-z][a-zA-Z0-9]*(?:[.-][a-zA-Z0-9]+)*$";
8832
8596
  };
8833
- }, {
8834
- readonly type: "object";
8835
- readonly additionalProperties: false;
8836
- readonly required: readonly ["schemaVersion", "endpoint", "status", "unavailableCode", "signatureAlgorithm", "verificationOwner"];
8837
- readonly properties: {
8838
- readonly schemaVersion: {
8839
- readonly const: "openxiangda.studio-site-profile/v1";
8840
- };
8841
- readonly endpoint: {
8842
- readonly const: "/openxiangda-api/v2/studio/profile";
8843
- };
8844
- readonly status: {
8845
- readonly const: "unavailable";
8846
- };
8847
- readonly unavailableCode: {
8848
- readonly enum: readonly ["STUDIO_SITE_PROFILE_NOT_CONFIGURED", "STUDIO_SITE_PROFILE_INVALID", "STUDIO_SITE_PROFILE_EXPIRED"];
8849
- };
8850
- readonly signatureAlgorithm: {
8851
- readonly const: "Ed25519";
8852
- };
8853
- readonly verificationOwner: {
8854
- readonly const: "studio-client-trust-store";
8855
- };
8597
+ readonly additionalProperties: {
8598
+ readonly type: "number";
8599
+ readonly minimum: 0;
8856
8600
  };
8857
- }];
8858
- };
8859
- readonly compatibility: {
8860
- readonly type: "object";
8861
- readonly additionalProperties: false;
8862
- readonly required: readonly ["studioContractRange", "cliContractRange"];
8863
- readonly properties: {
8864
- readonly studioContractRange: {
8865
- readonly type: readonly ["string", "null"];
8866
- readonly minLength: 1;
8867
- readonly maxLength: 128;
8868
- };
8869
- readonly cliContractRange: {
8870
- readonly type: readonly ["string", "null"];
8871
- readonly minLength: 1;
8872
- readonly maxLength: 128;
8873
- };
8874
- };
8875
- };
8876
- };
8877
- readonly allOf: readonly [{
8878
- readonly if: {
8879
- readonly properties: {
8880
- readonly profile: {
8881
- readonly properties: {
8882
- readonly status: {
8883
- readonly const: "available";
8884
- };
8885
- };
8886
- readonly required: readonly ["status"];
8887
- };
8888
- };
8889
- readonly required: readonly ["profile"];
8890
- };
8891
- readonly then: {
8892
- readonly properties: {
8893
- readonly compatibility: {
8894
- readonly properties: {
8895
- readonly studioContractRange: {
8896
- readonly type: "string";
8897
- readonly minLength: 1;
8898
- readonly maxLength: 128;
8899
- };
8900
- readonly cliContractRange: {
8901
- readonly type: "string";
8902
- readonly minLength: 1;
8903
- readonly maxLength: 128;
8904
- };
8905
- };
8906
- };
8907
- };
8908
- };
8909
- readonly else: {
8910
- readonly properties: {
8911
- readonly compatibility: {
8912
- readonly properties: {
8913
- readonly studioContractRange: {
8914
- readonly const: null;
8915
- };
8916
- readonly cliContractRange: {
8917
- readonly const: null;
8918
- };
8919
- };
8920
- };
8921
- };
8922
- };
8923
- }];
8924
- };
8925
- };
8926
- };
8927
- export declare const platformCapabilitiesSchema: {
8928
- readonly $id: "openxiangda.platform-capabilities/v3";
8929
- readonly type: "object";
8930
- readonly additionalProperties: false;
8931
- readonly required: readonly ["schemaVersion", "apiVersion", "contractVersion", "platformVersion", "features", "configurationCompatibility", "deployment"];
8932
- readonly properties: {
8933
- readonly schemaVersion: {
8934
- readonly const: "openxiangda.platform-capabilities/v3";
8935
- };
8936
- readonly apiVersion: {
8937
- readonly const: "v2";
8938
- };
8939
- readonly contractVersion: {
8940
- readonly const: "2.0.0-alpha.5";
8941
- };
8942
- readonly platformVersion: {
8943
- readonly type: "string";
8944
- readonly minLength: 1;
8945
- };
8946
- readonly sourceHosting: {
8947
- readonly type: "object";
8948
- readonly additionalProperties: false;
8949
- readonly required: readonly ["provider", "enabled"];
8950
- readonly properties: {
8951
- readonly provider: {
8952
- readonly const: "forgejo";
8953
- };
8954
- readonly enabled: {
8955
- readonly type: "boolean";
8956
- };
8957
- };
8958
- };
8959
- readonly features: {
8960
- readonly type: "object";
8961
- readonly maxProperties: 256;
8962
- readonly propertyNames: {
8963
- readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
8964
- };
8965
- readonly additionalProperties: {
8966
- readonly type: "object";
8967
- readonly additionalProperties: false;
8968
- readonly required: readonly ["contractVersion", "status"];
8969
- readonly properties: {
8970
- readonly contractVersion: {
8971
- readonly type: "string";
8972
- readonly minLength: 1;
8973
- };
8974
- readonly status: {
8975
- readonly enum: readonly ["available", "preview", "planned"];
8976
- };
8977
- readonly limits: {
8978
- readonly type: "object";
8979
- readonly maxProperties: 64;
8980
- readonly propertyNames: {
8981
- readonly pattern: "^[a-z][a-zA-Z0-9]*(?:[.-][a-zA-Z0-9]+)*$";
8982
- };
8983
- readonly additionalProperties: {
8984
- readonly type: "number";
8985
- readonly minimum: 0;
8986
- };
8987
- };
8601
+ };
8988
8602
  };
8989
8603
  };
8990
8604
  };
@@ -18626,143 +18240,7 @@ export declare const contractSchemas: {
18626
18240
  };
18627
18241
  };
18628
18242
  };
18629
- readonly studioCapabilities: {
18630
- readonly $id: "openxiangda.studio-capabilities/v1";
18631
- readonly type: "object";
18632
- readonly additionalProperties: false;
18633
- readonly required: readonly ["schemaVersion", "studioContractVersion", "studio"];
18634
- readonly properties: {
18635
- readonly schemaVersion: {
18636
- readonly const: "openxiangda.studio-capabilities/v1";
18637
- };
18638
- readonly studioContractVersion: {
18639
- readonly const: "1.0.0";
18640
- };
18641
- readonly studio: {
18642
- readonly type: "object";
18643
- readonly additionalProperties: false;
18644
- readonly required: readonly ["contractVersion", "profile", "compatibility"];
18645
- readonly properties: {
18646
- readonly contractVersion: {
18647
- readonly const: "1.0.0";
18648
- };
18649
- readonly profile: {
18650
- readonly oneOf: readonly [{
18651
- readonly type: "object";
18652
- readonly additionalProperties: false;
18653
- readonly required: readonly ["schemaVersion", "endpoint", "status", "signatureAlgorithm", "verificationOwner"];
18654
- readonly properties: {
18655
- readonly schemaVersion: {
18656
- readonly const: "openxiangda.studio-site-profile/v1";
18657
- };
18658
- readonly endpoint: {
18659
- readonly const: "/openxiangda-api/v2/studio/profile";
18660
- };
18661
- readonly status: {
18662
- readonly const: "available";
18663
- };
18664
- readonly signatureAlgorithm: {
18665
- readonly const: "Ed25519";
18666
- };
18667
- readonly verificationOwner: {
18668
- readonly const: "studio-client-trust-store";
18669
- };
18670
- };
18671
- }, {
18672
- readonly type: "object";
18673
- readonly additionalProperties: false;
18674
- readonly required: readonly ["schemaVersion", "endpoint", "status", "unavailableCode", "signatureAlgorithm", "verificationOwner"];
18675
- readonly properties: {
18676
- readonly schemaVersion: {
18677
- readonly const: "openxiangda.studio-site-profile/v1";
18678
- };
18679
- readonly endpoint: {
18680
- readonly const: "/openxiangda-api/v2/studio/profile";
18681
- };
18682
- readonly status: {
18683
- readonly const: "unavailable";
18684
- };
18685
- readonly unavailableCode: {
18686
- readonly enum: readonly ["STUDIO_SITE_PROFILE_NOT_CONFIGURED", "STUDIO_SITE_PROFILE_INVALID", "STUDIO_SITE_PROFILE_EXPIRED"];
18687
- };
18688
- readonly signatureAlgorithm: {
18689
- readonly const: "Ed25519";
18690
- };
18691
- readonly verificationOwner: {
18692
- readonly const: "studio-client-trust-store";
18693
- };
18694
- };
18695
- }];
18696
- };
18697
- readonly compatibility: {
18698
- readonly type: "object";
18699
- readonly additionalProperties: false;
18700
- readonly required: readonly ["studioContractRange", "cliContractRange"];
18701
- readonly properties: {
18702
- readonly studioContractRange: {
18703
- readonly type: readonly ["string", "null"];
18704
- readonly minLength: 1;
18705
- readonly maxLength: 128;
18706
- };
18707
- readonly cliContractRange: {
18708
- readonly type: readonly ["string", "null"];
18709
- readonly minLength: 1;
18710
- readonly maxLength: 128;
18711
- };
18712
- };
18713
- };
18714
- };
18715
- readonly allOf: readonly [{
18716
- readonly if: {
18717
- readonly properties: {
18718
- readonly profile: {
18719
- readonly properties: {
18720
- readonly status: {
18721
- readonly const: "available";
18722
- };
18723
- };
18724
- readonly required: readonly ["status"];
18725
- };
18726
- };
18727
- readonly required: readonly ["profile"];
18728
- };
18729
- readonly then: {
18730
- readonly properties: {
18731
- readonly compatibility: {
18732
- readonly properties: {
18733
- readonly studioContractRange: {
18734
- readonly type: "string";
18735
- readonly minLength: 1;
18736
- readonly maxLength: 128;
18737
- };
18738
- readonly cliContractRange: {
18739
- readonly type: "string";
18740
- readonly minLength: 1;
18741
- readonly maxLength: 128;
18742
- };
18743
- };
18744
- };
18745
- };
18746
- };
18747
- readonly else: {
18748
- readonly properties: {
18749
- readonly compatibility: {
18750
- readonly properties: {
18751
- readonly studioContractRange: {
18752
- readonly const: null;
18753
- };
18754
- readonly cliContractRange: {
18755
- readonly const: null;
18756
- };
18757
- };
18758
- };
18759
- };
18760
- };
18761
- }];
18762
- };
18763
- };
18764
- };
18765
- readonly studioCliEvent: {
18243
+ readonly cliEvent: {
18766
18244
  readonly $id: "openxiangda.cli-event/v1";
18767
18245
  readonly type: "object";
18768
18246
  readonly additionalProperties: false;
@@ -18796,212 +18274,6 @@ export declare const contractSchemas: {
18796
18274
  };
18797
18275
  };
18798
18276
  };
18799
- readonly studioWorkspaceBinding: {
18800
- readonly $id: "openxiangda.studio-workspace-binding/v1";
18801
- readonly type: "object";
18802
- readonly additionalProperties: false;
18803
- readonly required: readonly ["schemaVersion", "applicationAuthority", "siteBaseUrl", "projectId", "provisioningRunId", "appType", "appName", "template", "state", "compiler"];
18804
- readonly properties: {
18805
- readonly schemaVersion: {
18806
- readonly const: "openxiangda.studio-workspace-binding/v1";
18807
- };
18808
- readonly applicationAuthority: {
18809
- readonly const: "site-project-provisioning-run";
18810
- };
18811
- readonly siteBaseUrl: {
18812
- readonly type: "string";
18813
- readonly format: "uri";
18814
- readonly pattern: "^https://[^/?#@]+(?:/[^?#]*)?$";
18815
- readonly maxLength: 2048;
18816
- };
18817
- readonly projectId: {
18818
- readonly type: "string";
18819
- readonly format: "uuid";
18820
- };
18821
- readonly provisioningRunId: {
18822
- readonly type: "string";
18823
- readonly format: "uuid";
18824
- };
18825
- readonly appType: {
18826
- readonly type: "string";
18827
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
18828
- };
18829
- readonly appName: {
18830
- readonly type: "string";
18831
- readonly minLength: 1;
18832
- readonly maxLength: 256;
18833
- };
18834
- readonly template: {
18835
- readonly $id: "openxiangda.workspace-template-binding/v1";
18836
- readonly type: "object";
18837
- readonly additionalProperties: false;
18838
- readonly required: readonly ["schemaVersion", "ref", "digest"];
18839
- readonly properties: {
18840
- readonly schemaVersion: {
18841
- readonly const: "openxiangda.workspace-template-binding/v1";
18842
- };
18843
- readonly ref: {
18844
- readonly type: "string";
18845
- readonly minLength: 1;
18846
- };
18847
- readonly digest: {
18848
- readonly type: "string";
18849
- readonly pattern: "^sha256:[0-9a-f]{64}$";
18850
- };
18851
- };
18852
- };
18853
- readonly state: {
18854
- readonly enum: readonly ["prepared", "compiled"];
18855
- };
18856
- readonly compiler: {
18857
- readonly anyOf: readonly [{
18858
- readonly type: "null";
18859
- }, {
18860
- readonly type: "object";
18861
- readonly additionalProperties: false;
18862
- readonly required: readonly ["toolchainVersion", "contractVersion", "compilerContractVersion", "configurationDigest", "contractDigest", "aiCatalogDigest"];
18863
- readonly properties: {
18864
- readonly toolchainVersion: {
18865
- readonly type: "string";
18866
- readonly minLength: 1;
18867
- };
18868
- readonly contractVersion: {
18869
- readonly type: "string";
18870
- readonly minLength: 1;
18871
- };
18872
- readonly compilerContractVersion: {
18873
- readonly type: "string";
18874
- readonly minLength: 1;
18875
- };
18876
- readonly configurationDigest: {
18877
- readonly type: "string";
18878
- readonly pattern: "^[0-9a-f]{64}$";
18879
- };
18880
- readonly contractDigest: {
18881
- readonly type: "string";
18882
- readonly pattern: "^[0-9a-f]{64}$";
18883
- };
18884
- readonly aiCatalogDigest: {
18885
- readonly type: "string";
18886
- readonly pattern: "^[0-9a-f]{64}$";
18887
- };
18888
- };
18889
- }];
18890
- };
18891
- };
18892
- };
18893
- readonly studioWorkspaceInitialization: {
18894
- readonly $id: "openxiangda.studio-workspace-initialization/v1";
18895
- readonly type: "object";
18896
- readonly additionalProperties: false;
18897
- readonly required: readonly ["schemaVersion", "applicationAuthority", "siteBaseUrl", "projectId", "provisioningRunId", "appType", "appName", "workspace", "cliVersion", "protocolVersion", "template", "compiler", "bindingDigest", "workspaceDigest"];
18898
- readonly properties: {
18899
- readonly schemaVersion: {
18900
- readonly const: "openxiangda.studio-workspace-initialization/v1";
18901
- };
18902
- readonly applicationAuthority: {
18903
- readonly const: "site-project-provisioning-run";
18904
- };
18905
- readonly siteBaseUrl: {
18906
- readonly type: "string";
18907
- readonly format: "uri";
18908
- readonly pattern: "^https://[^/?#@]+(?:/[^?#]*)?$";
18909
- readonly maxLength: 2048;
18910
- };
18911
- readonly projectId: {
18912
- readonly type: "string";
18913
- readonly format: "uuid";
18914
- };
18915
- readonly provisioningRunId: {
18916
- readonly type: "string";
18917
- readonly format: "uuid";
18918
- };
18919
- readonly appType: {
18920
- readonly type: "string";
18921
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
18922
- };
18923
- readonly appName: {
18924
- readonly type: "string";
18925
- readonly minLength: 1;
18926
- readonly maxLength: 256;
18927
- };
18928
- readonly workspace: {
18929
- readonly type: "object";
18930
- readonly additionalProperties: false;
18931
- readonly required: readonly ["reused"];
18932
- readonly properties: {
18933
- readonly reused: {
18934
- readonly type: "boolean";
18935
- };
18936
- };
18937
- };
18938
- readonly cliVersion: {
18939
- readonly type: "string";
18940
- readonly minLength: 1;
18941
- };
18942
- readonly protocolVersion: {
18943
- readonly const: "openxiangda.studio-workspace/v2";
18944
- };
18945
- readonly template: {
18946
- readonly $id: "openxiangda.workspace-template-binding/v1";
18947
- readonly type: "object";
18948
- readonly additionalProperties: false;
18949
- readonly required: readonly ["schemaVersion", "ref", "digest"];
18950
- readonly properties: {
18951
- readonly schemaVersion: {
18952
- readonly const: "openxiangda.workspace-template-binding/v1";
18953
- };
18954
- readonly ref: {
18955
- readonly type: "string";
18956
- readonly minLength: 1;
18957
- };
18958
- readonly digest: {
18959
- readonly type: "string";
18960
- readonly pattern: "^sha256:[0-9a-f]{64}$";
18961
- };
18962
- };
18963
- };
18964
- readonly compiler: {
18965
- readonly type: "object";
18966
- readonly additionalProperties: false;
18967
- readonly required: readonly ["toolchainVersion", "contractVersion", "compilerContractVersion", "configurationDigest", "contractDigest", "aiCatalogDigest"];
18968
- readonly properties: {
18969
- readonly toolchainVersion: {
18970
- readonly type: "string";
18971
- readonly minLength: 1;
18972
- };
18973
- readonly contractVersion: {
18974
- readonly type: "string";
18975
- readonly minLength: 1;
18976
- };
18977
- readonly compilerContractVersion: {
18978
- readonly type: "string";
18979
- readonly minLength: 1;
18980
- };
18981
- readonly configurationDigest: {
18982
- readonly type: "string";
18983
- readonly pattern: "^[0-9a-f]{64}$";
18984
- };
18985
- readonly contractDigest: {
18986
- readonly type: "string";
18987
- readonly pattern: "^[0-9a-f]{64}$";
18988
- };
18989
- readonly aiCatalogDigest: {
18990
- readonly type: "string";
18991
- readonly pattern: "^[0-9a-f]{64}$";
18992
- };
18993
- };
18994
- };
18995
- readonly bindingDigest: {
18996
- readonly type: "string";
18997
- readonly pattern: "^sha256:[0-9a-f]{64}$";
18998
- };
18999
- readonly workspaceDigest: {
19000
- readonly type: "string";
19001
- readonly pattern: "^sha256:[0-9a-f]{64}$";
19002
- };
19003
- };
19004
- };
19005
18277
  readonly workspaceTemplateBinding: {
19006
18278
  readonly $id: "openxiangda.workspace-template-binding/v1";
19007
18279
  readonly type: "object";
@@ -19258,13 +18530,13 @@ export declare const contractSchemas: {
19258
18530
  readonly type: "string";
19259
18531
  readonly minLength: 1;
19260
18532
  };
19261
- readonly studio: {
18533
+ readonly cli: {
19262
18534
  readonly type: "object";
19263
18535
  readonly additionalProperties: false;
19264
- readonly required: readonly ["schemaVersion", "cliResultSchemaVersion", "cliEvents", "templates", "initialization"];
18536
+ readonly required: readonly ["schemaVersion", "cliResultSchemaVersion", "cliEvents", "templates"];
19265
18537
  readonly properties: {
19266
18538
  readonly schemaVersion: {
19267
- readonly const: "openxiangda.studio-workspace/v2";
18539
+ readonly const: "openxiangda.cli/v1";
19268
18540
  };
19269
18541
  readonly cliResultSchemaVersion: {
19270
18542
  readonly const: "openxiangda.cli-result/v2";
@@ -19324,50 +18596,6 @@ export declare const contractSchemas: {
19324
18596
  };
19325
18597
  };
19326
18598
  };
19327
- readonly initialization: {
19328
- readonly type: "object";
19329
- readonly additionalProperties: false;
19330
- readonly required: readonly ["schemaVersion", "bindingSchemaVersion", "applicationAuthority", "applicationKey", "requiredCreateFlags", "repositoryAuthority"];
19331
- readonly properties: {
19332
- readonly schemaVersion: {
19333
- readonly const: "openxiangda.studio-workspace-initialization/v1";
19334
- };
19335
- readonly bindingSchemaVersion: {
19336
- readonly const: "openxiangda.studio-workspace-binding/v1";
19337
- };
19338
- readonly applicationAuthority: {
19339
- readonly const: "site-project-provisioning-run";
19340
- };
19341
- readonly applicationKey: {
19342
- readonly const: "appType";
19343
- };
19344
- readonly requiredCreateFlags: {
19345
- readonly type: "array";
19346
- readonly prefixItems: readonly [{
19347
- readonly const: "app-code";
19348
- }, {
19349
- readonly const: "name";
19350
- }, {
19351
- readonly const: "template-ref";
19352
- }, {
19353
- readonly const: "template-digest";
19354
- }, {
19355
- readonly const: "studio-project-id";
19356
- }, {
19357
- readonly const: "provisioning-run-id";
19358
- }, {
19359
- readonly const: "json-events";
19360
- }, {
19361
- readonly const: "run-id";
19362
- }];
19363
- readonly minItems: 8;
19364
- readonly maxItems: 8;
19365
- };
19366
- readonly repositoryAuthority: {
19367
- readonly const: "site-git-broker";
19368
- };
19369
- };
19370
- };
19371
18599
  };
19372
18600
  };
19373
18601
  };