Skip to content

Commit 77fc0f7

Browse files
Update api spec (#136)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 659c696 commit 77fc0f7

File tree

4 files changed

+672
-418
lines changed

4 files changed

+672
-418
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/perimeterx/marshmallow v1.1.4 // indirect
2424
go4.org/intern v0.0.0-20211027215823-ae77deb06f29 // indirect
2525
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 // indirect
26-
golang.org/x/sys v0.20.0 // indirect
26+
golang.org/x/sys v0.21.0 // indirect
2727
gopkg.in/yaml.v2 v2.4.0 // indirect
2828
gopkg.in/yaml.v3 v3.0.1 // indirect
2929
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w
7575
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7676
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7777
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
78-
golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
79-
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
78+
golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws=
79+
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
8080
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
8181
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
8282
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=

spec.json

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14609,6 +14609,20 @@
1460914609
"rtc_total_freezes_duration_sec"
1461014610
]
1461114611
},
14612+
"ClosePath": {
14613+
"description": "The response from the `ClosePath` command.",
14614+
"type": "object",
14615+
"properties": {
14616+
"face_id": {
14617+
"description": "The UUID of the lone face of the resulting solid2D.",
14618+
"type": "string",
14619+
"format": "uuid"
14620+
}
14621+
},
14622+
"required": [
14623+
"face_id"
14624+
]
14625+
},
1461214626
"Cluster": {
1461314627
"description": "Cluster information.",
1461414628
"type": "object",
@@ -15364,6 +15378,25 @@
1536415378
"updated_at"
1536515379
]
1536615380
},
15381+
"CutType": {
15382+
"description": "What kind of cut to do",
15383+
"oneOf": [
15384+
{
15385+
"description": "Round off an edge.",
15386+
"type": "string",
15387+
"enum": [
15388+
"fillet"
15389+
]
15390+
},
15391+
{
15392+
"description": "Cut away an edge.",
15393+
"type": "string",
15394+
"enum": [
15395+
"chamfer"
15396+
]
15397+
}
15398+
]
15399+
},
1536715400
"DefaultCameraFocusOn": {
1536815401
"description": "The response from the `DefaultCameraFocusOn` command.",
1536915402
"type": "object"
@@ -15749,6 +15782,23 @@
1574915782
"entity_ids"
1575015783
]
1575115784
},
15785+
"EntityLinearPatternTransform": {
15786+
"description": "The response from the `EntityLinearPatternTransform` command.",
15787+
"type": "object",
15788+
"properties": {
15789+
"entity_ids": {
15790+
"description": "The UUIDs of the entities that were created.",
15791+
"type": "array",
15792+
"items": {
15793+
"type": "string",
15794+
"format": "uuid"
15795+
}
15796+
}
15797+
},
15798+
"required": [
15799+
"entity_ids"
15800+
]
15801+
},
1575215802
"EntityType": {
1575315803
"description": "The type of entity",
1575415804
"type": "string",
@@ -18241,6 +18291,43 @@
1824118291
"type": "number",
1824218292
"format": "double"
1824318293
},
18294+
"LinearTransform": {
18295+
"description": "Ways to transform each solid being replicated in a repeating pattern.",
18296+
"type": "object",
18297+
"properties": {
18298+
"replicate": {
18299+
"description": "Whether to replicate the original solid in this instance.",
18300+
"default": true,
18301+
"type": "boolean"
18302+
},
18303+
"scale": {
18304+
"description": "Scale the replica's size along each axis. Defaults to (1, 1, 1) (i.e. the same size as the original).",
18305+
"default": {
18306+
"x": 1.0,
18307+
"y": 1.0,
18308+
"z": 1.0
18309+
},
18310+
"allOf": [
18311+
{
18312+
"$ref": "#/components/schemas/Point3d"
18313+
}
18314+
]
18315+
},
18316+
"translate": {
18317+
"description": "Translate the replica this far along each dimension. Defaults to zero vector (i.e. same position as the original).",
18318+
"default": {
18319+
"x": 0.0,
18320+
"y": 0.0,
18321+
"z": 0.0
18322+
},
18323+
"allOf": [
18324+
{
18325+
"$ref": "#/components/schemas/Point3d"
18326+
}
18327+
]
18328+
}
18329+
}
18330+
},
1824418331
"Mass": {
1824518332
"description": "The mass response.",
1824618333
"type": "object",
@@ -18761,6 +18848,45 @@
1876118848
"type"
1876218849
]
1876318850
},
18851+
{
18852+
"description": "Command for revolving a solid 2d.",
18853+
"type": "object",
18854+
"properties": {
18855+
"face_ids": {
18856+
"description": "Which faces to remove, leaving only the shell.",
18857+
"type": "array",
18858+
"items": {
18859+
"type": "string",
18860+
"format": "uuid"
18861+
}
18862+
},
18863+
"object_id": {
18864+
"description": "Which Solid3D is being shelled.",
18865+
"type": "string",
18866+
"format": "uuid"
18867+
},
18868+
"shell_thickness": {
18869+
"description": "How thick the shell should be. Smaller values mean a thinner shell.",
18870+
"allOf": [
18871+
{
18872+
"$ref": "#/components/schemas/LengthUnit"
18873+
}
18874+
]
18875+
},
18876+
"type": {
18877+
"type": "string",
18878+
"enum": [
18879+
"solid3d_shell_face"
18880+
]
18881+
}
18882+
},
18883+
"required": [
18884+
"face_ids",
18885+
"object_id",
18886+
"shell_thickness",
18887+
"type"
18888+
]
18889+
},
1876418890
{
1876518891
"description": "Command for revolving a solid 2d about a brep edge",
1876618892
"type": "object",
@@ -19248,6 +19374,35 @@
1924819374
"type"
1924919375
]
1925019376
},
19377+
{
19378+
"description": "Create a linear pattern using this entity.",
19379+
"type": "object",
19380+
"properties": {
19381+
"entity_id": {
19382+
"description": "ID of the entity being copied.",
19383+
"type": "string",
19384+
"format": "uuid"
19385+
},
19386+
"transform": {
19387+
"description": "How to transform each repeated solid. The total number of repetitions equals the size of this list.",
19388+
"type": "array",
19389+
"items": {
19390+
"$ref": "#/components/schemas/LinearTransform"
19391+
}
19392+
},
19393+
"type": {
19394+
"type": "string",
19395+
"enum": [
19396+
"entity_linear_pattern_transform"
19397+
]
19398+
}
19399+
},
19400+
"required": [
19401+
"entity_id",
19402+
"transform",
19403+
"type"
19404+
]
19405+
},
1925119406
{
1925219407
"description": "Create a linear pattern using this entity.",
1925319408
"type": "object",
@@ -20036,6 +20191,15 @@
2003620191
"description": "Fillets the given edge with the specified radius.",
2003720192
"type": "object",
2003820193
"properties": {
20194+
"cut_type": {
20195+
"description": "How to apply the cut.",
20196+
"default": "fillet",
20197+
"allOf": [
20198+
{
20199+
"$ref": "#/components/schemas/CutType"
20200+
}
20201+
]
20202+
},
2003920203
"edge_id": {
2004020204
"description": "Which edge you want to fillet.",
2004120205
"type": "string",
@@ -21711,6 +21875,25 @@
2171121875
"type"
2171221876
]
2171321877
},
21878+
{
21879+
"description": "The response to the 'ClosePath' endpoint",
21880+
"type": "object",
21881+
"properties": {
21882+
"data": {
21883+
"$ref": "#/components/schemas/ClosePath"
21884+
},
21885+
"type": {
21886+
"type": "string",
21887+
"enum": [
21888+
"close_path"
21889+
]
21890+
}
21891+
},
21892+
"required": [
21893+
"data",
21894+
"type"
21895+
]
21896+
},
2171421897
{
2171521898
"description": "The response to the 'CameraDragMove' endpoint",
2171621899
"type": "object",
@@ -22433,6 +22616,25 @@
2243322616
"type"
2243422617
]
2243522618
},
22619+
{
22620+
"description": "The response to the 'EntityLinearPatternTransform' endpoint",
22621+
"type": "object",
22622+
"properties": {
22623+
"data": {
22624+
"$ref": "#/components/schemas/EntityLinearPatternTransform"
22625+
},
22626+
"type": {
22627+
"type": "string",
22628+
"enum": [
22629+
"entity_linear_pattern_transform"
22630+
]
22631+
}
22632+
},
22633+
"required": [
22634+
"data",
22635+
"type"
22636+
]
22637+
},
2243622638
{
2243722639
"description": "The response to the 'EntityLinearPattern' endpoint",
2243822640
"type": "object",

0 commit comments

Comments
 (0)