@meowinc/meow-sdk 0.4.0 → 0.4.1

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.
@@ -1,10 +1,5 @@
1
+ import { GetTwoFactorResponse } from ".";
1
2
  import { AuthorizationProvider } from "../../..";
2
3
  import { MeowResult } from "../../../types";
3
- export type Response = {
4
- id: number;
5
- createdAt: string;
6
- } & {
7
- type: "email";
8
- mailbox: string;
9
- };
4
+ export type Response = GetTwoFactorResponse;
10
5
  export declare function request(auth: AuthorizationProvider): Promise<MeowResult<Response>>;
@@ -1,7 +1,11 @@
1
1
  export type GetTwoFactorResponse = {
2
+ items: TwoFactorItem[];
3
+ };
4
+ type TwoFactorItem = {
2
5
  id: number;
3
6
  createdAt: string;
4
7
  } & {
5
8
  type: "email";
6
9
  mailbox: string;
7
10
  };
11
+ export {};
@@ -9,6 +9,6 @@ export declare class AuthRequests {
9
9
  submitTwoFactorEmail(sessionId: string, code: string): Promise<import("../../types").MeowResult<void>>;
10
10
  setTwoFactorSession(sessionId: string, twoFactorId: number): Promise<import("../../types").MeowResult<void>>;
11
11
  submitTwoFactorSession(code: string, sessionId: string): Promise<import("../../types").MeowResult<import("./log-in").LogInResponse>>;
12
- getMyTwoFactor(): Promise<import("../../types").MeowResult<import("./2FA/get-my-two-factor").Response>>;
12
+ getMyTwoFactor(): Promise<import("../../types").MeowResult<import("./2FA").GetTwoFactorResponse>>;
13
13
  getTwoFactorByLoginPassword(login: string, password: string): Promise<import("../../types").MeowResult<import("./2FA").GetTwoFactorResponse>>;
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meowinc/meow-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Meow SDK",
5
5
  "keywords": [
6
6
  "sdk"