casedev 0.3.0 → 0.4.1
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 +29 -0
- package/client.d.mts +24 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +24 -5
- package/client.d.ts.map +1 -1
- package/client.js +31 -5
- package/client.js.map +1 -1
- package/client.mjs +31 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/applications/applications.d.mts +10 -0
- package/resources/applications/applications.d.mts.map +1 -0
- package/resources/applications/applications.d.ts +10 -0
- package/resources/applications/applications.d.ts.map +1 -0
- package/resources/applications/applications.js +17 -0
- package/resources/applications/applications.js.map +1 -0
- package/resources/applications/applications.mjs +12 -0
- package/resources/applications/applications.mjs.map +1 -0
- package/resources/applications/index.d.mts +3 -0
- package/resources/applications/index.d.mts.map +1 -0
- package/resources/applications/index.d.ts +3 -0
- package/resources/applications/index.d.ts.map +1 -0
- package/resources/applications/index.js +9 -0
- package/resources/applications/index.js.map +1 -0
- package/resources/applications/index.mjs +4 -0
- package/resources/applications/index.mjs.map +1 -0
- package/resources/applications/v1/deployments.d.mts +105 -0
- package/resources/applications/v1/deployments.d.mts.map +1 -0
- package/resources/applications/v1/deployments.d.ts +105 -0
- package/resources/applications/v1/deployments.d.ts.map +1 -0
- package/resources/applications/v1/deployments.js +89 -0
- package/resources/applications/v1/deployments.js.map +1 -0
- package/resources/applications/v1/deployments.mjs +85 -0
- package/resources/applications/v1/deployments.mjs.map +1 -0
- package/resources/applications/v1/index.d.mts +5 -0
- package/resources/applications/v1/index.d.mts.map +1 -0
- package/resources/applications/v1/index.d.ts +5 -0
- package/resources/applications/v1/index.d.ts.map +1 -0
- package/resources/applications/v1/index.js +13 -0
- package/resources/applications/v1/index.js.map +1 -0
- package/resources/applications/v1/index.mjs +6 -0
- package/resources/applications/v1/index.mjs.map +1 -0
- package/resources/applications/v1/projects.d.mts +247 -0
- package/resources/applications/v1/projects.d.mts.map +1 -0
- package/resources/applications/v1/projects.d.ts +247 -0
- package/resources/applications/v1/projects.d.ts.map +1 -0
- package/resources/applications/v1/projects.js +137 -0
- package/resources/applications/v1/projects.js.map +1 -0
- package/resources/applications/v1/projects.mjs +133 -0
- package/resources/applications/v1/projects.mjs.map +1 -0
- package/resources/applications/v1/v1.d.mts +18 -0
- package/resources/applications/v1/v1.d.mts.map +1 -0
- package/resources/applications/v1/v1.d.ts +18 -0
- package/resources/applications/v1/v1.d.ts.map +1 -0
- package/resources/applications/v1/v1.js +25 -0
- package/resources/applications/v1/v1.js.map +1 -0
- package/resources/applications/v1/v1.mjs +20 -0
- package/resources/applications/v1/v1.mjs.map +1 -0
- package/resources/applications/v1/workflows.d.mts +19 -0
- package/resources/applications/v1/workflows.d.mts.map +1 -0
- package/resources/applications/v1/workflows.d.ts +19 -0
- package/resources/applications/v1/workflows.d.ts.map +1 -0
- package/resources/applications/v1/workflows.js +21 -0
- package/resources/applications/v1/workflows.js.map +1 -0
- package/resources/applications/v1/workflows.mjs +17 -0
- package/resources/applications/v1/workflows.mjs.map +1 -0
- package/resources/applications/v1.d.mts +2 -0
- package/resources/applications/v1.d.mts.map +1 -0
- package/resources/applications/v1.d.ts +2 -0
- package/resources/applications/v1.d.ts.map +1 -0
- package/resources/applications/v1.js +6 -0
- package/resources/applications/v1.js.map +1 -0
- package/resources/{webhooks.mjs → applications/v1.mjs} +2 -2
- package/resources/applications/v1.mjs.map +1 -0
- package/resources/applications.d.mts +2 -0
- package/resources/applications.d.mts.map +1 -0
- package/resources/applications.d.ts +2 -0
- package/resources/applications.d.ts.map +1 -0
- package/resources/applications.js +6 -0
- package/resources/applications.js.map +1 -0
- package/resources/applications.mjs +3 -0
- package/resources/applications.mjs.map +1 -0
- package/resources/compute/v1/index.d.mts +2 -3
- package/resources/compute/v1/index.d.mts.map +1 -1
- package/resources/compute/v1/index.d.ts +2 -3
- package/resources/compute/v1/index.d.ts.map +1 -1
- package/resources/compute/v1/index.js +5 -7
- package/resources/compute/v1/index.js.map +1 -1
- package/resources/compute/v1/index.mjs +2 -3
- package/resources/compute/v1/index.mjs.map +1 -1
- package/resources/compute/v1/instance-types.d.mts +70 -0
- package/resources/compute/v1/instance-types.d.mts.map +1 -0
- package/resources/compute/v1/instance-types.d.ts +70 -0
- package/resources/compute/v1/instance-types.d.ts.map +1 -0
- package/resources/compute/v1/instance-types.js +24 -0
- package/resources/compute/v1/instance-types.js.map +1 -0
- package/resources/compute/v1/instance-types.mjs +20 -0
- package/resources/compute/v1/instance-types.mjs.map +1 -0
- package/resources/compute/v1/instances.d.mts +157 -0
- package/resources/compute/v1/instances.d.mts.map +1 -0
- package/resources/compute/v1/instances.d.ts +157 -0
- package/resources/compute/v1/instances.d.ts.map +1 -0
- package/resources/compute/v1/instances.js +74 -0
- package/resources/compute/v1/instances.js.map +1 -0
- package/resources/compute/v1/instances.mjs +70 -0
- package/resources/compute/v1/instances.mjs.map +1 -0
- package/resources/compute/v1/v1.d.mts +8 -12
- package/resources/compute/v1/v1.d.mts.map +1 -1
- package/resources/compute/v1/v1.d.ts +8 -12
- package/resources/compute/v1/v1.d.ts.map +1 -1
- package/resources/compute/v1/v1.js +8 -12
- package/resources/compute/v1/v1.js.map +1 -1
- package/resources/compute/v1/v1.mjs +8 -12
- package/resources/compute/v1/v1.mjs.map +1 -1
- package/resources/database/database.d.mts +10 -0
- package/resources/database/database.d.mts.map +1 -0
- package/resources/database/database.d.ts +10 -0
- package/resources/database/database.d.ts.map +1 -0
- package/resources/database/database.js +17 -0
- package/resources/database/database.js.map +1 -0
- package/resources/database/database.mjs +12 -0
- package/resources/database/database.mjs.map +1 -0
- package/resources/database/index.d.mts +3 -0
- package/resources/database/index.d.mts.map +1 -0
- package/resources/database/index.d.ts +3 -0
- package/resources/database/index.d.ts.map +1 -0
- package/resources/database/index.js +9 -0
- package/resources/database/index.js.map +1 -0
- package/resources/database/index.mjs +4 -0
- package/resources/database/index.mjs.map +1 -0
- package/resources/database/v1/index.d.mts +3 -0
- package/resources/database/v1/index.d.mts.map +1 -0
- package/resources/database/v1/index.d.ts +3 -0
- package/resources/database/v1/index.d.ts.map +1 -0
- package/resources/{webhooks → database/v1}/index.js +3 -3
- package/resources/database/v1/index.js.map +1 -0
- package/resources/database/v1/index.mjs +4 -0
- package/resources/database/v1/index.mjs.map +1 -0
- package/resources/database/v1/projects.d.mts +464 -0
- package/resources/database/v1/projects.d.mts.map +1 -0
- package/resources/database/v1/projects.d.ts +464 -0
- package/resources/database/v1/projects.d.ts.map +1 -0
- package/resources/database/v1/projects.js +122 -0
- package/resources/database/v1/projects.js.map +1 -0
- package/resources/database/v1/projects.mjs +118 -0
- package/resources/database/v1/projects.mjs.map +1 -0
- package/resources/database/v1/v1.d.mts +141 -0
- package/resources/database/v1/v1.d.mts.map +1 -0
- package/resources/database/v1/v1.d.ts +141 -0
- package/resources/database/v1/v1.d.ts.map +1 -0
- package/resources/database/v1/v1.js +30 -0
- package/resources/database/v1/v1.js.map +1 -0
- package/resources/database/v1/v1.mjs +25 -0
- package/resources/database/v1/v1.mjs.map +1 -0
- package/resources/database/v1.d.mts +2 -0
- package/resources/database/v1.d.mts.map +1 -0
- package/resources/database/v1.d.ts +2 -0
- package/resources/database/v1.d.ts.map +1 -0
- package/resources/database/v1.js +6 -0
- package/resources/database/v1.js.map +1 -0
- package/resources/database/v1.mjs +3 -0
- package/resources/database/v1.mjs.map +1 -0
- package/resources/database.d.mts +2 -0
- package/resources/database.d.mts.map +1 -0
- package/resources/database.d.ts +2 -0
- package/resources/database.d.ts.map +1 -0
- package/resources/{webhooks.js → database.js} +2 -2
- package/resources/database.js.map +1 -0
- package/resources/database.mjs +3 -0
- package/resources/database.mjs.map +1 -0
- package/resources/index.d.mts +8 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -1
- package/resources/index.mjs.map +1 -1
- package/resources/legal/index.d.mts +3 -0
- package/resources/legal/index.d.mts.map +1 -0
- package/resources/legal/index.d.ts +3 -0
- package/resources/legal/index.d.ts.map +1 -0
- package/resources/legal/index.js +9 -0
- package/resources/legal/index.js.map +1 -0
- package/resources/legal/index.mjs +4 -0
- package/resources/legal/index.mjs.map +1 -0
- package/resources/legal/legal.d.mts +10 -0
- package/resources/legal/legal.d.mts.map +1 -0
- package/resources/legal/legal.d.ts +10 -0
- package/resources/legal/legal.d.ts.map +1 -0
- package/resources/{webhooks/webhooks.js → legal/legal.js} +5 -5
- package/resources/legal/legal.js.map +1 -0
- package/resources/legal/legal.mjs +12 -0
- package/resources/legal/legal.mjs.map +1 -0
- package/resources/legal/v1.d.mts +572 -0
- package/resources/legal/v1.d.mts.map +1 -0
- package/resources/legal/v1.d.ts +572 -0
- package/resources/legal/v1.d.ts.map +1 -0
- package/resources/legal/v1.js +72 -0
- package/resources/legal/v1.js.map +1 -0
- package/resources/legal/v1.mjs +68 -0
- package/resources/legal/v1.mjs.map +1 -0
- package/resources/legal.d.mts +2 -0
- package/resources/legal.d.mts.map +1 -0
- package/resources/legal.d.ts +2 -0
- package/resources/legal.d.ts.map +1 -0
- package/resources/legal.js +6 -0
- package/resources/legal.js.map +1 -0
- package/resources/legal.mjs +3 -0
- package/resources/legal.mjs.map +1 -0
- package/resources/memory/index.d.mts +3 -0
- package/resources/memory/index.d.mts.map +1 -0
- package/resources/memory/index.d.ts +3 -0
- package/resources/memory/index.d.ts.map +1 -0
- package/resources/memory/index.js +9 -0
- package/resources/memory/index.js.map +1 -0
- package/resources/memory/index.mjs +4 -0
- package/resources/memory/index.mjs.map +1 -0
- package/resources/memory/memory.d.mts +10 -0
- package/resources/memory/memory.d.mts.map +1 -0
- package/resources/memory/memory.d.ts +10 -0
- package/resources/memory/memory.d.ts.map +1 -0
- package/resources/memory/memory.js +17 -0
- package/resources/memory/memory.js.map +1 -0
- package/resources/memory/memory.mjs +12 -0
- package/resources/memory/memory.mjs.map +1 -0
- package/resources/memory/v1.d.mts +417 -0
- package/resources/memory/v1.d.mts.map +1 -0
- package/resources/memory/v1.d.ts +417 -0
- package/resources/memory/v1.d.ts.map +1 -0
- package/resources/memory/v1.js +66 -0
- package/resources/memory/v1.js.map +1 -0
- package/resources/memory/v1.mjs +62 -0
- package/resources/memory/v1.mjs.map +1 -0
- package/resources/memory.d.mts +2 -0
- package/resources/memory.d.mts.map +1 -0
- package/resources/memory.d.ts +2 -0
- package/resources/memory.d.ts.map +1 -0
- package/resources/memory.js +6 -0
- package/resources/memory.js.map +1 -0
- package/resources/memory.mjs +3 -0
- package/resources/memory.mjs.map +1 -0
- package/resources/privilege/index.d.mts +3 -0
- package/resources/privilege/index.d.mts.map +1 -0
- package/resources/privilege/index.d.ts +3 -0
- package/resources/privilege/index.d.ts.map +1 -0
- package/resources/privilege/index.js +9 -0
- package/resources/privilege/index.js.map +1 -0
- package/resources/privilege/index.mjs +4 -0
- package/resources/privilege/index.mjs.map +1 -0
- package/resources/privilege/privilege.d.mts +10 -0
- package/resources/privilege/privilege.d.mts.map +1 -0
- package/resources/privilege/privilege.d.ts +10 -0
- package/resources/privilege/privilege.d.ts.map +1 -0
- package/resources/privilege/privilege.js +17 -0
- package/resources/privilege/privilege.js.map +1 -0
- package/resources/privilege/privilege.mjs +12 -0
- package/resources/privilege/privilege.mjs.map +1 -0
- package/resources/privilege/v1.d.mts +100 -0
- package/resources/privilege/v1.d.mts.map +1 -0
- package/resources/privilege/v1.d.ts +100 -0
- package/resources/privilege/v1.d.ts.map +1 -0
- package/resources/privilege/v1.js +28 -0
- package/resources/privilege/v1.js.map +1 -0
- package/resources/privilege/v1.mjs +24 -0
- package/resources/privilege/v1.mjs.map +1 -0
- package/resources/privilege.d.mts +2 -0
- package/resources/privilege.d.mts.map +1 -0
- package/resources/privilege.d.ts +2 -0
- package/resources/privilege.d.ts.map +1 -0
- package/resources/privilege.js +6 -0
- package/resources/privilege.js.map +1 -0
- package/resources/privilege.mjs +3 -0
- package/resources/privilege.mjs.map +1 -0
- package/resources/superdoc/index.d.mts +3 -0
- package/resources/superdoc/index.d.mts.map +1 -0
- package/resources/superdoc/index.d.ts +3 -0
- package/resources/superdoc/index.d.ts.map +1 -0
- package/resources/superdoc/index.js +9 -0
- package/resources/superdoc/index.js.map +1 -0
- package/resources/{webhooks → superdoc}/index.mjs +1 -1
- package/resources/superdoc/index.mjs.map +1 -0
- package/resources/superdoc/superdoc.d.mts +10 -0
- package/resources/superdoc/superdoc.d.mts.map +1 -0
- package/resources/superdoc/superdoc.d.ts +10 -0
- package/resources/superdoc/superdoc.d.ts.map +1 -0
- package/resources/superdoc/superdoc.js +17 -0
- package/resources/superdoc/superdoc.js.map +1 -0
- package/resources/{webhooks/webhooks.mjs → superdoc/superdoc.mjs} +3 -3
- package/resources/superdoc/superdoc.mjs.map +1 -0
- package/resources/superdoc/v1.d.mts +104 -0
- package/resources/superdoc/v1.d.mts.map +1 -0
- package/resources/superdoc/v1.d.ts +104 -0
- package/resources/superdoc/v1.d.ts.map +1 -0
- package/resources/superdoc/v1.js +36 -0
- package/resources/superdoc/v1.js.map +1 -0
- package/resources/superdoc/v1.mjs +32 -0
- package/resources/superdoc/v1.mjs.map +1 -0
- package/resources/superdoc.d.mts +2 -0
- package/resources/superdoc.d.mts.map +1 -0
- package/resources/superdoc.d.ts +2 -0
- package/resources/superdoc.d.ts.map +1 -0
- package/resources/superdoc.js +6 -0
- package/resources/superdoc.js.map +1 -0
- package/resources/superdoc.mjs +3 -0
- package/resources/superdoc.mjs.map +1 -0
- package/resources/translate/index.d.mts +3 -0
- package/resources/translate/index.d.mts.map +1 -0
- package/resources/translate/index.d.ts +3 -0
- package/resources/translate/index.d.ts.map +1 -0
- package/resources/translate/index.js +9 -0
- package/resources/translate/index.js.map +1 -0
- package/resources/translate/index.mjs +4 -0
- package/resources/translate/index.mjs.map +1 -0
- package/resources/translate/translate.d.mts +10 -0
- package/resources/translate/translate.d.mts.map +1 -0
- package/resources/translate/translate.d.ts +10 -0
- package/resources/translate/translate.d.ts.map +1 -0
- package/resources/translate/translate.js +17 -0
- package/resources/translate/translate.js.map +1 -0
- package/resources/translate/translate.mjs +12 -0
- package/resources/translate/translate.mjs.map +1 -0
- package/resources/translate/v1.d.mts +154 -0
- package/resources/translate/v1.d.mts.map +1 -0
- package/resources/translate/v1.d.ts +154 -0
- package/resources/translate/v1.d.ts.map +1 -0
- package/resources/translate/v1.js +51 -0
- package/resources/translate/v1.js.map +1 -0
- package/resources/translate/v1.mjs +47 -0
- package/resources/translate/v1.mjs.map +1 -0
- package/resources/translate.d.mts +2 -0
- package/resources/translate.d.mts.map +1 -0
- package/resources/translate.d.ts +2 -0
- package/resources/translate.d.ts.map +1 -0
- package/resources/translate.js +6 -0
- package/resources/translate.js.map +1 -0
- package/resources/translate.mjs +3 -0
- package/resources/translate.mjs.map +1 -0
- package/resources/vault/graphrag.d.mts +65 -1
- package/resources/vault/graphrag.d.mts.map +1 -1
- package/resources/vault/graphrag.d.ts +65 -1
- package/resources/vault/graphrag.d.ts.map +1 -1
- package/resources/vault/graphrag.js +17 -0
- package/resources/vault/graphrag.js.map +1 -1
- package/resources/vault/graphrag.mjs +17 -0
- package/resources/vault/graphrag.mjs.map +1 -1
- package/resources/vault/index.d.mts +4 -3
- package/resources/vault/index.d.mts.map +1 -1
- package/resources/vault/index.d.ts +4 -3
- package/resources/vault/index.d.ts.map +1 -1
- package/resources/vault/index.js +3 -1
- package/resources/vault/index.js.map +1 -1
- package/resources/vault/index.mjs +2 -1
- package/resources/vault/index.mjs.map +1 -1
- package/resources/vault/multipart.d.mts +140 -0
- package/resources/vault/multipart.d.mts.map +1 -0
- package/resources/vault/multipart.d.ts +140 -0
- package/resources/vault/multipart.d.ts.map +1 -0
- package/resources/vault/multipart.js +84 -0
- package/resources/vault/multipart.js.map +1 -0
- package/resources/vault/multipart.mjs +80 -0
- package/resources/vault/multipart.mjs.map +1 -0
- package/resources/vault/objects.d.mts +275 -3
- package/resources/vault/objects.d.mts.map +1 -1
- package/resources/vault/objects.d.ts +275 -3
- package/resources/vault/objects.d.ts.map +1 -1
- package/resources/vault/objects.js +72 -0
- package/resources/vault/objects.js.map +1 -1
- package/resources/vault/objects.mjs +72 -0
- package/resources/vault/objects.mjs.map +1 -1
- package/resources/vault/vault.d.mts +139 -7
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +139 -7
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js +33 -0
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs +34 -1
- package/resources/vault/vault.mjs.map +1 -1
- package/src/client.ts +53 -7
- package/src/internal/parse.ts +6 -0
- package/src/resources/{webhooks/webhooks.ts → applications/applications.ts} +5 -5
- package/src/resources/applications/index.ts +4 -0
- package/src/resources/applications/v1/deployments.ts +183 -0
- package/src/resources/applications/v1/index.ts +27 -0
- package/src/resources/applications/v1/projects.ts +421 -0
- package/src/resources/applications/v1/v1.ts +69 -0
- package/src/resources/applications/v1/workflows.ts +31 -0
- package/src/resources/{webhooks.ts → applications/v1.ts} +1 -1
- package/src/resources/{webhooks/index.ts → applications.ts} +1 -2
- package/src/resources/compute/v1/index.ts +9 -3
- package/src/resources/compute/v1/instance-types.ts +86 -0
- package/src/resources/compute/v1/instances.ts +237 -0
- package/src/resources/compute/v1/v1.ts +24 -16
- package/src/resources/database/database.ts +15 -0
- package/src/resources/database/index.ts +4 -0
- package/src/resources/database/v1/index.ts +16 -0
- package/src/resources/database/v1/projects.ts +594 -0
- package/src/resources/database/v1/v1.ts +209 -0
- package/src/resources/database/v1.ts +3 -0
- package/src/resources/database.ts +3 -0
- package/src/resources/index.ts +11 -1
- package/src/resources/legal/index.ts +22 -0
- package/src/resources/legal/legal.ts +51 -0
- package/src/resources/legal/v1.ts +749 -0
- package/src/resources/legal.ts +3 -0
- package/src/resources/memory/index.ts +16 -0
- package/src/resources/memory/memory.ts +39 -0
- package/src/resources/memory/v1.ts +556 -0
- package/src/resources/memory.ts +3 -0
- package/src/resources/privilege/index.ts +4 -0
- package/src/resources/privilege/privilege.ts +15 -0
- package/src/resources/privilege/v1.ts +122 -0
- package/src/resources/privilege.ts +3 -0
- package/src/resources/superdoc/index.ts +4 -0
- package/src/resources/superdoc/superdoc.ts +15 -0
- package/src/resources/superdoc/v1.ts +146 -0
- package/src/resources/superdoc.ts +3 -0
- package/src/resources/translate/index.ts +12 -0
- package/src/resources/translate/translate.ts +31 -0
- package/src/resources/translate/v1.ts +197 -0
- package/src/resources/translate.ts +3 -0
- package/src/resources/vault/graphrag.ts +86 -0
- package/src/resources/vault/index.ts +28 -1
- package/src/resources/vault/multipart.ts +204 -0
- package/src/resources/vault/objects.ts +361 -2
- package/src/resources/vault/vault.ts +220 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/compute/v1/functions.d.mts +0 -4
- package/resources/compute/v1/functions.d.mts.map +0 -1
- package/resources/compute/v1/functions.d.ts +0 -4
- package/resources/compute/v1/functions.d.ts.map +0 -1
- package/resources/compute/v1/functions.js +0 -9
- package/resources/compute/v1/functions.js.map +0 -1
- package/resources/compute/v1/functions.mjs +0 -5
- package/resources/compute/v1/functions.mjs.map +0 -1
- package/resources/compute/v1/invoke.d.mts +0 -4
- package/resources/compute/v1/invoke.d.mts.map +0 -1
- package/resources/compute/v1/invoke.d.ts +0 -4
- package/resources/compute/v1/invoke.d.ts.map +0 -1
- package/resources/compute/v1/invoke.js +0 -9
- package/resources/compute/v1/invoke.js.map +0 -1
- package/resources/compute/v1/invoke.mjs +0 -5
- package/resources/compute/v1/invoke.mjs.map +0 -1
- package/resources/compute/v1/runs.d.mts +0 -4
- package/resources/compute/v1/runs.d.mts.map +0 -1
- package/resources/compute/v1/runs.d.ts +0 -4
- package/resources/compute/v1/runs.d.ts.map +0 -1
- package/resources/compute/v1/runs.js +0 -9
- package/resources/compute/v1/runs.js.map +0 -1
- package/resources/compute/v1/runs.mjs +0 -5
- package/resources/compute/v1/runs.mjs.map +0 -1
- package/resources/webhooks/index.d.mts +0 -3
- package/resources/webhooks/index.d.mts.map +0 -1
- package/resources/webhooks/index.d.ts +0 -3
- package/resources/webhooks/index.d.ts.map +0 -1
- package/resources/webhooks/index.js.map +0 -1
- package/resources/webhooks/index.mjs.map +0 -1
- package/resources/webhooks/v1.d.mts +0 -4
- package/resources/webhooks/v1.d.mts.map +0 -1
- package/resources/webhooks/v1.d.ts +0 -4
- package/resources/webhooks/v1.d.ts.map +0 -1
- package/resources/webhooks/v1.js +0 -9
- package/resources/webhooks/v1.js.map +0 -1
- package/resources/webhooks/v1.mjs +0 -5
- package/resources/webhooks/v1.mjs.map +0 -1
- package/resources/webhooks/webhooks.d.mts +0 -10
- package/resources/webhooks/webhooks.d.mts.map +0 -1
- package/resources/webhooks/webhooks.d.ts +0 -10
- package/resources/webhooks/webhooks.d.ts.map +0 -1
- package/resources/webhooks/webhooks.js.map +0 -1
- package/resources/webhooks/webhooks.mjs.map +0 -1
- package/resources/webhooks.d.mts +0 -2
- package/resources/webhooks.d.mts.map +0 -1
- package/resources/webhooks.d.ts +0 -2
- package/resources/webhooks.d.ts.map +0 -1
- package/resources/webhooks.js.map +0 -1
- package/resources/webhooks.mjs.map +0 -1
- package/src/resources/compute/v1/functions.ts +0 -5
- package/src/resources/compute/v1/invoke.ts +0 -5
- package/src/resources/compute/v1/runs.ts +0 -5
- package/src/resources/webhooks/v1.ts +0 -5
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class V1 extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Search for legal sources including cases, statutes, and regulations from
|
|
7
|
+
* authoritative legal databases. Returns ranked candidates. Always verify with
|
|
8
|
+
* legal.verify() before citing.
|
|
9
|
+
*/
|
|
10
|
+
find(body: V1FindParams, options?: RequestOptions): APIPromise<V1FindResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Parses legal citations from text and returns structured Bluebook components
|
|
13
|
+
* (case name, reporter, volume, page, year, court). Accepts either a single
|
|
14
|
+
* citation or a full text block.
|
|
15
|
+
*/
|
|
16
|
+
getCitations(body: V1GetCitationsParams, options?: RequestOptions): APIPromise<V1GetCitationsResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Extract all legal citations and references from a document URL. Returns
|
|
19
|
+
* structured citation data including case citations, statute references, and
|
|
20
|
+
* regulatory citations.
|
|
21
|
+
*/
|
|
22
|
+
getCitationsFromURL(body: V1GetCitationsFromURLParams, options?: RequestOptions): APIPromise<V1GetCitationsFromURLResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve the full text content of a legal document. Use after verifying the
|
|
25
|
+
* source with legal.verify(). Returns complete text with optional highlights and
|
|
26
|
+
* AI summary.
|
|
27
|
+
*/
|
|
28
|
+
getFullText(body: V1GetFullTextParams, options?: RequestOptions): APIPromise<V1GetFullTextResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Search for a jurisdiction by name. Returns matching jurisdictions with their IDs
|
|
31
|
+
* for use in legal.find() and other legal research endpoints.
|
|
32
|
+
*/
|
|
33
|
+
listJurisdictions(body: V1ListJurisdictionsParams, options?: RequestOptions): APIPromise<V1ListJurisdictionsResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Perform comprehensive legal research with multiple query variations. Uses
|
|
36
|
+
* advanced deep search to find relevant sources across different phrasings of the
|
|
37
|
+
* legal issue.
|
|
38
|
+
*/
|
|
39
|
+
research(body: V1ResearchParams, options?: RequestOptions): APIPromise<V1ResearchResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Find cases and documents similar to a given legal source. Useful for finding
|
|
42
|
+
* citing cases, related precedents, or similar statutes.
|
|
43
|
+
*/
|
|
44
|
+
similar(body: V1SimilarParams, options?: RequestOptions): APIPromise<V1SimilarResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Validates legal citations against authoritative case law sources (CourtListener
|
|
47
|
+
* database of ~10M cases). Returns verification status and case metadata for each
|
|
48
|
+
* citation found in the input text. Accepts either a single citation or a full
|
|
49
|
+
* text block containing multiple citations.
|
|
50
|
+
*/
|
|
51
|
+
verify(body: V1VerifyParams, options?: RequestOptions): APIPromise<V1VerifyResponse>;
|
|
52
|
+
}
|
|
53
|
+
export interface V1FindResponse {
|
|
54
|
+
candidates?: Array<V1FindResponse.Candidate>;
|
|
55
|
+
/**
|
|
56
|
+
* Number of candidates found
|
|
57
|
+
*/
|
|
58
|
+
found?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Usage guidance
|
|
61
|
+
*/
|
|
62
|
+
hint?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Jurisdiction filter applied
|
|
65
|
+
*/
|
|
66
|
+
jurisdiction?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Original search query
|
|
69
|
+
*/
|
|
70
|
+
query?: string;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace V1FindResponse {
|
|
73
|
+
interface Candidate {
|
|
74
|
+
/**
|
|
75
|
+
* Text excerpt from the document
|
|
76
|
+
*/
|
|
77
|
+
snippet?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Domain of the source
|
|
80
|
+
*/
|
|
81
|
+
source?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Title of the document
|
|
84
|
+
*/
|
|
85
|
+
title?: string;
|
|
86
|
+
/**
|
|
87
|
+
* URL of the legal source
|
|
88
|
+
*/
|
|
89
|
+
url?: string;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export interface V1GetCitationsResponse {
|
|
93
|
+
citations?: Array<V1GetCitationsResponse.Citation>;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace V1GetCitationsResponse {
|
|
96
|
+
interface Citation {
|
|
97
|
+
/**
|
|
98
|
+
* Structured Bluebook components. Null if citation format is not recognized.
|
|
99
|
+
*/
|
|
100
|
+
components?: Citation.Components | null;
|
|
101
|
+
/**
|
|
102
|
+
* Whether citation was found in CourtListener database
|
|
103
|
+
*/
|
|
104
|
+
found?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Normalized citation string
|
|
107
|
+
*/
|
|
108
|
+
normalized?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Original citation as found in text
|
|
111
|
+
*/
|
|
112
|
+
original?: string;
|
|
113
|
+
span?: Citation.Span;
|
|
114
|
+
}
|
|
115
|
+
namespace Citation {
|
|
116
|
+
/**
|
|
117
|
+
* Structured Bluebook components. Null if citation format is not recognized.
|
|
118
|
+
*/
|
|
119
|
+
interface Components {
|
|
120
|
+
/**
|
|
121
|
+
* Case name, e.g., "Bush v. Gore"
|
|
122
|
+
*/
|
|
123
|
+
caseName?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Court identifier
|
|
126
|
+
*/
|
|
127
|
+
court?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Starting page number
|
|
130
|
+
*/
|
|
131
|
+
page?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Pin cite (specific page)
|
|
134
|
+
*/
|
|
135
|
+
pinCite?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Reporter abbreviation, e.g., "U.S."
|
|
138
|
+
*/
|
|
139
|
+
reporter?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Volume number
|
|
142
|
+
*/
|
|
143
|
+
volume?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Decision year
|
|
146
|
+
*/
|
|
147
|
+
year?: number;
|
|
148
|
+
}
|
|
149
|
+
interface Span {
|
|
150
|
+
end?: number;
|
|
151
|
+
start?: number;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
export interface V1GetCitationsFromURLResponse {
|
|
156
|
+
citations?: V1GetCitationsFromURLResponse.Citations;
|
|
157
|
+
/**
|
|
158
|
+
* External links found in the document
|
|
159
|
+
*/
|
|
160
|
+
externalLinks?: Array<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Usage guidance
|
|
163
|
+
*/
|
|
164
|
+
hint?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Document title
|
|
167
|
+
*/
|
|
168
|
+
title?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Total citations found
|
|
171
|
+
*/
|
|
172
|
+
totalCitations?: number;
|
|
173
|
+
/**
|
|
174
|
+
* Source document URL
|
|
175
|
+
*/
|
|
176
|
+
url?: string;
|
|
177
|
+
}
|
|
178
|
+
export declare namespace V1GetCitationsFromURLResponse {
|
|
179
|
+
interface Citations {
|
|
180
|
+
cases?: Array<Citations.Case>;
|
|
181
|
+
regulations?: Array<Citations.Regulation>;
|
|
182
|
+
statutes?: Array<Citations.Statute>;
|
|
183
|
+
}
|
|
184
|
+
namespace Citations {
|
|
185
|
+
interface Case {
|
|
186
|
+
/**
|
|
187
|
+
* The citation string
|
|
188
|
+
*/
|
|
189
|
+
citation?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Number of occurrences
|
|
192
|
+
*/
|
|
193
|
+
count?: number;
|
|
194
|
+
/**
|
|
195
|
+
* Citation type (usReporter, federalReporter, etc.)
|
|
196
|
+
*/
|
|
197
|
+
type?: string;
|
|
198
|
+
}
|
|
199
|
+
interface Regulation {
|
|
200
|
+
/**
|
|
201
|
+
* The citation string
|
|
202
|
+
*/
|
|
203
|
+
citation?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Number of occurrences
|
|
206
|
+
*/
|
|
207
|
+
count?: number;
|
|
208
|
+
/**
|
|
209
|
+
* Citation type (cfr)
|
|
210
|
+
*/
|
|
211
|
+
type?: string;
|
|
212
|
+
}
|
|
213
|
+
interface Statute {
|
|
214
|
+
/**
|
|
215
|
+
* The citation string
|
|
216
|
+
*/
|
|
217
|
+
citation?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Number of occurrences
|
|
220
|
+
*/
|
|
221
|
+
count?: number;
|
|
222
|
+
/**
|
|
223
|
+
* Citation type (usc)
|
|
224
|
+
*/
|
|
225
|
+
type?: string;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
export interface V1GetFullTextResponse {
|
|
230
|
+
/**
|
|
231
|
+
* Author or court
|
|
232
|
+
*/
|
|
233
|
+
author?: string | null;
|
|
234
|
+
/**
|
|
235
|
+
* Total characters in text
|
|
236
|
+
*/
|
|
237
|
+
characterCount?: number;
|
|
238
|
+
/**
|
|
239
|
+
* Highlighted relevant passages
|
|
240
|
+
*/
|
|
241
|
+
highlights?: Array<string>;
|
|
242
|
+
/**
|
|
243
|
+
* Publication date
|
|
244
|
+
*/
|
|
245
|
+
publishedDate?: string | null;
|
|
246
|
+
/**
|
|
247
|
+
* AI-generated summary
|
|
248
|
+
*/
|
|
249
|
+
summary?: string | null;
|
|
250
|
+
/**
|
|
251
|
+
* Full document text
|
|
252
|
+
*/
|
|
253
|
+
text?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Document title
|
|
256
|
+
*/
|
|
257
|
+
title?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Document URL
|
|
260
|
+
*/
|
|
261
|
+
url?: string;
|
|
262
|
+
}
|
|
263
|
+
export interface V1ListJurisdictionsResponse {
|
|
264
|
+
/**
|
|
265
|
+
* Number of matching jurisdictions
|
|
266
|
+
*/
|
|
267
|
+
found?: number;
|
|
268
|
+
/**
|
|
269
|
+
* Usage guidance
|
|
270
|
+
*/
|
|
271
|
+
hint?: string;
|
|
272
|
+
jurisdictions?: Array<V1ListJurisdictionsResponse.Jurisdiction>;
|
|
273
|
+
/**
|
|
274
|
+
* Original search query
|
|
275
|
+
*/
|
|
276
|
+
query?: string;
|
|
277
|
+
}
|
|
278
|
+
export declare namespace V1ListJurisdictionsResponse {
|
|
279
|
+
interface Jurisdiction {
|
|
280
|
+
/**
|
|
281
|
+
* Jurisdiction ID to use in other endpoints
|
|
282
|
+
*/
|
|
283
|
+
id?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Jurisdiction level
|
|
286
|
+
*/
|
|
287
|
+
level?: 'federal' | 'state' | 'county' | 'municipal';
|
|
288
|
+
/**
|
|
289
|
+
* Full jurisdiction name
|
|
290
|
+
*/
|
|
291
|
+
name?: string;
|
|
292
|
+
/**
|
|
293
|
+
* State abbreviation (if applicable)
|
|
294
|
+
*/
|
|
295
|
+
state?: string | null;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
export interface V1ResearchResponse {
|
|
299
|
+
/**
|
|
300
|
+
* Additional queries used
|
|
301
|
+
*/
|
|
302
|
+
additionalQueries?: Array<string> | null;
|
|
303
|
+
candidates?: Array<V1ResearchResponse.Candidate>;
|
|
304
|
+
/**
|
|
305
|
+
* Number of candidates found
|
|
306
|
+
*/
|
|
307
|
+
found?: number;
|
|
308
|
+
/**
|
|
309
|
+
* Usage guidance
|
|
310
|
+
*/
|
|
311
|
+
hint?: string;
|
|
312
|
+
/**
|
|
313
|
+
* Jurisdiction filter applied
|
|
314
|
+
*/
|
|
315
|
+
jurisdiction?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Primary search query
|
|
318
|
+
*/
|
|
319
|
+
query?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Search type used (deep)
|
|
322
|
+
*/
|
|
323
|
+
searchType?: string;
|
|
324
|
+
}
|
|
325
|
+
export declare namespace V1ResearchResponse {
|
|
326
|
+
interface Candidate {
|
|
327
|
+
/**
|
|
328
|
+
* Highlighted relevant passages
|
|
329
|
+
*/
|
|
330
|
+
highlights?: Array<string>;
|
|
331
|
+
/**
|
|
332
|
+
* Publication date
|
|
333
|
+
*/
|
|
334
|
+
publishedDate?: string | null;
|
|
335
|
+
/**
|
|
336
|
+
* Text excerpt from the document
|
|
337
|
+
*/
|
|
338
|
+
snippet?: string;
|
|
339
|
+
/**
|
|
340
|
+
* Domain of the source
|
|
341
|
+
*/
|
|
342
|
+
source?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Title of the document
|
|
345
|
+
*/
|
|
346
|
+
title?: string;
|
|
347
|
+
/**
|
|
348
|
+
* URL of the legal source
|
|
349
|
+
*/
|
|
350
|
+
url?: string;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
export interface V1SimilarResponse {
|
|
354
|
+
/**
|
|
355
|
+
* Number of similar sources found
|
|
356
|
+
*/
|
|
357
|
+
found?: number;
|
|
358
|
+
/**
|
|
359
|
+
* Usage guidance
|
|
360
|
+
*/
|
|
361
|
+
hint?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Jurisdiction filter applied
|
|
364
|
+
*/
|
|
365
|
+
jurisdiction?: string;
|
|
366
|
+
similarSources?: Array<V1SimilarResponse.SimilarSource>;
|
|
367
|
+
/**
|
|
368
|
+
* Original source URL
|
|
369
|
+
*/
|
|
370
|
+
sourceUrl?: string;
|
|
371
|
+
}
|
|
372
|
+
export declare namespace V1SimilarResponse {
|
|
373
|
+
interface SimilarSource {
|
|
374
|
+
/**
|
|
375
|
+
* Publication date
|
|
376
|
+
*/
|
|
377
|
+
publishedDate?: string | null;
|
|
378
|
+
/**
|
|
379
|
+
* Text excerpt from the document
|
|
380
|
+
*/
|
|
381
|
+
snippet?: string;
|
|
382
|
+
/**
|
|
383
|
+
* Domain of the source
|
|
384
|
+
*/
|
|
385
|
+
source?: string;
|
|
386
|
+
/**
|
|
387
|
+
* Title of the document
|
|
388
|
+
*/
|
|
389
|
+
title?: string;
|
|
390
|
+
/**
|
|
391
|
+
* URL of the similar source
|
|
392
|
+
*/
|
|
393
|
+
url?: string;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
export interface V1VerifyResponse {
|
|
397
|
+
citations?: Array<V1VerifyResponse.Citation>;
|
|
398
|
+
summary?: V1VerifyResponse.Summary;
|
|
399
|
+
}
|
|
400
|
+
export declare namespace V1VerifyResponse {
|
|
401
|
+
interface Citation {
|
|
402
|
+
/**
|
|
403
|
+
* Multiple candidates (when multiple_matches or heuristic verification)
|
|
404
|
+
*/
|
|
405
|
+
candidates?: Array<Citation.Candidate>;
|
|
406
|
+
/**
|
|
407
|
+
* Case metadata (when verified)
|
|
408
|
+
*/
|
|
409
|
+
case?: Citation.Case;
|
|
410
|
+
/**
|
|
411
|
+
* Confidence score (1.0 for CourtListener, heuristic score for fallback).
|
|
412
|
+
*/
|
|
413
|
+
confidence?: number;
|
|
414
|
+
/**
|
|
415
|
+
* Normalized citation string
|
|
416
|
+
*/
|
|
417
|
+
normalized?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Original citation as found in text
|
|
420
|
+
*/
|
|
421
|
+
original?: string;
|
|
422
|
+
span?: Citation.Span;
|
|
423
|
+
status?: 'verified' | 'not_found' | 'multiple_matches';
|
|
424
|
+
/**
|
|
425
|
+
* Source of verification result (heuristic for fallback matches).
|
|
426
|
+
*/
|
|
427
|
+
verificationSource?: 'courtlistener' | 'heuristic';
|
|
428
|
+
}
|
|
429
|
+
namespace Citation {
|
|
430
|
+
interface Candidate {
|
|
431
|
+
court?: string;
|
|
432
|
+
dateDecided?: string;
|
|
433
|
+
name?: string;
|
|
434
|
+
url?: string;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Case metadata (when verified)
|
|
438
|
+
*/
|
|
439
|
+
interface Case {
|
|
440
|
+
id?: number;
|
|
441
|
+
court?: string;
|
|
442
|
+
dateDecided?: string;
|
|
443
|
+
docketNumber?: string;
|
|
444
|
+
name?: string;
|
|
445
|
+
parallelCitations?: Array<string>;
|
|
446
|
+
shortName?: string;
|
|
447
|
+
url?: string;
|
|
448
|
+
}
|
|
449
|
+
interface Span {
|
|
450
|
+
end?: number;
|
|
451
|
+
start?: number;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
interface Summary {
|
|
455
|
+
/**
|
|
456
|
+
* Citations with multiple possible matches
|
|
457
|
+
*/
|
|
458
|
+
multipleMatches?: number;
|
|
459
|
+
/**
|
|
460
|
+
* Citations not found in database
|
|
461
|
+
*/
|
|
462
|
+
notFound?: number;
|
|
463
|
+
/**
|
|
464
|
+
* Total citations found
|
|
465
|
+
*/
|
|
466
|
+
total?: number;
|
|
467
|
+
/**
|
|
468
|
+
* Citations verified against real cases
|
|
469
|
+
*/
|
|
470
|
+
verified?: number;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
export interface V1FindParams {
|
|
474
|
+
/**
|
|
475
|
+
* Search query (e.g., "fair use copyright", "Miranda rights")
|
|
476
|
+
*/
|
|
477
|
+
query: string;
|
|
478
|
+
/**
|
|
479
|
+
* Optional jurisdiction ID from resolveJurisdiction (e.g., "california",
|
|
480
|
+
* "us-federal")
|
|
481
|
+
*/
|
|
482
|
+
jurisdiction?: string;
|
|
483
|
+
/**
|
|
484
|
+
* Number of results 1-25 (default: 10)
|
|
485
|
+
*/
|
|
486
|
+
numResults?: number;
|
|
487
|
+
}
|
|
488
|
+
export interface V1GetCitationsParams {
|
|
489
|
+
/**
|
|
490
|
+
* Text containing citations to extract. Can be a single citation (e.g., "531 U.S.
|
|
491
|
+
* 98") or a full document with multiple citations.
|
|
492
|
+
*/
|
|
493
|
+
text: string;
|
|
494
|
+
}
|
|
495
|
+
export interface V1GetCitationsFromURLParams {
|
|
496
|
+
/**
|
|
497
|
+
* URL of the legal document to extract citations from
|
|
498
|
+
*/
|
|
499
|
+
url: string;
|
|
500
|
+
}
|
|
501
|
+
export interface V1GetFullTextParams {
|
|
502
|
+
/**
|
|
503
|
+
* URL of the verified legal document
|
|
504
|
+
*/
|
|
505
|
+
url: string;
|
|
506
|
+
/**
|
|
507
|
+
* Optional query to extract relevant highlights (e.g., "What is the holding?")
|
|
508
|
+
*/
|
|
509
|
+
highlightQuery?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Maximum characters to return (default: 10000, max: 50000)
|
|
512
|
+
*/
|
|
513
|
+
maxCharacters?: number;
|
|
514
|
+
/**
|
|
515
|
+
* Optional query for generating a summary (e.g., "Summarize the key ruling")
|
|
516
|
+
*/
|
|
517
|
+
summaryQuery?: string;
|
|
518
|
+
}
|
|
519
|
+
export interface V1ListJurisdictionsParams {
|
|
520
|
+
/**
|
|
521
|
+
* Jurisdiction name (e.g., "California", "US Federal", "NY")
|
|
522
|
+
*/
|
|
523
|
+
name: string;
|
|
524
|
+
}
|
|
525
|
+
export interface V1ResearchParams {
|
|
526
|
+
/**
|
|
527
|
+
* Primary search query
|
|
528
|
+
*/
|
|
529
|
+
query: string;
|
|
530
|
+
/**
|
|
531
|
+
* Additional query variations to search (e.g., different phrasings of the legal
|
|
532
|
+
* issue)
|
|
533
|
+
*/
|
|
534
|
+
additionalQueries?: Array<string>;
|
|
535
|
+
/**
|
|
536
|
+
* Optional jurisdiction ID from resolveJurisdiction
|
|
537
|
+
*/
|
|
538
|
+
jurisdiction?: string;
|
|
539
|
+
/**
|
|
540
|
+
* Number of results 1-25 (default: 10)
|
|
541
|
+
*/
|
|
542
|
+
numResults?: number;
|
|
543
|
+
}
|
|
544
|
+
export interface V1SimilarParams {
|
|
545
|
+
/**
|
|
546
|
+
* URL of a legal document to find similar sources for
|
|
547
|
+
*/
|
|
548
|
+
url: string;
|
|
549
|
+
/**
|
|
550
|
+
* Optional jurisdiction ID to filter results
|
|
551
|
+
*/
|
|
552
|
+
jurisdiction?: string;
|
|
553
|
+
/**
|
|
554
|
+
* Number of results 1-25 (default: 10)
|
|
555
|
+
*/
|
|
556
|
+
numResults?: number;
|
|
557
|
+
/**
|
|
558
|
+
* Optional ISO date to find only newer documents (e.g., "2020-01-01")
|
|
559
|
+
*/
|
|
560
|
+
startPublishedDate?: string;
|
|
561
|
+
}
|
|
562
|
+
export interface V1VerifyParams {
|
|
563
|
+
/**
|
|
564
|
+
* Text containing citations to verify. Can be a single citation (e.g., "531 U.S.
|
|
565
|
+
* 98") or a full document with multiple citations.
|
|
566
|
+
*/
|
|
567
|
+
text: string;
|
|
568
|
+
}
|
|
569
|
+
export declare namespace V1 {
|
|
570
|
+
export { type V1FindResponse as V1FindResponse, type V1GetCitationsResponse as V1GetCitationsResponse, type V1GetCitationsFromURLResponse as V1GetCitationsFromURLResponse, type V1GetFullTextResponse as V1GetFullTextResponse, type V1ListJurisdictionsResponse as V1ListJurisdictionsResponse, type V1ResearchResponse as V1ResearchResponse, type V1SimilarResponse as V1SimilarResponse, type V1VerifyResponse as V1VerifyResponse, type V1FindParams as V1FindParams, type V1GetCitationsParams as V1GetCitationsParams, type V1GetCitationsFromURLParams as V1GetCitationsFromURLParams, type V1GetFullTextParams as V1GetFullTextParams, type V1ListJurisdictionsParams as V1ListJurisdictionsParams, type V1ResearchParams as V1ResearchParams, type V1SimilarParams as V1SimilarParams, type V1VerifyParams as V1VerifyParams, };
|
|
571
|
+
}
|
|
572
|
+
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/legal/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI9E;;;;OAIG;IACH,YAAY,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAItG;;;;OAIG;IACH,mBAAmB,CACjB,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;OAIG;IACH,WAAW,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC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2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.V1 = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
class V1 extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Search for legal sources including cases, statutes, and regulations from
|
|
9
|
+
* authoritative legal databases. Returns ranked candidates. Always verify with
|
|
10
|
+
* legal.verify() before citing.
|
|
11
|
+
*/
|
|
12
|
+
find(body, options) {
|
|
13
|
+
return this._client.post('/legal/v1/find', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Parses legal citations from text and returns structured Bluebook components
|
|
17
|
+
* (case name, reporter, volume, page, year, court). Accepts either a single
|
|
18
|
+
* citation or a full text block.
|
|
19
|
+
*/
|
|
20
|
+
getCitations(body, options) {
|
|
21
|
+
return this._client.post('/legal/v1/citations', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Extract all legal citations and references from a document URL. Returns
|
|
25
|
+
* structured citation data including case citations, statute references, and
|
|
26
|
+
* regulatory citations.
|
|
27
|
+
*/
|
|
28
|
+
getCitationsFromURL(body, options) {
|
|
29
|
+
return this._client.post('/legal/v1/citations-from-url', { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve the full text content of a legal document. Use after verifying the
|
|
33
|
+
* source with legal.verify(). Returns complete text with optional highlights and
|
|
34
|
+
* AI summary.
|
|
35
|
+
*/
|
|
36
|
+
getFullText(body, options) {
|
|
37
|
+
return this._client.post('/legal/v1/full-text', { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Search for a jurisdiction by name. Returns matching jurisdictions with their IDs
|
|
41
|
+
* for use in legal.find() and other legal research endpoints.
|
|
42
|
+
*/
|
|
43
|
+
listJurisdictions(body, options) {
|
|
44
|
+
return this._client.post('/legal/v1/jurisdictions', { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Perform comprehensive legal research with multiple query variations. Uses
|
|
48
|
+
* advanced deep search to find relevant sources across different phrasings of the
|
|
49
|
+
* legal issue.
|
|
50
|
+
*/
|
|
51
|
+
research(body, options) {
|
|
52
|
+
return this._client.post('/legal/v1/research', { body, ...options });
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Find cases and documents similar to a given legal source. Useful for finding
|
|
56
|
+
* citing cases, related precedents, or similar statutes.
|
|
57
|
+
*/
|
|
58
|
+
similar(body, options) {
|
|
59
|
+
return this._client.post('/legal/v1/similar', { body, ...options });
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Validates legal citations against authoritative case law sources (CourtListener
|
|
63
|
+
* database of ~10M cases). Returns verification status and case metadata for each
|
|
64
|
+
* citation found in the input text. Accepts either a single citation or a full
|
|
65
|
+
* text block containing multiple citations.
|
|
66
|
+
*/
|
|
67
|
+
verify(body, options) {
|
|
68
|
+
return this._client.post('/legal/v1/verify', { body, ...options });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.V1 = V1;
|
|
72
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/legal/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;OAIG;IACH,IAAI,CAAC,IAAkB,EAAE,OAAw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