diff --git a/VERSION.txt b/VERSION.txt index a5b763f..cef10e9 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -v0.2.26 +v0.2.27 diff --git a/go.mod b/go.mod index 1bd7fc9..656ef8e 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/perimeterx/marshmallow v1.1.4 // indirect go4.org/intern v0.0.0-20211027215823-ae77deb06f29 // indirect go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 // indirect - golang.org/x/sys v0.11.0 // indirect + golang.org/x/sys v0.12.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 5cc5bbe..5c7497d 100644 --- a/go.sum +++ b/go.sum @@ -75,8 +75,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/lib_test.go b/lib_test.go index 72eec48..65d77d9 100644 --- a/lib_test.go +++ b/lib_test.go @@ -73,9 +73,15 @@ func TestFileConversion(t *testing.T) { t.Fatalf("the file conversion completed at time is zero") } - if len(fc.Output.Inner) == 0 { + if len(fc.Outputs) == 0 { t.Fatalf("the file conversion output is empty") } + + for _, output := range fc.Outputs { + if len(output.Inner) == 0 { + t.Fatalf("the file conversion output body is empty") + } + } } func TestAsyncOperationStatus(t *testing.T) { diff --git a/spec.json b/spec.json index a907038..6db68cb 100644 --- a/spec.json +++ b/spec.json @@ -848,14 +848,6 @@ ], "description": "The unique identifier of the API call.\n\nThis is the same as the API call ID." }, - "output": { - "deprecated": true, - "description": "The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead.", - "format": "byte", - "nullable": true, - "title": "String", - "type": "string" - }, "output_format": { "allOf": [ { @@ -6128,14 +6120,6 @@ ], "description": "The unique identifier of the API call.\n\nThis is the same as the API call ID." }, - "output": { - "deprecated": true, - "description": "The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead.", - "format": "byte", - "nullable": true, - "title": "String", - "type": "string" - }, "output_format": { "allOf": [ { @@ -9187,6 +9171,31 @@ "window" ], "type": "object" + }, + { + "description": "Remove scene objects.", + "properties": { + "object_ids": { + "description": "Objects to remove.", + "items": { + "format": "uuid", + "type": "string" + }, + "type": "array", + "uniqueItems": true + }, + "type": { + "enum": [ + "remove_scene_objects" + ], + "type": "string" + } + }, + "required": [ + "object_ids", + "type" + ], + "type": "object" } ] }, diff --git a/types.go b/types.go index 8641c25..7607c7a 100755 --- a/types.go +++ b/types.go @@ -345,10 +345,6 @@ type AsyncAPICallOutputCompletedAt struct { // // This is the same as the API call ID. ID UUID `json:"id" yaml:"id" schema:"id,required"` - // Output: The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead. - // - // Deprecated: Output is deprecated. - Output Base64 `json:"output" yaml:"output" schema:"output"` // OutputFormat: The output format of the file conversion. OutputFormat FileExportFormat `json:"output_format" yaml:"output_format" schema:"output_format,required"` // OutputFormatOptions: The output format options of the file conversion. @@ -465,8 +461,8 @@ type AsyncAPICallOutputID struct { Volume float64 `json:"volume" yaml:"volume" schema:"volume"` } -// AsyncAPICallOutputOutput: A file density. -type AsyncAPICallOutputOutput struct { +// AsyncAPICallOutputOutputFormat: A file density. +type AsyncAPICallOutputOutputFormat struct { // CompletedAt: The time and date the API call was completed. CompletedAt Time `json:"completed_at" yaml:"completed_at" schema:"completed_at"` // CreatedAt: The time and date the API call was created. @@ -499,8 +495,8 @@ type AsyncAPICallOutputOutput struct { UserID string `json:"user_id" yaml:"user_id" schema:"user_id"` } -// AsyncAPICallOutputOutputFormat: A file surface area. -type AsyncAPICallOutputOutputFormat struct { +// AsyncAPICallOutputOutputFormatOptions: A file surface area. +type AsyncAPICallOutputOutputFormatOptions struct { // CompletedAt: The time and date the API call was completed. CompletedAt Time `json:"completed_at" yaml:"completed_at" schema:"completed_at"` // CreatedAt: The time and date the API call was created. @@ -2102,10 +2098,6 @@ type FileConversion struct { // // This is the same as the API call ID. ID UUID `json:"id" yaml:"id" schema:"id,required"` - // Output: The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead. - // - // Deprecated: Output is deprecated. - Output Base64 `json:"output" yaml:"output" schema:"output"` // OutputFormat: The output format of the file conversion. OutputFormat FileExportFormat `json:"output_format" yaml:"output_format" schema:"output_format,required"` // OutputFormatOptions: The output format options of the file conversion. @@ -3097,6 +3089,14 @@ type ModelingCmdSegment struct { Window Point2D `json:"window" yaml:"window" schema:"window,required"` } +// ModelingCmdSelectWithPoint: Remove scene objects. +type ModelingCmdSelectWithPoint struct { + // ObjectIds: Objects to remove. + ObjectIds []UUID `json:"object_ids" yaml:"object_ids" schema:"object_ids,required"` + // Type: + Type string `json:"type" yaml:"type" schema:"type,required"` +} + // ModelingCmdSelectedAtWindow: Continue dragging mouse. type ModelingCmdSelectedAtWindow struct { // Sequence: Logical timestamp. The client should increment this with every event in the current mouse drag. That way, if the events are being sent over an unordered channel, the API can ignore the older events.