Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1354
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b8ded2b2b8571f738a5a52e679b0bcec2c8d692c053e2e3b1cae8a0b11959f32.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c5af7f86adda77a0ee6eccf57c9e887a8adda37aee04a68b81fb6e1c93a00843.yml
42 changes: 36 additions & 6 deletions src/resources/pages/projects/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export namespace Project {
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Record<string, unknown> | null;
browsers?: Record<string, Preview.Browsers | null> | null;

/**
* Compatibility date used for Pages Functions.
Expand Down Expand Up @@ -514,6 +514,11 @@ export namespace Project {
dataset?: string;
}

/**
* Browser binding.
*/
export interface Browsers {}

/**
* D1 binding.
*/
Expand Down Expand Up @@ -653,7 +658,7 @@ export namespace Project {
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Record<string, unknown> | null;
browsers?: Record<string, Production.Browsers | null> | null;

/**
* Compatibility date used for Pages Functions.
Expand Down Expand Up @@ -739,6 +744,11 @@ export namespace Project {
dataset?: string;
}

/**
* Browser binding.
*/
export interface Browsers {}

/**
* D1 binding.
*/
Expand Down Expand Up @@ -1021,7 +1031,7 @@ export namespace ProjectCreateParams {
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Record<string, unknown> | null;
browsers?: Record<string, Preview.Browsers | null> | null;

/**
* Compatibility date used for Pages Functions.
Expand Down Expand Up @@ -1107,6 +1117,11 @@ export namespace ProjectCreateParams {
dataset?: string;
}

/**
* Browser binding.
*/
export interface Browsers {}

/**
* D1 binding.
*/
Expand Down Expand Up @@ -1246,7 +1261,7 @@ export namespace ProjectCreateParams {
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Record<string, unknown> | null;
browsers?: Record<string, Production.Browsers | null> | null;

/**
* Compatibility date used for Pages Functions.
Expand Down Expand Up @@ -1332,6 +1347,11 @@ export namespace ProjectCreateParams {
dataset?: string;
}

/**
* Browser binding.
*/
export interface Browsers {}

/**
* D1 binding.
*/
Expand Down Expand Up @@ -1567,7 +1587,7 @@ export namespace ProjectEditParams {
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Record<string, unknown> | null;
browsers?: Record<string, Preview.Browsers | null> | null;

/**
* Compatibility date used for Pages Functions.
Expand Down Expand Up @@ -1653,6 +1673,11 @@ export namespace ProjectEditParams {
dataset?: string;
}

/**
* Browser binding.
*/
export interface Browsers {}

/**
* D1 binding.
*/
Expand Down Expand Up @@ -1792,7 +1817,7 @@ export namespace ProjectEditParams {
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Record<string, unknown> | null;
browsers?: Record<string, Production.Browsers | null> | null;

/**
* Compatibility date used for Pages Functions.
Expand Down Expand Up @@ -1878,6 +1903,11 @@ export namespace ProjectEditParams {
dataset?: string;
}

/**
* Browser binding.
*/
export interface Browsers {}

/**
* D1 binding.
*/
Expand Down
22 changes: 22 additions & 0 deletions src/resources/zero-trust/dlp/profiles/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ export interface CustomProfile {
*/
updated_at: string;

confidence_threshold?: 'low' | 'medium' | 'high' | 'very_high';

/**
* The description of the profile
*/
Expand Down Expand Up @@ -141,6 +143,8 @@ export namespace CustomProfile {
export interface Predefined {
id: string;

confidence: Predefined.Confidence;

enabled: boolean;

name: string;
Expand All @@ -150,6 +154,17 @@ export namespace CustomProfile {
profile_id?: string | null;
}

export namespace Predefined {
export interface Confidence {
/**
* Indicates whether this entry can be made more or less sensitive by setting a
* confidence threshold. Profiles that use an entry with `available` set to true
* can use confidence thresholds
*/
available: boolean;
}
}

export interface Integration {
id: string;

Expand Down Expand Up @@ -240,6 +255,8 @@ export namespace CustomCreateParams {
*/
allowed_match_count?: number;

confidence_threshold?: string | null;

/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
Expand Down Expand Up @@ -332,6 +349,11 @@ export interface CustomUpdateParams {
*/
allowed_match_count?: number | null;

/**
* Body param:
*/
confidence_threshold?: string | null;

/**
* Body param: Scan the context of predefined entries to only return matches
* surrounded by keywords.
Expand Down
20 changes: 20 additions & 0 deletions src/resources/zero-trust/dlp/profiles/predefined.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export interface PredefinedProfile {
*/
name: string;

confidence_threshold?: 'low' | 'medium' | 'high' | 'very_high';

/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
Expand Down Expand Up @@ -99,6 +101,8 @@ export namespace PredefinedProfile {
export interface Predefined {
id: string;

confidence: Predefined.Confidence;

enabled: boolean;

name: string;
Expand All @@ -108,6 +112,17 @@ export namespace PredefinedProfile {
profile_id?: string | null;
}

export namespace Predefined {
export interface Confidence {
/**
* Indicates whether this entry can be made more or less sensitive by setting a
* confidence threshold. Profiles that use an entry with `available` set to true
* can use confidence thresholds
*/
available: boolean;
}
}

export interface Integration {
id: string;

Expand Down Expand Up @@ -175,6 +190,11 @@ export interface PredefinedUpdateParams {
*/
allowed_match_count?: number | null;

/**
* Body param:
*/
confidence_threshold?: string | null;

/**
* Body param: Scan the context of predefined entries to only return matches
* surrounded by keywords.
Expand Down
43 changes: 43 additions & 0 deletions src/resources/zero-trust/dlp/profiles/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ export namespace Profile {
*/
updated_at: string;

confidence_threshold?: 'low' | 'medium' | 'high' | 'very_high';

/**
* The description of the profile
*/
Expand Down Expand Up @@ -145,6 +147,8 @@ export namespace Profile {
export interface Predefined {
id: string;

confidence: Predefined.Confidence;

enabled: boolean;

name: string;
Expand All @@ -154,6 +158,17 @@ export namespace Profile {
profile_id?: string | null;
}

export namespace Predefined {
export interface Confidence {
/**
* Indicates whether this entry can be made more or less sensitive by setting a
* confidence threshold. Profiles that use an entry with `available` set to true
* can use confidence thresholds
*/
available: boolean;
}
}

export interface Integration {
id: string;

Expand Down Expand Up @@ -228,6 +243,8 @@ export namespace Profile {

type: 'predefined';

confidence_threshold?: 'low' | 'medium' | 'high' | 'very_high';

/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
Expand Down Expand Up @@ -264,6 +281,8 @@ export namespace Profile {
export interface Predefined {
id: string;

confidence: Predefined.Confidence;

enabled: boolean;

name: string;
Expand All @@ -273,6 +292,17 @@ export namespace Profile {
profile_id?: string | null;
}

export namespace Predefined {
export interface Confidence {
/**
* Indicates whether this entry can be made more or less sensitive by setting a
* confidence threshold. Profiles that use an entry with `available` set to true
* can use confidence thresholds
*/
available: boolean;
}
}

export interface Integration {
id: string;

Expand Down Expand Up @@ -371,6 +401,8 @@ export namespace Profile {
export interface Predefined {
id: string;

confidence: Predefined.Confidence;

enabled: boolean;

name: string;
Expand All @@ -380,6 +412,17 @@ export namespace Profile {
profile_id?: string | null;
}

export namespace Predefined {
export interface Confidence {
/**
* Indicates whether this entry can be made more or less sensitive by setting a
* confidence threshold. Profiles that use an entry with `available` set to true
* can use confidence thresholds
*/
available: boolean;
}
}

export interface Integration {
id: string;

Expand Down
8 changes: 4 additions & 4 deletions tests/api-resources/pages/projects/projects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('resource projects', () => {
preview: {
ai_bindings: { AI_BINDING: { project_id: 'some-project-id' } },
analytics_engine_datasets: { ANALYTICS_ENGINE_BINDING: { dataset: 'api_analytics' } },
browsers: { BROWSER: 'bar' },
browsers: { BROWSER: {} },
compatibility_date: '2022-01-01',
compatibility_flags: ['url_standard'],
d1_databases: { D1_BINDING: { id: '445e2955-951a-43f8-a35b-a4d0c8138f63' } },
Expand All @@ -60,7 +60,7 @@ describe('resource projects', () => {
production: {
ai_bindings: { AI_BINDING: { project_id: 'some-project-id' } },
analytics_engine_datasets: { ANALYTICS_ENGINE_BINDING: { dataset: 'api_analytics' } },
browsers: { BROWSER: 'bar' },
browsers: { BROWSER: {} },
compatibility_date: '2022-01-01',
compatibility_flags: ['url_standard'],
d1_databases: { D1_BINDING: { id: '445e2955-951a-43f8-a35b-a4d0c8138f63' } },
Expand Down Expand Up @@ -149,7 +149,7 @@ describe('resource projects', () => {
preview: {
ai_bindings: { AI_BINDING: { project_id: 'some-project-id' } },
analytics_engine_datasets: { ANALYTICS_ENGINE_BINDING: { dataset: 'api_analytics' } },
browsers: { BROWSER: 'bar' },
browsers: { BROWSER: {} },
compatibility_date: '2022-01-01',
compatibility_flags: ['url_standard'],
d1_databases: { D1_BINDING: { id: '445e2955-951a-43f8-a35b-a4d0c8138f63' } },
Expand All @@ -173,7 +173,7 @@ describe('resource projects', () => {
production: {
ai_bindings: { AI_BINDING: { project_id: 'some-project-id' } },
analytics_engine_datasets: { ANALYTICS_ENGINE_BINDING: { dataset: 'api_analytics' } },
browsers: { BROWSER: 'bar' },
browsers: { BROWSER: {} },
compatibility_date: '2022-01-01',
compatibility_flags: ['url_standard'],
d1_databases: { D1_BINDING: { id: '445e2955-951a-43f8-a35b-a4d0c8138f63' } },
Expand Down
Loading