@auth-craft/api-contract 0.1.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/dist/auth.contract.d.ts +391 -0
- package/dist/auth.contract.d.ts.map +1 -0
- package/dist/auth.contract.js +138 -0
- package/dist/auth.contract.js.map +1 -0
- package/dist/core.d.ts +51 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +29 -0
- package/dist/core.js.map +1 -0
- package/dist/groups/auth.d.ts +3 -0
- package/dist/groups/auth.d.ts.map +1 -0
- package/dist/groups/auth.js +3 -0
- package/dist/groups/auth.js.map +1 -0
- package/dist/groups/core.d.ts +15 -0
- package/dist/groups/core.d.ts.map +1 -0
- package/dist/groups/core.js +13 -0
- package/dist/groups/core.js.map +1 -0
- package/dist/groups/mfa.d.ts +3 -0
- package/dist/groups/mfa.d.ts.map +1 -0
- package/dist/groups/mfa.js +3 -0
- package/dist/groups/mfa.js.map +1 -0
- package/dist/groups/oauth.d.ts +3 -0
- package/dist/groups/oauth.d.ts.map +1 -0
- package/dist/groups/oauth.js +3 -0
- package/dist/groups/oauth.js.map +1 -0
- package/dist/groups/password.d.ts +3 -0
- package/dist/groups/password.d.ts.map +1 -0
- package/dist/groups/password.js +3 -0
- package/dist/groups/password.js.map +1 -0
- package/dist/groups/session.d.ts +3 -0
- package/dist/groups/session.d.ts.map +1 -0
- package/dist/groups/session.js +3 -0
- package/dist/groups/session.js.map +1 -0
- package/dist/groups/tenants.d.ts +3 -0
- package/dist/groups/tenants.d.ts.map +1 -0
- package/dist/groups/tenants.js +3 -0
- package/dist/groups/tenants.js.map +1 -0
- package/dist/groups/users.d.ts +3 -0
- package/dist/groups/users.d.ts.map +1 -0
- package/dist/groups/users.js +3 -0
- package/dist/groups/users.js.map +1 -0
- package/dist/groups/verification.d.ts +3 -0
- package/dist/groups/verification.d.ts.map +1 -0
- package/dist/groups/verification.js +3 -0
- package/dist/groups/verification.js.map +1 -0
- package/dist/index.d.ts +701 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/index.d.ts +952 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/index.js +339 -0
- package/dist/internal/index.js.map +1 -0
- package/dist/internal/responses.d.ts +262 -0
- package/dist/internal/responses.d.ts.map +1 -0
- package/dist/internal/responses.js +145 -0
- package/dist/internal/responses.js.map +1 -0
- package/dist/login-result.d.ts +20 -0
- package/dist/login-result.d.ts.map +1 -0
- package/dist/login-result.js +13 -0
- package/dist/login-result.js.map +1 -0
- package/dist/mfa.contract.d.ts +155 -0
- package/dist/mfa.contract.d.ts.map +1 -0
- package/dist/mfa.contract.js +73 -0
- package/dist/mfa.contract.js.map +1 -0
- package/dist/oauth.contract.d.ts +163 -0
- package/dist/oauth.contract.d.ts.map +1 -0
- package/dist/oauth.contract.js +65 -0
- package/dist/oauth.contract.js.map +1 -0
- package/dist/password.contract.d.ts +83 -0
- package/dist/password.contract.d.ts.map +1 -0
- package/dist/password.contract.js +46 -0
- package/dist/password.contract.js.map +1 -0
- package/dist/responses/auth.d.ts +19 -0
- package/dist/responses/auth.d.ts.map +1 -0
- package/dist/responses/auth.js +19 -0
- package/dist/responses/auth.js.map +1 -0
- package/dist/responses/core.d.ts +86 -0
- package/dist/responses/core.d.ts.map +1 -0
- package/dist/responses/core.js +72 -0
- package/dist/responses/core.js.map +1 -0
- package/dist/responses/mfa.d.ts +31 -0
- package/dist/responses/mfa.d.ts.map +1 -0
- package/dist/responses/mfa.js +24 -0
- package/dist/responses/mfa.js.map +1 -0
- package/dist/responses/oauth.d.ts +18 -0
- package/dist/responses/oauth.d.ts.map +1 -0
- package/dist/responses/oauth.js +13 -0
- package/dist/responses/oauth.js.map +1 -0
- package/dist/responses/session.d.ts +32 -0
- package/dist/responses/session.d.ts.map +1 -0
- package/dist/responses/session.js +19 -0
- package/dist/responses/session.js.map +1 -0
- package/dist/responses/tenant.d.ts +92 -0
- package/dist/responses/tenant.d.ts.map +1 -0
- package/dist/responses/tenant.js +66 -0
- package/dist/responses/tenant.js.map +1 -0
- package/dist/responses/verification.d.ts +9 -0
- package/dist/responses/verification.d.ts.map +1 -0
- package/dist/responses/verification.js +9 -0
- package/dist/responses/verification.js.map +1 -0
- package/dist/responses.d.ts +17 -0
- package/dist/responses.d.ts.map +1 -0
- package/dist/responses.js +17 -0
- package/dist/responses.js.map +1 -0
- package/dist/schemas.d.ts +18 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +18 -0
- package/dist/schemas.js.map +1 -0
- package/dist/session.contract.d.ts +97 -0
- package/dist/session.contract.d.ts.map +1 -0
- package/dist/session.contract.js +44 -0
- package/dist/session.contract.js.map +1 -0
- package/dist/tenants.contract.d.ts +403 -0
- package/dist/tenants.contract.d.ts.map +1 -0
- package/dist/tenants.contract.js +146 -0
- package/dist/tenants.contract.js.map +1 -0
- package/dist/users.contract.d.ts +63 -0
- package/dist/users.contract.d.ts.map +1 -0
- package/dist/users.contract.js +25 -0
- package/dist/users.contract.js.map +1 -0
- package/dist/verification.contract.d.ts +67 -0
- package/dist/verification.contract.d.ts.map +1 -0
- package/dist/verification.contract.js +35 -0
- package/dist/verification.contract.js.map +1 -0
- package/package.json +75 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
export type { Endpoint, EndpointKind, HttpMethod, PathParams } from './core';
|
|
2
|
+
export { endpoint, fillPath } from './core';
|
|
3
|
+
export { shortString, identityString, secretString, displayString, textString } from './schemas';
|
|
4
|
+
export * as responses from './responses';
|
|
5
|
+
export type { AuthTokens, ChallengeRequired, MfaRequired, LoginResult } from './login-result';
|
|
6
|
+
export { isAuthTokens, isChallengeRequired, isMfaRequired } from './login-result';
|
|
7
|
+
export { authContract } from './auth.contract';
|
|
8
|
+
export { passwordContract } from './password.contract';
|
|
9
|
+
export { verificationContract } from './verification.contract';
|
|
10
|
+
export { sessionContract } from './session.contract';
|
|
11
|
+
export { mfaContract } from './mfa.contract';
|
|
12
|
+
export { oauthContract } from './oauth.contract';
|
|
13
|
+
export { usersContract } from './users.contract';
|
|
14
|
+
export { tenantsContract } from './tenants.contract';
|
|
15
|
+
/** All endpoint groups, for registry diffing and full-client construction. */
|
|
16
|
+
export declare const fullContract: {
|
|
17
|
+
readonly getTenantProfile: {
|
|
18
|
+
readonly method: "GET";
|
|
19
|
+
readonly path: "/tenants/:tenantId/profile";
|
|
20
|
+
readonly kind: "data";
|
|
21
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
22
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
23
|
+
readonly tenantId: import("valibot").StringSchema<undefined>;
|
|
24
|
+
readonly status: import("valibot").StringSchema<undefined>;
|
|
25
|
+
readonly roles: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
26
|
+
readonly authPerms: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly isOwner: import("valibot").BooleanSchema<undefined>;
|
|
28
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly givenName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly familyName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly avatarUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly jobTitle: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly contactEmail: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly contactPhone: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly bio: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
36
|
+
readonly locale: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly metadata: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
38
|
+
readonly createdAt: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
39
|
+
readonly memberUpdatedAt: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly profileUpdatedAt: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
41
|
+
}, undefined>;
|
|
42
|
+
};
|
|
43
|
+
readonly updateTenantProfile: {
|
|
44
|
+
readonly method: "PATCH";
|
|
45
|
+
readonly path: "/tenants/:tenantId/profile";
|
|
46
|
+
readonly kind: "data";
|
|
47
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
48
|
+
readonly contactEmail: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
49
|
+
readonly contactPhone: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
50
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
51
|
+
readonly givenName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
52
|
+
readonly familyName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly avatarUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
54
|
+
readonly locale: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly bio: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly jobTitle: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly metadata: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
58
|
+
}, undefined>;
|
|
59
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
60
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
61
|
+
readonly tenantId: import("valibot").StringSchema<undefined>;
|
|
62
|
+
readonly status: import("valibot").StringSchema<undefined>;
|
|
63
|
+
readonly roles: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
64
|
+
readonly authPerms: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
65
|
+
readonly isOwner: import("valibot").BooleanSchema<undefined>;
|
|
66
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
67
|
+
readonly givenName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
68
|
+
readonly familyName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
69
|
+
readonly avatarUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
70
|
+
readonly jobTitle: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
71
|
+
readonly contactEmail: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
72
|
+
readonly contactPhone: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
73
|
+
readonly bio: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
74
|
+
readonly locale: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
75
|
+
readonly metadata: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
76
|
+
readonly createdAt: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
77
|
+
readonly memberUpdatedAt: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
78
|
+
readonly profileUpdatedAt: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
79
|
+
}, undefined>;
|
|
80
|
+
};
|
|
81
|
+
readonly createInvite: {
|
|
82
|
+
readonly method: "POST";
|
|
83
|
+
readonly path: "/tenants/:tenantId/invites";
|
|
84
|
+
readonly kind: "data";
|
|
85
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
86
|
+
readonly inviteeEmail: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>]>, undefined>;
|
|
87
|
+
readonly inviteeUserId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
88
|
+
readonly inviteePhone: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
89
|
+
readonly role: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
90
|
+
readonly roles: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
91
|
+
readonly authPerms: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
92
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
93
|
+
readonly givenName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
94
|
+
readonly familyName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
95
|
+
readonly jobTitle: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
96
|
+
}, undefined>;
|
|
97
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
98
|
+
readonly inviteId: import("valibot").StringSchema<undefined>;
|
|
99
|
+
readonly inviteToken: import("valibot").StringSchema<undefined>;
|
|
100
|
+
readonly expiresAt: import("valibot").StringSchema<undefined>;
|
|
101
|
+
}, undefined>;
|
|
102
|
+
};
|
|
103
|
+
readonly listInvites: {
|
|
104
|
+
readonly method: "GET";
|
|
105
|
+
readonly path: "/tenants/:tenantId/invites";
|
|
106
|
+
readonly kind: "data";
|
|
107
|
+
readonly query: import("valibot").ObjectSchema<{
|
|
108
|
+
readonly status: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
109
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").UnknownSchema, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
110
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
111
|
+
}, undefined>;
|
|
112
|
+
readonly response: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
113
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
114
|
+
readonly tenantId: import("valibot").StringSchema<undefined>;
|
|
115
|
+
readonly inviteeUserId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly inviteeEmail: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
117
|
+
readonly inviteePhone: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly status: import("valibot").StringSchema<undefined>;
|
|
119
|
+
readonly roles: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
120
|
+
readonly authPerms: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
121
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
122
|
+
readonly givenName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
123
|
+
readonly familyName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
124
|
+
readonly jobTitle: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
125
|
+
readonly invitedBy: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
126
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
127
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
128
|
+
readonly expiresAt: import("valibot").StringSchema<undefined>;
|
|
129
|
+
}, undefined>, undefined>;
|
|
130
|
+
};
|
|
131
|
+
readonly acceptInvite: {
|
|
132
|
+
readonly method: "POST";
|
|
133
|
+
readonly path: "/tenants/:tenantId/invites/accept";
|
|
134
|
+
readonly kind: "data";
|
|
135
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
136
|
+
readonly inviteId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
137
|
+
readonly inviteToken: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
138
|
+
}, undefined>;
|
|
139
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
140
|
+
readonly tenantId: import("valibot").StringSchema<undefined>;
|
|
141
|
+
readonly roles: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
142
|
+
readonly authPerms: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
143
|
+
}, undefined>;
|
|
144
|
+
};
|
|
145
|
+
readonly declineInvite: {
|
|
146
|
+
readonly method: "POST";
|
|
147
|
+
readonly path: "/tenants/:tenantId/invites/decline";
|
|
148
|
+
readonly kind: "data";
|
|
149
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
150
|
+
readonly inviteId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
151
|
+
readonly inviteToken: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
152
|
+
}, undefined>;
|
|
153
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
154
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
155
|
+
}, undefined>;
|
|
156
|
+
};
|
|
157
|
+
readonly revokeInvite: {
|
|
158
|
+
readonly method: "POST";
|
|
159
|
+
readonly path: "/tenants/:tenantId/invites/revoke";
|
|
160
|
+
readonly kind: "data";
|
|
161
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
162
|
+
readonly inviteId: import("valibot").StringSchema<undefined>;
|
|
163
|
+
}, undefined>;
|
|
164
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
165
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
166
|
+
}, undefined>;
|
|
167
|
+
};
|
|
168
|
+
readonly listMembers: {
|
|
169
|
+
readonly method: "GET";
|
|
170
|
+
readonly path: "/tenants/:tenantId/members";
|
|
171
|
+
readonly kind: "data";
|
|
172
|
+
readonly query: import("valibot").ObjectSchema<{
|
|
173
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").UnknownSchema, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
174
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
175
|
+
}, undefined>;
|
|
176
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
177
|
+
readonly members: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
178
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
179
|
+
readonly tenantId: import("valibot").StringSchema<undefined>;
|
|
180
|
+
readonly status: import("valibot").StringSchema<undefined>;
|
|
181
|
+
readonly roles: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
182
|
+
readonly authPerms: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
183
|
+
readonly isOwner: import("valibot").BooleanSchema<undefined>;
|
|
184
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
185
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
186
|
+
}, undefined>, undefined>;
|
|
187
|
+
}, undefined>;
|
|
188
|
+
};
|
|
189
|
+
readonly updateMember: {
|
|
190
|
+
readonly method: "PATCH";
|
|
191
|
+
readonly path: "/tenants/:tenantId/members";
|
|
192
|
+
readonly kind: "data";
|
|
193
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
194
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
195
|
+
readonly role: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
196
|
+
readonly roles: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
197
|
+
readonly authPerms: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
198
|
+
}, undefined>;
|
|
199
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
200
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
201
|
+
}, undefined>;
|
|
202
|
+
};
|
|
203
|
+
readonly removeMember: {
|
|
204
|
+
readonly method: "DELETE";
|
|
205
|
+
readonly path: "/tenants/:tenantId/members";
|
|
206
|
+
readonly kind: "data";
|
|
207
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
208
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
209
|
+
}, undefined>;
|
|
210
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
211
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
212
|
+
}, undefined>;
|
|
213
|
+
};
|
|
214
|
+
readonly updateProfile: {
|
|
215
|
+
readonly method: "PATCH";
|
|
216
|
+
readonly path: "/users/profile";
|
|
217
|
+
readonly kind: "data";
|
|
218
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
219
|
+
readonly email: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>]>, undefined>;
|
|
220
|
+
readonly phone: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
221
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
222
|
+
readonly givenName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
223
|
+
readonly familyName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
224
|
+
readonly avatarUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
225
|
+
readonly locale: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
226
|
+
readonly metadata: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
227
|
+
}, undefined>;
|
|
228
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
229
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
230
|
+
readonly contactEmail: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
231
|
+
readonly contactPhone: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
232
|
+
readonly username: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
233
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
234
|
+
readonly givenName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
235
|
+
readonly familyName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
236
|
+
readonly avatarUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
237
|
+
readonly locale: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
238
|
+
readonly metadata: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
239
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
240
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
241
|
+
}, undefined>;
|
|
242
|
+
};
|
|
243
|
+
readonly oauthState: {
|
|
244
|
+
readonly method: "POST";
|
|
245
|
+
readonly path: "/oauth/state";
|
|
246
|
+
readonly kind: "data";
|
|
247
|
+
readonly public: true;
|
|
248
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
249
|
+
readonly state: import("valibot").StringSchema<undefined>;
|
|
250
|
+
}, undefined>;
|
|
251
|
+
};
|
|
252
|
+
readonly oauthCallback: {
|
|
253
|
+
readonly method: "POST";
|
|
254
|
+
readonly path: "/oauth/callback";
|
|
255
|
+
readonly kind: "login";
|
|
256
|
+
readonly public: true;
|
|
257
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
258
|
+
readonly provider: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 100, undefined>]>;
|
|
259
|
+
readonly code: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 8192, undefined>]>, undefined>;
|
|
260
|
+
readonly credential: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 8192, undefined>]>, undefined>;
|
|
261
|
+
readonly state: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 1024, undefined>]>, undefined>;
|
|
262
|
+
readonly tenantId: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 100, undefined>]>, undefined>;
|
|
263
|
+
}, undefined>;
|
|
264
|
+
readonly response: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
265
|
+
readonly requiresChallenge: import("valibot").LiteralSchema<true, undefined>;
|
|
266
|
+
readonly challenge: import("valibot").ObjectSchema<{
|
|
267
|
+
readonly type: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
268
|
+
readonly phase: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
269
|
+
readonly expiresAt: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>;
|
|
270
|
+
readonly data: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>;
|
|
271
|
+
}, undefined>;
|
|
272
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
273
|
+
readonly requiresMfa: import("valibot").LiteralSchema<true, undefined>;
|
|
274
|
+
readonly mfa: import("valibot").ObjectSchema<{
|
|
275
|
+
readonly phase: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
276
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
277
|
+
readonly methods: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
278
|
+
readonly method: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
279
|
+
readonly expiresAt: import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>;
|
|
280
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
281
|
+
}, undefined>;
|
|
282
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
283
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
284
|
+
readonly refreshToken: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
285
|
+
readonly expiresAt: import("valibot").NumberSchema<undefined>;
|
|
286
|
+
}, undefined>], undefined>;
|
|
287
|
+
};
|
|
288
|
+
readonly linkProvider: {
|
|
289
|
+
readonly method: "POST";
|
|
290
|
+
readonly path: "/oauth/link";
|
|
291
|
+
readonly kind: "data";
|
|
292
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
293
|
+
readonly provider: import("valibot").StringSchema<undefined>;
|
|
294
|
+
readonly code: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
295
|
+
}, undefined>;
|
|
296
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
297
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
298
|
+
}, undefined>;
|
|
299
|
+
};
|
|
300
|
+
readonly unlinkProvider: {
|
|
301
|
+
readonly method: "POST";
|
|
302
|
+
readonly path: "/oauth/unlink";
|
|
303
|
+
readonly kind: "data";
|
|
304
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
305
|
+
readonly provider: import("valibot").StringSchema<undefined>;
|
|
306
|
+
}, undefined>;
|
|
307
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
308
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
309
|
+
}, undefined>;
|
|
310
|
+
};
|
|
311
|
+
readonly getProviders: {
|
|
312
|
+
readonly method: "GET";
|
|
313
|
+
readonly path: "/oauth/providers";
|
|
314
|
+
readonly kind: "data";
|
|
315
|
+
readonly response: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
316
|
+
readonly provider: import("valibot").StringSchema<undefined>;
|
|
317
|
+
readonly providerId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
318
|
+
readonly email: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
319
|
+
readonly linkedAt: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
320
|
+
}, undefined>, undefined>;
|
|
321
|
+
};
|
|
322
|
+
readonly setupAuthenticator: {
|
|
323
|
+
readonly method: "POST";
|
|
324
|
+
readonly path: "/mfa/authenticators/setup";
|
|
325
|
+
readonly kind: "data";
|
|
326
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
327
|
+
readonly method: import("valibot").StringSchema<undefined>;
|
|
328
|
+
readonly data: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
329
|
+
}, undefined>;
|
|
330
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
331
|
+
readonly method: import("valibot").StringSchema<undefined>;
|
|
332
|
+
readonly data: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>;
|
|
333
|
+
}, undefined>;
|
|
334
|
+
};
|
|
335
|
+
readonly verifyAuthenticator: {
|
|
336
|
+
readonly method: "POST";
|
|
337
|
+
readonly path: "/mfa/authenticators/verify";
|
|
338
|
+
readonly kind: "data";
|
|
339
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
340
|
+
readonly method: import("valibot").StringSchema<undefined>;
|
|
341
|
+
readonly data: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
342
|
+
readonly authenticatorId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
343
|
+
}, undefined>;
|
|
344
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
345
|
+
readonly method: import("valibot").StringSchema<undefined>;
|
|
346
|
+
readonly verified: import("valibot").BooleanSchema<undefined>;
|
|
347
|
+
readonly data: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>;
|
|
348
|
+
}, undefined>;
|
|
349
|
+
};
|
|
350
|
+
readonly listAuthenticators: {
|
|
351
|
+
readonly method: "GET";
|
|
352
|
+
readonly path: "/mfa/authenticators";
|
|
353
|
+
readonly kind: "data";
|
|
354
|
+
readonly query: import("valibot").ObjectSchema<{
|
|
355
|
+
readonly method: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
356
|
+
readonly verifiedOnly: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
357
|
+
}, undefined>;
|
|
358
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
359
|
+
readonly authenticators: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
360
|
+
readonly method: import("valibot").StringSchema<undefined>;
|
|
361
|
+
readonly verifiedAt: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
362
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
363
|
+
readonly id: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
364
|
+
readonly label: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
365
|
+
readonly lastUsedAt: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
366
|
+
}, undefined>, undefined>;
|
|
367
|
+
readonly total: import("valibot").NumberSchema<undefined>;
|
|
368
|
+
}, undefined>;
|
|
369
|
+
};
|
|
370
|
+
readonly removeAuthenticator: {
|
|
371
|
+
readonly method: "DELETE";
|
|
372
|
+
readonly path: "/mfa/authenticators";
|
|
373
|
+
readonly kind: "data";
|
|
374
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
375
|
+
readonly method: import("valibot").StringSchema<undefined>;
|
|
376
|
+
readonly authenticatorId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
377
|
+
readonly password: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
378
|
+
}, undefined>;
|
|
379
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
380
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
381
|
+
}, undefined>;
|
|
382
|
+
};
|
|
383
|
+
readonly updateMfaSettings: {
|
|
384
|
+
readonly method: "PATCH";
|
|
385
|
+
readonly path: "/mfa/settings";
|
|
386
|
+
readonly kind: "data";
|
|
387
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
388
|
+
readonly mfaRequired: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
389
|
+
readonly mfaMethods: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
390
|
+
readonly password: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
391
|
+
}, undefined>;
|
|
392
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
393
|
+
readonly mfaRequired: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
394
|
+
readonly mfaMethods: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
395
|
+
}, undefined>;
|
|
396
|
+
};
|
|
397
|
+
readonly listSessions: {
|
|
398
|
+
readonly method: "GET";
|
|
399
|
+
readonly path: "/sessions";
|
|
400
|
+
readonly kind: "data";
|
|
401
|
+
readonly query: import("valibot").ObjectSchema<{
|
|
402
|
+
readonly includeRevoked: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["true", "false"], undefined>, undefined>;
|
|
403
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").UnknownSchema, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
404
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
405
|
+
}, undefined>;
|
|
406
|
+
readonly response: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
407
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
408
|
+
readonly tokenId: import("valibot").StringSchema<undefined>;
|
|
409
|
+
readonly tenantId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
410
|
+
readonly deviceLabel: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
411
|
+
readonly country: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
412
|
+
readonly city: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
413
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
414
|
+
readonly expiresAt: import("valibot").StringSchema<undefined>;
|
|
415
|
+
readonly lastUsedAt: import("valibot").StringSchema<undefined>;
|
|
416
|
+
readonly revokedAt: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
417
|
+
readonly metadata: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
418
|
+
readonly isCurrent: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
419
|
+
}, undefined>, undefined>;
|
|
420
|
+
};
|
|
421
|
+
readonly deleteSession: {
|
|
422
|
+
readonly method: "DELETE";
|
|
423
|
+
readonly path: "/sessions";
|
|
424
|
+
readonly kind: "data";
|
|
425
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
426
|
+
readonly sessionId: import("valibot").StringSchema<undefined>;
|
|
427
|
+
}, undefined>;
|
|
428
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
429
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
430
|
+
}, undefined>;
|
|
431
|
+
};
|
|
432
|
+
readonly revokeToken: {
|
|
433
|
+
readonly method: "POST";
|
|
434
|
+
readonly path: "/sessions/revoke";
|
|
435
|
+
readonly kind: "data";
|
|
436
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
437
|
+
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
438
|
+
}, undefined>;
|
|
439
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
440
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
441
|
+
}, undefined>;
|
|
442
|
+
};
|
|
443
|
+
readonly verifyCode: {
|
|
444
|
+
readonly method: "POST";
|
|
445
|
+
readonly path: "/verification/verify";
|
|
446
|
+
readonly kind: "data";
|
|
447
|
+
readonly public: true;
|
|
448
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
449
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
450
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
451
|
+
}, undefined>;
|
|
452
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
453
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
454
|
+
readonly identityType: import("valibot").StringSchema<undefined>;
|
|
455
|
+
readonly identityValue: import("valibot").StringSchema<undefined>;
|
|
456
|
+
readonly verifiedAt: import("valibot").StringSchema<undefined>;
|
|
457
|
+
}, undefined>;
|
|
458
|
+
};
|
|
459
|
+
readonly resendVerification: {
|
|
460
|
+
readonly method: "POST";
|
|
461
|
+
readonly path: "/verification/resend";
|
|
462
|
+
readonly kind: "data";
|
|
463
|
+
readonly public: true;
|
|
464
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
465
|
+
readonly channel: import("valibot").PicklistSchema<["sms", "email"], undefined>;
|
|
466
|
+
readonly identityValue: import("valibot").StringSchema<undefined>;
|
|
467
|
+
readonly previousChallengeId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
468
|
+
}, undefined>;
|
|
469
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
470
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
471
|
+
readonly expiresAt: import("valibot").StringSchema<undefined>;
|
|
472
|
+
}, undefined>;
|
|
473
|
+
};
|
|
474
|
+
readonly changePassword: {
|
|
475
|
+
readonly method: "PATCH";
|
|
476
|
+
readonly path: "/password/change";
|
|
477
|
+
readonly kind: "data";
|
|
478
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
479
|
+
readonly currentPassword: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4096, undefined>]>;
|
|
480
|
+
readonly newPassword: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4096, undefined>]>;
|
|
481
|
+
}, undefined>;
|
|
482
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
483
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
484
|
+
}, undefined>;
|
|
485
|
+
};
|
|
486
|
+
readonly forgotPassword: {
|
|
487
|
+
readonly method: "POST";
|
|
488
|
+
readonly path: "/password/forgot";
|
|
489
|
+
readonly kind: "data";
|
|
490
|
+
readonly public: true;
|
|
491
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
492
|
+
readonly email: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 320, undefined>, import("valibot").EmailAction<string, undefined>]>;
|
|
493
|
+
}, undefined>;
|
|
494
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
495
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
496
|
+
readonly expiresAt: import("valibot").StringSchema<undefined>;
|
|
497
|
+
}, undefined>;
|
|
498
|
+
};
|
|
499
|
+
readonly resetPassword: {
|
|
500
|
+
readonly method: "POST";
|
|
501
|
+
readonly path: "/password/reset";
|
|
502
|
+
readonly kind: "data";
|
|
503
|
+
readonly public: true;
|
|
504
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
505
|
+
readonly challengeId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
506
|
+
readonly code: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
507
|
+
readonly newPassword: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4096, undefined>]>;
|
|
508
|
+
}, undefined>;
|
|
509
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
510
|
+
readonly message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
511
|
+
}, undefined>;
|
|
512
|
+
};
|
|
513
|
+
readonly authenticate: {
|
|
514
|
+
readonly method: "POST";
|
|
515
|
+
readonly path: "/auth/authenticate";
|
|
516
|
+
readonly kind: "login";
|
|
517
|
+
readonly public: true;
|
|
518
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
519
|
+
readonly identityType: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
520
|
+
readonly identityValue: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 320, undefined>]>;
|
|
521
|
+
readonly credentialType: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
522
|
+
readonly credentialValue: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4096, undefined>]>, undefined>;
|
|
523
|
+
readonly metadata: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
524
|
+
readonly country: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
525
|
+
readonly city: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
526
|
+
}, undefined>;
|
|
527
|
+
readonly response: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
528
|
+
readonly requiresChallenge: import("valibot").LiteralSchema<true, undefined>;
|
|
529
|
+
readonly challenge: import("valibot").ObjectSchema<{
|
|
530
|
+
readonly type: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
531
|
+
readonly phase: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
532
|
+
readonly expiresAt: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>;
|
|
533
|
+
readonly data: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>;
|
|
534
|
+
}, undefined>;
|
|
535
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
536
|
+
readonly requiresMfa: import("valibot").LiteralSchema<true, undefined>;
|
|
537
|
+
readonly mfa: import("valibot").ObjectSchema<{
|
|
538
|
+
readonly phase: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
539
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
540
|
+
readonly methods: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
541
|
+
readonly method: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
542
|
+
readonly expiresAt: import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>;
|
|
543
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
544
|
+
}, undefined>;
|
|
545
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
546
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
547
|
+
readonly refreshToken: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
548
|
+
readonly expiresAt: import("valibot").NumberSchema<undefined>;
|
|
549
|
+
}, undefined>], undefined>;
|
|
550
|
+
};
|
|
551
|
+
readonly register: {
|
|
552
|
+
readonly method: "POST";
|
|
553
|
+
readonly path: "/auth/register";
|
|
554
|
+
readonly kind: "data";
|
|
555
|
+
readonly public: true;
|
|
556
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
557
|
+
readonly identityType: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
558
|
+
readonly identityValue: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 320, undefined>]>;
|
|
559
|
+
readonly credentialType: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
560
|
+
readonly credentialValue: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4096, undefined>]>;
|
|
561
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
562
|
+
readonly givenName: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
563
|
+
readonly familyName: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
564
|
+
readonly avatarUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
565
|
+
readonly locale: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
566
|
+
readonly metadata: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
567
|
+
}, undefined>;
|
|
568
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
569
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
570
|
+
readonly verification: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
571
|
+
readonly channel: import("valibot").StringSchema<undefined>;
|
|
572
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
573
|
+
readonly expiresAt: import("valibot").StringSchema<undefined>;
|
|
574
|
+
readonly identityType: import("valibot").StringSchema<undefined>;
|
|
575
|
+
readonly identityValue: import("valibot").StringSchema<undefined>;
|
|
576
|
+
}, undefined>, undefined>;
|
|
577
|
+
}, undefined>;
|
|
578
|
+
};
|
|
579
|
+
readonly completeChallenge: {
|
|
580
|
+
readonly method: "POST";
|
|
581
|
+
readonly path: "/auth/complete-challenge";
|
|
582
|
+
readonly kind: "login";
|
|
583
|
+
readonly public: true;
|
|
584
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
585
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
586
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
587
|
+
}, undefined>;
|
|
588
|
+
readonly response: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
589
|
+
readonly requiresChallenge: import("valibot").LiteralSchema<true, undefined>;
|
|
590
|
+
readonly challenge: import("valibot").ObjectSchema<{
|
|
591
|
+
readonly type: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
592
|
+
readonly phase: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
593
|
+
readonly expiresAt: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>;
|
|
594
|
+
readonly data: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>;
|
|
595
|
+
}, undefined>;
|
|
596
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
597
|
+
readonly requiresMfa: import("valibot").LiteralSchema<true, undefined>;
|
|
598
|
+
readonly mfa: import("valibot").ObjectSchema<{
|
|
599
|
+
readonly phase: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
600
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
601
|
+
readonly methods: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
602
|
+
readonly method: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
603
|
+
readonly expiresAt: import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>;
|
|
604
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
605
|
+
}, undefined>;
|
|
606
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
607
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
608
|
+
readonly refreshToken: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
609
|
+
readonly expiresAt: import("valibot").NumberSchema<undefined>;
|
|
610
|
+
}, undefined>], undefined>;
|
|
611
|
+
};
|
|
612
|
+
readonly completeMfaChallenge: {
|
|
613
|
+
readonly method: "POST";
|
|
614
|
+
readonly path: "/auth/complete-mfa-challenge";
|
|
615
|
+
readonly kind: "login";
|
|
616
|
+
readonly public: true;
|
|
617
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
618
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
619
|
+
readonly method: import("valibot").StringSchema<undefined>;
|
|
620
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
621
|
+
}, undefined>;
|
|
622
|
+
readonly response: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
623
|
+
readonly requiresChallenge: import("valibot").LiteralSchema<true, undefined>;
|
|
624
|
+
readonly challenge: import("valibot").ObjectSchema<{
|
|
625
|
+
readonly type: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
626
|
+
readonly phase: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
627
|
+
readonly expiresAt: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>;
|
|
628
|
+
readonly data: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>;
|
|
629
|
+
}, undefined>;
|
|
630
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
631
|
+
readonly requiresMfa: import("valibot").LiteralSchema<true, undefined>;
|
|
632
|
+
readonly mfa: import("valibot").ObjectSchema<{
|
|
633
|
+
readonly phase: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
634
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
635
|
+
readonly methods: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
636
|
+
readonly method: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
637
|
+
readonly expiresAt: import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>;
|
|
638
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
639
|
+
}, undefined>;
|
|
640
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
641
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
642
|
+
readonly refreshToken: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
643
|
+
readonly expiresAt: import("valibot").NumberSchema<undefined>;
|
|
644
|
+
}, undefined>], undefined>;
|
|
645
|
+
};
|
|
646
|
+
readonly issueMfaChallenge: {
|
|
647
|
+
readonly method: "POST";
|
|
648
|
+
readonly path: "/auth/issue-mfa-challenge";
|
|
649
|
+
readonly kind: "data";
|
|
650
|
+
readonly public: true;
|
|
651
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
652
|
+
readonly challengeId: import("valibot").StringSchema<undefined>;
|
|
653
|
+
readonly method: import("valibot").StringSchema<undefined>;
|
|
654
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
655
|
+
}, undefined>;
|
|
656
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
657
|
+
readonly maskedRecipient: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
658
|
+
readonly expiresAt: import("valibot").StringSchema<undefined>;
|
|
659
|
+
}, undefined>;
|
|
660
|
+
};
|
|
661
|
+
readonly refresh: {
|
|
662
|
+
readonly method: "POST";
|
|
663
|
+
readonly path: "/auth/refresh";
|
|
664
|
+
readonly kind: "exchange";
|
|
665
|
+
readonly public: true;
|
|
666
|
+
};
|
|
667
|
+
readonly logout: {
|
|
668
|
+
readonly method: "POST";
|
|
669
|
+
readonly path: "/auth/logout";
|
|
670
|
+
readonly kind: "logout";
|
|
671
|
+
readonly public: true;
|
|
672
|
+
};
|
|
673
|
+
readonly me: {
|
|
674
|
+
readonly method: "GET";
|
|
675
|
+
readonly path: "/auth/me";
|
|
676
|
+
readonly kind: "data";
|
|
677
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
678
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
679
|
+
readonly contactEmail: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
680
|
+
readonly contactPhone: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
681
|
+
readonly username: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
682
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
683
|
+
readonly givenName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
684
|
+
readonly familyName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
685
|
+
readonly avatarUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
686
|
+
readonly locale: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
687
|
+
readonly metadata: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
|
|
688
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
689
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
690
|
+
}, undefined>;
|
|
691
|
+
};
|
|
692
|
+
readonly selectTenant: {
|
|
693
|
+
readonly method: "POST";
|
|
694
|
+
readonly path: "/auth/select-tenant";
|
|
695
|
+
readonly kind: "exchange";
|
|
696
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
697
|
+
readonly tenantId: import("valibot").StringSchema<undefined>;
|
|
698
|
+
}, undefined>;
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
//# sourceMappingURL=index.d.ts.map
|