@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,2167 @@
1
+ import { z } from 'zod';
2
+ export declare const billingContract: {
3
+ listPlans: {
4
+ summary: "Plan catalogue and prices (NGN)";
5
+ method: "GET";
6
+ path: "/billing/plans";
7
+ responses: {
8
+ 400: z.ZodObject<{
9
+ errors: z.ZodArray<z.ZodObject<{
10
+ status: z.ZodString;
11
+ title: z.ZodString;
12
+ detail: z.ZodOptional<z.ZodString>;
13
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ status: string;
16
+ title: string;
17
+ detail?: string | undefined;
18
+ meta?: Record<string, unknown> | undefined;
19
+ }, {
20
+ status: string;
21
+ title: string;
22
+ detail?: string | undefined;
23
+ meta?: Record<string, unknown> | undefined;
24
+ }>, "many">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ errors: {
27
+ status: string;
28
+ title: string;
29
+ detail?: string | undefined;
30
+ meta?: Record<string, unknown> | undefined;
31
+ }[];
32
+ }, {
33
+ errors: {
34
+ status: string;
35
+ title: string;
36
+ detail?: string | undefined;
37
+ meta?: Record<string, unknown> | undefined;
38
+ }[];
39
+ }>;
40
+ 401: z.ZodObject<{
41
+ errors: z.ZodArray<z.ZodObject<{
42
+ status: z.ZodString;
43
+ title: z.ZodString;
44
+ detail: z.ZodOptional<z.ZodString>;
45
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ status: string;
48
+ title: string;
49
+ detail?: string | undefined;
50
+ meta?: Record<string, unknown> | undefined;
51
+ }, {
52
+ status: string;
53
+ title: string;
54
+ detail?: string | undefined;
55
+ meta?: Record<string, unknown> | undefined;
56
+ }>, "many">;
57
+ }, "strip", z.ZodTypeAny, {
58
+ errors: {
59
+ status: string;
60
+ title: string;
61
+ detail?: string | undefined;
62
+ meta?: Record<string, unknown> | undefined;
63
+ }[];
64
+ }, {
65
+ errors: {
66
+ status: string;
67
+ title: string;
68
+ detail?: string | undefined;
69
+ meta?: Record<string, unknown> | undefined;
70
+ }[];
71
+ }>;
72
+ 403: z.ZodObject<{
73
+ errors: z.ZodArray<z.ZodObject<{
74
+ status: z.ZodString;
75
+ title: z.ZodString;
76
+ detail: z.ZodOptional<z.ZodString>;
77
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ status: string;
80
+ title: string;
81
+ detail?: string | undefined;
82
+ meta?: Record<string, unknown> | undefined;
83
+ }, {
84
+ status: string;
85
+ title: string;
86
+ detail?: string | undefined;
87
+ meta?: Record<string, unknown> | undefined;
88
+ }>, "many">;
89
+ }, "strip", z.ZodTypeAny, {
90
+ errors: {
91
+ status: string;
92
+ title: string;
93
+ detail?: string | undefined;
94
+ meta?: Record<string, unknown> | undefined;
95
+ }[];
96
+ }, {
97
+ errors: {
98
+ status: string;
99
+ title: string;
100
+ detail?: string | undefined;
101
+ meta?: Record<string, unknown> | undefined;
102
+ }[];
103
+ }>;
104
+ 404: z.ZodObject<{
105
+ errors: z.ZodArray<z.ZodObject<{
106
+ status: z.ZodString;
107
+ title: z.ZodString;
108
+ detail: z.ZodOptional<z.ZodString>;
109
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ status: string;
112
+ title: string;
113
+ detail?: string | undefined;
114
+ meta?: Record<string, unknown> | undefined;
115
+ }, {
116
+ status: string;
117
+ title: string;
118
+ detail?: string | undefined;
119
+ meta?: Record<string, unknown> | undefined;
120
+ }>, "many">;
121
+ }, "strip", z.ZodTypeAny, {
122
+ errors: {
123
+ status: string;
124
+ title: string;
125
+ detail?: string | undefined;
126
+ meta?: Record<string, unknown> | undefined;
127
+ }[];
128
+ }, {
129
+ errors: {
130
+ status: string;
131
+ title: string;
132
+ detail?: string | undefined;
133
+ meta?: Record<string, unknown> | undefined;
134
+ }[];
135
+ }>;
136
+ 409: z.ZodObject<{
137
+ errors: z.ZodArray<z.ZodObject<{
138
+ status: z.ZodString;
139
+ title: z.ZodString;
140
+ detail: z.ZodOptional<z.ZodString>;
141
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ status: string;
144
+ title: string;
145
+ detail?: string | undefined;
146
+ meta?: Record<string, unknown> | undefined;
147
+ }, {
148
+ status: string;
149
+ title: string;
150
+ detail?: string | undefined;
151
+ meta?: Record<string, unknown> | undefined;
152
+ }>, "many">;
153
+ }, "strip", z.ZodTypeAny, {
154
+ errors: {
155
+ status: string;
156
+ title: string;
157
+ detail?: string | undefined;
158
+ meta?: Record<string, unknown> | undefined;
159
+ }[];
160
+ }, {
161
+ errors: {
162
+ status: string;
163
+ title: string;
164
+ detail?: string | undefined;
165
+ meta?: Record<string, unknown> | undefined;
166
+ }[];
167
+ }>;
168
+ 200: z.ZodObject<{
169
+ data: z.ZodObject<{
170
+ type: z.ZodLiteral<"billing-plans">;
171
+ id: z.ZodString;
172
+ attributes: z.ZodObject<{
173
+ currency: z.ZodString;
174
+ extraSeat: z.ZodObject<{
175
+ monthly: z.ZodNumber;
176
+ annual: z.ZodNumber;
177
+ }, "strip", z.ZodTypeAny, {
178
+ monthly: number;
179
+ annual: number;
180
+ }, {
181
+ monthly: number;
182
+ annual: number;
183
+ }>;
184
+ plans: z.ZodArray<z.ZodObject<{
185
+ tier: z.ZodEnum<["FREE", "BASIC", "PREMIUM", "ENTERPRISE"]>;
186
+ name: z.ZodString;
187
+ monthlyPrice: z.ZodNullable<z.ZodNumber>;
188
+ annualPrice: z.ZodNullable<z.ZodNumber>;
189
+ maxProjects: z.ZodNullable<z.ZodNumber>;
190
+ includedSeats: z.ZodNullable<z.ZodNumber>;
191
+ selfServe: z.ZodBoolean;
192
+ features: z.ZodArray<z.ZodString, "many">;
193
+ }, "strip", z.ZodTypeAny, {
194
+ name: string;
195
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
196
+ monthlyPrice: number | null;
197
+ annualPrice: number | null;
198
+ maxProjects: number | null;
199
+ includedSeats: number | null;
200
+ selfServe: boolean;
201
+ features: string[];
202
+ }, {
203
+ name: string;
204
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
205
+ monthlyPrice: number | null;
206
+ annualPrice: number | null;
207
+ maxProjects: number | null;
208
+ includedSeats: number | null;
209
+ selfServe: boolean;
210
+ features: string[];
211
+ }>, "many">;
212
+ }, "strip", z.ZodTypeAny, {
213
+ currency: string;
214
+ extraSeat: {
215
+ monthly: number;
216
+ annual: number;
217
+ };
218
+ plans: {
219
+ name: string;
220
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
221
+ monthlyPrice: number | null;
222
+ annualPrice: number | null;
223
+ maxProjects: number | null;
224
+ includedSeats: number | null;
225
+ selfServe: boolean;
226
+ features: string[];
227
+ }[];
228
+ }, {
229
+ currency: string;
230
+ extraSeat: {
231
+ monthly: number;
232
+ annual: number;
233
+ };
234
+ plans: {
235
+ name: string;
236
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
237
+ monthlyPrice: number | null;
238
+ annualPrice: number | null;
239
+ maxProjects: number | null;
240
+ includedSeats: number | null;
241
+ selfServe: boolean;
242
+ features: string[];
243
+ }[];
244
+ }>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ id: string;
247
+ type: "billing-plans";
248
+ attributes: {
249
+ currency: string;
250
+ extraSeat: {
251
+ monthly: number;
252
+ annual: number;
253
+ };
254
+ plans: {
255
+ name: string;
256
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
257
+ monthlyPrice: number | null;
258
+ annualPrice: number | null;
259
+ maxProjects: number | null;
260
+ includedSeats: number | null;
261
+ selfServe: boolean;
262
+ features: string[];
263
+ }[];
264
+ };
265
+ }, {
266
+ id: string;
267
+ type: "billing-plans";
268
+ attributes: {
269
+ currency: string;
270
+ extraSeat: {
271
+ monthly: number;
272
+ annual: number;
273
+ };
274
+ plans: {
275
+ name: string;
276
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
277
+ monthlyPrice: number | null;
278
+ annualPrice: number | null;
279
+ maxProjects: number | null;
280
+ includedSeats: number | null;
281
+ selfServe: boolean;
282
+ features: string[];
283
+ }[];
284
+ };
285
+ }>;
286
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
287
+ links: z.ZodOptional<z.ZodObject<{
288
+ self: z.ZodString;
289
+ first: z.ZodOptional<z.ZodString>;
290
+ last: z.ZodOptional<z.ZodString>;
291
+ prev: z.ZodOptional<z.ZodString>;
292
+ next: z.ZodOptional<z.ZodString>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ self: string;
295
+ first?: string | undefined;
296
+ last?: string | undefined;
297
+ prev?: string | undefined;
298
+ next?: string | undefined;
299
+ }, {
300
+ self: string;
301
+ first?: string | undefined;
302
+ last?: string | undefined;
303
+ prev?: string | undefined;
304
+ next?: string | undefined;
305
+ }>>;
306
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
307
+ status: z.ZodString;
308
+ title: z.ZodString;
309
+ detail: z.ZodOptional<z.ZodString>;
310
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ status: string;
313
+ title: string;
314
+ detail?: string | undefined;
315
+ meta?: Record<string, unknown> | undefined;
316
+ }, {
317
+ status: string;
318
+ title: string;
319
+ detail?: string | undefined;
320
+ meta?: Record<string, unknown> | undefined;
321
+ }>, "many">>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ data: {
324
+ id: string;
325
+ type: "billing-plans";
326
+ attributes: {
327
+ currency: string;
328
+ extraSeat: {
329
+ monthly: number;
330
+ annual: number;
331
+ };
332
+ plans: {
333
+ name: string;
334
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
335
+ monthlyPrice: number | null;
336
+ annualPrice: number | null;
337
+ maxProjects: number | null;
338
+ includedSeats: number | null;
339
+ selfServe: boolean;
340
+ features: string[];
341
+ }[];
342
+ };
343
+ };
344
+ meta?: Record<string, unknown> | undefined;
345
+ links?: {
346
+ self: string;
347
+ first?: string | undefined;
348
+ last?: string | undefined;
349
+ prev?: string | undefined;
350
+ next?: string | undefined;
351
+ } | undefined;
352
+ errors?: {
353
+ status: string;
354
+ title: string;
355
+ detail?: string | undefined;
356
+ meta?: Record<string, unknown> | undefined;
357
+ }[] | undefined;
358
+ }, {
359
+ data: {
360
+ id: string;
361
+ type: "billing-plans";
362
+ attributes: {
363
+ currency: string;
364
+ extraSeat: {
365
+ monthly: number;
366
+ annual: number;
367
+ };
368
+ plans: {
369
+ name: string;
370
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
371
+ monthlyPrice: number | null;
372
+ annualPrice: number | null;
373
+ maxProjects: number | null;
374
+ includedSeats: number | null;
375
+ selfServe: boolean;
376
+ features: string[];
377
+ }[];
378
+ };
379
+ };
380
+ meta?: Record<string, unknown> | undefined;
381
+ links?: {
382
+ self: string;
383
+ first?: string | undefined;
384
+ last?: string | undefined;
385
+ prev?: string | undefined;
386
+ next?: string | undefined;
387
+ } | undefined;
388
+ errors?: {
389
+ status: string;
390
+ title: string;
391
+ detail?: string | undefined;
392
+ meta?: Record<string, unknown> | undefined;
393
+ }[] | undefined;
394
+ }>;
395
+ };
396
+ };
397
+ getOverview: {
398
+ summary: "Current plan, limits and usage for the company";
399
+ method: "GET";
400
+ path: "/billing/overview";
401
+ responses: {
402
+ 400: z.ZodObject<{
403
+ errors: z.ZodArray<z.ZodObject<{
404
+ status: z.ZodString;
405
+ title: z.ZodString;
406
+ detail: z.ZodOptional<z.ZodString>;
407
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ status: string;
410
+ title: string;
411
+ detail?: string | undefined;
412
+ meta?: Record<string, unknown> | undefined;
413
+ }, {
414
+ status: string;
415
+ title: string;
416
+ detail?: string | undefined;
417
+ meta?: Record<string, unknown> | undefined;
418
+ }>, "many">;
419
+ }, "strip", z.ZodTypeAny, {
420
+ errors: {
421
+ status: string;
422
+ title: string;
423
+ detail?: string | undefined;
424
+ meta?: Record<string, unknown> | undefined;
425
+ }[];
426
+ }, {
427
+ errors: {
428
+ status: string;
429
+ title: string;
430
+ detail?: string | undefined;
431
+ meta?: Record<string, unknown> | undefined;
432
+ }[];
433
+ }>;
434
+ 401: z.ZodObject<{
435
+ errors: z.ZodArray<z.ZodObject<{
436
+ status: z.ZodString;
437
+ title: z.ZodString;
438
+ detail: z.ZodOptional<z.ZodString>;
439
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ status: string;
442
+ title: string;
443
+ detail?: string | undefined;
444
+ meta?: Record<string, unknown> | undefined;
445
+ }, {
446
+ status: string;
447
+ title: string;
448
+ detail?: string | undefined;
449
+ meta?: Record<string, unknown> | undefined;
450
+ }>, "many">;
451
+ }, "strip", z.ZodTypeAny, {
452
+ errors: {
453
+ status: string;
454
+ title: string;
455
+ detail?: string | undefined;
456
+ meta?: Record<string, unknown> | undefined;
457
+ }[];
458
+ }, {
459
+ errors: {
460
+ status: string;
461
+ title: string;
462
+ detail?: string | undefined;
463
+ meta?: Record<string, unknown> | undefined;
464
+ }[];
465
+ }>;
466
+ 403: z.ZodObject<{
467
+ errors: z.ZodArray<z.ZodObject<{
468
+ status: z.ZodString;
469
+ title: z.ZodString;
470
+ detail: z.ZodOptional<z.ZodString>;
471
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
472
+ }, "strip", z.ZodTypeAny, {
473
+ status: string;
474
+ title: string;
475
+ detail?: string | undefined;
476
+ meta?: Record<string, unknown> | undefined;
477
+ }, {
478
+ status: string;
479
+ title: string;
480
+ detail?: string | undefined;
481
+ meta?: Record<string, unknown> | undefined;
482
+ }>, "many">;
483
+ }, "strip", z.ZodTypeAny, {
484
+ errors: {
485
+ status: string;
486
+ title: string;
487
+ detail?: string | undefined;
488
+ meta?: Record<string, unknown> | undefined;
489
+ }[];
490
+ }, {
491
+ errors: {
492
+ status: string;
493
+ title: string;
494
+ detail?: string | undefined;
495
+ meta?: Record<string, unknown> | undefined;
496
+ }[];
497
+ }>;
498
+ 404: z.ZodObject<{
499
+ errors: z.ZodArray<z.ZodObject<{
500
+ status: z.ZodString;
501
+ title: z.ZodString;
502
+ detail: z.ZodOptional<z.ZodString>;
503
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
504
+ }, "strip", z.ZodTypeAny, {
505
+ status: string;
506
+ title: string;
507
+ detail?: string | undefined;
508
+ meta?: Record<string, unknown> | undefined;
509
+ }, {
510
+ status: string;
511
+ title: string;
512
+ detail?: string | undefined;
513
+ meta?: Record<string, unknown> | undefined;
514
+ }>, "many">;
515
+ }, "strip", z.ZodTypeAny, {
516
+ errors: {
517
+ status: string;
518
+ title: string;
519
+ detail?: string | undefined;
520
+ meta?: Record<string, unknown> | undefined;
521
+ }[];
522
+ }, {
523
+ errors: {
524
+ status: string;
525
+ title: string;
526
+ detail?: string | undefined;
527
+ meta?: Record<string, unknown> | undefined;
528
+ }[];
529
+ }>;
530
+ 409: z.ZodObject<{
531
+ errors: z.ZodArray<z.ZodObject<{
532
+ status: z.ZodString;
533
+ title: z.ZodString;
534
+ detail: z.ZodOptional<z.ZodString>;
535
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ status: string;
538
+ title: string;
539
+ detail?: string | undefined;
540
+ meta?: Record<string, unknown> | undefined;
541
+ }, {
542
+ status: string;
543
+ title: string;
544
+ detail?: string | undefined;
545
+ meta?: Record<string, unknown> | undefined;
546
+ }>, "many">;
547
+ }, "strip", z.ZodTypeAny, {
548
+ errors: {
549
+ status: string;
550
+ title: string;
551
+ detail?: string | undefined;
552
+ meta?: Record<string, unknown> | undefined;
553
+ }[];
554
+ }, {
555
+ errors: {
556
+ status: string;
557
+ title: string;
558
+ detail?: string | undefined;
559
+ meta?: Record<string, unknown> | undefined;
560
+ }[];
561
+ }>;
562
+ 200: z.ZodObject<{
563
+ data: z.ZodObject<{
564
+ type: z.ZodLiteral<"billing-overviews">;
565
+ id: z.ZodString;
566
+ attributes: z.ZodObject<{
567
+ tier: z.ZodEnum<["FREE", "BASIC", "PREMIUM", "ENTERPRISE"]>;
568
+ status: z.ZodEnum<["FREE", "ACTIVE", "CANCELLED"]>;
569
+ billingCycle: z.ZodNullable<z.ZodEnum<["MONTHLY", "ANNUAL"]>>;
570
+ currentPeriodEnd: z.ZodNullable<z.ZodString>;
571
+ extraSeats: z.ZodNumber;
572
+ limits: z.ZodObject<{
573
+ maxProjects: z.ZodNullable<z.ZodNumber>;
574
+ seats: z.ZodNullable<z.ZodNumber>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ maxProjects: number | null;
577
+ seats: number | null;
578
+ }, {
579
+ maxProjects: number | null;
580
+ seats: number | null;
581
+ }>;
582
+ usage: z.ZodObject<{
583
+ activeProjects: z.ZodNumber;
584
+ seats: z.ZodNumber;
585
+ }, "strip", z.ZodTypeAny, {
586
+ seats: number;
587
+ activeProjects: number;
588
+ }, {
589
+ seats: number;
590
+ activeProjects: number;
591
+ }>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ status: "ACTIVE" | "CANCELLED" | "FREE";
594
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
595
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
596
+ currentPeriodEnd: string | null;
597
+ extraSeats: number;
598
+ limits: {
599
+ maxProjects: number | null;
600
+ seats: number | null;
601
+ };
602
+ usage: {
603
+ seats: number;
604
+ activeProjects: number;
605
+ };
606
+ }, {
607
+ status: "ACTIVE" | "CANCELLED" | "FREE";
608
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
609
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
610
+ currentPeriodEnd: string | null;
611
+ extraSeats: number;
612
+ limits: {
613
+ maxProjects: number | null;
614
+ seats: number | null;
615
+ };
616
+ usage: {
617
+ seats: number;
618
+ activeProjects: number;
619
+ };
620
+ }>;
621
+ }, "strip", z.ZodTypeAny, {
622
+ id: string;
623
+ type: "billing-overviews";
624
+ attributes: {
625
+ status: "ACTIVE" | "CANCELLED" | "FREE";
626
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
627
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
628
+ currentPeriodEnd: string | null;
629
+ extraSeats: number;
630
+ limits: {
631
+ maxProjects: number | null;
632
+ seats: number | null;
633
+ };
634
+ usage: {
635
+ seats: number;
636
+ activeProjects: number;
637
+ };
638
+ };
639
+ }, {
640
+ id: string;
641
+ type: "billing-overviews";
642
+ attributes: {
643
+ status: "ACTIVE" | "CANCELLED" | "FREE";
644
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
645
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
646
+ currentPeriodEnd: string | null;
647
+ extraSeats: number;
648
+ limits: {
649
+ maxProjects: number | null;
650
+ seats: number | null;
651
+ };
652
+ usage: {
653
+ seats: number;
654
+ activeProjects: number;
655
+ };
656
+ };
657
+ }>;
658
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
659
+ links: z.ZodOptional<z.ZodObject<{
660
+ self: z.ZodString;
661
+ first: z.ZodOptional<z.ZodString>;
662
+ last: z.ZodOptional<z.ZodString>;
663
+ prev: z.ZodOptional<z.ZodString>;
664
+ next: z.ZodOptional<z.ZodString>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ self: string;
667
+ first?: string | undefined;
668
+ last?: string | undefined;
669
+ prev?: string | undefined;
670
+ next?: string | undefined;
671
+ }, {
672
+ self: string;
673
+ first?: string | undefined;
674
+ last?: string | undefined;
675
+ prev?: string | undefined;
676
+ next?: string | undefined;
677
+ }>>;
678
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
679
+ status: z.ZodString;
680
+ title: z.ZodString;
681
+ detail: z.ZodOptional<z.ZodString>;
682
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ status: string;
685
+ title: string;
686
+ detail?: string | undefined;
687
+ meta?: Record<string, unknown> | undefined;
688
+ }, {
689
+ status: string;
690
+ title: string;
691
+ detail?: string | undefined;
692
+ meta?: Record<string, unknown> | undefined;
693
+ }>, "many">>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ data: {
696
+ id: string;
697
+ type: "billing-overviews";
698
+ attributes: {
699
+ status: "ACTIVE" | "CANCELLED" | "FREE";
700
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
701
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
702
+ currentPeriodEnd: string | null;
703
+ extraSeats: number;
704
+ limits: {
705
+ maxProjects: number | null;
706
+ seats: number | null;
707
+ };
708
+ usage: {
709
+ seats: number;
710
+ activeProjects: number;
711
+ };
712
+ };
713
+ };
714
+ meta?: Record<string, unknown> | undefined;
715
+ links?: {
716
+ self: string;
717
+ first?: string | undefined;
718
+ last?: string | undefined;
719
+ prev?: string | undefined;
720
+ next?: string | undefined;
721
+ } | undefined;
722
+ errors?: {
723
+ status: string;
724
+ title: string;
725
+ detail?: string | undefined;
726
+ meta?: Record<string, unknown> | undefined;
727
+ }[] | undefined;
728
+ }, {
729
+ data: {
730
+ id: string;
731
+ type: "billing-overviews";
732
+ attributes: {
733
+ status: "ACTIVE" | "CANCELLED" | "FREE";
734
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
735
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
736
+ currentPeriodEnd: string | null;
737
+ extraSeats: number;
738
+ limits: {
739
+ maxProjects: number | null;
740
+ seats: number | null;
741
+ };
742
+ usage: {
743
+ seats: number;
744
+ activeProjects: number;
745
+ };
746
+ };
747
+ };
748
+ meta?: Record<string, unknown> | undefined;
749
+ links?: {
750
+ self: string;
751
+ first?: string | undefined;
752
+ last?: string | undefined;
753
+ prev?: string | undefined;
754
+ next?: string | undefined;
755
+ } | undefined;
756
+ errors?: {
757
+ status: string;
758
+ title: string;
759
+ detail?: string | undefined;
760
+ meta?: Record<string, unknown> | undefined;
761
+ }[] | undefined;
762
+ }>;
763
+ };
764
+ };
765
+ createCheckout: {
766
+ summary: "Start a Paystack checkout for a plan (price is computed server-side)";
767
+ method: "POST";
768
+ body: z.ZodObject<{
769
+ tier: z.ZodEnum<["BASIC", "PREMIUM"]>;
770
+ billingCycle: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
771
+ extraSeats: z.ZodOptional<z.ZodNumber>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ tier: "BASIC" | "PREMIUM";
774
+ billingCycle: "MONTHLY" | "ANNUAL";
775
+ extraSeats?: number | undefined;
776
+ }, {
777
+ tier: "BASIC" | "PREMIUM";
778
+ billingCycle: "MONTHLY" | "ANNUAL";
779
+ extraSeats?: number | undefined;
780
+ }>;
781
+ path: "/billing/checkout";
782
+ responses: {
783
+ 400: z.ZodObject<{
784
+ errors: z.ZodArray<z.ZodObject<{
785
+ status: z.ZodString;
786
+ title: z.ZodString;
787
+ detail: z.ZodOptional<z.ZodString>;
788
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ status: string;
791
+ title: string;
792
+ detail?: string | undefined;
793
+ meta?: Record<string, unknown> | undefined;
794
+ }, {
795
+ status: string;
796
+ title: string;
797
+ detail?: string | undefined;
798
+ meta?: Record<string, unknown> | undefined;
799
+ }>, "many">;
800
+ }, "strip", z.ZodTypeAny, {
801
+ errors: {
802
+ status: string;
803
+ title: string;
804
+ detail?: string | undefined;
805
+ meta?: Record<string, unknown> | undefined;
806
+ }[];
807
+ }, {
808
+ errors: {
809
+ status: string;
810
+ title: string;
811
+ detail?: string | undefined;
812
+ meta?: Record<string, unknown> | undefined;
813
+ }[];
814
+ }>;
815
+ 401: z.ZodObject<{
816
+ errors: z.ZodArray<z.ZodObject<{
817
+ status: z.ZodString;
818
+ title: z.ZodString;
819
+ detail: z.ZodOptional<z.ZodString>;
820
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
821
+ }, "strip", z.ZodTypeAny, {
822
+ status: string;
823
+ title: string;
824
+ detail?: string | undefined;
825
+ meta?: Record<string, unknown> | undefined;
826
+ }, {
827
+ status: string;
828
+ title: string;
829
+ detail?: string | undefined;
830
+ meta?: Record<string, unknown> | undefined;
831
+ }>, "many">;
832
+ }, "strip", z.ZodTypeAny, {
833
+ errors: {
834
+ status: string;
835
+ title: string;
836
+ detail?: string | undefined;
837
+ meta?: Record<string, unknown> | undefined;
838
+ }[];
839
+ }, {
840
+ errors: {
841
+ status: string;
842
+ title: string;
843
+ detail?: string | undefined;
844
+ meta?: Record<string, unknown> | undefined;
845
+ }[];
846
+ }>;
847
+ 403: z.ZodObject<{
848
+ errors: z.ZodArray<z.ZodObject<{
849
+ status: z.ZodString;
850
+ title: z.ZodString;
851
+ detail: z.ZodOptional<z.ZodString>;
852
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ status: string;
855
+ title: string;
856
+ detail?: string | undefined;
857
+ meta?: Record<string, unknown> | undefined;
858
+ }, {
859
+ status: string;
860
+ title: string;
861
+ detail?: string | undefined;
862
+ meta?: Record<string, unknown> | undefined;
863
+ }>, "many">;
864
+ }, "strip", z.ZodTypeAny, {
865
+ errors: {
866
+ status: string;
867
+ title: string;
868
+ detail?: string | undefined;
869
+ meta?: Record<string, unknown> | undefined;
870
+ }[];
871
+ }, {
872
+ errors: {
873
+ status: string;
874
+ title: string;
875
+ detail?: string | undefined;
876
+ meta?: Record<string, unknown> | undefined;
877
+ }[];
878
+ }>;
879
+ 404: z.ZodObject<{
880
+ errors: z.ZodArray<z.ZodObject<{
881
+ status: z.ZodString;
882
+ title: z.ZodString;
883
+ detail: z.ZodOptional<z.ZodString>;
884
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
885
+ }, "strip", z.ZodTypeAny, {
886
+ status: string;
887
+ title: string;
888
+ detail?: string | undefined;
889
+ meta?: Record<string, unknown> | undefined;
890
+ }, {
891
+ status: string;
892
+ title: string;
893
+ detail?: string | undefined;
894
+ meta?: Record<string, unknown> | undefined;
895
+ }>, "many">;
896
+ }, "strip", z.ZodTypeAny, {
897
+ errors: {
898
+ status: string;
899
+ title: string;
900
+ detail?: string | undefined;
901
+ meta?: Record<string, unknown> | undefined;
902
+ }[];
903
+ }, {
904
+ errors: {
905
+ status: string;
906
+ title: string;
907
+ detail?: string | undefined;
908
+ meta?: Record<string, unknown> | undefined;
909
+ }[];
910
+ }>;
911
+ 409: z.ZodObject<{
912
+ errors: z.ZodArray<z.ZodObject<{
913
+ status: z.ZodString;
914
+ title: z.ZodString;
915
+ detail: z.ZodOptional<z.ZodString>;
916
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ status: string;
919
+ title: string;
920
+ detail?: string | undefined;
921
+ meta?: Record<string, unknown> | undefined;
922
+ }, {
923
+ status: string;
924
+ title: string;
925
+ detail?: string | undefined;
926
+ meta?: Record<string, unknown> | undefined;
927
+ }>, "many">;
928
+ }, "strip", z.ZodTypeAny, {
929
+ errors: {
930
+ status: string;
931
+ title: string;
932
+ detail?: string | undefined;
933
+ meta?: Record<string, unknown> | undefined;
934
+ }[];
935
+ }, {
936
+ errors: {
937
+ status: string;
938
+ title: string;
939
+ detail?: string | undefined;
940
+ meta?: Record<string, unknown> | undefined;
941
+ }[];
942
+ }>;
943
+ 201: z.ZodObject<{
944
+ data: z.ZodObject<{
945
+ type: z.ZodLiteral<"billing-checkouts">;
946
+ id: z.ZodString;
947
+ attributes: z.ZodObject<{
948
+ authorizationUrl: z.ZodString;
949
+ reference: z.ZodString;
950
+ amount: z.ZodNumber;
951
+ currency: z.ZodString;
952
+ }, "strip", z.ZodTypeAny, {
953
+ currency: string;
954
+ authorizationUrl: string;
955
+ reference: string;
956
+ amount: number;
957
+ }, {
958
+ currency: string;
959
+ authorizationUrl: string;
960
+ reference: string;
961
+ amount: number;
962
+ }>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ id: string;
965
+ type: "billing-checkouts";
966
+ attributes: {
967
+ currency: string;
968
+ authorizationUrl: string;
969
+ reference: string;
970
+ amount: number;
971
+ };
972
+ }, {
973
+ id: string;
974
+ type: "billing-checkouts";
975
+ attributes: {
976
+ currency: string;
977
+ authorizationUrl: string;
978
+ reference: string;
979
+ amount: number;
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: "billing-checkouts";
1022
+ attributes: {
1023
+ currency: string;
1024
+ authorizationUrl: string;
1025
+ reference: string;
1026
+ amount: number;
1027
+ };
1028
+ };
1029
+ meta?: Record<string, unknown> | undefined;
1030
+ links?: {
1031
+ self: string;
1032
+ first?: string | undefined;
1033
+ last?: string | undefined;
1034
+ prev?: string | undefined;
1035
+ next?: string | undefined;
1036
+ } | undefined;
1037
+ errors?: {
1038
+ status: string;
1039
+ title: string;
1040
+ detail?: string | undefined;
1041
+ meta?: Record<string, unknown> | undefined;
1042
+ }[] | undefined;
1043
+ }, {
1044
+ data: {
1045
+ id: string;
1046
+ type: "billing-checkouts";
1047
+ attributes: {
1048
+ currency: string;
1049
+ authorizationUrl: string;
1050
+ reference: string;
1051
+ amount: number;
1052
+ };
1053
+ };
1054
+ meta?: Record<string, unknown> | undefined;
1055
+ links?: {
1056
+ self: string;
1057
+ first?: string | undefined;
1058
+ last?: string | undefined;
1059
+ prev?: string | undefined;
1060
+ next?: string | undefined;
1061
+ } | undefined;
1062
+ errors?: {
1063
+ status: string;
1064
+ title: string;
1065
+ detail?: string | undefined;
1066
+ meta?: Record<string, unknown> | undefined;
1067
+ }[] | undefined;
1068
+ }>;
1069
+ };
1070
+ };
1071
+ verifyPayment: {
1072
+ summary: "Confirm a payment after the Paystack redirect (idempotent)";
1073
+ method: "POST";
1074
+ body: z.ZodObject<{
1075
+ reference: z.ZodString;
1076
+ }, "strip", z.ZodTypeAny, {
1077
+ reference: string;
1078
+ }, {
1079
+ reference: string;
1080
+ }>;
1081
+ path: "/billing/verify";
1082
+ responses: {
1083
+ 400: z.ZodObject<{
1084
+ errors: z.ZodArray<z.ZodObject<{
1085
+ status: z.ZodString;
1086
+ title: z.ZodString;
1087
+ detail: z.ZodOptional<z.ZodString>;
1088
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ status: string;
1091
+ title: string;
1092
+ detail?: string | undefined;
1093
+ meta?: Record<string, unknown> | undefined;
1094
+ }, {
1095
+ status: string;
1096
+ title: string;
1097
+ detail?: string | undefined;
1098
+ meta?: Record<string, unknown> | undefined;
1099
+ }>, "many">;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ errors: {
1102
+ status: string;
1103
+ title: string;
1104
+ detail?: string | undefined;
1105
+ meta?: Record<string, unknown> | undefined;
1106
+ }[];
1107
+ }, {
1108
+ errors: {
1109
+ status: string;
1110
+ title: string;
1111
+ detail?: string | undefined;
1112
+ meta?: Record<string, unknown> | undefined;
1113
+ }[];
1114
+ }>;
1115
+ 401: z.ZodObject<{
1116
+ errors: z.ZodArray<z.ZodObject<{
1117
+ status: z.ZodString;
1118
+ title: z.ZodString;
1119
+ detail: z.ZodOptional<z.ZodString>;
1120
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ status: string;
1123
+ title: string;
1124
+ detail?: string | undefined;
1125
+ meta?: Record<string, unknown> | undefined;
1126
+ }, {
1127
+ status: string;
1128
+ title: string;
1129
+ detail?: string | undefined;
1130
+ meta?: Record<string, unknown> | undefined;
1131
+ }>, "many">;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ errors: {
1134
+ status: string;
1135
+ title: string;
1136
+ detail?: string | undefined;
1137
+ meta?: Record<string, unknown> | undefined;
1138
+ }[];
1139
+ }, {
1140
+ errors: {
1141
+ status: string;
1142
+ title: string;
1143
+ detail?: string | undefined;
1144
+ meta?: Record<string, unknown> | undefined;
1145
+ }[];
1146
+ }>;
1147
+ 403: z.ZodObject<{
1148
+ errors: z.ZodArray<z.ZodObject<{
1149
+ status: z.ZodString;
1150
+ title: z.ZodString;
1151
+ detail: z.ZodOptional<z.ZodString>;
1152
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1153
+ }, "strip", z.ZodTypeAny, {
1154
+ status: string;
1155
+ title: string;
1156
+ detail?: string | undefined;
1157
+ meta?: Record<string, unknown> | undefined;
1158
+ }, {
1159
+ status: string;
1160
+ title: string;
1161
+ detail?: string | undefined;
1162
+ meta?: Record<string, unknown> | undefined;
1163
+ }>, "many">;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ errors: {
1166
+ status: string;
1167
+ title: string;
1168
+ detail?: string | undefined;
1169
+ meta?: Record<string, unknown> | undefined;
1170
+ }[];
1171
+ }, {
1172
+ errors: {
1173
+ status: string;
1174
+ title: string;
1175
+ detail?: string | undefined;
1176
+ meta?: Record<string, unknown> | undefined;
1177
+ }[];
1178
+ }>;
1179
+ 404: z.ZodObject<{
1180
+ errors: z.ZodArray<z.ZodObject<{
1181
+ status: z.ZodString;
1182
+ title: z.ZodString;
1183
+ detail: z.ZodOptional<z.ZodString>;
1184
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1185
+ }, "strip", z.ZodTypeAny, {
1186
+ status: string;
1187
+ title: string;
1188
+ detail?: string | undefined;
1189
+ meta?: Record<string, unknown> | undefined;
1190
+ }, {
1191
+ status: string;
1192
+ title: string;
1193
+ detail?: string | undefined;
1194
+ meta?: Record<string, unknown> | undefined;
1195
+ }>, "many">;
1196
+ }, "strip", z.ZodTypeAny, {
1197
+ errors: {
1198
+ status: string;
1199
+ title: string;
1200
+ detail?: string | undefined;
1201
+ meta?: Record<string, unknown> | undefined;
1202
+ }[];
1203
+ }, {
1204
+ errors: {
1205
+ status: string;
1206
+ title: string;
1207
+ detail?: string | undefined;
1208
+ meta?: Record<string, unknown> | undefined;
1209
+ }[];
1210
+ }>;
1211
+ 409: z.ZodObject<{
1212
+ errors: z.ZodArray<z.ZodObject<{
1213
+ status: z.ZodString;
1214
+ title: z.ZodString;
1215
+ detail: z.ZodOptional<z.ZodString>;
1216
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ status: string;
1219
+ title: string;
1220
+ detail?: string | undefined;
1221
+ meta?: Record<string, unknown> | undefined;
1222
+ }, {
1223
+ status: string;
1224
+ title: string;
1225
+ detail?: string | undefined;
1226
+ meta?: Record<string, unknown> | undefined;
1227
+ }>, "many">;
1228
+ }, "strip", z.ZodTypeAny, {
1229
+ errors: {
1230
+ status: string;
1231
+ title: string;
1232
+ detail?: string | undefined;
1233
+ meta?: Record<string, unknown> | undefined;
1234
+ }[];
1235
+ }, {
1236
+ errors: {
1237
+ status: string;
1238
+ title: string;
1239
+ detail?: string | undefined;
1240
+ meta?: Record<string, unknown> | undefined;
1241
+ }[];
1242
+ }>;
1243
+ 200: z.ZodObject<{
1244
+ data: z.ZodObject<{
1245
+ type: z.ZodLiteral<"billing-overviews">;
1246
+ id: z.ZodString;
1247
+ attributes: z.ZodObject<{
1248
+ tier: z.ZodEnum<["FREE", "BASIC", "PREMIUM", "ENTERPRISE"]>;
1249
+ status: z.ZodEnum<["FREE", "ACTIVE", "CANCELLED"]>;
1250
+ billingCycle: z.ZodNullable<z.ZodEnum<["MONTHLY", "ANNUAL"]>>;
1251
+ currentPeriodEnd: z.ZodNullable<z.ZodString>;
1252
+ extraSeats: z.ZodNumber;
1253
+ limits: z.ZodObject<{
1254
+ maxProjects: z.ZodNullable<z.ZodNumber>;
1255
+ seats: z.ZodNullable<z.ZodNumber>;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ maxProjects: number | null;
1258
+ seats: number | null;
1259
+ }, {
1260
+ maxProjects: number | null;
1261
+ seats: number | null;
1262
+ }>;
1263
+ usage: z.ZodObject<{
1264
+ activeProjects: z.ZodNumber;
1265
+ seats: z.ZodNumber;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ seats: number;
1268
+ activeProjects: number;
1269
+ }, {
1270
+ seats: number;
1271
+ activeProjects: number;
1272
+ }>;
1273
+ } & {
1274
+ verified: z.ZodBoolean;
1275
+ }, "strip", z.ZodTypeAny, {
1276
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1277
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1278
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1279
+ currentPeriodEnd: string | null;
1280
+ extraSeats: number;
1281
+ limits: {
1282
+ maxProjects: number | null;
1283
+ seats: number | null;
1284
+ };
1285
+ usage: {
1286
+ seats: number;
1287
+ activeProjects: number;
1288
+ };
1289
+ verified: boolean;
1290
+ }, {
1291
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1292
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1293
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1294
+ currentPeriodEnd: string | null;
1295
+ extraSeats: number;
1296
+ limits: {
1297
+ maxProjects: number | null;
1298
+ seats: number | null;
1299
+ };
1300
+ usage: {
1301
+ seats: number;
1302
+ activeProjects: number;
1303
+ };
1304
+ verified: boolean;
1305
+ }>;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ id: string;
1308
+ type: "billing-overviews";
1309
+ attributes: {
1310
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1311
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1312
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1313
+ currentPeriodEnd: string | null;
1314
+ extraSeats: number;
1315
+ limits: {
1316
+ maxProjects: number | null;
1317
+ seats: number | null;
1318
+ };
1319
+ usage: {
1320
+ seats: number;
1321
+ activeProjects: number;
1322
+ };
1323
+ verified: boolean;
1324
+ };
1325
+ }, {
1326
+ id: string;
1327
+ type: "billing-overviews";
1328
+ attributes: {
1329
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1330
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1331
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1332
+ currentPeriodEnd: string | null;
1333
+ extraSeats: number;
1334
+ limits: {
1335
+ maxProjects: number | null;
1336
+ seats: number | null;
1337
+ };
1338
+ usage: {
1339
+ seats: number;
1340
+ activeProjects: number;
1341
+ };
1342
+ verified: boolean;
1343
+ };
1344
+ }>;
1345
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1346
+ links: z.ZodOptional<z.ZodObject<{
1347
+ self: z.ZodString;
1348
+ first: z.ZodOptional<z.ZodString>;
1349
+ last: z.ZodOptional<z.ZodString>;
1350
+ prev: z.ZodOptional<z.ZodString>;
1351
+ next: z.ZodOptional<z.ZodString>;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ self: string;
1354
+ first?: string | undefined;
1355
+ last?: string | undefined;
1356
+ prev?: string | undefined;
1357
+ next?: string | undefined;
1358
+ }, {
1359
+ self: string;
1360
+ first?: string | undefined;
1361
+ last?: string | undefined;
1362
+ prev?: string | undefined;
1363
+ next?: string | undefined;
1364
+ }>>;
1365
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1366
+ status: z.ZodString;
1367
+ title: z.ZodString;
1368
+ detail: z.ZodOptional<z.ZodString>;
1369
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ status: string;
1372
+ title: string;
1373
+ detail?: string | undefined;
1374
+ meta?: Record<string, unknown> | undefined;
1375
+ }, {
1376
+ status: string;
1377
+ title: string;
1378
+ detail?: string | undefined;
1379
+ meta?: Record<string, unknown> | undefined;
1380
+ }>, "many">>;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ data: {
1383
+ id: string;
1384
+ type: "billing-overviews";
1385
+ attributes: {
1386
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1387
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1388
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1389
+ currentPeriodEnd: string | null;
1390
+ extraSeats: number;
1391
+ limits: {
1392
+ maxProjects: number | null;
1393
+ seats: number | null;
1394
+ };
1395
+ usage: {
1396
+ seats: number;
1397
+ activeProjects: number;
1398
+ };
1399
+ verified: boolean;
1400
+ };
1401
+ };
1402
+ meta?: Record<string, unknown> | undefined;
1403
+ links?: {
1404
+ self: string;
1405
+ first?: string | undefined;
1406
+ last?: string | undefined;
1407
+ prev?: string | undefined;
1408
+ next?: string | undefined;
1409
+ } | undefined;
1410
+ errors?: {
1411
+ status: string;
1412
+ title: string;
1413
+ detail?: string | undefined;
1414
+ meta?: Record<string, unknown> | undefined;
1415
+ }[] | undefined;
1416
+ }, {
1417
+ data: {
1418
+ id: string;
1419
+ type: "billing-overviews";
1420
+ attributes: {
1421
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1422
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1423
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1424
+ currentPeriodEnd: string | null;
1425
+ extraSeats: number;
1426
+ limits: {
1427
+ maxProjects: number | null;
1428
+ seats: number | null;
1429
+ };
1430
+ usage: {
1431
+ seats: number;
1432
+ activeProjects: number;
1433
+ };
1434
+ verified: boolean;
1435
+ };
1436
+ };
1437
+ meta?: Record<string, unknown> | undefined;
1438
+ links?: {
1439
+ self: string;
1440
+ first?: string | undefined;
1441
+ last?: string | undefined;
1442
+ prev?: string | undefined;
1443
+ next?: string | undefined;
1444
+ } | undefined;
1445
+ errors?: {
1446
+ status: string;
1447
+ title: string;
1448
+ detail?: string | undefined;
1449
+ meta?: Record<string, unknown> | undefined;
1450
+ }[] | undefined;
1451
+ }>;
1452
+ };
1453
+ };
1454
+ cancelSubscription: {
1455
+ summary: "Cancel renewal; access continues to the end of the paid period";
1456
+ method: "POST";
1457
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1458
+ path: "/billing/cancel";
1459
+ responses: {
1460
+ 400: z.ZodObject<{
1461
+ errors: z.ZodArray<z.ZodObject<{
1462
+ status: z.ZodString;
1463
+ title: z.ZodString;
1464
+ detail: z.ZodOptional<z.ZodString>;
1465
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ status: string;
1468
+ title: string;
1469
+ detail?: string | undefined;
1470
+ meta?: Record<string, unknown> | undefined;
1471
+ }, {
1472
+ status: string;
1473
+ title: string;
1474
+ detail?: string | undefined;
1475
+ meta?: Record<string, unknown> | undefined;
1476
+ }>, "many">;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ errors: {
1479
+ status: string;
1480
+ title: string;
1481
+ detail?: string | undefined;
1482
+ meta?: Record<string, unknown> | undefined;
1483
+ }[];
1484
+ }, {
1485
+ errors: {
1486
+ status: string;
1487
+ title: string;
1488
+ detail?: string | undefined;
1489
+ meta?: Record<string, unknown> | undefined;
1490
+ }[];
1491
+ }>;
1492
+ 401: z.ZodObject<{
1493
+ errors: z.ZodArray<z.ZodObject<{
1494
+ status: z.ZodString;
1495
+ title: z.ZodString;
1496
+ detail: z.ZodOptional<z.ZodString>;
1497
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ status: string;
1500
+ title: string;
1501
+ detail?: string | undefined;
1502
+ meta?: Record<string, unknown> | undefined;
1503
+ }, {
1504
+ status: string;
1505
+ title: string;
1506
+ detail?: string | undefined;
1507
+ meta?: Record<string, unknown> | undefined;
1508
+ }>, "many">;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ errors: {
1511
+ status: string;
1512
+ title: string;
1513
+ detail?: string | undefined;
1514
+ meta?: Record<string, unknown> | undefined;
1515
+ }[];
1516
+ }, {
1517
+ errors: {
1518
+ status: string;
1519
+ title: string;
1520
+ detail?: string | undefined;
1521
+ meta?: Record<string, unknown> | undefined;
1522
+ }[];
1523
+ }>;
1524
+ 403: z.ZodObject<{
1525
+ errors: z.ZodArray<z.ZodObject<{
1526
+ status: z.ZodString;
1527
+ title: z.ZodString;
1528
+ detail: z.ZodOptional<z.ZodString>;
1529
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ status: string;
1532
+ title: string;
1533
+ detail?: string | undefined;
1534
+ meta?: Record<string, unknown> | undefined;
1535
+ }, {
1536
+ status: string;
1537
+ title: string;
1538
+ detail?: string | undefined;
1539
+ meta?: Record<string, unknown> | undefined;
1540
+ }>, "many">;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ errors: {
1543
+ status: string;
1544
+ title: string;
1545
+ detail?: string | undefined;
1546
+ meta?: Record<string, unknown> | undefined;
1547
+ }[];
1548
+ }, {
1549
+ errors: {
1550
+ status: string;
1551
+ title: string;
1552
+ detail?: string | undefined;
1553
+ meta?: Record<string, unknown> | undefined;
1554
+ }[];
1555
+ }>;
1556
+ 404: z.ZodObject<{
1557
+ errors: z.ZodArray<z.ZodObject<{
1558
+ status: z.ZodString;
1559
+ title: z.ZodString;
1560
+ detail: z.ZodOptional<z.ZodString>;
1561
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ status: string;
1564
+ title: string;
1565
+ detail?: string | undefined;
1566
+ meta?: Record<string, unknown> | undefined;
1567
+ }, {
1568
+ status: string;
1569
+ title: string;
1570
+ detail?: string | undefined;
1571
+ meta?: Record<string, unknown> | undefined;
1572
+ }>, "many">;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ errors: {
1575
+ status: string;
1576
+ title: string;
1577
+ detail?: string | undefined;
1578
+ meta?: Record<string, unknown> | undefined;
1579
+ }[];
1580
+ }, {
1581
+ errors: {
1582
+ status: string;
1583
+ title: string;
1584
+ detail?: string | undefined;
1585
+ meta?: Record<string, unknown> | undefined;
1586
+ }[];
1587
+ }>;
1588
+ 409: z.ZodObject<{
1589
+ errors: z.ZodArray<z.ZodObject<{
1590
+ status: z.ZodString;
1591
+ title: z.ZodString;
1592
+ detail: z.ZodOptional<z.ZodString>;
1593
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ status: string;
1596
+ title: string;
1597
+ detail?: string | undefined;
1598
+ meta?: Record<string, unknown> | undefined;
1599
+ }, {
1600
+ status: string;
1601
+ title: string;
1602
+ detail?: string | undefined;
1603
+ meta?: Record<string, unknown> | undefined;
1604
+ }>, "many">;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ errors: {
1607
+ status: string;
1608
+ title: string;
1609
+ detail?: string | undefined;
1610
+ meta?: Record<string, unknown> | undefined;
1611
+ }[];
1612
+ }, {
1613
+ errors: {
1614
+ status: string;
1615
+ title: string;
1616
+ detail?: string | undefined;
1617
+ meta?: Record<string, unknown> | undefined;
1618
+ }[];
1619
+ }>;
1620
+ 200: z.ZodObject<{
1621
+ data: z.ZodObject<{
1622
+ type: z.ZodLiteral<"billing-overviews">;
1623
+ id: z.ZodString;
1624
+ attributes: z.ZodObject<{
1625
+ tier: z.ZodEnum<["FREE", "BASIC", "PREMIUM", "ENTERPRISE"]>;
1626
+ status: z.ZodEnum<["FREE", "ACTIVE", "CANCELLED"]>;
1627
+ billingCycle: z.ZodNullable<z.ZodEnum<["MONTHLY", "ANNUAL"]>>;
1628
+ currentPeriodEnd: z.ZodNullable<z.ZodString>;
1629
+ extraSeats: z.ZodNumber;
1630
+ limits: z.ZodObject<{
1631
+ maxProjects: z.ZodNullable<z.ZodNumber>;
1632
+ seats: z.ZodNullable<z.ZodNumber>;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ maxProjects: number | null;
1635
+ seats: number | null;
1636
+ }, {
1637
+ maxProjects: number | null;
1638
+ seats: number | null;
1639
+ }>;
1640
+ usage: z.ZodObject<{
1641
+ activeProjects: z.ZodNumber;
1642
+ seats: z.ZodNumber;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ seats: number;
1645
+ activeProjects: number;
1646
+ }, {
1647
+ seats: number;
1648
+ activeProjects: number;
1649
+ }>;
1650
+ }, "strip", z.ZodTypeAny, {
1651
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1652
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1653
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1654
+ currentPeriodEnd: string | null;
1655
+ extraSeats: number;
1656
+ limits: {
1657
+ maxProjects: number | null;
1658
+ seats: number | null;
1659
+ };
1660
+ usage: {
1661
+ seats: number;
1662
+ activeProjects: number;
1663
+ };
1664
+ }, {
1665
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1666
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1667
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1668
+ currentPeriodEnd: string | null;
1669
+ extraSeats: number;
1670
+ limits: {
1671
+ maxProjects: number | null;
1672
+ seats: number | null;
1673
+ };
1674
+ usage: {
1675
+ seats: number;
1676
+ activeProjects: number;
1677
+ };
1678
+ }>;
1679
+ }, "strip", z.ZodTypeAny, {
1680
+ id: string;
1681
+ type: "billing-overviews";
1682
+ attributes: {
1683
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1684
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1685
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1686
+ currentPeriodEnd: string | null;
1687
+ extraSeats: number;
1688
+ limits: {
1689
+ maxProjects: number | null;
1690
+ seats: number | null;
1691
+ };
1692
+ usage: {
1693
+ seats: number;
1694
+ activeProjects: number;
1695
+ };
1696
+ };
1697
+ }, {
1698
+ id: string;
1699
+ type: "billing-overviews";
1700
+ attributes: {
1701
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1702
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1703
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1704
+ currentPeriodEnd: string | null;
1705
+ extraSeats: number;
1706
+ limits: {
1707
+ maxProjects: number | null;
1708
+ seats: number | null;
1709
+ };
1710
+ usage: {
1711
+ seats: number;
1712
+ activeProjects: number;
1713
+ };
1714
+ };
1715
+ }>;
1716
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1717
+ links: z.ZodOptional<z.ZodObject<{
1718
+ self: z.ZodString;
1719
+ first: z.ZodOptional<z.ZodString>;
1720
+ last: z.ZodOptional<z.ZodString>;
1721
+ prev: z.ZodOptional<z.ZodString>;
1722
+ next: z.ZodOptional<z.ZodString>;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ self: string;
1725
+ first?: string | undefined;
1726
+ last?: string | undefined;
1727
+ prev?: string | undefined;
1728
+ next?: string | undefined;
1729
+ }, {
1730
+ self: string;
1731
+ first?: string | undefined;
1732
+ last?: string | undefined;
1733
+ prev?: string | undefined;
1734
+ next?: string | undefined;
1735
+ }>>;
1736
+ errors: z.ZodOptional<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
+ data: {
1754
+ id: string;
1755
+ type: "billing-overviews";
1756
+ attributes: {
1757
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1758
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1759
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1760
+ currentPeriodEnd: string | null;
1761
+ extraSeats: number;
1762
+ limits: {
1763
+ maxProjects: number | null;
1764
+ seats: number | null;
1765
+ };
1766
+ usage: {
1767
+ seats: number;
1768
+ activeProjects: number;
1769
+ };
1770
+ };
1771
+ };
1772
+ meta?: Record<string, unknown> | undefined;
1773
+ links?: {
1774
+ self: string;
1775
+ first?: string | undefined;
1776
+ last?: string | undefined;
1777
+ prev?: string | undefined;
1778
+ next?: string | undefined;
1779
+ } | undefined;
1780
+ errors?: {
1781
+ status: string;
1782
+ title: string;
1783
+ detail?: string | undefined;
1784
+ meta?: Record<string, unknown> | undefined;
1785
+ }[] | undefined;
1786
+ }, {
1787
+ data: {
1788
+ id: string;
1789
+ type: "billing-overviews";
1790
+ attributes: {
1791
+ status: "ACTIVE" | "CANCELLED" | "FREE";
1792
+ tier: "FREE" | "BASIC" | "PREMIUM" | "ENTERPRISE";
1793
+ billingCycle: "MONTHLY" | "ANNUAL" | null;
1794
+ currentPeriodEnd: string | null;
1795
+ extraSeats: number;
1796
+ limits: {
1797
+ maxProjects: number | null;
1798
+ seats: number | null;
1799
+ };
1800
+ usage: {
1801
+ seats: number;
1802
+ activeProjects: number;
1803
+ };
1804
+ };
1805
+ };
1806
+ meta?: Record<string, unknown> | undefined;
1807
+ links?: {
1808
+ self: string;
1809
+ first?: string | undefined;
1810
+ last?: string | undefined;
1811
+ prev?: string | undefined;
1812
+ next?: string | undefined;
1813
+ } | undefined;
1814
+ errors?: {
1815
+ status: string;
1816
+ title: string;
1817
+ detail?: string | undefined;
1818
+ meta?: Record<string, unknown> | undefined;
1819
+ }[] | undefined;
1820
+ }>;
1821
+ };
1822
+ };
1823
+ listPayments: {
1824
+ query: z.ZodObject<{
1825
+ limit: z.ZodOptional<z.ZodNumber>;
1826
+ }, "strip", z.ZodTypeAny, {
1827
+ limit?: number | undefined;
1828
+ }, {
1829
+ limit?: number | undefined;
1830
+ }>;
1831
+ summary: "Payment history for the company";
1832
+ method: "GET";
1833
+ path: "/billing/payments";
1834
+ responses: {
1835
+ 400: z.ZodObject<{
1836
+ errors: z.ZodArray<z.ZodObject<{
1837
+ status: z.ZodString;
1838
+ title: z.ZodString;
1839
+ detail: z.ZodOptional<z.ZodString>;
1840
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1841
+ }, "strip", z.ZodTypeAny, {
1842
+ status: string;
1843
+ title: string;
1844
+ detail?: string | undefined;
1845
+ meta?: Record<string, unknown> | undefined;
1846
+ }, {
1847
+ status: string;
1848
+ title: string;
1849
+ detail?: string | undefined;
1850
+ meta?: Record<string, unknown> | undefined;
1851
+ }>, "many">;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ errors: {
1854
+ status: string;
1855
+ title: string;
1856
+ detail?: string | undefined;
1857
+ meta?: Record<string, unknown> | undefined;
1858
+ }[];
1859
+ }, {
1860
+ errors: {
1861
+ status: string;
1862
+ title: string;
1863
+ detail?: string | undefined;
1864
+ meta?: Record<string, unknown> | undefined;
1865
+ }[];
1866
+ }>;
1867
+ 401: z.ZodObject<{
1868
+ errors: z.ZodArray<z.ZodObject<{
1869
+ status: z.ZodString;
1870
+ title: z.ZodString;
1871
+ detail: z.ZodOptional<z.ZodString>;
1872
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1873
+ }, "strip", z.ZodTypeAny, {
1874
+ status: string;
1875
+ title: string;
1876
+ detail?: string | undefined;
1877
+ meta?: Record<string, unknown> | undefined;
1878
+ }, {
1879
+ status: string;
1880
+ title: string;
1881
+ detail?: string | undefined;
1882
+ meta?: Record<string, unknown> | undefined;
1883
+ }>, "many">;
1884
+ }, "strip", z.ZodTypeAny, {
1885
+ errors: {
1886
+ status: string;
1887
+ title: string;
1888
+ detail?: string | undefined;
1889
+ meta?: Record<string, unknown> | undefined;
1890
+ }[];
1891
+ }, {
1892
+ errors: {
1893
+ status: string;
1894
+ title: string;
1895
+ detail?: string | undefined;
1896
+ meta?: Record<string, unknown> | undefined;
1897
+ }[];
1898
+ }>;
1899
+ 403: z.ZodObject<{
1900
+ errors: z.ZodArray<z.ZodObject<{
1901
+ status: z.ZodString;
1902
+ title: z.ZodString;
1903
+ detail: z.ZodOptional<z.ZodString>;
1904
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1905
+ }, "strip", z.ZodTypeAny, {
1906
+ status: string;
1907
+ title: string;
1908
+ detail?: string | undefined;
1909
+ meta?: Record<string, unknown> | undefined;
1910
+ }, {
1911
+ status: string;
1912
+ title: string;
1913
+ detail?: string | undefined;
1914
+ meta?: Record<string, unknown> | undefined;
1915
+ }>, "many">;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ errors: {
1918
+ status: string;
1919
+ title: string;
1920
+ detail?: string | undefined;
1921
+ meta?: Record<string, unknown> | undefined;
1922
+ }[];
1923
+ }, {
1924
+ errors: {
1925
+ status: string;
1926
+ title: string;
1927
+ detail?: string | undefined;
1928
+ meta?: Record<string, unknown> | undefined;
1929
+ }[];
1930
+ }>;
1931
+ 404: z.ZodObject<{
1932
+ errors: z.ZodArray<z.ZodObject<{
1933
+ status: z.ZodString;
1934
+ title: z.ZodString;
1935
+ detail: z.ZodOptional<z.ZodString>;
1936
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1937
+ }, "strip", z.ZodTypeAny, {
1938
+ status: string;
1939
+ title: string;
1940
+ detail?: string | undefined;
1941
+ meta?: Record<string, unknown> | undefined;
1942
+ }, {
1943
+ status: string;
1944
+ title: string;
1945
+ detail?: string | undefined;
1946
+ meta?: Record<string, unknown> | undefined;
1947
+ }>, "many">;
1948
+ }, "strip", z.ZodTypeAny, {
1949
+ errors: {
1950
+ status: string;
1951
+ title: string;
1952
+ detail?: string | undefined;
1953
+ meta?: Record<string, unknown> | undefined;
1954
+ }[];
1955
+ }, {
1956
+ errors: {
1957
+ status: string;
1958
+ title: string;
1959
+ detail?: string | undefined;
1960
+ meta?: Record<string, unknown> | undefined;
1961
+ }[];
1962
+ }>;
1963
+ 409: z.ZodObject<{
1964
+ errors: z.ZodArray<z.ZodObject<{
1965
+ status: z.ZodString;
1966
+ title: z.ZodString;
1967
+ detail: z.ZodOptional<z.ZodString>;
1968
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1969
+ }, "strip", z.ZodTypeAny, {
1970
+ status: string;
1971
+ title: string;
1972
+ detail?: string | undefined;
1973
+ meta?: Record<string, unknown> | undefined;
1974
+ }, {
1975
+ status: string;
1976
+ title: string;
1977
+ detail?: string | undefined;
1978
+ meta?: Record<string, unknown> | undefined;
1979
+ }>, "many">;
1980
+ }, "strip", z.ZodTypeAny, {
1981
+ errors: {
1982
+ status: string;
1983
+ title: string;
1984
+ detail?: string | undefined;
1985
+ meta?: Record<string, unknown> | undefined;
1986
+ }[];
1987
+ }, {
1988
+ errors: {
1989
+ status: string;
1990
+ title: string;
1991
+ detail?: string | undefined;
1992
+ meta?: Record<string, unknown> | undefined;
1993
+ }[];
1994
+ }>;
1995
+ 200: z.ZodObject<{
1996
+ data: z.ZodArray<z.ZodObject<{
1997
+ type: z.ZodLiteral<"billing-payments">;
1998
+ id: z.ZodString;
1999
+ attributes: z.ZodObject<Omit<{
2000
+ id: z.ZodString;
2001
+ reference: z.ZodString;
2002
+ tier: z.ZodString;
2003
+ billingCycle: z.ZodString;
2004
+ extraSeats: z.ZodNumber;
2005
+ amount: z.ZodNumber;
2006
+ currency: z.ZodString;
2007
+ status: z.ZodEnum<["PENDING", "SUCCESS", "FAILED", "REVIEW"]>;
2008
+ paidAt: z.ZodNullable<z.ZodString>;
2009
+ createdAt: z.ZodString;
2010
+ }, "id">, "strip", z.ZodTypeAny, {
2011
+ createdAt: string;
2012
+ status: "PENDING" | "SUCCESS" | "FAILED" | "REVIEW";
2013
+ tier: string;
2014
+ currency: string;
2015
+ billingCycle: string;
2016
+ extraSeats: number;
2017
+ reference: string;
2018
+ amount: number;
2019
+ paidAt: string | null;
2020
+ }, {
2021
+ createdAt: string;
2022
+ status: "PENDING" | "SUCCESS" | "FAILED" | "REVIEW";
2023
+ tier: string;
2024
+ currency: string;
2025
+ billingCycle: string;
2026
+ extraSeats: number;
2027
+ reference: string;
2028
+ amount: number;
2029
+ paidAt: string | null;
2030
+ }>;
2031
+ }, "strip", z.ZodTypeAny, {
2032
+ id: string;
2033
+ type: "billing-payments";
2034
+ attributes: {
2035
+ createdAt: string;
2036
+ status: "PENDING" | "SUCCESS" | "FAILED" | "REVIEW";
2037
+ tier: string;
2038
+ currency: string;
2039
+ billingCycle: string;
2040
+ extraSeats: number;
2041
+ reference: string;
2042
+ amount: number;
2043
+ paidAt: string | null;
2044
+ };
2045
+ }, {
2046
+ id: string;
2047
+ type: "billing-payments";
2048
+ attributes: {
2049
+ createdAt: string;
2050
+ status: "PENDING" | "SUCCESS" | "FAILED" | "REVIEW";
2051
+ tier: string;
2052
+ currency: string;
2053
+ billingCycle: string;
2054
+ extraSeats: number;
2055
+ reference: string;
2056
+ amount: number;
2057
+ paidAt: string | null;
2058
+ };
2059
+ }>, "many">;
2060
+ meta: z.ZodOptional<z.ZodObject<{
2061
+ total: z.ZodOptional<z.ZodNumber>;
2062
+ page: z.ZodOptional<z.ZodNumber>;
2063
+ size: z.ZodOptional<z.ZodNumber>;
2064
+ pages: z.ZodOptional<z.ZodNumber>;
2065
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
2066
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
2067
+ }, "strip", z.ZodTypeAny, {
2068
+ page?: number | undefined;
2069
+ total?: number | undefined;
2070
+ size?: number | undefined;
2071
+ pages?: number | undefined;
2072
+ hasNextPage?: boolean | undefined;
2073
+ hasPreviousPage?: boolean | undefined;
2074
+ }, {
2075
+ page?: number | undefined;
2076
+ total?: number | undefined;
2077
+ size?: number | undefined;
2078
+ pages?: number | undefined;
2079
+ hasNextPage?: boolean | undefined;
2080
+ hasPreviousPage?: boolean | undefined;
2081
+ }>>;
2082
+ links: z.ZodOptional<z.ZodObject<{
2083
+ self: z.ZodString;
2084
+ first: z.ZodOptional<z.ZodString>;
2085
+ last: z.ZodOptional<z.ZodString>;
2086
+ prev: z.ZodOptional<z.ZodString>;
2087
+ next: z.ZodOptional<z.ZodString>;
2088
+ }, "strip", z.ZodTypeAny, {
2089
+ self: string;
2090
+ first?: string | undefined;
2091
+ last?: string | undefined;
2092
+ prev?: string | undefined;
2093
+ next?: string | undefined;
2094
+ }, {
2095
+ self: string;
2096
+ first?: string | undefined;
2097
+ last?: string | undefined;
2098
+ prev?: string | undefined;
2099
+ next?: string | undefined;
2100
+ }>>;
2101
+ }, "strip", z.ZodTypeAny, {
2102
+ data: {
2103
+ id: string;
2104
+ type: "billing-payments";
2105
+ attributes: {
2106
+ createdAt: string;
2107
+ status: "PENDING" | "SUCCESS" | "FAILED" | "REVIEW";
2108
+ tier: string;
2109
+ currency: string;
2110
+ billingCycle: string;
2111
+ extraSeats: number;
2112
+ reference: string;
2113
+ amount: number;
2114
+ paidAt: string | null;
2115
+ };
2116
+ }[];
2117
+ meta?: {
2118
+ page?: number | undefined;
2119
+ total?: number | undefined;
2120
+ size?: number | undefined;
2121
+ pages?: number | undefined;
2122
+ hasNextPage?: boolean | undefined;
2123
+ hasPreviousPage?: boolean | undefined;
2124
+ } | undefined;
2125
+ links?: {
2126
+ self: string;
2127
+ first?: string | undefined;
2128
+ last?: string | undefined;
2129
+ prev?: string | undefined;
2130
+ next?: string | undefined;
2131
+ } | undefined;
2132
+ }, {
2133
+ data: {
2134
+ id: string;
2135
+ type: "billing-payments";
2136
+ attributes: {
2137
+ createdAt: string;
2138
+ status: "PENDING" | "SUCCESS" | "FAILED" | "REVIEW";
2139
+ tier: string;
2140
+ currency: string;
2141
+ billingCycle: string;
2142
+ extraSeats: number;
2143
+ reference: string;
2144
+ amount: number;
2145
+ paidAt: string | null;
2146
+ };
2147
+ }[];
2148
+ meta?: {
2149
+ page?: number | undefined;
2150
+ total?: number | undefined;
2151
+ size?: number | undefined;
2152
+ pages?: number | undefined;
2153
+ hasNextPage?: boolean | undefined;
2154
+ hasPreviousPage?: boolean | undefined;
2155
+ } | undefined;
2156
+ links?: {
2157
+ self: string;
2158
+ first?: string | undefined;
2159
+ last?: string | undefined;
2160
+ prev?: string | undefined;
2161
+ next?: string | undefined;
2162
+ } | undefined;
2163
+ }>;
2164
+ };
2165
+ };
2166
+ };
2167
+ //# sourceMappingURL=billing.d.ts.map