diff --git a/.stats.yml b/.stats.yml index c054185..cbc2895 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/riza%2Friza-api-b8d351f2a44220b8f07b16d3dce1ca3bd14df4ade1a83fa0b40ff9047dbc2934.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/riza%2Friza-api-7e044297a8d3c5c64964532d19e0667b059ef5a121cf3c1e64b806eec55e0767.yml diff --git a/src/resources/command.ts b/src/resources/command.ts index 2c44bfb..56e9a91 100644 --- a/src/resources/command.ts +++ b/src/resources/command.ts @@ -44,6 +44,11 @@ export interface CommandExecParams { */ language: 'PYTHON' | 'JAVASCRIPT' | 'TYPESCRIPT' | 'RUBY' | 'PHP'; + /** + * List of allowed hosts for HTTP requests + */ + allow_http_hosts?: Array; + /** * List of command line arguments to pass to the script. */ @@ -54,11 +59,6 @@ export interface CommandExecParams { */ env?: Record; - /** - * List of allowed hosts for HTTP requests - */ - net?: Array; - /** * Input to pass to the script via `stdin`. */ diff --git a/tests/api-resources/command.test.ts b/tests/api-resources/command.test.ts index 713f1f6..43d0e0a 100644 --- a/tests/api-resources/command.test.ts +++ b/tests/api-resources/command.test.ts @@ -24,9 +24,9 @@ describe('resource command', () => { const response = await riza.command.exec({ code: 'print("Hello world!")', language: 'PYTHON', + allow_http_hosts: ['string', 'string', 'string'], args: ['string', 'string', 'string'], env: { foo: 'string' }, - net: ['string', 'string', 'string'], stdin: 'string', }); });