Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 22, 2024
1 parent 8d98f3f commit d4a0b85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions src/resources/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export interface CommandExecParams {
*/
language: 'PYTHON' | 'JAVASCRIPT' | 'TYPESCRIPT' | 'RUBY' | 'PHP';

/**
* List of allowed hosts for HTTP requests
*/
allow_http_hosts?: Array<string>;

/**
* List of command line arguments to pass to the script.
*/
Expand All @@ -54,11 +59,6 @@ export interface CommandExecParams {
*/
env?: Record<string, string>;

/**
* List of allowed hosts for HTTP requests
*/
net?: Array<string>;

/**
* Input to pass to the script via `stdin`.
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
});
Expand Down

0 comments on commit d4a0b85

Please sign in to comment.