@ai-matrx/api 0.0.0-stage → 0.1.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.
- package/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/README.md +18 -2
- package/dist/account.cjs +670 -0
- package/dist/account.d.cts +3246 -0
- package/dist/account.d.ts +3246 -0
- package/dist/account.js +558 -0
- package/dist/agents.cjs +598 -0
- package/dist/agents.d.cts +3417 -0
- package/dist/agents.d.ts +3417 -0
- package/dist/agents.js +497 -0
- package/dist/ai.cjs +109 -0
- package/dist/ai.d.cts +493 -0
- package/dist/ai.d.ts +493 -0
- package/dist/ai.js +91 -0
- package/dist/apps.cjs +394 -0
- package/dist/apps.d.cts +1094 -0
- package/dist/apps.d.ts +1094 -0
- package/dist/apps.js +328 -0
- package/dist/architecture.cjs +1223 -0
- package/dist/architecture.d.cts +4701 -0
- package/dist/architecture.d.ts +4701 -0
- package/dist/architecture.js +1016 -0
- package/dist/audio.cjs +226 -0
- package/dist/audio.d.cts +723 -0
- package/dist/audio.d.ts +723 -0
- package/dist/audio.js +188 -0
- package/dist/chat.cjs +538 -0
- package/dist/chat.d.cts +2251 -0
- package/dist/chat.d.ts +2251 -0
- package/dist/chat.js +447 -0
- package/dist/chunk-2SXAAKGV.cjs +279 -0
- package/dist/chunk-AY5N6EA4.js +43 -0
- package/dist/chunk-BMQI7UET.cjs +48 -0
- package/dist/chunk-FNIYADWI.cjs +59 -0
- package/dist/chunk-KIEAFMKB.js +264 -0
- package/dist/chunk-UONBYRE4.js +1012 -0
- package/dist/chunk-YTEOFGFC.js +57 -0
- package/dist/chunk-YUDQWDCM.cjs +1047 -0
- package/dist/code.cjs +561 -0
- package/dist/code.d.cts +1976 -0
- package/dist/code.d.ts +1976 -0
- package/dist/code.js +467 -0
- package/dist/commerce.cjs +22 -0
- package/dist/commerce.d.cts +45 -0
- package/dist/commerce.d.ts +45 -0
- package/dist/commerce.js +18 -0
- package/dist/communications.cjs +215 -0
- package/dist/communications.d.cts +948 -0
- package/dist/communications.d.ts +948 -0
- package/dist/communications.js +179 -0
- package/dist/computer.cjs +330 -0
- package/dist/computer.d.cts +733 -0
- package/dist/computer.d.ts +733 -0
- package/dist/computer.js +275 -0
- package/dist/content.cjs +425 -0
- package/dist/content.d.cts +1796 -0
- package/dist/content.d.ts +1796 -0
- package/dist/content.js +354 -0
- package/dist/credentials.cjs +22 -0
- package/dist/credentials.d.cts +82 -0
- package/dist/credentials.d.ts +82 -0
- package/dist/credentials.js +1 -0
- package/dist/crm.cjs +271 -0
- package/dist/crm.d.cts +1731 -0
- package/dist/crm.d.ts +1731 -0
- package/dist/crm.js +226 -0
- package/dist/data.cjs +382 -0
- package/dist/data.d.cts +1860 -0
- package/dist/data.d.ts +1860 -0
- package/dist/data.js +318 -0
- package/dist/education.cjs +28 -0
- package/dist/education.d.cts +73 -0
- package/dist/education.d.ts +73 -0
- package/dist/education.js +23 -0
- package/dist/files.cjs +1330 -0
- package/dist/files.d.cts +4956 -0
- package/dist/files.d.ts +4956 -0
- package/dist/files.js +1104 -0
- package/dist/human-resources.cjs +178 -0
- package/dist/human-resources.d.cts +1208 -0
- package/dist/human-resources.d.ts +1208 -0
- package/dist/human-resources.js +148 -0
- package/dist/index-C2E-Cp19.d.ts +385 -0
- package/dist/index-wC2vtb70.d.cts +385 -0
- package/dist/index.cjs +1934 -0
- package/dist/index.d.cts +2006 -0
- package/dist/index.d.ts +2006 -0
- package/dist/index.js +1668 -0
- package/dist/integrations.cjs +5116 -0
- package/dist/integrations.d.cts +19213 -0
- package/dist/integrations.d.ts +19213 -0
- package/dist/integrations.js +4263 -0
- package/dist/intelligence.cjs +1305 -0
- package/dist/intelligence.d.cts +4658 -0
- package/dist/intelligence.d.ts +4658 -0
- package/dist/intelligence.js +1196 -0
- package/dist/knowledge.cjs +1113 -0
- package/dist/knowledge.d.cts +5427 -0
- package/dist/knowledge.d.ts +5427 -0
- package/dist/knowledge.js +921 -0
- package/dist/legal.cjs +225 -0
- package/dist/legal.d.cts +1038 -0
- package/dist/legal.d.ts +1038 -0
- package/dist/legal.js +187 -0
- package/dist/marketing.cjs +1155 -0
- package/dist/marketing.d.cts +7741 -0
- package/dist/marketing.d.ts +7741 -0
- package/dist/marketing.js +951 -0
- package/dist/masterwork.cjs +283 -0
- package/dist/masterwork.d.cts +1938 -0
- package/dist/masterwork.d.ts +1938 -0
- package/dist/masterwork.js +231 -0
- package/dist/media.cjs +610 -0
- package/dist/media.d.cts +2270 -0
- package/dist/media.d.ts +2270 -0
- package/dist/media.js +507 -0
- package/dist/net.cjs +67 -0
- package/dist/net.d.cts +204 -0
- package/dist/net.d.ts +204 -0
- package/dist/net.js +2 -0
- package/dist/platform.cjs +150 -0
- package/dist/platform.d.cts +572 -0
- package/dist/platform.d.ts +572 -0
- package/dist/platform.js +125 -0
- package/dist/publish.cjs +248 -0
- package/dist/publish.d.cts +1431 -0
- package/dist/publish.d.ts +1431 -0
- package/dist/publish.js +206 -0
- package/dist/schemas.cjs +2 -0
- package/dist/schemas.d.cts +1353 -0
- package/dist/schemas.d.ts +1353 -0
- package/dist/schemas.js +1 -0
- package/dist/stream.cjs +44 -0
- package/dist/stream.d.cts +2 -0
- package/dist/stream.d.ts +2 -0
- package/dist/stream.js +3 -0
- package/dist/web.cjs +1045 -0
- package/dist/web.d.cts +4186 -0
- package/dist/web.d.ts +4186 -0
- package/dist/web.js +867 -0
- package/dist/workflows.cjs +825 -0
- package/dist/workflows.d.cts +4699 -0
- package/dist/workflows.d.ts +4699 -0
- package/dist/workflows.js +686 -0
- package/package.json +418 -4
package/dist/legal.d.cts
ADDED
|
@@ -0,0 +1,1038 @@
|
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-wC2vtb70.cjs';
|
|
2
|
+
import { JsonValue } from './schemas.cjs';
|
|
3
|
+
import './credentials.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
7
|
+
* CONTRACT_SHA256 50a790edb39e682b46e0fa9e674faf5ce2a0ba7de2cd01930a497fca4c47844a
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** BulkDumpFileResponse */
|
|
11
|
+
type BulkDumpFileResponse = {
|
|
12
|
+
s3_key: string;
|
|
13
|
+
size_bytes: number;
|
|
14
|
+
size_mb: number;
|
|
15
|
+
size_gb: number;
|
|
16
|
+
last_modified: string;
|
|
17
|
+
local?: {
|
|
18
|
+
[key: string]: JsonValue;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
/** BulkLoadRequest */
|
|
22
|
+
type BulkLoadRequest = {
|
|
23
|
+
/** Resources to load, in the order given. Defaults to the full Phase-1 set: courts, dockets, opinion_clusters. Each resource's dependencies must complete successfully or it'll be skipped. */
|
|
24
|
+
resources?: string[] | null;
|
|
25
|
+
};
|
|
26
|
+
/** BulkManifestResponse */
|
|
27
|
+
type BulkManifestResponse = {
|
|
28
|
+
dump_date: string;
|
|
29
|
+
bucket: string;
|
|
30
|
+
supported_resources: string[];
|
|
31
|
+
files: {
|
|
32
|
+
[key: string]: BulkDumpFileResponse | null;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
/** CitationLookupRequest */
|
|
36
|
+
type CitationLookupRequest = {
|
|
37
|
+
text?: string | null;
|
|
38
|
+
volume?: string | null;
|
|
39
|
+
reporter?: string | null;
|
|
40
|
+
page?: string | null;
|
|
41
|
+
};
|
|
42
|
+
/** Top-level response from POST /api/rest/v4/citation-lookup/. */
|
|
43
|
+
type CitationLookupResponse = {
|
|
44
|
+
results?: CitationLookupResult[];
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
/** A single resolved citation from a citation-lookup request. */
|
|
48
|
+
type CitationLookupResult = {
|
|
49
|
+
citation?: string | null;
|
|
50
|
+
normalized_citations?: string[] | null;
|
|
51
|
+
start_index?: number | null;
|
|
52
|
+
end_index?: number | null;
|
|
53
|
+
status?: number | null;
|
|
54
|
+
error_message?: string | null;
|
|
55
|
+
clusters?: {
|
|
56
|
+
[key: string]: unknown;
|
|
57
|
+
}[] | null;
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
/** ClaimCreate */
|
|
61
|
+
type ClaimCreate = {
|
|
62
|
+
applicant_name: string;
|
|
63
|
+
occupational_code: number;
|
|
64
|
+
weekly_earnings: number;
|
|
65
|
+
age_at_doi?: number | null;
|
|
66
|
+
/** YYYY-MM-DD */
|
|
67
|
+
date_of_birth?: string | null;
|
|
68
|
+
/** YYYY-MM-DD */
|
|
69
|
+
date_of_injury?: string | null;
|
|
70
|
+
gender?: string | null;
|
|
71
|
+
case_number?: string | null;
|
|
72
|
+
evaluator_name?: string | null;
|
|
73
|
+
comments?: string | null;
|
|
74
|
+
metadata?: {
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
} | null;
|
|
77
|
+
organization_id?: string | null;
|
|
78
|
+
project_id?: string | null;
|
|
79
|
+
is_public?: boolean;
|
|
80
|
+
tags?: string[] | null;
|
|
81
|
+
/** YYYY-MM-DD */
|
|
82
|
+
p_s_date?: string | null;
|
|
83
|
+
/** YYYY-MM-DD */
|
|
84
|
+
job_offer_date?: string | null;
|
|
85
|
+
large_employer?: boolean;
|
|
86
|
+
};
|
|
87
|
+
/** ClaimPatch */
|
|
88
|
+
type ClaimPatch = {
|
|
89
|
+
applicant_name?: string | null;
|
|
90
|
+
occupational_code?: number | null;
|
|
91
|
+
weekly_earnings?: number | null;
|
|
92
|
+
age_at_doi?: number | null;
|
|
93
|
+
date_of_birth?: string | null;
|
|
94
|
+
date_of_injury?: string | null;
|
|
95
|
+
gender?: string | null;
|
|
96
|
+
case_number?: string | null;
|
|
97
|
+
evaluator_name?: string | null;
|
|
98
|
+
comments?: string | null;
|
|
99
|
+
metadata?: {
|
|
100
|
+
[key: string]: unknown;
|
|
101
|
+
} | null;
|
|
102
|
+
organization_id?: string | null;
|
|
103
|
+
project_id?: string | null;
|
|
104
|
+
is_public?: boolean | null;
|
|
105
|
+
tags?: string[] | null;
|
|
106
|
+
p_s_date?: string | null;
|
|
107
|
+
job_offer_date?: string | null;
|
|
108
|
+
large_employer?: boolean | null;
|
|
109
|
+
};
|
|
110
|
+
/** ClusterDetailResponse */
|
|
111
|
+
type ClusterDetailResponse = {
|
|
112
|
+
cluster: LocalClusterResponse;
|
|
113
|
+
opinions: LocalOpinionResponse[];
|
|
114
|
+
};
|
|
115
|
+
/** ClusterSearchResponse */
|
|
116
|
+
type ClusterSearchResponse = {
|
|
117
|
+
results: LocalClusterResponse[];
|
|
118
|
+
count: number;
|
|
119
|
+
query: string;
|
|
120
|
+
};
|
|
121
|
+
/** One injury's per-row rating breakdown — what the FE renders in the */
|
|
122
|
+
type CombinedRatingItem = {
|
|
123
|
+
formula: string;
|
|
124
|
+
rating: number;
|
|
125
|
+
impairment_number?: string | null;
|
|
126
|
+
side?: ("left" | "right" | "default") | null;
|
|
127
|
+
wpi?: number | null;
|
|
128
|
+
pain?: number | null;
|
|
129
|
+
final_wpi?: number | null;
|
|
130
|
+
fec_rank?: number | null;
|
|
131
|
+
fec?: number | null;
|
|
132
|
+
wpi_adj?: number | null;
|
|
133
|
+
occupation_group?: string | null;
|
|
134
|
+
occupation_letter?: string | null;
|
|
135
|
+
occup_adj?: number | null;
|
|
136
|
+
age_adj?: number | null;
|
|
137
|
+
industrial?: number | null;
|
|
138
|
+
};
|
|
139
|
+
/** CombinedRatingOut */
|
|
140
|
+
type CombinedRatingOut = {
|
|
141
|
+
final_rating?: number | null;
|
|
142
|
+
ratings: {
|
|
143
|
+
[key: string]: CombinedRatingSide;
|
|
144
|
+
};
|
|
145
|
+
warnings: string[];
|
|
146
|
+
};
|
|
147
|
+
/** CombinedRatingSide */
|
|
148
|
+
type CombinedRatingSide = {
|
|
149
|
+
ratings: CombinedRatingItem[];
|
|
150
|
+
total: number;
|
|
151
|
+
};
|
|
152
|
+
/** Per-claim compensation block. */
|
|
153
|
+
type CompensationOut = {
|
|
154
|
+
compensation?: number | null;
|
|
155
|
+
weeks?: number | null;
|
|
156
|
+
days?: number | null;
|
|
157
|
+
weekly_payment?: number | null;
|
|
158
|
+
daily_rate?: number | null;
|
|
159
|
+
pd_adjustment_pct?: number | null;
|
|
160
|
+
pd_adjustment_reason?: string | null;
|
|
161
|
+
life_pension_weekly?: number | null;
|
|
162
|
+
};
|
|
163
|
+
/** CourtListenerWebhookAccepted */
|
|
164
|
+
type CourtListenerWebhookAccepted = {
|
|
165
|
+
status?: "accepted";
|
|
166
|
+
};
|
|
167
|
+
/** CourtPresetResponse */
|
|
168
|
+
type CourtPresetResponse = {
|
|
169
|
+
key: string;
|
|
170
|
+
label: string;
|
|
171
|
+
description: string;
|
|
172
|
+
court_ids: string[];
|
|
173
|
+
estimated_clusters: number;
|
|
174
|
+
};
|
|
175
|
+
/** CourtsResponse */
|
|
176
|
+
type CourtsResponse = {
|
|
177
|
+
courts: LocalCourtResponse[];
|
|
178
|
+
count: number;
|
|
179
|
+
};
|
|
180
|
+
/** Calc-relevant scalars from the rating engine's bundled defaults. */
|
|
181
|
+
type DefaultsResponse = {
|
|
182
|
+
max_weekly_earnings: number;
|
|
183
|
+
default_fec: number;
|
|
184
|
+
default_fec_valid_from: number;
|
|
185
|
+
};
|
|
186
|
+
/** Top-level docket — case metadata. From /api/rest/v4/dockets/{id}/. */
|
|
187
|
+
type Docket = {
|
|
188
|
+
resource_uri?: string | null;
|
|
189
|
+
id?: number | null;
|
|
190
|
+
court?: string | null;
|
|
191
|
+
court_id?: string | null;
|
|
192
|
+
appeal_from?: string | null;
|
|
193
|
+
appeal_from_str?: string | null;
|
|
194
|
+
assigned_to?: string | null;
|
|
195
|
+
assigned_to_str?: string | null;
|
|
196
|
+
referred_to?: string | null;
|
|
197
|
+
referred_to_str?: string | null;
|
|
198
|
+
panel?: string[] | null;
|
|
199
|
+
parties?: string[] | null;
|
|
200
|
+
docket_number?: string | null;
|
|
201
|
+
docket_number_core?: string | null;
|
|
202
|
+
pacer_case_id?: string | null;
|
|
203
|
+
case_name?: string | null;
|
|
204
|
+
case_name_short?: string | null;
|
|
205
|
+
case_name_full?: string | null;
|
|
206
|
+
slug?: string | null;
|
|
207
|
+
source?: number | null;
|
|
208
|
+
nature_of_suit?: string | null;
|
|
209
|
+
cause?: string | null;
|
|
210
|
+
jury_demand?: string | null;
|
|
211
|
+
jurisdiction_type?: string | null;
|
|
212
|
+
appellate_fee_status?: string | null;
|
|
213
|
+
appellate_case_type_information?: string | null;
|
|
214
|
+
mdl_status?: string | null;
|
|
215
|
+
filepath_ia?: string | null;
|
|
216
|
+
filepath_local?: string | null;
|
|
217
|
+
blocked?: boolean | null;
|
|
218
|
+
date_blocked?: string | null;
|
|
219
|
+
date_argued?: string | null;
|
|
220
|
+
date_reargued?: string | null;
|
|
221
|
+
date_reargument_denied?: string | null;
|
|
222
|
+
date_filed?: string | null;
|
|
223
|
+
date_terminated?: string | null;
|
|
224
|
+
date_last_filing?: string | null;
|
|
225
|
+
date_cert_granted?: string | null;
|
|
226
|
+
date_cert_denied?: string | null;
|
|
227
|
+
absolute_url?: string | null;
|
|
228
|
+
date_created?: string | null;
|
|
229
|
+
date_modified?: string | null;
|
|
230
|
+
[key: string]: unknown;
|
|
231
|
+
};
|
|
232
|
+
/** Which attributes a given impairment definition expects/allows. */
|
|
233
|
+
type ImpairmentAvailableAttributes = {
|
|
234
|
+
digit: boolean;
|
|
235
|
+
le: boolean;
|
|
236
|
+
side: boolean;
|
|
237
|
+
ue: boolean;
|
|
238
|
+
wpi: boolean;
|
|
239
|
+
};
|
|
240
|
+
/** ImpairmentSearch */
|
|
241
|
+
type ImpairmentSearch = {
|
|
242
|
+
phrases: string[];
|
|
243
|
+
};
|
|
244
|
+
/** Result of POST /impairments/search. */
|
|
245
|
+
type ImpairmentSearchResponse = {
|
|
246
|
+
phrases: string[];
|
|
247
|
+
summary: string;
|
|
248
|
+
};
|
|
249
|
+
/** Full impairment-definitions catalog keyed by definition id (UUID). */
|
|
250
|
+
type ImpairmentsResponse = {
|
|
251
|
+
impairments: {
|
|
252
|
+
[key: string]: WcImpairmentDefinitionRead;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
/** IngestRunResponse */
|
|
256
|
+
type IngestRunResponse = {
|
|
257
|
+
id: string;
|
|
258
|
+
kind?: string | null;
|
|
259
|
+
resource?: string | null;
|
|
260
|
+
status: string;
|
|
261
|
+
rows_inserted?: number | null;
|
|
262
|
+
rows_updated?: number | null;
|
|
263
|
+
rows_skipped?: number | null;
|
|
264
|
+
started_at?: string | null;
|
|
265
|
+
finished_at?: string | null;
|
|
266
|
+
duration_seconds?: number | null;
|
|
267
|
+
watermark?: string | null;
|
|
268
|
+
triggered_by?: string | null;
|
|
269
|
+
error_message?: string | null;
|
|
270
|
+
metadata?: {
|
|
271
|
+
[key: string]: JsonValue;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
/** IngestRunsResponse */
|
|
275
|
+
type IngestRunsResponse = {
|
|
276
|
+
runs: IngestRunResponse[];
|
|
277
|
+
count: number;
|
|
278
|
+
};
|
|
279
|
+
/** InjuryCreate */
|
|
280
|
+
type InjuryCreate = {
|
|
281
|
+
impairment_definition_id: string;
|
|
282
|
+
wpi?: number | null;
|
|
283
|
+
le?: number | null;
|
|
284
|
+
ue?: number | null;
|
|
285
|
+
digit?: number | null;
|
|
286
|
+
pain?: number;
|
|
287
|
+
industrial?: number;
|
|
288
|
+
side?: ("left" | "right" | "default") | null;
|
|
289
|
+
ag?: boolean;
|
|
290
|
+
};
|
|
291
|
+
/** InjuryPatch */
|
|
292
|
+
type InjuryPatch = {
|
|
293
|
+
wpi?: number | null;
|
|
294
|
+
le?: number | null;
|
|
295
|
+
ue?: number | null;
|
|
296
|
+
digit?: number | null;
|
|
297
|
+
pain?: number | null;
|
|
298
|
+
industrial?: number | null;
|
|
299
|
+
side?: ("left" | "right" | "default") | null;
|
|
300
|
+
ag?: boolean | null;
|
|
301
|
+
};
|
|
302
|
+
/** LegalDiagnosticResponse */
|
|
303
|
+
type LegalDiagnosticResponse = {
|
|
304
|
+
[key: string]: JsonValue;
|
|
305
|
+
};
|
|
306
|
+
/** LegalOverviewResponse */
|
|
307
|
+
type LegalOverviewResponse = {
|
|
308
|
+
stats: LegalStatsResponse;
|
|
309
|
+
recent_runs: IngestRunResponse[];
|
|
310
|
+
presets: CourtPresetResponse[];
|
|
311
|
+
};
|
|
312
|
+
/** LegalSearchRequest */
|
|
313
|
+
type LegalSearchRequest = {
|
|
314
|
+
query: string;
|
|
315
|
+
type?: string;
|
|
316
|
+
court?: string | null;
|
|
317
|
+
judge?: string | null;
|
|
318
|
+
case_name?: string | null;
|
|
319
|
+
citation?: string | null;
|
|
320
|
+
status?: string | null;
|
|
321
|
+
filed_after?: string | null;
|
|
322
|
+
filed_before?: string | null;
|
|
323
|
+
cited_gt?: number | null;
|
|
324
|
+
order_by?: string | null;
|
|
325
|
+
limit?: number;
|
|
326
|
+
highlight?: boolean;
|
|
327
|
+
};
|
|
328
|
+
/** LegalStatsResponse */
|
|
329
|
+
type LegalStatsResponse = {
|
|
330
|
+
courts: number;
|
|
331
|
+
dockets: number;
|
|
332
|
+
opinion_clusters: number;
|
|
333
|
+
opinions: number;
|
|
334
|
+
citations: number;
|
|
335
|
+
ingest_runs: {
|
|
336
|
+
[key: string]: number;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
/** LegalVersionResponse */
|
|
340
|
+
type LegalVersionResponse = {
|
|
341
|
+
matrx_legal_version: string;
|
|
342
|
+
Court_inherits_permissive_base: boolean;
|
|
343
|
+
Court_model_config: {
|
|
344
|
+
[key: string]: unknown;
|
|
345
|
+
};
|
|
346
|
+
expected_keys_in_config: string[];
|
|
347
|
+
};
|
|
348
|
+
/** LocalClusterResponse */
|
|
349
|
+
type LocalClusterResponse = {
|
|
350
|
+
id: number;
|
|
351
|
+
case_name?: string | null;
|
|
352
|
+
case_name_short?: string | null;
|
|
353
|
+
case_name_full?: string | null;
|
|
354
|
+
date_filed?: string | null;
|
|
355
|
+
citation_count?: number | null;
|
|
356
|
+
precedential_status?: string | null;
|
|
357
|
+
federal_cite_one?: string | null;
|
|
358
|
+
state_cite_one?: string | null;
|
|
359
|
+
neutral_cite?: string | null;
|
|
360
|
+
absolute_url?: string | null;
|
|
361
|
+
docket_id?: number | null;
|
|
362
|
+
judges?: JsonValue;
|
|
363
|
+
};
|
|
364
|
+
/** LocalCourtResponse */
|
|
365
|
+
type LocalCourtResponse = {
|
|
366
|
+
id: string;
|
|
367
|
+
short_name?: string | null;
|
|
368
|
+
full_name?: string | null;
|
|
369
|
+
citation_string?: string | null;
|
|
370
|
+
jurisdiction?: string | null;
|
|
371
|
+
in_use?: boolean | null;
|
|
372
|
+
position?: number | null;
|
|
373
|
+
url?: string | null;
|
|
374
|
+
synced_at?: string | null;
|
|
375
|
+
};
|
|
376
|
+
/** LocalOpinionResponse */
|
|
377
|
+
type LocalOpinionResponse = {
|
|
378
|
+
id: number;
|
|
379
|
+
cluster_id?: number | null;
|
|
380
|
+
type?: string | null;
|
|
381
|
+
author_id?: number | null;
|
|
382
|
+
page_count?: number | null;
|
|
383
|
+
per_curiam?: boolean | null;
|
|
384
|
+
extracted_by_ocr?: boolean | null;
|
|
385
|
+
absolute_url?: string | null;
|
|
386
|
+
plain_text_chars: number;
|
|
387
|
+
plain_text_preview: string;
|
|
388
|
+
};
|
|
389
|
+
/** Wrapper around the bundled California job-codes config. */
|
|
390
|
+
type OccupationalCodesResponse = {
|
|
391
|
+
codes: {
|
|
392
|
+
[key: string]: {
|
|
393
|
+
[key: string]: string;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
/** A single opinion document (text + metadata). */
|
|
398
|
+
type Opinion = {
|
|
399
|
+
resource_uri?: string | null;
|
|
400
|
+
id?: number | null;
|
|
401
|
+
absolute_url?: string | null;
|
|
402
|
+
cluster?: string | null;
|
|
403
|
+
cluster_id?: number | null;
|
|
404
|
+
author?: string | null;
|
|
405
|
+
author_id?: number | null;
|
|
406
|
+
joined_by?: string[] | null;
|
|
407
|
+
type?: string | null;
|
|
408
|
+
sha1?: string | null;
|
|
409
|
+
page_count?: number | null;
|
|
410
|
+
download_url?: string | null;
|
|
411
|
+
local_path?: string | null;
|
|
412
|
+
plain_text?: string | null;
|
|
413
|
+
html?: string | null;
|
|
414
|
+
html_lawbox?: string | null;
|
|
415
|
+
html_columbia?: string | null;
|
|
416
|
+
html_anon_2020?: string | null;
|
|
417
|
+
html_with_citations?: string | null;
|
|
418
|
+
xml_harvard?: string | null;
|
|
419
|
+
extracted_by_ocr?: boolean | null;
|
|
420
|
+
date_created?: string | null;
|
|
421
|
+
date_modified?: string | null;
|
|
422
|
+
per_curiam?: boolean | null;
|
|
423
|
+
opinions_cited?: string[] | null;
|
|
424
|
+
main_version?: number | null;
|
|
425
|
+
ordering_key?: number | null;
|
|
426
|
+
[key: string]: unknown;
|
|
427
|
+
};
|
|
428
|
+
/** OpinionTextResponse */
|
|
429
|
+
type OpinionTextResponse = {
|
|
430
|
+
opinion_id: number;
|
|
431
|
+
text_storage_uri: string;
|
|
432
|
+
text_size_bytes?: number | null;
|
|
433
|
+
text_format?: string | null;
|
|
434
|
+
bundle: {
|
|
435
|
+
[key: string]: JsonValue;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
/** StatelessApplicant */
|
|
439
|
+
type StatelessApplicant = {
|
|
440
|
+
name: string;
|
|
441
|
+
employee_id?: string;
|
|
442
|
+
/** YYYY-MM-DD */
|
|
443
|
+
date_of_birth: string;
|
|
444
|
+
};
|
|
445
|
+
/** StatelessApplicantOut */
|
|
446
|
+
type StatelessApplicantOut = {
|
|
447
|
+
name: string;
|
|
448
|
+
employee_id: string;
|
|
449
|
+
date_of_birth: string;
|
|
450
|
+
};
|
|
451
|
+
/** StatelessCalculate */
|
|
452
|
+
type StatelessCalculate = {
|
|
453
|
+
applicant: StatelessApplicant;
|
|
454
|
+
claim: StatelessClaim;
|
|
455
|
+
injuries: StatelessInjury[];
|
|
456
|
+
};
|
|
457
|
+
/** StatelessClaim */
|
|
458
|
+
type StatelessClaim = {
|
|
459
|
+
occupational_code: number;
|
|
460
|
+
weekly_earnings: number;
|
|
461
|
+
age_at_doi?: number | null;
|
|
462
|
+
/** YYYY-MM-DD */
|
|
463
|
+
date_of_injury: string;
|
|
464
|
+
/** YYYY-MM-DD */
|
|
465
|
+
p_s_date?: string | null;
|
|
466
|
+
/** YYYY-MM-DD */
|
|
467
|
+
job_offer_date?: string | null;
|
|
468
|
+
large_employer?: boolean;
|
|
469
|
+
};
|
|
470
|
+
/** StatelessClaimOut */
|
|
471
|
+
type StatelessClaimOut = {
|
|
472
|
+
date_of_injury: string;
|
|
473
|
+
age_at_doi: number;
|
|
474
|
+
occupational_code: number;
|
|
475
|
+
weekly_earnings: number;
|
|
476
|
+
};
|
|
477
|
+
/** StatelessInjury */
|
|
478
|
+
type StatelessInjury = {
|
|
479
|
+
impairment_definition_id: string;
|
|
480
|
+
attributes?: StatelessInjuryAttributes;
|
|
481
|
+
pain?: number;
|
|
482
|
+
industrial?: number;
|
|
483
|
+
};
|
|
484
|
+
/** StatelessInjuryAttributes */
|
|
485
|
+
type StatelessInjuryAttributes = {
|
|
486
|
+
digit?: number | null;
|
|
487
|
+
le?: number | null;
|
|
488
|
+
ue?: number | null;
|
|
489
|
+
wpi?: number | null;
|
|
490
|
+
side?: ("left" | "right" | "default") | null;
|
|
491
|
+
};
|
|
492
|
+
/** StatelessInjuryOut */
|
|
493
|
+
type StatelessInjuryOut = {
|
|
494
|
+
impairment_definition: WcImpairmentDefinitionRead;
|
|
495
|
+
injury_attributes: StatelessInjuryAttributes;
|
|
496
|
+
pain: number;
|
|
497
|
+
industrial: number;
|
|
498
|
+
warnings: string[];
|
|
499
|
+
errors: string[];
|
|
500
|
+
rating?: CombinedRatingItem | null;
|
|
501
|
+
};
|
|
502
|
+
/** StatelessRatingResponse */
|
|
503
|
+
type StatelessRatingResponse = {
|
|
504
|
+
applicant: StatelessApplicantOut;
|
|
505
|
+
claim: StatelessClaimOut;
|
|
506
|
+
injuries: StatelessInjuryOut[];
|
|
507
|
+
result?: StatelessResultOut | null;
|
|
508
|
+
};
|
|
509
|
+
/** StatelessResultOut */
|
|
510
|
+
type StatelessResultOut = {
|
|
511
|
+
combined_rating: CombinedRatingOut;
|
|
512
|
+
compensation: CompensationOut;
|
|
513
|
+
};
|
|
514
|
+
/** SyncClustersRequest */
|
|
515
|
+
type SyncClustersRequest = {
|
|
516
|
+
/** Explicit court_id list to sync. Either court_ids OR preset_key is required. */
|
|
517
|
+
court_ids?: string[] | null;
|
|
518
|
+
/** One of the preset keys from /legal/admin/presets. */
|
|
519
|
+
preset_key?: string | null;
|
|
520
|
+
/** Cap each court's pull at N clusters. None = pull everything. Useful for smoke-testing a sync before committing to a full run. */
|
|
521
|
+
limit_per_court?: number | null;
|
|
522
|
+
};
|
|
523
|
+
/** SyncOpinionsRequest */
|
|
524
|
+
type SyncOpinionsRequest = {
|
|
525
|
+
cluster_ids: number[];
|
|
526
|
+
};
|
|
527
|
+
/** One row from `wc_claim`. */
|
|
528
|
+
type WcClaimRead = {
|
|
529
|
+
id: string;
|
|
530
|
+
created_at?: string | null;
|
|
531
|
+
updated_at?: string | null;
|
|
532
|
+
applicant_name?: string | null;
|
|
533
|
+
person_id?: string | null;
|
|
534
|
+
date_of_birth?: string | null;
|
|
535
|
+
date_of_injury?: string | null;
|
|
536
|
+
age_at_doi?: number | null;
|
|
537
|
+
occupational_code?: number | null;
|
|
538
|
+
weekly_earnings?: number | null;
|
|
539
|
+
gender?: string | null;
|
|
540
|
+
case_number?: string | null;
|
|
541
|
+
evaluator_name?: string | null;
|
|
542
|
+
comments?: string | null;
|
|
543
|
+
metadata?: {
|
|
544
|
+
[key: string]: JsonValue;
|
|
545
|
+
} | null;
|
|
546
|
+
user_id?: string | null;
|
|
547
|
+
organization_id?: string | null;
|
|
548
|
+
project_id?: string | null;
|
|
549
|
+
is_public?: boolean | null;
|
|
550
|
+
tags?: string[] | null;
|
|
551
|
+
p_s_date?: string | null;
|
|
552
|
+
job_offer_date?: string | null;
|
|
553
|
+
large_employer?: boolean | null;
|
|
554
|
+
[key: string]: unknown;
|
|
555
|
+
};
|
|
556
|
+
/** One row from `wc_impairment_definition`. */
|
|
557
|
+
type WcImpairmentDefinitionRead = {
|
|
558
|
+
id?: string | null;
|
|
559
|
+
impairment_number: string;
|
|
560
|
+
fec_rank?: number | null;
|
|
561
|
+
name: string;
|
|
562
|
+
finger_type?: ("index" | "middle" | "ring" | "little" | "thumb") | null;
|
|
563
|
+
attributes: ImpairmentAvailableAttributes;
|
|
564
|
+
search_aliases?: string[];
|
|
565
|
+
[key: string]: unknown;
|
|
566
|
+
};
|
|
567
|
+
/** WcInjuryList */
|
|
568
|
+
type WcInjuryList = {
|
|
569
|
+
injuries: WcInjuryRead[];
|
|
570
|
+
count: number;
|
|
571
|
+
};
|
|
572
|
+
/** One row from `wc_injury`. `warnings` is appended by the create/edit handlers. */
|
|
573
|
+
type WcInjuryRead = {
|
|
574
|
+
id: string;
|
|
575
|
+
created_at?: string | null;
|
|
576
|
+
updated_at?: string | null;
|
|
577
|
+
report_id?: string | null;
|
|
578
|
+
impairment_definition_id?: string | null;
|
|
579
|
+
digit?: number | null;
|
|
580
|
+
le?: number | null;
|
|
581
|
+
ue?: number | null;
|
|
582
|
+
wpi?: number | null;
|
|
583
|
+
side?: ("left" | "right" | "default") | null;
|
|
584
|
+
pain?: number | null;
|
|
585
|
+
industrial?: number | null;
|
|
586
|
+
rating?: number | null;
|
|
587
|
+
formula?: string | null;
|
|
588
|
+
warnings?: string[] | null;
|
|
589
|
+
ag?: boolean | null;
|
|
590
|
+
[key: string]: unknown;
|
|
591
|
+
};
|
|
592
|
+
/** One row from `wc_report`. Totals are populated only after `/calculate`. */
|
|
593
|
+
type WcReportRead = {
|
|
594
|
+
id: string;
|
|
595
|
+
created_at?: string | null;
|
|
596
|
+
claim_id: string;
|
|
597
|
+
final_rating?: number | null;
|
|
598
|
+
left_side_total?: number | null;
|
|
599
|
+
right_side_total?: number | null;
|
|
600
|
+
default_side_total?: number | null;
|
|
601
|
+
compensation_amount?: number | null;
|
|
602
|
+
compensation_weeks?: number | null;
|
|
603
|
+
compensation_days?: number | null;
|
|
604
|
+
weekly_payment?: number | null;
|
|
605
|
+
daily_rate?: number | null;
|
|
606
|
+
pd_adjustment_pct?: number | null;
|
|
607
|
+
pd_adjustment_reason?: string | null;
|
|
608
|
+
life_pension_weekly?: number | null;
|
|
609
|
+
[key: string]: unknown;
|
|
610
|
+
};
|
|
611
|
+
/** PresetsResponse */
|
|
612
|
+
type aidream__api__routers__legal_admin__PresetsResponse = {
|
|
613
|
+
presets: CourtPresetResponse[];
|
|
614
|
+
};
|
|
615
|
+
type CourtlistenerWebhookArgs = {
|
|
616
|
+
[key: string]: never;
|
|
617
|
+
};
|
|
618
|
+
type CourtlistenerWebhookResult = CourtListenerWebhookAccepted;
|
|
619
|
+
/** Courtlistener Webhook */
|
|
620
|
+
/** `POST /legal/webhooks/courtlistener` · aidream · auth guest · org required */
|
|
621
|
+
declare function courtlistenerWebhook(api: Api, args?: CourtlistenerWebhookArgs, options?: CallOptions): Promise<CourtlistenerWebhookResult>;
|
|
622
|
+
type LegalSearchArgs = {
|
|
623
|
+
body: LegalSearchRequest;
|
|
624
|
+
};
|
|
625
|
+
type LegalSearchResult = unknown;
|
|
626
|
+
/** Legal Search */
|
|
627
|
+
/** `POST /legal/search` · aidream · auth guest · org required · ndjson */
|
|
628
|
+
declare function legalSearch(api: Api, args: LegalSearchArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
629
|
+
type GetOpinionEndpointArgs = {
|
|
630
|
+
path: {
|
|
631
|
+
opinion_id: number;
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
type GetOpinionEndpointResult = Opinion;
|
|
635
|
+
/** Get Opinion Endpoint */
|
|
636
|
+
/** `GET /legal/opinions/{opinion_id}` · aidream · auth user · org required */
|
|
637
|
+
declare function getOpinionEndpoint(api: Api, args: GetOpinionEndpointArgs, options?: CallOptions): Promise<GetOpinionEndpointResult>;
|
|
638
|
+
type GetDocketEndpointArgs = {
|
|
639
|
+
path: {
|
|
640
|
+
docket_id: number;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
type GetDocketEndpointResult = Docket;
|
|
644
|
+
/** Get Docket Endpoint */
|
|
645
|
+
/** `GET /legal/dockets/{docket_id}` · aidream · auth user · org required */
|
|
646
|
+
declare function getDocketEndpoint(api: Api, args: GetDocketEndpointArgs, options?: CallOptions): Promise<GetDocketEndpointResult>;
|
|
647
|
+
type CitationsLookupArgs = {
|
|
648
|
+
body: CitationLookupRequest;
|
|
649
|
+
};
|
|
650
|
+
type CitationsLookupResult = CitationLookupResponse;
|
|
651
|
+
/** Citations Lookup */
|
|
652
|
+
/** `POST /legal/citations/lookup` · aidream · auth guest · org required */
|
|
653
|
+
declare function citationsLookup(api: Api, args: CitationsLookupArgs, options?: CallOptions): Promise<CitationsLookupResult>;
|
|
654
|
+
type VersionArgs = {
|
|
655
|
+
[key: string]: never;
|
|
656
|
+
};
|
|
657
|
+
type VersionResult = LegalVersionResponse;
|
|
658
|
+
/** Version */
|
|
659
|
+
/** `GET /legal/admin/version` · aidream · auth admin · org exempt */
|
|
660
|
+
declare function version(api: Api, args?: VersionArgs, options?: CallOptions): Promise<VersionResult>;
|
|
661
|
+
type OverviewArgs = {
|
|
662
|
+
[key: string]: never;
|
|
663
|
+
};
|
|
664
|
+
type OverviewResult = LegalOverviewResponse;
|
|
665
|
+
/** Overview */
|
|
666
|
+
/** `GET /legal/admin/overview` · aidream · auth admin · org exempt */
|
|
667
|
+
declare function overview(api: Api, args?: OverviewArgs, options?: CallOptions): Promise<OverviewResult>;
|
|
668
|
+
type DiagnoseArgs = {
|
|
669
|
+
[key: string]: never;
|
|
670
|
+
};
|
|
671
|
+
type DiagnoseResult = LegalDiagnosticResponse;
|
|
672
|
+
/** Diagnose */
|
|
673
|
+
/** `GET /legal/admin/diagnose` · aidream · auth admin · org exempt */
|
|
674
|
+
declare function diagnose(api: Api, args?: DiagnoseArgs, options?: CallOptions): Promise<DiagnoseResult>;
|
|
675
|
+
type StatsArgs = {
|
|
676
|
+
[key: string]: never;
|
|
677
|
+
};
|
|
678
|
+
type StatsResult = LegalStatsResponse;
|
|
679
|
+
/** Stats */
|
|
680
|
+
/** `GET /legal/admin/stats` · aidream · auth admin · org exempt */
|
|
681
|
+
declare function stats(api: Api, args?: StatsArgs, options?: CallOptions): Promise<StatsResult>;
|
|
682
|
+
type CourtsArgs = {
|
|
683
|
+
query?: {
|
|
684
|
+
in_use_only?: boolean;
|
|
685
|
+
jurisdiction?: string | null;
|
|
686
|
+
limit?: number;
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
type CourtsResult = CourtsResponse;
|
|
690
|
+
/** Courts */
|
|
691
|
+
/** `GET /legal/admin/courts` · aidream · auth admin · org exempt */
|
|
692
|
+
declare function courts(api: Api, args?: CourtsArgs, options?: CallOptions): Promise<CourtsResult>;
|
|
693
|
+
type PresetsArgs = {
|
|
694
|
+
[key: string]: never;
|
|
695
|
+
};
|
|
696
|
+
type PresetsResult = aidream__api__routers__legal_admin__PresetsResponse;
|
|
697
|
+
/** Presets */
|
|
698
|
+
/** `GET /legal/admin/presets` · aidream · auth admin · org exempt */
|
|
699
|
+
declare function presets(api: Api, args?: PresetsArgs, options?: CallOptions): Promise<PresetsResult>;
|
|
700
|
+
type IngestRunsArgs = {
|
|
701
|
+
query?: {
|
|
702
|
+
limit?: number;
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
type IngestRunsResult = IngestRunsResponse;
|
|
706
|
+
/** Ingest Runs */
|
|
707
|
+
/** `GET /legal/admin/ingest-runs` · aidream · auth admin · org exempt */
|
|
708
|
+
declare function ingestRuns(api: Api, args?: IngestRunsArgs, options?: CallOptions): Promise<IngestRunsResult>;
|
|
709
|
+
type SyncCourtsArgs = {
|
|
710
|
+
[key: string]: never;
|
|
711
|
+
};
|
|
712
|
+
type SyncCourtsResult = unknown;
|
|
713
|
+
/** Sync Courts */
|
|
714
|
+
/** `POST /legal/admin/sync/courts` · aidream · auth admin · org exempt · ndjson */
|
|
715
|
+
declare function syncCourts(api: Api, args?: SyncCourtsArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
716
|
+
type SyncClustersArgs = {
|
|
717
|
+
body: SyncClustersRequest;
|
|
718
|
+
};
|
|
719
|
+
type SyncClustersResult = unknown;
|
|
720
|
+
/** Sync Clusters */
|
|
721
|
+
/** `POST /legal/admin/sync/clusters` · aidream · auth admin · org exempt · ndjson */
|
|
722
|
+
declare function syncClusters(api: Api, args: SyncClustersArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
723
|
+
type SyncOpinionsArgs = {
|
|
724
|
+
body: SyncOpinionsRequest;
|
|
725
|
+
};
|
|
726
|
+
type SyncOpinionsResult = unknown;
|
|
727
|
+
/** Sync Opinions */
|
|
728
|
+
/** `POST /legal/admin/sync/opinions` · aidream · auth admin · org exempt · ndjson */
|
|
729
|
+
declare function syncOpinions(api: Api, args: SyncOpinionsArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
730
|
+
type BulkManifestArgs = {
|
|
731
|
+
[key: string]: never;
|
|
732
|
+
};
|
|
733
|
+
type BulkManifestResult = BulkManifestResponse;
|
|
734
|
+
/** Bulk Manifest */
|
|
735
|
+
/** `GET /legal/admin/bulk/manifest` · aidream · auth admin · org exempt */
|
|
736
|
+
declare function bulkManifest(api: Api, args?: BulkManifestArgs, options?: CallOptions): Promise<BulkManifestResult>;
|
|
737
|
+
type BulkLoadArgs = {
|
|
738
|
+
body: BulkLoadRequest;
|
|
739
|
+
};
|
|
740
|
+
type BulkLoadResult = unknown;
|
|
741
|
+
/** Bulk Load */
|
|
742
|
+
/** `POST /legal/admin/bulk/load` · aidream · auth admin · org exempt · ndjson */
|
|
743
|
+
declare function bulkLoad(api: Api, args: BulkLoadArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
744
|
+
type SearchLocalArgs = {
|
|
745
|
+
query: {
|
|
746
|
+
q: string;
|
|
747
|
+
court_ids?: string[] | null;
|
|
748
|
+
limit?: number;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
type SearchLocalResult = ClusterSearchResponse;
|
|
752
|
+
/** Search Local */
|
|
753
|
+
/** `GET /legal/admin/clusters/local` · aidream · auth admin · org exempt */
|
|
754
|
+
declare function searchLocal(api: Api, args: SearchLocalArgs, options?: CallOptions): Promise<SearchLocalResult>;
|
|
755
|
+
type ClusterDetailArgs = {
|
|
756
|
+
path: {
|
|
757
|
+
cluster_id: number;
|
|
758
|
+
};
|
|
759
|
+
};
|
|
760
|
+
type ClusterDetailResult = ClusterDetailResponse;
|
|
761
|
+
/** Cluster Detail */
|
|
762
|
+
/** `GET /legal/admin/clusters/{cluster_id}` · aidream · auth admin · org exempt */
|
|
763
|
+
declare function clusterDetail(api: Api, args: ClusterDetailArgs, options?: CallOptions): Promise<ClusterDetailResult>;
|
|
764
|
+
type OpinionTextArgs = {
|
|
765
|
+
path: {
|
|
766
|
+
opinion_id: number;
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
type OpinionTextResult = OpinionTextResponse;
|
|
770
|
+
/** Opinion Text */
|
|
771
|
+
/** `GET /legal/admin/opinions/{opinion_id}/text` · aidream · auth admin · org exempt */
|
|
772
|
+
declare function opinionText(api: Api, args: OpinionTextArgs, options?: CallOptions): Promise<OpinionTextResult>;
|
|
773
|
+
type GetOccupationalCodesArgs = {
|
|
774
|
+
[key: string]: never;
|
|
775
|
+
};
|
|
776
|
+
type GetOccupationalCodesResult = OccupationalCodesResponse;
|
|
777
|
+
/** Get Occupational Codes */
|
|
778
|
+
/** `GET /legal/wc/ratings/occupational-codes` · aidream · auth guest · org optional */
|
|
779
|
+
declare function getOccupationalCodes(api: Api, args?: GetOccupationalCodesArgs, options?: CallOptions): Promise<GetOccupationalCodesResult>;
|
|
780
|
+
type GetRatingDefaultsArgs = {
|
|
781
|
+
[key: string]: never;
|
|
782
|
+
};
|
|
783
|
+
type GetRatingDefaultsResult = DefaultsResponse;
|
|
784
|
+
/** Get Rating Defaults */
|
|
785
|
+
/** `GET /legal/wc/ratings/defaults` · aidream · auth guest · org optional */
|
|
786
|
+
declare function getRatingDefaults(api: Api, args?: GetRatingDefaultsArgs, options?: CallOptions): Promise<GetRatingDefaultsResult>;
|
|
787
|
+
type ListImpairmentsArgs = {
|
|
788
|
+
[key: string]: never;
|
|
789
|
+
};
|
|
790
|
+
type ListImpairmentsResult = ImpairmentsResponse;
|
|
791
|
+
/** List Impairments */
|
|
792
|
+
/** `GET /legal/wc/ratings/impairments` · aidream · auth guest · org optional */
|
|
793
|
+
declare function listImpairments(api: Api, args?: ListImpairmentsArgs, options?: CallOptions): Promise<ListImpairmentsResult>;
|
|
794
|
+
type SearchImpairmentsArgs = {
|
|
795
|
+
body: ImpairmentSearch;
|
|
796
|
+
};
|
|
797
|
+
type SearchImpairmentsResult = ImpairmentSearchResponse;
|
|
798
|
+
/** Search Impairments */
|
|
799
|
+
/** `POST /legal/wc/ratings/impairments/search` · aidream · auth guest · org required */
|
|
800
|
+
declare function searchImpairments(api: Api, args: SearchImpairmentsArgs, options?: CallOptions): Promise<SearchImpairmentsResult>;
|
|
801
|
+
type CreateWcClaimArgs = {
|
|
802
|
+
body: ClaimCreate;
|
|
803
|
+
};
|
|
804
|
+
type CreateWcClaimResult = WcClaimRead;
|
|
805
|
+
/** Create Wc Claim */
|
|
806
|
+
/** `POST /legal/wc/ratings/claims` · aidream · auth guest · org required */
|
|
807
|
+
declare function createWcClaim(api: Api, args: CreateWcClaimArgs, options?: CallOptions): Promise<CreateWcClaimResult>;
|
|
808
|
+
type GetWcClaimArgs = {
|
|
809
|
+
path: {
|
|
810
|
+
claim_id: string;
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
type GetWcClaimResult = WcClaimRead;
|
|
814
|
+
/** Get Wc Claim */
|
|
815
|
+
/** `GET /legal/wc/ratings/claims/{claim_id}` · aidream · auth guest · org required */
|
|
816
|
+
declare function getWcClaim(api: Api, args: GetWcClaimArgs, options?: CallOptions): Promise<GetWcClaimResult>;
|
|
817
|
+
type UpdateWcClaimArgs = {
|
|
818
|
+
path: {
|
|
819
|
+
claim_id: string;
|
|
820
|
+
};
|
|
821
|
+
body: ClaimPatch;
|
|
822
|
+
};
|
|
823
|
+
type UpdateWcClaimResult = WcClaimRead;
|
|
824
|
+
/** Update Wc Claim */
|
|
825
|
+
/** `PATCH /legal/wc/ratings/claims/{claim_id}` · aidream · auth guest · org required */
|
|
826
|
+
declare function updateWcClaim(api: Api, args: UpdateWcClaimArgs, options?: CallOptions): Promise<UpdateWcClaimResult>;
|
|
827
|
+
type GetReportByClaimArgs = {
|
|
828
|
+
path: {
|
|
829
|
+
claim_id: string;
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
type GetReportByClaimResult = WcReportRead;
|
|
833
|
+
/** Get Report By Claim */
|
|
834
|
+
/** `GET /legal/wc/ratings/claims/{claim_id}/report` · aidream · auth guest · org optional */
|
|
835
|
+
declare function getReportByClaim(api: Api, args: GetReportByClaimArgs, options?: CallOptions): Promise<GetReportByClaimResult>;
|
|
836
|
+
type CreateReportForClaimArgs = {
|
|
837
|
+
path: {
|
|
838
|
+
claim_id: string;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
type CreateReportForClaimResult = WcReportRead;
|
|
842
|
+
/** Create Report For Claim */
|
|
843
|
+
/** `POST /legal/wc/ratings/claims/{claim_id}/report` · aidream · auth guest · org required */
|
|
844
|
+
declare function createReportForClaim(api: Api, args: CreateReportForClaimArgs, options?: CallOptions): Promise<CreateReportForClaimResult>;
|
|
845
|
+
type GetReportArgs = {
|
|
846
|
+
path: {
|
|
847
|
+
report_id: string;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
type GetReportResult = WcReportRead;
|
|
851
|
+
/** Get Report */
|
|
852
|
+
/** `GET /legal/wc/ratings/reports/{report_id}` · aidream · auth guest · org required */
|
|
853
|
+
declare function getReport(api: Api, args: GetReportArgs, options?: CallOptions): Promise<GetReportResult>;
|
|
854
|
+
type ListReportInjuriesArgs = {
|
|
855
|
+
path: {
|
|
856
|
+
report_id: string;
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
type ListReportInjuriesResult = WcInjuryList;
|
|
860
|
+
/** List Report Injuries */
|
|
861
|
+
/** `GET /legal/wc/ratings/reports/{report_id}/injuries` · aidream · auth guest · org required */
|
|
862
|
+
declare function listReportInjuries(api: Api, args: ListReportInjuriesArgs, options?: CallOptions): Promise<ListReportInjuriesResult>;
|
|
863
|
+
type AddInjuryToReportArgs = {
|
|
864
|
+
path: {
|
|
865
|
+
report_id: string;
|
|
866
|
+
};
|
|
867
|
+
body: InjuryCreate;
|
|
868
|
+
};
|
|
869
|
+
type AddInjuryToReportResult = WcInjuryRead;
|
|
870
|
+
/** Add Injury To Report */
|
|
871
|
+
/** `POST /legal/wc/ratings/reports/{report_id}/injuries` · aidream · auth guest · org required */
|
|
872
|
+
declare function addInjuryToReport(api: Api, args: AddInjuryToReportArgs, options?: CallOptions): Promise<AddInjuryToReportResult>;
|
|
873
|
+
type CalculateReportRatingsArgs = {
|
|
874
|
+
path: {
|
|
875
|
+
report_id: string;
|
|
876
|
+
};
|
|
877
|
+
};
|
|
878
|
+
type CalculateReportRatingsResult = WcReportRead;
|
|
879
|
+
/** Calculate Report Ratings */
|
|
880
|
+
/** `POST /legal/wc/ratings/reports/{report_id}/calculate` · aidream · auth guest · org required */
|
|
881
|
+
declare function calculateReportRatings(api: Api, args: CalculateReportRatingsArgs, options?: CallOptions): Promise<CalculateReportRatingsResult>;
|
|
882
|
+
type UpdateInjuryArgs = {
|
|
883
|
+
path: {
|
|
884
|
+
injury_id: string;
|
|
885
|
+
};
|
|
886
|
+
body: InjuryPatch;
|
|
887
|
+
};
|
|
888
|
+
type UpdateInjuryResult = WcInjuryRead;
|
|
889
|
+
/** Update Injury */
|
|
890
|
+
/** `PATCH /legal/wc/ratings/injuries/{injury_id}` · aidream · auth guest · org required */
|
|
891
|
+
declare function updateInjury(api: Api, args: UpdateInjuryArgs, options?: CallOptions): Promise<UpdateInjuryResult>;
|
|
892
|
+
type DeleteInjuryArgs = {
|
|
893
|
+
path: {
|
|
894
|
+
injury_id: string;
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
type DeleteInjuryResult = void;
|
|
898
|
+
/** Delete Injury */
|
|
899
|
+
/** `DELETE /legal/wc/ratings/injuries/{injury_id}` · aidream · auth guest · org required */
|
|
900
|
+
declare function deleteInjury(api: Api, args: DeleteInjuryArgs, options?: CallOptions): Promise<DeleteInjuryResult>;
|
|
901
|
+
type CalculateStatelessArgs = {
|
|
902
|
+
body: StatelessCalculate;
|
|
903
|
+
};
|
|
904
|
+
type CalculateStatelessResult = StatelessRatingResponse;
|
|
905
|
+
/** Calculate Stateless */
|
|
906
|
+
/** `POST /legal/wc/ratings/calculate` · aidream · auth guest · org required */
|
|
907
|
+
declare function calculateStateless(api: Api, args: CalculateStatelessArgs, options?: CallOptions): Promise<CalculateStatelessResult>;
|
|
908
|
+
/** Every JSON operation of this domain by `METHOD path` — for path-keyed calls. */
|
|
909
|
+
interface Operations {
|
|
910
|
+
"POST /legal/webhooks/courtlistener": {
|
|
911
|
+
args: CourtlistenerWebhookArgs;
|
|
912
|
+
result: CourtlistenerWebhookResult;
|
|
913
|
+
};
|
|
914
|
+
"GET /legal/opinions/{opinion_id}": {
|
|
915
|
+
args: GetOpinionEndpointArgs;
|
|
916
|
+
result: GetOpinionEndpointResult;
|
|
917
|
+
};
|
|
918
|
+
"GET /legal/dockets/{docket_id}": {
|
|
919
|
+
args: GetDocketEndpointArgs;
|
|
920
|
+
result: GetDocketEndpointResult;
|
|
921
|
+
};
|
|
922
|
+
"POST /legal/citations/lookup": {
|
|
923
|
+
args: CitationsLookupArgs;
|
|
924
|
+
result: CitationsLookupResult;
|
|
925
|
+
};
|
|
926
|
+
"GET /legal/admin/version": {
|
|
927
|
+
args: VersionArgs;
|
|
928
|
+
result: VersionResult;
|
|
929
|
+
};
|
|
930
|
+
"GET /legal/admin/overview": {
|
|
931
|
+
args: OverviewArgs;
|
|
932
|
+
result: OverviewResult;
|
|
933
|
+
};
|
|
934
|
+
"GET /legal/admin/diagnose": {
|
|
935
|
+
args: DiagnoseArgs;
|
|
936
|
+
result: DiagnoseResult;
|
|
937
|
+
};
|
|
938
|
+
"GET /legal/admin/stats": {
|
|
939
|
+
args: StatsArgs;
|
|
940
|
+
result: StatsResult;
|
|
941
|
+
};
|
|
942
|
+
"GET /legal/admin/courts": {
|
|
943
|
+
args: CourtsArgs;
|
|
944
|
+
result: CourtsResult;
|
|
945
|
+
};
|
|
946
|
+
"GET /legal/admin/presets": {
|
|
947
|
+
args: PresetsArgs;
|
|
948
|
+
result: PresetsResult;
|
|
949
|
+
};
|
|
950
|
+
"GET /legal/admin/ingest-runs": {
|
|
951
|
+
args: IngestRunsArgs;
|
|
952
|
+
result: IngestRunsResult;
|
|
953
|
+
};
|
|
954
|
+
"GET /legal/admin/bulk/manifest": {
|
|
955
|
+
args: BulkManifestArgs;
|
|
956
|
+
result: BulkManifestResult;
|
|
957
|
+
};
|
|
958
|
+
"GET /legal/admin/clusters/local": {
|
|
959
|
+
args: SearchLocalArgs;
|
|
960
|
+
result: SearchLocalResult;
|
|
961
|
+
};
|
|
962
|
+
"GET /legal/admin/clusters/{cluster_id}": {
|
|
963
|
+
args: ClusterDetailArgs;
|
|
964
|
+
result: ClusterDetailResult;
|
|
965
|
+
};
|
|
966
|
+
"GET /legal/admin/opinions/{opinion_id}/text": {
|
|
967
|
+
args: OpinionTextArgs;
|
|
968
|
+
result: OpinionTextResult;
|
|
969
|
+
};
|
|
970
|
+
"GET /legal/wc/ratings/occupational-codes": {
|
|
971
|
+
args: GetOccupationalCodesArgs;
|
|
972
|
+
result: GetOccupationalCodesResult;
|
|
973
|
+
};
|
|
974
|
+
"GET /legal/wc/ratings/defaults": {
|
|
975
|
+
args: GetRatingDefaultsArgs;
|
|
976
|
+
result: GetRatingDefaultsResult;
|
|
977
|
+
};
|
|
978
|
+
"GET /legal/wc/ratings/impairments": {
|
|
979
|
+
args: ListImpairmentsArgs;
|
|
980
|
+
result: ListImpairmentsResult;
|
|
981
|
+
};
|
|
982
|
+
"POST /legal/wc/ratings/impairments/search": {
|
|
983
|
+
args: SearchImpairmentsArgs;
|
|
984
|
+
result: SearchImpairmentsResult;
|
|
985
|
+
};
|
|
986
|
+
"POST /legal/wc/ratings/claims": {
|
|
987
|
+
args: CreateWcClaimArgs;
|
|
988
|
+
result: CreateWcClaimResult;
|
|
989
|
+
};
|
|
990
|
+
"GET /legal/wc/ratings/claims/{claim_id}": {
|
|
991
|
+
args: GetWcClaimArgs;
|
|
992
|
+
result: GetWcClaimResult;
|
|
993
|
+
};
|
|
994
|
+
"PATCH /legal/wc/ratings/claims/{claim_id}": {
|
|
995
|
+
args: UpdateWcClaimArgs;
|
|
996
|
+
result: UpdateWcClaimResult;
|
|
997
|
+
};
|
|
998
|
+
"GET /legal/wc/ratings/claims/{claim_id}/report": {
|
|
999
|
+
args: GetReportByClaimArgs;
|
|
1000
|
+
result: GetReportByClaimResult;
|
|
1001
|
+
};
|
|
1002
|
+
"POST /legal/wc/ratings/claims/{claim_id}/report": {
|
|
1003
|
+
args: CreateReportForClaimArgs;
|
|
1004
|
+
result: CreateReportForClaimResult;
|
|
1005
|
+
};
|
|
1006
|
+
"GET /legal/wc/ratings/reports/{report_id}": {
|
|
1007
|
+
args: GetReportArgs;
|
|
1008
|
+
result: GetReportResult;
|
|
1009
|
+
};
|
|
1010
|
+
"GET /legal/wc/ratings/reports/{report_id}/injuries": {
|
|
1011
|
+
args: ListReportInjuriesArgs;
|
|
1012
|
+
result: ListReportInjuriesResult;
|
|
1013
|
+
};
|
|
1014
|
+
"POST /legal/wc/ratings/reports/{report_id}/injuries": {
|
|
1015
|
+
args: AddInjuryToReportArgs;
|
|
1016
|
+
result: AddInjuryToReportResult;
|
|
1017
|
+
};
|
|
1018
|
+
"POST /legal/wc/ratings/reports/{report_id}/calculate": {
|
|
1019
|
+
args: CalculateReportRatingsArgs;
|
|
1020
|
+
result: CalculateReportRatingsResult;
|
|
1021
|
+
};
|
|
1022
|
+
"PATCH /legal/wc/ratings/injuries/{injury_id}": {
|
|
1023
|
+
args: UpdateInjuryArgs;
|
|
1024
|
+
result: UpdateInjuryResult;
|
|
1025
|
+
};
|
|
1026
|
+
"DELETE /legal/wc/ratings/injuries/{injury_id}": {
|
|
1027
|
+
args: DeleteInjuryArgs;
|
|
1028
|
+
result: DeleteInjuryResult;
|
|
1029
|
+
};
|
|
1030
|
+
"POST /legal/wc/ratings/calculate": {
|
|
1031
|
+
args: CalculateStatelessArgs;
|
|
1032
|
+
result: CalculateStatelessResult;
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
/** Path-keyed call, scoped to this domain only (never a global path map). */
|
|
1036
|
+
declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
|
|
1037
|
+
|
|
1038
|
+
export { type AddInjuryToReportArgs, type AddInjuryToReportResult, type BulkDumpFileResponse, type BulkLoadArgs, type BulkLoadRequest, type BulkLoadResult, type BulkManifestArgs, type BulkManifestResponse, type BulkManifestResult, type CalculateReportRatingsArgs, type CalculateReportRatingsResult, type CalculateStatelessArgs, type CalculateStatelessResult, type CitationLookupRequest, type CitationLookupResponse, type CitationLookupResult, type CitationsLookupArgs, type CitationsLookupResult, type ClaimCreate, type ClaimPatch, type ClusterDetailArgs, type ClusterDetailResponse, type ClusterDetailResult, type ClusterSearchResponse, type CombinedRatingItem, type CombinedRatingOut, type CombinedRatingSide, type CompensationOut, type CourtListenerWebhookAccepted, type CourtPresetResponse, type CourtlistenerWebhookArgs, type CourtlistenerWebhookResult, type CourtsArgs, type CourtsResponse, type CourtsResult, type CreateReportForClaimArgs, type CreateReportForClaimResult, type CreateWcClaimArgs, type CreateWcClaimResult, type DefaultsResponse, type DeleteInjuryArgs, type DeleteInjuryResult, type DiagnoseArgs, type DiagnoseResult, type Docket, type GetDocketEndpointArgs, type GetDocketEndpointResult, type GetOccupationalCodesArgs, type GetOccupationalCodesResult, type GetOpinionEndpointArgs, type GetOpinionEndpointResult, type GetRatingDefaultsArgs, type GetRatingDefaultsResult, type GetReportArgs, type GetReportByClaimArgs, type GetReportByClaimResult, type GetReportResult, type GetWcClaimArgs, type GetWcClaimResult, type ImpairmentAvailableAttributes, type ImpairmentSearch, type ImpairmentSearchResponse, type ImpairmentsResponse, type IngestRunResponse, type IngestRunsArgs, type IngestRunsResponse, type IngestRunsResult, type InjuryCreate, type InjuryPatch, type LegalDiagnosticResponse, type LegalOverviewResponse, type LegalSearchArgs, type LegalSearchRequest, type LegalSearchResult, type LegalStatsResponse, type LegalVersionResponse, type ListImpairmentsArgs, type ListImpairmentsResult, type ListReportInjuriesArgs, type ListReportInjuriesResult, type LocalClusterResponse, type LocalCourtResponse, type LocalOpinionResponse, type OccupationalCodesResponse, type Operations, type Opinion, type OpinionTextArgs, type OpinionTextResponse, type OpinionTextResult, type OverviewArgs, type OverviewResult, type PresetsArgs, type PresetsResult, type SearchImpairmentsArgs, type SearchImpairmentsResult, type SearchLocalArgs, type SearchLocalResult, type StatelessApplicant, type StatelessApplicantOut, type StatelessCalculate, type StatelessClaim, type StatelessClaimOut, type StatelessInjury, type StatelessInjuryAttributes, type StatelessInjuryOut, type StatelessRatingResponse, type StatelessResultOut, type StatsArgs, type StatsResult, type SyncClustersArgs, type SyncClustersRequest, type SyncClustersResult, type SyncCourtsArgs, type SyncCourtsResult, type SyncOpinionsArgs, type SyncOpinionsRequest, type SyncOpinionsResult, type UpdateInjuryArgs, type UpdateInjuryResult, type UpdateWcClaimArgs, type UpdateWcClaimResult, type VersionArgs, type VersionResult, type WcClaimRead, type WcImpairmentDefinitionRead, type WcInjuryList, type WcInjuryRead, type WcReportRead, addInjuryToReport, type aidream__api__routers__legal_admin__PresetsResponse, bulkLoad, bulkManifest, calculateReportRatings, calculateStateless, call, citationsLookup, clusterDetail, courtlistenerWebhook, courts, createReportForClaim, createWcClaim, deleteInjury, diagnose, getDocketEndpoint, getOccupationalCodes, getOpinionEndpoint, getRatingDefaults, getReport, getReportByClaim, getWcClaim, ingestRuns, legalSearch, listImpairments, listReportInjuries, opinionText, overview, presets, searchImpairments, searchLocal, stats, syncClusters, syncCourts, syncOpinions, updateInjury, updateWcClaim, version };
|