@deepintel-ltd/buildlink-api-contracts 0.2.31 → 0.2.34

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 (152) hide show
  1. package/README.md +1 -1
  2. package/contracts/auth.d.ts.map +1 -1
  3. package/contracts/auth.js.map +1 -1
  4. package/contracts/budget.d.ts +824 -6481
  5. package/contracts/budget.d.ts.map +1 -1
  6. package/contracts/budget.js +1 -286
  7. package/contracts/budget.js.map +1 -1
  8. package/contracts/commercial.d.ts +1 -241
  9. package/contracts/commercial.d.ts.map +1 -1
  10. package/contracts/commercial.js +2 -13
  11. package/contracts/commercial.js.map +1 -1
  12. package/contracts/communication.d.ts +1014 -1890
  13. package/contracts/communication.d.ts.map +1 -1
  14. package/contracts/communication.js +1 -65
  15. package/contracts/communication.js.map +1 -1
  16. package/contracts/daily-logs.d.ts +560 -0
  17. package/contracts/daily-logs.d.ts.map +1 -1
  18. package/contracts/deficiencies.d.ts +0 -375
  19. package/contracts/deficiencies.d.ts.map +1 -1
  20. package/contracts/deficiencies.js +1 -14
  21. package/contracts/deficiencies.js.map +1 -1
  22. package/contracts/directory.d.ts +0 -327
  23. package/contracts/directory.d.ts.map +1 -1
  24. package/contracts/directory.js +1 -18
  25. package/contracts/directory.js.map +1 -1
  26. package/contracts/documents.d.ts +391 -3437
  27. package/contracts/documents.d.ts.map +1 -1
  28. package/contracts/documents.js +0 -144
  29. package/contracts/documents.js.map +1 -1
  30. package/contracts/drawings.d.ts +441 -2313
  31. package/contracts/drawings.d.ts.map +1 -1
  32. package/contracts/drawings.js +1 -98
  33. package/contracts/drawings.js.map +1 -1
  34. package/contracts/index.d.ts +5 -3
  35. package/contracts/index.d.ts.map +1 -1
  36. package/contracts/index.js +3 -0
  37. package/contracts/index.js.map +1 -1
  38. package/contracts/material-index.d.ts +335 -13
  39. package/contracts/material-index.d.ts.map +1 -1
  40. package/contracts/material-index.js +12 -1
  41. package/contracts/material-index.js.map +1 -1
  42. package/contracts/meetings.d.ts +3845 -129
  43. package/contracts/meetings.d.ts.map +1 -1
  44. package/contracts/meetings.js +53 -1
  45. package/contracts/meetings.js.map +1 -1
  46. package/contracts/monitoring.d.ts +1133 -0
  47. package/contracts/monitoring.d.ts.map +1 -1
  48. package/contracts/monitoring.js +48 -1
  49. package/contracts/monitoring.js.map +1 -1
  50. package/contracts/projects.d.ts +435 -1106
  51. package/contracts/projects.d.ts.map +1 -1
  52. package/contracts/projects.js +0 -101
  53. package/contracts/projects.js.map +1 -1
  54. package/contracts/proof.d.ts +322 -0
  55. package/contracts/proof.d.ts.map +1 -1
  56. package/contracts/proof.js +14 -1
  57. package/contracts/proof.js.map +1 -1
  58. package/contracts/qaqc.d.ts +874 -0
  59. package/contracts/qaqc.d.ts.map +1 -1
  60. package/contracts/qaqc.js +13 -1
  61. package/contracts/qaqc.js.map +1 -1
  62. package/contracts/rbac.d.ts.map +1 -1
  63. package/contracts/rbac.js.map +1 -1
  64. package/contracts/reports.d.ts +72 -0
  65. package/contracts/reports.d.ts.map +1 -1
  66. package/contracts/resources.d.ts +1243 -5148
  67. package/contracts/resources.d.ts.map +1 -1
  68. package/contracts/resources.js +1 -245
  69. package/contracts/resources.js.map +1 -1
  70. package/contracts/safety.d.ts +176 -3685
  71. package/contracts/safety.d.ts.map +1 -1
  72. package/contracts/safety.js +1 -238
  73. package/contracts/safety.js.map +1 -1
  74. package/contracts/schedule.d.ts +517 -1468
  75. package/contracts/schedule.d.ts.map +1 -1
  76. package/contracts/schedule.js +1 -65
  77. package/contracts/schedule.js.map +1 -1
  78. package/contracts/specifications.d.ts +2744 -393
  79. package/contracts/specifications.d.ts.map +1 -1
  80. package/contracts/specifications.js +49 -10
  81. package/contracts/specifications.js.map +1 -1
  82. package/contracts/tasks.d.ts +2653 -3922
  83. package/contracts/tasks.d.ts.map +1 -1
  84. package/contracts/tasks.js +1 -149
  85. package/contracts/tasks.js.map +1 -1
  86. package/contracts/transmittals.d.ts +980 -0
  87. package/contracts/transmittals.d.ts.map +1 -1
  88. package/contracts/user-admin.d.ts +2635 -0
  89. package/contracts/user-admin.d.ts.map +1 -0
  90. package/contracts/user-admin.js +73 -0
  91. package/contracts/user-admin.js.map +1 -0
  92. package/package.json +6 -1
  93. package/schemas/budget.d.ts +149 -0
  94. package/schemas/budget.d.ts.map +1 -1
  95. package/schemas/budget.js +13 -0
  96. package/schemas/budget.js.map +1 -1
  97. package/schemas/communication.d.ts +94 -0
  98. package/schemas/communication.d.ts.map +1 -1
  99. package/schemas/communication.js +2 -0
  100. package/schemas/communication.js.map +1 -1
  101. package/schemas/daily-logs.d.ts +92 -0
  102. package/schemas/daily-logs.d.ts.map +1 -1
  103. package/schemas/daily-logs.js +1 -0
  104. package/schemas/daily-logs.js.map +1 -1
  105. package/schemas/documents.d.ts +49 -11
  106. package/schemas/documents.d.ts.map +1 -1
  107. package/schemas/documents.js +2 -1
  108. package/schemas/documents.js.map +1 -1
  109. package/schemas/drawings.d.ts +24 -24
  110. package/schemas/material-index.d.ts +116 -18
  111. package/schemas/material-index.d.ts.map +1 -1
  112. package/schemas/material-index.js +47 -3
  113. package/schemas/material-index.js.map +1 -1
  114. package/schemas/meetings.d.ts +641 -12
  115. package/schemas/meetings.d.ts.map +1 -1
  116. package/schemas/meetings.js +29 -1
  117. package/schemas/meetings.js.map +1 -1
  118. package/schemas/proof.d.ts +161 -0
  119. package/schemas/proof.d.ts.map +1 -1
  120. package/schemas/proof.js +17 -1
  121. package/schemas/proof.js.map +1 -1
  122. package/schemas/qaqc.d.ts +335 -0
  123. package/schemas/qaqc.d.ts.map +1 -1
  124. package/schemas/qaqc.js +16 -1
  125. package/schemas/qaqc.js.map +1 -1
  126. package/schemas/reports.d.ts +36 -0
  127. package/schemas/reports.d.ts.map +1 -1
  128. package/schemas/reports.js +4 -0
  129. package/schemas/reports.js.map +1 -1
  130. package/schemas/resources.d.ts +108 -0
  131. package/schemas/resources.d.ts.map +1 -1
  132. package/schemas/resources.js +2 -1
  133. package/schemas/resources.js.map +1 -1
  134. package/schemas/safety.d.ts +8 -8
  135. package/schemas/schedule.d.ts +232 -0
  136. package/schemas/schedule.d.ts.map +1 -1
  137. package/schemas/schedule.js +2 -1
  138. package/schemas/schedule.js.map +1 -1
  139. package/schemas/specifications.d.ts +542 -17
  140. package/schemas/specifications.d.ts.map +1 -1
  141. package/schemas/specifications.js +31 -7
  142. package/schemas/specifications.js.map +1 -1
  143. package/schemas/tasks.d.ts +58 -4
  144. package/schemas/tasks.d.ts.map +1 -1
  145. package/schemas/transmittals.d.ts +184 -0
  146. package/schemas/transmittals.d.ts.map +1 -1
  147. package/schemas/transmittals.js +3 -1
  148. package/schemas/transmittals.js.map +1 -1
  149. package/schemas/user-admin.d.ts +255 -0
  150. package/schemas/user-admin.d.ts.map +1 -0
  151. package/schemas/user-admin.js +50 -0
  152. package/schemas/user-admin.js.map +1 -0
@@ -0,0 +1,2635 @@
1
+ import { z } from 'zod';
2
+ /** Company user administration. Always scoped to the caller's company; needs MANAGE_USERS. */
3
+ export declare const userAdminContract: {
4
+ listUsers: {
5
+ query: z.ZodObject<{
6
+ page: z.ZodDefault<z.ZodNumber>;
7
+ size: z.ZodDefault<z.ZodNumber>;
8
+ search: z.ZodOptional<z.ZodString>;
9
+ role: z.ZodOptional<z.ZodEnum<["COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>>;
10
+ status: z.ZodDefault<z.ZodEnum<["active", "inactive", "all"]>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ status: "active" | "inactive" | "all";
13
+ page: number;
14
+ size: number;
15
+ role?: "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR" | undefined;
16
+ search?: string | undefined;
17
+ }, {
18
+ status?: "active" | "inactive" | "all" | undefined;
19
+ page?: number | undefined;
20
+ size?: number | undefined;
21
+ role?: "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR" | undefined;
22
+ search?: string | undefined;
23
+ }>;
24
+ summary: "List the company users (paginated, searchable by name or email)";
25
+ method: "GET";
26
+ path: "/company/users";
27
+ responses: {
28
+ 400: z.ZodObject<{
29
+ errors: z.ZodArray<z.ZodObject<{
30
+ status: z.ZodString;
31
+ title: z.ZodString;
32
+ detail: z.ZodOptional<z.ZodString>;
33
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ status: string;
36
+ title: string;
37
+ detail?: string | undefined;
38
+ meta?: Record<string, unknown> | undefined;
39
+ }, {
40
+ status: string;
41
+ title: string;
42
+ detail?: string | undefined;
43
+ meta?: Record<string, unknown> | undefined;
44
+ }>, "many">;
45
+ }, "strip", z.ZodTypeAny, {
46
+ errors: {
47
+ status: string;
48
+ title: string;
49
+ detail?: string | undefined;
50
+ meta?: Record<string, unknown> | undefined;
51
+ }[];
52
+ }, {
53
+ errors: {
54
+ status: string;
55
+ title: string;
56
+ detail?: string | undefined;
57
+ meta?: Record<string, unknown> | undefined;
58
+ }[];
59
+ }>;
60
+ 401: z.ZodObject<{
61
+ errors: z.ZodArray<z.ZodObject<{
62
+ status: z.ZodString;
63
+ title: z.ZodString;
64
+ detail: z.ZodOptional<z.ZodString>;
65
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ status: string;
68
+ title: string;
69
+ detail?: string | undefined;
70
+ meta?: Record<string, unknown> | undefined;
71
+ }, {
72
+ status: string;
73
+ title: string;
74
+ detail?: string | undefined;
75
+ meta?: Record<string, unknown> | undefined;
76
+ }>, "many">;
77
+ }, "strip", z.ZodTypeAny, {
78
+ errors: {
79
+ status: string;
80
+ title: string;
81
+ detail?: string | undefined;
82
+ meta?: Record<string, unknown> | undefined;
83
+ }[];
84
+ }, {
85
+ errors: {
86
+ status: string;
87
+ title: string;
88
+ detail?: string | undefined;
89
+ meta?: Record<string, unknown> | undefined;
90
+ }[];
91
+ }>;
92
+ 403: z.ZodObject<{
93
+ errors: z.ZodArray<z.ZodObject<{
94
+ status: z.ZodString;
95
+ title: z.ZodString;
96
+ detail: z.ZodOptional<z.ZodString>;
97
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ status: string;
100
+ title: string;
101
+ detail?: string | undefined;
102
+ meta?: Record<string, unknown> | undefined;
103
+ }, {
104
+ status: string;
105
+ title: string;
106
+ detail?: string | undefined;
107
+ meta?: Record<string, unknown> | undefined;
108
+ }>, "many">;
109
+ }, "strip", z.ZodTypeAny, {
110
+ errors: {
111
+ status: string;
112
+ title: string;
113
+ detail?: string | undefined;
114
+ meta?: Record<string, unknown> | undefined;
115
+ }[];
116
+ }, {
117
+ errors: {
118
+ status: string;
119
+ title: string;
120
+ detail?: string | undefined;
121
+ meta?: Record<string, unknown> | undefined;
122
+ }[];
123
+ }>;
124
+ 404: z.ZodObject<{
125
+ errors: z.ZodArray<z.ZodObject<{
126
+ status: z.ZodString;
127
+ title: z.ZodString;
128
+ detail: z.ZodOptional<z.ZodString>;
129
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ status: string;
132
+ title: string;
133
+ detail?: string | undefined;
134
+ meta?: Record<string, unknown> | undefined;
135
+ }, {
136
+ status: string;
137
+ title: string;
138
+ detail?: string | undefined;
139
+ meta?: Record<string, unknown> | undefined;
140
+ }>, "many">;
141
+ }, "strip", z.ZodTypeAny, {
142
+ errors: {
143
+ status: string;
144
+ title: string;
145
+ detail?: string | undefined;
146
+ meta?: Record<string, unknown> | undefined;
147
+ }[];
148
+ }, {
149
+ errors: {
150
+ status: string;
151
+ title: string;
152
+ detail?: string | undefined;
153
+ meta?: Record<string, unknown> | undefined;
154
+ }[];
155
+ }>;
156
+ 409: z.ZodObject<{
157
+ errors: z.ZodArray<z.ZodObject<{
158
+ status: z.ZodString;
159
+ title: z.ZodString;
160
+ detail: z.ZodOptional<z.ZodString>;
161
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ status: string;
164
+ title: string;
165
+ detail?: string | undefined;
166
+ meta?: Record<string, unknown> | undefined;
167
+ }, {
168
+ status: string;
169
+ title: string;
170
+ detail?: string | undefined;
171
+ meta?: Record<string, unknown> | undefined;
172
+ }>, "many">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ errors: {
175
+ status: string;
176
+ title: string;
177
+ detail?: string | undefined;
178
+ meta?: Record<string, unknown> | undefined;
179
+ }[];
180
+ }, {
181
+ errors: {
182
+ status: string;
183
+ title: string;
184
+ detail?: string | undefined;
185
+ meta?: Record<string, unknown> | undefined;
186
+ }[];
187
+ }>;
188
+ 200: z.ZodObject<{
189
+ data: z.ZodArray<z.ZodObject<{
190
+ type: z.ZodLiteral<"company-users">;
191
+ id: z.ZodString;
192
+ attributes: z.ZodObject<{
193
+ id: z.ZodString;
194
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ email: z.ZodOptional<z.ZodString>;
197
+ name: z.ZodOptional<z.ZodString>;
198
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ } & {
200
+ role: z.ZodEnum<["SUPER_ADMIN", "COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
201
+ roleDisplayName: z.ZodString;
202
+ isActive: z.ZodBoolean;
203
+ isOwner: z.ZodBoolean;
204
+ lastLoginAt: z.ZodNullable<z.ZodString>;
205
+ joinedAt: z.ZodString;
206
+ }, "strip", z.ZodTypeAny, {
207
+ id: string;
208
+ isActive: boolean;
209
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
210
+ lastLoginAt: string | null;
211
+ joinedAt: string;
212
+ roleDisplayName: string;
213
+ isOwner: boolean;
214
+ firstName?: string | null | undefined;
215
+ lastName?: string | null | undefined;
216
+ email?: string | undefined;
217
+ name?: string | undefined;
218
+ avatar?: string | null | undefined;
219
+ }, {
220
+ id: string;
221
+ isActive: boolean;
222
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
223
+ lastLoginAt: string | null;
224
+ joinedAt: string;
225
+ roleDisplayName: string;
226
+ isOwner: boolean;
227
+ firstName?: string | null | undefined;
228
+ lastName?: string | null | undefined;
229
+ email?: string | undefined;
230
+ name?: string | undefined;
231
+ avatar?: string | null | undefined;
232
+ }>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ id: string;
235
+ type: "company-users";
236
+ attributes: {
237
+ id: string;
238
+ isActive: boolean;
239
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
240
+ lastLoginAt: string | null;
241
+ joinedAt: string;
242
+ roleDisplayName: string;
243
+ isOwner: boolean;
244
+ firstName?: string | null | undefined;
245
+ lastName?: string | null | undefined;
246
+ email?: string | undefined;
247
+ name?: string | undefined;
248
+ avatar?: string | null | undefined;
249
+ };
250
+ }, {
251
+ id: string;
252
+ type: "company-users";
253
+ attributes: {
254
+ id: string;
255
+ isActive: boolean;
256
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
257
+ lastLoginAt: string | null;
258
+ joinedAt: string;
259
+ roleDisplayName: string;
260
+ isOwner: boolean;
261
+ firstName?: string | null | undefined;
262
+ lastName?: string | null | undefined;
263
+ email?: string | undefined;
264
+ name?: string | undefined;
265
+ avatar?: string | null | undefined;
266
+ };
267
+ }>, "many">;
268
+ meta: z.ZodOptional<z.ZodObject<{
269
+ total: z.ZodOptional<z.ZodNumber>;
270
+ page: z.ZodOptional<z.ZodNumber>;
271
+ size: z.ZodOptional<z.ZodNumber>;
272
+ pages: z.ZodOptional<z.ZodNumber>;
273
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
274
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ page?: number | undefined;
277
+ total?: number | undefined;
278
+ size?: number | undefined;
279
+ pages?: number | undefined;
280
+ hasNextPage?: boolean | undefined;
281
+ hasPreviousPage?: boolean | undefined;
282
+ }, {
283
+ page?: number | undefined;
284
+ total?: number | undefined;
285
+ size?: number | undefined;
286
+ pages?: number | undefined;
287
+ hasNextPage?: boolean | undefined;
288
+ hasPreviousPage?: boolean | undefined;
289
+ }>>;
290
+ links: z.ZodOptional<z.ZodObject<{
291
+ self: z.ZodString;
292
+ first: z.ZodOptional<z.ZodString>;
293
+ last: z.ZodOptional<z.ZodString>;
294
+ prev: z.ZodOptional<z.ZodString>;
295
+ next: z.ZodOptional<z.ZodString>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ self: string;
298
+ first?: string | undefined;
299
+ last?: string | undefined;
300
+ prev?: string | undefined;
301
+ next?: string | undefined;
302
+ }, {
303
+ self: string;
304
+ first?: string | undefined;
305
+ last?: string | undefined;
306
+ prev?: string | undefined;
307
+ next?: string | undefined;
308
+ }>>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ data: {
311
+ id: string;
312
+ type: "company-users";
313
+ attributes: {
314
+ id: string;
315
+ isActive: boolean;
316
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
317
+ lastLoginAt: string | null;
318
+ joinedAt: string;
319
+ roleDisplayName: string;
320
+ isOwner: boolean;
321
+ firstName?: string | null | undefined;
322
+ lastName?: string | null | undefined;
323
+ email?: string | undefined;
324
+ name?: string | undefined;
325
+ avatar?: string | null | undefined;
326
+ };
327
+ }[];
328
+ meta?: {
329
+ page?: number | undefined;
330
+ total?: number | undefined;
331
+ size?: number | undefined;
332
+ pages?: number | undefined;
333
+ hasNextPage?: boolean | undefined;
334
+ hasPreviousPage?: boolean | undefined;
335
+ } | undefined;
336
+ links?: {
337
+ self: string;
338
+ first?: string | undefined;
339
+ last?: string | undefined;
340
+ prev?: string | undefined;
341
+ next?: string | undefined;
342
+ } | undefined;
343
+ }, {
344
+ data: {
345
+ id: string;
346
+ type: "company-users";
347
+ attributes: {
348
+ id: string;
349
+ isActive: boolean;
350
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
351
+ lastLoginAt: string | null;
352
+ joinedAt: string;
353
+ roleDisplayName: string;
354
+ isOwner: boolean;
355
+ firstName?: string | null | undefined;
356
+ lastName?: string | null | undefined;
357
+ email?: string | undefined;
358
+ name?: string | undefined;
359
+ avatar?: string | null | undefined;
360
+ };
361
+ }[];
362
+ meta?: {
363
+ page?: number | undefined;
364
+ total?: number | undefined;
365
+ size?: number | undefined;
366
+ pages?: number | undefined;
367
+ hasNextPage?: boolean | undefined;
368
+ hasPreviousPage?: boolean | undefined;
369
+ } | undefined;
370
+ links?: {
371
+ self: string;
372
+ first?: string | undefined;
373
+ last?: string | undefined;
374
+ prev?: string | undefined;
375
+ next?: string | undefined;
376
+ } | undefined;
377
+ }>;
378
+ };
379
+ };
380
+ listInvitations: {
381
+ summary: "Pending (unused, unexpired) invitations of the company";
382
+ method: "GET";
383
+ path: "/company/users/invitations";
384
+ responses: {
385
+ 400: z.ZodObject<{
386
+ errors: z.ZodArray<z.ZodObject<{
387
+ status: z.ZodString;
388
+ title: z.ZodString;
389
+ detail: z.ZodOptional<z.ZodString>;
390
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ status: string;
393
+ title: string;
394
+ detail?: string | undefined;
395
+ meta?: Record<string, unknown> | undefined;
396
+ }, {
397
+ status: string;
398
+ title: string;
399
+ detail?: string | undefined;
400
+ meta?: Record<string, unknown> | undefined;
401
+ }>, "many">;
402
+ }, "strip", z.ZodTypeAny, {
403
+ errors: {
404
+ status: string;
405
+ title: string;
406
+ detail?: string | undefined;
407
+ meta?: Record<string, unknown> | undefined;
408
+ }[];
409
+ }, {
410
+ errors: {
411
+ status: string;
412
+ title: string;
413
+ detail?: string | undefined;
414
+ meta?: Record<string, unknown> | undefined;
415
+ }[];
416
+ }>;
417
+ 401: z.ZodObject<{
418
+ errors: z.ZodArray<z.ZodObject<{
419
+ status: z.ZodString;
420
+ title: z.ZodString;
421
+ detail: z.ZodOptional<z.ZodString>;
422
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ status: string;
425
+ title: string;
426
+ detail?: string | undefined;
427
+ meta?: Record<string, unknown> | undefined;
428
+ }, {
429
+ status: string;
430
+ title: string;
431
+ detail?: string | undefined;
432
+ meta?: Record<string, unknown> | undefined;
433
+ }>, "many">;
434
+ }, "strip", z.ZodTypeAny, {
435
+ errors: {
436
+ status: string;
437
+ title: string;
438
+ detail?: string | undefined;
439
+ meta?: Record<string, unknown> | undefined;
440
+ }[];
441
+ }, {
442
+ errors: {
443
+ status: string;
444
+ title: string;
445
+ detail?: string | undefined;
446
+ meta?: Record<string, unknown> | undefined;
447
+ }[];
448
+ }>;
449
+ 403: z.ZodObject<{
450
+ errors: z.ZodArray<z.ZodObject<{
451
+ status: z.ZodString;
452
+ title: z.ZodString;
453
+ detail: z.ZodOptional<z.ZodString>;
454
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ status: string;
457
+ title: string;
458
+ detail?: string | undefined;
459
+ meta?: Record<string, unknown> | undefined;
460
+ }, {
461
+ status: string;
462
+ title: string;
463
+ detail?: string | undefined;
464
+ meta?: Record<string, unknown> | undefined;
465
+ }>, "many">;
466
+ }, "strip", z.ZodTypeAny, {
467
+ errors: {
468
+ status: string;
469
+ title: string;
470
+ detail?: string | undefined;
471
+ meta?: Record<string, unknown> | undefined;
472
+ }[];
473
+ }, {
474
+ errors: {
475
+ status: string;
476
+ title: string;
477
+ detail?: string | undefined;
478
+ meta?: Record<string, unknown> | undefined;
479
+ }[];
480
+ }>;
481
+ 404: z.ZodObject<{
482
+ errors: z.ZodArray<z.ZodObject<{
483
+ status: z.ZodString;
484
+ title: z.ZodString;
485
+ detail: z.ZodOptional<z.ZodString>;
486
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ status: string;
489
+ title: string;
490
+ detail?: string | undefined;
491
+ meta?: Record<string, unknown> | undefined;
492
+ }, {
493
+ status: string;
494
+ title: string;
495
+ detail?: string | undefined;
496
+ meta?: Record<string, unknown> | undefined;
497
+ }>, "many">;
498
+ }, "strip", z.ZodTypeAny, {
499
+ errors: {
500
+ status: string;
501
+ title: string;
502
+ detail?: string | undefined;
503
+ meta?: Record<string, unknown> | undefined;
504
+ }[];
505
+ }, {
506
+ errors: {
507
+ status: string;
508
+ title: string;
509
+ detail?: string | undefined;
510
+ meta?: Record<string, unknown> | undefined;
511
+ }[];
512
+ }>;
513
+ 409: z.ZodObject<{
514
+ errors: z.ZodArray<z.ZodObject<{
515
+ status: z.ZodString;
516
+ title: z.ZodString;
517
+ detail: z.ZodOptional<z.ZodString>;
518
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ status: string;
521
+ title: string;
522
+ detail?: string | undefined;
523
+ meta?: Record<string, unknown> | undefined;
524
+ }, {
525
+ status: string;
526
+ title: string;
527
+ detail?: string | undefined;
528
+ meta?: Record<string, unknown> | undefined;
529
+ }>, "many">;
530
+ }, "strip", z.ZodTypeAny, {
531
+ errors: {
532
+ status: string;
533
+ title: string;
534
+ detail?: string | undefined;
535
+ meta?: Record<string, unknown> | undefined;
536
+ }[];
537
+ }, {
538
+ errors: {
539
+ status: string;
540
+ title: string;
541
+ detail?: string | undefined;
542
+ meta?: Record<string, unknown> | undefined;
543
+ }[];
544
+ }>;
545
+ 200: z.ZodObject<{
546
+ data: z.ZodArray<z.ZodObject<{
547
+ type: z.ZodLiteral<"company-invitations">;
548
+ id: z.ZodString;
549
+ attributes: z.ZodObject<{
550
+ email: z.ZodString;
551
+ role: z.ZodEnum<["SUPER_ADMIN", "COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
552
+ status: z.ZodLiteral<"PENDING">;
553
+ invitedById: z.ZodString;
554
+ message: z.ZodNullable<z.ZodString>;
555
+ createdAt: z.ZodString;
556
+ expiresAt: z.ZodString;
557
+ resent: z.ZodBoolean;
558
+ }, "strip", z.ZodTypeAny, {
559
+ createdAt: string;
560
+ message: string | null;
561
+ status: "PENDING";
562
+ email: string;
563
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
564
+ expiresAt: string;
565
+ invitedById: string;
566
+ resent: boolean;
567
+ }, {
568
+ createdAt: string;
569
+ message: string | null;
570
+ status: "PENDING";
571
+ email: string;
572
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
573
+ expiresAt: string;
574
+ invitedById: string;
575
+ resent: boolean;
576
+ }>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ id: string;
579
+ type: "company-invitations";
580
+ attributes: {
581
+ createdAt: string;
582
+ message: string | null;
583
+ status: "PENDING";
584
+ email: string;
585
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
586
+ expiresAt: string;
587
+ invitedById: string;
588
+ resent: boolean;
589
+ };
590
+ }, {
591
+ id: string;
592
+ type: "company-invitations";
593
+ attributes: {
594
+ createdAt: string;
595
+ message: string | null;
596
+ status: "PENDING";
597
+ email: string;
598
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
599
+ expiresAt: string;
600
+ invitedById: string;
601
+ resent: boolean;
602
+ };
603
+ }>, "many">;
604
+ meta: z.ZodOptional<z.ZodObject<{
605
+ total: z.ZodOptional<z.ZodNumber>;
606
+ page: z.ZodOptional<z.ZodNumber>;
607
+ size: z.ZodOptional<z.ZodNumber>;
608
+ pages: z.ZodOptional<z.ZodNumber>;
609
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
610
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ page?: number | undefined;
613
+ total?: number | undefined;
614
+ size?: number | undefined;
615
+ pages?: number | undefined;
616
+ hasNextPage?: boolean | undefined;
617
+ hasPreviousPage?: boolean | undefined;
618
+ }, {
619
+ page?: number | undefined;
620
+ total?: number | undefined;
621
+ size?: number | undefined;
622
+ pages?: number | undefined;
623
+ hasNextPage?: boolean | undefined;
624
+ hasPreviousPage?: boolean | undefined;
625
+ }>>;
626
+ links: z.ZodOptional<z.ZodObject<{
627
+ self: z.ZodString;
628
+ first: z.ZodOptional<z.ZodString>;
629
+ last: z.ZodOptional<z.ZodString>;
630
+ prev: z.ZodOptional<z.ZodString>;
631
+ next: z.ZodOptional<z.ZodString>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ self: string;
634
+ first?: string | undefined;
635
+ last?: string | undefined;
636
+ prev?: string | undefined;
637
+ next?: string | undefined;
638
+ }, {
639
+ self: string;
640
+ first?: string | undefined;
641
+ last?: string | undefined;
642
+ prev?: string | undefined;
643
+ next?: string | undefined;
644
+ }>>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ data: {
647
+ id: string;
648
+ type: "company-invitations";
649
+ attributes: {
650
+ createdAt: string;
651
+ message: string | null;
652
+ status: "PENDING";
653
+ email: string;
654
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
655
+ expiresAt: string;
656
+ invitedById: string;
657
+ resent: boolean;
658
+ };
659
+ }[];
660
+ meta?: {
661
+ page?: number | undefined;
662
+ total?: number | undefined;
663
+ size?: number | undefined;
664
+ pages?: number | undefined;
665
+ hasNextPage?: boolean | undefined;
666
+ hasPreviousPage?: boolean | undefined;
667
+ } | undefined;
668
+ links?: {
669
+ self: string;
670
+ first?: string | undefined;
671
+ last?: string | undefined;
672
+ prev?: string | undefined;
673
+ next?: string | undefined;
674
+ } | undefined;
675
+ }, {
676
+ data: {
677
+ id: string;
678
+ type: "company-invitations";
679
+ attributes: {
680
+ createdAt: string;
681
+ message: string | null;
682
+ status: "PENDING";
683
+ email: string;
684
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
685
+ expiresAt: string;
686
+ invitedById: string;
687
+ resent: boolean;
688
+ };
689
+ }[];
690
+ meta?: {
691
+ page?: number | undefined;
692
+ total?: number | undefined;
693
+ size?: number | undefined;
694
+ pages?: number | undefined;
695
+ hasNextPage?: boolean | undefined;
696
+ hasPreviousPage?: boolean | undefined;
697
+ } | undefined;
698
+ links?: {
699
+ self: string;
700
+ first?: string | undefined;
701
+ last?: string | undefined;
702
+ prev?: string | undefined;
703
+ next?: string | undefined;
704
+ } | undefined;
705
+ }>;
706
+ };
707
+ };
708
+ inviteUser: {
709
+ summary: "Invite an email address with a role (idempotent per pending invitation)";
710
+ method: "POST";
711
+ body: z.ZodObject<{
712
+ email: z.ZodString;
713
+ role: z.ZodEnum<["COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
714
+ message: z.ZodOptional<z.ZodString>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ email: string;
717
+ role: "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
718
+ message?: string | undefined;
719
+ }, {
720
+ email: string;
721
+ role: "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
722
+ message?: string | undefined;
723
+ }>;
724
+ path: "/company/users/invitations";
725
+ responses: {
726
+ 400: z.ZodObject<{
727
+ errors: z.ZodArray<z.ZodObject<{
728
+ status: z.ZodString;
729
+ title: z.ZodString;
730
+ detail: z.ZodOptional<z.ZodString>;
731
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
732
+ }, "strip", z.ZodTypeAny, {
733
+ status: string;
734
+ title: string;
735
+ detail?: string | undefined;
736
+ meta?: Record<string, unknown> | undefined;
737
+ }, {
738
+ status: string;
739
+ title: string;
740
+ detail?: string | undefined;
741
+ meta?: Record<string, unknown> | undefined;
742
+ }>, "many">;
743
+ }, "strip", z.ZodTypeAny, {
744
+ errors: {
745
+ status: string;
746
+ title: string;
747
+ detail?: string | undefined;
748
+ meta?: Record<string, unknown> | undefined;
749
+ }[];
750
+ }, {
751
+ errors: {
752
+ status: string;
753
+ title: string;
754
+ detail?: string | undefined;
755
+ meta?: Record<string, unknown> | undefined;
756
+ }[];
757
+ }>;
758
+ 401: z.ZodObject<{
759
+ errors: z.ZodArray<z.ZodObject<{
760
+ status: z.ZodString;
761
+ title: z.ZodString;
762
+ detail: z.ZodOptional<z.ZodString>;
763
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ status: string;
766
+ title: string;
767
+ detail?: string | undefined;
768
+ meta?: Record<string, unknown> | undefined;
769
+ }, {
770
+ status: string;
771
+ title: string;
772
+ detail?: string | undefined;
773
+ meta?: Record<string, unknown> | undefined;
774
+ }>, "many">;
775
+ }, "strip", z.ZodTypeAny, {
776
+ errors: {
777
+ status: string;
778
+ title: string;
779
+ detail?: string | undefined;
780
+ meta?: Record<string, unknown> | undefined;
781
+ }[];
782
+ }, {
783
+ errors: {
784
+ status: string;
785
+ title: string;
786
+ detail?: string | undefined;
787
+ meta?: Record<string, unknown> | undefined;
788
+ }[];
789
+ }>;
790
+ 403: z.ZodObject<{
791
+ errors: z.ZodArray<z.ZodObject<{
792
+ status: z.ZodString;
793
+ title: z.ZodString;
794
+ detail: z.ZodOptional<z.ZodString>;
795
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ status: string;
798
+ title: string;
799
+ detail?: string | undefined;
800
+ meta?: Record<string, unknown> | undefined;
801
+ }, {
802
+ status: string;
803
+ title: string;
804
+ detail?: string | undefined;
805
+ meta?: Record<string, unknown> | undefined;
806
+ }>, "many">;
807
+ }, "strip", z.ZodTypeAny, {
808
+ errors: {
809
+ status: string;
810
+ title: string;
811
+ detail?: string | undefined;
812
+ meta?: Record<string, unknown> | undefined;
813
+ }[];
814
+ }, {
815
+ errors: {
816
+ status: string;
817
+ title: string;
818
+ detail?: string | undefined;
819
+ meta?: Record<string, unknown> | undefined;
820
+ }[];
821
+ }>;
822
+ 404: z.ZodObject<{
823
+ errors: z.ZodArray<z.ZodObject<{
824
+ status: z.ZodString;
825
+ title: z.ZodString;
826
+ detail: z.ZodOptional<z.ZodString>;
827
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
828
+ }, "strip", z.ZodTypeAny, {
829
+ status: string;
830
+ title: string;
831
+ detail?: string | undefined;
832
+ meta?: Record<string, unknown> | undefined;
833
+ }, {
834
+ status: string;
835
+ title: string;
836
+ detail?: string | undefined;
837
+ meta?: Record<string, unknown> | undefined;
838
+ }>, "many">;
839
+ }, "strip", z.ZodTypeAny, {
840
+ errors: {
841
+ status: string;
842
+ title: string;
843
+ detail?: string | undefined;
844
+ meta?: Record<string, unknown> | undefined;
845
+ }[];
846
+ }, {
847
+ errors: {
848
+ status: string;
849
+ title: string;
850
+ detail?: string | undefined;
851
+ meta?: Record<string, unknown> | undefined;
852
+ }[];
853
+ }>;
854
+ 409: z.ZodObject<{
855
+ errors: z.ZodArray<z.ZodObject<{
856
+ status: z.ZodString;
857
+ title: z.ZodString;
858
+ detail: z.ZodOptional<z.ZodString>;
859
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ status: string;
862
+ title: string;
863
+ detail?: string | undefined;
864
+ meta?: Record<string, unknown> | undefined;
865
+ }, {
866
+ status: string;
867
+ title: string;
868
+ detail?: string | undefined;
869
+ meta?: Record<string, unknown> | undefined;
870
+ }>, "many">;
871
+ }, "strip", z.ZodTypeAny, {
872
+ errors: {
873
+ status: string;
874
+ title: string;
875
+ detail?: string | undefined;
876
+ meta?: Record<string, unknown> | undefined;
877
+ }[];
878
+ }, {
879
+ errors: {
880
+ status: string;
881
+ title: string;
882
+ detail?: string | undefined;
883
+ meta?: Record<string, unknown> | undefined;
884
+ }[];
885
+ }>;
886
+ 200: z.ZodObject<{
887
+ data: z.ZodObject<{
888
+ type: z.ZodLiteral<"company-invitations">;
889
+ id: z.ZodString;
890
+ attributes: z.ZodObject<{
891
+ email: z.ZodString;
892
+ role: z.ZodEnum<["SUPER_ADMIN", "COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
893
+ status: z.ZodLiteral<"PENDING">;
894
+ invitedById: z.ZodString;
895
+ message: z.ZodNullable<z.ZodString>;
896
+ createdAt: z.ZodString;
897
+ expiresAt: z.ZodString;
898
+ resent: z.ZodBoolean;
899
+ }, "strip", z.ZodTypeAny, {
900
+ createdAt: string;
901
+ message: string | null;
902
+ status: "PENDING";
903
+ email: string;
904
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
905
+ expiresAt: string;
906
+ invitedById: string;
907
+ resent: boolean;
908
+ }, {
909
+ createdAt: string;
910
+ message: string | null;
911
+ status: "PENDING";
912
+ email: string;
913
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
914
+ expiresAt: string;
915
+ invitedById: string;
916
+ resent: boolean;
917
+ }>;
918
+ }, "strip", z.ZodTypeAny, {
919
+ id: string;
920
+ type: "company-invitations";
921
+ attributes: {
922
+ createdAt: string;
923
+ message: string | null;
924
+ status: "PENDING";
925
+ email: string;
926
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
927
+ expiresAt: string;
928
+ invitedById: string;
929
+ resent: boolean;
930
+ };
931
+ }, {
932
+ id: string;
933
+ type: "company-invitations";
934
+ attributes: {
935
+ createdAt: string;
936
+ message: string | null;
937
+ status: "PENDING";
938
+ email: string;
939
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
940
+ expiresAt: string;
941
+ invitedById: string;
942
+ resent: boolean;
943
+ };
944
+ }>;
945
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
946
+ links: z.ZodOptional<z.ZodObject<{
947
+ self: z.ZodString;
948
+ first: z.ZodOptional<z.ZodString>;
949
+ last: z.ZodOptional<z.ZodString>;
950
+ prev: z.ZodOptional<z.ZodString>;
951
+ next: z.ZodOptional<z.ZodString>;
952
+ }, "strip", z.ZodTypeAny, {
953
+ self: string;
954
+ first?: string | undefined;
955
+ last?: string | undefined;
956
+ prev?: string | undefined;
957
+ next?: string | undefined;
958
+ }, {
959
+ self: string;
960
+ first?: string | undefined;
961
+ last?: string | undefined;
962
+ prev?: string | undefined;
963
+ next?: string | undefined;
964
+ }>>;
965
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
966
+ status: z.ZodString;
967
+ title: z.ZodString;
968
+ detail: z.ZodOptional<z.ZodString>;
969
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
970
+ }, "strip", z.ZodTypeAny, {
971
+ status: string;
972
+ title: string;
973
+ detail?: string | undefined;
974
+ meta?: Record<string, unknown> | undefined;
975
+ }, {
976
+ status: string;
977
+ title: string;
978
+ detail?: string | undefined;
979
+ meta?: Record<string, unknown> | undefined;
980
+ }>, "many">>;
981
+ }, "strip", z.ZodTypeAny, {
982
+ data: {
983
+ id: string;
984
+ type: "company-invitations";
985
+ attributes: {
986
+ createdAt: string;
987
+ message: string | null;
988
+ status: "PENDING";
989
+ email: string;
990
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
991
+ expiresAt: string;
992
+ invitedById: string;
993
+ resent: boolean;
994
+ };
995
+ };
996
+ meta?: Record<string, unknown> | undefined;
997
+ links?: {
998
+ self: string;
999
+ first?: string | undefined;
1000
+ last?: string | undefined;
1001
+ prev?: string | undefined;
1002
+ next?: string | undefined;
1003
+ } | undefined;
1004
+ errors?: {
1005
+ status: string;
1006
+ title: string;
1007
+ detail?: string | undefined;
1008
+ meta?: Record<string, unknown> | undefined;
1009
+ }[] | undefined;
1010
+ }, {
1011
+ data: {
1012
+ id: string;
1013
+ type: "company-invitations";
1014
+ attributes: {
1015
+ createdAt: string;
1016
+ message: string | null;
1017
+ status: "PENDING";
1018
+ email: string;
1019
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1020
+ expiresAt: string;
1021
+ invitedById: string;
1022
+ resent: boolean;
1023
+ };
1024
+ };
1025
+ meta?: Record<string, unknown> | undefined;
1026
+ links?: {
1027
+ self: string;
1028
+ first?: string | undefined;
1029
+ last?: string | undefined;
1030
+ prev?: string | undefined;
1031
+ next?: string | undefined;
1032
+ } | undefined;
1033
+ errors?: {
1034
+ status: string;
1035
+ title: string;
1036
+ detail?: string | undefined;
1037
+ meta?: Record<string, unknown> | undefined;
1038
+ }[] | undefined;
1039
+ }>;
1040
+ 201: z.ZodObject<{
1041
+ data: z.ZodObject<{
1042
+ type: z.ZodLiteral<"company-invitations">;
1043
+ id: z.ZodString;
1044
+ attributes: z.ZodObject<{
1045
+ email: z.ZodString;
1046
+ role: z.ZodEnum<["SUPER_ADMIN", "COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
1047
+ status: z.ZodLiteral<"PENDING">;
1048
+ invitedById: z.ZodString;
1049
+ message: z.ZodNullable<z.ZodString>;
1050
+ createdAt: z.ZodString;
1051
+ expiresAt: z.ZodString;
1052
+ resent: z.ZodBoolean;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ createdAt: string;
1055
+ message: string | null;
1056
+ status: "PENDING";
1057
+ email: string;
1058
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1059
+ expiresAt: string;
1060
+ invitedById: string;
1061
+ resent: boolean;
1062
+ }, {
1063
+ createdAt: string;
1064
+ message: string | null;
1065
+ status: "PENDING";
1066
+ email: string;
1067
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1068
+ expiresAt: string;
1069
+ invitedById: string;
1070
+ resent: boolean;
1071
+ }>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ id: string;
1074
+ type: "company-invitations";
1075
+ attributes: {
1076
+ createdAt: string;
1077
+ message: string | null;
1078
+ status: "PENDING";
1079
+ email: string;
1080
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1081
+ expiresAt: string;
1082
+ invitedById: string;
1083
+ resent: boolean;
1084
+ };
1085
+ }, {
1086
+ id: string;
1087
+ type: "company-invitations";
1088
+ attributes: {
1089
+ createdAt: string;
1090
+ message: string | null;
1091
+ status: "PENDING";
1092
+ email: string;
1093
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1094
+ expiresAt: string;
1095
+ invitedById: string;
1096
+ resent: boolean;
1097
+ };
1098
+ }>;
1099
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1100
+ links: z.ZodOptional<z.ZodObject<{
1101
+ self: z.ZodString;
1102
+ first: z.ZodOptional<z.ZodString>;
1103
+ last: z.ZodOptional<z.ZodString>;
1104
+ prev: z.ZodOptional<z.ZodString>;
1105
+ next: z.ZodOptional<z.ZodString>;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ self: string;
1108
+ first?: string | undefined;
1109
+ last?: string | undefined;
1110
+ prev?: string | undefined;
1111
+ next?: string | undefined;
1112
+ }, {
1113
+ self: string;
1114
+ first?: string | undefined;
1115
+ last?: string | undefined;
1116
+ prev?: string | undefined;
1117
+ next?: string | undefined;
1118
+ }>>;
1119
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1120
+ status: z.ZodString;
1121
+ title: z.ZodString;
1122
+ detail: z.ZodOptional<z.ZodString>;
1123
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ status: string;
1126
+ title: string;
1127
+ detail?: string | undefined;
1128
+ meta?: Record<string, unknown> | undefined;
1129
+ }, {
1130
+ status: string;
1131
+ title: string;
1132
+ detail?: string | undefined;
1133
+ meta?: Record<string, unknown> | undefined;
1134
+ }>, "many">>;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ data: {
1137
+ id: string;
1138
+ type: "company-invitations";
1139
+ attributes: {
1140
+ createdAt: string;
1141
+ message: string | null;
1142
+ status: "PENDING";
1143
+ email: string;
1144
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1145
+ expiresAt: string;
1146
+ invitedById: string;
1147
+ resent: boolean;
1148
+ };
1149
+ };
1150
+ meta?: Record<string, unknown> | undefined;
1151
+ links?: {
1152
+ self: string;
1153
+ first?: string | undefined;
1154
+ last?: string | undefined;
1155
+ prev?: string | undefined;
1156
+ next?: string | undefined;
1157
+ } | undefined;
1158
+ errors?: {
1159
+ status: string;
1160
+ title: string;
1161
+ detail?: string | undefined;
1162
+ meta?: Record<string, unknown> | undefined;
1163
+ }[] | undefined;
1164
+ }, {
1165
+ data: {
1166
+ id: string;
1167
+ type: "company-invitations";
1168
+ attributes: {
1169
+ createdAt: string;
1170
+ message: string | null;
1171
+ status: "PENDING";
1172
+ email: string;
1173
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1174
+ expiresAt: string;
1175
+ invitedById: string;
1176
+ resent: boolean;
1177
+ };
1178
+ };
1179
+ meta?: Record<string, unknown> | undefined;
1180
+ links?: {
1181
+ self: string;
1182
+ first?: string | undefined;
1183
+ last?: string | undefined;
1184
+ prev?: string | undefined;
1185
+ next?: string | undefined;
1186
+ } | undefined;
1187
+ errors?: {
1188
+ status: string;
1189
+ title: string;
1190
+ detail?: string | undefined;
1191
+ meta?: Record<string, unknown> | undefined;
1192
+ }[] | undefined;
1193
+ }>;
1194
+ };
1195
+ };
1196
+ changeRole: {
1197
+ pathParams: z.ZodObject<{
1198
+ userId: z.ZodString;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ userId: string;
1201
+ }, {
1202
+ userId: string;
1203
+ }>;
1204
+ summary: "Change a company user role (not your own; never the last admin)";
1205
+ method: "PATCH";
1206
+ body: z.ZodObject<{
1207
+ role: z.ZodEnum<["COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ role: "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1210
+ }, {
1211
+ role: "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1212
+ }>;
1213
+ path: "/company/users/:userId/role";
1214
+ responses: {
1215
+ 400: z.ZodObject<{
1216
+ errors: z.ZodArray<z.ZodObject<{
1217
+ status: z.ZodString;
1218
+ title: z.ZodString;
1219
+ detail: z.ZodOptional<z.ZodString>;
1220
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1221
+ }, "strip", z.ZodTypeAny, {
1222
+ status: string;
1223
+ title: string;
1224
+ detail?: string | undefined;
1225
+ meta?: Record<string, unknown> | undefined;
1226
+ }, {
1227
+ status: string;
1228
+ title: string;
1229
+ detail?: string | undefined;
1230
+ meta?: Record<string, unknown> | undefined;
1231
+ }>, "many">;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ errors: {
1234
+ status: string;
1235
+ title: string;
1236
+ detail?: string | undefined;
1237
+ meta?: Record<string, unknown> | undefined;
1238
+ }[];
1239
+ }, {
1240
+ errors: {
1241
+ status: string;
1242
+ title: string;
1243
+ detail?: string | undefined;
1244
+ meta?: Record<string, unknown> | undefined;
1245
+ }[];
1246
+ }>;
1247
+ 401: z.ZodObject<{
1248
+ errors: z.ZodArray<z.ZodObject<{
1249
+ status: z.ZodString;
1250
+ title: z.ZodString;
1251
+ detail: z.ZodOptional<z.ZodString>;
1252
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ status: string;
1255
+ title: string;
1256
+ detail?: string | undefined;
1257
+ meta?: Record<string, unknown> | undefined;
1258
+ }, {
1259
+ status: string;
1260
+ title: string;
1261
+ detail?: string | undefined;
1262
+ meta?: Record<string, unknown> | undefined;
1263
+ }>, "many">;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ errors: {
1266
+ status: string;
1267
+ title: string;
1268
+ detail?: string | undefined;
1269
+ meta?: Record<string, unknown> | undefined;
1270
+ }[];
1271
+ }, {
1272
+ errors: {
1273
+ status: string;
1274
+ title: string;
1275
+ detail?: string | undefined;
1276
+ meta?: Record<string, unknown> | undefined;
1277
+ }[];
1278
+ }>;
1279
+ 403: z.ZodObject<{
1280
+ errors: z.ZodArray<z.ZodObject<{
1281
+ status: z.ZodString;
1282
+ title: z.ZodString;
1283
+ detail: z.ZodOptional<z.ZodString>;
1284
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ status: string;
1287
+ title: string;
1288
+ detail?: string | undefined;
1289
+ meta?: Record<string, unknown> | undefined;
1290
+ }, {
1291
+ status: string;
1292
+ title: string;
1293
+ detail?: string | undefined;
1294
+ meta?: Record<string, unknown> | undefined;
1295
+ }>, "many">;
1296
+ }, "strip", z.ZodTypeAny, {
1297
+ errors: {
1298
+ status: string;
1299
+ title: string;
1300
+ detail?: string | undefined;
1301
+ meta?: Record<string, unknown> | undefined;
1302
+ }[];
1303
+ }, {
1304
+ errors: {
1305
+ status: string;
1306
+ title: string;
1307
+ detail?: string | undefined;
1308
+ meta?: Record<string, unknown> | undefined;
1309
+ }[];
1310
+ }>;
1311
+ 404: z.ZodObject<{
1312
+ errors: z.ZodArray<z.ZodObject<{
1313
+ status: z.ZodString;
1314
+ title: z.ZodString;
1315
+ detail: z.ZodOptional<z.ZodString>;
1316
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1317
+ }, "strip", z.ZodTypeAny, {
1318
+ status: string;
1319
+ title: string;
1320
+ detail?: string | undefined;
1321
+ meta?: Record<string, unknown> | undefined;
1322
+ }, {
1323
+ status: string;
1324
+ title: string;
1325
+ detail?: string | undefined;
1326
+ meta?: Record<string, unknown> | undefined;
1327
+ }>, "many">;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ errors: {
1330
+ status: string;
1331
+ title: string;
1332
+ detail?: string | undefined;
1333
+ meta?: Record<string, unknown> | undefined;
1334
+ }[];
1335
+ }, {
1336
+ errors: {
1337
+ status: string;
1338
+ title: string;
1339
+ detail?: string | undefined;
1340
+ meta?: Record<string, unknown> | undefined;
1341
+ }[];
1342
+ }>;
1343
+ 409: z.ZodObject<{
1344
+ errors: z.ZodArray<z.ZodObject<{
1345
+ status: z.ZodString;
1346
+ title: z.ZodString;
1347
+ detail: z.ZodOptional<z.ZodString>;
1348
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ status: string;
1351
+ title: string;
1352
+ detail?: string | undefined;
1353
+ meta?: Record<string, unknown> | undefined;
1354
+ }, {
1355
+ status: string;
1356
+ title: string;
1357
+ detail?: string | undefined;
1358
+ meta?: Record<string, unknown> | undefined;
1359
+ }>, "many">;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ errors: {
1362
+ status: string;
1363
+ title: string;
1364
+ detail?: string | undefined;
1365
+ meta?: Record<string, unknown> | undefined;
1366
+ }[];
1367
+ }, {
1368
+ errors: {
1369
+ status: string;
1370
+ title: string;
1371
+ detail?: string | undefined;
1372
+ meta?: Record<string, unknown> | undefined;
1373
+ }[];
1374
+ }>;
1375
+ 200: z.ZodObject<{
1376
+ data: z.ZodObject<{
1377
+ type: z.ZodLiteral<"company-users">;
1378
+ id: z.ZodString;
1379
+ attributes: z.ZodObject<{
1380
+ id: z.ZodString;
1381
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1382
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1383
+ email: z.ZodOptional<z.ZodString>;
1384
+ name: z.ZodOptional<z.ZodString>;
1385
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1386
+ } & {
1387
+ role: z.ZodEnum<["SUPER_ADMIN", "COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
1388
+ roleDisplayName: z.ZodString;
1389
+ isActive: z.ZodBoolean;
1390
+ isOwner: z.ZodBoolean;
1391
+ lastLoginAt: z.ZodNullable<z.ZodString>;
1392
+ joinedAt: z.ZodString;
1393
+ }, "strip", z.ZodTypeAny, {
1394
+ id: string;
1395
+ isActive: boolean;
1396
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1397
+ lastLoginAt: string | null;
1398
+ joinedAt: string;
1399
+ roleDisplayName: string;
1400
+ isOwner: boolean;
1401
+ firstName?: string | null | undefined;
1402
+ lastName?: string | null | undefined;
1403
+ email?: string | undefined;
1404
+ name?: string | undefined;
1405
+ avatar?: string | null | undefined;
1406
+ }, {
1407
+ id: string;
1408
+ isActive: boolean;
1409
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1410
+ lastLoginAt: string | null;
1411
+ joinedAt: string;
1412
+ roleDisplayName: string;
1413
+ isOwner: boolean;
1414
+ firstName?: string | null | undefined;
1415
+ lastName?: string | null | undefined;
1416
+ email?: string | undefined;
1417
+ name?: string | undefined;
1418
+ avatar?: string | null | undefined;
1419
+ }>;
1420
+ }, "strip", z.ZodTypeAny, {
1421
+ id: string;
1422
+ type: "company-users";
1423
+ attributes: {
1424
+ id: string;
1425
+ isActive: boolean;
1426
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1427
+ lastLoginAt: string | null;
1428
+ joinedAt: string;
1429
+ roleDisplayName: string;
1430
+ isOwner: boolean;
1431
+ firstName?: string | null | undefined;
1432
+ lastName?: string | null | undefined;
1433
+ email?: string | undefined;
1434
+ name?: string | undefined;
1435
+ avatar?: string | null | undefined;
1436
+ };
1437
+ }, {
1438
+ id: string;
1439
+ type: "company-users";
1440
+ attributes: {
1441
+ id: string;
1442
+ isActive: boolean;
1443
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1444
+ lastLoginAt: string | null;
1445
+ joinedAt: string;
1446
+ roleDisplayName: string;
1447
+ isOwner: boolean;
1448
+ firstName?: string | null | undefined;
1449
+ lastName?: string | null | undefined;
1450
+ email?: string | undefined;
1451
+ name?: string | undefined;
1452
+ avatar?: string | null | undefined;
1453
+ };
1454
+ }>;
1455
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1456
+ links: z.ZodOptional<z.ZodObject<{
1457
+ self: z.ZodString;
1458
+ first: z.ZodOptional<z.ZodString>;
1459
+ last: z.ZodOptional<z.ZodString>;
1460
+ prev: z.ZodOptional<z.ZodString>;
1461
+ next: z.ZodOptional<z.ZodString>;
1462
+ }, "strip", z.ZodTypeAny, {
1463
+ self: string;
1464
+ first?: string | undefined;
1465
+ last?: string | undefined;
1466
+ prev?: string | undefined;
1467
+ next?: string | undefined;
1468
+ }, {
1469
+ self: string;
1470
+ first?: string | undefined;
1471
+ last?: string | undefined;
1472
+ prev?: string | undefined;
1473
+ next?: string | undefined;
1474
+ }>>;
1475
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1476
+ status: z.ZodString;
1477
+ title: z.ZodString;
1478
+ detail: z.ZodOptional<z.ZodString>;
1479
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1480
+ }, "strip", z.ZodTypeAny, {
1481
+ status: string;
1482
+ title: string;
1483
+ detail?: string | undefined;
1484
+ meta?: Record<string, unknown> | undefined;
1485
+ }, {
1486
+ status: string;
1487
+ title: string;
1488
+ detail?: string | undefined;
1489
+ meta?: Record<string, unknown> | undefined;
1490
+ }>, "many">>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ data: {
1493
+ id: string;
1494
+ type: "company-users";
1495
+ attributes: {
1496
+ id: string;
1497
+ isActive: boolean;
1498
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1499
+ lastLoginAt: string | null;
1500
+ joinedAt: string;
1501
+ roleDisplayName: string;
1502
+ isOwner: boolean;
1503
+ firstName?: string | null | undefined;
1504
+ lastName?: string | null | undefined;
1505
+ email?: string | undefined;
1506
+ name?: string | undefined;
1507
+ avatar?: string | null | undefined;
1508
+ };
1509
+ };
1510
+ meta?: Record<string, unknown> | undefined;
1511
+ links?: {
1512
+ self: string;
1513
+ first?: string | undefined;
1514
+ last?: string | undefined;
1515
+ prev?: string | undefined;
1516
+ next?: string | undefined;
1517
+ } | undefined;
1518
+ errors?: {
1519
+ status: string;
1520
+ title: string;
1521
+ detail?: string | undefined;
1522
+ meta?: Record<string, unknown> | undefined;
1523
+ }[] | undefined;
1524
+ }, {
1525
+ data: {
1526
+ id: string;
1527
+ type: "company-users";
1528
+ attributes: {
1529
+ id: string;
1530
+ isActive: boolean;
1531
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1532
+ lastLoginAt: string | null;
1533
+ joinedAt: string;
1534
+ roleDisplayName: string;
1535
+ isOwner: boolean;
1536
+ firstName?: string | null | undefined;
1537
+ lastName?: string | null | undefined;
1538
+ email?: string | undefined;
1539
+ name?: string | undefined;
1540
+ avatar?: string | null | undefined;
1541
+ };
1542
+ };
1543
+ meta?: Record<string, unknown> | undefined;
1544
+ links?: {
1545
+ self: string;
1546
+ first?: string | undefined;
1547
+ last?: string | undefined;
1548
+ prev?: string | undefined;
1549
+ next?: string | undefined;
1550
+ } | undefined;
1551
+ errors?: {
1552
+ status: string;
1553
+ title: string;
1554
+ detail?: string | undefined;
1555
+ meta?: Record<string, unknown> | undefined;
1556
+ }[] | undefined;
1557
+ }>;
1558
+ };
1559
+ };
1560
+ deactivateUser: {
1561
+ pathParams: z.ZodObject<{
1562
+ userId: z.ZodString;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ userId: string;
1565
+ }, {
1566
+ userId: string;
1567
+ }>;
1568
+ summary: "Deactivate a company user and revoke sessions (not yourself; never the last admin)";
1569
+ method: "POST";
1570
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1571
+ path: "/company/users/:userId/deactivate";
1572
+ responses: {
1573
+ 400: z.ZodObject<{
1574
+ errors: z.ZodArray<z.ZodObject<{
1575
+ status: z.ZodString;
1576
+ title: z.ZodString;
1577
+ detail: z.ZodOptional<z.ZodString>;
1578
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ status: string;
1581
+ title: string;
1582
+ detail?: string | undefined;
1583
+ meta?: Record<string, unknown> | undefined;
1584
+ }, {
1585
+ status: string;
1586
+ title: string;
1587
+ detail?: string | undefined;
1588
+ meta?: Record<string, unknown> | undefined;
1589
+ }>, "many">;
1590
+ }, "strip", z.ZodTypeAny, {
1591
+ errors: {
1592
+ status: string;
1593
+ title: string;
1594
+ detail?: string | undefined;
1595
+ meta?: Record<string, unknown> | undefined;
1596
+ }[];
1597
+ }, {
1598
+ errors: {
1599
+ status: string;
1600
+ title: string;
1601
+ detail?: string | undefined;
1602
+ meta?: Record<string, unknown> | undefined;
1603
+ }[];
1604
+ }>;
1605
+ 401: z.ZodObject<{
1606
+ errors: z.ZodArray<z.ZodObject<{
1607
+ status: z.ZodString;
1608
+ title: z.ZodString;
1609
+ detail: z.ZodOptional<z.ZodString>;
1610
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ status: string;
1613
+ title: string;
1614
+ detail?: string | undefined;
1615
+ meta?: Record<string, unknown> | undefined;
1616
+ }, {
1617
+ status: string;
1618
+ title: string;
1619
+ detail?: string | undefined;
1620
+ meta?: Record<string, unknown> | undefined;
1621
+ }>, "many">;
1622
+ }, "strip", z.ZodTypeAny, {
1623
+ errors: {
1624
+ status: string;
1625
+ title: string;
1626
+ detail?: string | undefined;
1627
+ meta?: Record<string, unknown> | undefined;
1628
+ }[];
1629
+ }, {
1630
+ errors: {
1631
+ status: string;
1632
+ title: string;
1633
+ detail?: string | undefined;
1634
+ meta?: Record<string, unknown> | undefined;
1635
+ }[];
1636
+ }>;
1637
+ 403: z.ZodObject<{
1638
+ errors: z.ZodArray<z.ZodObject<{
1639
+ status: z.ZodString;
1640
+ title: z.ZodString;
1641
+ detail: z.ZodOptional<z.ZodString>;
1642
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ status: string;
1645
+ title: string;
1646
+ detail?: string | undefined;
1647
+ meta?: Record<string, unknown> | undefined;
1648
+ }, {
1649
+ status: string;
1650
+ title: string;
1651
+ detail?: string | undefined;
1652
+ meta?: Record<string, unknown> | undefined;
1653
+ }>, "many">;
1654
+ }, "strip", z.ZodTypeAny, {
1655
+ errors: {
1656
+ status: string;
1657
+ title: string;
1658
+ detail?: string | undefined;
1659
+ meta?: Record<string, unknown> | undefined;
1660
+ }[];
1661
+ }, {
1662
+ errors: {
1663
+ status: string;
1664
+ title: string;
1665
+ detail?: string | undefined;
1666
+ meta?: Record<string, unknown> | undefined;
1667
+ }[];
1668
+ }>;
1669
+ 404: z.ZodObject<{
1670
+ errors: z.ZodArray<z.ZodObject<{
1671
+ status: z.ZodString;
1672
+ title: z.ZodString;
1673
+ detail: z.ZodOptional<z.ZodString>;
1674
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ status: string;
1677
+ title: string;
1678
+ detail?: string | undefined;
1679
+ meta?: Record<string, unknown> | undefined;
1680
+ }, {
1681
+ status: string;
1682
+ title: string;
1683
+ detail?: string | undefined;
1684
+ meta?: Record<string, unknown> | undefined;
1685
+ }>, "many">;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ errors: {
1688
+ status: string;
1689
+ title: string;
1690
+ detail?: string | undefined;
1691
+ meta?: Record<string, unknown> | undefined;
1692
+ }[];
1693
+ }, {
1694
+ errors: {
1695
+ status: string;
1696
+ title: string;
1697
+ detail?: string | undefined;
1698
+ meta?: Record<string, unknown> | undefined;
1699
+ }[];
1700
+ }>;
1701
+ 409: z.ZodObject<{
1702
+ errors: z.ZodArray<z.ZodObject<{
1703
+ status: z.ZodString;
1704
+ title: z.ZodString;
1705
+ detail: z.ZodOptional<z.ZodString>;
1706
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1707
+ }, "strip", z.ZodTypeAny, {
1708
+ status: string;
1709
+ title: string;
1710
+ detail?: string | undefined;
1711
+ meta?: Record<string, unknown> | undefined;
1712
+ }, {
1713
+ status: string;
1714
+ title: string;
1715
+ detail?: string | undefined;
1716
+ meta?: Record<string, unknown> | undefined;
1717
+ }>, "many">;
1718
+ }, "strip", z.ZodTypeAny, {
1719
+ errors: {
1720
+ status: string;
1721
+ title: string;
1722
+ detail?: string | undefined;
1723
+ meta?: Record<string, unknown> | undefined;
1724
+ }[];
1725
+ }, {
1726
+ errors: {
1727
+ status: string;
1728
+ title: string;
1729
+ detail?: string | undefined;
1730
+ meta?: Record<string, unknown> | undefined;
1731
+ }[];
1732
+ }>;
1733
+ 200: z.ZodObject<{
1734
+ data: z.ZodObject<{
1735
+ type: z.ZodLiteral<"company-users">;
1736
+ id: z.ZodString;
1737
+ attributes: z.ZodObject<{
1738
+ id: z.ZodString;
1739
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1740
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1741
+ email: z.ZodOptional<z.ZodString>;
1742
+ name: z.ZodOptional<z.ZodString>;
1743
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1744
+ } & {
1745
+ role: z.ZodEnum<["SUPER_ADMIN", "COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
1746
+ roleDisplayName: z.ZodString;
1747
+ isActive: z.ZodBoolean;
1748
+ isOwner: z.ZodBoolean;
1749
+ lastLoginAt: z.ZodNullable<z.ZodString>;
1750
+ joinedAt: z.ZodString;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ id: string;
1753
+ isActive: boolean;
1754
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1755
+ lastLoginAt: string | null;
1756
+ joinedAt: string;
1757
+ roleDisplayName: string;
1758
+ isOwner: boolean;
1759
+ firstName?: string | null | undefined;
1760
+ lastName?: string | null | undefined;
1761
+ email?: string | undefined;
1762
+ name?: string | undefined;
1763
+ avatar?: string | null | undefined;
1764
+ }, {
1765
+ id: string;
1766
+ isActive: boolean;
1767
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1768
+ lastLoginAt: string | null;
1769
+ joinedAt: string;
1770
+ roleDisplayName: string;
1771
+ isOwner: boolean;
1772
+ firstName?: string | null | undefined;
1773
+ lastName?: string | null | undefined;
1774
+ email?: string | undefined;
1775
+ name?: string | undefined;
1776
+ avatar?: string | null | undefined;
1777
+ }>;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ id: string;
1780
+ type: "company-users";
1781
+ attributes: {
1782
+ id: string;
1783
+ isActive: boolean;
1784
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1785
+ lastLoginAt: string | null;
1786
+ joinedAt: string;
1787
+ roleDisplayName: string;
1788
+ isOwner: boolean;
1789
+ firstName?: string | null | undefined;
1790
+ lastName?: string | null | undefined;
1791
+ email?: string | undefined;
1792
+ name?: string | undefined;
1793
+ avatar?: string | null | undefined;
1794
+ };
1795
+ }, {
1796
+ id: string;
1797
+ type: "company-users";
1798
+ attributes: {
1799
+ id: string;
1800
+ isActive: boolean;
1801
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1802
+ lastLoginAt: string | null;
1803
+ joinedAt: string;
1804
+ roleDisplayName: string;
1805
+ isOwner: boolean;
1806
+ firstName?: string | null | undefined;
1807
+ lastName?: string | null | undefined;
1808
+ email?: string | undefined;
1809
+ name?: string | undefined;
1810
+ avatar?: string | null | undefined;
1811
+ };
1812
+ }>;
1813
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1814
+ links: z.ZodOptional<z.ZodObject<{
1815
+ self: z.ZodString;
1816
+ first: z.ZodOptional<z.ZodString>;
1817
+ last: z.ZodOptional<z.ZodString>;
1818
+ prev: z.ZodOptional<z.ZodString>;
1819
+ next: z.ZodOptional<z.ZodString>;
1820
+ }, "strip", z.ZodTypeAny, {
1821
+ self: string;
1822
+ first?: string | undefined;
1823
+ last?: string | undefined;
1824
+ prev?: string | undefined;
1825
+ next?: string | undefined;
1826
+ }, {
1827
+ self: string;
1828
+ first?: string | undefined;
1829
+ last?: string | undefined;
1830
+ prev?: string | undefined;
1831
+ next?: string | undefined;
1832
+ }>>;
1833
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1834
+ status: z.ZodString;
1835
+ title: z.ZodString;
1836
+ detail: z.ZodOptional<z.ZodString>;
1837
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1838
+ }, "strip", z.ZodTypeAny, {
1839
+ status: string;
1840
+ title: string;
1841
+ detail?: string | undefined;
1842
+ meta?: Record<string, unknown> | undefined;
1843
+ }, {
1844
+ status: string;
1845
+ title: string;
1846
+ detail?: string | undefined;
1847
+ meta?: Record<string, unknown> | undefined;
1848
+ }>, "many">>;
1849
+ }, "strip", z.ZodTypeAny, {
1850
+ data: {
1851
+ id: string;
1852
+ type: "company-users";
1853
+ attributes: {
1854
+ id: string;
1855
+ isActive: boolean;
1856
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1857
+ lastLoginAt: string | null;
1858
+ joinedAt: string;
1859
+ roleDisplayName: string;
1860
+ isOwner: boolean;
1861
+ firstName?: string | null | undefined;
1862
+ lastName?: string | null | undefined;
1863
+ email?: string | undefined;
1864
+ name?: string | undefined;
1865
+ avatar?: string | null | undefined;
1866
+ };
1867
+ };
1868
+ meta?: Record<string, unknown> | undefined;
1869
+ links?: {
1870
+ self: string;
1871
+ first?: string | undefined;
1872
+ last?: string | undefined;
1873
+ prev?: string | undefined;
1874
+ next?: string | undefined;
1875
+ } | undefined;
1876
+ errors?: {
1877
+ status: string;
1878
+ title: string;
1879
+ detail?: string | undefined;
1880
+ meta?: Record<string, unknown> | undefined;
1881
+ }[] | undefined;
1882
+ }, {
1883
+ data: {
1884
+ id: string;
1885
+ type: "company-users";
1886
+ attributes: {
1887
+ id: string;
1888
+ isActive: boolean;
1889
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
1890
+ lastLoginAt: string | null;
1891
+ joinedAt: string;
1892
+ roleDisplayName: string;
1893
+ isOwner: boolean;
1894
+ firstName?: string | null | undefined;
1895
+ lastName?: string | null | undefined;
1896
+ email?: string | undefined;
1897
+ name?: string | undefined;
1898
+ avatar?: string | null | undefined;
1899
+ };
1900
+ };
1901
+ meta?: Record<string, unknown> | undefined;
1902
+ links?: {
1903
+ self: string;
1904
+ first?: string | undefined;
1905
+ last?: string | undefined;
1906
+ prev?: string | undefined;
1907
+ next?: string | undefined;
1908
+ } | undefined;
1909
+ errors?: {
1910
+ status: string;
1911
+ title: string;
1912
+ detail?: string | undefined;
1913
+ meta?: Record<string, unknown> | undefined;
1914
+ }[] | undefined;
1915
+ }>;
1916
+ };
1917
+ };
1918
+ reactivateUser: {
1919
+ pathParams: z.ZodObject<{
1920
+ userId: z.ZodString;
1921
+ }, "strip", z.ZodTypeAny, {
1922
+ userId: string;
1923
+ }, {
1924
+ userId: string;
1925
+ }>;
1926
+ summary: "Reactivate a previously deactivated company user";
1927
+ method: "POST";
1928
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1929
+ path: "/company/users/:userId/reactivate";
1930
+ responses: {
1931
+ 400: z.ZodObject<{
1932
+ errors: z.ZodArray<z.ZodObject<{
1933
+ status: z.ZodString;
1934
+ title: z.ZodString;
1935
+ detail: z.ZodOptional<z.ZodString>;
1936
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1937
+ }, "strip", z.ZodTypeAny, {
1938
+ status: string;
1939
+ title: string;
1940
+ detail?: string | undefined;
1941
+ meta?: Record<string, unknown> | undefined;
1942
+ }, {
1943
+ status: string;
1944
+ title: string;
1945
+ detail?: string | undefined;
1946
+ meta?: Record<string, unknown> | undefined;
1947
+ }>, "many">;
1948
+ }, "strip", z.ZodTypeAny, {
1949
+ errors: {
1950
+ status: string;
1951
+ title: string;
1952
+ detail?: string | undefined;
1953
+ meta?: Record<string, unknown> | undefined;
1954
+ }[];
1955
+ }, {
1956
+ errors: {
1957
+ status: string;
1958
+ title: string;
1959
+ detail?: string | undefined;
1960
+ meta?: Record<string, unknown> | undefined;
1961
+ }[];
1962
+ }>;
1963
+ 401: z.ZodObject<{
1964
+ errors: z.ZodArray<z.ZodObject<{
1965
+ status: z.ZodString;
1966
+ title: z.ZodString;
1967
+ detail: z.ZodOptional<z.ZodString>;
1968
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1969
+ }, "strip", z.ZodTypeAny, {
1970
+ status: string;
1971
+ title: string;
1972
+ detail?: string | undefined;
1973
+ meta?: Record<string, unknown> | undefined;
1974
+ }, {
1975
+ status: string;
1976
+ title: string;
1977
+ detail?: string | undefined;
1978
+ meta?: Record<string, unknown> | undefined;
1979
+ }>, "many">;
1980
+ }, "strip", z.ZodTypeAny, {
1981
+ errors: {
1982
+ status: string;
1983
+ title: string;
1984
+ detail?: string | undefined;
1985
+ meta?: Record<string, unknown> | undefined;
1986
+ }[];
1987
+ }, {
1988
+ errors: {
1989
+ status: string;
1990
+ title: string;
1991
+ detail?: string | undefined;
1992
+ meta?: Record<string, unknown> | undefined;
1993
+ }[];
1994
+ }>;
1995
+ 403: z.ZodObject<{
1996
+ errors: z.ZodArray<z.ZodObject<{
1997
+ status: z.ZodString;
1998
+ title: z.ZodString;
1999
+ detail: z.ZodOptional<z.ZodString>;
2000
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2001
+ }, "strip", z.ZodTypeAny, {
2002
+ status: string;
2003
+ title: string;
2004
+ detail?: string | undefined;
2005
+ meta?: Record<string, unknown> | undefined;
2006
+ }, {
2007
+ status: string;
2008
+ title: string;
2009
+ detail?: string | undefined;
2010
+ meta?: Record<string, unknown> | undefined;
2011
+ }>, "many">;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ errors: {
2014
+ status: string;
2015
+ title: string;
2016
+ detail?: string | undefined;
2017
+ meta?: Record<string, unknown> | undefined;
2018
+ }[];
2019
+ }, {
2020
+ errors: {
2021
+ status: string;
2022
+ title: string;
2023
+ detail?: string | undefined;
2024
+ meta?: Record<string, unknown> | undefined;
2025
+ }[];
2026
+ }>;
2027
+ 404: z.ZodObject<{
2028
+ errors: z.ZodArray<z.ZodObject<{
2029
+ status: z.ZodString;
2030
+ title: z.ZodString;
2031
+ detail: z.ZodOptional<z.ZodString>;
2032
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2033
+ }, "strip", z.ZodTypeAny, {
2034
+ status: string;
2035
+ title: string;
2036
+ detail?: string | undefined;
2037
+ meta?: Record<string, unknown> | undefined;
2038
+ }, {
2039
+ status: string;
2040
+ title: string;
2041
+ detail?: string | undefined;
2042
+ meta?: Record<string, unknown> | undefined;
2043
+ }>, "many">;
2044
+ }, "strip", z.ZodTypeAny, {
2045
+ errors: {
2046
+ status: string;
2047
+ title: string;
2048
+ detail?: string | undefined;
2049
+ meta?: Record<string, unknown> | undefined;
2050
+ }[];
2051
+ }, {
2052
+ errors: {
2053
+ status: string;
2054
+ title: string;
2055
+ detail?: string | undefined;
2056
+ meta?: Record<string, unknown> | undefined;
2057
+ }[];
2058
+ }>;
2059
+ 409: z.ZodObject<{
2060
+ errors: z.ZodArray<z.ZodObject<{
2061
+ status: z.ZodString;
2062
+ title: z.ZodString;
2063
+ detail: z.ZodOptional<z.ZodString>;
2064
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2065
+ }, "strip", z.ZodTypeAny, {
2066
+ status: string;
2067
+ title: string;
2068
+ detail?: string | undefined;
2069
+ meta?: Record<string, unknown> | undefined;
2070
+ }, {
2071
+ status: string;
2072
+ title: string;
2073
+ detail?: string | undefined;
2074
+ meta?: Record<string, unknown> | undefined;
2075
+ }>, "many">;
2076
+ }, "strip", z.ZodTypeAny, {
2077
+ errors: {
2078
+ status: string;
2079
+ title: string;
2080
+ detail?: string | undefined;
2081
+ meta?: Record<string, unknown> | undefined;
2082
+ }[];
2083
+ }, {
2084
+ errors: {
2085
+ status: string;
2086
+ title: string;
2087
+ detail?: string | undefined;
2088
+ meta?: Record<string, unknown> | undefined;
2089
+ }[];
2090
+ }>;
2091
+ 200: z.ZodObject<{
2092
+ data: z.ZodObject<{
2093
+ type: z.ZodLiteral<"company-users">;
2094
+ id: z.ZodString;
2095
+ attributes: z.ZodObject<{
2096
+ id: z.ZodString;
2097
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2098
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2099
+ email: z.ZodOptional<z.ZodString>;
2100
+ name: z.ZodOptional<z.ZodString>;
2101
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2102
+ } & {
2103
+ role: z.ZodEnum<["SUPER_ADMIN", "COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
2104
+ roleDisplayName: z.ZodString;
2105
+ isActive: z.ZodBoolean;
2106
+ isOwner: z.ZodBoolean;
2107
+ lastLoginAt: z.ZodNullable<z.ZodString>;
2108
+ joinedAt: z.ZodString;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ id: string;
2111
+ isActive: boolean;
2112
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2113
+ lastLoginAt: string | null;
2114
+ joinedAt: string;
2115
+ roleDisplayName: string;
2116
+ isOwner: boolean;
2117
+ firstName?: string | null | undefined;
2118
+ lastName?: string | null | undefined;
2119
+ email?: string | undefined;
2120
+ name?: string | undefined;
2121
+ avatar?: string | null | undefined;
2122
+ }, {
2123
+ id: string;
2124
+ isActive: boolean;
2125
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2126
+ lastLoginAt: string | null;
2127
+ joinedAt: string;
2128
+ roleDisplayName: string;
2129
+ isOwner: boolean;
2130
+ firstName?: string | null | undefined;
2131
+ lastName?: string | null | undefined;
2132
+ email?: string | undefined;
2133
+ name?: string | undefined;
2134
+ avatar?: string | null | undefined;
2135
+ }>;
2136
+ }, "strip", z.ZodTypeAny, {
2137
+ id: string;
2138
+ type: "company-users";
2139
+ attributes: {
2140
+ id: string;
2141
+ isActive: boolean;
2142
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2143
+ lastLoginAt: string | null;
2144
+ joinedAt: string;
2145
+ roleDisplayName: string;
2146
+ isOwner: boolean;
2147
+ firstName?: string | null | undefined;
2148
+ lastName?: string | null | undefined;
2149
+ email?: string | undefined;
2150
+ name?: string | undefined;
2151
+ avatar?: string | null | undefined;
2152
+ };
2153
+ }, {
2154
+ id: string;
2155
+ type: "company-users";
2156
+ attributes: {
2157
+ id: string;
2158
+ isActive: boolean;
2159
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2160
+ lastLoginAt: string | null;
2161
+ joinedAt: string;
2162
+ roleDisplayName: string;
2163
+ isOwner: boolean;
2164
+ firstName?: string | null | undefined;
2165
+ lastName?: string | null | undefined;
2166
+ email?: string | undefined;
2167
+ name?: string | undefined;
2168
+ avatar?: string | null | undefined;
2169
+ };
2170
+ }>;
2171
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2172
+ links: z.ZodOptional<z.ZodObject<{
2173
+ self: z.ZodString;
2174
+ first: z.ZodOptional<z.ZodString>;
2175
+ last: z.ZodOptional<z.ZodString>;
2176
+ prev: z.ZodOptional<z.ZodString>;
2177
+ next: z.ZodOptional<z.ZodString>;
2178
+ }, "strip", z.ZodTypeAny, {
2179
+ self: string;
2180
+ first?: string | undefined;
2181
+ last?: string | undefined;
2182
+ prev?: string | undefined;
2183
+ next?: string | undefined;
2184
+ }, {
2185
+ self: string;
2186
+ first?: string | undefined;
2187
+ last?: string | undefined;
2188
+ prev?: string | undefined;
2189
+ next?: string | undefined;
2190
+ }>>;
2191
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2192
+ status: z.ZodString;
2193
+ title: z.ZodString;
2194
+ detail: z.ZodOptional<z.ZodString>;
2195
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2196
+ }, "strip", z.ZodTypeAny, {
2197
+ status: string;
2198
+ title: string;
2199
+ detail?: string | undefined;
2200
+ meta?: Record<string, unknown> | undefined;
2201
+ }, {
2202
+ status: string;
2203
+ title: string;
2204
+ detail?: string | undefined;
2205
+ meta?: Record<string, unknown> | undefined;
2206
+ }>, "many">>;
2207
+ }, "strip", z.ZodTypeAny, {
2208
+ data: {
2209
+ id: string;
2210
+ type: "company-users";
2211
+ attributes: {
2212
+ id: string;
2213
+ isActive: boolean;
2214
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2215
+ lastLoginAt: string | null;
2216
+ joinedAt: string;
2217
+ roleDisplayName: string;
2218
+ isOwner: boolean;
2219
+ firstName?: string | null | undefined;
2220
+ lastName?: string | null | undefined;
2221
+ email?: string | undefined;
2222
+ name?: string | undefined;
2223
+ avatar?: string | null | undefined;
2224
+ };
2225
+ };
2226
+ meta?: Record<string, unknown> | undefined;
2227
+ links?: {
2228
+ self: string;
2229
+ first?: string | undefined;
2230
+ last?: string | undefined;
2231
+ prev?: string | undefined;
2232
+ next?: string | undefined;
2233
+ } | undefined;
2234
+ errors?: {
2235
+ status: string;
2236
+ title: string;
2237
+ detail?: string | undefined;
2238
+ meta?: Record<string, unknown> | undefined;
2239
+ }[] | undefined;
2240
+ }, {
2241
+ data: {
2242
+ id: string;
2243
+ type: "company-users";
2244
+ attributes: {
2245
+ id: string;
2246
+ isActive: boolean;
2247
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2248
+ lastLoginAt: string | null;
2249
+ joinedAt: string;
2250
+ roleDisplayName: string;
2251
+ isOwner: boolean;
2252
+ firstName?: string | null | undefined;
2253
+ lastName?: string | null | undefined;
2254
+ email?: string | undefined;
2255
+ name?: string | undefined;
2256
+ avatar?: string | null | undefined;
2257
+ };
2258
+ };
2259
+ meta?: Record<string, unknown> | undefined;
2260
+ links?: {
2261
+ self: string;
2262
+ first?: string | undefined;
2263
+ last?: string | undefined;
2264
+ prev?: string | undefined;
2265
+ next?: string | undefined;
2266
+ } | undefined;
2267
+ errors?: {
2268
+ status: string;
2269
+ title: string;
2270
+ detail?: string | undefined;
2271
+ meta?: Record<string, unknown> | undefined;
2272
+ }[] | undefined;
2273
+ }>;
2274
+ };
2275
+ };
2276
+ anonymizeUser: {
2277
+ pathParams: z.ZodObject<{
2278
+ userId: z.ZodString;
2279
+ }, "strip", z.ZodTypeAny, {
2280
+ userId: string;
2281
+ }, {
2282
+ userId: string;
2283
+ }>;
2284
+ summary: "NDPA erasure: irreversibly anonymize the personal data of a deactivated user who belongs to no other active company (financial and audit rows are kept)";
2285
+ method: "POST";
2286
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2287
+ path: "/company/users/:userId/anonymize";
2288
+ responses: {
2289
+ 400: z.ZodObject<{
2290
+ errors: z.ZodArray<z.ZodObject<{
2291
+ status: z.ZodString;
2292
+ title: z.ZodString;
2293
+ detail: z.ZodOptional<z.ZodString>;
2294
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2295
+ }, "strip", z.ZodTypeAny, {
2296
+ status: string;
2297
+ title: string;
2298
+ detail?: string | undefined;
2299
+ meta?: Record<string, unknown> | undefined;
2300
+ }, {
2301
+ status: string;
2302
+ title: string;
2303
+ detail?: string | undefined;
2304
+ meta?: Record<string, unknown> | undefined;
2305
+ }>, "many">;
2306
+ }, "strip", z.ZodTypeAny, {
2307
+ errors: {
2308
+ status: string;
2309
+ title: string;
2310
+ detail?: string | undefined;
2311
+ meta?: Record<string, unknown> | undefined;
2312
+ }[];
2313
+ }, {
2314
+ errors: {
2315
+ status: string;
2316
+ title: string;
2317
+ detail?: string | undefined;
2318
+ meta?: Record<string, unknown> | undefined;
2319
+ }[];
2320
+ }>;
2321
+ 401: z.ZodObject<{
2322
+ errors: z.ZodArray<z.ZodObject<{
2323
+ status: z.ZodString;
2324
+ title: z.ZodString;
2325
+ detail: z.ZodOptional<z.ZodString>;
2326
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2327
+ }, "strip", z.ZodTypeAny, {
2328
+ status: string;
2329
+ title: string;
2330
+ detail?: string | undefined;
2331
+ meta?: Record<string, unknown> | undefined;
2332
+ }, {
2333
+ status: string;
2334
+ title: string;
2335
+ detail?: string | undefined;
2336
+ meta?: Record<string, unknown> | undefined;
2337
+ }>, "many">;
2338
+ }, "strip", z.ZodTypeAny, {
2339
+ errors: {
2340
+ status: string;
2341
+ title: string;
2342
+ detail?: string | undefined;
2343
+ meta?: Record<string, unknown> | undefined;
2344
+ }[];
2345
+ }, {
2346
+ errors: {
2347
+ status: string;
2348
+ title: string;
2349
+ detail?: string | undefined;
2350
+ meta?: Record<string, unknown> | undefined;
2351
+ }[];
2352
+ }>;
2353
+ 403: z.ZodObject<{
2354
+ errors: z.ZodArray<z.ZodObject<{
2355
+ status: z.ZodString;
2356
+ title: z.ZodString;
2357
+ detail: z.ZodOptional<z.ZodString>;
2358
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ status: string;
2361
+ title: string;
2362
+ detail?: string | undefined;
2363
+ meta?: Record<string, unknown> | undefined;
2364
+ }, {
2365
+ status: string;
2366
+ title: string;
2367
+ detail?: string | undefined;
2368
+ meta?: Record<string, unknown> | undefined;
2369
+ }>, "many">;
2370
+ }, "strip", z.ZodTypeAny, {
2371
+ errors: {
2372
+ status: string;
2373
+ title: string;
2374
+ detail?: string | undefined;
2375
+ meta?: Record<string, unknown> | undefined;
2376
+ }[];
2377
+ }, {
2378
+ errors: {
2379
+ status: string;
2380
+ title: string;
2381
+ detail?: string | undefined;
2382
+ meta?: Record<string, unknown> | undefined;
2383
+ }[];
2384
+ }>;
2385
+ 404: z.ZodObject<{
2386
+ errors: z.ZodArray<z.ZodObject<{
2387
+ status: z.ZodString;
2388
+ title: z.ZodString;
2389
+ detail: z.ZodOptional<z.ZodString>;
2390
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2391
+ }, "strip", z.ZodTypeAny, {
2392
+ status: string;
2393
+ title: string;
2394
+ detail?: string | undefined;
2395
+ meta?: Record<string, unknown> | undefined;
2396
+ }, {
2397
+ status: string;
2398
+ title: string;
2399
+ detail?: string | undefined;
2400
+ meta?: Record<string, unknown> | undefined;
2401
+ }>, "many">;
2402
+ }, "strip", z.ZodTypeAny, {
2403
+ errors: {
2404
+ status: string;
2405
+ title: string;
2406
+ detail?: string | undefined;
2407
+ meta?: Record<string, unknown> | undefined;
2408
+ }[];
2409
+ }, {
2410
+ errors: {
2411
+ status: string;
2412
+ title: string;
2413
+ detail?: string | undefined;
2414
+ meta?: Record<string, unknown> | undefined;
2415
+ }[];
2416
+ }>;
2417
+ 409: z.ZodObject<{
2418
+ errors: z.ZodArray<z.ZodObject<{
2419
+ status: z.ZodString;
2420
+ title: z.ZodString;
2421
+ detail: z.ZodOptional<z.ZodString>;
2422
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2423
+ }, "strip", z.ZodTypeAny, {
2424
+ status: string;
2425
+ title: string;
2426
+ detail?: string | undefined;
2427
+ meta?: Record<string, unknown> | undefined;
2428
+ }, {
2429
+ status: string;
2430
+ title: string;
2431
+ detail?: string | undefined;
2432
+ meta?: Record<string, unknown> | undefined;
2433
+ }>, "many">;
2434
+ }, "strip", z.ZodTypeAny, {
2435
+ errors: {
2436
+ status: string;
2437
+ title: string;
2438
+ detail?: string | undefined;
2439
+ meta?: Record<string, unknown> | undefined;
2440
+ }[];
2441
+ }, {
2442
+ errors: {
2443
+ status: string;
2444
+ title: string;
2445
+ detail?: string | undefined;
2446
+ meta?: Record<string, unknown> | undefined;
2447
+ }[];
2448
+ }>;
2449
+ 200: z.ZodObject<{
2450
+ data: z.ZodObject<{
2451
+ type: z.ZodLiteral<"company-users">;
2452
+ id: z.ZodString;
2453
+ attributes: z.ZodObject<{
2454
+ id: z.ZodString;
2455
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2456
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2457
+ email: z.ZodOptional<z.ZodString>;
2458
+ name: z.ZodOptional<z.ZodString>;
2459
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2460
+ } & {
2461
+ role: z.ZodEnum<["SUPER_ADMIN", "COMPANY_ADMIN", "EXECUTIVE", "PROJECT_MANAGER", "ASSISTANT_PROJECT_MANAGER", "SITE_MANAGER", "SUPERINTENDENT", "FINANCE_MANAGER", "SAFETY_MANAGER", "QA_MANAGER", "ARCHITECT", "ENGINEER", "ESTIMATOR", "SCHEDULER", "DOCUMENT_CONTROLLER", "ACCOUNTANT", "PROCUREMENT_OFFICER", "CONTRACTOR", "SUBCONTRACTOR", "FIELD_WORKER", "TRADE_SPECIALIST", "EQUIPMENT_OPERATOR", "INSPECTOR", "CLIENT", "CONSULTANT", "VENDOR"]>;
2462
+ roleDisplayName: z.ZodString;
2463
+ isActive: z.ZodBoolean;
2464
+ isOwner: z.ZodBoolean;
2465
+ lastLoginAt: z.ZodNullable<z.ZodString>;
2466
+ joinedAt: z.ZodString;
2467
+ }, "strip", z.ZodTypeAny, {
2468
+ id: string;
2469
+ isActive: boolean;
2470
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2471
+ lastLoginAt: string | null;
2472
+ joinedAt: string;
2473
+ roleDisplayName: string;
2474
+ isOwner: boolean;
2475
+ firstName?: string | null | undefined;
2476
+ lastName?: string | null | undefined;
2477
+ email?: string | undefined;
2478
+ name?: string | undefined;
2479
+ avatar?: string | null | undefined;
2480
+ }, {
2481
+ id: string;
2482
+ isActive: boolean;
2483
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2484
+ lastLoginAt: string | null;
2485
+ joinedAt: string;
2486
+ roleDisplayName: string;
2487
+ isOwner: boolean;
2488
+ firstName?: string | null | undefined;
2489
+ lastName?: string | null | undefined;
2490
+ email?: string | undefined;
2491
+ name?: string | undefined;
2492
+ avatar?: string | null | undefined;
2493
+ }>;
2494
+ }, "strip", z.ZodTypeAny, {
2495
+ id: string;
2496
+ type: "company-users";
2497
+ attributes: {
2498
+ id: string;
2499
+ isActive: boolean;
2500
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2501
+ lastLoginAt: string | null;
2502
+ joinedAt: string;
2503
+ roleDisplayName: string;
2504
+ isOwner: boolean;
2505
+ firstName?: string | null | undefined;
2506
+ lastName?: string | null | undefined;
2507
+ email?: string | undefined;
2508
+ name?: string | undefined;
2509
+ avatar?: string | null | undefined;
2510
+ };
2511
+ }, {
2512
+ id: string;
2513
+ type: "company-users";
2514
+ attributes: {
2515
+ id: string;
2516
+ isActive: boolean;
2517
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2518
+ lastLoginAt: string | null;
2519
+ joinedAt: string;
2520
+ roleDisplayName: string;
2521
+ isOwner: boolean;
2522
+ firstName?: string | null | undefined;
2523
+ lastName?: string | null | undefined;
2524
+ email?: string | undefined;
2525
+ name?: string | undefined;
2526
+ avatar?: string | null | undefined;
2527
+ };
2528
+ }>;
2529
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2530
+ links: z.ZodOptional<z.ZodObject<{
2531
+ self: z.ZodString;
2532
+ first: z.ZodOptional<z.ZodString>;
2533
+ last: z.ZodOptional<z.ZodString>;
2534
+ prev: z.ZodOptional<z.ZodString>;
2535
+ next: z.ZodOptional<z.ZodString>;
2536
+ }, "strip", z.ZodTypeAny, {
2537
+ self: string;
2538
+ first?: string | undefined;
2539
+ last?: string | undefined;
2540
+ prev?: string | undefined;
2541
+ next?: string | undefined;
2542
+ }, {
2543
+ self: string;
2544
+ first?: string | undefined;
2545
+ last?: string | undefined;
2546
+ prev?: string | undefined;
2547
+ next?: string | undefined;
2548
+ }>>;
2549
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2550
+ status: z.ZodString;
2551
+ title: z.ZodString;
2552
+ detail: z.ZodOptional<z.ZodString>;
2553
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2554
+ }, "strip", z.ZodTypeAny, {
2555
+ status: string;
2556
+ title: string;
2557
+ detail?: string | undefined;
2558
+ meta?: Record<string, unknown> | undefined;
2559
+ }, {
2560
+ status: string;
2561
+ title: string;
2562
+ detail?: string | undefined;
2563
+ meta?: Record<string, unknown> | undefined;
2564
+ }>, "many">>;
2565
+ }, "strip", z.ZodTypeAny, {
2566
+ data: {
2567
+ id: string;
2568
+ type: "company-users";
2569
+ attributes: {
2570
+ id: string;
2571
+ isActive: boolean;
2572
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2573
+ lastLoginAt: string | null;
2574
+ joinedAt: string;
2575
+ roleDisplayName: string;
2576
+ isOwner: boolean;
2577
+ firstName?: string | null | undefined;
2578
+ lastName?: string | null | undefined;
2579
+ email?: string | undefined;
2580
+ name?: string | undefined;
2581
+ avatar?: string | null | undefined;
2582
+ };
2583
+ };
2584
+ meta?: Record<string, unknown> | undefined;
2585
+ links?: {
2586
+ self: string;
2587
+ first?: string | undefined;
2588
+ last?: string | undefined;
2589
+ prev?: string | undefined;
2590
+ next?: string | undefined;
2591
+ } | undefined;
2592
+ errors?: {
2593
+ status: string;
2594
+ title: string;
2595
+ detail?: string | undefined;
2596
+ meta?: Record<string, unknown> | undefined;
2597
+ }[] | undefined;
2598
+ }, {
2599
+ data: {
2600
+ id: string;
2601
+ type: "company-users";
2602
+ attributes: {
2603
+ id: string;
2604
+ isActive: boolean;
2605
+ role: "SUPER_ADMIN" | "COMPANY_ADMIN" | "EXECUTIVE" | "PROJECT_MANAGER" | "ASSISTANT_PROJECT_MANAGER" | "SITE_MANAGER" | "SUPERINTENDENT" | "FINANCE_MANAGER" | "SAFETY_MANAGER" | "QA_MANAGER" | "ARCHITECT" | "ENGINEER" | "ESTIMATOR" | "SCHEDULER" | "DOCUMENT_CONTROLLER" | "ACCOUNTANT" | "PROCUREMENT_OFFICER" | "CONTRACTOR" | "SUBCONTRACTOR" | "FIELD_WORKER" | "TRADE_SPECIALIST" | "EQUIPMENT_OPERATOR" | "INSPECTOR" | "CLIENT" | "CONSULTANT" | "VENDOR";
2606
+ lastLoginAt: string | null;
2607
+ joinedAt: string;
2608
+ roleDisplayName: string;
2609
+ isOwner: boolean;
2610
+ firstName?: string | null | undefined;
2611
+ lastName?: string | null | undefined;
2612
+ email?: string | undefined;
2613
+ name?: string | undefined;
2614
+ avatar?: string | null | undefined;
2615
+ };
2616
+ };
2617
+ meta?: Record<string, unknown> | undefined;
2618
+ links?: {
2619
+ self: string;
2620
+ first?: string | undefined;
2621
+ last?: string | undefined;
2622
+ prev?: string | undefined;
2623
+ next?: string | undefined;
2624
+ } | undefined;
2625
+ errors?: {
2626
+ status: string;
2627
+ title: string;
2628
+ detail?: string | undefined;
2629
+ meta?: Record<string, unknown> | undefined;
2630
+ }[] | undefined;
2631
+ }>;
2632
+ };
2633
+ };
2634
+ };
2635
+ //# sourceMappingURL=user-admin.d.ts.map