@auth-craft/api-contract 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/auth.contract.d.ts +391 -0
  2. package/dist/auth.contract.d.ts.map +1 -0
  3. package/dist/auth.contract.js +138 -0
  4. package/dist/auth.contract.js.map +1 -0
  5. package/dist/core.d.ts +51 -0
  6. package/dist/core.d.ts.map +1 -0
  7. package/dist/core.js +29 -0
  8. package/dist/core.js.map +1 -0
  9. package/dist/groups/auth.d.ts +3 -0
  10. package/dist/groups/auth.d.ts.map +1 -0
  11. package/dist/groups/auth.js +3 -0
  12. package/dist/groups/auth.js.map +1 -0
  13. package/dist/groups/core.d.ts +15 -0
  14. package/dist/groups/core.d.ts.map +1 -0
  15. package/dist/groups/core.js +13 -0
  16. package/dist/groups/core.js.map +1 -0
  17. package/dist/groups/mfa.d.ts +3 -0
  18. package/dist/groups/mfa.d.ts.map +1 -0
  19. package/dist/groups/mfa.js +3 -0
  20. package/dist/groups/mfa.js.map +1 -0
  21. package/dist/groups/oauth.d.ts +3 -0
  22. package/dist/groups/oauth.d.ts.map +1 -0
  23. package/dist/groups/oauth.js +3 -0
  24. package/dist/groups/oauth.js.map +1 -0
  25. package/dist/groups/password.d.ts +3 -0
  26. package/dist/groups/password.d.ts.map +1 -0
  27. package/dist/groups/password.js +3 -0
  28. package/dist/groups/password.js.map +1 -0
  29. package/dist/groups/session.d.ts +3 -0
  30. package/dist/groups/session.d.ts.map +1 -0
  31. package/dist/groups/session.js +3 -0
  32. package/dist/groups/session.js.map +1 -0
  33. package/dist/groups/tenants.d.ts +3 -0
  34. package/dist/groups/tenants.d.ts.map +1 -0
  35. package/dist/groups/tenants.js +3 -0
  36. package/dist/groups/tenants.js.map +1 -0
  37. package/dist/groups/users.d.ts +3 -0
  38. package/dist/groups/users.d.ts.map +1 -0
  39. package/dist/groups/users.js +3 -0
  40. package/dist/groups/users.js.map +1 -0
  41. package/dist/groups/verification.d.ts +3 -0
  42. package/dist/groups/verification.d.ts.map +1 -0
  43. package/dist/groups/verification.js +3 -0
  44. package/dist/groups/verification.js.map +1 -0
  45. package/dist/index.d.ts +701 -0
  46. package/dist/index.d.ts.map +1 -0
  47. package/dist/index.js +32 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/internal/index.d.ts +952 -0
  50. package/dist/internal/index.d.ts.map +1 -0
  51. package/dist/internal/index.js +339 -0
  52. package/dist/internal/index.js.map +1 -0
  53. package/dist/internal/responses.d.ts +262 -0
  54. package/dist/internal/responses.d.ts.map +1 -0
  55. package/dist/internal/responses.js +145 -0
  56. package/dist/internal/responses.js.map +1 -0
  57. package/dist/login-result.d.ts +20 -0
  58. package/dist/login-result.d.ts.map +1 -0
  59. package/dist/login-result.js +13 -0
  60. package/dist/login-result.js.map +1 -0
  61. package/dist/mfa.contract.d.ts +155 -0
  62. package/dist/mfa.contract.d.ts.map +1 -0
  63. package/dist/mfa.contract.js +73 -0
  64. package/dist/mfa.contract.js.map +1 -0
  65. package/dist/oauth.contract.d.ts +163 -0
  66. package/dist/oauth.contract.d.ts.map +1 -0
  67. package/dist/oauth.contract.js +65 -0
  68. package/dist/oauth.contract.js.map +1 -0
  69. package/dist/password.contract.d.ts +83 -0
  70. package/dist/password.contract.d.ts.map +1 -0
  71. package/dist/password.contract.js +46 -0
  72. package/dist/password.contract.js.map +1 -0
  73. package/dist/responses/auth.d.ts +19 -0
  74. package/dist/responses/auth.d.ts.map +1 -0
  75. package/dist/responses/auth.js +19 -0
  76. package/dist/responses/auth.js.map +1 -0
  77. package/dist/responses/core.d.ts +86 -0
  78. package/dist/responses/core.d.ts.map +1 -0
  79. package/dist/responses/core.js +72 -0
  80. package/dist/responses/core.js.map +1 -0
  81. package/dist/responses/mfa.d.ts +31 -0
  82. package/dist/responses/mfa.d.ts.map +1 -0
  83. package/dist/responses/mfa.js +24 -0
  84. package/dist/responses/mfa.js.map +1 -0
  85. package/dist/responses/oauth.d.ts +18 -0
  86. package/dist/responses/oauth.d.ts.map +1 -0
  87. package/dist/responses/oauth.js +13 -0
  88. package/dist/responses/oauth.js.map +1 -0
  89. package/dist/responses/session.d.ts +32 -0
  90. package/dist/responses/session.d.ts.map +1 -0
  91. package/dist/responses/session.js +19 -0
  92. package/dist/responses/session.js.map +1 -0
  93. package/dist/responses/tenant.d.ts +92 -0
  94. package/dist/responses/tenant.d.ts.map +1 -0
  95. package/dist/responses/tenant.js +66 -0
  96. package/dist/responses/tenant.js.map +1 -0
  97. package/dist/responses/verification.d.ts +9 -0
  98. package/dist/responses/verification.d.ts.map +1 -0
  99. package/dist/responses/verification.js +9 -0
  100. package/dist/responses/verification.js.map +1 -0
  101. package/dist/responses.d.ts +17 -0
  102. package/dist/responses.d.ts.map +1 -0
  103. package/dist/responses.js +17 -0
  104. package/dist/responses.js.map +1 -0
  105. package/dist/schemas.d.ts +18 -0
  106. package/dist/schemas.d.ts.map +1 -0
  107. package/dist/schemas.js +18 -0
  108. package/dist/schemas.js.map +1 -0
  109. package/dist/session.contract.d.ts +97 -0
  110. package/dist/session.contract.d.ts.map +1 -0
  111. package/dist/session.contract.js +44 -0
  112. package/dist/session.contract.js.map +1 -0
  113. package/dist/tenants.contract.d.ts +403 -0
  114. package/dist/tenants.contract.d.ts.map +1 -0
  115. package/dist/tenants.contract.js +146 -0
  116. package/dist/tenants.contract.js.map +1 -0
  117. package/dist/users.contract.d.ts +63 -0
  118. package/dist/users.contract.d.ts.map +1 -0
  119. package/dist/users.contract.js +25 -0
  120. package/dist/users.contract.js.map +1 -0
  121. package/dist/verification.contract.d.ts +67 -0
  122. package/dist/verification.contract.d.ts.map +1 -0
  123. package/dist/verification.contract.js +35 -0
  124. package/dist/verification.contract.js.map +1 -0
  125. package/package.json +75 -0
@@ -0,0 +1,952 @@
1
+ /**
2
+ * Internal (service-to-service) API contract.
3
+ *
4
+ * These endpoints are called by trusted backend services via @auth-craft/backend-sdk
5
+ * over the internal-router (JWT service token, NOT FetchGuard). The bodies here are
6
+ * the SINGLE SOURCE: internal-router imports them to validate, and backend-sdk
7
+ * infers its request/response types from them — so an internal API change errors
8
+ * at build/CI instead of drifting silently.
9
+ *
10
+ * All endpoints are POST. `kind` is informational here (backend-sdk doesn't use
11
+ * the FetchGuard proxy); it's kept 'data' for shape-compatibility with the public
12
+ * contract's Endpoint type and the registry guards.
13
+ */
14
+ import * as v from 'valibot';
15
+ export declare const bootstrapTenantOwner: {
16
+ readonly method: "POST";
17
+ readonly path: "/tenant/bootstrap-owner";
18
+ readonly kind: "data";
19
+ readonly body: v.ObjectSchema<{
20
+ readonly tenantId: v.StringSchema<undefined>;
21
+ readonly userId: v.StringSchema<undefined>;
22
+ readonly tenantType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
23
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
24
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
26
+ readonly displayNameSource: v.OptionalSchema<v.PicklistSchema<["user", "admin", "system"], undefined>, undefined>;
27
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
28
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
29
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
30
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
31
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
32
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
33
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
34
+ }, undefined>;
35
+ readonly response: v.ObjectSchema<{
36
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
37
+ readonly tenantId: v.StringSchema<undefined>;
38
+ readonly userId: v.StringSchema<undefined>;
39
+ }, undefined>;
40
+ };
41
+ export declare const getTenantProfile: {
42
+ readonly method: "POST";
43
+ readonly path: "/tenant/profile";
44
+ readonly kind: "data";
45
+ readonly body: v.ObjectSchema<{
46
+ readonly tenantId: v.StringSchema<undefined>;
47
+ readonly userId: v.StringSchema<undefined>;
48
+ }, undefined>;
49
+ readonly response: v.ObjectSchema<{
50
+ readonly status: v.StringSchema<undefined>;
51
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
52
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
53
+ readonly authPerms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
54
+ readonly isOwner: v.BooleanSchema<undefined>;
55
+ readonly createdAt: v.StringSchema<undefined>;
56
+ readonly memberUpdatedAt: v.StringSchema<undefined>;
57
+ readonly profileUpdatedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
58
+ readonly tenantId: v.StringSchema<undefined>;
59
+ readonly userId: v.StringSchema<undefined>;
60
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
61
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
62
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
63
+ readonly displayNameSource: v.OptionalSchema<v.PicklistSchema<["user", "admin", "system"], undefined>, undefined>;
64
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
65
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
66
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
67
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
68
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
69
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
70
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
71
+ }, undefined>;
72
+ };
73
+ export declare const updateTenantProfile: {
74
+ readonly method: "POST";
75
+ readonly path: "/tenant/profile/update";
76
+ readonly kind: "data";
77
+ readonly body: v.ObjectSchema<{
78
+ readonly tenantId: v.StringSchema<undefined>;
79
+ readonly userId: v.StringSchema<undefined>;
80
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
81
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
82
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
83
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
84
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
85
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
86
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
87
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
88
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
89
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
90
+ }, undefined>;
91
+ readonly response: v.ObjectSchema<{
92
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
93
+ }, undefined>;
94
+ };
95
+ export declare const listTenantMembers: {
96
+ readonly method: "POST";
97
+ readonly path: "/tenant/members/list";
98
+ readonly kind: "data";
99
+ readonly body: v.ObjectSchema<{
100
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
101
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
102
+ readonly tenantId: v.StringSchema<undefined>;
103
+ readonly actorUserId: v.StringSchema<undefined>;
104
+ }, undefined>;
105
+ readonly response: v.ArraySchema<v.ObjectSchema<{
106
+ readonly tenantId: v.StringSchema<undefined>;
107
+ readonly userId: v.StringSchema<undefined>;
108
+ readonly status: v.StringSchema<undefined>;
109
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
110
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
111
+ readonly authPerms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
112
+ readonly isOwner: v.BooleanSchema<undefined>;
113
+ readonly createdAt: v.StringSchema<undefined>;
114
+ readonly updatedAt: v.StringSchema<undefined>;
115
+ readonly tenantProfile: v.OptionalSchema<v.ObjectSchema<{
116
+ readonly createdAt: v.StringSchema<undefined>;
117
+ readonly updatedAt: v.StringSchema<undefined>;
118
+ readonly tenantId: v.StringSchema<undefined>;
119
+ readonly userId: v.StringSchema<undefined>;
120
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
121
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
122
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
123
+ readonly displayNameSource: v.OptionalSchema<v.PicklistSchema<["user", "admin", "system"], undefined>, undefined>;
124
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
125
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
126
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
127
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
128
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
129
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
130
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
131
+ }, undefined>, undefined>;
132
+ }, undefined>, undefined>;
133
+ };
134
+ export declare const updateTenantMemberStatus: {
135
+ readonly method: "POST";
136
+ readonly path: "/tenant/members/update-status";
137
+ readonly kind: "data";
138
+ readonly body: v.ObjectSchema<{
139
+ readonly tenantId: v.StringSchema<undefined>;
140
+ readonly userId: v.StringSchema<undefined>;
141
+ readonly actorUserId: v.StringSchema<undefined>;
142
+ readonly status: v.PicklistSchema<["invited", "active", "suspended", "removed"], undefined>;
143
+ }, undefined>;
144
+ readonly response: v.ObjectSchema<{
145
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
146
+ }, undefined>;
147
+ };
148
+ export declare const updateTenantMemberPermission: {
149
+ readonly method: "POST";
150
+ readonly path: "/tenant/members/update-permission";
151
+ readonly kind: "data";
152
+ readonly body: v.ObjectSchema<{
153
+ readonly tenantId: v.StringSchema<undefined>;
154
+ readonly userId: v.StringSchema<undefined>;
155
+ readonly actorUserId: v.StringSchema<undefined>;
156
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
157
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
158
+ readonly authPerms: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
159
+ }, undefined>;
160
+ readonly response: v.ObjectSchema<{
161
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
162
+ }, undefined>;
163
+ };
164
+ export declare const removeTenantMember: {
165
+ readonly method: "POST";
166
+ readonly path: "/tenant/members/remove";
167
+ readonly kind: "data";
168
+ readonly body: v.ObjectSchema<{
169
+ readonly tenantId: v.StringSchema<undefined>;
170
+ readonly userId: v.StringSchema<undefined>;
171
+ readonly actorUserId: v.StringSchema<undefined>;
172
+ }, undefined>;
173
+ readonly response: v.ObjectSchema<{
174
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
175
+ }, undefined>;
176
+ };
177
+ export declare const addMemberToTenant: {
178
+ readonly method: "POST";
179
+ readonly path: "/tenant/members/add";
180
+ readonly kind: "data";
181
+ readonly body: v.ObjectSchema<{
182
+ readonly tenantId: v.StringSchema<undefined>;
183
+ readonly userId: v.StringSchema<undefined>;
184
+ readonly actorUserId: v.StringSchema<undefined>;
185
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
186
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
187
+ readonly authPerms: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
188
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
189
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
190
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
191
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
192
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
193
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
194
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
195
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
196
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
197
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
198
+ }, undefined>;
199
+ readonly response: v.ObjectSchema<{
200
+ readonly tenantId: v.StringSchema<undefined>;
201
+ readonly userId: v.StringSchema<undefined>;
202
+ }, undefined>;
203
+ };
204
+ export declare const listTenantInvites: {
205
+ readonly method: "POST";
206
+ readonly path: "/tenant/invites/list";
207
+ readonly kind: "data";
208
+ readonly body: v.ObjectSchema<{
209
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
210
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
211
+ readonly tenantId: v.StringSchema<undefined>;
212
+ readonly actorUserId: v.StringSchema<undefined>;
213
+ readonly status: v.OptionalSchema<v.PicklistSchema<["pending", "accepted", "declined", "revoked", "expired"], undefined>, undefined>;
214
+ }, undefined>;
215
+ readonly response: v.ArraySchema<v.ObjectSchema<{
216
+ readonly id: v.StringSchema<undefined>;
217
+ readonly tenantId: v.StringSchema<undefined>;
218
+ readonly invitedBy: v.ObjectSchema<{
219
+ readonly id: v.StringSchema<undefined>;
220
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
221
+ readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
222
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
223
+ }, undefined>;
224
+ readonly inviteeUserId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
225
+ readonly inviteeEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
226
+ readonly inviteePhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
227
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
228
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
229
+ readonly authPerms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
230
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
231
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
232
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
233
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
234
+ readonly status: v.StringSchema<undefined>;
235
+ readonly expiresAt: v.StringSchema<undefined>;
236
+ readonly createdAt: v.StringSchema<undefined>;
237
+ readonly updatedAt: v.StringSchema<undefined>;
238
+ }, undefined>, undefined>;
239
+ };
240
+ export declare const inviteToTenant: {
241
+ readonly method: "POST";
242
+ readonly path: "/tenant/invites/create";
243
+ readonly kind: "data";
244
+ readonly body: v.ObjectSchema<{
245
+ readonly tenantId: v.StringSchema<undefined>;
246
+ readonly invitedBy: v.StringSchema<undefined>;
247
+ readonly inviteeUserId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
248
+ readonly inviteeEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
249
+ readonly inviteePhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
250
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
251
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
252
+ readonly authPerms: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
253
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
254
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
255
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
256
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
257
+ }, undefined>;
258
+ readonly response: v.ObjectSchema<{
259
+ readonly inviteId: v.StringSchema<undefined>;
260
+ readonly inviteToken: v.StringSchema<undefined>;
261
+ readonly expiresAt: v.StringSchema<undefined>;
262
+ }, undefined>;
263
+ };
264
+ export declare const acceptInvite: {
265
+ readonly method: "POST";
266
+ readonly path: "/tenant/invites/accept";
267
+ readonly kind: "data";
268
+ readonly body: v.ObjectSchema<{
269
+ readonly userId: v.StringSchema<undefined>;
270
+ readonly inviteId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
271
+ readonly inviteToken: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
272
+ }, undefined>;
273
+ readonly response: v.ObjectSchema<{
274
+ readonly tenantId: v.StringSchema<undefined>;
275
+ readonly userId: v.StringSchema<undefined>;
276
+ }, undefined>;
277
+ };
278
+ export declare const declineInvite: {
279
+ readonly method: "POST";
280
+ readonly path: "/tenant/invites/decline";
281
+ readonly kind: "data";
282
+ readonly body: v.ObjectSchema<{
283
+ readonly userId: v.StringSchema<undefined>;
284
+ readonly inviteId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
285
+ readonly inviteToken: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
286
+ }, undefined>;
287
+ readonly response: v.ObjectSchema<{
288
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
289
+ }, undefined>;
290
+ };
291
+ export declare const revokeInvite: {
292
+ readonly method: "POST";
293
+ readonly path: "/tenant/invites/revoke";
294
+ readonly kind: "data";
295
+ readonly body: v.ObjectSchema<{
296
+ readonly inviteId: v.StringSchema<undefined>;
297
+ readonly revokedBy: v.StringSchema<undefined>;
298
+ }, undefined>;
299
+ readonly response: v.ObjectSchema<{
300
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
301
+ }, undefined>;
302
+ };
303
+ export declare const checkPendingInvites: {
304
+ readonly method: "POST";
305
+ readonly path: "/tenant/invites/check-pending";
306
+ readonly kind: "data";
307
+ readonly body: v.ObjectSchema<{
308
+ readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
309
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
310
+ }, undefined>;
311
+ readonly response: v.ObjectSchema<{
312
+ readonly invites: v.ArraySchema<v.ObjectSchema<{
313
+ readonly id: v.StringSchema<undefined>;
314
+ readonly tenantId: v.StringSchema<undefined>;
315
+ readonly invitedBy: v.ObjectSchema<{
316
+ readonly id: v.StringSchema<undefined>;
317
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
318
+ readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
319
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
320
+ }, undefined>;
321
+ readonly inviteeUserId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
322
+ readonly inviteeEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
323
+ readonly inviteePhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
324
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
325
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
326
+ readonly authPerms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
327
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
328
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
329
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
330
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
331
+ readonly status: v.StringSchema<undefined>;
332
+ readonly expiresAt: v.StringSchema<undefined>;
333
+ readonly createdAt: v.StringSchema<undefined>;
334
+ readonly updatedAt: v.StringSchema<undefined>;
335
+ }, undefined>, undefined>;
336
+ }, undefined>;
337
+ };
338
+ export declare const listUserTenants: {
339
+ readonly method: "POST";
340
+ readonly path: "/user/tenants/list";
341
+ readonly kind: "data";
342
+ readonly body: v.ObjectSchema<{
343
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
344
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
345
+ readonly userId: v.StringSchema<undefined>;
346
+ readonly tenantType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
347
+ readonly parentTenantId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
348
+ }, undefined>;
349
+ readonly response: v.ArraySchema<v.ObjectSchema<{
350
+ readonly status: v.StringSchema<undefined>;
351
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
352
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
353
+ readonly authPerm: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
354
+ readonly isOwner: v.BooleanSchema<undefined>;
355
+ readonly createdAt: v.StringSchema<undefined>;
356
+ readonly updatedAt: v.StringSchema<undefined>;
357
+ readonly tenantId: v.StringSchema<undefined>;
358
+ readonly userId: v.StringSchema<undefined>;
359
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
360
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
361
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
362
+ readonly displayNameSource: v.OptionalSchema<v.PicklistSchema<["user", "admin", "system"], undefined>, undefined>;
363
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
364
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
365
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
366
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
367
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
368
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
369
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
370
+ }, undefined>, undefined>;
371
+ };
372
+ export declare const listAccounts: {
373
+ readonly method: "POST";
374
+ readonly path: "/accounts/list";
375
+ readonly kind: "data";
376
+ readonly body: v.ObjectSchema<{
377
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
378
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
379
+ readonly status: v.OptionalSchema<v.PicklistSchema<["active", "inactive"], undefined>, undefined>;
380
+ readonly actorUserId: v.StringSchema<undefined>;
381
+ readonly systemTenantId: v.StringSchema<undefined>;
382
+ }, undefined>;
383
+ readonly response: v.ArraySchema<v.ObjectSchema<{
384
+ readonly id: v.StringSchema<undefined>;
385
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
386
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
387
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
388
+ readonly status: v.StringSchema<undefined>;
389
+ readonly createdAt: v.StringSchema<undefined>;
390
+ readonly updatedAt: v.StringSchema<undefined>;
391
+ }, undefined>, undefined>;
392
+ };
393
+ export declare const getAccount: {
394
+ readonly method: "POST";
395
+ readonly path: "/accounts/get";
396
+ readonly kind: "data";
397
+ readonly body: v.ObjectSchema<{
398
+ readonly userId: v.StringSchema<undefined>;
399
+ readonly actorUserId: v.StringSchema<undefined>;
400
+ readonly systemTenantId: v.StringSchema<undefined>;
401
+ }, undefined>;
402
+ readonly response: v.ObjectSchema<{
403
+ readonly id: v.StringSchema<undefined>;
404
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
405
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
406
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
407
+ readonly status: v.StringSchema<undefined>;
408
+ readonly createdAt: v.StringSchema<undefined>;
409
+ readonly updatedAt: v.StringSchema<undefined>;
410
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
411
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
412
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
413
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
414
+ readonly username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
415
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
416
+ readonly mfaRequired: v.BooleanSchema<undefined>;
417
+ readonly mfaMethods: v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
418
+ }, undefined>;
419
+ };
420
+ export declare const updateAccountProfile: {
421
+ readonly method: "POST";
422
+ readonly path: "/accounts/update-profile";
423
+ readonly kind: "data";
424
+ readonly body: v.ObjectSchema<{
425
+ readonly userId: v.StringSchema<undefined>;
426
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
427
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
428
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
429
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
430
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
431
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
432
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
433
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
434
+ readonly actorUserId: v.StringSchema<undefined>;
435
+ readonly systemTenantId: v.StringSchema<undefined>;
436
+ }, undefined>;
437
+ readonly response: v.ObjectSchema<{
438
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
439
+ }, undefined>;
440
+ };
441
+ export declare const updateAccountStatus: {
442
+ readonly method: "POST";
443
+ readonly path: "/accounts/update-status";
444
+ readonly kind: "data";
445
+ readonly body: v.ObjectSchema<{
446
+ readonly userId: v.StringSchema<undefined>;
447
+ readonly status: v.PicklistSchema<["active", "suspended", "deleted"], undefined>;
448
+ readonly actorUserId: v.StringSchema<undefined>;
449
+ readonly systemTenantId: v.StringSchema<undefined>;
450
+ }, undefined>;
451
+ readonly response: v.ObjectSchema<{
452
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
453
+ }, undefined>;
454
+ };
455
+ export declare const resetAccountCredentials: {
456
+ readonly method: "POST";
457
+ readonly path: "/accounts/reset-credentials";
458
+ readonly kind: "data";
459
+ readonly body: v.ObjectSchema<{
460
+ readonly userId: v.StringSchema<undefined>;
461
+ readonly credentialType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
462
+ readonly actorUserId: v.StringSchema<undefined>;
463
+ readonly systemTenantId: v.StringSchema<undefined>;
464
+ }, undefined>;
465
+ readonly response: v.ObjectSchema<{
466
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
467
+ }, undefined>;
468
+ };
469
+ export declare const removeAccount: {
470
+ readonly method: "POST";
471
+ readonly path: "/accounts/remove";
472
+ readonly kind: "data";
473
+ readonly body: v.ObjectSchema<{
474
+ readonly userId: v.StringSchema<undefined>;
475
+ readonly actorUserId: v.StringSchema<undefined>;
476
+ readonly systemTenantId: v.StringSchema<undefined>;
477
+ }, undefined>;
478
+ readonly response: v.ObjectSchema<{
479
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
480
+ }, undefined>;
481
+ };
482
+ export declare const internalContract: {
483
+ readonly bootstrapTenantOwner: {
484
+ readonly method: "POST";
485
+ readonly path: "/tenant/bootstrap-owner";
486
+ readonly kind: "data";
487
+ readonly body: v.ObjectSchema<{
488
+ readonly tenantId: v.StringSchema<undefined>;
489
+ readonly userId: v.StringSchema<undefined>;
490
+ readonly tenantType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
491
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
492
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
493
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
494
+ readonly displayNameSource: v.OptionalSchema<v.PicklistSchema<["user", "admin", "system"], undefined>, undefined>;
495
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
496
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
497
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
498
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
499
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
500
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
501
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
502
+ }, undefined>;
503
+ readonly response: v.ObjectSchema<{
504
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
505
+ readonly tenantId: v.StringSchema<undefined>;
506
+ readonly userId: v.StringSchema<undefined>;
507
+ }, undefined>;
508
+ };
509
+ readonly getTenantProfile: {
510
+ readonly method: "POST";
511
+ readonly path: "/tenant/profile";
512
+ readonly kind: "data";
513
+ readonly body: v.ObjectSchema<{
514
+ readonly tenantId: v.StringSchema<undefined>;
515
+ readonly userId: v.StringSchema<undefined>;
516
+ }, undefined>;
517
+ readonly response: v.ObjectSchema<{
518
+ readonly status: v.StringSchema<undefined>;
519
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
520
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
521
+ readonly authPerms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
522
+ readonly isOwner: v.BooleanSchema<undefined>;
523
+ readonly createdAt: v.StringSchema<undefined>;
524
+ readonly memberUpdatedAt: v.StringSchema<undefined>;
525
+ readonly profileUpdatedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
526
+ readonly tenantId: v.StringSchema<undefined>;
527
+ readonly userId: v.StringSchema<undefined>;
528
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
529
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
530
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
531
+ readonly displayNameSource: v.OptionalSchema<v.PicklistSchema<["user", "admin", "system"], undefined>, undefined>;
532
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
533
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
534
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
535
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
536
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
537
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
538
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
539
+ }, undefined>;
540
+ };
541
+ readonly updateTenantProfile: {
542
+ readonly method: "POST";
543
+ readonly path: "/tenant/profile/update";
544
+ readonly kind: "data";
545
+ readonly body: v.ObjectSchema<{
546
+ readonly tenantId: v.StringSchema<undefined>;
547
+ readonly userId: v.StringSchema<undefined>;
548
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
549
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
550
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
551
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
552
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
553
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
554
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
555
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
556
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
557
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
558
+ }, undefined>;
559
+ readonly response: v.ObjectSchema<{
560
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
561
+ }, undefined>;
562
+ };
563
+ readonly listTenantMembers: {
564
+ readonly method: "POST";
565
+ readonly path: "/tenant/members/list";
566
+ readonly kind: "data";
567
+ readonly body: v.ObjectSchema<{
568
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
569
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
570
+ readonly tenantId: v.StringSchema<undefined>;
571
+ readonly actorUserId: v.StringSchema<undefined>;
572
+ }, undefined>;
573
+ readonly response: v.ArraySchema<v.ObjectSchema<{
574
+ readonly tenantId: v.StringSchema<undefined>;
575
+ readonly userId: v.StringSchema<undefined>;
576
+ readonly status: v.StringSchema<undefined>;
577
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
578
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
579
+ readonly authPerms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
580
+ readonly isOwner: v.BooleanSchema<undefined>;
581
+ readonly createdAt: v.StringSchema<undefined>;
582
+ readonly updatedAt: v.StringSchema<undefined>;
583
+ readonly tenantProfile: v.OptionalSchema<v.ObjectSchema<{
584
+ readonly createdAt: v.StringSchema<undefined>;
585
+ readonly updatedAt: v.StringSchema<undefined>;
586
+ readonly tenantId: v.StringSchema<undefined>;
587
+ readonly userId: v.StringSchema<undefined>;
588
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
589
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
590
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
591
+ readonly displayNameSource: v.OptionalSchema<v.PicklistSchema<["user", "admin", "system"], undefined>, undefined>;
592
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
593
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
594
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
595
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
596
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
597
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
598
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
599
+ }, undefined>, undefined>;
600
+ }, undefined>, undefined>;
601
+ };
602
+ readonly updateTenantMemberStatus: {
603
+ readonly method: "POST";
604
+ readonly path: "/tenant/members/update-status";
605
+ readonly kind: "data";
606
+ readonly body: v.ObjectSchema<{
607
+ readonly tenantId: v.StringSchema<undefined>;
608
+ readonly userId: v.StringSchema<undefined>;
609
+ readonly actorUserId: v.StringSchema<undefined>;
610
+ readonly status: v.PicklistSchema<["invited", "active", "suspended", "removed"], undefined>;
611
+ }, undefined>;
612
+ readonly response: v.ObjectSchema<{
613
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
614
+ }, undefined>;
615
+ };
616
+ readonly updateTenantMemberPermission: {
617
+ readonly method: "POST";
618
+ readonly path: "/tenant/members/update-permission";
619
+ readonly kind: "data";
620
+ readonly body: v.ObjectSchema<{
621
+ readonly tenantId: v.StringSchema<undefined>;
622
+ readonly userId: v.StringSchema<undefined>;
623
+ readonly actorUserId: v.StringSchema<undefined>;
624
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
625
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
626
+ readonly authPerms: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
627
+ }, undefined>;
628
+ readonly response: v.ObjectSchema<{
629
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
630
+ }, undefined>;
631
+ };
632
+ readonly removeTenantMember: {
633
+ readonly method: "POST";
634
+ readonly path: "/tenant/members/remove";
635
+ readonly kind: "data";
636
+ readonly body: v.ObjectSchema<{
637
+ readonly tenantId: v.StringSchema<undefined>;
638
+ readonly userId: v.StringSchema<undefined>;
639
+ readonly actorUserId: v.StringSchema<undefined>;
640
+ }, undefined>;
641
+ readonly response: v.ObjectSchema<{
642
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
643
+ }, undefined>;
644
+ };
645
+ readonly addMemberToTenant: {
646
+ readonly method: "POST";
647
+ readonly path: "/tenant/members/add";
648
+ readonly kind: "data";
649
+ readonly body: v.ObjectSchema<{
650
+ readonly tenantId: v.StringSchema<undefined>;
651
+ readonly userId: v.StringSchema<undefined>;
652
+ readonly actorUserId: v.StringSchema<undefined>;
653
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
654
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
655
+ readonly authPerms: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
656
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
657
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
658
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
659
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
660
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
661
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
662
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
663
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
664
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
665
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
666
+ }, undefined>;
667
+ readonly response: v.ObjectSchema<{
668
+ readonly tenantId: v.StringSchema<undefined>;
669
+ readonly userId: v.StringSchema<undefined>;
670
+ }, undefined>;
671
+ };
672
+ readonly listTenantInvites: {
673
+ readonly method: "POST";
674
+ readonly path: "/tenant/invites/list";
675
+ readonly kind: "data";
676
+ readonly body: v.ObjectSchema<{
677
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
678
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
679
+ readonly tenantId: v.StringSchema<undefined>;
680
+ readonly actorUserId: v.StringSchema<undefined>;
681
+ readonly status: v.OptionalSchema<v.PicklistSchema<["pending", "accepted", "declined", "revoked", "expired"], undefined>, undefined>;
682
+ }, undefined>;
683
+ readonly response: v.ArraySchema<v.ObjectSchema<{
684
+ readonly id: v.StringSchema<undefined>;
685
+ readonly tenantId: v.StringSchema<undefined>;
686
+ readonly invitedBy: v.ObjectSchema<{
687
+ readonly id: v.StringSchema<undefined>;
688
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
689
+ readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
690
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
691
+ }, undefined>;
692
+ readonly inviteeUserId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
693
+ readonly inviteeEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
694
+ readonly inviteePhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
695
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
696
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
697
+ readonly authPerms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
698
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
699
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
700
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
701
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
702
+ readonly status: v.StringSchema<undefined>;
703
+ readonly expiresAt: v.StringSchema<undefined>;
704
+ readonly createdAt: v.StringSchema<undefined>;
705
+ readonly updatedAt: v.StringSchema<undefined>;
706
+ }, undefined>, undefined>;
707
+ };
708
+ readonly inviteToTenant: {
709
+ readonly method: "POST";
710
+ readonly path: "/tenant/invites/create";
711
+ readonly kind: "data";
712
+ readonly body: v.ObjectSchema<{
713
+ readonly tenantId: v.StringSchema<undefined>;
714
+ readonly invitedBy: v.StringSchema<undefined>;
715
+ readonly inviteeUserId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
716
+ readonly inviteeEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
717
+ readonly inviteePhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
718
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
719
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
720
+ readonly authPerms: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
721
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
722
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
723
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
724
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
725
+ }, undefined>;
726
+ readonly response: v.ObjectSchema<{
727
+ readonly inviteId: v.StringSchema<undefined>;
728
+ readonly inviteToken: v.StringSchema<undefined>;
729
+ readonly expiresAt: v.StringSchema<undefined>;
730
+ }, undefined>;
731
+ };
732
+ readonly acceptInvite: {
733
+ readonly method: "POST";
734
+ readonly path: "/tenant/invites/accept";
735
+ readonly kind: "data";
736
+ readonly body: v.ObjectSchema<{
737
+ readonly userId: v.StringSchema<undefined>;
738
+ readonly inviteId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
739
+ readonly inviteToken: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
740
+ }, undefined>;
741
+ readonly response: v.ObjectSchema<{
742
+ readonly tenantId: v.StringSchema<undefined>;
743
+ readonly userId: v.StringSchema<undefined>;
744
+ }, undefined>;
745
+ };
746
+ readonly declineInvite: {
747
+ readonly method: "POST";
748
+ readonly path: "/tenant/invites/decline";
749
+ readonly kind: "data";
750
+ readonly body: v.ObjectSchema<{
751
+ readonly userId: v.StringSchema<undefined>;
752
+ readonly inviteId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
753
+ readonly inviteToken: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
754
+ }, undefined>;
755
+ readonly response: v.ObjectSchema<{
756
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
757
+ }, undefined>;
758
+ };
759
+ readonly revokeInvite: {
760
+ readonly method: "POST";
761
+ readonly path: "/tenant/invites/revoke";
762
+ readonly kind: "data";
763
+ readonly body: v.ObjectSchema<{
764
+ readonly inviteId: v.StringSchema<undefined>;
765
+ readonly revokedBy: v.StringSchema<undefined>;
766
+ }, undefined>;
767
+ readonly response: v.ObjectSchema<{
768
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
769
+ }, undefined>;
770
+ };
771
+ readonly checkPendingInvites: {
772
+ readonly method: "POST";
773
+ readonly path: "/tenant/invites/check-pending";
774
+ readonly kind: "data";
775
+ readonly body: v.ObjectSchema<{
776
+ readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
777
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
778
+ }, undefined>;
779
+ readonly response: v.ObjectSchema<{
780
+ readonly invites: v.ArraySchema<v.ObjectSchema<{
781
+ readonly id: v.StringSchema<undefined>;
782
+ readonly tenantId: v.StringSchema<undefined>;
783
+ readonly invitedBy: v.ObjectSchema<{
784
+ readonly id: v.StringSchema<undefined>;
785
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
786
+ readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
787
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
788
+ }, undefined>;
789
+ readonly inviteeUserId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
790
+ readonly inviteeEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
791
+ readonly inviteePhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
792
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
793
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
794
+ readonly authPerms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
795
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
796
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
797
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
798
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
799
+ readonly status: v.StringSchema<undefined>;
800
+ readonly expiresAt: v.StringSchema<undefined>;
801
+ readonly createdAt: v.StringSchema<undefined>;
802
+ readonly updatedAt: v.StringSchema<undefined>;
803
+ }, undefined>, undefined>;
804
+ }, undefined>;
805
+ };
806
+ readonly listUserTenants: {
807
+ readonly method: "POST";
808
+ readonly path: "/user/tenants/list";
809
+ readonly kind: "data";
810
+ readonly body: v.ObjectSchema<{
811
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
812
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
813
+ readonly userId: v.StringSchema<undefined>;
814
+ readonly tenantType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
815
+ readonly parentTenantId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
816
+ }, undefined>;
817
+ readonly response: v.ArraySchema<v.ObjectSchema<{
818
+ readonly status: v.StringSchema<undefined>;
819
+ readonly roles: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
820
+ readonly perms: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
821
+ readonly authPerm: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
822
+ readonly isOwner: v.BooleanSchema<undefined>;
823
+ readonly createdAt: v.StringSchema<undefined>;
824
+ readonly updatedAt: v.StringSchema<undefined>;
825
+ readonly tenantId: v.StringSchema<undefined>;
826
+ readonly userId: v.StringSchema<undefined>;
827
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
828
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
829
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
830
+ readonly displayNameSource: v.OptionalSchema<v.PicklistSchema<["user", "admin", "system"], undefined>, undefined>;
831
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
832
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
833
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
834
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
835
+ readonly jobTitle: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
836
+ readonly bio: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
837
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
838
+ }, undefined>, undefined>;
839
+ };
840
+ readonly listAccounts: {
841
+ readonly method: "POST";
842
+ readonly path: "/accounts/list";
843
+ readonly kind: "data";
844
+ readonly body: v.ObjectSchema<{
845
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
846
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
847
+ readonly status: v.OptionalSchema<v.PicklistSchema<["active", "inactive"], undefined>, undefined>;
848
+ readonly actorUserId: v.StringSchema<undefined>;
849
+ readonly systemTenantId: v.StringSchema<undefined>;
850
+ }, undefined>;
851
+ readonly response: v.ArraySchema<v.ObjectSchema<{
852
+ readonly id: v.StringSchema<undefined>;
853
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
854
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
855
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
856
+ readonly status: v.StringSchema<undefined>;
857
+ readonly createdAt: v.StringSchema<undefined>;
858
+ readonly updatedAt: v.StringSchema<undefined>;
859
+ }, undefined>, undefined>;
860
+ };
861
+ readonly getAccount: {
862
+ readonly method: "POST";
863
+ readonly path: "/accounts/get";
864
+ readonly kind: "data";
865
+ readonly body: v.ObjectSchema<{
866
+ readonly userId: v.StringSchema<undefined>;
867
+ readonly actorUserId: v.StringSchema<undefined>;
868
+ readonly systemTenantId: v.StringSchema<undefined>;
869
+ }, undefined>;
870
+ readonly response: v.ObjectSchema<{
871
+ readonly id: v.StringSchema<undefined>;
872
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
873
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
874
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
875
+ readonly status: v.StringSchema<undefined>;
876
+ readonly createdAt: v.StringSchema<undefined>;
877
+ readonly updatedAt: v.StringSchema<undefined>;
878
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
879
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
880
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
881
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
882
+ readonly username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
883
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
884
+ readonly mfaRequired: v.BooleanSchema<undefined>;
885
+ readonly mfaMethods: v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
886
+ }, undefined>;
887
+ };
888
+ readonly updateAccountProfile: {
889
+ readonly method: "POST";
890
+ readonly path: "/accounts/update-profile";
891
+ readonly kind: "data";
892
+ readonly body: v.ObjectSchema<{
893
+ readonly userId: v.StringSchema<undefined>;
894
+ readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
895
+ readonly givenName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
896
+ readonly familyName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
897
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
898
+ readonly locale: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
899
+ readonly contactEmail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
900
+ readonly contactPhone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
901
+ readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
902
+ readonly actorUserId: v.StringSchema<undefined>;
903
+ readonly systemTenantId: v.StringSchema<undefined>;
904
+ }, undefined>;
905
+ readonly response: v.ObjectSchema<{
906
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
907
+ }, undefined>;
908
+ };
909
+ readonly updateAccountStatus: {
910
+ readonly method: "POST";
911
+ readonly path: "/accounts/update-status";
912
+ readonly kind: "data";
913
+ readonly body: v.ObjectSchema<{
914
+ readonly userId: v.StringSchema<undefined>;
915
+ readonly status: v.PicklistSchema<["active", "suspended", "deleted"], undefined>;
916
+ readonly actorUserId: v.StringSchema<undefined>;
917
+ readonly systemTenantId: v.StringSchema<undefined>;
918
+ }, undefined>;
919
+ readonly response: v.ObjectSchema<{
920
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
921
+ }, undefined>;
922
+ };
923
+ readonly resetAccountCredentials: {
924
+ readonly method: "POST";
925
+ readonly path: "/accounts/reset-credentials";
926
+ readonly kind: "data";
927
+ readonly body: v.ObjectSchema<{
928
+ readonly userId: v.StringSchema<undefined>;
929
+ readonly credentialType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
930
+ readonly actorUserId: v.StringSchema<undefined>;
931
+ readonly systemTenantId: v.StringSchema<undefined>;
932
+ }, undefined>;
933
+ readonly response: v.ObjectSchema<{
934
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
935
+ }, undefined>;
936
+ };
937
+ readonly removeAccount: {
938
+ readonly method: "POST";
939
+ readonly path: "/accounts/remove";
940
+ readonly kind: "data";
941
+ readonly body: v.ObjectSchema<{
942
+ readonly userId: v.StringSchema<undefined>;
943
+ readonly actorUserId: v.StringSchema<undefined>;
944
+ readonly systemTenantId: v.StringSchema<undefined>;
945
+ }, undefined>;
946
+ readonly response: v.ObjectSchema<{
947
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
948
+ }, undefined>;
949
+ };
950
+ };
951
+ export * as internalResponses from './responses';
952
+ //# sourceMappingURL=index.d.ts.map