@deepintel-ltd/buildlink-api-contracts 0.2.23

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 (278) hide show
  1. package/README.md +27 -0
  2. package/contracts/auth.d.ts +3641 -0
  3. package/contracts/auth.d.ts.map +1 -0
  4. package/contracts/auth.js +266 -0
  5. package/contracts/auth.js.map +1 -0
  6. package/contracts/billing.d.ts +2167 -0
  7. package/contracts/billing.d.ts.map +1 -0
  8. package/contracts/billing.js +55 -0
  9. package/contracts/billing.js.map +1 -0
  10. package/contracts/boq.d.ts +1214 -0
  11. package/contracts/boq.d.ts.map +1 -0
  12. package/contracts/boq.js +31 -0
  13. package/contracts/boq.js.map +1 -0
  14. package/contracts/budget.d.ts +10677 -0
  15. package/contracts/budget.d.ts.map +1 -0
  16. package/contracts/budget.js +599 -0
  17. package/contracts/budget.js.map +1 -0
  18. package/contracts/commercial.d.ts +1475 -0
  19. package/contracts/commercial.d.ts.map +1 -0
  20. package/contracts/commercial.js +40 -0
  21. package/contracts/commercial.js.map +1 -0
  22. package/contracts/communication.d.ts +5389 -0
  23. package/contracts/communication.d.ts.map +1 -0
  24. package/contracts/communication.js +255 -0
  25. package/contracts/communication.js.map +1 -0
  26. package/contracts/contractor-ledger.d.ts +1293 -0
  27. package/contracts/contractor-ledger.d.ts.map +1 -0
  28. package/contracts/contractor-ledger.js +41 -0
  29. package/contracts/contractor-ledger.js.map +1 -0
  30. package/contracts/daily-logs.d.ts +9132 -0
  31. package/contracts/daily-logs.d.ts.map +1 -0
  32. package/contracts/daily-logs.js +188 -0
  33. package/contracts/daily-logs.js.map +1 -0
  34. package/contracts/deficiencies.d.ts +11786 -0
  35. package/contracts/deficiencies.d.ts.map +1 -0
  36. package/contracts/deficiencies.js +312 -0
  37. package/contracts/deficiencies.js.map +1 -0
  38. package/contracts/directory.d.ts +3116 -0
  39. package/contracts/directory.d.ts.map +1 -0
  40. package/contracts/directory.js +117 -0
  41. package/contracts/directory.js.map +1 -0
  42. package/contracts/documents.d.ts +4944 -0
  43. package/contracts/documents.d.ts.map +1 -0
  44. package/contracts/documents.js +251 -0
  45. package/contracts/documents.js.map +1 -0
  46. package/contracts/drawings.d.ts +10552 -0
  47. package/contracts/drawings.d.ts.map +1 -0
  48. package/contracts/drawings.js +321 -0
  49. package/contracts/drawings.js.map +1 -0
  50. package/contracts/hub.d.ts +1174 -0
  51. package/contracts/hub.d.ts.map +1 -0
  52. package/contracts/hub.js +42 -0
  53. package/contracts/hub.js.map +1 -0
  54. package/contracts/index.d.ts +128 -0
  55. package/contracts/index.d.ts.map +1 -0
  56. package/contracts/index.js +119 -0
  57. package/contracts/index.js.map +1 -0
  58. package/contracts/integrations.d.ts +4163 -0
  59. package/contracts/integrations.d.ts.map +1 -0
  60. package/contracts/integrations.js +326 -0
  61. package/contracts/integrations.js.map +1 -0
  62. package/contracts/maps.d.ts +4911 -0
  63. package/contracts/maps.d.ts.map +1 -0
  64. package/contracts/maps.js +276 -0
  65. package/contracts/maps.js.map +1 -0
  66. package/contracts/meetings.d.ts +4194 -0
  67. package/contracts/meetings.d.ts.map +1 -0
  68. package/contracts/meetings.js +115 -0
  69. package/contracts/meetings.js.map +1 -0
  70. package/contracts/monitoring.d.ts +2749 -0
  71. package/contracts/monitoring.d.ts.map +1 -0
  72. package/contracts/monitoring.js +289 -0
  73. package/contracts/monitoring.js.map +1 -0
  74. package/contracts/packages.d.ts +1470 -0
  75. package/contracts/packages.d.ts.map +1 -0
  76. package/contracts/packages.js +74 -0
  77. package/contracts/packages.js.map +1 -0
  78. package/contracts/projects.d.ts +6281 -0
  79. package/contracts/projects.d.ts.map +1 -0
  80. package/contracts/projects.js +448 -0
  81. package/contracts/projects.js.map +1 -0
  82. package/contracts/proof.d.ts +962 -0
  83. package/contracts/proof.d.ts.map +1 -0
  84. package/contracts/proof.js +34 -0
  85. package/contracts/proof.js.map +1 -0
  86. package/contracts/qaqc.d.ts +1184 -0
  87. package/contracts/qaqc.d.ts.map +1 -0
  88. package/contracts/qaqc.js +35 -0
  89. package/contracts/qaqc.js.map +1 -0
  90. package/contracts/rbac.d.ts +5227 -0
  91. package/contracts/rbac.d.ts.map +1 -0
  92. package/contracts/rbac.js +357 -0
  93. package/contracts/rbac.js.map +1 -0
  94. package/contracts/reports.d.ts +8468 -0
  95. package/contracts/reports.d.ts.map +1 -0
  96. package/contracts/reports.js +377 -0
  97. package/contracts/reports.js.map +1 -0
  98. package/contracts/resources.d.ts +15870 -0
  99. package/contracts/resources.d.ts.map +1 -0
  100. package/contracts/resources.js +869 -0
  101. package/contracts/resources.js.map +1 -0
  102. package/contracts/rfi-submittal.d.ts +2545 -0
  103. package/contracts/rfi-submittal.d.ts.map +1 -0
  104. package/contracts/rfi-submittal.js +159 -0
  105. package/contracts/rfi-submittal.js.map +1 -0
  106. package/contracts/safety.d.ts +7162 -0
  107. package/contracts/safety.d.ts.map +1 -0
  108. package/contracts/safety.js +519 -0
  109. package/contracts/safety.js.map +1 -0
  110. package/contracts/schedule.d.ts +9456 -0
  111. package/contracts/schedule.d.ts.map +1 -0
  112. package/contracts/schedule.js +460 -0
  113. package/contracts/schedule.js.map +1 -0
  114. package/contracts/spec-equal.d.ts +841 -0
  115. package/contracts/spec-equal.d.ts.map +1 -0
  116. package/contracts/spec-equal.js +28 -0
  117. package/contracts/spec-equal.js.map +1 -0
  118. package/contracts/specifications.d.ts +15478 -0
  119. package/contracts/specifications.d.ts.map +1 -0
  120. package/contracts/specifications.js +521 -0
  121. package/contracts/specifications.js.map +1 -0
  122. package/contracts/tasks.d.ts +11037 -0
  123. package/contracts/tasks.d.ts.map +1 -0
  124. package/contracts/tasks.js +693 -0
  125. package/contracts/tasks.js.map +1 -0
  126. package/contracts/timecards.d.ts +3130 -0
  127. package/contracts/timecards.d.ts.map +1 -0
  128. package/contracts/timecards.js +133 -0
  129. package/contracts/timecards.js.map +1 -0
  130. package/contracts/transmittals.d.ts +3921 -0
  131. package/contracts/transmittals.d.ts.map +1 -0
  132. package/contracts/transmittals.js +156 -0
  133. package/contracts/transmittals.js.map +1 -0
  134. package/contracts/valuations.d.ts +3266 -0
  135. package/contracts/valuations.d.ts.map +1 -0
  136. package/contracts/valuations.js +116 -0
  137. package/contracts/valuations.js.map +1 -0
  138. package/package.json +216 -0
  139. package/schemas/auth.d.ts +449 -0
  140. package/schemas/auth.d.ts.map +1 -0
  141. package/schemas/auth.js +103 -0
  142. package/schemas/auth.js.map +1 -0
  143. package/schemas/billing.d.ts +710 -0
  144. package/schemas/billing.d.ts.map +1 -0
  145. package/schemas/billing.js +82 -0
  146. package/schemas/billing.js.map +1 -0
  147. package/schemas/boq.d.ts +385 -0
  148. package/schemas/boq.d.ts.map +1 -0
  149. package/schemas/boq.js +49 -0
  150. package/schemas/boq.js.map +1 -0
  151. package/schemas/budget.d.ts +737 -0
  152. package/schemas/budget.d.ts.map +1 -0
  153. package/schemas/budget.js +272 -0
  154. package/schemas/budget.js.map +1 -0
  155. package/schemas/commercial.d.ts +358 -0
  156. package/schemas/commercial.d.ts.map +1 -0
  157. package/schemas/commercial.js +36 -0
  158. package/schemas/commercial.js.map +1 -0
  159. package/schemas/common.d.ts +865 -0
  160. package/schemas/common.d.ts.map +1 -0
  161. package/schemas/common.js +193 -0
  162. package/schemas/common.js.map +1 -0
  163. package/schemas/communication.d.ts +884 -0
  164. package/schemas/communication.d.ts.map +1 -0
  165. package/schemas/communication.js +245 -0
  166. package/schemas/communication.js.map +1 -0
  167. package/schemas/contractor-ledger.d.ts +364 -0
  168. package/schemas/contractor-ledger.d.ts.map +1 -0
  169. package/schemas/contractor-ledger.js +36 -0
  170. package/schemas/contractor-ledger.js.map +1 -0
  171. package/schemas/cursor-pagination.d.ts +258 -0
  172. package/schemas/cursor-pagination.d.ts.map +1 -0
  173. package/schemas/cursor-pagination.js +84 -0
  174. package/schemas/cursor-pagination.js.map +1 -0
  175. package/schemas/daily-logs.d.ts +2339 -0
  176. package/schemas/daily-logs.d.ts.map +1 -0
  177. package/schemas/daily-logs.js +235 -0
  178. package/schemas/daily-logs.js.map +1 -0
  179. package/schemas/deficiencies.d.ts +2496 -0
  180. package/schemas/deficiencies.d.ts.map +1 -0
  181. package/schemas/deficiencies.js +338 -0
  182. package/schemas/deficiencies.js.map +1 -0
  183. package/schemas/directory.d.ts +783 -0
  184. package/schemas/directory.d.ts.map +1 -0
  185. package/schemas/directory.js +122 -0
  186. package/schemas/directory.js.map +1 -0
  187. package/schemas/documents.d.ts +202 -0
  188. package/schemas/documents.d.ts.map +1 -0
  189. package/schemas/documents.js +76 -0
  190. package/schemas/documents.js.map +1 -0
  191. package/schemas/drawings.d.ts +2042 -0
  192. package/schemas/drawings.d.ts.map +1 -0
  193. package/schemas/drawings.js +350 -0
  194. package/schemas/drawings.js.map +1 -0
  195. package/schemas/hub.d.ts +288 -0
  196. package/schemas/hub.d.ts.map +1 -0
  197. package/schemas/hub.js +32 -0
  198. package/schemas/hub.js.map +1 -0
  199. package/schemas/integrations.d.ts +508 -0
  200. package/schemas/integrations.d.ts.map +1 -0
  201. package/schemas/integrations.js +119 -0
  202. package/schemas/integrations.js.map +1 -0
  203. package/schemas/maps.d.ts +793 -0
  204. package/schemas/maps.d.ts.map +1 -0
  205. package/schemas/maps.js +118 -0
  206. package/schemas/maps.js.map +1 -0
  207. package/schemas/meetings.d.ts +888 -0
  208. package/schemas/meetings.d.ts.map +1 -0
  209. package/schemas/meetings.js +138 -0
  210. package/schemas/meetings.js.map +1 -0
  211. package/schemas/packages.d.ts +236 -0
  212. package/schemas/packages.d.ts.map +1 -0
  213. package/schemas/packages.js +53 -0
  214. package/schemas/packages.js.map +1 -0
  215. package/schemas/projects.d.ts +306 -0
  216. package/schemas/projects.d.ts.map +1 -0
  217. package/schemas/projects.js +92 -0
  218. package/schemas/projects.js.map +1 -0
  219. package/schemas/proof.d.ts +210 -0
  220. package/schemas/proof.d.ts.map +1 -0
  221. package/schemas/proof.js +26 -0
  222. package/schemas/proof.js.map +1 -0
  223. package/schemas/qaqc.d.ts +235 -0
  224. package/schemas/qaqc.d.ts.map +1 -0
  225. package/schemas/qaqc.js +47 -0
  226. package/schemas/qaqc.js.map +1 -0
  227. package/schemas/rbac.d.ts +730 -0
  228. package/schemas/rbac.d.ts.map +1 -0
  229. package/schemas/rbac.js +230 -0
  230. package/schemas/rbac.js.map +1 -0
  231. package/schemas/reports.d.ts +5729 -0
  232. package/schemas/reports.d.ts.map +1 -0
  233. package/schemas/reports.js +589 -0
  234. package/schemas/reports.js.map +1 -0
  235. package/schemas/resources.d.ts +5190 -0
  236. package/schemas/resources.d.ts.map +1 -0
  237. package/schemas/resources.js +678 -0
  238. package/schemas/resources.js.map +1 -0
  239. package/schemas/rfi.d.ts +877 -0
  240. package/schemas/rfi.d.ts.map +1 -0
  241. package/schemas/rfi.js +84 -0
  242. package/schemas/rfi.js.map +1 -0
  243. package/schemas/safety.d.ts +1080 -0
  244. package/schemas/safety.d.ts.map +1 -0
  245. package/schemas/safety.js +237 -0
  246. package/schemas/safety.js.map +1 -0
  247. package/schemas/schedule.d.ts +4657 -0
  248. package/schemas/schedule.d.ts.map +1 -0
  249. package/schemas/schedule.js +441 -0
  250. package/schemas/schedule.js.map +1 -0
  251. package/schemas/spec-equal.d.ts +162 -0
  252. package/schemas/spec-equal.d.ts.map +1 -0
  253. package/schemas/spec-equal.js +29 -0
  254. package/schemas/spec-equal.js.map +1 -0
  255. package/schemas/specifications.d.ts +5241 -0
  256. package/schemas/specifications.d.ts.map +1 -0
  257. package/schemas/specifications.js +426 -0
  258. package/schemas/specifications.js.map +1 -0
  259. package/schemas/submittal.d.ts +867 -0
  260. package/schemas/submittal.d.ts.map +1 -0
  261. package/schemas/submittal.js +87 -0
  262. package/schemas/submittal.js.map +1 -0
  263. package/schemas/tasks.d.ts +610 -0
  264. package/schemas/tasks.d.ts.map +1 -0
  265. package/schemas/tasks.js +133 -0
  266. package/schemas/tasks.js.map +1 -0
  267. package/schemas/timecards.d.ts +618 -0
  268. package/schemas/timecards.d.ts.map +1 -0
  269. package/schemas/timecards.js +80 -0
  270. package/schemas/timecards.js.map +1 -0
  271. package/schemas/transmittals.d.ts +662 -0
  272. package/schemas/transmittals.d.ts.map +1 -0
  273. package/schemas/transmittals.js +132 -0
  274. package/schemas/transmittals.js.map +1 -0
  275. package/schemas/valuations.d.ts +713 -0
  276. package/schemas/valuations.d.ts.map +1 -0
  277. package/schemas/valuations.js +116 -0
  278. package/schemas/valuations.js.map +1 -0
@@ -0,0 +1,4163 @@
1
+ import { z } from 'zod';
2
+ export declare const integrationsContract: {
3
+ getIntegrations: {
4
+ query: z.ZodObject<{
5
+ page: z.ZodDefault<z.ZodNumber>;
6
+ limit: z.ZodDefault<z.ZodNumber>;
7
+ type: z.ZodOptional<z.ZodEnum<["ACCOUNTING", "PROJECT_MANAGEMENT", "CRM", "HR", "DOCUMENT_STORAGE", "REPORTING", "API", "WEBHOOK"]>>;
8
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "ERROR", "PENDING"]>>;
9
+ provider: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ page: number;
12
+ limit: number;
13
+ type?: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK" | undefined;
14
+ status?: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR" | undefined;
15
+ provider?: string | undefined;
16
+ }, {
17
+ type?: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK" | undefined;
18
+ status?: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR" | undefined;
19
+ page?: number | undefined;
20
+ limit?: number | undefined;
21
+ provider?: string | undefined;
22
+ }>;
23
+ summary: "Get company integrations with filtering";
24
+ method: "GET";
25
+ path: "/integrations";
26
+ responses: {
27
+ 200: z.ZodObject<{
28
+ data: z.ZodArray<z.ZodObject<{
29
+ type: z.ZodLiteral<"integrations">;
30
+ id: z.ZodString;
31
+ attributes: z.ZodObject<{
32
+ id: z.ZodString;
33
+ name: z.ZodString;
34
+ type: z.ZodEnum<["ACCOUNTING", "PROJECT_MANAGEMENT", "CRM", "HR", "DOCUMENT_STORAGE", "REPORTING", "API", "WEBHOOK"]>;
35
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "ERROR", "PENDING"]>;
36
+ provider: z.ZodString;
37
+ description: z.ZodOptional<z.ZodString>;
38
+ configuration: z.ZodRecord<z.ZodString, z.ZodAny>;
39
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40
+ lastSyncAt: z.ZodOptional<z.ZodString>;
41
+ lastErrorAt: z.ZodOptional<z.ZodString>;
42
+ lastErrorMessage: z.ZodOptional<z.ZodString>;
43
+ syncFrequency: z.ZodDefault<z.ZodEnum<["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MANUAL"]>>;
44
+ isActive: z.ZodDefault<z.ZodBoolean>;
45
+ createdAt: z.ZodString;
46
+ updatedAt: z.ZodString;
47
+ }, "strip", z.ZodTypeAny, {
48
+ id: string;
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ isActive: boolean;
52
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
53
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
54
+ name: string;
55
+ provider: string;
56
+ configuration: Record<string, any>;
57
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
58
+ description?: string | undefined;
59
+ credentials?: Record<string, string> | undefined;
60
+ lastSyncAt?: string | undefined;
61
+ lastErrorAt?: string | undefined;
62
+ lastErrorMessage?: string | undefined;
63
+ }, {
64
+ id: string;
65
+ createdAt: string;
66
+ updatedAt: string;
67
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
68
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
69
+ name: string;
70
+ provider: string;
71
+ configuration: Record<string, any>;
72
+ isActive?: boolean | undefined;
73
+ description?: string | undefined;
74
+ credentials?: Record<string, string> | undefined;
75
+ lastSyncAt?: string | undefined;
76
+ lastErrorAt?: string | undefined;
77
+ lastErrorMessage?: string | undefined;
78
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
79
+ }>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ id: string;
82
+ type: "integrations";
83
+ attributes: {
84
+ id: string;
85
+ createdAt: string;
86
+ updatedAt: string;
87
+ isActive: boolean;
88
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
89
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
90
+ name: string;
91
+ provider: string;
92
+ configuration: Record<string, any>;
93
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
94
+ description?: string | undefined;
95
+ credentials?: Record<string, string> | undefined;
96
+ lastSyncAt?: string | undefined;
97
+ lastErrorAt?: string | undefined;
98
+ lastErrorMessage?: string | undefined;
99
+ };
100
+ }, {
101
+ id: string;
102
+ type: "integrations";
103
+ attributes: {
104
+ id: string;
105
+ createdAt: string;
106
+ updatedAt: string;
107
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
108
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
109
+ name: string;
110
+ provider: string;
111
+ configuration: Record<string, any>;
112
+ isActive?: boolean | undefined;
113
+ description?: string | undefined;
114
+ credentials?: Record<string, string> | undefined;
115
+ lastSyncAt?: string | undefined;
116
+ lastErrorAt?: string | undefined;
117
+ lastErrorMessage?: string | undefined;
118
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
119
+ };
120
+ }>, "many">;
121
+ meta: z.ZodOptional<z.ZodObject<{
122
+ total: z.ZodOptional<z.ZodNumber>;
123
+ page: z.ZodOptional<z.ZodNumber>;
124
+ size: z.ZodOptional<z.ZodNumber>;
125
+ pages: z.ZodOptional<z.ZodNumber>;
126
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
127
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ page?: number | undefined;
130
+ total?: number | undefined;
131
+ size?: number | undefined;
132
+ pages?: number | undefined;
133
+ hasNextPage?: boolean | undefined;
134
+ hasPreviousPage?: boolean | undefined;
135
+ }, {
136
+ page?: number | undefined;
137
+ total?: number | undefined;
138
+ size?: number | undefined;
139
+ pages?: number | undefined;
140
+ hasNextPage?: boolean | undefined;
141
+ hasPreviousPage?: boolean | undefined;
142
+ }>>;
143
+ links: z.ZodOptional<z.ZodObject<{
144
+ self: z.ZodString;
145
+ first: z.ZodOptional<z.ZodString>;
146
+ last: z.ZodOptional<z.ZodString>;
147
+ prev: z.ZodOptional<z.ZodString>;
148
+ next: z.ZodOptional<z.ZodString>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ self: string;
151
+ first?: string | undefined;
152
+ last?: string | undefined;
153
+ prev?: string | undefined;
154
+ next?: string | undefined;
155
+ }, {
156
+ self: string;
157
+ first?: string | undefined;
158
+ last?: string | undefined;
159
+ prev?: string | undefined;
160
+ next?: string | undefined;
161
+ }>>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ data: {
164
+ id: string;
165
+ type: "integrations";
166
+ attributes: {
167
+ id: string;
168
+ createdAt: string;
169
+ updatedAt: string;
170
+ isActive: boolean;
171
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
172
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
173
+ name: string;
174
+ provider: string;
175
+ configuration: Record<string, any>;
176
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
177
+ description?: string | undefined;
178
+ credentials?: Record<string, string> | undefined;
179
+ lastSyncAt?: string | undefined;
180
+ lastErrorAt?: string | undefined;
181
+ lastErrorMessage?: string | undefined;
182
+ };
183
+ }[];
184
+ meta?: {
185
+ page?: number | undefined;
186
+ total?: number | undefined;
187
+ size?: number | undefined;
188
+ pages?: number | undefined;
189
+ hasNextPage?: boolean | undefined;
190
+ hasPreviousPage?: boolean | undefined;
191
+ } | undefined;
192
+ links?: {
193
+ self: string;
194
+ first?: string | undefined;
195
+ last?: string | undefined;
196
+ prev?: string | undefined;
197
+ next?: string | undefined;
198
+ } | undefined;
199
+ }, {
200
+ data: {
201
+ id: string;
202
+ type: "integrations";
203
+ attributes: {
204
+ id: string;
205
+ createdAt: string;
206
+ updatedAt: string;
207
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
208
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
209
+ name: string;
210
+ provider: string;
211
+ configuration: Record<string, any>;
212
+ isActive?: boolean | undefined;
213
+ description?: string | undefined;
214
+ credentials?: Record<string, string> | undefined;
215
+ lastSyncAt?: string | undefined;
216
+ lastErrorAt?: string | undefined;
217
+ lastErrorMessage?: string | undefined;
218
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
219
+ };
220
+ }[];
221
+ meta?: {
222
+ page?: number | undefined;
223
+ total?: number | undefined;
224
+ size?: number | undefined;
225
+ pages?: number | undefined;
226
+ hasNextPage?: boolean | undefined;
227
+ hasPreviousPage?: boolean | undefined;
228
+ } | undefined;
229
+ links?: {
230
+ self: string;
231
+ first?: string | undefined;
232
+ last?: string | undefined;
233
+ prev?: string | undefined;
234
+ next?: string | undefined;
235
+ } | undefined;
236
+ }>;
237
+ 403: z.ZodObject<{
238
+ errors: z.ZodArray<z.ZodObject<{
239
+ status: z.ZodString;
240
+ title: z.ZodString;
241
+ detail: z.ZodOptional<z.ZodString>;
242
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ status: string;
245
+ title: string;
246
+ detail?: string | undefined;
247
+ meta?: Record<string, unknown> | undefined;
248
+ }, {
249
+ status: string;
250
+ title: string;
251
+ detail?: string | undefined;
252
+ meta?: Record<string, unknown> | undefined;
253
+ }>, "many">;
254
+ }, "strip", z.ZodTypeAny, {
255
+ errors: {
256
+ status: string;
257
+ title: string;
258
+ detail?: string | undefined;
259
+ meta?: Record<string, unknown> | undefined;
260
+ }[];
261
+ }, {
262
+ errors: {
263
+ status: string;
264
+ title: string;
265
+ detail?: string | undefined;
266
+ meta?: Record<string, unknown> | undefined;
267
+ }[];
268
+ }>;
269
+ };
270
+ };
271
+ createIntegration: {
272
+ summary: "Create a new integration";
273
+ method: "POST";
274
+ body: z.ZodObject<{
275
+ name: z.ZodString;
276
+ type: z.ZodEnum<["ACCOUNTING", "PROJECT_MANAGEMENT", "CRM", "HR", "DOCUMENT_STORAGE", "REPORTING", "API", "WEBHOOK"]>;
277
+ provider: z.ZodString;
278
+ description: z.ZodOptional<z.ZodString>;
279
+ configuration: z.ZodRecord<z.ZodString, z.ZodAny>;
280
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
281
+ syncFrequency: z.ZodDefault<z.ZodEnum<["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MANUAL"]>>;
282
+ isActive: z.ZodDefault<z.ZodBoolean>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ isActive: boolean;
285
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
286
+ name: string;
287
+ provider: string;
288
+ configuration: Record<string, any>;
289
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
290
+ description?: string | undefined;
291
+ credentials?: Record<string, string> | undefined;
292
+ }, {
293
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
294
+ name: string;
295
+ provider: string;
296
+ configuration: Record<string, any>;
297
+ isActive?: boolean | undefined;
298
+ description?: string | undefined;
299
+ credentials?: Record<string, string> | undefined;
300
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
301
+ }>;
302
+ path: "/integrations";
303
+ responses: {
304
+ 201: z.ZodObject<{
305
+ data: z.ZodObject<{
306
+ type: z.ZodLiteral<"integrations">;
307
+ id: z.ZodString;
308
+ attributes: z.ZodObject<{
309
+ id: z.ZodString;
310
+ name: z.ZodString;
311
+ type: z.ZodEnum<["ACCOUNTING", "PROJECT_MANAGEMENT", "CRM", "HR", "DOCUMENT_STORAGE", "REPORTING", "API", "WEBHOOK"]>;
312
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "ERROR", "PENDING"]>;
313
+ provider: z.ZodString;
314
+ description: z.ZodOptional<z.ZodString>;
315
+ configuration: z.ZodRecord<z.ZodString, z.ZodAny>;
316
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
317
+ lastSyncAt: z.ZodOptional<z.ZodString>;
318
+ lastErrorAt: z.ZodOptional<z.ZodString>;
319
+ lastErrorMessage: z.ZodOptional<z.ZodString>;
320
+ syncFrequency: z.ZodDefault<z.ZodEnum<["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MANUAL"]>>;
321
+ isActive: z.ZodDefault<z.ZodBoolean>;
322
+ createdAt: z.ZodString;
323
+ updatedAt: z.ZodString;
324
+ }, "strip", z.ZodTypeAny, {
325
+ id: string;
326
+ createdAt: string;
327
+ updatedAt: string;
328
+ isActive: boolean;
329
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
330
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
331
+ name: string;
332
+ provider: string;
333
+ configuration: Record<string, any>;
334
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
335
+ description?: string | undefined;
336
+ credentials?: Record<string, string> | undefined;
337
+ lastSyncAt?: string | undefined;
338
+ lastErrorAt?: string | undefined;
339
+ lastErrorMessage?: string | undefined;
340
+ }, {
341
+ id: string;
342
+ createdAt: string;
343
+ updatedAt: string;
344
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
345
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
346
+ name: string;
347
+ provider: string;
348
+ configuration: Record<string, any>;
349
+ isActive?: boolean | undefined;
350
+ description?: string | undefined;
351
+ credentials?: Record<string, string> | undefined;
352
+ lastSyncAt?: string | undefined;
353
+ lastErrorAt?: string | undefined;
354
+ lastErrorMessage?: string | undefined;
355
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
356
+ }>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ id: string;
359
+ type: "integrations";
360
+ attributes: {
361
+ id: string;
362
+ createdAt: string;
363
+ updatedAt: string;
364
+ isActive: boolean;
365
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
366
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
367
+ name: string;
368
+ provider: string;
369
+ configuration: Record<string, any>;
370
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
371
+ description?: string | undefined;
372
+ credentials?: Record<string, string> | undefined;
373
+ lastSyncAt?: string | undefined;
374
+ lastErrorAt?: string | undefined;
375
+ lastErrorMessage?: string | undefined;
376
+ };
377
+ }, {
378
+ id: string;
379
+ type: "integrations";
380
+ attributes: {
381
+ id: string;
382
+ createdAt: string;
383
+ updatedAt: string;
384
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
385
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
386
+ name: string;
387
+ provider: string;
388
+ configuration: Record<string, any>;
389
+ isActive?: boolean | undefined;
390
+ description?: string | undefined;
391
+ credentials?: Record<string, string> | undefined;
392
+ lastSyncAt?: string | undefined;
393
+ lastErrorAt?: string | undefined;
394
+ lastErrorMessage?: string | undefined;
395
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
396
+ };
397
+ }>;
398
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
399
+ links: z.ZodOptional<z.ZodObject<{
400
+ self: z.ZodString;
401
+ first: z.ZodOptional<z.ZodString>;
402
+ last: z.ZodOptional<z.ZodString>;
403
+ prev: z.ZodOptional<z.ZodString>;
404
+ next: z.ZodOptional<z.ZodString>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ self: string;
407
+ first?: string | undefined;
408
+ last?: string | undefined;
409
+ prev?: string | undefined;
410
+ next?: string | undefined;
411
+ }, {
412
+ self: string;
413
+ first?: string | undefined;
414
+ last?: string | undefined;
415
+ prev?: string | undefined;
416
+ next?: string | undefined;
417
+ }>>;
418
+ errors: z.ZodOptional<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
+ data: {
436
+ id: string;
437
+ type: "integrations";
438
+ attributes: {
439
+ id: string;
440
+ createdAt: string;
441
+ updatedAt: string;
442
+ isActive: boolean;
443
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
444
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
445
+ name: string;
446
+ provider: string;
447
+ configuration: Record<string, any>;
448
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
449
+ description?: string | undefined;
450
+ credentials?: Record<string, string> | undefined;
451
+ lastSyncAt?: string | undefined;
452
+ lastErrorAt?: string | undefined;
453
+ lastErrorMessage?: string | undefined;
454
+ };
455
+ };
456
+ meta?: Record<string, unknown> | undefined;
457
+ links?: {
458
+ self: string;
459
+ first?: string | undefined;
460
+ last?: string | undefined;
461
+ prev?: string | undefined;
462
+ next?: string | undefined;
463
+ } | undefined;
464
+ errors?: {
465
+ status: string;
466
+ title: string;
467
+ detail?: string | undefined;
468
+ meta?: Record<string, unknown> | undefined;
469
+ }[] | undefined;
470
+ }, {
471
+ data: {
472
+ id: string;
473
+ type: "integrations";
474
+ attributes: {
475
+ id: string;
476
+ createdAt: string;
477
+ updatedAt: string;
478
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
479
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
480
+ name: string;
481
+ provider: string;
482
+ configuration: Record<string, any>;
483
+ isActive?: boolean | undefined;
484
+ description?: string | undefined;
485
+ credentials?: Record<string, string> | undefined;
486
+ lastSyncAt?: string | undefined;
487
+ lastErrorAt?: string | undefined;
488
+ lastErrorMessage?: string | undefined;
489
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
490
+ };
491
+ };
492
+ meta?: Record<string, unknown> | undefined;
493
+ links?: {
494
+ self: string;
495
+ first?: string | undefined;
496
+ last?: string | undefined;
497
+ prev?: string | undefined;
498
+ next?: string | undefined;
499
+ } | undefined;
500
+ errors?: {
501
+ status: string;
502
+ title: string;
503
+ detail?: string | undefined;
504
+ meta?: Record<string, unknown> | undefined;
505
+ }[] | undefined;
506
+ }>;
507
+ 400: z.ZodObject<{
508
+ errors: z.ZodArray<z.ZodObject<{
509
+ status: z.ZodString;
510
+ title: z.ZodString;
511
+ detail: z.ZodOptional<z.ZodString>;
512
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ status: string;
515
+ title: string;
516
+ detail?: string | undefined;
517
+ meta?: Record<string, unknown> | undefined;
518
+ }, {
519
+ status: string;
520
+ title: string;
521
+ detail?: string | undefined;
522
+ meta?: Record<string, unknown> | undefined;
523
+ }>, "many">;
524
+ }, "strip", z.ZodTypeAny, {
525
+ errors: {
526
+ status: string;
527
+ title: string;
528
+ detail?: string | undefined;
529
+ meta?: Record<string, unknown> | undefined;
530
+ }[];
531
+ }, {
532
+ errors: {
533
+ status: string;
534
+ title: string;
535
+ detail?: string | undefined;
536
+ meta?: Record<string, unknown> | undefined;
537
+ }[];
538
+ }>;
539
+ 403: z.ZodObject<{
540
+ errors: z.ZodArray<z.ZodObject<{
541
+ status: z.ZodString;
542
+ title: z.ZodString;
543
+ detail: z.ZodOptional<z.ZodString>;
544
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
545
+ }, "strip", z.ZodTypeAny, {
546
+ status: string;
547
+ title: string;
548
+ detail?: string | undefined;
549
+ meta?: Record<string, unknown> | undefined;
550
+ }, {
551
+ status: string;
552
+ title: string;
553
+ detail?: string | undefined;
554
+ meta?: Record<string, unknown> | undefined;
555
+ }>, "many">;
556
+ }, "strip", z.ZodTypeAny, {
557
+ errors: {
558
+ status: string;
559
+ title: string;
560
+ detail?: string | undefined;
561
+ meta?: Record<string, unknown> | undefined;
562
+ }[];
563
+ }, {
564
+ errors: {
565
+ status: string;
566
+ title: string;
567
+ detail?: string | undefined;
568
+ meta?: Record<string, unknown> | undefined;
569
+ }[];
570
+ }>;
571
+ };
572
+ };
573
+ getIntegration: {
574
+ pathParams: z.ZodObject<{
575
+ integrationId: z.ZodString;
576
+ }, "strip", z.ZodTypeAny, {
577
+ integrationId: string;
578
+ }, {
579
+ integrationId: string;
580
+ }>;
581
+ summary: "Get a specific integration";
582
+ method: "GET";
583
+ path: "/integrations/:integrationId";
584
+ responses: {
585
+ 200: z.ZodObject<{
586
+ data: z.ZodObject<{
587
+ type: z.ZodLiteral<"integrations">;
588
+ id: z.ZodString;
589
+ attributes: z.ZodObject<{
590
+ id: z.ZodString;
591
+ name: z.ZodString;
592
+ type: z.ZodEnum<["ACCOUNTING", "PROJECT_MANAGEMENT", "CRM", "HR", "DOCUMENT_STORAGE", "REPORTING", "API", "WEBHOOK"]>;
593
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "ERROR", "PENDING"]>;
594
+ provider: z.ZodString;
595
+ description: z.ZodOptional<z.ZodString>;
596
+ configuration: z.ZodRecord<z.ZodString, z.ZodAny>;
597
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
598
+ lastSyncAt: z.ZodOptional<z.ZodString>;
599
+ lastErrorAt: z.ZodOptional<z.ZodString>;
600
+ lastErrorMessage: z.ZodOptional<z.ZodString>;
601
+ syncFrequency: z.ZodDefault<z.ZodEnum<["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MANUAL"]>>;
602
+ isActive: z.ZodDefault<z.ZodBoolean>;
603
+ createdAt: z.ZodString;
604
+ updatedAt: z.ZodString;
605
+ }, "strip", z.ZodTypeAny, {
606
+ id: string;
607
+ createdAt: string;
608
+ updatedAt: string;
609
+ isActive: boolean;
610
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
611
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
612
+ name: string;
613
+ provider: string;
614
+ configuration: Record<string, any>;
615
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
616
+ description?: string | undefined;
617
+ credentials?: Record<string, string> | undefined;
618
+ lastSyncAt?: string | undefined;
619
+ lastErrorAt?: string | undefined;
620
+ lastErrorMessage?: string | undefined;
621
+ }, {
622
+ id: string;
623
+ createdAt: string;
624
+ updatedAt: string;
625
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
626
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
627
+ name: string;
628
+ provider: string;
629
+ configuration: Record<string, any>;
630
+ isActive?: boolean | undefined;
631
+ description?: string | undefined;
632
+ credentials?: Record<string, string> | undefined;
633
+ lastSyncAt?: string | undefined;
634
+ lastErrorAt?: string | undefined;
635
+ lastErrorMessage?: string | undefined;
636
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
637
+ }>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ id: string;
640
+ type: "integrations";
641
+ attributes: {
642
+ id: string;
643
+ createdAt: string;
644
+ updatedAt: string;
645
+ isActive: boolean;
646
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
647
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
648
+ name: string;
649
+ provider: string;
650
+ configuration: Record<string, any>;
651
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
652
+ description?: string | undefined;
653
+ credentials?: Record<string, string> | undefined;
654
+ lastSyncAt?: string | undefined;
655
+ lastErrorAt?: string | undefined;
656
+ lastErrorMessage?: string | undefined;
657
+ };
658
+ }, {
659
+ id: string;
660
+ type: "integrations";
661
+ attributes: {
662
+ id: string;
663
+ createdAt: string;
664
+ updatedAt: string;
665
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
666
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
667
+ name: string;
668
+ provider: string;
669
+ configuration: Record<string, any>;
670
+ isActive?: boolean | undefined;
671
+ description?: string | undefined;
672
+ credentials?: Record<string, string> | undefined;
673
+ lastSyncAt?: string | undefined;
674
+ lastErrorAt?: string | undefined;
675
+ lastErrorMessage?: string | undefined;
676
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
677
+ };
678
+ }>;
679
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
680
+ links: z.ZodOptional<z.ZodObject<{
681
+ self: z.ZodString;
682
+ first: z.ZodOptional<z.ZodString>;
683
+ last: z.ZodOptional<z.ZodString>;
684
+ prev: z.ZodOptional<z.ZodString>;
685
+ next: z.ZodOptional<z.ZodString>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ self: string;
688
+ first?: string | undefined;
689
+ last?: string | undefined;
690
+ prev?: string | undefined;
691
+ next?: string | undefined;
692
+ }, {
693
+ self: string;
694
+ first?: string | undefined;
695
+ last?: string | undefined;
696
+ prev?: string | undefined;
697
+ next?: string | undefined;
698
+ }>>;
699
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
700
+ status: z.ZodString;
701
+ title: z.ZodString;
702
+ detail: z.ZodOptional<z.ZodString>;
703
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ status: string;
706
+ title: string;
707
+ detail?: string | undefined;
708
+ meta?: Record<string, unknown> | undefined;
709
+ }, {
710
+ status: string;
711
+ title: string;
712
+ detail?: string | undefined;
713
+ meta?: Record<string, unknown> | undefined;
714
+ }>, "many">>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ data: {
717
+ id: string;
718
+ type: "integrations";
719
+ attributes: {
720
+ id: string;
721
+ createdAt: string;
722
+ updatedAt: string;
723
+ isActive: boolean;
724
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
725
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
726
+ name: string;
727
+ provider: string;
728
+ configuration: Record<string, any>;
729
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
730
+ description?: string | undefined;
731
+ credentials?: Record<string, string> | undefined;
732
+ lastSyncAt?: string | undefined;
733
+ lastErrorAt?: string | undefined;
734
+ lastErrorMessage?: string | undefined;
735
+ };
736
+ };
737
+ meta?: Record<string, unknown> | undefined;
738
+ links?: {
739
+ self: string;
740
+ first?: string | undefined;
741
+ last?: string | undefined;
742
+ prev?: string | undefined;
743
+ next?: string | undefined;
744
+ } | undefined;
745
+ errors?: {
746
+ status: string;
747
+ title: string;
748
+ detail?: string | undefined;
749
+ meta?: Record<string, unknown> | undefined;
750
+ }[] | undefined;
751
+ }, {
752
+ data: {
753
+ id: string;
754
+ type: "integrations";
755
+ attributes: {
756
+ id: string;
757
+ createdAt: string;
758
+ updatedAt: string;
759
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
760
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
761
+ name: string;
762
+ provider: string;
763
+ configuration: Record<string, any>;
764
+ isActive?: boolean | undefined;
765
+ description?: string | undefined;
766
+ credentials?: Record<string, string> | undefined;
767
+ lastSyncAt?: string | undefined;
768
+ lastErrorAt?: string | undefined;
769
+ lastErrorMessage?: string | undefined;
770
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
771
+ };
772
+ };
773
+ meta?: Record<string, unknown> | undefined;
774
+ links?: {
775
+ self: string;
776
+ first?: string | undefined;
777
+ last?: string | undefined;
778
+ prev?: string | undefined;
779
+ next?: string | undefined;
780
+ } | undefined;
781
+ errors?: {
782
+ status: string;
783
+ title: string;
784
+ detail?: string | undefined;
785
+ meta?: Record<string, unknown> | undefined;
786
+ }[] | undefined;
787
+ }>;
788
+ 403: z.ZodObject<{
789
+ errors: z.ZodArray<z.ZodObject<{
790
+ status: z.ZodString;
791
+ title: z.ZodString;
792
+ detail: z.ZodOptional<z.ZodString>;
793
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ status: string;
796
+ title: string;
797
+ detail?: string | undefined;
798
+ meta?: Record<string, unknown> | undefined;
799
+ }, {
800
+ status: string;
801
+ title: string;
802
+ detail?: string | undefined;
803
+ meta?: Record<string, unknown> | undefined;
804
+ }>, "many">;
805
+ }, "strip", z.ZodTypeAny, {
806
+ errors: {
807
+ status: string;
808
+ title: string;
809
+ detail?: string | undefined;
810
+ meta?: Record<string, unknown> | undefined;
811
+ }[];
812
+ }, {
813
+ errors: {
814
+ status: string;
815
+ title: string;
816
+ detail?: string | undefined;
817
+ meta?: Record<string, unknown> | undefined;
818
+ }[];
819
+ }>;
820
+ 404: z.ZodObject<{
821
+ errors: z.ZodArray<z.ZodObject<{
822
+ status: z.ZodString;
823
+ title: z.ZodString;
824
+ detail: z.ZodOptional<z.ZodString>;
825
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
826
+ }, "strip", z.ZodTypeAny, {
827
+ status: string;
828
+ title: string;
829
+ detail?: string | undefined;
830
+ meta?: Record<string, unknown> | undefined;
831
+ }, {
832
+ status: string;
833
+ title: string;
834
+ detail?: string | undefined;
835
+ meta?: Record<string, unknown> | undefined;
836
+ }>, "many">;
837
+ }, "strip", z.ZodTypeAny, {
838
+ errors: {
839
+ status: string;
840
+ title: string;
841
+ detail?: string | undefined;
842
+ meta?: Record<string, unknown> | undefined;
843
+ }[];
844
+ }, {
845
+ errors: {
846
+ status: string;
847
+ title: string;
848
+ detail?: string | undefined;
849
+ meta?: Record<string, unknown> | undefined;
850
+ }[];
851
+ }>;
852
+ };
853
+ };
854
+ updateIntegration: {
855
+ pathParams: z.ZodObject<{
856
+ integrationId: z.ZodString;
857
+ }, "strip", z.ZodTypeAny, {
858
+ integrationId: string;
859
+ }, {
860
+ integrationId: string;
861
+ }>;
862
+ summary: "Update an integration";
863
+ method: "PUT";
864
+ body: z.ZodObject<{
865
+ name: z.ZodOptional<z.ZodString>;
866
+ description: z.ZodOptional<z.ZodString>;
867
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
868
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
869
+ syncFrequency: z.ZodOptional<z.ZodEnum<["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MANUAL"]>>;
870
+ isActive: z.ZodOptional<z.ZodBoolean>;
871
+ }, "strip", z.ZodTypeAny, {
872
+ isActive?: boolean | undefined;
873
+ name?: string | undefined;
874
+ description?: string | undefined;
875
+ configuration?: Record<string, any> | undefined;
876
+ credentials?: Record<string, string> | undefined;
877
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
878
+ }, {
879
+ isActive?: boolean | undefined;
880
+ name?: string | undefined;
881
+ description?: string | undefined;
882
+ configuration?: Record<string, any> | undefined;
883
+ credentials?: Record<string, string> | undefined;
884
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
885
+ }>;
886
+ path: "/integrations/:integrationId";
887
+ responses: {
888
+ 200: z.ZodObject<{
889
+ data: z.ZodObject<{
890
+ type: z.ZodLiteral<"integrations">;
891
+ id: z.ZodString;
892
+ attributes: z.ZodObject<{
893
+ id: z.ZodString;
894
+ name: z.ZodString;
895
+ type: z.ZodEnum<["ACCOUNTING", "PROJECT_MANAGEMENT", "CRM", "HR", "DOCUMENT_STORAGE", "REPORTING", "API", "WEBHOOK"]>;
896
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "ERROR", "PENDING"]>;
897
+ provider: z.ZodString;
898
+ description: z.ZodOptional<z.ZodString>;
899
+ configuration: z.ZodRecord<z.ZodString, z.ZodAny>;
900
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
901
+ lastSyncAt: z.ZodOptional<z.ZodString>;
902
+ lastErrorAt: z.ZodOptional<z.ZodString>;
903
+ lastErrorMessage: z.ZodOptional<z.ZodString>;
904
+ syncFrequency: z.ZodDefault<z.ZodEnum<["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MANUAL"]>>;
905
+ isActive: z.ZodDefault<z.ZodBoolean>;
906
+ createdAt: z.ZodString;
907
+ updatedAt: z.ZodString;
908
+ }, "strip", z.ZodTypeAny, {
909
+ id: string;
910
+ createdAt: string;
911
+ updatedAt: string;
912
+ isActive: boolean;
913
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
914
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
915
+ name: string;
916
+ provider: string;
917
+ configuration: Record<string, any>;
918
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
919
+ description?: string | undefined;
920
+ credentials?: Record<string, string> | undefined;
921
+ lastSyncAt?: string | undefined;
922
+ lastErrorAt?: string | undefined;
923
+ lastErrorMessage?: string | undefined;
924
+ }, {
925
+ id: string;
926
+ createdAt: string;
927
+ updatedAt: string;
928
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
929
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
930
+ name: string;
931
+ provider: string;
932
+ configuration: Record<string, any>;
933
+ isActive?: boolean | undefined;
934
+ description?: string | undefined;
935
+ credentials?: Record<string, string> | undefined;
936
+ lastSyncAt?: string | undefined;
937
+ lastErrorAt?: string | undefined;
938
+ lastErrorMessage?: string | undefined;
939
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
940
+ }>;
941
+ }, "strip", z.ZodTypeAny, {
942
+ id: string;
943
+ type: "integrations";
944
+ attributes: {
945
+ id: string;
946
+ createdAt: string;
947
+ updatedAt: string;
948
+ isActive: boolean;
949
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
950
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
951
+ name: string;
952
+ provider: string;
953
+ configuration: Record<string, any>;
954
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
955
+ description?: string | undefined;
956
+ credentials?: Record<string, string> | undefined;
957
+ lastSyncAt?: string | undefined;
958
+ lastErrorAt?: string | undefined;
959
+ lastErrorMessage?: string | undefined;
960
+ };
961
+ }, {
962
+ id: string;
963
+ type: "integrations";
964
+ attributes: {
965
+ id: string;
966
+ createdAt: string;
967
+ updatedAt: string;
968
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
969
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
970
+ name: string;
971
+ provider: string;
972
+ configuration: Record<string, any>;
973
+ isActive?: boolean | undefined;
974
+ description?: string | undefined;
975
+ credentials?: Record<string, string> | undefined;
976
+ lastSyncAt?: string | undefined;
977
+ lastErrorAt?: string | undefined;
978
+ lastErrorMessage?: string | undefined;
979
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
980
+ };
981
+ }>;
982
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
983
+ links: z.ZodOptional<z.ZodObject<{
984
+ self: z.ZodString;
985
+ first: z.ZodOptional<z.ZodString>;
986
+ last: z.ZodOptional<z.ZodString>;
987
+ prev: z.ZodOptional<z.ZodString>;
988
+ next: z.ZodOptional<z.ZodString>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ self: string;
991
+ first?: string | undefined;
992
+ last?: string | undefined;
993
+ prev?: string | undefined;
994
+ next?: string | undefined;
995
+ }, {
996
+ self: string;
997
+ first?: string | undefined;
998
+ last?: string | undefined;
999
+ prev?: string | undefined;
1000
+ next?: string | undefined;
1001
+ }>>;
1002
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1003
+ status: z.ZodString;
1004
+ title: z.ZodString;
1005
+ detail: z.ZodOptional<z.ZodString>;
1006
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ status: string;
1009
+ title: string;
1010
+ detail?: string | undefined;
1011
+ meta?: Record<string, unknown> | undefined;
1012
+ }, {
1013
+ status: string;
1014
+ title: string;
1015
+ detail?: string | undefined;
1016
+ meta?: Record<string, unknown> | undefined;
1017
+ }>, "many">>;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ data: {
1020
+ id: string;
1021
+ type: "integrations";
1022
+ attributes: {
1023
+ id: string;
1024
+ createdAt: string;
1025
+ updatedAt: string;
1026
+ isActive: boolean;
1027
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1028
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1029
+ name: string;
1030
+ provider: string;
1031
+ configuration: Record<string, any>;
1032
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
1033
+ description?: string | undefined;
1034
+ credentials?: Record<string, string> | undefined;
1035
+ lastSyncAt?: string | undefined;
1036
+ lastErrorAt?: string | undefined;
1037
+ lastErrorMessage?: string | undefined;
1038
+ };
1039
+ };
1040
+ meta?: Record<string, unknown> | undefined;
1041
+ links?: {
1042
+ self: string;
1043
+ first?: string | undefined;
1044
+ last?: string | undefined;
1045
+ prev?: string | undefined;
1046
+ next?: string | undefined;
1047
+ } | undefined;
1048
+ errors?: {
1049
+ status: string;
1050
+ title: string;
1051
+ detail?: string | undefined;
1052
+ meta?: Record<string, unknown> | undefined;
1053
+ }[] | undefined;
1054
+ }, {
1055
+ data: {
1056
+ id: string;
1057
+ type: "integrations";
1058
+ attributes: {
1059
+ id: string;
1060
+ createdAt: string;
1061
+ updatedAt: string;
1062
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1063
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1064
+ name: string;
1065
+ provider: string;
1066
+ configuration: Record<string, any>;
1067
+ isActive?: boolean | undefined;
1068
+ description?: string | undefined;
1069
+ credentials?: Record<string, string> | undefined;
1070
+ lastSyncAt?: string | undefined;
1071
+ lastErrorAt?: string | undefined;
1072
+ lastErrorMessage?: string | undefined;
1073
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
1074
+ };
1075
+ };
1076
+ meta?: Record<string, unknown> | undefined;
1077
+ links?: {
1078
+ self: string;
1079
+ first?: string | undefined;
1080
+ last?: string | undefined;
1081
+ prev?: string | undefined;
1082
+ next?: string | undefined;
1083
+ } | undefined;
1084
+ errors?: {
1085
+ status: string;
1086
+ title: string;
1087
+ detail?: string | undefined;
1088
+ meta?: Record<string, unknown> | undefined;
1089
+ }[] | undefined;
1090
+ }>;
1091
+ 400: z.ZodObject<{
1092
+ errors: z.ZodArray<z.ZodObject<{
1093
+ status: z.ZodString;
1094
+ title: z.ZodString;
1095
+ detail: z.ZodOptional<z.ZodString>;
1096
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ status: string;
1099
+ title: string;
1100
+ detail?: string | undefined;
1101
+ meta?: Record<string, unknown> | undefined;
1102
+ }, {
1103
+ status: string;
1104
+ title: string;
1105
+ detail?: string | undefined;
1106
+ meta?: Record<string, unknown> | undefined;
1107
+ }>, "many">;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ errors: {
1110
+ status: string;
1111
+ title: string;
1112
+ detail?: string | undefined;
1113
+ meta?: Record<string, unknown> | undefined;
1114
+ }[];
1115
+ }, {
1116
+ errors: {
1117
+ status: string;
1118
+ title: string;
1119
+ detail?: string | undefined;
1120
+ meta?: Record<string, unknown> | undefined;
1121
+ }[];
1122
+ }>;
1123
+ 403: z.ZodObject<{
1124
+ errors: z.ZodArray<z.ZodObject<{
1125
+ status: z.ZodString;
1126
+ title: z.ZodString;
1127
+ detail: z.ZodOptional<z.ZodString>;
1128
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ status: string;
1131
+ title: string;
1132
+ detail?: string | undefined;
1133
+ meta?: Record<string, unknown> | undefined;
1134
+ }, {
1135
+ status: string;
1136
+ title: string;
1137
+ detail?: string | undefined;
1138
+ meta?: Record<string, unknown> | undefined;
1139
+ }>, "many">;
1140
+ }, "strip", z.ZodTypeAny, {
1141
+ errors: {
1142
+ status: string;
1143
+ title: string;
1144
+ detail?: string | undefined;
1145
+ meta?: Record<string, unknown> | undefined;
1146
+ }[];
1147
+ }, {
1148
+ errors: {
1149
+ status: string;
1150
+ title: string;
1151
+ detail?: string | undefined;
1152
+ meta?: Record<string, unknown> | undefined;
1153
+ }[];
1154
+ }>;
1155
+ 404: z.ZodObject<{
1156
+ errors: z.ZodArray<z.ZodObject<{
1157
+ status: z.ZodString;
1158
+ title: z.ZodString;
1159
+ detail: z.ZodOptional<z.ZodString>;
1160
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ status: string;
1163
+ title: string;
1164
+ detail?: string | undefined;
1165
+ meta?: Record<string, unknown> | undefined;
1166
+ }, {
1167
+ status: string;
1168
+ title: string;
1169
+ detail?: string | undefined;
1170
+ meta?: Record<string, unknown> | undefined;
1171
+ }>, "many">;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ errors: {
1174
+ status: string;
1175
+ title: string;
1176
+ detail?: string | undefined;
1177
+ meta?: Record<string, unknown> | undefined;
1178
+ }[];
1179
+ }, {
1180
+ errors: {
1181
+ status: string;
1182
+ title: string;
1183
+ detail?: string | undefined;
1184
+ meta?: Record<string, unknown> | undefined;
1185
+ }[];
1186
+ }>;
1187
+ };
1188
+ };
1189
+ deleteIntegration: {
1190
+ pathParams: z.ZodObject<{
1191
+ integrationId: z.ZodString;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ integrationId: string;
1194
+ }, {
1195
+ integrationId: string;
1196
+ }>;
1197
+ summary: "Delete an integration";
1198
+ method: "DELETE";
1199
+ path: "/integrations/:integrationId";
1200
+ responses: {
1201
+ 204: z.ZodVoid;
1202
+ 403: z.ZodObject<{
1203
+ errors: z.ZodArray<z.ZodObject<{
1204
+ status: z.ZodString;
1205
+ title: z.ZodString;
1206
+ detail: z.ZodOptional<z.ZodString>;
1207
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ status: string;
1210
+ title: string;
1211
+ detail?: string | undefined;
1212
+ meta?: Record<string, unknown> | undefined;
1213
+ }, {
1214
+ status: string;
1215
+ title: string;
1216
+ detail?: string | undefined;
1217
+ meta?: Record<string, unknown> | undefined;
1218
+ }>, "many">;
1219
+ }, "strip", z.ZodTypeAny, {
1220
+ errors: {
1221
+ status: string;
1222
+ title: string;
1223
+ detail?: string | undefined;
1224
+ meta?: Record<string, unknown> | undefined;
1225
+ }[];
1226
+ }, {
1227
+ errors: {
1228
+ status: string;
1229
+ title: string;
1230
+ detail?: string | undefined;
1231
+ meta?: Record<string, unknown> | undefined;
1232
+ }[];
1233
+ }>;
1234
+ 404: z.ZodObject<{
1235
+ errors: z.ZodArray<z.ZodObject<{
1236
+ status: z.ZodString;
1237
+ title: z.ZodString;
1238
+ detail: z.ZodOptional<z.ZodString>;
1239
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ status: string;
1242
+ title: string;
1243
+ detail?: string | undefined;
1244
+ meta?: Record<string, unknown> | undefined;
1245
+ }, {
1246
+ status: string;
1247
+ title: string;
1248
+ detail?: string | undefined;
1249
+ meta?: Record<string, unknown> | undefined;
1250
+ }>, "many">;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ errors: {
1253
+ status: string;
1254
+ title: string;
1255
+ detail?: string | undefined;
1256
+ meta?: Record<string, unknown> | undefined;
1257
+ }[];
1258
+ }, {
1259
+ errors: {
1260
+ status: string;
1261
+ title: string;
1262
+ detail?: string | undefined;
1263
+ meta?: Record<string, unknown> | undefined;
1264
+ }[];
1265
+ }>;
1266
+ };
1267
+ };
1268
+ testIntegration: {
1269
+ pathParams: z.ZodObject<{
1270
+ integrationId: z.ZodString;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ integrationId: string;
1273
+ }, {
1274
+ integrationId: string;
1275
+ }>;
1276
+ summary: "Test an integration connection";
1277
+ method: "POST";
1278
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1279
+ path: "/integrations/:integrationId/test";
1280
+ responses: {
1281
+ 200: z.ZodObject<{
1282
+ success: z.ZodBoolean;
1283
+ message: z.ZodString;
1284
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1285
+ timestamp: z.ZodString;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ message: string;
1288
+ success: boolean;
1289
+ timestamp: string;
1290
+ details?: Record<string, any> | undefined;
1291
+ }, {
1292
+ message: string;
1293
+ success: boolean;
1294
+ timestamp: string;
1295
+ details?: Record<string, any> | undefined;
1296
+ }>;
1297
+ 400: z.ZodObject<{
1298
+ errors: z.ZodArray<z.ZodObject<{
1299
+ status: z.ZodString;
1300
+ title: z.ZodString;
1301
+ detail: z.ZodOptional<z.ZodString>;
1302
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1303
+ }, "strip", z.ZodTypeAny, {
1304
+ status: string;
1305
+ title: string;
1306
+ detail?: string | undefined;
1307
+ meta?: Record<string, unknown> | undefined;
1308
+ }, {
1309
+ status: string;
1310
+ title: string;
1311
+ detail?: string | undefined;
1312
+ meta?: Record<string, unknown> | undefined;
1313
+ }>, "many">;
1314
+ }, "strip", z.ZodTypeAny, {
1315
+ errors: {
1316
+ status: string;
1317
+ title: string;
1318
+ detail?: string | undefined;
1319
+ meta?: Record<string, unknown> | undefined;
1320
+ }[];
1321
+ }, {
1322
+ errors: {
1323
+ status: string;
1324
+ title: string;
1325
+ detail?: string | undefined;
1326
+ meta?: Record<string, unknown> | undefined;
1327
+ }[];
1328
+ }>;
1329
+ 403: z.ZodObject<{
1330
+ errors: z.ZodArray<z.ZodObject<{
1331
+ status: z.ZodString;
1332
+ title: z.ZodString;
1333
+ detail: z.ZodOptional<z.ZodString>;
1334
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ status: string;
1337
+ title: string;
1338
+ detail?: string | undefined;
1339
+ meta?: Record<string, unknown> | undefined;
1340
+ }, {
1341
+ status: string;
1342
+ title: string;
1343
+ detail?: string | undefined;
1344
+ meta?: Record<string, unknown> | undefined;
1345
+ }>, "many">;
1346
+ }, "strip", z.ZodTypeAny, {
1347
+ errors: {
1348
+ status: string;
1349
+ title: string;
1350
+ detail?: string | undefined;
1351
+ meta?: Record<string, unknown> | undefined;
1352
+ }[];
1353
+ }, {
1354
+ errors: {
1355
+ status: string;
1356
+ title: string;
1357
+ detail?: string | undefined;
1358
+ meta?: Record<string, unknown> | undefined;
1359
+ }[];
1360
+ }>;
1361
+ 404: z.ZodObject<{
1362
+ errors: z.ZodArray<z.ZodObject<{
1363
+ status: z.ZodString;
1364
+ title: z.ZodString;
1365
+ detail: z.ZodOptional<z.ZodString>;
1366
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ status: string;
1369
+ title: string;
1370
+ detail?: string | undefined;
1371
+ meta?: Record<string, unknown> | undefined;
1372
+ }, {
1373
+ status: string;
1374
+ title: string;
1375
+ detail?: string | undefined;
1376
+ meta?: Record<string, unknown> | undefined;
1377
+ }>, "many">;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ errors: {
1380
+ status: string;
1381
+ title: string;
1382
+ detail?: string | undefined;
1383
+ meta?: Record<string, unknown> | undefined;
1384
+ }[];
1385
+ }, {
1386
+ errors: {
1387
+ status: string;
1388
+ title: string;
1389
+ detail?: string | undefined;
1390
+ meta?: Record<string, unknown> | undefined;
1391
+ }[];
1392
+ }>;
1393
+ };
1394
+ };
1395
+ syncIntegration: {
1396
+ pathParams: z.ZodObject<{
1397
+ integrationId: z.ZodString;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ integrationId: string;
1400
+ }, {
1401
+ integrationId: string;
1402
+ }>;
1403
+ summary: "Trigger a manual sync for an integration";
1404
+ method: "POST";
1405
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1406
+ path: "/integrations/:integrationId/sync";
1407
+ responses: {
1408
+ '202': z.ZodObject<{
1409
+ message: z.ZodString;
1410
+ syncId: z.ZodString;
1411
+ timestamp: z.ZodString;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ message: string;
1414
+ timestamp: string;
1415
+ syncId: string;
1416
+ }, {
1417
+ message: string;
1418
+ timestamp: string;
1419
+ syncId: string;
1420
+ }>;
1421
+ 400: z.ZodObject<{
1422
+ errors: z.ZodArray<z.ZodObject<{
1423
+ status: z.ZodString;
1424
+ title: z.ZodString;
1425
+ detail: z.ZodOptional<z.ZodString>;
1426
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1427
+ }, "strip", z.ZodTypeAny, {
1428
+ status: string;
1429
+ title: string;
1430
+ detail?: string | undefined;
1431
+ meta?: Record<string, unknown> | undefined;
1432
+ }, {
1433
+ status: string;
1434
+ title: string;
1435
+ detail?: string | undefined;
1436
+ meta?: Record<string, unknown> | undefined;
1437
+ }>, "many">;
1438
+ }, "strip", z.ZodTypeAny, {
1439
+ errors: {
1440
+ status: string;
1441
+ title: string;
1442
+ detail?: string | undefined;
1443
+ meta?: Record<string, unknown> | undefined;
1444
+ }[];
1445
+ }, {
1446
+ errors: {
1447
+ status: string;
1448
+ title: string;
1449
+ detail?: string | undefined;
1450
+ meta?: Record<string, unknown> | undefined;
1451
+ }[];
1452
+ }>;
1453
+ 403: z.ZodObject<{
1454
+ errors: z.ZodArray<z.ZodObject<{
1455
+ status: z.ZodString;
1456
+ title: z.ZodString;
1457
+ detail: z.ZodOptional<z.ZodString>;
1458
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1459
+ }, "strip", z.ZodTypeAny, {
1460
+ status: string;
1461
+ title: string;
1462
+ detail?: string | undefined;
1463
+ meta?: Record<string, unknown> | undefined;
1464
+ }, {
1465
+ status: string;
1466
+ title: string;
1467
+ detail?: string | undefined;
1468
+ meta?: Record<string, unknown> | undefined;
1469
+ }>, "many">;
1470
+ }, "strip", z.ZodTypeAny, {
1471
+ errors: {
1472
+ status: string;
1473
+ title: string;
1474
+ detail?: string | undefined;
1475
+ meta?: Record<string, unknown> | undefined;
1476
+ }[];
1477
+ }, {
1478
+ errors: {
1479
+ status: string;
1480
+ title: string;
1481
+ detail?: string | undefined;
1482
+ meta?: Record<string, unknown> | undefined;
1483
+ }[];
1484
+ }>;
1485
+ 404: z.ZodObject<{
1486
+ errors: z.ZodArray<z.ZodObject<{
1487
+ status: z.ZodString;
1488
+ title: z.ZodString;
1489
+ detail: z.ZodOptional<z.ZodString>;
1490
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ status: string;
1493
+ title: string;
1494
+ detail?: string | undefined;
1495
+ meta?: Record<string, unknown> | undefined;
1496
+ }, {
1497
+ status: string;
1498
+ title: string;
1499
+ detail?: string | undefined;
1500
+ meta?: Record<string, unknown> | undefined;
1501
+ }>, "many">;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ errors: {
1504
+ status: string;
1505
+ title: string;
1506
+ detail?: string | undefined;
1507
+ meta?: Record<string, unknown> | undefined;
1508
+ }[];
1509
+ }, {
1510
+ errors: {
1511
+ status: string;
1512
+ title: string;
1513
+ detail?: string | undefined;
1514
+ meta?: Record<string, unknown> | undefined;
1515
+ }[];
1516
+ }>;
1517
+ };
1518
+ };
1519
+ pauseIntegration: {
1520
+ pathParams: z.ZodObject<{
1521
+ integrationId: z.ZodString;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ integrationId: string;
1524
+ }, {
1525
+ integrationId: string;
1526
+ }>;
1527
+ summary: "Pause an integration";
1528
+ method: "POST";
1529
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1530
+ path: "/integrations/:integrationId/pause";
1531
+ responses: {
1532
+ 200: z.ZodObject<{
1533
+ data: z.ZodObject<{
1534
+ type: z.ZodLiteral<"integrations">;
1535
+ id: z.ZodString;
1536
+ attributes: z.ZodObject<{
1537
+ id: z.ZodString;
1538
+ name: z.ZodString;
1539
+ type: z.ZodEnum<["ACCOUNTING", "PROJECT_MANAGEMENT", "CRM", "HR", "DOCUMENT_STORAGE", "REPORTING", "API", "WEBHOOK"]>;
1540
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "ERROR", "PENDING"]>;
1541
+ provider: z.ZodString;
1542
+ description: z.ZodOptional<z.ZodString>;
1543
+ configuration: z.ZodRecord<z.ZodString, z.ZodAny>;
1544
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1545
+ lastSyncAt: z.ZodOptional<z.ZodString>;
1546
+ lastErrorAt: z.ZodOptional<z.ZodString>;
1547
+ lastErrorMessage: z.ZodOptional<z.ZodString>;
1548
+ syncFrequency: z.ZodDefault<z.ZodEnum<["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MANUAL"]>>;
1549
+ isActive: z.ZodDefault<z.ZodBoolean>;
1550
+ createdAt: z.ZodString;
1551
+ updatedAt: z.ZodString;
1552
+ }, "strip", z.ZodTypeAny, {
1553
+ id: string;
1554
+ createdAt: string;
1555
+ updatedAt: string;
1556
+ isActive: boolean;
1557
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1558
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1559
+ name: string;
1560
+ provider: string;
1561
+ configuration: Record<string, any>;
1562
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
1563
+ description?: string | undefined;
1564
+ credentials?: Record<string, string> | undefined;
1565
+ lastSyncAt?: string | undefined;
1566
+ lastErrorAt?: string | undefined;
1567
+ lastErrorMessage?: string | undefined;
1568
+ }, {
1569
+ id: string;
1570
+ createdAt: string;
1571
+ updatedAt: string;
1572
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1573
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1574
+ name: string;
1575
+ provider: string;
1576
+ configuration: Record<string, any>;
1577
+ isActive?: boolean | undefined;
1578
+ description?: string | undefined;
1579
+ credentials?: Record<string, string> | undefined;
1580
+ lastSyncAt?: string | undefined;
1581
+ lastErrorAt?: string | undefined;
1582
+ lastErrorMessage?: string | undefined;
1583
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
1584
+ }>;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ id: string;
1587
+ type: "integrations";
1588
+ attributes: {
1589
+ id: string;
1590
+ createdAt: string;
1591
+ updatedAt: string;
1592
+ isActive: boolean;
1593
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1594
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1595
+ name: string;
1596
+ provider: string;
1597
+ configuration: Record<string, any>;
1598
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
1599
+ description?: string | undefined;
1600
+ credentials?: Record<string, string> | undefined;
1601
+ lastSyncAt?: string | undefined;
1602
+ lastErrorAt?: string | undefined;
1603
+ lastErrorMessage?: string | undefined;
1604
+ };
1605
+ }, {
1606
+ id: string;
1607
+ type: "integrations";
1608
+ attributes: {
1609
+ id: string;
1610
+ createdAt: string;
1611
+ updatedAt: string;
1612
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1613
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1614
+ name: string;
1615
+ provider: string;
1616
+ configuration: Record<string, any>;
1617
+ isActive?: boolean | undefined;
1618
+ description?: string | undefined;
1619
+ credentials?: Record<string, string> | undefined;
1620
+ lastSyncAt?: string | undefined;
1621
+ lastErrorAt?: string | undefined;
1622
+ lastErrorMessage?: string | undefined;
1623
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
1624
+ };
1625
+ }>;
1626
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1627
+ links: z.ZodOptional<z.ZodObject<{
1628
+ self: z.ZodString;
1629
+ first: z.ZodOptional<z.ZodString>;
1630
+ last: z.ZodOptional<z.ZodString>;
1631
+ prev: z.ZodOptional<z.ZodString>;
1632
+ next: z.ZodOptional<z.ZodString>;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ self: string;
1635
+ first?: string | undefined;
1636
+ last?: string | undefined;
1637
+ prev?: string | undefined;
1638
+ next?: string | undefined;
1639
+ }, {
1640
+ self: string;
1641
+ first?: string | undefined;
1642
+ last?: string | undefined;
1643
+ prev?: string | undefined;
1644
+ next?: string | undefined;
1645
+ }>>;
1646
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1647
+ status: z.ZodString;
1648
+ title: z.ZodString;
1649
+ detail: z.ZodOptional<z.ZodString>;
1650
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1651
+ }, "strip", z.ZodTypeAny, {
1652
+ status: string;
1653
+ title: string;
1654
+ detail?: string | undefined;
1655
+ meta?: Record<string, unknown> | undefined;
1656
+ }, {
1657
+ status: string;
1658
+ title: string;
1659
+ detail?: string | undefined;
1660
+ meta?: Record<string, unknown> | undefined;
1661
+ }>, "many">>;
1662
+ }, "strip", z.ZodTypeAny, {
1663
+ data: {
1664
+ id: string;
1665
+ type: "integrations";
1666
+ attributes: {
1667
+ id: string;
1668
+ createdAt: string;
1669
+ updatedAt: string;
1670
+ isActive: boolean;
1671
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1672
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1673
+ name: string;
1674
+ provider: string;
1675
+ configuration: Record<string, any>;
1676
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
1677
+ description?: string | undefined;
1678
+ credentials?: Record<string, string> | undefined;
1679
+ lastSyncAt?: string | undefined;
1680
+ lastErrorAt?: string | undefined;
1681
+ lastErrorMessage?: string | undefined;
1682
+ };
1683
+ };
1684
+ meta?: Record<string, unknown> | undefined;
1685
+ links?: {
1686
+ self: string;
1687
+ first?: string | undefined;
1688
+ last?: string | undefined;
1689
+ prev?: string | undefined;
1690
+ next?: string | undefined;
1691
+ } | undefined;
1692
+ errors?: {
1693
+ status: string;
1694
+ title: string;
1695
+ detail?: string | undefined;
1696
+ meta?: Record<string, unknown> | undefined;
1697
+ }[] | undefined;
1698
+ }, {
1699
+ data: {
1700
+ id: string;
1701
+ type: "integrations";
1702
+ attributes: {
1703
+ id: string;
1704
+ createdAt: string;
1705
+ updatedAt: string;
1706
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1707
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1708
+ name: string;
1709
+ provider: string;
1710
+ configuration: Record<string, any>;
1711
+ isActive?: boolean | undefined;
1712
+ description?: string | undefined;
1713
+ credentials?: Record<string, string> | undefined;
1714
+ lastSyncAt?: string | undefined;
1715
+ lastErrorAt?: string | undefined;
1716
+ lastErrorMessage?: string | undefined;
1717
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
1718
+ };
1719
+ };
1720
+ meta?: Record<string, unknown> | undefined;
1721
+ links?: {
1722
+ self: string;
1723
+ first?: string | undefined;
1724
+ last?: string | undefined;
1725
+ prev?: string | undefined;
1726
+ next?: string | undefined;
1727
+ } | undefined;
1728
+ errors?: {
1729
+ status: string;
1730
+ title: string;
1731
+ detail?: string | undefined;
1732
+ meta?: Record<string, unknown> | undefined;
1733
+ }[] | undefined;
1734
+ }>;
1735
+ 403: z.ZodObject<{
1736
+ errors: z.ZodArray<z.ZodObject<{
1737
+ status: z.ZodString;
1738
+ title: z.ZodString;
1739
+ detail: z.ZodOptional<z.ZodString>;
1740
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1741
+ }, "strip", z.ZodTypeAny, {
1742
+ status: string;
1743
+ title: string;
1744
+ detail?: string | undefined;
1745
+ meta?: Record<string, unknown> | undefined;
1746
+ }, {
1747
+ status: string;
1748
+ title: string;
1749
+ detail?: string | undefined;
1750
+ meta?: Record<string, unknown> | undefined;
1751
+ }>, "many">;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ errors: {
1754
+ status: string;
1755
+ title: string;
1756
+ detail?: string | undefined;
1757
+ meta?: Record<string, unknown> | undefined;
1758
+ }[];
1759
+ }, {
1760
+ errors: {
1761
+ status: string;
1762
+ title: string;
1763
+ detail?: string | undefined;
1764
+ meta?: Record<string, unknown> | undefined;
1765
+ }[];
1766
+ }>;
1767
+ 404: z.ZodObject<{
1768
+ errors: z.ZodArray<z.ZodObject<{
1769
+ status: z.ZodString;
1770
+ title: z.ZodString;
1771
+ detail: z.ZodOptional<z.ZodString>;
1772
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1773
+ }, "strip", z.ZodTypeAny, {
1774
+ status: string;
1775
+ title: string;
1776
+ detail?: string | undefined;
1777
+ meta?: Record<string, unknown> | undefined;
1778
+ }, {
1779
+ status: string;
1780
+ title: string;
1781
+ detail?: string | undefined;
1782
+ meta?: Record<string, unknown> | undefined;
1783
+ }>, "many">;
1784
+ }, "strip", z.ZodTypeAny, {
1785
+ errors: {
1786
+ status: string;
1787
+ title: string;
1788
+ detail?: string | undefined;
1789
+ meta?: Record<string, unknown> | undefined;
1790
+ }[];
1791
+ }, {
1792
+ errors: {
1793
+ status: string;
1794
+ title: string;
1795
+ detail?: string | undefined;
1796
+ meta?: Record<string, unknown> | undefined;
1797
+ }[];
1798
+ }>;
1799
+ };
1800
+ };
1801
+ resumeIntegration: {
1802
+ pathParams: z.ZodObject<{
1803
+ integrationId: z.ZodString;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ integrationId: string;
1806
+ }, {
1807
+ integrationId: string;
1808
+ }>;
1809
+ summary: "Resume a paused integration";
1810
+ method: "POST";
1811
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1812
+ path: "/integrations/:integrationId/resume";
1813
+ responses: {
1814
+ 200: z.ZodObject<{
1815
+ data: z.ZodObject<{
1816
+ type: z.ZodLiteral<"integrations">;
1817
+ id: z.ZodString;
1818
+ attributes: z.ZodObject<{
1819
+ id: z.ZodString;
1820
+ name: z.ZodString;
1821
+ type: z.ZodEnum<["ACCOUNTING", "PROJECT_MANAGEMENT", "CRM", "HR", "DOCUMENT_STORAGE", "REPORTING", "API", "WEBHOOK"]>;
1822
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "ERROR", "PENDING"]>;
1823
+ provider: z.ZodString;
1824
+ description: z.ZodOptional<z.ZodString>;
1825
+ configuration: z.ZodRecord<z.ZodString, z.ZodAny>;
1826
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1827
+ lastSyncAt: z.ZodOptional<z.ZodString>;
1828
+ lastErrorAt: z.ZodOptional<z.ZodString>;
1829
+ lastErrorMessage: z.ZodOptional<z.ZodString>;
1830
+ syncFrequency: z.ZodDefault<z.ZodEnum<["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MANUAL"]>>;
1831
+ isActive: z.ZodDefault<z.ZodBoolean>;
1832
+ createdAt: z.ZodString;
1833
+ updatedAt: z.ZodString;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ id: string;
1836
+ createdAt: string;
1837
+ updatedAt: string;
1838
+ isActive: boolean;
1839
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1840
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1841
+ name: string;
1842
+ provider: string;
1843
+ configuration: Record<string, any>;
1844
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
1845
+ description?: string | undefined;
1846
+ credentials?: Record<string, string> | undefined;
1847
+ lastSyncAt?: string | undefined;
1848
+ lastErrorAt?: string | undefined;
1849
+ lastErrorMessage?: string | undefined;
1850
+ }, {
1851
+ id: string;
1852
+ createdAt: string;
1853
+ updatedAt: string;
1854
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1855
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1856
+ name: string;
1857
+ provider: string;
1858
+ configuration: Record<string, any>;
1859
+ isActive?: boolean | undefined;
1860
+ description?: string | undefined;
1861
+ credentials?: Record<string, string> | undefined;
1862
+ lastSyncAt?: string | undefined;
1863
+ lastErrorAt?: string | undefined;
1864
+ lastErrorMessage?: string | undefined;
1865
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
1866
+ }>;
1867
+ }, "strip", z.ZodTypeAny, {
1868
+ id: string;
1869
+ type: "integrations";
1870
+ attributes: {
1871
+ id: string;
1872
+ createdAt: string;
1873
+ updatedAt: string;
1874
+ isActive: boolean;
1875
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1876
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1877
+ name: string;
1878
+ provider: string;
1879
+ configuration: Record<string, any>;
1880
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
1881
+ description?: string | undefined;
1882
+ credentials?: Record<string, string> | undefined;
1883
+ lastSyncAt?: string | undefined;
1884
+ lastErrorAt?: string | undefined;
1885
+ lastErrorMessage?: string | undefined;
1886
+ };
1887
+ }, {
1888
+ id: string;
1889
+ type: "integrations";
1890
+ attributes: {
1891
+ id: string;
1892
+ createdAt: string;
1893
+ updatedAt: string;
1894
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1895
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1896
+ name: string;
1897
+ provider: string;
1898
+ configuration: Record<string, any>;
1899
+ isActive?: boolean | undefined;
1900
+ description?: string | undefined;
1901
+ credentials?: Record<string, string> | undefined;
1902
+ lastSyncAt?: string | undefined;
1903
+ lastErrorAt?: string | undefined;
1904
+ lastErrorMessage?: string | undefined;
1905
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
1906
+ };
1907
+ }>;
1908
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1909
+ links: z.ZodOptional<z.ZodObject<{
1910
+ self: z.ZodString;
1911
+ first: z.ZodOptional<z.ZodString>;
1912
+ last: z.ZodOptional<z.ZodString>;
1913
+ prev: z.ZodOptional<z.ZodString>;
1914
+ next: z.ZodOptional<z.ZodString>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ self: string;
1917
+ first?: string | undefined;
1918
+ last?: string | undefined;
1919
+ prev?: string | undefined;
1920
+ next?: string | undefined;
1921
+ }, {
1922
+ self: string;
1923
+ first?: string | undefined;
1924
+ last?: string | undefined;
1925
+ prev?: string | undefined;
1926
+ next?: string | undefined;
1927
+ }>>;
1928
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1929
+ status: z.ZodString;
1930
+ title: z.ZodString;
1931
+ detail: z.ZodOptional<z.ZodString>;
1932
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1933
+ }, "strip", z.ZodTypeAny, {
1934
+ status: string;
1935
+ title: string;
1936
+ detail?: string | undefined;
1937
+ meta?: Record<string, unknown> | undefined;
1938
+ }, {
1939
+ status: string;
1940
+ title: string;
1941
+ detail?: string | undefined;
1942
+ meta?: Record<string, unknown> | undefined;
1943
+ }>, "many">>;
1944
+ }, "strip", z.ZodTypeAny, {
1945
+ data: {
1946
+ id: string;
1947
+ type: "integrations";
1948
+ attributes: {
1949
+ id: string;
1950
+ createdAt: string;
1951
+ updatedAt: string;
1952
+ isActive: boolean;
1953
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1954
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1955
+ name: string;
1956
+ provider: string;
1957
+ configuration: Record<string, any>;
1958
+ syncFrequency: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL";
1959
+ description?: string | undefined;
1960
+ credentials?: Record<string, string> | undefined;
1961
+ lastSyncAt?: string | undefined;
1962
+ lastErrorAt?: string | undefined;
1963
+ lastErrorMessage?: string | undefined;
1964
+ };
1965
+ };
1966
+ meta?: Record<string, unknown> | undefined;
1967
+ links?: {
1968
+ self: string;
1969
+ first?: string | undefined;
1970
+ last?: string | undefined;
1971
+ prev?: string | undefined;
1972
+ next?: string | undefined;
1973
+ } | undefined;
1974
+ errors?: {
1975
+ status: string;
1976
+ title: string;
1977
+ detail?: string | undefined;
1978
+ meta?: Record<string, unknown> | undefined;
1979
+ }[] | undefined;
1980
+ }, {
1981
+ data: {
1982
+ id: string;
1983
+ type: "integrations";
1984
+ attributes: {
1985
+ id: string;
1986
+ createdAt: string;
1987
+ updatedAt: string;
1988
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
1989
+ status: "ACTIVE" | "PENDING" | "INACTIVE" | "ERROR";
1990
+ name: string;
1991
+ provider: string;
1992
+ configuration: Record<string, any>;
1993
+ isActive?: boolean | undefined;
1994
+ description?: string | undefined;
1995
+ credentials?: Record<string, string> | undefined;
1996
+ lastSyncAt?: string | undefined;
1997
+ lastErrorAt?: string | undefined;
1998
+ lastErrorMessage?: string | undefined;
1999
+ syncFrequency?: "HOURLY" | "DAILY" | "WEEKLY" | "REAL_TIME" | "MANUAL" | undefined;
2000
+ };
2001
+ };
2002
+ meta?: Record<string, unknown> | undefined;
2003
+ links?: {
2004
+ self: string;
2005
+ first?: string | undefined;
2006
+ last?: string | undefined;
2007
+ prev?: string | undefined;
2008
+ next?: string | undefined;
2009
+ } | undefined;
2010
+ errors?: {
2011
+ status: string;
2012
+ title: string;
2013
+ detail?: string | undefined;
2014
+ meta?: Record<string, unknown> | undefined;
2015
+ }[] | undefined;
2016
+ }>;
2017
+ 403: z.ZodObject<{
2018
+ errors: z.ZodArray<z.ZodObject<{
2019
+ status: z.ZodString;
2020
+ title: z.ZodString;
2021
+ detail: z.ZodOptional<z.ZodString>;
2022
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2023
+ }, "strip", z.ZodTypeAny, {
2024
+ status: string;
2025
+ title: string;
2026
+ detail?: string | undefined;
2027
+ meta?: Record<string, unknown> | undefined;
2028
+ }, {
2029
+ status: string;
2030
+ title: string;
2031
+ detail?: string | undefined;
2032
+ meta?: Record<string, unknown> | undefined;
2033
+ }>, "many">;
2034
+ }, "strip", z.ZodTypeAny, {
2035
+ errors: {
2036
+ status: string;
2037
+ title: string;
2038
+ detail?: string | undefined;
2039
+ meta?: Record<string, unknown> | undefined;
2040
+ }[];
2041
+ }, {
2042
+ errors: {
2043
+ status: string;
2044
+ title: string;
2045
+ detail?: string | undefined;
2046
+ meta?: Record<string, unknown> | undefined;
2047
+ }[];
2048
+ }>;
2049
+ 404: z.ZodObject<{
2050
+ errors: z.ZodArray<z.ZodObject<{
2051
+ status: z.ZodString;
2052
+ title: z.ZodString;
2053
+ detail: z.ZodOptional<z.ZodString>;
2054
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2055
+ }, "strip", z.ZodTypeAny, {
2056
+ status: string;
2057
+ title: string;
2058
+ detail?: string | undefined;
2059
+ meta?: Record<string, unknown> | undefined;
2060
+ }, {
2061
+ status: string;
2062
+ title: string;
2063
+ detail?: string | undefined;
2064
+ meta?: Record<string, unknown> | undefined;
2065
+ }>, "many">;
2066
+ }, "strip", z.ZodTypeAny, {
2067
+ errors: {
2068
+ status: string;
2069
+ title: string;
2070
+ detail?: string | undefined;
2071
+ meta?: Record<string, unknown> | undefined;
2072
+ }[];
2073
+ }, {
2074
+ errors: {
2075
+ status: string;
2076
+ title: string;
2077
+ detail?: string | undefined;
2078
+ meta?: Record<string, unknown> | undefined;
2079
+ }[];
2080
+ }>;
2081
+ };
2082
+ };
2083
+ getSyncLogs: {
2084
+ pathParams: z.ZodObject<{
2085
+ integrationId: z.ZodString;
2086
+ }, "strip", z.ZodTypeAny, {
2087
+ integrationId: string;
2088
+ }, {
2089
+ integrationId: string;
2090
+ }>;
2091
+ query: z.ZodObject<{
2092
+ page: z.ZodDefault<z.ZodNumber>;
2093
+ limit: z.ZodDefault<z.ZodNumber>;
2094
+ status: z.ZodOptional<z.ZodEnum<["SUCCESS", "FAILED", "PARTIAL", "IN_PROGRESS"]>>;
2095
+ startDate: z.ZodOptional<z.ZodString>;
2096
+ endDate: z.ZodOptional<z.ZodString>;
2097
+ }, "strip", z.ZodTypeAny, {
2098
+ page: number;
2099
+ limit: number;
2100
+ status?: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL" | undefined;
2101
+ startDate?: string | undefined;
2102
+ endDate?: string | undefined;
2103
+ }, {
2104
+ status?: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL" | undefined;
2105
+ page?: number | undefined;
2106
+ limit?: number | undefined;
2107
+ startDate?: string | undefined;
2108
+ endDate?: string | undefined;
2109
+ }>;
2110
+ summary: "Get sync logs for an integration";
2111
+ method: "GET";
2112
+ path: "/integrations/:integrationId/sync-logs";
2113
+ responses: {
2114
+ 200: z.ZodObject<{
2115
+ data: z.ZodArray<z.ZodObject<{
2116
+ type: z.ZodLiteral<"sync-logs">;
2117
+ id: z.ZodString;
2118
+ attributes: z.ZodObject<{
2119
+ id: z.ZodString;
2120
+ integrationId: z.ZodString;
2121
+ status: z.ZodEnum<["SUCCESS", "FAILED", "PARTIAL", "IN_PROGRESS"]>;
2122
+ recordsProcessed: z.ZodDefault<z.ZodNumber>;
2123
+ recordsSuccess: z.ZodDefault<z.ZodNumber>;
2124
+ recordsFailed: z.ZodDefault<z.ZodNumber>;
2125
+ startedAt: z.ZodString;
2126
+ completedAt: z.ZodOptional<z.ZodString>;
2127
+ duration: z.ZodOptional<z.ZodNumber>;
2128
+ errorMessage: z.ZodOptional<z.ZodString>;
2129
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2130
+ createdAt: z.ZodString;
2131
+ }, "strip", z.ZodTypeAny, {
2132
+ id: string;
2133
+ createdAt: string;
2134
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2135
+ startedAt: string;
2136
+ integrationId: string;
2137
+ recordsProcessed: number;
2138
+ recordsSuccess: number;
2139
+ recordsFailed: number;
2140
+ metadata?: Record<string, any> | undefined;
2141
+ completedAt?: string | undefined;
2142
+ duration?: number | undefined;
2143
+ errorMessage?: string | undefined;
2144
+ }, {
2145
+ id: string;
2146
+ createdAt: string;
2147
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2148
+ startedAt: string;
2149
+ integrationId: string;
2150
+ metadata?: Record<string, any> | undefined;
2151
+ completedAt?: string | undefined;
2152
+ recordsProcessed?: number | undefined;
2153
+ recordsSuccess?: number | undefined;
2154
+ recordsFailed?: number | undefined;
2155
+ duration?: number | undefined;
2156
+ errorMessage?: string | undefined;
2157
+ }>;
2158
+ }, "strip", z.ZodTypeAny, {
2159
+ id: string;
2160
+ type: "sync-logs";
2161
+ attributes: {
2162
+ id: string;
2163
+ createdAt: string;
2164
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2165
+ startedAt: string;
2166
+ integrationId: string;
2167
+ recordsProcessed: number;
2168
+ recordsSuccess: number;
2169
+ recordsFailed: number;
2170
+ metadata?: Record<string, any> | undefined;
2171
+ completedAt?: string | undefined;
2172
+ duration?: number | undefined;
2173
+ errorMessage?: string | undefined;
2174
+ };
2175
+ }, {
2176
+ id: string;
2177
+ type: "sync-logs";
2178
+ attributes: {
2179
+ id: string;
2180
+ createdAt: string;
2181
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2182
+ startedAt: string;
2183
+ integrationId: string;
2184
+ metadata?: Record<string, any> | undefined;
2185
+ completedAt?: string | undefined;
2186
+ recordsProcessed?: number | undefined;
2187
+ recordsSuccess?: number | undefined;
2188
+ recordsFailed?: number | undefined;
2189
+ duration?: number | undefined;
2190
+ errorMessage?: string | undefined;
2191
+ };
2192
+ }>, "many">;
2193
+ meta: z.ZodOptional<z.ZodObject<{
2194
+ total: z.ZodOptional<z.ZodNumber>;
2195
+ page: z.ZodOptional<z.ZodNumber>;
2196
+ size: z.ZodOptional<z.ZodNumber>;
2197
+ pages: z.ZodOptional<z.ZodNumber>;
2198
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
2199
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
2200
+ }, "strip", z.ZodTypeAny, {
2201
+ page?: number | undefined;
2202
+ total?: number | undefined;
2203
+ size?: number | undefined;
2204
+ pages?: number | undefined;
2205
+ hasNextPage?: boolean | undefined;
2206
+ hasPreviousPage?: boolean | undefined;
2207
+ }, {
2208
+ page?: number | undefined;
2209
+ total?: number | undefined;
2210
+ size?: number | undefined;
2211
+ pages?: number | undefined;
2212
+ hasNextPage?: boolean | undefined;
2213
+ hasPreviousPage?: boolean | undefined;
2214
+ }>>;
2215
+ links: z.ZodOptional<z.ZodObject<{
2216
+ self: z.ZodString;
2217
+ first: z.ZodOptional<z.ZodString>;
2218
+ last: z.ZodOptional<z.ZodString>;
2219
+ prev: z.ZodOptional<z.ZodString>;
2220
+ next: z.ZodOptional<z.ZodString>;
2221
+ }, "strip", z.ZodTypeAny, {
2222
+ self: string;
2223
+ first?: string | undefined;
2224
+ last?: string | undefined;
2225
+ prev?: string | undefined;
2226
+ next?: string | undefined;
2227
+ }, {
2228
+ self: string;
2229
+ first?: string | undefined;
2230
+ last?: string | undefined;
2231
+ prev?: string | undefined;
2232
+ next?: string | undefined;
2233
+ }>>;
2234
+ }, "strip", z.ZodTypeAny, {
2235
+ data: {
2236
+ id: string;
2237
+ type: "sync-logs";
2238
+ attributes: {
2239
+ id: string;
2240
+ createdAt: string;
2241
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2242
+ startedAt: string;
2243
+ integrationId: string;
2244
+ recordsProcessed: number;
2245
+ recordsSuccess: number;
2246
+ recordsFailed: number;
2247
+ metadata?: Record<string, any> | undefined;
2248
+ completedAt?: string | undefined;
2249
+ duration?: number | undefined;
2250
+ errorMessage?: string | undefined;
2251
+ };
2252
+ }[];
2253
+ meta?: {
2254
+ page?: number | undefined;
2255
+ total?: number | undefined;
2256
+ size?: number | undefined;
2257
+ pages?: number | undefined;
2258
+ hasNextPage?: boolean | undefined;
2259
+ hasPreviousPage?: boolean | undefined;
2260
+ } | undefined;
2261
+ links?: {
2262
+ self: string;
2263
+ first?: string | undefined;
2264
+ last?: string | undefined;
2265
+ prev?: string | undefined;
2266
+ next?: string | undefined;
2267
+ } | undefined;
2268
+ }, {
2269
+ data: {
2270
+ id: string;
2271
+ type: "sync-logs";
2272
+ attributes: {
2273
+ id: string;
2274
+ createdAt: string;
2275
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2276
+ startedAt: string;
2277
+ integrationId: string;
2278
+ metadata?: Record<string, any> | undefined;
2279
+ completedAt?: string | undefined;
2280
+ recordsProcessed?: number | undefined;
2281
+ recordsSuccess?: number | undefined;
2282
+ recordsFailed?: number | undefined;
2283
+ duration?: number | undefined;
2284
+ errorMessage?: string | undefined;
2285
+ };
2286
+ }[];
2287
+ meta?: {
2288
+ page?: number | undefined;
2289
+ total?: number | undefined;
2290
+ size?: number | undefined;
2291
+ pages?: number | undefined;
2292
+ hasNextPage?: boolean | undefined;
2293
+ hasPreviousPage?: boolean | undefined;
2294
+ } | undefined;
2295
+ links?: {
2296
+ self: string;
2297
+ first?: string | undefined;
2298
+ last?: string | undefined;
2299
+ prev?: string | undefined;
2300
+ next?: string | undefined;
2301
+ } | undefined;
2302
+ }>;
2303
+ 403: z.ZodObject<{
2304
+ errors: z.ZodArray<z.ZodObject<{
2305
+ status: z.ZodString;
2306
+ title: z.ZodString;
2307
+ detail: z.ZodOptional<z.ZodString>;
2308
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2309
+ }, "strip", z.ZodTypeAny, {
2310
+ status: string;
2311
+ title: string;
2312
+ detail?: string | undefined;
2313
+ meta?: Record<string, unknown> | undefined;
2314
+ }, {
2315
+ status: string;
2316
+ title: string;
2317
+ detail?: string | undefined;
2318
+ meta?: Record<string, unknown> | undefined;
2319
+ }>, "many">;
2320
+ }, "strip", z.ZodTypeAny, {
2321
+ errors: {
2322
+ status: string;
2323
+ title: string;
2324
+ detail?: string | undefined;
2325
+ meta?: Record<string, unknown> | undefined;
2326
+ }[];
2327
+ }, {
2328
+ errors: {
2329
+ status: string;
2330
+ title: string;
2331
+ detail?: string | undefined;
2332
+ meta?: Record<string, unknown> | undefined;
2333
+ }[];
2334
+ }>;
2335
+ 404: z.ZodObject<{
2336
+ errors: z.ZodArray<z.ZodObject<{
2337
+ status: z.ZodString;
2338
+ title: z.ZodString;
2339
+ detail: z.ZodOptional<z.ZodString>;
2340
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2341
+ }, "strip", z.ZodTypeAny, {
2342
+ status: string;
2343
+ title: string;
2344
+ detail?: string | undefined;
2345
+ meta?: Record<string, unknown> | undefined;
2346
+ }, {
2347
+ status: string;
2348
+ title: string;
2349
+ detail?: string | undefined;
2350
+ meta?: Record<string, unknown> | undefined;
2351
+ }>, "many">;
2352
+ }, "strip", z.ZodTypeAny, {
2353
+ errors: {
2354
+ status: string;
2355
+ title: string;
2356
+ detail?: string | undefined;
2357
+ meta?: Record<string, unknown> | undefined;
2358
+ }[];
2359
+ }, {
2360
+ errors: {
2361
+ status: string;
2362
+ title: string;
2363
+ detail?: string | undefined;
2364
+ meta?: Record<string, unknown> | undefined;
2365
+ }[];
2366
+ }>;
2367
+ };
2368
+ };
2369
+ getSyncLog: {
2370
+ pathParams: z.ZodObject<{
2371
+ syncLogId: z.ZodString;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ syncLogId: string;
2374
+ }, {
2375
+ syncLogId: string;
2376
+ }>;
2377
+ summary: "Get a specific sync log";
2378
+ method: "GET";
2379
+ path: "/sync-logs/:syncLogId";
2380
+ responses: {
2381
+ 200: z.ZodObject<{
2382
+ data: z.ZodObject<{
2383
+ type: z.ZodLiteral<"sync-logs">;
2384
+ id: z.ZodString;
2385
+ attributes: z.ZodObject<{
2386
+ id: z.ZodString;
2387
+ integrationId: z.ZodString;
2388
+ status: z.ZodEnum<["SUCCESS", "FAILED", "PARTIAL", "IN_PROGRESS"]>;
2389
+ recordsProcessed: z.ZodDefault<z.ZodNumber>;
2390
+ recordsSuccess: z.ZodDefault<z.ZodNumber>;
2391
+ recordsFailed: z.ZodDefault<z.ZodNumber>;
2392
+ startedAt: z.ZodString;
2393
+ completedAt: z.ZodOptional<z.ZodString>;
2394
+ duration: z.ZodOptional<z.ZodNumber>;
2395
+ errorMessage: z.ZodOptional<z.ZodString>;
2396
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2397
+ createdAt: z.ZodString;
2398
+ }, "strip", z.ZodTypeAny, {
2399
+ id: string;
2400
+ createdAt: string;
2401
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2402
+ startedAt: string;
2403
+ integrationId: string;
2404
+ recordsProcessed: number;
2405
+ recordsSuccess: number;
2406
+ recordsFailed: number;
2407
+ metadata?: Record<string, any> | undefined;
2408
+ completedAt?: string | undefined;
2409
+ duration?: number | undefined;
2410
+ errorMessage?: string | undefined;
2411
+ }, {
2412
+ id: string;
2413
+ createdAt: string;
2414
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2415
+ startedAt: string;
2416
+ integrationId: string;
2417
+ metadata?: Record<string, any> | undefined;
2418
+ completedAt?: string | undefined;
2419
+ recordsProcessed?: number | undefined;
2420
+ recordsSuccess?: number | undefined;
2421
+ recordsFailed?: number | undefined;
2422
+ duration?: number | undefined;
2423
+ errorMessage?: string | undefined;
2424
+ }>;
2425
+ }, "strip", z.ZodTypeAny, {
2426
+ id: string;
2427
+ type: "sync-logs";
2428
+ attributes: {
2429
+ id: string;
2430
+ createdAt: string;
2431
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2432
+ startedAt: string;
2433
+ integrationId: string;
2434
+ recordsProcessed: number;
2435
+ recordsSuccess: number;
2436
+ recordsFailed: number;
2437
+ metadata?: Record<string, any> | undefined;
2438
+ completedAt?: string | undefined;
2439
+ duration?: number | undefined;
2440
+ errorMessage?: string | undefined;
2441
+ };
2442
+ }, {
2443
+ id: string;
2444
+ type: "sync-logs";
2445
+ attributes: {
2446
+ id: string;
2447
+ createdAt: string;
2448
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2449
+ startedAt: string;
2450
+ integrationId: string;
2451
+ metadata?: Record<string, any> | undefined;
2452
+ completedAt?: string | undefined;
2453
+ recordsProcessed?: number | undefined;
2454
+ recordsSuccess?: number | undefined;
2455
+ recordsFailed?: number | undefined;
2456
+ duration?: number | undefined;
2457
+ errorMessage?: string | undefined;
2458
+ };
2459
+ }>;
2460
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2461
+ links: z.ZodOptional<z.ZodObject<{
2462
+ self: z.ZodString;
2463
+ first: z.ZodOptional<z.ZodString>;
2464
+ last: z.ZodOptional<z.ZodString>;
2465
+ prev: z.ZodOptional<z.ZodString>;
2466
+ next: z.ZodOptional<z.ZodString>;
2467
+ }, "strip", z.ZodTypeAny, {
2468
+ self: string;
2469
+ first?: string | undefined;
2470
+ last?: string | undefined;
2471
+ prev?: string | undefined;
2472
+ next?: string | undefined;
2473
+ }, {
2474
+ self: string;
2475
+ first?: string | undefined;
2476
+ last?: string | undefined;
2477
+ prev?: string | undefined;
2478
+ next?: string | undefined;
2479
+ }>>;
2480
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2481
+ status: z.ZodString;
2482
+ title: z.ZodString;
2483
+ detail: z.ZodOptional<z.ZodString>;
2484
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2485
+ }, "strip", z.ZodTypeAny, {
2486
+ status: string;
2487
+ title: string;
2488
+ detail?: string | undefined;
2489
+ meta?: Record<string, unknown> | undefined;
2490
+ }, {
2491
+ status: string;
2492
+ title: string;
2493
+ detail?: string | undefined;
2494
+ meta?: Record<string, unknown> | undefined;
2495
+ }>, "many">>;
2496
+ }, "strip", z.ZodTypeAny, {
2497
+ data: {
2498
+ id: string;
2499
+ type: "sync-logs";
2500
+ attributes: {
2501
+ id: string;
2502
+ createdAt: string;
2503
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2504
+ startedAt: string;
2505
+ integrationId: string;
2506
+ recordsProcessed: number;
2507
+ recordsSuccess: number;
2508
+ recordsFailed: number;
2509
+ metadata?: Record<string, any> | undefined;
2510
+ completedAt?: string | undefined;
2511
+ duration?: number | undefined;
2512
+ errorMessage?: string | undefined;
2513
+ };
2514
+ };
2515
+ meta?: Record<string, unknown> | undefined;
2516
+ links?: {
2517
+ self: string;
2518
+ first?: string | undefined;
2519
+ last?: string | undefined;
2520
+ prev?: string | undefined;
2521
+ next?: string | undefined;
2522
+ } | undefined;
2523
+ errors?: {
2524
+ status: string;
2525
+ title: string;
2526
+ detail?: string | undefined;
2527
+ meta?: Record<string, unknown> | undefined;
2528
+ }[] | undefined;
2529
+ }, {
2530
+ data: {
2531
+ id: string;
2532
+ type: "sync-logs";
2533
+ attributes: {
2534
+ id: string;
2535
+ createdAt: string;
2536
+ status: "IN_PROGRESS" | "SUCCESS" | "FAILED" | "PARTIAL";
2537
+ startedAt: string;
2538
+ integrationId: string;
2539
+ metadata?: Record<string, any> | undefined;
2540
+ completedAt?: string | undefined;
2541
+ recordsProcessed?: number | undefined;
2542
+ recordsSuccess?: number | undefined;
2543
+ recordsFailed?: number | undefined;
2544
+ duration?: number | undefined;
2545
+ errorMessage?: string | undefined;
2546
+ };
2547
+ };
2548
+ meta?: Record<string, unknown> | undefined;
2549
+ links?: {
2550
+ self: string;
2551
+ first?: string | undefined;
2552
+ last?: string | undefined;
2553
+ prev?: string | undefined;
2554
+ next?: string | undefined;
2555
+ } | undefined;
2556
+ errors?: {
2557
+ status: string;
2558
+ title: string;
2559
+ detail?: string | undefined;
2560
+ meta?: Record<string, unknown> | undefined;
2561
+ }[] | undefined;
2562
+ }>;
2563
+ 403: z.ZodObject<{
2564
+ errors: z.ZodArray<z.ZodObject<{
2565
+ status: z.ZodString;
2566
+ title: z.ZodString;
2567
+ detail: z.ZodOptional<z.ZodString>;
2568
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2569
+ }, "strip", z.ZodTypeAny, {
2570
+ status: string;
2571
+ title: string;
2572
+ detail?: string | undefined;
2573
+ meta?: Record<string, unknown> | undefined;
2574
+ }, {
2575
+ status: string;
2576
+ title: string;
2577
+ detail?: string | undefined;
2578
+ meta?: Record<string, unknown> | undefined;
2579
+ }>, "many">;
2580
+ }, "strip", z.ZodTypeAny, {
2581
+ errors: {
2582
+ status: string;
2583
+ title: string;
2584
+ detail?: string | undefined;
2585
+ meta?: Record<string, unknown> | undefined;
2586
+ }[];
2587
+ }, {
2588
+ errors: {
2589
+ status: string;
2590
+ title: string;
2591
+ detail?: string | undefined;
2592
+ meta?: Record<string, unknown> | undefined;
2593
+ }[];
2594
+ }>;
2595
+ 404: z.ZodObject<{
2596
+ errors: z.ZodArray<z.ZodObject<{
2597
+ status: z.ZodString;
2598
+ title: z.ZodString;
2599
+ detail: z.ZodOptional<z.ZodString>;
2600
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2601
+ }, "strip", z.ZodTypeAny, {
2602
+ status: string;
2603
+ title: string;
2604
+ detail?: string | undefined;
2605
+ meta?: Record<string, unknown> | undefined;
2606
+ }, {
2607
+ status: string;
2608
+ title: string;
2609
+ detail?: string | undefined;
2610
+ meta?: Record<string, unknown> | undefined;
2611
+ }>, "many">;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ errors: {
2614
+ status: string;
2615
+ title: string;
2616
+ detail?: string | undefined;
2617
+ meta?: Record<string, unknown> | undefined;
2618
+ }[];
2619
+ }, {
2620
+ errors: {
2621
+ status: string;
2622
+ title: string;
2623
+ detail?: string | undefined;
2624
+ meta?: Record<string, unknown> | undefined;
2625
+ }[];
2626
+ }>;
2627
+ };
2628
+ };
2629
+ getWebhooks: {
2630
+ query: z.ZodObject<{
2631
+ page: z.ZodDefault<z.ZodNumber>;
2632
+ limit: z.ZodDefault<z.ZodNumber>;
2633
+ isActive: z.ZodOptional<z.ZodBoolean>;
2634
+ }, "strip", z.ZodTypeAny, {
2635
+ page: number;
2636
+ limit: number;
2637
+ isActive?: boolean | undefined;
2638
+ }, {
2639
+ isActive?: boolean | undefined;
2640
+ page?: number | undefined;
2641
+ limit?: number | undefined;
2642
+ }>;
2643
+ summary: "Get company webhooks";
2644
+ method: "GET";
2645
+ path: "/webhooks";
2646
+ responses: {
2647
+ 200: z.ZodObject<{
2648
+ data: z.ZodArray<z.ZodObject<{
2649
+ type: z.ZodLiteral<"webhooks">;
2650
+ id: z.ZodString;
2651
+ attributes: z.ZodObject<{
2652
+ id: z.ZodString;
2653
+ name: z.ZodString;
2654
+ url: z.ZodString;
2655
+ events: z.ZodArray<z.ZodString, "many">;
2656
+ isActive: z.ZodDefault<z.ZodBoolean>;
2657
+ secret: z.ZodOptional<z.ZodString>;
2658
+ lastTriggeredAt: z.ZodOptional<z.ZodString>;
2659
+ failureCount: z.ZodDefault<z.ZodNumber>;
2660
+ maxRetries: z.ZodDefault<z.ZodNumber>;
2661
+ retryDelay: z.ZodDefault<z.ZodNumber>;
2662
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2663
+ createdAt: z.ZodString;
2664
+ updatedAt: z.ZodString;
2665
+ }, "strip", z.ZodTypeAny, {
2666
+ id: string;
2667
+ createdAt: string;
2668
+ updatedAt: string;
2669
+ isActive: boolean;
2670
+ name: string;
2671
+ url: string;
2672
+ events: string[];
2673
+ failureCount: number;
2674
+ maxRetries: number;
2675
+ retryDelay: number;
2676
+ secret?: string | undefined;
2677
+ headers?: Record<string, string> | undefined;
2678
+ lastTriggeredAt?: string | undefined;
2679
+ }, {
2680
+ id: string;
2681
+ createdAt: string;
2682
+ updatedAt: string;
2683
+ name: string;
2684
+ url: string;
2685
+ events: string[];
2686
+ isActive?: boolean | undefined;
2687
+ secret?: string | undefined;
2688
+ headers?: Record<string, string> | undefined;
2689
+ lastTriggeredAt?: string | undefined;
2690
+ failureCount?: number | undefined;
2691
+ maxRetries?: number | undefined;
2692
+ retryDelay?: number | undefined;
2693
+ }>;
2694
+ }, "strip", z.ZodTypeAny, {
2695
+ id: string;
2696
+ type: "webhooks";
2697
+ attributes: {
2698
+ id: string;
2699
+ createdAt: string;
2700
+ updatedAt: string;
2701
+ isActive: boolean;
2702
+ name: string;
2703
+ url: string;
2704
+ events: string[];
2705
+ failureCount: number;
2706
+ maxRetries: number;
2707
+ retryDelay: number;
2708
+ secret?: string | undefined;
2709
+ headers?: Record<string, string> | undefined;
2710
+ lastTriggeredAt?: string | undefined;
2711
+ };
2712
+ }, {
2713
+ id: string;
2714
+ type: "webhooks";
2715
+ attributes: {
2716
+ id: string;
2717
+ createdAt: string;
2718
+ updatedAt: string;
2719
+ name: string;
2720
+ url: string;
2721
+ events: string[];
2722
+ isActive?: boolean | undefined;
2723
+ secret?: string | undefined;
2724
+ headers?: Record<string, string> | undefined;
2725
+ lastTriggeredAt?: string | undefined;
2726
+ failureCount?: number | undefined;
2727
+ maxRetries?: number | undefined;
2728
+ retryDelay?: number | undefined;
2729
+ };
2730
+ }>, "many">;
2731
+ meta: z.ZodOptional<z.ZodObject<{
2732
+ total: z.ZodOptional<z.ZodNumber>;
2733
+ page: z.ZodOptional<z.ZodNumber>;
2734
+ size: z.ZodOptional<z.ZodNumber>;
2735
+ pages: z.ZodOptional<z.ZodNumber>;
2736
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
2737
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
2738
+ }, "strip", z.ZodTypeAny, {
2739
+ page?: number | undefined;
2740
+ total?: number | undefined;
2741
+ size?: number | undefined;
2742
+ pages?: number | undefined;
2743
+ hasNextPage?: boolean | undefined;
2744
+ hasPreviousPage?: boolean | undefined;
2745
+ }, {
2746
+ page?: number | undefined;
2747
+ total?: number | undefined;
2748
+ size?: number | undefined;
2749
+ pages?: number | undefined;
2750
+ hasNextPage?: boolean | undefined;
2751
+ hasPreviousPage?: boolean | undefined;
2752
+ }>>;
2753
+ links: z.ZodOptional<z.ZodObject<{
2754
+ self: z.ZodString;
2755
+ first: z.ZodOptional<z.ZodString>;
2756
+ last: z.ZodOptional<z.ZodString>;
2757
+ prev: z.ZodOptional<z.ZodString>;
2758
+ next: z.ZodOptional<z.ZodString>;
2759
+ }, "strip", z.ZodTypeAny, {
2760
+ self: string;
2761
+ first?: string | undefined;
2762
+ last?: string | undefined;
2763
+ prev?: string | undefined;
2764
+ next?: string | undefined;
2765
+ }, {
2766
+ self: string;
2767
+ first?: string | undefined;
2768
+ last?: string | undefined;
2769
+ prev?: string | undefined;
2770
+ next?: string | undefined;
2771
+ }>>;
2772
+ }, "strip", z.ZodTypeAny, {
2773
+ data: {
2774
+ id: string;
2775
+ type: "webhooks";
2776
+ attributes: {
2777
+ id: string;
2778
+ createdAt: string;
2779
+ updatedAt: string;
2780
+ isActive: boolean;
2781
+ name: string;
2782
+ url: string;
2783
+ events: string[];
2784
+ failureCount: number;
2785
+ maxRetries: number;
2786
+ retryDelay: number;
2787
+ secret?: string | undefined;
2788
+ headers?: Record<string, string> | undefined;
2789
+ lastTriggeredAt?: string | undefined;
2790
+ };
2791
+ }[];
2792
+ meta?: {
2793
+ page?: number | undefined;
2794
+ total?: number | undefined;
2795
+ size?: number | undefined;
2796
+ pages?: number | undefined;
2797
+ hasNextPage?: boolean | undefined;
2798
+ hasPreviousPage?: boolean | undefined;
2799
+ } | undefined;
2800
+ links?: {
2801
+ self: string;
2802
+ first?: string | undefined;
2803
+ last?: string | undefined;
2804
+ prev?: string | undefined;
2805
+ next?: string | undefined;
2806
+ } | undefined;
2807
+ }, {
2808
+ data: {
2809
+ id: string;
2810
+ type: "webhooks";
2811
+ attributes: {
2812
+ id: string;
2813
+ createdAt: string;
2814
+ updatedAt: string;
2815
+ name: string;
2816
+ url: string;
2817
+ events: string[];
2818
+ isActive?: boolean | undefined;
2819
+ secret?: string | undefined;
2820
+ headers?: Record<string, string> | undefined;
2821
+ lastTriggeredAt?: string | undefined;
2822
+ failureCount?: number | undefined;
2823
+ maxRetries?: number | undefined;
2824
+ retryDelay?: number | undefined;
2825
+ };
2826
+ }[];
2827
+ meta?: {
2828
+ page?: number | undefined;
2829
+ total?: number | undefined;
2830
+ size?: number | undefined;
2831
+ pages?: number | undefined;
2832
+ hasNextPage?: boolean | undefined;
2833
+ hasPreviousPage?: boolean | undefined;
2834
+ } | undefined;
2835
+ links?: {
2836
+ self: string;
2837
+ first?: string | undefined;
2838
+ last?: string | undefined;
2839
+ prev?: string | undefined;
2840
+ next?: string | undefined;
2841
+ } | undefined;
2842
+ }>;
2843
+ 403: z.ZodObject<{
2844
+ errors: z.ZodArray<z.ZodObject<{
2845
+ status: z.ZodString;
2846
+ title: z.ZodString;
2847
+ detail: z.ZodOptional<z.ZodString>;
2848
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2849
+ }, "strip", z.ZodTypeAny, {
2850
+ status: string;
2851
+ title: string;
2852
+ detail?: string | undefined;
2853
+ meta?: Record<string, unknown> | undefined;
2854
+ }, {
2855
+ status: string;
2856
+ title: string;
2857
+ detail?: string | undefined;
2858
+ meta?: Record<string, unknown> | undefined;
2859
+ }>, "many">;
2860
+ }, "strip", z.ZodTypeAny, {
2861
+ errors: {
2862
+ status: string;
2863
+ title: string;
2864
+ detail?: string | undefined;
2865
+ meta?: Record<string, unknown> | undefined;
2866
+ }[];
2867
+ }, {
2868
+ errors: {
2869
+ status: string;
2870
+ title: string;
2871
+ detail?: string | undefined;
2872
+ meta?: Record<string, unknown> | undefined;
2873
+ }[];
2874
+ }>;
2875
+ };
2876
+ };
2877
+ createWebhook: {
2878
+ summary: "Create a new webhook";
2879
+ method: "POST";
2880
+ body: z.ZodObject<{
2881
+ name: z.ZodString;
2882
+ url: z.ZodString;
2883
+ events: z.ZodArray<z.ZodString, "many">;
2884
+ secret: z.ZodOptional<z.ZodString>;
2885
+ maxRetries: z.ZodDefault<z.ZodNumber>;
2886
+ retryDelay: z.ZodDefault<z.ZodNumber>;
2887
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2888
+ isActive: z.ZodDefault<z.ZodBoolean>;
2889
+ }, "strip", z.ZodTypeAny, {
2890
+ isActive: boolean;
2891
+ name: string;
2892
+ url: string;
2893
+ events: string[];
2894
+ maxRetries: number;
2895
+ retryDelay: number;
2896
+ secret?: string | undefined;
2897
+ headers?: Record<string, string> | undefined;
2898
+ }, {
2899
+ name: string;
2900
+ url: string;
2901
+ events: string[];
2902
+ isActive?: boolean | undefined;
2903
+ secret?: string | undefined;
2904
+ headers?: Record<string, string> | undefined;
2905
+ maxRetries?: number | undefined;
2906
+ retryDelay?: number | undefined;
2907
+ }>;
2908
+ path: "/webhooks";
2909
+ responses: {
2910
+ 201: z.ZodObject<{
2911
+ data: z.ZodObject<{
2912
+ type: z.ZodLiteral<"webhooks">;
2913
+ id: z.ZodString;
2914
+ attributes: z.ZodObject<{
2915
+ id: z.ZodString;
2916
+ name: z.ZodString;
2917
+ url: z.ZodString;
2918
+ events: z.ZodArray<z.ZodString, "many">;
2919
+ isActive: z.ZodDefault<z.ZodBoolean>;
2920
+ secret: z.ZodOptional<z.ZodString>;
2921
+ lastTriggeredAt: z.ZodOptional<z.ZodString>;
2922
+ failureCount: z.ZodDefault<z.ZodNumber>;
2923
+ maxRetries: z.ZodDefault<z.ZodNumber>;
2924
+ retryDelay: z.ZodDefault<z.ZodNumber>;
2925
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2926
+ createdAt: z.ZodString;
2927
+ updatedAt: z.ZodString;
2928
+ }, "strip", z.ZodTypeAny, {
2929
+ id: string;
2930
+ createdAt: string;
2931
+ updatedAt: string;
2932
+ isActive: boolean;
2933
+ name: string;
2934
+ url: string;
2935
+ events: string[];
2936
+ failureCount: number;
2937
+ maxRetries: number;
2938
+ retryDelay: number;
2939
+ secret?: string | undefined;
2940
+ headers?: Record<string, string> | undefined;
2941
+ lastTriggeredAt?: string | undefined;
2942
+ }, {
2943
+ id: string;
2944
+ createdAt: string;
2945
+ updatedAt: string;
2946
+ name: string;
2947
+ url: string;
2948
+ events: string[];
2949
+ isActive?: boolean | undefined;
2950
+ secret?: string | undefined;
2951
+ headers?: Record<string, string> | undefined;
2952
+ lastTriggeredAt?: string | undefined;
2953
+ failureCount?: number | undefined;
2954
+ maxRetries?: number | undefined;
2955
+ retryDelay?: number | undefined;
2956
+ }>;
2957
+ }, "strip", z.ZodTypeAny, {
2958
+ id: string;
2959
+ type: "webhooks";
2960
+ attributes: {
2961
+ id: string;
2962
+ createdAt: string;
2963
+ updatedAt: string;
2964
+ isActive: boolean;
2965
+ name: string;
2966
+ url: string;
2967
+ events: string[];
2968
+ failureCount: number;
2969
+ maxRetries: number;
2970
+ retryDelay: number;
2971
+ secret?: string | undefined;
2972
+ headers?: Record<string, string> | undefined;
2973
+ lastTriggeredAt?: string | undefined;
2974
+ };
2975
+ }, {
2976
+ id: string;
2977
+ type: "webhooks";
2978
+ attributes: {
2979
+ id: string;
2980
+ createdAt: string;
2981
+ updatedAt: string;
2982
+ name: string;
2983
+ url: string;
2984
+ events: string[];
2985
+ isActive?: boolean | undefined;
2986
+ secret?: string | undefined;
2987
+ headers?: Record<string, string> | undefined;
2988
+ lastTriggeredAt?: string | undefined;
2989
+ failureCount?: number | undefined;
2990
+ maxRetries?: number | undefined;
2991
+ retryDelay?: number | undefined;
2992
+ };
2993
+ }>;
2994
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2995
+ links: z.ZodOptional<z.ZodObject<{
2996
+ self: z.ZodString;
2997
+ first: z.ZodOptional<z.ZodString>;
2998
+ last: z.ZodOptional<z.ZodString>;
2999
+ prev: z.ZodOptional<z.ZodString>;
3000
+ next: z.ZodOptional<z.ZodString>;
3001
+ }, "strip", z.ZodTypeAny, {
3002
+ self: string;
3003
+ first?: string | undefined;
3004
+ last?: string | undefined;
3005
+ prev?: string | undefined;
3006
+ next?: string | undefined;
3007
+ }, {
3008
+ self: string;
3009
+ first?: string | undefined;
3010
+ last?: string | undefined;
3011
+ prev?: string | undefined;
3012
+ next?: string | undefined;
3013
+ }>>;
3014
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
3015
+ status: z.ZodString;
3016
+ title: z.ZodString;
3017
+ detail: z.ZodOptional<z.ZodString>;
3018
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3019
+ }, "strip", z.ZodTypeAny, {
3020
+ status: string;
3021
+ title: string;
3022
+ detail?: string | undefined;
3023
+ meta?: Record<string, unknown> | undefined;
3024
+ }, {
3025
+ status: string;
3026
+ title: string;
3027
+ detail?: string | undefined;
3028
+ meta?: Record<string, unknown> | undefined;
3029
+ }>, "many">>;
3030
+ }, "strip", z.ZodTypeAny, {
3031
+ data: {
3032
+ id: string;
3033
+ type: "webhooks";
3034
+ attributes: {
3035
+ id: string;
3036
+ createdAt: string;
3037
+ updatedAt: string;
3038
+ isActive: boolean;
3039
+ name: string;
3040
+ url: string;
3041
+ events: string[];
3042
+ failureCount: number;
3043
+ maxRetries: number;
3044
+ retryDelay: number;
3045
+ secret?: string | undefined;
3046
+ headers?: Record<string, string> | undefined;
3047
+ lastTriggeredAt?: string | undefined;
3048
+ };
3049
+ };
3050
+ meta?: Record<string, unknown> | undefined;
3051
+ links?: {
3052
+ self: string;
3053
+ first?: string | undefined;
3054
+ last?: string | undefined;
3055
+ prev?: string | undefined;
3056
+ next?: string | undefined;
3057
+ } | undefined;
3058
+ errors?: {
3059
+ status: string;
3060
+ title: string;
3061
+ detail?: string | undefined;
3062
+ meta?: Record<string, unknown> | undefined;
3063
+ }[] | undefined;
3064
+ }, {
3065
+ data: {
3066
+ id: string;
3067
+ type: "webhooks";
3068
+ attributes: {
3069
+ id: string;
3070
+ createdAt: string;
3071
+ updatedAt: string;
3072
+ name: string;
3073
+ url: string;
3074
+ events: string[];
3075
+ isActive?: boolean | undefined;
3076
+ secret?: string | undefined;
3077
+ headers?: Record<string, string> | undefined;
3078
+ lastTriggeredAt?: string | undefined;
3079
+ failureCount?: number | undefined;
3080
+ maxRetries?: number | undefined;
3081
+ retryDelay?: number | undefined;
3082
+ };
3083
+ };
3084
+ meta?: Record<string, unknown> | undefined;
3085
+ links?: {
3086
+ self: string;
3087
+ first?: string | undefined;
3088
+ last?: string | undefined;
3089
+ prev?: string | undefined;
3090
+ next?: string | undefined;
3091
+ } | undefined;
3092
+ errors?: {
3093
+ status: string;
3094
+ title: string;
3095
+ detail?: string | undefined;
3096
+ meta?: Record<string, unknown> | undefined;
3097
+ }[] | undefined;
3098
+ }>;
3099
+ 400: z.ZodObject<{
3100
+ errors: z.ZodArray<z.ZodObject<{
3101
+ status: z.ZodString;
3102
+ title: z.ZodString;
3103
+ detail: z.ZodOptional<z.ZodString>;
3104
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3105
+ }, "strip", z.ZodTypeAny, {
3106
+ status: string;
3107
+ title: string;
3108
+ detail?: string | undefined;
3109
+ meta?: Record<string, unknown> | undefined;
3110
+ }, {
3111
+ status: string;
3112
+ title: string;
3113
+ detail?: string | undefined;
3114
+ meta?: Record<string, unknown> | undefined;
3115
+ }>, "many">;
3116
+ }, "strip", z.ZodTypeAny, {
3117
+ errors: {
3118
+ status: string;
3119
+ title: string;
3120
+ detail?: string | undefined;
3121
+ meta?: Record<string, unknown> | undefined;
3122
+ }[];
3123
+ }, {
3124
+ errors: {
3125
+ status: string;
3126
+ title: string;
3127
+ detail?: string | undefined;
3128
+ meta?: Record<string, unknown> | undefined;
3129
+ }[];
3130
+ }>;
3131
+ 403: z.ZodObject<{
3132
+ errors: z.ZodArray<z.ZodObject<{
3133
+ status: z.ZodString;
3134
+ title: z.ZodString;
3135
+ detail: z.ZodOptional<z.ZodString>;
3136
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3137
+ }, "strip", z.ZodTypeAny, {
3138
+ status: string;
3139
+ title: string;
3140
+ detail?: string | undefined;
3141
+ meta?: Record<string, unknown> | undefined;
3142
+ }, {
3143
+ status: string;
3144
+ title: string;
3145
+ detail?: string | undefined;
3146
+ meta?: Record<string, unknown> | undefined;
3147
+ }>, "many">;
3148
+ }, "strip", z.ZodTypeAny, {
3149
+ errors: {
3150
+ status: string;
3151
+ title: string;
3152
+ detail?: string | undefined;
3153
+ meta?: Record<string, unknown> | undefined;
3154
+ }[];
3155
+ }, {
3156
+ errors: {
3157
+ status: string;
3158
+ title: string;
3159
+ detail?: string | undefined;
3160
+ meta?: Record<string, unknown> | undefined;
3161
+ }[];
3162
+ }>;
3163
+ };
3164
+ };
3165
+ getWebhook: {
3166
+ pathParams: z.ZodObject<{
3167
+ webhookId: z.ZodString;
3168
+ }, "strip", z.ZodTypeAny, {
3169
+ webhookId: string;
3170
+ }, {
3171
+ webhookId: string;
3172
+ }>;
3173
+ summary: "Get a specific webhook";
3174
+ method: "GET";
3175
+ path: "/webhooks/:webhookId";
3176
+ responses: {
3177
+ 200: z.ZodObject<{
3178
+ data: z.ZodObject<{
3179
+ type: z.ZodLiteral<"webhooks">;
3180
+ id: z.ZodString;
3181
+ attributes: z.ZodObject<{
3182
+ id: z.ZodString;
3183
+ name: z.ZodString;
3184
+ url: z.ZodString;
3185
+ events: z.ZodArray<z.ZodString, "many">;
3186
+ isActive: z.ZodDefault<z.ZodBoolean>;
3187
+ secret: z.ZodOptional<z.ZodString>;
3188
+ lastTriggeredAt: z.ZodOptional<z.ZodString>;
3189
+ failureCount: z.ZodDefault<z.ZodNumber>;
3190
+ maxRetries: z.ZodDefault<z.ZodNumber>;
3191
+ retryDelay: z.ZodDefault<z.ZodNumber>;
3192
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3193
+ createdAt: z.ZodString;
3194
+ updatedAt: z.ZodString;
3195
+ }, "strip", z.ZodTypeAny, {
3196
+ id: string;
3197
+ createdAt: string;
3198
+ updatedAt: string;
3199
+ isActive: boolean;
3200
+ name: string;
3201
+ url: string;
3202
+ events: string[];
3203
+ failureCount: number;
3204
+ maxRetries: number;
3205
+ retryDelay: number;
3206
+ secret?: string | undefined;
3207
+ headers?: Record<string, string> | undefined;
3208
+ lastTriggeredAt?: string | undefined;
3209
+ }, {
3210
+ id: string;
3211
+ createdAt: string;
3212
+ updatedAt: string;
3213
+ name: string;
3214
+ url: string;
3215
+ events: string[];
3216
+ isActive?: boolean | undefined;
3217
+ secret?: string | undefined;
3218
+ headers?: Record<string, string> | undefined;
3219
+ lastTriggeredAt?: string | undefined;
3220
+ failureCount?: number | undefined;
3221
+ maxRetries?: number | undefined;
3222
+ retryDelay?: number | undefined;
3223
+ }>;
3224
+ }, "strip", z.ZodTypeAny, {
3225
+ id: string;
3226
+ type: "webhooks";
3227
+ attributes: {
3228
+ id: string;
3229
+ createdAt: string;
3230
+ updatedAt: string;
3231
+ isActive: boolean;
3232
+ name: string;
3233
+ url: string;
3234
+ events: string[];
3235
+ failureCount: number;
3236
+ maxRetries: number;
3237
+ retryDelay: number;
3238
+ secret?: string | undefined;
3239
+ headers?: Record<string, string> | undefined;
3240
+ lastTriggeredAt?: string | undefined;
3241
+ };
3242
+ }, {
3243
+ id: string;
3244
+ type: "webhooks";
3245
+ attributes: {
3246
+ id: string;
3247
+ createdAt: string;
3248
+ updatedAt: string;
3249
+ name: string;
3250
+ url: string;
3251
+ events: string[];
3252
+ isActive?: boolean | undefined;
3253
+ secret?: string | undefined;
3254
+ headers?: Record<string, string> | undefined;
3255
+ lastTriggeredAt?: string | undefined;
3256
+ failureCount?: number | undefined;
3257
+ maxRetries?: number | undefined;
3258
+ retryDelay?: number | undefined;
3259
+ };
3260
+ }>;
3261
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3262
+ links: z.ZodOptional<z.ZodObject<{
3263
+ self: z.ZodString;
3264
+ first: z.ZodOptional<z.ZodString>;
3265
+ last: z.ZodOptional<z.ZodString>;
3266
+ prev: z.ZodOptional<z.ZodString>;
3267
+ next: z.ZodOptional<z.ZodString>;
3268
+ }, "strip", z.ZodTypeAny, {
3269
+ self: string;
3270
+ first?: string | undefined;
3271
+ last?: string | undefined;
3272
+ prev?: string | undefined;
3273
+ next?: string | undefined;
3274
+ }, {
3275
+ self: string;
3276
+ first?: string | undefined;
3277
+ last?: string | undefined;
3278
+ prev?: string | undefined;
3279
+ next?: string | undefined;
3280
+ }>>;
3281
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
3282
+ status: z.ZodString;
3283
+ title: z.ZodString;
3284
+ detail: z.ZodOptional<z.ZodString>;
3285
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3286
+ }, "strip", z.ZodTypeAny, {
3287
+ status: string;
3288
+ title: string;
3289
+ detail?: string | undefined;
3290
+ meta?: Record<string, unknown> | undefined;
3291
+ }, {
3292
+ status: string;
3293
+ title: string;
3294
+ detail?: string | undefined;
3295
+ meta?: Record<string, unknown> | undefined;
3296
+ }>, "many">>;
3297
+ }, "strip", z.ZodTypeAny, {
3298
+ data: {
3299
+ id: string;
3300
+ type: "webhooks";
3301
+ attributes: {
3302
+ id: string;
3303
+ createdAt: string;
3304
+ updatedAt: string;
3305
+ isActive: boolean;
3306
+ name: string;
3307
+ url: string;
3308
+ events: string[];
3309
+ failureCount: number;
3310
+ maxRetries: number;
3311
+ retryDelay: number;
3312
+ secret?: string | undefined;
3313
+ headers?: Record<string, string> | undefined;
3314
+ lastTriggeredAt?: string | undefined;
3315
+ };
3316
+ };
3317
+ meta?: Record<string, unknown> | undefined;
3318
+ links?: {
3319
+ self: string;
3320
+ first?: string | undefined;
3321
+ last?: string | undefined;
3322
+ prev?: string | undefined;
3323
+ next?: string | undefined;
3324
+ } | undefined;
3325
+ errors?: {
3326
+ status: string;
3327
+ title: string;
3328
+ detail?: string | undefined;
3329
+ meta?: Record<string, unknown> | undefined;
3330
+ }[] | undefined;
3331
+ }, {
3332
+ data: {
3333
+ id: string;
3334
+ type: "webhooks";
3335
+ attributes: {
3336
+ id: string;
3337
+ createdAt: string;
3338
+ updatedAt: string;
3339
+ name: string;
3340
+ url: string;
3341
+ events: string[];
3342
+ isActive?: boolean | undefined;
3343
+ secret?: string | undefined;
3344
+ headers?: Record<string, string> | undefined;
3345
+ lastTriggeredAt?: string | undefined;
3346
+ failureCount?: number | undefined;
3347
+ maxRetries?: number | undefined;
3348
+ retryDelay?: number | undefined;
3349
+ };
3350
+ };
3351
+ meta?: Record<string, unknown> | undefined;
3352
+ links?: {
3353
+ self: string;
3354
+ first?: string | undefined;
3355
+ last?: string | undefined;
3356
+ prev?: string | undefined;
3357
+ next?: string | undefined;
3358
+ } | undefined;
3359
+ errors?: {
3360
+ status: string;
3361
+ title: string;
3362
+ detail?: string | undefined;
3363
+ meta?: Record<string, unknown> | undefined;
3364
+ }[] | undefined;
3365
+ }>;
3366
+ 403: z.ZodObject<{
3367
+ errors: z.ZodArray<z.ZodObject<{
3368
+ status: z.ZodString;
3369
+ title: z.ZodString;
3370
+ detail: z.ZodOptional<z.ZodString>;
3371
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3372
+ }, "strip", z.ZodTypeAny, {
3373
+ status: string;
3374
+ title: string;
3375
+ detail?: string | undefined;
3376
+ meta?: Record<string, unknown> | undefined;
3377
+ }, {
3378
+ status: string;
3379
+ title: string;
3380
+ detail?: string | undefined;
3381
+ meta?: Record<string, unknown> | undefined;
3382
+ }>, "many">;
3383
+ }, "strip", z.ZodTypeAny, {
3384
+ errors: {
3385
+ status: string;
3386
+ title: string;
3387
+ detail?: string | undefined;
3388
+ meta?: Record<string, unknown> | undefined;
3389
+ }[];
3390
+ }, {
3391
+ errors: {
3392
+ status: string;
3393
+ title: string;
3394
+ detail?: string | undefined;
3395
+ meta?: Record<string, unknown> | undefined;
3396
+ }[];
3397
+ }>;
3398
+ 404: z.ZodObject<{
3399
+ errors: z.ZodArray<z.ZodObject<{
3400
+ status: z.ZodString;
3401
+ title: z.ZodString;
3402
+ detail: z.ZodOptional<z.ZodString>;
3403
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3404
+ }, "strip", z.ZodTypeAny, {
3405
+ status: string;
3406
+ title: string;
3407
+ detail?: string | undefined;
3408
+ meta?: Record<string, unknown> | undefined;
3409
+ }, {
3410
+ status: string;
3411
+ title: string;
3412
+ detail?: string | undefined;
3413
+ meta?: Record<string, unknown> | undefined;
3414
+ }>, "many">;
3415
+ }, "strip", z.ZodTypeAny, {
3416
+ errors: {
3417
+ status: string;
3418
+ title: string;
3419
+ detail?: string | undefined;
3420
+ meta?: Record<string, unknown> | undefined;
3421
+ }[];
3422
+ }, {
3423
+ errors: {
3424
+ status: string;
3425
+ title: string;
3426
+ detail?: string | undefined;
3427
+ meta?: Record<string, unknown> | undefined;
3428
+ }[];
3429
+ }>;
3430
+ };
3431
+ };
3432
+ updateWebhook: {
3433
+ pathParams: z.ZodObject<{
3434
+ webhookId: z.ZodString;
3435
+ }, "strip", z.ZodTypeAny, {
3436
+ webhookId: string;
3437
+ }, {
3438
+ webhookId: string;
3439
+ }>;
3440
+ summary: "Update a webhook";
3441
+ method: "PUT";
3442
+ body: z.ZodObject<{
3443
+ name: z.ZodOptional<z.ZodString>;
3444
+ url: z.ZodOptional<z.ZodString>;
3445
+ events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3446
+ secret: z.ZodOptional<z.ZodString>;
3447
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3448
+ retryDelay: z.ZodOptional<z.ZodNumber>;
3449
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3450
+ isActive: z.ZodOptional<z.ZodBoolean>;
3451
+ }, "strip", z.ZodTypeAny, {
3452
+ isActive?: boolean | undefined;
3453
+ name?: string | undefined;
3454
+ secret?: string | undefined;
3455
+ headers?: Record<string, string> | undefined;
3456
+ url?: string | undefined;
3457
+ events?: string[] | undefined;
3458
+ maxRetries?: number | undefined;
3459
+ retryDelay?: number | undefined;
3460
+ }, {
3461
+ isActive?: boolean | undefined;
3462
+ name?: string | undefined;
3463
+ secret?: string | undefined;
3464
+ headers?: Record<string, string> | undefined;
3465
+ url?: string | undefined;
3466
+ events?: string[] | undefined;
3467
+ maxRetries?: number | undefined;
3468
+ retryDelay?: number | undefined;
3469
+ }>;
3470
+ path: "/webhooks/:webhookId";
3471
+ responses: {
3472
+ 200: z.ZodObject<{
3473
+ data: z.ZodObject<{
3474
+ type: z.ZodLiteral<"webhooks">;
3475
+ id: z.ZodString;
3476
+ attributes: z.ZodObject<{
3477
+ id: z.ZodString;
3478
+ name: z.ZodString;
3479
+ url: z.ZodString;
3480
+ events: z.ZodArray<z.ZodString, "many">;
3481
+ isActive: z.ZodDefault<z.ZodBoolean>;
3482
+ secret: z.ZodOptional<z.ZodString>;
3483
+ lastTriggeredAt: z.ZodOptional<z.ZodString>;
3484
+ failureCount: z.ZodDefault<z.ZodNumber>;
3485
+ maxRetries: z.ZodDefault<z.ZodNumber>;
3486
+ retryDelay: z.ZodDefault<z.ZodNumber>;
3487
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3488
+ createdAt: z.ZodString;
3489
+ updatedAt: z.ZodString;
3490
+ }, "strip", z.ZodTypeAny, {
3491
+ id: string;
3492
+ createdAt: string;
3493
+ updatedAt: string;
3494
+ isActive: boolean;
3495
+ name: string;
3496
+ url: string;
3497
+ events: string[];
3498
+ failureCount: number;
3499
+ maxRetries: number;
3500
+ retryDelay: number;
3501
+ secret?: string | undefined;
3502
+ headers?: Record<string, string> | undefined;
3503
+ lastTriggeredAt?: string | undefined;
3504
+ }, {
3505
+ id: string;
3506
+ createdAt: string;
3507
+ updatedAt: string;
3508
+ name: string;
3509
+ url: string;
3510
+ events: string[];
3511
+ isActive?: boolean | undefined;
3512
+ secret?: string | undefined;
3513
+ headers?: Record<string, string> | undefined;
3514
+ lastTriggeredAt?: string | undefined;
3515
+ failureCount?: number | undefined;
3516
+ maxRetries?: number | undefined;
3517
+ retryDelay?: number | undefined;
3518
+ }>;
3519
+ }, "strip", z.ZodTypeAny, {
3520
+ id: string;
3521
+ type: "webhooks";
3522
+ attributes: {
3523
+ id: string;
3524
+ createdAt: string;
3525
+ updatedAt: string;
3526
+ isActive: boolean;
3527
+ name: string;
3528
+ url: string;
3529
+ events: string[];
3530
+ failureCount: number;
3531
+ maxRetries: number;
3532
+ retryDelay: number;
3533
+ secret?: string | undefined;
3534
+ headers?: Record<string, string> | undefined;
3535
+ lastTriggeredAt?: string | undefined;
3536
+ };
3537
+ }, {
3538
+ id: string;
3539
+ type: "webhooks";
3540
+ attributes: {
3541
+ id: string;
3542
+ createdAt: string;
3543
+ updatedAt: string;
3544
+ name: string;
3545
+ url: string;
3546
+ events: string[];
3547
+ isActive?: boolean | undefined;
3548
+ secret?: string | undefined;
3549
+ headers?: Record<string, string> | undefined;
3550
+ lastTriggeredAt?: string | undefined;
3551
+ failureCount?: number | undefined;
3552
+ maxRetries?: number | undefined;
3553
+ retryDelay?: number | undefined;
3554
+ };
3555
+ }>;
3556
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3557
+ links: z.ZodOptional<z.ZodObject<{
3558
+ self: z.ZodString;
3559
+ first: z.ZodOptional<z.ZodString>;
3560
+ last: z.ZodOptional<z.ZodString>;
3561
+ prev: z.ZodOptional<z.ZodString>;
3562
+ next: z.ZodOptional<z.ZodString>;
3563
+ }, "strip", z.ZodTypeAny, {
3564
+ self: string;
3565
+ first?: string | undefined;
3566
+ last?: string | undefined;
3567
+ prev?: string | undefined;
3568
+ next?: string | undefined;
3569
+ }, {
3570
+ self: string;
3571
+ first?: string | undefined;
3572
+ last?: string | undefined;
3573
+ prev?: string | undefined;
3574
+ next?: string | undefined;
3575
+ }>>;
3576
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
3577
+ status: z.ZodString;
3578
+ title: z.ZodString;
3579
+ detail: z.ZodOptional<z.ZodString>;
3580
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3581
+ }, "strip", z.ZodTypeAny, {
3582
+ status: string;
3583
+ title: string;
3584
+ detail?: string | undefined;
3585
+ meta?: Record<string, unknown> | undefined;
3586
+ }, {
3587
+ status: string;
3588
+ title: string;
3589
+ detail?: string | undefined;
3590
+ meta?: Record<string, unknown> | undefined;
3591
+ }>, "many">>;
3592
+ }, "strip", z.ZodTypeAny, {
3593
+ data: {
3594
+ id: string;
3595
+ type: "webhooks";
3596
+ attributes: {
3597
+ id: string;
3598
+ createdAt: string;
3599
+ updatedAt: string;
3600
+ isActive: boolean;
3601
+ name: string;
3602
+ url: string;
3603
+ events: string[];
3604
+ failureCount: number;
3605
+ maxRetries: number;
3606
+ retryDelay: number;
3607
+ secret?: string | undefined;
3608
+ headers?: Record<string, string> | undefined;
3609
+ lastTriggeredAt?: string | undefined;
3610
+ };
3611
+ };
3612
+ meta?: Record<string, unknown> | undefined;
3613
+ links?: {
3614
+ self: string;
3615
+ first?: string | undefined;
3616
+ last?: string | undefined;
3617
+ prev?: string | undefined;
3618
+ next?: string | undefined;
3619
+ } | undefined;
3620
+ errors?: {
3621
+ status: string;
3622
+ title: string;
3623
+ detail?: string | undefined;
3624
+ meta?: Record<string, unknown> | undefined;
3625
+ }[] | undefined;
3626
+ }, {
3627
+ data: {
3628
+ id: string;
3629
+ type: "webhooks";
3630
+ attributes: {
3631
+ id: string;
3632
+ createdAt: string;
3633
+ updatedAt: string;
3634
+ name: string;
3635
+ url: string;
3636
+ events: string[];
3637
+ isActive?: boolean | undefined;
3638
+ secret?: string | undefined;
3639
+ headers?: Record<string, string> | undefined;
3640
+ lastTriggeredAt?: string | undefined;
3641
+ failureCount?: number | undefined;
3642
+ maxRetries?: number | undefined;
3643
+ retryDelay?: number | undefined;
3644
+ };
3645
+ };
3646
+ meta?: Record<string, unknown> | undefined;
3647
+ links?: {
3648
+ self: string;
3649
+ first?: string | undefined;
3650
+ last?: string | undefined;
3651
+ prev?: string | undefined;
3652
+ next?: string | undefined;
3653
+ } | undefined;
3654
+ errors?: {
3655
+ status: string;
3656
+ title: string;
3657
+ detail?: string | undefined;
3658
+ meta?: Record<string, unknown> | undefined;
3659
+ }[] | undefined;
3660
+ }>;
3661
+ 400: z.ZodObject<{
3662
+ errors: z.ZodArray<z.ZodObject<{
3663
+ status: z.ZodString;
3664
+ title: z.ZodString;
3665
+ detail: z.ZodOptional<z.ZodString>;
3666
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3667
+ }, "strip", z.ZodTypeAny, {
3668
+ status: string;
3669
+ title: string;
3670
+ detail?: string | undefined;
3671
+ meta?: Record<string, unknown> | undefined;
3672
+ }, {
3673
+ status: string;
3674
+ title: string;
3675
+ detail?: string | undefined;
3676
+ meta?: Record<string, unknown> | undefined;
3677
+ }>, "many">;
3678
+ }, "strip", z.ZodTypeAny, {
3679
+ errors: {
3680
+ status: string;
3681
+ title: string;
3682
+ detail?: string | undefined;
3683
+ meta?: Record<string, unknown> | undefined;
3684
+ }[];
3685
+ }, {
3686
+ errors: {
3687
+ status: string;
3688
+ title: string;
3689
+ detail?: string | undefined;
3690
+ meta?: Record<string, unknown> | undefined;
3691
+ }[];
3692
+ }>;
3693
+ 403: z.ZodObject<{
3694
+ errors: z.ZodArray<z.ZodObject<{
3695
+ status: z.ZodString;
3696
+ title: z.ZodString;
3697
+ detail: z.ZodOptional<z.ZodString>;
3698
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3699
+ }, "strip", z.ZodTypeAny, {
3700
+ status: string;
3701
+ title: string;
3702
+ detail?: string | undefined;
3703
+ meta?: Record<string, unknown> | undefined;
3704
+ }, {
3705
+ status: string;
3706
+ title: string;
3707
+ detail?: string | undefined;
3708
+ meta?: Record<string, unknown> | undefined;
3709
+ }>, "many">;
3710
+ }, "strip", z.ZodTypeAny, {
3711
+ errors: {
3712
+ status: string;
3713
+ title: string;
3714
+ detail?: string | undefined;
3715
+ meta?: Record<string, unknown> | undefined;
3716
+ }[];
3717
+ }, {
3718
+ errors: {
3719
+ status: string;
3720
+ title: string;
3721
+ detail?: string | undefined;
3722
+ meta?: Record<string, unknown> | undefined;
3723
+ }[];
3724
+ }>;
3725
+ 404: z.ZodObject<{
3726
+ errors: z.ZodArray<z.ZodObject<{
3727
+ status: z.ZodString;
3728
+ title: z.ZodString;
3729
+ detail: z.ZodOptional<z.ZodString>;
3730
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3731
+ }, "strip", z.ZodTypeAny, {
3732
+ status: string;
3733
+ title: string;
3734
+ detail?: string | undefined;
3735
+ meta?: Record<string, unknown> | undefined;
3736
+ }, {
3737
+ status: string;
3738
+ title: string;
3739
+ detail?: string | undefined;
3740
+ meta?: Record<string, unknown> | undefined;
3741
+ }>, "many">;
3742
+ }, "strip", z.ZodTypeAny, {
3743
+ errors: {
3744
+ status: string;
3745
+ title: string;
3746
+ detail?: string | undefined;
3747
+ meta?: Record<string, unknown> | undefined;
3748
+ }[];
3749
+ }, {
3750
+ errors: {
3751
+ status: string;
3752
+ title: string;
3753
+ detail?: string | undefined;
3754
+ meta?: Record<string, unknown> | undefined;
3755
+ }[];
3756
+ }>;
3757
+ };
3758
+ };
3759
+ deleteWebhook: {
3760
+ pathParams: z.ZodObject<{
3761
+ webhookId: z.ZodString;
3762
+ }, "strip", z.ZodTypeAny, {
3763
+ webhookId: string;
3764
+ }, {
3765
+ webhookId: string;
3766
+ }>;
3767
+ summary: "Delete a webhook";
3768
+ method: "DELETE";
3769
+ path: "/webhooks/:webhookId";
3770
+ responses: {
3771
+ 204: z.ZodVoid;
3772
+ 403: z.ZodObject<{
3773
+ errors: z.ZodArray<z.ZodObject<{
3774
+ status: z.ZodString;
3775
+ title: z.ZodString;
3776
+ detail: z.ZodOptional<z.ZodString>;
3777
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3778
+ }, "strip", z.ZodTypeAny, {
3779
+ status: string;
3780
+ title: string;
3781
+ detail?: string | undefined;
3782
+ meta?: Record<string, unknown> | undefined;
3783
+ }, {
3784
+ status: string;
3785
+ title: string;
3786
+ detail?: string | undefined;
3787
+ meta?: Record<string, unknown> | undefined;
3788
+ }>, "many">;
3789
+ }, "strip", z.ZodTypeAny, {
3790
+ errors: {
3791
+ status: string;
3792
+ title: string;
3793
+ detail?: string | undefined;
3794
+ meta?: Record<string, unknown> | undefined;
3795
+ }[];
3796
+ }, {
3797
+ errors: {
3798
+ status: string;
3799
+ title: string;
3800
+ detail?: string | undefined;
3801
+ meta?: Record<string, unknown> | undefined;
3802
+ }[];
3803
+ }>;
3804
+ 404: z.ZodObject<{
3805
+ errors: z.ZodArray<z.ZodObject<{
3806
+ status: z.ZodString;
3807
+ title: z.ZodString;
3808
+ detail: z.ZodOptional<z.ZodString>;
3809
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3810
+ }, "strip", z.ZodTypeAny, {
3811
+ status: string;
3812
+ title: string;
3813
+ detail?: string | undefined;
3814
+ meta?: Record<string, unknown> | undefined;
3815
+ }, {
3816
+ status: string;
3817
+ title: string;
3818
+ detail?: string | undefined;
3819
+ meta?: Record<string, unknown> | undefined;
3820
+ }>, "many">;
3821
+ }, "strip", z.ZodTypeAny, {
3822
+ errors: {
3823
+ status: string;
3824
+ title: string;
3825
+ detail?: string | undefined;
3826
+ meta?: Record<string, unknown> | undefined;
3827
+ }[];
3828
+ }, {
3829
+ errors: {
3830
+ status: string;
3831
+ title: string;
3832
+ detail?: string | undefined;
3833
+ meta?: Record<string, unknown> | undefined;
3834
+ }[];
3835
+ }>;
3836
+ };
3837
+ };
3838
+ testWebhook: {
3839
+ pathParams: z.ZodObject<{
3840
+ webhookId: z.ZodString;
3841
+ }, "strip", z.ZodTypeAny, {
3842
+ webhookId: string;
3843
+ }, {
3844
+ webhookId: string;
3845
+ }>;
3846
+ summary: "Test a webhook";
3847
+ method: "POST";
3848
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3849
+ path: "/webhooks/:webhookId/test";
3850
+ responses: {
3851
+ 200: z.ZodObject<{
3852
+ success: z.ZodBoolean;
3853
+ message: z.ZodString;
3854
+ responseStatus: z.ZodOptional<z.ZodNumber>;
3855
+ responseBody: z.ZodOptional<z.ZodString>;
3856
+ responseTime: z.ZodOptional<z.ZodNumber>;
3857
+ timestamp: z.ZodString;
3858
+ }, "strip", z.ZodTypeAny, {
3859
+ message: string;
3860
+ success: boolean;
3861
+ timestamp: string;
3862
+ responseStatus?: number | undefined;
3863
+ responseBody?: string | undefined;
3864
+ responseTime?: number | undefined;
3865
+ }, {
3866
+ message: string;
3867
+ success: boolean;
3868
+ timestamp: string;
3869
+ responseStatus?: number | undefined;
3870
+ responseBody?: string | undefined;
3871
+ responseTime?: number | undefined;
3872
+ }>;
3873
+ 400: z.ZodObject<{
3874
+ errors: z.ZodArray<z.ZodObject<{
3875
+ status: z.ZodString;
3876
+ title: z.ZodString;
3877
+ detail: z.ZodOptional<z.ZodString>;
3878
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3879
+ }, "strip", z.ZodTypeAny, {
3880
+ status: string;
3881
+ title: string;
3882
+ detail?: string | undefined;
3883
+ meta?: Record<string, unknown> | undefined;
3884
+ }, {
3885
+ status: string;
3886
+ title: string;
3887
+ detail?: string | undefined;
3888
+ meta?: Record<string, unknown> | undefined;
3889
+ }>, "many">;
3890
+ }, "strip", z.ZodTypeAny, {
3891
+ errors: {
3892
+ status: string;
3893
+ title: string;
3894
+ detail?: string | undefined;
3895
+ meta?: Record<string, unknown> | undefined;
3896
+ }[];
3897
+ }, {
3898
+ errors: {
3899
+ status: string;
3900
+ title: string;
3901
+ detail?: string | undefined;
3902
+ meta?: Record<string, unknown> | undefined;
3903
+ }[];
3904
+ }>;
3905
+ 403: z.ZodObject<{
3906
+ errors: z.ZodArray<z.ZodObject<{
3907
+ status: z.ZodString;
3908
+ title: z.ZodString;
3909
+ detail: z.ZodOptional<z.ZodString>;
3910
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3911
+ }, "strip", z.ZodTypeAny, {
3912
+ status: string;
3913
+ title: string;
3914
+ detail?: string | undefined;
3915
+ meta?: Record<string, unknown> | undefined;
3916
+ }, {
3917
+ status: string;
3918
+ title: string;
3919
+ detail?: string | undefined;
3920
+ meta?: Record<string, unknown> | undefined;
3921
+ }>, "many">;
3922
+ }, "strip", z.ZodTypeAny, {
3923
+ errors: {
3924
+ status: string;
3925
+ title: string;
3926
+ detail?: string | undefined;
3927
+ meta?: Record<string, unknown> | undefined;
3928
+ }[];
3929
+ }, {
3930
+ errors: {
3931
+ status: string;
3932
+ title: string;
3933
+ detail?: string | undefined;
3934
+ meta?: Record<string, unknown> | undefined;
3935
+ }[];
3936
+ }>;
3937
+ 404: z.ZodObject<{
3938
+ errors: z.ZodArray<z.ZodObject<{
3939
+ status: z.ZodString;
3940
+ title: z.ZodString;
3941
+ detail: z.ZodOptional<z.ZodString>;
3942
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3943
+ }, "strip", z.ZodTypeAny, {
3944
+ status: string;
3945
+ title: string;
3946
+ detail?: string | undefined;
3947
+ meta?: Record<string, unknown> | undefined;
3948
+ }, {
3949
+ status: string;
3950
+ title: string;
3951
+ detail?: string | undefined;
3952
+ meta?: Record<string, unknown> | undefined;
3953
+ }>, "many">;
3954
+ }, "strip", z.ZodTypeAny, {
3955
+ errors: {
3956
+ status: string;
3957
+ title: string;
3958
+ detail?: string | undefined;
3959
+ meta?: Record<string, unknown> | undefined;
3960
+ }[];
3961
+ }, {
3962
+ errors: {
3963
+ status: string;
3964
+ title: string;
3965
+ detail?: string | undefined;
3966
+ meta?: Record<string, unknown> | undefined;
3967
+ }[];
3968
+ }>;
3969
+ };
3970
+ };
3971
+ getAvailableIntegrations: {
3972
+ summary: "Get available integration providers";
3973
+ method: "GET";
3974
+ path: "/integrations/available";
3975
+ responses: {
3976
+ 200: z.ZodObject<{
3977
+ data: z.ZodArray<z.ZodObject<{
3978
+ provider: z.ZodString;
3979
+ name: z.ZodString;
3980
+ description: z.ZodString;
3981
+ type: z.ZodEnum<["ACCOUNTING", "PROJECT_MANAGEMENT", "CRM", "HR", "DOCUMENT_STORAGE", "REPORTING", "API", "WEBHOOK"]>;
3982
+ logo: z.ZodOptional<z.ZodString>;
3983
+ configurationSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
3984
+ features: z.ZodArray<z.ZodString, "many">;
3985
+ }, "strip", z.ZodTypeAny, {
3986
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
3987
+ name: string;
3988
+ description: string;
3989
+ features: string[];
3990
+ provider: string;
3991
+ configurationSchema: Record<string, any>;
3992
+ logo?: string | undefined;
3993
+ }, {
3994
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
3995
+ name: string;
3996
+ description: string;
3997
+ features: string[];
3998
+ provider: string;
3999
+ configurationSchema: Record<string, any>;
4000
+ logo?: string | undefined;
4001
+ }>, "many">;
4002
+ meta: z.ZodObject<{
4003
+ total: z.ZodNumber;
4004
+ timestamp: z.ZodString;
4005
+ }, "strip", z.ZodTypeAny, {
4006
+ total: number;
4007
+ timestamp: string;
4008
+ }, {
4009
+ total: number;
4010
+ timestamp: string;
4011
+ }>;
4012
+ }, "strip", z.ZodTypeAny, {
4013
+ meta: {
4014
+ total: number;
4015
+ timestamp: string;
4016
+ };
4017
+ data: {
4018
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
4019
+ name: string;
4020
+ description: string;
4021
+ features: string[];
4022
+ provider: string;
4023
+ configurationSchema: Record<string, any>;
4024
+ logo?: string | undefined;
4025
+ }[];
4026
+ }, {
4027
+ meta: {
4028
+ total: number;
4029
+ timestamp: string;
4030
+ };
4031
+ data: {
4032
+ type: "ACCOUNTING" | "PROJECT_MANAGEMENT" | "CRM" | "HR" | "DOCUMENT_STORAGE" | "REPORTING" | "API" | "WEBHOOK";
4033
+ name: string;
4034
+ description: string;
4035
+ features: string[];
4036
+ provider: string;
4037
+ configurationSchema: Record<string, any>;
4038
+ logo?: string | undefined;
4039
+ }[];
4040
+ }>;
4041
+ };
4042
+ };
4043
+ getIntegrationStatistics: {
4044
+ summary: "Get integration statistics for the company";
4045
+ method: "GET";
4046
+ path: "/integrations/statistics";
4047
+ responses: {
4048
+ 200: z.ZodObject<{
4049
+ data: z.ZodObject<{
4050
+ totalIntegrations: z.ZodNumber;
4051
+ activeIntegrations: z.ZodNumber;
4052
+ inactiveIntegrations: z.ZodNumber;
4053
+ errorIntegrations: z.ZodNumber;
4054
+ totalSyncs: z.ZodNumber;
4055
+ successfulSyncs: z.ZodNumber;
4056
+ failedSyncs: z.ZodNumber;
4057
+ lastSyncAt: z.ZodOptional<z.ZodString>;
4058
+ avgSyncDuration: z.ZodOptional<z.ZodNumber>;
4059
+ typeBreakdown: z.ZodRecord<z.ZodString, z.ZodNumber>;
4060
+ providerBreakdown: z.ZodRecord<z.ZodString, z.ZodNumber>;
4061
+ }, "strip", z.ZodTypeAny, {
4062
+ totalIntegrations: number;
4063
+ activeIntegrations: number;
4064
+ inactiveIntegrations: number;
4065
+ errorIntegrations: number;
4066
+ totalSyncs: number;
4067
+ successfulSyncs: number;
4068
+ failedSyncs: number;
4069
+ typeBreakdown: Record<string, number>;
4070
+ providerBreakdown: Record<string, number>;
4071
+ lastSyncAt?: string | undefined;
4072
+ avgSyncDuration?: number | undefined;
4073
+ }, {
4074
+ totalIntegrations: number;
4075
+ activeIntegrations: number;
4076
+ inactiveIntegrations: number;
4077
+ errorIntegrations: number;
4078
+ totalSyncs: number;
4079
+ successfulSyncs: number;
4080
+ failedSyncs: number;
4081
+ typeBreakdown: Record<string, number>;
4082
+ providerBreakdown: Record<string, number>;
4083
+ lastSyncAt?: string | undefined;
4084
+ avgSyncDuration?: number | undefined;
4085
+ }>;
4086
+ meta: z.ZodObject<{
4087
+ timestamp: z.ZodString;
4088
+ }, "strip", z.ZodTypeAny, {
4089
+ timestamp: string;
4090
+ }, {
4091
+ timestamp: string;
4092
+ }>;
4093
+ }, "strip", z.ZodTypeAny, {
4094
+ meta: {
4095
+ timestamp: string;
4096
+ };
4097
+ data: {
4098
+ totalIntegrations: number;
4099
+ activeIntegrations: number;
4100
+ inactiveIntegrations: number;
4101
+ errorIntegrations: number;
4102
+ totalSyncs: number;
4103
+ successfulSyncs: number;
4104
+ failedSyncs: number;
4105
+ typeBreakdown: Record<string, number>;
4106
+ providerBreakdown: Record<string, number>;
4107
+ lastSyncAt?: string | undefined;
4108
+ avgSyncDuration?: number | undefined;
4109
+ };
4110
+ }, {
4111
+ meta: {
4112
+ timestamp: string;
4113
+ };
4114
+ data: {
4115
+ totalIntegrations: number;
4116
+ activeIntegrations: number;
4117
+ inactiveIntegrations: number;
4118
+ errorIntegrations: number;
4119
+ totalSyncs: number;
4120
+ successfulSyncs: number;
4121
+ failedSyncs: number;
4122
+ typeBreakdown: Record<string, number>;
4123
+ providerBreakdown: Record<string, number>;
4124
+ lastSyncAt?: string | undefined;
4125
+ avgSyncDuration?: number | undefined;
4126
+ };
4127
+ }>;
4128
+ 403: z.ZodObject<{
4129
+ errors: z.ZodArray<z.ZodObject<{
4130
+ status: z.ZodString;
4131
+ title: z.ZodString;
4132
+ detail: z.ZodOptional<z.ZodString>;
4133
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4134
+ }, "strip", z.ZodTypeAny, {
4135
+ status: string;
4136
+ title: string;
4137
+ detail?: string | undefined;
4138
+ meta?: Record<string, unknown> | undefined;
4139
+ }, {
4140
+ status: string;
4141
+ title: string;
4142
+ detail?: string | undefined;
4143
+ meta?: Record<string, unknown> | undefined;
4144
+ }>, "many">;
4145
+ }, "strip", z.ZodTypeAny, {
4146
+ errors: {
4147
+ status: string;
4148
+ title: string;
4149
+ detail?: string | undefined;
4150
+ meta?: Record<string, unknown> | undefined;
4151
+ }[];
4152
+ }, {
4153
+ errors: {
4154
+ status: string;
4155
+ title: string;
4156
+ detail?: string | undefined;
4157
+ meta?: Record<string, unknown> | undefined;
4158
+ }[];
4159
+ }>;
4160
+ };
4161
+ };
4162
+ };
4163
+ //# sourceMappingURL=integrations.d.ts.map