Skip to content

Commit

Permalink
feat(list_item): remove duplicated anyOf properties from component (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and meorphis committed Jan 13, 2025
1 parent 5d3f037 commit 0d902e0
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1490
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6eed6659daa87db188a6095d59dbc3f6a84c1f63ca4e1b958283301d61cb16e5.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-403275b7baabda647cf36b6e08211b6ea4aa63c6b547124bbc0eb377330f623a.yml
96 changes: 86 additions & 10 deletions src/resources/rules/lists/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,49 @@ export interface ItemUpdateResponse {
operation_id?: string;
}

/**
* An IPv4 address, an IPv4 CIDR, or an IPv6 CIDR. IPv6 CIDRs are limited to a
* maximum of /64.
*/
export type ItemListResponse = string | ListsAPI.Redirect | ListsAPI.Hostname | number;
export interface ItemListResponse {
/**
* The unique ID of the list.
*/
id?: string;

/**
* A non-negative 32 bit integer
*/
asn?: number;

/**
* An informative summary of the list item.
*/
comment?: string;

/**
* The RFC 3339 timestamp of when the item was created.
*/
created_on?: string;

/**
* Valid characters for hostnames are ASCII(7) letters from a to z, the digits from
* 0 to 9, wildcards (\*), and the hyphen (-).
*/
hostname?: ListsAPI.Hostname;

/**
* An IPv4 address, an IPv4 CIDR, or an IPv6 CIDR. IPv6 CIDRs are limited to a
* maximum of /64.
*/
ip?: string;

/**
* The RFC 3339 timestamp of when the item was last modified.
*/
modified_on?: string;

/**
* The definition of the redirect.
*/
redirect?: ListsAPI.Redirect;
}

export interface ItemDeleteResponse {
/**
Expand All @@ -145,11 +183,49 @@ export interface ItemDeleteResponse {
operation_id?: string;
}

/**
* An IPv4 address, an IPv4 CIDR, or an IPv6 CIDR. IPv6 CIDRs are limited to a
* maximum of /64.
*/
export type ItemGetResponse = string | ListsAPI.Redirect | ListsAPI.Hostname | number;
export interface ItemGetResponse {
/**
* The unique ID of the list.
*/
id?: string;

/**
* A non-negative 32 bit integer
*/
asn?: number;

/**
* An informative summary of the list item.
*/
comment?: string;

/**
* The RFC 3339 timestamp of when the item was created.
*/
created_on?: string;

/**
* Valid characters for hostnames are ASCII(7) letters from a to z, the digits from
* 0 to 9, wildcards (\*), and the hyphen (-).
*/
hostname?: ListsAPI.Hostname;

/**
* An IPv4 address, an IPv4 CIDR, or an IPv6 CIDR. IPv6 CIDRs are limited to a
* maximum of /64.
*/
ip?: string;

/**
* The RFC 3339 timestamp of when the item was last modified.
*/
modified_on?: string;

/**
* The definition of the redirect.
*/
redirect?: ListsAPI.Redirect;
}

export interface ItemCreateParams {
/**
Expand Down

0 comments on commit 0d902e0

Please sign in to comment.