@codeforamerica/safety-net-openapi-california 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/applications/client/client.gen.d.ts +2 -0
  2. package/dist/applications/client/client.gen.js +128 -0
  3. package/dist/applications/client/index.d.ts +8 -0
  4. package/dist/applications/client/index.js +6 -0
  5. package/dist/applications/client/types.gen.d.ts +88 -0
  6. package/dist/applications/client/types.gen.js +2 -0
  7. package/dist/applications/client/utils.gen.d.ts +14 -0
  8. package/dist/applications/client/utils.gen.js +171 -0
  9. package/dist/applications/client.gen.d.ts +12 -0
  10. package/dist/applications/client.gen.js +3 -0
  11. package/dist/applications/core/auth.gen.d.ts +18 -0
  12. package/dist/applications/core/auth.gen.js +14 -0
  13. package/dist/applications/core/bodySerializer.gen.d.ts +25 -0
  14. package/dist/applications/core/bodySerializer.gen.js +57 -0
  15. package/dist/applications/core/params.gen.d.ts +43 -0
  16. package/dist/applications/core/params.gen.js +100 -0
  17. package/dist/applications/core/pathSerializer.gen.d.ts +33 -0
  18. package/dist/applications/core/pathSerializer.gen.js +114 -0
  19. package/dist/applications/core/queryKeySerializer.gen.d.ts +18 -0
  20. package/dist/applications/core/queryKeySerializer.gen.js +99 -0
  21. package/dist/applications/core/serverSentEvents.gen.d.ts +71 -0
  22. package/dist/applications/core/serverSentEvents.gen.js +137 -0
  23. package/dist/applications/core/types.gen.d.ts +78 -0
  24. package/dist/applications/core/types.gen.js +2 -0
  25. package/dist/applications/core/utils.gen.d.ts +19 -0
  26. package/dist/applications/core/utils.gen.js +87 -0
  27. package/dist/applications/index.d.ts +2 -0
  28. package/dist/applications/index.js +2 -0
  29. package/dist/applications/sdk.gen.d.ts +45 -0
  30. package/dist/applications/sdk.gen.js +70 -0
  31. package/dist/applications/types.gen.d.ts +34007 -0
  32. package/dist/applications/types.gen.js +2 -0
  33. package/dist/applications/zod.gen.d.ts +17374 -0
  34. package/dist/applications/zod.gen.js +16857 -0
  35. package/dist/households/client/client.gen.d.ts +2 -0
  36. package/dist/households/client/client.gen.js +128 -0
  37. package/dist/households/client/index.d.ts +8 -0
  38. package/dist/households/client/index.js +6 -0
  39. package/dist/households/client/types.gen.d.ts +88 -0
  40. package/dist/households/client/types.gen.js +2 -0
  41. package/dist/households/client/utils.gen.d.ts +14 -0
  42. package/dist/households/client/utils.gen.js +171 -0
  43. package/dist/households/client.gen.d.ts +12 -0
  44. package/dist/households/client.gen.js +3 -0
  45. package/dist/households/core/auth.gen.d.ts +18 -0
  46. package/dist/households/core/auth.gen.js +14 -0
  47. package/dist/households/core/bodySerializer.gen.d.ts +25 -0
  48. package/dist/households/core/bodySerializer.gen.js +57 -0
  49. package/dist/households/core/params.gen.d.ts +43 -0
  50. package/dist/households/core/params.gen.js +100 -0
  51. package/dist/households/core/pathSerializer.gen.d.ts +33 -0
  52. package/dist/households/core/pathSerializer.gen.js +114 -0
  53. package/dist/households/core/queryKeySerializer.gen.d.ts +18 -0
  54. package/dist/households/core/queryKeySerializer.gen.js +99 -0
  55. package/dist/households/core/serverSentEvents.gen.d.ts +71 -0
  56. package/dist/households/core/serverSentEvents.gen.js +137 -0
  57. package/dist/households/core/types.gen.d.ts +78 -0
  58. package/dist/households/core/types.gen.js +2 -0
  59. package/dist/households/core/utils.gen.d.ts +19 -0
  60. package/dist/households/core/utils.gen.js +87 -0
  61. package/dist/households/index.d.ts +2 -0
  62. package/dist/households/index.js +2 -0
  63. package/dist/households/sdk.gen.d.ts +45 -0
  64. package/dist/households/sdk.gen.js +70 -0
  65. package/dist/households/types.gen.d.ts +1693 -0
  66. package/dist/households/types.gen.js +2 -0
  67. package/dist/households/zod.gen.d.ts +624 -0
  68. package/dist/households/zod.gen.js +625 -0
  69. package/dist/incomes/client/client.gen.d.ts +2 -0
  70. package/dist/incomes/client/client.gen.js +128 -0
  71. package/dist/incomes/client/index.d.ts +8 -0
  72. package/dist/incomes/client/index.js +6 -0
  73. package/dist/incomes/client/types.gen.d.ts +88 -0
  74. package/dist/incomes/client/types.gen.js +2 -0
  75. package/dist/incomes/client/utils.gen.d.ts +14 -0
  76. package/dist/incomes/client/utils.gen.js +171 -0
  77. package/dist/incomes/client.gen.d.ts +12 -0
  78. package/dist/incomes/client.gen.js +3 -0
  79. package/dist/incomes/core/auth.gen.d.ts +18 -0
  80. package/dist/incomes/core/auth.gen.js +14 -0
  81. package/dist/incomes/core/bodySerializer.gen.d.ts +25 -0
  82. package/dist/incomes/core/bodySerializer.gen.js +57 -0
  83. package/dist/incomes/core/params.gen.d.ts +43 -0
  84. package/dist/incomes/core/params.gen.js +100 -0
  85. package/dist/incomes/core/pathSerializer.gen.d.ts +33 -0
  86. package/dist/incomes/core/pathSerializer.gen.js +114 -0
  87. package/dist/incomes/core/queryKeySerializer.gen.d.ts +18 -0
  88. package/dist/incomes/core/queryKeySerializer.gen.js +99 -0
  89. package/dist/incomes/core/serverSentEvents.gen.d.ts +71 -0
  90. package/dist/incomes/core/serverSentEvents.gen.js +137 -0
  91. package/dist/incomes/core/types.gen.d.ts +78 -0
  92. package/dist/incomes/core/types.gen.js +2 -0
  93. package/dist/incomes/core/utils.gen.d.ts +19 -0
  94. package/dist/incomes/core/utils.gen.js +87 -0
  95. package/dist/incomes/index.d.ts +2 -0
  96. package/dist/incomes/index.js +2 -0
  97. package/dist/incomes/sdk.gen.d.ts +47 -0
  98. package/dist/incomes/sdk.gen.js +72 -0
  99. package/dist/incomes/types.gen.d.ts +1425 -0
  100. package/dist/incomes/types.gen.js +2 -0
  101. package/dist/incomes/zod.gen.d.ts +961 -0
  102. package/dist/incomes/zod.gen.js +920 -0
  103. package/dist/index.d.ts +5 -0
  104. package/dist/index.js +5 -0
  105. package/dist/persons/client/client.gen.d.ts +2 -0
  106. package/dist/persons/client/client.gen.js +128 -0
  107. package/dist/persons/client/index.d.ts +8 -0
  108. package/dist/persons/client/index.js +6 -0
  109. package/dist/persons/client/types.gen.d.ts +88 -0
  110. package/dist/persons/client/types.gen.js +2 -0
  111. package/dist/persons/client/utils.gen.d.ts +14 -0
  112. package/dist/persons/client/utils.gen.js +171 -0
  113. package/dist/persons/client.gen.d.ts +12 -0
  114. package/dist/persons/client.gen.js +3 -0
  115. package/dist/persons/core/auth.gen.d.ts +18 -0
  116. package/dist/persons/core/auth.gen.js +14 -0
  117. package/dist/persons/core/bodySerializer.gen.d.ts +25 -0
  118. package/dist/persons/core/bodySerializer.gen.js +57 -0
  119. package/dist/persons/core/params.gen.d.ts +43 -0
  120. package/dist/persons/core/params.gen.js +100 -0
  121. package/dist/persons/core/pathSerializer.gen.d.ts +33 -0
  122. package/dist/persons/core/pathSerializer.gen.js +114 -0
  123. package/dist/persons/core/queryKeySerializer.gen.d.ts +18 -0
  124. package/dist/persons/core/queryKeySerializer.gen.js +99 -0
  125. package/dist/persons/core/serverSentEvents.gen.d.ts +71 -0
  126. package/dist/persons/core/serverSentEvents.gen.js +137 -0
  127. package/dist/persons/core/types.gen.d.ts +78 -0
  128. package/dist/persons/core/types.gen.js +2 -0
  129. package/dist/persons/core/utils.gen.d.ts +19 -0
  130. package/dist/persons/core/utils.gen.js +87 -0
  131. package/dist/persons/index.d.ts +2 -0
  132. package/dist/persons/index.js +2 -0
  133. package/dist/persons/sdk.gen.d.ts +45 -0
  134. package/dist/persons/sdk.gen.js +70 -0
  135. package/dist/persons/types.gen.d.ts +7595 -0
  136. package/dist/persons/types.gen.js +2 -0
  137. package/dist/persons/zod.gen.d.ts +3578 -0
  138. package/dist/persons/zod.gen.js +3579 -0
  139. package/dist/search-helpers.d.ts +242 -0
  140. package/dist/search-helpers.js +244 -0
  141. package/package.json +95 -0
  142. package/src/applications/client/client.gen.ts +166 -0
  143. package/src/applications/client/index.ts +23 -0
  144. package/src/applications/client/types.gen.ts +197 -0
  145. package/src/applications/client/utils.gen.ts +213 -0
  146. package/src/applications/client.gen.ts +16 -0
  147. package/src/applications/core/auth.gen.ts +42 -0
  148. package/src/applications/core/bodySerializer.gen.ts +100 -0
  149. package/src/applications/core/params.gen.ts +176 -0
  150. package/src/applications/core/pathSerializer.gen.ts +181 -0
  151. package/src/applications/core/queryKeySerializer.gen.ts +136 -0
  152. package/src/applications/core/serverSentEvents.gen.ts +266 -0
  153. package/src/applications/core/types.gen.ts +118 -0
  154. package/src/applications/core/utils.gen.ts +143 -0
  155. package/src/applications/index.ts +4 -0
  156. package/src/applications/sdk.gen.ts +92 -0
  157. package/src/applications/types.gen.ts +34043 -0
  158. package/src/applications/zod.gen.ts +16877 -0
  159. package/src/households/client/client.gen.ts +166 -0
  160. package/src/households/client/index.ts +23 -0
  161. package/src/households/client/types.gen.ts +197 -0
  162. package/src/households/client/utils.gen.ts +213 -0
  163. package/src/households/client.gen.ts +16 -0
  164. package/src/households/core/auth.gen.ts +42 -0
  165. package/src/households/core/bodySerializer.gen.ts +100 -0
  166. package/src/households/core/params.gen.ts +176 -0
  167. package/src/households/core/pathSerializer.gen.ts +181 -0
  168. package/src/households/core/queryKeySerializer.gen.ts +136 -0
  169. package/src/households/core/serverSentEvents.gen.ts +266 -0
  170. package/src/households/core/types.gen.ts +118 -0
  171. package/src/households/core/utils.gen.ts +143 -0
  172. package/src/households/index.ts +4 -0
  173. package/src/households/sdk.gen.ts +92 -0
  174. package/src/households/types.gen.ts +1729 -0
  175. package/src/households/zod.gen.ts +645 -0
  176. package/src/incomes/client/client.gen.ts +166 -0
  177. package/src/incomes/client/index.ts +23 -0
  178. package/src/incomes/client/types.gen.ts +197 -0
  179. package/src/incomes/client/utils.gen.ts +213 -0
  180. package/src/incomes/client.gen.ts +16 -0
  181. package/src/incomes/core/auth.gen.ts +42 -0
  182. package/src/incomes/core/bodySerializer.gen.ts +100 -0
  183. package/src/incomes/core/params.gen.ts +176 -0
  184. package/src/incomes/core/pathSerializer.gen.ts +181 -0
  185. package/src/incomes/core/queryKeySerializer.gen.ts +136 -0
  186. package/src/incomes/core/serverSentEvents.gen.ts +266 -0
  187. package/src/incomes/core/types.gen.ts +118 -0
  188. package/src/incomes/core/utils.gen.ts +143 -0
  189. package/src/incomes/index.ts +4 -0
  190. package/src/incomes/sdk.gen.ts +94 -0
  191. package/src/incomes/types.gen.ts +1460 -0
  192. package/src/incomes/zod.gen.ts +939 -0
  193. package/src/index.ts +5 -0
  194. package/src/persons/client/client.gen.ts +166 -0
  195. package/src/persons/client/index.ts +23 -0
  196. package/src/persons/client/types.gen.ts +197 -0
  197. package/src/persons/client/utils.gen.ts +213 -0
  198. package/src/persons/client.gen.ts +16 -0
  199. package/src/persons/core/auth.gen.ts +42 -0
  200. package/src/persons/core/bodySerializer.gen.ts +100 -0
  201. package/src/persons/core/params.gen.ts +176 -0
  202. package/src/persons/core/pathSerializer.gen.ts +181 -0
  203. package/src/persons/core/queryKeySerializer.gen.ts +136 -0
  204. package/src/persons/core/serverSentEvents.gen.ts +266 -0
  205. package/src/persons/core/types.gen.ts +118 -0
  206. package/src/persons/core/utils.gen.ts +143 -0
  207. package/src/persons/index.ts +4 -0
  208. package/src/persons/sdk.gen.ts +92 -0
  209. package/src/persons/types.gen.ts +7631 -0
  210. package/src/persons/zod.gen.ts +3599 -0
  211. package/src/search-helpers.ts +264 -0
@@ -0,0 +1,625 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { z } from 'zod';
3
+ /**
4
+ * Represents a household unit with multiple members.
5
+ */
6
+ export const zHousehold = z.object({
7
+ id: z.uuid().readonly(),
8
+ homeAddress: z.object({
9
+ addressLine1: z.string().min(1).max(150),
10
+ addressLine2: z.optional(z.string().max(150)),
11
+ city: z.string().min(1).max(100),
12
+ stateProvince: z.string().min(1).max(100),
13
+ postalCode: z.string().min(3).max(20),
14
+ county: z.optional(z.string().max(100))
15
+ }),
16
+ mailingAddress: z.optional(z.object({
17
+ addressLine1: z.string().min(1).max(150),
18
+ addressLine2: z.optional(z.string().max(150)),
19
+ city: z.string().min(1).max(100),
20
+ stateProvince: z.string().min(1).max(100),
21
+ postalCode: z.string().min(3).max(20),
22
+ county: z.optional(z.string().max(100))
23
+ })),
24
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
25
+ members: z.array(z.object({
26
+ personId: z.uuid(),
27
+ relationship: z.enum([
28
+ 'head_of_household',
29
+ 'spouse',
30
+ 'husband',
31
+ 'wife',
32
+ 'partner',
33
+ 'child',
34
+ 'parent',
35
+ 'sibling',
36
+ 'grandparent',
37
+ 'grandchild',
38
+ 'other_relative',
39
+ 'non_relative'
40
+ ])
41
+ })).min(1),
42
+ createdAt: z.iso.datetime().readonly(),
43
+ updatedAt: z.iso.datetime().readonly()
44
+ });
45
+ /**
46
+ * Represents a household unit with multiple members.
47
+ */
48
+ export const zHouseholdCreate = z.object({
49
+ id: z.uuid().readonly(),
50
+ homeAddress: z.object({
51
+ addressLine1: z.string().min(1).max(150),
52
+ addressLine2: z.optional(z.string().max(150)),
53
+ city: z.string().min(1).max(100),
54
+ stateProvince: z.string().min(1).max(100),
55
+ postalCode: z.string().min(3).max(20),
56
+ county: z.optional(z.string().max(100))
57
+ }),
58
+ mailingAddress: z.optional(z.object({
59
+ addressLine1: z.string().min(1).max(150),
60
+ addressLine2: z.optional(z.string().max(150)),
61
+ city: z.string().min(1).max(100),
62
+ stateProvince: z.string().min(1).max(100),
63
+ postalCode: z.string().min(3).max(20),
64
+ county: z.optional(z.string().max(100))
65
+ })),
66
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
67
+ members: z.array(z.object({
68
+ personId: z.uuid(),
69
+ relationship: z.enum([
70
+ 'head_of_household',
71
+ 'spouse',
72
+ 'husband',
73
+ 'wife',
74
+ 'partner',
75
+ 'child',
76
+ 'parent',
77
+ 'sibling',
78
+ 'grandparent',
79
+ 'grandchild',
80
+ 'other_relative',
81
+ 'non_relative'
82
+ ])
83
+ })).min(1),
84
+ createdAt: z.iso.datetime().readonly(),
85
+ updatedAt: z.iso.datetime().readonly()
86
+ });
87
+ /**
88
+ * Represents a household unit with multiple members.
89
+ */
90
+ export const zHouseholdUpdate = z.object({
91
+ id: z.uuid().readonly(),
92
+ homeAddress: z.object({
93
+ addressLine1: z.string().min(1).max(150),
94
+ addressLine2: z.optional(z.string().max(150)),
95
+ city: z.string().min(1).max(100),
96
+ stateProvince: z.string().min(1).max(100),
97
+ postalCode: z.string().min(3).max(20),
98
+ county: z.optional(z.string().max(100))
99
+ }),
100
+ mailingAddress: z.optional(z.object({
101
+ addressLine1: z.string().min(1).max(150),
102
+ addressLine2: z.optional(z.string().max(150)),
103
+ city: z.string().min(1).max(100),
104
+ stateProvince: z.string().min(1).max(100),
105
+ postalCode: z.string().min(3).max(20),
106
+ county: z.optional(z.string().max(100))
107
+ })),
108
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
109
+ members: z.array(z.object({
110
+ personId: z.uuid(),
111
+ relationship: z.enum([
112
+ 'head_of_household',
113
+ 'spouse',
114
+ 'husband',
115
+ 'wife',
116
+ 'partner',
117
+ 'child',
118
+ 'parent',
119
+ 'sibling',
120
+ 'grandparent',
121
+ 'grandchild',
122
+ 'other_relative',
123
+ 'non_relative'
124
+ ])
125
+ })).min(1),
126
+ createdAt: z.iso.datetime().readonly(),
127
+ updatedAt: z.iso.datetime().readonly()
128
+ });
129
+ export const zHouseholdList = z.object({
130
+ items: z.array(z.object({
131
+ id: z.uuid().readonly(),
132
+ homeAddress: z.object({
133
+ addressLine1: z.string().min(1).max(150),
134
+ addressLine2: z.optional(z.string().max(150)),
135
+ city: z.string().min(1).max(100),
136
+ stateProvince: z.string().min(1).max(100),
137
+ postalCode: z.string().min(3).max(20),
138
+ county: z.optional(z.string().max(100))
139
+ }),
140
+ mailingAddress: z.optional(z.object({
141
+ addressLine1: z.string().min(1).max(150),
142
+ addressLine2: z.optional(z.string().max(150)),
143
+ city: z.string().min(1).max(100),
144
+ stateProvince: z.string().min(1).max(100),
145
+ postalCode: z.string().min(3).max(20),
146
+ county: z.optional(z.string().max(100))
147
+ })),
148
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
149
+ members: z.array(z.object({
150
+ personId: z.uuid(),
151
+ relationship: z.enum([
152
+ 'head_of_household',
153
+ 'spouse',
154
+ 'husband',
155
+ 'wife',
156
+ 'partner',
157
+ 'child',
158
+ 'parent',
159
+ 'sibling',
160
+ 'grandparent',
161
+ 'grandchild',
162
+ 'other_relative',
163
+ 'non_relative'
164
+ ])
165
+ })).min(1),
166
+ createdAt: z.iso.datetime().readonly(),
167
+ updatedAt: z.iso.datetime().readonly()
168
+ })),
169
+ total: z.int().gte(0),
170
+ limit: z.int().gte(1).lte(100),
171
+ offset: z.int().gte(0),
172
+ hasNext: z.optional(z.boolean())
173
+ });
174
+ /**
175
+ * Represents a household unit with multiple members.
176
+ */
177
+ export const zHouseholdWritable = z.object({
178
+ homeAddress: z.object({
179
+ addressLine1: z.string().min(1).max(150),
180
+ addressLine2: z.optional(z.string().max(150)),
181
+ city: z.string().min(1).max(100),
182
+ stateProvince: z.string().min(1).max(100),
183
+ postalCode: z.string().min(3).max(20),
184
+ county: z.optional(z.string().max(100))
185
+ }),
186
+ mailingAddress: z.optional(z.object({
187
+ addressLine1: z.string().min(1).max(150),
188
+ addressLine2: z.optional(z.string().max(150)),
189
+ city: z.string().min(1).max(100),
190
+ stateProvince: z.string().min(1).max(100),
191
+ postalCode: z.string().min(3).max(20),
192
+ county: z.optional(z.string().max(100))
193
+ })),
194
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
195
+ members: z.array(z.object({
196
+ personId: z.uuid(),
197
+ relationship: z.enum([
198
+ 'head_of_household',
199
+ 'spouse',
200
+ 'husband',
201
+ 'wife',
202
+ 'partner',
203
+ 'child',
204
+ 'parent',
205
+ 'sibling',
206
+ 'grandparent',
207
+ 'grandchild',
208
+ 'other_relative',
209
+ 'non_relative'
210
+ ])
211
+ })).min(1)
212
+ });
213
+ /**
214
+ * Represents a household unit with multiple members.
215
+ */
216
+ export const zHouseholdCreateWritable = z.object({
217
+ homeAddress: z.object({
218
+ addressLine1: z.string().min(1).max(150),
219
+ addressLine2: z.optional(z.string().max(150)),
220
+ city: z.string().min(1).max(100),
221
+ stateProvince: z.string().min(1).max(100),
222
+ postalCode: z.string().min(3).max(20),
223
+ county: z.optional(z.string().max(100))
224
+ }),
225
+ mailingAddress: z.optional(z.object({
226
+ addressLine1: z.string().min(1).max(150),
227
+ addressLine2: z.optional(z.string().max(150)),
228
+ city: z.string().min(1).max(100),
229
+ stateProvince: z.string().min(1).max(100),
230
+ postalCode: z.string().min(3).max(20),
231
+ county: z.optional(z.string().max(100))
232
+ })),
233
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
234
+ members: z.array(z.object({
235
+ personId: z.uuid(),
236
+ relationship: z.enum([
237
+ 'head_of_household',
238
+ 'spouse',
239
+ 'husband',
240
+ 'wife',
241
+ 'partner',
242
+ 'child',
243
+ 'parent',
244
+ 'sibling',
245
+ 'grandparent',
246
+ 'grandchild',
247
+ 'other_relative',
248
+ 'non_relative'
249
+ ])
250
+ })).min(1)
251
+ });
252
+ /**
253
+ * Represents a household unit with multiple members.
254
+ */
255
+ export const zHouseholdUpdateWritable = z.object({
256
+ homeAddress: z.object({
257
+ addressLine1: z.string().min(1).max(150),
258
+ addressLine2: z.optional(z.string().max(150)),
259
+ city: z.string().min(1).max(100),
260
+ stateProvince: z.string().min(1).max(100),
261
+ postalCode: z.string().min(3).max(20),
262
+ county: z.optional(z.string().max(100))
263
+ }),
264
+ mailingAddress: z.optional(z.object({
265
+ addressLine1: z.string().min(1).max(150),
266
+ addressLine2: z.optional(z.string().max(150)),
267
+ city: z.string().min(1).max(100),
268
+ stateProvince: z.string().min(1).max(100),
269
+ postalCode: z.string().min(3).max(20),
270
+ county: z.optional(z.string().max(100))
271
+ })),
272
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
273
+ members: z.array(z.object({
274
+ personId: z.uuid(),
275
+ relationship: z.enum([
276
+ 'head_of_household',
277
+ 'spouse',
278
+ 'husband',
279
+ 'wife',
280
+ 'partner',
281
+ 'child',
282
+ 'parent',
283
+ 'sibling',
284
+ 'grandparent',
285
+ 'grandchild',
286
+ 'other_relative',
287
+ 'non_relative'
288
+ ])
289
+ })).min(1)
290
+ });
291
+ export const zHouseholdListWritable = z.object({
292
+ items: z.array(z.object({
293
+ homeAddress: z.object({
294
+ addressLine1: z.string().min(1).max(150),
295
+ addressLine2: z.optional(z.string().max(150)),
296
+ city: z.string().min(1).max(100),
297
+ stateProvince: z.string().min(1).max(100),
298
+ postalCode: z.string().min(3).max(20),
299
+ county: z.optional(z.string().max(100))
300
+ }),
301
+ mailingAddress: z.optional(z.object({
302
+ addressLine1: z.string().min(1).max(150),
303
+ addressLine2: z.optional(z.string().max(150)),
304
+ city: z.string().min(1).max(100),
305
+ stateProvince: z.string().min(1).max(100),
306
+ postalCode: z.string().min(3).max(20),
307
+ county: z.optional(z.string().max(100))
308
+ })),
309
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
310
+ members: z.array(z.object({
311
+ personId: z.uuid(),
312
+ relationship: z.enum([
313
+ 'head_of_household',
314
+ 'spouse',
315
+ 'husband',
316
+ 'wife',
317
+ 'partner',
318
+ 'child',
319
+ 'parent',
320
+ 'sibling',
321
+ 'grandparent',
322
+ 'grandchild',
323
+ 'other_relative',
324
+ 'non_relative'
325
+ ])
326
+ })).min(1)
327
+ })),
328
+ total: z.int().gte(0),
329
+ limit: z.int().gte(1).lte(100),
330
+ offset: z.int().gte(0),
331
+ hasNext: z.optional(z.boolean())
332
+ });
333
+ /**
334
+ * Unique identifier of the household.
335
+ */
336
+ export const zHouseholdIdParam = z.uuid();
337
+ export const zListHouseholdsData = z.object({
338
+ body: z.optional(z.never()),
339
+ path: z.optional(z.never()),
340
+ query: z.optional(z.object({
341
+ q: z.optional(z.string()),
342
+ limit: z.optional(z.int().gte(1).lte(100)).default(25),
343
+ offset: z.optional(z.int().gte(0)).default(0)
344
+ }))
345
+ });
346
+ /**
347
+ * A paginated collection of households.
348
+ */
349
+ export const zListHouseholdsResponse = z.object({
350
+ items: z.array(z.object({
351
+ id: z.uuid().readonly(),
352
+ homeAddress: z.object({
353
+ addressLine1: z.string().min(1).max(150),
354
+ addressLine2: z.optional(z.string().max(150)),
355
+ city: z.string().min(1).max(100),
356
+ stateProvince: z.string().min(1).max(100),
357
+ postalCode: z.string().min(3).max(20),
358
+ county: z.optional(z.string().max(100))
359
+ }),
360
+ mailingAddress: z.optional(z.object({
361
+ addressLine1: z.string().min(1).max(150),
362
+ addressLine2: z.optional(z.string().max(150)),
363
+ city: z.string().min(1).max(100),
364
+ stateProvince: z.string().min(1).max(100),
365
+ postalCode: z.string().min(3).max(20),
366
+ county: z.optional(z.string().max(100))
367
+ })),
368
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
369
+ members: z.array(z.object({
370
+ personId: z.uuid(),
371
+ relationship: z.enum([
372
+ 'head_of_household',
373
+ 'spouse',
374
+ 'husband',
375
+ 'wife',
376
+ 'partner',
377
+ 'child',
378
+ 'parent',
379
+ 'sibling',
380
+ 'grandparent',
381
+ 'grandchild',
382
+ 'other_relative',
383
+ 'non_relative'
384
+ ])
385
+ })).min(1),
386
+ createdAt: z.iso.datetime().readonly(),
387
+ updatedAt: z.iso.datetime().readonly()
388
+ })),
389
+ total: z.int().gte(0),
390
+ limit: z.int().gte(1).lte(100),
391
+ offset: z.int().gte(0),
392
+ hasNext: z.optional(z.boolean())
393
+ });
394
+ export const zCreateHouseholdData = z.object({
395
+ body: z.object({
396
+ id: z.uuid().readonly(),
397
+ homeAddress: z.object({
398
+ addressLine1: z.string().min(1).max(150),
399
+ addressLine2: z.optional(z.string().max(150)),
400
+ city: z.string().min(1).max(100),
401
+ stateProvince: z.string().min(1).max(100),
402
+ postalCode: z.string().min(3).max(20),
403
+ county: z.optional(z.string().max(100))
404
+ }),
405
+ mailingAddress: z.optional(z.object({
406
+ addressLine1: z.string().min(1).max(150),
407
+ addressLine2: z.optional(z.string().max(150)),
408
+ city: z.string().min(1).max(100),
409
+ stateProvince: z.string().min(1).max(100),
410
+ postalCode: z.string().min(3).max(20),
411
+ county: z.optional(z.string().max(100))
412
+ })),
413
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
414
+ members: z.array(z.object({
415
+ personId: z.uuid(),
416
+ relationship: z.enum([
417
+ 'head_of_household',
418
+ 'spouse',
419
+ 'husband',
420
+ 'wife',
421
+ 'partner',
422
+ 'child',
423
+ 'parent',
424
+ 'sibling',
425
+ 'grandparent',
426
+ 'grandchild',
427
+ 'other_relative',
428
+ 'non_relative'
429
+ ])
430
+ })).min(1),
431
+ createdAt: z.iso.datetime().readonly(),
432
+ updatedAt: z.iso.datetime().readonly()
433
+ }).and(z.record(z.string(), z.unknown())),
434
+ path: z.optional(z.never()),
435
+ query: z.optional(z.never())
436
+ });
437
+ /**
438
+ * Represents a household unit with multiple members.
439
+ */
440
+ export const zCreateHouseholdResponse = z.object({
441
+ id: z.uuid().readonly(),
442
+ homeAddress: z.object({
443
+ addressLine1: z.string().min(1).max(150),
444
+ addressLine2: z.optional(z.string().max(150)),
445
+ city: z.string().min(1).max(100),
446
+ stateProvince: z.string().min(1).max(100),
447
+ postalCode: z.string().min(3).max(20),
448
+ county: z.optional(z.string().max(100))
449
+ }),
450
+ mailingAddress: z.optional(z.object({
451
+ addressLine1: z.string().min(1).max(150),
452
+ addressLine2: z.optional(z.string().max(150)),
453
+ city: z.string().min(1).max(100),
454
+ stateProvince: z.string().min(1).max(100),
455
+ postalCode: z.string().min(3).max(20),
456
+ county: z.optional(z.string().max(100))
457
+ })),
458
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
459
+ members: z.array(z.object({
460
+ personId: z.uuid(),
461
+ relationship: z.enum([
462
+ 'head_of_household',
463
+ 'spouse',
464
+ 'husband',
465
+ 'wife',
466
+ 'partner',
467
+ 'child',
468
+ 'parent',
469
+ 'sibling',
470
+ 'grandparent',
471
+ 'grandchild',
472
+ 'other_relative',
473
+ 'non_relative'
474
+ ])
475
+ })).min(1),
476
+ createdAt: z.iso.datetime().readonly(),
477
+ updatedAt: z.iso.datetime().readonly()
478
+ });
479
+ export const zDeleteHouseholdData = z.object({
480
+ body: z.optional(z.never()),
481
+ path: z.object({
482
+ householdId: z.uuid()
483
+ }),
484
+ query: z.optional(z.never())
485
+ });
486
+ /**
487
+ * Household deleted successfully.
488
+ */
489
+ export const zDeleteHouseholdResponse = z.void();
490
+ export const zGetHouseholdData = z.object({
491
+ body: z.optional(z.never()),
492
+ path: z.object({
493
+ householdId: z.uuid()
494
+ }),
495
+ query: z.optional(z.never())
496
+ });
497
+ /**
498
+ * Represents a household unit with multiple members.
499
+ */
500
+ export const zGetHouseholdResponse = z.object({
501
+ id: z.uuid().readonly(),
502
+ homeAddress: z.object({
503
+ addressLine1: z.string().min(1).max(150),
504
+ addressLine2: z.optional(z.string().max(150)),
505
+ city: z.string().min(1).max(100),
506
+ stateProvince: z.string().min(1).max(100),
507
+ postalCode: z.string().min(3).max(20),
508
+ county: z.optional(z.string().max(100))
509
+ }),
510
+ mailingAddress: z.optional(z.object({
511
+ addressLine1: z.string().min(1).max(150),
512
+ addressLine2: z.optional(z.string().max(150)),
513
+ city: z.string().min(1).max(100),
514
+ stateProvince: z.string().min(1).max(100),
515
+ postalCode: z.string().min(3).max(20),
516
+ county: z.optional(z.string().max(100))
517
+ })),
518
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
519
+ members: z.array(z.object({
520
+ personId: z.uuid(),
521
+ relationship: z.enum([
522
+ 'head_of_household',
523
+ 'spouse',
524
+ 'husband',
525
+ 'wife',
526
+ 'partner',
527
+ 'child',
528
+ 'parent',
529
+ 'sibling',
530
+ 'grandparent',
531
+ 'grandchild',
532
+ 'other_relative',
533
+ 'non_relative'
534
+ ])
535
+ })).min(1),
536
+ createdAt: z.iso.datetime().readonly(),
537
+ updatedAt: z.iso.datetime().readonly()
538
+ });
539
+ export const zUpdateHouseholdData = z.object({
540
+ body: z.object({
541
+ id: z.uuid().readonly(),
542
+ homeAddress: z.object({
543
+ addressLine1: z.string().min(1).max(150),
544
+ addressLine2: z.optional(z.string().max(150)),
545
+ city: z.string().min(1).max(100),
546
+ stateProvince: z.string().min(1).max(100),
547
+ postalCode: z.string().min(3).max(20),
548
+ county: z.optional(z.string().max(100))
549
+ }),
550
+ mailingAddress: z.optional(z.object({
551
+ addressLine1: z.string().min(1).max(150),
552
+ addressLine2: z.optional(z.string().max(150)),
553
+ city: z.string().min(1).max(100),
554
+ stateProvince: z.string().min(1).max(100),
555
+ postalCode: z.string().min(3).max(20),
556
+ county: z.optional(z.string().max(100))
557
+ })),
558
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
559
+ members: z.array(z.object({
560
+ personId: z.uuid(),
561
+ relationship: z.enum([
562
+ 'head_of_household',
563
+ 'spouse',
564
+ 'husband',
565
+ 'wife',
566
+ 'partner',
567
+ 'child',
568
+ 'parent',
569
+ 'sibling',
570
+ 'grandparent',
571
+ 'grandchild',
572
+ 'other_relative',
573
+ 'non_relative'
574
+ ])
575
+ })).min(1),
576
+ createdAt: z.iso.datetime().readonly(),
577
+ updatedAt: z.iso.datetime().readonly()
578
+ }).and(z.record(z.string(), z.unknown())),
579
+ path: z.object({
580
+ householdId: z.uuid()
581
+ }),
582
+ query: z.optional(z.never())
583
+ });
584
+ /**
585
+ * Represents a household unit with multiple members.
586
+ */
587
+ export const zUpdateHouseholdResponse = z.object({
588
+ id: z.uuid().readonly(),
589
+ homeAddress: z.object({
590
+ addressLine1: z.string().min(1).max(150),
591
+ addressLine2: z.optional(z.string().max(150)),
592
+ city: z.string().min(1).max(100),
593
+ stateProvince: z.string().min(1).max(100),
594
+ postalCode: z.string().min(3).max(20),
595
+ county: z.optional(z.string().max(100))
596
+ }),
597
+ mailingAddress: z.optional(z.object({
598
+ addressLine1: z.string().min(1).max(150),
599
+ addressLine2: z.optional(z.string().max(150)),
600
+ city: z.string().min(1).max(100),
601
+ stateProvince: z.string().min(1).max(100),
602
+ postalCode: z.string().min(3).max(20),
603
+ county: z.optional(z.string().max(100))
604
+ })),
605
+ phoneNumber: z.optional(z.string().regex(/^\+?[0-9 .\-()]{7,20}$/)),
606
+ members: z.array(z.object({
607
+ personId: z.uuid(),
608
+ relationship: z.enum([
609
+ 'head_of_household',
610
+ 'spouse',
611
+ 'husband',
612
+ 'wife',
613
+ 'partner',
614
+ 'child',
615
+ 'parent',
616
+ 'sibling',
617
+ 'grandparent',
618
+ 'grandchild',
619
+ 'other_relative',
620
+ 'non_relative'
621
+ ])
622
+ })).min(1),
623
+ createdAt: z.iso.datetime().readonly(),
624
+ updatedAt: z.iso.datetime().readonly()
625
+ });
@@ -0,0 +1,2 @@
1
+ import type { Client, Config } from './types.gen';
2
+ export declare const createClient: (config?: Config) => Client;