@uniformdev/canvas 19.46.1-alpha.8 → 19.47.1-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -170,6 +170,22 @@ interface components$5 {
170
170
  entryName?: string | null;
171
171
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
172
172
  fields?: components$5["schemas"]["ComponentDefinitionParameter"][];
173
+ /**
174
+ * Format: uuid
175
+ * @description Reference to the category this component definition belongs to
176
+ * @default null
177
+ */
178
+ categoryId?: string | null;
179
+ /**
180
+ * @description Description of the component definition
181
+ * @default null
182
+ */
183
+ description?: string;
184
+ /**
185
+ * @description Description of the component definition
186
+ * @default null
187
+ */
188
+ previewImageUrl?: string;
173
189
  /** @description Created date string for this content type (ignored for writes) */
174
190
  created?: string;
175
191
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -820,6 +836,22 @@ interface external$c {
820
836
  entryName?: string | null;
821
837
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
822
838
  fields?: external$c["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
839
+ /**
840
+ * Format: uuid
841
+ * @description Reference to the category this component definition belongs to
842
+ * @default null
843
+ */
844
+ categoryId?: string | null;
845
+ /**
846
+ * @description Description of the component definition
847
+ * @default null
848
+ */
849
+ description?: string;
850
+ /**
851
+ * @description Description of the component definition
852
+ * @default null
853
+ */
854
+ previewImageUrl?: string;
823
855
  /** @description Created date string for this content type (ignored for writes) */
824
856
  created?: string;
825
857
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -1471,6 +1503,22 @@ interface external$b {
1471
1503
  entryName?: string | null;
1472
1504
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
1473
1505
  fields?: external$b["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
1506
+ /**
1507
+ * Format: uuid
1508
+ * @description Reference to the category this component definition belongs to
1509
+ * @default null
1510
+ */
1511
+ categoryId?: string | null;
1512
+ /**
1513
+ * @description Description of the component definition
1514
+ * @default null
1515
+ */
1516
+ description?: string;
1517
+ /**
1518
+ * @description Description of the component definition
1519
+ * @default null
1520
+ */
1521
+ previewImageUrl?: string;
1474
1522
  /** @description Created date string for this content type (ignored for writes) */
1475
1523
  created?: string;
1476
1524
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -2131,6 +2179,22 @@ interface external$a {
2131
2179
  entryName?: string | null;
2132
2180
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
2133
2181
  fields?: external$a["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
2182
+ /**
2183
+ * Format: uuid
2184
+ * @description Reference to the category this component definition belongs to
2185
+ * @default null
2186
+ */
2187
+ categoryId?: string | null;
2188
+ /**
2189
+ * @description Description of the component definition
2190
+ * @default null
2191
+ */
2192
+ description?: string;
2193
+ /**
2194
+ * @description Description of the component definition
2195
+ * @default null
2196
+ */
2197
+ previewImageUrl?: string;
2134
2198
  /** @description Created date string for this content type (ignored for writes) */
2135
2199
  created?: string;
2136
2200
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -2927,6 +2991,22 @@ interface external$9 {
2927
2991
  entryName?: string | null;
2928
2992
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
2929
2993
  fields?: external$9["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
2994
+ /**
2995
+ * Format: uuid
2996
+ * @description Reference to the category this component definition belongs to
2997
+ * @default null
2998
+ */
2999
+ categoryId?: string | null;
3000
+ /**
3001
+ * @description Description of the component definition
3002
+ * @default null
3003
+ */
3004
+ description?: string;
3005
+ /**
3006
+ * @description Description of the component definition
3007
+ * @default null
3008
+ */
3009
+ previewImageUrl?: string;
2930
3010
  /** @description Created date string for this content type (ignored for writes) */
2931
3011
  created?: string;
2932
3012
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -3573,6 +3653,22 @@ interface external$8 {
3573
3653
  entryName?: string | null;
3574
3654
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
3575
3655
  fields?: external$8["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
3656
+ /**
3657
+ * Format: uuid
3658
+ * @description Reference to the category this component definition belongs to
3659
+ * @default null
3660
+ */
3661
+ categoryId?: string | null;
3662
+ /**
3663
+ * @description Description of the component definition
3664
+ * @default null
3665
+ */
3666
+ description?: string;
3667
+ /**
3668
+ * @description Description of the component definition
3669
+ * @default null
3670
+ */
3671
+ previewImageUrl?: string;
3576
3672
  /** @description Created date string for this content type (ignored for writes) */
3577
3673
  created?: string;
3578
3674
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -4163,6 +4259,22 @@ interface external$7 {
4163
4259
  entryName?: string | null;
4164
4260
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
4165
4261
  fields?: external$7["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
4262
+ /**
4263
+ * Format: uuid
4264
+ * @description Reference to the category this component definition belongs to
4265
+ * @default null
4266
+ */
4267
+ categoryId?: string | null;
4268
+ /**
4269
+ * @description Description of the component definition
4270
+ * @default null
4271
+ */
4272
+ description?: string;
4273
+ /**
4274
+ * @description Description of the component definition
4275
+ * @default null
4276
+ */
4277
+ previewImageUrl?: string;
4166
4278
  /** @description Created date string for this content type (ignored for writes) */
4167
4279
  created?: string;
4168
4280
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -4788,6 +4900,22 @@ interface external$6 {
4788
4900
  entryName?: string | null;
4789
4901
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
4790
4902
  fields?: external$6["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
4903
+ /**
4904
+ * Format: uuid
4905
+ * @description Reference to the category this component definition belongs to
4906
+ * @default null
4907
+ */
4908
+ categoryId?: string | null;
4909
+ /**
4910
+ * @description Description of the component definition
4911
+ * @default null
4912
+ */
4913
+ description?: string;
4914
+ /**
4915
+ * @description Description of the component definition
4916
+ * @default null
4917
+ */
4918
+ previewImageUrl?: string;
4791
4919
  /** @description Created date string for this content type (ignored for writes) */
4792
4920
  created?: string;
4793
4921
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -5842,6 +5970,22 @@ interface external$5 {
5842
5970
  entryName?: string | null;
5843
5971
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
5844
5972
  fields?: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
5973
+ /**
5974
+ * Format: uuid
5975
+ * @description Reference to the category this component definition belongs to
5976
+ * @default null
5977
+ */
5978
+ categoryId?: string | null;
5979
+ /**
5980
+ * @description Description of the component definition
5981
+ * @default null
5982
+ */
5983
+ description?: string;
5984
+ /**
5985
+ * @description Description of the component definition
5986
+ * @default null
5987
+ */
5988
+ previewImageUrl?: string;
5845
5989
  /** @description Created date string for this content type (ignored for writes) */
5846
5990
  created?: string;
5847
5991
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -6300,10 +6444,24 @@ interface external$4 {
6300
6444
 
6301
6445
  interface components$1 {
6302
6446
  schemas: {
6303
- CompositionResolvedGetResponse: components$1["schemas"]["EdgehancerResult"] & external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["schemas"]["CompositionApiResponse"];
6304
- EntryResolvedGetResponse: components$1["schemas"]["EdgehancerResult"] & external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["schemas"]["EntryApiResponse"];
6305
- EdgehancerResult: {
6306
- diagnostics?: components$1["schemas"]["CompositionDiagnostics"];
6447
+ CompositionResolvedGetResponse: components$1["schemas"]["EdgehancersResolutionInfo"] & external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["schemas"]["CompositionApiResponse"];
6448
+ CompositionResolvedListResponse: {
6449
+ diagnostics?: components$1["schemas"]["CompositionDiagnostics"] & {
6450
+ data?: {
6451
+ [key: string]: components$1["schemas"]["DataDiagnostic"][];
6452
+ };
6453
+ };
6454
+ errors?: {
6455
+ [key: string]: components$1["schemas"]["CompositionIssue"][];
6456
+ };
6457
+ warnings?: {
6458
+ [key: string]: components$1["schemas"]["CompositionIssue"][];
6459
+ };
6460
+ } & external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["schemas"]["CompositionListResponse"];
6461
+ EdgehancersResolutionInfo: {
6462
+ diagnostics?: components$1["schemas"]["CompositionDiagnostics"] & {
6463
+ [key: string]: unknown;
6464
+ };
6307
6465
  errors?: components$1["schemas"]["CompositionIssue"][];
6308
6466
  warnings?: components$1["schemas"]["CompositionIssue"][];
6309
6467
  };
@@ -6372,7 +6530,6 @@ interface components$1 {
6372
6530
  /** @description How many data type configs were retrieved */
6373
6531
  dataTypeCount: number;
6374
6532
  };
6375
- data?: components$1["schemas"]["DataDiagnostic"][];
6376
6533
  };
6377
6534
  CompositionIssue: {
6378
6535
  componentPath?: string;
@@ -6386,13 +6543,6 @@ interface components$1 {
6386
6543
  inputName?: string;
6387
6544
  code?: string;
6388
6545
  };
6389
- InvalidationResult: {
6390
- ok: boolean;
6391
- };
6392
- BatchInvalidationResult: {
6393
- ok: number;
6394
- failed: number;
6395
- };
6396
6546
  };
6397
6547
  responses: {
6398
6548
  /** Invalid caller input came with the request */
@@ -6401,11 +6551,13 @@ interface components$1 {
6401
6551
  "application/json": components$1["schemas"]["UniformError"];
6402
6552
  };
6403
6553
  };
6554
+ /** Provided token or API key does not have access to the requested resource */
6404
6555
  UnauthorizedError: {
6405
6556
  content: {
6406
6557
  "application/json": components$1["schemas"]["UniformError"];
6407
6558
  };
6408
6559
  };
6560
+ /** Provided token or API key does not allow this action */
6409
6561
  ForbiddenError: {
6410
6562
  content: {
6411
6563
  "application/json": components$1["schemas"]["UniformError"];
@@ -6429,6 +6581,7 @@ interface components$1 {
6429
6581
  "application/json": components$1["schemas"]["UniformError"];
6430
6582
  };
6431
6583
  };
6584
+ /** The endpoint is called too often */
6432
6585
  RateLimitError: {
6433
6586
  content: {
6434
6587
  "application/json": components$1["schemas"]["UniformError"];
@@ -6440,39 +6593,6 @@ interface components$1 {
6440
6593
  "application/json": components$1["schemas"]["UniformError"];
6441
6594
  };
6442
6595
  };
6443
- CompositionResult: {
6444
- content: {
6445
- "application/json": {
6446
- diagnostics?: components$1["schemas"]["CompositionDiagnostics"];
6447
- errors?: components$1["schemas"]["CompositionIssue"][];
6448
- warnings?: components$1["schemas"]["CompositionIssue"][];
6449
- } & external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["schemas"]["CompositionApiResponse"];
6450
- };
6451
- };
6452
- /** Edge route response */
6453
- EdgeRouteResponse: {
6454
- content: {
6455
- "application/json": external$3["../../../lambda/functions/v1-route.swagger.yml"]["components"]["schemas"]["RouteResponseRedirect"] | external$3["../../../lambda/functions/v1-route.swagger.yml"]["components"]["schemas"]["RouteResponseNotFound"] | {
6456
- matchedRoute?: string;
6457
- dynamicInputs?: external$3["../../../lambda/functions/v1-route.swagger.yml"]["components"]["schemas"]["RouteDynamicInputs"];
6458
- /** @enum {string} */
6459
- type?: "composition";
6460
- compositionApiResponse?: components$1["schemas"]["CompositionResolvedGetResponse"];
6461
- };
6462
- };
6463
- };
6464
- /** Invalidation request was processed; ok indicates if it succeeded */
6465
- InvalidationResult: {
6466
- content: {
6467
- "application/json": components$1["schemas"]["InvalidationResult"];
6468
- };
6469
- };
6470
- /** Batch invalidation request was processed; number of successful and failed jobs is included */
6471
- BatchInvalidationResult: {
6472
- content: {
6473
- "application/json": components$1["schemas"]["BatchInvalidationResult"];
6474
- };
6475
- };
6476
6596
  };
6477
6597
  }
6478
6598
  interface external$3 {
@@ -6684,6 +6804,22 @@ interface external$3 {
6684
6804
  entryName?: string | null;
6685
6805
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
6686
6806
  fields?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
6807
+ /**
6808
+ * Format: uuid
6809
+ * @description Reference to the category this component definition belongs to
6810
+ * @default null
6811
+ */
6812
+ categoryId?: string | null;
6813
+ /**
6814
+ * @description Description of the component definition
6815
+ * @default null
6816
+ */
6817
+ description?: string;
6818
+ /**
6819
+ * @description Description of the component definition
6820
+ * @default null
6821
+ */
6822
+ previewImageUrl?: string;
6687
6823
  /** @description Created date string for this content type (ignored for writes) */
6688
6824
  created?: string;
6689
6825
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -7499,246 +7635,6 @@ interface external$3 {
7499
7635
  };
7500
7636
  operations: {};
7501
7637
  };
7502
- "../../../lambda/functions/v1-entries.swagger.yml": {
7503
- paths: {
7504
- "/api/v1/entries": {
7505
- get: {
7506
- parameters: {
7507
- query: {
7508
- /** Specify multiple entry IDs to fetch. Response type will be a list. */
7509
- entryIDs?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["entryIDs"];
7510
- /** Filters entry lists by the user who created them. The user is specified by their identity subject. */
7511
- createdBy?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["createdBy"];
7512
- /** Max number of records to return */
7513
- limit?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["limit"];
7514
- /** Number of records to skip */
7515
- offset?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["offset"];
7516
- /** Sets the sorting of the results. If unspecified, results are sorted by name ascending. */
7517
- orderBy?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["orderBy"];
7518
- /** The project the entry/entries are on. */
7519
- projectId: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["projectId"];
7520
- /** Publishing state to fetch. 0 = draft, 64 = published. */
7521
- state?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["state"];
7522
- /** The content type ID to filter by. */
7523
- type?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["type"];
7524
- /**
7525
- * @deprecated Filters entries lists by the UI status of the entry.
7526
- * This internal status is subject to change without notice, and is thus marked deprecated to discourage use of internal data.
7527
- */
7528
- uiStatus?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["uiStatus"];
7529
- /** Filters entry lists by the user who last updated them. The user is specified by their identity subject. */
7530
- updatedBy?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["updatedBy"];
7531
- /**
7532
- * Controls whether the total count of results will be returned along with the current results page in a list.
7533
- * Has no effect when not fetching a list. This does impact performance when enabled.
7534
- */
7535
- withTotalCount?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["withTotalCount"];
7536
- /**
7537
- * @deprecated Returns the UI status string of the entry.
7538
- * This internal status is subject to change without notice, and is thus marked deprecated to discourage use of internal data.
7539
- */
7540
- withUIStatus?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["withUIStatus"];
7541
- };
7542
- };
7543
- responses: {
7544
- /** OK */
7545
- 200: {
7546
- content: {
7547
- "application/json": external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["schemas"]["EntryListResponse"];
7548
- };
7549
- };
7550
- 400: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["BadRequestError"];
7551
- 401: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["UnauthorizedError"];
7552
- 403: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["ForbiddenError"];
7553
- /** Entry not found */
7554
- 404: {
7555
- content: {
7556
- "text/plain": string;
7557
- };
7558
- };
7559
- 429: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["RateLimitError"];
7560
- 500: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["InternalServerError"];
7561
- };
7562
- };
7563
- /** Upserts an entry */
7564
- put: {
7565
- responses: {
7566
- /** OK */
7567
- 204: never;
7568
- 400: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["BadRequestError"];
7569
- 401: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["UnauthorizedError"];
7570
- 403: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["ForbiddenError"];
7571
- 429: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["RateLimitError"];
7572
- 500: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["InternalServerError"];
7573
- };
7574
- requestBody: {
7575
- content: {
7576
- "application/json": {
7577
- /**
7578
- * Format: uuid
7579
- * @description The project ID to upsert the entry to
7580
- */
7581
- projectId: string;
7582
- /** @description The publishing state to upsert into. 0 = draft, 64 = published */
7583
- state: number;
7584
- entry: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["schemas"]["EntryInput"];
7585
- /** @description Ignored if present */
7586
- created?: string;
7587
- /** @description Ignored if present */
7588
- modified?: string;
7589
- };
7590
- };
7591
- };
7592
- };
7593
- /** Deletes or unpublishes an entry */
7594
- delete: {
7595
- responses: {
7596
- /** OK */
7597
- 204: never;
7598
- 400: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["BadRequestError"];
7599
- 401: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["UnauthorizedError"];
7600
- 403: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["ForbiddenError"];
7601
- 429: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["RateLimitError"];
7602
- 500: external$3["../../../lambda/functions/swagger.yml"]["components"]["responses"]["InternalServerError"];
7603
- };
7604
- requestBody: {
7605
- content: {
7606
- "application/json": {
7607
- /**
7608
- * Format: uuid
7609
- * @description The ID of the entry to delete
7610
- */
7611
- entryId: string;
7612
- /**
7613
- * Format: uuid
7614
- * @description The ID of the project the entry to delete belongs to
7615
- */
7616
- projectId: string;
7617
- /** @description The state to delete (0 = draft, 64 = published [causes unpublishing], unspecified = all) */
7618
- state?: number;
7619
- };
7620
- };
7621
- };
7622
- };
7623
- /** Handles preflight requests. This endpoint allows CORS. */
7624
- options: {
7625
- responses: {
7626
- /** OK */
7627
- 204: never;
7628
- };
7629
- };
7630
- };
7631
- };
7632
- components: {
7633
- schemas: {
7634
- /** @description Defines the shape of the entry */
7635
- Entry: {
7636
- /** @description Content type of the entry. */
7637
- type: string;
7638
- /**
7639
- * Format: uuid
7640
- * @description The public UUID of the entry.
7641
- */
7642
- _id: string;
7643
- /** @description The name of the entry. */
7644
- _name?: string;
7645
- /** @description The slug of the entry, automatically generated. */
7646
- _slug?: string;
7647
- /** @description Name of the author of the most recent change. */
7648
- _author?: string;
7649
- /** @description Entry field values. */
7650
- fields?: {
7651
- [key: string]: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
7652
- };
7653
- _dataResources?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
7654
- };
7655
- /** @description Defines the shape of the entry input */
7656
- EntryInput: {
7657
- /** @description Content type of the entry. */
7658
- type: string;
7659
- /**
7660
- * Format: uuid
7661
- * @description The public UUID of the entry.
7662
- */
7663
- _id?: string;
7664
- /** @description Entry field values. */
7665
- fields?: {
7666
- [key: string]: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
7667
- };
7668
- _dataResources?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
7669
- };
7670
- EntryApiResponse: {
7671
- /** @description Publishing state to fetch. 0 = draft, 64 = published. */
7672
- state: number;
7673
- /**
7674
- * @deprecated
7675
- * @description UI status value. Subject to change without notice; do not rely on this value. Only present when `withUIStatus` option is true.
7676
- * @enum {string}
7677
- */
7678
- uiStatus?: "Draft" | "Modified" | "Published" | "Orphan" | "Previous";
7679
- /**
7680
- * Format: uuid
7681
- * @description The project ID that this layout data is part of
7682
- */
7683
- projectId: string;
7684
- /**
7685
- * Format: date-time,
7686
- * @description Created date string for this definition
7687
- */
7688
- created: string;
7689
- /**
7690
- * Format: date-time,
7691
- * @description Modified date string for this definition
7692
- */
7693
- modified: string;
7694
- entry: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["schemas"]["Entry"];
7695
- };
7696
- EntryListResponse: {
7697
- entries: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["schemas"]["EntryApiResponse"][];
7698
- /** @description Total number of entries that match the query. Only present when `withTotalCount` option is true. */
7699
- totalCount?: number;
7700
- };
7701
- };
7702
- parameters: {
7703
- /** @description The project the entry/entries are on. */
7704
- projectId: string;
7705
- /** @description Specify multiple entry IDs to fetch. Response type will be a list. */
7706
- entryIDs: string[];
7707
- /** @description The content type ID to filter by. */
7708
- type: string[];
7709
- /** @description Publishing state to fetch. 0 = draft, 64 = published. */
7710
- state: number;
7711
- /** @description Number of records to skip */
7712
- offset: number;
7713
- /** @description Max number of records to return */
7714
- limit: number;
7715
- /** @description Sets the sorting of the results. If unspecified, results are sorted by name ascending. */
7716
- orderBy: ("updated_at_DESC" | "updated_at_ASC" | "created_at_DESC" | "created_at_ASC" | "name_DESC" | "name_ASC")[];
7717
- /**
7718
- * @deprecated
7719
- * @description Returns the UI status string of the entry.
7720
- * This internal status is subject to change without notice, and is thus marked deprecated to discourage use of internal data.
7721
- */
7722
- withUIStatus: boolean;
7723
- /**
7724
- * @deprecated
7725
- * @description Filters entries lists by the UI status of the entry.
7726
- * This internal status is subject to change without notice, and is thus marked deprecated to discourage use of internal data.
7727
- */
7728
- uiStatus: ("Draft" | "Modified" | "Published" | "Orphan")[];
7729
- /** @description Filters entry lists by the user who created them. The user is specified by their identity subject. */
7730
- createdBy: string;
7731
- /** @description Filters entry lists by the user who last updated them. The user is specified by their identity subject. */
7732
- updatedBy: string;
7733
- /**
7734
- * @description Controls whether the total count of results will be returned along with the current results page in a list.
7735
- * Has no effect when not fetching a list. This does impact performance when enabled.
7736
- */
7737
- withTotalCount: boolean;
7738
- };
7739
- };
7740
- operations: {};
7741
- };
7742
7638
  "../../../lambda/functions/v1-redirect.swagger.yml": {
7743
7639
  paths: {
7744
7640
  "/api/v1/redirect": {
@@ -8435,6 +8331,22 @@ interface external$2 {
8435
8331
  entryName?: string | null;
8436
8332
  /** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
8437
8333
  fields?: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
8334
+ /**
8335
+ * Format: uuid
8336
+ * @description Reference to the category this component definition belongs to
8337
+ * @default null
8338
+ */
8339
+ categoryId?: string | null;
8340
+ /**
8341
+ * @description Description of the component definition
8342
+ * @default null
8343
+ */
8344
+ description?: string;
8345
+ /**
8346
+ * @description Description of the component definition
8347
+ * @default null
8348
+ */
8349
+ previewImageUrl?: string;
8438
8350
  /** @description Created date string for this content type (ignored for writes) */
8439
8351
  created?: string;
8440
8352
  /** @description Last modified date string for this content type (ignored for writes) */
@@ -9605,6 +9517,7 @@ type CompositionDiagnostics = components$1['schemas']['CompositionDiagnostics'];
9605
9517
  type CompositionDataDiagnostic = components$1['schemas']['DataDiagnostic'];
9606
9518
  /** Response as it comes from uniform.global/api/v1/composition */
9607
9519
  type CompositionResolvedGetResponse = components$1['schemas']['CompositionResolvedGetResponse'];
9520
+ type CompositionResolvedListResponse = components$1['schemas']['CompositionResolvedListResponse'];
9608
9521
  /** All valid response types */
9609
9522
  type CompositionGetValidResponses = CompositionGetResponse | CompositionResolvedGetResponse;
9610
9523
  /** The GET response from /api/v1/route */
@@ -9614,8 +9527,6 @@ type RouteGetResponseComposition = components['schemas']['RouteResponseCompositi
9614
9527
  type RouteGetResponseRedirect = components['schemas']['RouteResponseRedirect'];
9615
9528
  type RouteGetResponseNotFound = components['schemas']['RouteResponseNotFound'];
9616
9529
  type RouteDynamicInputs = components['schemas']['RouteDynamicInputs'];
9617
- /** Response as it comes from uniform.global/api/v1/composition */
9618
- type EntryResolvedGetResponse = components$1['schemas']['EntryResolvedGetResponse'];
9619
9530
  /** The GET response from /api/v1/entries */
9620
9531
  type EntriesGetParameters = paths$8['/api/v1/entries']['get']['parameters']['query'] & DataResolutionParameters;
9621
9532
  type EntriesGetResponse = components$4['schemas']['EntryListResponse'];
@@ -10286,7 +10197,6 @@ type ComponentParameterEnhancer<TRawValue = unknown, TOutputValue = unknown, TCo
10286
10197
 
10287
10198
  type schemas = components$1['schemas'];
10288
10199
  type InvalidationPayload = schemas['InvalidationPayload'];
10289
- type InvalidationResult = schemas['InvalidationResult'];
10290
10200
  type BatchInvalidationPayload = schemas['BatchInvalidationPayload'];
10291
10201
 
10292
10202
  type LinkParameterType = 'projectMapNode' | 'url' | 'tel' | 'email';
@@ -10824,8 +10734,12 @@ declare const CANVAS_PERSONALIZATION_PARAM = "$pzCrit";
10824
10734
  declare const CANVAS_TEST_VARIANT_PARAM = "$tstVrnt";
10825
10735
  /** Public ID of the Uniform Context enrichment tag parameter on Canvas components */
10826
10736
  declare const CANVAS_ENRICHMENT_TAG_PARAM = "$enr";
10827
- /** The name of the query string used to detect if we are in in-context editing mode */
10737
+ /** The name of the query string used to detect if we are in contextual editing mode */
10828
10738
  declare const IN_CONTEXT_EDITOR_QUERY_STRING_PARAM = "is_incontext_editing_mode";
10739
+ /** The name of the query string used to indicate that we want to use the playground for preview */
10740
+ declare const IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM = "is_incontext_editing_playground";
10741
+ /** The name of the query string used to get the config from the preview url */
10742
+ declare const IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM = "is_config_check";
10829
10743
  /** The value of "data-role" in the component start `<script>` tag */
10830
10744
  declare const IN_CONTEXT_EDITOR_COMPONENT_START_ROLE = "uniform-component-start";
10831
10745
  /** The value of "data-role" in the component end `<script>` tag */
@@ -10990,6 +10904,12 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
10990
10904
  } | undefined;
10991
10905
  }>;
10992
10906
 
10907
+ /**
10908
+ * Converts a content entry to a put content entry body that has only the properties expected to the PUT API.
10909
+ * Removes things like author, stats, etc.
10910
+ */
10911
+ declare function convertEntryToPutEntry(entry: Entry): PutEntryBody;
10912
+
10993
10913
  declare const ATTRIBUTE_COMPONENT_ID = "data-uniform-component-id";
10994
10914
  declare const ATTRIBUTE_PARAMETER_ID = "data-uniform-parameter-id";
10995
10915
  declare const ATTRIBUTE_PARAMETER_VALUE = "data-uniform-parameter-value";
@@ -11097,4 +11017,4 @@ declare function parseVariableExpression(serialized: string, onToken?: (token: s
11097
11017
 
11098
11018
  declare const CanvasClientError: typeof ApiClientError;
11099
11019
 
11100
- export { ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, BindVariablesOptions, BindVariablesResult, BindVariablesToObjectOptions, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, CanvasDefinitions, CategoriesDeleteParameters, CategoriesGetParameters, CategoriesGetResponse, CategoriesPutParameters, Category, CategoryClient, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceContextualEditing, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByComponentIdParameters, CompositionGetByIdParameters, CompositionGetByNodeIdParameters, CompositionGetByNodePathParameters, CompositionGetBySlugParameters, CompositionGetListResponse, CompositionGetOrderBy, CompositionGetParameters, CompositionGetResponse, CompositionGetValidResponses, CompositionIssue, CompositionPatternIssue, CompositionPutParameters, CompositionRelationshipsClientOptions, CompositionRelationshipsDDefinitionGetResponse, CompositionRelationshipsDefinitionApi, CompositionRelationshipsDefinitionGetParameters, CompositionResolvedGetResponse, CompositionUIStatus, ContentClient, ContentType, ContentTypeField, ContextualEditingComponentReference, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions, DataResourceIssue, DataResourceVariables, DataSource, DataSourceClient, DataSourceDeleteParameters, DataSourceGetParameters, DataSourceGetResponse, DataSourcePutParameters, DataSourcesGetParameters, DataSourcesGetResponse, DataType, DataTypeClient, DataTypeDeleteParameters, DataTypeGetParameters, DataTypeGetResponse, DataTypePutParameters, DataVariableDefinition, DeleteContentTypeOptions, DeleteEntryOptions, DismissPlaceholderMessage, DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_DEFAULT_L2_CACHE_TTL_IN_HOURS, EDGE_MAX_CACHE_TTL, EDGE_MAX_L2_CACHE_TTL_IN_HOURS, EDGE_MIN_CACHE_TTL, EDGE_MIN_L2_CACHE_TTL_IN_HOURS, EMPTY_COMPOSITION, EditorStateUpdatedMessage, EnhancerBuilder, EnhancerContext, EnhancerError, EntriesGetParameters, EntriesGetResponse, Entry, EntryResolvedGetResponse, EventNames, GetContentTypesOptions, GetContentTypesResponse, GetEntriesOptions, GetEntriesResponse, GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, InvalidationPayload, InvalidationResult, LimitPolicy, LinkComponentParameterValue, LinkParamConfiguration, LinkParamValue, LinkParameterType, LinkTypeConfiguration, MessageHandler, MoveComponentMessage, NonProjectMapLinkParamValue, OverrideOptions, PLACEHOLDER_ID, PreviewEventBus, PreviewPanelSettings, ProjectMapLinkComponentParameterValue, ProjectMapLinkParamValue, PutContentTypeBody, PutEntryBody, ReadyMessage, ReportRenderedCompositionsMessage, ResolvedRouteGetResponse, RichTextBuiltInElement, RichTextBuiltInFormat, RichTextParamConfiguration, RichTextParamValue, RootComponentInstance, RouteClient, RouteDynamicInputs, RouteGetParameters, RouteGetResponse, RouteGetResponseComposition, RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, SelectComponentMessage, SelectParameterMessage, SpecificProjectMap, SubscribeToCompositionOptions, TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, getParameterAttributes, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseVariableExpression, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
11020
+ export { ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, BindVariablesOptions, BindVariablesResult, BindVariablesToObjectOptions, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, CanvasDefinitions, CategoriesDeleteParameters, CategoriesGetParameters, CategoriesGetResponse, CategoriesPutParameters, Category, CategoryClient, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceContextualEditing, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByComponentIdParameters, CompositionGetByIdParameters, CompositionGetByNodeIdParameters, CompositionGetByNodePathParameters, CompositionGetBySlugParameters, CompositionGetListResponse, CompositionGetOrderBy, CompositionGetParameters, CompositionGetResponse, CompositionGetValidResponses, CompositionIssue, CompositionPatternIssue, CompositionPutParameters, CompositionRelationshipsClientOptions, CompositionRelationshipsDDefinitionGetResponse, CompositionRelationshipsDefinitionApi, CompositionRelationshipsDefinitionGetParameters, CompositionResolvedGetResponse, CompositionResolvedListResponse, CompositionUIStatus, ContentClient, ContentType, ContentTypeField, ContextualEditingComponentReference, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions, DataResourceIssue, DataResourceVariables, DataSource, DataSourceClient, DataSourceDeleteParameters, DataSourceGetParameters, DataSourceGetResponse, DataSourcePutParameters, DataSourcesGetParameters, DataSourcesGetResponse, DataType, DataTypeClient, DataTypeDeleteParameters, DataTypeGetParameters, DataTypeGetResponse, DataTypePutParameters, DataVariableDefinition, DeleteContentTypeOptions, DeleteEntryOptions, DismissPlaceholderMessage, DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_DEFAULT_L2_CACHE_TTL_IN_HOURS, EDGE_MAX_CACHE_TTL, EDGE_MAX_L2_CACHE_TTL_IN_HOURS, EDGE_MIN_CACHE_TTL, EDGE_MIN_L2_CACHE_TTL_IN_HOURS, EMPTY_COMPOSITION, EditorStateUpdatedMessage, EnhancerBuilder, EnhancerContext, EnhancerError, EntriesGetParameters, EntriesGetResponse, Entry, EventNames, GetContentTypesOptions, GetContentTypesResponse, GetEntriesOptions, GetEntriesResponse, GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, InvalidationPayload, LimitPolicy, LinkComponentParameterValue, LinkParamConfiguration, LinkParamValue, LinkParameterType, LinkTypeConfiguration, MessageHandler, MoveComponentMessage, NonProjectMapLinkParamValue, OverrideOptions, PLACEHOLDER_ID, PreviewEventBus, PreviewPanelSettings, ProjectMapLinkComponentParameterValue, ProjectMapLinkParamValue, PutContentTypeBody, PutEntryBody, ReadyMessage, ReportRenderedCompositionsMessage, ResolvedRouteGetResponse, RichTextBuiltInElement, RichTextBuiltInFormat, RichTextParamConfiguration, RichTextParamValue, RootComponentInstance, RouteClient, RouteDynamicInputs, RouteGetParameters, RouteGetResponse, RouteGetResponseComposition, RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, SelectComponentMessage, SelectParameterMessage, SpecificProjectMap, SubscribeToCompositionOptions, TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, getParameterAttributes, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseVariableExpression, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };