@andesine/sdk 0.8.0 → 0.9.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.
@@ -1366,6 +1366,28 @@ interface paths {
1366
1366
  patch?: never;
1367
1367
  trace?: never;
1368
1368
  };
1369
+ "/schemas/{schemaID}/draft": {
1370
+ parameters: {
1371
+ query?: never;
1372
+ header?: never;
1373
+ path?: never;
1374
+ cookie?: never;
1375
+ };
1376
+ get?: never;
1377
+ put?: never;
1378
+ /**
1379
+ * Update a schema draft
1380
+ * @description Replaces the fields of the local schema draft. People editing the draft see the change live. Fields keep their content in entries by ID, so reuse the IDs from schemas.get. Inherited fields stay as they are; don't include them. Entries don't change until schemas.apply.
1381
+ *
1382
+ * Required API key permissions: collections. Write permissions also grant read access for the same resource.
1383
+ */
1384
+ post: operations["schemas.updateDraft"];
1385
+ delete?: never;
1386
+ options?: never;
1387
+ head?: never;
1388
+ patch?: never;
1389
+ trace?: never;
1390
+ };
1369
1391
  "/schemas/{schemaID}/apply": {
1370
1392
  parameters: {
1371
1393
  query?: never;
@@ -1377,7 +1399,7 @@ interface paths {
1377
1399
  put?: never;
1378
1400
  /**
1379
1401
  * Apply a schema draft
1380
- * @description Creates a schema version from the draft and starts any required migration of affected entry content. Review possible content removal before calling: confirmedDataLoss must be true. Use schemaMigrations.get to follow a returned migrationID.
1402
+ * @description Creates a schema version from the draft, or from definition, and starts any required migration of affected entry content. With definition, the draft is replaced only if the apply succeeds. Review possible content removal before calling: confirmedDataLoss must be true. Use schemaMigrations.get to follow a returned migrationID.
1381
1403
  *
1382
1404
  * Required API key permissions: collections. Write permissions also grant read access for the same resource.
1383
1405
  */
@@ -1831,9 +1853,9 @@ interface paths {
1831
1853
  put?: never;
1832
1854
  /**
1833
1855
  * Revert pending publishing changes
1834
- * @description Restores selected drafts to the reviewed publication snapshot. This can remove unpublished items and replace draft content. First review publishing.getChannelContent and pass its snapshotID. Use all: true or specific collectionIDs/entryIDs, never both. Requires write access to affected resources in addition to read:publishing.
1856
+ * @description Restores selected drafts to the reviewed publication snapshot. This can remove unpublished items and replace draft content. First review publishing.getChannelContent and pass its snapshotID. Use all: true or specific collectionIDs/entryIDs, never both. Requires read:publishing and entries, plus write access to affected resources.
1835
1857
  *
1836
- * Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.
1858
+ * Required API key permissions: read:publishing, entries. Write permissions also grant read access for the same resource.
1837
1859
  */
1838
1860
  post: operations["publishing.revertChanges"];
1839
1861
  delete?: never;
@@ -2114,7 +2136,6 @@ interface components {
2114
2136
  operationID: string;
2115
2137
  /** @constant */
2116
2138
  schemaVersion: 1;
2117
- /** Format: date-time */
2118
2139
  occurredAt: string;
2119
2140
  workspaceID: string;
2120
2141
  /** @default null */
@@ -2158,7 +2179,6 @@ interface components {
2158
2179
  operationID: string;
2159
2180
  /** @constant */
2160
2181
  schemaVersion: 1;
2161
- /** Format: date-time */
2162
2182
  occurredAt: string;
2163
2183
  workspaceID: string;
2164
2184
  /** @default null */
@@ -2201,7 +2221,6 @@ interface components {
2201
2221
  operationID: string;
2202
2222
  /** @constant */
2203
2223
  schemaVersion: 1;
2204
- /** Format: date-time */
2205
2224
  occurredAt: string;
2206
2225
  workspaceID: string;
2207
2226
  /** @default null */
@@ -2238,7 +2257,6 @@ interface components {
2238
2257
  data: {
2239
2258
  collectionID: string | null;
2240
2259
  contentHash: string;
2241
- /** Format: date-time */
2242
2260
  savedAt: string;
2243
2261
  };
2244
2262
  } | {
@@ -2246,7 +2264,6 @@ interface components {
2246
2264
  operationID: string;
2247
2265
  /** @constant */
2248
2266
  schemaVersion: 1;
2249
- /** Format: date-time */
2250
2267
  occurredAt: string;
2251
2268
  workspaceID: string;
2252
2269
  /** @default null */
@@ -2337,7 +2354,6 @@ interface components {
2337
2354
  operationID: string;
2338
2355
  /** @constant */
2339
2356
  schemaVersion: 1;
2340
- /** Format: date-time */
2341
2357
  occurredAt: string;
2342
2358
  workspaceID: string;
2343
2359
  /** @default null */
@@ -2374,7 +2390,6 @@ interface components {
2374
2390
  data: {
2375
2391
  name: string;
2376
2392
  collectionID: string | null;
2377
- /** Format: date-time */
2378
2393
  deletedAt: string;
2379
2394
  };
2380
2395
  } | {
@@ -2382,7 +2397,6 @@ interface components {
2382
2397
  operationID: string;
2383
2398
  /** @constant */
2384
2399
  schemaVersion: 1;
2385
- /** Format: date-time */
2386
2400
  occurredAt: string;
2387
2401
  workspaceID: string;
2388
2402
  /** @default null */
@@ -2425,7 +2439,6 @@ interface components {
2425
2439
  operationID: string;
2426
2440
  /** @constant */
2427
2441
  schemaVersion: 1;
2428
- /** Format: date-time */
2429
2442
  occurredAt: string;
2430
2443
  workspaceID: string;
2431
2444
  /** @default null */
@@ -2468,7 +2481,6 @@ interface components {
2468
2481
  operationID: string;
2469
2482
  /** @constant */
2470
2483
  schemaVersion: 1;
2471
- /** Format: date-time */
2472
2484
  occurredAt: string;
2473
2485
  workspaceID: string;
2474
2486
  /** @default null */
@@ -2511,7 +2523,6 @@ interface components {
2511
2523
  operationID: string;
2512
2524
  /** @constant */
2513
2525
  schemaVersion: 1;
2514
- /** Format: date-time */
2515
2526
  occurredAt: string;
2516
2527
  workspaceID: string;
2517
2528
  /** @default null */
@@ -2602,7 +2613,6 @@ interface components {
2602
2613
  operationID: string;
2603
2614
  /** @constant */
2604
2615
  schemaVersion: 1;
2605
- /** Format: date-time */
2606
2616
  occurredAt: string;
2607
2617
  workspaceID: string;
2608
2618
  /** @default null */
@@ -2639,7 +2649,6 @@ interface components {
2639
2649
  data: {
2640
2650
  name: string;
2641
2651
  parentID: string | null;
2642
- /** Format: date-time */
2643
2652
  deletedAt: string;
2644
2653
  };
2645
2654
  } | {
@@ -2647,7 +2656,6 @@ interface components {
2647
2656
  operationID: string;
2648
2657
  /** @constant */
2649
2658
  schemaVersion: 1;
2650
- /** Format: date-time */
2651
2659
  occurredAt: string;
2652
2660
  workspaceID: string;
2653
2661
  /** @default null */
@@ -2690,7 +2698,6 @@ interface components {
2690
2698
  operationID: string;
2691
2699
  /** @constant */
2692
2700
  schemaVersion: 1;
2693
- /** Format: date-time */
2694
2701
  occurredAt: string;
2695
2702
  workspaceID: string;
2696
2703
  /** @default null */
@@ -2735,7 +2742,6 @@ interface components {
2735
2742
  operationID: string;
2736
2743
  /** @constant */
2737
2744
  schemaVersion: 1;
2738
- /** Format: date-time */
2739
2745
  occurredAt: string;
2740
2746
  workspaceID: string;
2741
2747
  /** @default null */
@@ -2779,7 +2785,6 @@ interface components {
2779
2785
  operationID: string;
2780
2786
  /** @constant */
2781
2787
  schemaVersion: 1;
2782
- /** Format: date-time */
2783
2788
  occurredAt: string;
2784
2789
  workspaceID: string;
2785
2790
  /** @default null */
@@ -2822,7 +2827,6 @@ interface components {
2822
2827
  WebhookEventName: "entry.created" | "entry.updated" | "entry.content_saved" | "entry.moved" | "entry.deleted" | "entry.restored" | "collection.created" | "collection.updated" | "collection.moved" | "collection.deleted" | "collection.restored" | "publishing.channel_advanced" | "publishing.channel_created" | "publishing.channel_deleted";
2823
2828
  WebhookEndpoint: {
2824
2829
  name: string;
2825
- /** Format: uri */
2826
2830
  url: string;
2827
2831
  enabled: boolean;
2828
2832
  eventTypes: components["schemas"]["WebhookEventName"][];
@@ -2850,9 +2854,7 @@ interface components {
2850
2854
  workspaceID: string;
2851
2855
  revision: number;
2852
2856
  destinationRevision: number;
2853
- /** Format: date-time */
2854
2857
  createdAt: string;
2855
- /** Format: date-time */
2856
2858
  updatedAt: string;
2857
2859
  disabledReason: ("manual" | "failures") | null;
2858
2860
  health: {
@@ -2865,7 +2867,6 @@ interface components {
2865
2867
  failedCount: number;
2866
2868
  };
2867
2869
  signing: {
2868
- /** Format: date-time */
2869
2870
  rotatedAt: string;
2870
2871
  previousSecretExpiresAt: string | null;
2871
2872
  };
@@ -2875,15 +2876,12 @@ interface components {
2875
2876
  endpointID: string;
2876
2877
  eventID: string;
2877
2878
  type: components["schemas"]["WebhookEventName"];
2878
- /** Format: date-time */
2879
2879
  occurredAt: string;
2880
2880
  test: boolean;
2881
2881
  /** @enum {string} */
2882
2882
  state: "pending" | "in_flight" | "succeeded" | "failed" | "cancelled";
2883
2883
  selectedRevision: number;
2884
- /** Format: date-time */
2885
2884
  createdAt: string;
2886
- /** Format: date-time */
2887
2885
  expiresAt: string;
2888
2886
  retentionDays: number;
2889
2887
  attemptCount: number;
@@ -2901,9 +2899,7 @@ interface components {
2901
2899
  destinationRevision: number;
2902
2900
  /** @enum {string} */
2903
2901
  state: "pending" | "in_flight" | "succeeded" | "failed" | "cancelled";
2904
- /** Format: date-time */
2905
2902
  createdAt: string;
2906
- /** Format: date-time */
2907
2903
  deadlineAt: string;
2908
2904
  finishedAt: string | null;
2909
2905
  nextAttemptAt: string | null;
@@ -2914,7 +2910,6 @@ interface components {
2914
2910
  id: string;
2915
2911
  runID: string;
2916
2912
  number: number;
2917
- /** Format: date-time */
2918
2913
  startedAt: string;
2919
2914
  finishedAt: string | null;
2920
2915
  durationMs: number | null;
@@ -2923,7 +2918,6 @@ interface components {
2923
2918
  httpStatus: number | null;
2924
2919
  failureCategory: ("http_status" | "timeout" | "network" | "destination_policy" | "internal") | null;
2925
2920
  lateResult: {
2926
- /** Format: date-time */
2927
2921
  receivedAt: string;
2928
2922
  /** @enum {string} */
2929
2923
  outcome: "succeeded" | "receiver_failure" | "platform_failure";
@@ -3011,6 +3005,8 @@ interface components {
3011
3005
  userID: string;
3012
3006
  /** @description ID of the member's latest active entry */
3013
3007
  currentEntryID?: string;
3008
+ /** @description ID of the collection with the example content */
3009
+ exampleCollectionID?: string;
3014
3010
  /** @description Permissions granted to the current member */
3015
3011
  permissions: components["schemas"]["Permission"][];
3016
3012
  /** @description Whether the current member has the system admin role */
@@ -3059,7 +3055,6 @@ interface components {
3059
3055
  title: string;
3060
3056
  snippet: string;
3061
3057
  properties: components["schemas"]["SearchPropertyValue"][];
3062
- /** Format: date-time */
3063
3058
  updatedAt: string;
3064
3059
  channel?: components["schemas"]["PublishingChannelCode"];
3065
3060
  versionID?: string;
@@ -3078,7 +3073,6 @@ interface components {
3078
3073
  title: string;
3079
3074
  snippet: string;
3080
3075
  properties: components["schemas"]["SearchPropertyValue"][];
3081
- /** Format: date-time */
3082
3076
  updatedAt: string;
3083
3077
  channel: components["schemas"]["PublishingChannelCode"];
3084
3078
  versionID: string;
@@ -3187,10 +3181,7 @@ interface components {
3187
3181
  InstanceInfo: {
3188
3182
  /** @description API contract version, not the server build version */
3189
3183
  apiVersion: string;
3190
- /**
3191
- * Format: uri
3192
- * @description URL of the web app; entries open at {appURL}/{workspaceID}/{entryID}
3193
- */
3184
+ /** @description URL of the web app; entries open at {appURL}/{workspaceID}/{entryID} */
3194
3185
  appURL: string;
3195
3186
  /** @description Configured availability; does not imply permission or current service health */
3196
3187
  features: {
@@ -3350,10 +3341,7 @@ interface components {
3350
3341
  id: string;
3351
3342
  /** @description User's full name */
3352
3343
  name?: string;
3353
- /**
3354
- * Format: email
3355
- * @description Email address
3356
- */
3344
+ /** @description Email address */
3357
3345
  email: string;
3358
3346
  /** @description URL of the user's avatar image */
3359
3347
  image?: string;
@@ -3408,15 +3396,9 @@ interface components {
3408
3396
  sourceVersionID: string | null;
3409
3397
  /** @description Memberships that contributed to the version */
3410
3398
  contributorIDs: string[];
3411
- /**
3412
- * Format: date-time
3413
- * @description Time when the version was created
3414
- */
3399
+ /** @description Time when the version was created */
3415
3400
  createdAt: string;
3416
- /**
3417
- * Format: date-time
3418
- * @description Time when the version name was last updated
3419
- */
3401
+ /** @description Time when the version name was last updated */
3420
3402
  updatedAt: string;
3421
3403
  schema: components["schemas"]["ContentSchemaMetadata"] | null;
3422
3404
  /** @description ProseMirror JSON stored in the version */
@@ -3450,15 +3432,9 @@ interface components {
3450
3432
  sourceVersionID: string | null;
3451
3433
  /** @description Memberships that contributed to the version */
3452
3434
  contributorIDs: string[];
3453
- /**
3454
- * Format: date-time
3455
- * @description Time when the version was created
3456
- */
3435
+ /** @description Time when the version was created */
3457
3436
  createdAt: string;
3458
- /**
3459
- * Format: date-time
3460
- * @description Time when the version name was last updated
3461
- */
3437
+ /** @description Time when the version name was last updated */
3462
3438
  updatedAt: string;
3463
3439
  };
3464
3440
  /** @enum {string} */
@@ -3483,15 +3459,9 @@ interface components {
3483
3459
  /** @description Whether the draft differs from the active version */
3484
3460
  hasUnappliedChanges: boolean;
3485
3461
  activeVersion: components["schemas"]["SchemaVersionSummary"] | null;
3486
- /**
3487
- * Format: date-time
3488
- * @description Time when the local schema was first created
3489
- */
3462
+ /** @description Time when the local schema was first created */
3490
3463
  createdAt: string;
3491
- /**
3492
- * Format: date-time
3493
- * @description Time when the local schema draft was last updated
3494
- */
3464
+ /** @description Time when the local schema draft was last updated */
3495
3465
  updatedAt: string;
3496
3466
  };
3497
3467
  EffectiveCollectionSchema: {
@@ -3520,10 +3490,7 @@ interface components {
3520
3490
  hash: string;
3521
3491
  /** @description Whether the effective schema is fully inherited */
3522
3492
  inherited: boolean;
3523
- /**
3524
- * Format: date-time
3525
- * @description Time when the effective revision was created
3526
- */
3493
+ /** @description Time when the effective revision was created */
3527
3494
  createdAt: string;
3528
3495
  };
3529
3496
  SchemaVersion: {
@@ -3552,15 +3519,9 @@ interface components {
3552
3519
  appliedBy: string | null;
3553
3520
  /** @description Memberships that contributed to the schema version */
3554
3521
  contributorIDs: string[];
3555
- /**
3556
- * Format: date-time
3557
- * @description Time when the schema version was created
3558
- */
3522
+ /** @description Time when the schema version was created */
3559
3523
  createdAt: string;
3560
- /**
3561
- * Format: date-time
3562
- * @description Time when the schema version name was last updated
3563
- */
3524
+ /** @description Time when the schema version name was last updated */
3564
3525
  updatedAt: string;
3565
3526
  /** @description Local schema definition stored in the version */
3566
3527
  definition: {
@@ -3605,15 +3566,9 @@ interface components {
3605
3566
  appliedBy: string | null;
3606
3567
  /** @description Memberships that contributed to the schema version */
3607
3568
  contributorIDs: string[];
3608
- /**
3609
- * Format: date-time
3610
- * @description Time when the schema version was created
3611
- */
3569
+ /** @description Time when the schema version was created */
3612
3570
  createdAt: string;
3613
- /**
3614
- * Format: date-time
3615
- * @description Time when the schema version name was last updated
3616
- */
3571
+ /** @description Time when the schema version name was last updated */
3617
3572
  updatedAt: string;
3618
3573
  };
3619
3574
  SchemaApplicationResult: {
@@ -3642,9 +3597,7 @@ interface components {
3642
3597
  initiatedBy: string | null;
3643
3598
  startedAt: string | null;
3644
3599
  completedAt: string | null;
3645
- /** Format: date-time */
3646
3600
  createdAt: string;
3647
- /** Format: date-time */
3648
3601
  updatedAt: string;
3649
3602
  };
3650
3603
  /** @enum {string} */
@@ -3675,8 +3628,9 @@ interface components {
3675
3628
  label: string;
3676
3629
  /** @enum {string} */
3677
3630
  type: "text" | "number" | "checkbox" | "date" | "url" | "select" | "multi-select";
3678
- defaultValue: components["schemas"]["SchemaPropertyValue"];
3631
+ initialValue: components["schemas"]["SchemaPropertyValue"];
3679
3632
  options: string[];
3633
+ optional?: boolean;
3680
3634
  };
3681
3635
  SchemaPropertyValue: boolean | string | string[];
3682
3636
  SchemaFragment: {
@@ -3685,7 +3639,8 @@ interface components {
3685
3639
  kind: "fragment";
3686
3640
  label: string;
3687
3641
  allowedBlocks: components["schemas"]["SchemaBlockType"][];
3688
- defaultContent: components["schemas"]["ContentNode"][];
3642
+ initialContent: components["schemas"]["ContentNode"][];
3643
+ optional?: boolean;
3689
3644
  };
3690
3645
  /** @enum {string} */
3691
3646
  SchemaBlockType: "heading" | "blockquote" | "bulletList" | "orderedList" | "taskList" | "horizontalRule" | "codeBlock" | "table" | "element" | "image";
@@ -3717,10 +3672,7 @@ interface components {
3717
3672
  path: string;
3718
3673
  slugPath: string;
3719
3674
  schema: components["schemas"]["ContentSchemaMetadata"] | null;
3720
- /**
3721
- * Format: date-time
3722
- * @description Time when the entry content was last updated
3723
- */
3675
+ /** @description Time when the entry content was last updated */
3724
3676
  updatedAt: string;
3725
3677
  /** @description Hash of the current content, comparable to version hashes */
3726
3678
  hash: string;
@@ -3777,9 +3729,7 @@ interface components {
3777
3729
  byteSize: number;
3778
3730
  width: number;
3779
3731
  height: number;
3780
- /** Format: uri */
3781
3732
  url: string;
3782
- /** Format: date-time */
3783
3733
  expiresAt: string;
3784
3734
  };
3785
3735
  /** @enum {string} */
@@ -3792,14 +3742,12 @@ interface components {
3792
3742
  entryName: string;
3793
3743
  filename: string;
3794
3744
  description: string;
3795
- /** Format: uri */
3796
3745
  thumbnailURL: string;
3797
3746
  width: number;
3798
3747
  height: number;
3799
3748
  };
3800
3749
  AssetUploadRegistration: {
3801
3750
  assetID: string;
3802
- /** Format: date-time */
3803
3751
  expiresAt: string;
3804
3752
  };
3805
3753
  Membership: {
@@ -3819,10 +3767,7 @@ interface components {
3819
3767
  id: string;
3820
3768
  /** @description User's full name */
3821
3769
  name?: string;
3822
- /**
3823
- * Format: email
3824
- * @description Email address
3825
- */
3770
+ /** @description Email address */
3826
3771
  email: string;
3827
3772
  /** @description URL of the user's avatar image */
3828
3773
  image?: string;
@@ -3831,10 +3776,7 @@ interface components {
3831
3776
  Invite: {
3832
3777
  /** @description ID of the invite */
3833
3778
  id: string;
3834
- /**
3835
- * Format: email
3836
- * @description Email address of the invited user
3837
- */
3779
+ /** @description Email address of the invited user */
3838
3780
  email: string;
3839
3781
  /** @description ID of the role to assign */
3840
3782
  roleID: string;
@@ -3845,20 +3787,11 @@ interface components {
3845
3787
  * @enum {string}
3846
3788
  */
3847
3789
  status: "pending" | "accepted" | "expired";
3848
- /**
3849
- * Format: date-time
3850
- * @description When the invite was created
3851
- */
3790
+ /** @description When the invite was created */
3852
3791
  createdAt: string;
3853
- /**
3854
- * Format: date-time
3855
- * @description When the invite expires
3856
- */
3792
+ /** @description When the invite expires */
3857
3793
  expiresAt: string;
3858
- /**
3859
- * Format: uri
3860
- * @description Signed URL for accepting the invitation
3861
- */
3794
+ /** @description Signed URL for accepting the invitation */
3862
3795
  inviteLink: string;
3863
3796
  /** @description ID of the workspace the invite belongs to */
3864
3797
  workspaceID: string;
@@ -3866,10 +3799,7 @@ interface components {
3866
3799
  MembershipInviteResult: {
3867
3800
  /** @description ID of the invite */
3868
3801
  inviteID: string;
3869
- /**
3870
- * Format: uri
3871
- * @description Invite link that can be shared manually
3872
- */
3802
+ /** @description Invite link that can be shared manually */
3873
3803
  inviteLink: string;
3874
3804
  /**
3875
3805
  * @description Whether the invite email was sent, must be shared manually, or failed
@@ -3917,7 +3847,6 @@ interface components {
3917
3847
  width: number;
3918
3848
  height: number;
3919
3849
  byteSize: number;
3920
- /** Format: uri */
3921
3850
  url: string;
3922
3851
  };
3923
3852
  PublishedEntry: {
@@ -3960,15 +3889,9 @@ interface components {
3960
3889
  name: string;
3961
3890
  /** @description Whether the channel is built in */
3962
3891
  builtIn: boolean;
3963
- /**
3964
- * Format: date-time
3965
- * @description Time when the channel was created
3966
- */
3892
+ /** @description Time when the channel was created */
3967
3893
  createdAt: string;
3968
- /**
3969
- * Format: date-time
3970
- * @description Time when the channel was last updated
3971
- */
3894
+ /** @description Time when the channel was last updated */
3972
3895
  updatedAt: string;
3973
3896
  };
3974
3897
  PublishingChannelListItem: {
@@ -3978,24 +3901,15 @@ interface components {
3978
3901
  name: string;
3979
3902
  /** @description Whether the channel is built in */
3980
3903
  builtIn: boolean;
3981
- /**
3982
- * Format: date-time
3983
- * @description Time when the channel was created
3984
- */
3904
+ /** @description Time when the channel was created */
3985
3905
  createdAt: string;
3986
- /**
3987
- * Format: date-time
3988
- * @description Time when the channel was last updated
3989
- */
3906
+ /** @description Time when the channel was last updated */
3990
3907
  updatedAt: string;
3991
3908
  assignmentCount?: number;
3992
3909
  };
3993
3910
  EntryPublication: {
3994
3911
  channel: components["schemas"]["EntryPublicationChannel"];
3995
- /**
3996
- * Format: date-time
3997
- * @description Time when the version was published
3998
- */
3912
+ /** @description Time when the version was published */
3999
3913
  publishedAt: string;
4000
3914
  version: components["schemas"]["EntryVersionSummary"];
4001
3915
  };
@@ -4130,7 +4044,6 @@ interface components {
4130
4044
  title: string;
4131
4045
  snippet: string;
4132
4046
  properties: components["schemas"]["SearchPropertyValue"][];
4133
- /** Format: date-time */
4134
4047
  updatedAt: string;
4135
4048
  channel: components["schemas"]["PublishingChannelCode"];
4136
4049
  versionID: string;
@@ -4147,7 +4060,6 @@ interface components {
4147
4060
  title: string;
4148
4061
  snippet: string;
4149
4062
  properties: components["schemas"]["SearchPropertyValue"][];
4150
- /** Format: date-time */
4151
4063
  updatedAt: string;
4152
4064
  channel?: components["schemas"]["PublishingChannelCode"];
4153
4065
  versionID?: string;
@@ -4549,7 +4461,6 @@ interface operations {
4549
4461
  "application/json": {
4550
4462
  assetID: string;
4551
4463
  entryID: string;
4552
- /** Format: uri */
4553
4464
  url: string;
4554
4465
  /** @default false */
4555
4466
  checkDuplicates?: boolean;
@@ -8628,10 +8539,7 @@ interface operations {
8628
8539
  path: string;
8629
8540
  slugPath: string;
8630
8541
  schema: components["schemas"]["ContentSchemaMetadata"] | null;
8631
- /**
8632
- * Format: date-time
8633
- * @description Time when the entry content was last updated
8634
- */
8542
+ /** @description Time when the entry content was last updated */
8635
8543
  updatedAt: string;
8636
8544
  /** @description Hash of the current content, comparable to version hashes */
8637
8545
  hash: string;
@@ -9925,7 +9833,6 @@ interface operations {
9925
9833
  operationID: string;
9926
9834
  /** @constant */
9927
9835
  schemaVersion: 1;
9928
- /** Format: date-time */
9929
9836
  occurredAt: string;
9930
9837
  workspaceID: string;
9931
9838
  /** @default null */
@@ -9969,7 +9876,6 @@ interface operations {
9969
9876
  operationID: string;
9970
9877
  /** @constant */
9971
9878
  schemaVersion: 1;
9972
- /** Format: date-time */
9973
9879
  occurredAt: string;
9974
9880
  workspaceID: string;
9975
9881
  /** @default null */
@@ -10012,7 +9918,6 @@ interface operations {
10012
9918
  operationID: string;
10013
9919
  /** @constant */
10014
9920
  schemaVersion: 1;
10015
- /** Format: date-time */
10016
9921
  occurredAt: string;
10017
9922
  workspaceID: string;
10018
9923
  /** @default null */
@@ -10049,7 +9954,6 @@ interface operations {
10049
9954
  data: {
10050
9955
  collectionID: string | null;
10051
9956
  contentHash: string;
10052
- /** Format: date-time */
10053
9957
  savedAt: string;
10054
9958
  };
10055
9959
  } | {
@@ -10057,7 +9961,6 @@ interface operations {
10057
9961
  operationID: string;
10058
9962
  /** @constant */
10059
9963
  schemaVersion: 1;
10060
- /** Format: date-time */
10061
9964
  occurredAt: string;
10062
9965
  workspaceID: string;
10063
9966
  /** @default null */
@@ -10148,7 +10051,6 @@ interface operations {
10148
10051
  operationID: string;
10149
10052
  /** @constant */
10150
10053
  schemaVersion: 1;
10151
- /** Format: date-time */
10152
10054
  occurredAt: string;
10153
10055
  workspaceID: string;
10154
10056
  /** @default null */
@@ -10185,7 +10087,6 @@ interface operations {
10185
10087
  data: {
10186
10088
  name: string;
10187
10089
  collectionID: string | null;
10188
- /** Format: date-time */
10189
10090
  deletedAt: string;
10190
10091
  };
10191
10092
  } | {
@@ -10193,7 +10094,6 @@ interface operations {
10193
10094
  operationID: string;
10194
10095
  /** @constant */
10195
10096
  schemaVersion: 1;
10196
- /** Format: date-time */
10197
10097
  occurredAt: string;
10198
10098
  workspaceID: string;
10199
10099
  /** @default null */
@@ -10236,7 +10136,6 @@ interface operations {
10236
10136
  operationID: string;
10237
10137
  /** @constant */
10238
10138
  schemaVersion: 1;
10239
- /** Format: date-time */
10240
10139
  occurredAt: string;
10241
10140
  workspaceID: string;
10242
10141
  /** @default null */
@@ -10279,7 +10178,6 @@ interface operations {
10279
10178
  operationID: string;
10280
10179
  /** @constant */
10281
10180
  schemaVersion: 1;
10282
- /** Format: date-time */
10283
10181
  occurredAt: string;
10284
10182
  workspaceID: string;
10285
10183
  /** @default null */
@@ -10322,7 +10220,6 @@ interface operations {
10322
10220
  operationID: string;
10323
10221
  /** @constant */
10324
10222
  schemaVersion: 1;
10325
- /** Format: date-time */
10326
10223
  occurredAt: string;
10327
10224
  workspaceID: string;
10328
10225
  /** @default null */
@@ -10413,7 +10310,6 @@ interface operations {
10413
10310
  operationID: string;
10414
10311
  /** @constant */
10415
10312
  schemaVersion: 1;
10416
- /** Format: date-time */
10417
10313
  occurredAt: string;
10418
10314
  workspaceID: string;
10419
10315
  /** @default null */
@@ -10450,7 +10346,6 @@ interface operations {
10450
10346
  data: {
10451
10347
  name: string;
10452
10348
  parentID: string | null;
10453
- /** Format: date-time */
10454
10349
  deletedAt: string;
10455
10350
  };
10456
10351
  } | {
@@ -10458,7 +10353,6 @@ interface operations {
10458
10353
  operationID: string;
10459
10354
  /** @constant */
10460
10355
  schemaVersion: 1;
10461
- /** Format: date-time */
10462
10356
  occurredAt: string;
10463
10357
  workspaceID: string;
10464
10358
  /** @default null */
@@ -10501,7 +10395,6 @@ interface operations {
10501
10395
  operationID: string;
10502
10396
  /** @constant */
10503
10397
  schemaVersion: 1;
10504
- /** Format: date-time */
10505
10398
  occurredAt: string;
10506
10399
  workspaceID: string;
10507
10400
  /** @default null */
@@ -10546,7 +10439,6 @@ interface operations {
10546
10439
  operationID: string;
10547
10440
  /** @constant */
10548
10441
  schemaVersion: 1;
10549
- /** Format: date-time */
10550
10442
  occurredAt: string;
10551
10443
  workspaceID: string;
10552
10444
  /** @default null */
@@ -10590,7 +10482,6 @@ interface operations {
10590
10482
  operationID: string;
10591
10483
  /** @constant */
10592
10484
  schemaVersion: 1;
10593
- /** Format: date-time */
10594
10485
  occurredAt: string;
10595
10486
  workspaceID: string;
10596
10487
  /** @default null */
@@ -10633,7 +10524,6 @@ interface operations {
10633
10524
  operationID: string;
10634
10525
  /** @constant */
10635
10526
  schemaVersion: 1;
10636
- /** Format: date-time */
10637
10527
  occurredAt: string;
10638
10528
  workspaceID: string;
10639
10529
  /** @default null */
@@ -10675,7 +10565,6 @@ interface operations {
10675
10565
  operationID: string;
10676
10566
  /** @constant */
10677
10567
  schemaVersion: 1;
10678
- /** Format: date-time */
10679
10568
  occurredAt: string;
10680
10569
  workspaceID: string;
10681
10570
  /** @default null */
@@ -10717,7 +10606,6 @@ interface operations {
10717
10606
  operationID: string;
10718
10607
  /** @constant */
10719
10608
  schemaVersion: 1;
10720
- /** Format: date-time */
10721
10609
  occurredAt: string;
10722
10610
  workspaceID: string;
10723
10611
  /** @default null */
@@ -10761,7 +10649,6 @@ interface operations {
10761
10649
  operationID: string;
10762
10650
  /** @constant */
10763
10651
  schemaVersion: 1;
10764
- /** Format: date-time */
10765
10652
  occurredAt: string;
10766
10653
  workspaceID: string;
10767
10654
  /** @default null */
@@ -10804,7 +10691,6 @@ interface operations {
10804
10691
  operationID: string;
10805
10692
  /** @constant */
10806
10693
  schemaVersion: 1;
10807
- /** Format: date-time */
10808
10694
  occurredAt: string;
10809
10695
  workspaceID: string;
10810
10696
  /** @default null */
@@ -10848,7 +10734,6 @@ interface operations {
10848
10734
  operationID: string;
10849
10735
  /** @constant */
10850
10736
  schemaVersion: 1;
10851
- /** Format: date-time */
10852
10737
  occurredAt: string;
10853
10738
  workspaceID: string;
10854
10739
  /** @default null */
@@ -11366,15 +11251,9 @@ interface operations {
11366
11251
  collectionIDs: string[];
11367
11252
  /** @description Publishable keys: the browser origins that can use the key, with localhost */
11368
11253
  allowedOrigins: string[];
11369
- /**
11370
- * Format: date-time
11371
- * @description The creation date
11372
- */
11254
+ /** @description The creation date */
11373
11255
  createdAt: string;
11374
- /**
11375
- * Format: date-time
11376
- * @description The last update date
11377
- */
11256
+ /** @description The last update date */
11378
11257
  updatedAt: string;
11379
11258
  /** @description The raw key, which is public */
11380
11259
  value: string;
@@ -11634,15 +11513,9 @@ interface operations {
11634
11513
  collectionIDs: string[];
11635
11514
  /** @description Publishable keys: the browser origins that can use the key, with localhost */
11636
11515
  allowedOrigins: string[];
11637
- /**
11638
- * Format: date-time
11639
- * @description The creation date
11640
- */
11516
+ /** @description The creation date */
11641
11517
  createdAt: string;
11642
- /**
11643
- * Format: date-time
11644
- * @description The last update date
11645
- */
11518
+ /** @description The last update date */
11646
11519
  updatedAt: string;
11647
11520
  /** @description The raw key, which is public */
11648
11521
  value: string;
@@ -12132,15 +12005,9 @@ interface operations {
12132
12005
  collectionIDs: string[];
12133
12006
  /** @description Publishable keys: the browser origins that can use the key, with localhost */
12134
12007
  allowedOrigins: string[];
12135
- /**
12136
- * Format: date-time
12137
- * @description The creation date
12138
- */
12008
+ /** @description The creation date */
12139
12009
  createdAt: string;
12140
- /**
12141
- * Format: date-time
12142
- * @description The last update date
12143
- */
12010
+ /** @description The last update date */
12144
12011
  updatedAt: string;
12145
12012
  /** @description The raw key, which is public */
12146
12013
  value: string;
@@ -12383,7 +12250,6 @@ interface operations {
12383
12250
  [key: string]: unknown;
12384
12251
  };
12385
12252
  };
12386
- /** Format: date-time */
12387
12253
  updatedAt: string;
12388
12254
  };
12389
12255
  };
@@ -12628,7 +12494,6 @@ interface operations {
12628
12494
  content: {
12629
12495
  "application/json": {
12630
12496
  key: string;
12631
- /** Format: date-time */
12632
12497
  updatedAt: string;
12633
12498
  };
12634
12499
  };
@@ -13104,7 +12969,6 @@ interface operations {
13104
12969
  [key: string]: unknown;
13105
12970
  };
13106
12971
  };
13107
- /** Format: date-time */
13108
12972
  updatedAt: string;
13109
12973
  }[];
13110
12974
  hasMore: boolean;
@@ -15545,7 +15409,7 @@ interface operations {
15545
15409
  collectionPath?: string;
15546
15410
  collectionSlugPath?: string;
15547
15411
  /** @example published */
15548
- channel?: string;
15412
+ channel?: components["schemas"]["PublishingChannelCode"];
15549
15413
  snapshotID?: string;
15550
15414
  };
15551
15415
  header?: {
@@ -15792,7 +15656,7 @@ interface operations {
15792
15656
  collectionPath?: string;
15793
15657
  collectionSlugPath?: string;
15794
15658
  /** @example published */
15795
- channel?: string;
15659
+ channel?: components["schemas"]["PublishingChannelCode"];
15796
15660
  snapshotID?: string;
15797
15661
  descendants?: boolean;
15798
15662
  includeContent?: boolean;
@@ -16050,7 +15914,7 @@ interface operations {
16050
15914
  path?: string;
16051
15915
  slugPath?: string;
16052
15916
  /** @example published */
16053
- channel?: string;
15917
+ channel?: components["schemas"]["PublishingChannelCode"];
16054
15918
  snapshotID?: string;
16055
15919
  };
16056
15920
  header?: {
@@ -16542,7 +16406,7 @@ interface operations {
16542
16406
  slugPath?: string;
16543
16407
  expectedSchemaHash?: string;
16544
16408
  /** @example published */
16545
- channel?: string;
16409
+ channel?: components["schemas"]["PublishingChannelCode"];
16546
16410
  snapshotID?: string;
16547
16411
  contentFormat?: "json" | "mdx";
16548
16412
  };
@@ -16813,7 +16677,7 @@ interface operations {
16813
16677
  collectionPath?: string;
16814
16678
  collectionSlugPath?: string;
16815
16679
  /** @example published */
16816
- channel?: string;
16680
+ channel?: components["schemas"]["PublishingChannelCode"];
16817
16681
  snapshotID?: string;
16818
16682
  };
16819
16683
  header?: {
@@ -17306,7 +17170,6 @@ interface operations {
17306
17170
  content: {
17307
17171
  "application/json": {
17308
17172
  name: string;
17309
- /** Format: uri */
17310
17173
  url: string;
17311
17174
  /** @default true */
17312
17175
  enabled?: boolean;
@@ -17807,7 +17670,6 @@ interface operations {
17807
17670
  content: {
17808
17671
  "application/json": {
17809
17672
  name?: string;
17810
- /** Format: uri */
17811
17673
  url?: string;
17812
17674
  enabled?: boolean;
17813
17675
  eventTypes?: components["schemas"]["WebhookEventName"][];
@@ -24277,6 +24139,315 @@ interface operations {
24277
24139
  };
24278
24140
  };
24279
24141
  };
24142
+ "schemas.updateDraft": {
24143
+ parameters: {
24144
+ query?: never;
24145
+ header?: {
24146
+ /** @description Required for OAuth: ID of the workspace to access. API keys use their own workspace. */
24147
+ "x-workspace-id"?: string;
24148
+ };
24149
+ path: {
24150
+ /** @example sch_example */
24151
+ schemaID: string;
24152
+ };
24153
+ cookie?: never;
24154
+ };
24155
+ requestBody: {
24156
+ content: {
24157
+ /**
24158
+ * @example {
24159
+ * "definition": {
24160
+ * "formatVersion": 1,
24161
+ * "fields": [
24162
+ * {
24163
+ * "id": "summary",
24164
+ * "kind": "property",
24165
+ * "label": "Summary",
24166
+ * "type": "text",
24167
+ * "initialValue": "",
24168
+ * "options": []
24169
+ * }
24170
+ * ]
24171
+ * }
24172
+ * }
24173
+ */
24174
+ "application/json": {
24175
+ /** @description The draft's own fields */
24176
+ definition: {
24177
+ /** @constant */
24178
+ formatVersion: 1;
24179
+ fields: (components["schemas"]["SchemaProperty"] | {
24180
+ id: string;
24181
+ /** @constant */
24182
+ kind: "fragment";
24183
+ label: string;
24184
+ allowedBlocks: components["schemas"]["SchemaBlockType"][];
24185
+ initialContent: components["schemas"]["ContentNodeInput"][];
24186
+ optional?: boolean;
24187
+ })[];
24188
+ };
24189
+ /** @description Draft hash from schemas.get; the update fails if the draft changed since */
24190
+ expectedHash?: string;
24191
+ };
24192
+ };
24193
+ };
24194
+ responses: {
24195
+ /** @description OK */
24196
+ 200: {
24197
+ headers: {
24198
+ [name: string]: unknown;
24199
+ };
24200
+ content: {
24201
+ "application/json": components["schemas"]["LocalCollectionSchema"];
24202
+ };
24203
+ };
24204
+ /** @description 400 */
24205
+ 400: {
24206
+ headers: {
24207
+ [name: string]: unknown;
24208
+ };
24209
+ content: {
24210
+ "application/json": {
24211
+ /** @constant */
24212
+ defined: true;
24213
+ /** @constant */
24214
+ code: "BAD_REQUEST";
24215
+ /** @constant */
24216
+ status: 400;
24217
+ /** @default Bad Request */
24218
+ message: string;
24219
+ data?: components["schemas"]["ValidationErrorData"];
24220
+ } | {
24221
+ /** @constant */
24222
+ defined: false;
24223
+ code: string;
24224
+ status: number;
24225
+ message: string;
24226
+ data?: unknown;
24227
+ };
24228
+ };
24229
+ };
24230
+ /** @description 401 */
24231
+ 401: {
24232
+ headers: {
24233
+ [name: string]: unknown;
24234
+ };
24235
+ content: {
24236
+ "application/json": {
24237
+ /** @constant */
24238
+ defined: true;
24239
+ /** @constant */
24240
+ code: "UNAUTHORIZED";
24241
+ /** @constant */
24242
+ status: 401;
24243
+ /** @default Unauthorized */
24244
+ message: string;
24245
+ data?: components["schemas"]["ErrorData"];
24246
+ } | {
24247
+ /** @constant */
24248
+ defined: false;
24249
+ code: string;
24250
+ status: number;
24251
+ message: string;
24252
+ data?: unknown;
24253
+ };
24254
+ };
24255
+ };
24256
+ /** @description 403 */
24257
+ 403: {
24258
+ headers: {
24259
+ [name: string]: unknown;
24260
+ };
24261
+ content: {
24262
+ "application/json": {
24263
+ /** @constant */
24264
+ defined: true;
24265
+ /** @constant */
24266
+ code: "FORBIDDEN";
24267
+ /** @constant */
24268
+ status: 403;
24269
+ /** @default Forbidden */
24270
+ message: string;
24271
+ data?: components["schemas"]["ForbiddenErrorData"];
24272
+ } | {
24273
+ /** @constant */
24274
+ defined: false;
24275
+ code: string;
24276
+ status: number;
24277
+ message: string;
24278
+ data?: unknown;
24279
+ };
24280
+ };
24281
+ };
24282
+ /** @description 404 */
24283
+ 404: {
24284
+ headers: {
24285
+ [name: string]: unknown;
24286
+ };
24287
+ content: {
24288
+ "application/json": {
24289
+ /** @constant */
24290
+ defined: true;
24291
+ /** @constant */
24292
+ code: "NOT_FOUND";
24293
+ /** @constant */
24294
+ status: 404;
24295
+ /** @default Not Found */
24296
+ message: string;
24297
+ data?: components["schemas"]["ErrorData"];
24298
+ } | {
24299
+ /** @constant */
24300
+ defined: false;
24301
+ code: string;
24302
+ status: number;
24303
+ message: string;
24304
+ data?: unknown;
24305
+ };
24306
+ };
24307
+ };
24308
+ /** @description 409 */
24309
+ 409: {
24310
+ headers: {
24311
+ [name: string]: unknown;
24312
+ };
24313
+ content: {
24314
+ "application/json": {
24315
+ /** @constant */
24316
+ defined: true;
24317
+ /** @constant */
24318
+ code: "CONFLICT";
24319
+ /** @constant */
24320
+ status: 409;
24321
+ /** @default Conflict */
24322
+ message: string;
24323
+ data?: components["schemas"]["ErrorData"];
24324
+ } | {
24325
+ /** @constant */
24326
+ defined: true;
24327
+ /** @constant */
24328
+ code: "SCHEMA_FIELD_KEY_CONFLICT";
24329
+ /** @constant */
24330
+ status: 409;
24331
+ /** @default SCHEMA_FIELD_KEY_CONFLICT */
24332
+ message: string;
24333
+ data: components["schemas"]["SchemaFieldKeyConflictErrorData"];
24334
+ } | {
24335
+ /** @constant */
24336
+ defined: true;
24337
+ /** @constant */
24338
+ code: "SCHEMA_MIGRATION_IN_PROGRESS";
24339
+ /** @constant */
24340
+ status: 409;
24341
+ /** @default A schema migration is in progress for this collection */
24342
+ message: string;
24343
+ data: components["schemas"]["SchemaMigrationErrorData"];
24344
+ } | {
24345
+ /** @constant */
24346
+ defined: true;
24347
+ /** @constant */
24348
+ code: "CONTENT_PRECONDITION_FAILED";
24349
+ /** @constant */
24350
+ status: 409;
24351
+ /** @default CONTENT_PRECONDITION_FAILED */
24352
+ message: string;
24353
+ data: {
24354
+ /** @description Suggested next steps. Wording can change; use error codes and structured data for program logic. */
24355
+ hints?: string[];
24356
+ /** @description Expected field that didn't match */
24357
+ field: string;
24358
+ /** @description Current value of the field */
24359
+ current: string | null;
24360
+ };
24361
+ } | {
24362
+ /** @constant */
24363
+ defined: false;
24364
+ code: string;
24365
+ status: number;
24366
+ message: string;
24367
+ data?: unknown;
24368
+ };
24369
+ };
24370
+ };
24371
+ /** @description 429 */
24372
+ 429: {
24373
+ headers: {
24374
+ [name: string]: unknown;
24375
+ };
24376
+ content: {
24377
+ "application/json": {
24378
+ /** @constant */
24379
+ defined: true;
24380
+ /** @constant */
24381
+ code: "TOO_MANY_REQUESTS";
24382
+ /** @constant */
24383
+ status: 429;
24384
+ /** @default Too Many Requests */
24385
+ message: string;
24386
+ data?: components["schemas"]["RateLimitErrorData"];
24387
+ } | {
24388
+ /** @constant */
24389
+ defined: false;
24390
+ code: string;
24391
+ status: number;
24392
+ message: string;
24393
+ data?: unknown;
24394
+ };
24395
+ };
24396
+ };
24397
+ /** @description 500 */
24398
+ 500: {
24399
+ headers: {
24400
+ [name: string]: unknown;
24401
+ };
24402
+ content: {
24403
+ "application/json": {
24404
+ /** @constant */
24405
+ defined: true;
24406
+ /** @constant */
24407
+ code: "INTERNAL_SERVER_ERROR";
24408
+ /** @constant */
24409
+ status: 500;
24410
+ /** @default Internal Server Error */
24411
+ message: string;
24412
+ data?: components["schemas"]["ErrorData"];
24413
+ } | {
24414
+ /** @constant */
24415
+ defined: false;
24416
+ code: string;
24417
+ status: number;
24418
+ message: string;
24419
+ data?: unknown;
24420
+ };
24421
+ };
24422
+ };
24423
+ /** @description 503 */
24424
+ 503: {
24425
+ headers: {
24426
+ [name: string]: unknown;
24427
+ };
24428
+ content: {
24429
+ "application/json": {
24430
+ /** @constant */
24431
+ defined: true;
24432
+ /** @constant */
24433
+ code: "SERVICE_UNAVAILABLE";
24434
+ /** @constant */
24435
+ status: 503;
24436
+ /** @default Service Unavailable */
24437
+ message: string;
24438
+ data?: components["schemas"]["ErrorData"];
24439
+ } | {
24440
+ /** @constant */
24441
+ defined: false;
24442
+ code: string;
24443
+ status: number;
24444
+ message: string;
24445
+ data?: unknown;
24446
+ };
24447
+ };
24448
+ };
24449
+ };
24450
+ };
24280
24451
  "schemas.apply": {
24281
24452
  parameters: {
24282
24453
  query?: never;
@@ -24306,6 +24477,22 @@ interface operations {
24306
24477
  confirmedDataLoss: true;
24307
24478
  /** @description Optional version name */
24308
24479
  name?: string;
24480
+ /** @description The fields to apply instead of the draft's; inherited fields stay as they are */
24481
+ definition?: {
24482
+ /** @constant */
24483
+ formatVersion: 1;
24484
+ fields: (components["schemas"]["SchemaProperty"] | {
24485
+ id: string;
24486
+ /** @constant */
24487
+ kind: "fragment";
24488
+ label: string;
24489
+ allowedBlocks: components["schemas"]["SchemaBlockType"][];
24490
+ initialContent: components["schemas"]["ContentNodeInput"][];
24491
+ optional?: boolean;
24492
+ })[];
24493
+ };
24494
+ /** @description Draft hash from schemas.get; the apply fails if the draft changed since */
24495
+ expectedHash?: string;
24309
24496
  };
24310
24497
  };
24311
24498
  };
@@ -24459,6 +24646,23 @@ interface operations {
24459
24646
  /** @default A schema migration is in progress for this collection */
24460
24647
  message: string;
24461
24648
  data: components["schemas"]["SchemaMigrationErrorData"];
24649
+ } | {
24650
+ /** @constant */
24651
+ defined: true;
24652
+ /** @constant */
24653
+ code: "CONTENT_PRECONDITION_FAILED";
24654
+ /** @constant */
24655
+ status: 409;
24656
+ /** @default CONTENT_PRECONDITION_FAILED */
24657
+ message: string;
24658
+ data: {
24659
+ /** @description Suggested next steps. Wording can change; use error codes and structured data for program logic. */
24660
+ hints?: string[];
24661
+ /** @description Expected field that didn't match */
24662
+ field: string;
24663
+ /** @description Current value of the field */
24664
+ current: string | null;
24665
+ };
24462
24666
  } | {
24463
24667
  /** @constant */
24464
24668
  defined: false;
@@ -26526,10 +26730,7 @@ interface operations {
26526
26730
  * }
26527
26731
  */
26528
26732
  "application/json": {
26529
- /**
26530
- * Format: email
26531
- * @description Email address of the user to invite
26532
- */
26733
+ /** @description Email address of the user to invite */
26533
26734
  email: string;
26534
26735
  /** @description ID of the role to assign */
26535
26736
  roleID: string;
@@ -28269,7 +28470,7 @@ interface operations {
28269
28470
  * @description Publishing channel, defaults to published
28270
28471
  * @default published
28271
28472
  */
28272
- channel?: string;
28473
+ channel?: components["schemas"]["PublishingChannelCode"];
28273
28474
  /** @description Reject the mutation if the channel no longer points to this reviewed snapshot */
28274
28475
  expectedSnapshotID?: string;
28275
28476
  };
@@ -28550,7 +28751,7 @@ interface operations {
28550
28751
  * @description Publishing channel, defaults to published
28551
28752
  * @default published
28552
28753
  */
28553
- channel?: string;
28754
+ channel?: components["schemas"]["PublishingChannelCode"];
28554
28755
  /** @description Reject the mutation if the channel no longer points to this reviewed snapshot */
28555
28756
  expectedSnapshotID?: string;
28556
28757
  };
@@ -29106,7 +29307,7 @@ interface operations {
29106
29307
  * @description Publishing channel, defaults to published
29107
29308
  * @default published
29108
29309
  */
29109
- channel?: string;
29310
+ channel?: components["schemas"]["PublishingChannelCode"];
29110
29311
  /** @description Reject the mutation if the channel no longer points to this reviewed snapshot */
29111
29312
  expectedSnapshotID?: string;
29112
29313
  /** @description IDs of the collection trees to publish */
@@ -29389,7 +29590,7 @@ interface operations {
29389
29590
  * @description Publishing channel, defaults to published
29390
29591
  * @default published
29391
29592
  */
29392
- channel?: string;
29593
+ channel?: components["schemas"]["PublishingChannelCode"];
29393
29594
  /** @description Reject the mutation if the channel no longer points to this reviewed snapshot */
29394
29595
  expectedSnapshotID?: string;
29395
29596
  /** @description IDs of the collection trees to unpublish */
@@ -29662,7 +29863,7 @@ interface operations {
29662
29863
  * @description Publishing channel, defaults to published
29663
29864
  * @default published
29664
29865
  */
29665
- channel?: string;
29866
+ channel?: components["schemas"]["PublishingChannelCode"];
29666
29867
  /** @description Reject the mutation if the channel no longer points to this reviewed snapshot */
29667
29868
  expectedSnapshotID?: string;
29668
29869
  /** @description Existing version to publish */
@@ -29946,7 +30147,7 @@ interface operations {
29946
30147
  * @description Publishing channel, defaults to published
29947
30148
  * @default published
29948
30149
  */
29949
- channel?: string;
30150
+ channel?: components["schemas"]["PublishingChannelCode"];
29950
30151
  /** @description Reject the mutation if the channel no longer points to this reviewed snapshot */
29951
30152
  expectedSnapshotID?: string;
29952
30153
  /** @description Version expected to be assigned */
@@ -30221,7 +30422,7 @@ interface operations {
30221
30422
  * @description Publishing channel, defaults to published
30222
30423
  * @default published
30223
30424
  */
30224
- channel?: string;
30425
+ channel?: components["schemas"]["PublishingChannelCode"];
30225
30426
  /** @description Reject the mutation if the channel no longer points to this reviewed snapshot */
30226
30427
  expectedSnapshotID?: string;
30227
30428
  /** @description Entries and versions to publish */
@@ -30504,7 +30705,7 @@ interface operations {
30504
30705
  * @description Publishing channel, defaults to published
30505
30706
  * @default published
30506
30707
  */
30507
- channel?: string;
30708
+ channel?: components["schemas"]["PublishingChannelCode"];
30508
30709
  /** @description Reject the mutation if the channel no longer points to this reviewed snapshot */
30509
30710
  expectedSnapshotID?: string;
30510
30711
  /** @description IDs of the entries to unpublish */
@@ -30779,7 +30980,7 @@ interface operations {
30779
30980
  * @description Publishing channel, defaults to published
30780
30981
  * @default published
30781
30982
  */
30782
- channel?: string;
30983
+ channel?: components["schemas"]["PublishingChannelCode"];
30783
30984
  /** @description Whether to revert all pending changes */
30784
30985
  all?: boolean;
30785
30986
  /** @description Publishing root collection */
@@ -31077,7 +31278,7 @@ interface operations {
31077
31278
  parameters: {
31078
31279
  query?: {
31079
31280
  /** @example published */
31080
- channel?: string;
31281
+ channel?: components["schemas"]["PublishingChannelCode"];
31081
31282
  expectedSchemaHash?: string;
31082
31283
  snapshotID?: string;
31083
31284
  };
@@ -32077,7 +32278,7 @@ interface operations {
32077
32278
  };
32078
32279
  path: {
32079
32280
  /** @example published */
32080
- channel: string;
32281
+ channel: components["schemas"]["PublishingChannelCode"];
32081
32282
  };
32082
32283
  cookie?: never;
32083
32284
  };
@@ -33690,15 +33891,9 @@ interface operations {
33690
33891
  sourceVersionID: string | null;
33691
33892
  /** @description Memberships that contributed to the version */
33692
33893
  contributorIDs: string[];
33693
- /**
33694
- * Format: date-time
33695
- * @description Time when the version was created
33696
- */
33894
+ /** @description Time when the version was created */
33697
33895
  createdAt: string;
33698
- /**
33699
- * Format: date-time
33700
- * @description Time when the version name was last updated
33701
- */
33896
+ /** @description Time when the version name was last updated */
33702
33897
  updatedAt: string;
33703
33898
  schema: components["schemas"]["ContentSchemaMetadata"] | null;
33704
33899
  /** @description ProseMirror JSON stored in the version */
@@ -34803,7 +34998,7 @@ interface operations {
34803
34998
  * @default false
34804
34999
  */
34805
35000
  includeTree?: boolean;
34806
- channel?: string;
35001
+ channel?: components["schemas"]["PublishingChannelCode"];
34807
35002
  snapshotID?: string;
34808
35003
  };
34809
35004
  };
@@ -35031,4 +35226,4 @@ interface operations {
35031
35226
  }
35032
35227
  //#endregion
35033
35228
  export { InvitePendingErrorData as $, TextPropertyFilter as $t, ContentNodeInput as A, ResolvedSchemaField as At, EntryPropertyKind as B, SchemaFragment as Bt, Collection as C, PublishedVersion as Ct, ContentMarkInput as D, PublishingSnapshotErrorData as Dt, ContentMark as E, PublishingChannelListItem as Et, DatePropertyFilter as F, SchemaDefinition as Ft, EntryVersion as G, SchemaProperty as Gt, EntryPublication as H, SchemaMigrationContentLossEntry as Ht, EffectiveCollectionSchema as I, SchemaDraftDefinition as It, ForbiddenErrorData as J, SchemaVersion as Jt, EntryVersionSummary as K, SchemaPropertyValue as Kt, Entry as L, SchemaField as Lt, ContentSchemaIssue as M, Role as Mt, ContentSchemaMetadata as N, SchemaApplicationResult as Nt, ContentNameConflictErrorData as O, RateLimitErrorData as Ot, ContentSchemaMismatchErrorData as P, SchemaBlockType as Pt, InviteDeliveryResult as Q, SearchResults as Qt, EntryFragment as R, SchemaFieldKeyConflictErrorData as Rt, ChannelContentStatus as S, PublishedTree as St, ComparisonOperator as T, PublishingChannelCode as Tt, EntryPublicationChannel as U, SchemaMigrationErrorData as Ut, EntryPropertyValue as V, SchemaMigration as Vt, EntrySummary as W, SchemaMigrationStatus as Wt, InstanceInfo as X, SearchPropertyValue as Xt, Identity as Y, SchemaVersionSummary as Yt, Invite as Z, SearchResult as Zt, BaseRole as _, operations as _n, PublishedEntriesResult as _t, Asset as a, UserProfile as an, NumberPropertyFilter as at, ChannelContentCollection as b, PublishedEntrySummary as bt, AssetConflictErrorData as c, VersionReason as cn, PropertyFilter as ct, AssetSearchResult as d, WebhookEndpoint as dn, PublishedAnswerEvent as dt, TypeMetadata as en, InviteStatus as et, AssetStatus as f, WebhookEvent as fn, PublishedAnswerSource as ft, AssetVariant as g, components as gn, PublishedContent as gt, AssetValidationErrorData as h, WorkspaceListItem as hn, PublishedCollectionSummary as ht, AnswerSource as i, UnpublishedEntriesResult as in, MembershipInviteResult as it, ContentSchemaInvalidErrorData as j, RevertPublishingChangesResult as jt, ContentNode as k, ResolvedSchemaDefinition as kt, AssetFile as l, WebhookAttempt as ln, PublishEntryTarget as lt, AssetUploadRegistration as m, WebhookRun as mn, PublishedCollection as mt, AnswerEvent as n, TypeMetadataEntry as nn, Membership as nt, AssetAnalysis as o, ValidationErrorData as on, Pagination as ot, AssetStorageErrorData as p, WebhookEventName as pn, PublishedAsset as pt, ErrorData as q, SchemaRevision as qt, AnswerHistoryMessage as r, TypeMetadataTree as rn, MembershipExistsErrorData as rt, AssetAnalysisStatus as s, ValidationIssue as sn, Permission as st, Answer as t, TypeMetadataCollection as tn, LocalCollectionSchema as tt, AssetFileFormat as u, WebhookDelivery as un, PublishedAnswer as ut, BooleanPropertyFilter as v, paths as vn, PublishedEntry as vt, CollectionSchema as w, PublishingChannel as wt, ChannelContentEntry as x, PublishedSearchResult as xt, ChannelContent as y, PublishedEntryContent as yt, EntryProperty as z, SchemaFieldSource as zt };
35034
- //# sourceMappingURL=schema-CMpGUItd.d.ts.map
35229
+ //# sourceMappingURL=schema-DBHoDzsT.d.ts.map