@truepic/vision-api-types 3.74.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 (4) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +70 -0
  3. package/index.d.ts +12293 -0
  4. package/package.json +31 -0
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Truepic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # Truepic Vision API Types
2
+
3
+ TypeScript type declarations for Truepic Vision API v3.
4
+
5
+ ![npm version](https://img.shields.io/npm/v/@truepic/vision-api-types?color=196dff)
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @truepic/vision-api-types
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ import type { components, paths } from '@truepic/vision-api-types'
17
+
18
+ type VisionInspectionSchema = components['schemas']['Inspection']
19
+ type VisionGetInspectionsPath = paths['/inspections']['get']
20
+ ```
21
+
22
+ [OpenAPI TypeScript](https://openapi-ts.dev/) is used to generate the TypeScript
23
+ types from the
24
+ [Vision API OpenAPI specification](https://vision-api.truepic.com/v3/open-api).
25
+ See their [docs](https://openapi-ts.dev/introduction) for further details.
26
+
27
+ ## Development
28
+
29
+ ### Prerequisites
30
+
31
+ The only prerequisite is a compatible version of Node.js (see `engines.node` in
32
+ [`package.json`](package.json)).
33
+
34
+ ### Dependencies
35
+
36
+ Install dependencies with npm:
37
+
38
+ ```bash
39
+ npm install
40
+ ```
41
+
42
+ ### Generate
43
+
44
+ To generate the TypeScript types from the OpenAPI specification to `index.d.ts`:
45
+
46
+ ```bash
47
+ npm run generate
48
+ ```
49
+
50
+ ### Validate
51
+
52
+ To validate the generated TypeScript types in `index.d.ts`:
53
+
54
+ ```bash
55
+ npm run validate
56
+ ```
57
+
58
+ ## Releasing
59
+
60
+ The TypeScript types must be manually generated, validated, and released after a
61
+ Vision API release. That process does not happen automatically at this time.
62
+
63
+ [Release It!](https://github.com/release-it/release-it) is used to orchestrate
64
+ the release process:
65
+
66
+ ```bash
67
+ npm run release
68
+ ```
69
+
70
+ The release version should match the Vision API version.