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