@mittwald/api-client 4.15.0 → 4.17.0
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.
- package/dist/esm/generated/v2/client-react.js +93 -39
- package/dist/esm/generated/v2/client.js +206 -108
- package/dist/esm/generated/v2/descriptors.js +294 -24
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +590 -234
- package/dist/types/generated/v2/client.d.ts +5799 -4030
- package/dist/types/generated/v2/descriptors.d.ts +128 -38
- package/dist/types/generated/v2/types.d.ts +4470 -1495
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -4
|
@@ -16,6 +16,8 @@ const buildAppApi = (baseClient) => ({
|
|
|
16
16
|
getSystemsoftware: new ApiCallAsyncResourceFactory(descriptors.appGetSystemsoftware, baseClient.app.getSystemsoftware).getApiResource,
|
|
17
17
|
/** Get a SystemSoftwareVersion. */
|
|
18
18
|
getSystemsoftwareversion: new ApiCallAsyncResourceFactory(descriptors.appGetSystemsoftwareversion, baseClient.app.getSystemsoftwareversion).getApiResource,
|
|
19
|
+
/** List AppInstallations that a user has access to. */
|
|
20
|
+
listAppinstallationsForUser: new ApiCallAsyncResourceFactory(descriptors.appListAppinstallationsForUser, baseClient.app.listAppinstallationsForUser).getApiResource,
|
|
19
21
|
/** List AppInstallations belonging to a Project. */
|
|
20
22
|
listAppinstallations: new ApiCallAsyncResourceFactory(descriptors.appListAppinstallations, baseClient.app.listAppinstallations).getApiResource,
|
|
21
23
|
/** List Apps. */
|
|
@@ -47,6 +49,28 @@ const buildBackupApi = (baseClient) => ({
|
|
|
47
49
|
/** Get a ProjectBackup. */
|
|
48
50
|
getProjectBackup: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
|
|
49
51
|
});
|
|
52
|
+
const buildContainerApi = (baseClient) => ({
|
|
53
|
+
/** List Registries belonging to a Project. */
|
|
54
|
+
listRegistries: new ApiCallAsyncResourceFactory(descriptors.containerListRegistries, baseClient.container.listRegistries).getApiResource,
|
|
55
|
+
/** Get a Stack. */
|
|
56
|
+
getStack: new ApiCallAsyncResourceFactory(descriptors.containerGetStack, baseClient.container.getStack).getApiResource,
|
|
57
|
+
/** Get a Registry. */
|
|
58
|
+
getRegistry: new ApiCallAsyncResourceFactory(descriptors.containerGetRegistry, baseClient.container.getRegistry).getApiResource,
|
|
59
|
+
/** Get a Volume belonging to a Stack. */
|
|
60
|
+
getVolume: new ApiCallAsyncResourceFactory(descriptors.containerGetVolume, baseClient.container.getVolume).getApiResource,
|
|
61
|
+
/** Get a ContainerImageConfig. */
|
|
62
|
+
getContainerImageConfig: new ApiCallAsyncResourceFactory(descriptors.containerGetContainerImageConfig, baseClient.container.getContainerImageConfig).getApiResource,
|
|
63
|
+
/** Get logs belonging to a Service. */
|
|
64
|
+
getServiceLogs: new ApiCallAsyncResourceFactory(descriptors.containerGetServiceLogs, baseClient.container.getServiceLogs).getApiResource,
|
|
65
|
+
/** Get a Service belonging to a Stack. */
|
|
66
|
+
getService: new ApiCallAsyncResourceFactory(descriptors.containerGetService, baseClient.container.getService).getApiResource,
|
|
67
|
+
/** List Services belonging to a Project. */
|
|
68
|
+
listServices: new ApiCallAsyncResourceFactory(descriptors.containerListServices, baseClient.container.listServices).getApiResource,
|
|
69
|
+
/** List Stacks belonging to a Project. */
|
|
70
|
+
listStacks: new ApiCallAsyncResourceFactory(descriptors.containerListStacks, baseClient.container.listStacks).getApiResource,
|
|
71
|
+
/** List Volumes belonging to a Project. */
|
|
72
|
+
listVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListVolumes, baseClient.container.listVolumes).getApiResource,
|
|
73
|
+
});
|
|
50
74
|
const buildContractApi = (baseClient) => ({
|
|
51
75
|
/** Return the BaseItem of the Contract with the given ID. */
|
|
52
76
|
getBaseItemOfContract: new ApiCallAsyncResourceFactory(descriptors.contractGetBaseItemOfContract, baseClient.contract.getBaseItemOfContract).getApiResource,
|
|
@@ -72,6 +96,8 @@ const buildContractApi = (baseClient) => ({
|
|
|
72
96
|
invoiceGetFileAccessToken: new ApiCallAsyncResourceFactory(descriptors.invoiceGetFileAccessToken, baseClient.contract.invoiceGetFileAccessToken).getApiResource,
|
|
73
97
|
/** List Invoices of a Customer. */
|
|
74
98
|
invoiceListCustomerInvoices: new ApiCallAsyncResourceFactory(descriptors.invoiceListCustomerInvoices, baseClient.contract.invoiceListCustomerInvoices).getApiResource,
|
|
99
|
+
/** Get list of Orders. */
|
|
100
|
+
orderListOrders: new ApiCallAsyncResourceFactory(descriptors.orderListOrders, baseClient.contract.orderListOrders).getApiResource,
|
|
75
101
|
/** Get Order for Customer. */
|
|
76
102
|
orderGetOrder: new ApiCallAsyncResourceFactory(descriptors.orderGetOrder, baseClient.contract.orderGetOrder).getApiResource,
|
|
77
103
|
/** Get list of Orders of a Customer. */
|
|
@@ -88,6 +114,8 @@ const buildConversationApi = (baseClient) => ({
|
|
|
88
114
|
getCategory: new ApiCallAsyncResourceFactory(descriptors.conversationGetCategory, baseClient.conversation.getCategory).getApiResource,
|
|
89
115
|
/** Get members of a support conversation. */
|
|
90
116
|
getConversationMembers: new ApiCallAsyncResourceFactory(descriptors.conversationGetConversationMembers, baseClient.conversation.getConversationMembers).getApiResource,
|
|
117
|
+
/** Get preferences for customer conversations. */
|
|
118
|
+
getConversationPreferencesOfCustomer: new ApiCallAsyncResourceFactory(descriptors.conversationGetConversationPreferencesOfCustomer, baseClient.conversation.getConversationPreferencesOfCustomer).getApiResource,
|
|
91
119
|
/** Get a support conversation. */
|
|
92
120
|
getConversation: new ApiCallAsyncResourceFactory(descriptors.conversationGetConversation, baseClient.conversation.getConversation).getApiResource,
|
|
93
121
|
/** Request an access token for the File belonging to the Conversation. */
|
|
@@ -173,6 +201,22 @@ const buildDomainApi = (baseClient) => ({
|
|
|
173
201
|
/** Get an Ingress. */
|
|
174
202
|
ingressGetIngress: new ApiCallAsyncResourceFactory(descriptors.ingressGetIngress, baseClient.domain.ingressGetIngress).getApiResource,
|
|
175
203
|
});
|
|
204
|
+
const buildMarketplaceApi = (baseClient) => ({
|
|
205
|
+
/** List ExtensionInstances. */
|
|
206
|
+
extensionListExtensionInstances: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensionInstances, baseClient.marketplace.extensionListExtensionInstances).getApiResource,
|
|
207
|
+
/** Get an ExtensionInstance. */
|
|
208
|
+
extensionGetExtensionInstance: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtensionInstance, baseClient.marketplace.extensionGetExtensionInstance).getApiResource,
|
|
209
|
+
/** Get a Contributor. */
|
|
210
|
+
extensionGetContributor: new ApiCallAsyncResourceFactory(descriptors.extensionGetContributor, baseClient.marketplace.extensionGetContributor).getApiResource,
|
|
211
|
+
/** Get an Extension. */
|
|
212
|
+
extensionGetExtension: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtension, baseClient.marketplace.extensionGetExtension).getApiResource,
|
|
213
|
+
/** Get the public key to verify the webhook signature. */
|
|
214
|
+
extensionGetPublicKey: new ApiCallAsyncResourceFactory(descriptors.extensionGetPublicKey, baseClient.marketplace.extensionGetPublicKey).getApiResource,
|
|
215
|
+
/** List Contributors. */
|
|
216
|
+
extensionListContributors: new ApiCallAsyncResourceFactory(descriptors.extensionListContributors, baseClient.marketplace.extensionListContributors).getApiResource,
|
|
217
|
+
/** List Extensions. */
|
|
218
|
+
extensionListExtensions: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensions, baseClient.marketplace.extensionListExtensions).getApiResource,
|
|
219
|
+
});
|
|
176
220
|
const buildFileApi = (baseClient) => ({
|
|
177
221
|
/** Get a File's meta. */
|
|
178
222
|
getFileMeta: new ApiCallAsyncResourceFactory(descriptors.fileGetFileMeta, baseClient.file.getFileMeta).getApiResource,
|
|
@@ -182,6 +226,8 @@ const buildFileApi = (baseClient) => ({
|
|
|
182
226
|
getFileUploadTypeRules: new ApiCallAsyncResourceFactory(descriptors.fileGetFileUploadTypeRules, baseClient.file.getFileUploadTypeRules).getApiResource,
|
|
183
227
|
/** Get a File. */
|
|
184
228
|
getFile: new ApiCallAsyncResourceFactory(descriptors.fileGetFile, baseClient.file.getFile).getApiResource,
|
|
229
|
+
/** Get a File. */
|
|
230
|
+
getFileWithName: new ApiCallAsyncResourceFactory(descriptors.fileGetFileWithName, baseClient.file.getFileWithName).getApiResource,
|
|
185
231
|
});
|
|
186
232
|
const buildMailApi = (baseClient) => ({
|
|
187
233
|
/** List DeliveryBoxes belonging to a Project. */
|
|
@@ -194,6 +240,10 @@ const buildMailApi = (baseClient) => ({
|
|
|
194
240
|
getMailAddress: new ApiCallAsyncResourceFactory(descriptors.mailGetMailAddress, baseClient.mail.getMailAddress).getApiResource,
|
|
195
241
|
/** List mail settings of a Project. */
|
|
196
242
|
listProjectMailSettings: new ApiCallAsyncResourceFactory(descriptors.mailListProjectMailSettings, baseClient.mail.listProjectMailSettings).getApiResource,
|
|
243
|
+
/** Get a Migration. */
|
|
244
|
+
migrationGetMigration: new ApiCallAsyncResourceFactory(descriptors.mailMigrationGetMigration, baseClient.mail.migrationGetMigration).getApiResource,
|
|
245
|
+
/** List Migrations belonging to a Project in customer center or mStudio. */
|
|
246
|
+
migrationListMigrations: new ApiCallAsyncResourceFactory(descriptors.mailMigrationListMigrations, baseClient.mail.migrationListMigrations).getApiResource,
|
|
197
247
|
});
|
|
198
248
|
const buildNotificationApi = (baseClient) => ({
|
|
199
249
|
/** Getting the subscription status of the subscription. */
|
|
@@ -211,42 +261,6 @@ const buildPageInsightsApi = (baseClient) => ({
|
|
|
211
261
|
/** List websites (specified as domain and path) from a project where performance data is available. */
|
|
212
262
|
pageinsightsListPerformanceDataForProject: new ApiCallAsyncResourceFactory(descriptors.pageinsightsListPerformanceDataForProject, baseClient.pageInsights.pageinsightsListPerformanceDataForProject).getApiResource,
|
|
213
263
|
});
|
|
214
|
-
const buildUserApi = (baseClient) => ({
|
|
215
|
-
/** Get a PasswordPolicy. */
|
|
216
|
-
passwordValidationGetPasswordPolicy: new ApiCallAsyncResourceFactory(descriptors.passwordValidationGetPasswordPolicy, baseClient.user.passwordValidationGetPasswordPolicy).getApiResource,
|
|
217
|
-
/** Get your verified Email-Address. */
|
|
218
|
-
getOwnEmail: new ApiCallAsyncResourceFactory(descriptors.userGetOwnEmail, baseClient.user.getOwnEmail).getApiResource,
|
|
219
|
-
/** Get your current multi factor auth status. */
|
|
220
|
-
getMfaStatus: new ApiCallAsyncResourceFactory(descriptors.userGetMfaStatus, baseClient.user.getMfaStatus).getApiResource,
|
|
221
|
-
/** List all of your ApiTokens. */
|
|
222
|
-
listApiTokens: new ApiCallAsyncResourceFactory(descriptors.userListApiTokens, baseClient.user.listApiTokens).getApiResource,
|
|
223
|
-
/** Get your stored ssh-keys. */
|
|
224
|
-
listSshKeys: new ApiCallAsyncResourceFactory(descriptors.userListSshKeys, baseClient.user.listSshKeys).getApiResource,
|
|
225
|
-
/** Get a specific ApiToken. */
|
|
226
|
-
getApiToken: new ApiCallAsyncResourceFactory(descriptors.userGetApiToken, baseClient.user.getApiToken).getApiResource,
|
|
227
|
-
/** Get a specific stored ssh-key. */
|
|
228
|
-
getSshKey: new ApiCallAsyncResourceFactory(descriptors.userGetSshKey, baseClient.user.getSshKey).getApiResource,
|
|
229
|
-
/** Get your account information. */
|
|
230
|
-
getOwnAccount: new ApiCallAsyncResourceFactory(descriptors.userGetOwnAccount, baseClient.user.getOwnAccount).getApiResource,
|
|
231
|
-
/** The timestamp of your latest password change. */
|
|
232
|
-
getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(descriptors.userGetPasswordUpdatedAt, baseClient.user.getPasswordUpdatedAt).getApiResource,
|
|
233
|
-
/** Get personalized settings. */
|
|
234
|
-
getPersonalizedSettings: new ApiCallAsyncResourceFactory(descriptors.userGetPersonalizedSettings, baseClient.user.getPersonalizedSettings).getApiResource,
|
|
235
|
-
/** Get poll settings for the specified user. */
|
|
236
|
-
getPollStatus: new ApiCallAsyncResourceFactory(descriptors.userGetPollStatus, baseClient.user.getPollStatus).getApiResource,
|
|
237
|
-
/** Get a specific session. */
|
|
238
|
-
getSession: new ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
|
|
239
|
-
/** Get profile information for a user. */
|
|
240
|
-
getUser: new ApiCallAsyncResourceFactory(descriptors.userGetUser, baseClient.user.getUser).getApiResource,
|
|
241
|
-
/** Submitted feedback of the given user. */
|
|
242
|
-
listFeedback: new ApiCallAsyncResourceFactory(descriptors.userListFeedback, baseClient.user.listFeedback).getApiResource,
|
|
243
|
-
/** List all sessions. */
|
|
244
|
-
listSessions: new ApiCallAsyncResourceFactory(descriptors.userListSessions, baseClient.user.listSessions).getApiResource,
|
|
245
|
-
/** Obtain authorization from the resource owner. */
|
|
246
|
-
oauthGetAuthorization: new ApiCallAsyncResourceFactory(descriptors.userOauthGetAuthorization, baseClient.user.oauthGetAuthorization).getApiResource,
|
|
247
|
-
/** Request a support code. */
|
|
248
|
-
supportCodeRequest: new ApiCallAsyncResourceFactory(descriptors.userSupportCodeRequest, baseClient.user.supportCodeRequest).getApiResource,
|
|
249
|
-
});
|
|
250
264
|
const buildProjectApi = (baseClient) => ({
|
|
251
265
|
/** List Invites belonging to a Project. */
|
|
252
266
|
listInvitesForProject: new ApiCallAsyncResourceFactory(descriptors.projectListInvitesForProject, baseClient.project.listInvitesForProject).getApiResource,
|
|
@@ -295,6 +309,40 @@ const buildSshsftpUserApi = (baseClient) => ({
|
|
|
295
309
|
/** Get an SSHUser. */
|
|
296
310
|
sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
|
|
297
311
|
});
|
|
312
|
+
const buildUserApi = (baseClient) => ({
|
|
313
|
+
/** Get your verified Email-Address. */
|
|
314
|
+
getOwnEmail: new ApiCallAsyncResourceFactory(descriptors.userGetOwnEmail, baseClient.user.getOwnEmail).getApiResource,
|
|
315
|
+
/** Get your current multi factor auth status. */
|
|
316
|
+
getMfaStatus: new ApiCallAsyncResourceFactory(descriptors.userGetMfaStatus, baseClient.user.getMfaStatus).getApiResource,
|
|
317
|
+
/** List all of your ApiTokens. */
|
|
318
|
+
listApiTokens: new ApiCallAsyncResourceFactory(descriptors.userListApiTokens, baseClient.user.listApiTokens).getApiResource,
|
|
319
|
+
/** Get your stored ssh-keys. */
|
|
320
|
+
listSshKeys: new ApiCallAsyncResourceFactory(descriptors.userListSshKeys, baseClient.user.listSshKeys).getApiResource,
|
|
321
|
+
/** Get a specific ApiToken. */
|
|
322
|
+
getApiToken: new ApiCallAsyncResourceFactory(descriptors.userGetApiToken, baseClient.user.getApiToken).getApiResource,
|
|
323
|
+
/** Get a specific stored ssh-key. */
|
|
324
|
+
getSshKey: new ApiCallAsyncResourceFactory(descriptors.userGetSshKey, baseClient.user.getSshKey).getApiResource,
|
|
325
|
+
/** Get your account information. */
|
|
326
|
+
getOwnAccount: new ApiCallAsyncResourceFactory(descriptors.userGetOwnAccount, baseClient.user.getOwnAccount).getApiResource,
|
|
327
|
+
/** The timestamp of your latest password change. */
|
|
328
|
+
getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(descriptors.userGetPasswordUpdatedAt, baseClient.user.getPasswordUpdatedAt).getApiResource,
|
|
329
|
+
/** Get personalized settings. */
|
|
330
|
+
getPersonalizedSettings: new ApiCallAsyncResourceFactory(descriptors.userGetPersonalizedSettings, baseClient.user.getPersonalizedSettings).getApiResource,
|
|
331
|
+
/** Get poll settings for the specified user. */
|
|
332
|
+
getPollStatus: new ApiCallAsyncResourceFactory(descriptors.userGetPollStatus, baseClient.user.getPollStatus).getApiResource,
|
|
333
|
+
/** Get a specific session. */
|
|
334
|
+
getSession: new ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
|
|
335
|
+
/** Get profile information for a user. */
|
|
336
|
+
getUser: new ApiCallAsyncResourceFactory(descriptors.userGetUser, baseClient.user.getUser).getApiResource,
|
|
337
|
+
/** Submitted feedback of the given user. */
|
|
338
|
+
listFeedback: new ApiCallAsyncResourceFactory(descriptors.userListFeedback, baseClient.user.listFeedback).getApiResource,
|
|
339
|
+
/** List all sessions. */
|
|
340
|
+
listSessions: new ApiCallAsyncResourceFactory(descriptors.userListSessions, baseClient.user.listSessions).getApiResource,
|
|
341
|
+
/** Obtain authorization from the resource owner. */
|
|
342
|
+
oauthGetAuthorization: new ApiCallAsyncResourceFactory(descriptors.userOauthGetAuthorization, baseClient.user.oauthGetAuthorization).getApiResource,
|
|
343
|
+
/** Request a support code. */
|
|
344
|
+
supportCodeRequest: new ApiCallAsyncResourceFactory(descriptors.userSupportCodeRequest, baseClient.user.supportCodeRequest).getApiResource,
|
|
345
|
+
});
|
|
298
346
|
export class MittwaldAPIV2ClientReact {
|
|
299
347
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
300
348
|
app;
|
|
@@ -302,6 +350,8 @@ export class MittwaldAPIV2ClientReact {
|
|
|
302
350
|
article;
|
|
303
351
|
/** The backup API allows you to manage your project backups. */
|
|
304
352
|
backup;
|
|
353
|
+
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
354
|
+
container;
|
|
305
355
|
/** The contract API allows you to manage your contracts and orders */
|
|
306
356
|
contract;
|
|
307
357
|
/** The conversation API allows you to manage your support conversations. */
|
|
@@ -314,6 +364,8 @@ export class MittwaldAPIV2ClientReact {
|
|
|
314
364
|
database;
|
|
315
365
|
/** The domain API allows you to manage your domains, DNS records and ingress resources. */
|
|
316
366
|
domain;
|
|
367
|
+
/** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
|
|
368
|
+
marketplace;
|
|
317
369
|
/** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
|
|
318
370
|
file;
|
|
319
371
|
/** The mail API allows you to manage your mail accounts. */
|
|
@@ -322,32 +374,34 @@ export class MittwaldAPIV2ClientReact {
|
|
|
322
374
|
notification;
|
|
323
375
|
/** The page insights API allows you to get page insights information. */
|
|
324
376
|
pageInsights;
|
|
325
|
-
/** The user API allows you to manage your own user and access information of other users that might be visible to you. */
|
|
326
|
-
user;
|
|
327
377
|
/** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
|
|
328
378
|
project;
|
|
329
379
|
/** The filesystem API allows you to directly access the filesystem of your project. */
|
|
330
380
|
projectFileSystem;
|
|
331
381
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
332
382
|
sshsftpUser;
|
|
383
|
+
/** The user API allows you to manage your own user and access information of other users that might be visible to you. */
|
|
384
|
+
user;
|
|
333
385
|
constructor(baseClient) {
|
|
334
386
|
this.app = buildAppApi(baseClient);
|
|
335
387
|
this.article = buildArticleApi(baseClient);
|
|
336
388
|
this.backup = buildBackupApi(baseClient);
|
|
389
|
+
this.container = buildContainerApi(baseClient);
|
|
337
390
|
this.contract = buildContractApi(baseClient);
|
|
338
391
|
this.conversation = buildConversationApi(baseClient);
|
|
339
392
|
this.cronjob = buildCronjobApi(baseClient);
|
|
340
393
|
this.customer = buildCustomerApi(baseClient);
|
|
341
394
|
this.database = buildDatabaseApi(baseClient);
|
|
342
395
|
this.domain = buildDomainApi(baseClient);
|
|
396
|
+
this.marketplace = buildMarketplaceApi(baseClient);
|
|
343
397
|
this.file = buildFileApi(baseClient);
|
|
344
398
|
this.mail = buildMailApi(baseClient);
|
|
345
399
|
this.notification = buildNotificationApi(baseClient);
|
|
346
400
|
this.pageInsights = buildPageInsightsApi(baseClient);
|
|
347
|
-
this.user = buildUserApi(baseClient);
|
|
348
401
|
this.project = buildProjectApi(baseClient);
|
|
349
402
|
this.projectFileSystem = buildProjectFileSystemApi(baseClient);
|
|
350
403
|
this.sshsftpUser = buildSshsftpUserApi(baseClient);
|
|
404
|
+
this.user = buildUserApi(baseClient);
|
|
351
405
|
}
|
|
352
406
|
static fromBaseClient(baseClient) {
|
|
353
407
|
return new MittwaldAPIV2ClientReact(baseClient);
|
|
@@ -28,6 +28,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
28
28
|
getSystemsoftwareversion: this.requestFunctionFactory(descriptors.appGetSystemsoftwareversion),
|
|
29
29
|
/** Create linkage between an AppInstallation and a MySQLDatabase. */
|
|
30
30
|
linkDatabase: this.requestFunctionFactory(descriptors.appLinkDatabase),
|
|
31
|
+
/** List AppInstallations that a user has access to. */
|
|
32
|
+
listAppinstallationsForUser: this.requestFunctionFactory(descriptors.appListAppinstallationsForUser),
|
|
31
33
|
/** List AppInstallations belonging to a Project. */
|
|
32
34
|
listAppinstallations: this.requestFunctionFactory(descriptors.appListAppinstallations),
|
|
33
35
|
/** Request an AppInstallation. */
|
|
@@ -85,6 +87,53 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
85
87
|
/** Change the description of a ProjectBackup. */
|
|
86
88
|
updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
|
|
87
89
|
};
|
|
90
|
+
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
91
|
+
container = {
|
|
92
|
+
/** List Registries belonging to a Project. */
|
|
93
|
+
listRegistries: this.requestFunctionFactory(descriptors.containerListRegistries),
|
|
94
|
+
/** Create a Registry. */
|
|
95
|
+
createRegistry: this.requestFunctionFactory(descriptors.containerCreateRegistry),
|
|
96
|
+
/** Get a Stack. */
|
|
97
|
+
getStack: this.requestFunctionFactory(descriptors.containerGetStack),
|
|
98
|
+
/** Declaratively create, update or delete Services or Volumes belonging to a Stack. */
|
|
99
|
+
declareStack: this.requestFunctionFactory(descriptors.containerDeclareStack),
|
|
100
|
+
/** Create, update or delete Services or Volumes belonging to a Stack. */
|
|
101
|
+
updateStack: this.requestFunctionFactory(descriptors.containerUpdateStack),
|
|
102
|
+
/** Get a Registry. */
|
|
103
|
+
getRegistry: this.requestFunctionFactory(descriptors.containerGetRegistry),
|
|
104
|
+
/** Delete a Registry. */
|
|
105
|
+
deleteRegistry: this.requestFunctionFactory(descriptors.containerDeleteRegistry),
|
|
106
|
+
/** Update a Registry. */
|
|
107
|
+
updateRegistry: this.requestFunctionFactory(descriptors.containerUpdateRegistry),
|
|
108
|
+
/** Get a Volume belonging to a Stack. */
|
|
109
|
+
getVolume: this.requestFunctionFactory(descriptors.containerGetVolume),
|
|
110
|
+
/** Delete a Volume belonging to a Stack. */
|
|
111
|
+
deleteVolume: this.requestFunctionFactory(descriptors.containerDeleteVolume),
|
|
112
|
+
/** Get a ContainerImageConfig. */
|
|
113
|
+
getContainerImageConfig: this.requestFunctionFactory(descriptors.containerGetContainerImageConfig),
|
|
114
|
+
/** Get logs belonging to a Service. */
|
|
115
|
+
getServiceLogs: this.requestFunctionFactory(descriptors.containerGetServiceLogs),
|
|
116
|
+
/** Get a Service belonging to a Stack. */
|
|
117
|
+
getService: this.requestFunctionFactory(descriptors.containerGetService),
|
|
118
|
+
/** List Services belonging to a Project. */
|
|
119
|
+
listServices: this.requestFunctionFactory(descriptors.containerListServices),
|
|
120
|
+
/** List Stacks belonging to a Project. */
|
|
121
|
+
listStacks: this.requestFunctionFactory(descriptors.containerListStacks),
|
|
122
|
+
/** List Volumes belonging to a Project. */
|
|
123
|
+
listVolumes: this.requestFunctionFactory(descriptors.containerListVolumes),
|
|
124
|
+
/** Recreate a Service. */
|
|
125
|
+
recreateService: this.requestFunctionFactory(descriptors.containerRecreateService),
|
|
126
|
+
/** Restart a started Service. */
|
|
127
|
+
restartService: this.requestFunctionFactory(descriptors.containerRestartService),
|
|
128
|
+
/** Start a stopped Service. */
|
|
129
|
+
startService: this.requestFunctionFactory(descriptors.containerStartService),
|
|
130
|
+
/** Stop a started Service. */
|
|
131
|
+
stopService: this.requestFunctionFactory(descriptors.containerStopService),
|
|
132
|
+
/** Validate a Registries' URI. */
|
|
133
|
+
validateContainerRegistryUri: this.requestFunctionFactory(descriptors.containerValidateContainerRegistryUri),
|
|
134
|
+
/** Validate a Registries' credentials. */
|
|
135
|
+
validateRegistryCredentials: this.requestFunctionFactory(descriptors.containerValidateRegistryCredentials),
|
|
136
|
+
};
|
|
88
137
|
/** The contract API allows you to manage your contracts and orders */
|
|
89
138
|
contract = {
|
|
90
139
|
/** Schedule the Termination of a ContractItem. */
|
|
@@ -123,6 +172,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
123
172
|
invoiceGetFileAccessToken: this.requestFunctionFactory(descriptors.invoiceGetFileAccessToken),
|
|
124
173
|
/** List Invoices of a Customer. */
|
|
125
174
|
invoiceListCustomerInvoices: this.requestFunctionFactory(descriptors.invoiceListCustomerInvoices),
|
|
175
|
+
/** Get list of Orders. */
|
|
176
|
+
orderListOrders: this.requestFunctionFactory(descriptors.orderListOrders),
|
|
126
177
|
/** Create an Order. */
|
|
127
178
|
orderCreateOrder: this.requestFunctionFactory(descriptors.orderCreateOrder),
|
|
128
179
|
/** Create TariffChange Order. */
|
|
@@ -152,6 +203,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
152
203
|
getCategory: this.requestFunctionFactory(descriptors.conversationGetCategory),
|
|
153
204
|
/** Get members of a support conversation. */
|
|
154
205
|
getConversationMembers: this.requestFunctionFactory(descriptors.conversationGetConversationMembers),
|
|
206
|
+
/** Get preferences for customer conversations. */
|
|
207
|
+
getConversationPreferencesOfCustomer: this.requestFunctionFactory(descriptors.conversationGetConversationPreferencesOfCustomer),
|
|
155
208
|
/** Get a support conversation. */
|
|
156
209
|
getConversation: this.requestFunctionFactory(descriptors.conversationGetConversation),
|
|
157
210
|
/** Update the basic properties of the conversation. */
|
|
@@ -337,6 +390,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
337
390
|
checkDomainRegistrability: this.requestFunctionFactory(descriptors.domainCheckDomainRegistrability),
|
|
338
391
|
/** List Domains */
|
|
339
392
|
listDomains: this.requestFunctionFactory(descriptors.domainListDomains),
|
|
393
|
+
/** Check if a Domain is available to transfer. */
|
|
394
|
+
checkDomainTransferability: this.requestFunctionFactory(descriptors.domainCheckDomainTransferability),
|
|
340
395
|
/** Create an auth code for a Domains transfer-out process. */
|
|
341
396
|
createDomainAuthCode: this.requestFunctionFactory(descriptors.domainCreateDomainAuthCode),
|
|
342
397
|
/** Update the nameservers of a Domain. */
|
|
@@ -345,6 +400,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
345
400
|
getDomain: this.requestFunctionFactory(descriptors.domainGetDomain),
|
|
346
401
|
/** Delete a Domain. */
|
|
347
402
|
deleteDomain: this.requestFunctionFactory(descriptors.domainDeleteDomain),
|
|
403
|
+
/** Generate a list of domains from an input using AI. */
|
|
404
|
+
generateFromInput: this.requestFunctionFactory(descriptors.domainGenerateFromInput),
|
|
405
|
+
/** Generate a list of domains from an input using AI, based on previously generated Domains and a context modification. */
|
|
406
|
+
generateInContext: this.requestFunctionFactory(descriptors.domainGenerateInContext),
|
|
348
407
|
/** Get the latest screenshot's FileReference belonging to a Domain. */
|
|
349
408
|
getLatestScreenshot: this.requestFunctionFactory(descriptors.domainGetLatestScreenshot),
|
|
350
409
|
/** List the contact schemas for a TLD. */
|
|
@@ -375,8 +434,39 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
375
434
|
ingressRequestIngressAcmeCertificateIssuance: this.requestFunctionFactory(descriptors.ingressRequestIngressAcmeCertificateIssuance),
|
|
376
435
|
/** Update the tls settings of an Ingress. */
|
|
377
436
|
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
|
|
378
|
-
|
|
379
|
-
|
|
437
|
+
};
|
|
438
|
+
/** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
|
|
439
|
+
marketplace = {
|
|
440
|
+
/** Authenticate your external application using the extensionInstanceSecret. */
|
|
441
|
+
extensionAuthenticateInstance: this.requestFunctionFactory(descriptors.extensionAuthenticateInstance),
|
|
442
|
+
/** Consent to extension scopes. */
|
|
443
|
+
extensionConsentToExtensionScopes: this.requestFunctionFactory(descriptors.extensionConsentToExtensionScopes),
|
|
444
|
+
/** List ExtensionInstances. */
|
|
445
|
+
extensionListExtensionInstances: this.requestFunctionFactory(descriptors.extensionListExtensionInstances),
|
|
446
|
+
/** Create an ExtensionInstance. */
|
|
447
|
+
extensionCreateExtensionInstance: this.requestFunctionFactory(descriptors.extensionCreateExtensionInstance),
|
|
448
|
+
/** Create an access token retrieval key for an extension instance. */
|
|
449
|
+
extensionCreateRetrievalKey: this.requestFunctionFactory(descriptors.extensionCreateRetrievalKey),
|
|
450
|
+
/** Get an ExtensionInstance. */
|
|
451
|
+
extensionGetExtensionInstance: this.requestFunctionFactory(descriptors.extensionGetExtensionInstance),
|
|
452
|
+
/** Delete an ExtensionInstance. */
|
|
453
|
+
extensionDeleteExtensionInstance: this.requestFunctionFactory(descriptors.extensionDeleteExtensionInstance),
|
|
454
|
+
/** Disable an ExtensionInstance. */
|
|
455
|
+
extensionDisableExtensionInstance: this.requestFunctionFactory(descriptors.extensionDisableExtensionInstance),
|
|
456
|
+
/** Enable an ExtensionInstance. */
|
|
457
|
+
extensionEnableExtensionInstance: this.requestFunctionFactory(descriptors.extensionEnableExtensionInstance),
|
|
458
|
+
/** Get a Contributor. */
|
|
459
|
+
extensionGetContributor: this.requestFunctionFactory(descriptors.extensionGetContributor),
|
|
460
|
+
/** Get an Extension. */
|
|
461
|
+
extensionGetExtension: this.requestFunctionFactory(descriptors.extensionGetExtension),
|
|
462
|
+
/** Get the public key to verify the webhook signature. */
|
|
463
|
+
extensionGetPublicKey: this.requestFunctionFactory(descriptors.extensionGetPublicKey),
|
|
464
|
+
/** List Contributors. */
|
|
465
|
+
extensionListContributors: this.requestFunctionFactory(descriptors.extensionListContributors),
|
|
466
|
+
/** List Extensions. */
|
|
467
|
+
extensionListExtensions: this.requestFunctionFactory(descriptors.extensionListExtensions),
|
|
468
|
+
/** Rotate the secret for an extension instance. */
|
|
469
|
+
contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(descriptors.contributorRotateSecretForExtensionInstance),
|
|
380
470
|
};
|
|
381
471
|
/** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
|
|
382
472
|
file = {
|
|
@@ -390,6 +480,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
390
480
|
getFileUploadTypeRules: this.requestFunctionFactory(descriptors.fileGetFileUploadTypeRules),
|
|
391
481
|
/** Get a File. */
|
|
392
482
|
getFile: this.requestFunctionFactory(descriptors.fileGetFile),
|
|
483
|
+
/** Get a File. */
|
|
484
|
+
getFileWithName: this.requestFunctionFactory(descriptors.fileGetFileWithName),
|
|
393
485
|
};
|
|
394
486
|
/** The mail API allows you to manage your mail accounts. */
|
|
395
487
|
mail = {
|
|
@@ -411,6 +503,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
411
503
|
deleteMailAddress: this.requestFunctionFactory(descriptors.mailDeleteMailAddress),
|
|
412
504
|
/** List mail settings of a Project. */
|
|
413
505
|
listProjectMailSettings: this.requestFunctionFactory(descriptors.mailListProjectMailSettings),
|
|
506
|
+
/** Check if a Migration between two projects is possible. */
|
|
507
|
+
migrationCheckMigrationIsPossible: this.requestFunctionFactory(descriptors.mailMigrationCheckMigrationIsPossible),
|
|
508
|
+
/** Get a Migration. */
|
|
509
|
+
migrationGetMigration: this.requestFunctionFactory(descriptors.mailMigrationGetMigration),
|
|
510
|
+
/** List Migrations belonging to a Project in customer center or mStudio. */
|
|
511
|
+
migrationListMigrations: this.requestFunctionFactory(descriptors.mailMigrationListMigrations),
|
|
512
|
+
/** Request a Mail Migration between two projects. */
|
|
513
|
+
migrationRequestMailMigration: this.requestFunctionFactory(descriptors.mailMigrationRequestMailMigration),
|
|
414
514
|
/** Update the description of a DeliveryBox. */
|
|
415
515
|
updateDeliveryBoxDescription: this.requestFunctionFactory(descriptors.mailUpdateDeliveryBoxDescription),
|
|
416
516
|
/** Update the password of a DeliveryBox. */
|
|
@@ -443,10 +543,110 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
443
543
|
/** Schedule a strace measurement for a single http request. */
|
|
444
544
|
pageinsightsScheduleStrace: this.requestFunctionFactory(descriptors.pageinsightsScheduleStrace),
|
|
445
545
|
};
|
|
546
|
+
/** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
|
|
547
|
+
project = {
|
|
548
|
+
/** Accept a ProjectInvite. */
|
|
549
|
+
acceptProjectInvite: this.requestFunctionFactory(descriptors.projectAcceptProjectInvite),
|
|
550
|
+
/** List Invites belonging to a Project. */
|
|
551
|
+
listInvitesForProject: this.requestFunctionFactory(descriptors.projectListInvitesForProject),
|
|
552
|
+
/** Create a ProjectInvite. */
|
|
553
|
+
createProjectInvite: this.requestFunctionFactory(descriptors.projectCreateProjectInvite),
|
|
554
|
+
/** Create a Project belonging to a Server. */
|
|
555
|
+
createProject: this.requestFunctionFactory(descriptors.projectCreateProject),
|
|
556
|
+
/** Decline a ProjectInvite. */
|
|
557
|
+
declineProjectInvite: this.requestFunctionFactory(descriptors.projectDeclineProjectInvite),
|
|
558
|
+
/** Request a Project avatar upload. */
|
|
559
|
+
requestProjectAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestProjectAvatarUpload),
|
|
560
|
+
/** Delete a Project's avatar. */
|
|
561
|
+
deleteProjectAvatar: this.requestFunctionFactory(descriptors.projectDeleteProjectAvatar),
|
|
562
|
+
/** Get a ProjectInvite. */
|
|
563
|
+
getProjectInvite: this.requestFunctionFactory(descriptors.projectGetProjectInvite),
|
|
564
|
+
/** Delete a ProjectInvite. */
|
|
565
|
+
deleteProjectInvite: this.requestFunctionFactory(descriptors.projectDeleteProjectInvite),
|
|
566
|
+
/** Get a ProjectMembership */
|
|
567
|
+
getProjectMembership: this.requestFunctionFactory(descriptors.projectGetProjectMembership),
|
|
568
|
+
/** Delete a ProjectMembership. */
|
|
569
|
+
deleteProjectMembership: this.requestFunctionFactory(descriptors.projectDeleteProjectMembership),
|
|
570
|
+
/** Update a ProjectMembership. */
|
|
571
|
+
updateProjectMembership: this.requestFunctionFactory(descriptors.projectUpdateProjectMembership),
|
|
572
|
+
/** Get a Project. */
|
|
573
|
+
getProject: this.requestFunctionFactory(descriptors.projectGetProject),
|
|
574
|
+
/** Delete a Project. */
|
|
575
|
+
deleteProject: this.requestFunctionFactory(descriptors.projectDeleteProject),
|
|
576
|
+
/** Request a Server avatar upload. */
|
|
577
|
+
requestServerAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestServerAvatarUpload),
|
|
578
|
+
/** Delete a Server's avatar. */
|
|
579
|
+
deleteServerAvatar: this.requestFunctionFactory(descriptors.projectDeleteServerAvatar),
|
|
580
|
+
/** Get a ProjectInvite by token. */
|
|
581
|
+
getProjectTokenInvite: this.requestFunctionFactory(descriptors.projectGetProjectTokenInvite),
|
|
582
|
+
/** Get the executing user's membership in a Project. */
|
|
583
|
+
getSelfMembershipForProject: this.requestFunctionFactory(descriptors.projectGetSelfMembershipForProject),
|
|
584
|
+
/** Get a Server. */
|
|
585
|
+
getServer: this.requestFunctionFactory(descriptors.projectGetServer),
|
|
586
|
+
/** Leave a Project. */
|
|
587
|
+
leaveProject: this.requestFunctionFactory(descriptors.projectLeaveProject),
|
|
588
|
+
/** List Memberships belonging to a Project. */
|
|
589
|
+
listMembershipsForProject: this.requestFunctionFactory(descriptors.projectListMembershipsForProject),
|
|
590
|
+
/** List ProjectInvites belonging to the executing user. */
|
|
591
|
+
listProjectInvites: this.requestFunctionFactory(descriptors.projectListProjectInvites),
|
|
592
|
+
/** List ProjectMemberships belonging to the executing user. */
|
|
593
|
+
listProjectMemberships: this.requestFunctionFactory(descriptors.projectListProjectMemberships),
|
|
594
|
+
/** List Projects belonging to the executing user. */
|
|
595
|
+
listProjects: this.requestFunctionFactory(descriptors.projectListProjects),
|
|
596
|
+
/** List Servers belonging to the executing user. */
|
|
597
|
+
listServers: this.requestFunctionFactory(descriptors.projectListServers),
|
|
598
|
+
/** Resend the mail for a ProjectInvite. */
|
|
599
|
+
resendProjectInviteMail: this.requestFunctionFactory(descriptors.projectResendProjectInviteMail),
|
|
600
|
+
/** Update a Project's description. */
|
|
601
|
+
updateProjectDescription: this.requestFunctionFactory(descriptors.projectUpdateProjectDescription),
|
|
602
|
+
/** Update a Servers's description. */
|
|
603
|
+
updateServerDescription: this.requestFunctionFactory(descriptors.projectUpdateServerDescription),
|
|
604
|
+
};
|
|
605
|
+
/** The filesystem API allows you to directly access the filesystem of your project. */
|
|
606
|
+
projectFileSystem = {
|
|
607
|
+
/** List directories belonging to a Project. */
|
|
608
|
+
getDirectories: this.requestFunctionFactory(descriptors.projectFileSystemGetDirectories),
|
|
609
|
+
/** Get a Project directory filesystem usage. */
|
|
610
|
+
getDiskUsage: this.requestFunctionFactory(descriptors.projectFileSystemGetDiskUsage),
|
|
611
|
+
/** Get a Project file's content. */
|
|
612
|
+
getFileContent: this.requestFunctionFactory(descriptors.projectFileSystemGetFileContent),
|
|
613
|
+
/** Get a Project's file/filesystem authorization token. */
|
|
614
|
+
getJwt: this.requestFunctionFactory(descriptors.projectFileSystemGetJwt),
|
|
615
|
+
/** Get a Project file's information. */
|
|
616
|
+
listFiles: this.requestFunctionFactory(descriptors.projectFileSystemListFiles),
|
|
617
|
+
};
|
|
618
|
+
/** The relocation API allows you to manage your relocations. */
|
|
619
|
+
relocation = {
|
|
620
|
+
/** Register a tariff change for a legacy tariff. */
|
|
621
|
+
createLegacyTariffChange: this.requestFunctionFactory(descriptors.relocationCreateLegacyTariffChange),
|
|
622
|
+
/** Relocate an external Project to mittwald. */
|
|
623
|
+
createRelocation: this.requestFunctionFactory(descriptors.relocationCreateRelocation),
|
|
624
|
+
};
|
|
625
|
+
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
626
|
+
sshsftpUser = {
|
|
627
|
+
/** Get all SFTPUsers for a Project. */
|
|
628
|
+
sftpUserListSftpUsers: this.requestFunctionFactory(descriptors.sftpUserListSftpUsers),
|
|
629
|
+
/** Create an SFTPUser for a Project. */
|
|
630
|
+
sftpUserCreateSftpUser: this.requestFunctionFactory(descriptors.sftpUserCreateSftpUser),
|
|
631
|
+
/** Get an SFTPUser. */
|
|
632
|
+
sftpUserGetSftpUser: this.requestFunctionFactory(descriptors.sftpUserGetSftpUser),
|
|
633
|
+
/** Delete an SFTPUser. */
|
|
634
|
+
sftpUserDeleteSftpUser: this.requestFunctionFactory(descriptors.sftpUserDeleteSftpUser),
|
|
635
|
+
/** Update an SFTPUser. */
|
|
636
|
+
sftpUserUpdateSftpUser: this.requestFunctionFactory(descriptors.sftpUserUpdateSftpUser),
|
|
637
|
+
/** Get all SSHUsers for a Project. */
|
|
638
|
+
sshUserListSshUsers: this.requestFunctionFactory(descriptors.sshUserListSshUsers),
|
|
639
|
+
/** Create an SSHUser for a Project. */
|
|
640
|
+
sshUserCreateSshUser: this.requestFunctionFactory(descriptors.sshUserCreateSshUser),
|
|
641
|
+
/** Get an SSHUser. */
|
|
642
|
+
sshUserGetSshUser: this.requestFunctionFactory(descriptors.sshUserGetSshUser),
|
|
643
|
+
/** Delete an SSHUser. */
|
|
644
|
+
sshUserDeleteSshUser: this.requestFunctionFactory(descriptors.sshUserDeleteSshUser),
|
|
645
|
+
/** Update an SSHUser. */
|
|
646
|
+
sshUserUpdateSshUser: this.requestFunctionFactory(descriptors.sshUserUpdateSshUser),
|
|
647
|
+
};
|
|
446
648
|
/** The user API allows you to manage your own user and access information of other users that might be visible to you. */
|
|
447
649
|
user = {
|
|
448
|
-
/** Get a PasswordPolicy. */
|
|
449
|
-
passwordValidationGetPasswordPolicy: this.requestFunctionFactory(descriptors.passwordValidationGetPasswordPolicy),
|
|
450
650
|
/** Add phone number and start verification process. */
|
|
451
651
|
addPhoneNumber: this.requestFunctionFactory(descriptors.userAddPhoneNumber),
|
|
452
652
|
/** Remove phone number. */
|
|
@@ -475,8 +675,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
475
675
|
disableMfa: this.requestFunctionFactory(descriptors.userDisableMfa),
|
|
476
676
|
/** Confirm password reset. */
|
|
477
677
|
confirmPasswordReset: this.requestFunctionFactory(descriptors.userConfirmPasswordReset),
|
|
478
|
-
/** Create an access token retrieval key to acquire an access token for your user. */
|
|
479
|
-
createAccessTokenRetrievalKey: this.requestFunctionFactory(descriptors.userCreateAccessTokenRetrievalKey),
|
|
480
678
|
/** List all of your ApiTokens. */
|
|
481
679
|
listApiTokens: this.requestFunctionFactory(descriptors.userListApiTokens),
|
|
482
680
|
/** Store a new ApiToken. */
|
|
@@ -531,6 +729,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
531
729
|
listFeedback: this.requestFunctionFactory(descriptors.userListFeedback),
|
|
532
730
|
/** List all sessions. */
|
|
533
731
|
listSessions: this.requestFunctionFactory(descriptors.userListSessions),
|
|
732
|
+
/** Refresh a session. */
|
|
733
|
+
refreshSession: this.requestFunctionFactory(descriptors.userRefreshSession),
|
|
534
734
|
/** Terminate all sessions, except the current session. */
|
|
535
735
|
terminateAllSessions: this.requestFunctionFactory(descriptors.userTerminateAllSessions),
|
|
536
736
|
/** Terminate session and invalidate access token. */
|
|
@@ -556,107 +756,5 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
556
756
|
/** Verify your registration. */
|
|
557
757
|
verifyRegistration: this.requestFunctionFactory(descriptors.userVerifyRegistration),
|
|
558
758
|
};
|
|
559
|
-
/** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
|
|
560
|
-
project = {
|
|
561
|
-
/** Accept a ProjectInvite. */
|
|
562
|
-
acceptProjectInvite: this.requestFunctionFactory(descriptors.projectAcceptProjectInvite),
|
|
563
|
-
/** List Invites belonging to a Project. */
|
|
564
|
-
listInvitesForProject: this.requestFunctionFactory(descriptors.projectListInvitesForProject),
|
|
565
|
-
/** Create a ProjectInvite. */
|
|
566
|
-
createProjectInvite: this.requestFunctionFactory(descriptors.projectCreateProjectInvite),
|
|
567
|
-
/** Create a Project belonging to a Server. */
|
|
568
|
-
createProject: this.requestFunctionFactory(descriptors.projectCreateProject),
|
|
569
|
-
/** Decline a ProjectInvite. */
|
|
570
|
-
declineProjectInvite: this.requestFunctionFactory(descriptors.projectDeclineProjectInvite),
|
|
571
|
-
/** Request a Project avatar upload. */
|
|
572
|
-
requestProjectAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestProjectAvatarUpload),
|
|
573
|
-
/** Delete a Project's avatar. */
|
|
574
|
-
deleteProjectAvatar: this.requestFunctionFactory(descriptors.projectDeleteProjectAvatar),
|
|
575
|
-
/** Get a ProjectInvite. */
|
|
576
|
-
getProjectInvite: this.requestFunctionFactory(descriptors.projectGetProjectInvite),
|
|
577
|
-
/** Delete a ProjectInvite. */
|
|
578
|
-
deleteProjectInvite: this.requestFunctionFactory(descriptors.projectDeleteProjectInvite),
|
|
579
|
-
/** Get a ProjectMembership */
|
|
580
|
-
getProjectMembership: this.requestFunctionFactory(descriptors.projectGetProjectMembership),
|
|
581
|
-
/** Delete a ProjectMembership. */
|
|
582
|
-
deleteProjectMembership: this.requestFunctionFactory(descriptors.projectDeleteProjectMembership),
|
|
583
|
-
/** Update a ProjectMembership. */
|
|
584
|
-
updateProjectMembership: this.requestFunctionFactory(descriptors.projectUpdateProjectMembership),
|
|
585
|
-
/** Get a Project. */
|
|
586
|
-
getProject: this.requestFunctionFactory(descriptors.projectGetProject),
|
|
587
|
-
/** Delete a Project. */
|
|
588
|
-
deleteProject: this.requestFunctionFactory(descriptors.projectDeleteProject),
|
|
589
|
-
/** Request a Server avatar upload. */
|
|
590
|
-
requestServerAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestServerAvatarUpload),
|
|
591
|
-
/** Delete a Server's avatar. */
|
|
592
|
-
deleteServerAvatar: this.requestFunctionFactory(descriptors.projectDeleteServerAvatar),
|
|
593
|
-
/** Get a ProjectInvite by token. */
|
|
594
|
-
getProjectTokenInvite: this.requestFunctionFactory(descriptors.projectGetProjectTokenInvite),
|
|
595
|
-
/** Get the executing user's membership in a Project. */
|
|
596
|
-
getSelfMembershipForProject: this.requestFunctionFactory(descriptors.projectGetSelfMembershipForProject),
|
|
597
|
-
/** Get a Server. */
|
|
598
|
-
getServer: this.requestFunctionFactory(descriptors.projectGetServer),
|
|
599
|
-
/** Leave a Project. */
|
|
600
|
-
leaveProject: this.requestFunctionFactory(descriptors.projectLeaveProject),
|
|
601
|
-
/** List Memberships belonging to a Project. */
|
|
602
|
-
listMembershipsForProject: this.requestFunctionFactory(descriptors.projectListMembershipsForProject),
|
|
603
|
-
/** List ProjectInvites belonging to the executing user. */
|
|
604
|
-
listProjectInvites: this.requestFunctionFactory(descriptors.projectListProjectInvites),
|
|
605
|
-
/** List ProjectMemberships belonging to the executing user. */
|
|
606
|
-
listProjectMemberships: this.requestFunctionFactory(descriptors.projectListProjectMemberships),
|
|
607
|
-
/** List Projects belonging to the executing user. */
|
|
608
|
-
listProjects: this.requestFunctionFactory(descriptors.projectListProjects),
|
|
609
|
-
/** List Servers belonging to the executing user. */
|
|
610
|
-
listServers: this.requestFunctionFactory(descriptors.projectListServers),
|
|
611
|
-
/** Resend the mail for a ProjectInvite. */
|
|
612
|
-
resendProjectInviteMail: this.requestFunctionFactory(descriptors.projectResendProjectInviteMail),
|
|
613
|
-
/** Update a Project's description. */
|
|
614
|
-
updateProjectDescription: this.requestFunctionFactory(descriptors.projectUpdateProjectDescription),
|
|
615
|
-
/** Update a Servers's description. */
|
|
616
|
-
updateServerDescription: this.requestFunctionFactory(descriptors.projectUpdateServerDescription),
|
|
617
|
-
};
|
|
618
|
-
/** The filesystem API allows you to directly access the filesystem of your project. */
|
|
619
|
-
projectFileSystem = {
|
|
620
|
-
/** List directories belonging to a Project. */
|
|
621
|
-
getDirectories: this.requestFunctionFactory(descriptors.projectFileSystemGetDirectories),
|
|
622
|
-
/** Get a Project directory filesystem usage. */
|
|
623
|
-
getDiskUsage: this.requestFunctionFactory(descriptors.projectFileSystemGetDiskUsage),
|
|
624
|
-
/** Get a Project file's content. */
|
|
625
|
-
getFileContent: this.requestFunctionFactory(descriptors.projectFileSystemGetFileContent),
|
|
626
|
-
/** Get a Project's file/filesystem authorization token. */
|
|
627
|
-
getJwt: this.requestFunctionFactory(descriptors.projectFileSystemGetJwt),
|
|
628
|
-
/** Get a Project file's information. */
|
|
629
|
-
listFiles: this.requestFunctionFactory(descriptors.projectFileSystemListFiles),
|
|
630
|
-
};
|
|
631
|
-
/** The relocation API allows you to manage your relocations. */
|
|
632
|
-
relocation = {
|
|
633
|
-
/** Register a tariff change for a legacy tariff. */
|
|
634
|
-
createLegacyTariffChange: this.requestFunctionFactory(descriptors.relocationCreateLegacyTariffChange),
|
|
635
|
-
/** Relocate an external Project to mittwald. */
|
|
636
|
-
createRelocation: this.requestFunctionFactory(descriptors.relocationCreateRelocation),
|
|
637
|
-
};
|
|
638
|
-
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
639
|
-
sshsftpUser = {
|
|
640
|
-
/** Get all SFTPUsers for a Project. */
|
|
641
|
-
sftpUserListSftpUsers: this.requestFunctionFactory(descriptors.sftpUserListSftpUsers),
|
|
642
|
-
/** Create an SFTPUser for a Project. */
|
|
643
|
-
sftpUserCreateSftpUser: this.requestFunctionFactory(descriptors.sftpUserCreateSftpUser),
|
|
644
|
-
/** Get an SFTPUser. */
|
|
645
|
-
sftpUserGetSftpUser: this.requestFunctionFactory(descriptors.sftpUserGetSftpUser),
|
|
646
|
-
/** Delete an SFTPUser. */
|
|
647
|
-
sftpUserDeleteSftpUser: this.requestFunctionFactory(descriptors.sftpUserDeleteSftpUser),
|
|
648
|
-
/** Update an SFTPUser. */
|
|
649
|
-
sftpUserUpdateSftpUser: this.requestFunctionFactory(descriptors.sftpUserUpdateSftpUser),
|
|
650
|
-
/** Get all SSHUsers for a Project. */
|
|
651
|
-
sshUserListSshUsers: this.requestFunctionFactory(descriptors.sshUserListSshUsers),
|
|
652
|
-
/** Create an SSHUser for a Project. */
|
|
653
|
-
sshUserCreateSshUser: this.requestFunctionFactory(descriptors.sshUserCreateSshUser),
|
|
654
|
-
/** Get an SSHUser. */
|
|
655
|
-
sshUserGetSshUser: this.requestFunctionFactory(descriptors.sshUserGetSshUser),
|
|
656
|
-
/** Delete an SSHUser. */
|
|
657
|
-
sshUserDeleteSshUser: this.requestFunctionFactory(descriptors.sshUserDeleteSshUser),
|
|
658
|
-
/** Update an SSHUser. */
|
|
659
|
-
sshUserUpdateSshUser: this.requestFunctionFactory(descriptors.sshUserUpdateSshUser),
|
|
660
|
-
};
|
|
661
759
|
}
|
|
662
760
|
export default MittwaldAPIV2Client;
|