@truepic/vision-api-types 3.86.0 → 3.87.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/index.d.ts +136 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -4466,7 +4466,7 @@ export interface components {
4466
4466
  /** @enum {string} */
4467
4467
  DeviceFlagType: "rooted_device" | "spoofed_location" | "falsified_time" | "incorrect_location" | "picture_of_photo" | "bad_photo" | "deleted_photos" | "bad_answer" | "other";
4468
4468
  /** @enum {string} */
4469
- DeviceValidationStatus: "VALID" | "REQUEST_ID_MISMATCH" | "REQUEST_ID_MISSING" | "FETCH_FROM_FINGERPRINT_FAILED" | "TIMESTAMP_TOO_FAR_IN_PAST" | "TIMESTAMP_TOO_FAR_IN_FUTURE" | "TIMESTAMP_MISSING" | "TIMESTAMP_INVALID" | "NO_FINGERPRINT_DATA" | "INVALID_FINGERPRINT_DATA" | "DECRYPT_FINGERPRINT_FAIL" | "FINGERPRINT_CONFIDENCE_LOW";
4469
+ DeviceValidationStatus: "VALID" | "REQUEST_ID_MISMATCH" | "REQUEST_ID_MISSING" | "FETCH_FROM_FINGERPRINT_FAILED" | "TIMESTAMP_TOO_FAR_IN_PAST" | "TIMESTAMP_TOO_FAR_IN_FUTURE" | "TIMESTAMP_MISSING" | "TIMESTAMP_INVALID" | "NO_FINGERPRINT_DATA" | "FINGERPRINT_NOT_COLLECTED" | "FINGERPRINT_SKIPPED" | "FINGERPRINT_NO_API_KEY" | "FINGERPRINT_NO_INSPECTION_ID" | "FINGERPRINT_BLOCKED" | "FINGERPRINT_REQUEST_FAILED" | "INVALID_FINGERPRINT_DATA" | "DECRYPT_FINGERPRINT_FAIL" | "FINGERPRINT_CONFIDENCE_LOW";
4470
4470
  DiscrepanciesOutputParams: {
4471
4471
  issue_description: string;
4472
4472
  related_item_ids: number[];
@@ -6072,6 +6072,13 @@ export interface components {
6072
6072
  * @example 2020-05-01T21:44:40.000Z
6073
6073
  */
6074
6074
  updated_at: string;
6075
+ /** @description The use case assigned to this inspection type (populated for super admins only). */
6076
+ use_case?: components["schemas"]["UseCase"];
6077
+ /**
6078
+ * @description The use case assigned to this inspection type by a super admin. References `use_cases.id`.
6079
+ * @default null
6080
+ */
6081
+ use_case_id: number | null;
6075
6082
  /**
6076
6083
  * @description When true, there is only one name for the user to fill out rather than a separate first name and last name field
6077
6084
  * @example true
@@ -7835,6 +7842,11 @@ export interface components {
7835
7842
  * @example 2020-05-01T21:44:40.000Z
7836
7843
  */
7837
7844
  updated_at: string;
7845
+ /**
7846
+ * @description The use case assigned to this inspection type by a super admin. References `use_cases.id`.
7847
+ * @default null
7848
+ */
7849
+ use_case_id: number | null;
7838
7850
  /**
7839
7851
  * @description When true, there is only one name for the user to fill out rather than a separate first name and last name field
7840
7852
  * @example true
@@ -8589,6 +8601,68 @@ export interface components {
8589
8601
  */
8590
8602
  updated_at: string;
8591
8603
  };
8604
+ /**
8605
+ * @description Evidence about the device taking an action, collected by the inspection app and recorded against the resulting activity log entry.
8606
+ *
8607
+ * Sent as the `metadata` property of the request body, with `fp.request_id` and `fp.sealed_result` always sent together. Endpoints without a request body instead accept the Fingerprint request ID on its own, via the `truepic-fp-request-id` header — one or the other, never both.
8608
+ */
8609
+ Metadata: {
8610
+ /** @description The Fingerprint identification result for the device. */
8611
+ fp?: {
8612
+ /**
8613
+ * @description The ID of the Fingerprint request the sealed result was issued for.
8614
+ * @example 1712345678901.AbCdEf
8615
+ */
8616
+ request_id: string;
8617
+ /** @description The sealed (encrypted) Fingerprint identification result, as issued by the Fingerprint client. Opaque to the caller. */
8618
+ sealed_result: string;
8619
+ };
8620
+ /**
8621
+ * @description The reason the client couldn't collect Fingerprint data, sent instead of `fp`. Known values are `skipped`, `no_api_key`, `no_inspection_id`, `blocked`, and `request_failed`; anything else is recorded as if no reason was sent. Endpoints without a request body instead accept it via the `truepic-fp-reason` header.
8622
+ * @example request_failed
8623
+ */
8624
+ fp_reason?: string;
8625
+ /** @description The location the device reported when the action was taken. */
8626
+ gps?: {
8627
+ /**
8628
+ * @description The radius of uncertainty around the location, in meters.
8629
+ * @example 5
8630
+ */
8631
+ accuracy: number;
8632
+ /**
8633
+ * @description The altitude of the location, in meters above sea level.
8634
+ * @example 17
8635
+ */
8636
+ altitude: number;
8637
+ /**
8638
+ * @description The latitude of the location, in degrees.
8639
+ * @example 43.0502488
8640
+ */
8641
+ latitude: number;
8642
+ /**
8643
+ * @description The longitude of the location, in degrees.
8644
+ * @example -77.5873941
8645
+ */
8646
+ longitude: number;
8647
+ /**
8648
+ * @description The reason the location is considered spoofed. `0` means the location is not spoofed.
8649
+ * @example 0
8650
+ */
8651
+ reason: number;
8652
+ /**
8653
+ * @description Where the location came from. `system` is the operating system and is most typical, `accessory` is a connected device such as Apple CarPlay, and `software` means it was mocked or simulated.
8654
+ * @example system
8655
+ * @enum {string|null}
8656
+ */
8657
+ source?: "accessory" | "software" | "system" | null;
8658
+ /**
8659
+ * Format: datetime
8660
+ * @description When the device reported the location.
8661
+ * @example 2025-04-14T12:05:51.007Z
8662
+ */
8663
+ timestamp: string;
8664
+ };
8665
+ };
8592
8666
  /** @enum {string} */
8593
8667
  ObjectDetectionAutomotiveObject: "tire" | "vin_plate" | "dashboard" | "license_plate" | "odometer" | "document";
8594
8668
  /**
@@ -8725,6 +8799,11 @@ export interface components {
8725
8799
  * @example 1413
8726
8800
  */
8727
8801
  created_by_user_id: number;
8802
+ /**
8803
+ * @description The default use case assigned to this organization by a super admin.
8804
+ * @default null
8805
+ */
8806
+ default_use_case_id: number | null;
8728
8807
  /**
8729
8808
  * @description The id of the resource.
8730
8809
  * @example 1843
@@ -9537,6 +9616,13 @@ export interface components {
9537
9616
  * @example 2020-05-01T21:44:40.000Z
9538
9617
  */
9539
9618
  updated_at: string;
9619
+ /** @description The use case assigned to this inspection type (populated for super admins only). */
9620
+ use_case?: components["schemas"]["UseCase"];
9621
+ /**
9622
+ * @description The use case assigned to this inspection type by a super admin. References `use_cases.id`.
9623
+ * @default null
9624
+ */
9625
+ use_case_id: number | null;
9540
9626
  /**
9541
9627
  * @description When true, there is only one name for the user to fill out rather than a separate first name and last name field
9542
9628
  * @example true
@@ -10362,6 +10448,13 @@ export interface components {
10362
10448
  * @example 2020-05-01T21:44:40.000Z
10363
10449
  */
10364
10450
  updated_at: string;
10451
+ /** @description The use case assigned to this inspection type (populated for super admins only). */
10452
+ use_case?: components["schemas"]["UseCase"];
10453
+ /**
10454
+ * @description The use case assigned to this inspection type by a super admin. References `use_cases.id`.
10455
+ * @default null
10456
+ */
10457
+ use_case_id: number | null;
10365
10458
  /**
10366
10459
  * @description When true, there is only one name for the user to fill out rather than a separate first name and last name field
10367
10460
  * @example true
@@ -12284,6 +12377,36 @@ export interface components {
12284
12377
  */
12285
12378
  team_id?: number;
12286
12379
  };
12380
+ /** @description A seeded use case belonging to an industry. */
12381
+ UseCase: {
12382
+ /**
12383
+ * Format: date-time
12384
+ * @description The date/time the resource was created
12385
+ * @example 2020-05-01T21:44:40.000Z
12386
+ */
12387
+ created_at: string;
12388
+ /**
12389
+ * @description The id of the resource.
12390
+ * @example 1
12391
+ */
12392
+ id: number;
12393
+ /**
12394
+ * @description The id of the industry this use case belongs to.
12395
+ * @example 3
12396
+ */
12397
+ industry_id: number;
12398
+ /**
12399
+ * @description The name of the use case.
12400
+ * @example Claims Processing
12401
+ */
12402
+ name: string;
12403
+ /**
12404
+ * Format: date-time
12405
+ * @description The date/time the resource was last updated
12406
+ * @example 2020-05-01T21:44:40.000Z
12407
+ */
12408
+ updated_at: string;
12409
+ };
12287
12410
  /** @description A user of Vision. This could be a Vision website user or mobile app user. */
12288
12411
  User: {
12289
12412
  /**
@@ -12704,6 +12827,18 @@ export interface components {
12704
12827
  userId: number;
12705
12828
  /** @description The unique alphanumeric identifier of the photo/video. */
12706
12829
  verificationCode: string;
12830
+ /**
12831
+ * @description The ID of the Fingerprint request identifying the device taking the action.
12832
+ *
12833
+ * Used by endpoints that have no request body to carry a `metadata` property. Recorded against the resulting activity log entry.
12834
+ */
12835
+ metadataFingerprintRequestId: string;
12836
+ /**
12837
+ * @description The reason the client could not collect Fingerprint data, sent instead of `truepic-fp-request-id`.
12838
+ *
12839
+ * Used by endpoints that have no request body to carry a `metadata` property. Recorded against the resulting activity log entry.
12840
+ */
12841
+ metadataFingerprintReason: string;
12707
12842
  /**
12708
12843
  * @description Pagination to limit the number of results returned.
12709
12844
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truepic/vision-api-types",
3
- "version": "3.86.0",
3
+ "version": "3.87.0",
4
4
  "description": "TypeScript type declarations for Truepic Vision API v3",
5
5
  "license": "MIT",
6
6
  "types": "index.d.ts",