@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.
Files changed (95) hide show
  1. package/dist/auth.contract.d.ts +10 -0
  2. package/dist/auth.contract.d.ts.map +1 -1
  3. package/dist/auth.contract.js +18 -18
  4. package/dist/auth.contract.js.map +1 -1
  5. package/dist/core.d.ts.map +1 -1
  6. package/dist/core.js.map +1 -1
  7. package/dist/groups/auth.d.ts.map +1 -1
  8. package/dist/groups/auth.js.map +1 -1
  9. package/dist/groups/core.d.ts +4 -4
  10. package/dist/groups/core.d.ts.map +1 -1
  11. package/dist/groups/core.js +2 -2
  12. package/dist/groups/core.js.map +1 -1
  13. package/dist/groups/mfa.d.ts.map +1 -1
  14. package/dist/groups/mfa.js.map +1 -1
  15. package/dist/groups/oauth.d.ts.map +1 -1
  16. package/dist/groups/oauth.js.map +1 -1
  17. package/dist/groups/password.d.ts.map +1 -1
  18. package/dist/groups/password.js.map +1 -1
  19. package/dist/groups/session.d.ts.map +1 -1
  20. package/dist/groups/session.js.map +1 -1
  21. package/dist/groups/tenants.d.ts.map +1 -1
  22. package/dist/groups/tenants.js.map +1 -1
  23. package/dist/groups/users.d.ts.map +1 -1
  24. package/dist/groups/users.js.map +1 -1
  25. package/dist/groups/verification.d.ts.map +1 -1
  26. package/dist/groups/verification.js.map +1 -1
  27. package/dist/index.d.ts +441 -435
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +12 -12
  30. package/dist/index.js.map +1 -1
  31. package/dist/internal/index.d.ts +112 -52
  32. package/dist/internal/index.d.ts.map +1 -1
  33. package/dist/internal/index.js +75 -44
  34. package/dist/internal/index.js.map +1 -1
  35. package/dist/internal/responses.d.ts +41 -21
  36. package/dist/internal/responses.d.ts.map +1 -1
  37. package/dist/internal/responses.js +33 -15
  38. package/dist/internal/responses.js.map +1 -1
  39. package/dist/login-result.d.ts.map +1 -1
  40. package/dist/login-result.js.map +1 -1
  41. package/dist/mfa.contract.d.ts.map +1 -1
  42. package/dist/mfa.contract.js +12 -12
  43. package/dist/mfa.contract.js.map +1 -1
  44. package/dist/oauth.contract.d.ts +2 -0
  45. package/dist/oauth.contract.d.ts.map +1 -1
  46. package/dist/oauth.contract.js +12 -9
  47. package/dist/oauth.contract.js.map +1 -1
  48. package/dist/password.contract.d.ts.map +1 -1
  49. package/dist/password.contract.js +7 -7
  50. package/dist/password.contract.js.map +1 -1
  51. package/dist/responses/auth.d.ts +26 -0
  52. package/dist/responses/auth.d.ts.map +1 -1
  53. package/dist/responses/auth.js +15 -3
  54. package/dist/responses/auth.js.map +1 -1
  55. package/dist/responses/core.d.ts.map +1 -1
  56. package/dist/responses/core.js +11 -11
  57. package/dist/responses/core.js.map +1 -1
  58. package/dist/responses/mfa.d.ts.map +1 -1
  59. package/dist/responses/mfa.js +4 -4
  60. package/dist/responses/mfa.js.map +1 -1
  61. package/dist/responses/oauth.d.ts.map +1 -1
  62. package/dist/responses/oauth.js +2 -2
  63. package/dist/responses/oauth.js.map +1 -1
  64. package/dist/responses/session.d.ts.map +1 -1
  65. package/dist/responses/session.js +1 -1
  66. package/dist/responses/session.js.map +1 -1
  67. package/dist/responses/tenant.d.ts.map +1 -1
  68. package/dist/responses/tenant.js +6 -6
  69. package/dist/responses/tenant.js.map +1 -1
  70. package/dist/responses/verification.d.ts.map +1 -1
  71. package/dist/responses/verification.js +1 -1
  72. package/dist/responses/verification.js.map +1 -1
  73. package/dist/responses.d.ts +6 -6
  74. package/dist/responses.d.ts.map +1 -1
  75. package/dist/responses.js +6 -6
  76. package/dist/responses.js.map +1 -1
  77. package/dist/revocation.d.ts +21 -0
  78. package/dist/revocation.d.ts.map +1 -0
  79. package/dist/revocation.js +22 -0
  80. package/dist/revocation.js.map +1 -0
  81. package/dist/schemas.d.ts.map +1 -1
  82. package/dist/schemas.js.map +1 -1
  83. package/dist/session.contract.d.ts.map +1 -1
  84. package/dist/session.contract.js +8 -8
  85. package/dist/session.contract.js.map +1 -1
  86. package/dist/tenants.contract.d.ts.map +1 -1
  87. package/dist/tenants.contract.js +22 -22
  88. package/dist/tenants.contract.js.map +1 -1
  89. package/dist/users.contract.d.ts.map +1 -1
  90. package/dist/users.contract.js +3 -3
  91. package/dist/users.contract.js.map +1 -1
  92. package/dist/verification.contract.d.ts.map +1 -1
  93. package/dist/verification.contract.js +5 -5
  94. package/dist/verification.contract.js.map +1 -1
  95. 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 { shortString, identityString, secretString, displayString, textString } from './schemas.js';
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 { usersContract } from './users.contract.js';
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 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>;
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 updateTenantProfile: {
44
- readonly method: "PATCH";
45
- readonly path: "/tenants/:tenantId/profile";
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 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>;
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 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>;
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 createInvite: {
93
+ readonly completeChallenge: {
82
94
  readonly method: "POST";
83
- readonly path: "/tenants/:tenantId/invites";
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 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>;
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 inviteId: import("valibot").StringSchema<undefined>;
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 listInvites: {
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: "/tenants/:tenantId/invites";
209
+ readonly path: "/auth/me";
106
210
  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<{
211
+ readonly response: import("valibot").ObjectSchema<{
113
212
  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>;
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 jobTitle: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
125
- readonly invitedBy: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
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 expiresAt: import("valibot").StringSchema<undefined>;
129
- }, undefined>, undefined>;
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 acceptInvite: {
231
+ readonly selectTenant: {
132
232
  readonly method: "POST";
133
- readonly path: "/tenants/:tenantId/invites/accept";
134
- readonly kind: "data";
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 declineInvite: {
239
+ readonly setupAuthenticator: {
146
240
  readonly method: "POST";
147
- readonly path: "/tenants/:tenantId/invites/decline";
241
+ readonly path: "/mfa/authenticators/setup";
148
242
  readonly kind: "data";
149
243
  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>;
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 message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
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 revokeInvite: {
252
+ readonly verifyAuthenticator: {
158
253
  readonly method: "POST";
159
- readonly path: "/tenants/:tenantId/invites/revoke";
254
+ readonly path: "/mfa/authenticators/verify";
160
255
  readonly kind: "data";
161
256
  readonly body: import("valibot").ObjectSchema<{
162
- readonly inviteId: import("valibot").StringSchema<undefined>;
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 message: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
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 listMembers: {
267
+ readonly listAuthenticators: {
169
268
  readonly method: "GET";
170
- readonly path: "/tenants/:tenantId/members";
269
+ readonly path: "/mfa/authenticators";
171
270
  readonly kind: "data";
172
271
  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>;
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 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>;
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 updatedAt: import("valibot").StringSchema<undefined>;
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 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: {
287
+ readonly removeAuthenticator: {
204
288
  readonly method: "DELETE";
205
- readonly path: "/tenants/:tenantId/members";
289
+ readonly path: "/mfa/authenticators";
206
290
  readonly kind: "data";
207
291
  readonly body: import("valibot").ObjectSchema<{
208
- readonly userId: import("valibot").StringSchema<undefined>;
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 updateProfile: {
300
+ readonly updateMfaSettings: {
215
301
  readonly method: "PATCH";
216
- readonly path: "/users/profile";
302
+ readonly path: "/mfa/settings";
217
303
  readonly kind: "data";
218
304
  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>;
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 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>;
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 setupAuthenticator: {
333
- readonly method: "POST";
334
- readonly path: "/mfa/authenticators/setup";
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 method: import("valibot").StringSchema<undefined>;
338
- readonly data: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>, undefined>;
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 method: import("valibot").StringSchema<undefined>;
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 verifyAuthenticator: {
416
+ readonly forgotPassword: {
346
417
  readonly method: "POST";
347
- readonly path: "/mfa/authenticators/verify";
418
+ readonly path: "/password/forgot";
348
419
  readonly kind: "data";
420
+ readonly public: true;
349
421
  readonly body: import("valibot").ObjectSchema<{
350
- readonly method: import("valibot").StringSchema<undefined>;
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 authenticators: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
370
- readonly method: import("valibot").StringSchema<undefined>;
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 removeAuthenticator: {
381
- readonly method: "DELETE";
382
- readonly path: "/mfa/authenticators";
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 method: import("valibot").StringSchema<undefined>;
386
- readonly authenticatorId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
387
- readonly password: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
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 verifyCode: {
454
- readonly method: "POST";
455
- readonly path: "/verification/verify";
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 challengeId: import("valibot").StringSchema<undefined>;
460
- readonly code: import("valibot").StringSchema<undefined>;
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 identityType: import("valibot").StringSchema<undefined>;
465
- readonly identityValue: import("valibot").StringSchema<undefined>;
466
- readonly verifiedAt: import("valibot").StringSchema<undefined>;
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 resendVerification: {
553
+ readonly createInvite: {
470
554
  readonly method: "POST";
471
- readonly path: "/verification/resend";
555
+ readonly path: "/tenants/:tenantId/invites";
472
556
  readonly kind: "data";
473
- readonly public: true;
474
557
  readonly body: import("valibot").ObjectSchema<{
475
- readonly channel: import("valibot").PicklistSchema<["sms", "email"], undefined>;
476
- readonly identityValue: import("valibot").StringSchema<undefined>;
477
- readonly previousChallengeId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
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 challengeId: import("valibot").StringSchema<undefined>;
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 changePassword: {
485
- readonly method: "PATCH";
486
- readonly path: "/password/change";
575
+ readonly listInvites: {
576
+ readonly method: "GET";
577
+ readonly path: "/tenants/:tenantId/invites";
487
578
  readonly kind: "data";
488
- readonly body: import("valibot").ObjectSchema<{
489
- readonly currentPassword: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4096, undefined>]>;
490
- readonly newPassword: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4096, undefined>]>;
491
- }, undefined>;
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 forgotPassword: {
603
+ readonly acceptInvite: {
497
604
  readonly method: "POST";
498
- readonly path: "/password/forgot";
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 email: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 320, undefined>, import("valibot").EmailAction<string, undefined>]>;
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 challengeId: import("valibot").StringSchema<undefined>;
506
- readonly expiresAt: import("valibot").StringSchema<undefined>;
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 resetPassword: {
617
+ readonly declineInvite: {
510
618
  readonly method: "POST";
511
- readonly path: "/password/reset";
512
- readonly kind: "data";
513
- readonly public: true;
514
- readonly body: import("valibot").ObjectSchema<{
515
- readonly challengeId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
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 authenticate: {
629
+ readonly revokeInvite: {
524
630
  readonly method: "POST";
525
- readonly path: "/auth/authenticate";
526
- readonly kind: "login";
527
- readonly public: true;
631
+ readonly path: "/tenants/:tenantId/invites/revoke";
632
+ readonly kind: "data";
528
633
  readonly body: import("valibot").ObjectSchema<{
529
- readonly identityType: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
530
- readonly identityValue: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 320, undefined>]>;
531
- readonly credentialType: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
532
- readonly credentialValue: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4096, undefined>]>, undefined>;
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 register: {
572
- readonly method: "POST";
573
- readonly path: "/auth/register";
640
+ readonly listMembers: {
641
+ readonly method: "GET";
642
+ readonly path: "/tenants/:tenantId/members";
574
643
  readonly kind: "data";
575
- readonly public: true;
576
- readonly body: import("valibot").ObjectSchema<{
577
- readonly identityType: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
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 userId: import("valibot").StringSchema<undefined>;
590
- readonly verification: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
591
- readonly channel: import("valibot").StringSchema<undefined>;
592
- readonly challengeId: import("valibot").StringSchema<undefined>;
593
- readonly expiresAt: import("valibot").StringSchema<undefined>;
594
- readonly identityType: import("valibot").StringSchema<undefined>;
595
- readonly identityValue: import("valibot").StringSchema<undefined>;
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 completeChallenge: {
600
- readonly method: "POST";
601
- readonly path: "/auth/complete-challenge";
602
- readonly kind: "login";
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 challengeId: import("valibot").StringSchema<undefined>;
606
- readonly code: import("valibot").StringSchema<undefined>;
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").UnionSchema<[import("valibot").ObjectSchema<{
609
- readonly requiresChallenge: import("valibot").LiteralSchema<true, undefined>;
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 issueMfaChallenge: {
687
- readonly method: "POST";
688
- readonly path: "/auth/issue-mfa-challenge";
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 maskedRecipient: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
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 refresh: {
702
- readonly method: "POST";
703
- readonly path: "/auth/refresh";
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 selectTenant: {
715
+ readonly verifyCode: {
733
716
  readonly method: "POST";
734
- readonly path: "/auth/select-tenant";
735
- readonly kind: "exchange";
717
+ readonly path: "/verification/verify";
718
+ readonly kind: "data";
719
+ readonly public: true;
736
720
  readonly body: import("valibot").ObjectSchema<{
737
- readonly tenantId: import("valibot").StringSchema<undefined>;
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
  };