diff --git a/src/resources/kv/namespaces/values.ts b/src/resources/kv/namespaces/values.ts index 49566f425a..a8de1f25b5 100644 --- a/src/resources/kv/namespaces/values.ts +++ b/src/resources/kv/namespaces/values.ts @@ -37,8 +37,12 @@ export class Values extends APIResource { return ( this._client.put( `/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/values/${keyName}`, - Core.multipartFormRequestOptions({ query: { expiration, expiration_ttl }, body, - __multipartSyntax: 'json', ...options }), + Core.multipartFormRequestOptions({ + query: { expiration, expiration_ttl }, + body, + __multipartSyntax: 'json', + ...options, + }), ) as Core.APIPromise<{ result: ValueUpdateResponse | null }> )._thenUnwrap((obj) => obj.result); } diff --git a/src/resources/organizations/organization-profile.ts b/src/resources/organizations/organization-profile.ts index c1f64836a5..30e8d3acd1 100644 --- a/src/resources/organizations/organization-profile.ts +++ b/src/resources/organizations/organization-profile.ts @@ -24,10 +24,10 @@ export class OrganizationProfileResource extends APIResource { * Get an organizations profile if it exists. (Currently in Closed Beta - see * https://developers.cloudflare.com/fundamentals/organizations/) */ - get(organizationId: string, options?: Core.RequestOptions): Core.APIPromise { + get(organizationId: string, options?: Core.RequestOptions): Core.APIPromise { return ( this._client.get(`/organizations/${organizationId}/profile`, options) as Core.APIPromise<{ - result: unnamed_schema_0.Result; + result: OrganizationProfile; }> )._thenUnwrap((obj) => obj.result); } diff --git a/tests/api-resources/workers/beta/workers/workers.test.ts b/tests/api-resources/workers/beta/workers/workers.test.ts index 955783b9ec..f5673de726 100644 --- a/tests/api-resources/workers/beta/workers/workers.test.ts +++ b/tests/api-resources/workers/beta/workers/workers.test.ts @@ -14,6 +14,11 @@ describe('resource workers', () => { const responsePromise = client.workers.beta.workers.create({ account_id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'my-worker', + logpush: false, + observability: {}, + subdomain: {}, + tags: [], + tail_consumers: [], }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -44,6 +49,11 @@ describe('resource workers', () => { const responsePromise = client.workers.beta.workers.update('worker_id', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'my-worker', + logpush: false, + observability: {}, + subdomain: {}, + tags: [], + tail_consumers: [], }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response);