contentful-management 7.44.2 → 7.45.3

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.
Files changed (56) hide show
  1. package/dist/contentful-management.browser.js +52 -68
  2. package/dist/contentful-management.browser.js.map +1 -1
  3. package/dist/contentful-management.browser.min.js +1 -1
  4. package/dist/contentful-management.legacy.js +52 -68
  5. package/dist/contentful-management.legacy.js.map +1 -1
  6. package/dist/contentful-management.legacy.min.js +1 -1
  7. package/dist/contentful-management.node.js +47 -63
  8. package/dist/contentful-management.node.js.map +1 -1
  9. package/dist/contentful-management.node.min.js +1 -1
  10. package/dist/es-modules/adapters/REST/endpoints/api-key.js +1 -1
  11. package/dist/es-modules/adapters/REST/endpoints/organization.js +2 -2
  12. package/dist/es-modules/adapters/REST/endpoints/space.js +4 -4
  13. package/dist/es-modules/adapters/REST/rest-adapter.js +1 -1
  14. package/dist/es-modules/common-utils.js +1 -1
  15. package/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js +1 -8
  16. package/dist/es-modules/contentful-management.js +1 -1
  17. package/dist/es-modules/entities/locale.js +1 -1
  18. package/dist/es-modules/plain/as-iterator.js +12 -8
  19. package/dist/typings/create-entry-api.d.ts +3 -3
  20. package/dist/typings/create-environment-api.d.ts +4 -3
  21. package/dist/typings/entities/api-key.d.ts +1 -1578
  22. package/dist/typings/entities/app-bundle.d.ts +1 -1578
  23. package/dist/typings/entities/app-definition.d.ts +1 -1578
  24. package/dist/typings/entities/app-installation.d.ts +1 -1578
  25. package/dist/typings/entities/app-upload.d.ts +1 -1578
  26. package/dist/typings/entities/asset.d.ts +1 -1577
  27. package/dist/typings/entities/comment.d.ts +1 -1578
  28. package/dist/typings/entities/content-type.d.ts +1 -1578
  29. package/dist/typings/entities/editor-interface.d.ts +8 -1585
  30. package/dist/typings/entities/entry.d.ts +1 -1578
  31. package/dist/typings/entities/environment-alias.d.ts +1 -1578
  32. package/dist/typings/entities/environment.d.ts +1 -1578
  33. package/dist/typings/entities/extension.d.ts +1 -1578
  34. package/dist/typings/entities/locale.d.ts +1 -1578
  35. package/dist/typings/entities/organization-membership.d.ts +1 -1578
  36. package/dist/typings/entities/organization.d.ts +1 -1578
  37. package/dist/typings/entities/personal-access-token.d.ts +1 -1578
  38. package/dist/typings/entities/preview-api-key.d.ts +1 -1578
  39. package/dist/typings/entities/release-action.d.ts +1 -1578
  40. package/dist/typings/entities/role.d.ts +1 -1578
  41. package/dist/typings/entities/scheduled-action.d.ts +1 -1578
  42. package/dist/typings/entities/snapshot.d.ts +1 -1578
  43. package/dist/typings/entities/space-member.d.ts +1 -1578
  44. package/dist/typings/entities/space-membership.d.ts +1 -1578
  45. package/dist/typings/entities/space.d.ts +1 -1578
  46. package/dist/typings/entities/tag.d.ts +1 -1578
  47. package/dist/typings/entities/task.d.ts +1 -1578
  48. package/dist/typings/entities/team-membership.d.ts +1 -1578
  49. package/dist/typings/entities/team-space-membership.d.ts +1 -1578
  50. package/dist/typings/entities/team.d.ts +1 -1578
  51. package/dist/typings/entities/usage.d.ts +1 -1578
  52. package/dist/typings/entities/user.d.ts +1 -1578
  53. package/dist/typings/entities/webhook.d.ts +1 -1578
  54. package/dist/typings/export-types.d.ts +1 -1
  55. package/dist/typings/plain/wrappers/wrap.d.ts +4 -4
  56. package/package.json +14 -13
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="json-patch" />
3
1
  import { DefaultElements, GetTagParams, MakeRequest, MetaSysProps, SysLink } from '../common-types';
4
2
  export declare type TagVisibility = 'private' | 'public';
5
3
  export declare type TagSysProps = Pick<MetaSysProps, 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'> & {
@@ -49,1580 +47,5 @@ export declare function wrapTag(makeRequest: MakeRequest, data: TagProps): Tag;
49
47
  /**
50
48
  * @private
51
49
  */
52
- export declare const wrapTagCollection: (makeRequest: {
53
- (opts: import("../common-types").MROpts<"Http", "get", false>): Promise<any>;
54
- (opts: import("../common-types").MROpts<"Http", "patch", false>): Promise<any>;
55
- (opts: import("../common-types").MROpts<"Http", "post", false>): Promise<any>;
56
- (opts: import("../common-types").MROpts<"Http", "put", false>): Promise<any>;
57
- (opts: import("../common-types").MROpts<"Http", "delete", false>): Promise<any>;
58
- (opts: import("../common-types").MROpts<"Http", "request", false>): Promise<any>;
59
- (opts: import("../common-types").MROpts<"AppBundle", "get", false>): Promise<import("./app-bundle").AppBundleProps>;
60
- (opts: import("../common-types").MROpts<"AppBundle", "getMany", false>): Promise<import("../common-types").CollectionProp<import("./app-bundle").AppBundleProps>>;
61
- (opts: import("../common-types").MROpts<"AppBundle", "delete", false>): Promise<void>;
62
- (opts: {
63
- entityType: "AppBundle";
64
- action: "create";
65
- } & {
66
- params: import("../common-types").GetAppDefinitionParams;
67
- } & {
68
- payload: import("./app-bundle").CreateAppBundleProps;
69
- }): Promise<import("./app-bundle").AppBundleProps>;
70
- (opts: {
71
- entityType: "ApiKey";
72
- action: "get";
73
- } & {
74
- params: import("../common-types").GetSpaceParams & {
75
- apiKeyId: string;
76
- };
77
- }): Promise<import("./api-key").ApiKeyProps>;
78
- (opts: {
79
- entityType: "ApiKey";
80
- action: "getMany";
81
- } & {
82
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
83
- }): Promise<import("../common-types").CollectionProp<import("./api-key").ApiKeyProps>>;
84
- (opts: {
85
- entityType: "ApiKey";
86
- action: "create";
87
- } & {
88
- params: import("../common-types").GetSpaceParams;
89
- } & {
90
- payload: Pick<import("./api-key").ApiKeyProps, "description" | "name" | "environments">;
91
- } & {
92
- headers?: Record<string, unknown> | undefined;
93
- }): Promise<import("./api-key").ApiKeyProps>;
94
- (opts: {
95
- entityType: "ApiKey";
96
- action: "createWithId";
97
- } & {
98
- params: import("../common-types").GetSpaceParams & {
99
- apiKeyId: string;
100
- };
101
- } & {
102
- payload: Pick<import("./api-key").ApiKeyProps, "description" | "name" | "environments">;
103
- } & {
104
- headers?: Record<string, unknown> | undefined;
105
- }): Promise<import("./api-key").ApiKeyProps>;
106
- (opts: {
107
- entityType: "ApiKey";
108
- action: "update";
109
- } & {
110
- params: import("../common-types").GetSpaceParams & {
111
- apiKeyId: string;
112
- };
113
- } & {
114
- payload: import("./api-key").ApiKeyProps;
115
- } & {
116
- headers?: Record<string, unknown> | undefined;
117
- }): Promise<import("./api-key").ApiKeyProps>;
118
- (opts: {
119
- entityType: "ApiKey";
120
- action: "delete";
121
- } & {
122
- params: import("../common-types").GetSpaceParams & {
123
- apiKeyId: string;
124
- };
125
- }): Promise<any>;
126
- (opts: {
127
- entityType: "AppDefinition";
128
- action: "get";
129
- } & {
130
- params: import("../common-types").GetOrganizationParams & {
131
- appDefinitionId: string;
132
- };
133
- }): Promise<import("./app-definition").AppDefinitionProps>;
134
- (opts: {
135
- entityType: "AppDefinition";
136
- action: "getMany";
137
- } & {
138
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
139
- }): Promise<import("../common-types").CollectionProp<import("./app-definition").AppDefinitionProps>>;
140
- (opts: {
141
- entityType: "AppDefinition";
142
- action: "create";
143
- } & {
144
- params: import("../common-types").GetOrganizationParams;
145
- } & {
146
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./app-definition").AppDefinitionProps, "name" | "src" | "locations" | "parameters">, "name" | "parameters"> & Partial<Pick<Pick<import("./app-definition").AppDefinitionProps, "name" | "src" | "locations" | "parameters">, "src" | "locations">>>;
147
- }): Promise<import("./app-definition").AppDefinitionProps>;
148
- (opts: {
149
- entityType: "AppDefinition";
150
- action: "update";
151
- } & {
152
- params: import("../common-types").GetAppDefinitionParams;
153
- } & {
154
- payload: import("./app-definition").AppDefinitionProps;
155
- } & {
156
- headers?: Record<string, unknown> | undefined;
157
- }): Promise<import("./app-definition").AppDefinitionProps>;
158
- (opts: {
159
- entityType: "AppDefinition";
160
- action: "delete";
161
- } & {
162
- params: import("../common-types").GetAppDefinitionParams;
163
- }): Promise<any>;
164
- (opts: {
165
- entityType: "AppInstallation";
166
- action: "get";
167
- } & {
168
- params: import("../common-types").GetAppInstallationParams;
169
- }): Promise<import("./app-installation").AppInstallationProps>;
170
- (opts: {
171
- entityType: "AppInstallation";
172
- action: "getMany";
173
- } & {
174
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").PaginationQueryParams;
175
- }): Promise<import("../common-types").CollectionProp<import("./app-installation").AppInstallationProps>>;
176
- (opts: {
177
- entityType: "AppInstallation";
178
- action: "upsert";
179
- } & {
180
- params: import("../common-types").GetAppInstallationParams;
181
- } & {
182
- payload: Pick<import("./app-installation").AppInstallationProps, "parameters">;
183
- } & {
184
- headers?: Record<string, unknown> | undefined;
185
- }): Promise<import("./app-installation").AppInstallationProps>;
186
- (opts: {
187
- entityType: "AppInstallation";
188
- action: "delete";
189
- } & {
190
- params: import("../common-types").GetAppInstallationParams;
191
- }): Promise<any>;
192
- (opts: {
193
- entityType: "Asset";
194
- action: "getMany";
195
- } & {
196
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
197
- }): Promise<import("../common-types").CollectionProp<import("./asset").AssetProps>>;
198
- (opts: {
199
- entityType: "Asset";
200
- action: "get";
201
- } & {
202
- params: import("../common-types").GetSpaceEnvironmentParams & {
203
- assetId: string;
204
- } & import("../common-types").QueryParams;
205
- }): Promise<import("./asset").AssetProps>;
206
- (opts: {
207
- entityType: "Asset";
208
- action: "update";
209
- } & {
210
- params: import("../common-types").GetSpaceEnvironmentParams & {
211
- assetId: string;
212
- };
213
- } & {
214
- payload: import("./asset").AssetProps;
215
- } & {
216
- headers?: Record<string, unknown> | undefined;
217
- }): Promise<import("./asset").AssetProps>;
218
- (opts: {
219
- entityType: "Asset";
220
- action: "delete";
221
- } & {
222
- params: import("../common-types").GetSpaceEnvironmentParams & {
223
- assetId: string;
224
- };
225
- }): Promise<any>;
226
- (opts: {
227
- entityType: "Asset";
228
- action: "publish";
229
- } & {
230
- params: import("../common-types").GetSpaceEnvironmentParams & {
231
- assetId: string;
232
- };
233
- } & {
234
- payload: import("./asset").AssetProps;
235
- }): Promise<import("./asset").AssetProps>;
236
- (opts: {
237
- entityType: "Asset";
238
- action: "unpublish";
239
- } & {
240
- params: import("../common-types").GetSpaceEnvironmentParams & {
241
- assetId: string;
242
- };
243
- }): Promise<import("./asset").AssetProps>;
244
- (opts: {
245
- entityType: "Asset";
246
- action: "archive";
247
- } & {
248
- params: import("../common-types").GetSpaceEnvironmentParams & {
249
- assetId: string;
250
- };
251
- }): Promise<import("./asset").AssetProps>;
252
- (opts: {
253
- entityType: "Asset";
254
- action: "unarchive";
255
- } & {
256
- params: import("../common-types").GetSpaceEnvironmentParams & {
257
- assetId: string;
258
- };
259
- }): Promise<import("./asset").AssetProps>;
260
- (opts: {
261
- entityType: "Asset";
262
- action: "create";
263
- } & {
264
- params: import("../common-types").GetSpaceEnvironmentParams;
265
- } & {
266
- payload: Pick<import("./asset").AssetProps, "metadata" | "fields">;
267
- }): Promise<import("./asset").AssetProps>;
268
- (opts: {
269
- entityType: "Asset";
270
- action: "createWithId";
271
- } & {
272
- params: import("../common-types").GetSpaceEnvironmentParams & {
273
- assetId: string;
274
- };
275
- } & {
276
- payload: Pick<import("./asset").AssetProps, "metadata" | "fields">;
277
- }): Promise<import("./asset").AssetProps>;
278
- (opts: {
279
- entityType: "Asset";
280
- action: "createFromFiles";
281
- } & {
282
- params: import("../common-types").GetSpaceEnvironmentParams;
283
- } & {
284
- payload: Pick<import("./asset").AssetFileProp, "fields">;
285
- }): Promise<import("./asset").AssetProps>;
286
- (opts: {
287
- entityType: "Asset";
288
- action: "processForAllLocales";
289
- } & {
290
- params: import("../common-types").GetSpaceEnvironmentParams & {
291
- asset: import("./asset").AssetProps;
292
- options?: import("./asset").AssetProcessingForLocale | undefined;
293
- };
294
- }): Promise<import("./asset").AssetProps>;
295
- (opts: {
296
- entityType: "Asset";
297
- action: "processForLocale";
298
- } & {
299
- params: import("../common-types").GetSpaceEnvironmentParams & {
300
- asset: import("./asset").AssetProps;
301
- locale: string;
302
- options?: import("./asset").AssetProcessingForLocale | undefined;
303
- };
304
- }): Promise<import("./asset").AssetProps>;
305
- (opts: {
306
- entityType: "AppUpload";
307
- action: "get";
308
- } & {
309
- params: import("../common-types").GetAppUploadParams;
310
- }): Promise<import("./app-upload").AppUploadProps>;
311
- (opts: {
312
- entityType: "AppUpload";
313
- action: "delete";
314
- } & {
315
- params: import("../common-types").GetAppUploadParams;
316
- }): Promise<void>;
317
- (opts: {
318
- entityType: "AppUpload";
319
- action: "create";
320
- } & {
321
- params: import("../common-types").GetOrganizationParams;
322
- } & {
323
- payload: {
324
- file: string | ArrayBuffer | import("stream").Stream;
325
- };
326
- }): Promise<import("./app-upload").AppUploadProps>;
327
- (opts: {
328
- entityType: "AppDetails";
329
- action: "upsert";
330
- } & {
331
- params: import("../common-types").GetAppDefinitionParams;
332
- } & {
333
- payload: import("./app-details").CreateAppDetailsProps;
334
- }): Promise<import("./app-details").AppDetailsProps>;
335
- (opts: {
336
- entityType: "AppDetails";
337
- action: "get";
338
- } & {
339
- params: import("../common-types").GetAppDefinitionParams;
340
- }): Promise<import("./app-details").AppDetailsProps>;
341
- (opts: {
342
- entityType: "AppDetails";
343
- action: "delete";
344
- } & {
345
- params: import("../common-types").GetAppDefinitionParams;
346
- }): Promise<void>;
347
- (opts: {
348
- entityType: "AppSignedRequest";
349
- action: "create";
350
- } & {
351
- params: import("../common-types").GetAppInstallationParams;
352
- } & {
353
- payload: import("./app-signed-request").CreateAppSignedRequestProps;
354
- }): Promise<import("./app-signed-request").AppSignedRequestProps>;
355
- (opts: {
356
- entityType: "AppSigningSecret";
357
- action: "upsert";
358
- } & {
359
- params: import("../common-types").GetAppDefinitionParams;
360
- } & {
361
- payload: import("./app-signing-secret").CreateAppSigningSecretProps;
362
- }): Promise<import("./app-signing-secret").AppSigningSecretProps>;
363
- (opts: {
364
- entityType: "AppSigningSecret";
365
- action: "get";
366
- } & {
367
- params: import("../common-types").GetAppDefinitionParams;
368
- }): Promise<import("./app-signing-secret").AppSigningSecretProps>;
369
- (opts: {
370
- entityType: "AppSigningSecret";
371
- action: "delete";
372
- } & {
373
- params: import("../common-types").GetAppDefinitionParams;
374
- }): Promise<void>;
375
- (opts: {
376
- entityType: "AssetKey";
377
- action: "create";
378
- } & {
379
- params: import("../common-types").GetSpaceEnvironmentParams;
380
- } & {
381
- payload: import("./asset-key").CreateAssetKeyProps;
382
- }): Promise<import("./asset-key").AssetKeyProps>;
383
- (opts: {
384
- entityType: "BulkAction";
385
- action: "get";
386
- } & {
387
- params: import("../common-types").GetBulkActionParams;
388
- }): Promise<import("./bulk-action").BulkActionProps<any>>;
389
- (opts: {
390
- entityType: "BulkAction";
391
- action: "publish";
392
- } & {
393
- params: import("../common-types").GetSpaceEnvironmentParams;
394
- } & {
395
- payload: import("./bulk-action").BulkActionPublishPayload;
396
- }): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionPublishPayload>>;
397
- (opts: {
398
- entityType: "BulkAction";
399
- action: "unpublish";
400
- } & {
401
- params: import("../common-types").GetSpaceEnvironmentParams;
402
- } & {
403
- payload: import("./bulk-action").BulkActionUnpublishPayload;
404
- }): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionUnpublishPayload>>;
405
- (opts: {
406
- entityType: "BulkAction";
407
- action: "validate";
408
- } & {
409
- params: import("../common-types").GetSpaceEnvironmentParams;
410
- } & {
411
- payload: import("./bulk-action").BulkActionValidatePayload;
412
- }): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionValidatePayload>>;
413
- (opts: {
414
- entityType: "Comment";
415
- action: "get";
416
- } & {
417
- params: import("../common-types").GetCommentParams;
418
- }): Promise<import("./comment").CommentProps>;
419
- (opts: {
420
- entityType: "Comment";
421
- action: "getAll";
422
- } & {
423
- params: import("../common-types").GetEntryParams;
424
- }): Promise<import("../common-types").CollectionProp<import("./comment").CommentProps>>;
425
- (opts: {
426
- entityType: "Comment";
427
- action: "create";
428
- } & {
429
- params: import("../common-types").GetEntryParams;
430
- } & {
431
- payload: Pick<import("./comment").CommentProps, "body">;
432
- }): Promise<import("./comment").CommentProps>;
433
- (opts: {
434
- entityType: "Comment";
435
- action: "update";
436
- } & {
437
- params: import("../common-types").GetCommentParams;
438
- } & {
439
- payload: import("./comment").UpdateCommentProps;
440
- } & {
441
- headers?: Record<string, unknown> | undefined;
442
- }): Promise<import("./comment").CommentProps>;
443
- (opts: {
444
- entityType: "Comment";
445
- action: "delete";
446
- } & {
447
- params: import("./comment").DeleteCommentParams;
448
- }): Promise<void>;
449
- (opts: {
450
- entityType: "ContentType";
451
- action: "get";
452
- } & {
453
- params: import("../common-types").GetSpaceEnvironmentParams & {
454
- contentTypeId: string;
455
- } & import("../common-types").QueryParams;
456
- }): Promise<import("./content-type").ContentTypeProps>;
457
- (opts: {
458
- entityType: "ContentType";
459
- action: "getMany";
460
- } & {
461
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
462
- }): Promise<import("../common-types").CollectionProp<import("./content-type").ContentTypeProps>>;
463
- (opts: {
464
- entityType: "ContentType";
465
- action: "update";
466
- } & {
467
- params: import("../common-types").GetContentTypeParams;
468
- } & {
469
- payload: import("./content-type").ContentTypeProps;
470
- } & {
471
- headers?: Record<string, unknown> | undefined;
472
- }): Promise<import("./content-type").ContentTypeProps>;
473
- (opts: {
474
- entityType: "ContentType";
475
- action: "create";
476
- } & {
477
- params: import("../common-types").GetSpaceEnvironmentParams;
478
- } & {
479
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "name" | "fields"> & Partial<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "description" | "displayField">>>;
480
- }): Promise<import("./content-type").ContentTypeProps>;
481
- (opts: {
482
- entityType: "ContentType";
483
- action: "createWithId";
484
- } & {
485
- params: import("../common-types").GetContentTypeParams;
486
- } & {
487
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "name" | "fields"> & Partial<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "description" | "displayField">>>;
488
- }): Promise<import("./content-type").ContentTypeProps>;
489
- (opts: {
490
- entityType: "ContentType";
491
- action: "delete";
492
- } & {
493
- params: import("../common-types").GetContentTypeParams;
494
- }): Promise<any>;
495
- (opts: {
496
- entityType: "ContentType";
497
- action: "publish";
498
- } & {
499
- params: import("../common-types").GetContentTypeParams;
500
- } & {
501
- payload: import("./content-type").ContentTypeProps;
502
- }): Promise<import("./content-type").ContentTypeProps>;
503
- (opts: {
504
- entityType: "ContentType";
505
- action: "unpublish";
506
- } & {
507
- params: import("../common-types").GetContentTypeParams;
508
- }): Promise<import("./content-type").ContentTypeProps>;
509
- (opts: {
510
- entityType: "EditorInterface";
511
- action: "get";
512
- } & {
513
- params: import("../common-types").GetEditorInterfaceParams;
514
- }): Promise<import("./editor-interface").EditorInterfaceProps>;
515
- (opts: {
516
- entityType: "EditorInterface";
517
- action: "getMany";
518
- } & {
519
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
520
- }): Promise<import("../common-types").CollectionProp<import("./editor-interface").EditorInterfaceProps>>;
521
- (opts: {
522
- entityType: "EditorInterface";
523
- action: "update";
524
- } & {
525
- params: import("../common-types").GetEditorInterfaceParams;
526
- } & {
527
- payload: import("./editor-interface").EditorInterfaceProps;
528
- } & {
529
- headers?: Record<string, unknown> | undefined;
530
- }): Promise<import("./editor-interface").EditorInterfaceProps>;
531
- (opts: {
532
- entityType: "Environment";
533
- action: "get";
534
- } & {
535
- params: import("../common-types").GetSpaceEnvironmentParams;
536
- }): Promise<import("./environment").EnvironmentProps>;
537
- (opts: {
538
- entityType: "Environment";
539
- action: "getMany";
540
- } & {
541
- params: import("../common-types").GetSpaceParams & import("../common-types").PaginationQueryParams;
542
- }): Promise<import("../common-types").CollectionProp<import("./environment").EnvironmentProps>>;
543
- (opts: {
544
- entityType: "Environment";
545
- action: "create";
546
- } & {
547
- params: import("../common-types").GetSpaceParams;
548
- } & {
549
- payload: Partial<Pick<import("./environment").EnvironmentProps, "name">>;
550
- } & {
551
- headers?: Record<string, unknown> | undefined;
552
- }): Promise<import("./environment").EnvironmentProps>;
553
- (opts: {
554
- entityType: "Environment";
555
- action: "createWithId";
556
- } & {
557
- params: import("../common-types").GetSpaceEnvironmentParams & {
558
- sourceEnvironmentId?: string | undefined;
559
- };
560
- } & {
561
- payload: Partial<Pick<import("./environment").EnvironmentProps, "name">>;
562
- } & {
563
- headers?: Record<string, unknown> | undefined;
564
- }): Promise<import("./environment").EnvironmentProps>;
565
- (opts: {
566
- entityType: "Environment";
567
- action: "update";
568
- } & {
569
- params: import("../common-types").GetSpaceEnvironmentParams;
570
- } & {
571
- payload: import("./environment").EnvironmentProps;
572
- } & {
573
- headers?: Record<string, unknown> | undefined;
574
- }): Promise<import("./environment").EnvironmentProps>;
575
- (opts: {
576
- entityType: "Environment";
577
- action: "delete";
578
- } & {
579
- params: import("../common-types").GetSpaceEnvironmentParams;
580
- }): Promise<any>;
581
- (opts: {
582
- entityType: "EnvironmentAlias";
583
- action: "get";
584
- } & {
585
- params: import("../common-types").GetSpaceEnvAliasParams;
586
- }): Promise<import("./environment-alias").EnvironmentAliasProps>;
587
- (opts: {
588
- entityType: "EnvironmentAlias";
589
- action: "getMany";
590
- } & {
591
- params: import("../common-types").GetSpaceParams & import("../common-types").PaginationQueryParams;
592
- }): Promise<import("../common-types").CollectionProp<import("./environment-alias").EnvironmentAliasProps>>;
593
- (opts: {
594
- entityType: "EnvironmentAlias";
595
- action: "createWithId";
596
- } & {
597
- params: import("../common-types").GetSpaceEnvAliasParams;
598
- } & {
599
- payload: Pick<import("./environment-alias").EnvironmentAliasProps, "environment">;
600
- } & {
601
- headers?: Record<string, unknown> | undefined;
602
- }): Promise<import("./environment-alias").EnvironmentAliasProps>;
603
- (opts: {
604
- entityType: "EnvironmentAlias";
605
- action: "update";
606
- } & {
607
- params: import("../common-types").GetSpaceEnvAliasParams;
608
- } & {
609
- payload: import("./environment-alias").EnvironmentAliasProps;
610
- } & {
611
- headers?: Record<string, unknown> | undefined;
612
- }): Promise<import("./environment-alias").EnvironmentAliasProps>;
613
- (opts: {
614
- entityType: "EnvironmentAlias";
615
- action: "delete";
616
- } & {
617
- params: import("../common-types").GetSpaceEnvAliasParams;
618
- }): Promise<any>;
619
- (opts: {
620
- entityType: "Entry";
621
- action: "getMany";
622
- } & {
623
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
624
- }): Promise<import("../common-types").CollectionProp<import("./entry").EntryProps<any>>>;
625
- (opts: {
626
- entityType: "Entry";
627
- action: "get";
628
- } & {
629
- params: import("../common-types").GetSpaceEnvironmentParams & {
630
- entryId: string;
631
- } & import("../common-types").QueryParams;
632
- }): Promise<import("./entry").EntryProps<any>>;
633
- (opts: {
634
- entityType: "Entry";
635
- action: "patch";
636
- } & {
637
- params: import("../common-types").GetSpaceEnvironmentParams & {
638
- entryId: string;
639
- version: number;
640
- };
641
- } & {
642
- payload: import("json-patch").OpPatch[];
643
- } & {
644
- headers?: Record<string, unknown> | undefined;
645
- }): Promise<import("./entry").EntryProps<any>>;
646
- (opts: {
647
- entityType: "Entry";
648
- action: "update";
649
- } & {
650
- params: import("../common-types").GetSpaceEnvironmentParams & {
651
- entryId: string;
652
- };
653
- } & {
654
- payload: import("./entry").EntryProps<any>;
655
- } & {
656
- headers?: Record<string, unknown> | undefined;
657
- }): Promise<import("./entry").EntryProps<any>>;
658
- (opts: {
659
- entityType: "Entry";
660
- action: "delete";
661
- } & {
662
- params: import("../common-types").GetSpaceEnvironmentParams & {
663
- entryId: string;
664
- };
665
- }): Promise<any>;
666
- (opts: {
667
- entityType: "Entry";
668
- action: "publish";
669
- } & {
670
- params: import("../common-types").GetSpaceEnvironmentParams & {
671
- entryId: string;
672
- };
673
- } & {
674
- payload: import("./entry").EntryProps<any>;
675
- }): Promise<import("./entry").EntryProps<any>>;
676
- (opts: {
677
- entityType: "Entry";
678
- action: "unpublish";
679
- } & {
680
- params: import("../common-types").GetSpaceEnvironmentParams & {
681
- entryId: string;
682
- };
683
- }): Promise<import("./entry").EntryProps<any>>;
684
- (opts: {
685
- entityType: "Entry";
686
- action: "archive";
687
- } & {
688
- params: import("../common-types").GetSpaceEnvironmentParams & {
689
- entryId: string;
690
- };
691
- }): Promise<import("./entry").EntryProps<any>>;
692
- (opts: {
693
- entityType: "Entry";
694
- action: "unarchive";
695
- } & {
696
- params: import("../common-types").GetSpaceEnvironmentParams & {
697
- entryId: string;
698
- };
699
- }): Promise<import("./entry").EntryProps<any>>;
700
- (opts: {
701
- entityType: "Entry";
702
- action: "create";
703
- } & {
704
- params: import("../common-types").GetSpaceEnvironmentParams & {
705
- contentTypeId: string;
706
- };
707
- } & {
708
- payload: Pick<import("./entry").EntryProps<any>, "metadata" | "fields">;
709
- }): Promise<import("./entry").EntryProps<any>>;
710
- (opts: {
711
- entityType: "Entry";
712
- action: "createWithId";
713
- } & {
714
- params: import("../common-types").GetSpaceEnvironmentParams & {
715
- entryId: string;
716
- contentTypeId: string;
717
- };
718
- } & {
719
- payload: Pick<import("./entry").EntryProps<any>, "metadata" | "fields">;
720
- }): Promise<import("./entry").EntryProps<any>>;
721
- (opts: {
722
- entityType: "Entry";
723
- action: "references";
724
- } & {
725
- params: import("../common-types").GetSpaceEnvironmentParams & {
726
- entryId: string;
727
- maxDepth?: number | undefined;
728
- };
729
- }): Promise<import("./entry").EntryReferenceProps>;
730
- (opts: {
731
- entityType: "Extension";
732
- action: "get";
733
- } & {
734
- params: import("../common-types").GetSpaceEnvironmentParams & {
735
- extensionId: string;
736
- } & import("../common-types").QueryParams;
737
- }): Promise<import("./extension").ExtensionProps>;
738
- (opts: {
739
- entityType: "Extension";
740
- action: "getMany";
741
- } & {
742
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
743
- }): Promise<import("../common-types").CollectionProp<import("./extension").ExtensionProps>>;
744
- (opts: {
745
- entityType: "Extension";
746
- action: "create";
747
- } & {
748
- params: import("../common-types").GetSpaceEnvironmentParams;
749
- } & {
750
- payload: import("./extension").CreateExtensionProps;
751
- } & {
752
- headers?: Record<string, unknown> | undefined;
753
- }): Promise<import("./extension").ExtensionProps>;
754
- (opts: {
755
- entityType: "Extension";
756
- action: "createWithId";
757
- } & {
758
- params: import("../common-types").GetExtensionParams;
759
- } & {
760
- payload: import("./extension").CreateExtensionProps;
761
- } & {
762
- headers?: Record<string, unknown> | undefined;
763
- }): Promise<import("./extension").ExtensionProps>;
764
- (opts: {
765
- entityType: "Extension";
766
- action: "update";
767
- } & {
768
- params: import("../common-types").GetExtensionParams;
769
- } & {
770
- payload: import("./extension").ExtensionProps;
771
- } & {
772
- headers?: Record<string, unknown> | undefined;
773
- }): Promise<import("./extension").ExtensionProps>;
774
- (opts: {
775
- entityType: "Extension";
776
- action: "delete";
777
- } & {
778
- params: import("../common-types").GetExtensionParams;
779
- }): Promise<any>;
780
- (opts: {
781
- entityType: "Locale";
782
- action: "get";
783
- } & {
784
- params: import("../common-types").GetSpaceEnvironmentParams & {
785
- localeId: string;
786
- };
787
- }): Promise<import("./locale").LocaleProps>;
788
- (opts: {
789
- entityType: "Locale";
790
- action: "getMany";
791
- } & {
792
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
793
- }): Promise<import("../common-types").CollectionProp<import("./locale").LocaleProps>>;
794
- (opts: {
795
- entityType: "Locale";
796
- action: "delete";
797
- } & {
798
- params: import("../common-types").GetSpaceEnvironmentParams & {
799
- localeId: string;
800
- };
801
- }): Promise<any>;
802
- (opts: {
803
- entityType: "Locale";
804
- action: "update";
805
- } & {
806
- params: import("../common-types").GetSpaceEnvironmentParams & {
807
- localeId: string;
808
- };
809
- } & {
810
- payload: import("./locale").LocaleProps;
811
- } & {
812
- headers?: Record<string, unknown> | undefined;
813
- }): Promise<import("./locale").LocaleProps>;
814
- (opts: {
815
- entityType: "Locale";
816
- action: "create";
817
- } & {
818
- params: import("../common-types").GetSpaceEnvironmentParams;
819
- } & {
820
- payload: Pick<import("type-fest/source/simplify").Simplify<Pick<Pick<import("./locale").LocaleProps, "optional" | "default" | "code" | "name" | "internal_code" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">, "code" | "name" | "internal_code" | "fallbackCode"> & Partial<Pick<Pick<import("./locale").LocaleProps, "optional" | "default" | "code" | "name" | "internal_code" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">, "optional" | "default" | "contentDeliveryApi" | "contentManagementApi">>>, "optional" | "default" | "code" | "name" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">;
821
- } & {
822
- headers?: Record<string, unknown> | undefined;
823
- }): Promise<import("./locale").LocaleProps>;
824
- (opts: {
825
- entityType: "Organization";
826
- action: "getMany";
827
- }): Promise<import("../common-types").CollectionProp<import("./organization").OrganizationProp>>;
828
- (opts: {
829
- entityType: "Organization";
830
- action: "get";
831
- } & {
832
- params: import("../common-types").GetOrganizationParams;
833
- }): Promise<import("./organization").OrganizationProp>;
834
- (opts: {
835
- entityType: "OrganizationInvitation";
836
- action: "get";
837
- } & {
838
- params: {
839
- organizationId: string;
840
- invitationId: string;
841
- };
842
- } & {
843
- headers?: Record<string, unknown> | undefined;
844
- }): Promise<import("./organization-invitation").OrganizationInvitationProps>;
845
- (opts: {
846
- entityType: "OrganizationInvitation";
847
- action: "create";
848
- } & {
849
- params: {
850
- organizationId: string;
851
- };
852
- } & {
853
- payload: Pick<import("./organization-invitation").OrganizationInvitationProps, "firstName" | "lastName" | "email" | "role">;
854
- } & {
855
- headers?: Record<string, unknown> | undefined;
856
- }): Promise<import("./organization-invitation").OrganizationInvitationProps>;
857
- (opts: {
858
- entityType: "OrganizationMembership";
859
- action: "get";
860
- } & {
861
- params: import("../common-types").GetOrganizationMembershipProps;
862
- }): Promise<import("./organization-membership").OrganizationMembershipProps>;
863
- (opts: {
864
- entityType: "OrganizationMembership";
865
- action: "getMany";
866
- } & {
867
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
868
- }): Promise<import("../common-types").CollectionProp<import("./organization-membership").OrganizationMembershipProps>>;
869
- (opts: {
870
- entityType: "OrganizationMembership";
871
- action: "update";
872
- } & {
873
- params: import("../common-types").GetOrganizationMembershipProps;
874
- } & {
875
- payload: import("./organization-membership").OrganizationMembershipProps;
876
- } & {
877
- headers?: Record<string, unknown> | undefined;
878
- }): Promise<import("./organization-membership").OrganizationMembershipProps>;
879
- (opts: {
880
- entityType: "OrganizationMembership";
881
- action: "delete";
882
- } & {
883
- params: import("../common-types").GetOrganizationMembershipProps;
884
- }): Promise<any>;
885
- (opts: {
886
- entityType: "PersonalAccessToken";
887
- action: "get";
888
- } & {
889
- params: {
890
- tokenId: string;
891
- };
892
- }): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
893
- (opts: {
894
- entityType: "PersonalAccessToken";
895
- action: "getMany";
896
- } & {
897
- params: import("../common-types").QueryParams;
898
- }): Promise<import("../common-types").CollectionProp<import("./personal-access-token").PersonalAccessTokenProp>>;
899
- (opts: {
900
- entityType: "PersonalAccessToken";
901
- action: "create";
902
- } & {
903
- params: {};
904
- } & {
905
- payload: Pick<import("./personal-access-token").PersonalAccessToken, "name" | "scopes">;
906
- } & {
907
- headers?: Record<string, unknown> | undefined;
908
- }): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
909
- (opts: {
910
- entityType: "PersonalAccessToken";
911
- action: "revoke";
912
- } & {
913
- params: {
914
- tokenId: string;
915
- };
916
- }): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
917
- (opts: {
918
- entityType: "PreviewApiKey";
919
- action: "get";
920
- } & {
921
- params: import("../common-types").GetSpaceParams & {
922
- previewApiKeyId: string;
923
- };
924
- }): Promise<import("./preview-api-key").PreviewApiKeyProps>;
925
- (opts: {
926
- entityType: "PreviewApiKey";
927
- action: "getMany";
928
- } & {
929
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
930
- }): Promise<import("../common-types").CollectionProp<import("./preview-api-key").PreviewApiKeyProps>>;
931
- (opts: {
932
- entityType: "Release";
933
- action: "get";
934
- } & {
935
- params: import("../common-types").GetReleaseParams;
936
- }): Promise<import("./release").ReleaseProps>;
937
- (opts: {
938
- entityType: "Release";
939
- action: "query";
940
- } & {
941
- params: import("../common-types").GetSpaceEnvironmentParams & {
942
- query?: import("./release").ReleaseQueryOptions | undefined;
943
- };
944
- }): Promise<import("../common-types").CollectionProp<import("./release").ReleaseProps>>;
945
- (opts: {
946
- entityType: "Release";
947
- action: "create";
948
- } & {
949
- params: import("../common-types").GetSpaceEnvironmentParams;
950
- } & {
951
- payload: import("./release").ReleasePayload;
952
- }): Promise<import("./release").ReleaseProps>;
953
- (opts: {
954
- entityType: "Release";
955
- action: "update";
956
- } & {
957
- params: import("../common-types").GetSpaceEnvironmentParams & {
958
- releaseId: string;
959
- } & {
960
- version: number;
961
- };
962
- } & {
963
- payload: import("./release").ReleasePayload;
964
- }): Promise<import("./release").ReleaseProps>;
965
- (opts: {
966
- entityType: "Release";
967
- action: "delete";
968
- } & {
969
- params: import("../common-types").GetReleaseParams;
970
- }): Promise<void>;
971
- (opts: {
972
- entityType: "Release";
973
- action: "publish";
974
- } & {
975
- params: import("../common-types").GetSpaceEnvironmentParams & {
976
- releaseId: string;
977
- } & {
978
- version: number;
979
- };
980
- }): Promise<import("./release-action").ReleaseActionProps<"publish">>;
981
- (opts: {
982
- entityType: "Release";
983
- action: "unpublish";
984
- } & {
985
- params: import("../common-types").GetSpaceEnvironmentParams & {
986
- releaseId: string;
987
- } & {
988
- version: number;
989
- };
990
- }): Promise<import("./release-action").ReleaseActionProps<"unpublish">>;
991
- (opts: {
992
- entityType: "Release";
993
- action: "validate";
994
- } & {
995
- params: import("../common-types").GetReleaseParams;
996
- } & {
997
- payload?: import("./release").ReleaseValidatePayload | undefined;
998
- }): Promise<import("./release-action").ReleaseActionProps<"validate">>;
999
- (opts: {
1000
- entityType: "ReleaseAction";
1001
- action: "get";
1002
- } & {
1003
- params: import("../common-types").GetSpaceEnvironmentParams & {
1004
- releaseId: string;
1005
- } & {
1006
- actionId: string;
1007
- };
1008
- }): Promise<import("./release-action").ReleaseAction<any>>;
1009
- (opts: {
1010
- entityType: "ReleaseAction";
1011
- action: "queryForRelease";
1012
- } & {
1013
- params: import("../common-types").GetSpaceEnvironmentParams & {
1014
- releaseId: string;
1015
- } & {
1016
- query?: import("./release-action").ReleaseActionQueryOptions | undefined;
1017
- };
1018
- }): Promise<import("../common-types").Collection<import("./release-action").ReleaseAction<any>, import("./release-action").ReleaseActionProps<any>>>;
1019
- (opts: {
1020
- entityType: "Role";
1021
- action: "get";
1022
- } & {
1023
- params: import("../common-types").GetSpaceParams & {
1024
- roleId: string;
1025
- };
1026
- }): Promise<import("./role").RoleProps>;
1027
- (opts: {
1028
- entityType: "Role";
1029
- action: "getMany";
1030
- } & {
1031
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1032
- }): Promise<import("../common-types").CollectionProp<import("./role").RoleProps>>;
1033
- (opts: {
1034
- entityType: "Role";
1035
- action: "create";
1036
- } & {
1037
- params: import("../common-types").GetSpaceParams;
1038
- } & {
1039
- payload: Pick<import("./role").RoleProps, "description" | "name" | "permissions" | "policies">;
1040
- } & {
1041
- headers?: Record<string, unknown> | undefined;
1042
- }): Promise<import("./role").RoleProps>;
1043
- (opts: {
1044
- entityType: "Role";
1045
- action: "createWithId";
1046
- } & {
1047
- params: import("../common-types").GetSpaceParams & {
1048
- roleId: string;
1049
- };
1050
- } & {
1051
- payload: Pick<import("./role").RoleProps, "description" | "name" | "permissions" | "policies">;
1052
- } & {
1053
- headers?: Record<string, unknown> | undefined;
1054
- }): Promise<import("./role").RoleProps>;
1055
- (opts: {
1056
- entityType: "Role";
1057
- action: "update";
1058
- } & {
1059
- params: import("../common-types").GetSpaceParams & {
1060
- roleId: string;
1061
- };
1062
- } & {
1063
- payload: import("./role").RoleProps;
1064
- } & {
1065
- headers?: Record<string, unknown> | undefined;
1066
- }): Promise<import("./role").RoleProps>;
1067
- (opts: {
1068
- entityType: "Role";
1069
- action: "delete";
1070
- } & {
1071
- params: import("../common-types").GetSpaceParams & {
1072
- roleId: string;
1073
- };
1074
- }): Promise<any>;
1075
- (opts: {
1076
- entityType: "ScheduledAction";
1077
- action: "get";
1078
- } & {
1079
- params: import("../common-types").GetSpaceParams & {
1080
- scheduledActionId: string;
1081
- environmentId: string;
1082
- };
1083
- }): Promise<import("./scheduled-action").ScheduledActionProps>;
1084
- (opts: {
1085
- entityType: "ScheduledAction";
1086
- action: "getMany";
1087
- } & {
1088
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1089
- }): Promise<import("../common-types").CollectionProp<import("./scheduled-action").ScheduledActionProps>>;
1090
- (opts: {
1091
- entityType: "ScheduledAction";
1092
- action: "create";
1093
- } & {
1094
- params: import("../common-types").GetSpaceParams;
1095
- } & {
1096
- payload: Pick<import("./scheduled-action").ScheduledActionProps, "environment" | "error" | "action" | "entity" | "scheduledFor">;
1097
- }): Promise<import("./scheduled-action").ScheduledActionProps>;
1098
- (opts: {
1099
- entityType: "ScheduledAction";
1100
- action: "update";
1101
- } & {
1102
- params: import("../common-types").GetSpaceParams & {
1103
- scheduledActionId: string;
1104
- version: number;
1105
- };
1106
- } & {
1107
- payload: Pick<import("./scheduled-action").ScheduledActionProps, "environment" | "error" | "action" | "entity" | "scheduledFor">;
1108
- }): Promise<import("./scheduled-action").ScheduledActionProps>;
1109
- (opts: {
1110
- entityType: "ScheduledAction";
1111
- action: "delete";
1112
- } & {
1113
- params: import("../common-types").GetSpaceEnvironmentParams & {
1114
- scheduledActionId: string;
1115
- };
1116
- }): Promise<any>;
1117
- (opts: {
1118
- entityType: "Snapshot";
1119
- action: "getManyForEntry";
1120
- } & {
1121
- params: import("../common-types").GetSpaceEnvironmentParams & {
1122
- entryId: string;
1123
- } & import("../common-types").QueryParams;
1124
- }): Promise<import("../common-types").CollectionProp<import("./snapshot").SnapshotProps<import("./entry").EntryProps<any>>>>;
1125
- (opts: {
1126
- entityType: "Snapshot";
1127
- action: "getForEntry";
1128
- } & {
1129
- params: import("../common-types").GetSpaceEnvironmentParams & {
1130
- entryId: string;
1131
- } & {
1132
- snapshotId: string;
1133
- };
1134
- }): Promise<import("./snapshot").SnapshotProps<import("./entry").EntryProps<any>>>;
1135
- (opts: {
1136
- entityType: "Snapshot";
1137
- action: "getManyForContentType";
1138
- } & {
1139
- params: import("../common-types").GetSpaceEnvironmentParams & {
1140
- contentTypeId: string;
1141
- } & import("../common-types").QueryParams;
1142
- }): Promise<import("../common-types").CollectionProp<import("./snapshot").SnapshotProps<import("./content-type").ContentTypeProps>>>;
1143
- (opts: {
1144
- entityType: "Snapshot";
1145
- action: "getForContentType";
1146
- } & {
1147
- params: import("../common-types").GetSpaceEnvironmentParams & {
1148
- contentTypeId: string;
1149
- } & {
1150
- snapshotId: string;
1151
- };
1152
- }): Promise<import("./snapshot").SnapshotProps<import("./content-type").ContentTypeProps>>;
1153
- (opts: {
1154
- entityType: "Space";
1155
- action: "get";
1156
- } & {
1157
- params: import("../common-types").GetSpaceParams;
1158
- }): Promise<import("./space").SpaceProps>;
1159
- (opts: {
1160
- entityType: "Space";
1161
- action: "getMany";
1162
- } & {
1163
- params: import("../common-types").QueryParams;
1164
- }): Promise<import("../common-types").CollectionProp<import("./space").SpaceProps>>;
1165
- (opts: {
1166
- entityType: "Space";
1167
- action: "create";
1168
- } & {
1169
- params: {
1170
- organizationId?: string | undefined;
1171
- };
1172
- } & {
1173
- payload: Pick<import("./space").SpaceProps, "name">;
1174
- } & {
1175
- headers?: Record<string, unknown> | undefined;
1176
- }): Promise<any>;
1177
- (opts: {
1178
- entityType: "Space";
1179
- action: "update";
1180
- } & {
1181
- params: import("../common-types").GetSpaceParams;
1182
- } & {
1183
- payload: import("./space").SpaceProps;
1184
- } & {
1185
- headers?: Record<string, unknown> | undefined;
1186
- }): Promise<import("./space").SpaceProps>;
1187
- (opts: {
1188
- entityType: "Space";
1189
- action: "delete";
1190
- } & {
1191
- params: import("../common-types").GetSpaceParams;
1192
- }): Promise<void>;
1193
- (opts: {
1194
- entityType: "SpaceMember";
1195
- action: "get";
1196
- } & {
1197
- params: import("../common-types").GetSpaceParams & {
1198
- spaceMemberId: string;
1199
- };
1200
- }): Promise<import("./space-member").SpaceMemberProps>;
1201
- (opts: {
1202
- entityType: "SpaceMember";
1203
- action: "getMany";
1204
- } & {
1205
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1206
- }): Promise<import("../common-types").CollectionProp<import("./space-member").SpaceMemberProps>>;
1207
- (opts: {
1208
- entityType: "SpaceMembership";
1209
- action: "get";
1210
- } & {
1211
- params: import("../common-types").GetSpaceMembershipProps;
1212
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1213
- (opts: {
1214
- entityType: "SpaceMembership";
1215
- action: "getMany";
1216
- } & {
1217
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1218
- }): Promise<import("../common-types").CollectionProp<import("./space-membership").SpaceMembershipProps>>;
1219
- (opts: {
1220
- entityType: "SpaceMembership";
1221
- action: "getForOrganization";
1222
- } & {
1223
- params: import("../common-types").GetOrganizationParams & {
1224
- spaceMembershipId: string;
1225
- };
1226
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1227
- (opts: {
1228
- entityType: "SpaceMembership";
1229
- action: "getManyForOrganization";
1230
- } & {
1231
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1232
- }): Promise<import("../common-types").CollectionProp<import("./space-membership").SpaceMembershipProps>>;
1233
- (opts: {
1234
- entityType: "SpaceMembership";
1235
- action: "create";
1236
- } & {
1237
- params: import("../common-types").GetSpaceParams;
1238
- } & {
1239
- payload: import("./space-membership").CreateSpaceMembershipProps;
1240
- } & {
1241
- headers?: Record<string, unknown> | undefined;
1242
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1243
- (opts: {
1244
- entityType: "SpaceMembership";
1245
- action: "createWithId";
1246
- } & {
1247
- params: import("../common-types").GetSpaceMembershipProps;
1248
- } & {
1249
- payload: import("./space-membership").CreateSpaceMembershipProps;
1250
- } & {
1251
- headers?: Record<string, unknown> | undefined;
1252
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1253
- (opts: {
1254
- entityType: "SpaceMembership";
1255
- action: "update";
1256
- } & {
1257
- params: import("../common-types").GetSpaceMembershipProps;
1258
- } & {
1259
- payload: import("./space-membership").SpaceMembershipProps;
1260
- } & {
1261
- headers?: Record<string, unknown> | undefined;
1262
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1263
- (opts: {
1264
- entityType: "SpaceMembership";
1265
- action: "delete";
1266
- } & {
1267
- params: import("../common-types").GetSpaceMembershipProps;
1268
- }): Promise<any>;
1269
- (opts: {
1270
- entityType: "Tag";
1271
- action: "get";
1272
- } & {
1273
- params: GetTagParams;
1274
- }): Promise<TagProps>;
1275
- (opts: {
1276
- entityType: "Tag";
1277
- action: "getMany";
1278
- } & {
1279
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
1280
- }): Promise<import("../common-types").CollectionProp<TagProps>>;
1281
- (opts: {
1282
- entityType: "Tag";
1283
- action: "createWithId";
1284
- } & {
1285
- params: GetTagParams;
1286
- } & {
1287
- payload: CreateTagProps;
1288
- }): Promise<TagProps>;
1289
- (opts: {
1290
- entityType: "Tag";
1291
- action: "update";
1292
- } & {
1293
- params: GetTagParams;
1294
- } & {
1295
- payload: UpdateTagProps;
1296
- } & {
1297
- headers?: Record<string, unknown> | undefined;
1298
- }): Promise<TagProps>;
1299
- (opts: {
1300
- entityType: "Tag";
1301
- action: "delete";
1302
- } & {
1303
- params: DeleteTagParams;
1304
- }): Promise<any>;
1305
- (opts: {
1306
- entityType: "Task";
1307
- action: "get";
1308
- } & {
1309
- params: import("../common-types").GetTaskParams;
1310
- }): Promise<import("./task").TaskProps>;
1311
- (opts: {
1312
- entityType: "Task";
1313
- action: "getAll";
1314
- } & {
1315
- params: import("../common-types").GetEntryParams;
1316
- }): Promise<import("../common-types").CollectionProp<import("./task").TaskProps>>;
1317
- (opts: {
1318
- entityType: "Task";
1319
- action: "create";
1320
- } & {
1321
- params: import("../common-types").GetEntryParams;
1322
- } & {
1323
- payload: Pick<import("./task").TaskProps, "body" | "assignedTo" | "status" | "dueDate">;
1324
- }): Promise<import("./task").TaskProps>;
1325
- (opts: {
1326
- entityType: "Task";
1327
- action: "update";
1328
- } & {
1329
- params: import("../common-types").GetTaskParams;
1330
- } & {
1331
- payload: import("./task").UpdateTaskProps;
1332
- } & {
1333
- headers?: Record<string, unknown> | undefined;
1334
- }): Promise<import("./task").TaskProps>;
1335
- (opts: {
1336
- entityType: "Task";
1337
- action: "delete";
1338
- } & {
1339
- params: import("./task").DeleteTaskParams;
1340
- }): Promise<void>;
1341
- (opts: {
1342
- entityType: "Team";
1343
- action: "get";
1344
- } & {
1345
- params: import("../common-types").GetTeamParams;
1346
- }): Promise<import("./team").TeamProps>;
1347
- (opts: {
1348
- entityType: "Team";
1349
- action: "getMany";
1350
- } & {
1351
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1352
- }): Promise<import("../common-types").CollectionProp<import("./team").TeamProps>>;
1353
- (opts: {
1354
- entityType: "Team";
1355
- action: "getManyForSpace";
1356
- } & {
1357
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1358
- }): Promise<import("../common-types").CollectionProp<import("./team").TeamProps>>;
1359
- (opts: {
1360
- entityType: "Team";
1361
- action: "create";
1362
- } & {
1363
- params: import("../common-types").GetOrganizationParams;
1364
- } & {
1365
- payload: Pick<import("./team").TeamProps, "description" | "name">;
1366
- } & {
1367
- headers?: Record<string, unknown> | undefined;
1368
- }): Promise<any>;
1369
- (opts: {
1370
- entityType: "Team";
1371
- action: "update";
1372
- } & {
1373
- params: import("../common-types").GetTeamParams;
1374
- } & {
1375
- payload: import("./team").TeamProps;
1376
- } & {
1377
- headers?: Record<string, unknown> | undefined;
1378
- }): Promise<import("./team").TeamProps>;
1379
- (opts: {
1380
- entityType: "Team";
1381
- action: "delete";
1382
- } & {
1383
- params: import("../common-types").GetTeamParams;
1384
- }): Promise<any>;
1385
- (opts: {
1386
- entityType: "TeamMembership";
1387
- action: "get";
1388
- } & {
1389
- params: import("../common-types").GetTeamMembershipParams;
1390
- }): Promise<import("./team-membership").TeamMembershipProps>;
1391
- (opts: {
1392
- entityType: "TeamMembership";
1393
- action: "getManyForOrganization";
1394
- } & {
1395
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1396
- }): Promise<import("../common-types").CollectionProp<import("./team-membership").TeamMembershipProps>>;
1397
- (opts: {
1398
- entityType: "TeamMembership";
1399
- action: "getManyForTeam";
1400
- } & {
1401
- params: import("../common-types").GetTeamParams & import("../common-types").QueryParams;
1402
- }): Promise<import("../common-types").CollectionProp<import("./team-membership").TeamMembershipProps>>;
1403
- (opts: {
1404
- entityType: "TeamMembership";
1405
- action: "create";
1406
- } & {
1407
- params: import("../common-types").GetTeamParams;
1408
- } & {
1409
- payload: Pick<import("./team-membership").TeamMembershipProps, "admin" | "organizationMembershipId">;
1410
- } & {
1411
- headers?: Record<string, unknown> | undefined;
1412
- }): Promise<import("./team-membership").TeamMembershipProps>;
1413
- (opts: {
1414
- entityType: "TeamMembership";
1415
- action: "update";
1416
- } & {
1417
- params: import("../common-types").GetTeamMembershipParams;
1418
- } & {
1419
- payload: import("./team-membership").TeamMembershipProps;
1420
- } & {
1421
- headers?: Record<string, unknown> | undefined;
1422
- }): Promise<import("./team-membership").TeamMembershipProps>;
1423
- (opts: {
1424
- entityType: "TeamMembership";
1425
- action: "delete";
1426
- } & {
1427
- params: import("../common-types").GetTeamMembershipParams;
1428
- }): Promise<any>;
1429
- (opts: {
1430
- entityType: "TeamSpaceMembership";
1431
- action: "get";
1432
- } & {
1433
- params: import("../common-types").GetTeamSpaceMembershipParams;
1434
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1435
- (opts: {
1436
- entityType: "TeamSpaceMembership";
1437
- action: "getMany";
1438
- } & {
1439
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1440
- }): Promise<import("../common-types").CollectionProp<import("./team-space-membership").TeamSpaceMembershipProps>>;
1441
- (opts: {
1442
- entityType: "TeamSpaceMembership";
1443
- action: "getForOrganization";
1444
- } & {
1445
- params: import("../common-types").GetOrganizationParams & {
1446
- teamSpaceMembershipId: string;
1447
- };
1448
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1449
- (opts: {
1450
- entityType: "TeamSpaceMembership";
1451
- action: "getManyForOrganization";
1452
- } & {
1453
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams & {
1454
- teamId?: string | undefined;
1455
- };
1456
- }): Promise<import("../common-types").CollectionProp<import("./team-space-membership").TeamSpaceMembershipProps>>;
1457
- (opts: {
1458
- entityType: "TeamSpaceMembership";
1459
- action: "create";
1460
- } & {
1461
- params: import("../common-types").GetSpaceParams & {
1462
- teamId: string;
1463
- };
1464
- } & {
1465
- payload: Pick<import("./team-space-membership").TeamSpaceMembershipProps, "admin" | "roles">;
1466
- } & {
1467
- headers?: Record<string, unknown> | undefined;
1468
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1469
- (opts: {
1470
- entityType: "TeamSpaceMembership";
1471
- action: "update";
1472
- } & {
1473
- params: import("../common-types").GetTeamSpaceMembershipParams;
1474
- } & {
1475
- payload: import("./team-space-membership").TeamSpaceMembershipProps;
1476
- } & {
1477
- headers?: Record<string, unknown> | undefined;
1478
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1479
- (opts: {
1480
- entityType: "TeamSpaceMembership";
1481
- action: "delete";
1482
- } & {
1483
- params: import("../common-types").GetTeamSpaceMembershipParams;
1484
- }): Promise<any>;
1485
- (opts: {
1486
- entityType: "Upload";
1487
- action: "get";
1488
- } & {
1489
- params: import("../common-types").GetSpaceParams & {
1490
- uploadId: string;
1491
- };
1492
- }): Promise<import("./entry").EntryProps<any>>;
1493
- (opts: {
1494
- entityType: "Upload";
1495
- action: "create";
1496
- } & {
1497
- params: import("../common-types").GetSpaceParams;
1498
- } & {
1499
- payload: {
1500
- file: string | ArrayBuffer | import("stream").Stream;
1501
- };
1502
- }): Promise<import("./entry").EntryProps<any>>;
1503
- (opts: {
1504
- entityType: "Upload";
1505
- action: "delete";
1506
- } & {
1507
- params: import("../common-types").GetSpaceParams & {
1508
- uploadId: string;
1509
- };
1510
- }): Promise<any>;
1511
- (opts: {
1512
- entityType: "Usage";
1513
- action: "getManyForSpace";
1514
- } & {
1515
- params: {
1516
- organizationId: string;
1517
- } & import("../common-types").QueryParams;
1518
- }): Promise<import("../common-types").CollectionProp<import("./usage").UsageProps>>;
1519
- (opts: {
1520
- entityType: "Usage";
1521
- action: "getManyForOrganization";
1522
- } & {
1523
- params: {
1524
- organizationId: string;
1525
- } & import("../common-types").QueryParams;
1526
- }): Promise<import("../common-types").CollectionProp<import("./usage").UsageProps>>;
1527
- (opts: {
1528
- entityType: "User";
1529
- action: "getManyForSpace";
1530
- } & {
1531
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1532
- }): Promise<import("../common-types").CollectionProp<import("./user").UserProps>>;
1533
- (opts: {
1534
- entityType: "User";
1535
- action: "getForSpace";
1536
- } & {
1537
- params: import("../common-types").GetSpaceParams & {
1538
- userId: string;
1539
- };
1540
- }): Promise<import("./user").UserProps>;
1541
- (opts: {
1542
- entityType: "User";
1543
- action: "getCurrent";
1544
- } & {
1545
- params?: import("../common-types").QueryParams | undefined;
1546
- }): Promise<any>;
1547
- (opts: {
1548
- entityType: "User";
1549
- action: "getForOrganization";
1550
- } & {
1551
- params: import("../common-types").GetOrganizationParams & {
1552
- userId: string;
1553
- };
1554
- }): Promise<import("./user").UserProps>;
1555
- (opts: {
1556
- entityType: "User";
1557
- action: "getManyForOrganization";
1558
- } & {
1559
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1560
- }): Promise<import("../common-types").CollectionProp<import("./user").UserProps>>;
1561
- (opts: {
1562
- entityType: "Webhook";
1563
- action: "get";
1564
- } & {
1565
- params: import("../common-types").GetWebhookParams;
1566
- }): Promise<import("./webhook").WebhookProps>;
1567
- (opts: {
1568
- entityType: "Webhook";
1569
- action: "getMany";
1570
- } & {
1571
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1572
- }): Promise<import("../common-types").CollectionProp<import("./webhook").WebhookProps>>;
1573
- (opts: {
1574
- entityType: "Webhook";
1575
- action: "getCallDetails";
1576
- } & {
1577
- params: import("../common-types").GetWebhookCallDetailsUrl;
1578
- }): Promise<import("./webhook").WebhookCallDetailsProps>;
1579
- (opts: {
1580
- entityType: "Webhook";
1581
- action: "getHealthStatus";
1582
- } & {
1583
- params: import("../common-types").GetWebhookParams;
1584
- }): Promise<import("./webhook").WebhookHealthProps>;
1585
- (opts: {
1586
- entityType: "Webhook";
1587
- action: "getManyCallDetails";
1588
- } & {
1589
- params: import("../common-types").GetSpaceParams & {
1590
- webhookDefinitionId: string;
1591
- } & import("../common-types").QueryParams;
1592
- }): Promise<import("../common-types").CollectionProp<Pick<import("./webhook").WebhookCallDetailsProps, "sys" | "statusCode" | "errors" | "eventType" | "url" | "requestAt" | "responseAt">>>;
1593
- (opts: {
1594
- entityType: "Webhook";
1595
- action: "create";
1596
- } & {
1597
- params: import("../common-types").GetSpaceParams;
1598
- } & {
1599
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation"> & Partial<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "headers">>>;
1600
- } & {
1601
- headers?: Record<string, unknown> | undefined;
1602
- }): Promise<import("./webhook").WebhookProps>;
1603
- (opts: {
1604
- entityType: "Webhook";
1605
- action: "createWithId";
1606
- } & {
1607
- params: import("../common-types").GetWebhookParams;
1608
- } & {
1609
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation"> & Partial<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "headers">>>;
1610
- } & {
1611
- headers?: Record<string, unknown> | undefined;
1612
- }): Promise<import("./webhook").WebhookProps>;
1613
- (opts: {
1614
- entityType: "Webhook";
1615
- action: "update";
1616
- } & {
1617
- params: import("../common-types").GetWebhookParams;
1618
- } & {
1619
- payload: import("./webhook").WebhookProps;
1620
- }): Promise<import("./webhook").WebhookProps>;
1621
- (opts: {
1622
- entityType: "Webhook";
1623
- action: "delete";
1624
- } & {
1625
- params: import("../common-types").GetWebhookParams;
1626
- }): Promise<void>;
1627
- }, data: import("../common-types").CollectionProp<TagProps>) => import("../common-types").Collection<Tag, TagProps>;
50
+ export declare const wrapTagCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<TagProps>) => import("../common-types").Collection<Tag, TagProps>;
1628
51
  export {};