@uniformdev/assets 19.54.2-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +2 -0
- package/dist/index.d.mts +840 -0
- package/dist/index.d.ts +840 -0
- package/dist/index.esm.js +43 -0
- package/dist/index.js +71 -0
- package/dist/index.mjs +43 -0
- package/package.json +42 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,840 @@
|
|
|
1
|
+
import { ApiClient, ClientOptions } from '@uniformdev/context/api';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This file was auto-generated by openapi-typescript.
|
|
5
|
+
* Do not make direct changes to the file.
|
|
6
|
+
*/
|
|
7
|
+
interface paths {
|
|
8
|
+
"/api/v1/assets": {
|
|
9
|
+
get: {
|
|
10
|
+
parameters: {
|
|
11
|
+
query: {
|
|
12
|
+
/** Specify a single asset ID to fetch. */
|
|
13
|
+
assetId?: components["parameters"]["assetId"];
|
|
14
|
+
/** Specify multiple asset IDs to fetch. Response type will be a list. */
|
|
15
|
+
assetIDs?: components["parameters"]["assetIDs"];
|
|
16
|
+
/** Filters asset lists by the user who created them. The user is specified by their identity subject. */
|
|
17
|
+
createdBy?: components["parameters"]["createdBy"];
|
|
18
|
+
/**
|
|
19
|
+
* Matches assets where their name or description contains the specified keyword.
|
|
20
|
+
* This is a list query parameter, and cannot be used with any primary query parameters.
|
|
21
|
+
*/
|
|
22
|
+
keyword?: components["parameters"]["keyword"];
|
|
23
|
+
/** Max number of records to return */
|
|
24
|
+
limit?: components["parameters"]["limit"];
|
|
25
|
+
/** Number of records to skip */
|
|
26
|
+
offset?: components["parameters"]["offset"];
|
|
27
|
+
/** Sets the sorting of the results. If unspecified, results are sorted by name ascending. */
|
|
28
|
+
orderBy?: components["parameters"]["orderBy"];
|
|
29
|
+
/** The project the asset/assets are on. */
|
|
30
|
+
projectId: components["parameters"]["projectId"];
|
|
31
|
+
/** The asset type ID to filter by. */
|
|
32
|
+
type?: components["parameters"]["type"];
|
|
33
|
+
/** Filters asset lists by the user who last updated them. The user is specified by their identity subject. */
|
|
34
|
+
updatedBy?: components["parameters"]["updatedBy"];
|
|
35
|
+
/**
|
|
36
|
+
* Controls whether the total count of results will be returned along with the current results page in a list.
|
|
37
|
+
* Has no effect when not fetching a list. This does impact performance when enabled.
|
|
38
|
+
*/
|
|
39
|
+
withTotalCount?: components["parameters"]["withTotalCount"];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
responses: {
|
|
43
|
+
/** OK */
|
|
44
|
+
200: {
|
|
45
|
+
content: {
|
|
46
|
+
"application/json": components["schemas"]["AssetListResponse"] | components["schemas"]["AssetApiResponse"];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
|
50
|
+
401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
|
|
51
|
+
403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
|
|
52
|
+
/** Asset not found */
|
|
53
|
+
404: {
|
|
54
|
+
content: {
|
|
55
|
+
"application/json": {
|
|
56
|
+
/** @description The error message */
|
|
57
|
+
errorMessage: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
|
|
62
|
+
500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
/** Upserts an asset */
|
|
66
|
+
put: {
|
|
67
|
+
responses: {
|
|
68
|
+
/** OK */
|
|
69
|
+
204: never;
|
|
70
|
+
400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
|
71
|
+
401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
|
|
72
|
+
403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
|
|
73
|
+
429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
|
|
74
|
+
500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
|
75
|
+
};
|
|
76
|
+
requestBody: {
|
|
77
|
+
content: {
|
|
78
|
+
"application/json": {
|
|
79
|
+
/**
|
|
80
|
+
* Format: uuid
|
|
81
|
+
* @description The project ID to upsert the asset to
|
|
82
|
+
*/
|
|
83
|
+
projectId: string;
|
|
84
|
+
asset: components["schemas"]["AssetInput"];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
/** Deletes or unpublishes an asset */
|
|
90
|
+
delete: {
|
|
91
|
+
responses: {
|
|
92
|
+
/** OK */
|
|
93
|
+
204: never;
|
|
94
|
+
400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
|
95
|
+
401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
|
|
96
|
+
403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
|
|
97
|
+
429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
|
|
98
|
+
500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
|
|
99
|
+
};
|
|
100
|
+
requestBody: {
|
|
101
|
+
content: {
|
|
102
|
+
"application/json": {
|
|
103
|
+
/**
|
|
104
|
+
* Format: uuid
|
|
105
|
+
* @description The ID of the asset to delete
|
|
106
|
+
*/
|
|
107
|
+
assetId: string;
|
|
108
|
+
/**
|
|
109
|
+
* Format: uuid
|
|
110
|
+
* @description The ID of the project the asset to delete belongs to
|
|
111
|
+
*/
|
|
112
|
+
projectId: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
/** Handles preflight requests. This endpoint allows CORS. */
|
|
118
|
+
options: {
|
|
119
|
+
responses: {
|
|
120
|
+
/** OK */
|
|
121
|
+
204: never;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
interface components {
|
|
127
|
+
schemas: {
|
|
128
|
+
/** @description Defines the shape of the asset */
|
|
129
|
+
Asset: {
|
|
130
|
+
/** @description Content type of the asset. */
|
|
131
|
+
type: string;
|
|
132
|
+
/**
|
|
133
|
+
* Format: uuid
|
|
134
|
+
* @description The public UUID of the asset.
|
|
135
|
+
*/
|
|
136
|
+
_id: string;
|
|
137
|
+
/** @description The name of the asset. */
|
|
138
|
+
_name?: string;
|
|
139
|
+
/** @description Name of the author of the most recent change. */
|
|
140
|
+
_author?: string;
|
|
141
|
+
title?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
142
|
+
description?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
143
|
+
mediaType?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
144
|
+
url?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
145
|
+
size?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
146
|
+
width?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
147
|
+
height?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
148
|
+
/** @description Asset field values. */
|
|
149
|
+
custom?: {
|
|
150
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
151
|
+
};
|
|
152
|
+
_dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
|
153
|
+
};
|
|
154
|
+
/** @description Defines the shape of the asset input */
|
|
155
|
+
AssetInput: {
|
|
156
|
+
/** @description Content type of the asset. */
|
|
157
|
+
type: string;
|
|
158
|
+
/**
|
|
159
|
+
* Format: uuid
|
|
160
|
+
* @description The public UUID of the asset.
|
|
161
|
+
*/
|
|
162
|
+
_id?: string;
|
|
163
|
+
/** @description The internal name of the asset. */
|
|
164
|
+
_name?: string;
|
|
165
|
+
title?: {
|
|
166
|
+
value: string;
|
|
167
|
+
/** @constant */
|
|
168
|
+
type: "text";
|
|
169
|
+
};
|
|
170
|
+
description?: {
|
|
171
|
+
value: string;
|
|
172
|
+
/** @constant */
|
|
173
|
+
type: "text";
|
|
174
|
+
};
|
|
175
|
+
file?: {
|
|
176
|
+
/** Format: uuid */
|
|
177
|
+
value: string;
|
|
178
|
+
/** @constant */
|
|
179
|
+
type: "file";
|
|
180
|
+
};
|
|
181
|
+
_dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
|
182
|
+
};
|
|
183
|
+
AssetApiResponse: {
|
|
184
|
+
/**
|
|
185
|
+
* Format: uuid
|
|
186
|
+
* @description The project ID that this layout data is part of
|
|
187
|
+
*/
|
|
188
|
+
projectId: string;
|
|
189
|
+
/**
|
|
190
|
+
* Format: date-time,
|
|
191
|
+
* @description Created date string for this definition
|
|
192
|
+
*/
|
|
193
|
+
created: string;
|
|
194
|
+
/**
|
|
195
|
+
* Format: date-time,
|
|
196
|
+
* @description Modified date string for this definition
|
|
197
|
+
*/
|
|
198
|
+
modified: string;
|
|
199
|
+
asset: components["schemas"]["Asset"];
|
|
200
|
+
};
|
|
201
|
+
AssetListResponse: {
|
|
202
|
+
assets: components["schemas"]["AssetApiResponse"][];
|
|
203
|
+
/** @description Total number of assets that match the query. Only present when `withTotalCount` option is true. */
|
|
204
|
+
totalCount?: number;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
parameters: {
|
|
208
|
+
/** @description The project the asset/assets are on. */
|
|
209
|
+
projectId: string;
|
|
210
|
+
/** @description Specify a single asset ID to fetch. */
|
|
211
|
+
assetId: string;
|
|
212
|
+
/** @description Specify multiple asset IDs to fetch. Response type will be a list. */
|
|
213
|
+
assetIDs: string[];
|
|
214
|
+
/** @description The asset type ID to filter by. */
|
|
215
|
+
type: ("image" | "video" | "audio" | "document")[];
|
|
216
|
+
/** @description Number of records to skip */
|
|
217
|
+
offset: number;
|
|
218
|
+
/** @description Max number of records to return */
|
|
219
|
+
limit: number;
|
|
220
|
+
/**
|
|
221
|
+
* @description Matches assets where their name or description contains the specified keyword.
|
|
222
|
+
* This is a list query parameter, and cannot be used with any primary query parameters.
|
|
223
|
+
*/
|
|
224
|
+
keyword: string;
|
|
225
|
+
/** @description Sets the sorting of the results. If unspecified, results are sorted by name ascending. */
|
|
226
|
+
orderBy: ("updated_at_DESC" | "updated_at_ASC" | "created_at_DESC" | "created_at_ASC" | "name_DESC" | "name_ASC")[];
|
|
227
|
+
/** @description Filters asset lists by the user who created them. The user is specified by their identity subject. */
|
|
228
|
+
createdBy: string;
|
|
229
|
+
/** @description Filters asset lists by the user who last updated them. The user is specified by their identity subject. */
|
|
230
|
+
updatedBy: string;
|
|
231
|
+
/**
|
|
232
|
+
* @description Controls whether the total count of results will be returned along with the current results page in a list.
|
|
233
|
+
* Has no effect when not fetching a list. This does impact performance when enabled.
|
|
234
|
+
*/
|
|
235
|
+
withTotalCount: boolean;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
interface external {
|
|
239
|
+
"swagger.yml": {
|
|
240
|
+
paths: {};
|
|
241
|
+
components: {
|
|
242
|
+
schemas: {
|
|
243
|
+
Error: {
|
|
244
|
+
/** @description Error message(s) that occurred while processing the request */
|
|
245
|
+
errorMessage?: string[] | string;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
responses: {
|
|
249
|
+
/** Request input validation failed */
|
|
250
|
+
BadRequestError: {
|
|
251
|
+
content: {
|
|
252
|
+
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
/** API key or token was not valid */
|
|
256
|
+
UnauthorizedError: {
|
|
257
|
+
content: {
|
|
258
|
+
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
/** Permission was denied */
|
|
262
|
+
ForbiddenError: {
|
|
263
|
+
content: {
|
|
264
|
+
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
/** Resource not found */
|
|
268
|
+
NotFoundError: {
|
|
269
|
+
content: {
|
|
270
|
+
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
/** Too many requests in allowed time period */
|
|
274
|
+
RateLimitError: unknown;
|
|
275
|
+
/** Execution error occurred */
|
|
276
|
+
InternalServerError: unknown;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
operations: {};
|
|
280
|
+
};
|
|
281
|
+
"uniform-canvas-types.swagger.yml": {
|
|
282
|
+
paths: {};
|
|
283
|
+
components: {
|
|
284
|
+
schemas: {
|
|
285
|
+
/** @description Public ID (used in code). Do not change after creation. */
|
|
286
|
+
PublicIdProperty: string;
|
|
287
|
+
/** @description The definition of a component parameter */
|
|
288
|
+
ComponentDefinitionParameter: {
|
|
289
|
+
id: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
|
290
|
+
/** @description Friendly name of the parameter */
|
|
291
|
+
name: string;
|
|
292
|
+
/** @description Appears next to the parameter in the Composition editor */
|
|
293
|
+
helpText?: string;
|
|
294
|
+
/** @description Type name of the parameter (provided by a Uniform integration) */
|
|
295
|
+
type: string;
|
|
296
|
+
/** @description The configuration object for the type (type-specific) */
|
|
297
|
+
typeConfig?: unknown;
|
|
298
|
+
};
|
|
299
|
+
/** @description The definition of a named component slot that can contain other components */
|
|
300
|
+
ComponentDefinitionSlot: {
|
|
301
|
+
id: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
|
302
|
+
/** @description Friendly name of the slot */
|
|
303
|
+
name: string;
|
|
304
|
+
/** @description A list of component definition public IDs that are allowed in this named slot */
|
|
305
|
+
allowedComponents: string[];
|
|
306
|
+
/**
|
|
307
|
+
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
|
|
308
|
+
* If allowAllComponents is true, this value is ignored.
|
|
309
|
+
*
|
|
310
|
+
* @default false
|
|
311
|
+
*/
|
|
312
|
+
inheritAllowedComponents: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* @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.
|
|
315
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
|
|
316
|
+
*/
|
|
317
|
+
allowAllComponents?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
|
|
320
|
+
* When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
|
|
321
|
+
*/
|
|
322
|
+
patternsInAllowedComponents?: boolean;
|
|
323
|
+
/** @description Minimum valid number of components in this slot */
|
|
324
|
+
minComponents?: number;
|
|
325
|
+
/** @description Maximum valid number of components in this slot */
|
|
326
|
+
maxComponents?: number;
|
|
327
|
+
};
|
|
328
|
+
/** @description The definition of a composition's slug settings */
|
|
329
|
+
ComponentDefinitionSlugSettings: {
|
|
330
|
+
/**
|
|
331
|
+
* @description Whether the slug is required
|
|
332
|
+
* no: slug is optional
|
|
333
|
+
* yes: slug is required
|
|
334
|
+
* disabled: slug is disabled and will not be shown in the editor
|
|
335
|
+
*
|
|
336
|
+
* @default no
|
|
337
|
+
* @enum {string}
|
|
338
|
+
*/
|
|
339
|
+
required?: "no" | "yes" | "disabled";
|
|
340
|
+
/**
|
|
341
|
+
* @description Slug uniqueness configuration.
|
|
342
|
+
* no = no unique constraint
|
|
343
|
+
* local = must be unique within this component type
|
|
344
|
+
* global = must be unique across all component types
|
|
345
|
+
*
|
|
346
|
+
* @enum {string}
|
|
347
|
+
*/
|
|
348
|
+
unique?: "no" | "local" | "global";
|
|
349
|
+
/** @description Regular expression slugs must match */
|
|
350
|
+
regularExpression?: string;
|
|
351
|
+
/**
|
|
352
|
+
* @description Custom error message when regular expression validation fails.
|
|
353
|
+
* Has no effect if `regularExpression` is not set.
|
|
354
|
+
*/
|
|
355
|
+
regularExpressionMessage?: string;
|
|
356
|
+
};
|
|
357
|
+
/** @description The definition of a component variant */
|
|
358
|
+
ComponentDefinitionVariant: {
|
|
359
|
+
id: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
|
360
|
+
/** @description Friendly name of the variant */
|
|
361
|
+
name: string;
|
|
362
|
+
};
|
|
363
|
+
/** @description Permission set for a component defintion */
|
|
364
|
+
ComponentDefinitionPermission: {
|
|
365
|
+
roleId: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
|
366
|
+
/**
|
|
367
|
+
* @description Permission type for this permission ComponentDefinition:
|
|
368
|
+
* read | write | create | delete
|
|
369
|
+
*
|
|
370
|
+
* @enum {string}
|
|
371
|
+
*/
|
|
372
|
+
permission: "read" | "write" | "create" | "delete";
|
|
373
|
+
/** @description State of the component that this permission applies to */
|
|
374
|
+
state: number;
|
|
375
|
+
};
|
|
376
|
+
/** @description Defines a component type that can live on a Composition */
|
|
377
|
+
ComponentDefinition: {
|
|
378
|
+
id: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
|
379
|
+
/** @description Friendly name of the component definition */
|
|
380
|
+
name: string;
|
|
381
|
+
/**
|
|
382
|
+
* @description Icon name for the component definition (e.g. 'screen')
|
|
383
|
+
* @default screen
|
|
384
|
+
*/
|
|
385
|
+
icon?: string;
|
|
386
|
+
/**
|
|
387
|
+
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
|
388
|
+
* The parameter type must support being used as a title parameter for this to work.
|
|
389
|
+
*
|
|
390
|
+
* @default null
|
|
391
|
+
*/
|
|
392
|
+
titleParameter?: string | null;
|
|
393
|
+
/**
|
|
394
|
+
* @description Whether this component type can be the root of a composition. If false, this component is only used within slots on other components.
|
|
395
|
+
* @default false
|
|
396
|
+
*/
|
|
397
|
+
canBeComposition?: boolean;
|
|
398
|
+
/** @description The parameters for this component. Parameters are key-value pairs that can be anything from text values to links to CMS entries. */
|
|
399
|
+
parameters?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
|
400
|
+
/**
|
|
401
|
+
* Format: uuid
|
|
402
|
+
* @description Reference to the category this component definition belongs to
|
|
403
|
+
* @default null
|
|
404
|
+
*/
|
|
405
|
+
categoryId?: string | null;
|
|
406
|
+
/**
|
|
407
|
+
* @description Description of the component definition
|
|
408
|
+
* @default null
|
|
409
|
+
*/
|
|
410
|
+
description?: string;
|
|
411
|
+
/**
|
|
412
|
+
* @description Description of the component definition
|
|
413
|
+
* @default null
|
|
414
|
+
*/
|
|
415
|
+
previewImageUrl?: string;
|
|
416
|
+
/**
|
|
417
|
+
* @description if this component uses team permissions or custom permissions
|
|
418
|
+
* @default true
|
|
419
|
+
*/
|
|
420
|
+
useTeamPermissions?: boolean;
|
|
421
|
+
/** @description Custom role permissions for this component definition */
|
|
422
|
+
permissions?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionPermission"][];
|
|
423
|
+
/** @description The named slots for this component; placement areas where arrays of other components can be added. */
|
|
424
|
+
slots?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionSlot"][];
|
|
425
|
+
slugSettings?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionSlugSettings"];
|
|
426
|
+
/** @description Default component instance value */
|
|
427
|
+
defaults?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentInstance"] | null;
|
|
428
|
+
/** @description Named variants for this component; enables creation of visual variants that use the same parameter data */
|
|
429
|
+
variants?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionVariant"][];
|
|
430
|
+
/** @description Created date string for this definition (ignored for writes) */
|
|
431
|
+
created?: string;
|
|
432
|
+
/** @description Last modified date string for this definition (ignored for writes) */
|
|
433
|
+
updated?: string;
|
|
434
|
+
};
|
|
435
|
+
/** @description Defines a content type */
|
|
436
|
+
ContentType: {
|
|
437
|
+
id: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
|
438
|
+
/** @description Friendly name of the content type */
|
|
439
|
+
name: string;
|
|
440
|
+
/**
|
|
441
|
+
* @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.
|
|
442
|
+
* The field type must support being used as an entry name for this to work.
|
|
443
|
+
*/
|
|
444
|
+
entryName?: string | null;
|
|
445
|
+
/** @description The fields for this content type. Fields are key-value pairs that can be text, numbers, JSON objects, etc. */
|
|
446
|
+
fields?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionParameter"][];
|
|
447
|
+
/**
|
|
448
|
+
* Format: uuid
|
|
449
|
+
* @description Reference to the category this component definition belongs to
|
|
450
|
+
* @default null
|
|
451
|
+
*/
|
|
452
|
+
categoryId?: string | null;
|
|
453
|
+
/**
|
|
454
|
+
* @description Description of the component definition
|
|
455
|
+
* @default null
|
|
456
|
+
*/
|
|
457
|
+
description?: string;
|
|
458
|
+
/**
|
|
459
|
+
* @description Description of the component definition
|
|
460
|
+
* @default null
|
|
461
|
+
*/
|
|
462
|
+
previewImageUrl?: string;
|
|
463
|
+
/** @description Created date string for this content type (ignored for writes) */
|
|
464
|
+
created?: string;
|
|
465
|
+
/** @description Last modified date string for this content type (ignored for writes) */
|
|
466
|
+
updated?: string;
|
|
467
|
+
slugSettings?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentDefinitionSlugSettings"];
|
|
468
|
+
};
|
|
469
|
+
/** @description Defines an editable parameter on a component. */
|
|
470
|
+
ComponentParameter: {
|
|
471
|
+
/** @description The value of the parameter. Any JSON-serializable value is acceptable. */
|
|
472
|
+
value: unknown;
|
|
473
|
+
/** @description The type of the parameter. Determines how it is displayed when editing, and tells the consumer how to process it. */
|
|
474
|
+
type: string;
|
|
475
|
+
/** @deprecated */
|
|
476
|
+
connectedData?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
|
477
|
+
};
|
|
478
|
+
/** @description Defines a connection to a dynamic token on a data resource. */
|
|
479
|
+
DataElementConnectionDefinition: {
|
|
480
|
+
/** @description A JSON Pointer expression that defines the data resource dynamic token value. */
|
|
481
|
+
pointer: string;
|
|
482
|
+
/**
|
|
483
|
+
* @description The syntax used to select the dynamic token to bind to
|
|
484
|
+
* @enum {string}
|
|
485
|
+
*/
|
|
486
|
+
syntax: "jptr";
|
|
487
|
+
};
|
|
488
|
+
/** @description Defines the shape of a component instance served by the composition API. */
|
|
489
|
+
ComponentInstance: {
|
|
490
|
+
/** @description Type of the component instance (public_id of its definition) */
|
|
491
|
+
type: string;
|
|
492
|
+
/** @description Component parameter values for the component instance */
|
|
493
|
+
parameters?: {
|
|
494
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
495
|
+
};
|
|
496
|
+
/** @description Public ID of alternate visual appearance for this component, if any selected */
|
|
497
|
+
variant?: string;
|
|
498
|
+
/** @description Slots containing any child components */
|
|
499
|
+
slots?: {
|
|
500
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentInstance"][];
|
|
501
|
+
};
|
|
502
|
+
/**
|
|
503
|
+
* @description Unique identifier of the component within the composition.
|
|
504
|
+
* No assumptions should be made about the format of this value other than "it will be unique."
|
|
505
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
|
506
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
|
507
|
+
*/
|
|
508
|
+
_id?: string;
|
|
509
|
+
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
|
510
|
+
_pattern?: string;
|
|
511
|
+
_dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
|
512
|
+
/**
|
|
513
|
+
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
|
514
|
+
* Means nothing for PUTs; it will be ignored.
|
|
515
|
+
*/
|
|
516
|
+
_patternDataResources?: {
|
|
517
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* @description Describes why the pattern could not be resolved, if a pattern could not be resolved. For PUTs, this is allowed but ignored.
|
|
521
|
+
* CYCLIC: A cyclic pattern graph was detected, which could not be resolved because it would cause an infinite loop.
|
|
522
|
+
* NOTFOUND: The pattern ID referenced could not be found. It may have been deleted, or not be published yet.
|
|
523
|
+
* Means nothing for PUTs; it will be ignored.
|
|
524
|
+
*
|
|
525
|
+
* @enum {string}
|
|
526
|
+
*/
|
|
527
|
+
_patternError?: "NOTFOUND" | "CYCLIC";
|
|
528
|
+
/**
|
|
529
|
+
* @description Defines patch overrides to component IDs that live in the composition.
|
|
530
|
+
* This can be used to override parameters that are defined on patterns,
|
|
531
|
+
* including nested patterns, with values that are specific to this composition.
|
|
532
|
+
* The keys in this object are component IDs.
|
|
533
|
+
* Overrides are applied from the top down, so for example if both the composition
|
|
534
|
+
* and a pattern on the composition define an override on a nested pattern,
|
|
535
|
+
* the composition's override replaces the pattern's.
|
|
536
|
+
*
|
|
537
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
538
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
|
539
|
+
*/
|
|
540
|
+
_overrides?: {
|
|
541
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* @description When used on a pattern, defines how the pattern's parameters may be overridden
|
|
545
|
+
* by consumers of the pattern.
|
|
546
|
+
*
|
|
547
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
548
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
|
549
|
+
*/
|
|
550
|
+
_overridability?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
|
551
|
+
};
|
|
552
|
+
/** @description Defines the shape of the root component in a composition */
|
|
553
|
+
RootComponentInstance: {
|
|
554
|
+
/** @description Type of the component instance (public_id of its definition) */
|
|
555
|
+
type: string;
|
|
556
|
+
/** @description Component parameter values for the component instance */
|
|
557
|
+
parameters?: {
|
|
558
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
559
|
+
};
|
|
560
|
+
/** @description Public ID of alternate visual appearance for this component, if any selected */
|
|
561
|
+
variant?: string;
|
|
562
|
+
/** @description Project map nodes associated with this component. Must pass withProjectMapNodes parameter to be populated. */
|
|
563
|
+
projectMapNodes?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["CompositionProjectMapNodeInfo"][];
|
|
564
|
+
/** @description Slots containing any child components */
|
|
565
|
+
slots?: {
|
|
566
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentInstance"][];
|
|
567
|
+
};
|
|
568
|
+
/** @description The public UUID of the composition. */
|
|
569
|
+
_id: string;
|
|
570
|
+
/** @description Slug pattern of this component. */
|
|
571
|
+
_slug?: string | null;
|
|
572
|
+
/** @description Friendly name of this component. */
|
|
573
|
+
_name: string;
|
|
574
|
+
_dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
|
575
|
+
/**
|
|
576
|
+
* @description Defines patch overrides to component IDs that live in the composition.
|
|
577
|
+
* This can be used to override parameters that are defined on patterns,
|
|
578
|
+
* including nested patterns, with values that are specific to this composition.
|
|
579
|
+
* The keys in this object are component IDs.
|
|
580
|
+
* Overrides are applied from the top down, so for example if both the composition
|
|
581
|
+
* and a pattern on the composition define an override on a nested pattern,
|
|
582
|
+
* the composition's override replaces the pattern's.
|
|
583
|
+
*
|
|
584
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
585
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
|
586
|
+
*/
|
|
587
|
+
_overrides?: {
|
|
588
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* @description When used on a pattern, defines how the pattern's parameters may be overridden
|
|
592
|
+
* by consumers of the pattern.
|
|
593
|
+
*
|
|
594
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
595
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
|
596
|
+
*/
|
|
597
|
+
_overridability?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* @description Defines how to override a specific component.
|
|
601
|
+
*
|
|
602
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
603
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
|
604
|
+
*/
|
|
605
|
+
ComponentOverride: {
|
|
606
|
+
parameters?: {
|
|
607
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
|
608
|
+
};
|
|
609
|
+
variant?: string;
|
|
610
|
+
};
|
|
611
|
+
/**
|
|
612
|
+
* @description Defines how a component on a pattern may have its values overridden.
|
|
613
|
+
* NOTE: Data resources' overridability is defined in the data resource definition, not here.
|
|
614
|
+
*
|
|
615
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
616
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
|
617
|
+
*/
|
|
618
|
+
ComponentOverridability: {
|
|
619
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
|
620
|
+
parameters?: {
|
|
621
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["OverrideOptions"];
|
|
622
|
+
};
|
|
623
|
+
/** @description Allows overriding a display variant is allowed, if it is defined on the component the pattern is derived from. Default = false. */
|
|
624
|
+
variants?: boolean;
|
|
625
|
+
};
|
|
626
|
+
/**
|
|
627
|
+
* @description Whether a parameter is overridable
|
|
628
|
+
*
|
|
629
|
+
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
|
630
|
+
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
|
631
|
+
*
|
|
632
|
+
* @enum {string}
|
|
633
|
+
*/
|
|
634
|
+
OverrideOptions: "yes" | "no";
|
|
635
|
+
/**
|
|
636
|
+
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
|
637
|
+
* These are created in the UI and shared across a whole project.
|
|
638
|
+
* NOTE: if you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
|
639
|
+
* for all header, parameter, and variable values to obscure the actual encrypted secret value.
|
|
640
|
+
*/
|
|
641
|
+
DataSource: {
|
|
642
|
+
/** @description Public ID of the data source */
|
|
643
|
+
id: string;
|
|
644
|
+
/** @description Display name of the data source */
|
|
645
|
+
displayName: string;
|
|
646
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an intalled integration) */
|
|
647
|
+
connectorType: string;
|
|
648
|
+
/** @description Base resource URL of the data source. No trailing slash. */
|
|
649
|
+
baseUrl: string;
|
|
650
|
+
/** @description HTTP headers to pass with requests to the data source */
|
|
651
|
+
headers?: {
|
|
652
|
+
key: string;
|
|
653
|
+
value: string;
|
|
654
|
+
}[];
|
|
655
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
|
|
656
|
+
parameters?: {
|
|
657
|
+
key: string;
|
|
658
|
+
value: string;
|
|
659
|
+
}[];
|
|
660
|
+
/** @description Variables needed to make calls to the data source */
|
|
661
|
+
variables?: {
|
|
662
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariableDefinition"];
|
|
663
|
+
};
|
|
664
|
+
/** @description Custom configuration specific to the data source being defined (used to maintain UI state for custom integrations) */
|
|
665
|
+
custom?: {
|
|
666
|
+
[key: string]: unknown;
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
/** @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. */
|
|
670
|
+
DataType: {
|
|
671
|
+
/** @description Public ID of the data type */
|
|
672
|
+
id: string;
|
|
673
|
+
/** @description Display name of the data type */
|
|
674
|
+
displayName: string;
|
|
675
|
+
/** @description Public ID of the associated data source */
|
|
676
|
+
dataSourceId: string;
|
|
677
|
+
/**
|
|
678
|
+
* @description A connector-specific archetype for this data type; used to select UI as well as perform any
|
|
679
|
+
* necessary post-processing on the response. e.g. 'cms-entry', 'cms-query'. Can be undefined if
|
|
680
|
+
* no special UI or processing is required.
|
|
681
|
+
*/
|
|
682
|
+
archetype?: string;
|
|
683
|
+
allowedOnComponents?: string[];
|
|
684
|
+
/** @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 leading slash. */
|
|
685
|
+
path: string;
|
|
686
|
+
/** @description Time-to-live (in seconds) for the primary resource data cache. */
|
|
687
|
+
ttl?: number;
|
|
688
|
+
/** @description Long term data resource cache configuration. */
|
|
689
|
+
longTermCache?: {
|
|
690
|
+
/** @description A flag to turn the long term cache on. */
|
|
691
|
+
enabled: boolean;
|
|
692
|
+
/** @description Time-to-live (in hours) for the long term resource data cache. */
|
|
693
|
+
ttlInHours?: number;
|
|
694
|
+
};
|
|
695
|
+
/** @description A key for the resource data cache purging. */
|
|
696
|
+
purgeKey?: string;
|
|
697
|
+
/** @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. */
|
|
698
|
+
badgeIconUrl?: string;
|
|
699
|
+
/** @description HTTP headers to pass with requests to the data type. Merged with headers from the data source, overriding identical keys. */
|
|
700
|
+
headers?: {
|
|
701
|
+
key: string;
|
|
702
|
+
value: string;
|
|
703
|
+
omitIfEmpty?: boolean;
|
|
704
|
+
}[];
|
|
705
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
|
|
706
|
+
parameters?: {
|
|
707
|
+
key: string;
|
|
708
|
+
value: string;
|
|
709
|
+
omitIfEmpty?: boolean;
|
|
710
|
+
}[];
|
|
711
|
+
/** @description Body to pass with requests to the data type (ignored unless method is POST) */
|
|
712
|
+
body?: string;
|
|
713
|
+
/**
|
|
714
|
+
* @description HTTP method to use with requests to the data type.
|
|
715
|
+
* @default GET
|
|
716
|
+
* @enum {string}
|
|
717
|
+
*/
|
|
718
|
+
method: "GET" | "POST" | "HEAD";
|
|
719
|
+
/** @description Variables needed to make calls to the data type. Merged with variables from the data source, overriding identical keys. */
|
|
720
|
+
variables?: {
|
|
721
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariableDefinition"];
|
|
722
|
+
};
|
|
723
|
+
/** @description Custom configuration specific to the data source being defined */
|
|
724
|
+
custom?: {
|
|
725
|
+
[key: string]: unknown;
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
/** @description Defines the shape of a data variable on a Data Source or Data Type */
|
|
729
|
+
DataVariableDefinition: {
|
|
730
|
+
/** @description Display name of the data variable */
|
|
731
|
+
displayName?: string;
|
|
732
|
+
/** @description Explanatory text that is provided to the data resource editor to explain what this variable does. */
|
|
733
|
+
helpText?: string;
|
|
734
|
+
/**
|
|
735
|
+
* @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.
|
|
736
|
+
* @default text
|
|
737
|
+
*/
|
|
738
|
+
type?: string;
|
|
739
|
+
/** @description Default value of the data variable */
|
|
740
|
+
default: string;
|
|
741
|
+
/** @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. */
|
|
742
|
+
order?: number;
|
|
743
|
+
/**
|
|
744
|
+
* @description An optional arbitrary human readable source identifier to describe where this variable is from.
|
|
745
|
+
* Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
|
|
746
|
+
*/
|
|
747
|
+
source?: string;
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
|
751
|
+
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key).
|
|
752
|
+
*/
|
|
753
|
+
DataResourceDefinitions: {
|
|
754
|
+
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
|
755
|
+
};
|
|
756
|
+
/** @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters */
|
|
757
|
+
DataResourceDefinition: {
|
|
758
|
+
/** @description Public ID of the data type that provides this data */
|
|
759
|
+
type: string;
|
|
760
|
+
/** @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. */
|
|
761
|
+
isPatternParameter?: boolean;
|
|
762
|
+
/**
|
|
763
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
|
764
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
|
765
|
+
* If isPatternParameter is false or undefined, this has no meaning.
|
|
766
|
+
*/
|
|
767
|
+
ignorePatternParameterDefault?: boolean;
|
|
768
|
+
variables?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
|
769
|
+
};
|
|
770
|
+
/** @description Variable values for a data resource. */
|
|
771
|
+
DataResourceVariables: {
|
|
772
|
+
[key: string]: string;
|
|
773
|
+
};
|
|
774
|
+
/** @description Category for tagging canvas entities */
|
|
775
|
+
Category: {
|
|
776
|
+
/**
|
|
777
|
+
* Format: uuid
|
|
778
|
+
* @description Unique identifier for the category
|
|
779
|
+
*/
|
|
780
|
+
id: string;
|
|
781
|
+
/** @description Display name of the category */
|
|
782
|
+
name: string;
|
|
783
|
+
/**
|
|
784
|
+
* @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.
|
|
785
|
+
* @default 0
|
|
786
|
+
*/
|
|
787
|
+
order?: number;
|
|
788
|
+
};
|
|
789
|
+
/** @description Project map node information related to a component. */
|
|
790
|
+
CompositionProjectMapNodeInfo: {
|
|
791
|
+
/**
|
|
792
|
+
* Format: uuid
|
|
793
|
+
* @description Unique identifier for the project map node
|
|
794
|
+
*/
|
|
795
|
+
id: string;
|
|
796
|
+
/** @description Path of the project map node */
|
|
797
|
+
path: string;
|
|
798
|
+
/**
|
|
799
|
+
* Format: uuid
|
|
800
|
+
* @description Unique identifier for the project map that this node belongs to.
|
|
801
|
+
*/
|
|
802
|
+
projectMapId: string;
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
operations: {};
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
type AssetUpsertRequest = paths['/api/v1/assets']['put']['requestBody']['content']['application/json'];
|
|
811
|
+
type AssetDeleteRequest = paths['/api/v1/assets']['delete']['requestBody']['content']['application/json'];
|
|
812
|
+
type AssetGetRequest = paths['/api/v1/assets']['get']['parameters']['query'];
|
|
813
|
+
type AssetGetRequestSingle = Omit<AssetGetRequest, 'assetIDs'> & {
|
|
814
|
+
assetId: string;
|
|
815
|
+
};
|
|
816
|
+
type AssetGetRequestList = Omit<AssetGetRequest, 'assetId'>;
|
|
817
|
+
type AssetGetResponse = paths['/api/v1/assets']['get']['responses']['200']['content']['application/json'];
|
|
818
|
+
type AssetGetResponseSingle = components['schemas']['AssetApiResponse'];
|
|
819
|
+
type AssetGetResponseList = components['schemas']['AssetListResponse'];
|
|
820
|
+
type Asset = components['schemas']['Asset'];
|
|
821
|
+
|
|
822
|
+
type WithoutProjectId<T extends {
|
|
823
|
+
projectId: string;
|
|
824
|
+
}> = Omit<T, 'projectId'>;
|
|
825
|
+
declare class AssetClient extends ApiClient {
|
|
826
|
+
constructor(options: ClientOptions & {
|
|
827
|
+
projectId: NonNullable<ClientOptions['projectId']>;
|
|
828
|
+
});
|
|
829
|
+
get(options: WithoutProjectId<AssetGetRequestSingle>): Promise<AssetGetResponseSingle>;
|
|
830
|
+
get(options: WithoutProjectId<AssetGetRequestList>): Promise<AssetGetResponseList>;
|
|
831
|
+
upsert(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
|
|
832
|
+
delete(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
|
|
833
|
+
}
|
|
834
|
+
declare class UncachedAssetClient extends AssetClient {
|
|
835
|
+
constructor(options: Omit<ClientOptions & {
|
|
836
|
+
projectId: NonNullable<ClientOptions['projectId']>;
|
|
837
|
+
}, 'bypassCache'>);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
export { Asset, AssetClient, AssetDeleteRequest, AssetGetRequest, AssetGetRequestList, AssetGetRequestSingle, AssetGetResponse, AssetGetResponseList, AssetGetResponseSingle, AssetUpsertRequest, UncachedAssetClient };
|