Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#9)
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 917efc4 commit 3f05b53
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 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: 38
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/plastic-labs%2Fhoncho-a370506bdacaf58567fea52cb6312d99b0e211dd67c8d1ffb896fcf6abfee16b.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/plastic-labs%2Fhoncho-9c3f3823cc0decee65ba1dd592f62942ba230629e291b01f5b6e8b6088dd87c1.yml
4 changes: 2 additions & 2 deletions src/resources/apps/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ export interface App {

created_at: string;

metadata: unknown;
metadata: Record<string, unknown>;

name: string;
}

export interface AppCreateParams {
name: string;

metadata?: unknown | null;
metadata?: Record<string, unknown> | null;
}

export interface AppUpdateParams {
Expand Down
6 changes: 3 additions & 3 deletions src/resources/apps/users/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,19 @@ export interface User {

created_at: string;

metadata: unknown;
metadata: Record<string, unknown>;

name: string;
}

export interface UserCreateParams {
name: string;

metadata?: unknown | null;
metadata?: Record<string, unknown> | null;
}

export interface UserUpdateParams {
metadata?: unknown | null;
metadata?: Record<string, unknown> | null;

name?: string | null;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/apps/apps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('resource apps', () => {
});

test('create: required and optional params', async () => {
const response = await honcho.apps.create({ name: 'string', metadata: {} });
const response = await honcho.apps.create({ name: 'string', metadata: { foo: 'bar' } });
});

test('update', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/apps/users/users.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('resource users', () => {
test('create: required and optional params', async () => {
const response = await honcho.apps.users.create('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
name: 'string',
metadata: {},
metadata: { foo: 'bar' },
});
});

Expand Down

0 comments on commit 3f05b53

Please sign in to comment.