@uniformdev/canvas 20.61.2-alpha.4 → 20.63.1-alpha.12
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.mts +120 -81
- package/dist/index.d.ts +120 -81
- package/dist/index.esm.js +41 -38
- package/dist/index.js +41 -38
- package/dist/index.mjs +41 -38
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiClient,
|
|
1
|
+
import { ApiClient, ClientOptions, ExceptProject, ApiClientError } from '@uniformdev/context/api';
|
|
2
2
|
export { ApiClientError } from '@uniformdev/context/api';
|
|
3
3
|
import { AssetGetResponseSingle, AssetDefinitionType, AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
|
|
4
4
|
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
|
|
@@ -6,7 +6,7 @@ import { EndpointOut, EndpointHeadersOut, EndpointTransformationOut } from 'svix
|
|
|
6
6
|
import { Quirks, StorageCommands, PersonalizedVariant, VariationMatchMetadata, TestVariant } from '@uniformdev/context';
|
|
7
7
|
import { Options as Options$1 } from 'p-retry';
|
|
8
8
|
import { Options } from 'p-throttle';
|
|
9
|
-
import {
|
|
9
|
+
import { RichTextBuiltInElement as RichTextBuiltInElement$1, RichTextBuiltInFormat as RichTextBuiltInFormat$1, RichTextParamConfiguration as RichTextParamConfiguration$1, ParameterRichTextValue } from '@uniformdev/richtext';
|
|
10
10
|
|
|
11
11
|
interface paths$n {
|
|
12
12
|
"/api/v1/canvas-definitions": {
|
|
@@ -2560,9 +2560,10 @@ interface components$o {
|
|
|
2560
2560
|
skipParameterResolution: boolean;
|
|
2561
2561
|
/** @description Matches entries based on whether they are pattern entries or regular entries.
|
|
2562
2562
|
* If true, only pattern entries will be returned.
|
|
2563
|
-
* If false (default), only regular entries will be returned
|
|
2563
|
+
* If false (default), only regular entries will be returned.
|
|
2564
|
+
* If 'any', both pattern and regular entries will be returned (useful for ID lookups).
|
|
2564
2565
|
* */
|
|
2565
|
-
pattern: boolean;
|
|
2566
|
+
pattern: boolean | "any";
|
|
2566
2567
|
/** @description One or more locales to filter and localize by.
|
|
2567
2568
|
* Only entries that enable one of the specified locales _or enable no locales_ will be returned.
|
|
2568
2569
|
* The response will be localized to include only the first matching locale's data.
|
|
@@ -2584,10 +2585,21 @@ interface components$o {
|
|
|
2584
2585
|
* */
|
|
2585
2586
|
releaseId: string;
|
|
2586
2587
|
/** @description Search on textual fields of an entry.
|
|
2587
|
-
*
|
|
2588
|
+
* Matches against fully rendered content including resolved pattern content.
|
|
2589
|
+
* Use this for "where does this content appear" queries.
|
|
2590
|
+
* Note: For long text fields, the tail of the text is not guaranteed to be searchable.
|
|
2588
2591
|
* Example: ?search=hello
|
|
2589
2592
|
* */
|
|
2590
2593
|
search: string;
|
|
2594
|
+
/**
|
|
2595
|
+
* @deprecated
|
|
2596
|
+
* @description BETA: Semantic search using vector similarity to find content by meaning.
|
|
2597
|
+
* Matches against source content only - pattern base content matches the pattern itself, not consumers.
|
|
2598
|
+
* Use this for "where is this content defined" queries.
|
|
2599
|
+
* Requires AI credits.
|
|
2600
|
+
*
|
|
2601
|
+
*/
|
|
2602
|
+
searchSemantic: string;
|
|
2591
2603
|
/** @description Controls the edition resolution behavior.
|
|
2592
2604
|
*
|
|
2593
2605
|
* auto: (default) Editions are evaluated automatically and the best matching edition is returned.
|
|
@@ -2987,7 +2999,8 @@ interface paths$k {
|
|
|
2987
2999
|
facetBy?: components$m["parameters"]["facetBy"];
|
|
2988
3000
|
/** @description Matches entries based on whether they are pattern entries or regular entries.
|
|
2989
3001
|
* If true, only pattern entries will be returned.
|
|
2990
|
-
* If false (default), only regular entries will be returned
|
|
3002
|
+
* If false (default), only regular entries will be returned.
|
|
3003
|
+
* If 'any', both pattern and regular entries will be returned (useful for ID lookups).
|
|
2991
3004
|
* */
|
|
2992
3005
|
pattern?: components$m["parameters"]["pattern"];
|
|
2993
3006
|
/** @description The project the entry/entries are on */
|
|
@@ -3063,10 +3076,21 @@ interface paths$k {
|
|
|
3063
3076
|
* */
|
|
3064
3077
|
releaseId?: components$m["parameters"]["releaseId"];
|
|
3065
3078
|
/** @description Search on textual fields of an entry.
|
|
3066
|
-
*
|
|
3079
|
+
* Matches against fully rendered content including resolved pattern content.
|
|
3080
|
+
* Use this for "where does this content appear" queries.
|
|
3081
|
+
* Note: For long text fields, the tail of the text is not guaranteed to be searchable.
|
|
3067
3082
|
* Example: ?search=hello
|
|
3068
3083
|
* */
|
|
3069
3084
|
search?: components$m["parameters"]["search"];
|
|
3085
|
+
/**
|
|
3086
|
+
* @deprecated
|
|
3087
|
+
* @description BETA: Semantic search using vector similarity to find content by meaning.
|
|
3088
|
+
* Matches against source content only - pattern base content matches the pattern itself, not consumers.
|
|
3089
|
+
* Use this for "where is this content defined" queries.
|
|
3090
|
+
* Requires AI credits.
|
|
3091
|
+
*
|
|
3092
|
+
*/
|
|
3093
|
+
searchSemantic?: components$m["parameters"]["searchSemantic"];
|
|
3070
3094
|
/** @description Controls the edition resolution behavior.
|
|
3071
3095
|
*
|
|
3072
3096
|
* auto: (default) Editions are evaluated automatically and the best matching edition is returned.
|
|
@@ -3932,9 +3956,10 @@ interface components$m {
|
|
|
3932
3956
|
facetBy: string;
|
|
3933
3957
|
/** @description Matches entries based on whether they are pattern entries or regular entries.
|
|
3934
3958
|
* If true, only pattern entries will be returned.
|
|
3935
|
-
* If false (default), only regular entries will be returned
|
|
3959
|
+
* If false (default), only regular entries will be returned.
|
|
3960
|
+
* If 'any', both pattern and regular entries will be returned (useful for ID lookups).
|
|
3936
3961
|
* */
|
|
3937
|
-
pattern: boolean;
|
|
3962
|
+
pattern: boolean | "any";
|
|
3938
3963
|
/** @description The project the entry/entries are on */
|
|
3939
3964
|
projectId: string;
|
|
3940
3965
|
/** @description Publishing state to fetch. 0 = draft, 64 = published */
|
|
@@ -4008,10 +4033,21 @@ interface components$m {
|
|
|
4008
4033
|
* */
|
|
4009
4034
|
releaseId: string;
|
|
4010
4035
|
/** @description Search on textual fields of an entry.
|
|
4011
|
-
*
|
|
4036
|
+
* Matches against fully rendered content including resolved pattern content.
|
|
4037
|
+
* Use this for "where does this content appear" queries.
|
|
4038
|
+
* Note: For long text fields, the tail of the text is not guaranteed to be searchable.
|
|
4012
4039
|
* Example: ?search=hello
|
|
4013
4040
|
* */
|
|
4014
4041
|
search: string;
|
|
4042
|
+
/**
|
|
4043
|
+
* @deprecated
|
|
4044
|
+
* @description BETA: Semantic search using vector similarity to find content by meaning.
|
|
4045
|
+
* Matches against source content only - pattern base content matches the pattern itself, not consumers.
|
|
4046
|
+
* Use this for "where is this content defined" queries.
|
|
4047
|
+
* Requires AI credits.
|
|
4048
|
+
*
|
|
4049
|
+
*/
|
|
4050
|
+
searchSemantic: string;
|
|
4015
4051
|
/** @description Controls the edition resolution behavior.
|
|
4016
4052
|
*
|
|
4017
4053
|
* auto: (default) Editions are evaluated automatically and the best matching edition is returned.
|
|
@@ -5133,13 +5169,21 @@ interface paths$e {
|
|
|
5133
5169
|
get: {
|
|
5134
5170
|
parameters: {
|
|
5135
5171
|
query: {
|
|
5172
|
+
/** @description The project ID to get labels for */
|
|
5136
5173
|
projectId: string;
|
|
5174
|
+
/** @description Number of records to skip */
|
|
5137
5175
|
offset?: number | null;
|
|
5176
|
+
/** @description Maximum number of records to return */
|
|
5138
5177
|
limit?: number;
|
|
5178
|
+
/** @description Comma-separated list of label public IDs */
|
|
5139
5179
|
labelIds?: string;
|
|
5180
|
+
/** @description Public ID of the parent group label */
|
|
5140
5181
|
groupId?: string;
|
|
5182
|
+
/** @description Filter to only group labels */
|
|
5141
5183
|
isGroup?: boolean | null;
|
|
5184
|
+
/** @description Filter labels with public ID prefix */
|
|
5142
5185
|
idPrefix?: string;
|
|
5186
|
+
/** @description Filter labels with display name prefix (case insensitive) */
|
|
5143
5187
|
namePrefix?: string;
|
|
5144
5188
|
};
|
|
5145
5189
|
header?: never;
|
|
@@ -5156,7 +5200,6 @@ interface paths$e {
|
|
|
5156
5200
|
content: {
|
|
5157
5201
|
"application/json": {
|
|
5158
5202
|
labels: {
|
|
5159
|
-
/** Format: uuid */
|
|
5160
5203
|
projectId: string;
|
|
5161
5204
|
label: {
|
|
5162
5205
|
/** @description Public ID of the label (cannot be changed after creation) */
|
|
@@ -5206,7 +5249,6 @@ interface paths$e {
|
|
|
5206
5249
|
requestBody: {
|
|
5207
5250
|
content: {
|
|
5208
5251
|
"application/json": {
|
|
5209
|
-
/** Format: uuid */
|
|
5210
5252
|
projectId: string;
|
|
5211
5253
|
label: {
|
|
5212
5254
|
/** @description Public ID of the label */
|
|
@@ -5255,10 +5297,7 @@ interface paths$e {
|
|
|
5255
5297
|
requestBody: {
|
|
5256
5298
|
content: {
|
|
5257
5299
|
"application/json": {
|
|
5258
|
-
/**
|
|
5259
|
-
* Format: uuid
|
|
5260
|
-
* @description The project ID
|
|
5261
|
-
*/
|
|
5300
|
+
/** @description The project ID */
|
|
5262
5301
|
projectId: string;
|
|
5263
5302
|
/** @description Public ID of the label to delete */
|
|
5264
5303
|
labelId: string;
|
|
@@ -6377,7 +6416,7 @@ interface paths$c {
|
|
|
6377
6416
|
/** @description Matches compositions based on whether they are a pattern composition or a regular composition.
|
|
6378
6417
|
* If true, only pattern compositions will be returned.
|
|
6379
6418
|
* If false, only regular compositions will be returned.
|
|
6380
|
-
* If omitted, both pattern and regular compositions will be returned.
|
|
6419
|
+
* If omitted or 'any', both pattern and regular compositions will be returned.
|
|
6381
6420
|
* This is a list query parameter and cannot be used with any primary query parameters
|
|
6382
6421
|
* */
|
|
6383
6422
|
pattern?: components$d["parameters"]["pattern"];
|
|
@@ -6509,10 +6548,21 @@ interface paths$c {
|
|
|
6509
6548
|
* */
|
|
6510
6549
|
releaseId?: components$d["parameters"]["releaseId"];
|
|
6511
6550
|
/** @description Search on textual fields of a composition.
|
|
6512
|
-
*
|
|
6551
|
+
* Matches against fully rendered content including resolved pattern content.
|
|
6552
|
+
* Use this for "where does this content appear" queries.
|
|
6553
|
+
* Note: For long text fields, the tail of the text is not guaranteed to be searchable.
|
|
6513
6554
|
* Example: ?search=hello
|
|
6514
6555
|
* */
|
|
6515
6556
|
search?: components$d["parameters"]["search"];
|
|
6557
|
+
/**
|
|
6558
|
+
* @deprecated
|
|
6559
|
+
* @description BETA: Semantic search using vector similarity to find content by meaning.
|
|
6560
|
+
* Matches against source content only - pattern base content matches the pattern itself, not consumers.
|
|
6561
|
+
* Use this for "where is this content defined" queries.
|
|
6562
|
+
* Requires AI credits.
|
|
6563
|
+
*
|
|
6564
|
+
*/
|
|
6565
|
+
searchSemantic?: components$d["parameters"]["searchSemantic"];
|
|
6516
6566
|
/** @description Controls the edition resolution behavior.
|
|
6517
6567
|
*
|
|
6518
6568
|
* auto: (default) Editions are evaluated automatically and the best matching edition is returned.
|
|
@@ -7467,10 +7517,10 @@ interface components$d {
|
|
|
7467
7517
|
/** @description Matches compositions based on whether they are a pattern composition or a regular composition.
|
|
7468
7518
|
* If true, only pattern compositions will be returned.
|
|
7469
7519
|
* If false, only regular compositions will be returned.
|
|
7470
|
-
* If omitted, both pattern and regular compositions will be returned.
|
|
7520
|
+
* If omitted or 'any', both pattern and regular compositions will be returned.
|
|
7471
7521
|
* This is a list query parameter and cannot be used with any primary query parameters
|
|
7472
7522
|
* */
|
|
7473
|
-
pattern: boolean;
|
|
7523
|
+
pattern: boolean | "any";
|
|
7474
7524
|
/** @description This specifies which type of patterns to return. This query parameter has no effect when `pattern` is false.
|
|
7475
7525
|
* * `all` - Returns all pattern instances
|
|
7476
7526
|
* * `component` - Returns only component patterns
|
|
@@ -7557,10 +7607,21 @@ interface components$d {
|
|
|
7557
7607
|
* */
|
|
7558
7608
|
releaseId: string;
|
|
7559
7609
|
/** @description Search on textual fields of a composition.
|
|
7560
|
-
*
|
|
7610
|
+
* Matches against fully rendered content including resolved pattern content.
|
|
7611
|
+
* Use this for "where does this content appear" queries.
|
|
7612
|
+
* Note: For long text fields, the tail of the text is not guaranteed to be searchable.
|
|
7561
7613
|
* Example: ?search=hello
|
|
7562
7614
|
* */
|
|
7563
7615
|
search: string;
|
|
7616
|
+
/**
|
|
7617
|
+
* @deprecated
|
|
7618
|
+
* @description BETA: Semantic search using vector similarity to find content by meaning.
|
|
7619
|
+
* Matches against source content only - pattern base content matches the pattern itself, not consumers.
|
|
7620
|
+
* Use this for "where is this content defined" queries.
|
|
7621
|
+
* Requires AI credits.
|
|
7622
|
+
*
|
|
7623
|
+
*/
|
|
7624
|
+
searchSemantic: string;
|
|
7564
7625
|
/** @description Controls the edition resolution behavior.
|
|
7565
7626
|
*
|
|
7566
7627
|
* auto: (default) Editions are evaluated automatically and the best matching edition is returned.
|
|
@@ -7594,11 +7655,8 @@ interface paths$b {
|
|
|
7594
7655
|
query: {
|
|
7595
7656
|
/** @description Specify the composition ID to get history for */
|
|
7596
7657
|
compositionId: string;
|
|
7597
|
-
/**
|
|
7598
|
-
*
|
|
7599
|
-
* @description The edition ID. When set, gets history for a child edition of the compositionId.
|
|
7600
|
-
*
|
|
7601
|
-
*/
|
|
7658
|
+
/** @description The edition ID. When set, gets history for a child edition of the compositionId.
|
|
7659
|
+
* */
|
|
7602
7660
|
editionId?: string;
|
|
7603
7661
|
/** @description The project the composition(s) are on */
|
|
7604
7662
|
projectId: string;
|
|
@@ -8770,10 +8828,10 @@ interface components$b {
|
|
|
8770
8828
|
/** @description Matches compositions based on whether they are a pattern composition or a regular composition.
|
|
8771
8829
|
* If true, only pattern compositions will be returned.
|
|
8772
8830
|
* If false, only regular compositions will be returned.
|
|
8773
|
-
* If omitted, both pattern and regular compositions will be returned.
|
|
8831
|
+
* If omitted or 'any', both pattern and regular compositions will be returned.
|
|
8774
8832
|
* This is a list query parameter and cannot be used with any primary query parameters
|
|
8775
8833
|
* */
|
|
8776
|
-
pattern: boolean;
|
|
8834
|
+
pattern: boolean | "any";
|
|
8777
8835
|
/** @description The project the composition(s) belong to */
|
|
8778
8836
|
projectId: string;
|
|
8779
8837
|
/** @description Specify a project map ID to fetch by path or node ID from.
|
|
@@ -8868,7 +8926,9 @@ interface components$b {
|
|
|
8868
8926
|
* */
|
|
8869
8927
|
releaseId: string;
|
|
8870
8928
|
/** @description Search on textual fields of an entry.
|
|
8871
|
-
*
|
|
8929
|
+
* Matches against fully rendered content including resolved pattern content.
|
|
8930
|
+
* Use this for "where does this content appear" queries.
|
|
8931
|
+
* Note: For long text fields, the tail of the text is not guaranteed to be searchable.
|
|
8872
8932
|
* Example: ?search=hello
|
|
8873
8933
|
* */
|
|
8874
8934
|
search: string;
|
|
@@ -10042,7 +10102,7 @@ type CanvasDefinitions = {
|
|
|
10042
10102
|
webhooks?: Array<WebhookDefinition>;
|
|
10043
10103
|
};
|
|
10044
10104
|
/** Defines shared parameters for requests getting a single composition */
|
|
10045
|
-
type CompositionGetOneSharedParameters = Pick<CompositionGetParameters, 'state' | 'skipEnhance' | 'skipPatternResolution' | 'withComponentIDs' | 'withUIStatus' | 'withWorkflowDefinition' | 'withProjectMapNodes' | 'withTotalCount' | 'skipOverridesResolution' | 'withContentSourceMap' | 'versionId' | 'locale' | 'releaseId' | 'editions' | 'withPatternType'>;
|
|
10105
|
+
type CompositionGetOneSharedParameters = Pick<CompositionGetParameters, 'state' | 'skipEnhance' | 'skipPatternResolution' | 'withComponentIDs' | 'withUIStatus' | 'withWorkflowDefinition' | 'withProjectMapNodes' | 'withTotalCount' | 'skipOverridesResolution' | 'withContentSourceMap' | 'versionId' | 'locale' | 'releaseId' | 'editions' | 'pattern' | 'withPatternType'>;
|
|
10046
10106
|
type CompositionGetBy<RequiredParameters extends keyof CompositionGetParameters> = CompositionGetOneSharedParameters & Required<Pick<CompositionGetParameters, RequiredParameters>>;
|
|
10047
10107
|
type SpecificProjectMap = {
|
|
10048
10108
|
projectMapId?: string;
|
|
@@ -10401,6 +10461,7 @@ interface paths$9 {
|
|
|
10401
10461
|
get: {
|
|
10402
10462
|
parameters: {
|
|
10403
10463
|
query: {
|
|
10464
|
+
/** @description The team ID */
|
|
10404
10465
|
teamId: string;
|
|
10405
10466
|
};
|
|
10406
10467
|
header?: never;
|
|
@@ -10419,17 +10480,24 @@ interface paths$9 {
|
|
|
10419
10480
|
/** @description A map of property types to a map of hook names to integration details */
|
|
10420
10481
|
propertyEditors: {
|
|
10421
10482
|
[key: string]: {
|
|
10422
|
-
|
|
10483
|
+
createAIEdit?: {
|
|
10423
10484
|
/** @description Internal unique identifier for the editor */
|
|
10424
10485
|
id: string;
|
|
10425
10486
|
/** @description The integration type */
|
|
10426
10487
|
integrationType: string;
|
|
10427
10488
|
/** @description Whether this is a public integration */
|
|
10428
10489
|
isPublic: boolean;
|
|
10429
|
-
/**
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10490
|
+
/** @description The team ID for public integrations. Omitted for private integrations. */
|
|
10491
|
+
teamId?: string;
|
|
10492
|
+
};
|
|
10493
|
+
afterAIEdit?: {
|
|
10494
|
+
/** @description Internal unique identifier for the editor */
|
|
10495
|
+
id: string;
|
|
10496
|
+
/** @description The integration type */
|
|
10497
|
+
integrationType: string;
|
|
10498
|
+
/** @description Whether this is a public integration */
|
|
10499
|
+
isPublic: boolean;
|
|
10500
|
+
/** @description The team ID for public integrations. Omitted for private integrations. */
|
|
10433
10501
|
teamId?: string;
|
|
10434
10502
|
};
|
|
10435
10503
|
};
|
|
@@ -10462,10 +10530,7 @@ interface paths$9 {
|
|
|
10462
10530
|
requestBody: {
|
|
10463
10531
|
content: {
|
|
10464
10532
|
"application/json": {
|
|
10465
|
-
/**
|
|
10466
|
-
* Format: uuid
|
|
10467
|
-
* @description The team ID
|
|
10468
|
-
*/
|
|
10533
|
+
/** @description The team ID */
|
|
10469
10534
|
teamId: string;
|
|
10470
10535
|
/** @description The property type to attach the editor to */
|
|
10471
10536
|
propertyType: string;
|
|
@@ -10522,10 +10587,7 @@ interface paths$9 {
|
|
|
10522
10587
|
requestBody: {
|
|
10523
10588
|
content: {
|
|
10524
10589
|
"application/json": {
|
|
10525
|
-
/**
|
|
10526
|
-
* Format: uuid
|
|
10527
|
-
* @description The team ID
|
|
10528
|
-
*/
|
|
10590
|
+
/** @description The team ID */
|
|
10529
10591
|
teamId: string;
|
|
10530
10592
|
/** @description The property type to remove the editor from */
|
|
10531
10593
|
propertyType: string;
|
|
@@ -10797,7 +10859,6 @@ interface paths$8 {
|
|
|
10797
10859
|
content: {
|
|
10798
10860
|
"application/json": {
|
|
10799
10861
|
previewUrls: {
|
|
10800
|
-
/** Format: uuid */
|
|
10801
10862
|
id: string;
|
|
10802
10863
|
name: string;
|
|
10803
10864
|
url: string;
|
|
@@ -10832,9 +10893,7 @@ interface paths$8 {
|
|
|
10832
10893
|
requestBody: {
|
|
10833
10894
|
content: {
|
|
10834
10895
|
"application/json": {
|
|
10835
|
-
/** Format: uuid */
|
|
10836
10896
|
id?: string;
|
|
10837
|
-
/** Format: uuid */
|
|
10838
10897
|
projectId: string;
|
|
10839
10898
|
name: string;
|
|
10840
10899
|
url: string;
|
|
@@ -10851,7 +10910,6 @@ interface paths$8 {
|
|
|
10851
10910
|
};
|
|
10852
10911
|
content: {
|
|
10853
10912
|
"application/json": {
|
|
10854
|
-
/** Format: uuid */
|
|
10855
10913
|
id: string;
|
|
10856
10914
|
};
|
|
10857
10915
|
};
|
|
@@ -10863,7 +10921,6 @@ interface paths$8 {
|
|
|
10863
10921
|
};
|
|
10864
10922
|
content: {
|
|
10865
10923
|
"application/json": {
|
|
10866
|
-
/** Format: uuid */
|
|
10867
10924
|
id: string;
|
|
10868
10925
|
};
|
|
10869
10926
|
};
|
|
@@ -10894,9 +10951,7 @@ interface paths$8 {
|
|
|
10894
10951
|
requestBody: {
|
|
10895
10952
|
content: {
|
|
10896
10953
|
"application/json": {
|
|
10897
|
-
/** Format: uuid */
|
|
10898
10954
|
id: string;
|
|
10899
|
-
/** Format: uuid */
|
|
10900
10955
|
projectId: string;
|
|
10901
10956
|
};
|
|
10902
10957
|
};
|
|
@@ -10909,7 +10964,6 @@ interface paths$8 {
|
|
|
10909
10964
|
};
|
|
10910
10965
|
content: {
|
|
10911
10966
|
"application/json": {
|
|
10912
|
-
/** Format: uuid */
|
|
10913
10967
|
id: string;
|
|
10914
10968
|
};
|
|
10915
10969
|
};
|
|
@@ -10998,10 +11052,7 @@ interface paths$7 {
|
|
|
10998
11052
|
path?: never;
|
|
10999
11053
|
cookie?: never;
|
|
11000
11054
|
};
|
|
11001
|
-
/**
|
|
11002
|
-
* @deprecated
|
|
11003
|
-
* @description Gets all preview viewports
|
|
11004
|
-
*/
|
|
11055
|
+
/** @description Gets all preview viewports */
|
|
11005
11056
|
get: {
|
|
11006
11057
|
parameters: {
|
|
11007
11058
|
query: {
|
|
@@ -11022,7 +11073,6 @@ interface paths$7 {
|
|
|
11022
11073
|
content: {
|
|
11023
11074
|
"application/json": {
|
|
11024
11075
|
previewViewports: {
|
|
11025
|
-
/** Format: uuid */
|
|
11026
11076
|
id: string;
|
|
11027
11077
|
name: string;
|
|
11028
11078
|
icon: string;
|
|
@@ -11046,10 +11096,7 @@ interface paths$7 {
|
|
|
11046
11096
|
500: components$7["responses"]["InternalServerError"];
|
|
11047
11097
|
};
|
|
11048
11098
|
};
|
|
11049
|
-
/**
|
|
11050
|
-
* @deprecated
|
|
11051
|
-
* @description Upserts a preview viewport
|
|
11052
|
-
*/
|
|
11099
|
+
/** @description Upserts a preview viewport */
|
|
11053
11100
|
put: {
|
|
11054
11101
|
parameters: {
|
|
11055
11102
|
query?: never;
|
|
@@ -11060,9 +11107,7 @@ interface paths$7 {
|
|
|
11060
11107
|
requestBody: {
|
|
11061
11108
|
content: {
|
|
11062
11109
|
"application/json": {
|
|
11063
|
-
/** Format: uuid */
|
|
11064
11110
|
id?: string;
|
|
11065
|
-
/** Format: uuid */
|
|
11066
11111
|
projectId: string;
|
|
11067
11112
|
name: string;
|
|
11068
11113
|
icon: string;
|
|
@@ -11079,7 +11124,6 @@ interface paths$7 {
|
|
|
11079
11124
|
};
|
|
11080
11125
|
content: {
|
|
11081
11126
|
"application/json": {
|
|
11082
|
-
/** Format: uuid */
|
|
11083
11127
|
id: string;
|
|
11084
11128
|
};
|
|
11085
11129
|
};
|
|
@@ -11091,7 +11135,6 @@ interface paths$7 {
|
|
|
11091
11135
|
};
|
|
11092
11136
|
content: {
|
|
11093
11137
|
"application/json": {
|
|
11094
|
-
/** Format: uuid */
|
|
11095
11138
|
id: string;
|
|
11096
11139
|
};
|
|
11097
11140
|
};
|
|
@@ -11111,10 +11154,7 @@ interface paths$7 {
|
|
|
11111
11154
|
};
|
|
11112
11155
|
};
|
|
11113
11156
|
post?: never;
|
|
11114
|
-
/**
|
|
11115
|
-
* @deprecated
|
|
11116
|
-
* @description Deletes a preview viewport
|
|
11117
|
-
*/
|
|
11157
|
+
/** @description Deletes a preview viewport */
|
|
11118
11158
|
delete: {
|
|
11119
11159
|
parameters: {
|
|
11120
11160
|
query?: never;
|
|
@@ -11125,9 +11165,7 @@ interface paths$7 {
|
|
|
11125
11165
|
requestBody: {
|
|
11126
11166
|
content: {
|
|
11127
11167
|
"application/json": {
|
|
11128
|
-
/** Format: uuid */
|
|
11129
11168
|
id: string;
|
|
11130
|
-
/** Format: uuid */
|
|
11131
11169
|
projectId: string;
|
|
11132
11170
|
};
|
|
11133
11171
|
};
|
|
@@ -11140,7 +11178,6 @@ interface paths$7 {
|
|
|
11140
11178
|
};
|
|
11141
11179
|
content: {
|
|
11142
11180
|
"application/json": {
|
|
11143
|
-
/** Format: uuid */
|
|
11144
11181
|
id: string;
|
|
11145
11182
|
};
|
|
11146
11183
|
};
|
|
@@ -11931,7 +11968,6 @@ interface paths$3 {
|
|
|
11931
11968
|
path?: never;
|
|
11932
11969
|
cookie?: never;
|
|
11933
11970
|
};
|
|
11934
|
-
/** @deprecated */
|
|
11935
11971
|
get: {
|
|
11936
11972
|
parameters: {
|
|
11937
11973
|
query: {
|
|
@@ -11972,7 +12008,6 @@ interface paths$3 {
|
|
|
11972
12008
|
500: components$3["responses"]["InternalServerError"];
|
|
11973
12009
|
};
|
|
11974
12010
|
};
|
|
11975
|
-
/** @deprecated */
|
|
11976
12011
|
put: {
|
|
11977
12012
|
parameters: {
|
|
11978
12013
|
query?: never;
|
|
@@ -12005,7 +12040,6 @@ interface paths$3 {
|
|
|
12005
12040
|
};
|
|
12006
12041
|
};
|
|
12007
12042
|
post?: never;
|
|
12008
|
-
/** @deprecated */
|
|
12009
12043
|
delete: {
|
|
12010
12044
|
parameters: {
|
|
12011
12045
|
query?: never;
|
|
@@ -12574,6 +12608,11 @@ type WalkNodeTreeOptions<TContext> = {
|
|
|
12574
12608
|
* When false/unspecified, invalid block values will be ignored and traversal continues through valid data.
|
|
12575
12609
|
*/
|
|
12576
12610
|
throwForInvalidBlockValues?: boolean;
|
|
12611
|
+
/**
|
|
12612
|
+
* Traversal order: 'dfs' (depth-first, default) or 'bfs' (breadth-first).
|
|
12613
|
+
* DFS visits children before siblings; BFS visits siblings before children.
|
|
12614
|
+
*/
|
|
12615
|
+
order?: 'dfs' | 'bfs';
|
|
12577
12616
|
};
|
|
12578
12617
|
/** Walks a composition's content tree, visiting each component in a slot or block parameter/field depth-first, in order. */
|
|
12579
12618
|
declare function walkNodeTree<TContext = unknown>(node: ComponentInstance | EntryData | Array<NodeLocationReference>, visitor: (info: TreeNodeInfoTypes<TContext>) => void, options?: WalkNodeTreeOptions<TContext>): void;
|
|
@@ -13550,7 +13589,9 @@ interface paths$1 {
|
|
|
13550
13589
|
get: {
|
|
13551
13590
|
parameters: {
|
|
13552
13591
|
query?: {
|
|
13592
|
+
/** @description If provided, only return the specified team and its projects. If omitted, return all accessible teams. */
|
|
13553
13593
|
teamId?: string;
|
|
13594
|
+
/** @description Sort order for projects within each team. Defaults to name_ASC. */
|
|
13554
13595
|
orderBy?: "name_ASC" | "name_DESC" | "createdAt_ASC" | "createdAt_DESC";
|
|
13555
13596
|
};
|
|
13556
13597
|
header?: never;
|
|
@@ -13567,17 +13608,14 @@ interface paths$1 {
|
|
|
13567
13608
|
content: {
|
|
13568
13609
|
"application/json": {
|
|
13569
13610
|
teams: {
|
|
13570
|
-
/** Format: uuid */
|
|
13571
13611
|
id: string;
|
|
13572
13612
|
name: string;
|
|
13573
13613
|
isPaid: boolean;
|
|
13574
13614
|
/** @description The caller's role in this team (e.g. "Admin" or "User") */
|
|
13575
13615
|
teamRole: string;
|
|
13576
13616
|
projects: {
|
|
13577
|
-
/** Format: uuid */
|
|
13578
13617
|
id: string;
|
|
13579
13618
|
name: string;
|
|
13580
|
-
/** Format: uuid */
|
|
13581
13619
|
projectTypeId: string;
|
|
13582
13620
|
previewUrl: string;
|
|
13583
13621
|
createdAt: string;
|
|
@@ -13745,9 +13783,13 @@ interface paths {
|
|
|
13745
13783
|
query: {
|
|
13746
13784
|
projectId: string;
|
|
13747
13785
|
type: "component" | "contentType" | "blockType" | "asset" | "componentPattern" | "entryPattern" | "compositionPattern" | "entry" | "dataType" | "dataSource" | "test";
|
|
13786
|
+
/** @description Entity IDs */
|
|
13748
13787
|
ids: string[];
|
|
13788
|
+
/** @description Whether to include a list of related instances in the response. Only supported when a single entity ID is provided */
|
|
13749
13789
|
withInstances?: boolean | null;
|
|
13790
|
+
/** @description Use this to paginate over the instances when "whenInstances" is true */
|
|
13750
13791
|
limit?: number;
|
|
13792
|
+
/** @description Use this to paginate over the instances when "whenInstances" is true */
|
|
13751
13793
|
offset?: number | null;
|
|
13752
13794
|
};
|
|
13753
13795
|
header?: never;
|
|
@@ -13770,14 +13812,12 @@ interface paths {
|
|
|
13770
13812
|
publishedOnly: boolean;
|
|
13771
13813
|
icon?: string;
|
|
13772
13814
|
instance: {
|
|
13773
|
-
/** Format: uuid */
|
|
13774
13815
|
_id: string;
|
|
13775
13816
|
_name: string;
|
|
13776
13817
|
_pattern?: string;
|
|
13777
13818
|
};
|
|
13778
13819
|
/** @description When set, this is a child edition of the instance in _id */
|
|
13779
13820
|
edition?: {
|
|
13780
|
-
/** Format: uuid */
|
|
13781
13821
|
id: string;
|
|
13782
13822
|
name: string;
|
|
13783
13823
|
};
|
|
@@ -13789,7 +13829,6 @@ interface paths {
|
|
|
13789
13829
|
name: string;
|
|
13790
13830
|
};
|
|
13791
13831
|
release?: {
|
|
13792
|
-
/** Format: uuid */
|
|
13793
13832
|
id: string;
|
|
13794
13833
|
name: string;
|
|
13795
13834
|
};
|
|
@@ -14201,7 +14240,7 @@ declare function hasReferencedVariables(value: string | undefined): number;
|
|
|
14201
14240
|
*/
|
|
14202
14241
|
declare function parseVariableExpression(serialized: string, onToken?: (token: string, type: 'text' | 'variable') => void | false): number;
|
|
14203
14242
|
|
|
14204
|
-
declare const version = "20.
|
|
14243
|
+
declare const version = "20.63.0";
|
|
14205
14244
|
|
|
14206
14245
|
/** API client to enable managing workflow definitions */
|
|
14207
14246
|
declare class WorkflowClient extends ApiClient {
|