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