@truepic/vision-api-types 3.76.0 → 3.78.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 +283 -71
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1832,6 +1832,60 @@ export interface paths {
|
|
|
1832
1832
|
patch?: never;
|
|
1833
1833
|
trace?: never;
|
|
1834
1834
|
};
|
|
1835
|
+
"/ready": {
|
|
1836
|
+
parameters: {
|
|
1837
|
+
query?: never;
|
|
1838
|
+
header?: never;
|
|
1839
|
+
path?: never;
|
|
1840
|
+
cookie?: never;
|
|
1841
|
+
};
|
|
1842
|
+
/**
|
|
1843
|
+
* Readiness probe
|
|
1844
|
+
* @description Returns 200 when the API is ready to serve traffic (DB reachable), 503 otherwise. Intended for K8s readinessProbe.
|
|
1845
|
+
*/
|
|
1846
|
+
get: {
|
|
1847
|
+
parameters: {
|
|
1848
|
+
query?: never;
|
|
1849
|
+
header?: never;
|
|
1850
|
+
path?: never;
|
|
1851
|
+
cookie?: never;
|
|
1852
|
+
};
|
|
1853
|
+
requestBody?: never;
|
|
1854
|
+
responses: {
|
|
1855
|
+
/** @description Ready */
|
|
1856
|
+
200: {
|
|
1857
|
+
headers: {
|
|
1858
|
+
[name: string]: unknown;
|
|
1859
|
+
};
|
|
1860
|
+
content: {
|
|
1861
|
+
"application/json": components["schemas"]["ResponseData"];
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
400: components["responses"]["ErrorBadRequest"];
|
|
1865
|
+
401: components["responses"]["ErrorUnauthorized"];
|
|
1866
|
+
403: components["responses"]["ErrorForbidden"];
|
|
1867
|
+
404: components["responses"]["ErrorNotFound"];
|
|
1868
|
+
412: components["responses"]["ErrorPreconditionFailed"];
|
|
1869
|
+
500: components["responses"]["ErrorUnhandled"];
|
|
1870
|
+
/** @description Not ready */
|
|
1871
|
+
503: {
|
|
1872
|
+
headers: {
|
|
1873
|
+
[name: string]: unknown;
|
|
1874
|
+
};
|
|
1875
|
+
content: {
|
|
1876
|
+
"application/json": components["schemas"]["ResponseData"];
|
|
1877
|
+
};
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
put?: never;
|
|
1882
|
+
post?: never;
|
|
1883
|
+
delete?: never;
|
|
1884
|
+
options?: never;
|
|
1885
|
+
head?: never;
|
|
1886
|
+
patch?: never;
|
|
1887
|
+
trace?: never;
|
|
1888
|
+
};
|
|
1835
1889
|
"/inspection-types": {
|
|
1836
1890
|
parameters: {
|
|
1837
1891
|
query?: never;
|
|
@@ -2745,7 +2799,7 @@ export interface components {
|
|
|
2745
2799
|
overview: components["schemas"]["SubmitOverviewToolCallParams"] | unknown;
|
|
2746
2800
|
qaDetails: components["schemas"]["SubmitQADetailsToolCallParams"][];
|
|
2747
2801
|
queryTimeMs: number;
|
|
2748
|
-
totalCostUSD: number;
|
|
2802
|
+
totalCostUSD: number | null;
|
|
2749
2803
|
};
|
|
2750
2804
|
AIInspectionCriteriaEvaluationResultV1: {
|
|
2751
2805
|
cachedTokens: number;
|
|
@@ -2757,7 +2811,7 @@ export interface components {
|
|
|
2757
2811
|
overview: components["schemas"]["SubmitOverviewToolCallParams"] | unknown;
|
|
2758
2812
|
qaDetails: components["schemas"]["SubmitQADetailsToolCallParams"][];
|
|
2759
2813
|
queryTimeMs: number;
|
|
2760
|
-
totalCostUSD: number;
|
|
2814
|
+
totalCostUSD: number | null;
|
|
2761
2815
|
};
|
|
2762
2816
|
AIInspectionReadyCriteriaResultV1: {
|
|
2763
2817
|
cachedTokens: number;
|
|
@@ -2766,7 +2820,7 @@ export interface components {
|
|
|
2766
2820
|
inputTokens: number;
|
|
2767
2821
|
outputTokens: number;
|
|
2768
2822
|
queryTimeMs: number;
|
|
2769
|
-
totalCostUSD: number;
|
|
2823
|
+
totalCostUSD: number | null;
|
|
2770
2824
|
};
|
|
2771
2825
|
AIInspectionReadyCriteriaResultV2: {
|
|
2772
2826
|
cachedTokens: number;
|
|
@@ -2775,7 +2829,7 @@ export interface components {
|
|
|
2775
2829
|
inputTokens: number;
|
|
2776
2830
|
outputTokens: number;
|
|
2777
2831
|
queryTimeMs: number;
|
|
2778
|
-
totalCostUSD: number;
|
|
2832
|
+
totalCostUSD: number | null;
|
|
2779
2833
|
};
|
|
2780
2834
|
AIInspectionReadyResult: {
|
|
2781
2835
|
client_override_date?: string | null;
|
|
@@ -4015,6 +4069,12 @@ export interface components {
|
|
|
4015
4069
|
* @example 19
|
|
4016
4070
|
*/
|
|
4017
4071
|
assigned_to_member_user_id?: number;
|
|
4072
|
+
/**
|
|
4073
|
+
* Format: date-time
|
|
4074
|
+
* @description The date/time the inspection was closed. `null` if not closed.
|
|
4075
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
4076
|
+
*/
|
|
4077
|
+
closed_at?: string | null;
|
|
4018
4078
|
/**
|
|
4019
4079
|
* Format: date-time
|
|
4020
4080
|
* @description The date/time the resource was created
|
|
@@ -4089,6 +4149,12 @@ export interface components {
|
|
|
4089
4149
|
* @example 2023-01-04 15:11:39.642
|
|
4090
4150
|
*/
|
|
4091
4151
|
email_auto_reply_sent?: string;
|
|
4152
|
+
/**
|
|
4153
|
+
* Format: date-time
|
|
4154
|
+
* @description The date/time the inspection token expires. Updated each time a new token is issued.
|
|
4155
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
4156
|
+
*/
|
|
4157
|
+
expires_at?: string | null;
|
|
4092
4158
|
/**
|
|
4093
4159
|
* @description The id of the group this inspection is for.
|
|
4094
4160
|
* @example 23
|
|
@@ -4842,7 +4908,7 @@ export interface components {
|
|
|
4842
4908
|
inspection_id?: number;
|
|
4843
4909
|
isActiveUser: boolean;
|
|
4844
4910
|
isBot: boolean;
|
|
4845
|
-
isCustomer
|
|
4911
|
+
isCustomer: boolean;
|
|
4846
4912
|
isGroupMember: boolean;
|
|
4847
4913
|
/**
|
|
4848
4914
|
* @description Members can create inspections and review all inspections in assigned teams.
|
|
@@ -5162,6 +5228,11 @@ export interface components {
|
|
|
5162
5228
|
*/
|
|
5163
5229
|
web_camera: boolean;
|
|
5164
5230
|
};
|
|
5231
|
+
/**
|
|
5232
|
+
* @description An identifier from an external system used to reference the team. It must be unique within an organization when set.
|
|
5233
|
+
* @example X50100039
|
|
5234
|
+
*/
|
|
5235
|
+
external_id?: string | null;
|
|
5165
5236
|
/**
|
|
5166
5237
|
* @description The accuracy threshold that GPS coordinates must not exceed in meters.
|
|
5167
5238
|
* @example 1500
|
|
@@ -5802,52 +5873,7 @@ export interface components {
|
|
|
5802
5873
|
* @example 200
|
|
5803
5874
|
*/
|
|
5804
5875
|
response_code: number;
|
|
5805
|
-
result:
|
|
5806
|
-
inspection_types: {
|
|
5807
|
-
/** @description An array of custom fields that are used by this inspection type */
|
|
5808
|
-
custom_fields: components["schemas"]["CustomField"][];
|
|
5809
|
-
/**
|
|
5810
|
-
* @description The id of the inspection type
|
|
5811
|
-
* @example 1843
|
|
5812
|
-
*/
|
|
5813
|
-
id: number;
|
|
5814
|
-
/**
|
|
5815
|
-
* @description Controls whether an address is required for the inspection or not
|
|
5816
|
-
* @example 1000
|
|
5817
|
-
*/
|
|
5818
|
-
is_address_required: boolean;
|
|
5819
|
-
/**
|
|
5820
|
-
* @description The name of the inspection type
|
|
5821
|
-
* @example My Type
|
|
5822
|
-
*/
|
|
5823
|
-
name: string;
|
|
5824
|
-
/**
|
|
5825
|
-
* @description When true, there is only one name for the user to fill out rather than a separate first name and last name field
|
|
5826
|
-
* @example true
|
|
5827
|
-
*/
|
|
5828
|
-
use_single_name_field: boolean;
|
|
5829
|
-
}[];
|
|
5830
|
-
/**
|
|
5831
|
-
* @description Whether the email field is required on the website form. Defaults to `false`.
|
|
5832
|
-
* @example false
|
|
5833
|
-
*/
|
|
5834
|
-
is_email_required: boolean;
|
|
5835
|
-
/**
|
|
5836
|
-
* @description Whether the phone field is required on the website form. Defaults to `false`.
|
|
5837
|
-
* @example false
|
|
5838
|
-
*/
|
|
5839
|
-
is_phone_required: boolean;
|
|
5840
|
-
/**
|
|
5841
|
-
* @description Whether the address field should be shown on the website form when it is optional. The field is always shown if it is required by the inspection type. Defaults to `false`.
|
|
5842
|
-
* @example false
|
|
5843
|
-
*/
|
|
5844
|
-
should_show_address: boolean;
|
|
5845
|
-
/**
|
|
5846
|
-
* @description The unique token used by the website form to authenticate with the API.
|
|
5847
|
-
* @example -SQuSE62r4ISFCE4EOOTtu3yx1SW8i6PE7VMZwvVZ8TNyliC
|
|
5848
|
-
*/
|
|
5849
|
-
token: string;
|
|
5850
|
-
};
|
|
5876
|
+
result: components["schemas"]["WebsiteFormBearerSerialized"];
|
|
5851
5877
|
};
|
|
5852
5878
|
GetWebsiteFormResult: {
|
|
5853
5879
|
/**
|
|
@@ -5971,6 +5997,12 @@ export interface components {
|
|
|
5971
5997
|
* @example 19
|
|
5972
5998
|
*/
|
|
5973
5999
|
assigned_to_member_user_id: number;
|
|
6000
|
+
/**
|
|
6001
|
+
* Format: date-time
|
|
6002
|
+
* @description The date/time the inspection was closed. `null` if not closed.
|
|
6003
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
6004
|
+
*/
|
|
6005
|
+
closed_at?: string | null;
|
|
5974
6006
|
/**
|
|
5975
6007
|
* Format: date-time
|
|
5976
6008
|
* @description The date/time the resource was created
|
|
@@ -6045,6 +6077,12 @@ export interface components {
|
|
|
6045
6077
|
* @example 2023-01-04 15:11:39.642
|
|
6046
6078
|
*/
|
|
6047
6079
|
email_auto_reply_sent?: string;
|
|
6080
|
+
/**
|
|
6081
|
+
* Format: date-time
|
|
6082
|
+
* @description The date/time the inspection token expires. Updated each time a new token is issued.
|
|
6083
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
6084
|
+
*/
|
|
6085
|
+
expires_at?: string | null;
|
|
6048
6086
|
/**
|
|
6049
6087
|
* @description The id of the group this inspection is for.
|
|
6050
6088
|
* @example 23
|
|
@@ -6230,6 +6268,12 @@ export interface components {
|
|
|
6230
6268
|
* @example true
|
|
6231
6269
|
*/
|
|
6232
6270
|
test_content_analysis_dot_tin: boolean;
|
|
6271
|
+
/**
|
|
6272
|
+
* @description Whether or not to surface a `dot_tin_reuse` insight as an alert failure. Opt-in per VISION-1424: defaults to false so existing orgs do not start receiving alerts when the org-level reuse_detection feature is enabled.
|
|
6273
|
+
* @default false
|
|
6274
|
+
* @example false
|
|
6275
|
+
*/
|
|
6276
|
+
test_content_analysis_dot_tin_reuse: boolean;
|
|
6233
6277
|
/**
|
|
6234
6278
|
* @description Whether or not to include the odometer test in this alert.
|
|
6235
6279
|
* @example true
|
|
@@ -6245,6 +6289,12 @@ export interface components {
|
|
|
6245
6289
|
* @example true
|
|
6246
6290
|
*/
|
|
6247
6291
|
test_content_analysis_vin: boolean;
|
|
6292
|
+
/**
|
|
6293
|
+
* @description Whether or not to surface a `vin_reuse` insight as an alert failure. Opt-in per VISION-1425: defaults to false so existing orgs do not start receiving alerts when the org-level reuse_detection feature is enabled.
|
|
6294
|
+
* @default false
|
|
6295
|
+
* @example false
|
|
6296
|
+
*/
|
|
6297
|
+
test_content_analysis_vin_reuse: boolean;
|
|
6248
6298
|
/**
|
|
6249
6299
|
* @description Whether or not to include the datetime test in this alert.
|
|
6250
6300
|
* @example true
|
|
@@ -6266,7 +6316,7 @@ export interface components {
|
|
|
6266
6316
|
* @description Whether or not to include the device integrity test in this alert.
|
|
6267
6317
|
* @example true
|
|
6268
6318
|
*/
|
|
6269
|
-
test_device_integrity
|
|
6319
|
+
test_device_integrity: boolean;
|
|
6270
6320
|
/**
|
|
6271
6321
|
* @description Whether or not to include the distance-from-address test in this alert.
|
|
6272
6322
|
* @example true
|
|
@@ -6282,7 +6332,7 @@ export interface components {
|
|
|
6282
6332
|
* @description Whether or not to include the geolocation test in this alert.
|
|
6283
6333
|
* @example true
|
|
6284
6334
|
*/
|
|
6285
|
-
test_geolocation
|
|
6335
|
+
test_geolocation: boolean;
|
|
6286
6336
|
/**
|
|
6287
6337
|
* @description Whether or not to include the jailbroken or rooted device test in this alert.
|
|
6288
6338
|
* @default true
|
|
@@ -6431,7 +6481,7 @@ export interface components {
|
|
|
6431
6481
|
updated_at: string;
|
|
6432
6482
|
};
|
|
6433
6483
|
/** @enum {string} */
|
|
6434
|
-
InspectionInsightType: "insecure_device" | "falsified_location" | "device_found_other_inspections" | "device_flagged_other_inspections";
|
|
6484
|
+
InspectionInsightType: "insecure_device" | "falsified_location" | "device_found_other_inspections" | "device_flagged_other_inspections" | "dot_tin_reuse" | "vin_reuse";
|
|
6435
6485
|
InspectionListItemWithPhotos: {
|
|
6436
6486
|
/**
|
|
6437
6487
|
* @description Whether or not to accept existing images for this list item.
|
|
@@ -6657,8 +6707,8 @@ export interface components {
|
|
|
6657
6707
|
* @example 2018-08-06T15:29:47.000Z
|
|
6658
6708
|
*/
|
|
6659
6709
|
device_time: string;
|
|
6660
|
-
distance_from_customer_address
|
|
6661
|
-
distance_from_customer_address_exceeds_threshold
|
|
6710
|
+
distance_from_customer_address: number;
|
|
6711
|
+
distance_from_customer_address_exceeds_threshold: boolean;
|
|
6662
6712
|
/**
|
|
6663
6713
|
* @description The video duration of this Truepic, if it is a video.
|
|
6664
6714
|
* @example 0:00:30
|
|
@@ -6712,6 +6762,79 @@ export interface components {
|
|
|
6712
6762
|
*/
|
|
6713
6763
|
lat: string;
|
|
6714
6764
|
lens_transfer_done: unknown;
|
|
6765
|
+
/** @description The list item this photo/video was captured for, if any. */
|
|
6766
|
+
list_item?: {
|
|
6767
|
+
/**
|
|
6768
|
+
* @description The completion status of the list item for this inspection.
|
|
6769
|
+
* @example 0
|
|
6770
|
+
*/
|
|
6771
|
+
completed: number;
|
|
6772
|
+
/** @description Indicates that the contents of the photo should be analyzed to determine if it contains the correct information. */
|
|
6773
|
+
content_analysis?: components["schemas"]["ContentAnalysisDetails"];
|
|
6774
|
+
/**
|
|
6775
|
+
* Format: date-time
|
|
6776
|
+
* @description The date/time the resource was created
|
|
6777
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
6778
|
+
*/
|
|
6779
|
+
created_at: string;
|
|
6780
|
+
/**
|
|
6781
|
+
* @description The id of the group that this list item is associated with.
|
|
6782
|
+
* @example 1256
|
|
6783
|
+
*/
|
|
6784
|
+
group_id?: string;
|
|
6785
|
+
/**
|
|
6786
|
+
* @description The id of the resource.
|
|
6787
|
+
* @example 1843
|
|
6788
|
+
*/
|
|
6789
|
+
id: number;
|
|
6790
|
+
is_deleted: unknown;
|
|
6791
|
+
is_required: unknown;
|
|
6792
|
+
/**
|
|
6793
|
+
* @description A description of the requested photo or video when `type` is `IMAGE`, `PHOTO`, or `VIDEO`. A question for the customer to answer when `type` is `QUESTION`. The customer will see this value in the Vision app during the inspection.
|
|
6794
|
+
* @example Front of car
|
|
6795
|
+
*/
|
|
6796
|
+
name: string;
|
|
6797
|
+
/** @description An object containing information about the expected items in a Truepic. */
|
|
6798
|
+
object_detection?: components["schemas"]["ObjectDetectionConfig"];
|
|
6799
|
+
/**
|
|
6800
|
+
* @description The numerical order of the list item within the list. Starts at `1`.
|
|
6801
|
+
* @example 1
|
|
6802
|
+
*/
|
|
6803
|
+
order?: number;
|
|
6804
|
+
/** @description The question associated with this list item, if any. */
|
|
6805
|
+
question?: {
|
|
6806
|
+
/** @description The answer(s) selected by the user, or null if unanswered */
|
|
6807
|
+
answer?: (unknown | {
|
|
6808
|
+
/** @description The user's custom text answer. Used for answer options where `allow_custom` is `true` */
|
|
6809
|
+
custom?: string;
|
|
6810
|
+
/**
|
|
6811
|
+
* @description A selected answer to the question.
|
|
6812
|
+
* @example Excellent
|
|
6813
|
+
*/
|
|
6814
|
+
name: string;
|
|
6815
|
+
}[]) | (string | null) | (string | null);
|
|
6816
|
+
/** @description The possible choices for this question */
|
|
6817
|
+
options?: {
|
|
6818
|
+
allow_multiple: boolean;
|
|
6819
|
+
choices: components["schemas"]["ListItemQuestionChoice"][];
|
|
6820
|
+
} | unknown | {
|
|
6821
|
+
/** @description The latest date that can be selected, in ISO 8601 format */
|
|
6822
|
+
max?: string;
|
|
6823
|
+
/** @description The earliest date that can be selected, in ISO 8601 format */
|
|
6824
|
+
min?: string;
|
|
6825
|
+
};
|
|
6826
|
+
/** @description The type of question this list item is. Must be `MULTIPLE_CHOICE`, `TEXT`, or `DATE`. */
|
|
6827
|
+
type: string;
|
|
6828
|
+
};
|
|
6829
|
+
/** @description The type of the list item. */
|
|
6830
|
+
type: components["schemas"]["ListItemType"];
|
|
6831
|
+
/**
|
|
6832
|
+
* Format: date-time
|
|
6833
|
+
* @description The date/time the resource was last updated
|
|
6834
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
6835
|
+
*/
|
|
6836
|
+
updated_at: string;
|
|
6837
|
+
};
|
|
6715
6838
|
/**
|
|
6716
6839
|
* @description The GPS longitude where the photo/video was taken.
|
|
6717
6840
|
* @example 33.5565051716316
|
|
@@ -7043,13 +7166,7 @@ export interface components {
|
|
|
7043
7166
|
* @example Start your application today!
|
|
7044
7167
|
*/
|
|
7045
7168
|
page_title: string;
|
|
7046
|
-
website_form:
|
|
7047
|
-
/**
|
|
7048
|
-
* @description The unique token used by the website form to authenticate with the API.
|
|
7049
|
-
* @example -SQuSE62r4ISFCE4EOOTtu3yx1SW8i6PE7VMZwvVZ8TNyliC
|
|
7050
|
-
*/
|
|
7051
|
-
token: string;
|
|
7052
|
-
};
|
|
7169
|
+
website_form: unknown;
|
|
7053
7170
|
};
|
|
7054
7171
|
LandingPageSerialized: {
|
|
7055
7172
|
/**
|
|
@@ -7884,7 +8001,7 @@ export interface components {
|
|
|
7884
8001
|
updated_by_user_id: number | null;
|
|
7885
8002
|
};
|
|
7886
8003
|
/** @enum {string} */
|
|
7887
|
-
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_ai_criteria" | "dashboard_user_feedback_forms";
|
|
8004
|
+
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_ai_criteria" | "dashboard_user_feedback_forms" | "member_homepage" | "reuse_detection";
|
|
7888
8005
|
/** @description A possible outcome for an inspection */
|
|
7889
8006
|
Outcome: {
|
|
7890
8007
|
/**
|
|
@@ -8302,6 +8419,11 @@ export interface components {
|
|
|
8302
8419
|
*/
|
|
8303
8420
|
web_camera: boolean;
|
|
8304
8421
|
};
|
|
8422
|
+
/**
|
|
8423
|
+
* @description An identifier from an external system used to reference the team. It must be unique within an organization when set.
|
|
8424
|
+
* @example X50100039
|
|
8425
|
+
*/
|
|
8426
|
+
external_id?: string | null;
|
|
8305
8427
|
/**
|
|
8306
8428
|
* @description The accuracy threshold that GPS coordinates must not exceed in meters.
|
|
8307
8429
|
* @example 1500
|
|
@@ -8828,6 +8950,24 @@ export interface components {
|
|
|
8828
8950
|
*/
|
|
8829
8951
|
response_code: number;
|
|
8830
8952
|
};
|
|
8953
|
+
/** @description Top-level reuse rollup attached to a populated inspection for one string type (DOT TIN or VIN). Mirrors `flags_other_inspections` in shape; see Vision-UI Contract §1.2. */
|
|
8954
|
+
ReuseRollup: {
|
|
8955
|
+
/** @description Capped at MAX_INSPECTIONS_PER_ROLLUP entries — see VISION-1430 for the cap-value lock. `total_matched_inspections` continues to reflect the true count. */
|
|
8956
|
+
inspections: components["schemas"]["ReuseRollupInspection"][];
|
|
8957
|
+
/** @description Truepic IDs on this inspection that produced ≥1 match. */
|
|
8958
|
+
matched_truepic_ids: number[];
|
|
8959
|
+
total_matched_inspections: number;
|
|
8960
|
+
};
|
|
8961
|
+
/** @description One entry in a reuse rollup's `inspections[]` array — a remote inspection in the same org that shares at least one extracted value with the local inspection. See Vision-UI Contract §1.2. */
|
|
8962
|
+
ReuseRollupInspection: {
|
|
8963
|
+
/** @description UI hint: does the requesting user pass `requires-inspection-access` for the remote inspection? Server-side click-through (the inspection-detail endpoint's existing 403 path) remains the authoritative gate per VISION-1429 H2 — this flag avoids surfacing enabled controls that would 403 on click. */
|
|
8964
|
+
accessible: boolean;
|
|
8965
|
+
/** @description Earliest truepic-capture timestamp across the matching truepics on the remote inspection, ISO 8601. */
|
|
8966
|
+
first_match_at: string;
|
|
8967
|
+
inspection_id: number;
|
|
8968
|
+
/** @description Truepic IDs on **this** inspection whose extracted value triggered this remote match. Always non-empty for entries present in `inspections[]`. */
|
|
8969
|
+
triggered_by_truepic_ids: number[];
|
|
8970
|
+
};
|
|
8831
8971
|
/** @description The request body for PUT /text/reminder-to-finish */
|
|
8832
8972
|
SendFinishReminderTextBody: components["schemas"]["SendWelcomeTextBody"];
|
|
8833
8973
|
/** @description The response body for PUT /text/reminder-to-finish */
|
|
@@ -8962,6 +9102,12 @@ export interface components {
|
|
|
8962
9102
|
* @example 19
|
|
8963
9103
|
*/
|
|
8964
9104
|
assigned_to_member_user_id: number;
|
|
9105
|
+
/**
|
|
9106
|
+
* Format: date-time
|
|
9107
|
+
* @description The date/time the inspection was closed. `null` if not closed.
|
|
9108
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
9109
|
+
*/
|
|
9110
|
+
closed_at?: string | null;
|
|
8965
9111
|
/**
|
|
8966
9112
|
* Format: date-time
|
|
8967
9113
|
* @description The date/time the resource was created
|
|
@@ -9023,6 +9169,10 @@ export interface components {
|
|
|
9023
9169
|
* @example 3028675309
|
|
9024
9170
|
*/
|
|
9025
9171
|
customer_phone_number?: string;
|
|
9172
|
+
customer_token_status: {
|
|
9173
|
+
expires?: number | null;
|
|
9174
|
+
is_valid: boolean;
|
|
9175
|
+
};
|
|
9026
9176
|
/**
|
|
9027
9177
|
* Format: date-time
|
|
9028
9178
|
* @description The date/time the inspection was deleted. `null` if not deleted.
|
|
@@ -9035,12 +9185,20 @@ export interface components {
|
|
|
9035
9185
|
*/
|
|
9036
9186
|
deleted_by_user_id?: number | null;
|
|
9037
9187
|
devices: components["schemas"]["InspectionDeviceInfo"][];
|
|
9188
|
+
/** @description VISION-1427: in-org DOT TIN reuse rollup. Absent when the `reuse_detection` org feature flag is off or the populator detects no matches. */
|
|
9189
|
+
dot_tin_reuse?: components["schemas"]["ReuseRollup"];
|
|
9038
9190
|
/**
|
|
9039
9191
|
* Format: date-time
|
|
9040
9192
|
* @description The datetime an email automated reply was sent
|
|
9041
9193
|
* @example 2023-01-04 15:11:39.642
|
|
9042
9194
|
*/
|
|
9043
9195
|
email_auto_reply_sent?: string;
|
|
9196
|
+
/**
|
|
9197
|
+
* Format: date-time
|
|
9198
|
+
* @description The date/time the inspection token expires. Updated each time a new token is issued.
|
|
9199
|
+
* @example 2020-05-01T21:44:40.000Z
|
|
9200
|
+
*/
|
|
9201
|
+
expires_at?: string | null;
|
|
9044
9202
|
group?: components["schemas"]["Group"];
|
|
9045
9203
|
/**
|
|
9046
9204
|
* @description The id of the group this inspection is for.
|
|
@@ -9506,10 +9664,8 @@ export interface components {
|
|
|
9506
9664
|
* @example pass
|
|
9507
9665
|
*/
|
|
9508
9666
|
verification_result?: components["schemas"]["VerificationResult"];
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
is_valid: boolean;
|
|
9512
|
-
};
|
|
9667
|
+
/** @description VISION-1427: in-org VIN reuse rollup. Absent when the `reuse_detection` org feature flag is off or the populator detects no matches. */
|
|
9668
|
+
vin_reuse?: components["schemas"]["ReuseRollup"];
|
|
9513
9669
|
};
|
|
9514
9670
|
/** @description A user object that's been serialized for the client. This is usually the object returned from the API and is used for client-side rendering. */
|
|
9515
9671
|
SerializedUser: {
|
|
@@ -9780,6 +9936,11 @@ export interface components {
|
|
|
9780
9936
|
*/
|
|
9781
9937
|
web_camera: boolean;
|
|
9782
9938
|
};
|
|
9939
|
+
/**
|
|
9940
|
+
* @description An identifier from an external system used to reference the team. It must be unique within an organization when set.
|
|
9941
|
+
* @example X50100039
|
|
9942
|
+
*/
|
|
9943
|
+
external_id?: string | null;
|
|
9783
9944
|
/**
|
|
9784
9945
|
* @description The accuracy threshold that GPS coordinates must not exceed in meters.
|
|
9785
9946
|
* @example 1500
|
|
@@ -9970,6 +10131,11 @@ export interface components {
|
|
|
9970
10131
|
*/
|
|
9971
10132
|
web_camera: boolean;
|
|
9972
10133
|
};
|
|
10134
|
+
/**
|
|
10135
|
+
* @description An identifier from an external system used to reference the team. It must be unique within an organization when set.
|
|
10136
|
+
* @example X50100039
|
|
10137
|
+
*/
|
|
10138
|
+
external_id?: string | null;
|
|
9973
10139
|
/**
|
|
9974
10140
|
* @description The accuracy threshold that GPS coordinates must not exceed in meters.
|
|
9975
10141
|
* @example 1500
|
|
@@ -10453,11 +10619,11 @@ export interface components {
|
|
|
10453
10619
|
*/
|
|
10454
10620
|
custom_field_values?: string[];
|
|
10455
10621
|
/** @description The address where the inspection will be performed. */
|
|
10456
|
-
customer_address
|
|
10622
|
+
customer_address: string;
|
|
10457
10623
|
/** @description The latitude of the address where the inspection will be performed. */
|
|
10458
|
-
customer_address_lat
|
|
10624
|
+
customer_address_lat: string;
|
|
10459
10625
|
/** @description The longitude of the address where the inspection will be performed. */
|
|
10460
|
-
customer_address_lng
|
|
10626
|
+
customer_address_lng: string;
|
|
10461
10627
|
/**
|
|
10462
10628
|
* Format: email
|
|
10463
10629
|
* @description The email address of the customer completing the inspection. Required if `send_methods.email` is `true`.
|
|
@@ -10885,6 +11051,52 @@ export interface components {
|
|
|
10885
11051
|
* @enum {string}
|
|
10886
11052
|
*/
|
|
10887
11053
|
VisionRole: "SUPER_ADMIN" | "VISION_AGENT_ADMIN" | "VISION_AGENT" | "VISION_CONSUMER" | "AUTH0_BOT" | "WEBSITE_FORM_BOT" | "GROUP_AGENT" | "VISION_AGENT_OWN_INSPECTIONS" | "VIEW_ONLY" | "VISION_AGENT_REPORT";
|
|
11054
|
+
WebsiteFormBearerSerialized: {
|
|
11055
|
+
inspection_types: {
|
|
11056
|
+
/** @description An array of custom fields that are used by this inspection type */
|
|
11057
|
+
custom_fields: components["schemas"]["CustomField"][];
|
|
11058
|
+
/**
|
|
11059
|
+
* @description The id of the inspection type
|
|
11060
|
+
* @example 1843
|
|
11061
|
+
*/
|
|
11062
|
+
id: number;
|
|
11063
|
+
/**
|
|
11064
|
+
* @description Controls whether an address is required for the inspection or not
|
|
11065
|
+
* @example 1000
|
|
11066
|
+
*/
|
|
11067
|
+
is_address_required: boolean;
|
|
11068
|
+
/**
|
|
11069
|
+
* @description The name of the inspection type
|
|
11070
|
+
* @example My Type
|
|
11071
|
+
*/
|
|
11072
|
+
name: string;
|
|
11073
|
+
/**
|
|
11074
|
+
* @description When true, there is only one name for the user to fill out rather than a separate first name and last name field
|
|
11075
|
+
* @example true
|
|
11076
|
+
*/
|
|
11077
|
+
use_single_name_field: boolean;
|
|
11078
|
+
}[];
|
|
11079
|
+
/**
|
|
11080
|
+
* @description Whether the email field is required on the website form. Defaults to `false`.
|
|
11081
|
+
* @example false
|
|
11082
|
+
*/
|
|
11083
|
+
is_email_required: boolean;
|
|
11084
|
+
/**
|
|
11085
|
+
* @description Whether the phone field is required on the website form. Defaults to `false`.
|
|
11086
|
+
* @example false
|
|
11087
|
+
*/
|
|
11088
|
+
is_phone_required: boolean;
|
|
11089
|
+
/**
|
|
11090
|
+
* @description Whether the address field should be shown on the website form when it is optional. The field is always shown if it is required by the inspection type. Defaults to `false`.
|
|
11091
|
+
* @example false
|
|
11092
|
+
*/
|
|
11093
|
+
should_show_address: boolean;
|
|
11094
|
+
/**
|
|
11095
|
+
* @description The unique token used by the website form to authenticate with the API.
|
|
11096
|
+
* @example -SQuSE62r4ISFCE4EOOTtu3yx1SW8i6PE7VMZwvVZ8TNyliC
|
|
11097
|
+
*/
|
|
11098
|
+
token: string;
|
|
11099
|
+
};
|
|
10888
11100
|
WebsiteFormInspectionSerialized: {
|
|
10889
11101
|
can_email: boolean;
|
|
10890
11102
|
can_text: boolean;
|
package/package.json
CHANGED