@payloadcms/figma 0.1.0-alpha.0 → 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/db-content-api/generated/content-api-types.d.ts +644 -3
  2. package/dist/db-content-api/index.d.ts +3 -0
  3. package/dist/db-content-api/index.js +68 -123
  4. package/dist/db-content-api/utilities/clientVersionHeaders.d.ts +7 -0
  5. package/dist/db-content-api/utilities/clientVersionHeaders.js +15 -0
  6. package/dist/db-content-api/utilities/data/atomicOperations.d.ts +16 -0
  7. package/dist/db-content-api/utilities/data/atomicOperations.js +48 -0
  8. package/dist/db-content-api/utilities/data/convertRelationshipIds.d.ts +25 -0
  9. package/dist/db-content-api/utilities/data/convertRelationshipIds.js +109 -0
  10. package/dist/db-content-api/utilities/data/index.js +71 -55
  11. package/dist/db-content-api/utilities/data/isLocaleMap.d.ts +10 -0
  12. package/dist/db-content-api/utilities/data/isLocaleMap.js +13 -0
  13. package/dist/db-content-api/utilities/data/resolveFieldLocalization.d.ts +18 -0
  14. package/dist/db-content-api/utilities/data/resolveFieldLocalization.js +21 -0
  15. package/dist/db-content-api/utilities/data/validateRelationships.js +19 -12
  16. package/dist/db-content-api/utilities/joins.d.ts +6 -8
  17. package/dist/db-content-api/utilities/joins.js +8 -21
  18. package/dist/db-content-api/utilities/schema/buildDocumentSchema.d.ts +21 -4
  19. package/dist/db-content-api/utilities/schema/buildDocumentSchema.js +118 -36
  20. package/dist/db-content-api/utilities/where.d.ts +2 -12
  21. package/dist/db-content-api/utilities/where.js +1 -12
  22. package/dist/utils/load-payload-config.d.ts +2 -2
  23. package/package.json +5 -5
  24. package/dist/db-content-api/utilities/meta/buildLocalizedPaths.d.ts +0 -10
  25. package/dist/db-content-api/utilities/meta/buildLocalizedPaths.js +0 -71
  26. package/dist/db-content-api/utilities/meta/buildMeta.d.ts +0 -41
  27. package/dist/db-content-api/utilities/meta/buildMeta.js +0 -39
  28. package/dist/db-content-api/utilities/meta/buildPathTypes.d.ts +0 -16
  29. package/dist/db-content-api/utilities/meta/buildPathTypes.js +0 -243
  30. package/dist/db-content-api/utilities/meta/buildUniquePaths.d.ts +0 -12
  31. package/dist/db-content-api/utilities/meta/buildUniquePaths.js +0 -60
@@ -1881,6 +1881,42 @@ export type paths = {
1881
1881
  };
1882
1882
  };
1883
1883
  };
1884
+ /** @description Gone */
1885
+ 410: {
1886
+ headers: {
1887
+ [name: string]: unknown;
1888
+ };
1889
+ content: {
1890
+ 'application/json': {
1891
+ /** @example Error message describing the issue. */
1892
+ message: string;
1893
+ /** @example database.constraint_violation */
1894
+ code?: string;
1895
+ /** @example email */
1896
+ field?: string;
1897
+ /** @example unique_constraint */
1898
+ constraint?: string;
1899
+ };
1900
+ };
1901
+ };
1902
+ /** @description Upgrade Required */
1903
+ 426: {
1904
+ headers: {
1905
+ [name: string]: unknown;
1906
+ };
1907
+ content: {
1908
+ 'application/json': {
1909
+ /** @example Error message describing the issue. */
1910
+ message: string;
1911
+ /** @example database.constraint_violation */
1912
+ code?: string;
1913
+ /** @example email */
1914
+ field?: string;
1915
+ /** @example unique_constraint */
1916
+ constraint?: string;
1917
+ };
1918
+ };
1919
+ };
1884
1920
  /** @description Internal Server Error */
1885
1921
  500: {
1886
1922
  headers: {
@@ -2286,6 +2322,42 @@ export type paths = {
2286
2322
  };
2287
2323
  };
2288
2324
  };
2325
+ /** @description Gone */
2326
+ 410: {
2327
+ headers: {
2328
+ [name: string]: unknown;
2329
+ };
2330
+ content: {
2331
+ 'application/json': {
2332
+ /** @example Error message describing the issue. */
2333
+ message: string;
2334
+ /** @example database.constraint_violation */
2335
+ code?: string;
2336
+ /** @example email */
2337
+ field?: string;
2338
+ /** @example unique_constraint */
2339
+ constraint?: string;
2340
+ };
2341
+ };
2342
+ };
2343
+ /** @description Upgrade Required */
2344
+ 426: {
2345
+ headers: {
2346
+ [name: string]: unknown;
2347
+ };
2348
+ content: {
2349
+ 'application/json': {
2350
+ /** @example Error message describing the issue. */
2351
+ message: string;
2352
+ /** @example database.constraint_violation */
2353
+ code?: string;
2354
+ /** @example email */
2355
+ field?: string;
2356
+ /** @example unique_constraint */
2357
+ constraint?: string;
2358
+ };
2359
+ };
2360
+ };
2289
2361
  /** @description Internal Server Error */
2290
2362
  500: {
2291
2363
  headers: {
@@ -2415,6 +2487,42 @@ export type paths = {
2415
2487
  };
2416
2488
  };
2417
2489
  };
2490
+ /** @description Gone */
2491
+ 410: {
2492
+ headers: {
2493
+ [name: string]: unknown;
2494
+ };
2495
+ content: {
2496
+ 'application/json': {
2497
+ /** @example Error message describing the issue. */
2498
+ message: string;
2499
+ /** @example database.constraint_violation */
2500
+ code?: string;
2501
+ /** @example email */
2502
+ field?: string;
2503
+ /** @example unique_constraint */
2504
+ constraint?: string;
2505
+ };
2506
+ };
2507
+ };
2508
+ /** @description Upgrade Required */
2509
+ 426: {
2510
+ headers: {
2511
+ [name: string]: unknown;
2512
+ };
2513
+ content: {
2514
+ 'application/json': {
2515
+ /** @example Error message describing the issue. */
2516
+ message: string;
2517
+ /** @example database.constraint_violation */
2518
+ code?: string;
2519
+ /** @example email */
2520
+ field?: string;
2521
+ /** @example unique_constraint */
2522
+ constraint?: string;
2523
+ };
2524
+ };
2525
+ };
2418
2526
  /** @description Internal Server Error */
2419
2527
  500: {
2420
2528
  headers: {
@@ -2673,6 +2781,42 @@ export type paths = {
2673
2781
  };
2674
2782
  };
2675
2783
  };
2784
+ /** @description Gone */
2785
+ 410: {
2786
+ headers: {
2787
+ [name: string]: unknown;
2788
+ };
2789
+ content: {
2790
+ 'application/json': {
2791
+ /** @example Error message describing the issue. */
2792
+ message: string;
2793
+ /** @example database.constraint_violation */
2794
+ code?: string;
2795
+ /** @example email */
2796
+ field?: string;
2797
+ /** @example unique_constraint */
2798
+ constraint?: string;
2799
+ };
2800
+ };
2801
+ };
2802
+ /** @description Upgrade Required */
2803
+ 426: {
2804
+ headers: {
2805
+ [name: string]: unknown;
2806
+ };
2807
+ content: {
2808
+ 'application/json': {
2809
+ /** @example Error message describing the issue. */
2810
+ message: string;
2811
+ /** @example database.constraint_violation */
2812
+ code?: string;
2813
+ /** @example email */
2814
+ field?: string;
2815
+ /** @example unique_constraint */
2816
+ constraint?: string;
2817
+ };
2818
+ };
2819
+ };
2676
2820
  /** @description Internal Server Error */
2677
2821
  500: {
2678
2822
  headers: {
@@ -2931,6 +3075,42 @@ export type paths = {
2931
3075
  };
2932
3076
  };
2933
3077
  };
3078
+ /** @description Gone */
3079
+ 410: {
3080
+ headers: {
3081
+ [name: string]: unknown;
3082
+ };
3083
+ content: {
3084
+ 'application/json': {
3085
+ /** @example Error message describing the issue. */
3086
+ message: string;
3087
+ /** @example database.constraint_violation */
3088
+ code?: string;
3089
+ /** @example email */
3090
+ field?: string;
3091
+ /** @example unique_constraint */
3092
+ constraint?: string;
3093
+ };
3094
+ };
3095
+ };
3096
+ /** @description Upgrade Required */
3097
+ 426: {
3098
+ headers: {
3099
+ [name: string]: unknown;
3100
+ };
3101
+ content: {
3102
+ 'application/json': {
3103
+ /** @example Error message describing the issue. */
3104
+ message: string;
3105
+ /** @example database.constraint_violation */
3106
+ code?: string;
3107
+ /** @example email */
3108
+ field?: string;
3109
+ /** @example unique_constraint */
3110
+ constraint?: string;
3111
+ };
3112
+ };
3113
+ };
2934
3114
  /** @description Internal Server Error */
2935
3115
  500: {
2936
3116
  headers: {
@@ -3060,6 +3240,181 @@ export type paths = {
3060
3240
  };
3061
3241
  };
3062
3242
  };
3243
+ /** @description Gone */
3244
+ 410: {
3245
+ headers: {
3246
+ [name: string]: unknown;
3247
+ };
3248
+ content: {
3249
+ 'application/json': {
3250
+ /** @example Error message describing the issue. */
3251
+ message: string;
3252
+ /** @example database.constraint_violation */
3253
+ code?: string;
3254
+ /** @example email */
3255
+ field?: string;
3256
+ /** @example unique_constraint */
3257
+ constraint?: string;
3258
+ };
3259
+ };
3260
+ };
3261
+ /** @description Upgrade Required */
3262
+ 426: {
3263
+ headers: {
3264
+ [name: string]: unknown;
3265
+ };
3266
+ content: {
3267
+ 'application/json': {
3268
+ /** @example Error message describing the issue. */
3269
+ message: string;
3270
+ /** @example database.constraint_violation */
3271
+ code?: string;
3272
+ /** @example email */
3273
+ field?: string;
3274
+ /** @example unique_constraint */
3275
+ constraint?: string;
3276
+ };
3277
+ };
3278
+ };
3279
+ /** @description Internal Server Error */
3280
+ 500: {
3281
+ headers: {
3282
+ [name: string]: unknown;
3283
+ };
3284
+ content: {
3285
+ 'application/json': {
3286
+ /** @example Error message describing the issue. */
3287
+ message: string;
3288
+ /** @example database.constraint_violation */
3289
+ code?: string;
3290
+ /** @example email */
3291
+ field?: string;
3292
+ /** @example unique_constraint */
3293
+ constraint?: string;
3294
+ };
3295
+ };
3296
+ };
3297
+ };
3298
+ };
3299
+ delete?: never;
3300
+ options?: never;
3301
+ head?: never;
3302
+ patch?: never;
3303
+ trace?: never;
3304
+ };
3305
+ '/api/v0/content_systems/{contentSystemId}/jsonb_to_index_migration_schema': {
3306
+ parameters: {
3307
+ query?: never;
3308
+ header?: never;
3309
+ path?: never;
3310
+ cookie?: never;
3311
+ };
3312
+ get?: never;
3313
+ put: {
3314
+ parameters: {
3315
+ query?: never;
3316
+ header?: never;
3317
+ path: {
3318
+ contentSystemId: string;
3319
+ };
3320
+ cookie?: never;
3321
+ };
3322
+ requestBody?: {
3323
+ content: {
3324
+ 'application/json': components['schemas']['UploadJsonbToIndexMigrationSchemaRequest'];
3325
+ };
3326
+ };
3327
+ responses: {
3328
+ /** @description Migration schema replaced */
3329
+ 200: {
3330
+ headers: {
3331
+ [name: string]: unknown;
3332
+ };
3333
+ content: {
3334
+ 'application/json': components['schemas']['UploadJsonbToIndexMigrationSchemaResponse'];
3335
+ };
3336
+ };
3337
+ /** @description Migration schema created */
3338
+ 201: {
3339
+ headers: {
3340
+ [name: string]: unknown;
3341
+ };
3342
+ content: {
3343
+ 'application/json': components['schemas']['UploadJsonbToIndexMigrationSchemaResponse'];
3344
+ };
3345
+ };
3346
+ /** @description Bad Request */
3347
+ 400: {
3348
+ headers: {
3349
+ [name: string]: unknown;
3350
+ };
3351
+ content: {
3352
+ 'application/json': {
3353
+ /** @example Error message describing the issue. */
3354
+ message: string;
3355
+ /** @example database.constraint_violation */
3356
+ code?: string;
3357
+ /** @example email */
3358
+ field?: string;
3359
+ /** @example unique_constraint */
3360
+ constraint?: string;
3361
+ };
3362
+ };
3363
+ };
3364
+ /** @description Unauthorized */
3365
+ 401: {
3366
+ headers: {
3367
+ [name: string]: unknown;
3368
+ };
3369
+ content: {
3370
+ 'application/json': {
3371
+ /** @example Error message describing the issue. */
3372
+ message: string;
3373
+ /** @example database.constraint_violation */
3374
+ code?: string;
3375
+ /** @example email */
3376
+ field?: string;
3377
+ /** @example unique_constraint */
3378
+ constraint?: string;
3379
+ };
3380
+ };
3381
+ };
3382
+ /** @description Forbidden */
3383
+ 403: {
3384
+ headers: {
3385
+ [name: string]: unknown;
3386
+ };
3387
+ content: {
3388
+ 'application/json': {
3389
+ /** @example Error message describing the issue. */
3390
+ message: string;
3391
+ /** @example database.constraint_violation */
3392
+ code?: string;
3393
+ /** @example email */
3394
+ field?: string;
3395
+ /** @example unique_constraint */
3396
+ constraint?: string;
3397
+ };
3398
+ };
3399
+ };
3400
+ /** @description Not Found */
3401
+ 404: {
3402
+ headers: {
3403
+ [name: string]: unknown;
3404
+ };
3405
+ content: {
3406
+ 'application/json': {
3407
+ /** @example Error message describing the issue. */
3408
+ message: string;
3409
+ /** @example database.constraint_violation */
3410
+ code?: string;
3411
+ /** @example email */
3412
+ field?: string;
3413
+ /** @example unique_constraint */
3414
+ constraint?: string;
3415
+ };
3416
+ };
3417
+ };
3063
3418
  /** @description Internal Server Error */
3064
3419
  500: {
3065
3420
  headers: {
@@ -3080,6 +3435,7 @@ export type paths = {
3080
3435
  };
3081
3436
  };
3082
3437
  };
3438
+ post?: never;
3083
3439
  delete?: never;
3084
3440
  options?: never;
3085
3441
  head?: never;
@@ -3336,6 +3692,42 @@ export type paths = {
3336
3692
  };
3337
3693
  };
3338
3694
  };
3695
+ /** @description Gone */
3696
+ 410: {
3697
+ headers: {
3698
+ [name: string]: unknown;
3699
+ };
3700
+ content: {
3701
+ 'application/json': {
3702
+ /** @example Error message describing the issue. */
3703
+ message: string;
3704
+ /** @example database.constraint_violation */
3705
+ code?: string;
3706
+ /** @example email */
3707
+ field?: string;
3708
+ /** @example unique_constraint */
3709
+ constraint?: string;
3710
+ };
3711
+ };
3712
+ };
3713
+ /** @description Payload Too Large */
3714
+ 413: {
3715
+ headers: {
3716
+ [name: string]: unknown;
3717
+ };
3718
+ content: {
3719
+ 'application/json': {
3720
+ /** @example Error message describing the issue. */
3721
+ message: string;
3722
+ /** @example database.constraint_violation */
3723
+ code?: string;
3724
+ /** @example email */
3725
+ field?: string;
3726
+ /** @example unique_constraint */
3727
+ constraint?: string;
3728
+ };
3729
+ };
3730
+ };
3339
3731
  /** @description Internal Server Error */
3340
3732
  500: {
3341
3733
  headers: {
@@ -3465,6 +3857,24 @@ export type paths = {
3465
3857
  };
3466
3858
  };
3467
3859
  };
3860
+ /** @description Gone */
3861
+ 410: {
3862
+ headers: {
3863
+ [name: string]: unknown;
3864
+ };
3865
+ content: {
3866
+ 'application/json': {
3867
+ /** @example Error message describing the issue. */
3868
+ message: string;
3869
+ /** @example database.constraint_violation */
3870
+ code?: string;
3871
+ /** @example email */
3872
+ field?: string;
3873
+ /** @example unique_constraint */
3874
+ constraint?: string;
3875
+ };
3876
+ };
3877
+ };
3468
3878
  /** @description Internal Server Error */
3469
3879
  500: {
3470
3880
  headers: {
@@ -3870,6 +4280,24 @@ export type paths = {
3870
4280
  };
3871
4281
  };
3872
4282
  };
4283
+ /** @description Gone */
4284
+ 410: {
4285
+ headers: {
4286
+ [name: string]: unknown;
4287
+ };
4288
+ content: {
4289
+ 'application/json': {
4290
+ /** @example Error message describing the issue. */
4291
+ message: string;
4292
+ /** @example database.constraint_violation */
4293
+ code?: string;
4294
+ /** @example email */
4295
+ field?: string;
4296
+ /** @example unique_constraint */
4297
+ constraint?: string;
4298
+ };
4299
+ };
4300
+ };
3873
4301
  /** @description Internal Server Error */
3874
4302
  500: {
3875
4303
  headers: {
@@ -4128,6 +4556,24 @@ export type paths = {
4128
4556
  };
4129
4557
  };
4130
4558
  };
4559
+ /** @description Gone */
4560
+ 410: {
4561
+ headers: {
4562
+ [name: string]: unknown;
4563
+ };
4564
+ content: {
4565
+ 'application/json': {
4566
+ /** @example Error message describing the issue. */
4567
+ message: string;
4568
+ /** @example database.constraint_violation */
4569
+ code?: string;
4570
+ /** @example email */
4571
+ field?: string;
4572
+ /** @example unique_constraint */
4573
+ constraint?: string;
4574
+ };
4575
+ };
4576
+ };
4131
4577
  /** @description Internal Server Error */
4132
4578
  500: {
4133
4579
  headers: {
@@ -4257,6 +4703,24 @@ export type paths = {
4257
4703
  };
4258
4704
  };
4259
4705
  };
4706
+ /** @description Gone */
4707
+ 410: {
4708
+ headers: {
4709
+ [name: string]: unknown;
4710
+ };
4711
+ content: {
4712
+ 'application/json': {
4713
+ /** @example Error message describing the issue. */
4714
+ message: string;
4715
+ /** @example database.constraint_violation */
4716
+ code?: string;
4717
+ /** @example email */
4718
+ field?: string;
4719
+ /** @example unique_constraint */
4720
+ constraint?: string;
4721
+ };
4722
+ };
4723
+ };
4260
4724
  /** @description Internal Server Error */
4261
4725
  500: {
4262
4726
  headers: {
@@ -4644,6 +5108,24 @@ export type paths = {
4644
5108
  };
4645
5109
  };
4646
5110
  };
5111
+ /** @description Gone */
5112
+ 410: {
5113
+ headers: {
5114
+ [name: string]: unknown;
5115
+ };
5116
+ content: {
5117
+ 'application/json': {
5118
+ /** @example Error message describing the issue. */
5119
+ message: string;
5120
+ /** @example database.constraint_violation */
5121
+ code?: string;
5122
+ /** @example email */
5123
+ field?: string;
5124
+ /** @example unique_constraint */
5125
+ constraint?: string;
5126
+ };
5127
+ };
5128
+ };
4647
5129
  /** @description Internal Server Error */
4648
5130
  500: {
4649
5131
  headers: {
@@ -4773,6 +5255,24 @@ export type paths = {
4773
5255
  };
4774
5256
  };
4775
5257
  };
5258
+ /** @description Conflict */
5259
+ 409: {
5260
+ headers: {
5261
+ [name: string]: unknown;
5262
+ };
5263
+ content: {
5264
+ 'application/json': {
5265
+ /** @example Error message describing the issue. */
5266
+ message: string;
5267
+ /** @example database.constraint_violation */
5268
+ code?: string;
5269
+ /** @example email */
5270
+ field?: string;
5271
+ /** @example unique_constraint */
5272
+ constraint?: string;
5273
+ };
5274
+ };
5275
+ };
4776
5276
  /** @description Service Unavailable */
4777
5277
  503: {
4778
5278
  headers: {
@@ -5031,6 +5531,24 @@ export type paths = {
5031
5531
  };
5032
5532
  };
5033
5533
  };
5534
+ /** @description Conflict */
5535
+ 409: {
5536
+ headers: {
5537
+ [name: string]: unknown;
5538
+ };
5539
+ content: {
5540
+ 'application/json': {
5541
+ /** @example Error message describing the issue. */
5542
+ message: string;
5543
+ /** @example database.constraint_violation */
5544
+ code?: string;
5545
+ /** @example email */
5546
+ field?: string;
5547
+ /** @example unique_constraint */
5548
+ constraint?: string;
5549
+ };
5550
+ };
5551
+ };
5034
5552
  /** @description Service Unavailable */
5035
5553
  503: {
5036
5554
  headers: {
@@ -5160,6 +5678,24 @@ export type paths = {
5160
5678
  };
5161
5679
  };
5162
5680
  };
5681
+ /** @description Conflict */
5682
+ 409: {
5683
+ headers: {
5684
+ [name: string]: unknown;
5685
+ };
5686
+ content: {
5687
+ 'application/json': {
5688
+ /** @example Error message describing the issue. */
5689
+ message: string;
5690
+ /** @example database.constraint_violation */
5691
+ code?: string;
5692
+ /** @example email */
5693
+ field?: string;
5694
+ /** @example unique_constraint */
5695
+ constraint?: string;
5696
+ };
5697
+ };
5698
+ };
5163
5699
  /** @description Service Unavailable */
5164
5700
  503: {
5165
5701
  headers: {
@@ -6542,6 +7078,38 @@ export type components = {
6542
7078
  };
6543
7079
  where: components['schemas']['WhereClause'];
6544
7080
  };
7081
+ UploadJsonbToIndexMigrationSchemaResponse: {
7082
+ result: {
7083
+ /**
7084
+ * Format: uuid
7085
+ * @example 030d2188-f07b-4710-b568-0fc2012441bd
7086
+ */
7087
+ contentSystemId: string;
7088
+ };
7089
+ };
7090
+ /**
7091
+ * @example {
7092
+ * "version": 1,
7093
+ * "collections": {
7094
+ * "posts": {
7095
+ * "name": "posts",
7096
+ * "paths": {
7097
+ * "title": {
7098
+ * "type": "text",
7099
+ * "hasMany": false,
7100
+ * "localized": false,
7101
+ * "unique": false
7102
+ * }
7103
+ * },
7104
+ * "hints": []
7105
+ * }
7106
+ * }
7107
+ * }
7108
+ */
7109
+ JsonbToIndexMigrationDocumentSchema: Record<string, never>;
7110
+ UploadJsonbToIndexMigrationSchemaRequest: {
7111
+ documentSchema: components['schemas']['JsonbToIndexMigrationDocumentSchema'];
7112
+ };
6545
7113
  CountDocumentsV1Response: {
6546
7114
  result: {
6547
7115
  /** @example 1 */
@@ -6565,7 +7133,10 @@ export type components = {
6565
7133
  /**
6566
7134
  * @example {
6567
7135
  * "type": "blocks",
6568
- * "localized": false
7136
+ * "localized": false,
7137
+ * "blocks": {
7138
+ * "cta": "block_0"
7139
+ * }
6569
7140
  * }
6570
7141
  */
6571
7142
  DocumentSchemaBlocksField: {
@@ -6575,6 +7146,9 @@ export type components = {
6575
7146
  */
6576
7147
  type: 'blocks';
6577
7148
  localized: boolean;
7149
+ blocks: {
7150
+ [key: string]: string;
7151
+ };
6578
7152
  };
6579
7153
  /**
6580
7154
  * @example {
@@ -6785,6 +7359,22 @@ export type components = {
6785
7359
  localized: boolean;
6786
7360
  unique: boolean;
6787
7361
  };
7362
+ /**
7363
+ * @example {
7364
+ * "type": "slug",
7365
+ * "localized": false,
7366
+ * "unique": false
7367
+ * }
7368
+ */
7369
+ DocumentSchemaSlugField: {
7370
+ /**
7371
+ * @description discriminator enum property added by openapi-typescript
7372
+ * @enum {string}
7373
+ */
7374
+ type: 'slug';
7375
+ localized: boolean;
7376
+ unique: boolean;
7377
+ };
6788
7378
  /**
6789
7379
  * @example {
6790
7380
  * "type": "tabs"
@@ -6851,7 +7441,7 @@ export type components = {
6851
7441
  localized: boolean;
6852
7442
  unique: boolean;
6853
7443
  };
6854
- DocumentSchemaField: components['schemas']['DocumentSchemaArrayField'] | components['schemas']['DocumentSchemaBlocksField'] | components['schemas']['DocumentSchemaCheckboxField'] | components['schemas']['DocumentSchemaCodeField'] | components['schemas']['DocumentSchemaDateField'] | components['schemas']['DocumentSchemaEmailField'] | components['schemas']['DocumentSchemaGroupField'] | components['schemas']['DocumentSchemaJoinField'] | components['schemas']['DocumentSchemaJsonField'] | components['schemas']['DocumentSchemaNumberField'] | components['schemas']['DocumentSchemaPointField'] | components['schemas']['DocumentSchemaRadioField'] | components['schemas']['DocumentSchemaRelationshipField'] | components['schemas']['DocumentSchemaRichTextField'] | components['schemas']['DocumentSchemaSelectField'] | components['schemas']['DocumentSchemaTabsField'] | components['schemas']['DocumentSchemaTextField'] | components['schemas']['DocumentSchemaTextareaField'] | components['schemas']['DocumentSchemaUploadField'];
7444
+ DocumentSchemaField: components['schemas']['DocumentSchemaArrayField'] | components['schemas']['DocumentSchemaBlocksField'] | components['schemas']['DocumentSchemaCheckboxField'] | components['schemas']['DocumentSchemaCodeField'] | components['schemas']['DocumentSchemaDateField'] | components['schemas']['DocumentSchemaEmailField'] | components['schemas']['DocumentSchemaGroupField'] | components['schemas']['DocumentSchemaJoinField'] | components['schemas']['DocumentSchemaJsonField'] | components['schemas']['DocumentSchemaNumberField'] | components['schemas']['DocumentSchemaPointField'] | components['schemas']['DocumentSchemaRadioField'] | components['schemas']['DocumentSchemaRelationshipField'] | components['schemas']['DocumentSchemaRichTextField'] | components['schemas']['DocumentSchemaSelectField'] | components['schemas']['DocumentSchemaSlugField'] | components['schemas']['DocumentSchemaTabsField'] | components['schemas']['DocumentSchemaTextField'] | components['schemas']['DocumentSchemaTextareaField'] | components['schemas']['DocumentSchemaUploadField'];
6855
7445
  /** @example author.name */
6856
7446
  PathV1: string;
6857
7447
  /**
@@ -6914,6 +7504,38 @@ export type components = {
6914
7504
  };
6915
7505
  hints: components['schemas']['DocumentSchemaHint'][];
6916
7506
  };
7507
+ /**
7508
+ * @example {
7509
+ * "name": "books",
7510
+ * "paths": {
7511
+ * "title": {
7512
+ * "type": "text",
7513
+ * "hasMany": false,
7514
+ * "localized": true,
7515
+ * "unique": false
7516
+ * },
7517
+ * "author": {
7518
+ * "type": "relationship",
7519
+ * "collection": "authors",
7520
+ * "hasMany": false,
7521
+ * "localized": false,
7522
+ * "unique": false
7523
+ * },
7524
+ * "isbn": {
7525
+ * "type": "text",
7526
+ * "hasMany": false,
7527
+ * "localized": false,
7528
+ * "unique": true
7529
+ * }
7530
+ * }
7531
+ * }
7532
+ */
7533
+ DocumentSchemaBlock: {
7534
+ name: string;
7535
+ paths: {
7536
+ [key: string]: components['schemas']['DocumentSchemaField'];
7537
+ };
7538
+ };
6917
7539
  /**
6918
7540
  * @example {
6919
7541
  * "version": 1,
@@ -6962,7 +7584,8 @@ export type components = {
6962
7584
  * }
6963
7585
  * ]
6964
7586
  * }
6965
- * }
7587
+ * },
7588
+ * "blocks": {}
6966
7589
  * }
6967
7590
  */
6968
7591
  DocumentSchema: {
@@ -6971,6 +7594,9 @@ export type components = {
6971
7594
  collections: {
6972
7595
  [key: string]: components['schemas']['DocumentSchemaCollection'];
6973
7596
  };
7597
+ blocks: {
7598
+ [key: string]: components['schemas']['DocumentSchemaBlock'];
7599
+ };
6974
7600
  };
6975
7601
  /**
6976
7602
  * @example {
@@ -7038,6 +7664,11 @@ export type components = {
7038
7664
  } & {
7039
7665
  [key: string]: components['schemas']['DataValue'];
7040
7666
  };
7667
+ /**
7668
+ * @description User-defined application environment name.
7669
+ * @example production
7670
+ */
7671
+ environmentName?: string;
7041
7672
  locale?: components['schemas']['LocaleClause'];
7042
7673
  schema: components['schemas']['DocumentSchema'];
7043
7674
  };
@@ -7062,6 +7693,11 @@ export type components = {
7062
7693
  contentSystemId: string;
7063
7694
  /** @example posts */
7064
7695
  collection: string;
7696
+ /**
7697
+ * @description User-defined application environment name.
7698
+ * @example production
7699
+ */
7700
+ environmentName?: string;
7065
7701
  locale?: components['schemas']['LocaleClause'];
7066
7702
  schema: components['schemas']['DocumentSchema'];
7067
7703
  where: components['schemas']['WhereClauseV1'];
@@ -7197,6 +7833,11 @@ export type components = {
7197
7833
  id: string;
7198
7834
  });
7199
7835
  doc: components['schemas']['DataWithOperations'];
7836
+ /**
7837
+ * @description User-defined application environment name.
7838
+ * @example production
7839
+ */
7840
+ environmentName?: string;
7200
7841
  limit?: number;
7201
7842
  locale?: components['schemas']['LocaleClause'];
7202
7843
  schema: components['schemas']['DocumentSchema'];