zorihq 0.9.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.
- package/CHANGELOG.md +9 -0
- package/README.md +18 -16
- package/package.json +1 -1
- package/resources/v1/analytics/analytics.d.mts +38 -0
- package/resources/v1/analytics/analytics.d.mts.map +1 -1
- package/resources/v1/analytics/analytics.d.ts +38 -0
- package/resources/v1/analytics/analytics.d.ts.map +1 -1
- package/resources/v1/analytics/analytics.js.map +1 -1
- package/resources/v1/analytics/analytics.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +1 -3
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +0 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/payment-providers.d.mts +38 -1
- package/resources/v1/payment-providers.d.mts.map +1 -1
- package/resources/v1/payment-providers.d.ts +38 -1
- package/resources/v1/payment-providers.d.ts.map +1 -1
- package/resources/v1/payment-providers.js +15 -0
- package/resources/v1/payment-providers.js.map +1 -1
- package/resources/v1/payment-providers.mjs +15 -0
- package/resources/v1/payment-providers.mjs.map +1 -1
- package/resources/v1/projects.d.mts +0 -3
- package/resources/v1/projects.d.mts.map +1 -1
- package/resources/v1/projects.d.ts +0 -3
- package/resources/v1/projects.d.ts.map +1 -1
- package/resources/v1/projects.js.map +1 -1
- package/resources/v1/projects.mjs.map +1 -1
- package/resources/v1/revenue/revenue.d.mts +0 -3
- package/resources/v1/revenue/revenue.d.mts.map +1 -1
- package/resources/v1/revenue/revenue.d.ts +0 -3
- package/resources/v1/revenue/revenue.d.ts.map +1 -1
- package/resources/v1/revenue/revenue.js.map +1 -1
- package/resources/v1/revenue/revenue.mjs.map +1 -1
- package/resources/v1/v1.d.mts +2 -6
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -6
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +0 -4
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +0 -4
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/analytics/analytics.ts +64 -0
- package/src/resources/v1/index.ts +3 -13
- package/src/resources/v1/payment-providers.ts +58 -0
- package/src/resources/v1/projects.ts +0 -5
- package/src/resources/v1/revenue/revenue.ts +0 -3
- package/src/resources/v1/v1.ts +6 -30
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/v1/auth.d.mts +0 -141
- package/resources/v1/auth.d.mts.map +0 -1
- package/resources/v1/auth.d.ts +0 -141
- package/resources/v1/auth.d.ts.map +0 -1
- package/resources/v1/auth.js +0 -95
- package/resources/v1/auth.js.map +0 -1
- package/resources/v1/auth.mjs +0 -91
- package/resources/v1/auth.mjs.map +0 -1
- package/src/resources/v1/auth.ts +0 -210
package/src/resources/v1/v1.ts
CHANGED
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as AuthAPI from './auth';
|
|
5
|
-
import {
|
|
6
|
-
Account,
|
|
7
|
-
Auth,
|
|
8
|
-
AuthConfirmPasswordRecoveryParams,
|
|
9
|
-
AuthLoginParams,
|
|
10
|
-
AuthLogoutParams,
|
|
11
|
-
AuthRefreshAccessTokenParams,
|
|
12
|
-
AuthRegisterAccountParams,
|
|
13
|
-
AuthRequestPasswordRecoveryParams,
|
|
14
|
-
AuthResponse,
|
|
15
|
-
MessageResponse,
|
|
16
|
-
Organization,
|
|
17
|
-
} from './auth';
|
|
18
4
|
import * as PaymentProvidersAPI from './payment-providers';
|
|
19
5
|
import {
|
|
20
6
|
CreatePaymentProviderRequest,
|
|
21
7
|
ListPaymentProvidersResponse,
|
|
22
8
|
PaymentProviderCreateParams,
|
|
23
9
|
PaymentProviderDeleteResponse,
|
|
10
|
+
PaymentProviderInstructionsParams,
|
|
24
11
|
PaymentProviderListParams,
|
|
25
12
|
PaymentProviderResponse,
|
|
26
13
|
PaymentProviderUpdateParams,
|
|
27
14
|
PaymentProviders,
|
|
15
|
+
ProviderField,
|
|
16
|
+
ProviderInstructionsResponse,
|
|
28
17
|
UpdatePaymentProviderRequest,
|
|
29
18
|
} from './payment-providers';
|
|
30
19
|
import * as ProjectsAPI from './projects';
|
|
@@ -95,7 +84,6 @@ export class V1 extends APIResource {
|
|
|
95
84
|
analytics: AnalyticsAPI.Analytics = new AnalyticsAPI.Analytics(this._client);
|
|
96
85
|
revenue: RevenueAPI.Revenue = new RevenueAPI.Revenue(this._client);
|
|
97
86
|
projects: ProjectsAPI.Projects = new ProjectsAPI.Projects(this._client);
|
|
98
|
-
auth: AuthAPI.Auth = new AuthAPI.Auth(this._client);
|
|
99
87
|
paymentProviders: PaymentProvidersAPI.PaymentProviders = new PaymentProvidersAPI.PaymentProviders(
|
|
100
88
|
this._client,
|
|
101
89
|
);
|
|
@@ -104,7 +92,6 @@ export class V1 extends APIResource {
|
|
|
104
92
|
V1.Analytics = Analytics;
|
|
105
93
|
V1.Revenue = Revenue;
|
|
106
94
|
V1.Projects = Projects;
|
|
107
|
-
V1.Auth = Auth;
|
|
108
95
|
V1.PaymentProviders = PaymentProviders;
|
|
109
96
|
|
|
110
97
|
export declare namespace V1 {
|
|
@@ -171,29 +158,18 @@ export declare namespace V1 {
|
|
|
171
158
|
type ProjectUpdateParams as ProjectUpdateParams,
|
|
172
159
|
};
|
|
173
160
|
|
|
174
|
-
export {
|
|
175
|
-
Auth as Auth,
|
|
176
|
-
type Account as Account,
|
|
177
|
-
type AuthResponse as AuthResponse,
|
|
178
|
-
type MessageResponse as MessageResponse,
|
|
179
|
-
type Organization as Organization,
|
|
180
|
-
type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams,
|
|
181
|
-
type AuthLoginParams as AuthLoginParams,
|
|
182
|
-
type AuthLogoutParams as AuthLogoutParams,
|
|
183
|
-
type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams,
|
|
184
|
-
type AuthRegisterAccountParams as AuthRegisterAccountParams,
|
|
185
|
-
type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams,
|
|
186
|
-
};
|
|
187
|
-
|
|
188
161
|
export {
|
|
189
162
|
PaymentProviders as PaymentProviders,
|
|
190
163
|
type CreatePaymentProviderRequest as CreatePaymentProviderRequest,
|
|
191
164
|
type ListPaymentProvidersResponse as ListPaymentProvidersResponse,
|
|
192
165
|
type PaymentProviderResponse as PaymentProviderResponse,
|
|
166
|
+
type ProviderField as ProviderField,
|
|
167
|
+
type ProviderInstructionsResponse as ProviderInstructionsResponse,
|
|
193
168
|
type UpdatePaymentProviderRequest as UpdatePaymentProviderRequest,
|
|
194
169
|
type PaymentProviderDeleteResponse as PaymentProviderDeleteResponse,
|
|
195
170
|
type PaymentProviderCreateParams as PaymentProviderCreateParams,
|
|
196
171
|
type PaymentProviderUpdateParams as PaymentProviderUpdateParams,
|
|
197
172
|
type PaymentProviderListParams as PaymentProviderListParams,
|
|
173
|
+
type PaymentProviderInstructionsParams as PaymentProviderInstructionsParams,
|
|
198
174
|
};
|
|
199
175
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.10.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.10.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/resources/v1/auth.d.mts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
export declare class Auth extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Reset password using recovery token received via email
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const messageResponse =
|
|
11
|
-
* await client.v1.auth.confirmPasswordRecovery({
|
|
12
|
-
* token: 'recovery-token-from-email',
|
|
13
|
-
* password: 'NewSecurePassword123!',
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
confirmPasswordRecovery(body: AuthConfirmPasswordRecoveryParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Authenticate a user with email and password
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const authResponse = await client.v1.auth.login({
|
|
24
|
-
* email: 'user@example.com',
|
|
25
|
-
* password: 'SecurePassword123!',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
login(body: AuthLoginParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Invalidate the current session and refresh token
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const messageResponse = await client.v1.auth.logout({
|
|
36
|
-
* refresh_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
logout(body: AuthLogoutParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Exchange a valid refresh token for new access and refresh tokens
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const authResponse =
|
|
47
|
-
* await client.v1.auth.refreshAccessToken({
|
|
48
|
-
* refresh_token:
|
|
49
|
-
* 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
|
50
|
-
* });
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
refreshAccessToken(body: AuthRefreshAccessTokenParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
54
|
-
/**
|
|
55
|
-
* Create a new user account with an organization
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const authResponse = await client.v1.auth.registerAccount({
|
|
60
|
-
* email: 'user@example.com',
|
|
61
|
-
* organization_name: 'Acme Corporation',
|
|
62
|
-
* password: 'SecurePassword123!',
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
registerAccount(body: AuthRegisterAccountParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* Send a password recovery email to the registered email address
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* const messageResponse =
|
|
73
|
-
* await client.v1.auth.requestPasswordRecovery({
|
|
74
|
-
* email: 'user@example.com',
|
|
75
|
-
* });
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
requestPasswordRecovery(body: AuthRequestPasswordRecoveryParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
79
|
-
}
|
|
80
|
-
export interface Account {
|
|
81
|
-
email: string;
|
|
82
|
-
id?: string;
|
|
83
|
-
created_at?: string;
|
|
84
|
-
email_verified?: boolean;
|
|
85
|
-
first_name?: string;
|
|
86
|
-
last_name?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Relations
|
|
89
|
-
*/
|
|
90
|
-
organizations?: Array<Organization>;
|
|
91
|
-
updated_at?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface AuthResponse {
|
|
94
|
-
access_token?: string;
|
|
95
|
-
account?: Account;
|
|
96
|
-
expires_in?: number;
|
|
97
|
-
organization?: Organization;
|
|
98
|
-
refresh_token?: string;
|
|
99
|
-
}
|
|
100
|
-
export interface MessageResponse {
|
|
101
|
-
message?: string;
|
|
102
|
-
}
|
|
103
|
-
export interface Organization {
|
|
104
|
-
name: string;
|
|
105
|
-
slug: string;
|
|
106
|
-
id?: string;
|
|
107
|
-
created_at?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Relations
|
|
110
|
-
*/
|
|
111
|
-
members?: Array<Account>;
|
|
112
|
-
updated_at?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface AuthConfirmPasswordRecoveryParams {
|
|
115
|
-
token: string;
|
|
116
|
-
password: string;
|
|
117
|
-
}
|
|
118
|
-
export interface AuthLoginParams {
|
|
119
|
-
email: string;
|
|
120
|
-
password: string;
|
|
121
|
-
}
|
|
122
|
-
export interface AuthLogoutParams {
|
|
123
|
-
refresh_token: string;
|
|
124
|
-
}
|
|
125
|
-
export interface AuthRefreshAccessTokenParams {
|
|
126
|
-
refresh_token: string;
|
|
127
|
-
}
|
|
128
|
-
export interface AuthRegisterAccountParams {
|
|
129
|
-
email: string;
|
|
130
|
-
organization_name: string;
|
|
131
|
-
password: string;
|
|
132
|
-
first_name?: string;
|
|
133
|
-
last_name?: string;
|
|
134
|
-
}
|
|
135
|
-
export interface AuthRequestPasswordRecoveryParams {
|
|
136
|
-
email: string;
|
|
137
|
-
}
|
|
138
|
-
export declare namespace Auth {
|
|
139
|
-
export { type Account as Account, type AuthResponse as AuthResponse, type MessageResponse as MessageResponse, type Organization as Organization, type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams, type AuthLoginParams as AuthLoginParams, type AuthLogoutParams as AuthLogoutParams, type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams, type AuthRegisterAccountParams as AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams, };
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=auth.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,uBAAuB,CACrB,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIhF;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIrF;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,IAAI,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1G;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIpG;;;;;;;;;;OAUG;IACH,uBAAuB,CACrB,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;CAG/B;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IAEd,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,cAAc,CAAC,EAAE,OAAO,CAA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M,CAAC;CACpB;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/auth.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
export declare class Auth extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Reset password using recovery token received via email
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const messageResponse =
|
|
11
|
-
* await client.v1.auth.confirmPasswordRecovery({
|
|
12
|
-
* token: 'recovery-token-from-email',
|
|
13
|
-
* password: 'NewSecurePassword123!',
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
confirmPasswordRecovery(body: AuthConfirmPasswordRecoveryParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Authenticate a user with email and password
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const authResponse = await client.v1.auth.login({
|
|
24
|
-
* email: 'user@example.com',
|
|
25
|
-
* password: 'SecurePassword123!',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
login(body: AuthLoginParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Invalidate the current session and refresh token
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const messageResponse = await client.v1.auth.logout({
|
|
36
|
-
* refresh_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
logout(body: AuthLogoutParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Exchange a valid refresh token for new access and refresh tokens
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const authResponse =
|
|
47
|
-
* await client.v1.auth.refreshAccessToken({
|
|
48
|
-
* refresh_token:
|
|
49
|
-
* 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
|
50
|
-
* });
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
refreshAccessToken(body: AuthRefreshAccessTokenParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
54
|
-
/**
|
|
55
|
-
* Create a new user account with an organization
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const authResponse = await client.v1.auth.registerAccount({
|
|
60
|
-
* email: 'user@example.com',
|
|
61
|
-
* organization_name: 'Acme Corporation',
|
|
62
|
-
* password: 'SecurePassword123!',
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
registerAccount(body: AuthRegisterAccountParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* Send a password recovery email to the registered email address
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* const messageResponse =
|
|
73
|
-
* await client.v1.auth.requestPasswordRecovery({
|
|
74
|
-
* email: 'user@example.com',
|
|
75
|
-
* });
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
requestPasswordRecovery(body: AuthRequestPasswordRecoveryParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
79
|
-
}
|
|
80
|
-
export interface Account {
|
|
81
|
-
email: string;
|
|
82
|
-
id?: string;
|
|
83
|
-
created_at?: string;
|
|
84
|
-
email_verified?: boolean;
|
|
85
|
-
first_name?: string;
|
|
86
|
-
last_name?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Relations
|
|
89
|
-
*/
|
|
90
|
-
organizations?: Array<Organization>;
|
|
91
|
-
updated_at?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface AuthResponse {
|
|
94
|
-
access_token?: string;
|
|
95
|
-
account?: Account;
|
|
96
|
-
expires_in?: number;
|
|
97
|
-
organization?: Organization;
|
|
98
|
-
refresh_token?: string;
|
|
99
|
-
}
|
|
100
|
-
export interface MessageResponse {
|
|
101
|
-
message?: string;
|
|
102
|
-
}
|
|
103
|
-
export interface Organization {
|
|
104
|
-
name: string;
|
|
105
|
-
slug: string;
|
|
106
|
-
id?: string;
|
|
107
|
-
created_at?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Relations
|
|
110
|
-
*/
|
|
111
|
-
members?: Array<Account>;
|
|
112
|
-
updated_at?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface AuthConfirmPasswordRecoveryParams {
|
|
115
|
-
token: string;
|
|
116
|
-
password: string;
|
|
117
|
-
}
|
|
118
|
-
export interface AuthLoginParams {
|
|
119
|
-
email: string;
|
|
120
|
-
password: string;
|
|
121
|
-
}
|
|
122
|
-
export interface AuthLogoutParams {
|
|
123
|
-
refresh_token: string;
|
|
124
|
-
}
|
|
125
|
-
export interface AuthRefreshAccessTokenParams {
|
|
126
|
-
refresh_token: string;
|
|
127
|
-
}
|
|
128
|
-
export interface AuthRegisterAccountParams {
|
|
129
|
-
email: string;
|
|
130
|
-
organization_name: string;
|
|
131
|
-
password: string;
|
|
132
|
-
first_name?: string;
|
|
133
|
-
last_name?: string;
|
|
134
|
-
}
|
|
135
|
-
export interface AuthRequestPasswordRecoveryParams {
|
|
136
|
-
email: string;
|
|
137
|
-
}
|
|
138
|
-
export declare namespace Auth {
|
|
139
|
-
export { type Account as Account, type AuthResponse as AuthResponse, type MessageResponse as MessageResponse, type Organization as Organization, type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams, type AuthLoginParams as AuthLoginParams, type AuthLogoutParams as AuthLogoutParams, type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams, type AuthRegisterAccountParams as AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams, };
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,uBAAuB,CACrB,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIhF;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIrF;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,IAAI,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;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CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IAEd,iBAAiB,EAAE,MAAM,CAAC;IAE1B,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/auth.js
DELETED
|
@@ -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
|
package/resources/v1/auth.js.map
DELETED
|
@@ -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"}
|
package/resources/v1/auth.mjs
DELETED
|
@@ -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,oB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