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