@uniformdev/assets 19.186.1 → 19.186.2-alpha.14
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 +1375 -1
- package/dist/index.d.ts +1375 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,1304 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions } from '@uniformdev/context/api';
|
|
2
2
|
|
|
3
|
+
interface components$1 {
|
|
4
|
+
schemas: {
|
|
5
|
+
/** @description Public ID (used in code). Do not change after creation */
|
|
6
|
+
PublicIdProperty: string;
|
|
7
|
+
/** @description The definition of a component parameter */
|
|
8
|
+
ComponentDefinitionParameter: {
|
|
9
|
+
id: components$1["schemas"]["PublicIdProperty"];
|
|
10
|
+
/** @description Friendly name of the parameter */
|
|
11
|
+
name: string;
|
|
12
|
+
/** @description Appears next to the parameter in the Composition editor */
|
|
13
|
+
helpText?: string;
|
|
14
|
+
/** @description Type name of the parameter (provided by a Uniform integration) */
|
|
15
|
+
type: string;
|
|
16
|
+
/**
|
|
17
|
+
* @description If true, this property can have locale-specific values. If false or not defined,
|
|
18
|
+
* this property will have a single value that is shared for all locales
|
|
19
|
+
*/
|
|
20
|
+
localizable?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @description When `localizable` is true, this property controls the default localizability of the property.
|
|
23
|
+
* true - when the property has no existing value, it will be in 'single value' mode and not store locale specific values
|
|
24
|
+
* false/undefined - when the property has no existing value, it will store separate values for each enabled locale
|
|
25
|
+
*
|
|
26
|
+
* If `localized` is false, this has no effect.
|
|
27
|
+
*/
|
|
28
|
+
notLocalizedByDefault?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @description Enables creating additional conditional values for the parameter based on criteria such as dynamic inputs.
|
|
31
|
+
* When combined with a localized value, each locale has independent conditional values.
|
|
32
|
+
*
|
|
33
|
+
* When not defined, conditional values are not allowed.
|
|
34
|
+
*/
|
|
35
|
+
allowConditionalValues?: boolean;
|
|
36
|
+
/** @description The configuration object for the type (type-specific) */
|
|
37
|
+
typeConfig?: unknown;
|
|
38
|
+
};
|
|
39
|
+
/** @description The definition of a named component slot that can contain other components */
|
|
40
|
+
ComponentDefinitionSlot: {
|
|
41
|
+
id: components$1["schemas"]["PublicIdProperty"];
|
|
42
|
+
/** @description Friendly name of the slot */
|
|
43
|
+
name: string;
|
|
44
|
+
/** @description A list of component definition public IDs that are allowed in this named slot */
|
|
45
|
+
allowedComponents: string[];
|
|
46
|
+
/**
|
|
47
|
+
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, `allowedComponents` is irrelevant.
|
|
48
|
+
* If `allowAllComponents` is true, this value is ignored
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
inheritAllowedComponents: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @description When false or not defined, only components in `allowedComponents` may be added to this slot - and if `allowedComponents` is empty, nothing can be added.
|
|
55
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including `inheritAllowedComponents`
|
|
56
|
+
*/
|
|
57
|
+
allowAllComponents?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @description When not defined, or false: all patterns for components listed in `allowedComponents` are automatically allowed in the slot.
|
|
60
|
+
* When true: patterns for components listed in `allowedComponents` are not allowed in the slot unless explicitly added to `allowedComponents` as `$p:<patternid>`
|
|
61
|
+
*/
|
|
62
|
+
patternsInAllowedComponents?: boolean;
|
|
63
|
+
/** @description Minimum valid number of components in this slot */
|
|
64
|
+
minComponents?: number;
|
|
65
|
+
/** @description Maximum valid number of components in this slot */
|
|
66
|
+
maxComponents?: number;
|
|
67
|
+
};
|
|
68
|
+
/** @description The definition of a composition's slug settings */
|
|
69
|
+
ComponentDefinitionSlugSettings: {
|
|
70
|
+
/**
|
|
71
|
+
* @description Whether the slug is required
|
|
72
|
+
* no: slug is optional
|
|
73
|
+
* yes: slug is required
|
|
74
|
+
* disabled: slug is disabled and will not be shown in the editor
|
|
75
|
+
*
|
|
76
|
+
* @default no
|
|
77
|
+
* @enum {string}
|
|
78
|
+
*/
|
|
79
|
+
required?: "no" | "yes" | "disabled";
|
|
80
|
+
/**
|
|
81
|
+
* @description Slug uniqueness configuration.
|
|
82
|
+
* no = no unique constraint
|
|
83
|
+
* local = must be unique within this component type
|
|
84
|
+
* global = must be unique across all component types
|
|
85
|
+
*
|
|
86
|
+
* @enum {string}
|
|
87
|
+
*/
|
|
88
|
+
unique?: "no" | "local" | "global";
|
|
89
|
+
/** @description Regular expression slugs must match */
|
|
90
|
+
regularExpression?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @description Custom error message when regular expression validation fails.
|
|
93
|
+
* Has no effect if `regularExpression` is not set
|
|
94
|
+
*/
|
|
95
|
+
regularExpressionMessage?: string;
|
|
96
|
+
};
|
|
97
|
+
/** @description The definition of a component variant */
|
|
98
|
+
ComponentDefinitionVariant: {
|
|
99
|
+
id: components$1["schemas"]["PublicIdProperty"];
|
|
100
|
+
/** @description Friendly name of the variant */
|
|
101
|
+
name: string;
|
|
102
|
+
};
|
|
103
|
+
/** @description Permission set for a component definition */
|
|
104
|
+
ComponentDefinitionPermission: {
|
|
105
|
+
roleId: components$1["schemas"]["PublicIdProperty"];
|
|
106
|
+
/**
|
|
107
|
+
* @description Permission type for this permission ComponentDefinition:
|
|
108
|
+
* read | write | create | delete
|
|
109
|
+
*
|
|
110
|
+
* @enum {string}
|
|
111
|
+
*/
|
|
112
|
+
permission: "read" | "write" | "create" | "delete";
|
|
113
|
+
/** @description State of the component that this permission applies to */
|
|
114
|
+
state: number;
|
|
115
|
+
};
|
|
116
|
+
/** @description Defines a component type that can live on a Composition */
|
|
117
|
+
ComponentDefinition: {
|
|
118
|
+
id: components$1["schemas"]["PublicIdProperty"];
|
|
119
|
+
/** @description Friendly name of the component definition */
|
|
120
|
+
name: string;
|
|
121
|
+
/**
|
|
122
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
|
123
|
+
* @default screen
|
|
124
|
+
*/
|
|
125
|
+
icon?: string;
|
|
126
|
+
/**
|
|
127
|
+
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
|
128
|
+
* The parameter type must support being used as a title parameter for this to work
|
|
129
|
+
*
|
|
130
|
+
* @default null
|
|
131
|
+
*/
|
|
132
|
+
titleParameter?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* @description The public ID of the parameter whose value should be used as a thumbnail for compositions of this component in the UI
|
|
135
|
+
*
|
|
136
|
+
* @default null
|
|
137
|
+
*/
|
|
138
|
+
thumbnailParameter?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* @description Whether this component type can be the root of a composition. If false, this component is only used within slots on other components
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
canBeComposition?: boolean;
|
|
144
|
+
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries */
|
|
145
|
+
parameters?: components$1["schemas"]["ComponentDefinitionParameter"][];
|
|
146
|
+
/**
|
|
147
|
+
* Format: uuid
|
|
148
|
+
* @description Reference to the category this component definition belongs to
|
|
149
|
+
* @default null
|
|
150
|
+
*/
|
|
151
|
+
categoryId?: string | null;
|
|
152
|
+
/** @description Description of the component definition */
|
|
153
|
+
description?: string;
|
|
154
|
+
/** @description Description of the component definition */
|
|
155
|
+
previewImageUrl?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @description if this component uses team permissions or custom permissions
|
|
158
|
+
* @default true
|
|
159
|
+
*/
|
|
160
|
+
useTeamPermissions?: boolean;
|
|
161
|
+
/** @description Custom role permissions for this component definition */
|
|
162
|
+
permissions?: components$1["schemas"]["ComponentDefinitionPermission"][];
|
|
163
|
+
/** @description The named slots for this component; placement areas where arrays of other components can be added */
|
|
164
|
+
slots?: components$1["schemas"]["ComponentDefinitionSlot"][];
|
|
165
|
+
slugSettings?: components$1["schemas"]["ComponentDefinitionSlugSettings"];
|
|
166
|
+
/** @description Default component instance value */
|
|
167
|
+
defaults?: components$1["schemas"]["ComponentInstance"] | null;
|
|
168
|
+
/** @description Named variants for this component; enables the creation of visual variants that use the same parameter data */
|
|
169
|
+
variants?: components$1["schemas"]["ComponentDefinitionVariant"][];
|
|
170
|
+
/** @description Created date string for this definition (ignored for writes) */
|
|
171
|
+
created?: string;
|
|
172
|
+
/** @description Last modified date string for this definition (ignored for writes) */
|
|
173
|
+
updated?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Format: uuid
|
|
176
|
+
* @description ID of the workflow that instances of this component definition will use by default. When not set, no workflow is attached
|
|
177
|
+
*/
|
|
178
|
+
workflowId?: string;
|
|
179
|
+
};
|
|
180
|
+
/** @description Defines a content type */
|
|
181
|
+
ContentType: {
|
|
182
|
+
id: components$1["schemas"]["PublicIdProperty"];
|
|
183
|
+
/** @description Friendly name of the content type */
|
|
184
|
+
name: string;
|
|
185
|
+
/**
|
|
186
|
+
* @description 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.
|
|
187
|
+
* The field type must support being used as an entry name for this to work
|
|
188
|
+
*/
|
|
189
|
+
entryName?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* @description The public ID of the field whose value should be used as a thumbnail for entries of this content type in the UI
|
|
192
|
+
*
|
|
193
|
+
* @default null
|
|
194
|
+
*/
|
|
195
|
+
thumbnailField?: string | null;
|
|
196
|
+
/** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
|
|
197
|
+
fields?: components$1["schemas"]["ComponentDefinitionParameter"][];
|
|
198
|
+
/** @description Description of the content type */
|
|
199
|
+
description?: string;
|
|
200
|
+
/**
|
|
201
|
+
* @description Icon name for the content type (e.g. 'screen')
|
|
202
|
+
* @default file-document
|
|
203
|
+
*/
|
|
204
|
+
icon?: string;
|
|
205
|
+
/** @description Created date string for this content type (ignored for writes) */
|
|
206
|
+
created?: string;
|
|
207
|
+
/** @description Last modified date string for this content type (ignored for writes) */
|
|
208
|
+
updated?: string;
|
|
209
|
+
slugSettings?: components$1["schemas"]["ComponentDefinitionSlugSettings"];
|
|
210
|
+
/**
|
|
211
|
+
* @description The definition type of this content type (block or content type)
|
|
212
|
+
* @default contentType
|
|
213
|
+
* @enum {string}
|
|
214
|
+
*/
|
|
215
|
+
type?: "contentType" | "block";
|
|
216
|
+
/**
|
|
217
|
+
* @description if this content type uses team permissions or custom permissions
|
|
218
|
+
* @default true
|
|
219
|
+
*/
|
|
220
|
+
useTeamPermissions?: boolean;
|
|
221
|
+
/** @description Custom role permissions for this content type */
|
|
222
|
+
permissions?: components$1["schemas"]["ComponentDefinitionPermission"][];
|
|
223
|
+
/**
|
|
224
|
+
* Format: uuid
|
|
225
|
+
* @description ID of the workflow that instances of this content type will use by default. When not set, no workflow is attached
|
|
226
|
+
*/
|
|
227
|
+
workflowId?: string;
|
|
228
|
+
};
|
|
229
|
+
/** @description Defines an editable parameter on a component */
|
|
230
|
+
ComponentParameter: {
|
|
231
|
+
/** @description The value of the parameter. Any JSON-serializable value is acceptable */
|
|
232
|
+
value?: unknown;
|
|
233
|
+
/** @description The type of the parameter. Determines how it is displayed when editing and tells the consumer how to process it */
|
|
234
|
+
type: string;
|
|
235
|
+
/** @deprecated */
|
|
236
|
+
connectedData?: components$1["schemas"]["DataElementConnectionDefinition"];
|
|
237
|
+
/**
|
|
238
|
+
* @description Locale-specific values for this parameter. Keys are locale codes, and values are the `value` in that locale.
|
|
239
|
+
* Note that locales must be registered on the entry/composition `_locales` before being used
|
|
240
|
+
*/
|
|
241
|
+
locales?: {
|
|
242
|
+
[key: string]: unknown;
|
|
243
|
+
};
|
|
244
|
+
conditions?: components$1["schemas"]["ComponentParameterConditions"];
|
|
245
|
+
/** @description Locale-specific conditional values for this parameter. Keys are locale codes, and values are the `conditions` for that locale. */
|
|
246
|
+
localesConditions?: {
|
|
247
|
+
[key: string]: components$1["schemas"]["ComponentParameterConditions"];
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* @description Array of alternate values which are based on conditions.
|
|
252
|
+
*
|
|
253
|
+
* When requested with an explicit locale parameter, or via the route API:
|
|
254
|
+
* * Conditions are evaluated sequentially and the first match is used. If a match is found, the conditions are eliminated.
|
|
255
|
+
* * If no conditions match, the `value` property is used.
|
|
256
|
+
* * If a condition cannot be evaluated yet (i.e. a client-side criteria), it is left alone.
|
|
257
|
+
*
|
|
258
|
+
* When no locale is passed to a non-route API, conditions are not processed and all conditions are returned.
|
|
259
|
+
*/
|
|
260
|
+
ComponentParameterConditions: components$1["schemas"]["ComponentParameterConditionalValue"][];
|
|
261
|
+
/** @description Defines a conditional value for a component parameter */
|
|
262
|
+
ComponentParameterConditionalValue: {
|
|
263
|
+
when: components$1["schemas"]["VisibilityCriteriaGroup"];
|
|
264
|
+
/**
|
|
265
|
+
* @description The value of the parameter. Any JSON-serializable value is acceptable.
|
|
266
|
+
* A value of `null` will cause the parameter value to be removed, if it matches.
|
|
267
|
+
*/
|
|
268
|
+
value: unknown;
|
|
269
|
+
/**
|
|
270
|
+
* @description Unique sequence identifier of the conditional value within the component parameter.
|
|
271
|
+
* This value must be unique within the conditional values array, and it should not change after a condition is created.
|
|
272
|
+
*/
|
|
273
|
+
id: number;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* @deprecated
|
|
277
|
+
* @description beta functionality subject to change
|
|
278
|
+
*/
|
|
279
|
+
VisibilityCriteriaGroup: {
|
|
280
|
+
/**
|
|
281
|
+
* @description The boolean operator to join the clauses with. Defaults to & if not specified.
|
|
282
|
+
* @enum {string}
|
|
283
|
+
*/
|
|
284
|
+
op?: "&" | "|";
|
|
285
|
+
clauses: (components$1["schemas"]["VisibilityCriteria"] | components$1["schemas"]["VisibilityCriteriaGroup"])[];
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* @deprecated
|
|
289
|
+
* @description beta functionality subject to change
|
|
290
|
+
*/
|
|
291
|
+
VisibilityCriteria: {
|
|
292
|
+
/** @description The rule type to execute */
|
|
293
|
+
rule: string;
|
|
294
|
+
/**
|
|
295
|
+
* @description The source value of the rule.
|
|
296
|
+
* 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.
|
|
297
|
+
*/
|
|
298
|
+
source?: string;
|
|
299
|
+
/** @description The rule-definition-specific operator to test against */
|
|
300
|
+
op: string;
|
|
301
|
+
/** @description 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. */
|
|
302
|
+
value: string | string[];
|
|
303
|
+
};
|
|
304
|
+
/** @description Defines a connection to a dynamic token on a data resource */
|
|
305
|
+
DataElementConnectionDefinition: {
|
|
306
|
+
/** @description A JSON Pointer expression that defines the data resource dynamic token value */
|
|
307
|
+
pointer: string;
|
|
308
|
+
/**
|
|
309
|
+
* @description The syntax used to select the dynamic token to bind to
|
|
310
|
+
* @enum {string}
|
|
311
|
+
*/
|
|
312
|
+
syntax: "jptr";
|
|
313
|
+
/**
|
|
314
|
+
* @description The action to take if the dynamic token cannot be resolved
|
|
315
|
+
* - t: TOKEN: Removes the failed dynamic token value, leaving the rest of the property value, if any, intact [default]
|
|
316
|
+
* NOTE: If the _only_ value in the property is a dynamic token, the property value is removed (as with 'p' below)
|
|
317
|
+
* NOTE: If the _failureDefault_ property is also set, that default value will be used instead of removing the token.
|
|
318
|
+
* this only applies when the failureAction is 't' or undefined, the default is otherwise ignored
|
|
319
|
+
* - p: PROPERTY: Removes the entire property value, including any other dynamic tokens or static values in the property
|
|
320
|
+
* - c: COMPONENT: Removes the whole parent component or block that contains the property.
|
|
321
|
+
* NOTE: If a 'component' failure occurs on the root component of a composition, or an entry,
|
|
322
|
+
* it is treated as an 'a' failure because removing the root means we must remove all
|
|
323
|
+
* - 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
|
|
324
|
+
*
|
|
325
|
+
* @enum {string}
|
|
326
|
+
*/
|
|
327
|
+
failureAction?: "t" | "p" | "c" | "a";
|
|
328
|
+
/**
|
|
329
|
+
* @description How to report when the dynamic token cannot be resolved
|
|
330
|
+
* - e: ERROR: Report an error message (this will prevent publishing)
|
|
331
|
+
* - w: WARNING: Report a warning message [default]
|
|
332
|
+
* - i: INFO: Log an informative message (failure is expected/normal, i.e. optional data)
|
|
333
|
+
*
|
|
334
|
+
* @enum {string}
|
|
335
|
+
*/
|
|
336
|
+
failureLogLevel?: "e" | "w" | "i";
|
|
337
|
+
/**
|
|
338
|
+
* @description The default value to use if the dynamic token cannot be resolved.
|
|
339
|
+
* This is only used if the failureAction is the default (undefined, or explicitly token)
|
|
340
|
+
*/
|
|
341
|
+
failureDefault?: string;
|
|
342
|
+
};
|
|
343
|
+
/** @description Defines the shape of a component instance served by the composition API */
|
|
344
|
+
ComponentInstance: {
|
|
345
|
+
/** @description Type of the component instance (public_id of its definition) */
|
|
346
|
+
type: string;
|
|
347
|
+
/** @description Component parameter values for the component instance */
|
|
348
|
+
parameters?: {
|
|
349
|
+
[key: string]: components$1["schemas"]["ComponentParameter"];
|
|
350
|
+
};
|
|
351
|
+
/** @description Public ID of alternate visual appearance for this component, if any selected */
|
|
352
|
+
variant?: string;
|
|
353
|
+
/** @description Slots containing any child components */
|
|
354
|
+
slots?: {
|
|
355
|
+
[key: string]: components$1["schemas"]["ComponentInstance"][];
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* @description Unique identifier of the component within the composition.
|
|
359
|
+
* No assumptions should be made about the format of this value other than "it will be unique."
|
|
360
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
|
361
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you
|
|
362
|
+
*/
|
|
363
|
+
_id?: string;
|
|
364
|
+
/** @description Indicates this component instance should be sourced from a pattern library pattern */
|
|
365
|
+
_pattern?: string;
|
|
366
|
+
_dataResources?: components$1["schemas"]["DataResourceDefinitions"];
|
|
367
|
+
/**
|
|
368
|
+
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
|
369
|
+
* Means nothing for PUTs; it will be ignored
|
|
370
|
+
*/
|
|
371
|
+
_patternDataResources?: {
|
|
372
|
+
[key: string]: components$1["schemas"]["DataResourceDefinition"];
|
|
373
|
+
};
|
|
374
|
+
_patternError?: components$1["schemas"]["PatternError"];
|
|
375
|
+
/**
|
|
376
|
+
* @description Defines patch overrides to component IDs that live in the composition.
|
|
377
|
+
* This can be used to override parameters that are defined on patterns,
|
|
378
|
+
* including nested patterns, with values that are specific to this composition.
|
|
379
|
+
* The keys in this object are component IDs.
|
|
380
|
+
* Overrides are applied from the top down, so for example if both the composition
|
|
381
|
+
* and a pattern on the composition define an override on a nested pattern,
|
|
382
|
+
* the composition's override replaces the pattern's.
|
|
383
|
+
*
|
|
384
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
385
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
386
|
+
*/
|
|
387
|
+
_overrides?: {
|
|
388
|
+
[key: string]: components$1["schemas"]["ComponentOverride"];
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* @description When used on a pattern, defines how the pattern's parameters may be overridden
|
|
392
|
+
* by consumers of the pattern.
|
|
393
|
+
*
|
|
394
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
395
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
396
|
+
*/
|
|
397
|
+
_overridability?: components$1["schemas"]["ComponentOverridability"];
|
|
398
|
+
/** @description Array of locales that have data defined. Only set for pattern references or composition defaults */
|
|
399
|
+
_locales?: string[];
|
|
400
|
+
};
|
|
401
|
+
/** @description Defines the shape of the root component in a composition */
|
|
402
|
+
RootComponentInstance: {
|
|
403
|
+
/** @description Type of the component instance (public_id of its definition) */
|
|
404
|
+
type: string;
|
|
405
|
+
/** @description Component parameter values for the component instance */
|
|
406
|
+
parameters?: {
|
|
407
|
+
[key: string]: components$1["schemas"]["ComponentParameter"];
|
|
408
|
+
};
|
|
409
|
+
/** @description Public ID of alternate visual appearance for this component, if any selected */
|
|
410
|
+
variant?: string;
|
|
411
|
+
/** @description Project map nodes associated with this component. Must pass withProjectMapNodes parameter to be populated */
|
|
412
|
+
projectMapNodes?: components$1["schemas"]["CompositionProjectMapNodeInfo"][];
|
|
413
|
+
/** @description Slots containing any child components */
|
|
414
|
+
slots?: {
|
|
415
|
+
[key: string]: components$1["schemas"]["ComponentInstance"][];
|
|
416
|
+
};
|
|
417
|
+
/** @description The public UUID of the composition */
|
|
418
|
+
_id: string;
|
|
419
|
+
/** @description Slug pattern of this component */
|
|
420
|
+
_slug?: string | null;
|
|
421
|
+
/** @description Friendly name of this component */
|
|
422
|
+
_name: string;
|
|
423
|
+
/** @description Name of the author of the most recent change */
|
|
424
|
+
_author?: string;
|
|
425
|
+
/** @description Identity subject of the author of the most recent change */
|
|
426
|
+
_authorSubject?: string;
|
|
427
|
+
/** @description Name of the original creator */
|
|
428
|
+
_creator?: string;
|
|
429
|
+
/** @description Identity subject of the original creator */
|
|
430
|
+
_creatorSubject?: string;
|
|
431
|
+
/** @description Indicates this component instance should be sourced from a pattern library pattern */
|
|
432
|
+
_pattern?: string;
|
|
433
|
+
/**
|
|
434
|
+
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
|
435
|
+
* Means nothing for PUTs; it will be ignored
|
|
436
|
+
*/
|
|
437
|
+
_patternDataResources?: {
|
|
438
|
+
[key: string]: components$1["schemas"]["DataResourceDefinition"];
|
|
439
|
+
};
|
|
440
|
+
_dataResources?: components$1["schemas"]["DataResourceDefinitions"];
|
|
441
|
+
_patternError?: components$1["schemas"]["PatternError"];
|
|
442
|
+
/**
|
|
443
|
+
* @description Defines patch overrides to component IDs that live in the composition.
|
|
444
|
+
* This can be used to override parameters that are defined on patterns,
|
|
445
|
+
* including nested patterns, with values that are specific to this composition.
|
|
446
|
+
* The keys in this object are component IDs.
|
|
447
|
+
* Overrides are applied from the top down, so for example if both the composition
|
|
448
|
+
* and a pattern on the composition define an override on a nested pattern,
|
|
449
|
+
* the composition's override replaces the pattern's.
|
|
450
|
+
*
|
|
451
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
452
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
453
|
+
*/
|
|
454
|
+
_overrides?: {
|
|
455
|
+
[key: string]: components$1["schemas"]["ComponentOverride"];
|
|
456
|
+
};
|
|
457
|
+
/**
|
|
458
|
+
* @description When used on a pattern, defines how the pattern's parameters may be overridden
|
|
459
|
+
* by consumers of the pattern.
|
|
460
|
+
*
|
|
461
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
462
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
463
|
+
*/
|
|
464
|
+
_overridability?: components$1["schemas"]["ComponentOverridability"];
|
|
465
|
+
/** @description Array of locales which have data defined on the composition. If empty, the current default locale implicitly has data */
|
|
466
|
+
_locales?: string[];
|
|
467
|
+
};
|
|
468
|
+
/**
|
|
469
|
+
* @description Defines how to override a specific component.
|
|
470
|
+
*
|
|
471
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
472
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
473
|
+
*/
|
|
474
|
+
ComponentOverride: {
|
|
475
|
+
parameters?: {
|
|
476
|
+
[key: string]: components$1["schemas"]["ComponentParameter"];
|
|
477
|
+
};
|
|
478
|
+
slots?: {
|
|
479
|
+
[key: string]: components$1["schemas"]["ComponentInstance"][];
|
|
480
|
+
};
|
|
481
|
+
variant?: string;
|
|
482
|
+
};
|
|
483
|
+
/**
|
|
484
|
+
* @description Defines how a component on a pattern may have its values overridden.
|
|
485
|
+
* NOTE: Data resources' overridability is defined in the data resource definition, not here.
|
|
486
|
+
*
|
|
487
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
488
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
489
|
+
*/
|
|
490
|
+
ComponentOverridability: {
|
|
491
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID */
|
|
492
|
+
parameters?: {
|
|
493
|
+
[key: string]: components$1["schemas"]["OverrideOptions"];
|
|
494
|
+
};
|
|
495
|
+
/** @description Allows overriding a display variant is allowed if it is defined on the component the pattern is derived from. Default = false */
|
|
496
|
+
variants?: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* @description If true, parameters that are not overridable will be hidden by default on pattern instances' editors.
|
|
499
|
+
* If false, all parameters will be shown on pattern instances' editors, but locked parameters will be read-only.
|
|
500
|
+
* If not set, the default is false
|
|
501
|
+
*/
|
|
502
|
+
hideLockedParameters?: boolean;
|
|
503
|
+
};
|
|
504
|
+
/**
|
|
505
|
+
* @description Whether a parameter is overridable
|
|
506
|
+
*
|
|
507
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
508
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice
|
|
509
|
+
*
|
|
510
|
+
* @enum {string}
|
|
511
|
+
*/
|
|
512
|
+
OverrideOptions: "yes" | "no";
|
|
513
|
+
/** @description Additional set of headers, parameters, variables, etc to be used for data resolving in the context like e.g. Unpublished Data. */
|
|
514
|
+
AlternativeDataSourceData: {
|
|
515
|
+
/** @description Base resource URL of the data source. No trailing slash */
|
|
516
|
+
baseUrl: string;
|
|
517
|
+
/** @description HTTP headers to pass with requests to the data source */
|
|
518
|
+
headers?: {
|
|
519
|
+
key: string;
|
|
520
|
+
value: string;
|
|
521
|
+
omitIfEmpty?: boolean;
|
|
522
|
+
}[];
|
|
523
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys */
|
|
524
|
+
parameters?: {
|
|
525
|
+
key: string;
|
|
526
|
+
value: string;
|
|
527
|
+
omitIfEmpty?: boolean;
|
|
528
|
+
}[];
|
|
529
|
+
/** @description Variables needed to make calls to the data source */
|
|
530
|
+
variables?: {
|
|
531
|
+
[key: string]: components$1["schemas"]["DataVariableDefinition"];
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
|
536
|
+
* These are created in the UI and shared across a whole project.
|
|
537
|
+
* NOTE: If you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
|
538
|
+
* for all header, parameter, and variable values to obscure the actual encrypted secret value
|
|
539
|
+
*/
|
|
540
|
+
DataSource: {
|
|
541
|
+
/** @description Public ID of the data source */
|
|
542
|
+
id: string;
|
|
543
|
+
/** @description Display name of the data source */
|
|
544
|
+
displayName: string;
|
|
545
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
|
546
|
+
connectorType: string;
|
|
547
|
+
/** @description Base resource URL of the data source. No trailing slash */
|
|
548
|
+
baseUrl: string;
|
|
549
|
+
/** @description HTTP headers to pass with requests to the data source */
|
|
550
|
+
headers?: {
|
|
551
|
+
key: string;
|
|
552
|
+
value: string;
|
|
553
|
+
}[];
|
|
554
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys */
|
|
555
|
+
parameters?: {
|
|
556
|
+
key: string;
|
|
557
|
+
value: string;
|
|
558
|
+
}[];
|
|
559
|
+
/** @description Variables needed to make calls to the data source */
|
|
560
|
+
variables?: {
|
|
561
|
+
[key: string]: components$1["schemas"]["DataVariableDefinition"];
|
|
562
|
+
};
|
|
563
|
+
/**
|
|
564
|
+
* @description Mapping of locale codes to data source locale codes. Keys are Uniform locale codes, values are data source locale codes.
|
|
565
|
+
* If a locale is not mapped, it will be passed through to the data source as-is
|
|
566
|
+
*/
|
|
567
|
+
localeMapping?: {
|
|
568
|
+
[key: string]: string;
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* @description If true, data source will require additional credentials to access unpublished data.
|
|
572
|
+
* If false, no additional data source credentials are required and data resources of this data source won't be able to access unpublished data.
|
|
573
|
+
*/
|
|
574
|
+
enableUnpublishedMode?: boolean;
|
|
575
|
+
/** @description 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 */
|
|
576
|
+
customPublic?: {
|
|
577
|
+
[key: string]: unknown;
|
|
578
|
+
};
|
|
579
|
+
/** @description 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 */
|
|
580
|
+
custom?: {
|
|
581
|
+
[key: string]: unknown;
|
|
582
|
+
};
|
|
583
|
+
/** @description Different connector detail variants to use in the different contexts like e.g. Unpublished Data */
|
|
584
|
+
variants?: {
|
|
585
|
+
unpublished?: components$1["schemas"]["AlternativeDataSourceData"];
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
/** @description 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 */
|
|
589
|
+
DataType: {
|
|
590
|
+
/** @description Public ID of the data type */
|
|
591
|
+
id: string;
|
|
592
|
+
/** @description Display name of the data type */
|
|
593
|
+
displayName: string;
|
|
594
|
+
/** @description Public ID of the associated data source */
|
|
595
|
+
dataSourceId: string;
|
|
596
|
+
/**
|
|
597
|
+
* @description A connector-specific archetype for this data type; used to select UI as well as perform any
|
|
598
|
+
* necessary post-processing on the response. e.g. 'cms-entry', 'cms-query'. Can be undefined if
|
|
599
|
+
* no special UI or processing is required
|
|
600
|
+
*/
|
|
601
|
+
archetype?: string;
|
|
602
|
+
allowedOnComponents?: string[];
|
|
603
|
+
/** @description 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 */
|
|
604
|
+
path: string;
|
|
605
|
+
/** @description Time-to-live (in seconds) for the resource data cache */
|
|
606
|
+
ttl?: number;
|
|
607
|
+
/** @description A key for the resource data cache purging */
|
|
608
|
+
purgeKey?: string;
|
|
609
|
+
/** @description 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 */
|
|
610
|
+
badgeIconUrl?: string;
|
|
611
|
+
/** @description HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys */
|
|
612
|
+
headers?: {
|
|
613
|
+
key: string;
|
|
614
|
+
value: string;
|
|
615
|
+
omitIfEmpty?: boolean;
|
|
616
|
+
}[];
|
|
617
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys */
|
|
618
|
+
parameters?: {
|
|
619
|
+
key: string;
|
|
620
|
+
value: string;
|
|
621
|
+
omitIfEmpty?: boolean;
|
|
622
|
+
}[];
|
|
623
|
+
/** @description Body to pass with requests to the data type (ignored unless the method is POST) */
|
|
624
|
+
body?: string;
|
|
625
|
+
/**
|
|
626
|
+
* @description HTTP method to use with requests to the data type
|
|
627
|
+
* @default GET
|
|
628
|
+
* @enum {string}
|
|
629
|
+
*/
|
|
630
|
+
method: "GET" | "POST" | "HEAD";
|
|
631
|
+
/** @description Variables needed to make calls to the data type. Merged with variables from the data source, overriding identical keys */
|
|
632
|
+
variables?: {
|
|
633
|
+
[key: string]: components$1["schemas"]["DataVariableDefinition"];
|
|
634
|
+
};
|
|
635
|
+
/** @description Custom configuration specific to the data source being defined */
|
|
636
|
+
custom?: {
|
|
637
|
+
[key: string]: unknown;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
/** @description Defines the shape of a data variable on a Data Source or Data Type */
|
|
641
|
+
DataVariableDefinition: {
|
|
642
|
+
/** @description Display name of the data variable */
|
|
643
|
+
displayName?: string;
|
|
644
|
+
/** @description Explanatory text that is provided to the data resource editor to explain what this variable does */
|
|
645
|
+
helpText?: string;
|
|
646
|
+
/**
|
|
647
|
+
* @description 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
|
|
648
|
+
* @default text
|
|
649
|
+
*/
|
|
650
|
+
type?: string;
|
|
651
|
+
/** @description Default value of the data variable */
|
|
652
|
+
default: string;
|
|
653
|
+
/** @description 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 */
|
|
654
|
+
order?: number;
|
|
655
|
+
/**
|
|
656
|
+
* @description An optional arbitrary human readable source identifier to describe where this variable is from.
|
|
657
|
+
* Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'
|
|
658
|
+
*/
|
|
659
|
+
source?: string;
|
|
660
|
+
};
|
|
661
|
+
/**
|
|
662
|
+
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
|
663
|
+
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key)
|
|
664
|
+
*/
|
|
665
|
+
DataResourceDefinitions: {
|
|
666
|
+
[key: string]: components$1["schemas"]["DataResourceDefinition"];
|
|
667
|
+
};
|
|
668
|
+
/** @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters */
|
|
669
|
+
DataResourceDefinition: {
|
|
670
|
+
/** @description Public ID of the data type that provides this data */
|
|
671
|
+
type: string;
|
|
672
|
+
/** @description 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 */
|
|
673
|
+
isPatternParameter?: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
|
676
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
|
677
|
+
* If isPatternParameter is false or undefined, this has no meaning
|
|
678
|
+
*/
|
|
679
|
+
ignorePatternParameterDefault?: boolean;
|
|
680
|
+
/**
|
|
681
|
+
* @description When true, the data resource does not create an error forcing the choosing of override value when there is no default.
|
|
682
|
+
* If isPatternParameter is false or undefined, or if ignorePatternParameterDefault is false, this has no meaning
|
|
683
|
+
*/
|
|
684
|
+
optionalPatternParameter?: boolean;
|
|
685
|
+
/**
|
|
686
|
+
* @description Resolve this data resource with draft mode content. TBD
|
|
687
|
+
*
|
|
688
|
+
* @enum {string}
|
|
689
|
+
*/
|
|
690
|
+
dataSourceVariant?: "unpublished";
|
|
691
|
+
variables?: components$1["schemas"]["DataResourceVariables"];
|
|
692
|
+
};
|
|
693
|
+
/** @description Variable values for a data resource */
|
|
694
|
+
DataResourceVariables: {
|
|
695
|
+
[key: string]: string;
|
|
696
|
+
};
|
|
697
|
+
/**
|
|
698
|
+
* @description Describes why the pattern could not be resolved, if a pattern could not be resolved. For PUTs, this is allowed but ignored.
|
|
699
|
+
* CYCLIC: A cyclic pattern graph was detected, which could not be resolved because it would cause an infinite loop.
|
|
700
|
+
* NOTFOUND: The pattern ID referenced could not be found. It may have been deleted, en published yet.
|
|
701
|
+
* Means nothing for PUTs; it will be ignored
|
|
702
|
+
*
|
|
703
|
+
* @enum {string}
|
|
704
|
+
*/
|
|
705
|
+
PatternError: "NOTFOUND" | "CYCLIC";
|
|
706
|
+
HistoryApiResponse: {
|
|
707
|
+
/**
|
|
708
|
+
* @description 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.
|
|
709
|
+
* If this is undefined then no more results are available
|
|
710
|
+
*/
|
|
711
|
+
cursor?: string;
|
|
712
|
+
/** @description If more history is available than your plan allows, and additional entries are available by upgrading, this will be true */
|
|
713
|
+
truncated?: boolean;
|
|
714
|
+
/** @description Version history entries */
|
|
715
|
+
results?: components$1["schemas"]["HistoryEntry"][];
|
|
716
|
+
};
|
|
717
|
+
HistoryEntry: {
|
|
718
|
+
/** @description The version ID of the entity. This can be used to fetch the version's data via the entity API */
|
|
719
|
+
versionId: string;
|
|
720
|
+
/** @description The timestamp when the version was created in epoch milliseconds */
|
|
721
|
+
timestamp: number;
|
|
722
|
+
/** @description The name (full name) of the user who created the version */
|
|
723
|
+
authorName: string;
|
|
724
|
+
authorIsApiKey: boolean;
|
|
725
|
+
/** @description The state of the entity when the history entry was made */
|
|
726
|
+
state: number;
|
|
727
|
+
};
|
|
728
|
+
/** @description Category for tagging canvas entities */
|
|
729
|
+
Category: {
|
|
730
|
+
/**
|
|
731
|
+
* Format: uuid
|
|
732
|
+
* @description Unique identifier for the category
|
|
733
|
+
*/
|
|
734
|
+
id: string;
|
|
735
|
+
/** @description Display name of the category */
|
|
736
|
+
name: string;
|
|
737
|
+
/**
|
|
738
|
+
* @description 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
|
|
739
|
+
* @default 0
|
|
740
|
+
*/
|
|
741
|
+
order?: number;
|
|
742
|
+
};
|
|
743
|
+
/** @description Project map node information related to a component */
|
|
744
|
+
CompositionProjectMapNodeInfo: {
|
|
745
|
+
/**
|
|
746
|
+
* Format: uuid
|
|
747
|
+
* @description Unique identifier for the project map node
|
|
748
|
+
*/
|
|
749
|
+
id: string;
|
|
750
|
+
/**
|
|
751
|
+
* @description Fallback path of the project map node.
|
|
752
|
+
* Note that the node may have matched via a locale-specific path which is in the `locales` object
|
|
753
|
+
*/
|
|
754
|
+
path: string;
|
|
755
|
+
/**
|
|
756
|
+
* Format: uuid
|
|
757
|
+
* @description Unique identifier for the project map that this node belongs to
|
|
758
|
+
*/
|
|
759
|
+
projectMapId: string;
|
|
760
|
+
data?: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeData"];
|
|
761
|
+
/**
|
|
762
|
+
* @description Locale-specific paths of the project map node.
|
|
763
|
+
* Keys are locale codes
|
|
764
|
+
*/
|
|
765
|
+
locales?: {
|
|
766
|
+
[key: string]: {
|
|
767
|
+
/** @description Locale-specific path of the project map node */
|
|
768
|
+
path: string;
|
|
769
|
+
/** @description Whether the path is inherited from a parent node which defined a path segment in this locale */
|
|
770
|
+
inherited: boolean;
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
/** @description AI Prompt definition */
|
|
775
|
+
Prompt: {
|
|
776
|
+
/**
|
|
777
|
+
* Format: uuid
|
|
778
|
+
* @description Unique identifier for the prompt
|
|
779
|
+
*/
|
|
780
|
+
id: string;
|
|
781
|
+
/** @description Unique identifier for the integration that this prompt belongs to */
|
|
782
|
+
integrationType: string;
|
|
783
|
+
/** @description Name for the prompt */
|
|
784
|
+
name?: string | null;
|
|
785
|
+
/** @description Text for the prompt */
|
|
786
|
+
text?: string | null;
|
|
787
|
+
/** @description Data for the prompt */
|
|
788
|
+
data?: {
|
|
789
|
+
[key: string]: unknown;
|
|
790
|
+
} | null;
|
|
791
|
+
/** @description Turn off/on prompt */
|
|
792
|
+
enabled?: boolean | null;
|
|
793
|
+
/** @description Integration default prompt */
|
|
794
|
+
builtIn?: boolean | null;
|
|
795
|
+
/** @description Supported parameter types */
|
|
796
|
+
parameterTypes?: string[] | null;
|
|
797
|
+
};
|
|
798
|
+
/** @description Definition of a workflow that can be assigned to entities */
|
|
799
|
+
WorkflowDefinition: {
|
|
800
|
+
/**
|
|
801
|
+
* Format: uuid
|
|
802
|
+
* @description Unique identifier of the workflow definition
|
|
803
|
+
*/
|
|
804
|
+
id: string;
|
|
805
|
+
/** @description Workflow name */
|
|
806
|
+
name: string;
|
|
807
|
+
/**
|
|
808
|
+
* Format: uuid
|
|
809
|
+
* @description The ID of the initial stage in the stages object.
|
|
810
|
+
*/
|
|
811
|
+
initialStage: string;
|
|
812
|
+
/** @description All stages of the workflow */
|
|
813
|
+
stages: {
|
|
814
|
+
[key: string]: components$1["schemas"]["WorkflowStage"];
|
|
815
|
+
};
|
|
816
|
+
/** @description Last modified ISO date string for this definition (ignored for writes) */
|
|
817
|
+
modified?: string;
|
|
818
|
+
/** @description Created ISO date string for this definition (ignored for writes) */
|
|
819
|
+
created?: string;
|
|
820
|
+
/**
|
|
821
|
+
* @description Name of the original creator of the workflow.
|
|
822
|
+
* If undefined, the user has been removed from the team.
|
|
823
|
+
* Ignored for writes
|
|
824
|
+
*/
|
|
825
|
+
createdBy?: string;
|
|
826
|
+
/**
|
|
827
|
+
* @description Name of the last modifier of the workflow.
|
|
828
|
+
* If undefined, the user has been removed from the team.
|
|
829
|
+
* Ignored for writes
|
|
830
|
+
*/
|
|
831
|
+
modifiedBy?: string;
|
|
832
|
+
};
|
|
833
|
+
/** @description Definition of a stage in a workflow */
|
|
834
|
+
WorkflowStage: {
|
|
835
|
+
/** @description Name of the stage */
|
|
836
|
+
name: string;
|
|
837
|
+
/**
|
|
838
|
+
* @description Defines roles which have permissions to this workflow stage
|
|
839
|
+
* NOTE: Being able to write or publish to entities in a workflow stage requires both core write or publish permissions,
|
|
840
|
+
* 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
|
|
841
|
+
* listed here, the stage is read-only and publishing is disabled
|
|
842
|
+
*/
|
|
843
|
+
permissions: {
|
|
844
|
+
[key: string]: components$1["schemas"]["WorkflowStagePermission"];
|
|
845
|
+
};
|
|
846
|
+
/**
|
|
847
|
+
* @description When true, transitioning into this stage from a different stage will automatically publish the entity.
|
|
848
|
+
* 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.
|
|
849
|
+
* Setting this to true is equivalent to setting requireValidity to true, as publishing cannot be performed with validation errors.
|
|
850
|
+
* NOTE: This is not executed by direct API calls. Only the Uniform UI performs this action
|
|
851
|
+
*/
|
|
852
|
+
autoPublish?: boolean;
|
|
853
|
+
/**
|
|
854
|
+
* @description When true, transitioning into this stage from a different stage will require the entity to have no validation errors.
|
|
855
|
+
* If the entity is not valid, the transition will not be allowed.
|
|
856
|
+
* NOTE: This is not executed by direct API calls. Only the Uniform UI performs this action
|
|
857
|
+
*/
|
|
858
|
+
requireValidity?: boolean;
|
|
859
|
+
/**
|
|
860
|
+
* @description Defines transitions to other stages
|
|
861
|
+
* Every stage must define at least one transition, to avoid creating a workflow that
|
|
862
|
+
* has a stage that can never be escaped
|
|
863
|
+
*/
|
|
864
|
+
transitions: components$1["schemas"]["WorkflowStageTransition"][];
|
|
865
|
+
/**
|
|
866
|
+
* @description Icon name for the stage (e.g. 'chevron-double-right-o')
|
|
867
|
+
* @default chevron-double-right-o
|
|
868
|
+
*/
|
|
869
|
+
icon?: string;
|
|
870
|
+
/** @description 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 */
|
|
871
|
+
order?: number;
|
|
872
|
+
};
|
|
873
|
+
/** @description Definition of a transition from one stage to another in a workflow */
|
|
874
|
+
WorkflowStageTransition: {
|
|
875
|
+
/**
|
|
876
|
+
* Format: uuid
|
|
877
|
+
* @description The target stage to transition to
|
|
878
|
+
*/
|
|
879
|
+
to: string;
|
|
880
|
+
/**
|
|
881
|
+
* @description Name shown to the user when they execute this transition.
|
|
882
|
+
* If not provided, a default name will be assigned automatically based on the target stage
|
|
883
|
+
*/
|
|
884
|
+
name: string;
|
|
885
|
+
/**
|
|
886
|
+
* @description Permissions for the stage transition.
|
|
887
|
+
* NOTE: Users without membership in any role listed here will be unable to execute the transition unless they are team admins
|
|
888
|
+
*/
|
|
889
|
+
permissions: {
|
|
890
|
+
[key: string]: components$1["schemas"]["WorkflowStageTransitionPermission"];
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
/** @description Permissions for a workflow stage */
|
|
894
|
+
WorkflowStagePermission: {
|
|
895
|
+
/** @description Allows writing to entities assigned to this stage. When false or unspecified the data is read-only */
|
|
896
|
+
write?: boolean;
|
|
897
|
+
/** @description Allows publishing entities assigned to this stage. When false or unspecified publishing is disabled */
|
|
898
|
+
publish?: boolean;
|
|
899
|
+
};
|
|
900
|
+
/** @description Permissions for a workflow stage transition */
|
|
901
|
+
WorkflowStageTransitionPermission: {
|
|
902
|
+
/** @description 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
|
+
execute?: boolean;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
interface external$1 {
|
|
908
|
+
"swagger.yml": {
|
|
909
|
+
paths: {};
|
|
910
|
+
components: {
|
|
911
|
+
schemas: {
|
|
912
|
+
Error: {
|
|
913
|
+
/** @description Error message(s) that occurred while processing the request */
|
|
914
|
+
errorMessage?: string[] | string;
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
responses: {
|
|
918
|
+
/** Request input validation failed */
|
|
919
|
+
BadRequestError: {
|
|
920
|
+
content: {
|
|
921
|
+
"application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
/** API key or token was not valid */
|
|
925
|
+
UnauthorizedError: {
|
|
926
|
+
content: {
|
|
927
|
+
"application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
/** Permission was denied */
|
|
931
|
+
ForbiddenError: {
|
|
932
|
+
content: {
|
|
933
|
+
"application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
/** Resource not found */
|
|
937
|
+
NotFoundError: {
|
|
938
|
+
content: {
|
|
939
|
+
"application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
/** Too many requests in allowed time period */
|
|
943
|
+
RateLimitError: unknown;
|
|
944
|
+
/** Execution error occurred */
|
|
945
|
+
InternalServerError: unknown;
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
operations: {};
|
|
949
|
+
};
|
|
950
|
+
"v1-project-map-nodes.swagger.yml": {
|
|
951
|
+
paths: {
|
|
952
|
+
"/api/v1/project-map-nodes": {
|
|
953
|
+
/** Called to get a list of nodes belonging to a specific path or Id */
|
|
954
|
+
get: {
|
|
955
|
+
parameters: {
|
|
956
|
+
query: {
|
|
957
|
+
/** The project map id that the desired nodes belong */
|
|
958
|
+
projectMapId?: string;
|
|
959
|
+
/** The project id that contains the project map tree that this node belongs to */
|
|
960
|
+
projectId: string;
|
|
961
|
+
/**
|
|
962
|
+
* The ID of a release to fetch the composition data for.
|
|
963
|
+
*
|
|
964
|
+
* - When unspecified, composition data is fetched from base.
|
|
965
|
+
* - 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.
|
|
966
|
+
*
|
|
967
|
+
* 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 not be defined
|
|
968
|
+
*/
|
|
969
|
+
releaseId?: string;
|
|
970
|
+
/** The id of the node to retrieve, cannot have both this parameter and `path` */
|
|
971
|
+
id?: string;
|
|
972
|
+
/** The path of the root node to retrieve, cannot have both this parameter and `id` */
|
|
973
|
+
path?: string;
|
|
974
|
+
/** Composition id to find associated sitemap nodes for */
|
|
975
|
+
compositionId?: string;
|
|
976
|
+
/** Limit the number or records returned by a number */
|
|
977
|
+
limit?: number;
|
|
978
|
+
/** Number of records to skip before returning nodes */
|
|
979
|
+
offset?: number;
|
|
980
|
+
/** Depth of the tree to fetch. This only applies when fetching by path */
|
|
981
|
+
depth?: number;
|
|
982
|
+
/** State of compositions to fetch. 0 = draft, 64 = published */
|
|
983
|
+
state?: number;
|
|
984
|
+
/** should the data be returned as a json tree object (or a flat array) */
|
|
985
|
+
tree?: boolean;
|
|
986
|
+
/** text search filter */
|
|
987
|
+
search?: string;
|
|
988
|
+
/**
|
|
989
|
+
* Modifies the results to include all ancestors of matched nodes, in addition to the nodes themselves.
|
|
990
|
+
* Results are sorted by path. If multiple nodes are selected, ancestors are not duplicated
|
|
991
|
+
*/
|
|
992
|
+
includeAncestors?: boolean;
|
|
993
|
+
/** include expanded helper computed properties, including `isLeaf`, `parentPath`, `pathSegment` etc */
|
|
994
|
+
expanded?: boolean;
|
|
995
|
+
/** include basic composition information. ID, type, state, name, and definition id */
|
|
996
|
+
withCompositionData?: boolean;
|
|
997
|
+
/**
|
|
998
|
+
* @deprecated Returns the UI status string of the composition.
|
|
999
|
+
* This internal status is subject to change without notice and is thus marked deprecated to discourage the use of internal data
|
|
1000
|
+
*/
|
|
1001
|
+
withCompositionUIStatus?: boolean;
|
|
1002
|
+
/** Include basic redirect information */
|
|
1003
|
+
withRedirectData?: boolean;
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
responses: {
|
|
1007
|
+
/** OK */
|
|
1008
|
+
200: {
|
|
1009
|
+
content: {
|
|
1010
|
+
"application/json": {
|
|
1011
|
+
nodes?: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeDefinition"][];
|
|
1012
|
+
tree?: external$1["v1-project-map-tree.swagger.yml"]["components"]["schemas"]["ProjectMapTreeNodeDefinition"];
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
400: external$1["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
|
1017
|
+
401: external$1["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
|
|
1018
|
+
403: external$1["swagger.yml"]["components"]["responses"]["ForbiddenError"];
|
|
1019
|
+
429: external$1["swagger.yml"]["components"]["responses"]["RateLimitError"];
|
|
1020
|
+
500: external$1["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
/** Called to insert or update a node or nodes */
|
|
1024
|
+
put: {
|
|
1025
|
+
responses: {
|
|
1026
|
+
/** OK */
|
|
1027
|
+
204: never;
|
|
1028
|
+
400: external$1["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
|
1029
|
+
401: external$1["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
|
|
1030
|
+
403: external$1["swagger.yml"]["components"]["responses"]["ForbiddenError"];
|
|
1031
|
+
429: external$1["swagger.yml"]["components"]["responses"]["RateLimitError"];
|
|
1032
|
+
500: external$1["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
|
1033
|
+
};
|
|
1034
|
+
requestBody: {
|
|
1035
|
+
content: {
|
|
1036
|
+
"application/json": {
|
|
1037
|
+
/** @description An array of projectMap node objects to be updated or inserted */
|
|
1038
|
+
nodes: {
|
|
1039
|
+
node: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeUpdate"];
|
|
1040
|
+
/** @description The path of the node directly prior to the location where the current node is desired to go or undefined if there isn't one */
|
|
1041
|
+
previousSibling?: string;
|
|
1042
|
+
/** @description The path of the node directly after the location where the current node is desired to go or undefined if there isn't one */
|
|
1043
|
+
nextSibling?: string;
|
|
1044
|
+
}[];
|
|
1045
|
+
/**
|
|
1046
|
+
* Format: uuid
|
|
1047
|
+
* @description The project id of the project that the projectMap belongs to
|
|
1048
|
+
*/
|
|
1049
|
+
projectId: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* Format: uuid
|
|
1052
|
+
* @description The projectMap id that the changing or inserting nodes belong to
|
|
1053
|
+
*/
|
|
1054
|
+
projectMapId?: string;
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
/** Called to delete a particular projectMap node by id or path */
|
|
1060
|
+
delete: {
|
|
1061
|
+
responses: {
|
|
1062
|
+
/** OK */
|
|
1063
|
+
204: never;
|
|
1064
|
+
400: external$1["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
|
1065
|
+
401: external$1["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
|
|
1066
|
+
403: external$1["swagger.yml"]["components"]["responses"]["ForbiddenError"];
|
|
1067
|
+
429: external$1["swagger.yml"]["components"]["responses"]["RateLimitError"];
|
|
1068
|
+
500: external$1["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
|
1069
|
+
};
|
|
1070
|
+
requestBody: {
|
|
1071
|
+
content: {
|
|
1072
|
+
"application/json": {
|
|
1073
|
+
/**
|
|
1074
|
+
* Format: uuid
|
|
1075
|
+
* @description Id of the projectMap node to delete
|
|
1076
|
+
*/
|
|
1077
|
+
nodeId?: string;
|
|
1078
|
+
/** @description Path to the projectMap node to delete */
|
|
1079
|
+
path: string;
|
|
1080
|
+
/**
|
|
1081
|
+
* Format: uuid
|
|
1082
|
+
* @description Project map id that the node to delete belongs to
|
|
1083
|
+
*/
|
|
1084
|
+
projectMapId?: string;
|
|
1085
|
+
/**
|
|
1086
|
+
* Format: uuid
|
|
1087
|
+
* @description Project id that the project map belongs to
|
|
1088
|
+
*/
|
|
1089
|
+
projectId: string;
|
|
1090
|
+
} | {
|
|
1091
|
+
/**
|
|
1092
|
+
* Format: uuid
|
|
1093
|
+
* @description Id of the projectMap node to delete
|
|
1094
|
+
*/
|
|
1095
|
+
nodeId: string;
|
|
1096
|
+
/** @description Path to the projectMap node to delete */
|
|
1097
|
+
path?: string;
|
|
1098
|
+
/**
|
|
1099
|
+
* Format: uuid
|
|
1100
|
+
* @description Project map id that the node to delete belongs to
|
|
1101
|
+
*/
|
|
1102
|
+
projectMapId?: string;
|
|
1103
|
+
/**
|
|
1104
|
+
* Format: uuid
|
|
1105
|
+
* @description Project id that the project map belongs to
|
|
1106
|
+
*/
|
|
1107
|
+
projectId: string;
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
/** Handles preflight requests. This endpoint allows CORS */
|
|
1113
|
+
options: {
|
|
1114
|
+
responses: {
|
|
1115
|
+
/** OK */
|
|
1116
|
+
204: never;
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
components: {
|
|
1122
|
+
schemas: {
|
|
1123
|
+
ProjectMapNodeDefinition: {
|
|
1124
|
+
/**
|
|
1125
|
+
* Format: uuid
|
|
1126
|
+
* @description The id of the projectMap entry
|
|
1127
|
+
*/
|
|
1128
|
+
id: string;
|
|
1129
|
+
/** @description Path representing the path to the current node */
|
|
1130
|
+
path: string;
|
|
1131
|
+
/** @description Ordering of the node, higher numbers go after lower numbers */
|
|
1132
|
+
order?: number;
|
|
1133
|
+
data?: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeData"];
|
|
1134
|
+
/** @description The name of the projectMap entry */
|
|
1135
|
+
name: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* @description The type of the projectMap entry
|
|
1138
|
+
* @enum {string}
|
|
1139
|
+
*/
|
|
1140
|
+
type: "composition" | "placeholder";
|
|
1141
|
+
/**
|
|
1142
|
+
* Format: uuid
|
|
1143
|
+
* @description The composition id related to the projectMap entry
|
|
1144
|
+
*/
|
|
1145
|
+
compositionId?: string;
|
|
1146
|
+
/** @description Description of the projectMap node */
|
|
1147
|
+
description?: string;
|
|
1148
|
+
/** @description Parent path of the current node, only included if requested with the expanded flag */
|
|
1149
|
+
parentPath?: string;
|
|
1150
|
+
/** @description Last segment of the url */
|
|
1151
|
+
pathSegment?: string;
|
|
1152
|
+
/** @description returns true if the node is a leaf node, meaning having no children, only included if requested with the expanded flag */
|
|
1153
|
+
isLeaf?: boolean;
|
|
1154
|
+
compositionData?: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeCompositionData"];
|
|
1155
|
+
sourceRedirects?: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapSourceRedirectData"];
|
|
1156
|
+
targetRedirects?: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapTargetRedirectData"];
|
|
1157
|
+
locales?: {
|
|
1158
|
+
[key: string]: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeLocale"];
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
ProjectMapNodeLocale: {
|
|
1162
|
+
/** @description Name of node in the locale */
|
|
1163
|
+
name?: string;
|
|
1164
|
+
/** @description Full path to the current node in this locale, only included if requested with the expanded flag */
|
|
1165
|
+
path?: string;
|
|
1166
|
+
/** @description Last segment of the url in this locale */
|
|
1167
|
+
pathSegment: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* @description When false, the node explicitly defines a locale-specific path segment.
|
|
1170
|
+
*
|
|
1171
|
+
* When true, an ancestor defines a locale-specific path segment,
|
|
1172
|
+
* which makes its descendants resolvable using that segment.
|
|
1173
|
+
* This node does not define a locale-specific path segment.
|
|
1174
|
+
*
|
|
1175
|
+
* Only included if requested with the expanded flag. Without the expanded flag, inherited locales are not included in the response
|
|
1176
|
+
*/
|
|
1177
|
+
inherited?: boolean;
|
|
1178
|
+
};
|
|
1179
|
+
ProjectMapSourceRedirectData: {
|
|
1180
|
+
/**
|
|
1181
|
+
* Format: uuid
|
|
1182
|
+
* @description The public UUID of the source redirect
|
|
1183
|
+
*/
|
|
1184
|
+
id?: string;
|
|
1185
|
+
}[];
|
|
1186
|
+
ProjectMapTargetRedirectData: {
|
|
1187
|
+
/**
|
|
1188
|
+
* Format: uuid
|
|
1189
|
+
* @description The public UUID of the target redirect
|
|
1190
|
+
*/
|
|
1191
|
+
id?: string;
|
|
1192
|
+
}[];
|
|
1193
|
+
/** @description Basic information about a composition from the context of a project map node */
|
|
1194
|
+
ProjectMapNodeCompositionData: {
|
|
1195
|
+
/** @description Type of the composition instance (public_id of its definition) */
|
|
1196
|
+
type: string;
|
|
1197
|
+
/**
|
|
1198
|
+
* Format: uuid
|
|
1199
|
+
* @description The public UUID of the composition
|
|
1200
|
+
*/
|
|
1201
|
+
id: string;
|
|
1202
|
+
/** @description Slug pattern of this composition */
|
|
1203
|
+
slug?: string | null;
|
|
1204
|
+
/** @description Friendly name of this composition */
|
|
1205
|
+
name: string;
|
|
1206
|
+
/**
|
|
1207
|
+
* @deprecated
|
|
1208
|
+
* @description UI status value. Subject to change without notice; do not rely on this value. Only present when `withCompositionUIStatus` option is true
|
|
1209
|
+
* @enum {string}
|
|
1210
|
+
*/
|
|
1211
|
+
uiStatus?: "Draft" | "Modified" | "Published" | "Orphan";
|
|
1212
|
+
/**
|
|
1213
|
+
* @description Icon name or URL for the composition definition (e.g. 'screen' or 'https://s3/my-component.jpg')
|
|
1214
|
+
* @default screen
|
|
1215
|
+
*/
|
|
1216
|
+
icon?: string;
|
|
1217
|
+
/** @description Friendly name of this Composition's Definition */
|
|
1218
|
+
typeName?: string;
|
|
1219
|
+
/** @description List of locales that the composition is available in. If empty, available in all locales */
|
|
1220
|
+
locales: string[];
|
|
1221
|
+
/**
|
|
1222
|
+
* Format: date-time
|
|
1223
|
+
* @description Date and time the composition was last modified (or created if never modified). Uses ISO-8859-1 formatting and UTC timezone.
|
|
1224
|
+
*/
|
|
1225
|
+
modified?: string;
|
|
1226
|
+
};
|
|
1227
|
+
ProjectMapNodeUpdate: {
|
|
1228
|
+
/**
|
|
1229
|
+
* Format: uuid
|
|
1230
|
+
* @description The id of the projectMap entry
|
|
1231
|
+
*/
|
|
1232
|
+
id?: string;
|
|
1233
|
+
/** @description Path representing the path to the current node */
|
|
1234
|
+
path: string;
|
|
1235
|
+
/** @description Ordering of the node, higher numbers go after lower numbers */
|
|
1236
|
+
order?: number;
|
|
1237
|
+
data?: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeData"];
|
|
1238
|
+
/** @description The name of the projectMap entry */
|
|
1239
|
+
name: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* @description The type of the projectMap entry
|
|
1242
|
+
* @enum {string}
|
|
1243
|
+
*/
|
|
1244
|
+
type: "composition" | "placeholder";
|
|
1245
|
+
/**
|
|
1246
|
+
* Format: uuid
|
|
1247
|
+
* @description The composition id related to the projectMap entry
|
|
1248
|
+
*/
|
|
1249
|
+
compositionId?: string;
|
|
1250
|
+
/** @description Description of the projectMap node */
|
|
1251
|
+
description?: string;
|
|
1252
|
+
locales?: {
|
|
1253
|
+
[key: string]: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeLocaleUpdate"];
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
ProjectMapNodeLocaleUpdate: {
|
|
1257
|
+
/** @description Name of node in the locale */
|
|
1258
|
+
name?: string;
|
|
1259
|
+
/** @description Locale specific path segment for this node (not a full path) */
|
|
1260
|
+
pathSegment: string;
|
|
1261
|
+
};
|
|
1262
|
+
ProjectMapNodeData: {
|
|
1263
|
+
/** @description 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 */
|
|
1264
|
+
isSearchHit?: boolean;
|
|
1265
|
+
/** @description Query strings that are allowed to be passed to the node */
|
|
1266
|
+
queryStrings?: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeAllowedQueryString"][];
|
|
1267
|
+
/**
|
|
1268
|
+
* @description For dynamic nodes, this is the preview value for the dynamic value.
|
|
1269
|
+
* The preview value is used when editing a connected composition, and is the default
|
|
1270
|
+
* dynamic node value unless the author has explicitly chosen a different value
|
|
1271
|
+
*/
|
|
1272
|
+
previewValue?: string;
|
|
1273
|
+
};
|
|
1274
|
+
ProjectMapNodeAllowedQueryString: {
|
|
1275
|
+
/** @description The name of the query string parameter */
|
|
1276
|
+
name: string;
|
|
1277
|
+
/** @description The default value of the query string if it is not provided by an incoming route path */
|
|
1278
|
+
value?: string;
|
|
1279
|
+
/** @description Help text for authors who might be setting up a preview value for this query string */
|
|
1280
|
+
helpText?: string;
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
operations: {};
|
|
1285
|
+
};
|
|
1286
|
+
"v1-project-map-tree.swagger.yml": {
|
|
1287
|
+
paths: {};
|
|
1288
|
+
components: {
|
|
1289
|
+
schemas: {
|
|
1290
|
+
ProjectMapTreeNodeDefinition: external$1["v1-project-map-nodes.swagger.yml"]["components"]["schemas"]["ProjectMapNodeDefinition"] & {
|
|
1291
|
+
/** @description Children of the node */
|
|
1292
|
+
children?: external$1["v1-project-map-tree.swagger.yml"]["components"]["schemas"]["ProjectMapTreeNodeDefinition"][];
|
|
1293
|
+
} & {
|
|
1294
|
+
name: unknown;
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
operations: {};
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
|
|
3
1302
|
/**
|
|
4
1303
|
* This file was auto-generated by openapi-typescript.
|
|
5
1304
|
* Do not make direct changes to the file.
|
|
@@ -1622,6 +2921,81 @@ type AssetGetResponse = paths['/api/v1/assets']['get']['responses']['200']['cont
|
|
|
1622
2921
|
type AssetGetResponseSingle = components['schemas']['AssetApiResponse'];
|
|
1623
2922
|
type AssetGetResponseList = components['schemas']['AssetListResponse'];
|
|
1624
2923
|
type Asset = components['schemas']['Asset'];
|
|
2924
|
+
type SharedComponents = components$1['schemas'];
|
|
2925
|
+
type AssetParamValueItem = {
|
|
2926
|
+
type: string;
|
|
2927
|
+
_id: string;
|
|
2928
|
+
/**
|
|
2929
|
+
* Internal Uniform source ID or
|
|
2930
|
+
* dataType ID of the global integration library
|
|
2931
|
+
* which created this asset item
|
|
2932
|
+
*/
|
|
2933
|
+
_source?: string;
|
|
2934
|
+
fields: {
|
|
2935
|
+
url: {
|
|
2936
|
+
type: 'text';
|
|
2937
|
+
value: string;
|
|
2938
|
+
};
|
|
2939
|
+
id?: {
|
|
2940
|
+
type: 'text';
|
|
2941
|
+
value: string | undefined;
|
|
2942
|
+
};
|
|
2943
|
+
title?: {
|
|
2944
|
+
type: 'text';
|
|
2945
|
+
value: string | undefined;
|
|
2946
|
+
};
|
|
2947
|
+
description?: {
|
|
2948
|
+
type: 'text';
|
|
2949
|
+
value: string | undefined;
|
|
2950
|
+
};
|
|
2951
|
+
mediaType?: {
|
|
2952
|
+
type: 'text';
|
|
2953
|
+
value: string | undefined;
|
|
2954
|
+
};
|
|
2955
|
+
/**
|
|
2956
|
+
* The width of the original asset
|
|
2957
|
+
*
|
|
2958
|
+
* Should resolve to a number but might
|
|
2959
|
+
* be a string with a pointer reference
|
|
2960
|
+
*/
|
|
2961
|
+
width?: {
|
|
2962
|
+
type: 'number';
|
|
2963
|
+
value: number | string | undefined;
|
|
2964
|
+
};
|
|
2965
|
+
/**
|
|
2966
|
+
* The height of the original asset
|
|
2967
|
+
*
|
|
2968
|
+
* Should resolve to a number but might
|
|
2969
|
+
* be a string with a pointer reference
|
|
2970
|
+
*/
|
|
2971
|
+
height?: {
|
|
2972
|
+
type: 'number';
|
|
2973
|
+
value: number | string | undefined;
|
|
2974
|
+
};
|
|
2975
|
+
/**
|
|
2976
|
+
* The size in bytes of the original asset
|
|
2977
|
+
*
|
|
2978
|
+
* Should resolve to a number but might
|
|
2979
|
+
* be a string with a pointer reference
|
|
2980
|
+
*/
|
|
2981
|
+
size?: {
|
|
2982
|
+
type: 'number';
|
|
2983
|
+
value: number | string | undefined;
|
|
2984
|
+
};
|
|
2985
|
+
/**
|
|
2986
|
+
* Any key/value properties which the source
|
|
2987
|
+
* wants to attach to the asset data
|
|
2988
|
+
*/
|
|
2989
|
+
custom?: {
|
|
2990
|
+
type: string;
|
|
2991
|
+
value: Record<string, unknown>;
|
|
2992
|
+
};
|
|
2993
|
+
};
|
|
2994
|
+
_overrides?: {
|
|
2995
|
+
fields: SharedComponents['ComponentOverride']['parameters'];
|
|
2996
|
+
};
|
|
2997
|
+
};
|
|
2998
|
+
type AssetParamValue = AssetParamValueItem[];
|
|
1625
2999
|
|
|
1626
3000
|
type WithoutProjectId<T extends {
|
|
1627
3001
|
projectId: string;
|
|
@@ -1647,4 +3021,4 @@ declare class UncachedAssetClient extends AssetClient {
|
|
|
1647
3021
|
*/
|
|
1648
3022
|
declare function convertAssetToPutAsset(asset: AssetGetResponseSingle): AssetUpsertRequest;
|
|
1649
3023
|
|
|
1650
|
-
export { type Asset, AssetClient, type AssetDeleteRequest, type AssetGetRequest, type AssetGetRequestList, type AssetGetRequestSingle, type AssetGetResponse, type AssetGetResponseList, type AssetGetResponseSingle, type AssetUpsertRequest, UncachedAssetClient, convertAssetToPutAsset };
|
|
3024
|
+
export { type Asset, AssetClient, type AssetDeleteRequest, type AssetGetRequest, type AssetGetRequestList, type AssetGetRequestSingle, type AssetGetResponse, type AssetGetResponseList, type AssetGetResponseSingle, type AssetParamValue, type AssetParamValueItem, type AssetUpsertRequest, UncachedAssetClient, convertAssetToPutAsset };
|