@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,1425 @@
1
+ export type ClientOptions = {
2
+ baseURL: 'https://api.example.com' | 'http://localhost:8080' | (string & {});
3
+ };
4
+ /**
5
+ * A single item of income, which may be earned or unearned.
6
+ */
7
+ export type Income = {
8
+ /**
9
+ * Unique identifier for the income.
10
+ */
11
+ readonly id?: string;
12
+ /**
13
+ * Foreign key reference to the person who has this income.
14
+ */
15
+ personId: string;
16
+ /**
17
+ * Optional foreign key reference to the employer, third-party or self related to this income.
18
+ */
19
+ employerId?: string;
20
+ /**
21
+ * The type of income this item represents.
22
+ */
23
+ type: 'employed' | 'self_employed' | 'unearned';
24
+ /**
25
+ * Types of unearned income.
26
+ */
27
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
28
+ /**
29
+ * Whether the income is net or gross.
30
+ */
31
+ incomeBasis?: 'net' | 'gross';
32
+ /**
33
+ * The amount of income this item represents.
34
+ */
35
+ amount: number;
36
+ /**
37
+ * The frequency with which the income is received.
38
+ */
39
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
40
+ /**
41
+ * The date the income was reported on.
42
+ */
43
+ reportedOn: string;
44
+ /**
45
+ * The source of the income.
46
+ */
47
+ source: 'client' | 'authorized_assister' | 'county_worker';
48
+ /**
49
+ * When did the applicant first receive this income?
50
+ */
51
+ startDate: string;
52
+ /**
53
+ * Does applicant expect this income to end soon or has it already ended?
54
+ */
55
+ endDate?: string;
56
+ /**
57
+ * Whether the income has been verified.
58
+ */
59
+ isVerified?: boolean;
60
+ /**
61
+ * The date the income was verified.
62
+ */
63
+ verifiedDate?: string;
64
+ /**
65
+ * The county worker who verified the income.
66
+ */
67
+ verifiedBy?: string;
68
+ /**
69
+ * Array of verification sources related to this income.
70
+ */
71
+ verificationSourceIds?: Array<string>;
72
+ };
73
+ /**
74
+ * A single item of income, which may be earned or unearned.
75
+ */
76
+ export type IncomeCreate = {
77
+ /**
78
+ * Unique identifier for the income.
79
+ */
80
+ readonly id?: string;
81
+ /**
82
+ * Foreign key reference to the person who has this income.
83
+ */
84
+ personId: string;
85
+ /**
86
+ * Optional foreign key reference to the employer, third-party or self related to this income.
87
+ */
88
+ employerId?: string;
89
+ /**
90
+ * The type of income this item represents.
91
+ */
92
+ type: 'employed' | 'self_employed' | 'unearned';
93
+ /**
94
+ * Types of unearned income.
95
+ */
96
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
97
+ /**
98
+ * Whether the income is net or gross.
99
+ */
100
+ incomeBasis?: 'net' | 'gross';
101
+ /**
102
+ * The amount of income this item represents.
103
+ */
104
+ amount: number;
105
+ /**
106
+ * The frequency with which the income is received.
107
+ */
108
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
109
+ /**
110
+ * The date the income was reported on.
111
+ */
112
+ reportedOn: string;
113
+ /**
114
+ * The source of the income.
115
+ */
116
+ source: 'client' | 'authorized_assister' | 'county_worker';
117
+ /**
118
+ * When did the applicant first receive this income?
119
+ */
120
+ startDate: string;
121
+ /**
122
+ * Does applicant expect this income to end soon or has it already ended?
123
+ */
124
+ endDate?: string;
125
+ /**
126
+ * Whether the income has been verified.
127
+ */
128
+ isVerified?: boolean;
129
+ /**
130
+ * The date the income was verified.
131
+ */
132
+ verifiedDate?: string;
133
+ /**
134
+ * The county worker who verified the income.
135
+ */
136
+ verifiedBy?: string;
137
+ /**
138
+ * Array of verification sources related to this income.
139
+ */
140
+ verificationSourceIds?: Array<string>;
141
+ };
142
+ /**
143
+ * A single item of income, which may be earned or unearned.
144
+ */
145
+ export type IncomeUpdate = {
146
+ /**
147
+ * Unique identifier for the income.
148
+ */
149
+ readonly id?: string;
150
+ /**
151
+ * Foreign key reference to the person who has this income.
152
+ */
153
+ personId: string;
154
+ /**
155
+ * Optional foreign key reference to the employer, third-party or self related to this income.
156
+ */
157
+ employerId?: string;
158
+ /**
159
+ * The type of income this item represents.
160
+ */
161
+ type: 'employed' | 'self_employed' | 'unearned';
162
+ /**
163
+ * Types of unearned income.
164
+ */
165
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
166
+ /**
167
+ * Whether the income is net or gross.
168
+ */
169
+ incomeBasis?: 'net' | 'gross';
170
+ /**
171
+ * The amount of income this item represents.
172
+ */
173
+ amount: number;
174
+ /**
175
+ * The frequency with which the income is received.
176
+ */
177
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
178
+ /**
179
+ * The date the income was reported on.
180
+ */
181
+ reportedOn: string;
182
+ /**
183
+ * The source of the income.
184
+ */
185
+ source: 'client' | 'authorized_assister' | 'county_worker';
186
+ /**
187
+ * When did the applicant first receive this income?
188
+ */
189
+ startDate: string;
190
+ /**
191
+ * Does applicant expect this income to end soon or has it already ended?
192
+ */
193
+ endDate?: string;
194
+ /**
195
+ * Whether the income has been verified.
196
+ */
197
+ isVerified?: boolean;
198
+ /**
199
+ * The date the income was verified.
200
+ */
201
+ verifiedDate?: string;
202
+ /**
203
+ * The county worker who verified the income.
204
+ */
205
+ verifiedBy?: string;
206
+ /**
207
+ * Array of verification sources related to this income.
208
+ */
209
+ verificationSourceIds?: Array<string>;
210
+ };
211
+ export type IncomeList = {
212
+ items: Array<{
213
+ /**
214
+ * Unique identifier for the income.
215
+ */
216
+ readonly id?: string;
217
+ /**
218
+ * Foreign key reference to the person who has this income.
219
+ */
220
+ personId: string;
221
+ /**
222
+ * Optional foreign key reference to the employer, third-party or self related to this income.
223
+ */
224
+ employerId?: string;
225
+ /**
226
+ * The type of income this item represents.
227
+ */
228
+ type: 'employed' | 'self_employed' | 'unearned';
229
+ /**
230
+ * Types of unearned income.
231
+ */
232
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
233
+ /**
234
+ * Whether the income is net or gross.
235
+ */
236
+ incomeBasis?: 'net' | 'gross';
237
+ /**
238
+ * The amount of income this item represents.
239
+ */
240
+ amount: number;
241
+ /**
242
+ * The frequency with which the income is received.
243
+ */
244
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
245
+ /**
246
+ * The date the income was reported on.
247
+ */
248
+ reportedOn: string;
249
+ /**
250
+ * The source of the income.
251
+ */
252
+ source: 'client' | 'authorized_assister' | 'county_worker';
253
+ /**
254
+ * When did the applicant first receive this income?
255
+ */
256
+ startDate: string;
257
+ /**
258
+ * Does applicant expect this income to end soon or has it already ended?
259
+ */
260
+ endDate?: string;
261
+ /**
262
+ * Whether the income has been verified.
263
+ */
264
+ isVerified?: boolean;
265
+ /**
266
+ * The date the income was verified.
267
+ */
268
+ verifiedDate?: string;
269
+ /**
270
+ * The county worker who verified the income.
271
+ */
272
+ verifiedBy?: string;
273
+ /**
274
+ * Array of verification sources related to this income.
275
+ */
276
+ verificationSourceIds?: Array<string>;
277
+ }>;
278
+ /**
279
+ * Total number of income available.
280
+ */
281
+ total: number;
282
+ /**
283
+ * Maximum number of income requested.
284
+ */
285
+ limit: number;
286
+ /**
287
+ * Number of items skipped before the current page.
288
+ */
289
+ offset: number;
290
+ };
291
+ /**
292
+ * A single item of income, which may be earned or unearned.
293
+ */
294
+ export type IncomeWritable = {
295
+ /**
296
+ * Foreign key reference to the person who has this income.
297
+ */
298
+ personId: string;
299
+ /**
300
+ * Optional foreign key reference to the employer, third-party or self related to this income.
301
+ */
302
+ employerId?: string;
303
+ /**
304
+ * The type of income this item represents.
305
+ */
306
+ type: 'employed' | 'self_employed' | 'unearned';
307
+ /**
308
+ * Types of unearned income.
309
+ */
310
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
311
+ /**
312
+ * Whether the income is net or gross.
313
+ */
314
+ incomeBasis?: 'net' | 'gross';
315
+ /**
316
+ * The amount of income this item represents.
317
+ */
318
+ amount: number;
319
+ /**
320
+ * The frequency with which the income is received.
321
+ */
322
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
323
+ /**
324
+ * The date the income was reported on.
325
+ */
326
+ reportedOn: string;
327
+ /**
328
+ * The source of the income.
329
+ */
330
+ source: 'client' | 'authorized_assister' | 'county_worker';
331
+ /**
332
+ * When did the applicant first receive this income?
333
+ */
334
+ startDate: string;
335
+ /**
336
+ * Does applicant expect this income to end soon or has it already ended?
337
+ */
338
+ endDate?: string;
339
+ /**
340
+ * Whether the income has been verified.
341
+ */
342
+ isVerified?: boolean;
343
+ /**
344
+ * The date the income was verified.
345
+ */
346
+ verifiedDate?: string;
347
+ /**
348
+ * The county worker who verified the income.
349
+ */
350
+ verifiedBy?: string;
351
+ /**
352
+ * Array of verification sources related to this income.
353
+ */
354
+ verificationSourceIds?: Array<string>;
355
+ };
356
+ /**
357
+ * A single item of income, which may be earned or unearned.
358
+ */
359
+ export type IncomeCreateWritable = {
360
+ /**
361
+ * Foreign key reference to the person who has this income.
362
+ */
363
+ personId: string;
364
+ /**
365
+ * Optional foreign key reference to the employer, third-party or self related to this income.
366
+ */
367
+ employerId?: string;
368
+ /**
369
+ * The type of income this item represents.
370
+ */
371
+ type: 'employed' | 'self_employed' | 'unearned';
372
+ /**
373
+ * Types of unearned income.
374
+ */
375
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
376
+ /**
377
+ * Whether the income is net or gross.
378
+ */
379
+ incomeBasis?: 'net' | 'gross';
380
+ /**
381
+ * The amount of income this item represents.
382
+ */
383
+ amount: number;
384
+ /**
385
+ * The frequency with which the income is received.
386
+ */
387
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
388
+ /**
389
+ * The date the income was reported on.
390
+ */
391
+ reportedOn: string;
392
+ /**
393
+ * The source of the income.
394
+ */
395
+ source: 'client' | 'authorized_assister' | 'county_worker';
396
+ /**
397
+ * When did the applicant first receive this income?
398
+ */
399
+ startDate: string;
400
+ /**
401
+ * Does applicant expect this income to end soon or has it already ended?
402
+ */
403
+ endDate?: string;
404
+ /**
405
+ * Whether the income has been verified.
406
+ */
407
+ isVerified?: boolean;
408
+ /**
409
+ * The date the income was verified.
410
+ */
411
+ verifiedDate?: string;
412
+ /**
413
+ * The county worker who verified the income.
414
+ */
415
+ verifiedBy?: string;
416
+ /**
417
+ * Array of verification sources related to this income.
418
+ */
419
+ verificationSourceIds?: Array<string>;
420
+ };
421
+ /**
422
+ * A single item of income, which may be earned or unearned.
423
+ */
424
+ export type IncomeUpdateWritable = {
425
+ /**
426
+ * Foreign key reference to the person who has this income.
427
+ */
428
+ personId: string;
429
+ /**
430
+ * Optional foreign key reference to the employer, third-party or self related to this income.
431
+ */
432
+ employerId?: string;
433
+ /**
434
+ * The type of income this item represents.
435
+ */
436
+ type: 'employed' | 'self_employed' | 'unearned';
437
+ /**
438
+ * Types of unearned income.
439
+ */
440
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
441
+ /**
442
+ * Whether the income is net or gross.
443
+ */
444
+ incomeBasis?: 'net' | 'gross';
445
+ /**
446
+ * The amount of income this item represents.
447
+ */
448
+ amount: number;
449
+ /**
450
+ * The frequency with which the income is received.
451
+ */
452
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
453
+ /**
454
+ * The date the income was reported on.
455
+ */
456
+ reportedOn: string;
457
+ /**
458
+ * The source of the income.
459
+ */
460
+ source: 'client' | 'authorized_assister' | 'county_worker';
461
+ /**
462
+ * When did the applicant first receive this income?
463
+ */
464
+ startDate: string;
465
+ /**
466
+ * Does applicant expect this income to end soon or has it already ended?
467
+ */
468
+ endDate?: string;
469
+ /**
470
+ * Whether the income has been verified.
471
+ */
472
+ isVerified?: boolean;
473
+ /**
474
+ * The date the income was verified.
475
+ */
476
+ verifiedDate?: string;
477
+ /**
478
+ * The county worker who verified the income.
479
+ */
480
+ verifiedBy?: string;
481
+ /**
482
+ * Array of verification sources related to this income.
483
+ */
484
+ verificationSourceIds?: Array<string>;
485
+ };
486
+ export type IncomeListWritable = {
487
+ items: Array<{
488
+ /**
489
+ * Foreign key reference to the person who has this income.
490
+ */
491
+ personId: string;
492
+ /**
493
+ * Optional foreign key reference to the employer, third-party or self related to this income.
494
+ */
495
+ employerId?: string;
496
+ /**
497
+ * The type of income this item represents.
498
+ */
499
+ type: 'employed' | 'self_employed' | 'unearned';
500
+ /**
501
+ * Types of unearned income.
502
+ */
503
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
504
+ /**
505
+ * Whether the income is net or gross.
506
+ */
507
+ incomeBasis?: 'net' | 'gross';
508
+ /**
509
+ * The amount of income this item represents.
510
+ */
511
+ amount: number;
512
+ /**
513
+ * The frequency with which the income is received.
514
+ */
515
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
516
+ /**
517
+ * The date the income was reported on.
518
+ */
519
+ reportedOn: string;
520
+ /**
521
+ * The source of the income.
522
+ */
523
+ source: 'client' | 'authorized_assister' | 'county_worker';
524
+ /**
525
+ * When did the applicant first receive this income?
526
+ */
527
+ startDate: string;
528
+ /**
529
+ * Does applicant expect this income to end soon or has it already ended?
530
+ */
531
+ endDate?: string;
532
+ /**
533
+ * Whether the income has been verified.
534
+ */
535
+ isVerified?: boolean;
536
+ /**
537
+ * The date the income was verified.
538
+ */
539
+ verifiedDate?: string;
540
+ /**
541
+ * The county worker who verified the income.
542
+ */
543
+ verifiedBy?: string;
544
+ /**
545
+ * Array of verification sources related to this income.
546
+ */
547
+ verificationSourceIds?: Array<string>;
548
+ }>;
549
+ /**
550
+ * Total number of income available.
551
+ */
552
+ total: number;
553
+ /**
554
+ * Maximum number of income requested.
555
+ */
556
+ limit: number;
557
+ /**
558
+ * Number of items skipped before the current page.
559
+ */
560
+ offset: number;
561
+ };
562
+ export type ListIncomeData = {
563
+ body?: never;
564
+ path?: never;
565
+ query?: {
566
+ /**
567
+ * Search query using field:value syntax. Multiple conditions separated by
568
+ * spaces are ANDed together.
569
+ *
570
+ * **URL Encoding:** This parameter must be URL-encoded when sent over HTTP.
571
+ * Most HTTP clients handle this automatically. Examples in this documentation
572
+ * show human-readable syntax for clarity.
573
+ *
574
+ * ## Syntax
575
+ *
576
+ * | Pattern | Description | Example |
577
+ * |---------|-------------|---------|
578
+ * | `term` | Full-text exact match | `john` |
579
+ * | `*term*` | Full-text contains | `*john*` |
580
+ * | `term*` | Full-text starts with | `john*` |
581
+ * | `*term` | Full-text ends with | `*smith` |
582
+ * | `field:value` | Exact match on field | `status:approved` |
583
+ * | `field:*value*` | Contains (case-insensitive) | `name:*john*` |
584
+ * | `field:value*` | Starts with | `name:john*` |
585
+ * | `field:*value` | Ends with | `email:*@example.com` |
586
+ * | `field:"value"` | Quoted value (for spaces) | `name:"john doe"` |
587
+ * | `field.nested:value` | Nested field (dot notation) | `address.state:CA` |
588
+ * | `field:>value` | Greater than | `income:>1000` |
589
+ * | `field:>=value` | Greater than or equal | `income:>=1000` |
590
+ * | `field:<value` | Less than | `income:<5000` |
591
+ * | `field:<=value` | Less than or equal | `income:<=5000` |
592
+ * | `field:val1,val2` | Match any value (OR) | `status:approved,pending` |
593
+ * | `-field:value` | Exclude / negate | `-status:denied` |
594
+ * | `field:*` | Field exists (not null) | `email:*` |
595
+ * | `-field:*` | Field does not exist | `-deletedAt:*` |
596
+ *
597
+ * ## Examples
598
+ *
599
+ * - `john` — exact match for "john" in searchable fields
600
+ * - `*john*` — contains "john" in searchable fields
601
+ * - `name:*smith*` — name contains "smith" (case-insensitive)
602
+ * - `email:*@example.com` — email ends with "@example.com"
603
+ * - `status:approved` — exact match on status field
604
+ * - `status:approved,pending` — status is "approved" OR "pending"
605
+ * - `income:>=1000` — income greater than or equal to 1000
606
+ * - `created:>2024-01-01` — created after January 1, 2024
607
+ * - `status:approved income:>=1000` — approved AND income >= 1000 (multiple conditions)
608
+ * - `-status:denied` — exclude records with status "denied"
609
+ * - `-deletedAt:*` — only records where deletedAt does not exist
610
+ * - `applicant.state:CA` — nested field filter
611
+ *
612
+ * ## URL Encoding Reference
613
+ *
614
+ * When manually constructing URLs, encode these characters:
615
+ *
616
+ * | Character | Encoded |
617
+ * |-----------|---------|
618
+ * | (space) | `%20` or `+` |
619
+ * | `"` | `%22` |
620
+ * | `:` | `%3A` |
621
+ * | `>` | `%3E` |
622
+ * | `<` | `%3C` |
623
+ * | `,` | `%2C` |
624
+ *
625
+ * **Example:**
626
+ * ```
627
+ * Human-readable: q=status:approved income:>=1000
628
+ * URL-encoded: q=status%3Aapproved%20income%3A%3E%3D1000
629
+ * ```
630
+ *
631
+ */
632
+ q?: string;
633
+ /**
634
+ * Maximum number of items to return (1-100).
635
+ */
636
+ limit?: number;
637
+ /**
638
+ * Number of items to skip before collecting results.
639
+ */
640
+ offset?: number;
641
+ };
642
+ url: '/incomes';
643
+ };
644
+ export type ListIncomeErrors = {
645
+ /**
646
+ * The request is malformed or contains invalid parameters.
647
+ */
648
+ 400: {
649
+ /**
650
+ * Machine-readable error code.
651
+ */
652
+ code: string;
653
+ /**
654
+ * Human-readable error description.
655
+ */
656
+ message: string;
657
+ /**
658
+ * Additional error details.
659
+ */
660
+ details?: Array<{
661
+ [key: string]: unknown;
662
+ }>;
663
+ };
664
+ /**
665
+ * An unexpected error occurred on the server.
666
+ */
667
+ 500: {
668
+ /**
669
+ * Machine-readable error code.
670
+ */
671
+ code: string;
672
+ /**
673
+ * Human-readable error description.
674
+ */
675
+ message: string;
676
+ /**
677
+ * Additional error details.
678
+ */
679
+ details?: Array<{
680
+ [key: string]: unknown;
681
+ }>;
682
+ };
683
+ };
684
+ export type ListIncomeError = ListIncomeErrors[keyof ListIncomeErrors];
685
+ export type ListIncomeResponses = {
686
+ /**
687
+ * A paginated collection of income.
688
+ */
689
+ 200: {
690
+ items: Array<{
691
+ /**
692
+ * Unique identifier for the income.
693
+ */
694
+ readonly id?: string;
695
+ /**
696
+ * Foreign key reference to the person who has this income.
697
+ */
698
+ personId: string;
699
+ /**
700
+ * Optional foreign key reference to the employer, third-party or self related to this income.
701
+ */
702
+ employerId?: string;
703
+ /**
704
+ * The type of income this item represents.
705
+ */
706
+ type: 'employed' | 'self_employed' | 'unearned';
707
+ /**
708
+ * Types of unearned income.
709
+ */
710
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
711
+ /**
712
+ * Whether the income is net or gross.
713
+ */
714
+ incomeBasis?: 'net' | 'gross';
715
+ /**
716
+ * The amount of income this item represents.
717
+ */
718
+ amount: number;
719
+ /**
720
+ * The frequency with which the income is received.
721
+ */
722
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
723
+ /**
724
+ * The date the income was reported on.
725
+ */
726
+ reportedOn: string;
727
+ /**
728
+ * The source of the income.
729
+ */
730
+ source: 'client' | 'authorized_assister' | 'county_worker';
731
+ /**
732
+ * When did the applicant first receive this income?
733
+ */
734
+ startDate: string;
735
+ /**
736
+ * Does applicant expect this income to end soon or has it already ended?
737
+ */
738
+ endDate?: string;
739
+ /**
740
+ * Whether the income has been verified.
741
+ */
742
+ isVerified?: boolean;
743
+ /**
744
+ * The date the income was verified.
745
+ */
746
+ verifiedDate?: string;
747
+ /**
748
+ * The county worker who verified the income.
749
+ */
750
+ verifiedBy?: string;
751
+ /**
752
+ * Array of verification sources related to this income.
753
+ */
754
+ verificationSourceIds?: Array<string>;
755
+ }>;
756
+ /**
757
+ * Total number of income available.
758
+ */
759
+ total: number;
760
+ /**
761
+ * Maximum number of income requested.
762
+ */
763
+ limit: number;
764
+ /**
765
+ * Number of items skipped before the current page.
766
+ */
767
+ offset: number;
768
+ };
769
+ };
770
+ export type ListIncomeResponse = ListIncomeResponses[keyof ListIncomeResponses];
771
+ export type CreateIncomeData = {
772
+ body: {
773
+ /**
774
+ * Unique identifier for the income.
775
+ */
776
+ readonly id?: string;
777
+ /**
778
+ * Foreign key reference to the person who has this income.
779
+ */
780
+ personId: string;
781
+ /**
782
+ * Optional foreign key reference to the employer, third-party or self related to this income.
783
+ */
784
+ employerId?: string;
785
+ /**
786
+ * The type of income this item represents.
787
+ */
788
+ type: 'employed' | 'self_employed' | 'unearned';
789
+ /**
790
+ * Types of unearned income.
791
+ */
792
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
793
+ /**
794
+ * Whether the income is net or gross.
795
+ */
796
+ incomeBasis?: 'net' | 'gross';
797
+ /**
798
+ * The amount of income this item represents.
799
+ */
800
+ amount: number;
801
+ /**
802
+ * The frequency with which the income is received.
803
+ */
804
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
805
+ /**
806
+ * The date the income was reported on.
807
+ */
808
+ reportedOn: string;
809
+ /**
810
+ * The source of the income.
811
+ */
812
+ source: 'client' | 'authorized_assister' | 'county_worker';
813
+ /**
814
+ * When did the applicant first receive this income?
815
+ */
816
+ startDate: string;
817
+ /**
818
+ * Does applicant expect this income to end soon or has it already ended?
819
+ */
820
+ endDate?: string;
821
+ /**
822
+ * Whether the income has been verified.
823
+ */
824
+ isVerified?: boolean;
825
+ /**
826
+ * The date the income was verified.
827
+ */
828
+ verifiedDate?: string;
829
+ /**
830
+ * The county worker who verified the income.
831
+ */
832
+ verifiedBy?: string;
833
+ /**
834
+ * Array of verification sources related to this income.
835
+ */
836
+ verificationSourceIds?: Array<string>;
837
+ } & {
838
+ [key: string]: unknown;
839
+ };
840
+ path?: never;
841
+ query?: never;
842
+ url: '/incomes';
843
+ };
844
+ export type CreateIncomeErrors = {
845
+ /**
846
+ * The request is malformed or contains invalid parameters.
847
+ */
848
+ 400: {
849
+ /**
850
+ * Machine-readable error code.
851
+ */
852
+ code: string;
853
+ /**
854
+ * Human-readable error description.
855
+ */
856
+ message: string;
857
+ /**
858
+ * Additional error details.
859
+ */
860
+ details?: Array<{
861
+ [key: string]: unknown;
862
+ }>;
863
+ };
864
+ /**
865
+ * A conflict occurred with the current state of the resource.
866
+ */
867
+ 409: {
868
+ /**
869
+ * Machine-readable error code.
870
+ */
871
+ code: string;
872
+ /**
873
+ * Human-readable error description.
874
+ */
875
+ message: string;
876
+ /**
877
+ * Additional error details.
878
+ */
879
+ details?: Array<{
880
+ [key: string]: unknown;
881
+ }>;
882
+ };
883
+ /**
884
+ * The request was well-formed but contained semantic errors.
885
+ */
886
+ 422: {
887
+ /**
888
+ * Machine-readable error code.
889
+ */
890
+ code: string;
891
+ /**
892
+ * Human-readable error description.
893
+ */
894
+ message: string;
895
+ /**
896
+ * Additional error details.
897
+ */
898
+ details?: Array<{
899
+ [key: string]: unknown;
900
+ }>;
901
+ };
902
+ /**
903
+ * An unexpected error occurred on the server.
904
+ */
905
+ 500: {
906
+ /**
907
+ * Machine-readable error code.
908
+ */
909
+ code: string;
910
+ /**
911
+ * Human-readable error description.
912
+ */
913
+ message: string;
914
+ /**
915
+ * Additional error details.
916
+ */
917
+ details?: Array<{
918
+ [key: string]: unknown;
919
+ }>;
920
+ };
921
+ };
922
+ export type CreateIncomeError = CreateIncomeErrors[keyof CreateIncomeErrors];
923
+ export type CreateIncomeResponses = {
924
+ /**
925
+ * A single item of income, which may be earned or unearned.
926
+ */
927
+ 201: {
928
+ /**
929
+ * Unique identifier for the income.
930
+ */
931
+ readonly id?: string;
932
+ /**
933
+ * Foreign key reference to the person who has this income.
934
+ */
935
+ personId: string;
936
+ /**
937
+ * Optional foreign key reference to the employer, third-party or self related to this income.
938
+ */
939
+ employerId?: string;
940
+ /**
941
+ * The type of income this item represents.
942
+ */
943
+ type: 'employed' | 'self_employed' | 'unearned';
944
+ /**
945
+ * Types of unearned income.
946
+ */
947
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
948
+ /**
949
+ * Whether the income is net or gross.
950
+ */
951
+ incomeBasis?: 'net' | 'gross';
952
+ /**
953
+ * The amount of income this item represents.
954
+ */
955
+ amount: number;
956
+ /**
957
+ * The frequency with which the income is received.
958
+ */
959
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
960
+ /**
961
+ * The date the income was reported on.
962
+ */
963
+ reportedOn: string;
964
+ /**
965
+ * The source of the income.
966
+ */
967
+ source: 'client' | 'authorized_assister' | 'county_worker';
968
+ /**
969
+ * When did the applicant first receive this income?
970
+ */
971
+ startDate: string;
972
+ /**
973
+ * Does applicant expect this income to end soon or has it already ended?
974
+ */
975
+ endDate?: string;
976
+ /**
977
+ * Whether the income has been verified.
978
+ */
979
+ isVerified?: boolean;
980
+ /**
981
+ * The date the income was verified.
982
+ */
983
+ verifiedDate?: string;
984
+ /**
985
+ * The county worker who verified the income.
986
+ */
987
+ verifiedBy?: string;
988
+ /**
989
+ * Array of verification sources related to this income.
990
+ */
991
+ verificationSourceIds?: Array<string>;
992
+ };
993
+ };
994
+ export type CreateIncomeResponse = CreateIncomeResponses[keyof CreateIncomeResponses];
995
+ export type DeleteIncomeData = {
996
+ body?: never;
997
+ path: {
998
+ /**
999
+ * Unique identifier of the income.
1000
+ */
1001
+ incomeId: string;
1002
+ };
1003
+ query?: never;
1004
+ url: '/incomes/{incomeId}';
1005
+ };
1006
+ export type DeleteIncomeErrors = {
1007
+ /**
1008
+ * The requested resource was not found.
1009
+ */
1010
+ 404: {
1011
+ /**
1012
+ * Machine-readable error code.
1013
+ */
1014
+ code: string;
1015
+ /**
1016
+ * Human-readable error description.
1017
+ */
1018
+ message: string;
1019
+ /**
1020
+ * Additional error details.
1021
+ */
1022
+ details?: Array<{
1023
+ [key: string]: unknown;
1024
+ }>;
1025
+ };
1026
+ /**
1027
+ * An unexpected error occurred on the server.
1028
+ */
1029
+ 500: {
1030
+ /**
1031
+ * Machine-readable error code.
1032
+ */
1033
+ code: string;
1034
+ /**
1035
+ * Human-readable error description.
1036
+ */
1037
+ message: string;
1038
+ /**
1039
+ * Additional error details.
1040
+ */
1041
+ details?: Array<{
1042
+ [key: string]: unknown;
1043
+ }>;
1044
+ };
1045
+ };
1046
+ export type DeleteIncomeError = DeleteIncomeErrors[keyof DeleteIncomeErrors];
1047
+ export type DeleteIncomeResponses = {
1048
+ /**
1049
+ * Income deleted successfully.
1050
+ */
1051
+ 204: void;
1052
+ };
1053
+ export type DeleteIncomeResponse = DeleteIncomeResponses[keyof DeleteIncomeResponses];
1054
+ export type GetIncomeData = {
1055
+ body?: never;
1056
+ path: {
1057
+ /**
1058
+ * Unique identifier of the income.
1059
+ */
1060
+ incomeId: string;
1061
+ };
1062
+ query?: never;
1063
+ url: '/incomes/{incomeId}';
1064
+ };
1065
+ export type GetIncomeErrors = {
1066
+ /**
1067
+ * The requested resource was not found.
1068
+ */
1069
+ 404: {
1070
+ /**
1071
+ * Machine-readable error code.
1072
+ */
1073
+ code: string;
1074
+ /**
1075
+ * Human-readable error description.
1076
+ */
1077
+ message: string;
1078
+ /**
1079
+ * Additional error details.
1080
+ */
1081
+ details?: Array<{
1082
+ [key: string]: unknown;
1083
+ }>;
1084
+ };
1085
+ /**
1086
+ * An unexpected error occurred on the server.
1087
+ */
1088
+ 500: {
1089
+ /**
1090
+ * Machine-readable error code.
1091
+ */
1092
+ code: string;
1093
+ /**
1094
+ * Human-readable error description.
1095
+ */
1096
+ message: string;
1097
+ /**
1098
+ * Additional error details.
1099
+ */
1100
+ details?: Array<{
1101
+ [key: string]: unknown;
1102
+ }>;
1103
+ };
1104
+ };
1105
+ export type GetIncomeError = GetIncomeErrors[keyof GetIncomeErrors];
1106
+ export type GetIncomeResponses = {
1107
+ /**
1108
+ * A single item of income, which may be earned or unearned.
1109
+ */
1110
+ 200: {
1111
+ /**
1112
+ * Unique identifier for the income.
1113
+ */
1114
+ readonly id?: string;
1115
+ /**
1116
+ * Foreign key reference to the person who has this income.
1117
+ */
1118
+ personId: string;
1119
+ /**
1120
+ * Optional foreign key reference to the employer, third-party or self related to this income.
1121
+ */
1122
+ employerId?: string;
1123
+ /**
1124
+ * The type of income this item represents.
1125
+ */
1126
+ type: 'employed' | 'self_employed' | 'unearned';
1127
+ /**
1128
+ * Types of unearned income.
1129
+ */
1130
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
1131
+ /**
1132
+ * Whether the income is net or gross.
1133
+ */
1134
+ incomeBasis?: 'net' | 'gross';
1135
+ /**
1136
+ * The amount of income this item represents.
1137
+ */
1138
+ amount: number;
1139
+ /**
1140
+ * The frequency with which the income is received.
1141
+ */
1142
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
1143
+ /**
1144
+ * The date the income was reported on.
1145
+ */
1146
+ reportedOn: string;
1147
+ /**
1148
+ * The source of the income.
1149
+ */
1150
+ source: 'client' | 'authorized_assister' | 'county_worker';
1151
+ /**
1152
+ * When did the applicant first receive this income?
1153
+ */
1154
+ startDate: string;
1155
+ /**
1156
+ * Does applicant expect this income to end soon or has it already ended?
1157
+ */
1158
+ endDate?: string;
1159
+ /**
1160
+ * Whether the income has been verified.
1161
+ */
1162
+ isVerified?: boolean;
1163
+ /**
1164
+ * The date the income was verified.
1165
+ */
1166
+ verifiedDate?: string;
1167
+ /**
1168
+ * The county worker who verified the income.
1169
+ */
1170
+ verifiedBy?: string;
1171
+ /**
1172
+ * Array of verification sources related to this income.
1173
+ */
1174
+ verificationSourceIds?: Array<string>;
1175
+ };
1176
+ };
1177
+ export type GetIncomeResponse = GetIncomeResponses[keyof GetIncomeResponses];
1178
+ export type UpdateIncomeData = {
1179
+ body: {
1180
+ /**
1181
+ * Unique identifier for the income.
1182
+ */
1183
+ readonly id?: string;
1184
+ /**
1185
+ * Foreign key reference to the person who has this income.
1186
+ */
1187
+ personId: string;
1188
+ /**
1189
+ * Optional foreign key reference to the employer, third-party or self related to this income.
1190
+ */
1191
+ employerId?: string;
1192
+ /**
1193
+ * The type of income this item represents.
1194
+ */
1195
+ type: 'employed' | 'self_employed' | 'unearned';
1196
+ /**
1197
+ * Types of unearned income.
1198
+ */
1199
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
1200
+ /**
1201
+ * Whether the income is net or gross.
1202
+ */
1203
+ incomeBasis?: 'net' | 'gross';
1204
+ /**
1205
+ * The amount of income this item represents.
1206
+ */
1207
+ amount: number;
1208
+ /**
1209
+ * The frequency with which the income is received.
1210
+ */
1211
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
1212
+ /**
1213
+ * The date the income was reported on.
1214
+ */
1215
+ reportedOn: string;
1216
+ /**
1217
+ * The source of the income.
1218
+ */
1219
+ source: 'client' | 'authorized_assister' | 'county_worker';
1220
+ /**
1221
+ * When did the applicant first receive this income?
1222
+ */
1223
+ startDate: string;
1224
+ /**
1225
+ * Does applicant expect this income to end soon or has it already ended?
1226
+ */
1227
+ endDate?: string;
1228
+ /**
1229
+ * Whether the income has been verified.
1230
+ */
1231
+ isVerified?: boolean;
1232
+ /**
1233
+ * The date the income was verified.
1234
+ */
1235
+ verifiedDate?: string;
1236
+ /**
1237
+ * The county worker who verified the income.
1238
+ */
1239
+ verifiedBy?: string;
1240
+ /**
1241
+ * Array of verification sources related to this income.
1242
+ */
1243
+ verificationSourceIds?: Array<string>;
1244
+ } & {
1245
+ [key: string]: unknown;
1246
+ };
1247
+ path: {
1248
+ /**
1249
+ * Unique identifier of the income.
1250
+ */
1251
+ incomeId: string;
1252
+ };
1253
+ query?: never;
1254
+ url: '/incomes/{incomeId}';
1255
+ };
1256
+ export type UpdateIncomeErrors = {
1257
+ /**
1258
+ * The request is malformed or contains invalid parameters.
1259
+ */
1260
+ 400: {
1261
+ /**
1262
+ * Machine-readable error code.
1263
+ */
1264
+ code: string;
1265
+ /**
1266
+ * Human-readable error description.
1267
+ */
1268
+ message: string;
1269
+ /**
1270
+ * Additional error details.
1271
+ */
1272
+ details?: Array<{
1273
+ [key: string]: unknown;
1274
+ }>;
1275
+ };
1276
+ /**
1277
+ * The requested resource was not found.
1278
+ */
1279
+ 404: {
1280
+ /**
1281
+ * Machine-readable error code.
1282
+ */
1283
+ code: string;
1284
+ /**
1285
+ * Human-readable error description.
1286
+ */
1287
+ message: string;
1288
+ /**
1289
+ * Additional error details.
1290
+ */
1291
+ details?: Array<{
1292
+ [key: string]: unknown;
1293
+ }>;
1294
+ };
1295
+ /**
1296
+ * A conflict occurred with the current state of the resource.
1297
+ */
1298
+ 409: {
1299
+ /**
1300
+ * Machine-readable error code.
1301
+ */
1302
+ code: string;
1303
+ /**
1304
+ * Human-readable error description.
1305
+ */
1306
+ message: string;
1307
+ /**
1308
+ * Additional error details.
1309
+ */
1310
+ details?: Array<{
1311
+ [key: string]: unknown;
1312
+ }>;
1313
+ };
1314
+ /**
1315
+ * The request was well-formed but contained semantic errors.
1316
+ */
1317
+ 422: {
1318
+ /**
1319
+ * Machine-readable error code.
1320
+ */
1321
+ code: string;
1322
+ /**
1323
+ * Human-readable error description.
1324
+ */
1325
+ message: string;
1326
+ /**
1327
+ * Additional error details.
1328
+ */
1329
+ details?: Array<{
1330
+ [key: string]: unknown;
1331
+ }>;
1332
+ };
1333
+ /**
1334
+ * An unexpected error occurred on the server.
1335
+ */
1336
+ 500: {
1337
+ /**
1338
+ * Machine-readable error code.
1339
+ */
1340
+ code: string;
1341
+ /**
1342
+ * Human-readable error description.
1343
+ */
1344
+ message: string;
1345
+ /**
1346
+ * Additional error details.
1347
+ */
1348
+ details?: Array<{
1349
+ [key: string]: unknown;
1350
+ }>;
1351
+ };
1352
+ };
1353
+ export type UpdateIncomeError = UpdateIncomeErrors[keyof UpdateIncomeErrors];
1354
+ export type UpdateIncomeResponses = {
1355
+ /**
1356
+ * A single item of income, which may be earned or unearned.
1357
+ */
1358
+ 200: {
1359
+ /**
1360
+ * Unique identifier for the income.
1361
+ */
1362
+ readonly id?: string;
1363
+ /**
1364
+ * Foreign key reference to the person who has this income.
1365
+ */
1366
+ personId: string;
1367
+ /**
1368
+ * Optional foreign key reference to the employer, third-party or self related to this income.
1369
+ */
1370
+ employerId?: string;
1371
+ /**
1372
+ * The type of income this item represents.
1373
+ */
1374
+ type: 'employed' | 'self_employed' | 'unearned';
1375
+ /**
1376
+ * Types of unearned income.
1377
+ */
1378
+ unearnedType?: 'unemployment' | 'kinship_payment' | 'veterans_programs' | 'adoption_and_refugee_services' | 'ssi_or_ssdi' | 'private_disability' | 'workers_compensation' | 'disability_from_veterans_programs' | 'legal_form_or_settlement' | 'scholarship' | 'educational_grant' | 'work_study' | 'spousal_support' | 'child_support' | 'retirement_or_pension_plan' | 'investment_interest_and_dividends' | 'social_security_retirement' | 'renting_home' | 'renting_room' | 'renting_equipment' | 'gambling_lottery_or_other_winnings' | 'donations_or_gifts' | 'income_from_loan_or_mortgage' | 'payment_for_participating_in_research' | 'other_money_not_reported';
1379
+ /**
1380
+ * Whether the income is net or gross.
1381
+ */
1382
+ incomeBasis?: 'net' | 'gross';
1383
+ /**
1384
+ * The amount of income this item represents.
1385
+ */
1386
+ amount: number;
1387
+ /**
1388
+ * The frequency with which the income is received.
1389
+ */
1390
+ frequency: 'hourly' | 'daily' | 'weekly' | 'every_2_weeks' | 'twice_a_month' | 'monthly' | 'yearly';
1391
+ /**
1392
+ * The date the income was reported on.
1393
+ */
1394
+ reportedOn: string;
1395
+ /**
1396
+ * The source of the income.
1397
+ */
1398
+ source: 'client' | 'authorized_assister' | 'county_worker';
1399
+ /**
1400
+ * When did the applicant first receive this income?
1401
+ */
1402
+ startDate: string;
1403
+ /**
1404
+ * Does applicant expect this income to end soon or has it already ended?
1405
+ */
1406
+ endDate?: string;
1407
+ /**
1408
+ * Whether the income has been verified.
1409
+ */
1410
+ isVerified?: boolean;
1411
+ /**
1412
+ * The date the income was verified.
1413
+ */
1414
+ verifiedDate?: string;
1415
+ /**
1416
+ * The county worker who verified the income.
1417
+ */
1418
+ verifiedBy?: string;
1419
+ /**
1420
+ * Array of verification sources related to this income.
1421
+ */
1422
+ verificationSourceIds?: Array<string>;
1423
+ };
1424
+ };
1425
+ export type UpdateIncomeResponse = UpdateIncomeResponses[keyof UpdateIncomeResponses];