@insurance-broker/api-client 1.24.0 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/schema.d.ts +173 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1049,6 +1049,58 @@ export interface paths {
1049
1049
  patch?: never;
1050
1050
  trace?: never;
1051
1051
  };
1052
+ "/api/v1/claims/{id}/evidence": {
1053
+ parameters: {
1054
+ query?: never;
1055
+ header?: never;
1056
+ path?: never;
1057
+ cookie?: never;
1058
+ };
1059
+ get?: never;
1060
+ put?: never;
1061
+ /**
1062
+ * File a file against a claim
1063
+ * @description CLM-004. Stores one file against a claim — a photograph, a police abstract, an assessor's report, an estimate for repairs.
1064
+ *
1065
+ * **The file is quarantined the moment it is stored and only a malware scan moves it**, so a client that has just uploaded should say the file is being checked rather than that it is ready. Nothing but a `Clean` verdict is ever served back.
1066
+ *
1067
+ * **The type is taken from the file's own bytes, never from the part header.** A part declaring one thing and holding another is refused rather than believed.
1068
+ *
1069
+ * **Closing the claim starts this file's retention clock**, along with the claim's own and everything else filed against it (ADR-0041 section 8).
1070
+ */
1071
+ post: operations["UploadClaimEvidence"];
1072
+ delete?: never;
1073
+ options?: never;
1074
+ head?: never;
1075
+ patch?: never;
1076
+ trace?: never;
1077
+ };
1078
+ "/api/v1/claims/{id}/evidence/{evidenceId}/content": {
1079
+ parameters: {
1080
+ query?: never;
1081
+ header?: never;
1082
+ path?: never;
1083
+ cookie?: never;
1084
+ };
1085
+ /**
1086
+ * Streams a claim's evidence back, if the malware scan cleared it
1087
+ * @description CLM-004. Returns the stored bytes as an attachment.
1088
+ *
1089
+ * **Only a `Clean` verdict is served.** A file still being scanned, one the scanner rejected and one it could form no opinion about are three different 409s with three different problem `type`s, because the next thing to do differs: wait, or file a replacement, or file a replacement and never expect this one.
1090
+ *
1091
+ * **The file's integrity is re-verified as it streams**, so a transfer that does not complete is a file that no longer matches what was uploaded rather than a network fault.
1092
+ *
1093
+ * There is no shareable link. Sending evidence to an insurer is a separate act with its own record (ADR-0041 section 8).
1094
+ */
1095
+ get: operations["DownloadClaimEvidence"];
1096
+ put?: never;
1097
+ post?: never;
1098
+ delete?: never;
1099
+ options?: never;
1100
+ head?: never;
1101
+ patch?: never;
1102
+ trace?: never;
1103
+ };
1052
1104
  "/api/v1/customer/claims": {
1053
1105
  parameters: {
1054
1106
  query?: never;
@@ -3145,6 +3197,28 @@ export interface components {
3145
3197
  items: components["schemas"]["ProductResponse"][];
3146
3198
  nextCursor: null | string;
3147
3199
  };
3200
+ ClaimEvidenceResponse: {
3201
+ /** Format: uuid */
3202
+ id: string;
3203
+ /** Format: uuid */
3204
+ claimId: string;
3205
+ fileName: string;
3206
+ contentType: string;
3207
+ /** Format: int64 */
3208
+ sizeBytes: number | string;
3209
+ contentSha256: string;
3210
+ /** Format: date-time */
3211
+ uploadedAtUtc: string;
3212
+ uploadedBySubjectId: string;
3213
+ scanVerdict: string;
3214
+ /** Format: date-time */
3215
+ scannedAtUtc: null | string;
3216
+ /** Format: date-time */
3217
+ retentionAnchorAtUtc: null | string;
3218
+ };
3219
+ ClaimEvidenceUpload: {
3220
+ file: components["schemas"]["IFormFile"];
3221
+ };
3148
3222
  ClaimNoteResponse: {
3149
3223
  /** Format: uuid */
3150
3224
  id: string;
@@ -7349,6 +7423,105 @@ export interface operations {
7349
7423
  };
7350
7424
  };
7351
7425
  };
7426
+ UploadClaimEvidence: {
7427
+ parameters: {
7428
+ query?: never;
7429
+ header?: {
7430
+ "X-Document-Sha256"?: string;
7431
+ };
7432
+ path: {
7433
+ id: string;
7434
+ };
7435
+ cookie?: never;
7436
+ };
7437
+ requestBody: {
7438
+ content: {
7439
+ "multipart/form-data": components["schemas"]["ClaimEvidenceUpload"];
7440
+ };
7441
+ };
7442
+ responses: {
7443
+ /** @description Created */
7444
+ 201: {
7445
+ headers: {
7446
+ [name: string]: unknown;
7447
+ };
7448
+ content: {
7449
+ "application/json": components["schemas"]["ClaimEvidenceResponse"];
7450
+ };
7451
+ };
7452
+ /** @description Bad Request */
7453
+ 400: {
7454
+ headers: {
7455
+ [name: string]: unknown;
7456
+ };
7457
+ content: {
7458
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
7459
+ };
7460
+ };
7461
+ /** @description Not Found */
7462
+ 404: {
7463
+ headers: {
7464
+ [name: string]: unknown;
7465
+ };
7466
+ content?: never;
7467
+ };
7468
+ /** @description Conflict */
7469
+ 409: {
7470
+ headers: {
7471
+ [name: string]: unknown;
7472
+ };
7473
+ content: {
7474
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7475
+ };
7476
+ };
7477
+ /** @description Payload Too Large */
7478
+ 413: {
7479
+ headers: {
7480
+ [name: string]: unknown;
7481
+ };
7482
+ content: {
7483
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7484
+ };
7485
+ };
7486
+ };
7487
+ };
7488
+ DownloadClaimEvidence: {
7489
+ parameters: {
7490
+ query?: never;
7491
+ header?: never;
7492
+ path: {
7493
+ id: string;
7494
+ evidenceId: string;
7495
+ };
7496
+ cookie?: never;
7497
+ };
7498
+ requestBody?: never;
7499
+ responses: {
7500
+ /** @description OK */
7501
+ 200: {
7502
+ headers: {
7503
+ [name: string]: unknown;
7504
+ };
7505
+ content?: never;
7506
+ };
7507
+ /** @description Not Found */
7508
+ 404: {
7509
+ headers: {
7510
+ [name: string]: unknown;
7511
+ };
7512
+ content?: never;
7513
+ };
7514
+ /** @description Conflict */
7515
+ 409: {
7516
+ headers: {
7517
+ [name: string]: unknown;
7518
+ };
7519
+ content: {
7520
+ "application/problem+json": components["schemas"]["ProblemDetails"];
7521
+ };
7522
+ };
7523
+ };
7524
+ };
7352
7525
  ReportOwnClaim: {
7353
7526
  parameters: {
7354
7527
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "description": "Generated TypeScript client for the Insurance Broker Platform API. Do not edit by hand: regenerate with scripts/update-api-contract.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,