@mittwald/api-client 0.0.0-development-8335166-20260625 → 0.0.0-experimental-dev-9ded0ba9-20260706

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * as Descriptors from "../generated/v2/descriptors.js";
2
+ export { MittwaldAPIClient } from "./default.js";
@@ -0,0 +1,38 @@
1
+ import { withAccessToken, withEventConsistencyHandling, } from "@mittwald/api-client-commons";
2
+ import { isBrowser } from "browser-or-node";
3
+ import MittwaldApiV3NextClient from "../generated/v3-next/client.js";
4
+ import { MittwaldAPIClientVersion } from "../version.js";
5
+ const defaultUserAgent = "mittwald-api-client/" + MittwaldAPIClientVersion;
6
+ export class MittwaldAPIClient extends MittwaldApiV3NextClient {
7
+ apiToken;
8
+ constructor(apiToken) {
9
+ super(MittwaldAPIClient.createAxiosDefaults());
10
+ this.apiToken = apiToken;
11
+ this.setupInterceptors();
12
+ }
13
+ static createAxiosDefaults() {
14
+ const headers = {};
15
+ // Setting user agent is not allowed in browser environment
16
+ if (!isBrowser) {
17
+ headers["User-Agent"] = defaultUserAgent;
18
+ }
19
+ return {
20
+ baseURL: "https://api.mittwald.de/",
21
+ headers: headers,
22
+ };
23
+ }
24
+ setupInterceptors() {
25
+ withAccessToken(this, this.apiToken);
26
+ }
27
+ static newUnauthenticated() {
28
+ return new MittwaldAPIClient();
29
+ }
30
+ static newWithToken(apiToken) {
31
+ return new MittwaldAPIClient(apiToken);
32
+ }
33
+ withEventConsistencyHandling() {
34
+ withEventConsistencyHandling(this);
35
+ return this;
36
+ }
37
+ }
38
+ export default MittwaldAPIClient;
@@ -0,0 +1,2 @@
1
+ export * as Descriptors from "../generated/v3-next/descriptors.js";
2
+ export { MittwaldAPIClient } from "./default.js";
@@ -0,0 +1,3 @@
1
+ import { MittwaldAPIV3NextClientReact as MittwaldAPIClientReact } from "../generated/v3-next/client-react.js";
2
+ export { MittwaldAPIV3NextClientReact as MittwaldAPIClientReact } from "../generated/v3-next/client-react.js";
3
+ export default MittwaldAPIClientReact;
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.397.0';
1
+ export const MittwaldAPIClientVersion = "0.0.0-development";
@@ -615,7 +615,6 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
615
615
  };
616
616
  headers?: {
617
617
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
618
- "Accept-Language"?: "de" | "en" | undefined;
619
618
  "x-access-token"?: string | undefined;
620
619
  } | undefined;
621
620
  }) => import("@mittwald/react-use-promise").AsyncResource<{
@@ -2279,14 +2278,6 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
2279
2278
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2280
2279
  } | undefined;
2281
2280
  } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.DomainTopLevel[]>;
2282
- /** List Domain-Migrations belonging to a pAccount. */
2283
- migrationListMigrationsByPaccount: (conf: {
2284
- headers: {
2285
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2286
- Authorization: string;
2287
- };
2288
- pAccount: string;
2289
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.DomainmigrationMigration[]>;
2290
2281
  /** List Domain-Migrations belonging to a Project. */
2291
2282
  migrationListMigrationsByProjectId: (conf: {
2292
2283
  projectId: string;
@@ -2845,7 +2836,6 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
2845
2836
  isBackupInProgress: boolean;
2846
2837
  isCatchAll: boolean;
2847
2838
  mailbox?: {
2848
- mailsystemSettings: import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailsystemSettings;
2849
2839
  name: string;
2850
2840
  passwordUpdatedAt: string;
2851
2841
  sendingEnabled: boolean;
@@ -2864,22 +2854,9 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
2864
2854
  };
2865
2855
  } | undefined;
2866
2856
  projectId: string;
2867
- rateLimitChangeRequest?: {
2868
- rateLimitId: string;
2869
- } | undefined;
2870
2857
  receivingDisabled: boolean;
2871
2858
  updatedAt: string;
2872
2859
  }>;
2873
- /** Get a Mail RateLimit. */
2874
- getMailRateLimit: (conf: {
2875
- mailRateLimitId: string;
2876
- headers?: {
2877
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2878
- } | undefined;
2879
- }) => import("@mittwald/react-use-promise").AsyncResource<{
2880
- id: string;
2881
- rateLimit: number;
2882
- }>;
2883
2860
  /** List backups belonging to a MailAddress. */
2884
2861
  listBackupsForMailAddress: (conf: {
2885
2862
  mailAddressId: string;
@@ -2909,12 +2886,6 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
2909
2886
  order?: ("asc" | "desc")[] | undefined;
2910
2887
  } | undefined;
2911
2888
  } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailMailAddress[]>;
2912
- /** List Mail RateLimits. */
2913
- listMailRateLimits: (conf?: {
2914
- headers?: {
2915
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2916
- } | undefined;
2917
- } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailsystemRateLimit[]>;
2918
2889
  /** List mail settings of a Project. */
2919
2890
  listProjectMailSettings: (conf: {
2920
2891
  projectId: string;
@@ -2927,36 +2898,6 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
2927
2898
  projectId: string;
2928
2899
  whitelist: string[];
2929
2900
  }>;
2930
- /** Get a Migration. */
2931
- migrationGetMigration: (conf: {
2932
- migrationId: string;
2933
- headers?: {
2934
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2935
- "x-access-token"?: string | undefined;
2936
- } | undefined;
2937
- }) => import("@mittwald/react-use-promise").AsyncResource<{
2938
- aborted: boolean;
2939
- addresses: import("./types.js").MittwaldAPIV2.Components.Schemas.MailmigrationMigrationMailAddress[];
2940
- finalizers: import("./types.js").MittwaldAPIV2.Components.Schemas.MailmigrationMigrationFinalizeJob;
2941
- finished: boolean;
2942
- id: string;
2943
- mailboxes: import("./types.js").MittwaldAPIV2.Components.Schemas.MailmigrationMigrationMailbox[];
2944
- sourceCoabProjectId: string;
2945
- targetNexusProjectId: string;
2946
- }>;
2947
- /** List Migrations belonging to a Project in customer center or mStudio. */
2948
- migrationListMigrations: (conf: {
2949
- headers: {
2950
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2951
- Authorization: string;
2952
- "x-access-token"?: string | undefined;
2953
- };
2954
- queryParameters?: {
2955
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2956
- pAccountName?: string | undefined;
2957
- projectId?: string | undefined;
2958
- } | undefined;
2959
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.MailmigrationMigration[]>;
2960
2901
  };
2961
2902
  declare const buildMiscApi: (baseClient: MittwaldAPIV2Client) => {
2962
2903
  /** List valid time zones. */