zorihq 0.8.0 → 0.10.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.
Files changed (133) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +18 -16
  3. package/package.json +1 -1
  4. package/resources/v1/analytics/analytics.d.mts +39 -124
  5. package/resources/v1/analytics/analytics.d.mts.map +1 -1
  6. package/resources/v1/analytics/analytics.d.ts +39 -124
  7. package/resources/v1/analytics/analytics.d.ts.map +1 -1
  8. package/resources/v1/analytics/analytics.js +0 -4
  9. package/resources/v1/analytics/analytics.js.map +1 -1
  10. package/resources/v1/analytics/analytics.mjs +0 -4
  11. package/resources/v1/analytics/analytics.mjs.map +1 -1
  12. package/resources/v1/analytics/index.d.mts +1 -2
  13. package/resources/v1/analytics/index.d.mts.map +1 -1
  14. package/resources/v1/analytics/index.d.ts +1 -2
  15. package/resources/v1/analytics/index.d.ts.map +1 -1
  16. package/resources/v1/analytics/index.js +1 -3
  17. package/resources/v1/analytics/index.js.map +1 -1
  18. package/resources/v1/analytics/index.mjs +0 -1
  19. package/resources/v1/analytics/index.mjs.map +1 -1
  20. package/resources/v1/index.d.mts +3 -3
  21. package/resources/v1/index.d.mts.map +1 -1
  22. package/resources/v1/index.d.ts +3 -3
  23. package/resources/v1/index.d.ts.map +1 -1
  24. package/resources/v1/index.js +3 -3
  25. package/resources/v1/index.js.map +1 -1
  26. package/resources/v1/index.mjs +1 -1
  27. package/resources/v1/index.mjs.map +1 -1
  28. package/resources/v1/payment-providers.d.mts +38 -1
  29. package/resources/v1/payment-providers.d.mts.map +1 -1
  30. package/resources/v1/payment-providers.d.ts +38 -1
  31. package/resources/v1/payment-providers.d.ts.map +1 -1
  32. package/resources/v1/payment-providers.js +15 -0
  33. package/resources/v1/payment-providers.js.map +1 -1
  34. package/resources/v1/payment-providers.mjs +15 -0
  35. package/resources/v1/payment-providers.mjs.map +1 -1
  36. package/resources/v1/projects.d.mts +0 -3
  37. package/resources/v1/projects.d.mts.map +1 -1
  38. package/resources/v1/projects.d.ts +0 -3
  39. package/resources/v1/projects.d.ts.map +1 -1
  40. package/resources/v1/projects.js.map +1 -1
  41. package/resources/v1/projects.mjs.map +1 -1
  42. package/resources/v1/{analytics/revenue.d.mts → revenue/attribution.d.mts} +21 -19
  43. package/resources/v1/revenue/attribution.d.mts.map +1 -0
  44. package/resources/v1/{analytics/revenue.d.ts → revenue/attribution.d.ts} +21 -19
  45. package/resources/v1/revenue/attribution.d.ts.map +1 -0
  46. package/resources/v1/revenue/attribution.js +41 -0
  47. package/resources/v1/revenue/attribution.js.map +1 -0
  48. package/resources/v1/revenue/attribution.mjs +37 -0
  49. package/resources/v1/revenue/attribution.mjs.map +1 -0
  50. package/resources/v1/revenue/conversion.d.mts +34 -0
  51. package/resources/v1/revenue/conversion.d.mts.map +1 -0
  52. package/resources/v1/revenue/conversion.d.ts +34 -0
  53. package/resources/v1/revenue/conversion.d.ts.map +1 -0
  54. package/resources/v1/revenue/conversion.js +25 -0
  55. package/resources/v1/revenue/conversion.js.map +1 -0
  56. package/resources/v1/revenue/conversion.mjs +21 -0
  57. package/resources/v1/revenue/conversion.mjs.map +1 -0
  58. package/resources/v1/revenue/customers.d.mts +61 -0
  59. package/resources/v1/revenue/customers.d.mts.map +1 -0
  60. package/resources/v1/revenue/customers.d.ts +61 -0
  61. package/resources/v1/revenue/customers.d.ts.map +1 -0
  62. package/resources/v1/revenue/customers.js +40 -0
  63. package/resources/v1/revenue/customers.js.map +1 -0
  64. package/resources/v1/revenue/customers.mjs +36 -0
  65. package/resources/v1/revenue/customers.mjs.map +1 -0
  66. package/resources/v1/revenue/index.d.mts +5 -0
  67. package/resources/v1/revenue/index.d.mts.map +1 -0
  68. package/resources/v1/revenue/index.d.ts +5 -0
  69. package/resources/v1/revenue/index.d.ts.map +1 -0
  70. package/resources/v1/revenue/index.js +13 -0
  71. package/resources/v1/revenue/index.js.map +1 -0
  72. package/resources/v1/revenue/index.mjs +6 -0
  73. package/resources/v1/revenue/index.mjs.map +1 -0
  74. package/resources/v1/revenue/revenue.d.mts +252 -0
  75. package/resources/v1/revenue/revenue.d.mts.map +1 -0
  76. package/resources/v1/revenue/revenue.d.ts +252 -0
  77. package/resources/v1/revenue/revenue.d.ts.map +1 -0
  78. package/resources/v1/revenue/revenue.js +53 -0
  79. package/resources/v1/revenue/revenue.js.map +1 -0
  80. package/resources/v1/revenue/revenue.mjs +48 -0
  81. package/resources/v1/revenue/revenue.mjs.map +1 -0
  82. package/resources/v1/revenue.d.mts +2 -0
  83. package/resources/v1/revenue.d.mts.map +1 -0
  84. package/resources/v1/revenue.d.ts +2 -0
  85. package/resources/v1/revenue.d.ts.map +1 -0
  86. package/resources/v1/revenue.js +6 -0
  87. package/resources/v1/revenue.js.map +1 -0
  88. package/resources/v1/revenue.mjs +3 -0
  89. package/resources/v1/revenue.mjs.map +1 -0
  90. package/resources/v1/v1.d.mts +8 -8
  91. package/resources/v1/v1.d.mts.map +1 -1
  92. package/resources/v1/v1.d.ts +8 -8
  93. package/resources/v1/v1.d.ts.map +1 -1
  94. package/resources/v1/v1.js +4 -4
  95. package/resources/v1/v1.js.map +1 -1
  96. package/resources/v1/v1.mjs +4 -4
  97. package/resources/v1/v1.mjs.map +1 -1
  98. package/src/resources/v1/analytics/analytics.ts +56 -175
  99. package/src/resources/v1/analytics/index.ts +0 -6
  100. package/src/resources/v1/index.ts +21 -18
  101. package/src/resources/v1/payment-providers.ts +58 -0
  102. package/src/resources/v1/projects.ts +0 -5
  103. package/src/resources/v1/{analytics/revenue.ts → revenue/attribution.ts} +29 -24
  104. package/src/resources/v1/revenue/conversion.ts +44 -0
  105. package/src/resources/v1/revenue/customers.ts +77 -0
  106. package/src/resources/v1/revenue/index.ts +23 -0
  107. package/src/resources/v1/revenue/revenue.ts +382 -0
  108. package/src/resources/v1/revenue.ts +3 -0
  109. package/src/resources/v1/v1.ts +46 -40
  110. package/src/version.ts +1 -1
  111. package/version.d.mts +1 -1
  112. package/version.d.mts.map +1 -1
  113. package/version.d.ts +1 -1
  114. package/version.d.ts.map +1 -1
  115. package/version.js +1 -1
  116. package/version.js.map +1 -1
  117. package/version.mjs +1 -1
  118. package/version.mjs.map +1 -1
  119. package/resources/v1/analytics/revenue.d.mts.map +0 -1
  120. package/resources/v1/analytics/revenue.d.ts.map +0 -1
  121. package/resources/v1/analytics/revenue.js +0 -39
  122. package/resources/v1/analytics/revenue.js.map +0 -1
  123. package/resources/v1/analytics/revenue.mjs +0 -35
  124. package/resources/v1/analytics/revenue.mjs.map +0 -1
  125. package/resources/v1/auth.d.mts +0 -141
  126. package/resources/v1/auth.d.mts.map +0 -1
  127. package/resources/v1/auth.d.ts +0 -141
  128. package/resources/v1/auth.d.ts.map +0 -1
  129. package/resources/v1/auth.js +0 -95
  130. package/resources/v1/auth.js.map +0 -1
  131. package/resources/v1/auth.mjs +0 -91
  132. package/resources/v1/auth.mjs.map +0 -1
  133. package/src/resources/v1/auth.ts +0 -210
@@ -1,95 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Auth = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- class Auth extends resource_1.APIResource {
7
- /**
8
- * Reset password using recovery token received via email
9
- *
10
- * @example
11
- * ```ts
12
- * const messageResponse =
13
- * await client.v1.auth.confirmPasswordRecovery({
14
- * token: 'recovery-token-from-email',
15
- * password: 'NewSecurePassword123!',
16
- * });
17
- * ```
18
- */
19
- confirmPasswordRecovery(body, options) {
20
- return this._client.post('/api/v1/auth/recover-confirm', { body, ...options });
21
- }
22
- /**
23
- * Authenticate a user with email and password
24
- *
25
- * @example
26
- * ```ts
27
- * const authResponse = await client.v1.auth.login({
28
- * email: 'user@example.com',
29
- * password: 'SecurePassword123!',
30
- * });
31
- * ```
32
- */
33
- login(body, options) {
34
- return this._client.post('/api/v1/auth/login', { body, ...options });
35
- }
36
- /**
37
- * Invalidate the current session and refresh token
38
- *
39
- * @example
40
- * ```ts
41
- * const messageResponse = await client.v1.auth.logout({
42
- * refresh_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
43
- * });
44
- * ```
45
- */
46
- logout(body, options) {
47
- return this._client.post('/api/v1/auth/logout', { body, ...options });
48
- }
49
- /**
50
- * Exchange a valid refresh token for new access and refresh tokens
51
- *
52
- * @example
53
- * ```ts
54
- * const authResponse =
55
- * await client.v1.auth.refreshAccessToken({
56
- * refresh_token:
57
- * 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
58
- * });
59
- * ```
60
- */
61
- refreshAccessToken(body, options) {
62
- return this._client.post('/api/v1/auth/refresh', { body, ...options });
63
- }
64
- /**
65
- * Create a new user account with an organization
66
- *
67
- * @example
68
- * ```ts
69
- * const authResponse = await client.v1.auth.registerAccount({
70
- * email: 'user@example.com',
71
- * organization_name: 'Acme Corporation',
72
- * password: 'SecurePassword123!',
73
- * });
74
- * ```
75
- */
76
- registerAccount(body, options) {
77
- return this._client.post('/api/v1/auth/register', { body, ...options });
78
- }
79
- /**
80
- * Send a password recovery email to the registered email address
81
- *
82
- * @example
83
- * ```ts
84
- * const messageResponse =
85
- * await client.v1.auth.requestPasswordRecovery({
86
- * email: 'user@example.com',
87
- * });
88
- * ```
89
- */
90
- requestPasswordRecovery(body, options) {
91
- return this._client.post('/api/v1/auth/recover', { body, ...options });
92
- }
93
- }
94
- exports.Auth = Auth;
95
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;OAWG;IACH,uBAAuB,CACrB,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAqB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,IAAkC,EAAE,OAAwB;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,IAA+B,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;OAUG;IACH,uBAAuB,CACrB,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAlGD,oBAkGC"}
@@ -1,91 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- export class Auth extends APIResource {
4
- /**
5
- * Reset password using recovery token received via email
6
- *
7
- * @example
8
- * ```ts
9
- * const messageResponse =
10
- * await client.v1.auth.confirmPasswordRecovery({
11
- * token: 'recovery-token-from-email',
12
- * password: 'NewSecurePassword123!',
13
- * });
14
- * ```
15
- */
16
- confirmPasswordRecovery(body, options) {
17
- return this._client.post('/api/v1/auth/recover-confirm', { body, ...options });
18
- }
19
- /**
20
- * Authenticate a user with email and password
21
- *
22
- * @example
23
- * ```ts
24
- * const authResponse = await client.v1.auth.login({
25
- * email: 'user@example.com',
26
- * password: 'SecurePassword123!',
27
- * });
28
- * ```
29
- */
30
- login(body, options) {
31
- return this._client.post('/api/v1/auth/login', { body, ...options });
32
- }
33
- /**
34
- * Invalidate the current session and refresh token
35
- *
36
- * @example
37
- * ```ts
38
- * const messageResponse = await client.v1.auth.logout({
39
- * refresh_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
40
- * });
41
- * ```
42
- */
43
- logout(body, options) {
44
- return this._client.post('/api/v1/auth/logout', { body, ...options });
45
- }
46
- /**
47
- * Exchange a valid refresh token for new access and refresh tokens
48
- *
49
- * @example
50
- * ```ts
51
- * const authResponse =
52
- * await client.v1.auth.refreshAccessToken({
53
- * refresh_token:
54
- * 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
55
- * });
56
- * ```
57
- */
58
- refreshAccessToken(body, options) {
59
- return this._client.post('/api/v1/auth/refresh', { body, ...options });
60
- }
61
- /**
62
- * Create a new user account with an organization
63
- *
64
- * @example
65
- * ```ts
66
- * const authResponse = await client.v1.auth.registerAccount({
67
- * email: 'user@example.com',
68
- * organization_name: 'Acme Corporation',
69
- * password: 'SecurePassword123!',
70
- * });
71
- * ```
72
- */
73
- registerAccount(body, options) {
74
- return this._client.post('/api/v1/auth/register', { body, ...options });
75
- }
76
- /**
77
- * Send a password recovery email to the registered email address
78
- *
79
- * @example
80
- * ```ts
81
- * const messageResponse =
82
- * await client.v1.auth.requestPasswordRecovery({
83
- * email: 'user@example.com',
84
- * });
85
- * ```
86
- */
87
- requestPasswordRecovery(body, options) {
88
- return this._client.post('/api/v1/auth/recover', { body, ...options });
89
- }
90
- }
91
- //# sourceMappingURL=auth.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,uBAAuB,CACrB,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAqB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,IAAkC,EAAE,OAAwB;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,IAA+B,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;OAUG;IACH,uBAAuB,CACrB,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}
@@ -1,210 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import { APIPromise } from '../../core/api-promise';
5
- import { RequestOptions } from '../../internal/request-options';
6
-
7
- export class Auth extends APIResource {
8
- /**
9
- * Reset password using recovery token received via email
10
- *
11
- * @example
12
- * ```ts
13
- * const messageResponse =
14
- * await client.v1.auth.confirmPasswordRecovery({
15
- * token: 'recovery-token-from-email',
16
- * password: 'NewSecurePassword123!',
17
- * });
18
- * ```
19
- */
20
- confirmPasswordRecovery(
21
- body: AuthConfirmPasswordRecoveryParams,
22
- options?: RequestOptions,
23
- ): APIPromise<MessageResponse> {
24
- return this._client.post('/api/v1/auth/recover-confirm', { body, ...options });
25
- }
26
-
27
- /**
28
- * Authenticate a user with email and password
29
- *
30
- * @example
31
- * ```ts
32
- * const authResponse = await client.v1.auth.login({
33
- * email: 'user@example.com',
34
- * password: 'SecurePassword123!',
35
- * });
36
- * ```
37
- */
38
- login(body: AuthLoginParams, options?: RequestOptions): APIPromise<AuthResponse> {
39
- return this._client.post('/api/v1/auth/login', { body, ...options });
40
- }
41
-
42
- /**
43
- * Invalidate the current session and refresh token
44
- *
45
- * @example
46
- * ```ts
47
- * const messageResponse = await client.v1.auth.logout({
48
- * refresh_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
49
- * });
50
- * ```
51
- */
52
- logout(body: AuthLogoutParams, options?: RequestOptions): APIPromise<MessageResponse> {
53
- return this._client.post('/api/v1/auth/logout', { body, ...options });
54
- }
55
-
56
- /**
57
- * Exchange a valid refresh token for new access and refresh tokens
58
- *
59
- * @example
60
- * ```ts
61
- * const authResponse =
62
- * await client.v1.auth.refreshAccessToken({
63
- * refresh_token:
64
- * 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
65
- * });
66
- * ```
67
- */
68
- refreshAccessToken(body: AuthRefreshAccessTokenParams, options?: RequestOptions): APIPromise<AuthResponse> {
69
- return this._client.post('/api/v1/auth/refresh', { body, ...options });
70
- }
71
-
72
- /**
73
- * Create a new user account with an organization
74
- *
75
- * @example
76
- * ```ts
77
- * const authResponse = await client.v1.auth.registerAccount({
78
- * email: 'user@example.com',
79
- * organization_name: 'Acme Corporation',
80
- * password: 'SecurePassword123!',
81
- * });
82
- * ```
83
- */
84
- registerAccount(body: AuthRegisterAccountParams, options?: RequestOptions): APIPromise<AuthResponse> {
85
- return this._client.post('/api/v1/auth/register', { body, ...options });
86
- }
87
-
88
- /**
89
- * Send a password recovery email to the registered email address
90
- *
91
- * @example
92
- * ```ts
93
- * const messageResponse =
94
- * await client.v1.auth.requestPasswordRecovery({
95
- * email: 'user@example.com',
96
- * });
97
- * ```
98
- */
99
- requestPasswordRecovery(
100
- body: AuthRequestPasswordRecoveryParams,
101
- options?: RequestOptions,
102
- ): APIPromise<MessageResponse> {
103
- return this._client.post('/api/v1/auth/recover', { body, ...options });
104
- }
105
- }
106
-
107
- export interface Account {
108
- email: string;
109
-
110
- id?: string;
111
-
112
- created_at?: string;
113
-
114
- email_verified?: boolean;
115
-
116
- first_name?: string;
117
-
118
- last_name?: string;
119
-
120
- /**
121
- * Relations
122
- */
123
- organizations?: Array<Organization>;
124
-
125
- updated_at?: string;
126
- }
127
-
128
- export interface AuthResponse {
129
- access_token?: string;
130
-
131
- account?: Account;
132
-
133
- expires_in?: number;
134
-
135
- organization?: Organization;
136
-
137
- refresh_token?: string;
138
- }
139
-
140
- export interface MessageResponse {
141
- message?: string;
142
- }
143
-
144
- export interface Organization {
145
- name: string;
146
-
147
- slug: string;
148
-
149
- id?: string;
150
-
151
- created_at?: string;
152
-
153
- /**
154
- * Relations
155
- */
156
- members?: Array<Account>;
157
-
158
- updated_at?: string;
159
- }
160
-
161
- export interface AuthConfirmPasswordRecoveryParams {
162
- token: string;
163
-
164
- password: string;
165
- }
166
-
167
- export interface AuthLoginParams {
168
- email: string;
169
-
170
- password: string;
171
- }
172
-
173
- export interface AuthLogoutParams {
174
- refresh_token: string;
175
- }
176
-
177
- export interface AuthRefreshAccessTokenParams {
178
- refresh_token: string;
179
- }
180
-
181
- export interface AuthRegisterAccountParams {
182
- email: string;
183
-
184
- organization_name: string;
185
-
186
- password: string;
187
-
188
- first_name?: string;
189
-
190
- last_name?: string;
191
- }
192
-
193
- export interface AuthRequestPasswordRecoveryParams {
194
- email: string;
195
- }
196
-
197
- export declare namespace Auth {
198
- export {
199
- type Account as Account,
200
- type AuthResponse as AuthResponse,
201
- type MessageResponse as MessageResponse,
202
- type Organization as Organization,
203
- type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams,
204
- type AuthLoginParams as AuthLoginParams,
205
- type AuthLogoutParams as AuthLogoutParams,
206
- type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams,
207
- type AuthRegisterAccountParams as AuthRegisterAccountParams,
208
- type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams,
209
- };
210
- }