@mittwald/api-client 3.1.18 → 3.1.19

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. */
@@ -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. */
@@ -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: {
@@ -5142,6 +5173,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
5142
5173
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5143
5174
  }> | undefined;
5144
5175
  }, import("@mittwald/api-client-commons").Response<{
5176
+ isPremium: boolean;
5145
5177
  registrable: boolean;
5146
5178
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
5147
5179
  [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 = {
@@ -587,3 +587,5 @@ 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">>;
@@ -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.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,9 @@ 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
+ };
@@ -1170,6 +1170,10 @@ 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
+ }
1173
1177
  }
1174
1178
  namespace Components {
1175
1179
  namespace Schemas {
@@ -8140,6 +8144,7 @@ export declare module MittwaldAPIV2 {
8140
8144
  namespace $200 {
8141
8145
  namespace Content {
8142
8146
  interface ApplicationJson {
8147
+ isPremium: boolean;
8143
8148
  registrable: boolean;
8144
8149
  }
8145
8150
  }
@@ -14772,5 +14777,48 @@ export declare module MittwaldAPIV2 {
14772
14777
  }
14773
14778
  }
14774
14779
  }
14780
+ namespace V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken {
14781
+ namespace Get {
14782
+ namespace Parameters {
14783
+ type Path = {
14784
+ customerId: string;
14785
+ invoiceId: string;
14786
+ };
14787
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
14788
+ type Query = {};
14789
+ }
14790
+ namespace Responses {
14791
+ namespace $200 {
14792
+ namespace Content {
14793
+ interface ApplicationJson {
14794
+ accessToken: string;
14795
+ expiresAt: string;
14796
+ }
14797
+ }
14798
+ }
14799
+ namespace $400 {
14800
+ namespace Content {
14801
+ interface ApplicationJson {
14802
+ [k: string]: unknown;
14803
+ }
14804
+ }
14805
+ }
14806
+ namespace $404 {
14807
+ namespace Content {
14808
+ interface ApplicationJson {
14809
+ [k: string]: unknown;
14810
+ }
14811
+ }
14812
+ }
14813
+ namespace Default {
14814
+ namespace Content {
14815
+ interface ApplicationJson {
14816
+ [k: string]: unknown;
14817
+ }
14818
+ }
14819
+ }
14820
+ }
14821
+ }
14822
+ }
14775
14823
  }
14776
14824
  }
@@ -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. */
@@ -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. */
@@ -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: {
@@ -5142,6 +5173,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
5142
5173
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5143
5174
  }> | undefined;
5144
5175
  }, import("@mittwald/api-client-commons").Response<{
5176
+ isPremium: boolean;
5145
5177
  registrable: boolean;
5146
5178
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
5147
5179
  [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 = {
@@ -587,3 +587,5 @@ 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">>;
@@ -1750,3 +1750,9 @@ 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
+ };
@@ -1170,6 +1170,10 @@ 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
+ }
1173
1177
  }
1174
1178
  namespace Components {
1175
1179
  namespace Schemas {
@@ -8140,6 +8144,7 @@ export declare module MittwaldAPIV2 {
8140
8144
  namespace $200 {
8141
8145
  namespace Content {
8142
8146
  interface ApplicationJson {
8147
+ isPremium: boolean;
8143
8148
  registrable: boolean;
8144
8149
  }
8145
8150
  }
@@ -14772,5 +14777,48 @@ export declare module MittwaldAPIV2 {
14772
14777
  }
14773
14778
  }
14774
14779
  }
14780
+ namespace V2CustomersCustomerIdInvoicesInvoiceIdFileAccessToken {
14781
+ namespace Get {
14782
+ namespace Parameters {
14783
+ type Path = {
14784
+ customerId: string;
14785
+ invoiceId: string;
14786
+ };
14787
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
14788
+ type Query = {};
14789
+ }
14790
+ namespace Responses {
14791
+ namespace $200 {
14792
+ namespace Content {
14793
+ interface ApplicationJson {
14794
+ accessToken: string;
14795
+ expiresAt: string;
14796
+ }
14797
+ }
14798
+ }
14799
+ namespace $400 {
14800
+ namespace Content {
14801
+ interface ApplicationJson {
14802
+ [k: string]: unknown;
14803
+ }
14804
+ }
14805
+ }
14806
+ namespace $404 {
14807
+ namespace Content {
14808
+ interface ApplicationJson {
14809
+ [k: string]: unknown;
14810
+ }
14811
+ }
14812
+ }
14813
+ namespace Default {
14814
+ namespace Content {
14815
+ interface ApplicationJson {
14816
+ [k: string]: unknown;
14817
+ }
14818
+ }
14819
+ }
14820
+ }
14821
+ }
14822
+ }
14775
14823
  }
14776
14824
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '3.1.18';
1
+ export declare const MittwaldAPIClientVersion = '3.1.19';
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '3.1.18';
1
+ export const MittwaldAPIClientVersion = '3.1.19';
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.19",
4
4
  "description": "Auto-generated client for the mittwald API",
5
5
  "license": "MIT",
6
6
  "repository": "github:mittwald/api-client-js",