@mittwald/api-client 3.1.18 → 3.1.20

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.
@@ -574,6 +574,18 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
574
574
  templateNames?: string[] | undefined;
575
575
  } | undefined;
576
576
  }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
577
+ /** Request an Access Token for the Invoice file. */
578
+ invoiceGetFileAccessToken: (conf: {
579
+ customerId: string;
580
+ invoiceId: string;
581
+ headers?: {
582
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
583
+ "x-access-token"?: string | undefined;
584
+ } | undefined;
585
+ }) => import("@mittwald/react-use-promise/types").AsyncResource<{
586
+ accessToken: string;
587
+ expiresAt: string;
588
+ }>;
577
589
  };
578
590
  declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
579
591
  /** Get all conversation the authenticated user has created or has access to. */
@@ -613,12 +625,14 @@ declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
613
625
  createdBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
614
626
  lastMessageAt?: string | undefined;
615
627
  lastMessageBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
628
+ mainUser: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser;
616
629
  relatedTo?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
617
630
  relations?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference[] | undefined;
618
631
  sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
619
632
  shortId: string;
620
633
  status: "open" | "answered" | "closed";
621
634
  title: string;
635
+ visibility: "shared" | "private";
622
636
  }>;
623
637
  /** Request an access token for the File belonging to the Conversation. */
624
638
  getFileAccessToken: (conf: {
@@ -637,6 +651,15 @@ declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
637
651
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
638
652
  } | undefined;
639
653
  } | null | undefined) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationCategory[]>;
654
+ /** Get members of a support conversation. */
655
+ getConversationMembers: (conf: {
656
+ conversationId: string;
657
+ headers?: {
658
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
659
+ } | undefined;
660
+ }) => import("@mittwald/react-use-promise/types").AsyncResource<(import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser & {
661
+ active: boolean;
662
+ })[]>;
640
663
  };
641
664
  declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
642
665
  /** List Cronjobs belonging to a Project. */
@@ -103,6 +103,8 @@ const buildContractApi = (baseClient) => ({
103
103
  orderListCustomerOrders: new react_1.ApiCallAsyncResourceFactory(descriptors.orderListCustomerOrders, baseClient.contract.orderListCustomerOrders).getApiResource,
104
104
  /** Get list of Orders of a Project. */
105
105
  orderListProjectOrders: new react_1.ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
106
+ /** Request an Access Token for the Invoice file. */
107
+ invoiceGetFileAccessToken: new react_1.ApiCallAsyncResourceFactory(descriptors.invoiceGetFileAccessToken, baseClient.contract.invoiceGetFileAccessToken).getApiResource,
106
108
  });
107
109
  const buildConversationApi = (baseClient) => ({
108
110
  /** Get all conversation the authenticated user has created or has access to. */
@@ -117,6 +119,8 @@ const buildConversationApi = (baseClient) => ({
117
119
  getFileAccessToken: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationGetFileAccessToken, baseClient.conversation.getFileAccessToken).getApiResource,
118
120
  /** Get all conversation categories. */
119
121
  listCategories: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationListCategories, baseClient.conversation.listCategories).getApiResource,
122
+ /** Get members of a support conversation. */
123
+ getConversationMembers: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationGetConversationMembers, baseClient.conversation.getConversationMembers).getApiResource,
120
124
  });
121
125
  const buildCronjobApi = (baseClient) => ({
122
126
  /** List Cronjobs belonging to a Project. */
@@ -2147,6 +2147,37 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2147
2147
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2148
2148
  [x: string]: unknown;
2149
2149
  }, 400, "application/json">>>;
2150
+ /** Request an Access Token for the Invoice file. */
2151
+ invoiceGetFileAccessToken: (request: {
2152
+ customerId: string;
2153
+ invoiceId: string;
2154
+ headers?: {
2155
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2156
+ "x-access-token"?: string | undefined;
2157
+ } | undefined;
2158
+ }) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
2159
+ headers?: Partial<{
2160
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2161
+ }> | undefined;
2162
+ } & {
2163
+ pathParameters: {
2164
+ customerId: string;
2165
+ invoiceId: string;
2166
+ };
2167
+ } & {
2168
+ headers: {
2169
+ "x-access-token"?: string | undefined;
2170
+ } & Partial<{
2171
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2172
+ }>;
2173
+ }, import("@mittwald/api-client-commons").Response<{
2174
+ accessToken: string;
2175
+ expiresAt: string;
2176
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2177
+ [x: string]: unknown;
2178
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
2179
+ [x: string]: unknown;
2180
+ }, 404, "application/json">>>;
2150
2181
  };
2151
2182
  /** The conversation API allows you to manage your support conversations. */
2152
2183
  readonly conversation: {
@@ -2164,14 +2195,27 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2164
2195
  createConversation: (request?: {
2165
2196
  data?: {
2166
2197
  categoryId?: string | undefined;
2198
+ mainUserId?: string | undefined;
2167
2199
  relatedTo?: {
2168
2200
  aggregate: string;
2169
2201
  domain: string;
2170
2202
  id: string;
2171
2203
  } | undefined;
2172
2204
  sharedWith?: {
2173
- aggregate: string;
2174
- domain: string;
2205
+ aggregate: "user";
2206
+ domain: "user";
2207
+ id: string;
2208
+ } | {
2209
+ aggregate: "customer";
2210
+ domain: "customer";
2211
+ id: string;
2212
+ } | {
2213
+ aggregate: "project";
2214
+ domain: "project";
2215
+ id: string;
2216
+ } | {
2217
+ aggregate: "placementgroup";
2218
+ domain: "project";
2175
2219
  id: string;
2176
2220
  } | undefined;
2177
2221
  title?: string | undefined;
@@ -2182,8 +2226,9 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2182
2226
  } | null | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
2183
2227
  data: {
2184
2228
  categoryId?: string | undefined;
2229
+ mainUserId?: string | undefined;
2185
2230
  relatedTo?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
2186
- sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
2231
+ sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationShareableAggregateReference | undefined;
2187
2232
  title?: string | undefined;
2188
2233
  };
2189
2234
  } & {
@@ -2291,12 +2336,14 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2291
2336
  createdBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
2292
2337
  lastMessageAt?: string | undefined;
2293
2338
  lastMessageBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
2339
+ mainUser: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser;
2294
2340
  relatedTo?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
2295
2341
  relations?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference[] | undefined;
2296
2342
  sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
2297
2343
  shortId: string;
2298
2344
  status: "open" | "answered" | "closed";
2299
2345
  title: string;
2346
+ visibility: "shared" | "private";
2300
2347
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2301
2348
  [x: string]: unknown;
2302
2349
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -2474,6 +2521,29 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2474
2521
  }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
2475
2522
  [x: string]: unknown;
2476
2523
  }, 404, "application/json">>>;
2524
+ /** Get members of a support conversation. */
2525
+ getConversationMembers: (request: {
2526
+ conversationId: string;
2527
+ headers?: {
2528
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2529
+ } | undefined;
2530
+ }) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
2531
+ headers?: Partial<{
2532
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2533
+ }> | undefined;
2534
+ } & {
2535
+ pathParameters: {
2536
+ conversationId: string;
2537
+ };
2538
+ }, import("@mittwald/api-client-commons").Response<(import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser & {
2539
+ active: boolean;
2540
+ })[], 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2541
+ [x: string]: unknown;
2542
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
2543
+ [x: string]: unknown;
2544
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
2545
+ [x: string]: unknown;
2546
+ }, 404, "application/json">>>;
2477
2547
  };
2478
2548
  /** The cronjob API allows you to manage cronjobs within a project. */
2479
2549
  readonly cronjob: {
@@ -5142,6 +5212,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
5142
5212
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5143
5213
  }> | undefined;
5144
5214
  }, import("@mittwald/api-client-commons").Response<{
5215
+ isPremium: boolean;
5145
5216
  registrable: boolean;
5146
5217
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
5147
5218
  [x: string]: unknown;
@@ -161,6 +161,8 @@ class MittwaldAPIV2Client extends api_client_commons_1.ApiClientBase {
161
161
  orderPreviewOrder: this.requestFunctionFactory(descriptors.orderPreviewOrder),
162
162
  /** Preview TariffChange. */
163
163
  orderPreviewTariffChange: this.requestFunctionFactory(descriptors.orderPreviewTariffChange),
164
+ /** Request an Access Token for the Invoice file. */
165
+ invoiceGetFileAccessToken: this.requestFunctionFactory(descriptors.invoiceGetFileAccessToken),
164
166
  };
165
167
  /** The conversation API allows you to manage your support conversations. */
166
168
  this.conversation = {
@@ -188,6 +190,8 @@ class MittwaldAPIV2Client extends api_client_commons_1.ApiClientBase {
188
190
  setConversationStatus: this.requestFunctionFactory(descriptors.conversationSetConversationStatus),
189
191
  /** Update the content of the message */
190
192
  updateMessage: this.requestFunctionFactory(descriptors.conversationUpdateMessage),
193
+ /** Get members of a support conversation. */
194
+ getConversationMembers: this.requestFunctionFactory(descriptors.conversationGetConversationMembers),
191
195
  };
192
196
  /** The cronjob API allows you to manage cronjobs within a project. */
193
197
  this.cronjob = {
@@ -587,3 +587,7 @@ export declare const userVerifyEmail: OpenAPIOperation<RequestType<Simplify<Mitt
587
587
  export declare const userVerifyPhoneNumber: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$409.Content.ApplicationJson>, 409, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
588
588
  /** Verify your registration. */
589
589
  export declare const userVerifyRegistration: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.$200.Content.Empty>, 200, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
590
+ /** Request an Access Token for the Invoice file. */
591
+ export declare const invoiceGetFileAccessToken: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
592
+ /** Get members of a support conversation. */
593
+ export declare const conversationGetConversationMembers: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
@@ -5,7 +5,7 @@ exports.databaseCreateMysqlDatabase = exports.databaseListMysqlDatabases = expor
5
5
  exports.fileGetFileUploadTokenRules = exports.fileGetFileMeta = exports.fileCreateFile = exports.domainVerifyDomainOwnership = exports.domainUpdateDomainProjectId = exports.domainUpdateDomainContact = exports.domainUpdateDomainAuthCode = exports.domainResendDomainEmail = exports.domainListTlds = exports.domainListTldContactSchemas = exports.domainListDomains = exports.domainListDomainOwnerships = exports.domainGetLatestScreenshot = exports.domainGetDomainOwnership = exports.domainDeleteDomain = exports.domainGetDomain = exports.domainUpdateDomainNameservers = exports.domainCreateDomainAuthCode = exports.domainCreateDomainAuthCode2 = exports.domainCheckDomainRegistrability = exports.domainAbortDomainDeclaration = exports.dnsUpdateRecordSet = exports.dnsSetRecordSetManaged = exports.dnsListDnsZones = exports.dnsDeleteDnsZone = exports.dnsGetDnsZone = exports.dnsCreateDnsZone = exports.newsletterSubscribeUser = exports.databaseUpdateRedisDatabaseDescription = exports.databaseUpdateRedisDatabaseConfiguration = exports.databaseUpdateMysqlUserPassword = exports.databaseUpdateMysqlDatabaseDescription = exports.databaseUpdateMysqlDatabaseDefaultCharset = exports.databaseListRedisVersions = exports.databaseListMysqlVersions = exports.databaseListMysqlCharsets = exports.databaseGetMysqlUserPhpMyAdminUrl = exports.databaseEnableMysqlUser = exports.databaseDisableMysqlUser = exports.databaseDeleteRedisDatabase = exports.databaseGetRedisDatabase = exports.databaseDeleteMysqlUser = exports.databaseUpdateMysqlUser = exports.databaseGetMysqlUser = exports.databaseDeleteMysqlDatabase = exports.databaseGetMysqlDatabase = exports.databaseCreateRedisDatabase = exports.databaseListRedisDatabases = exports.databaseCreateMysqlUser = exports.databaseListMysqlUsers = void 0;
6
6
  exports.projectCreateProjectInvite = exports.projectAcceptProjectInvite = exports.passwordValidationGetPasswordPolicy = exports.pageinsightsListPerformanceDataForProject = exports.pageinsightsGetPerformanceData = exports.orderPreviewTariffChange = exports.orderPreviewOrder = exports.orderListProjectOrders = exports.orderListCustomerOrders = exports.orderGetOrder = exports.orderCreateTariffChange = exports.orderCreateOrder = exports.notificationsReadNotification = exports.notificationsReadAllNotifications = exports.notificationsListNotifications = exports.notificationsCountUnreadNotifications = exports.newsletterUnsubscribeUser = exports.newsletterGetInfo = exports.mailUpdateProjectMailSetting = exports.mailUpdateMailAddressSpamProtection = exports.mailUpdateMailAddressQuota = exports.mailUpdateMailAddressPassword = exports.mailUpdateMailAddressForwardAddresses = exports.mailUpdateMailAddressCatchAll = exports.mailUpdateMailAddressAutoresponder = exports.mailUpdateMailAddressAddress = exports.mailUpdateDeliveryBoxPassword = exports.mailUpdateDeliveryBoxDescription = exports.mailListProjectMailSettings = exports.mailCreateMailAddress = exports.mailListMailAddresses = exports.mailCreateDeliverybox = exports.mailListDeliveryBoxes = exports.mailDeleteMailAddress = exports.mailGetMailAddress = exports.mailDeleteDeliveryBox = exports.mailGetDeliveryBox = exports.invoiceListCustomerInvoices = exports.invoiceUpdateInvoiceSettings = exports.invoiceGetDetailOfInvoiceSettings = exports.invoiceDetailOfInvoice = exports.ingressUpdateIngressTls = exports.ingressRequestIngressAcmeCertificateIssuance = exports.ingressUpdateIngressPaths = exports.ingressDeleteIngress = exports.ingressGetIngress = exports.ingressCreateIngress = exports.ingressListIngresses = exports.fileGetFile = exports.fileGetFileUploadTypeRules = void 0;
7
7
  exports.userChangeEmail = exports.userGetOwnEmail = exports.userAuthenticate = exports.userAuthenticateMfa = exports.userRemovePhoneNumber = exports.userAddPhoneNumber = exports.sshUserUpdateSshUser = exports.sshUserDeleteSshUser = exports.sshUserGetSshUser = exports.sshUserCreateSshUser = exports.sshUserListSshUsers = exports.sftpUserUpdateSftpUser = exports.sftpUserDeleteSftpUser = exports.sftpUserGetSftpUser = exports.sftpUserCreateSftpUser = exports.sftpUserListSftpUsers = exports.servicetokenAuthenticateService = exports.relocationCreateRelocation = exports.relocationCreateLegacyTariffChange = exports.projectUpdateServerDescription = exports.projectUpdateProjectDescription = exports.projectResendProjectInviteMail = exports.projectListServers = exports.projectListProjects = exports.projectListProjectMemberships = exports.projectListProjectInvites = exports.projectListMembershipsForProject = exports.projectListInvitesForProject = exports.projectLeaveProject = exports.projectGetServer = exports.projectGetSelfMembershipForProject = exports.projectGetProjectTokenInvite = exports.projectFileSystemListFiles = exports.projectFileSystemGetJwt = exports.projectFileSystemGetFileContent = exports.projectFileSystemGetDiskUsage = exports.projectFileSystemGetDirectories = exports.projectDeleteServerAvatar = exports.projectRequestServerAvatarUpload = exports.projectDeleteProject = exports.projectGetProject = exports.projectUpdateProjectMembership = exports.projectDeleteProjectMembership = exports.projectGetProjectMembership = exports.projectDeleteProjectInvite = exports.projectGetProjectInvite = exports.projectDeleteProjectAvatar = exports.projectRequestProjectAvatarUpload = exports.projectDeclineProjectInvite = exports.projectCreateProject = void 0;
8
- exports.userVerifyRegistration = exports.userVerifyPhoneNumber = exports.userVerifyEmail = exports.userSupportCodeRequest = exports.userResendVerificationEmail = exports.userRemoveAvatar = exports.userRequestAvatarUpload = exports.userRegister = exports.userLogout = exports.userTerminateAllSessions = exports.userListSessions = exports.userListFeedback = exports.userInitPasswordReset = exports.userInitMfa = exports.userUpdatePersonalInformation = exports.userGetUser = exports.userTerminateSession = exports.userGetSession = exports.userUpdatePersonalizedSettings = exports.userGetPersonalizedSettings = exports.userGetPasswordUpdatedAt = exports.userUpdateAccount = exports.userGetOwnAccount = exports.userDeleteUser = exports.userDeleteSshKey = exports.userEditSshKey = exports.userGetSshKey = exports.userDeleteApiToken = exports.userEditApiToken = exports.userGetApiToken = exports.userCreateSshKey = exports.userListSshKeys = exports.userCreateFeedback = exports.userCreateApiToken = exports.userListApiTokens = exports.userConfirmPasswordReset = exports.userDisableMfa = exports.userConfirmMfa = exports.userResetRecoverycodes = exports.userGetMfaStatus = exports.userCheckToken = exports.userChangePassword = void 0;
8
+ exports.conversationGetConversationMembers = exports.invoiceGetFileAccessToken = exports.userVerifyRegistration = exports.userVerifyPhoneNumber = exports.userVerifyEmail = exports.userSupportCodeRequest = exports.userResendVerificationEmail = exports.userRemoveAvatar = exports.userRequestAvatarUpload = exports.userRegister = exports.userLogout = exports.userTerminateAllSessions = exports.userListSessions = exports.userListFeedback = exports.userInitPasswordReset = exports.userInitMfa = exports.userUpdatePersonalInformation = exports.userGetUser = exports.userTerminateSession = exports.userGetSession = exports.userUpdatePersonalizedSettings = exports.userGetPersonalizedSettings = exports.userGetPasswordUpdatedAt = exports.userUpdateAccount = exports.userGetOwnAccount = exports.userDeleteUser = exports.userDeleteSshKey = exports.userEditSshKey = exports.userGetSshKey = exports.userDeleteApiToken = exports.userEditApiToken = exports.userGetApiToken = exports.userCreateSshKey = exports.userListSshKeys = exports.userCreateFeedback = exports.userCreateApiToken = exports.userListApiTokens = exports.userConfirmPasswordReset = exports.userDisableMfa = exports.userConfirmMfa = exports.userResetRecoverycodes = exports.userGetMfaStatus = exports.userCheckToken = exports.userChangePassword = void 0;
9
9
  /** Execute a runtime concerning action on a specific `AppInstallation`. */
10
10
  exports.appExecuteAction = {
11
11
  path: "/v2/app-installations/{appInstallationId}/actions/{action}",
@@ -1758,3 +1758,15 @@ exports.userVerifyRegistration = {
1758
1758
  method: "POST",
1759
1759
  operationId: "user-verify-registration",
1760
1760
  };
1761
+ /** Request an Access Token for the Invoice file. */
1762
+ exports.invoiceGetFileAccessToken = {
1763
+ path: "/v2/customers/{customerId}/invoices/{invoiceId}/file-access-token",
1764
+ method: "GET",
1765
+ operationId: "invoice-get-file-access-token",
1766
+ };
1767
+ /** Get members of a support conversation. */
1768
+ exports.conversationGetConversationMembers = {
1769
+ path: "/v2/conversations/{conversationId}/members",
1770
+ method: "GET",
1771
+ operationId: "conversation-get-conversation-members",
1772
+ };
@@ -1170,6 +1170,14 @@ export declare module MittwaldAPIV2 {
1170
1170
  type RequestData = InferredRequestData<typeof descriptors.userVerifyRegistration>;
1171
1171
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.userVerifyRegistration, TStatus>;
1172
1172
  }
1173
+ namespace InvoiceGetFileAccessToken {
1174
+ type RequestData = InferredRequestData<typeof descriptors.invoiceGetFileAccessToken>;
1175
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.invoiceGetFileAccessToken, TStatus>;
1176
+ }
1177
+ namespace ConversationGetConversationMembers {
1178
+ type RequestData = InferredRequestData<typeof descriptors.conversationGetConversationMembers>;
1179
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.conversationGetConversationMembers, TStatus>;
1180
+ }
1173
1181
  }
1174
1182
  namespace Components {
1175
1183
  namespace Schemas {
@@ -1638,12 +1646,14 @@ export declare module MittwaldAPIV2 {
1638
1646
  createdBy?: MittwaldAPIV2.Components.Schemas.ConversationUser;
1639
1647
  lastMessageAt?: string;
1640
1648
  lastMessageBy?: MittwaldAPIV2.Components.Schemas.ConversationUser;
1649
+ mainUser: MittwaldAPIV2.Components.Schemas.ConversationUser;
1641
1650
  relatedTo?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference;
1642
1651
  relations?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference[];
1643
1652
  sharedWith?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference;
1644
1653
  shortId: string;
1645
1654
  status: "open" | "closed" | "answered";
1646
1655
  title: string;
1656
+ visibility: "shared" | "private";
1647
1657
  }
1648
1658
  interface ConversationGetConversationIdResponse {
1649
1659
  conversationId: string;
@@ -1692,6 +1702,7 @@ export declare module MittwaldAPIV2 {
1692
1702
  type: "STATUS_UPDATE";
1693
1703
  }
1694
1704
  interface ConversationUser {
1705
+ active?: boolean;
1695
1706
  avatarRefId?: string;
1696
1707
  clearName?: string;
1697
1708
  department?: MittwaldAPIV2.Components.Schemas.ConversationDepartment;
@@ -2922,6 +2933,26 @@ export declare module MittwaldAPIV2 {
2922
2933
  location?: MittwaldAPIV2.Components.Schemas.SignupLocation;
2923
2934
  tokenId: string;
2924
2935
  }
2936
+ type ConversationConversationMembers = (MittwaldAPIV2.Components.Schemas.ConversationUser & {
2937
+ active: boolean;
2938
+ })[];
2939
+ type ConversationShareableAggregateReference = {
2940
+ aggregate: "user";
2941
+ domain: "user";
2942
+ id: string;
2943
+ } | {
2944
+ aggregate: "customer";
2945
+ domain: "customer";
2946
+ id: string;
2947
+ } | {
2948
+ aggregate: "project";
2949
+ domain: "project";
2950
+ id: string;
2951
+ } | {
2952
+ aggregate: "placementgroup";
2953
+ domain: "project";
2954
+ id: string;
2955
+ };
2925
2956
  interface CommonsAddress {
2926
2957
  street: string;
2927
2958
  houseNumber: string;
@@ -4935,8 +4966,9 @@ export declare module MittwaldAPIV2 {
4935
4966
  type Path = {};
4936
4967
  interface RequestBody {
4937
4968
  categoryId?: string;
4969
+ mainUserId?: string;
4938
4970
  relatedTo?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference;
4939
- sharedWith?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference;
4971
+ sharedWith?: MittwaldAPIV2.Components.Schemas.ConversationShareableAggregateReference;
4940
4972
  title?: string;
4941
4973
  }
4942
4974
  type Header = {};
@@ -7808,9 +7840,6 @@ export declare module MittwaldAPIV2 {
7808
7840
  }
7809
7841
  }
7810
7842
  namespace V2AppinstallationsAppInstallationIdDatabases { }
7811
- namespace V2DomainsDomainIdContracts { }
7812
- namespace V2ProjectsProjectIdContracts { }
7813
- namespace V2ServersServerIdContracts { }
7814
7843
  namespace V2DomainsDomainIdScreenshotsNewest { }
7815
7844
  namespace V2FileTokenRulesToken { }
7816
7845
  namespace V2FileTypeRulesName { }
@@ -8140,6 +8169,7 @@ export declare module MittwaldAPIV2 {
8140
8169
  namespace $200 {
8141
8170
  namespace Content {
8142
8171
  interface ApplicationJson {
8172
+ isPremium: boolean;
8143
8173
  registrable: boolean;
8144
8174
  }
8145
8175
  }
@@ -14772,5 +14802,94 @@ export declare module MittwaldAPIV2 {
14772
14802
  }
14773
14803
  }
14774
14804
  }
14805
+ namespace V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken {
14806
+ namespace Get {
14807
+ namespace Parameters {
14808
+ type Path = {
14809
+ customerId: string;
14810
+ invoiceId: string;
14811
+ };
14812
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
14813
+ type Query = {};
14814
+ }
14815
+ namespace Responses {
14816
+ namespace $200 {
14817
+ namespace Content {
14818
+ interface ApplicationJson {
14819
+ accessToken: string;
14820
+ expiresAt: string;
14821
+ }
14822
+ }
14823
+ }
14824
+ namespace $400 {
14825
+ namespace Content {
14826
+ interface ApplicationJson {
14827
+ [k: string]: unknown;
14828
+ }
14829
+ }
14830
+ }
14831
+ namespace $404 {
14832
+ namespace Content {
14833
+ interface ApplicationJson {
14834
+ [k: string]: unknown;
14835
+ }
14836
+ }
14837
+ }
14838
+ namespace Default {
14839
+ namespace Content {
14840
+ interface ApplicationJson {
14841
+ [k: string]: unknown;
14842
+ }
14843
+ }
14844
+ }
14845
+ }
14846
+ }
14847
+ }
14848
+ namespace V2ConversationsConversationIdMembers {
14849
+ namespace Get {
14850
+ namespace Parameters {
14851
+ type Path = {
14852
+ conversationId: string;
14853
+ };
14854
+ type Header = {};
14855
+ type Query = {};
14856
+ }
14857
+ namespace Responses {
14858
+ namespace $200 {
14859
+ namespace Content {
14860
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.ConversationConversationMembers;
14861
+ }
14862
+ }
14863
+ namespace $400 {
14864
+ namespace Content {
14865
+ interface ApplicationJson {
14866
+ [k: string]: unknown;
14867
+ }
14868
+ }
14869
+ }
14870
+ namespace $403 {
14871
+ namespace Content {
14872
+ interface ApplicationJson {
14873
+ [k: string]: unknown;
14874
+ }
14875
+ }
14876
+ }
14877
+ namespace $404 {
14878
+ namespace Content {
14879
+ interface ApplicationJson {
14880
+ [k: string]: unknown;
14881
+ }
14882
+ }
14883
+ }
14884
+ namespace Default {
14885
+ namespace Content {
14886
+ interface ApplicationJson {
14887
+ [k: string]: unknown;
14888
+ }
14889
+ }
14890
+ }
14891
+ }
14892
+ }
14893
+ }
14775
14894
  }
14776
14895
  }
@@ -574,6 +574,18 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
574
574
  templateNames?: string[] | undefined;
575
575
  } | undefined;
576
576
  }) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
577
+ /** Request an Access Token for the Invoice file. */
578
+ invoiceGetFileAccessToken: (conf: {
579
+ customerId: string;
580
+ invoiceId: string;
581
+ headers?: {
582
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
583
+ "x-access-token"?: string | undefined;
584
+ } | undefined;
585
+ }) => import("@mittwald/react-use-promise/types").AsyncResource<{
586
+ accessToken: string;
587
+ expiresAt: string;
588
+ }>;
577
589
  };
578
590
  declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
579
591
  /** Get all conversation the authenticated user has created or has access to. */
@@ -613,12 +625,14 @@ declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
613
625
  createdBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
614
626
  lastMessageAt?: string | undefined;
615
627
  lastMessageBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
628
+ mainUser: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser;
616
629
  relatedTo?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
617
630
  relations?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference[] | undefined;
618
631
  sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
619
632
  shortId: string;
620
633
  status: "open" | "answered" | "closed";
621
634
  title: string;
635
+ visibility: "shared" | "private";
622
636
  }>;
623
637
  /** Request an access token for the File belonging to the Conversation. */
624
638
  getFileAccessToken: (conf: {
@@ -637,6 +651,15 @@ declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
637
651
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
638
652
  } | undefined;
639
653
  } | null | undefined) => import("@mittwald/react-use-promise/types").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationCategory[]>;
654
+ /** Get members of a support conversation. */
655
+ getConversationMembers: (conf: {
656
+ conversationId: string;
657
+ headers?: {
658
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
659
+ } | undefined;
660
+ }) => import("@mittwald/react-use-promise/types").AsyncResource<(import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser & {
661
+ active: boolean;
662
+ })[]>;
640
663
  };
641
664
  declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
642
665
  /** List Cronjobs belonging to a Project. */
@@ -74,6 +74,8 @@ const buildContractApi = (baseClient) => ({
74
74
  orderListCustomerOrders: new ApiCallAsyncResourceFactory(descriptors.orderListCustomerOrders, baseClient.contract.orderListCustomerOrders).getApiResource,
75
75
  /** Get list of Orders of a Project. */
76
76
  orderListProjectOrders: new ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
77
+ /** Request an Access Token for the Invoice file. */
78
+ invoiceGetFileAccessToken: new ApiCallAsyncResourceFactory(descriptors.invoiceGetFileAccessToken, baseClient.contract.invoiceGetFileAccessToken).getApiResource,
77
79
  });
78
80
  const buildConversationApi = (baseClient) => ({
79
81
  /** Get all conversation the authenticated user has created or has access to. */
@@ -88,6 +90,8 @@ const buildConversationApi = (baseClient) => ({
88
90
  getFileAccessToken: new ApiCallAsyncResourceFactory(descriptors.conversationGetFileAccessToken, baseClient.conversation.getFileAccessToken).getApiResource,
89
91
  /** Get all conversation categories. */
90
92
  listCategories: new ApiCallAsyncResourceFactory(descriptors.conversationListCategories, baseClient.conversation.listCategories).getApiResource,
93
+ /** Get members of a support conversation. */
94
+ getConversationMembers: new ApiCallAsyncResourceFactory(descriptors.conversationGetConversationMembers, baseClient.conversation.getConversationMembers).getApiResource,
91
95
  });
92
96
  const buildCronjobApi = (baseClient) => ({
93
97
  /** List Cronjobs belonging to a Project. */
@@ -2147,6 +2147,37 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2147
2147
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2148
2148
  [x: string]: unknown;
2149
2149
  }, 400, "application/json">>>;
2150
+ /** Request an Access Token for the Invoice file. */
2151
+ invoiceGetFileAccessToken: (request: {
2152
+ customerId: string;
2153
+ invoiceId: string;
2154
+ headers?: {
2155
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2156
+ "x-access-token"?: string | undefined;
2157
+ } | undefined;
2158
+ }) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
2159
+ headers?: Partial<{
2160
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2161
+ }> | undefined;
2162
+ } & {
2163
+ pathParameters: {
2164
+ customerId: string;
2165
+ invoiceId: string;
2166
+ };
2167
+ } & {
2168
+ headers: {
2169
+ "x-access-token"?: string | undefined;
2170
+ } & Partial<{
2171
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2172
+ }>;
2173
+ }, import("@mittwald/api-client-commons").Response<{
2174
+ accessToken: string;
2175
+ expiresAt: string;
2176
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2177
+ [x: string]: unknown;
2178
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
2179
+ [x: string]: unknown;
2180
+ }, 404, "application/json">>>;
2150
2181
  };
2151
2182
  /** The conversation API allows you to manage your support conversations. */
2152
2183
  readonly conversation: {
@@ -2164,14 +2195,27 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2164
2195
  createConversation: (request?: {
2165
2196
  data?: {
2166
2197
  categoryId?: string | undefined;
2198
+ mainUserId?: string | undefined;
2167
2199
  relatedTo?: {
2168
2200
  aggregate: string;
2169
2201
  domain: string;
2170
2202
  id: string;
2171
2203
  } | undefined;
2172
2204
  sharedWith?: {
2173
- aggregate: string;
2174
- domain: string;
2205
+ aggregate: "user";
2206
+ domain: "user";
2207
+ id: string;
2208
+ } | {
2209
+ aggregate: "customer";
2210
+ domain: "customer";
2211
+ id: string;
2212
+ } | {
2213
+ aggregate: "project";
2214
+ domain: "project";
2215
+ id: string;
2216
+ } | {
2217
+ aggregate: "placementgroup";
2218
+ domain: "project";
2175
2219
  id: string;
2176
2220
  } | undefined;
2177
2221
  title?: string | undefined;
@@ -2182,8 +2226,9 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2182
2226
  } | null | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
2183
2227
  data: {
2184
2228
  categoryId?: string | undefined;
2229
+ mainUserId?: string | undefined;
2185
2230
  relatedTo?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
2186
- sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
2231
+ sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationShareableAggregateReference | undefined;
2187
2232
  title?: string | undefined;
2188
2233
  };
2189
2234
  } & {
@@ -2291,12 +2336,14 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2291
2336
  createdBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
2292
2337
  lastMessageAt?: string | undefined;
2293
2338
  lastMessageBy?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser | undefined;
2339
+ mainUser: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser;
2294
2340
  relatedTo?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
2295
2341
  relations?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference[] | undefined;
2296
2342
  sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
2297
2343
  shortId: string;
2298
2344
  status: "open" | "answered" | "closed";
2299
2345
  title: string;
2346
+ visibility: "shared" | "private";
2300
2347
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2301
2348
  [x: string]: unknown;
2302
2349
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -2474,6 +2521,29 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2474
2521
  }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
2475
2522
  [x: string]: unknown;
2476
2523
  }, 404, "application/json">>>;
2524
+ /** Get members of a support conversation. */
2525
+ getConversationMembers: (request: {
2526
+ conversationId: string;
2527
+ headers?: {
2528
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2529
+ } | undefined;
2530
+ }) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
2531
+ headers?: Partial<{
2532
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2533
+ }> | undefined;
2534
+ } & {
2535
+ pathParameters: {
2536
+ conversationId: string;
2537
+ };
2538
+ }, import("@mittwald/api-client-commons").Response<(import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationUser & {
2539
+ active: boolean;
2540
+ })[], 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2541
+ [x: string]: unknown;
2542
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
2543
+ [x: string]: unknown;
2544
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
2545
+ [x: string]: unknown;
2546
+ }, 404, "application/json">>>;
2477
2547
  };
2478
2548
  /** The cronjob API allows you to manage cronjobs within a project. */
2479
2549
  readonly cronjob: {
@@ -5142,6 +5212,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
5142
5212
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5143
5213
  }> | undefined;
5144
5214
  }, import("@mittwald/api-client-commons").Response<{
5215
+ isPremium: boolean;
5145
5216
  registrable: boolean;
5146
5217
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
5147
5218
  [x: string]: unknown;
@@ -133,6 +133,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
133
133
  orderPreviewOrder: this.requestFunctionFactory(descriptors.orderPreviewOrder),
134
134
  /** Preview TariffChange. */
135
135
  orderPreviewTariffChange: this.requestFunctionFactory(descriptors.orderPreviewTariffChange),
136
+ /** Request an Access Token for the Invoice file. */
137
+ invoiceGetFileAccessToken: this.requestFunctionFactory(descriptors.invoiceGetFileAccessToken),
136
138
  };
137
139
  /** The conversation API allows you to manage your support conversations. */
138
140
  conversation = {
@@ -160,6 +162,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
160
162
  setConversationStatus: this.requestFunctionFactory(descriptors.conversationSetConversationStatus),
161
163
  /** Update the content of the message */
162
164
  updateMessage: this.requestFunctionFactory(descriptors.conversationUpdateMessage),
165
+ /** Get members of a support conversation. */
166
+ getConversationMembers: this.requestFunctionFactory(descriptors.conversationGetConversationMembers),
163
167
  };
164
168
  /** The cronjob API allows you to manage cronjobs within a project. */
165
169
  cronjob = {
@@ -587,3 +587,7 @@ export declare const userVerifyEmail: OpenAPIOperation<RequestType<Simplify<Mitt
587
587
  export declare const userVerifyPhoneNumber: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$409.Content.ApplicationJson>, 409, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
588
588
  /** Verify your registration. */
589
589
  export declare const userVerifyRegistration: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.$200.Content.Empty>, 200, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
590
+ /** Request an Access Token for the Invoice file. */
591
+ export declare const invoiceGetFileAccessToken: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
592
+ /** Get members of a support conversation. */
593
+ export declare const conversationGetConversationMembers: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ConversationsConversationIdMembers.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
@@ -1750,3 +1750,15 @@ export const userVerifyRegistration = {
1750
1750
  method: "POST",
1751
1751
  operationId: "user-verify-registration",
1752
1752
  };
1753
+ /** Request an Access Token for the Invoice file. */
1754
+ export const invoiceGetFileAccessToken = {
1755
+ path: "/v2/customers/{customerId}/invoices/{invoiceId}/file-access-token",
1756
+ method: "GET",
1757
+ operationId: "invoice-get-file-access-token",
1758
+ };
1759
+ /** Get members of a support conversation. */
1760
+ export const conversationGetConversationMembers = {
1761
+ path: "/v2/conversations/{conversationId}/members",
1762
+ method: "GET",
1763
+ operationId: "conversation-get-conversation-members",
1764
+ };
@@ -1170,6 +1170,14 @@ export declare module MittwaldAPIV2 {
1170
1170
  type RequestData = InferredRequestData<typeof descriptors.userVerifyRegistration>;
1171
1171
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.userVerifyRegistration, TStatus>;
1172
1172
  }
1173
+ namespace InvoiceGetFileAccessToken {
1174
+ type RequestData = InferredRequestData<typeof descriptors.invoiceGetFileAccessToken>;
1175
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.invoiceGetFileAccessToken, TStatus>;
1176
+ }
1177
+ namespace ConversationGetConversationMembers {
1178
+ type RequestData = InferredRequestData<typeof descriptors.conversationGetConversationMembers>;
1179
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.conversationGetConversationMembers, TStatus>;
1180
+ }
1173
1181
  }
1174
1182
  namespace Components {
1175
1183
  namespace Schemas {
@@ -1638,12 +1646,14 @@ export declare module MittwaldAPIV2 {
1638
1646
  createdBy?: MittwaldAPIV2.Components.Schemas.ConversationUser;
1639
1647
  lastMessageAt?: string;
1640
1648
  lastMessageBy?: MittwaldAPIV2.Components.Schemas.ConversationUser;
1649
+ mainUser: MittwaldAPIV2.Components.Schemas.ConversationUser;
1641
1650
  relatedTo?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference;
1642
1651
  relations?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference[];
1643
1652
  sharedWith?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference;
1644
1653
  shortId: string;
1645
1654
  status: "open" | "closed" | "answered";
1646
1655
  title: string;
1656
+ visibility: "shared" | "private";
1647
1657
  }
1648
1658
  interface ConversationGetConversationIdResponse {
1649
1659
  conversationId: string;
@@ -1692,6 +1702,7 @@ export declare module MittwaldAPIV2 {
1692
1702
  type: "STATUS_UPDATE";
1693
1703
  }
1694
1704
  interface ConversationUser {
1705
+ active?: boolean;
1695
1706
  avatarRefId?: string;
1696
1707
  clearName?: string;
1697
1708
  department?: MittwaldAPIV2.Components.Schemas.ConversationDepartment;
@@ -2922,6 +2933,26 @@ export declare module MittwaldAPIV2 {
2922
2933
  location?: MittwaldAPIV2.Components.Schemas.SignupLocation;
2923
2934
  tokenId: string;
2924
2935
  }
2936
+ type ConversationConversationMembers = (MittwaldAPIV2.Components.Schemas.ConversationUser & {
2937
+ active: boolean;
2938
+ })[];
2939
+ type ConversationShareableAggregateReference = {
2940
+ aggregate: "user";
2941
+ domain: "user";
2942
+ id: string;
2943
+ } | {
2944
+ aggregate: "customer";
2945
+ domain: "customer";
2946
+ id: string;
2947
+ } | {
2948
+ aggregate: "project";
2949
+ domain: "project";
2950
+ id: string;
2951
+ } | {
2952
+ aggregate: "placementgroup";
2953
+ domain: "project";
2954
+ id: string;
2955
+ };
2925
2956
  interface CommonsAddress {
2926
2957
  street: string;
2927
2958
  houseNumber: string;
@@ -4935,8 +4966,9 @@ export declare module MittwaldAPIV2 {
4935
4966
  type Path = {};
4936
4967
  interface RequestBody {
4937
4968
  categoryId?: string;
4969
+ mainUserId?: string;
4938
4970
  relatedTo?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference;
4939
- sharedWith?: MittwaldAPIV2.Components.Schemas.ConversationAggregateReference;
4971
+ sharedWith?: MittwaldAPIV2.Components.Schemas.ConversationShareableAggregateReference;
4940
4972
  title?: string;
4941
4973
  }
4942
4974
  type Header = {};
@@ -7808,9 +7840,6 @@ export declare module MittwaldAPIV2 {
7808
7840
  }
7809
7841
  }
7810
7842
  namespace V2AppinstallationsAppInstallationIdDatabases { }
7811
- namespace V2DomainsDomainIdContracts { }
7812
- namespace V2ProjectsProjectIdContracts { }
7813
- namespace V2ServersServerIdContracts { }
7814
7843
  namespace V2DomainsDomainIdScreenshotsNewest { }
7815
7844
  namespace V2FileTokenRulesToken { }
7816
7845
  namespace V2FileTypeRulesName { }
@@ -8140,6 +8169,7 @@ export declare module MittwaldAPIV2 {
8140
8169
  namespace $200 {
8141
8170
  namespace Content {
8142
8171
  interface ApplicationJson {
8172
+ isPremium: boolean;
8143
8173
  registrable: boolean;
8144
8174
  }
8145
8175
  }
@@ -14772,5 +14802,94 @@ export declare module MittwaldAPIV2 {
14772
14802
  }
14773
14803
  }
14774
14804
  }
14805
+ namespace V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken {
14806
+ namespace Get {
14807
+ namespace Parameters {
14808
+ type Path = {
14809
+ customerId: string;
14810
+ invoiceId: string;
14811
+ };
14812
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
14813
+ type Query = {};
14814
+ }
14815
+ namespace Responses {
14816
+ namespace $200 {
14817
+ namespace Content {
14818
+ interface ApplicationJson {
14819
+ accessToken: string;
14820
+ expiresAt: string;
14821
+ }
14822
+ }
14823
+ }
14824
+ namespace $400 {
14825
+ namespace Content {
14826
+ interface ApplicationJson {
14827
+ [k: string]: unknown;
14828
+ }
14829
+ }
14830
+ }
14831
+ namespace $404 {
14832
+ namespace Content {
14833
+ interface ApplicationJson {
14834
+ [k: string]: unknown;
14835
+ }
14836
+ }
14837
+ }
14838
+ namespace Default {
14839
+ namespace Content {
14840
+ interface ApplicationJson {
14841
+ [k: string]: unknown;
14842
+ }
14843
+ }
14844
+ }
14845
+ }
14846
+ }
14847
+ }
14848
+ namespace V2ConversationsConversationIdMembers {
14849
+ namespace Get {
14850
+ namespace Parameters {
14851
+ type Path = {
14852
+ conversationId: string;
14853
+ };
14854
+ type Header = {};
14855
+ type Query = {};
14856
+ }
14857
+ namespace Responses {
14858
+ namespace $200 {
14859
+ namespace Content {
14860
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.ConversationConversationMembers;
14861
+ }
14862
+ }
14863
+ namespace $400 {
14864
+ namespace Content {
14865
+ interface ApplicationJson {
14866
+ [k: string]: unknown;
14867
+ }
14868
+ }
14869
+ }
14870
+ namespace $403 {
14871
+ namespace Content {
14872
+ interface ApplicationJson {
14873
+ [k: string]: unknown;
14874
+ }
14875
+ }
14876
+ }
14877
+ namespace $404 {
14878
+ namespace Content {
14879
+ interface ApplicationJson {
14880
+ [k: string]: unknown;
14881
+ }
14882
+ }
14883
+ }
14884
+ namespace Default {
14885
+ namespace Content {
14886
+ interface ApplicationJson {
14887
+ [k: string]: unknown;
14888
+ }
14889
+ }
14890
+ }
14891
+ }
14892
+ }
14893
+ }
14775
14894
  }
14776
14895
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '3.1.18';
1
+ export declare const MittwaldAPIClientVersion = '3.1.20';
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '3.1.18';
1
+ export const MittwaldAPIClientVersion = '3.1.20';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "3.1.18",
3
+ "version": "3.1.20",
4
4
  "description": "Auto-generated client for the mittwald API",
5
5
  "license": "MIT",
6
6
  "repository": "github:mittwald/api-client-js",