@mittwald/api-client 4.360.0 → 4.361.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.
@@ -716,8 +716,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
716
716
  changeEmail: this.requestFunctionFactory(descriptors.userChangeEmail),
717
717
  /** Change your password. */
718
718
  changePassword: this.requestFunctionFactory(descriptors.userChangePassword),
719
- /** Check token for validity. */
720
- checkToken: this.requestFunctionFactory(descriptors.userCheckToken),
721
719
  /** Get your current multi factor auth status. */
722
720
  getMfaStatus: this.requestFunctionFactory(descriptors.userGetMfaStatus),
723
721
  /** Reset RecoveryCodes for MFA. */
@@ -804,6 +802,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
804
802
  verifyPhoneNumber: this.requestFunctionFactory(descriptors.userVerifyPhoneNumber),
805
803
  /** Verify your registration. */
806
804
  verifyRegistration: this.requestFunctionFactory(descriptors.userVerifyRegistration),
805
+ /** Check token for validity. */
806
+ checkToken: this.requestFunctionFactory(descriptors.userCheckToken),
807
807
  };
808
808
  /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
809
809
  file = {
@@ -2464,12 +2464,6 @@ export const userChangePassword = {
2464
2464
  method: "PUT",
2465
2465
  operationId: "user-change-password",
2466
2466
  };
2467
- /** Check token for validity. */
2468
- export const userCheckToken = {
2469
- path: "/v2/users/self/credentials/token",
2470
- method: "POST",
2471
- operationId: "user-check-token",
2472
- };
2473
2467
  /** Get your current multi factor auth status. */
2474
2468
  export const userGetMfaStatus = {
2475
2469
  path: "/v2/users/self/credentials/mfa",
@@ -2746,3 +2740,9 @@ export const verificationVerifyCompany = {
2746
2740
  method: "POST",
2747
2741
  operationId: "verification-verify-company",
2748
2742
  };
2743
+ /** Check token for validity. */
2744
+ export const userCheckToken = {
2745
+ path: "/v2/users/self/credentials/token",
2746
+ method: "POST",
2747
+ operationId: "user-check-token",
2748
+ };
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export { assertStatus, assertOneOfStatus, extractTotalCountHeader, } from "@mittwald/api-client-commons";
2
2
  export * as Commons from "@mittwald/api-client-commons";
3
+ export * as Descriptors from "./generated/v2/descriptors.js";
3
4
  export { MittwaldAPIClient as MittwaldAPIV2Client } from "./v2/default.js";
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.359.0';
1
+ export const MittwaldAPIClientVersion = '4.360.1';
@@ -22333,43 +22333,6 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
22333
22333
  }, 202, "application/json"> | import("@mittwald/api-client-commons").Response<{
22334
22334
  [x: string]: unknown;
22335
22335
  }, 429, "application/json">>>;
22336
- /** Check token for validity. */
22337
- checkToken: (request?: {
22338
- headers?: {
22339
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
22340
- "x-access-token"?: string | undefined;
22341
- } | undefined;
22342
- } | null | undefined, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
22343
- headers?: Partial<{
22344
- [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
22345
- }>;
22346
- } & {
22347
- headers: {
22348
- "x-access-token"?: string | undefined;
22349
- } & Partial<{
22350
- [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
22351
- }>;
22352
- }, import("@mittwald/api-client-commons").Response<{
22353
- id: string;
22354
- publicToken: string;
22355
- }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
22356
- [x: string]: unknown;
22357
- }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
22358
- headers?: Partial<{
22359
- [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
22360
- }>;
22361
- } & {
22362
- headers: {
22363
- "x-access-token"?: string | undefined;
22364
- } & Partial<{
22365
- [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
22366
- }>;
22367
- }, import("@mittwald/api-client-commons").Response<{
22368
- id: string;
22369
- publicToken: string;
22370
- }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
22371
- [x: string]: unknown;
22372
- }, 429, "application/json">>>;
22373
22336
  /** Get your current multi factor auth status. */
22374
22337
  getMfaStatus: (request?: {
22375
22338
  headers?: {
@@ -24626,6 +24589,43 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
24626
24589
  }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
24627
24590
  [x: string]: unknown;
24628
24591
  }, 429, "application/json">>>;
24592
+ /** Check token for validity. */
24593
+ checkToken: (request?: {
24594
+ headers?: {
24595
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
24596
+ "x-access-token"?: string | undefined;
24597
+ } | undefined;
24598
+ } | null | undefined, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
24599
+ headers?: Partial<{
24600
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
24601
+ }>;
24602
+ } & {
24603
+ headers: {
24604
+ "x-access-token"?: string | undefined;
24605
+ } & Partial<{
24606
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
24607
+ }>;
24608
+ }, import("@mittwald/api-client-commons").Response<{
24609
+ id: string;
24610
+ publicToken: string;
24611
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
24612
+ [x: string]: unknown;
24613
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
24614
+ headers?: Partial<{
24615
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
24616
+ }>;
24617
+ } & {
24618
+ headers: {
24619
+ "x-access-token"?: string | undefined;
24620
+ } & Partial<{
24621
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
24622
+ }>;
24623
+ }, import("@mittwald/api-client-commons").Response<{
24624
+ id: string;
24625
+ publicToken: string;
24626
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
24627
+ [x: string]: unknown;
24628
+ }, 429, "application/json">>>;
24629
24629
  };
24630
24630
  /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
24631
24631
  readonly file: {
@@ -825,8 +825,6 @@ export declare const userGetOwnEmail: OpenAPIOperation<RequestType<Simplify<null
825
825
  export declare const userChangeEmail: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsEmail.Put.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsEmail.Put.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsEmail.Put.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsEmail.Put.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsEmail.Put.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsEmail.Put.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsEmail.Put.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsEmail.Put.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
826
826
  /** Change your password. */
827
827
  export declare const userChangePassword: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsPassword.Put.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsPassword.Put.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsPassword.Put.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsPassword.Put.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsPassword.Put.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsPassword.Put.Responses.$202.Content.ApplicationJson>, 202, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsPassword.Put.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsPassword.Put.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsPassword.Put.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
828
- /** Check token for validity. */
829
- export declare const userCheckToken: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
830
828
  /** Get your current multi factor auth status. */
831
829
  export declare const userGetMfaStatus: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsMfa.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsMfa.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsMfa.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsMfa.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsMfa.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsMfa.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
832
830
  /** Reset RecoveryCodes for MFA. */
@@ -919,3 +917,5 @@ export declare const verificationDetectPhishingEmail: OpenAPIOperation<RequestTy
919
917
  export declare const verificationVerifyAddress: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
920
918
  /** Check if a company exists. */
921
919
  export declare const verificationVerifyCompany: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$412.Content.Empty>, 412, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
920
+ /** Check token for validity. */
921
+ export declare const userCheckToken: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersSelfCredentialsToken.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
@@ -1646,10 +1646,6 @@ export declare namespace MittwaldAPIV2 {
1646
1646
  type RequestData = InferredRequestData<typeof descriptors.userChangePassword>;
1647
1647
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.userChangePassword, TStatus>;
1648
1648
  }
1649
- namespace UserCheckToken {
1650
- type RequestData = InferredRequestData<typeof descriptors.userCheckToken>;
1651
- type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.userCheckToken, TStatus>;
1652
- }
1653
1649
  namespace UserGetMfaStatus {
1654
1650
  type RequestData = InferredRequestData<typeof descriptors.userGetMfaStatus>;
1655
1651
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.userGetMfaStatus, TStatus>;
@@ -1834,6 +1830,10 @@ export declare namespace MittwaldAPIV2 {
1834
1830
  type RequestData = InferredRequestData<typeof descriptors.verificationVerifyCompany>;
1835
1831
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.verificationVerifyCompany, TStatus>;
1836
1832
  }
1833
+ namespace UserCheckToken {
1834
+ type RequestData = InferredRequestData<typeof descriptors.userCheckToken>;
1835
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.userCheckToken, TStatus>;
1836
+ }
1837
1837
  }
1838
1838
  namespace Components {
1839
1839
  namespace Schemas {
@@ -27775,42 +27775,6 @@ export declare namespace MittwaldAPIV2 {
27775
27775
  }
27776
27776
  }
27777
27777
  }
27778
- namespace V2SignupTokenCheck { }
27779
- namespace V2UsersSelfCredentialsToken {
27780
- namespace Post {
27781
- namespace Parameters {
27782
- type Path = {};
27783
- interface RequestBody {
27784
- }
27785
- type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
27786
- type Query = {};
27787
- }
27788
- namespace Responses {
27789
- namespace $200 {
27790
- namespace Content {
27791
- interface ApplicationJson {
27792
- id: string;
27793
- publicToken: string;
27794
- }
27795
- }
27796
- }
27797
- namespace $429 {
27798
- namespace Content {
27799
- interface ApplicationJson {
27800
- [k: string]: unknown;
27801
- }
27802
- }
27803
- }
27804
- namespace Default {
27805
- namespace Content {
27806
- interface ApplicationJson {
27807
- [k: string]: unknown;
27808
- }
27809
- }
27810
- }
27811
- }
27812
- }
27813
- }
27814
27778
  namespace V2SignupMfaConfirm { }
27815
27779
  namespace V2UsersSelfCredentialsMfa {
27816
27780
  namespace Get {
@@ -29880,5 +29844,41 @@ export declare namespace MittwaldAPIV2 {
29880
29844
  }
29881
29845
  }
29882
29846
  }
29847
+ namespace V2SignupTokenCheck { }
29848
+ namespace V2UsersSelfCredentialsToken {
29849
+ namespace Post {
29850
+ namespace Parameters {
29851
+ type Path = {};
29852
+ interface RequestBody {
29853
+ }
29854
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
29855
+ type Query = {};
29856
+ }
29857
+ namespace Responses {
29858
+ namespace $200 {
29859
+ namespace Content {
29860
+ interface ApplicationJson {
29861
+ id: string;
29862
+ publicToken: string;
29863
+ }
29864
+ }
29865
+ }
29866
+ namespace $429 {
29867
+ namespace Content {
29868
+ interface ApplicationJson {
29869
+ [k: string]: unknown;
29870
+ }
29871
+ }
29872
+ }
29873
+ namespace Default {
29874
+ namespace Content {
29875
+ interface ApplicationJson {
29876
+ [k: string]: unknown;
29877
+ }
29878
+ }
29879
+ }
29880
+ }
29881
+ }
29882
+ }
29883
29883
  }
29884
29884
  }
@@ -1,4 +1,5 @@
1
1
  export { assertStatus, assertOneOfStatus, extractTotalCountHeader, } from "@mittwald/api-client-commons";
2
2
  export * as Commons from "@mittwald/api-client-commons";
3
+ export * as Descriptors from "./generated/v2/descriptors.js";
3
4
  export { MittwaldAPIClient as MittwaldAPIV2Client } from "./v2/default.js";
4
5
  export type { MittwaldAPIV2 } from "./generated/v2/types.js";
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.359.0';
1
+ export declare const MittwaldAPIClientVersion = '4.360.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.360.0",
3
+ "version": "4.361.0",
4
4
  "author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
5
5
  "type": "module",
6
6
  "description": "Auto-generated client for the mittwald API",
@@ -46,11 +46,11 @@
46
46
  "test:compile": "run tsc --noEmit"
47
47
  },
48
48
  "dependencies": {
49
- "@mittwald/api-client-commons": "^4.360.0",
49
+ "@mittwald/api-client-commons": "^4.361.0",
50
50
  "browser-or-node": "^3.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@mittwald/api-code-generator": "^4.360.0",
53
+ "@mittwald/api-code-generator": "^4.361.0",
54
54
  "@mittwald/react-use-promise": "^2.6.2",
55
55
  "@types/node": "^22.18.11",
56
56
  "@types/react": "^18.3.26",
@@ -80,5 +80,5 @@
80
80
  "optional": true
81
81
  }
82
82
  },
83
- "gitHead": "be365a8328d68fac35e37b204280cd7ce45ec4ed"
83
+ "gitHead": "084a4418f6676fea706d12992597782b15b83cac"
84
84
  }