@mittwald/api-client 4.14.1 → 4.16.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.
@@ -72,6 +72,8 @@ const buildContractApi = (baseClient) => ({
72
72
  invoiceGetFileAccessToken: new ApiCallAsyncResourceFactory(descriptors.invoiceGetFileAccessToken, baseClient.contract.invoiceGetFileAccessToken).getApiResource,
73
73
  /** List Invoices of a Customer. */
74
74
  invoiceListCustomerInvoices: new ApiCallAsyncResourceFactory(descriptors.invoiceListCustomerInvoices, baseClient.contract.invoiceListCustomerInvoices).getApiResource,
75
+ /** Get list of Orders. */
76
+ orderListOrders: new ApiCallAsyncResourceFactory(descriptors.orderListOrders, baseClient.contract.orderListOrders).getApiResource,
75
77
  /** Get Order for Customer. */
76
78
  orderGetOrder: new ApiCallAsyncResourceFactory(descriptors.orderGetOrder, baseClient.contract.orderGetOrder).getApiResource,
77
79
  /** Get list of Orders of a Customer. */
@@ -173,6 +175,22 @@ const buildDomainApi = (baseClient) => ({
173
175
  /** Get an Ingress. */
174
176
  ingressGetIngress: new ApiCallAsyncResourceFactory(descriptors.ingressGetIngress, baseClient.domain.ingressGetIngress).getApiResource,
175
177
  });
178
+ const buildMarketplaceApi = (baseClient) => ({
179
+ /** List ExtensionInstances. */
180
+ extensionListExtensionInstances: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensionInstances, baseClient.marketplace.extensionListExtensionInstances).getApiResource,
181
+ /** Get an ExtensionInstance. */
182
+ extensionGetExtensionInstance: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtensionInstance, baseClient.marketplace.extensionGetExtensionInstance).getApiResource,
183
+ /** Get a Contributor. */
184
+ extensionGetContributor: new ApiCallAsyncResourceFactory(descriptors.extensionGetContributor, baseClient.marketplace.extensionGetContributor).getApiResource,
185
+ /** Get an Extension. */
186
+ extensionGetExtension: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtension, baseClient.marketplace.extensionGetExtension).getApiResource,
187
+ /** Get the public key to verify the webhook signature. */
188
+ extensionGetPublicKey: new ApiCallAsyncResourceFactory(descriptors.extensionGetPublicKey, baseClient.marketplace.extensionGetPublicKey).getApiResource,
189
+ /** List Contributors. */
190
+ extensionListContributors: new ApiCallAsyncResourceFactory(descriptors.extensionListContributors, baseClient.marketplace.extensionListContributors).getApiResource,
191
+ /** List Extensions. */
192
+ extensionListExtensions: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensions, baseClient.marketplace.extensionListExtensions).getApiResource,
193
+ });
176
194
  const buildFileApi = (baseClient) => ({
177
195
  /** Get a File's meta. */
178
196
  getFileMeta: new ApiCallAsyncResourceFactory(descriptors.fileGetFileMeta, baseClient.file.getFileMeta).getApiResource,
@@ -182,6 +200,8 @@ const buildFileApi = (baseClient) => ({
182
200
  getFileUploadTypeRules: new ApiCallAsyncResourceFactory(descriptors.fileGetFileUploadTypeRules, baseClient.file.getFileUploadTypeRules).getApiResource,
183
201
  /** Get a File. */
184
202
  getFile: new ApiCallAsyncResourceFactory(descriptors.fileGetFile, baseClient.file.getFile).getApiResource,
203
+ /** Get a File. */
204
+ getFileWithName: new ApiCallAsyncResourceFactory(descriptors.fileGetFileWithName, baseClient.file.getFileWithName).getApiResource,
185
205
  });
186
206
  const buildMailApi = (baseClient) => ({
187
207
  /** List DeliveryBoxes belonging to a Project. */
@@ -314,6 +334,8 @@ export class MittwaldAPIV2ClientReact {
314
334
  database;
315
335
  /** The domain API allows you to manage your domains, DNS records and ingress resources. */
316
336
  domain;
337
+ /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
338
+ marketplace;
317
339
  /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
318
340
  file;
319
341
  /** The mail API allows you to manage your mail accounts. */
@@ -340,6 +362,7 @@ export class MittwaldAPIV2ClientReact {
340
362
  this.customer = buildCustomerApi(baseClient);
341
363
  this.database = buildDatabaseApi(baseClient);
342
364
  this.domain = buildDomainApi(baseClient);
365
+ this.marketplace = buildMarketplaceApi(baseClient);
343
366
  this.file = buildFileApi(baseClient);
344
367
  this.mail = buildMailApi(baseClient);
345
368
  this.notification = buildNotificationApi(baseClient);
@@ -123,6 +123,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
123
123
  invoiceGetFileAccessToken: this.requestFunctionFactory(descriptors.invoiceGetFileAccessToken),
124
124
  /** List Invoices of a Customer. */
125
125
  invoiceListCustomerInvoices: this.requestFunctionFactory(descriptors.invoiceListCustomerInvoices),
126
+ /** Get list of Orders. */
127
+ orderListOrders: this.requestFunctionFactory(descriptors.orderListOrders),
126
128
  /** Create an Order. */
127
129
  orderCreateOrder: this.requestFunctionFactory(descriptors.orderCreateOrder),
128
130
  /** Create TariffChange Order. */
@@ -337,6 +339,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
337
339
  checkDomainRegistrability: this.requestFunctionFactory(descriptors.domainCheckDomainRegistrability),
338
340
  /** List Domains */
339
341
  listDomains: this.requestFunctionFactory(descriptors.domainListDomains),
342
+ /** Check if a Domain is available to transfer. */
343
+ checkDomainTransferability: this.requestFunctionFactory(descriptors.domainCheckDomainTransferability),
340
344
  /** Create an auth code for a Domains transfer-out process. */
341
345
  createDomainAuthCode: this.requestFunctionFactory(descriptors.domainCreateDomainAuthCode),
342
346
  /** Update the nameservers of a Domain. */
@@ -375,8 +379,35 @@ export class MittwaldAPIV2Client extends ApiClientBase {
375
379
  ingressRequestIngressAcmeCertificateIssuance: this.requestFunctionFactory(descriptors.ingressRequestIngressAcmeCertificateIssuance),
376
380
  /** Update the tls settings of an Ingress. */
377
381
  ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls),
378
- /** Check if a Domain is available to transfer. */
379
- checkDomainTransferability: this.requestFunctionFactory(descriptors.domainCheckDomainTransferability),
382
+ };
383
+ /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
384
+ marketplace = {
385
+ /** Authenticate your external application using the extensionInstanceSecret. */
386
+ extensionAuthenticateInstance: this.requestFunctionFactory(descriptors.extensionAuthenticateInstance),
387
+ /** Consent to extension scopes. */
388
+ extensionConsentToExtensionScopes: this.requestFunctionFactory(descriptors.extensionConsentToExtensionScopes),
389
+ /** List ExtensionInstances. */
390
+ extensionListExtensionInstances: this.requestFunctionFactory(descriptors.extensionListExtensionInstances),
391
+ /** Create an ExtensionInstance. */
392
+ extensionCreateExtensionInstance: this.requestFunctionFactory(descriptors.extensionCreateExtensionInstance),
393
+ /** Get an ExtensionInstance. */
394
+ extensionGetExtensionInstance: this.requestFunctionFactory(descriptors.extensionGetExtensionInstance),
395
+ /** Delete an ExtensionInstance. */
396
+ extensionDeleteExtensionInstance: this.requestFunctionFactory(descriptors.extensionDeleteExtensionInstance),
397
+ /** Disable an ExtensionInstance. */
398
+ extensionDisableExtensionInstance: this.requestFunctionFactory(descriptors.extensionDisableExtensionInstance),
399
+ /** Enable an ExtensionInstance. */
400
+ extensionEnableExtensionInstance: this.requestFunctionFactory(descriptors.extensionEnableExtensionInstance),
401
+ /** Get a Contributor. */
402
+ extensionGetContributor: this.requestFunctionFactory(descriptors.extensionGetContributor),
403
+ /** Get an Extension. */
404
+ extensionGetExtension: this.requestFunctionFactory(descriptors.extensionGetExtension),
405
+ /** Get the public key to verify the webhook signature. */
406
+ extensionGetPublicKey: this.requestFunctionFactory(descriptors.extensionGetPublicKey),
407
+ /** List Contributors. */
408
+ extensionListContributors: this.requestFunctionFactory(descriptors.extensionListContributors),
409
+ /** List Extensions. */
410
+ extensionListExtensions: this.requestFunctionFactory(descriptors.extensionListExtensions),
380
411
  };
381
412
  /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
382
413
  file = {
@@ -390,6 +421,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
390
421
  getFileUploadTypeRules: this.requestFunctionFactory(descriptors.fileGetFileUploadTypeRules),
391
422
  /** Get a File. */
392
423
  getFile: this.requestFunctionFactory(descriptors.fileGetFile),
424
+ /** Get a File. */
425
+ getFileWithName: this.requestFunctionFactory(descriptors.fileGetFileWithName),
393
426
  };
394
427
  /** The mail API allows you to manage your mail accounts. */
395
428
  mail = {
@@ -802,6 +802,12 @@ export const domainListDomains = {
802
802
  method: "GET",
803
803
  operationId: "domain-list-domains",
804
804
  };
805
+ /** Check if a Domain is available to transfer. */
806
+ export const domainCheckDomainTransferability = {
807
+ path: "/v2/domain-transferable",
808
+ method: "POST",
809
+ operationId: "domain-check-domain-transferability",
810
+ };
805
811
  /** Create an auth code for a Domains transfer-out process. */
806
812
  export const domainCreateDomainAuthCode = {
807
813
  path: "/v2/domains/{domainId}/actions/auth-code",
@@ -868,6 +874,84 @@ export const domainUpdateDomainProjectId = {
868
874
  method: "PATCH",
869
875
  operationId: "domain-update-domain-project-id",
870
876
  };
877
+ /** Authenticate your external application using the extensionInstanceSecret. */
878
+ export const extensionAuthenticateInstance = {
879
+ path: "/v2/extension-instances/{extensionInstanceId}/tokens",
880
+ method: "POST",
881
+ operationId: "extension-authenticate-instance",
882
+ };
883
+ /** Consent to extension scopes. */
884
+ export const extensionConsentToExtensionScopes = {
885
+ path: "/v2/extension-instances/{extensionInstanceId}/scopes",
886
+ method: "PATCH",
887
+ operationId: "extension-consent-to-extension-scopes",
888
+ };
889
+ /** List ExtensionInstances. */
890
+ export const extensionListExtensionInstances = {
891
+ path: "/v2/extension-instances",
892
+ method: "GET",
893
+ operationId: "extension-list-extension-instances",
894
+ };
895
+ /** Create an ExtensionInstance. */
896
+ export const extensionCreateExtensionInstance = {
897
+ path: "/v2/extension-instances",
898
+ method: "POST",
899
+ operationId: "extension-create-extension-instance",
900
+ };
901
+ /** Get an ExtensionInstance. */
902
+ export const extensionGetExtensionInstance = {
903
+ path: "/v2/extension-instances/{extensionInstanceId}",
904
+ method: "GET",
905
+ operationId: "extension-get-extension-instance",
906
+ };
907
+ /** Delete an ExtensionInstance. */
908
+ export const extensionDeleteExtensionInstance = {
909
+ path: "/v2/extension-instances/{extensionInstanceId}",
910
+ method: "DELETE",
911
+ operationId: "extension-delete-extension-instance",
912
+ };
913
+ /** Disable an ExtensionInstance. */
914
+ export const extensionDisableExtensionInstance = {
915
+ path: "/v2/extension-instances/{extensionInstanceId}/actions/disable",
916
+ method: "POST",
917
+ operationId: "extension-disable-extension-instance",
918
+ };
919
+ /** Enable an ExtensionInstance. */
920
+ export const extensionEnableExtensionInstance = {
921
+ path: "/v2/extension-instances/{extensionInstanceId}/actions/enable",
922
+ method: "POST",
923
+ operationId: "extension-enable-extension-instance",
924
+ };
925
+ /** Get a Contributor. */
926
+ export const extensionGetContributor = {
927
+ path: "/v2/contributors/{contributorId}",
928
+ method: "GET",
929
+ operationId: "extension-get-contributor",
930
+ };
931
+ /** Get an Extension. */
932
+ export const extensionGetExtension = {
933
+ path: "/v2/extensions/{extensionId}",
934
+ method: "GET",
935
+ operationId: "extension-get-extension",
936
+ };
937
+ /** Get the public key to verify the webhook signature. */
938
+ export const extensionGetPublicKey = {
939
+ path: "/v2/webhook-public-keys/{serial}",
940
+ method: "GET",
941
+ operationId: "extension-get-public-key",
942
+ };
943
+ /** List Contributors. */
944
+ export const extensionListContributors = {
945
+ path: "/v2/contributors",
946
+ method: "GET",
947
+ operationId: "extension-list-contributors",
948
+ };
949
+ /** List Extensions. */
950
+ export const extensionListExtensions = {
951
+ path: "/v2/extensions",
952
+ method: "GET",
953
+ operationId: "extension-list-extensions",
954
+ };
871
955
  /** Create a File. */
872
956
  export const fileCreateFile = {
873
957
  path: "/v2/files",
@@ -894,10 +978,16 @@ export const fileGetFileUploadTypeRules = {
894
978
  };
895
979
  /** Get a File. */
896
980
  export const fileGetFile = {
897
- path: "/v2/files/{fileId}/{fileName}",
981
+ path: "/v2/files/{fileId}",
898
982
  method: "GET",
899
983
  operationId: "file-get-file",
900
984
  };
985
+ /** Get a File. */
986
+ export const fileGetFileWithName = {
987
+ path: "/v2/files/{fileId}/{fileName}",
988
+ method: "GET",
989
+ operationId: "file-get-file-with-name",
990
+ };
901
991
  /** List Ingresses. */
902
992
  export const ingressListIngresses = {
903
993
  path: "/v2/ingresses",
@@ -1126,6 +1216,12 @@ export const notificationsReadNotification = {
1126
1216
  method: "PUT",
1127
1217
  operationId: "notifications-read-notification",
1128
1218
  };
1219
+ /** Get list of Orders. */
1220
+ export const orderListOrders = {
1221
+ path: "/v2/orders",
1222
+ method: "GET",
1223
+ operationId: "order-list-orders",
1224
+ };
1129
1225
  /** Create an Order. */
1130
1226
  export const orderCreateOrder = {
1131
1227
  path: "/v2/orders",
@@ -1798,9 +1894,3 @@ export const userVerifyRegistration = {
1798
1894
  method: "POST",
1799
1895
  operationId: "user-verify-registration",
1800
1896
  };
1801
- /** Check if a Domain is available to transfer. */
1802
- export const domainCheckDomainTransferability = {
1803
- path: "/v2/domain-transferable",
1804
- method: "POST",
1805
- operationId: "domain-check-domain-transferability",
1806
- };
@@ -1,4 +1,4 @@
1
- import { ApiClientError, } from "@mittwald/api-client-commons";
1
+ import { ApiClientError, withAccessToken, withEventConsistencyHandling, } from "@mittwald/api-client-commons";
2
2
  import MittwaldApiV2Client from "../generated/v2/client.js";
3
3
  import { MittwaldAPIClientVersion } from "../version.js";
4
4
  import { isBrowser } from "browser-or-node";
@@ -22,13 +22,7 @@ export class MittwaldAPIClient extends MittwaldApiV2Client {
22
22
  };
23
23
  }
24
24
  setupInterceptors() {
25
- this.axios.interceptors.request.use((conf) => {
26
- const token = this.apiToken;
27
- if (token) {
28
- conf.headers.set("x-access-token", token);
29
- }
30
- return conf;
31
- });
25
+ withAccessToken(this, this.apiToken);
32
26
  }
33
27
  static newUnauthenticated() {
34
28
  return new MittwaldAPIClient();
@@ -49,5 +43,9 @@ export class MittwaldAPIClient extends MittwaldApiV2Client {
49
43
  }
50
44
  throw ApiClientError.fromResponse("Login failed", authResult);
51
45
  }
46
+ withEventConsistencyHandling() {
47
+ withEventConsistencyHandling(this);
48
+ return this;
49
+ }
52
50
  }
53
51
  export default MittwaldAPIClient;
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.14.0';
1
+ export const MittwaldAPIClientVersion = '4.15.0';
@@ -48,6 +48,7 @@ declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
48
48
  "x-access-token"?: string | undefined;
49
49
  } | undefined;
50
50
  }) => import("@mittwald/react-use-promise").AsyncResource<{
51
+ appId: string;
51
52
  breakingNote?: import("./types.js").MittwaldAPIV2.Components.Schemas.AppBreakingNote | undefined;
52
53
  databases?: import("./types.js").MittwaldAPIV2.Components.Schemas.AppDatabaseDependency[] | undefined;
53
54
  docRoot: string;
@@ -111,6 +112,7 @@ declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
111
112
  "x-access-token"?: string | undefined;
112
113
  } | undefined;
113
114
  }) => import("@mittwald/react-use-promise").AsyncResource<{
115
+ expiryDate?: string | undefined;
114
116
  externalVersion: string;
115
117
  id: string;
116
118
  internalVersion: string;
@@ -222,7 +224,7 @@ declare const buildArticleApi: (baseClient: MittwaldAPIV2Client) => {
222
224
  attributes?: import("./types.js").MittwaldAPIV2.Components.Schemas.ArticleArticleAttributes[] | undefined;
223
225
  balanceAddonKey?: string | undefined;
224
226
  contractDurationInMonth: number;
225
- description: string;
227
+ description?: string | undefined;
226
228
  forcedInvoicingPeriodInMonth?: number | undefined;
227
229
  hasIndependentContractPeriod?: boolean | undefined;
228
230
  hideOnInvoice?: boolean | undefined;
@@ -327,6 +329,7 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
327
329
  description: string;
328
330
  freeTrialDays?: number | undefined;
329
331
  groupByProjectId?: string | undefined;
332
+ invoiceStop?: string | undefined;
330
333
  invoicingPeriod?: number | undefined;
331
334
  isActivated: boolean;
332
335
  isBaseItem: boolean;
@@ -336,7 +339,7 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
336
339
  nextPossibleDowngradeDate?: string | undefined;
337
340
  nextPossibleTerminationDate?: string | undefined;
338
341
  nextPossibleUpgradeDate?: string | undefined;
339
- orderDate: string;
342
+ orderDate?: string | undefined;
340
343
  orderId?: string | undefined;
341
344
  replacedByItem?: string | undefined;
342
345
  tariffChange?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTariffChange | undefined;
@@ -404,6 +407,7 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
404
407
  description: string;
405
408
  freeTrialDays?: number | undefined;
406
409
  groupByProjectId?: string | undefined;
410
+ invoiceStop?: string | undefined;
407
411
  invoicingPeriod?: number | undefined;
408
412
  isActivated: boolean;
409
413
  isBaseItem: boolean;
@@ -413,7 +417,7 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
413
417
  nextPossibleDowngradeDate?: string | undefined;
414
418
  nextPossibleTerminationDate?: string | undefined;
415
419
  nextPossibleUpgradeDate?: string | undefined;
416
- orderDate: string;
420
+ orderDate?: string | undefined;
417
421
  orderId?: string | undefined;
418
422
  replacedByItem?: string | undefined;
419
423
  tariffChange?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTariffChange | undefined;
@@ -500,6 +504,7 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
500
504
  } | undefined;
501
505
  }) => import("@mittwald/react-use-promise").AsyncResource<{
502
506
  additionalEmailRecipients?: string[] | undefined;
507
+ debitPaymentStopUntil?: string | undefined;
503
508
  id: string;
504
509
  invoicePeriod?: number | undefined;
505
510
  lastBankingInformation?: import("./types.js").MittwaldAPIV2.Components.Schemas.InvoiceBankingInformation | undefined;
@@ -537,6 +542,22 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
537
542
  page?: number | undefined;
538
543
  } | undefined;
539
544
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.InvoiceInvoice[]>;
545
+ /** Get list of Orders. */
546
+ orderListOrders: (conf?: {
547
+ headers?: {
548
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
549
+ "x-access-token"?: string | undefined;
550
+ } | undefined;
551
+ queryParameters?: {
552
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
553
+ limit?: number | undefined;
554
+ skip?: number | undefined;
555
+ page?: number | undefined;
556
+ includesStatus?: import("./types.js").MittwaldAPIV2.Components.Schemas.OrderOrderStatus[] | undefined;
557
+ excludesStatus?: import("./types.js").MittwaldAPIV2.Components.Schemas.OrderOrderStatus[] | undefined;
558
+ templateNames?: string[] | undefined;
559
+ } | undefined;
560
+ } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
540
561
  /** Get Order for Customer. */
541
562
  orderGetOrder: (conf: {
542
563
  orderId: string;
@@ -645,7 +666,7 @@ declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
645
666
  relations?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference[] | undefined;
646
667
  sharedWith?: import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationAggregateReference | undefined;
647
668
  shortId: string;
648
- status: "open" | "answered" | "closed";
669
+ status: "open" | "answered" | "closed" | "inProgress";
649
670
  title: string;
650
671
  visibility: "shared" | "private";
651
672
  }>;
@@ -970,6 +991,10 @@ declare const buildDatabaseApi: (baseClient: MittwaldAPIV2Client) => {
970
991
  isShared: boolean;
971
992
  name: string;
972
993
  projectId: string;
994
+ status: import("./types.js").MittwaldAPIV2.Components.Schemas.DatabaseDatabaseStatus;
995
+ statusSetAt: string;
996
+ storageUsageInBytes: number;
997
+ storageUsageInBytesSetAt: string;
973
998
  updatedAt: string;
974
999
  version: string;
975
1000
  }>;
@@ -1011,6 +1036,10 @@ declare const buildDatabaseApi: (baseClient: MittwaldAPIV2Client) => {
1011
1036
  name: string;
1012
1037
  port: number;
1013
1038
  projectId: string;
1039
+ status: import("./types.js").MittwaldAPIV2.Components.Schemas.DatabaseDatabaseStatus;
1040
+ statusSetAt: string;
1041
+ storageUsageInBytes: number;
1042
+ storageUsageInBytesSetAt: string;
1014
1043
  updatedAt: string;
1015
1044
  version: string;
1016
1045
  }>;
@@ -1117,8 +1146,7 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
1117
1146
  adminC?: import("./types.js").MittwaldAPIV2.Components.Schemas.DomainHandleReadable | undefined;
1118
1147
  ownerC: import("./types.js").MittwaldAPIV2.Components.Schemas.DomainHandleReadable;
1119
1148
  };
1120
- hasAuthCode: boolean;
1121
- nameservers: [string, string, ...string[]];
1149
+ nameservers: string[];
1122
1150
  processes?: import("./types.js").MittwaldAPIV2.Components.Schemas.DomainProcess[] | undefined;
1123
1151
  projectId: string;
1124
1152
  transferInAuthCode?: string | undefined;
@@ -1188,6 +1216,117 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
1188
1216
  tls: import("./types.js").MittwaldAPIV2.Components.Schemas.IngressTlsAcme | import("./types.js").MittwaldAPIV2.Components.Schemas.IngressTlsCertificate;
1189
1217
  }>;
1190
1218
  };
1219
+ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
1220
+ /** List ExtensionInstances. */
1221
+ extensionListExtensionInstances: (conf: {
1222
+ queryParameters: {
1223
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1224
+ context: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext;
1225
+ contextId: string;
1226
+ limit?: number | undefined;
1227
+ skip?: number | undefined;
1228
+ page?: number | undefined;
1229
+ };
1230
+ headers?: {
1231
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1232
+ "x-access-token"?: string | undefined;
1233
+ } | undefined;
1234
+ }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionInstance[]>;
1235
+ /** Get an ExtensionInstance. */
1236
+ extensionGetExtensionInstance: (conf: {
1237
+ extensionInstanceId: string;
1238
+ headers?: {
1239
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1240
+ "x-access-token"?: string | undefined;
1241
+ } | undefined;
1242
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
1243
+ aggregateReference: {
1244
+ aggregate: string;
1245
+ domain: string;
1246
+ id: string;
1247
+ };
1248
+ consentedScopes: string[];
1249
+ createdAt?: string | undefined;
1250
+ disabled: boolean;
1251
+ extensionId: string;
1252
+ id: string;
1253
+ }>;
1254
+ /** Get a Contributor. */
1255
+ extensionGetContributor: (conf: {
1256
+ contributorId: string;
1257
+ headers?: {
1258
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1259
+ "x-access-token"?: string | undefined;
1260
+ } | undefined;
1261
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
1262
+ customerId: string;
1263
+ email?: string | undefined;
1264
+ id: string;
1265
+ logoRefId?: string | undefined;
1266
+ name: string;
1267
+ phone?: string | undefined;
1268
+ state: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContributorState;
1269
+ url?: string | undefined;
1270
+ }>;
1271
+ /** Get an Extension. */
1272
+ extensionGetExtension: (conf: {
1273
+ extensionId: string;
1274
+ headers?: {
1275
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1276
+ "x-access-token"?: string | undefined;
1277
+ } | undefined;
1278
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
1279
+ context: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext;
1280
+ contributorId: string;
1281
+ description: string;
1282
+ frontendComponents?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExternalComponent[] | undefined;
1283
+ id: string;
1284
+ name: string;
1285
+ scopes: string[];
1286
+ state: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionState;
1287
+ support: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceSupportMeta;
1288
+ tags: string[];
1289
+ }>;
1290
+ /** Get the public key to verify the webhook signature. */
1291
+ extensionGetPublicKey: (conf: {
1292
+ serial: string;
1293
+ headers?: {
1294
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1295
+ "x-access-token"?: string | undefined;
1296
+ } | undefined;
1297
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
1298
+ algorithm: string;
1299
+ key: string;
1300
+ serial: string;
1301
+ }>;
1302
+ /** List Contributors. */
1303
+ extensionListContributors: (conf?: {
1304
+ headers?: {
1305
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1306
+ "x-access-token"?: string | undefined;
1307
+ } | undefined;
1308
+ queryParameters?: {
1309
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1310
+ limit?: number | undefined;
1311
+ skip?: number | undefined;
1312
+ page?: number | undefined;
1313
+ } | undefined;
1314
+ } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContributor[]>;
1315
+ /** List Extensions. */
1316
+ extensionListExtensions: (conf?: {
1317
+ headers?: {
1318
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1319
+ "x-access-token"?: string | undefined;
1320
+ } | undefined;
1321
+ queryParameters?: {
1322
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1323
+ context?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext | undefined;
1324
+ limit?: number | undefined;
1325
+ skip?: number | undefined;
1326
+ page?: number | undefined;
1327
+ } | undefined;
1328
+ } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtension[]>;
1329
+ };
1191
1330
  declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1192
1331
  /** Get a File's meta. */
1193
1332
  getFileMeta: (conf: {
@@ -1210,7 +1349,9 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1210
1349
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1211
1350
  } | undefined;
1212
1351
  }) => import("@mittwald/react-use-promise").AsyncResource<{
1352
+ extensions: string[];
1213
1353
  fileTypes: import("./types.js").MittwaldAPIV2.Components.Schemas.FileFileType[];
1354
+ maxSizeInBytes: number;
1214
1355
  maxSizeInKB: number;
1215
1356
  mimeTypes: string[];
1216
1357
  properties?: {
@@ -1233,7 +1374,9 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1233
1374
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1234
1375
  } | undefined;
1235
1376
  }) => import("@mittwald/react-use-promise").AsyncResource<{
1377
+ extensions: string[];
1236
1378
  fileTypes: import("./types.js").MittwaldAPIV2.Components.Schemas.FileFileType[];
1379
+ maxSizeInBytes: number;
1237
1380
  maxSizeInKB: number;
1238
1381
  mimeTypes: string[];
1239
1382
  properties?: {
@@ -1258,7 +1401,17 @@ declare const buildFileApi: (baseClient: MittwaldAPIV2Client) => {
1258
1401
  "Content-Disposition"?: "inline" | "attachment" | undefined;
1259
1402
  Token?: string | undefined;
1260
1403
  } | undefined;
1261
- fileName?: string | undefined;
1404
+ }) => import("@mittwald/react-use-promise").AsyncResource<string>;
1405
+ /** Get a File. */
1406
+ getFileWithName: (conf: {
1407
+ fileId: string;
1408
+ fileName: string;
1409
+ headers?: {
1410
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1411
+ Accept?: "application/octet-stream" | "text/plain;base64" | undefined;
1412
+ "Content-Disposition"?: "inline" | "attachment" | undefined;
1413
+ Token?: string | undefined;
1414
+ } | undefined;
1262
1415
  }) => import("@mittwald/react-use-promise").AsyncResource<string>;
1263
1416
  };
1264
1417
  declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
@@ -2053,6 +2206,8 @@ export declare class MittwaldAPIV2ClientReact {
2053
2206
  readonly database: ReturnType<typeof buildDatabaseApi>;
2054
2207
  /** The domain API allows you to manage your domains, DNS records and ingress resources. */
2055
2208
  readonly domain: ReturnType<typeof buildDomainApi>;
2209
+ /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
2210
+ readonly marketplace: ReturnType<typeof buildMarketplaceApi>;
2056
2211
  /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
2057
2212
  readonly file: ReturnType<typeof buildFileApi>;
2058
2213
  /** The mail API allows you to manage your mail accounts. */