@vcp-dev/contracts 0.8.1 → 0.8.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.
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * 由 release-edit-engine-packages.ts 在 bump 版本时自动更新。
7
7
  */
8
- export declare const CURRENT_EDIT_ENGINE_VERSION = "0.8.1";
8
+ export declare const CURRENT_EDIT_ENGINE_VERSION = "0.8.2";
9
9
  export declare const EDIT_ENGINE_VERSION_HEADER = "x-vcp-edit-engine-version";
10
10
  export declare const EDIT_ENGINE_VERSION_SOURCE_HEADER = "x-vcp-edit-engine-version-source";
11
11
  export type EditEngineVersionSource = "explicit" | "fallback_current" | "system_current";
@@ -75,6 +75,20 @@ export declare const CheckSitePublishDomainDataSchema: z.ZodObject<{
75
75
  code: z.ZodString;
76
76
  message: z.ZodString;
77
77
  }, z.core.$strict>>;
78
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
79
+ ready: z.ZodBoolean;
80
+ providerReady: z.ZodBoolean;
81
+ dnsVerified: z.ZodBoolean;
82
+ records: z.ZodArray<z.ZodObject<{
83
+ purpose: z.ZodEnum<{
84
+ traffic: "traffic";
85
+ ownership: "ownership";
86
+ certificate_delegation: "certificate_delegation";
87
+ }>;
88
+ verified: z.ZodBoolean;
89
+ observedValues: z.ZodArray<z.ZodString>;
90
+ }, z.core.$strict>>;
91
+ }, z.core.$strict>>>;
78
92
  }, z.core.$strict>;
79
93
  }, z.core.$strict>;
80
94
  export type CheckSitePublishDomainData = z.infer<typeof CheckSitePublishDomainDataSchema>;
@@ -150,6 +164,20 @@ export declare const CheckSitePublishDomainResponseSchema: z.ZodObject<{
150
164
  code: z.ZodString;
151
165
  message: z.ZodString;
152
166
  }, z.core.$strict>>;
167
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
168
+ ready: z.ZodBoolean;
169
+ providerReady: z.ZodBoolean;
170
+ dnsVerified: z.ZodBoolean;
171
+ records: z.ZodArray<z.ZodObject<{
172
+ purpose: z.ZodEnum<{
173
+ traffic: "traffic";
174
+ ownership: "ownership";
175
+ certificate_delegation: "certificate_delegation";
176
+ }>;
177
+ verified: z.ZodBoolean;
178
+ observedValues: z.ZodArray<z.ZodString>;
179
+ }, z.core.$strict>>;
180
+ }, z.core.$strict>>>;
153
181
  }, z.core.$strict>;
154
182
  }, z.core.$strict>;
155
183
  message: z.ZodString;
@@ -225,6 +253,20 @@ export declare const GetSitePublishDomainOperationDataSchema: z.ZodObject<{
225
253
  code: z.ZodString;
226
254
  message: z.ZodString;
227
255
  }, z.core.$strict>>;
256
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
257
+ ready: z.ZodBoolean;
258
+ providerReady: z.ZodBoolean;
259
+ dnsVerified: z.ZodBoolean;
260
+ records: z.ZodArray<z.ZodObject<{
261
+ purpose: z.ZodEnum<{
262
+ traffic: "traffic";
263
+ ownership: "ownership";
264
+ certificate_delegation: "certificate_delegation";
265
+ }>;
266
+ verified: z.ZodBoolean;
267
+ observedValues: z.ZodArray<z.ZodString>;
268
+ }, z.core.$strict>>;
269
+ }, z.core.$strict>>>;
228
270
  }, z.core.$strict>>;
229
271
  }, z.core.$strict>;
230
272
  export type GetSitePublishDomainOperationData = z.infer<typeof GetSitePublishDomainOperationDataSchema>;
@@ -300,11 +342,204 @@ export declare const GetSitePublishDomainOperationResponseSchema: z.ZodObject<{
300
342
  code: z.ZodString;
301
343
  message: z.ZodString;
302
344
  }, z.core.$strict>>;
345
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
346
+ ready: z.ZodBoolean;
347
+ providerReady: z.ZodBoolean;
348
+ dnsVerified: z.ZodBoolean;
349
+ records: z.ZodArray<z.ZodObject<{
350
+ purpose: z.ZodEnum<{
351
+ traffic: "traffic";
352
+ ownership: "ownership";
353
+ certificate_delegation: "certificate_delegation";
354
+ }>;
355
+ verified: z.ZodBoolean;
356
+ observedValues: z.ZodArray<z.ZodString>;
357
+ }, z.core.$strict>>;
358
+ }, z.core.$strict>>>;
303
359
  }, z.core.$strict>>;
304
360
  }, z.core.$strict>;
305
361
  message: z.ZodString;
306
362
  }, z.core.$strict>;
307
363
  export type GetSitePublishDomainOperationResponse = z.infer<typeof GetSitePublishDomainOperationResponseSchema>;
364
+ /** Explicit command response used to recover/reconcile the current Operation. */
365
+ export declare const ReconcileSitePublishDomainOperationDataSchema: z.ZodObject<{
366
+ workflow: z.ZodObject<{
367
+ id: z.ZodUUID;
368
+ tenant_id: z.ZodString;
369
+ site_id: z.ZodUUID;
370
+ status: z.ZodEnum<{
371
+ active: "active";
372
+ completed: "completed";
373
+ canceled: "canceled";
374
+ }>;
375
+ current_step: z.ZodEnum<{
376
+ domain: "domain";
377
+ quality: "quality";
378
+ gsc: "gsc";
379
+ publish: "publish";
380
+ }>;
381
+ sensitive_word_task_id: z.ZodNumber;
382
+ sensitive_word_task_status: z.ZodEnum<{
383
+ failed: "failed";
384
+ succeeded: "succeeded";
385
+ pending: "pending";
386
+ running: "running";
387
+ }>;
388
+ quality_task_code: z.ZodString;
389
+ quality_task_status: z.ZodEnum<{
390
+ failed: "failed";
391
+ succeeded: "succeeded";
392
+ pending: "pending";
393
+ running: "running";
394
+ }>;
395
+ task_id: z.ZodNullable<z.ZodString>;
396
+ task_status: z.ZodEnum<{
397
+ failed: "failed";
398
+ succeeded: "succeeded";
399
+ pending: "pending";
400
+ running: "running";
401
+ }>;
402
+ publish_deployment_id: z.ZodNullable<z.ZodUUID>;
403
+ domain_hostname: z.ZodNullable<z.ZodString>;
404
+ domain_operation_type: z.ZodNullable<z.ZodEnum<{
405
+ prepare_configuration: "prepare_configuration";
406
+ apply_configuration: "apply_configuration";
407
+ verify_dns: "verify_dns";
408
+ }>>;
409
+ domain_operation_payload: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
410
+ domain_preparation_operation_id: z.ZodNullable<z.ZodString>;
411
+ domain_operation_id: z.ZodNullable<z.ZodString>;
412
+ revision: z.ZodNumber;
413
+ created_at: z.ZodString;
414
+ updated_at: z.ZodString;
415
+ completed_at: z.ZodNullable<z.ZodString>;
416
+ canceled_at: z.ZodNullable<z.ZodString>;
417
+ }, z.core.$strict>;
418
+ operation: z.ZodNullable<z.ZodObject<{
419
+ id: z.ZodString;
420
+ type: z.ZodEnum<{
421
+ prepare_configuration: "prepare_configuration";
422
+ apply_configuration: "apply_configuration";
423
+ verify_dns: "verify_dns";
424
+ }>;
425
+ status: z.ZodEnum<{
426
+ failed: "failed";
427
+ succeeded: "succeeded";
428
+ accepted: "accepted";
429
+ running: "running";
430
+ }>;
431
+ error: z.ZodNullable<z.ZodObject<{
432
+ code: z.ZodString;
433
+ message: z.ZodString;
434
+ }, z.core.$strict>>;
435
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
436
+ ready: z.ZodBoolean;
437
+ providerReady: z.ZodBoolean;
438
+ dnsVerified: z.ZodBoolean;
439
+ records: z.ZodArray<z.ZodObject<{
440
+ purpose: z.ZodEnum<{
441
+ traffic: "traffic";
442
+ ownership: "ownership";
443
+ certificate_delegation: "certificate_delegation";
444
+ }>;
445
+ verified: z.ZodBoolean;
446
+ observedValues: z.ZodArray<z.ZodString>;
447
+ }, z.core.$strict>>;
448
+ }, z.core.$strict>>>;
449
+ }, z.core.$strict>>;
450
+ }, z.core.$strict>;
451
+ export type ReconcileSitePublishDomainOperationData = z.infer<typeof ReconcileSitePublishDomainOperationDataSchema>;
452
+ export declare const ReconcileSitePublishDomainOperationResponseSchema: z.ZodObject<{
453
+ code: z.ZodNumber;
454
+ data: z.ZodObject<{
455
+ workflow: z.ZodObject<{
456
+ id: z.ZodUUID;
457
+ tenant_id: z.ZodString;
458
+ site_id: z.ZodUUID;
459
+ status: z.ZodEnum<{
460
+ active: "active";
461
+ completed: "completed";
462
+ canceled: "canceled";
463
+ }>;
464
+ current_step: z.ZodEnum<{
465
+ domain: "domain";
466
+ quality: "quality";
467
+ gsc: "gsc";
468
+ publish: "publish";
469
+ }>;
470
+ sensitive_word_task_id: z.ZodNumber;
471
+ sensitive_word_task_status: z.ZodEnum<{
472
+ failed: "failed";
473
+ succeeded: "succeeded";
474
+ pending: "pending";
475
+ running: "running";
476
+ }>;
477
+ quality_task_code: z.ZodString;
478
+ quality_task_status: z.ZodEnum<{
479
+ failed: "failed";
480
+ succeeded: "succeeded";
481
+ pending: "pending";
482
+ running: "running";
483
+ }>;
484
+ task_id: z.ZodNullable<z.ZodString>;
485
+ task_status: z.ZodEnum<{
486
+ failed: "failed";
487
+ succeeded: "succeeded";
488
+ pending: "pending";
489
+ running: "running";
490
+ }>;
491
+ publish_deployment_id: z.ZodNullable<z.ZodUUID>;
492
+ domain_hostname: z.ZodNullable<z.ZodString>;
493
+ domain_operation_type: z.ZodNullable<z.ZodEnum<{
494
+ prepare_configuration: "prepare_configuration";
495
+ apply_configuration: "apply_configuration";
496
+ verify_dns: "verify_dns";
497
+ }>>;
498
+ domain_operation_payload: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
499
+ domain_preparation_operation_id: z.ZodNullable<z.ZodString>;
500
+ domain_operation_id: z.ZodNullable<z.ZodString>;
501
+ revision: z.ZodNumber;
502
+ created_at: z.ZodString;
503
+ updated_at: z.ZodString;
504
+ completed_at: z.ZodNullable<z.ZodString>;
505
+ canceled_at: z.ZodNullable<z.ZodString>;
506
+ }, z.core.$strict>;
507
+ operation: z.ZodNullable<z.ZodObject<{
508
+ id: z.ZodString;
509
+ type: z.ZodEnum<{
510
+ prepare_configuration: "prepare_configuration";
511
+ apply_configuration: "apply_configuration";
512
+ verify_dns: "verify_dns";
513
+ }>;
514
+ status: z.ZodEnum<{
515
+ failed: "failed";
516
+ succeeded: "succeeded";
517
+ accepted: "accepted";
518
+ running: "running";
519
+ }>;
520
+ error: z.ZodNullable<z.ZodObject<{
521
+ code: z.ZodString;
522
+ message: z.ZodString;
523
+ }, z.core.$strict>>;
524
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
525
+ ready: z.ZodBoolean;
526
+ providerReady: z.ZodBoolean;
527
+ dnsVerified: z.ZodBoolean;
528
+ records: z.ZodArray<z.ZodObject<{
529
+ purpose: z.ZodEnum<{
530
+ traffic: "traffic";
531
+ ownership: "ownership";
532
+ certificate_delegation: "certificate_delegation";
533
+ }>;
534
+ verified: z.ZodBoolean;
535
+ observedValues: z.ZodArray<z.ZodString>;
536
+ }, z.core.$strict>>;
537
+ }, z.core.$strict>>>;
538
+ }, z.core.$strict>>;
539
+ }, z.core.$strict>;
540
+ message: z.ZodString;
541
+ }, z.core.$strict>;
542
+ export type ReconcileSitePublishDomainOperationResponse = z.infer<typeof ReconcileSitePublishDomainOperationResponseSchema>;
308
543
  /** Read-only Cloud-backed configuration exposed to Browser/Web. */
309
544
  export declare const GetSiteDomainConfigurationResponseSchema: z.ZodObject<{
310
545
  code: z.ZodNumber;
@@ -448,6 +683,20 @@ export declare const SitePublishDomainCheckDataSchema: z.ZodObject<{
448
683
  code: z.ZodString;
449
684
  message: z.ZodString;
450
685
  }, z.core.$strict>>;
686
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
687
+ ready: z.ZodBoolean;
688
+ providerReady: z.ZodBoolean;
689
+ dnsVerified: z.ZodBoolean;
690
+ records: z.ZodArray<z.ZodObject<{
691
+ purpose: z.ZodEnum<{
692
+ traffic: "traffic";
693
+ ownership: "ownership";
694
+ certificate_delegation: "certificate_delegation";
695
+ }>;
696
+ verified: z.ZodBoolean;
697
+ observedValues: z.ZodArray<z.ZodString>;
698
+ }, z.core.$strict>>;
699
+ }, z.core.$strict>>>;
451
700
  }, z.core.$strict>;
452
701
  }, z.core.$strict>;
453
702
  export type SitePublishDomainCheckData = CheckSitePublishDomainData;
@@ -523,6 +772,20 @@ export declare const SitePublishDomainCheckResponseSchema: z.ZodObject<{
523
772
  code: z.ZodString;
524
773
  message: z.ZodString;
525
774
  }, z.core.$strict>>;
775
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
776
+ ready: z.ZodBoolean;
777
+ providerReady: z.ZodBoolean;
778
+ dnsVerified: z.ZodBoolean;
779
+ records: z.ZodArray<z.ZodObject<{
780
+ purpose: z.ZodEnum<{
781
+ traffic: "traffic";
782
+ ownership: "ownership";
783
+ certificate_delegation: "certificate_delegation";
784
+ }>;
785
+ verified: z.ZodBoolean;
786
+ observedValues: z.ZodArray<z.ZodString>;
787
+ }, z.core.$strict>>;
788
+ }, z.core.$strict>>>;
526
789
  }, z.core.$strict>;
527
790
  }, z.core.$strict>;
528
791
  message: z.ZodString;
@@ -598,6 +861,20 @@ export declare const SitePublishDomainOperationDataSchema: z.ZodObject<{
598
861
  code: z.ZodString;
599
862
  message: z.ZodString;
600
863
  }, z.core.$strict>>;
864
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
865
+ ready: z.ZodBoolean;
866
+ providerReady: z.ZodBoolean;
867
+ dnsVerified: z.ZodBoolean;
868
+ records: z.ZodArray<z.ZodObject<{
869
+ purpose: z.ZodEnum<{
870
+ traffic: "traffic";
871
+ ownership: "ownership";
872
+ certificate_delegation: "certificate_delegation";
873
+ }>;
874
+ verified: z.ZodBoolean;
875
+ observedValues: z.ZodArray<z.ZodString>;
876
+ }, z.core.$strict>>;
877
+ }, z.core.$strict>>>;
601
878
  }, z.core.$strict>>;
602
879
  }, z.core.$strict>;
603
880
  export type SitePublishDomainOperationData = GetSitePublishDomainOperationData;
@@ -673,8 +950,113 @@ export declare const SitePublishDomainOperationResponseSchema: z.ZodObject<{
673
950
  code: z.ZodString;
674
951
  message: z.ZodString;
675
952
  }, z.core.$strict>>;
953
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
954
+ ready: z.ZodBoolean;
955
+ providerReady: z.ZodBoolean;
956
+ dnsVerified: z.ZodBoolean;
957
+ records: z.ZodArray<z.ZodObject<{
958
+ purpose: z.ZodEnum<{
959
+ traffic: "traffic";
960
+ ownership: "ownership";
961
+ certificate_delegation: "certificate_delegation";
962
+ }>;
963
+ verified: z.ZodBoolean;
964
+ observedValues: z.ZodArray<z.ZodString>;
965
+ }, z.core.$strict>>;
966
+ }, z.core.$strict>>>;
676
967
  }, z.core.$strict>>;
677
968
  }, z.core.$strict>;
678
969
  message: z.ZodString;
679
970
  }, z.core.$strict>;
680
971
  export type SitePublishDomainOperationResponse = GetSitePublishDomainOperationResponse;
972
+ export declare const SitePublishDomainReconcileOperationResponseSchema: z.ZodObject<{
973
+ code: z.ZodNumber;
974
+ data: z.ZodObject<{
975
+ workflow: z.ZodObject<{
976
+ id: z.ZodUUID;
977
+ tenant_id: z.ZodString;
978
+ site_id: z.ZodUUID;
979
+ status: z.ZodEnum<{
980
+ active: "active";
981
+ completed: "completed";
982
+ canceled: "canceled";
983
+ }>;
984
+ current_step: z.ZodEnum<{
985
+ domain: "domain";
986
+ quality: "quality";
987
+ gsc: "gsc";
988
+ publish: "publish";
989
+ }>;
990
+ sensitive_word_task_id: z.ZodNumber;
991
+ sensitive_word_task_status: z.ZodEnum<{
992
+ failed: "failed";
993
+ succeeded: "succeeded";
994
+ pending: "pending";
995
+ running: "running";
996
+ }>;
997
+ quality_task_code: z.ZodString;
998
+ quality_task_status: z.ZodEnum<{
999
+ failed: "failed";
1000
+ succeeded: "succeeded";
1001
+ pending: "pending";
1002
+ running: "running";
1003
+ }>;
1004
+ task_id: z.ZodNullable<z.ZodString>;
1005
+ task_status: z.ZodEnum<{
1006
+ failed: "failed";
1007
+ succeeded: "succeeded";
1008
+ pending: "pending";
1009
+ running: "running";
1010
+ }>;
1011
+ publish_deployment_id: z.ZodNullable<z.ZodUUID>;
1012
+ domain_hostname: z.ZodNullable<z.ZodString>;
1013
+ domain_operation_type: z.ZodNullable<z.ZodEnum<{
1014
+ prepare_configuration: "prepare_configuration";
1015
+ apply_configuration: "apply_configuration";
1016
+ verify_dns: "verify_dns";
1017
+ }>>;
1018
+ domain_operation_payload: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1019
+ domain_preparation_operation_id: z.ZodNullable<z.ZodString>;
1020
+ domain_operation_id: z.ZodNullable<z.ZodString>;
1021
+ revision: z.ZodNumber;
1022
+ created_at: z.ZodString;
1023
+ updated_at: z.ZodString;
1024
+ completed_at: z.ZodNullable<z.ZodString>;
1025
+ canceled_at: z.ZodNullable<z.ZodString>;
1026
+ }, z.core.$strict>;
1027
+ operation: z.ZodNullable<z.ZodObject<{
1028
+ id: z.ZodString;
1029
+ type: z.ZodEnum<{
1030
+ prepare_configuration: "prepare_configuration";
1031
+ apply_configuration: "apply_configuration";
1032
+ verify_dns: "verify_dns";
1033
+ }>;
1034
+ status: z.ZodEnum<{
1035
+ failed: "failed";
1036
+ succeeded: "succeeded";
1037
+ accepted: "accepted";
1038
+ running: "running";
1039
+ }>;
1040
+ error: z.ZodNullable<z.ZodObject<{
1041
+ code: z.ZodString;
1042
+ message: z.ZodString;
1043
+ }, z.core.$strict>>;
1044
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1045
+ ready: z.ZodBoolean;
1046
+ providerReady: z.ZodBoolean;
1047
+ dnsVerified: z.ZodBoolean;
1048
+ records: z.ZodArray<z.ZodObject<{
1049
+ purpose: z.ZodEnum<{
1050
+ traffic: "traffic";
1051
+ ownership: "ownership";
1052
+ certificate_delegation: "certificate_delegation";
1053
+ }>;
1054
+ verified: z.ZodBoolean;
1055
+ observedValues: z.ZodArray<z.ZodString>;
1056
+ }, z.core.$strict>>;
1057
+ }, z.core.$strict>>>;
1058
+ }, z.core.$strict>>;
1059
+ }, z.core.$strict>;
1060
+ message: z.ZodString;
1061
+ }, z.core.$strict>;
1062
+ export type SitePublishDomainReconcileOperationResponse = ReconcileSitePublishDomainOperationResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcp-dev/contracts",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {