@uniformdev/assets 20.48.1-alpha.27 → 20.48.1-alpha.33.sha-eb3f272086
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 +773 -457
- package/dist/index.d.ts +773 -457
- package/dist/index.esm.js +76 -14
- package/dist/index.js +78 -17
- package/dist/index.mjs +76 -14
- package/package.json +9 -5
package/dist/index.d.mts
CHANGED
|
@@ -3,268 +3,269 @@ import { XOR } from 'ts-xor';
|
|
|
3
3
|
|
|
4
4
|
interface components$1 {
|
|
5
5
|
schemas: {
|
|
6
|
-
/**
|
|
6
|
+
/** Public ID (used in code). Do not change after creation */
|
|
7
7
|
PublicIdProperty: string;
|
|
8
|
-
/**
|
|
8
|
+
/** The definition of a component parameter */
|
|
9
9
|
ComponentDefinitionParameter: {
|
|
10
10
|
id: components$1["schemas"]["PublicIdProperty"];
|
|
11
|
-
/**
|
|
11
|
+
/** Friendly name of the parameter */
|
|
12
12
|
name: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Appears next to the parameter in the Composition editor */
|
|
14
14
|
helpText?: string;
|
|
15
|
-
/**
|
|
15
|
+
/** Context provided to AI when generating content for this parameter. May also be shown to humans. */
|
|
16
16
|
guidance?: string;
|
|
17
|
-
/**
|
|
17
|
+
/** Type name of the parameter (provided by a Uniform integration) */
|
|
18
18
|
type: string;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* If true, this property can have locale-specific values. If false or not defined,
|
|
20
21
|
* this property will have a single value that is shared for all locales
|
|
21
|
-
|
|
22
|
+
*/
|
|
22
23
|
localizable?: boolean;
|
|
23
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* When `localizable` is true, this property controls the default localizability of the property.
|
|
24
26
|
* true - when the property has no existing value, it will be in 'single value' mode and not store locale specific values
|
|
25
27
|
* false/undefined - when the property has no existing value, it will store separate values for each enabled locale
|
|
26
28
|
*
|
|
27
29
|
* If `localized` is false, this has no effect.
|
|
28
|
-
|
|
30
|
+
*/
|
|
29
31
|
notLocalizedByDefault?: boolean;
|
|
30
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Enables creating additional conditional values for the parameter based on criteria such as dynamic inputs.
|
|
31
34
|
* When combined with a localized value, each locale has independent conditional values.
|
|
32
35
|
*
|
|
33
36
|
* When not defined, conditional values are not allowed.
|
|
34
|
-
|
|
37
|
+
*/
|
|
35
38
|
allowConditionalValues?: boolean;
|
|
36
|
-
/**
|
|
39
|
+
/** The configuration object for the type (type-specific) */
|
|
37
40
|
typeConfig?: unknown;
|
|
38
41
|
};
|
|
39
|
-
/**
|
|
42
|
+
/** The definition of a named component slot that can contain other components */
|
|
40
43
|
ComponentDefinitionSlot: {
|
|
41
44
|
id: components$1["schemas"]["PublicIdProperty"];
|
|
42
|
-
/**
|
|
45
|
+
/** Friendly name of the slot */
|
|
43
46
|
name: string;
|
|
44
|
-
/**
|
|
47
|
+
/** A list of component definition public IDs that are allowed in this named slot */
|
|
45
48
|
allowedComponents: string[];
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
50
|
+
* Whether this slot inherits its allowed components from the parent slot it lives in. If true, `allowedComponents` is irrelevant.
|
|
48
51
|
* If `allowAllComponents` is true, this value is ignored
|
|
49
|
-
*
|
|
50
|
-
* @default false
|
|
52
|
+
* @defaultValue false
|
|
51
53
|
*/
|
|
52
54
|
inheritAllowedComponents: boolean;
|
|
53
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* When false or not defined, only components in `allowedComponents` may be added to this slot - and if `allowedComponents` is empty, nothing can be added.
|
|
54
57
|
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including `inheritAllowedComponents`
|
|
55
|
-
|
|
58
|
+
*/
|
|
56
59
|
allowAllComponents?: boolean;
|
|
57
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* When not defined, or false: all patterns for components listed in `allowedComponents` are automatically allowed in the slot.
|
|
58
62
|
* When true: patterns for components listed in `allowedComponents` are not allowed in the slot unless explicitly added to `allowedComponents` as `$p:<patternid>`
|
|
59
|
-
|
|
63
|
+
*/
|
|
60
64
|
patternsInAllowedComponents?: boolean;
|
|
61
|
-
/**
|
|
65
|
+
/** Minimum valid number of components in this slot */
|
|
62
66
|
minComponents?: number;
|
|
63
|
-
/**
|
|
67
|
+
/** Maximum valid number of components in this slot */
|
|
64
68
|
maxComponents?: number;
|
|
65
69
|
};
|
|
66
|
-
/**
|
|
70
|
+
/** The definition of a composition's slug settings */
|
|
67
71
|
ComponentDefinitionSlugSettings: {
|
|
68
72
|
/**
|
|
69
|
-
*
|
|
73
|
+
* Whether the slug is required
|
|
70
74
|
* no: slug is optional
|
|
71
75
|
* yes: slug is required
|
|
72
76
|
* disabled: slug is disabled and will not be shown in the editor
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
* @enum {string}
|
|
77
|
+
* @defaultValue no
|
|
78
|
+
|
|
76
79
|
*/
|
|
77
80
|
required?: "no" | "yes" | "disabled";
|
|
78
81
|
/**
|
|
79
|
-
*
|
|
82
|
+
* Slug uniqueness configuration.
|
|
80
83
|
* no = no unique constraint
|
|
81
84
|
* local = must be unique within this component type
|
|
82
85
|
* global = must be unique across all component types
|
|
83
|
-
|
|
84
|
-
* @enum {string}
|
|
86
|
+
|
|
85
87
|
*/
|
|
86
88
|
unique?: "no" | "local" | "global";
|
|
87
|
-
/**
|
|
89
|
+
/** Regular expression slugs must match */
|
|
88
90
|
regularExpression?: string;
|
|
89
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Custom error message when regular expression validation fails.
|
|
90
93
|
* Has no effect if `regularExpression` is not set
|
|
91
|
-
|
|
94
|
+
*/
|
|
92
95
|
regularExpressionMessage?: string;
|
|
93
96
|
};
|
|
94
|
-
/**
|
|
97
|
+
/** The definition of a component variant */
|
|
95
98
|
ComponentDefinitionVariant: {
|
|
96
99
|
id: components$1["schemas"]["PublicIdProperty"];
|
|
97
|
-
/**
|
|
100
|
+
/** Friendly name of the variant */
|
|
98
101
|
name: string;
|
|
99
102
|
};
|
|
100
|
-
/**
|
|
103
|
+
/** Permission set for a component definition */
|
|
101
104
|
ComponentDefinitionPermission: {
|
|
102
105
|
roleId: components$1["schemas"]["PublicIdProperty"];
|
|
103
106
|
/**
|
|
104
|
-
*
|
|
107
|
+
* Permission type for this permission ComponentDefinition:
|
|
105
108
|
* read | write | create | delete
|
|
106
|
-
|
|
107
|
-
* @enum {string}
|
|
109
|
+
|
|
108
110
|
*/
|
|
109
111
|
permission: "read" | "write" | "create" | "delete";
|
|
110
|
-
/**
|
|
112
|
+
/** State of the component that this permission applies to */
|
|
111
113
|
state: number;
|
|
112
114
|
};
|
|
113
|
-
/**
|
|
115
|
+
/** Defines a component type that can live on a Composition */
|
|
114
116
|
ComponentDefinition: {
|
|
115
117
|
id: components$1["schemas"]["PublicIdProperty"];
|
|
116
|
-
/**
|
|
118
|
+
/** Friendly name of the component definition */
|
|
117
119
|
name: string;
|
|
118
120
|
/**
|
|
119
|
-
*
|
|
120
|
-
* @
|
|
121
|
+
* Icon name for the component definition (e.g. 'screen')
|
|
122
|
+
* @defaultValue screen
|
|
121
123
|
*/
|
|
122
124
|
icon?: string;
|
|
123
125
|
/**
|
|
124
|
-
*
|
|
126
|
+
* The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
|
125
127
|
* The parameter type must support being used as a title parameter for this to work
|
|
126
|
-
*
|
|
127
|
-
* @default null
|
|
128
|
+
* @defaultValue null
|
|
128
129
|
*/
|
|
129
130
|
titleParameter?: string | null;
|
|
130
131
|
/**
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* @default null
|
|
132
|
+
* The public ID of the parameter whose value should be used as a thumbnail for compositions of this component in the UI
|
|
133
|
+
* @defaultValue null
|
|
134
134
|
*/
|
|
135
135
|
thumbnailParameter?: string | null;
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
138
|
-
* @
|
|
137
|
+
* Whether this component type can be the root of a composition. If false, this component is only used within slots on other components
|
|
138
|
+
* @defaultValue false
|
|
139
139
|
*/
|
|
140
140
|
canBeComposition?: boolean;
|
|
141
|
-
/**
|
|
141
|
+
/** The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries */
|
|
142
142
|
parameters?: components$1["schemas"]["ComponentDefinitionParameter"][];
|
|
143
143
|
/**
|
|
144
144
|
* Format: uuid
|
|
145
|
-
*
|
|
146
|
-
* @
|
|
145
|
+
* Reference to the category this component definition belongs to
|
|
146
|
+
* @defaultValue null
|
|
147
147
|
*/
|
|
148
148
|
categoryId?: string | null;
|
|
149
|
-
/**
|
|
149
|
+
/** Description of the component definition */
|
|
150
150
|
description?: string;
|
|
151
|
-
/**
|
|
151
|
+
/** Preview image URL for the component definition (shown in the UI) */
|
|
152
152
|
previewImageUrl?: string;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
155
|
-
* @
|
|
154
|
+
* if this component uses team permissions or custom permissions
|
|
155
|
+
* @defaultValue true
|
|
156
156
|
*/
|
|
157
157
|
useTeamPermissions?: boolean;
|
|
158
|
-
/**
|
|
158
|
+
/** Custom role permissions for this component definition */
|
|
159
159
|
permissions?: components$1["schemas"]["ComponentDefinitionPermission"][];
|
|
160
|
-
/**
|
|
160
|
+
/** The named slots for this component; placement areas where arrays of other components can be added */
|
|
161
161
|
slots?: components$1["schemas"]["ComponentDefinitionSlot"][];
|
|
162
162
|
slugSettings?: components$1["schemas"]["ComponentDefinitionSlugSettings"];
|
|
163
|
-
/**
|
|
163
|
+
/** Default component instance value */
|
|
164
164
|
defaults?: components$1["schemas"]["ComponentInstance"] | null;
|
|
165
|
-
/**
|
|
165
|
+
/** Named variants for this component; enables the creation of visual variants that use the same parameter data */
|
|
166
166
|
variants?: components$1["schemas"]["ComponentDefinitionVariant"][];
|
|
167
|
-
/**
|
|
167
|
+
/** Created date string for this definition (ignored for writes) */
|
|
168
168
|
created?: string;
|
|
169
|
-
/**
|
|
169
|
+
/** Last modified date string for this definition (ignored for writes) */
|
|
170
170
|
updated?: string;
|
|
171
171
|
/**
|
|
172
172
|
* Format: uuid
|
|
173
|
-
*
|
|
173
|
+
* ID of the workflow that instances of this component definition will use by default. When not set, no workflow is attached
|
|
174
174
|
*/
|
|
175
175
|
workflowId?: string;
|
|
176
176
|
};
|
|
177
|
-
/**
|
|
177
|
+
/** Defines a content type */
|
|
178
178
|
ContentType: {
|
|
179
179
|
id: components$1["schemas"]["PublicIdProperty"];
|
|
180
|
-
/**
|
|
180
|
+
/** Friendly name of the content type */
|
|
181
181
|
name: string;
|
|
182
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* The public ID of the field whose value should be used to create a display name for entries of this content type in the UI.
|
|
183
184
|
* The field type must support being used as an entry name for this to work
|
|
184
|
-
|
|
185
|
+
*/
|
|
185
186
|
entryName?: string | null;
|
|
186
187
|
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* @default null
|
|
188
|
+
* The public ID of the field whose value should be used as a thumbnail for entries of this content type in the UI
|
|
189
|
+
* @defaultValue null
|
|
190
190
|
*/
|
|
191
191
|
thumbnailField?: string | null;
|
|
192
|
-
/**
|
|
192
|
+
/** The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
|
|
193
193
|
fields?: components$1["schemas"]["ComponentDefinitionParameter"][];
|
|
194
|
-
/**
|
|
194
|
+
/** Description of the content type */
|
|
195
195
|
description?: string;
|
|
196
196
|
/**
|
|
197
|
-
*
|
|
198
|
-
* @
|
|
197
|
+
* Icon name for the content type (e.g. 'screen')
|
|
198
|
+
* @defaultValue file-document
|
|
199
199
|
*/
|
|
200
200
|
icon?: string;
|
|
201
|
-
/**
|
|
201
|
+
/** Created date string for this content type (ignored for writes) */
|
|
202
202
|
created?: string;
|
|
203
|
-
/**
|
|
203
|
+
/** Last modified date string for this content type (ignored for writes) */
|
|
204
204
|
updated?: string;
|
|
205
205
|
slugSettings?: components$1["schemas"]["ComponentDefinitionSlugSettings"];
|
|
206
206
|
/**
|
|
207
|
-
*
|
|
208
|
-
* @
|
|
209
|
-
|
|
207
|
+
* The definition type of this content type (block or content type)
|
|
208
|
+
* @defaultValue contentType
|
|
209
|
+
|
|
210
210
|
*/
|
|
211
211
|
type?: "contentType" | "block";
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
214
|
-
* @
|
|
213
|
+
* if this content type uses team permissions or custom permissions
|
|
214
|
+
* @defaultValue true
|
|
215
215
|
*/
|
|
216
216
|
useTeamPermissions?: boolean;
|
|
217
|
-
/**
|
|
217
|
+
/** Custom role permissions for this content type */
|
|
218
218
|
permissions?: components$1["schemas"]["ComponentDefinitionPermission"][];
|
|
219
219
|
/**
|
|
220
220
|
* Format: uuid
|
|
221
|
-
*
|
|
221
|
+
* ID of the workflow that instances of this content type will use by default. When not set, no workflow is attached
|
|
222
222
|
*/
|
|
223
223
|
workflowId?: string;
|
|
224
|
-
/**
|
|
224
|
+
/** Configurations for previewing an entry on a consuming pattern or composition. */
|
|
225
225
|
previewConfigurations?: components$1["schemas"]["ContentTypePreviewConfiguration"][];
|
|
226
226
|
};
|
|
227
|
-
/**
|
|
227
|
+
/** Defines a configuration for previewing an entry on a consuming pattern or composition. */
|
|
228
228
|
ContentTypePreviewConfiguration: {
|
|
229
229
|
/**
|
|
230
|
-
*
|
|
231
|
-
|
|
230
|
+
* The type of preview configuration
|
|
231
|
+
|
|
232
232
|
*/
|
|
233
233
|
type: "pattern" | "project-map";
|
|
234
|
-
/**
|
|
234
|
+
/** Display label for the preview configuration */
|
|
235
235
|
label: string;
|
|
236
236
|
/**
|
|
237
237
|
* Format: uuid
|
|
238
|
-
*
|
|
238
|
+
* Target preview entity ID (project map node ID or pattern ID)
|
|
239
239
|
*/
|
|
240
240
|
id: string;
|
|
241
|
-
/**
|
|
241
|
+
/** Optional mapping of dynamic input names to their values */
|
|
242
242
|
dynamicInputs?: {
|
|
243
243
|
[key: string]: string;
|
|
244
244
|
};
|
|
245
245
|
};
|
|
246
|
-
/**
|
|
246
|
+
/** Defines an editable parameter on a component */
|
|
247
247
|
ComponentParameter: {
|
|
248
|
-
/**
|
|
248
|
+
/** The value of the parameter. Any JSON-serializable value is acceptable */
|
|
249
249
|
value?: unknown;
|
|
250
|
-
/**
|
|
250
|
+
/** The type of the parameter. Determines how it is displayed when editing and tells the consumer how to process it */
|
|
251
251
|
type: string;
|
|
252
252
|
/** @deprecated */
|
|
253
253
|
connectedData?: components$1["schemas"]["DataElementConnectionDefinition"];
|
|
254
|
-
/**
|
|
254
|
+
/**
|
|
255
|
+
* Locale-specific values for this parameter. Keys are locale codes, and values are the `value` in that locale.
|
|
255
256
|
* Note that locales must be registered on the entry/composition `_locales` before being used
|
|
256
|
-
|
|
257
|
+
*/
|
|
257
258
|
locales?: {
|
|
258
259
|
[key: string]: unknown;
|
|
259
260
|
};
|
|
260
261
|
conditions?: components$1["schemas"]["ComponentParameterConditions"];
|
|
261
|
-
/**
|
|
262
|
-
* */
|
|
262
|
+
/** Locale-specific conditional values for this parameter. Keys are locale codes, and values are the `conditions` for that locale. */
|
|
263
263
|
localesConditions?: {
|
|
264
264
|
[key: string]: components$1["schemas"]["ComponentParameterConditions"];
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
|
-
/**
|
|
267
|
+
/**
|
|
268
|
+
* Array of alternate values which are based on conditions.
|
|
268
269
|
*
|
|
269
270
|
* When requested with an explicit locale parameter, or via the route API:
|
|
270
271
|
* * Conditions are evaluated sequentially and the first match is used. If a match is found, the conditions are eliminated.
|
|
@@ -272,61 +273,62 @@ interface components$1 {
|
|
|
272
273
|
* * If a condition cannot be evaluated yet (i.e. a client-side criteria), it is left alone.
|
|
273
274
|
*
|
|
274
275
|
* When no locale is passed to a non-route API, conditions are not processed and all conditions are returned.
|
|
275
|
-
|
|
276
|
+
*/
|
|
276
277
|
ComponentParameterConditions: components$1["schemas"]["ComponentParameterConditionalValue"][];
|
|
277
|
-
/**
|
|
278
|
-
* */
|
|
278
|
+
/** Defines a conditional value for a component parameter */
|
|
279
279
|
ComponentParameterConditionalValue: {
|
|
280
280
|
when: components$1["schemas"]["VisibilityCriteriaGroup"];
|
|
281
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* The value of the parameter. Any JSON-serializable value is acceptable.
|
|
282
283
|
* A value of `null` will cause the parameter value to be removed, if it matches.
|
|
283
|
-
|
|
284
|
+
*/
|
|
284
285
|
value: unknown;
|
|
285
|
-
/**
|
|
286
|
+
/**
|
|
287
|
+
* Unique sequence identifier of the conditional value within the component parameter.
|
|
286
288
|
* This value must be unique within the conditional values array, and it should not change after a condition is created.
|
|
287
|
-
|
|
289
|
+
*/
|
|
288
290
|
id: number;
|
|
289
291
|
};
|
|
290
292
|
/**
|
|
291
293
|
* @deprecated
|
|
292
|
-
*
|
|
294
|
+
* beta functionality subject to change
|
|
293
295
|
*/
|
|
294
296
|
VisibilityCriteriaGroup: {
|
|
295
297
|
/**
|
|
296
|
-
*
|
|
297
|
-
|
|
298
|
+
* The boolean operator to join the clauses with. Defaults to & if not specified.
|
|
299
|
+
|
|
298
300
|
*/
|
|
299
301
|
op?: "&" | "|";
|
|
300
302
|
clauses: (components$1["schemas"]["VisibilityCriteria"] | components$1["schemas"]["VisibilityCriteriaGroup"])[];
|
|
301
303
|
};
|
|
302
304
|
/**
|
|
303
305
|
* @deprecated
|
|
304
|
-
*
|
|
306
|
+
* beta functionality subject to change
|
|
305
307
|
*/
|
|
306
308
|
VisibilityCriteria: {
|
|
307
|
-
/**
|
|
309
|
+
/** The rule type to execute */
|
|
308
310
|
rule: string;
|
|
309
|
-
/**
|
|
311
|
+
/**
|
|
312
|
+
* The source value of the rule.
|
|
310
313
|
* For rules which have multiple classes of match, for example a dynamic input matches on a named DI, the rule is dynamic input and the DI name is the source.
|
|
311
|
-
|
|
314
|
+
*/
|
|
312
315
|
source?: string;
|
|
313
|
-
/**
|
|
316
|
+
/** The rule-definition-specific operator to test against */
|
|
314
317
|
op: string;
|
|
315
|
-
/**
|
|
318
|
+
/** The value, or if an array several potential values, to test against. In most rules, multiple values are OR'd together ('any of') but this is not a hard requirement. */
|
|
316
319
|
value: string | string[];
|
|
317
320
|
};
|
|
318
|
-
/**
|
|
319
|
-
* */
|
|
321
|
+
/** Defines a connection to a dynamic token on a data resource */
|
|
320
322
|
DataElementConnectionDefinition: {
|
|
321
|
-
/**
|
|
323
|
+
/** A JSON Pointer expression that defines the data resource dynamic token value */
|
|
322
324
|
pointer: string;
|
|
323
325
|
/**
|
|
324
|
-
*
|
|
325
|
-
|
|
326
|
+
* The syntax used to select the dynamic token to bind to
|
|
327
|
+
|
|
326
328
|
*/
|
|
327
329
|
syntax: "jptr";
|
|
328
330
|
/**
|
|
329
|
-
*
|
|
331
|
+
* The action to take if the dynamic token cannot be resolved
|
|
330
332
|
* - t: TOKEN: Removes the failed dynamic token value, leaving the rest of the property value, if any, intact [default]
|
|
331
333
|
* NOTE: If the _only_ value in the property is a dynamic token, the property value is removed (as with 'p' below)
|
|
332
334
|
* NOTE: If the _failureDefault_ property is also set, that default value will be used instead of removing the token.
|
|
@@ -336,55 +338,62 @@ interface components$1 {
|
|
|
336
338
|
* NOTE: If a 'component' failure occurs on the root component of a composition, or an entry,
|
|
337
339
|
* it is treated as an 'a' failure because removing the root means we must remove all
|
|
338
340
|
* - a: ALL: Fails the whole entry or composition. This will result in the item returning a 404 from APIs, and being removed from API list responses
|
|
339
|
-
|
|
340
|
-
* @enum {string}
|
|
341
|
+
|
|
341
342
|
*/
|
|
342
343
|
failureAction?: "t" | "p" | "c" | "a";
|
|
343
344
|
/**
|
|
344
|
-
*
|
|
345
|
+
* How to report when the dynamic token cannot be resolved
|
|
345
346
|
* - e: ERROR: Report an error message (this will prevent publishing)
|
|
346
347
|
* - w: WARNING: Report a warning message [default]
|
|
347
348
|
* - i: INFO: Log an informative message (failure is expected/normal, i.e. optional data)
|
|
348
|
-
|
|
349
|
-
* @enum {string}
|
|
349
|
+
|
|
350
350
|
*/
|
|
351
351
|
failureLogLevel?: "e" | "w" | "i";
|
|
352
|
-
/**
|
|
352
|
+
/**
|
|
353
|
+
* The default value to use if the dynamic token cannot be resolved.
|
|
353
354
|
* This is only used if the failureAction is the default (undefined, or explicitly token)
|
|
354
|
-
|
|
355
|
+
*/
|
|
355
356
|
failureDefault?: string;
|
|
356
357
|
};
|
|
357
|
-
/**
|
|
358
|
+
/** Defines the shape of a component instance served by the composition API */
|
|
358
359
|
ComponentInstance: {
|
|
359
|
-
/**
|
|
360
|
+
/** Type of the component instance (public_id of its definition) */
|
|
360
361
|
type: string;
|
|
361
|
-
/**
|
|
362
|
+
/** Component parameter values for the component instance */
|
|
362
363
|
parameters?: {
|
|
363
364
|
[key: string]: components$1["schemas"]["ComponentParameter"];
|
|
364
365
|
};
|
|
365
|
-
/**
|
|
366
|
+
/** Public ID of alternate visual appearance for this component, if any selected */
|
|
366
367
|
variant?: string;
|
|
367
|
-
/**
|
|
368
|
+
/** Slots containing any child components */
|
|
368
369
|
slots?: {
|
|
369
370
|
[key: string]: components$1["schemas"]["ComponentInstance"][];
|
|
370
371
|
};
|
|
371
|
-
/**
|
|
372
|
+
/**
|
|
373
|
+
* Unique identifier of the component within the composition.
|
|
372
374
|
* No assumptions should be made about the format of this value other than "it will be unique."
|
|
373
375
|
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
|
374
376
|
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you
|
|
375
|
-
|
|
377
|
+
*/
|
|
376
378
|
_id?: string;
|
|
377
|
-
/**
|
|
379
|
+
/** Indicates this component instance should be sourced from a pattern library pattern */
|
|
378
380
|
_pattern?: string;
|
|
379
381
|
_dataResources?: components$1["schemas"]["DataResourceDefinitions"];
|
|
380
|
-
/**
|
|
382
|
+
/**
|
|
383
|
+
* Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
|
381
384
|
* Means nothing for PUTs; it will be ignored
|
|
382
|
-
|
|
385
|
+
*/
|
|
383
386
|
_patternDataResources?: {
|
|
384
387
|
[key: string]: components$1["schemas"]["DataResourceDefinition"];
|
|
385
388
|
};
|
|
389
|
+
/**
|
|
390
|
+
* Query-string opt-ins coming from a pattern resolved for this component.
|
|
391
|
+
* Means nothing for PUTs; it will be ignored
|
|
392
|
+
*/
|
|
393
|
+
_patternOptedInQueryStrings?: string[];
|
|
386
394
|
_patternError?: components$1["schemas"]["PatternError"];
|
|
387
|
-
/**
|
|
395
|
+
/**
|
|
396
|
+
* Defines patch overrides to component IDs that live in the composition.
|
|
388
397
|
* This can be used to override parameters that are defined on patterns,
|
|
389
398
|
* including nested patterns, with values that are specific to this composition.
|
|
390
399
|
* The keys in this object are component IDs.
|
|
@@ -394,67 +403,76 @@ interface components$1 {
|
|
|
394
403
|
*
|
|
395
404
|
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
396
405
|
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
397
|
-
|
|
406
|
+
*/
|
|
398
407
|
_overrides?: {
|
|
399
408
|
[key: string]: components$1["schemas"]["ComponentOverride"];
|
|
400
409
|
};
|
|
401
|
-
/**
|
|
410
|
+
/**
|
|
411
|
+
* Overrides coming from a pattern resolved for this component. Merged with _overrides during resolution.
|
|
402
412
|
* Means nothing for PUTs; it will be ignored
|
|
403
|
-
|
|
413
|
+
*/
|
|
404
414
|
_patternOverrides?: {
|
|
405
415
|
[key: string]: components$1["schemas"]["ComponentOverride"];
|
|
406
416
|
};
|
|
407
|
-
/**
|
|
417
|
+
/**
|
|
418
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
|
408
419
|
* by consumers of the pattern.
|
|
409
420
|
*
|
|
410
421
|
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
411
422
|
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
412
|
-
|
|
423
|
+
*/
|
|
413
424
|
_overridability?: components$1["schemas"]["ComponentOverridability"];
|
|
414
|
-
/**
|
|
425
|
+
/** Array of locales that have data defined. Only set for pattern references or composition defaults */
|
|
415
426
|
_locales?: string[];
|
|
416
427
|
};
|
|
417
|
-
/**
|
|
428
|
+
/** Defines the shape of the root component in a composition */
|
|
418
429
|
RootComponentInstance: {
|
|
419
|
-
/**
|
|
430
|
+
/** Type of the component instance (public_id of its definition) */
|
|
420
431
|
type: string;
|
|
421
|
-
/**
|
|
432
|
+
/** Component parameter values for the component instance */
|
|
422
433
|
parameters?: {
|
|
423
434
|
[key: string]: components$1["schemas"]["ComponentParameter"];
|
|
424
435
|
};
|
|
425
|
-
/**
|
|
436
|
+
/** Public ID of alternate visual appearance for this component, if any selected */
|
|
426
437
|
variant?: string;
|
|
427
|
-
/**
|
|
438
|
+
/** Project map nodes associated with this component. Must pass withProjectMapNodes parameter to be populated */
|
|
428
439
|
projectMapNodes?: components$1["schemas"]["CompositionProjectMapNodeInfo"][];
|
|
429
|
-
/**
|
|
440
|
+
/** Slots containing any child components */
|
|
430
441
|
slots?: {
|
|
431
442
|
[key: string]: components$1["schemas"]["ComponentInstance"][];
|
|
432
443
|
};
|
|
433
|
-
/**
|
|
444
|
+
/** The ID of the composition */
|
|
434
445
|
_id: string;
|
|
435
|
-
/**
|
|
446
|
+
/** Slug pattern of this component */
|
|
436
447
|
_slug?: string | null;
|
|
437
|
-
/**
|
|
448
|
+
/** Friendly name of this component */
|
|
438
449
|
_name: string;
|
|
439
|
-
/**
|
|
450
|
+
/** Name of the author of the most recent change */
|
|
440
451
|
_author?: string;
|
|
441
|
-
/**
|
|
452
|
+
/** Identity subject of the author of the most recent change */
|
|
442
453
|
_authorSubject?: string;
|
|
443
|
-
/**
|
|
454
|
+
/** Name of the original creator */
|
|
444
455
|
_creator?: string;
|
|
445
|
-
/**
|
|
456
|
+
/** Identity subject of the original creator */
|
|
446
457
|
_creatorSubject?: string;
|
|
447
|
-
/**
|
|
458
|
+
/** Indicates this component instance should be sourced from a pattern library pattern */
|
|
448
459
|
_pattern?: string;
|
|
449
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
|
450
462
|
* Means nothing for PUTs; it will be ignored
|
|
451
|
-
|
|
463
|
+
*/
|
|
452
464
|
_patternDataResources?: {
|
|
453
465
|
[key: string]: components$1["schemas"]["DataResourceDefinition"];
|
|
454
466
|
};
|
|
467
|
+
/**
|
|
468
|
+
* Query-string opt-ins coming from a pattern resolved for this component.
|
|
469
|
+
* Means nothing for PUTs; it will be ignored
|
|
470
|
+
*/
|
|
471
|
+
_patternOptedInQueryStrings?: string[];
|
|
455
472
|
_dataResources?: components$1["schemas"]["DataResourceDefinitions"];
|
|
456
473
|
_patternError?: components$1["schemas"]["PatternError"];
|
|
457
|
-
/**
|
|
474
|
+
/**
|
|
475
|
+
* Defines patch overrides to component IDs that live in the composition.
|
|
458
476
|
* This can be used to override parameters that are defined on patterns,
|
|
459
477
|
* including nested patterns, with values that are specific to this composition.
|
|
460
478
|
* The keys in this object are component IDs.
|
|
@@ -464,31 +482,40 @@ interface components$1 {
|
|
|
464
482
|
*
|
|
465
483
|
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
466
484
|
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
467
|
-
|
|
485
|
+
*/
|
|
468
486
|
_overrides?: {
|
|
469
487
|
[key: string]: components$1["schemas"]["ComponentOverride"];
|
|
470
488
|
};
|
|
471
|
-
/**
|
|
489
|
+
/**
|
|
490
|
+
* Overrides coming from a pattern resolved for this component. Merged with _overrides during resolution.
|
|
472
491
|
* Means nothing for PUTs; it will be ignored
|
|
473
|
-
|
|
492
|
+
*/
|
|
474
493
|
_patternOverrides?: {
|
|
475
494
|
[key: string]: components$1["schemas"]["ComponentOverride"];
|
|
476
495
|
};
|
|
477
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
|
478
498
|
* by consumers of the pattern.
|
|
479
499
|
*
|
|
480
500
|
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
481
501
|
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
482
|
-
|
|
502
|
+
*/
|
|
483
503
|
_overridability?: components$1["schemas"]["ComponentOverridability"];
|
|
484
|
-
/**
|
|
504
|
+
/** Array of locales which have data defined on the composition. If empty, the current default locale implicitly has data */
|
|
485
505
|
_locales?: string[];
|
|
506
|
+
/**
|
|
507
|
+
* Names of opt-in global query strings surfaced in the Canvas editor for this composition or pattern.
|
|
508
|
+
* Opt-ins coming from a resolved pattern move to _patternOptedInQueryStrings, so this always
|
|
509
|
+
* holds only what was authored here. Omitted whenever overrides are resolved.
|
|
510
|
+
*/
|
|
511
|
+
_optedInQueryStrings?: string[];
|
|
486
512
|
};
|
|
487
|
-
/**
|
|
513
|
+
/**
|
|
514
|
+
* Defines how to override a specific component.
|
|
488
515
|
*
|
|
489
516
|
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
490
517
|
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
491
|
-
|
|
518
|
+
*/
|
|
492
519
|
ComponentOverride: {
|
|
493
520
|
parameters?: {
|
|
494
521
|
[key: string]: components$1["schemas"]["ComponentParameter"];
|
|
@@ -497,444 +524,489 @@ interface components$1 {
|
|
|
497
524
|
[key: string]: components$1["schemas"]["ComponentInstance"][];
|
|
498
525
|
};
|
|
499
526
|
variant?: string;
|
|
500
|
-
/**
|
|
527
|
+
/**
|
|
528
|
+
* Overrides data resource definitions for a pattern component.
|
|
501
529
|
* Object keys defined under this property override the corresponding keys in the pattern's data resources.
|
|
502
530
|
* Overrides defined here replace values in either _dataResources or _patternDataResources on the target component.
|
|
503
|
-
|
|
531
|
+
*/
|
|
504
532
|
dataResources?: {
|
|
505
533
|
[key: string]: components$1["schemas"]["DataResourceDefinition"];
|
|
506
534
|
};
|
|
507
535
|
};
|
|
508
|
-
/**
|
|
536
|
+
/**
|
|
537
|
+
* Defines how a component on a pattern may have its values overridden.
|
|
509
538
|
* NOTE: Data resources' overridability is defined in the data resource definition, not here.
|
|
510
539
|
*
|
|
511
540
|
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
512
541
|
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
513
|
-
|
|
542
|
+
*/
|
|
514
543
|
ComponentOverridability: {
|
|
515
|
-
/**
|
|
544
|
+
/** Defines component parameter value overrides. Keys are the parameter public ID */
|
|
516
545
|
parameters?: {
|
|
517
546
|
[key: string]: components$1["schemas"]["OverrideOptions"];
|
|
518
547
|
};
|
|
519
|
-
/**
|
|
548
|
+
/** Allows overriding a display variant is allowed if it is defined on the component the pattern is derived from. Default = false */
|
|
520
549
|
variants?: boolean;
|
|
521
|
-
/**
|
|
550
|
+
/**
|
|
551
|
+
* If true, parameters that are not overridable will be hidden by default on pattern instances' editors.
|
|
522
552
|
* If false, all parameters will be shown on pattern instances' editors, but locked parameters will be read-only.
|
|
523
553
|
* If not set, the default is false
|
|
524
|
-
|
|
554
|
+
*/
|
|
525
555
|
hideLockedParameters?: boolean;
|
|
526
556
|
};
|
|
527
557
|
/**
|
|
528
|
-
*
|
|
558
|
+
* Whether a parameter is overridable
|
|
529
559
|
*
|
|
530
560
|
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
531
561
|
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
532
|
-
|
|
533
|
-
* @enum {string}
|
|
562
|
+
|
|
534
563
|
*/
|
|
535
564
|
OverrideOptions: "yes" | "no";
|
|
536
|
-
/**
|
|
537
|
-
* */
|
|
565
|
+
/** Additional set of headers, parameters, variables, etc to be used for data resolving in the context like e.g. Unpublished Data. */
|
|
538
566
|
AlternativeDataSourceData: {
|
|
539
|
-
/**
|
|
567
|
+
/** Base resource URL of the data source. No trailing slash */
|
|
540
568
|
baseUrl: string;
|
|
541
|
-
/**
|
|
569
|
+
/** HTTP headers to pass with requests to the data source */
|
|
542
570
|
headers?: {
|
|
543
571
|
key: string;
|
|
544
572
|
value: string;
|
|
545
573
|
omitIfEmpty?: boolean;
|
|
546
574
|
}[];
|
|
547
|
-
/**
|
|
575
|
+
/** Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys */
|
|
548
576
|
parameters?: {
|
|
549
577
|
key: string;
|
|
550
578
|
value: string;
|
|
551
579
|
omitIfEmpty?: boolean;
|
|
552
580
|
}[];
|
|
553
|
-
/**
|
|
581
|
+
/** Variables needed to make calls to the data source */
|
|
554
582
|
variables?: {
|
|
555
583
|
[key: string]: components$1["schemas"]["DataVariableDefinition"];
|
|
556
584
|
};
|
|
557
585
|
};
|
|
558
|
-
/**
|
|
586
|
+
/**
|
|
587
|
+
* An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
|
559
588
|
* These are created in the UI and shared across a whole project.
|
|
560
589
|
* NOTE: If you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
|
561
590
|
* for all header, parameter, and variable values to obscure the actual encrypted secret value
|
|
562
|
-
|
|
591
|
+
*/
|
|
563
592
|
DataSource: {
|
|
564
|
-
/**
|
|
593
|
+
/** Public ID of the data source */
|
|
565
594
|
id: string;
|
|
566
|
-
/**
|
|
595
|
+
/** Display name of the data source */
|
|
567
596
|
displayName: string;
|
|
568
|
-
/**
|
|
597
|
+
/** The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
|
569
598
|
connectorType: string;
|
|
570
|
-
/**
|
|
599
|
+
/** Base resource URL of the data source. No trailing slash */
|
|
571
600
|
baseUrl: string;
|
|
572
|
-
/**
|
|
601
|
+
/** HTTP headers to pass with requests to the data source */
|
|
573
602
|
headers?: {
|
|
574
603
|
key: string;
|
|
575
604
|
value: string;
|
|
576
605
|
}[];
|
|
577
|
-
/**
|
|
606
|
+
/** Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys */
|
|
578
607
|
parameters?: {
|
|
579
608
|
key: string;
|
|
580
609
|
value: string;
|
|
581
610
|
}[];
|
|
582
|
-
/**
|
|
611
|
+
/** Variables needed to make calls to the data source */
|
|
583
612
|
variables?: {
|
|
584
613
|
[key: string]: components$1["schemas"]["DataVariableDefinition"];
|
|
585
614
|
};
|
|
586
|
-
/**
|
|
615
|
+
/**
|
|
616
|
+
* Mapping of locale codes to data source locale codes. Keys are Uniform locale codes, values are data source locale codes.
|
|
587
617
|
* If a locale is not mapped, it will be passed through to the data source as-is
|
|
588
|
-
|
|
618
|
+
*/
|
|
589
619
|
localeMapping?: {
|
|
590
620
|
[key: string]: string;
|
|
591
621
|
};
|
|
592
|
-
/**
|
|
622
|
+
/**
|
|
623
|
+
* If true, data source will require additional credentials to access unpublished data.
|
|
593
624
|
* If false, no additional data source credentials are required and data resources of this data source won't be able to access unpublished data.
|
|
594
|
-
|
|
625
|
+
*/
|
|
595
626
|
enableUnpublishedMode?: boolean;
|
|
596
|
-
/**
|
|
627
|
+
/** Custom configuration accessible to all data connector UIs (data source, data type, and data resource editors) and custom edgehancers. This data should not contain secrets */
|
|
597
628
|
customPublic?: {
|
|
598
629
|
[key: string]: unknown;
|
|
599
630
|
};
|
|
600
|
-
/**
|
|
631
|
+
/** Custom configuration accessible to the data source editor UI and custom edgehancer that may contain secrets. This cannot be read by the data type or data resource editors */
|
|
601
632
|
custom?: {
|
|
602
633
|
[key: string]: unknown;
|
|
603
634
|
};
|
|
604
|
-
/**
|
|
635
|
+
/** Different connector detail variants to use in the different contexts like e.g. Unpublished Data */
|
|
605
636
|
variants?: {
|
|
606
637
|
unpublished?: components$1["schemas"]["AlternativeDataSourceData"];
|
|
607
638
|
};
|
|
639
|
+
/** Created date of the data source in ISO 8601 format (ignored for writes) */
|
|
640
|
+
created?: string;
|
|
641
|
+
/** Last modified date of the data source in ISO 8601 format (ignored for writes) */
|
|
642
|
+
modified?: string;
|
|
643
|
+
/** User or API key ID that created the data source (ignored for writes) */
|
|
644
|
+
createdBy?: string;
|
|
645
|
+
/** User or API key ID that last modified the data source (ignored for writes) */
|
|
646
|
+
modifiedBy?: string;
|
|
608
647
|
};
|
|
609
|
-
/**
|
|
648
|
+
/** A specific type of data that a Data Source can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project */
|
|
610
649
|
DataType: {
|
|
611
|
-
/**
|
|
650
|
+
/** Public ID of the data type */
|
|
612
651
|
id: string;
|
|
613
|
-
/**
|
|
652
|
+
/** Display name of the data type */
|
|
614
653
|
displayName: string;
|
|
615
|
-
/**
|
|
654
|
+
/** Public ID of the associated data source */
|
|
616
655
|
dataSourceId: string;
|
|
617
|
-
/**
|
|
656
|
+
/**
|
|
657
|
+
* A connector-specific archetype for this data type; used to select UI as well as perform any
|
|
618
658
|
* necessary post-processing on the response. e.g. 'cms-entry', 'cms-query'. Can be undefined if
|
|
619
659
|
* no special UI or processing is required
|
|
620
|
-
|
|
660
|
+
*/
|
|
621
661
|
archetype?: string;
|
|
622
662
|
allowedOnComponents?: string[];
|
|
623
|
-
/**
|
|
663
|
+
/** Resource path, appended to the data source's baseUrl (e.g. baseUrl = https://base.url, path = /v1/endpoint -> final URL https://base.url/v1/endpoint). Must have a leading slash */
|
|
624
664
|
path: string;
|
|
625
|
-
/**
|
|
665
|
+
/** Time-to-live (in seconds) for the resource data cache */
|
|
626
666
|
ttl?: number;
|
|
627
|
-
/**
|
|
667
|
+
/** A key for the resource data cache purging */
|
|
628
668
|
purgeKey?: string;
|
|
629
|
-
/**
|
|
669
|
+
/** URL to a custom badge icon for the Uniform dashboard for this data type. If not set falls back to the data connector or integration icons */
|
|
630
670
|
badgeIconUrl?: string;
|
|
631
|
-
/**
|
|
671
|
+
/** HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys */
|
|
632
672
|
headers?: {
|
|
633
673
|
key: string;
|
|
634
674
|
value: string;
|
|
635
675
|
omitIfEmpty?: boolean;
|
|
636
676
|
}[];
|
|
637
|
-
/**
|
|
677
|
+
/** Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys */
|
|
638
678
|
parameters?: {
|
|
639
679
|
key: string;
|
|
640
680
|
value: string;
|
|
641
681
|
omitIfEmpty?: boolean;
|
|
642
682
|
}[];
|
|
643
|
-
/**
|
|
683
|
+
/** Body to pass with requests to the data type (ignored unless the method is POST) */
|
|
644
684
|
body?: string;
|
|
645
685
|
/**
|
|
646
|
-
*
|
|
647
|
-
* @
|
|
648
|
-
|
|
686
|
+
* HTTP method to use with requests to the data type
|
|
687
|
+
* @defaultValue GET
|
|
688
|
+
|
|
649
689
|
*/
|
|
650
690
|
method: "GET" | "POST" | "HEAD";
|
|
651
|
-
/**
|
|
691
|
+
/** Variables needed to make calls to the data type. Merged with variables from the data source, overriding identical keys */
|
|
652
692
|
variables?: {
|
|
653
693
|
[key: string]: components$1["schemas"]["DataVariableDefinition"];
|
|
654
694
|
};
|
|
655
|
-
/**
|
|
695
|
+
/** Custom configuration specific to the data source being defined */
|
|
656
696
|
custom?: {
|
|
657
697
|
[key: string]: unknown;
|
|
658
698
|
};
|
|
699
|
+
/** Created date of the data type in ISO 8601 format (ignored for writes) */
|
|
700
|
+
created?: string;
|
|
701
|
+
/** Last modified date of the data type in ISO 8601 format (ignored for writes) */
|
|
702
|
+
modified?: string;
|
|
703
|
+
/** User or API key ID that created the data type (ignored for writes) */
|
|
704
|
+
createdBy?: string;
|
|
705
|
+
/** User or API key ID that last modified the data type (ignored for writes) */
|
|
706
|
+
modifiedBy?: string;
|
|
659
707
|
};
|
|
660
|
-
/**
|
|
708
|
+
/** Defines the shape of a data variable on a Data Source or Data Type */
|
|
661
709
|
DataVariableDefinition: {
|
|
662
|
-
/**
|
|
710
|
+
/** Display name of the data variable */
|
|
663
711
|
displayName?: string;
|
|
664
|
-
/**
|
|
712
|
+
/** Explanatory text that is provided to the data resource editor to explain what this variable does */
|
|
665
713
|
helpText?: string;
|
|
666
714
|
/**
|
|
667
|
-
*
|
|
668
|
-
* @
|
|
715
|
+
* Type of the data variable. Optionally used as a point of reference for custom integrations to decide how to render an editor for a variable
|
|
716
|
+
* @defaultValue text
|
|
669
717
|
*/
|
|
670
718
|
type?: string;
|
|
671
|
-
/**
|
|
719
|
+
/** Default value of the data variable */
|
|
672
720
|
default: string;
|
|
673
|
-
/**
|
|
721
|
+
/** Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list */
|
|
674
722
|
order?: number;
|
|
675
|
-
/**
|
|
723
|
+
/**
|
|
724
|
+
* An optional arbitrary human readable source identifier to describe where this variable is from.
|
|
676
725
|
* Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'
|
|
677
|
-
|
|
726
|
+
*/
|
|
678
727
|
source?: string;
|
|
679
728
|
};
|
|
680
|
-
/**
|
|
729
|
+
/**
|
|
730
|
+
* Data definitions attached to this component. The property name is the key of the data in the data document.
|
|
681
731
|
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key)
|
|
682
|
-
|
|
732
|
+
*/
|
|
683
733
|
DataResourceDefinitions: {
|
|
684
734
|
[key: string]: components$1["schemas"]["DataResourceDefinition"];
|
|
685
735
|
};
|
|
686
|
-
/**
|
|
736
|
+
/** Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters */
|
|
687
737
|
DataResourceDefinition: {
|
|
688
|
-
/**
|
|
738
|
+
/** Public ID of the data type that provides this data */
|
|
689
739
|
type: string;
|
|
690
|
-
/**
|
|
740
|
+
/** Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false */
|
|
691
741
|
isPatternParameter?: boolean;
|
|
692
|
-
/**
|
|
742
|
+
/**
|
|
743
|
+
* When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
|
693
744
|
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
|
694
745
|
* If isPatternParameter is false or undefined, this has no meaning
|
|
695
|
-
|
|
746
|
+
*/
|
|
696
747
|
ignorePatternParameterDefault?: boolean;
|
|
697
|
-
/**
|
|
748
|
+
/**
|
|
749
|
+
* When true, the data resource does not create an error forcing the choosing of override value when there is no default.
|
|
698
750
|
* If isPatternParameter is false or undefined, or if ignorePatternParameterDefault is false, this has no meaning
|
|
699
|
-
|
|
751
|
+
*/
|
|
700
752
|
optionalPatternParameter?: boolean;
|
|
701
753
|
variables?: components$1["schemas"]["DataResourceVariables"];
|
|
702
754
|
};
|
|
703
|
-
/**
|
|
755
|
+
/** Variable values for a data resource */
|
|
704
756
|
DataResourceVariables: {
|
|
705
757
|
[key: string]: string;
|
|
706
758
|
};
|
|
707
759
|
/**
|
|
708
|
-
*
|
|
760
|
+
* Describes why the pattern could not be resolved, if a pattern could not be resolved. For PUTs, this is allowed but ignored.
|
|
709
761
|
* CYCLIC: A cyclic pattern graph was detected, which could not be resolved because it would cause an infinite loop.
|
|
710
762
|
* NOTFOUND: The pattern ID referenced could not be found. It may have been deleted, en published yet.
|
|
711
763
|
* Means nothing for PUTs; it will be ignored
|
|
712
|
-
|
|
713
|
-
* @enum {string}
|
|
764
|
+
|
|
714
765
|
*/
|
|
715
766
|
PatternError: "NOTFOUND" | "CYCLIC";
|
|
716
767
|
HistoryApiResponse: {
|
|
717
|
-
/**
|
|
768
|
+
/**
|
|
769
|
+
* If there are more results, this will be populated with a token to pass in the next request to get the next page of results.
|
|
718
770
|
* If this is undefined then no more results are available
|
|
719
|
-
|
|
771
|
+
*/
|
|
720
772
|
cursor?: string;
|
|
721
|
-
/**
|
|
773
|
+
/** If more history is available than your plan allows, and additional entries are available by upgrading, this will be true */
|
|
722
774
|
truncated?: boolean;
|
|
723
|
-
/**
|
|
775
|
+
/** Version history entries */
|
|
724
776
|
results?: components$1["schemas"]["HistoryEntry"][];
|
|
725
777
|
};
|
|
726
778
|
HistoryEntry: {
|
|
727
|
-
/**
|
|
779
|
+
/** The version ID of the entity. This can be used to fetch the version's data via the entity API */
|
|
728
780
|
versionId: string;
|
|
729
|
-
/**
|
|
781
|
+
/** The timestamp when the version was created in epoch milliseconds */
|
|
730
782
|
timestamp: number;
|
|
731
|
-
/**
|
|
783
|
+
/** The name (full name) of the user who created the version, or "Unknown user" if the author can no longer be resolved */
|
|
732
784
|
authorName: string;
|
|
733
785
|
authorIsApiKey: boolean;
|
|
734
|
-
/**
|
|
786
|
+
/** The identity who created the version; absent on old history entries. */
|
|
787
|
+
authorSubject?: string;
|
|
788
|
+
/** The state of the entity when the history entry was made */
|
|
735
789
|
state: number;
|
|
736
790
|
};
|
|
737
|
-
/**
|
|
791
|
+
/** Category for tagging canvas entities */
|
|
738
792
|
Category: {
|
|
739
793
|
/**
|
|
740
794
|
* Format: uuid
|
|
741
|
-
*
|
|
795
|
+
* Unique identifier for the category
|
|
742
796
|
*/
|
|
743
797
|
id: string;
|
|
744
|
-
/**
|
|
798
|
+
/** Display name of the category */
|
|
745
799
|
name: string;
|
|
746
800
|
/**
|
|
747
|
-
*
|
|
748
|
-
* @
|
|
801
|
+
* Sets the order of the category when displayed in a list with other categories. If not set, the order defaults to alphabetical with any explicitly set orders first in the list
|
|
802
|
+
* @defaultValue 0
|
|
749
803
|
*/
|
|
750
804
|
order?: number;
|
|
751
805
|
};
|
|
752
|
-
/**
|
|
806
|
+
/** Project map node information related to a component */
|
|
753
807
|
CompositionProjectMapNodeInfo: {
|
|
754
808
|
/**
|
|
755
809
|
* Format: uuid
|
|
756
|
-
*
|
|
810
|
+
* Unique identifier for the project map node
|
|
757
811
|
*/
|
|
758
812
|
id: string;
|
|
759
|
-
/**
|
|
813
|
+
/**
|
|
814
|
+
* Fallback path of the project map node.
|
|
760
815
|
* Note that the node may have matched via a locale-specific path which is in the `locales` object
|
|
761
|
-
|
|
816
|
+
*/
|
|
762
817
|
path: string;
|
|
763
818
|
/**
|
|
764
819
|
* Format: uuid
|
|
765
|
-
*
|
|
820
|
+
* Unique identifier for the project map that this node belongs to
|
|
766
821
|
*/
|
|
767
822
|
projectMapId: string;
|
|
768
823
|
data?: components$1["schemas"]["ProjectMapNodeData"];
|
|
769
|
-
/**
|
|
824
|
+
/**
|
|
825
|
+
* Locale-specific paths of the project map node.
|
|
770
826
|
* Keys are locale codes
|
|
771
|
-
|
|
827
|
+
*/
|
|
772
828
|
locales?: {
|
|
773
829
|
[key: string]: {
|
|
774
|
-
/**
|
|
830
|
+
/** Locale-specific path of the project map node */
|
|
775
831
|
path: string;
|
|
776
|
-
/**
|
|
777
|
-
* */
|
|
832
|
+
/** Whether the path is inherited from a parent node which defined a path segment in this locale */
|
|
778
833
|
inherited: boolean;
|
|
779
834
|
};
|
|
780
835
|
};
|
|
781
836
|
};
|
|
782
|
-
/**
|
|
837
|
+
/** AI Prompt definition */
|
|
783
838
|
Prompt: {
|
|
784
839
|
/**
|
|
785
840
|
* Format: uuid
|
|
786
|
-
*
|
|
841
|
+
* Unique identifier for the prompt
|
|
787
842
|
*/
|
|
788
843
|
id: string;
|
|
789
|
-
/**
|
|
844
|
+
/** Unique identifier for the integration that this prompt belongs to */
|
|
790
845
|
integrationType: string;
|
|
791
|
-
/**
|
|
846
|
+
/** Name for the prompt */
|
|
792
847
|
name?: string | null;
|
|
793
|
-
/**
|
|
848
|
+
/** Text for the prompt */
|
|
794
849
|
text?: string | null;
|
|
795
|
-
/**
|
|
850
|
+
/** Data for the prompt */
|
|
796
851
|
data?: {
|
|
797
852
|
[key: string]: unknown;
|
|
798
853
|
} | null;
|
|
799
|
-
/**
|
|
854
|
+
/** Turn off/on prompt */
|
|
800
855
|
enabled?: boolean | null;
|
|
801
|
-
/**
|
|
856
|
+
/** Integration default prompt */
|
|
802
857
|
builtIn?: boolean | null;
|
|
803
|
-
/**
|
|
858
|
+
/** Supported parameter types */
|
|
804
859
|
parameterTypes?: string[] | null;
|
|
805
860
|
};
|
|
806
|
-
/**
|
|
861
|
+
/** Definition of a workflow that can be assigned to entities */
|
|
807
862
|
WorkflowDefinition: {
|
|
808
863
|
/**
|
|
809
864
|
* Format: uuid
|
|
810
|
-
*
|
|
865
|
+
* Unique identifier of the workflow definition
|
|
811
866
|
*/
|
|
812
867
|
id: string;
|
|
813
|
-
/**
|
|
868
|
+
/** Workflow name */
|
|
814
869
|
name: string;
|
|
815
870
|
/**
|
|
816
871
|
* Format: uuid
|
|
817
|
-
*
|
|
872
|
+
* The ID of the initial stage in the stages object.
|
|
818
873
|
*/
|
|
819
874
|
initialStage: string;
|
|
820
|
-
/**
|
|
875
|
+
/** All stages of the workflow */
|
|
821
876
|
stages: {
|
|
822
877
|
[key: string]: components$1["schemas"]["WorkflowStage"];
|
|
823
878
|
};
|
|
824
|
-
/**
|
|
879
|
+
/** Last modified ISO date string for this definition (ignored for writes) */
|
|
825
880
|
modified?: string;
|
|
826
|
-
/**
|
|
881
|
+
/** Created ISO date string for this definition (ignored for writes) */
|
|
827
882
|
created?: string;
|
|
828
|
-
/**
|
|
883
|
+
/**
|
|
884
|
+
* Name of the original creator of the workflow.
|
|
829
885
|
* If undefined, the user has been removed from the team.
|
|
830
886
|
* Ignored for writes
|
|
831
|
-
|
|
887
|
+
*/
|
|
832
888
|
createdBy?: string;
|
|
833
|
-
/**
|
|
889
|
+
/**
|
|
890
|
+
* Name of the last modifier of the workflow.
|
|
834
891
|
* If undefined, the user has been removed from the team.
|
|
835
892
|
* Ignored for writes
|
|
836
|
-
|
|
893
|
+
*/
|
|
837
894
|
modifiedBy?: string;
|
|
838
895
|
};
|
|
839
|
-
/**
|
|
896
|
+
/** Definition of a stage in a workflow */
|
|
840
897
|
WorkflowStage: {
|
|
841
|
-
/**
|
|
898
|
+
/** Name of the stage */
|
|
842
899
|
name: string;
|
|
843
|
-
/**
|
|
900
|
+
/**
|
|
901
|
+
* Defines roles which have permissions to this workflow stage
|
|
844
902
|
* NOTE: Being able to write or publish to entities in a workflow stage requires both core write or publish permissions,
|
|
845
903
|
* as well as membership in a role which grants the explicit rights to the stage. If a user is not a member of any role
|
|
846
904
|
* listed here, the stage is read-only and publishing is disabled
|
|
847
|
-
|
|
905
|
+
*/
|
|
848
906
|
permissions: {
|
|
849
907
|
[key: string]: components$1["schemas"]["WorkflowStagePermission"];
|
|
850
908
|
};
|
|
851
|
-
/**
|
|
909
|
+
/**
|
|
910
|
+
* When true, transitioning into this stage from a different stage will automatically publish the entity.
|
|
852
911
|
* If the user making the transition does not have publish permissions to the stage as well as publish permission on the entity, the action will not run.
|
|
853
912
|
* Setting this to true is equivalent to setting requireValidity to true, as publishing cannot be performed with validation errors.
|
|
854
913
|
* NOTE: This is not executed by direct API calls. Only the Uniform UI performs this action
|
|
855
|
-
|
|
914
|
+
*/
|
|
856
915
|
autoPublish?: boolean;
|
|
857
|
-
/**
|
|
916
|
+
/**
|
|
917
|
+
* When true, transitioning into this stage from a different stage will require the entity to have no validation errors.
|
|
858
918
|
* If the entity is not valid, the transition will not be allowed.
|
|
859
919
|
* NOTE: This is not executed by direct API calls. Only the Uniform UI performs this action
|
|
860
|
-
|
|
920
|
+
*/
|
|
861
921
|
requireValidity?: boolean;
|
|
862
|
-
/**
|
|
922
|
+
/**
|
|
923
|
+
* Defines transitions to other stages
|
|
863
924
|
* Every stage must define at least one transition, to avoid creating a workflow that
|
|
864
925
|
* has a stage that can never be escaped
|
|
865
|
-
|
|
926
|
+
*/
|
|
866
927
|
transitions: components$1["schemas"]["WorkflowStageTransition"][];
|
|
867
928
|
/**
|
|
868
|
-
*
|
|
869
|
-
* @
|
|
929
|
+
* Icon name for the stage (e.g. 'chevron-double-right-o')
|
|
930
|
+
* @defaultValue chevron-double-right-o
|
|
870
931
|
*/
|
|
871
932
|
icon?: string;
|
|
872
|
-
/**
|
|
933
|
+
/** Sets the order of the stage when displayed in a list with other stages. If not set, the order defaults to alphabetical with any explicitly set orders first in the list */
|
|
873
934
|
order?: number;
|
|
874
935
|
};
|
|
875
|
-
/**
|
|
936
|
+
/** Definition of a transition from one stage to another in a workflow */
|
|
876
937
|
WorkflowStageTransition: {
|
|
877
938
|
/**
|
|
878
939
|
* Format: uuid
|
|
879
|
-
*
|
|
940
|
+
* The target stage to transition to
|
|
880
941
|
*/
|
|
881
942
|
to: string;
|
|
882
|
-
/**
|
|
943
|
+
/**
|
|
944
|
+
* Name shown to the user when they execute this transition.
|
|
883
945
|
* If not provided, a default name will be assigned automatically based on the target stage
|
|
884
|
-
|
|
946
|
+
*/
|
|
885
947
|
name: string;
|
|
886
|
-
/**
|
|
948
|
+
/**
|
|
949
|
+
* Permissions for the stage transition.
|
|
887
950
|
* NOTE: Users without membership in any role listed here will be unable to execute the transition unless they are team admins
|
|
888
|
-
|
|
951
|
+
*/
|
|
889
952
|
permissions: {
|
|
890
953
|
[key: string]: components$1["schemas"]["WorkflowStageTransitionPermission"];
|
|
891
954
|
};
|
|
892
955
|
};
|
|
893
|
-
/**
|
|
956
|
+
/** Permissions for a workflow stage */
|
|
894
957
|
WorkflowStagePermission: {
|
|
895
|
-
/**
|
|
958
|
+
/** Allows writing to entities assigned to this stage. When false or unspecified the data is read-only */
|
|
896
959
|
write?: boolean;
|
|
897
|
-
/**
|
|
960
|
+
/** Allows publishing entities assigned to this stage. When false or unspecified publishing is disabled */
|
|
898
961
|
publish?: boolean;
|
|
899
962
|
};
|
|
900
|
-
/**
|
|
963
|
+
/** Permissions for a workflow stage transition */
|
|
901
964
|
WorkflowStageTransitionPermission: {
|
|
902
|
-
/**
|
|
965
|
+
/** Allows executing the transition for a role. Note that write permissions to the destination stage are NOT required to execute a transition to it */
|
|
903
966
|
execute?: boolean;
|
|
904
967
|
};
|
|
905
968
|
/** @enum {string} */
|
|
906
969
|
ReleaseState: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
|
|
970
|
+
/** @enum {string} */
|
|
971
|
+
ReleaseScheduleState: "scheduled" | "unscheduled";
|
|
907
972
|
ProjectMapNodeAllowedQueryString: {
|
|
908
|
-
/**
|
|
973
|
+
/** The name of the query string parameter */
|
|
909
974
|
name: string;
|
|
910
|
-
/**
|
|
975
|
+
/** The default value of the query string if it is not provided by an incoming route path */
|
|
911
976
|
value?: string;
|
|
912
|
-
/**
|
|
977
|
+
/** Help text for authors who might be setting up a preview value for this query string */
|
|
913
978
|
helpText?: string;
|
|
914
|
-
/**
|
|
979
|
+
/**
|
|
980
|
+
* Controls whether a global query string is always shown in Canvas or must be opted into.
|
|
981
|
+
* This property is ignored on node-level query strings. When omitted, the query string is always shown.
|
|
982
|
+
|
|
983
|
+
*/
|
|
984
|
+
editorVisibility?: "opt-in";
|
|
985
|
+
/** Configuration for providing a list of allowed values for this query string */
|
|
915
986
|
optionsSource?: {
|
|
916
987
|
/**
|
|
917
|
-
*
|
|
918
|
-
|
|
988
|
+
* The source type for the options
|
|
989
|
+
|
|
919
990
|
*/
|
|
920
991
|
source: "static";
|
|
921
992
|
options: {
|
|
922
|
-
/**
|
|
993
|
+
/** Display name for the option */
|
|
923
994
|
name: string;
|
|
924
|
-
/**
|
|
995
|
+
/** The actual value to be used */
|
|
925
996
|
value: string;
|
|
926
997
|
}[];
|
|
927
998
|
};
|
|
928
999
|
};
|
|
929
1000
|
ProjectMapNodeData: {
|
|
930
|
-
/**
|
|
1001
|
+
/** While performing a search if a node is a hit, this property will return true. If it's supporting structure, like a parent of a search hit, it will return false */
|
|
931
1002
|
isSearchHit?: boolean;
|
|
932
|
-
/**
|
|
1003
|
+
/** Query strings that are allowed to be passed to the node */
|
|
933
1004
|
queryStrings?: components$1["schemas"]["ProjectMapNodeAllowedQueryString"][];
|
|
934
|
-
/**
|
|
1005
|
+
/**
|
|
1006
|
+
* For dynamic nodes, this is the preview value for the dynamic value.
|
|
935
1007
|
* The preview value is used when editing a connected composition, and is the default
|
|
936
1008
|
* dynamic node value unless the author has explicitly chosen a different value
|
|
937
|
-
|
|
1009
|
+
*/
|
|
938
1010
|
previewValue?: string;
|
|
939
1011
|
};
|
|
940
1012
|
};
|
|
@@ -953,46 +1025,133 @@ interface paths {
|
|
|
953
1025
|
path?: never;
|
|
954
1026
|
cookie?: never;
|
|
955
1027
|
};
|
|
1028
|
+
/**
|
|
1029
|
+
* In addition to the named parameters below, this endpoint accepts the
|
|
1030
|
+
* following query parameter convention which is pattern-validated and
|
|
1031
|
+
* therefore not declared as named parameters:
|
|
1032
|
+
*
|
|
1033
|
+
* * `filters.<field>[<op>]` — content filtering (documented below).
|
|
1034
|
+
*
|
|
1035
|
+
* #### Content filtering (`filters.*`)
|
|
1036
|
+
*
|
|
1037
|
+
* Filtering narrows list results to assets matching field values. The
|
|
1038
|
+
* allowed field names are project-specific — they come from the project's
|
|
1039
|
+
* asset definitions — which is why `filters.*` parameters are
|
|
1040
|
+
* pattern-validated rather than declared as named parameters.
|
|
1041
|
+
*
|
|
1042
|
+
* Syntax: `filters.<field>[<operator>]=<value>`. `<field>` is one of:
|
|
1043
|
+
*
|
|
1044
|
+
* * A system field such as `name`, `type`, `created`, `modified`,
|
|
1045
|
+
* `entityId`, `creator`, `creatorSubject`, `author`, `authorSubject`,
|
|
1046
|
+
* `categoryId`, `labels`, `labelGroups`, or `uiStatus`.
|
|
1047
|
+
* * An asset field, addressed as `fields.<fieldId>`. Unlike entries and
|
|
1048
|
+
* compositions, asset field filters do not require a single-type
|
|
1049
|
+
* filter — but if the same field ID has differing types across asset
|
|
1050
|
+
* types, HTTP 400 is returned and a single asset type must be
|
|
1051
|
+
* filtered.
|
|
1052
|
+
*
|
|
1053
|
+
* | Operator | Effect |
|
|
1054
|
+
* |---|---|
|
|
1055
|
+
* | `[eq]` / `[neq]` | Exact equality / inequality. |
|
|
1056
|
+
* | `[match]` | Contains (text search) match; text-like fields only. |
|
|
1057
|
+
* | `[starts]` | Prefix match. Value limited to letters, numbers, `_`, `.`, `-`, and spaces. |
|
|
1058
|
+
* | `[lt]` / `[lte]` / `[gt]` / `[gte]` | Comparisons for number, date, and datetime fields (including `created` / `modified`). |
|
|
1059
|
+
* | `[in]` / `[nin]` | Comma-separated list; matches any (OR) / none of the values. |
|
|
1060
|
+
* | `[all]` | Comma-separated list; list-valued fields (e.g. `labels`, multi-selects) must contain every value (AND). |
|
|
1061
|
+
* | `[def]` | `true` or `false`; whether the field has a value at all. |
|
|
1062
|
+
*
|
|
1063
|
+
* Behavior:
|
|
1064
|
+
*
|
|
1065
|
+
* * Values are single strings, or comma-separated lists for `[in]`,
|
|
1066
|
+
* `[nin]`, and `[all]`. Dates accept `YYYY-MM-DD` or a full datetime
|
|
1067
|
+
* string. An empty value is rejected — use `[def]` to test presence.
|
|
1068
|
+
* * Not every operator is valid for every field; the allowed set depends
|
|
1069
|
+
* on the field's type. An unsupported combination returns HTTP 400
|
|
1070
|
+
* with the supported operators listed.
|
|
1071
|
+
* * Malformed keys, unknown operators, and unknown field names return
|
|
1072
|
+
* HTTP 400.
|
|
1073
|
+
*
|
|
1074
|
+
* Examples:
|
|
1075
|
+
*
|
|
1076
|
+
* * `filters.type[eq]=productImage` — only assets of type `productImage`.
|
|
1077
|
+
* * `filters.modified[gte]=2026-01-01` — modified this year.
|
|
1078
|
+
* * `filters.fields.altText[def]=false` — assets missing alt text.
|
|
1079
|
+
*/
|
|
956
1080
|
get: {
|
|
957
1081
|
parameters: {
|
|
958
1082
|
query: {
|
|
959
|
-
/**
|
|
1083
|
+
/** Specify a single asset ID to fetch */
|
|
960
1084
|
assetId?: components["parameters"]["assetId"];
|
|
961
|
-
/**
|
|
1085
|
+
/** Specify multiple asset IDs to fetch. Response type will be a list */
|
|
962
1086
|
assetIDs?: components["parameters"]["assetIDs"];
|
|
963
|
-
/**
|
|
964
|
-
* */
|
|
1087
|
+
/** Filters asset lists by the user who created them. The user is specified by their identity subject */
|
|
965
1088
|
createdBy?: components["parameters"]["createdBy"];
|
|
966
|
-
/**
|
|
1089
|
+
/**
|
|
1090
|
+
* Matches assets where their name or description contains the specified keyword.
|
|
967
1091
|
* This is a list query parameter, and cannot be used with any primary query parameters
|
|
968
|
-
|
|
1092
|
+
*/
|
|
969
1093
|
keyword?: components["parameters"]["keyword"];
|
|
970
|
-
/**
|
|
1094
|
+
/**
|
|
1095
|
+
* @deprecated
|
|
1096
|
+
* BETA: Semantic search using vector similarity to find assets by meaning.
|
|
1097
|
+
* Use this for "images of mountains" style queries.
|
|
1098
|
+
* Requires AI credits.
|
|
1099
|
+
*/
|
|
1100
|
+
searchSemantic?: components["parameters"]["searchSemantic"];
|
|
1101
|
+
/** Max number of records to return */
|
|
971
1102
|
limit?: components["parameters"]["limit"];
|
|
972
|
-
/**
|
|
1103
|
+
/** Number of records to skip */
|
|
973
1104
|
offset?: components["parameters"]["offset"];
|
|
974
|
-
/**
|
|
975
|
-
*
|
|
1105
|
+
/**
|
|
1106
|
+
* Sets the sorting of the results. If unspecified, results are sorted by creation date ascending.
|
|
1107
|
+
* Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC, name_DESC, name_ASC, slug_DESC, slug_ASC, relevance_DESC (when searching).
|
|
1108
|
+
*/
|
|
976
1109
|
orderBy?: components["parameters"]["orderBy"];
|
|
977
|
-
/**
|
|
1110
|
+
/**
|
|
1111
|
+
* @deprecated
|
|
1112
|
+
* Returns counts for distinct values of the specified field or fields (provided as comma-separated IDs).
|
|
1113
|
+
*/
|
|
1114
|
+
facetBy?: components["parameters"]["facetBy"];
|
|
1115
|
+
/** The project the asset/assets are on */
|
|
978
1116
|
projectId: components["parameters"]["projectId"];
|
|
979
|
-
/**
|
|
1117
|
+
/** The asset type ID to filter by */
|
|
980
1118
|
type?: components["parameters"]["type"];
|
|
981
|
-
/**
|
|
982
|
-
* */
|
|
1119
|
+
/** Filters asset lists by the user who last updated them. The user is specified by their identity subject */
|
|
983
1120
|
updatedBy?: components["parameters"]["updatedBy"];
|
|
984
|
-
/**
|
|
1121
|
+
/**
|
|
1122
|
+
* Controls whether the total count of results will be returned along with the current results page in a list.
|
|
985
1123
|
* Has no effect when not fetching a list. This does impact performance when enabled
|
|
986
|
-
|
|
1124
|
+
*/
|
|
987
1125
|
withTotalCount?: components["parameters"]["withTotalCount"];
|
|
988
|
-
/**
|
|
1126
|
+
/**
|
|
1127
|
+
* The ID of a release to fetch the content for.
|
|
989
1128
|
*
|
|
990
1129
|
* - When unspecified, all release content is excluded from the result(s).
|
|
991
1130
|
* - When specified, all content is returned as it would appear in the release if it was released now. This includes both content copied to the release and changed, as well as content that is not part of the release.
|
|
992
1131
|
*
|
|
993
1132
|
* Content copied to a release can be differentiated from base content by the `releaseId` property on the content. If the content is not copied to the release, this property will be undefined
|
|
994
|
-
|
|
1133
|
+
*/
|
|
995
1134
|
releaseId?: components["parameters"]["releaseId"];
|
|
1135
|
+
/**
|
|
1136
|
+
* When true, includes full label entities in the response for UI rendering.
|
|
1137
|
+
* The assignedLabels array includes the label and its parent group (if any).
|
|
1138
|
+
* This parameter is not supported with uniform.global.
|
|
1139
|
+
*/
|
|
1140
|
+
withAssignedLabels?: components["parameters"]["withAssignedLabels"];
|
|
1141
|
+
/**
|
|
1142
|
+
* @deprecated
|
|
1143
|
+
* Returns additional author and creator metadata for the asset.
|
|
1144
|
+
* This internal status is subject to change without notice and is thus marked deprecated to discourage use of internal data
|
|
1145
|
+
*/
|
|
1146
|
+
withUIStatus?: components["parameters"]["withUIStatus"];
|
|
1147
|
+
/**
|
|
1148
|
+
* Controls filtering of trashed items.
|
|
1149
|
+
*
|
|
1150
|
+
* exclude: (default) Only return items not in trash.
|
|
1151
|
+
* only: Only return trashed items (for trash view).
|
|
1152
|
+
* include: Return both trashed and non-trashed items.
|
|
1153
|
+
*/
|
|
1154
|
+
deleted?: components["parameters"]["deleted"];
|
|
996
1155
|
};
|
|
997
1156
|
header?: never;
|
|
998
1157
|
path?: never;
|
|
@@ -1000,7 +1159,7 @@ interface paths {
|
|
|
1000
1159
|
};
|
|
1001
1160
|
requestBody?: never;
|
|
1002
1161
|
responses: {
|
|
1003
|
-
/**
|
|
1162
|
+
/** OK */
|
|
1004
1163
|
200: {
|
|
1005
1164
|
headers: {
|
|
1006
1165
|
[name: string]: unknown;
|
|
@@ -1012,14 +1171,14 @@ interface paths {
|
|
|
1012
1171
|
400: components["responses"]["BadRequestError"];
|
|
1013
1172
|
401: components["responses"]["UnauthorizedError"];
|
|
1014
1173
|
403: components["responses"]["ForbiddenError"];
|
|
1015
|
-
/**
|
|
1174
|
+
/** Asset not found */
|
|
1016
1175
|
404: {
|
|
1017
1176
|
headers: {
|
|
1018
1177
|
[name: string]: unknown;
|
|
1019
1178
|
};
|
|
1020
1179
|
content: {
|
|
1021
1180
|
"application/json": {
|
|
1022
|
-
/**
|
|
1181
|
+
/** The error message */
|
|
1023
1182
|
errorMessage: string;
|
|
1024
1183
|
};
|
|
1025
1184
|
};
|
|
@@ -1028,7 +1187,10 @@ interface paths {
|
|
|
1028
1187
|
500: components["responses"]["InternalServerError"];
|
|
1029
1188
|
};
|
|
1030
1189
|
};
|
|
1031
|
-
/**
|
|
1190
|
+
/**
|
|
1191
|
+
* Creates or updates assets. Submitting the ID of a trashed asset restores it.
|
|
1192
|
+
* A file-backed asset must include its original file reference when restored.
|
|
1193
|
+
*/
|
|
1032
1194
|
put: {
|
|
1033
1195
|
parameters: {
|
|
1034
1196
|
query?: never;
|
|
@@ -1041,12 +1203,12 @@ interface paths {
|
|
|
1041
1203
|
"application/json": {
|
|
1042
1204
|
/**
|
|
1043
1205
|
* Format: uuid
|
|
1044
|
-
*
|
|
1206
|
+
* The project ID to upsert the asset to
|
|
1045
1207
|
*/
|
|
1046
1208
|
projectId: string;
|
|
1047
1209
|
/**
|
|
1048
1210
|
* Format: uuid
|
|
1049
|
-
*
|
|
1211
|
+
* The release ID to upsert the asset to. If unspecified the asset belongs to the base
|
|
1050
1212
|
*/
|
|
1051
1213
|
releaseId?: string;
|
|
1052
1214
|
asset?: components["schemas"]["AssetInput"];
|
|
@@ -1055,7 +1217,7 @@ interface paths {
|
|
|
1055
1217
|
};
|
|
1056
1218
|
};
|
|
1057
1219
|
responses: {
|
|
1058
|
-
/**
|
|
1220
|
+
/** OK */
|
|
1059
1221
|
204: {
|
|
1060
1222
|
headers: {
|
|
1061
1223
|
[name: string]: unknown;
|
|
@@ -1070,7 +1232,10 @@ interface paths {
|
|
|
1070
1232
|
};
|
|
1071
1233
|
};
|
|
1072
1234
|
post?: never;
|
|
1073
|
-
/**
|
|
1235
|
+
/**
|
|
1236
|
+
* Moves an asset to trash. Trashed assets are omitted from default GET results and
|
|
1237
|
+
* permanently deleted after the configured retention period.
|
|
1238
|
+
*/
|
|
1074
1239
|
delete: {
|
|
1075
1240
|
parameters: {
|
|
1076
1241
|
query?: never;
|
|
@@ -1083,26 +1248,25 @@ interface paths {
|
|
|
1083
1248
|
"application/json": {
|
|
1084
1249
|
/**
|
|
1085
1250
|
* Format: uuid
|
|
1086
|
-
*
|
|
1251
|
+
* The ID of the asset to move to trash
|
|
1087
1252
|
*/
|
|
1088
1253
|
assetId: string;
|
|
1089
1254
|
/**
|
|
1090
1255
|
* Format: uuid
|
|
1091
|
-
*
|
|
1256
|
+
* The ID of the project the asset belongs to
|
|
1092
1257
|
*/
|
|
1093
1258
|
projectId: string;
|
|
1094
1259
|
/**
|
|
1095
1260
|
* Format: uuid
|
|
1096
|
-
*
|
|
1261
|
+
* The ID of the release the asset to delete belongs to. If unspecified the asset belongs to the base.
|
|
1097
1262
|
* Note: deleting an asset from a release will not delete the asset from the base
|
|
1098
|
-
*
|
|
1099
1263
|
*/
|
|
1100
1264
|
releaseId?: string;
|
|
1101
1265
|
};
|
|
1102
1266
|
};
|
|
1103
1267
|
};
|
|
1104
1268
|
responses: {
|
|
1105
|
-
/**
|
|
1269
|
+
/** OK */
|
|
1106
1270
|
204: {
|
|
1107
1271
|
headers: {
|
|
1108
1272
|
[name: string]: unknown;
|
|
@@ -1112,11 +1276,23 @@ interface paths {
|
|
|
1112
1276
|
400: components["responses"]["BadRequestError"];
|
|
1113
1277
|
401: components["responses"]["UnauthorizedError"];
|
|
1114
1278
|
403: components["responses"]["ForbiddenError"];
|
|
1279
|
+
/** Asset not found */
|
|
1280
|
+
404: {
|
|
1281
|
+
headers: {
|
|
1282
|
+
[name: string]: unknown;
|
|
1283
|
+
};
|
|
1284
|
+
content: {
|
|
1285
|
+
"application/json": {
|
|
1286
|
+
/** The error message */
|
|
1287
|
+
errorMessage: string;
|
|
1288
|
+
};
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1115
1291
|
429: components["responses"]["RateLimitError"];
|
|
1116
1292
|
500: components["responses"]["InternalServerError"];
|
|
1117
1293
|
};
|
|
1118
1294
|
};
|
|
1119
|
-
/**
|
|
1295
|
+
/** Handles preflight requests. This endpoint allows CORS */
|
|
1120
1296
|
options: {
|
|
1121
1297
|
parameters: {
|
|
1122
1298
|
query?: never;
|
|
@@ -1126,7 +1302,7 @@ interface paths {
|
|
|
1126
1302
|
};
|
|
1127
1303
|
requestBody?: never;
|
|
1128
1304
|
responses: {
|
|
1129
|
-
/**
|
|
1305
|
+
/** OK */
|
|
1130
1306
|
204: {
|
|
1131
1307
|
headers: {
|
|
1132
1308
|
[name: string]: unknown;
|
|
@@ -1142,19 +1318,25 @@ interface paths {
|
|
|
1142
1318
|
}
|
|
1143
1319
|
interface components {
|
|
1144
1320
|
schemas: {
|
|
1145
|
-
/**
|
|
1321
|
+
/** Defines the shape of the asset */
|
|
1146
1322
|
Asset: {
|
|
1147
|
-
/**
|
|
1323
|
+
/** Asset type of the asset */
|
|
1148
1324
|
type: string;
|
|
1149
1325
|
/**
|
|
1150
1326
|
* Format: uuid
|
|
1151
|
-
*
|
|
1327
|
+
* The public UUID of the asset
|
|
1152
1328
|
*/
|
|
1153
1329
|
_id: string;
|
|
1154
|
-
/**
|
|
1330
|
+
/** The name of the asset */
|
|
1155
1331
|
_name: string;
|
|
1156
|
-
/**
|
|
1332
|
+
/** Name of the author of the most recent change */
|
|
1157
1333
|
_author?: string;
|
|
1334
|
+
/** Identity subject of the author of the most recent change */
|
|
1335
|
+
_authorSubject?: string;
|
|
1336
|
+
/** Name of the original creator */
|
|
1337
|
+
_creator?: string;
|
|
1338
|
+
/** Identity subject of the original creator */
|
|
1339
|
+
_creatorSubject?: string;
|
|
1158
1340
|
fields?: {
|
|
1159
1341
|
title?: {
|
|
1160
1342
|
value: string;
|
|
@@ -1166,8 +1348,12 @@ interface components {
|
|
|
1166
1348
|
/** @constant */
|
|
1167
1349
|
type: "text";
|
|
1168
1350
|
};
|
|
1351
|
+
/** An asset can reference at most one file. A file can be attached to only one asset. */
|
|
1169
1352
|
file?: {
|
|
1170
|
-
/**
|
|
1353
|
+
/**
|
|
1354
|
+
* Format: uuid
|
|
1355
|
+
* File ID to attach. A trashed file cannot be attached to an active asset.
|
|
1356
|
+
*/
|
|
1171
1357
|
value: string;
|
|
1172
1358
|
/** @constant */
|
|
1173
1359
|
type: "file";
|
|
@@ -1205,23 +1391,25 @@ interface components {
|
|
|
1205
1391
|
/** @constant */
|
|
1206
1392
|
type: "focalPoint";
|
|
1207
1393
|
};
|
|
1208
|
-
/**
|
|
1394
|
+
/** Asset field values */
|
|
1209
1395
|
custom?: {
|
|
1210
1396
|
[key: string]: components["schemas"]["ComponentParameter"];
|
|
1211
1397
|
};
|
|
1212
1398
|
};
|
|
1213
1399
|
_dataResources?: components["schemas"]["DataResourceDefinitions"];
|
|
1400
|
+
/** Array of label public IDs assigned to this asset (max 30) */
|
|
1401
|
+
labels?: string[];
|
|
1214
1402
|
};
|
|
1215
|
-
/**
|
|
1403
|
+
/** Defines the shape of the asset input */
|
|
1216
1404
|
AssetInput: {
|
|
1217
|
-
/**
|
|
1405
|
+
/** Content type of the asset */
|
|
1218
1406
|
type?: string;
|
|
1219
1407
|
/**
|
|
1220
1408
|
* Format: uuid
|
|
1221
|
-
*
|
|
1409
|
+
* The public UUID of the asset
|
|
1222
1410
|
*/
|
|
1223
1411
|
_id?: string;
|
|
1224
|
-
/**
|
|
1412
|
+
/** The internal name of the asset */
|
|
1225
1413
|
_name?: string;
|
|
1226
1414
|
fields?: {
|
|
1227
1415
|
title?: {
|
|
@@ -1234,8 +1422,12 @@ interface components {
|
|
|
1234
1422
|
/** @constant */
|
|
1235
1423
|
type: "text";
|
|
1236
1424
|
};
|
|
1425
|
+
/** An asset can reference at most one file. A file can be attached to only one asset. */
|
|
1237
1426
|
file?: {
|
|
1238
|
-
/**
|
|
1427
|
+
/**
|
|
1428
|
+
* Format: uuid
|
|
1429
|
+
* File ID to attach. A trashed file cannot be attached to an active asset.
|
|
1430
|
+
*/
|
|
1239
1431
|
value: string;
|
|
1240
1432
|
/** @constant */
|
|
1241
1433
|
type: "file";
|
|
@@ -1250,47 +1442,88 @@ interface components {
|
|
|
1250
1442
|
};
|
|
1251
1443
|
};
|
|
1252
1444
|
_dataResources?: components["schemas"]["DataResourceDefinitions"];
|
|
1445
|
+
/** Array of label public IDs assigned to this asset (max 30) */
|
|
1446
|
+
labels?: string[];
|
|
1253
1447
|
};
|
|
1254
1448
|
AssetApiResponse: {
|
|
1255
1449
|
/**
|
|
1256
1450
|
* Format: uuid
|
|
1257
|
-
*
|
|
1451
|
+
* The project ID that this layout data is part of
|
|
1258
1452
|
*/
|
|
1259
1453
|
projectId: string;
|
|
1260
1454
|
/**
|
|
1261
1455
|
* Format: date-time
|
|
1262
|
-
*
|
|
1456
|
+
* Created date string for this definition
|
|
1263
1457
|
*/
|
|
1264
1458
|
created: string;
|
|
1265
1459
|
/**
|
|
1266
1460
|
* Format: date-time
|
|
1267
|
-
*
|
|
1461
|
+
* Modified date string for this definition
|
|
1268
1462
|
*/
|
|
1269
1463
|
modified: string;
|
|
1464
|
+
/**
|
|
1465
|
+
* Format: date-time
|
|
1466
|
+
* Timestamp when the item was moved to trash. Omitted if not in trash.
|
|
1467
|
+
*/
|
|
1468
|
+
deletedAt?: string;
|
|
1270
1469
|
/**
|
|
1271
1470
|
* Format: uuid
|
|
1272
|
-
*
|
|
1471
|
+
* The release this asset belongs to. If not set, the asset belongs to the base
|
|
1273
1472
|
*/
|
|
1274
1473
|
releaseId?: string;
|
|
1275
1474
|
asset: components["schemas"]["Asset"];
|
|
1475
|
+
/** Full label entities for UI rendering (only present when withAssignedLabels=true). Read-only. */
|
|
1476
|
+
assignedLabels?: {
|
|
1477
|
+
[key: string]: {
|
|
1478
|
+
/** Format: uuid */
|
|
1479
|
+
projectId: string;
|
|
1480
|
+
label: {
|
|
1481
|
+
/** Public ID of the label (cannot be changed after creation) */
|
|
1482
|
+
publicId: string;
|
|
1483
|
+
/** Human readable name of the label */
|
|
1484
|
+
displayName: string;
|
|
1485
|
+
/** Whether this label is a group label (cannot be changed after creation) */
|
|
1486
|
+
isGroup: boolean;
|
|
1487
|
+
/** Public ID of the parent group label */
|
|
1488
|
+
parent?: string;
|
|
1489
|
+
/** Human readable color identifier */
|
|
1490
|
+
color: string;
|
|
1491
|
+
/** Short description of what the label is about */
|
|
1492
|
+
description?: string;
|
|
1493
|
+
/** Scope of the label (currently unused) */
|
|
1494
|
+
scope: string[];
|
|
1495
|
+
};
|
|
1496
|
+
/** Format: date-time */
|
|
1497
|
+
created: string;
|
|
1498
|
+
/** Format: date-time */
|
|
1499
|
+
modified: string;
|
|
1500
|
+
createdBy?: string;
|
|
1501
|
+
modifiedBy?: string;
|
|
1502
|
+
};
|
|
1503
|
+
};
|
|
1276
1504
|
};
|
|
1277
1505
|
AssetListResponse: {
|
|
1278
1506
|
assets: components["schemas"]["AssetApiResponse"][];
|
|
1279
|
-
/**
|
|
1507
|
+
/** Total number of assets that match the query. Only present when `withTotalCount` option is true */
|
|
1280
1508
|
totalCount?: number;
|
|
1509
|
+
/** Per-field counts for distinct values */
|
|
1510
|
+
facets?: {
|
|
1511
|
+
[key: string]: {
|
|
1512
|
+
[key: string]: number;
|
|
1513
|
+
};
|
|
1514
|
+
};
|
|
1281
1515
|
};
|
|
1282
|
-
/**
|
|
1283
|
-
* */
|
|
1516
|
+
/** Defines a connection to a dynamic token on a data resource */
|
|
1284
1517
|
DataElementConnectionDefinition: {
|
|
1285
|
-
/**
|
|
1518
|
+
/** A JSON Pointer expression that defines the data resource dynamic token value */
|
|
1286
1519
|
pointer: string;
|
|
1287
1520
|
/**
|
|
1288
|
-
*
|
|
1289
|
-
|
|
1521
|
+
* The syntax used to select the dynamic token to bind to
|
|
1522
|
+
|
|
1290
1523
|
*/
|
|
1291
1524
|
syntax: "jptr";
|
|
1292
1525
|
/**
|
|
1293
|
-
*
|
|
1526
|
+
* The action to take if the dynamic token cannot be resolved
|
|
1294
1527
|
* - t: TOKEN: Removes the failed dynamic token value, leaving the rest of the property value, if any, intact [default]
|
|
1295
1528
|
* NOTE: If the _only_ value in the property is a dynamic token, the property value is removed (as with 'p' below)
|
|
1296
1529
|
* NOTE: If the _failureDefault_ property is also set, that default value will be used instead of removing the token.
|
|
@@ -1300,66 +1533,68 @@ interface components {
|
|
|
1300
1533
|
* NOTE: If a 'component' failure occurs on the root component of a composition, or an entry,
|
|
1301
1534
|
* it is treated as an 'a' failure because removing the root means we must remove all
|
|
1302
1535
|
* - a: ALL: Fails the whole entry or composition. This will result in the item returning a 404 from APIs, and being removed from API list responses
|
|
1303
|
-
|
|
1304
|
-
* @enum {string}
|
|
1536
|
+
|
|
1305
1537
|
*/
|
|
1306
1538
|
failureAction?: "t" | "p" | "c" | "a";
|
|
1307
1539
|
/**
|
|
1308
|
-
*
|
|
1540
|
+
* How to report when the dynamic token cannot be resolved
|
|
1309
1541
|
* - e: ERROR: Report an error message (this will prevent publishing)
|
|
1310
1542
|
* - w: WARNING: Report a warning message [default]
|
|
1311
1543
|
* - i: INFO: Log an informative message (failure is expected/normal, i.e. optional data)
|
|
1312
|
-
|
|
1313
|
-
* @enum {string}
|
|
1544
|
+
|
|
1314
1545
|
*/
|
|
1315
1546
|
failureLogLevel?: "e" | "w" | "i";
|
|
1316
|
-
/**
|
|
1547
|
+
/**
|
|
1548
|
+
* The default value to use if the dynamic token cannot be resolved.
|
|
1317
1549
|
* This is only used if the failureAction is the default (undefined, or explicitly token)
|
|
1318
|
-
|
|
1550
|
+
*/
|
|
1319
1551
|
failureDefault?: string;
|
|
1320
1552
|
};
|
|
1321
1553
|
/**
|
|
1322
1554
|
* @deprecated
|
|
1323
|
-
*
|
|
1555
|
+
* beta functionality subject to change
|
|
1324
1556
|
*/
|
|
1325
1557
|
VisibilityCriteria: {
|
|
1326
|
-
/**
|
|
1558
|
+
/** The rule type to execute */
|
|
1327
1559
|
rule: string;
|
|
1328
|
-
/**
|
|
1560
|
+
/**
|
|
1561
|
+
* The source value of the rule.
|
|
1329
1562
|
* For rules which have multiple classes of match, for example a dynamic input matches on a named DI, the rule is dynamic input and the DI name is the source.
|
|
1330
|
-
|
|
1563
|
+
*/
|
|
1331
1564
|
source?: string;
|
|
1332
|
-
/**
|
|
1565
|
+
/** The rule-definition-specific operator to test against */
|
|
1333
1566
|
op: string;
|
|
1334
|
-
/**
|
|
1567
|
+
/** The value, or if an array several potential values, to test against. In most rules, multiple values are OR'd together ('any of') but this is not a hard requirement. */
|
|
1335
1568
|
value: string | string[];
|
|
1336
1569
|
};
|
|
1337
1570
|
/**
|
|
1338
1571
|
* @deprecated
|
|
1339
|
-
*
|
|
1572
|
+
* beta functionality subject to change
|
|
1340
1573
|
*/
|
|
1341
1574
|
VisibilityCriteriaGroup: {
|
|
1342
1575
|
/**
|
|
1343
|
-
*
|
|
1344
|
-
|
|
1576
|
+
* The boolean operator to join the clauses with. Defaults to & if not specified.
|
|
1577
|
+
|
|
1345
1578
|
*/
|
|
1346
1579
|
op?: "&" | "|";
|
|
1347
1580
|
clauses: (components["schemas"]["VisibilityCriteria"] | components["schemas"]["VisibilityCriteriaGroup"])[];
|
|
1348
1581
|
};
|
|
1349
|
-
/**
|
|
1350
|
-
* */
|
|
1582
|
+
/** Defines a conditional value for a component parameter */
|
|
1351
1583
|
ComponentParameterConditionalValue: {
|
|
1352
1584
|
when: components["schemas"]["VisibilityCriteriaGroup"];
|
|
1353
|
-
/**
|
|
1585
|
+
/**
|
|
1586
|
+
* The value of the parameter. Any JSON-serializable value is acceptable.
|
|
1354
1587
|
* A value of `null` will cause the parameter value to be removed, if it matches.
|
|
1355
|
-
|
|
1588
|
+
*/
|
|
1356
1589
|
value: unknown;
|
|
1357
|
-
/**
|
|
1590
|
+
/**
|
|
1591
|
+
* Unique sequence identifier of the conditional value within the component parameter.
|
|
1358
1592
|
* This value must be unique within the conditional values array, and it should not change after a condition is created.
|
|
1359
|
-
|
|
1593
|
+
*/
|
|
1360
1594
|
id: number;
|
|
1361
1595
|
};
|
|
1362
|
-
/**
|
|
1596
|
+
/**
|
|
1597
|
+
* Array of alternate values which are based on conditions.
|
|
1363
1598
|
*
|
|
1364
1599
|
* When requested with an explicit locale parameter, or via the route API:
|
|
1365
1600
|
* * Conditions are evaluated sequentially and the first match is used. If a match is found, the conditions are eliminated.
|
|
@@ -1367,63 +1602,66 @@ interface components {
|
|
|
1367
1602
|
* * If a condition cannot be evaluated yet (i.e. a client-side criteria), it is left alone.
|
|
1368
1603
|
*
|
|
1369
1604
|
* When no locale is passed to a non-route API, conditions are not processed and all conditions are returned.
|
|
1370
|
-
|
|
1605
|
+
*/
|
|
1371
1606
|
ComponentParameterConditions: components["schemas"]["ComponentParameterConditionalValue"][];
|
|
1372
|
-
/**
|
|
1607
|
+
/** Defines an editable parameter on a component */
|
|
1373
1608
|
ComponentParameter: {
|
|
1374
|
-
/**
|
|
1609
|
+
/** The value of the parameter. Any JSON-serializable value is acceptable */
|
|
1375
1610
|
value?: unknown;
|
|
1376
|
-
/**
|
|
1611
|
+
/** The type of the parameter. Determines how it is displayed when editing and tells the consumer how to process it */
|
|
1377
1612
|
type: string;
|
|
1378
1613
|
/** @deprecated */
|
|
1379
1614
|
connectedData?: components["schemas"]["DataElementConnectionDefinition"];
|
|
1380
|
-
/**
|
|
1615
|
+
/**
|
|
1616
|
+
* Locale-specific values for this parameter. Keys are locale codes, and values are the `value` in that locale.
|
|
1381
1617
|
* Note that locales must be registered on the entry/composition `_locales` before being used
|
|
1382
|
-
|
|
1618
|
+
*/
|
|
1383
1619
|
locales?: {
|
|
1384
1620
|
[key: string]: unknown;
|
|
1385
1621
|
};
|
|
1386
1622
|
conditions?: components["schemas"]["ComponentParameterConditions"];
|
|
1387
|
-
/**
|
|
1388
|
-
* */
|
|
1623
|
+
/** Locale-specific conditional values for this parameter. Keys are locale codes, and values are the `conditions` for that locale. */
|
|
1389
1624
|
localesConditions?: {
|
|
1390
1625
|
[key: string]: components["schemas"]["ComponentParameterConditions"];
|
|
1391
1626
|
};
|
|
1392
1627
|
};
|
|
1393
|
-
/**
|
|
1628
|
+
/** Variable values for a data resource */
|
|
1394
1629
|
DataResourceVariables: {
|
|
1395
1630
|
[key: string]: string;
|
|
1396
1631
|
};
|
|
1397
|
-
/**
|
|
1632
|
+
/** Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters */
|
|
1398
1633
|
DataResourceDefinition: {
|
|
1399
|
-
/**
|
|
1634
|
+
/** Public ID of the data type that provides this data */
|
|
1400
1635
|
type: string;
|
|
1401
|
-
/**
|
|
1636
|
+
/** Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false */
|
|
1402
1637
|
isPatternParameter?: boolean;
|
|
1403
|
-
/**
|
|
1638
|
+
/**
|
|
1639
|
+
* When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
|
1404
1640
|
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
|
1405
1641
|
* If isPatternParameter is false or undefined, this has no meaning
|
|
1406
|
-
|
|
1642
|
+
*/
|
|
1407
1643
|
ignorePatternParameterDefault?: boolean;
|
|
1408
|
-
/**
|
|
1644
|
+
/**
|
|
1645
|
+
* When true, the data resource does not create an error forcing the choosing of override value when there is no default.
|
|
1409
1646
|
* If isPatternParameter is false or undefined, or if ignorePatternParameterDefault is false, this has no meaning
|
|
1410
|
-
|
|
1647
|
+
*/
|
|
1411
1648
|
optionalPatternParameter?: boolean;
|
|
1412
1649
|
variables?: components["schemas"]["DataResourceVariables"];
|
|
1413
1650
|
};
|
|
1414
|
-
/**
|
|
1651
|
+
/**
|
|
1652
|
+
* Data definitions attached to this component. The property name is the key of the data in the data document.
|
|
1415
1653
|
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key)
|
|
1416
|
-
|
|
1654
|
+
*/
|
|
1417
1655
|
DataResourceDefinitions: {
|
|
1418
1656
|
[key: string]: components["schemas"]["DataResourceDefinition"];
|
|
1419
1657
|
};
|
|
1420
1658
|
Error: {
|
|
1421
|
-
/**
|
|
1659
|
+
/** Error message(s) that occurred while processing the request */
|
|
1422
1660
|
errorMessage?: string[] | string;
|
|
1423
1661
|
};
|
|
1424
1662
|
};
|
|
1425
1663
|
responses: {
|
|
1426
|
-
/**
|
|
1664
|
+
/** Request input validation failed */
|
|
1427
1665
|
BadRequestError: {
|
|
1428
1666
|
headers: {
|
|
1429
1667
|
[name: string]: unknown;
|
|
@@ -1432,7 +1670,7 @@ interface components {
|
|
|
1432
1670
|
"application/json": components["schemas"]["Error"];
|
|
1433
1671
|
};
|
|
1434
1672
|
};
|
|
1435
|
-
/**
|
|
1673
|
+
/** API key or token was not valid */
|
|
1436
1674
|
UnauthorizedError: {
|
|
1437
1675
|
headers: {
|
|
1438
1676
|
[name: string]: unknown;
|
|
@@ -1441,7 +1679,7 @@ interface components {
|
|
|
1441
1679
|
"application/json": components["schemas"]["Error"];
|
|
1442
1680
|
};
|
|
1443
1681
|
};
|
|
1444
|
-
/**
|
|
1682
|
+
/** Permission was denied */
|
|
1445
1683
|
ForbiddenError: {
|
|
1446
1684
|
headers: {
|
|
1447
1685
|
[name: string]: unknown;
|
|
@@ -1450,14 +1688,14 @@ interface components {
|
|
|
1450
1688
|
"application/json": components["schemas"]["Error"];
|
|
1451
1689
|
};
|
|
1452
1690
|
};
|
|
1453
|
-
/**
|
|
1691
|
+
/** Too many requests in allowed time period */
|
|
1454
1692
|
RateLimitError: {
|
|
1455
1693
|
headers: {
|
|
1456
1694
|
[name: string]: unknown;
|
|
1457
1695
|
};
|
|
1458
1696
|
content?: never;
|
|
1459
1697
|
};
|
|
1460
|
-
/**
|
|
1698
|
+
/** Execution error occurred */
|
|
1461
1699
|
InternalServerError: {
|
|
1462
1700
|
headers: {
|
|
1463
1701
|
[name: string]: unknown;
|
|
@@ -1466,43 +1704,78 @@ interface components {
|
|
|
1466
1704
|
};
|
|
1467
1705
|
};
|
|
1468
1706
|
parameters: {
|
|
1469
|
-
/**
|
|
1707
|
+
/** The project the asset/assets are on */
|
|
1470
1708
|
projectId: string;
|
|
1471
|
-
/**
|
|
1709
|
+
/** Specify a single asset ID to fetch */
|
|
1472
1710
|
assetId: string;
|
|
1473
|
-
/**
|
|
1711
|
+
/** Specify multiple asset IDs to fetch. Response type will be a list */
|
|
1474
1712
|
assetIDs: string[];
|
|
1475
|
-
/**
|
|
1713
|
+
/** The asset type ID to filter by */
|
|
1476
1714
|
type: ("image" | "video" | "audio" | "other")[];
|
|
1477
|
-
/**
|
|
1715
|
+
/** Number of records to skip */
|
|
1478
1716
|
offset: number;
|
|
1479
|
-
/**
|
|
1717
|
+
/** Max number of records to return */
|
|
1480
1718
|
limit: number;
|
|
1481
|
-
/**
|
|
1719
|
+
/**
|
|
1720
|
+
* Matches assets where their name or description contains the specified keyword.
|
|
1482
1721
|
* This is a list query parameter, and cannot be used with any primary query parameters
|
|
1483
|
-
|
|
1722
|
+
*/
|
|
1484
1723
|
keyword: string;
|
|
1485
|
-
/**
|
|
1486
|
-
*
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
*
|
|
1724
|
+
/**
|
|
1725
|
+
* @deprecated
|
|
1726
|
+
* BETA: Semantic search using vector similarity to find assets by meaning.
|
|
1727
|
+
* Use this for "images of mountains" style queries.
|
|
1728
|
+
* Requires AI credits.
|
|
1729
|
+
*/
|
|
1730
|
+
searchSemantic: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* Sets the sorting of the results. If unspecified, results are sorted by creation date ascending.
|
|
1733
|
+
* Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC, name_DESC, name_ASC, slug_DESC, slug_ASC, relevance_DESC (when searching).
|
|
1734
|
+
*/
|
|
1735
|
+
orderBy: string[];
|
|
1736
|
+
/**
|
|
1737
|
+
* @deprecated
|
|
1738
|
+
* Returns counts for distinct values of the specified field or fields (provided as comma-separated IDs).
|
|
1739
|
+
*/
|
|
1740
|
+
facetBy: string;
|
|
1741
|
+
/** Filters asset lists by the user who created them. The user is specified by their identity subject */
|
|
1490
1742
|
createdBy: string;
|
|
1491
|
-
/**
|
|
1492
|
-
* */
|
|
1743
|
+
/** Filters asset lists by the user who last updated them. The user is specified by their identity subject */
|
|
1493
1744
|
updatedBy: string;
|
|
1494
|
-
/**
|
|
1745
|
+
/**
|
|
1746
|
+
* Controls whether the total count of results will be returned along with the current results page in a list.
|
|
1495
1747
|
* Has no effect when not fetching a list. This does impact performance when enabled
|
|
1496
|
-
|
|
1748
|
+
*/
|
|
1497
1749
|
withTotalCount: boolean;
|
|
1498
|
-
/**
|
|
1750
|
+
/**
|
|
1751
|
+
* The ID of a release to fetch the content for.
|
|
1499
1752
|
*
|
|
1500
1753
|
* - When unspecified, all release content is excluded from the result(s).
|
|
1501
1754
|
* - When specified, all content is returned as it would appear in the release if it was released now. This includes both content copied to the release and changed, as well as content that is not part of the release.
|
|
1502
1755
|
*
|
|
1503
1756
|
* Content copied to a release can be differentiated from base content by the `releaseId` property on the content. If the content is not copied to the release, this property will be undefined
|
|
1504
|
-
|
|
1757
|
+
*/
|
|
1505
1758
|
releaseId: string;
|
|
1759
|
+
/**
|
|
1760
|
+
* When true, includes full label entities in the response for UI rendering.
|
|
1761
|
+
* The assignedLabels array includes the label and its parent group (if any).
|
|
1762
|
+
* This parameter is not supported with uniform.global.
|
|
1763
|
+
*/
|
|
1764
|
+
withAssignedLabels: boolean;
|
|
1765
|
+
/**
|
|
1766
|
+
* @deprecated
|
|
1767
|
+
* Returns additional author and creator metadata for the asset.
|
|
1768
|
+
* This internal status is subject to change without notice and is thus marked deprecated to discourage use of internal data
|
|
1769
|
+
*/
|
|
1770
|
+
withUIStatus: boolean;
|
|
1771
|
+
/**
|
|
1772
|
+
* Controls filtering of trashed items.
|
|
1773
|
+
*
|
|
1774
|
+
* exclude: (default) Only return items not in trash.
|
|
1775
|
+
* only: Only return trashed items (for trash view).
|
|
1776
|
+
* include: Return both trashed and non-trashed items.
|
|
1777
|
+
*/
|
|
1778
|
+
deleted: "exclude" | "only" | "include";
|
|
1506
1779
|
};
|
|
1507
1780
|
requestBodies: never;
|
|
1508
1781
|
headers: never;
|
|
@@ -1601,11 +1874,26 @@ declare class AssetClient extends ApiClient {
|
|
|
1601
1874
|
constructor(options: ClientOptions & {
|
|
1602
1875
|
projectId: NonNullable<ClientOptions['projectId']>;
|
|
1603
1876
|
});
|
|
1604
|
-
get(options: WithoutProjectId<AssetGetRequestSingle>
|
|
1605
|
-
|
|
1877
|
+
get(options: WithoutProjectId<AssetGetRequestSingle> & {
|
|
1878
|
+
filters?: never;
|
|
1879
|
+
}): Promise<AssetGetResponseSingle>;
|
|
1880
|
+
get(options: WithoutProjectId<AssetGetRequestList> & {
|
|
1881
|
+
filters?: Record<string, unknown>;
|
|
1882
|
+
}): Promise<AssetGetResponseList>;
|
|
1883
|
+
/**
|
|
1884
|
+
* Fetches a list of assets
|
|
1885
|
+
*/
|
|
1886
|
+
list(options?: WithoutProjectId<AssetGetRequestList> & {
|
|
1887
|
+
filters?: Record<string, unknown>;
|
|
1888
|
+
}): Promise<AssetGetResponseList>;
|
|
1889
|
+
save(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
|
|
1890
|
+
/** @deprecated Use {@link save} instead. */
|
|
1606
1891
|
upsert(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
|
|
1892
|
+
remove(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
|
|
1893
|
+
/** @deprecated Use {@link remove} instead. */
|
|
1607
1894
|
delete(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
|
|
1608
1895
|
}
|
|
1896
|
+
/** @deprecated Pass `bypassCache: true` to {@link AssetClient} instead. */
|
|
1609
1897
|
declare class UncachedAssetClient extends AssetClient {
|
|
1610
1898
|
constructor(options: Omit<ClientOptions & {
|
|
1611
1899
|
projectId: NonNullable<ClientOptions['projectId']>;
|
|
@@ -1619,6 +1907,10 @@ type AssetDefinition = {
|
|
|
1619
1907
|
namePlural: string;
|
|
1620
1908
|
};
|
|
1621
1909
|
declare const assetDefinitions: Record<AssetDefinitionType, AssetDefinition>;
|
|
1910
|
+
/** The supported media types that belong to each asset definition type. */
|
|
1911
|
+
declare const assetDefinitionMimeTypes: Record<AssetDefinitionType, string[]>;
|
|
1912
|
+
/** Resolves the asset definition type for a media type. Unrecognized media types resolve to `other`. */
|
|
1913
|
+
declare const getAssetDefinitionType: (mimeType: string) => AssetDefinitionType;
|
|
1622
1914
|
|
|
1623
1915
|
/**
|
|
1624
1916
|
* A union type of possible query parameters for the image delivery API.
|
|
@@ -1663,19 +1955,43 @@ type ImageFromTransformProps = XOR<{
|
|
|
1663
1955
|
y: number;
|
|
1664
1956
|
};
|
|
1665
1957
|
}>;
|
|
1958
|
+
/**
|
|
1959
|
+
* Fluent API for reading and transforming an asset image URL.
|
|
1960
|
+
*/
|
|
1961
|
+
interface ImageFromApi {
|
|
1962
|
+
/** Returns the image URL with the current transformations applied. */
|
|
1963
|
+
url: () => string;
|
|
1964
|
+
/** Applies image transformations and returns the same fluent API. */
|
|
1965
|
+
transform: (transformProps: ImageFromTransformProps) => ImageFromApi;
|
|
1966
|
+
}
|
|
1666
1967
|
/**
|
|
1667
1968
|
* A helper function for extracting the image URL from an asset and optionally
|
|
1668
1969
|
* applying transformation URL query parameters.
|
|
1669
1970
|
*/
|
|
1670
|
-
declare const imageFrom: (asset: Asset | AssetParamValueItem | string) =>
|
|
1671
|
-
url: () => string;
|
|
1672
|
-
transform: (transformProps: ImageFromTransformProps) => /*elided*/ any;
|
|
1673
|
-
};
|
|
1971
|
+
declare const imageFrom: (asset: Asset | AssetParamValueItem | string) => ImageFromApi;
|
|
1674
1972
|
|
|
1973
|
+
type AssetInputFields = NonNullable<NonNullable<AssetUpsertRequest['asset']>['fields']>;
|
|
1974
|
+
/**
|
|
1975
|
+
* The asset `fields` a write carries. The API assembles `url`, `mediaType`, `size`, `width` and
|
|
1976
|
+
* `height` from the attached file on every read, and the write schema rejects those along with
|
|
1977
|
+
* `custom`, so a write can neither send nor settle them.
|
|
1978
|
+
*
|
|
1979
|
+
* The CLI's asset comparator projects onto this same list, so a push only reports a difference a
|
|
1980
|
+
* push can act on.
|
|
1981
|
+
*/
|
|
1982
|
+
declare const WRITABLE_ASSET_FIELDS: readonly ["title", "description", "file", "focalPoint"];
|
|
1983
|
+
/**
|
|
1984
|
+
* Selects the asset fields a write carries, dropping the ones the API computes from the attached
|
|
1985
|
+
* file. Returns a new object rather than editing the asset it reads.
|
|
1986
|
+
*/
|
|
1987
|
+
declare const selectWritableAssetFields: (fields?: Asset["fields"]) => AssetInputFields;
|
|
1675
1988
|
/**
|
|
1676
1989
|
* Converts a content asset to a put content asset body that has only the properties expected to the PUT API.
|
|
1677
1990
|
* Removes things like author, stats, etc.
|
|
1678
1991
|
*/
|
|
1679
|
-
declare function convertAssetToPutAsset(asset:
|
|
1992
|
+
declare function convertAssetToPutAsset(asset: {
|
|
1993
|
+
asset: Pick<AssetGetResponseSingle['asset'], '_id' | '_dataResources' | '_name' | 'type' | 'labels' | 'fields'>;
|
|
1994
|
+
projectId: string;
|
|
1995
|
+
}): AssetUpsertRequest;
|
|
1680
1996
|
|
|
1681
|
-
export { type Asset, AssetClient, type AssetDefinitionType, type AssetDeleteRequest, type AssetGetRequest, type AssetGetRequestList, type AssetGetRequestSingle, type AssetGetResponse, type AssetGetResponseList, type AssetGetResponseSingle, type AssetParamValue, type AssetParamValueItem, type AssetUpsertRequest, type ImageDeliveryParams, type ImageFromTransformProps, UncachedAssetClient, assetDefinitions, convertAssetToPutAsset, imageFrom };
|
|
1997
|
+
export { type Asset, AssetClient, type AssetDefinitionType, type AssetDeleteRequest, type AssetGetRequest, type AssetGetRequestList, type AssetGetRequestSingle, type AssetGetResponse, type AssetGetResponseList, type AssetGetResponseSingle, type AssetParamValue, type AssetParamValueItem, type AssetUpsertRequest, type ImageDeliveryParams, type ImageFromApi, type ImageFromTransformProps, UncachedAssetClient, WRITABLE_ASSET_FIELDS, assetDefinitionMimeTypes, assetDefinitions, convertAssetToPutAsset, getAssetDefinitionType, imageFrom, selectWritableAssetFields };
|