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