Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 31, 2024
1 parent 49be1e6 commit 1fd5e47
Show file tree
Hide file tree
Showing 91 changed files with 2,819 additions and 4,878 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1297
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5cc7607a4825bf9606463ee28fc976b8498b237c981bcb896211b60b6fe5c146.yml
configured_endpoints: 1274
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-14c9c9adbd65eee546c4f54d95b7627f10b02185348e334a68cbebbe3442733e.yml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cloudflare Typescript API Library

[![NPM version](https://img.shields.io/npm/v/cloudflare.svg)](https://npmjs.org/package/cloudflare)
[![NPM version](https://img.shields.io/npm/v/cloudflare.svg)](https://npmjs.org/package/cloudflare) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/cloudflare)

This library provides convenient access to the Cloudflare REST API from server-side TypeScript or JavaScript.

Expand Down
248 changes: 134 additions & 114 deletions api.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export class Cloudflare extends Core.APIClient {
kv: API.KV = new API.KV(this);
durableObjects: API.DurableObjects = new API.DurableObjects(this);
queues: API.Queues = new API.Queues(this);
apiGateway: API.APIGateway = new API.APIGateway(this);
managedHeaders: API.ManagedHeaders = new API.ManagedHeaders(this);
pageShield: API.PageShield = new API.PageShield(this);
rulesets: API.Rulesets = new API.Rulesets(this);
Expand Down Expand Up @@ -466,6 +467,8 @@ export namespace Cloudflare {

export import Queues = API.Queues;

export import APIGateway = API.APIGateway;

export import ManagedHeaders = API.ManagedHeaders;

export import PageShield = API.PageShield;
Expand Down
56 changes: 28 additions & 28 deletions src/resources/ai-gateway/ai-gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,19 @@ export namespace AIGatewayCreateResponse {

cache_invalidate_on_update: boolean;

cache_ttl: number;
cache_ttl: number | null;

collect_logs: boolean;

created_at: string;

modified_at: string;

rate_limiting_interval?: number;
rate_limiting_interval: number | null;

rate_limiting_limit?: number;
rate_limiting_limit: number | null;

rate_limiting_technique?: string;
rate_limiting_technique: 'fixed' | 'sliding';
}
}

Expand All @@ -128,19 +128,19 @@ export interface AIGatewayUpdateResponse {

cache_invalidate_on_update: boolean;

cache_ttl: number;
cache_ttl: number | null;

collect_logs: boolean;

created_at: string;

modified_at: string;

rate_limiting_interval?: number;
rate_limiting_interval: number | null;

rate_limiting_limit?: number;
rate_limiting_limit: number | null;

rate_limiting_technique?: string;
rate_limiting_technique: 'fixed' | 'sliding';
}

export interface AIGatewayListResponse {
Expand All @@ -151,19 +151,19 @@ export interface AIGatewayListResponse {

cache_invalidate_on_update: boolean;

cache_ttl: number;
cache_ttl: number | null;

collect_logs: boolean;

created_at: string;

modified_at: string;

rate_limiting_interval?: number;
rate_limiting_interval: number | null;

rate_limiting_limit?: number;
rate_limiting_limit: number | null;

rate_limiting_technique?: string;
rate_limiting_technique: 'fixed' | 'sliding';
}

export interface AIGatewayDeleteResponse {
Expand All @@ -174,19 +174,19 @@ export interface AIGatewayDeleteResponse {

cache_invalidate_on_update: boolean;

cache_ttl: number;
cache_ttl: number | null;

collect_logs: boolean;

created_at: string;

modified_at: string;

rate_limiting_interval?: number;
rate_limiting_interval: number | null;

rate_limiting_limit?: number;
rate_limiting_limit: number | null;

rate_limiting_technique?: string;
rate_limiting_technique: 'fixed' | 'sliding';
}

export interface AIGatewayGetResponse {
Expand All @@ -197,19 +197,19 @@ export interface AIGatewayGetResponse {

cache_invalidate_on_update: boolean;

cache_ttl: number;
cache_ttl: number | null;

collect_logs: boolean;

created_at: string;

modified_at: string;

rate_limiting_interval?: number;
rate_limiting_interval: number | null;

rate_limiting_limit?: number;
rate_limiting_limit: number | null;

rate_limiting_technique?: string;
rate_limiting_technique: 'fixed' | 'sliding';
}

export interface AIGatewayCreateParams {
Expand All @@ -231,7 +231,7 @@ export interface AIGatewayCreateParams {
/**
* Body param:
*/
cache_ttl: number;
cache_ttl: number | null;

/**
* Body param:
Expand All @@ -241,17 +241,17 @@ export interface AIGatewayCreateParams {
/**
* Body param:
*/
rate_limiting_interval?: number;
rate_limiting_interval: number | null;

/**
* Body param:
*/
rate_limiting_limit?: number;
rate_limiting_limit: number | null;

/**
* Body param:
*/
rate_limiting_technique?: string;
rate_limiting_technique: 'fixed' | 'sliding';
}

export interface AIGatewayUpdateParams {
Expand All @@ -268,7 +268,7 @@ export interface AIGatewayUpdateParams {
/**
* Body param:
*/
cache_ttl: number;
cache_ttl: number | null;

/**
* Body param:
Expand All @@ -278,17 +278,17 @@ export interface AIGatewayUpdateParams {
/**
* Body param:
*/
rate_limiting_interval?: number;
rate_limiting_interval: number | null;

/**
* Body param:
*/
rate_limiting_limit?: number;
rate_limiting_limit: number | null;

/**
* Body param:
*/
rate_limiting_technique?: string;
rate_limiting_technique: 'fixed' | 'sliding';
}

export interface AIGatewayListParams extends V4PagePaginationArrayParams {
Expand Down
60 changes: 60 additions & 0 deletions src/resources/api-gateway/api-gateway.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '../../resource';
import * as ConfigurationsAPI from './configurations';
import * as SchemaValidationAPI from './schema-validation';
import * as SchemasAPI from './schemas';
import * as DiscoveryAPI from './discovery/discovery';
import * as OperationsAPI from './operations/operations';
import * as SettingsAPI from './settings/settings';
import * as UserSchemasAPI from './user-schemas/user-schemas';

export class APIGateway extends APIResource {
configurations: ConfigurationsAPI.Configurations = new ConfigurationsAPI.Configurations(this._client);
discovery: DiscoveryAPI.Discovery = new DiscoveryAPI.Discovery(this._client);
operations: OperationsAPI.Operations = new OperationsAPI.Operations(this._client);
schemas: SchemasAPI.Schemas = new SchemasAPI.Schemas(this._client);
settings: SettingsAPI.Settings = new SettingsAPI.Settings(this._client);
userSchemas: UserSchemasAPI.UserSchemas = new UserSchemasAPI.UserSchemas(this._client);
schemaValidation: SchemaValidationAPI.SchemaValidation = new SchemaValidationAPI.SchemaValidation(
this._client,
);
}

export namespace APIGateway {
export import Configurations = ConfigurationsAPI.Configurations;
export import Configuration = ConfigurationsAPI.Configuration;
export import ConfigurationUpdateResponse = ConfigurationsAPI.ConfigurationUpdateResponse;
export import ConfigurationUpdateParams = ConfigurationsAPI.ConfigurationUpdateParams;
export import ConfigurationGetParams = ConfigurationsAPI.ConfigurationGetParams;
export import Discovery = DiscoveryAPI.Discovery;
export import DiscoveryOperation = DiscoveryAPI.DiscoveryOperation;
export import DiscoveryGetResponse = DiscoveryAPI.DiscoveryGetResponse;
export import DiscoveryGetParams = DiscoveryAPI.DiscoveryGetParams;
export import Operations = OperationsAPI.Operations;
export import APIShield = OperationsAPI.APIShield;
export import OperationCreateResponse = OperationsAPI.OperationCreateResponse;
export import OperationDeleteResponse = OperationsAPI.OperationDeleteResponse;
export import APIShieldsSinglePage = OperationsAPI.APIShieldsSinglePage;
export import OperationCreateParams = OperationsAPI.OperationCreateParams;
export import OperationListParams = OperationsAPI.OperationListParams;
export import OperationDeleteParams = OperationsAPI.OperationDeleteParams;
export import OperationGetParams = OperationsAPI.OperationGetParams;
export import Schemas = SchemasAPI.Schemas;
export import SchemaListResponse = SchemasAPI.SchemaListResponse;
export import SchemaListParams = SchemasAPI.SchemaListParams;
export import Settings = SettingsAPI.Settings;
export import UserSchemas = UserSchemasAPI.UserSchemas;
export import Message = UserSchemasAPI.Message;
export import PublicSchema = UserSchemasAPI.PublicSchema;
export import SchemaUpload = UserSchemasAPI.SchemaUpload;
export import UserSchemaDeleteResponse = UserSchemasAPI.UserSchemaDeleteResponse;
export import PublicSchemasSinglePage = UserSchemasAPI.PublicSchemasSinglePage;
export import UserSchemaCreateParams = UserSchemasAPI.UserSchemaCreateParams;
export import UserSchemaListParams = UserSchemasAPI.UserSchemaListParams;
export import UserSchemaDeleteParams = UserSchemasAPI.UserSchemaDeleteParams;
export import UserSchemaEditParams = UserSchemasAPI.UserSchemaEditParams;
export import UserSchemaGetParams = UserSchemasAPI.UserSchemaGetParams;
export import SchemaValidation = SchemaValidationAPI.SchemaValidation;
export import SchemaValidationEditParams = SchemaValidationAPI.SchemaValidationEditParams;
}
Loading

0 comments on commit 1fd5e47

Please sign in to comment.