-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6ff65b
commit 21f4afa
Showing
14 changed files
with
1,205 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
configured_endpoints: 1192 | ||
configured_endpoints: 1200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
|
||
import * as Core from 'cloudflare/core'; | ||
import { APIResource } from 'cloudflare/resource'; | ||
import { type Response } from 'cloudflare/_shims/index'; | ||
|
||
export class Downloads extends APIResource { | ||
/** | ||
* Download PCAP information into a file. Response is a binary PCAP file. | ||
*/ | ||
get(accountId: string, pcapId: string, options?: Core.RequestOptions): Core.APIPromise<Response> { | ||
return this._client.get(`/accounts/${accountId}/pcaps/${pcapId}/download`, { | ||
...options, | ||
__binaryResponse: true, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
|
||
export { Downloads } from './downloads'; | ||
export { | ||
OwnershipCreateResponse, | ||
OwnershipGetResponse, | ||
OwnershipValidateResponse, | ||
OwnershipCreateParams, | ||
OwnershipValidateParams, | ||
Ownerships, | ||
} from './ownerships'; | ||
export { PCAPCreateResponse, PCAPListResponse, PCAPGetResponse, PCAPCreateParams, PCAPs } from './pcaps'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
|
||
import * as Core from 'cloudflare/core'; | ||
import { APIResource } from 'cloudflare/resource'; | ||
import * as OwnershipsAPI from 'cloudflare/resources/pcaps/ownerships'; | ||
|
||
export class Ownerships extends APIResource { | ||
/** | ||
* Adds an AWS or GCP bucket to use with full packet captures. | ||
*/ | ||
create( | ||
accountId: string, | ||
body: OwnershipCreateParams, | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<OwnershipCreateResponse> { | ||
return ( | ||
this._client.post(`/accounts/${accountId}/pcaps/ownership`, { body, ...options }) as Core.APIPromise<{ | ||
result: OwnershipCreateResponse; | ||
}> | ||
)._thenUnwrap((obj) => obj.result); | ||
} | ||
|
||
/** | ||
* Deletes buckets added to the packet captures API. | ||
*/ | ||
delete(accountId: string, ownershipId: string, options?: Core.RequestOptions): Core.APIPromise<void> { | ||
return this._client.delete(`/accounts/${accountId}/pcaps/ownership/${ownershipId}`, { | ||
...options, | ||
headers: { Accept: '*/*', ...options?.headers }, | ||
}); | ||
} | ||
|
||
/** | ||
* List all buckets configured for use with PCAPs API. | ||
*/ | ||
get(accountId: string, options?: Core.RequestOptions): Core.APIPromise<OwnershipGetResponse | null> { | ||
return ( | ||
this._client.get(`/accounts/${accountId}/pcaps/ownership`, options) as Core.APIPromise<{ | ||
result: OwnershipGetResponse | null; | ||
}> | ||
)._thenUnwrap((obj) => obj.result); | ||
} | ||
|
||
/** | ||
* Validates buckets added to the packet captures API. | ||
*/ | ||
validate( | ||
accountId: string, | ||
body: OwnershipValidateParams, | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<OwnershipValidateResponse> { | ||
return ( | ||
this._client.post(`/accounts/${accountId}/pcaps/ownership/validate`, { | ||
body, | ||
...options, | ||
}) as Core.APIPromise<{ result: OwnershipValidateResponse }> | ||
)._thenUnwrap((obj) => obj.result); | ||
} | ||
} | ||
|
||
export interface OwnershipCreateResponse { | ||
/** | ||
* The bucket ID associated with the packet captures API. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* The full URI for the bucket. This field only applies to `full` packet captures. | ||
*/ | ||
destination_conf: string; | ||
|
||
/** | ||
* The ownership challenge filename stored in the bucket. | ||
*/ | ||
filename: string; | ||
|
||
/** | ||
* The status of the ownership challenge. Can be pending, success or failed. | ||
*/ | ||
status: 'pending' | 'success' | 'failed'; | ||
|
||
/** | ||
* The RFC 3339 timestamp when the bucket was added to packet captures API. | ||
*/ | ||
submitted: string; | ||
|
||
/** | ||
* The RFC 3339 timestamp when the bucket was validated. | ||
*/ | ||
validated?: string; | ||
} | ||
|
||
export type OwnershipGetResponse = Array<OwnershipGetResponse.OwnershipGetResponseItem>; | ||
|
||
export namespace OwnershipGetResponse { | ||
export interface OwnershipGetResponseItem { | ||
/** | ||
* The bucket ID associated with the packet captures API. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* The full URI for the bucket. This field only applies to `full` packet captures. | ||
*/ | ||
destination_conf: string; | ||
|
||
/** | ||
* The ownership challenge filename stored in the bucket. | ||
*/ | ||
filename: string; | ||
|
||
/** | ||
* The status of the ownership challenge. Can be pending, success or failed. | ||
*/ | ||
status: 'pending' | 'success' | 'failed'; | ||
|
||
/** | ||
* The RFC 3339 timestamp when the bucket was added to packet captures API. | ||
*/ | ||
submitted: string; | ||
|
||
/** | ||
* The RFC 3339 timestamp when the bucket was validated. | ||
*/ | ||
validated?: string; | ||
} | ||
} | ||
|
||
export interface OwnershipValidateResponse { | ||
/** | ||
* The bucket ID associated with the packet captures API. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* The full URI for the bucket. This field only applies to `full` packet captures. | ||
*/ | ||
destination_conf: string; | ||
|
||
/** | ||
* The ownership challenge filename stored in the bucket. | ||
*/ | ||
filename: string; | ||
|
||
/** | ||
* The status of the ownership challenge. Can be pending, success or failed. | ||
*/ | ||
status: 'pending' | 'success' | 'failed'; | ||
|
||
/** | ||
* The RFC 3339 timestamp when the bucket was added to packet captures API. | ||
*/ | ||
submitted: string; | ||
|
||
/** | ||
* The RFC 3339 timestamp when the bucket was validated. | ||
*/ | ||
validated?: string; | ||
} | ||
|
||
export interface OwnershipCreateParams { | ||
/** | ||
* The full URI for the bucket. This field only applies to `full` packet captures. | ||
*/ | ||
destination_conf: string; | ||
} | ||
|
||
export interface OwnershipValidateParams { | ||
/** | ||
* The full URI for the bucket. This field only applies to `full` packet captures. | ||
*/ | ||
destination_conf: string; | ||
|
||
/** | ||
* The ownership challenge filename stored in the bucket. | ||
*/ | ||
ownership_challenge: string; | ||
} | ||
|
||
export namespace Ownerships { | ||
export import OwnershipCreateResponse = OwnershipsAPI.OwnershipCreateResponse; | ||
export import OwnershipGetResponse = OwnershipsAPI.OwnershipGetResponse; | ||
export import OwnershipValidateResponse = OwnershipsAPI.OwnershipValidateResponse; | ||
export import OwnershipCreateParams = OwnershipsAPI.OwnershipCreateParams; | ||
export import OwnershipValidateParams = OwnershipsAPI.OwnershipValidateParams; | ||
} |
Oops, something went wrong.