Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: OpenAPI spec update via Stainless API #90

Merged
merged 1 commit into from
Feb 27, 2024
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
175 changes: 0 additions & 175 deletions src/resources/dlp/profiles/customs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ export namespace CustomCreateResponse {
*/
allowed_match_count?: number;

/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
context_awareness?: CustomCreateResponseItem.ContextAwareness;

created_at?: string;

/**
Expand All @@ -114,35 +108,6 @@ export namespace CustomCreateResponse {
}

export namespace CustomCreateResponseItem {
/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
export interface ContextAwareness {
/**
* If true, scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
enabled: boolean;

/**
* Content types to exclude from context analysis and return all matches.
*/
skip: ContextAwareness.Skip;
}

export namespace ContextAwareness {
/**
* Content types to exclude from context analysis and return all matches.
*/
export interface Skip {
/**
* If the content type is a file, skip context analysis and return all matches.
*/
files: boolean;
}
}

/**
* A custom entry that matches a profile
*/
Expand Down Expand Up @@ -208,12 +173,6 @@ export interface CustomUpdateResponse {
*/
allowed_match_count?: number;

/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
context_awareness?: CustomUpdateResponse.ContextAwareness;

created_at?: string;

/**
Expand All @@ -240,35 +199,6 @@ export interface CustomUpdateResponse {
}

export namespace CustomUpdateResponse {
/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
export interface ContextAwareness {
/**
* If true, scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
enabled: boolean;

/**
* Content types to exclude from context analysis and return all matches.
*/
skip: ContextAwareness.Skip;
}

export namespace ContextAwareness {
/**
* Content types to exclude from context analysis and return all matches.
*/
export interface Skip {
/**
* If the content type is a file, skip context analysis and return all matches.
*/
files: boolean;
}
}

/**
* A custom entry that matches a profile
*/
Expand Down Expand Up @@ -335,12 +265,6 @@ export interface CustomGetResponse {
*/
allowed_match_count?: number;

/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
context_awareness?: CustomGetResponse.ContextAwareness;

created_at?: string;

/**
Expand All @@ -367,35 +291,6 @@ export interface CustomGetResponse {
}

export namespace CustomGetResponse {
/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
export interface ContextAwareness {
/**
* If true, scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
enabled: boolean;

/**
* Content types to exclude from context analysis and return all matches.
*/
skip: ContextAwareness.Skip;
}

export namespace ContextAwareness {
/**
* Content types to exclude from context analysis and return all matches.
*/
export interface Skip {
/**
* If the content type is a file, skip context analysis and return all matches.
*/
files: boolean;
}
}

/**
* A custom entry that matches a profile
*/
Expand Down Expand Up @@ -468,12 +363,6 @@ export namespace CustomCreateParams {
*/
allowed_match_count?: number;

/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
context_awareness?: Profile.ContextAwareness;

/**
* The description of the profile.
*/
Expand All @@ -491,35 +380,6 @@ export namespace CustomCreateParams {
}

export namespace Profile {
/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
export interface ContextAwareness {
/**
* If true, scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
enabled: boolean;

/**
* Content types to exclude from context analysis and return all matches.
*/
skip: ContextAwareness.Skip;
}

export namespace ContextAwareness {
/**
* Content types to exclude from context analysis and return all matches.
*/
export interface Skip {
/**
* If the content type is a file, skip context analysis and return all matches.
*/
files: boolean;
}
}

/**
* A custom entry create payload
*/
Expand Down Expand Up @@ -572,12 +432,6 @@ export interface CustomUpdateParams {
*/
allowed_match_count?: number;

/**
* Body param: Scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
context_awareness?: CustomUpdateParams.ContextAwareness;

/**
* Body param: The description of the profile.
*/
Expand Down Expand Up @@ -605,35 +459,6 @@ export interface CustomUpdateParams {
}

export namespace CustomUpdateParams {
/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
export interface ContextAwareness {
/**
* If true, scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
enabled: boolean;

/**
* Content types to exclude from context analysis and return all matches.
*/
skip: ContextAwareness.Skip;
}

export namespace ContextAwareness {
/**
* Content types to exclude from context analysis and return all matches.
*/
export interface Skip {
/**
* If the content type is a file, skip context analysis and return all matches.
*/
files: boolean;
}
}

/**
* A custom entry that matches a profile
*/
Expand Down
105 changes: 0 additions & 105 deletions src/resources/dlp/profiles/predefineds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ export interface PredefinedUpdateResponse {
*/
allowed_match_count?: number;

/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
context_awareness?: PredefinedUpdateResponse.ContextAwareness;

/**
* The entries for this profile.
*/
Expand All @@ -72,35 +66,6 @@ export interface PredefinedUpdateResponse {
}

export namespace PredefinedUpdateResponse {
/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
export interface ContextAwareness {
/**
* If true, scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
enabled: boolean;

/**
* Content types to exclude from context analysis and return all matches.
*/
skip: ContextAwareness.Skip;
}

export namespace ContextAwareness {
/**
* Content types to exclude from context analysis and return all matches.
*/
export interface Skip {
/**
* If the content type is a file, skip context analysis and return all matches.
*/
files: boolean;
}
}

/**
* A predefined entry that matches a profile
*/
Expand Down Expand Up @@ -138,12 +103,6 @@ export interface PredefinedGetResponse {
*/
allowed_match_count?: number;

/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
context_awareness?: PredefinedGetResponse.ContextAwareness;

/**
* The entries for this profile.
*/
Expand All @@ -161,35 +120,6 @@ export interface PredefinedGetResponse {
}

export namespace PredefinedGetResponse {
/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
export interface ContextAwareness {
/**
* If true, scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
enabled: boolean;

/**
* Content types to exclude from context analysis and return all matches.
*/
skip: ContextAwareness.Skip;
}

export namespace ContextAwareness {
/**
* Content types to exclude from context analysis and return all matches.
*/
export interface Skip {
/**
* If the content type is a file, skip context analysis and return all matches.
*/
files: boolean;
}
}

/**
* A predefined entry that matches a profile
*/
Expand Down Expand Up @@ -228,48 +158,13 @@ export interface PredefinedUpdateParams {
*/
allowed_match_count?: number;

/**
* Body param: Scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
context_awareness?: PredefinedUpdateParams.ContextAwareness;

/**
* Body param: The entries for this profile.
*/
entries?: Array<PredefinedUpdateParams.Entry>;
}

export namespace PredefinedUpdateParams {
/**
* Scan the context of predefined entries to only return matches surrounded by
* keywords.
*/
export interface ContextAwareness {
/**
* If true, scan the context of predefined entries to only return matches
* surrounded by keywords.
*/
enabled: boolean;

/**
* Content types to exclude from context analysis and return all matches.
*/
skip: ContextAwareness.Skip;
}

export namespace ContextAwareness {
/**
* Content types to exclude from context analysis and return all matches.
*/
export interface Skip {
/**
* If the content type is a file, skip context analysis and return all matches.
*/
files: boolean;
}
}

export interface Entry {
/**
* Whether the entry is enabled or not.
Expand Down
Loading