Skip to content

Commit ba78b58

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#1142)
1 parent 57b19a2 commit ba78b58

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1256
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dc191ddbe3d3013cd1f90d1747ebd7022d0f938d1e547eb284ae675d34c87e78.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2a553d49ea7dea09efa86fd5af7cdaba8c2a757071c4114a4d8de234cbcdc740.yml

src/resources/d1/database.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ export interface DatabaseCreateParams {
209209
* Body param:
210210
*/
211211
name: string;
212+
213+
/**
214+
* Body param: Specify the region to create the D1 primary, if available. If this
215+
* option is omitted, the D1 will be created as close as possible to the current
216+
* user.
217+
*/
218+
primary_location_hint?: 'wnam' | 'enam' | 'weur' | 'eeur' | 'apac' | 'oc';
212219
}
213220

214221
export interface DatabaseListParams extends V4PagePaginationArrayParams {
@@ -244,7 +251,8 @@ export interface DatabaseQueryParams {
244251
account_id: string;
245252

246253
/**
247-
* Body param:
254+
* Body param: Your SQL query. Supports multiple statements, joined by semicolons,
255+
* which will be executed as a batch.
248256
*/
249257
sql: string;
250258

@@ -261,7 +269,8 @@ export interface DatabaseRawParams {
261269
account_id: string;
262270

263271
/**
264-
* Body param:
272+
* Body param: Your SQL query. Supports multiple statements, joined by semicolons,
273+
* which will be executed as a batch.
265274
*/
266275
sql: string;
267276

tests/api-resources/d1/database.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('resource database', () => {
2828
const response = await cloudflare.d1.database.create({
2929
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
3030
name: 'my-database',
31+
primary_location_hint: 'wnam',
3132
});
3233
});
3334

0 commit comments

Comments
 (0)