@toolpath/api 0.1.0 → 0.2.2

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 (114) hide show
  1. package/README.md +1 -1
  2. package/dist/generated/apis/FeaturesApi.d.ts +22 -20
  3. package/dist/generated/apis/FeaturesApi.js +41 -33
  4. package/dist/generated/apis/JobsApi.d.ts +1 -1
  5. package/dist/generated/apis/JobsApi.js +1 -1
  6. package/dist/generated/apis/KeysApi.d.ts +1 -1
  7. package/dist/generated/apis/KeysApi.js +1 -1
  8. package/dist/generated/apis/PartsApi.d.ts +28 -28
  9. package/dist/generated/apis/PartsApi.js +49 -49
  10. package/dist/generated/apis/ServiceApi.d.ts +1 -1
  11. package/dist/generated/apis/ServiceApi.js +1 -1
  12. package/dist/generated/models/BevelFacts.d.ts +62 -0
  13. package/dist/generated/models/BevelFacts.js +58 -0
  14. package/dist/generated/models/BossFacts.d.ts +64 -0
  15. package/dist/generated/models/BossFacts.js +68 -0
  16. package/dist/generated/models/CdBounds.d.ts +41 -0
  17. package/dist/generated/models/CdBounds.js +47 -0
  18. package/dist/generated/models/CdData.d.ts +52 -0
  19. package/dist/generated/models/CdData.js +56 -0
  20. package/dist/generated/models/ChamferFacts.d.ts +55 -0
  21. package/dist/generated/models/ChamferFacts.js +61 -0
  22. package/dist/generated/models/CreatePartResponse.d.ts +5 -5
  23. package/dist/generated/models/CreatePartResponse.js +1 -1
  24. package/dist/generated/models/DirectionZBounds.d.ts +6 -6
  25. package/dist/generated/models/DirectionZBounds.js +4 -4
  26. package/dist/generated/models/DirectionZBoundsDirection.d.ts +44 -0
  27. package/dist/generated/models/DirectionZBoundsDirection.js +51 -0
  28. package/dist/generated/models/DovetailFacts.d.ts +98 -0
  29. package/dist/generated/models/DovetailFacts.js +84 -0
  30. package/dist/generated/models/FaceFacts.d.ts +70 -0
  31. package/dist/generated/models/FaceFacts.js +72 -0
  32. package/dist/generated/models/FeatureDatasheet.d.ts +110 -0
  33. package/dist/generated/models/FeatureDatasheet.js +94 -0
  34. package/dist/generated/models/FeatureDatasheetFacts.d.ts +51 -0
  35. package/dist/generated/models/FeatureDatasheetFacts.js +89 -0
  36. package/dist/generated/models/FeatureType.d.ts +58 -0
  37. package/dist/generated/models/FeatureType.js +76 -0
  38. package/dist/generated/models/HealthResponse.d.ts +3 -3
  39. package/dist/generated/models/HealthResponse.js +1 -1
  40. package/dist/generated/models/HoleFacts.d.ts +109 -0
  41. package/dist/generated/models/HoleFacts.js +96 -0
  42. package/dist/generated/models/HoleProcess.d.ts +26 -0
  43. package/dist/generated/models/HoleProcess.js +44 -0
  44. package/dist/generated/models/JobDetail.d.ts +9 -9
  45. package/dist/generated/models/JobDetail.js +1 -1
  46. package/dist/generated/models/JobSummary.d.ts +7 -7
  47. package/dist/generated/models/JobSummary.js +1 -1
  48. package/dist/generated/models/KeyValidationResponse.d.ts +1 -1
  49. package/dist/generated/models/KeyValidationResponse.js +1 -1
  50. package/dist/generated/models/ListJobsResponse.d.ts +5 -5
  51. package/dist/generated/models/ListJobsResponse.js +1 -1
  52. package/dist/generated/models/OpenApiDocument.d.ts +2 -2
  53. package/dist/generated/models/OpenApiDocument.js +1 -1
  54. package/dist/generated/models/PartFeature.d.ts +8 -8
  55. package/dist/generated/models/PartFeature.js +4 -4
  56. package/dist/generated/models/PartFeatureAxis.d.ts +5 -5
  57. package/dist/generated/models/PartFeatureAxis.js +1 -1
  58. package/dist/generated/models/PartFeatureEntry.d.ts +51 -0
  59. package/dist/generated/models/{FeatureDatasheetEntry.js → PartFeatureEntry.js} +16 -11
  60. package/dist/generated/models/PartFeatureMachiningDirection.d.ts +44 -0
  61. package/dist/generated/models/PartFeatureMachiningDirection.js +51 -0
  62. package/dist/generated/models/PartFeaturesResponse.d.ts +39 -0
  63. package/dist/generated/models/{FeatureDatasheetsResponse.js → PartFeaturesResponse.js} +12 -12
  64. package/dist/generated/models/PartReportResponse.d.ts +21 -21
  65. package/dist/generated/models/PartReportResponse.js +4 -4
  66. package/dist/generated/models/PartReportResponseUnits.d.ts +52 -0
  67. package/dist/generated/models/PartReportResponseUnits.js +63 -0
  68. package/dist/generated/models/PocketFacts.d.ts +65 -0
  69. package/dist/generated/models/PocketFacts.js +68 -0
  70. package/dist/generated/models/ProblemDetails.d.ts +1 -1
  71. package/dist/generated/models/ProblemDetails.js +1 -1
  72. package/dist/generated/models/ProfileFacts.d.ts +58 -0
  73. package/dist/generated/models/ProfileFacts.js +64 -0
  74. package/dist/generated/models/Region.d.ts +12 -6
  75. package/dist/generated/models/Region.js +5 -1
  76. package/dist/generated/models/ReportUnits.d.ts +3 -3
  77. package/dist/generated/models/ReportUnits.js +1 -1
  78. package/dist/generated/models/SinkFacts.d.ts +47 -0
  79. package/dist/generated/models/SinkFacts.js +52 -0
  80. package/dist/generated/models/SurfaceFacts.d.ts +97 -0
  81. package/dist/generated/models/SurfaceFacts.js +89 -0
  82. package/dist/generated/models/ThreadProcess.d.ts +26 -0
  83. package/dist/generated/models/ThreadProcess.js +44 -0
  84. package/dist/generated/models/ThreadSpec.d.ts +62 -0
  85. package/dist/generated/models/ThreadSpec.js +63 -0
  86. package/dist/generated/models/Threading.d.ts +40 -0
  87. package/dist/generated/models/Threading.js +49 -0
  88. package/dist/generated/models/ToleranceBand.d.ts +45 -0
  89. package/dist/generated/models/ToleranceBand.js +51 -0
  90. package/dist/generated/models/ToolFitResult.d.ts +44 -0
  91. package/dist/generated/models/ToolFitResult.js +51 -0
  92. package/dist/generated/models/TslotFacts.d.ts +81 -0
  93. package/dist/generated/models/TslotFacts.js +76 -0
  94. package/dist/generated/models/{ComputeFeatureDatasheetsRequest.d.ts → UpdatePartFeaturesRequest.d.ts} +11 -11
  95. package/dist/generated/models/{ComputeFeatureDatasheetsRequest.js → UpdatePartFeaturesRequest.js} +9 -9
  96. package/dist/generated/models/UpdatePartFeaturesResponse.d.ts +51 -0
  97. package/dist/generated/models/{ComputeFeatureDatasheetsResponse.js → UpdatePartFeaturesResponse.js} +10 -10
  98. package/dist/generated/models/UpdatePartResponse.d.ts +51 -0
  99. package/dist/generated/models/{AnalyzeJobResponse.js → UpdatePartResponse.js} +10 -10
  100. package/dist/generated/models/Vec2.d.ts +38 -0
  101. package/dist/generated/models/Vec2.js +47 -0
  102. package/dist/generated/models/Vec3.d.ts +4 -4
  103. package/dist/generated/models/Vec3.js +1 -1
  104. package/dist/generated/models/WallFacts.d.ts +46 -0
  105. package/dist/generated/models/WallFacts.js +56 -0
  106. package/dist/generated/models/index.d.ts +32 -5
  107. package/dist/generated/models/index.js +32 -5
  108. package/dist/generated/runtime.d.ts +1 -1
  109. package/dist/generated/runtime.js +1 -1
  110. package/package.json +3 -3
  111. package/dist/generated/models/AnalyzeJobResponse.d.ts +0 -51
  112. package/dist/generated/models/ComputeFeatureDatasheetsResponse.d.ts +0 -51
  113. package/dist/generated/models/FeatureDatasheetEntry.d.ts +0 -52
  114. package/dist/generated/models/FeatureDatasheetsResponse.d.ts +0 -39
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SinkFacts } from './SinkFacts.js';
13
+ /**
14
+ * The bevel itself: how it leans, how far it runs, and what its surroundings allow a
15
+ * cone to overshoot.
16
+ * @export
17
+ * @interface BevelFacts
18
+ */
19
+ export interface BevelFacts {
20
+ /**
21
+ * Between the bevel's surface and the tool axis, degrees: zero for a wall, a right
22
+ * angle for a floor. A matching tool's cone half angle is this.
23
+ * @type {number}
24
+ * @memberof BevelFacts
25
+ */
26
+ angleDeg: number;
27
+ /**
28
+ * How far the bevel runs along its own slope — the length of cutting edge a tool
29
+ * needs to span it in one pass.
30
+ * @type {number}
31
+ * @memberof BevelFacts
32
+ */
33
+ slant: number;
34
+ /**
35
+ * The highest bottom among the features the bevel stands on — how far down there
36
+ * is room under it before a tool would meet something. z grows up the tool axis,
37
+ * so this is *below* the bevel's own `zMin` by the room there is.
38
+ * @type {number}
39
+ * @memberof BevelFacts
40
+ */
41
+ lowerAdjacentZMin: number;
42
+ /**
43
+ * The bevel breaks the edge along an open pocket's floor.
44
+ * @type {boolean}
45
+ * @memberof BevelFacts
46
+ */
47
+ isOpenPocketBottom: boolean;
48
+ /**
49
+ * Present only when the bevel is a countersink of revolution.
50
+ * @type {SinkFacts}
51
+ * @memberof BevelFacts
52
+ */
53
+ countersink?: SinkFacts;
54
+ }
55
+ /**
56
+ * Check if a given object implements the BevelFacts interface.
57
+ */
58
+ export declare function instanceOfBevelFacts(value: object): value is BevelFacts;
59
+ export declare function BevelFactsFromJSON(json: any): BevelFacts;
60
+ export declare function BevelFactsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BevelFacts;
61
+ export declare function BevelFactsToJSON(json: any): BevelFacts;
62
+ export declare function BevelFactsToJSONTyped(value?: BevelFacts | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SinkFactsFromJSON, SinkFactsToJSON, } from './SinkFacts.js';
15
+ /**
16
+ * Check if a given object implements the BevelFacts interface.
17
+ */
18
+ export function instanceOfBevelFacts(value) {
19
+ if (!('angleDeg' in value) || value['angleDeg'] === undefined)
20
+ return false;
21
+ if (!('slant' in value) || value['slant'] === undefined)
22
+ return false;
23
+ if (!('lowerAdjacentZMin' in value) || value['lowerAdjacentZMin'] === undefined)
24
+ return false;
25
+ if (!('isOpenPocketBottom' in value) || value['isOpenPocketBottom'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function BevelFactsFromJSON(json) {
30
+ return BevelFactsFromJSONTyped(json, false);
31
+ }
32
+ export function BevelFactsFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ angleDeg: json['angleDeg'],
38
+ slant: json['slant'],
39
+ lowerAdjacentZMin: json['lowerAdjacentZMin'],
40
+ isOpenPocketBottom: json['isOpenPocketBottom'],
41
+ countersink: json['countersink'] == null ? undefined : SinkFactsFromJSON(json['countersink']),
42
+ };
43
+ }
44
+ export function BevelFactsToJSON(json) {
45
+ return BevelFactsToJSONTyped(json, false);
46
+ }
47
+ export function BevelFactsToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ angleDeg: value['angleDeg'],
53
+ slant: value['slant'],
54
+ lowerAdjacentZMin: value['lowerAdjacentZMin'],
55
+ isOpenPocketBottom: value['isOpenPocketBottom'],
56
+ countersink: SinkFactsToJSON(value['countersink']),
57
+ };
58
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CdData } from './CdData.js';
13
+ /**
14
+ * A boss: a pocket turned inside out — material with void around it.
15
+ * @export
16
+ * @interface BossFacts
17
+ */
18
+ export interface BossFacts {
19
+ /**
20
+ * Discriminator for this facts variant.
21
+ * @type {BossFactsKindEnum}
22
+ * @memberof BossFacts
23
+ */
24
+ kind: BossFactsKindEnum;
25
+ /**
26
+ * Clearance-diameter limits for tools sweeping around the boss.
27
+ * @type {CdData}
28
+ * @memberof BossFacts
29
+ */
30
+ cd: CdData;
31
+ /**
32
+ * Largest bottom diameter a terminal tool may have, in mm.
33
+ * @type {number}
34
+ * @memberof BossFacts
35
+ */
36
+ maxBottomDiameter: number;
37
+ /**
38
+ * Radius of the floor blend, in mm; zero when sharp.
39
+ * @type {number}
40
+ * @memberof BossFacts
41
+ */
42
+ filletRadius: number;
43
+ /**
44
+ * Height of the floor blend, in mm; zero when sharp.
45
+ * @type {number}
46
+ * @memberof BossFacts
47
+ */
48
+ filletHeight: number;
49
+ }
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const BossFactsKindEnum: {
54
+ readonly Boss: "Boss";
55
+ };
56
+ export type BossFactsKindEnum = (typeof BossFactsKindEnum)[keyof typeof BossFactsKindEnum];
57
+ /**
58
+ * Check if a given object implements the BossFacts interface.
59
+ */
60
+ export declare function instanceOfBossFacts(value: object): value is BossFacts;
61
+ export declare function BossFactsFromJSON(json: any): BossFacts;
62
+ export declare function BossFactsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BossFacts;
63
+ export declare function BossFactsToJSON(json: any): BossFacts;
64
+ export declare function BossFactsToJSONTyped(value?: BossFacts | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { CdDataFromJSON, CdDataToJSON } from './CdData.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const BossFactsKindEnum = {
19
+ Boss: 'Boss',
20
+ };
21
+ /**
22
+ * Check if a given object implements the BossFacts interface.
23
+ */
24
+ export function instanceOfBossFacts(value) {
25
+ if (!('kind' in value) || value['kind'] === undefined)
26
+ return false;
27
+ if (value['kind'] !== 'Boss')
28
+ return false;
29
+ if (!('cd' in value) || value['cd'] === undefined)
30
+ return false;
31
+ if (!('maxBottomDiameter' in value) || value['maxBottomDiameter'] === undefined)
32
+ return false;
33
+ if (!('filletRadius' in value) || value['filletRadius'] === undefined)
34
+ return false;
35
+ if (!('filletHeight' in value) || value['filletHeight'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function BossFactsFromJSON(json) {
40
+ return BossFactsFromJSONTyped(json, false);
41
+ }
42
+ export function BossFactsFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ kind: json['kind'],
48
+ cd: CdDataFromJSON(json['cd']),
49
+ maxBottomDiameter: json['maxBottomDiameter'],
50
+ filletRadius: json['filletRadius'],
51
+ filletHeight: json['filletHeight'],
52
+ };
53
+ }
54
+ export function BossFactsToJSON(json) {
55
+ return BossFactsToJSONTyped(json, false);
56
+ }
57
+ export function BossFactsToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ kind: value['kind'],
63
+ cd: CdDataToJSON(value['cd']),
64
+ maxBottomDiameter: value['maxBottomDiameter'],
65
+ filletRadius: value['filletRadius'],
66
+ filletHeight: value['filletHeight'],
67
+ };
68
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * How wide a tool a feature admits — two upper bounds, differing in how much of the
14
+ * feature the tool has to reach. `min` is the largest tool that reaches every part of
15
+ * the feature, `max` the largest that fits somewhere; `min <= max`. Infinities are
16
+ * meaningful — see `CdBounds` in the `api` crate for the three sentinel states.
17
+ * @export
18
+ * @interface CdBounds
19
+ */
20
+ export interface CdBounds {
21
+ /**
22
+ * Largest tool diameter that reaches every point of the feature, in mm.
23
+ * @type {number}
24
+ * @memberof CdBounds
25
+ */
26
+ min: number;
27
+ /**
28
+ * Largest tool diameter that fits somewhere in the feature, in mm.
29
+ * @type {number}
30
+ * @memberof CdBounds
31
+ */
32
+ max: number;
33
+ }
34
+ /**
35
+ * Check if a given object implements the CdBounds interface.
36
+ */
37
+ export declare function instanceOfCdBounds(value: object): value is CdBounds;
38
+ export declare function CdBoundsFromJSON(json: any): CdBounds;
39
+ export declare function CdBoundsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CdBounds;
40
+ export declare function CdBoundsToJSON(json: any): CdBounds;
41
+ export declare function CdBoundsToJSONTyped(value?: CdBounds | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the CdBounds interface.
16
+ */
17
+ export function instanceOfCdBounds(value) {
18
+ if (!('min' in value) || value['min'] === undefined)
19
+ return false;
20
+ if (!('max' in value) || value['max'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CdBoundsFromJSON(json) {
25
+ return CdBoundsFromJSONTyped(json, false);
26
+ }
27
+ export function CdBoundsFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ min: json['min'],
33
+ max: json['max'],
34
+ };
35
+ }
36
+ export function CdBoundsToJSON(json) {
37
+ return CdBoundsToJSONTyped(json, false);
38
+ }
39
+ export function CdBoundsToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ min: value['min'],
45
+ max: value['max'],
46
+ };
47
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CdBounds } from './CdBounds.js';
13
+ /**
14
+ * Clearance-diameter bounds per tolerance regime, plus the flags derived with them.
15
+ * @export
16
+ * @interface CdData
17
+ */
18
+ export interface CdData {
19
+ /**
20
+ * Clearance-diameter bounds while deviations in the ignored tolerance band are allowed.
21
+ * @type {CdBounds}
22
+ * @memberof CdData
23
+ */
24
+ ignore: CdBounds;
25
+ /**
26
+ * Clearance-diameter bounds while deviations in the reported tolerance band are allowed.
27
+ * @type {CdBounds}
28
+ * @memberof CdData
29
+ */
30
+ deviate: CdBounds;
31
+ /**
32
+ * Clearance-diameter bounds after adaptive-cutting allowances are applied.
33
+ * @type {CdBounds}
34
+ * @memberof CdData
35
+ */
36
+ effectiveAdaptive: CdBounds;
37
+ /**
38
+ * The corner radius a terminal tool must not exceed; negative infinity when
39
+ * unconstrained.
40
+ * @type {number}
41
+ * @memberof CdData
42
+ */
43
+ terminalCornerRadius: number;
44
+ }
45
+ /**
46
+ * Check if a given object implements the CdData interface.
47
+ */
48
+ export declare function instanceOfCdData(value: object): value is CdData;
49
+ export declare function CdDataFromJSON(json: any): CdData;
50
+ export declare function CdDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CdData;
51
+ export declare function CdDataToJSON(json: any): CdData;
52
+ export declare function CdDataToJSONTyped(value?: CdData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { CdBoundsFromJSON, CdBoundsToJSON, } from './CdBounds.js';
15
+ /**
16
+ * Check if a given object implements the CdData interface.
17
+ */
18
+ export function instanceOfCdData(value) {
19
+ if (!('ignore' in value) || value['ignore'] === undefined)
20
+ return false;
21
+ if (!('deviate' in value) || value['deviate'] === undefined)
22
+ return false;
23
+ if (!('effectiveAdaptive' in value) || value['effectiveAdaptive'] === undefined)
24
+ return false;
25
+ if (!('terminalCornerRadius' in value) || value['terminalCornerRadius'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function CdDataFromJSON(json) {
30
+ return CdDataFromJSONTyped(json, false);
31
+ }
32
+ export function CdDataFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ ignore: CdBoundsFromJSON(json['ignore']),
38
+ deviate: CdBoundsFromJSON(json['deviate']),
39
+ effectiveAdaptive: CdBoundsFromJSON(json['effectiveAdaptive']),
40
+ terminalCornerRadius: json['terminalCornerRadius'],
41
+ };
42
+ }
43
+ export function CdDataToJSON(json) {
44
+ return CdDataToJSONTyped(json, false);
45
+ }
46
+ export function CdDataToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ ignore: CdBoundsToJSON(value['ignore']),
52
+ deviate: CdBoundsToJSON(value['deviate']),
53
+ effectiveAdaptive: CdBoundsToJSON(value['effectiveAdaptive']),
54
+ terminalCornerRadius: value['terminalCornerRadius'],
55
+ };
56
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SurfaceFacts } from './SurfaceFacts.js';
13
+ import type { BevelFacts } from './BevelFacts.js';
14
+ /**
15
+ * A chamfer, which is two things at once and carries a measurement of each: a bevel
16
+ * cut by a cone's flank, and a surface a ball can follow. Which one a given tool
17
+ * answers to is settled by the tool's own shape.
18
+ * @export
19
+ * @interface ChamferFacts
20
+ */
21
+ export interface ChamferFacts {
22
+ /**
23
+ * Discriminator for this facts variant.
24
+ * @type {ChamferFactsKindEnum}
25
+ * @memberof ChamferFacts
26
+ */
27
+ kind: ChamferFactsKindEnum;
28
+ /**
29
+ * Measurements for machining the chamfer with a conical tool flank.
30
+ * @type {BevelFacts}
31
+ * @memberof ChamferFacts
32
+ */
33
+ bevel: BevelFacts;
34
+ /**
35
+ * Measurements for machining the chamfer as a followable surface.
36
+ * @type {SurfaceFacts}
37
+ * @memberof ChamferFacts
38
+ */
39
+ three: SurfaceFacts;
40
+ }
41
+ /**
42
+ * @export
43
+ */
44
+ export declare const ChamferFactsKindEnum: {
45
+ readonly Chamfer: "Chamfer";
46
+ };
47
+ export type ChamferFactsKindEnum = (typeof ChamferFactsKindEnum)[keyof typeof ChamferFactsKindEnum];
48
+ /**
49
+ * Check if a given object implements the ChamferFacts interface.
50
+ */
51
+ export declare function instanceOfChamferFacts(value: object): value is ChamferFacts;
52
+ export declare function ChamferFactsFromJSON(json: any): ChamferFacts;
53
+ export declare function ChamferFactsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChamferFacts;
54
+ export declare function ChamferFactsToJSON(json: any): ChamferFacts;
55
+ export declare function ChamferFactsToJSONTyped(value?: ChamferFacts | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SurfaceFactsFromJSON, SurfaceFactsToJSON, } from './SurfaceFacts.js';
15
+ import { BevelFactsFromJSON, BevelFactsToJSON, } from './BevelFacts.js';
16
+ /**
17
+ * @export
18
+ */
19
+ export const ChamferFactsKindEnum = {
20
+ Chamfer: 'Chamfer',
21
+ };
22
+ /**
23
+ * Check if a given object implements the ChamferFacts interface.
24
+ */
25
+ export function instanceOfChamferFacts(value) {
26
+ if (!('kind' in value) || value['kind'] === undefined)
27
+ return false;
28
+ if (value['kind'] !== 'Chamfer')
29
+ return false;
30
+ if (!('bevel' in value) || value['bevel'] === undefined)
31
+ return false;
32
+ if (!('three' in value) || value['three'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function ChamferFactsFromJSON(json) {
37
+ return ChamferFactsFromJSONTyped(json, false);
38
+ }
39
+ export function ChamferFactsFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ kind: json['kind'],
45
+ bevel: BevelFactsFromJSON(json['bevel']),
46
+ three: SurfaceFactsFromJSON(json['three']),
47
+ };
48
+ }
49
+ export function ChamferFactsToJSON(json) {
50
+ return ChamferFactsToJSONTyped(json, false);
51
+ }
52
+ export function ChamferFactsToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ kind: value['kind'],
58
+ bevel: BevelFactsToJSON(value['bevel']),
59
+ three: SurfaceFactsToJSON(value['three']),
60
+ };
61
+ }
@@ -2,7 +2,7 @@
2
2
  * Toolpath Engine API
3
3
  * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,25 +16,25 @@
16
16
  */
17
17
  export interface CreatePartResponse {
18
18
  /**
19
- *
19
+ * Identifier of the newly created part.
20
20
  * @type {string}
21
21
  * @memberof CreatePartResponse
22
22
  */
23
23
  partId: string;
24
24
  /**
25
- *
25
+ * Short-lived URL that accepts a direct upload of the CAD source.
26
26
  * @type {string}
27
27
  * @memberof CreatePartResponse
28
28
  */
29
29
  uploadUrl: string;
30
30
  /**
31
- *
31
+ * Object-storage bucket receiving the CAD source.
32
32
  * @type {string}
33
33
  * @memberof CreatePartResponse
34
34
  */
35
35
  sourceBucket: string;
36
36
  /**
37
- *
37
+ * Object-storage key assigned to the CAD source.
38
38
  * @type {string}
39
39
  * @memberof CreatePartResponse
40
40
  */
@@ -4,7 +4,7 @@
4
4
  * Toolpath Engine API
5
5
  * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
7
+ * The version of the OpenAPI document: 1.0.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,14 +2,14 @@
2
2
  * Toolpath Engine API
3
3
  * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Vec3 } from './Vec3.js';
12
+ import type { DirectionZBoundsDirection } from './DirectionZBoundsDirection.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,18 +18,18 @@ import type { Vec3 } from './Vec3.js';
18
18
  export interface DirectionZBounds {
19
19
  /**
20
20
  *
21
- * @type {Vec3}
21
+ * @type {DirectionZBoundsDirection}
22
22
  * @memberof DirectionZBounds
23
23
  */
24
- direction: Vec3;
24
+ direction: DirectionZBoundsDirection;
25
25
  /**
26
- *
26
+ * Lowest part extent in this direction’s tool-axis frame, in mm.
27
27
  * @type {number}
28
28
  * @memberof DirectionZBounds
29
29
  */
30
30
  zMin: number;
31
31
  /**
32
- *
32
+ * Highest part extent in this direction’s tool-axis frame, in mm.
33
33
  * @type {number}
34
34
  * @memberof DirectionZBounds
35
35
  */