@truepic/vision-api-types 3.81.0 → 3.83.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/index.d.ts +153 -27
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -478,12 +478,30 @@ export interface paths {
|
|
|
478
478
|
/** @description Limit the PDF to a subset of photos/videos. */
|
|
479
479
|
photos: number[];
|
|
480
480
|
};
|
|
481
|
-
/**
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
481
|
+
/**
|
|
482
|
+
* @description Additional sections to include that are NOT included by default. If you do not want to include any extra sections, you can omit this property.
|
|
483
|
+
*
|
|
484
|
+
* Accepts the legacy `inspectionNote` alias and the canonical section ids. The only opt-in section is Inspection Notes; the other ids are accepted for forward-compatibility.
|
|
485
|
+
*/
|
|
486
|
+
"include[]"?: ("inspectionNote" | "cover" | "contents" | "captureLocation" | "inspectionItems" | "imageDetails" | "aiAnalysis" | "inspectionNotes" | "captureDevices" | "timeline")[];
|
|
487
|
+
/**
|
|
488
|
+
* @description Specific sections to exclude that are included by default. If you do not want to exclude any sections, you can omit this property.
|
|
489
|
+
*
|
|
490
|
+
* Accepts the legacy tokens (`questions` → Inspection Items, `thumbnails` → no-op, `imageDetails`, `timeline`) and the canonical section ids.
|
|
491
|
+
*/
|
|
492
|
+
"exclude[]"?: ("questions" | "thumbnails" | "cover" | "contents" | "captureLocation" | "inspectionItems" | "imageDetails" | "aiAnalysis" | "inspectionNotes" | "captureDevices" | "timeline")[];
|
|
493
|
+
/** @description Whether to include items the customer never submitted (unanswered questions and captures with no upload) in the Inspection Items section. Set to `false` to hide them. */
|
|
494
|
+
showUnansweredItems?: boolean;
|
|
485
495
|
/** @description The IANA time zone name to use when displaying dates/times in the PDF. Defaults to UTC. */
|
|
486
496
|
tz?: string;
|
|
497
|
+
/**
|
|
498
|
+
* @description Which capture-location maps to render in the Image Details section. Omit to render a map for every capture (the default); provide a subset to limit which captures get a map, or an empty array to render no maps.
|
|
499
|
+
*
|
|
500
|
+
* - `outside`: captures taken outside the expected address
|
|
501
|
+
* - `within`: captures taken within the expected address
|
|
502
|
+
* - `no_location`: captures with no expected address on the inspection
|
|
503
|
+
*/
|
|
504
|
+
"captureLocationMaps[]"?: ("outside" | "within" | "no_location")[];
|
|
487
505
|
};
|
|
488
506
|
header?: never;
|
|
489
507
|
path: {
|
|
@@ -4466,20 +4484,41 @@ export interface components {
|
|
|
4466
4484
|
* @default false
|
|
4467
4485
|
*/
|
|
4468
4486
|
async: boolean;
|
|
4487
|
+
/**
|
|
4488
|
+
* @description Which capture-location maps to render in the Image Details section. Omit to render a map for every capture (the default). Provide a subset to limit it, or an empty array to render no maps.
|
|
4489
|
+
* - `outside`: captures taken outside the expected address
|
|
4490
|
+
* - `within`: captures taken within the expected address
|
|
4491
|
+
* - `no_location`: captures with no expected address on the inspection
|
|
4492
|
+
* @default [
|
|
4493
|
+
* "outside",
|
|
4494
|
+
* "within",
|
|
4495
|
+
* "no_location"
|
|
4496
|
+
* ]
|
|
4497
|
+
*/
|
|
4498
|
+
captureLocationMaps: ("outside" | "within" | "no_location")[];
|
|
4469
4499
|
/**
|
|
4470
4500
|
* @description Specific sections to exclude that are included by default. If you do not want to exclude any sections, you can omit this property.
|
|
4501
|
+
*
|
|
4502
|
+
* Accepts the legacy tokens (`questions` → Inspection Items, `thumbnails` → no-op, `imageDetails`, `timeline`) and the canonical section ids.
|
|
4471
4503
|
* @default []
|
|
4472
4504
|
*/
|
|
4473
|
-
exclude: ("questions" | "thumbnails" | "imageDetails" | "timeline")[];
|
|
4505
|
+
exclude: ("questions" | "thumbnails" | "cover" | "contents" | "captureLocation" | "inspectionItems" | "imageDetails" | "aiAnalysis" | "inspectionNotes" | "captureDevices" | "timeline")[];
|
|
4474
4506
|
/** @description Filters which photos/videos are included in the PDF. Once specified, the PDF will only be generated based on the specific list of photos that are listed. By default all photos/videos are included. If you don't want to generate a PDF with a specific set of photos/videos, you can omit this property. */
|
|
4475
4507
|
filter?: {
|
|
4476
4508
|
photos: number[];
|
|
4477
4509
|
};
|
|
4478
4510
|
/**
|
|
4479
4511
|
* @description Additional sections to include that are NOT included by default. If you do not want to include any extra sections, you can omit this property.
|
|
4512
|
+
*
|
|
4513
|
+
* Accepts the legacy `inspectionNote` alias and the canonical section ids. The only opt-in section is Inspection Notes; the other ids are accepted for forward-compatibility and are no-ops when a section is already included.
|
|
4480
4514
|
* @default []
|
|
4481
4515
|
*/
|
|
4482
|
-
include: ("inspectionNote" | "")[];
|
|
4516
|
+
include: ("inspectionNote" | "cover" | "contents" | "captureLocation" | "inspectionItems" | "imageDetails" | "aiAnalysis" | "inspectionNotes" | "captureDevices" | "timeline")[];
|
|
4517
|
+
/**
|
|
4518
|
+
* @description Whether to include items the customer never submitted (unanswered questions and captures with no upload) in the Inspection Items section. Set `false` to hide them.
|
|
4519
|
+
* @default true
|
|
4520
|
+
*/
|
|
4521
|
+
showUnansweredItems: boolean;
|
|
4483
4522
|
/**
|
|
4484
4523
|
* @description The IANA time zone name to use when displaying dates/times in the PDF. Defaults to UTC.
|
|
4485
4524
|
* @default UTC
|
|
@@ -5744,11 +5783,6 @@ export interface components {
|
|
|
5744
5783
|
*/
|
|
5745
5784
|
web_camera: boolean;
|
|
5746
5785
|
};
|
|
5747
|
-
/**
|
|
5748
|
-
* @description An identifier from an external system used to reference the team. It must be unique within an organization when set.
|
|
5749
|
-
* @example X50100039
|
|
5750
|
-
*/
|
|
5751
|
-
external_id?: string | null;
|
|
5752
5786
|
/**
|
|
5753
5787
|
* @description The accuracy threshold that GPS coordinates must not exceed in meters.
|
|
5754
5788
|
* @example 1500
|
|
@@ -6147,6 +6181,14 @@ export interface components {
|
|
|
6147
6181
|
* @example 2020-05-01T21:44:40.000Z
|
|
6148
6182
|
*/
|
|
6149
6183
|
updated_at: string;
|
|
6184
|
+
/**
|
|
6185
|
+
* @description Verisk customer codes used to route SSO users to this team. Multiple values are supported so a single team can be addressed by many Verisk custCodes, and a single custCode may be shared across multiple teams within an organization (no uniqueness constraint is enforced). Requires the `verisk_sso` organization feature to be enabled.
|
|
6186
|
+
* @example [
|
|
6187
|
+
* "X50100039",
|
|
6188
|
+
* "X50100040"
|
|
6189
|
+
* ]
|
|
6190
|
+
*/
|
|
6191
|
+
verisk_cust_codes?: string[] | unknown;
|
|
6150
6192
|
/**
|
|
6151
6193
|
* @description Whether video is enabled as a capture method in the app.
|
|
6152
6194
|
* @default false
|
|
@@ -6327,6 +6369,41 @@ export interface components {
|
|
|
6327
6369
|
*/
|
|
6328
6370
|
totalResults: number;
|
|
6329
6371
|
};
|
|
6372
|
+
/** @description Response Body for GET /texts/unsubscribed-phone-number */
|
|
6373
|
+
GetUnsubscribedPhoneNumbersResult: {
|
|
6374
|
+
/**
|
|
6375
|
+
* @description The current version number of the Vision API
|
|
6376
|
+
* @example 3.0.0
|
|
6377
|
+
*/
|
|
6378
|
+
api_version: string;
|
|
6379
|
+
/**
|
|
6380
|
+
* @description The human readable-status of the response
|
|
6381
|
+
* @example Success
|
|
6382
|
+
*/
|
|
6383
|
+
message: string;
|
|
6384
|
+
/**
|
|
6385
|
+
* @description The total number of pages for the given query
|
|
6386
|
+
* @example 12
|
|
6387
|
+
*/
|
|
6388
|
+
pageCount: number;
|
|
6389
|
+
/**
|
|
6390
|
+
* @description The HTTP status code of the response
|
|
6391
|
+
* @example 200
|
|
6392
|
+
*/
|
|
6393
|
+
response_code: number;
|
|
6394
|
+
/** @description A paginated list of unsubscribed phone numbers */
|
|
6395
|
+
result: components["schemas"]["UnsubscribedPhoneNumber"][];
|
|
6396
|
+
/**
|
|
6397
|
+
* @description The total number of results for the given page
|
|
6398
|
+
* @example 25
|
|
6399
|
+
*/
|
|
6400
|
+
total: number;
|
|
6401
|
+
/**
|
|
6402
|
+
* @description The total number of results for the given query
|
|
6403
|
+
* @example 251
|
|
6404
|
+
*/
|
|
6405
|
+
totalResults: number;
|
|
6406
|
+
};
|
|
6330
6407
|
/** @description Response Body for GET /users/{userId} */
|
|
6331
6408
|
GetUserResult: {
|
|
6332
6409
|
/**
|
|
@@ -7485,6 +7562,11 @@ export interface components {
|
|
|
7485
7562
|
* @example 11.4.1
|
|
7486
7563
|
*/
|
|
7487
7564
|
os?: string;
|
|
7565
|
+
/**
|
|
7566
|
+
* @description A URL to a PDF-optimized variant (max 720×960, aspect preserved), used by the PDF report engine to cut render time and file size.
|
|
7567
|
+
* @example https://d3tbfdtihunht2.cloudfront.net/qfzkoxugjn_p.jpg?...
|
|
7568
|
+
*/
|
|
7569
|
+
pdf_image?: string;
|
|
7488
7570
|
/**
|
|
7489
7571
|
* @description Whether the Truepic is still uploading
|
|
7490
7572
|
* @default false
|
|
@@ -8648,7 +8730,7 @@ export interface components {
|
|
|
8648
8730
|
updated_by_user_id: number | null;
|
|
8649
8731
|
};
|
|
8650
8732
|
/** @enum {string} */
|
|
8651
|
-
OrganizationEnabledFeatureType: "ai_analysis" | "ask_for_app_review" | "inspection_device_insights" | "device_details" | "risk_network" | "external_risk_network" | "content_analysis_odometer" | "content_analysis_text_matching" | "content_analysis_vin" | "content_analysis_dot_tin" | "object_detection_auto" | "object_detection_jewelry" | "object_detection_real_estate" | "landing_pages" | "inspection_readiness" | "dashboard_user_feedback_forms" | "member_homepage" | "reuse_detection" | "restrict_members_to_inspection_details" | "ai_analysis_configuration" | "guided_capture";
|
|
8733
|
+
OrganizationEnabledFeatureType: "ai_analysis" | "ask_for_app_review" | "inspection_device_insights" | "device_details" | "risk_network" | "external_risk_network" | "content_analysis_odometer" | "content_analysis_text_matching" | "content_analysis_vin" | "content_analysis_dot_tin" | "object_detection_auto" | "object_detection_jewelry" | "object_detection_real_estate" | "landing_pages" | "inspection_readiness" | "dashboard_user_feedback_forms" | "member_homepage" | "reuse_detection" | "restrict_members_to_inspection_details" | "ai_analysis_configuration" | "guided_capture" | "verisk_sso";
|
|
8652
8734
|
/** @description A possible outcome for an inspection */
|
|
8653
8735
|
Outcome: {
|
|
8654
8736
|
/**
|
|
@@ -9135,11 +9217,6 @@ export interface components {
|
|
|
9135
9217
|
*/
|
|
9136
9218
|
web_camera: boolean;
|
|
9137
9219
|
};
|
|
9138
|
-
/**
|
|
9139
|
-
* @description An identifier from an external system used to reference the team. It must be unique within an organization when set.
|
|
9140
|
-
* @example X50100039
|
|
9141
|
-
*/
|
|
9142
|
-
external_id?: string | null;
|
|
9143
9220
|
/**
|
|
9144
9221
|
* @description The accuracy threshold that GPS coordinates must not exceed in meters.
|
|
9145
9222
|
* @example 1500
|
|
@@ -9543,6 +9620,14 @@ export interface components {
|
|
|
9543
9620
|
* @example 2020-05-01T21:44:40.000Z
|
|
9544
9621
|
*/
|
|
9545
9622
|
updated_at: string;
|
|
9623
|
+
/**
|
|
9624
|
+
* @description Verisk customer codes used to route SSO users to this team. Multiple values are supported so a single team can be addressed by many Verisk custCodes, and a single custCode may be shared across multiple teams within an organization (no uniqueness constraint is enforced). Requires the `verisk_sso` organization feature to be enabled.
|
|
9625
|
+
* @example [
|
|
9626
|
+
* "X50100039",
|
|
9627
|
+
* "X50100040"
|
|
9628
|
+
* ]
|
|
9629
|
+
*/
|
|
9630
|
+
verisk_cust_codes?: string[] | unknown;
|
|
9546
9631
|
/**
|
|
9547
9632
|
* @description Whether video is enabled as a capture method in the app.
|
|
9548
9633
|
* @default false
|
|
@@ -10734,11 +10819,6 @@ export interface components {
|
|
|
10734
10819
|
*/
|
|
10735
10820
|
web_camera: boolean;
|
|
10736
10821
|
};
|
|
10737
|
-
/**
|
|
10738
|
-
* @description An identifier from an external system used to reference the team. It must be unique within an organization when set.
|
|
10739
|
-
* @example X50100039
|
|
10740
|
-
*/
|
|
10741
|
-
external_id?: string | null;
|
|
10742
10822
|
/**
|
|
10743
10823
|
* @description The accuracy threshold that GPS coordinates must not exceed in meters.
|
|
10744
10824
|
* @example 1500
|
|
@@ -10848,6 +10928,14 @@ export interface components {
|
|
|
10848
10928
|
* @example 2020-05-01T21:44:40.000Z
|
|
10849
10929
|
*/
|
|
10850
10930
|
updated_at: string;
|
|
10931
|
+
/**
|
|
10932
|
+
* @description Verisk customer codes used to route SSO users to this team. Multiple values are supported so a single team can be addressed by many Verisk custCodes, and a single custCode may be shared across multiple teams within an organization (no uniqueness constraint is enforced). Requires the `verisk_sso` organization feature to be enabled.
|
|
10933
|
+
* @example [
|
|
10934
|
+
* "X50100039",
|
|
10935
|
+
* "X50100040"
|
|
10936
|
+
* ]
|
|
10937
|
+
*/
|
|
10938
|
+
verisk_cust_codes?: string[] | unknown;
|
|
10851
10939
|
/**
|
|
10852
10940
|
* @description Whether video is enabled as a capture method in the app.
|
|
10853
10941
|
* @default false
|
|
@@ -10944,11 +11032,6 @@ export interface components {
|
|
|
10944
11032
|
*/
|
|
10945
11033
|
web_camera: boolean;
|
|
10946
11034
|
};
|
|
10947
|
-
/**
|
|
10948
|
-
* @description An identifier from an external system used to reference the team. It must be unique within an organization when set.
|
|
10949
|
-
* @example X50100039
|
|
10950
|
-
*/
|
|
10951
|
-
external_id?: string | null;
|
|
10952
11035
|
/**
|
|
10953
11036
|
* @description The accuracy threshold that GPS coordinates must not exceed in meters.
|
|
10954
11037
|
* @example 1500
|
|
@@ -11061,6 +11144,14 @@ export interface components {
|
|
|
11061
11144
|
* @example 2020-05-01T21:44:40.000Z
|
|
11062
11145
|
*/
|
|
11063
11146
|
updated_at?: string;
|
|
11147
|
+
/**
|
|
11148
|
+
* @description Verisk customer codes used to route SSO users to this team. Multiple values are supported so a single team can be addressed by many Verisk custCodes, and a single custCode may be shared across multiple teams within an organization (no uniqueness constraint is enforced). Requires the `verisk_sso` organization feature to be enabled.
|
|
11149
|
+
* @example [
|
|
11150
|
+
* "X50100039",
|
|
11151
|
+
* "X50100040"
|
|
11152
|
+
* ]
|
|
11153
|
+
*/
|
|
11154
|
+
verisk_cust_codes?: string[] | unknown;
|
|
11064
11155
|
/**
|
|
11065
11156
|
* @description Whether video is enabled as a capture method in the app.
|
|
11066
11157
|
* @default false
|
|
@@ -11436,6 +11527,41 @@ export interface components {
|
|
|
11436
11527
|
*/
|
|
11437
11528
|
updated_at: string;
|
|
11438
11529
|
};
|
|
11530
|
+
/** @description An entry marking a phone number that has unsubscribed from texts from a specific organization. */
|
|
11531
|
+
UnsubscribedPhoneNumber: {
|
|
11532
|
+
/**
|
|
11533
|
+
* Format: date-time
|
|
11534
|
+
* @description The date/time the resource was created
|
|
11535
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
11536
|
+
*/
|
|
11537
|
+
created_at: string;
|
|
11538
|
+
/**
|
|
11539
|
+
* @description The id of the resource.
|
|
11540
|
+
* @example 1843
|
|
11541
|
+
*/
|
|
11542
|
+
id: number;
|
|
11543
|
+
/**
|
|
11544
|
+
* @description The id of the organization that this phone number has unsubscribed from.
|
|
11545
|
+
* @example 532
|
|
11546
|
+
*/
|
|
11547
|
+
organization_id: number;
|
|
11548
|
+
/**
|
|
11549
|
+
* @description The ISO 3166-1 alpha-2 country code for the phone number.
|
|
11550
|
+
* @example US
|
|
11551
|
+
*/
|
|
11552
|
+
phone_country: string;
|
|
11553
|
+
/**
|
|
11554
|
+
* @description The phone number that has unsubscribed, stored as normalized national digits.
|
|
11555
|
+
* @example 5125551234
|
|
11556
|
+
*/
|
|
11557
|
+
phone_number: string;
|
|
11558
|
+
/**
|
|
11559
|
+
* Format: date-time
|
|
11560
|
+
* @description The date/time the resource was last updated
|
|
11561
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
11562
|
+
*/
|
|
11563
|
+
updated_at: string;
|
|
11564
|
+
};
|
|
11439
11565
|
/** @description The request body for PUT /inspections/{inspectionId} */
|
|
11440
11566
|
UpdateInspectionBody: {
|
|
11441
11567
|
/**
|