1 | import type { RawAxiosRequestConfig, RawAxiosRequestHeaders } from 'axios';
|
2 | import type { OpPatch } from 'json-patch';
|
3 | import type { BasicCursorPaginationOptions, CollectionProp, CursorPaginatedCollectionProp, EnvironmentTemplateParams, GetAppDefinitionParams, GetBulkActionParams, GetContentTypeParams, GetEnvironmentTemplateParams, GetOrganizationMembershipParams, GetOrganizationParams, GetReleaseParams, GetSnapshotForContentTypeParams, GetSnapshotForEntryParams, GetSpaceEnvironmentParams, GetSpaceParams, KeyValueMap, QueryParams } from '../common-types';
|
4 | import type { ApiKeyProps, CreateApiKeyProps } from '../entities/api-key';
|
5 | import type { AssetFileProp, AssetProcessingForLocale, AssetProps, CreateAssetProps } from '../entities/asset';
|
6 | import type { ContentTypeProps, CreateContentTypeProps } from '../entities/content-type';
|
7 | import type { CreateEntryProps, EntryProps, EntryReferenceProps } from '../entities/entry';
|
8 | import type { CreateOrganizationInvitationProps, OrganizationInvitationProps } from '../entities/organization-invitation';
|
9 | import type { OrganizationMembershipProps } from '../entities/organization-membership';
|
10 | import type { CreatePersonalAccessTokenProps, PersonalAccessTokenProp } from '../entities/personal-access-token';
|
11 | import type { AccessTokenProp, CreatePersonalAccessTokenProps as CreatePATProps } from '../entities/access-token';
|
12 | import type { PreviewApiKeyProps } from '../entities/preview-api-key';
|
13 | import type { CreateUpdateScheduledActionProps, ScheduledActionProps } from '../entities/scheduled-action';
|
14 | import type { SnapshotProps } from '../entities/snapshot';
|
15 | import type { DefaultParams, OptionalDefaults } from './wrappers/wrap';
|
16 | import type { AssetKeyProps, CreateAssetKeyProps } from '../entities/asset-key';
|
17 | import type { FunctionProps } from '../entities/function';
|
18 | import type { BulkActionPayload, BulkActionProps, BulkActionPublishPayload, BulkActionUnpublishPayload, BulkActionValidatePayload } from '../entities/bulk-action';
|
19 | import type { ReleasePayload, ReleaseProps, ReleaseQueryOptions, ReleaseValidatePayload } from '../entities/release';
|
20 | import type { ReleaseActionProps, ReleaseActionQueryOptions } from '../entities/release-action';
|
21 | import type { CreateEnvironmentTemplateProps, EnvironmentTemplateProps } from '../entities/environment-template';
|
22 | import type { CreateEnvironmentTemplateInstallationProps, EnvironmentTemplateInstallationProps, EnvironmentTemplateValidationProps, ValidateEnvironmentTemplateInstallationProps } from '../entities/environment-template-installation';
|
23 | import type { AppActionPlainClientAPI } from './entities/app-action';
|
24 | import type { AppActionCallPlainClientAPI } from './entities/app-action-call';
|
25 | import type { EditorInterfacePlainClientAPI } from './entities/editor-interface';
|
26 | import type { UIConfigPlainClientAPI } from './entities/ui-config';
|
27 | import type { UserUIConfigPlainClientAPI } from './entities/user-ui-config';
|
28 | import type { AppDefinitionPlainClientAPI } from './entities/app-definition';
|
29 | import type { AppUploadPlainClientAPI } from './entities/app-upload';
|
30 | import type { AppBundlePlainClientAPI } from './entities/app-bundle';
|
31 | import type { AppDetailsPlainClientAPI } from './entities/app-details';
|
32 | import type { AppInstallationPlainClientAPI } from './entities/app-installation';
|
33 | import type { WebhookPlainClientAPI } from './entities/webhook';
|
34 | import type { AppSignedRequestPlainClientAPI } from './entities/app-signed-request';
|
35 | import type { AppSigningSecretPlainClientAPI } from './entities/app-signing-secret';
|
36 | import type { ExtensionPlainClientAPI } from './entities/extension';
|
37 | import type { AppEventSubscriptionPlainClientAPI } from './entities/app-event-subscription';
|
38 | import type { AppKeyPlainClientAPI } from './entities/app-key';
|
39 | import type { UserPlainClientAPI } from './entities/user';
|
40 | import type { UploadPlainClientAPI } from './entities/upload';
|
41 | import type { OrganizationPlainClientAPI } from './entities/organization';
|
42 | import type { LocalePlainClientAPI } from './entities/locale';
|
43 | import type { SpacePlainClientAPI } from './entities/space';
|
44 | import type { SpaceMembershipPlainClientAPI } from './entities/space-membership';
|
45 | import type { SpaceMemberPlainClientAPI } from './entities/space-member';
|
46 | import type { EnvironmentPlainClientAPI } from './entities/environment';
|
47 | import type { EnvironmentAliasPlainClientAPI } from './entities/environment-alias';
|
48 | import type { CommentPlainClientAPI } from './entities/comment';
|
49 | import type { TaskPlainClientAPI } from './entities/task';
|
50 | import type { WorkflowPlainClientAPI } from './entities/workflow';
|
51 | import type { WorkflowsChangelogPlainClientAPI } from './entities/workflows-changelog';
|
52 | import type { WorkflowDefinitionPlainClientAPI } from './entities/workflow-definition';
|
53 | import type { RolePlainClientAPI } from './entities/role';
|
54 | import type { TagPlainClientAPI } from './entities/tag';
|
55 | import type { UsagePlainClientAPI } from './entities/usage';
|
56 | import type { TeamSpaceMembershipPlainClientAPI } from './entities/team-space-membership';
|
57 | import type { TeamPlainClientAPI } from './entities/team';
|
58 | import type { TeamMembershipPlainClientAPI } from './entities/team-membership';
|
59 | import type { AppAccessTokenPlainClientAPI } from './entities/app-access-token';
|
60 | import type { ConceptPlainClientAPI } from './entities/concept';
|
61 | import type { ConceptSchemePlainClientAPI } from './entities/concept-scheme';
|
62 | import type { ResourceProviderPlainClientAPI } from './entities/resource-provider';
|
63 | export type PlainClientAPI = {
|
64 | raw: {
|
65 | getDefaultParams(): DefaultParams | undefined;
|
66 | get<T = unknown>(url: string, config?: RawAxiosRequestConfig): Promise<T>;
|
67 | post<T = unknown>(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise<T>;
|
68 | patch<T = unknown>(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise<T>;
|
69 | put<T = unknown>(url: string, payload?: any, config?: RawAxiosRequestConfig): Promise<T>;
|
70 | delete<T = unknown>(url: string, config?: RawAxiosRequestConfig): Promise<T>;
|
71 | http<T = unknown>(url: string, config?: RawAxiosRequestConfig): Promise<T>;
|
72 | };
|
73 | appAction: AppActionPlainClientAPI;
|
74 | appActionCall: AppActionCallPlainClientAPI;
|
75 | appBundle: AppBundlePlainClientAPI;
|
76 | appDetails: AppDetailsPlainClientAPI;
|
77 | appEventSubscription: AppEventSubscriptionPlainClientAPI;
|
78 | appKey: AppKeyPlainClientAPI;
|
79 | appSignedRequest: AppSignedRequestPlainClientAPI;
|
80 | appSigningSecret: AppSigningSecretPlainClientAPI;
|
81 | appAccessToken: AppAccessTokenPlainClientAPI;
|
82 | function: {
|
83 | getMany(params: OptionalDefaults<GetAppDefinitionParams & QueryParams>): Promise<CollectionProp<FunctionProps>>;
|
84 | };
|
85 | editorInterface: EditorInterfacePlainClientAPI;
|
86 | space: SpacePlainClientAPI;
|
87 | environment: EnvironmentPlainClientAPI;
|
88 | environmentAlias: EnvironmentAliasPlainClientAPI;
|
89 | environmentTemplate: {
|
90 | get(params: GetEnvironmentTemplateParams & {
|
91 | version?: number;
|
92 | query?: {
|
93 | select?: string;
|
94 | };
|
95 | }, headers?: RawAxiosRequestHeaders): Promise<EnvironmentTemplateProps>;
|
96 | getMany(params: GetOrganizationParams & {
|
97 | query?: BasicCursorPaginationOptions & {
|
98 | select?: string;
|
99 | };
|
100 | }, headers?: RawAxiosRequestHeaders): Promise<CursorPaginatedCollectionProp<EnvironmentTemplateProps>>;
|
101 | create(params: GetOrganizationParams, rawData: CreateEnvironmentTemplateProps, headers?: RawAxiosRequestHeaders): Promise<EnvironmentTemplateProps>;
|
102 | versionUpdate(params: GetEnvironmentTemplateParams & {
|
103 | version: number;
|
104 | }, rawData: {
|
105 | versionName?: string;
|
106 | versionDescription?: string;
|
107 | }, headers?: RawAxiosRequestHeaders): Promise<EnvironmentTemplateProps>;
|
108 | update(params: GetEnvironmentTemplateParams, rawData: EnvironmentTemplateProps, headers?: RawAxiosRequestHeaders): Promise<EnvironmentTemplateProps>;
|
109 | delete(params: GetEnvironmentTemplateParams, headers?: RawAxiosRequestHeaders): Promise<void>;
|
110 | versions(params: GetEnvironmentTemplateParams & {
|
111 | query?: BasicCursorPaginationOptions & {
|
112 | select?: string;
|
113 | };
|
114 | }, headers?: RawAxiosRequestHeaders): Promise<CursorPaginatedCollectionProp<EnvironmentTemplateProps>>;
|
115 | validate(params: EnvironmentTemplateParams & {
|
116 | version?: number;
|
117 | }, rawData: ValidateEnvironmentTemplateInstallationProps, headers?: RawAxiosRequestHeaders): Promise<EnvironmentTemplateValidationProps>;
|
118 | install(params: EnvironmentTemplateParams, rawData: CreateEnvironmentTemplateInstallationProps, headers?: RawAxiosRequestHeaders): Promise<EnvironmentTemplateInstallationProps>;
|
119 | disconnect(params: EnvironmentTemplateParams, headers?: RawAxiosRequestHeaders): Promise<void>;
|
120 | };
|
121 | environmentTemplateInstallation: {
|
122 | getMany(params: BasicCursorPaginationOptions & {
|
123 | environmentId?: string;
|
124 | environmentTemplateId: string;
|
125 | organizationId: string;
|
126 | spaceId?: string;
|
127 | }, headers?: RawAxiosRequestHeaders): Promise<CursorPaginatedCollectionProp<EnvironmentTemplateInstallationProps>>;
|
128 | getForEnvironment(params: BasicCursorPaginationOptions & EnvironmentTemplateParams & {
|
129 | installationId?: string;
|
130 | }, headers?: RawAxiosRequestHeaders): Promise<CursorPaginatedCollectionProp<EnvironmentTemplateInstallationProps>>;
|
131 | };
|
132 | bulkAction: {
|
133 | get<T extends BulkActionPayload = any>(params: GetBulkActionParams): Promise<BulkActionProps<T>>;
|
134 | publish(params: GetSpaceEnvironmentParams, payload: BulkActionPublishPayload): Promise<BulkActionProps<BulkActionPublishPayload>>;
|
135 | unpublish(params: GetSpaceEnvironmentParams, payload: BulkActionUnpublishPayload): Promise<BulkActionProps<BulkActionUnpublishPayload>>;
|
136 | validate(params: GetSpaceEnvironmentParams, payload: BulkActionValidatePayload): Promise<BulkActionProps<BulkActionValidatePayload>>;
|
137 | };
|
138 | comment: CommentPlainClientAPI;
|
139 | concept: ConceptPlainClientAPI;
|
140 | conceptScheme: ConceptSchemePlainClientAPI;
|
141 | contentType: {
|
142 | get(params: OptionalDefaults<GetContentTypeParams & QueryParams>): Promise<ContentTypeProps>;
|
143 | getMany(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>): Promise<CollectionProp<ContentTypeProps>>;
|
144 | update(params: OptionalDefaults<GetContentTypeParams>, rawData: ContentTypeProps, headers?: RawAxiosRequestHeaders): Promise<ContentTypeProps>;
|
145 | delete(params: OptionalDefaults<GetContentTypeParams>): Promise<any>;
|
146 | publish(params: OptionalDefaults<GetContentTypeParams>, rawData: ContentTypeProps): Promise<ContentTypeProps>;
|
147 | unpublish(params: OptionalDefaults<GetContentTypeParams>): Promise<ContentTypeProps>;
|
148 | create(params: OptionalDefaults<GetSpaceEnvironmentParams>, rawData: CreateContentTypeProps): Promise<ContentTypeProps>;
|
149 | createWithId(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
150 | contentTypeId: string;
|
151 | }>, rawData: CreateContentTypeProps): Promise<ContentTypeProps>;
|
152 | omitAndDeleteField(params: OptionalDefaults<GetContentTypeParams>, contentType: ContentTypeProps, fieldId: string): Promise<ContentTypeProps>;
|
153 | };
|
154 | user: UserPlainClientAPI;
|
155 | entry: {
|
156 | getPublished<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<EntryProps<T>>>;
|
157 | getMany<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<EntryProps<T>>>;
|
158 | get<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
159 | entryId: string;
|
160 | }>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<EntryProps<T>>;
|
161 | update<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
162 | entryId: string;
|
163 | }>, rawData: EntryProps<T>, headers?: RawAxiosRequestHeaders): Promise<EntryProps<T>>;
|
164 | patch<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
165 | entryId: string;
|
166 | }>, rawData: OpPatch[], headers?: RawAxiosRequestHeaders): Promise<EntryProps<T>>;
|
167 | delete(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
168 | entryId: string;
|
169 | }>): Promise<any>;
|
170 | publish<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
171 | entryId: string;
|
172 | }>, rawData: EntryProps<T>): Promise<EntryProps<T>>;
|
173 | unpublish<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
174 | entryId: string;
|
175 | }>): Promise<EntryProps<T>>;
|
176 | archive<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
177 | entryId: string;
|
178 | }>): Promise<EntryProps<T>>;
|
179 | unarchive<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
180 | entryId: string;
|
181 | }>): Promise<EntryProps<T>>;
|
182 | create<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
183 | contentTypeId: string;
|
184 | }>, rawData: CreateEntryProps<T>): Promise<EntryProps<T>>;
|
185 | createWithId<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
186 | entryId: string;
|
187 | contentTypeId: string;
|
188 | }>, rawData: CreateEntryProps<T>): Promise<EntryProps<T>>;
|
189 | references(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
190 | entryId: string;
|
191 | include?: number;
|
192 | }>): Promise<EntryReferenceProps>;
|
193 | };
|
194 | asset: {
|
195 | getPublished(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<AssetProps>>;
|
196 | getMany(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<AssetProps>>;
|
197 | get(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
198 | assetId: string;
|
199 | } & QueryParams>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<AssetProps>;
|
200 | update(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
201 | assetId: string;
|
202 | }>, rawData: AssetProps, headers?: RawAxiosRequestHeaders): Promise<AssetProps>;
|
203 | delete(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
204 | assetId: string;
|
205 | }>): Promise<any>;
|
206 | publish(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
207 | assetId: string;
|
208 | }>, rawData: AssetProps): Promise<AssetProps>;
|
209 | unpublish(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
210 | assetId: string;
|
211 | }>): Promise<AssetProps>;
|
212 | archive(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
213 | assetId: string;
|
214 | }>): Promise<AssetProps>;
|
215 | unarchive(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
216 | assetId: string;
|
217 | }>): Promise<AssetProps>;
|
218 | create(params: OptionalDefaults<GetSpaceEnvironmentParams>, rawData: CreateAssetProps): Promise<AssetProps>;
|
219 | createWithId(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
220 | assetId: string;
|
221 | }>, rawData: CreateAssetProps): Promise<AssetProps>;
|
222 | createFromFiles(params: OptionalDefaults<GetSpaceEnvironmentParams>, data: Omit<AssetFileProp, 'sys'>): Promise<AssetProps>;
|
223 | processForAllLocales(params: OptionalDefaults<GetSpaceEnvironmentParams>, asset: AssetProps, processingOptions?: AssetProcessingForLocale): Promise<AssetProps>;
|
224 | processForLocale(params: OptionalDefaults<GetSpaceEnvironmentParams>, asset: AssetProps, locale: string, processingOptions?: AssetProcessingForLocale): Promise<AssetProps>;
|
225 | };
|
226 | appUpload: AppUploadPlainClientAPI;
|
227 | assetKey: {
|
228 | create(params: OptionalDefaults<GetSpaceEnvironmentParams>, data: CreateAssetKeyProps): Promise<AssetKeyProps>;
|
229 | };
|
230 | upload: UploadPlainClientAPI;
|
231 | locale: LocalePlainClientAPI;
|
232 | personalAccessToken: {
|
233 | get(params: OptionalDefaults<{
|
234 | tokenId: string;
|
235 | }>): Promise<PersonalAccessTokenProp>;
|
236 | getMany(params: OptionalDefaults<QueryParams>): Promise<CollectionProp<PersonalAccessTokenProp>>;
|
237 | create(rawData: CreatePersonalAccessTokenProps, headers?: RawAxiosRequestHeaders): Promise<PersonalAccessTokenProp>;
|
238 | revoke(params: OptionalDefaults<{
|
239 | tokenId: string;
|
240 | }>): Promise<PersonalAccessTokenProp>;
|
241 | };
|
242 | accessToken: {
|
243 | get(params: OptionalDefaults<{
|
244 | tokenId: string;
|
245 | }>): Promise<AccessTokenProp>;
|
246 | getMany(params: OptionalDefaults<QueryParams>): Promise<CollectionProp<AccessTokenProp>>;
|
247 | createPersonalAccessToken(rawData: CreatePATProps, headers?: RawAxiosRequestHeaders): Promise<AccessTokenProp>;
|
248 | revoke(params: OptionalDefaults<{
|
249 | tokenId: string;
|
250 | }>): Promise<AccessTokenProp>;
|
251 | getManyForOrganization(params: OptionalDefaults<GetOrganizationParams & QueryParams>): Promise<CollectionProp<AccessTokenProp>>;
|
252 | };
|
253 | usage: UsagePlainClientAPI;
|
254 | release: {
|
255 | archive(params: OptionalDefaults<GetReleaseParams & {
|
256 | version: number;
|
257 | }>): Promise<ReleaseProps>;
|
258 | get(params: OptionalDefaults<GetReleaseParams>): Promise<ReleaseProps>;
|
259 | query(params: OptionalDefaults<GetSpaceEnvironmentParams> & {
|
260 | query?: ReleaseQueryOptions;
|
261 | }): Promise<CursorPaginatedCollectionProp<ReleaseProps>>;
|
262 | create(params: OptionalDefaults<GetSpaceEnvironmentParams>, data: ReleasePayload): Promise<ReleaseProps>;
|
263 | update(params: OptionalDefaults<GetReleaseParams & {
|
264 | version: number;
|
265 | }>, data: ReleasePayload): Promise<ReleaseProps>;
|
266 | delete(params: OptionalDefaults<GetReleaseParams>): Promise<void>;
|
267 | publish(params: OptionalDefaults<GetReleaseParams & {
|
268 | version: number;
|
269 | }>): Promise<ReleaseActionProps<'publish'>>;
|
270 | unarchive(params: OptionalDefaults<GetReleaseParams & {
|
271 | version: number;
|
272 | }>): Promise<ReleaseProps>;
|
273 | unpublish(params: OptionalDefaults<GetReleaseParams & {
|
274 | version: number;
|
275 | }>): Promise<ReleaseActionProps<'unpublish'>>;
|
276 | validate(params: OptionalDefaults<GetReleaseParams>, data?: ReleaseValidatePayload): Promise<ReleaseActionProps<'validate'>>;
|
277 | };
|
278 | releaseAction: {
|
279 | get(params: OptionalDefaults<GetReleaseParams> & {
|
280 | actionId: string;
|
281 | }): Promise<ReleaseActionProps>;
|
282 | getMany(params: OptionalDefaults<GetSpaceEnvironmentParams> & {
|
283 | query?: ReleaseActionQueryOptions;
|
284 | }): Promise<CollectionProp<ReleaseActionProps>>;
|
285 | queryForRelease(params: OptionalDefaults<GetReleaseParams> & {
|
286 | query?: ReleaseActionQueryOptions;
|
287 | }): Promise<CollectionProp<ReleaseActionProps>>;
|
288 | };
|
289 | role: RolePlainClientAPI;
|
290 | scheduledActions: {
|
291 | get(params: OptionalDefaults<GetSpaceParams> & {
|
292 | scheduledActionId: string;
|
293 | environmentId: string;
|
294 | }): Promise<ScheduledActionProps>;
|
295 | getMany(params: OptionalDefaults<GetSpaceParams & QueryParams>): Promise<CursorPaginatedCollectionProp<ScheduledActionProps>>;
|
296 | create(params: OptionalDefaults<GetSpaceParams>, data: CreateUpdateScheduledActionProps): Promise<ScheduledActionProps>;
|
297 | delete(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
298 | scheduledActionId: string;
|
299 | }>): Promise<ScheduledActionProps>;
|
300 | update(params: OptionalDefaults<GetSpaceParams & {
|
301 | scheduledActionId: string;
|
302 | version: number;
|
303 | }>, data: CreateUpdateScheduledActionProps): Promise<ScheduledActionProps>;
|
304 | };
|
305 | previewApiKey: {
|
306 | get(params: OptionalDefaults<GetSpaceParams & {
|
307 | previewApiKeyId: string;
|
308 | }>): Promise<PreviewApiKeyProps>;
|
309 | getMany(params: OptionalDefaults<GetSpaceParams & QueryParams>): Promise<CollectionProp<PreviewApiKeyProps>>;
|
310 | };
|
311 | apiKey: {
|
312 | get(params: OptionalDefaults<GetSpaceParams & {
|
313 | apiKeyId: string;
|
314 | }>): Promise<ApiKeyProps>;
|
315 | getMany(params: OptionalDefaults<GetSpaceParams & QueryParams>): Promise<CollectionProp<ApiKeyProps>>;
|
316 | create(params: OptionalDefaults<GetSpaceParams>, data: CreateApiKeyProps, headers?: RawAxiosRequestHeaders): Promise<ApiKeyProps>;
|
317 | createWithId(params: OptionalDefaults<GetSpaceParams & {
|
318 | apiKeyId: string;
|
319 | }>, data: CreateApiKeyProps, headers?: RawAxiosRequestHeaders): Promise<ApiKeyProps>;
|
320 | update(params: OptionalDefaults<GetSpaceParams & {
|
321 | apiKeyId: string;
|
322 | }>, rawData: ApiKeyProps, headers?: RawAxiosRequestHeaders): Promise<ApiKeyProps>;
|
323 | delete(params: OptionalDefaults<GetSpaceParams & {
|
324 | apiKeyId: string;
|
325 | }>): Promise<any>;
|
326 | };
|
327 | appDefinition: AppDefinitionPlainClientAPI;
|
328 | appInstallation: AppInstallationPlainClientAPI;
|
329 | resourceProvider: ResourceProviderPlainClientAPI;
|
330 | extension: ExtensionPlainClientAPI;
|
331 | webhook: WebhookPlainClientAPI;
|
332 | snapshot: {
|
333 | getManyForEntry<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSnapshotForEntryParams & QueryParams>): Promise<CollectionProp<SnapshotProps<Omit<EntryProps<T>, 'metadata'>>>>;
|
334 | getForEntry<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSnapshotForEntryParams & {
|
335 | snapshotId: string;
|
336 | }>): Promise<SnapshotProps<Omit<EntryProps<T>, 'metadata'>>>;
|
337 | getManyForContentType(params: OptionalDefaults<GetSnapshotForContentTypeParams & QueryParams>): Promise<CollectionProp<SnapshotProps<ContentTypeProps>>>;
|
338 | getForContentType(params: OptionalDefaults<GetSnapshotForContentTypeParams & {
|
339 | snapshotId: string;
|
340 | }>): Promise<SnapshotProps<ContentTypeProps>>;
|
341 | };
|
342 | tag: TagPlainClientAPI;
|
343 | organization: OrganizationPlainClientAPI;
|
344 | organizationInvitation: {
|
345 | get(params: OptionalDefaults<{
|
346 | organizationId: string;
|
347 | invitationId: string;
|
348 | }>, headers?: RawAxiosRequestHeaders): Promise<OrganizationInvitationProps>;
|
349 | create(params: OptionalDefaults<{
|
350 | organizationId: string;
|
351 | }>, data: CreateOrganizationInvitationProps, headers?: RawAxiosRequestHeaders): Promise<OrganizationInvitationProps>;
|
352 | };
|
353 | organizationMembership: {
|
354 | get(params: OptionalDefaults<GetOrganizationMembershipParams>): Promise<OrganizationMembershipProps>;
|
355 | getMany(params: OptionalDefaults<GetOrganizationParams & QueryParams>): Promise<CollectionProp<OrganizationMembershipProps>>;
|
356 | update(params: OptionalDefaults<GetOrganizationMembershipParams>, rawData: OrganizationMembershipProps, headers?: RawAxiosRequestHeaders): Promise<OrganizationMembershipProps>;
|
357 | delete(params: OptionalDefaults<GetOrganizationMembershipParams>): Promise<any>;
|
358 | };
|
359 | spaceMember: SpaceMemberPlainClientAPI;
|
360 | spaceMembership: SpaceMembershipPlainClientAPI;
|
361 | task: TaskPlainClientAPI;
|
362 | team: TeamPlainClientAPI;
|
363 | teamMembership: TeamMembershipPlainClientAPI;
|
364 | teamSpaceMembership: TeamSpaceMembershipPlainClientAPI;
|
365 | uiConfig: UIConfigPlainClientAPI;
|
366 | userUIConfig: UserUIConfigPlainClientAPI;
|
367 | workflowDefinition: WorkflowDefinitionPlainClientAPI;
|
368 | workflow: WorkflowPlainClientAPI;
|
369 | workflowsChangelog: WorkflowsChangelogPlainClientAPI;
|
370 | };
|