Skip to content

Commit 276775a

Browse files
Generate spec version 1.8.1
1 parent f5e991f commit 276775a

File tree

6 files changed

+37
-30
lines changed

6 files changed

+37
-30
lines changed

oas_spec.yaml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ info:
77
* host Grasshopper models in a secure, reliable, scalable, and performant way,
88
* run computations of Grasshopper models,
99
* and cache and output the results of computations and exports.
10-
version: 1.7.0
10+
version: 1.8.1
1111

1212
externalDocs:
1313
description: ShapeDiver Help Center
@@ -949,8 +949,6 @@ components:
949949
deny_scripts:
950950
description: Allows to control whether the model's Grasshopper file can contain scripts.
951951
type: boolean
952-
required:
953-
- pub
954952
ReqParameterDefinitions:
955953
description: >-
956954
Definition of model parameters. A directory of parameter-IDs and parameter-definitions.
@@ -2774,20 +2772,6 @@ components:
27742772
backlinkurl:
27752773
description: Link to view the model on the ShapeDiver Platform.
27762774
type: string
2777-
blockingReasons:
2778-
title: ResModelBlockingReasons
2779-
allOf:
2780-
- $ref: "#/components/schemas/CommonsModelBlockingReasons"
2781-
- type: object
2782-
properties:
2783-
pluginPermission:
2784-
description: >-
2785-
The model uses a Grasshopper plugin that is not allowed for the owner.
2786-
type: boolean
2787-
required:
2788-
- creditLimit
2789-
- owner
2790-
- pluginPermission
27912775
checkurl:
27922776
description: >-
27932777
Link to continue the checking process of the model on the ShapeDiver Platform.
@@ -3319,6 +3303,9 @@ components:
33193303
description: Model's limits at the time of the computation process.
33203304
allOf:
33213305
- $ref: "#/components/schemas/ResComputationLimits"
3306+
credits:
3307+
description: The number of credits that are charged for this computation.
3308+
type: number
33223309
required:
33233310
- id
33243311
- timestamp
@@ -4089,6 +4076,20 @@ components:
40894076
cdn_supported:
40904077
description: Indicates if the model supports CDN-based asset URLs.
40914078
type: boolean
4079+
blockingReasons:
4080+
title: ResModelBlockingReasons
4081+
allOf:
4082+
- $ref: "#/components/schemas/CommonsModelBlockingReasons"
4083+
- type: object
4084+
properties:
4085+
pluginPermission:
4086+
description: >-
4087+
The model uses a Grasshopper plugin that is not allowed for the owner.
4088+
type: boolean
4089+
required:
4090+
- creditLimit
4091+
- owner
4092+
- pluginPermission
40924093
ResSystem:
40934094
description: ShapeDiver API response of system-request.
40944095
type: object

packages/sdk.geometry-api-sdk-v2/src/client/api.ts

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Geometry Backend API v2
55
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
66
*
7-
* The version of the OpenAPI document: 1.7.0
7+
* The version of the OpenAPI document: 1.8.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,7 +21,7 @@ import globalAxios from 'axios';
2121
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
2222
import type { RequestArgs } from './base';
2323
// @ts-ignore
24-
import { BASE_PATH, COLLECTION_FORMATS, RequiredError, operationServerMap } from './base';
24+
import { BASE_PATH, COLLECTION_FORMATS, RequiredError, operationServerMap } from './base';
2525
import { BaseAPI } from '../base';
2626

2727
/**
@@ -793,7 +793,7 @@ export interface ReqModel {
793793
* @type {boolean}
794794
* @memberof ReqModel
795795
*/
796-
'pub': boolean;
796+
'pub'?: boolean;
797797
/**
798798
* Enforces iframe embedding instead of direct embedding.
799799
* @type {boolean}
@@ -4429,12 +4429,6 @@ export interface ResModel {
44294429
* @memberof ResModel
44304430
*/
44314431
'backlinkurl'?: string;
4432-
/**
4433-
*
4434-
* @type {ResModelBlockingReasons}
4435-
* @memberof ResModel
4436-
*/
4437-
'blockingReasons'?: ResModelBlockingReasons;
44384432
/**
44394433
* Link to continue the checking process of the model on the ShapeDiver Platform.
44404434
* @type {string}
@@ -4686,6 +4680,12 @@ export interface ResModelComputation {
46864680
* @memberof ResModelComputation
46874681
*/
46884682
'limit'?: ResComputationLimits;
4683+
/**
4684+
* The number of credits that are charged for this computation.
4685+
* @type {number}
4686+
* @memberof ResModelComputation
4687+
*/
4688+
'credits'?: number;
46894689
}
46904690

46914691

@@ -5037,6 +5037,12 @@ export interface ResModelSettings {
50375037
* @memberof ResModelSettings
50385038
*/
50395039
'cdn_supported'?: boolean;
5040+
/**
5041+
*
5042+
* @type {ResModelBlockingReasons}
5043+
* @memberof ResModelSettings
5044+
*/
5045+
'blockingReasons'?: ResModelBlockingReasons;
50405046
}
50415047
/**
50425048
* Definition of a Model-State.

packages/sdk.geometry-api-sdk-v2/src/client/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Geometry Backend API v2
55
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
66
*
7-
* The version of the OpenAPI document: 1.7.0
7+
* The version of the OpenAPI document: 1.8.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

packages/sdk.geometry-api-sdk-v2/src/client/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Geometry Backend API v2
55
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
66
*
7-
* The version of the OpenAPI document: 1.7.0
7+
* The version of the OpenAPI document: 1.8.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

packages/sdk.geometry-api-sdk-v2/src/client/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Geometry Backend API v2
55
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
66
*
7-
* The version of the OpenAPI document: 1.7.0
7+
* The version of the OpenAPI document: 1.8.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

packages/sdk.geometry-api-sdk-v2/src/client/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Geometry Backend API v2
55
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
66
*
7-
* The version of the OpenAPI document: 1.7.0
7+
* The version of the OpenAPI document: 1.8.1
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)