diff --git a/api.md b/api.md index 4a5e8944bb..a53e89b448 100644 --- a/api.md +++ b/api.md @@ -1691,7 +1691,7 @@ Methods: Types: - AllowedModesAnomaly -- UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5 +- WAFRuleGroup - RuleListResponse - RuleEditResponse - RuleGetResponse @@ -1711,7 +1711,6 @@ Types: - HTTPConfiguration - QueryHealthcheck - TCPConfiguration -- UnnamedSchemaRefAaa560acadcbf1ae1dc619ba1ea5948e - HealthcheckDeleteResponse Methods: @@ -1742,7 +1741,6 @@ Types: - Hostname - KeylessCertificate - Tunnel -- UnnamedSchemaRefA91f0bd72ee433f010eecfdc94ccf298 - KeylessCertificateDeleteResponse Methods: @@ -1771,8 +1769,6 @@ Methods: Types: -- Job -- OutputOptions - JobGetResponse Methods: @@ -1795,16 +1791,21 @@ Methods: Types: -- UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5 +- LogpushJob +- OutputOptions +- JobCreateResponse +- JobUpdateResponse +- JobListResponse - JobDeleteResponse +- JobGetResponse Methods: -- client.logpush.jobs.create({ ...params }) -> Job | null -- client.logpush.jobs.update(jobId, { ...params }) -> Job | null -- client.logpush.jobs.list({ ...params }) -> JobsSinglePage +- client.logpush.jobs.create({ ...params }) -> JobCreateResponse | null +- client.logpush.jobs.update(jobId, { ...params }) -> JobUpdateResponse | null +- client.logpush.jobs.list({ ...params }) -> JobListResponsesSinglePage - client.logpush.jobs.delete(jobId, { ...params }) -> JobDeleteResponse | null -- client.logpush.jobs.get(jobId, { ...params }) -> Job | null +- client.logpush.jobs.get(jobId, { ...params }) -> JobGetResponse | null ## Ownership @@ -1927,14 +1928,16 @@ Methods: Types: - Certificate -- UnnamedSchemaRefD182888b36f93a765d9ce5aefa3009e9 +- CertificateCreateResponse +- CertificateDeleteResponse +- CertificateGetResponse Methods: -- client.originTLSClientAuth.hostnames.certificates.create({ ...params }) -> Certificate +- client.originTLSClientAuth.hostnames.certificates.create({ ...params }) -> CertificateCreateResponse - client.originTLSClientAuth.hostnames.certificates.list({ ...params }) -> AuthenticatedOriginPullsSinglePage -- client.originTLSClientAuth.hostnames.certificates.delete(certificateId, { ...params }) -> Certificate -- client.originTLSClientAuth.hostnames.certificates.get(certificateId, { ...params }) -> Certificate +- client.originTLSClientAuth.hostnames.certificates.delete(certificateId, { ...params }) -> CertificateDeleteResponse +- client.originTLSClientAuth.hostnames.certificates.get(certificateId, { ...params }) -> CertificateGetResponse ## Settings @@ -2018,7 +2021,7 @@ Methods: Types: -- UnnamedSchemaRef150c555e27f53dbb40cdce4d6644ff0a +- Incoming - IncomingCreateResponse - IncomingUpdateResponse - IncomingDeleteResponse @@ -2037,8 +2040,8 @@ Types: - DisableTransfer - EnableTransfer +- Outgoing - OutgoingStatus -- UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564 - OutgoingCreateResponse - OutgoingUpdateResponse - OutgoingDeleteResponse @@ -2081,16 +2084,19 @@ Methods: Types: - Peer -- UnnamedSchemaRefBc727f0a53d75f2b531245a82603fbe0 +- PeerCreateResponse +- PeerUpdateResponse +- PeerListResponse - PeerDeleteResponse +- PeerGetResponse Methods: -- client.secondaryDNS.peers.create({ ...params }) -> Peer -- client.secondaryDNS.peers.update(peerId, { ...params }) -> Peer -- client.secondaryDNS.peers.list({ ...params }) -> PeersSinglePage +- client.secondaryDNS.peers.create({ ...params }) -> PeerCreateResponse +- client.secondaryDNS.peers.update(peerId, { ...params }) -> PeerUpdateResponse +- client.secondaryDNS.peers.list({ ...params }) -> PeerListResponsesSinglePage - client.secondaryDNS.peers.delete(peerId, { ...params }) -> PeerDeleteResponse -- client.secondaryDNS.peers.get(peerId, { ...params }) -> Peer +- client.secondaryDNS.peers.get(peerId, { ...params }) -> PeerGetResponse ## TSIGs @@ -2141,7 +2147,6 @@ Methods: Types: - Event -- UnnamedSchemaRef229c159575bc68a9c21f5a1615629cf6 - EventDeleteResponse Methods: @@ -2168,7 +2173,6 @@ Methods: Types: -- UnnamedSchemaRefF1c0ba8f44601f2db2e07b9397b6c430 - WaitingRoomRule - RuleCreateResponse - RuleUpdateResponse @@ -2215,7 +2219,6 @@ Methods: Types: - Hostname -- UnnamedSchemaRef2e420942fb77cd2cd2ba3ca7b5f32e1e - HostnameDeleteResponse Methods: @@ -2243,7 +2246,6 @@ Methods: Types: -- UnnamedSchemaRef5e618833803e286db9ee7c73727f8b86 - EntryCreateResponse - EntryUpdateResponse - EntryListResponse @@ -2304,7 +2306,7 @@ Methods: Types: -- UnnamedSchemaRefC8302c265937f9d6f96fd69644e56b26 +- Schedule - ScheduleUpdateResponse - ScheduleGetResponse @@ -2518,7 +2520,6 @@ Methods: Types: - Consumer -- UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5 - ConsumerCreateResponse - ConsumerUpdateResponse - ConsumerDeleteResponse @@ -2856,16 +2857,19 @@ Methods: Types: - Prefix -- UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46 +- PrefixCreateResponse +- PrefixListResponse - PrefixDeleteResponse +- PrefixEditResponse +- PrefixGetResponse Methods: -- client.addressing.prefixes.create({ ...params }) -> Prefix -- client.addressing.prefixes.list({ ...params }) -> PrefixesSinglePage +- client.addressing.prefixes.create({ ...params }) -> PrefixCreateResponse +- client.addressing.prefixes.list({ ...params }) -> PrefixListResponsesSinglePage - client.addressing.prefixes.delete(prefixId, { ...params }) -> PrefixDeleteResponse | null -- client.addressing.prefixes.edit(prefixId, { ...params }) -> Prefix -- client.addressing.prefixes.get(prefixId, { ...params }) -> Prefix +- client.addressing.prefixes.edit(prefixId, { ...params }) -> PrefixEditResponse +- client.addressing.prefixes.get(prefixId, { ...params }) -> PrefixGetResponse ### BGP @@ -2947,14 +2951,10 @@ Methods: Types: - Info +- RuleMatch +- ScanStatus - Submit -- UnnamedSchemaRef209db30ed499548152d6f3bccf720b54 -- UnnamedSchemaRef39419d70e2399b28b15cd660afd342fb -- UnnamedSchemaRef3e10ea08deb8102a27500f986488c1e8 -- UnnamedSchemaRef44e66100b948bfe723054c56b6144766 -- UnnamedSchemaRef767c0981cf47f45f0c766253dbd18669 -- UnnamedSchemaRef9b4c9779a35b172cb69c71389ebc7014 -- UnnamedSchemaRefA64e2a18a86750b6bd72cdf37ecfd869 +- URLInfoModelResults Methods: @@ -2981,7 +2981,6 @@ Methods: Types: - Image -- UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a - V1ListResponse - V1DeleteResponse @@ -2998,7 +2997,6 @@ Methods: Types: - Key -- UnnamedSchemaRef918e794287a67b5e85126e00cf2d9a95 Methods: @@ -3020,7 +3018,6 @@ Methods: Types: -- UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3 - Variant - VariantCreateResponse - VariantDeleteResponse @@ -3354,8 +3351,8 @@ Types: - ACL - ACLConfiguration +- AllowedProtocol - Subnet -- UnnamedSchemaRef87fa9e5fe9f6b8d607be1df57340d916 - ACLCreateResponse - ACLUpdateResponse - ACLListResponse diff --git a/src/resources/addressing/addressing.ts b/src/resources/addressing/addressing.ts index acdf060e69..88b202ca92 100644 --- a/src/resources/addressing/addressing.ts +++ b/src/resources/addressing/addressing.ts @@ -34,9 +34,12 @@ export namespace Addressing { export import LOADocumentCreateParams = LOADocumentsAPI.LOADocumentCreateParams; export import Prefixes = PrefixesAPI.Prefixes; export import Prefix = PrefixesAPI.Prefix; - export import UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46 = PrefixesAPI.UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46; + export import PrefixCreateResponse = PrefixesAPI.PrefixCreateResponse; + export import PrefixListResponse = PrefixesAPI.PrefixListResponse; export import PrefixDeleteResponse = PrefixesAPI.PrefixDeleteResponse; - export import PrefixesSinglePage = PrefixesAPI.PrefixesSinglePage; + export import PrefixEditResponse = PrefixesAPI.PrefixEditResponse; + export import PrefixGetResponse = PrefixesAPI.PrefixGetResponse; + export import PrefixListResponsesSinglePage = PrefixesAPI.PrefixListResponsesSinglePage; export import PrefixCreateParams = PrefixesAPI.PrefixCreateParams; export import PrefixListParams = PrefixesAPI.PrefixListParams; export import PrefixDeleteParams = PrefixesAPI.PrefixDeleteParams; diff --git a/src/resources/addressing/index.ts b/src/resources/addressing/index.ts index 2dd37df242..0a970f86ba 100644 --- a/src/resources/addressing/index.ts +++ b/src/resources/addressing/index.ts @@ -17,14 +17,17 @@ export { Addressing } from './addressing'; export { LOADocumentCreateResponse, LOADocumentCreateParams, LOADocuments } from './loa-documents/index'; export { Prefix, - UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46, + PrefixCreateResponse, + PrefixListResponse, PrefixDeleteResponse, + PrefixEditResponse, + PrefixGetResponse, PrefixCreateParams, PrefixListParams, PrefixDeleteParams, PrefixEditParams, PrefixGetParams, - PrefixesSinglePage, + PrefixListResponsesSinglePage, Prefixes, } from './prefixes/index'; export { ServiceListResponse, ServiceListParams, ServiceListResponsesSinglePage, Services } from './services'; diff --git a/src/resources/addressing/prefixes/index.ts b/src/resources/addressing/prefixes/index.ts index ae079bad33..f480b73dd1 100644 --- a/src/resources/addressing/prefixes/index.ts +++ b/src/resources/addressing/prefixes/index.ts @@ -11,13 +11,16 @@ export { } from './delegations'; export { Prefix, - UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46, + PrefixCreateResponse, + PrefixListResponse, PrefixDeleteResponse, + PrefixEditResponse, + PrefixGetResponse, PrefixCreateParams, PrefixListParams, PrefixDeleteParams, PrefixEditParams, PrefixGetParams, - PrefixesSinglePage, + PrefixListResponsesSinglePage, Prefixes, } from './prefixes'; diff --git a/src/resources/addressing/prefixes/prefixes.ts b/src/resources/addressing/prefixes/prefixes.ts index c06a07154e..f7582bb16d 100644 --- a/src/resources/addressing/prefixes/prefixes.ts +++ b/src/resources/addressing/prefixes/prefixes.ts @@ -14,13 +14,13 @@ export class Prefixes extends APIResource { /** * Add a new prefix under the account. */ - create(params: PrefixCreateParams, options?: Core.RequestOptions): Core.APIPromise { + create(params: PrefixCreateParams, options?: Core.RequestOptions): Core.APIPromise { const { account_id, ...body } = params; return ( this._client.post(`/accounts/${account_id}/addressing/prefixes`, { body, ...options, - }) as Core.APIPromise<{ result: Prefix }> + }) as Core.APIPromise<{ result: PrefixCreateResponse }> )._thenUnwrap((obj) => obj.result); } @@ -30,11 +30,11 @@ export class Prefixes extends APIResource { list( params: PrefixListParams, options?: Core.RequestOptions, - ): Core.PagePromise { + ): Core.PagePromise { const { account_id } = params; return this._client.getAPIList( `/accounts/${account_id}/addressing/prefixes`, - PrefixesSinglePage, + PrefixListResponsesSinglePage, options, ); } @@ -59,31 +59,39 @@ export class Prefixes extends APIResource { /** * Modify the description for a prefix owned by the account. */ - edit(prefixId: string, params: PrefixEditParams, options?: Core.RequestOptions): Core.APIPromise { + edit( + prefixId: string, + params: PrefixEditParams, + options?: Core.RequestOptions, + ): Core.APIPromise { const { account_id, ...body } = params; return ( this._client.patch(`/accounts/${account_id}/addressing/prefixes/${prefixId}`, { body, ...options, - }) as Core.APIPromise<{ result: Prefix }> + }) as Core.APIPromise<{ result: PrefixEditResponse }> )._thenUnwrap((obj) => obj.result); } /** * List a particular prefix owned by the account. */ - get(prefixId: string, params: PrefixGetParams, options?: Core.RequestOptions): Core.APIPromise { + get( + prefixId: string, + params: PrefixGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { const { account_id } = params; return ( this._client.get( `/accounts/${account_id}/addressing/prefixes/${prefixId}`, options, - ) as Core.APIPromise<{ result: Prefix }> + ) as Core.APIPromise<{ result: PrefixGetResponse }> )._thenUnwrap((obj) => obj.result); } } -export class PrefixesSinglePage extends SinglePage {} +export class PrefixListResponsesSinglePage extends SinglePage {} export interface Prefix { /** @@ -150,7 +158,72 @@ export interface Prefix { on_demand_locked?: boolean; } -export interface UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46 { +export interface PrefixCreateResponse { + /** + * Identifier + */ + id?: string; + + /** + * Identifier + */ + account_id?: string; + + /** + * Prefix advertisement status to the Internet. This field is only not 'null' if on + * demand is enabled. + */ + advertised?: boolean | null; + + /** + * Last time the advertisement status was changed. This field is only not 'null' if + * on demand is enabled. + */ + advertised_modified_at?: string | null; + + /** + * Approval state of the prefix (P = pending, V = active). + */ + approved?: string; + + /** + * Autonomous System Number (ASN) the prefix will be advertised under. + */ + asn?: number | null; + + /** + * IP Prefix in Classless Inter-Domain Routing format. + */ + cidr?: string; + + created_at?: string; + + /** + * Description of the prefix. + */ + description?: string; + + /** + * Identifier for the uploaded LOA document. + */ + loa_document_id?: string | null; + + modified_at?: string; + + /** + * Whether advertisement of the prefix to the Internet may be dynamically enabled + * or disabled. + */ + on_demand_enabled?: boolean; + + /** + * Whether advertisement status of the prefix is locked, meaning it cannot be + * changed. + */ + on_demand_locked?: boolean; +} + +export interface PrefixListResponse { /** * Identifier */ @@ -217,6 +290,136 @@ export interface UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46 { export type PrefixDeleteResponse = unknown | Array | string; +export interface PrefixEditResponse { + /** + * Identifier + */ + id?: string; + + /** + * Identifier + */ + account_id?: string; + + /** + * Prefix advertisement status to the Internet. This field is only not 'null' if on + * demand is enabled. + */ + advertised?: boolean | null; + + /** + * Last time the advertisement status was changed. This field is only not 'null' if + * on demand is enabled. + */ + advertised_modified_at?: string | null; + + /** + * Approval state of the prefix (P = pending, V = active). + */ + approved?: string; + + /** + * Autonomous System Number (ASN) the prefix will be advertised under. + */ + asn?: number | null; + + /** + * IP Prefix in Classless Inter-Domain Routing format. + */ + cidr?: string; + + created_at?: string; + + /** + * Description of the prefix. + */ + description?: string; + + /** + * Identifier for the uploaded LOA document. + */ + loa_document_id?: string | null; + + modified_at?: string; + + /** + * Whether advertisement of the prefix to the Internet may be dynamically enabled + * or disabled. + */ + on_demand_enabled?: boolean; + + /** + * Whether advertisement status of the prefix is locked, meaning it cannot be + * changed. + */ + on_demand_locked?: boolean; +} + +export interface PrefixGetResponse { + /** + * Identifier + */ + id?: string; + + /** + * Identifier + */ + account_id?: string; + + /** + * Prefix advertisement status to the Internet. This field is only not 'null' if on + * demand is enabled. + */ + advertised?: boolean | null; + + /** + * Last time the advertisement status was changed. This field is only not 'null' if + * on demand is enabled. + */ + advertised_modified_at?: string | null; + + /** + * Approval state of the prefix (P = pending, V = active). + */ + approved?: string; + + /** + * Autonomous System Number (ASN) the prefix will be advertised under. + */ + asn?: number | null; + + /** + * IP Prefix in Classless Inter-Domain Routing format. + */ + cidr?: string; + + created_at?: string; + + /** + * Description of the prefix. + */ + description?: string; + + /** + * Identifier for the uploaded LOA document. + */ + loa_document_id?: string | null; + + modified_at?: string; + + /** + * Whether advertisement of the prefix to the Internet may be dynamically enabled + * or disabled. + */ + on_demand_enabled?: boolean; + + /** + * Whether advertisement status of the prefix is locked, meaning it cannot be + * changed. + */ + on_demand_locked?: boolean; +} + export interface PrefixCreateParams { /** * Path param: Identifier @@ -279,9 +482,12 @@ export interface PrefixGetParams { export namespace Prefixes { export import Prefix = PrefixesAPI.Prefix; - export import UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46 = PrefixesAPI.UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46; + export import PrefixCreateResponse = PrefixesAPI.PrefixCreateResponse; + export import PrefixListResponse = PrefixesAPI.PrefixListResponse; export import PrefixDeleteResponse = PrefixesAPI.PrefixDeleteResponse; - export import PrefixesSinglePage = PrefixesAPI.PrefixesSinglePage; + export import PrefixEditResponse = PrefixesAPI.PrefixEditResponse; + export import PrefixGetResponse = PrefixesAPI.PrefixGetResponse; + export import PrefixListResponsesSinglePage = PrefixesAPI.PrefixListResponsesSinglePage; export import PrefixCreateParams = PrefixesAPI.PrefixCreateParams; export import PrefixListParams = PrefixesAPI.PrefixListParams; export import PrefixDeleteParams = PrefixesAPI.PrefixDeleteParams; diff --git a/src/resources/brand-protection.ts b/src/resources/brand-protection.ts index 4ae0e025a0..7da5f528d2 100644 --- a/src/resources/brand-protection.ts +++ b/src/resources/brand-protection.ts @@ -35,23 +35,23 @@ export interface Info { /** * List of categorizations applied to this submission. */ - categorizations?: Array; + categorizations?: Array; /** * List of model results for completed scans. */ - model_results?: Array; + model_results?: Array; /** * List of signatures that matched against site content found when crawling the * URL. */ - rule_matches?: Array; + rule_matches?: Array; /** * Status of the most recent scan found. */ - scan_status?: UnnamedSchemaRefA64e2a18a86750b6bd72cdf37ecfd869; + scan_status?: ScanStatus; /** * For internal use. @@ -69,49 +69,21 @@ export interface Info { url?: string; } -export interface Submit { - /** - * URLs that were excluded from scanning because their domain is in our no-scan - * list. - */ - excluded_urls?: Array; - - /** - * URLs that were skipped because the same URL is currently being scanned - */ - skipped_urls?: Array; - - /** - * URLs that were successfully submitted for scanning. - */ - submitted_urls?: Array; -} - -export interface UnnamedSchemaRef209db30ed499548152d6f3bccf720b54 { - /** - * Name of the category applied. - */ - category?: string; - - /** - * Result of human review for this categorization. - */ - verification_status?: string; -} - -export interface UnnamedSchemaRef39419d70e2399b28b15cd660afd342fb { - /** - * URL that was submitted. - */ - url?: string; +export namespace Info { + export interface Categorization { + /** + * Name of the category applied. + */ + category?: string; - /** - * ID assigned to this URL submission. Used to retrieve scanning results. - */ - url_id?: number; + /** + * Result of human review for this categorization. + */ + verification_status?: string; + } } -export interface UnnamedSchemaRef3e10ea08deb8102a27500f986488c1e8 { +export interface RuleMatch { /** * For internal use. */ @@ -133,60 +105,92 @@ export interface UnnamedSchemaRef3e10ea08deb8102a27500f986488c1e8 { name?: string; } -export interface UnnamedSchemaRef44e66100b948bfe723054c56b6144766 { +/** + * Status of the most recent scan found. + */ +export interface ScanStatus { /** - * URL that was skipped. + * Timestamp of when the submission was processed. */ - url?: string; + last_processed?: string; /** - * ID of the submission of that URL that is currently scanning. + * For internal use. */ - url_id?: number; -} + scan_complete?: boolean; -export interface UnnamedSchemaRef767c0981cf47f45f0c766253dbd18669 { /** - * URL that was excluded. + * Status code that the crawler received when loading the submitted URL. */ - url?: string; -} + status_code?: number; -export interface UnnamedSchemaRef9b4c9779a35b172cb69c71389ebc7014 { /** - * Name of the model. + * ID of the most recent submission. */ - model_name?: string; + submission_id?: number; +} +export interface Submit { /** - * Score output by the model for this submission. + * URLs that were excluded from scanning because their domain is in our no-scan + * list. */ - model_score?: number; -} + excluded_urls?: Array; -/** - * Status of the most recent scan found. - */ -export interface UnnamedSchemaRefA64e2a18a86750b6bd72cdf37ecfd869 { /** - * Timestamp of when the submission was processed. + * URLs that were skipped because the same URL is currently being scanned */ - last_processed?: string; + skipped_urls?: Array; /** - * For internal use. + * URLs that were successfully submitted for scanning. */ - scan_complete?: boolean; + submitted_urls?: Array; +} + +export namespace Submit { + export interface ExcludedURL { + /** + * URL that was excluded. + */ + url?: string; + } + + export interface SkippedURL { + /** + * URL that was skipped. + */ + url?: string; + + /** + * ID of the submission of that URL that is currently scanning. + */ + url_id?: number; + } + + export interface SubmittedURL { + /** + * URL that was submitted. + */ + url?: string; + + /** + * ID assigned to this URL submission. Used to retrieve scanning results. + */ + url_id?: number; + } +} +export interface URLInfoModelResults { /** - * Status code that the crawler received when loading the submitted URL. + * Name of the model. */ - status_code?: number; + model_name?: string; /** - * ID of the most recent submission. + * Score output by the model for this submission. */ - submission_id?: number; + model_score?: number; } export interface BrandProtectionSubmitParams { diff --git a/src/resources/firewall/waf/packages/index.ts b/src/resources/firewall/waf/packages/index.ts index 812d46237c..34fac46e93 100644 --- a/src/resources/firewall/waf/packages/index.ts +++ b/src/resources/firewall/waf/packages/index.ts @@ -2,7 +2,7 @@ export { AllowedModesAnomaly, - UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5, + WAFRuleGroup, RuleListResponse, RuleEditResponse, RuleGetResponse, diff --git a/src/resources/firewall/waf/packages/packages.ts b/src/resources/firewall/waf/packages/packages.ts index d1ab54f7ff..55e43d5db5 100644 --- a/src/resources/firewall/waf/packages/packages.ts +++ b/src/resources/firewall/waf/packages/packages.ts @@ -256,7 +256,7 @@ export namespace Packages { export import GroupGetParams = GroupsAPI.GroupGetParams; export import Rules = RulesAPI.Rules; export import AllowedModesAnomaly = RulesAPI.AllowedModesAnomaly; - export import UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5 = RulesAPI.UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5; + export import WAFRuleGroup = RulesAPI.WAFRuleGroup; export import RuleListResponse = RulesAPI.RuleListResponse; export import RuleEditResponse = RulesAPI.RuleEditResponse; export import RuleGetResponse = RulesAPI.RuleGetResponse; diff --git a/src/resources/firewall/waf/packages/rules.ts b/src/resources/firewall/waf/packages/rules.ts index 272c4922db..f66de66d2a 100644 --- a/src/resources/firewall/waf/packages/rules.ts +++ b/src/resources/firewall/waf/packages/rules.ts @@ -79,7 +79,7 @@ export type AllowedModesAnomaly = 'on' | 'off'; /** * The rule group to which the current WAF rule belongs. */ -export interface UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5 { +export interface WAFRuleGroup { /** * The unique identifier of the rule group. */ @@ -129,7 +129,7 @@ export namespace RuleListResponse { /** * The rule group to which the current WAF rule belongs. */ - group: RulesAPI.UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5; + group: RulesAPI.WAFRuleGroup; /** * When set to `on`, the current WAF rule will be used when evaluating the request. @@ -178,7 +178,7 @@ export namespace RuleListResponse { /** * The rule group to which the current WAF rule belongs. */ - group: RulesAPI.UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5; + group: RulesAPI.WAFRuleGroup; /** * The action that the current WAF rule will perform when triggered. Applies to @@ -223,7 +223,7 @@ export namespace RuleListResponse { /** * The rule group to which the current WAF rule belongs. */ - group: RulesAPI.UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5; + group: RulesAPI.WAFRuleGroup; /** * When set to `on`, the current rule will be used when evaluating the request. @@ -281,7 +281,7 @@ export namespace RuleEditResponse { /** * The rule group to which the current WAF rule belongs. */ - group: RulesAPI.UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5; + group: RulesAPI.WAFRuleGroup; /** * When set to `on`, the current WAF rule will be used when evaluating the request. @@ -330,7 +330,7 @@ export namespace RuleEditResponse { /** * The rule group to which the current WAF rule belongs. */ - group: RulesAPI.UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5; + group: RulesAPI.WAFRuleGroup; /** * The action that the current WAF rule will perform when triggered. Applies to @@ -375,7 +375,7 @@ export namespace RuleEditResponse { /** * The rule group to which the current WAF rule belongs. */ - group: RulesAPI.UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5; + group: RulesAPI.WAFRuleGroup; /** * When set to `on`, the current rule will be used when evaluating the request. @@ -463,7 +463,7 @@ export interface RuleGetParams { export namespace Rules { export import AllowedModesAnomaly = RulesAPI.AllowedModesAnomaly; - export import UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5 = RulesAPI.UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5; + export import WAFRuleGroup = RulesAPI.WAFRuleGroup; export import RuleListResponse = RulesAPI.RuleListResponse; export import RuleEditResponse = RulesAPI.RuleEditResponse; export import RuleGetResponse = RulesAPI.RuleGetResponse; diff --git a/src/resources/healthchecks/healthchecks.ts b/src/resources/healthchecks/healthchecks.ts index 4604ddbe54..9e3cfdcb87 100644 --- a/src/resources/healthchecks/healthchecks.ts +++ b/src/resources/healthchecks/healthchecks.ts @@ -357,100 +357,6 @@ export interface TCPConfiguration { port?: number; } -export interface UnnamedSchemaRefAaa560acadcbf1ae1dc619ba1ea5948e { - /** - * Identifier - */ - id?: string; - - /** - * The hostname or IP address of the origin server to run health checks on. - */ - address?: string; - - /** - * A list of regions from which to run health checks. Null means Cloudflare will - * pick a default region. - */ - check_regions?: Array | null; - - /** - * The number of consecutive fails required from a health check before changing the - * health to unhealthy. - */ - consecutive_fails?: number; - - /** - * The number of consecutive successes required from a health check before changing - * the health to healthy. - */ - consecutive_successes?: number; - - created_on?: string; - - /** - * A human-readable description of the health check. - */ - description?: string; - - /** - * The current failure reason if status is unhealthy. - */ - failure_reason?: string; - - /** - * Parameters specific to an HTTP or HTTPS health check. - */ - http_config?: HTTPConfiguration | null; - - /** - * The interval between each health check. Shorter intervals may give quicker - * notifications if the origin status changes, but will increase load on the origin - * as we check from multiple locations. - */ - interval?: number; - - modified_on?: string; - - /** - * A short name to identify the health check. Only alphanumeric characters, hyphens - * and underscores are allowed. - */ - name?: string; - - /** - * The number of retries to attempt in case of a timeout before marking the origin - * as unhealthy. Retries are attempted immediately. - */ - retries?: number; - - /** - * The current status of the origin server according to the health check. - */ - status?: 'unknown' | 'healthy' | 'unhealthy' | 'suspended'; - - /** - * If suspended, no health checks are sent to the origin. - */ - suspended?: boolean; - - /** - * Parameters specific to TCP health check. - */ - tcp_config?: TCPConfiguration | null; - - /** - * The timeout (in seconds) before marking the health check as failed. - */ - timeout?: number; - - /** - * The protocol to use for the health check. Currently supported protocols are - * 'HTTP', 'HTTPS' and 'TCP'. - */ - type?: string; -} - export interface HealthcheckDeleteResponse { /** * Identifier diff --git a/src/resources/images/images.ts b/src/resources/images/images.ts index d30695d5b9..e7b70f150e 100644 --- a/src/resources/images/images.ts +++ b/src/resources/images/images.ts @@ -12,7 +12,6 @@ export class Images extends APIResource { export namespace Images { export import V1 = V1API.V1; export import Image = V1API.Image; - export import UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a = V1API.UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a; export import V1ListResponse = V1API.V1ListResponse; export import V1DeleteResponse = V1API.V1DeleteResponse; export import V1ListResponsesV4PagePagination = V1API.V1ListResponsesV4PagePagination; diff --git a/src/resources/images/index.ts b/src/resources/images/index.ts index c767eb14e3..a4553e4a81 100644 --- a/src/resources/images/index.ts +++ b/src/resources/images/index.ts @@ -2,7 +2,6 @@ export { Image, - UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a, V1ListResponse, V1DeleteResponse, V1CreateParams, diff --git a/src/resources/images/v1/index.ts b/src/resources/images/v1/index.ts index b8b7a8fe21..40173c4037 100644 --- a/src/resources/images/v1/index.ts +++ b/src/resources/images/v1/index.ts @@ -3,7 +3,6 @@ export { BlobGetParams, Blobs } from './blobs'; export { Image, - UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a, V1ListResponse, V1DeleteResponse, V1CreateParams, @@ -14,17 +13,9 @@ export { V1ListResponsesV4PagePagination, V1, } from './v1'; -export { - Key, - UnnamedSchemaRef918e794287a67b5e85126e00cf2d9a95, - KeyUpdateParams, - KeyListParams, - KeyDeleteParams, - Keys, -} from './keys'; +export { Key, KeyUpdateParams, KeyListParams, KeyDeleteParams, Keys } from './keys'; export { Stat, StatGetParams, Stats } from './stats'; export { - UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3, Variant, VariantCreateResponse, VariantDeleteResponse, diff --git a/src/resources/images/v1/keys.ts b/src/resources/images/v1/keys.ts index cd918d9d7e..82a1f67413 100644 --- a/src/resources/images/v1/keys.ts +++ b/src/resources/images/v1/keys.ts @@ -69,24 +69,6 @@ export namespace Key { } } -export interface UnnamedSchemaRef918e794287a67b5e85126e00cf2d9a95 { - keys?: Array; -} - -export namespace UnnamedSchemaRef918e794287a67b5e85126e00cf2d9a95 { - export interface Key { - /** - * Key name. - */ - name?: string; - - /** - * Key value. - */ - value?: string; - } -} - export interface KeyUpdateParams { /** * Account identifier tag. @@ -110,7 +92,6 @@ export interface KeyDeleteParams { export namespace Keys { export import Key = KeysAPI.Key; - export import UnnamedSchemaRef918e794287a67b5e85126e00cf2d9a95 = KeysAPI.UnnamedSchemaRef918e794287a67b5e85126e00cf2d9a95; export import KeyUpdateParams = KeysAPI.KeyUpdateParams; export import KeyListParams = KeysAPI.KeyListParams; export import KeyDeleteParams = KeysAPI.KeyDeleteParams; diff --git a/src/resources/images/v1/v1.ts b/src/resources/images/v1/v1.ts index 51dc292bff..31eeb213b8 100644 --- a/src/resources/images/v1/v1.ts +++ b/src/resources/images/v1/v1.ts @@ -128,40 +128,6 @@ export interface Image { variants?: Array; } -export interface UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a { - /** - * Image unique identifier. - */ - id?: string; - - /** - * Image file name. - */ - filename?: string; - - /** - * User modifiable key-value store. Can be used for keeping references to another - * system of record for managing images. Metadata must not exceed 1024 bytes. - */ - meta?: unknown; - - /** - * Indicates whether the image can be a accessed only using it's UID. If set to - * true, a signed token needs to be generated with a signing key to view the image. - */ - requireSignedURLs?: boolean; - - /** - * When the media item was uploaded. - */ - uploaded?: string; - - /** - * Object specifying available variants for an image. - */ - variants?: Array; -} - export interface V1ListResponse { errors: Array; @@ -261,7 +227,6 @@ export interface V1GetParams { export namespace V1 { export import Image = V1API.Image; - export import UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a = V1API.UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a; export import V1ListResponse = V1API.V1ListResponse; export import V1DeleteResponse = V1API.V1DeleteResponse; export import V1ListResponsesV4PagePagination = V1API.V1ListResponsesV4PagePagination; @@ -272,7 +237,6 @@ export namespace V1 { export import V1GetParams = V1API.V1GetParams; export import Keys = KeysAPI.Keys; export import Key = KeysAPI.Key; - export import UnnamedSchemaRef918e794287a67b5e85126e00cf2d9a95 = KeysAPI.UnnamedSchemaRef918e794287a67b5e85126e00cf2d9a95; export import KeyUpdateParams = KeysAPI.KeyUpdateParams; export import KeyListParams = KeysAPI.KeyListParams; export import KeyDeleteParams = KeysAPI.KeyDeleteParams; @@ -280,7 +244,6 @@ export namespace V1 { export import Stat = StatsAPI.Stat; export import StatGetParams = StatsAPI.StatGetParams; export import Variants = VariantsAPI.Variants; - export import UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3 = VariantsAPI.UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3; export import Variant = VariantsAPI.Variant; export import VariantCreateResponse = VariantsAPI.VariantCreateResponse; export import VariantDeleteResponse = VariantsAPI.VariantDeleteResponse; diff --git a/src/resources/images/v1/variants.ts b/src/resources/images/v1/variants.ts index bbe930cb2d..8b1fbd1c9e 100644 --- a/src/resources/images/v1/variants.ts +++ b/src/resources/images/v1/variants.ts @@ -82,55 +82,6 @@ export class Variants extends APIResource { } } -export interface UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3 { - variant?: UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3.Variant; -} - -export namespace UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3 { - export interface Variant { - id: string; - - /** - * Allows you to define image resizing sizes for different use cases. - */ - options: Variant.Options; - - /** - * Indicates whether the variant can access an image without a signature, - * regardless of image access control. - */ - neverRequireSignedURLs?: boolean; - } - - export namespace Variant { - /** - * Allows you to define image resizing sizes for different use cases. - */ - export interface Options { - /** - * The fit property describes how the width and height dimensions should be - * interpreted. - */ - fit: 'scale-down' | 'contain' | 'cover' | 'crop' | 'pad'; - - /** - * Maximum height in image pixels. - */ - height: number; - - /** - * What EXIF data should be preserved in the output image. - */ - metadata: 'keep' | 'copyright' | 'none'; - - /** - * Maximum width in image pixels. - */ - width: number; - } - } -} - export interface Variant { variants?: Variant.Variants; } @@ -459,7 +410,6 @@ export interface VariantGetParams { } export namespace Variants { - export import UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3 = VariantsAPI.UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3; export import Variant = VariantsAPI.Variant; export import VariantCreateResponse = VariantsAPI.VariantCreateResponse; export import VariantDeleteResponse = VariantsAPI.VariantDeleteResponse; diff --git a/src/resources/keyless-certificates.ts b/src/resources/keyless-certificates.ts index 2bbb9ef0e7..5c1c71cdfd 100644 --- a/src/resources/keyless-certificates.ts +++ b/src/resources/keyless-certificates.ts @@ -211,60 +211,6 @@ export interface Tunnel { vnet_id: string; } -export interface UnnamedSchemaRefA91f0bd72ee433f010eecfdc94ccf298 { - /** - * Keyless certificate identifier tag. - */ - id: string; - - /** - * When the Keyless SSL was created. - */ - created_on: string; - - /** - * Whether or not the Keyless SSL is on or off. - */ - enabled: boolean; - - /** - * The keyless SSL name. - */ - host: string; - - /** - * When the Keyless SSL was last modified. - */ - modified_on: string; - - /** - * The keyless SSL name. - */ - name: string; - - /** - * Available permissions for the Keyless SSL for the current user requesting the - * item. - */ - permissions: Array; - - /** - * The keyless SSL port used to communicate between Cloudflare and the client's - * Keyless SSL server. - */ - port: number; - - /** - * Status of the Keyless SSL. - */ - status: 'active' | 'deleted'; - - /** - * Configuration for using Keyless SSL through a Cloudflare Tunnel - */ - tunnel?: Tunnel; -} - export interface KeylessCertificateDeleteResponse { /** * Identifier diff --git a/src/resources/logpush/datasets/datasets.ts b/src/resources/logpush/datasets/datasets.ts index b54c16cb64..607ea4890b 100644 --- a/src/resources/logpush/datasets/datasets.ts +++ b/src/resources/logpush/datasets/datasets.ts @@ -14,8 +14,6 @@ export namespace Datasets { export import FieldGetResponse = FieldsAPI.FieldGetResponse; export import FieldGetParams = FieldsAPI.FieldGetParams; export import Jobs = JobsAPI.Jobs; - export import Job = JobsAPI.Job; - export import OutputOptions = JobsAPI.OutputOptions; export import JobGetResponse = JobsAPI.JobGetResponse; export import JobGetParams = JobsAPI.JobGetParams; } diff --git a/src/resources/logpush/datasets/index.ts b/src/resources/logpush/datasets/index.ts index 9906285cd1..b80889fd4d 100644 --- a/src/resources/logpush/datasets/index.ts +++ b/src/resources/logpush/datasets/index.ts @@ -2,4 +2,4 @@ export { Datasets } from './datasets'; export { FieldGetResponse, FieldGetParams, Fields } from './fields'; -export { Job, OutputOptions, JobGetResponse, JobGetParams, JobsSinglePage, Jobs } from './jobs'; +export { JobGetResponse, JobGetParams, Jobs } from './jobs'; diff --git a/src/resources/logpush/datasets/jobs.ts b/src/resources/logpush/datasets/jobs.ts index 9e6c246086..d98300a85d 100644 --- a/src/resources/logpush/datasets/jobs.ts +++ b/src/resources/logpush/datasets/jobs.ts @@ -4,8 +4,8 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import { CloudflareError } from 'cloudflare/error'; -import * as JobsAPI from 'cloudflare/resources/logpush/datasets/jobs'; -import { SinglePage } from 'cloudflare/pagination'; +import * as DatasetsJobsAPI from 'cloudflare/resources/logpush/datasets/jobs'; +import * as JobsAPI from 'cloudflare/resources/logpush/jobs'; export class Jobs extends APIResource { /** @@ -51,162 +51,86 @@ export class Jobs extends APIResource { } } -export class JobsSinglePage extends SinglePage {} - -export interface Job { - /** - * Unique id of the job. - */ - id?: number; - - /** - * Name of the dataset. - */ - dataset?: string | null; - - /** - * Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. - * Additional configuration parameters supported by the destination may be - * included. - */ - destination_conf?: string; - - /** - * Flag that indicates if the job is enabled. - */ - enabled?: boolean; - - /** - * If not null, the job is currently failing. Failures are usually repetitive - * (example: no permissions to write to destination bucket). Only the last failure - * is recorded. On successful execution of a job the error_message and last_error - * are set to null. - */ - error_message?: string | null; - - /** - * The frequency at which Cloudflare sends batches of logs to your destination. - * Setting frequency to high sends your logs in larger quantities of smaller files. - * Setting frequency to low sends logs in smaller quantities of larger files. - */ - frequency?: 'high' | 'low' | null; - - /** - * Records the last time for which logs have been successfully pushed. If the last - * successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z - * then the value of this field will be 2018-07-23T10:01:00Z. If the job has never - * run or has just been enabled and hasn't run yet then the field will be empty. - */ - last_complete?: string | null; - - /** - * Records the last time the job failed. If not null, the job is currently failing. - * If null, the job has either never failed or has run successfully at least once - * since last failure. See also the error_message field. - */ - last_error?: string | null; - - /** - * @deprecated: This field is deprecated. Use `output_options` instead. - * Configuration string. It specifies things like requested fields and timestamp - * formats. If migrating from the logpull api, copy the url (full url or just the - * query string) of your call here, and logpush will keep on making this call for - * you, setting start and end times appropriately. - */ - logpull_options?: string | null; - - /** - * Optional human readable job name. Not unique. Cloudflare suggests that you set - * this to a meaningful string, like the domain name, to make it easier to identify - * your job. - */ - name?: string | null; - - /** - * The structured replacement for `logpull_options`. When including this field, the - * `logpull_option` field will be ignored. - */ - output_options?: OutputOptions | null; -} - -/** - * The structured replacement for `logpull_options`. When including this field, the - * `logpull_option` field will be ignored. - */ -export interface OutputOptions { - /** - * String to be prepended before each batch. - */ - batch_prefix?: string | null; - - /** - * String to be appended after each batch. - */ - batch_suffix?: string | null; - - /** - * If set to true, will cause all occurrences of `${` in the generated files to be - * replaced with `x{`. - */ - 'CVE-2021-4428'?: boolean | null; - - /** - * String to join fields. This field be ignored when `record_template` is set. - */ - field_delimiter?: string | null; - - /** - * List of field names to be included in the Logpush output. For the moment, there - * is no option to add all fields at once, so you must specify all the fields names - * you are interested in. - */ - field_names?: Array; - - /** - * Specifies the output type, such as `ndjson` or `csv`. This sets default values - * for the rest of the settings, depending on the chosen output type. Some - * formatting rules, like string quoting, are different between output types. - */ - output_type?: 'ndjson' | 'csv'; - - /** - * String to be inserted in-between the records as separator. - */ - record_delimiter?: string | null; - - /** - * String to be prepended before each record. - */ - record_prefix?: string | null; - - /** - * String to be appended after each record. - */ - record_suffix?: string | null; - - /** - * String to use as template for each record instead of the default comma-separated - * list. All fields used in the template must be present in `field_names` as well, - * otherwise they will end up as null. Format as a Go `text/template` without any - * standard functions, like conditionals, loops, sub-templates, etc. - */ - record_template?: string | null; - - /** - * Floating number to specify sampling rate. Sampling is applied on top of - * filtering, and regardless of the current `sample_interval` of the data. - */ - sample_rate?: number | null; - - /** - * String to specify the format for timestamps, such as `unixnano`, `unix`, or - * `rfc3339`. - */ - timestamp_format?: 'unixnano' | 'unix' | 'rfc3339'; +export type JobGetResponse = Array; + +export namespace JobGetResponse { + export interface JobGetResponseItem { + /** + * Unique id of the job. + */ + id?: number; + + /** + * Name of the dataset. + */ + dataset?: string | null; + + /** + * Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. + * Additional configuration parameters supported by the destination may be + * included. + */ + destination_conf?: string; + + /** + * Flag that indicates if the job is enabled. + */ + enabled?: boolean; + + /** + * If not null, the job is currently failing. Failures are usually repetitive + * (example: no permissions to write to destination bucket). Only the last failure + * is recorded. On successful execution of a job the error_message and last_error + * are set to null. + */ + error_message?: string | null; + + /** + * The frequency at which Cloudflare sends batches of logs to your destination. + * Setting frequency to high sends your logs in larger quantities of smaller files. + * Setting frequency to low sends logs in smaller quantities of larger files. + */ + frequency?: 'high' | 'low' | null; + + /** + * Records the last time for which logs have been successfully pushed. If the last + * successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z + * then the value of this field will be 2018-07-23T10:01:00Z. If the job has never + * run or has just been enabled and hasn't run yet then the field will be empty. + */ + last_complete?: string | null; + + /** + * Records the last time the job failed. If not null, the job is currently failing. + * If null, the job has either never failed or has run successfully at least once + * since last failure. See also the error_message field. + */ + last_error?: string | null; + + /** + * @deprecated: This field is deprecated. Use `output_options` instead. + * Configuration string. It specifies things like requested fields and timestamp + * formats. If migrating from the logpull api, copy the url (full url or just the + * query string) of your call here, and logpush will keep on making this call for + * you, setting start and end times appropriately. + */ + logpull_options?: string | null; + + /** + * Optional human readable job name. Not unique. Cloudflare suggests that you set + * this to a meaningful string, like the domain name, to make it easier to identify + * your job. + */ + name?: string | null; + + /** + * The structured replacement for `logpull_options`. When including this field, the + * `logpull_option` field will be ignored. + */ + output_options?: JobsAPI.OutputOptions | null; + } } -export type JobGetResponse = Array; - export interface JobGetParams { /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. @@ -220,8 +144,6 @@ export interface JobGetParams { } export namespace Jobs { - export import Job = JobsAPI.Job; - export import OutputOptions = JobsAPI.OutputOptions; - export import JobGetResponse = JobsAPI.JobGetResponse; - export import JobGetParams = JobsAPI.JobGetParams; + export import JobGetResponse = DatasetsJobsAPI.JobGetResponse; + export import JobGetParams = DatasetsJobsAPI.JobGetParams; } diff --git a/src/resources/logpush/index.ts b/src/resources/logpush/index.ts index 9f7e80a27a..9cb2d6436f 100644 --- a/src/resources/logpush/index.ts +++ b/src/resources/logpush/index.ts @@ -4,22 +4,28 @@ export { Datasets } from './datasets/index'; export { InstantLogpushJob, EdgeGetResponse, EdgeCreateParams, EdgeGetParams, Edge } from './edge'; export { Logpush } from './logpush'; export { - OwnershipValidation, - OwnershipCreateResponse, - OwnershipCreateParams, - OwnershipValidateParams, - Ownership, -} from './ownership'; -export { - UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5, + LogpushJob, + OutputOptions, + JobCreateResponse, + JobUpdateResponse, + JobListResponse, JobDeleteResponse, + JobGetResponse, JobCreateParams, JobUpdateParams, JobListParams, JobDeleteParams, JobGetParams, + JobListResponsesSinglePage, Jobs, } from './jobs'; +export { + OwnershipValidation, + OwnershipCreateResponse, + OwnershipCreateParams, + OwnershipValidateParams, + Ownership, +} from './ownership'; export { ValidateDestinationResponse, ValidateOriginResponse, diff --git a/src/resources/logpush/jobs.ts b/src/resources/logpush/jobs.ts index 3dea634f4a..73ff96104e 100644 --- a/src/resources/logpush/jobs.ts +++ b/src/resources/logpush/jobs.ts @@ -5,17 +5,13 @@ import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import { CloudflareError } from 'cloudflare/error'; import * as JobsAPI from 'cloudflare/resources/logpush/jobs'; -import * as DatasetsJobsAPI from 'cloudflare/resources/logpush/datasets/jobs'; -import { JobsSinglePage } from 'cloudflare/resources/logpush/datasets/jobs'; +import { SinglePage } from 'cloudflare/pagination'; export class Jobs extends APIResource { /** * Creates a new Logpush job for an account or zone. */ - create( - params: JobCreateParams, - options?: Core.RequestOptions, - ): Core.APIPromise { + create(params: JobCreateParams, options?: Core.RequestOptions): Core.APIPromise { const { account_id, zone_id, ...body } = params; if (!account_id && !zone_id) { throw new CloudflareError('You must provide either account_id or zone_id.'); @@ -37,7 +33,7 @@ export class Jobs extends APIResource { this._client.post(`/${accountOrZone}/${accountOrZoneId}/logpush/jobs`, { body, ...options, - }) as Core.APIPromise<{ result: DatasetsJobsAPI.Job | null }> + }) as Core.APIPromise<{ result: JobCreateResponse | null }> )._thenUnwrap((obj) => obj.result); } @@ -48,7 +44,7 @@ export class Jobs extends APIResource { jobId: number, params: JobUpdateParams, options?: Core.RequestOptions, - ): Core.APIPromise { + ): Core.APIPromise { const { account_id, zone_id, ...body } = params; if (!account_id && !zone_id) { throw new CloudflareError('You must provide either account_id or zone_id.'); @@ -70,7 +66,7 @@ export class Jobs extends APIResource { this._client.put(`/${accountOrZone}/${accountOrZoneId}/logpush/jobs/${jobId}`, { body, ...options, - }) as Core.APIPromise<{ result: DatasetsJobsAPI.Job | null }> + }) as Core.APIPromise<{ result: JobUpdateResponse | null }> )._thenUnwrap((obj) => obj.result); } @@ -80,12 +76,12 @@ export class Jobs extends APIResource { list( params?: JobListParams, options?: Core.RequestOptions, - ): Core.PagePromise; - list(options?: Core.RequestOptions): Core.PagePromise; + ): Core.PagePromise; + list(options?: Core.RequestOptions): Core.PagePromise; list( params: JobListParams | Core.RequestOptions = {}, options?: Core.RequestOptions, - ): Core.PagePromise { + ): Core.PagePromise { if (isRequestOptions(params)) { return this.list({}, params); } @@ -108,7 +104,7 @@ export class Jobs extends APIResource { }; return this._client.getAPIList( `/${accountOrZone}/${accountOrZoneId}/logpush/jobs`, - JobsSinglePage, + JobListResponsesSinglePage, options, ); } @@ -153,13 +149,13 @@ export class Jobs extends APIResource { jobId: number, params?: JobGetParams, options?: Core.RequestOptions, - ): Core.APIPromise; - get(jobId: number, options?: Core.RequestOptions): Core.APIPromise; + ): Core.APIPromise; + get(jobId: number, options?: Core.RequestOptions): Core.APIPromise; get( jobId: number, params: JobGetParams | Core.RequestOptions = {}, options?: Core.RequestOptions, - ): Core.APIPromise { + ): Core.APIPromise { if (isRequestOptions(params)) { return this.get(jobId, {}, params); } @@ -184,12 +180,318 @@ export class Jobs extends APIResource { this._client.get( `/${accountOrZone}/${accountOrZoneId}/logpush/jobs/${jobId}`, options, - ) as Core.APIPromise<{ result: DatasetsJobsAPI.Job | null }> + ) as Core.APIPromise<{ result: JobGetResponse | null }> )._thenUnwrap((obj) => obj.result); } } -export interface UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5 { +export class JobListResponsesSinglePage extends SinglePage {} + +export interface LogpushJob { + /** + * Unique id of the job. + */ + id?: number; + + /** + * Name of the dataset. + */ + dataset?: string | null; + + /** + * Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. + * Additional configuration parameters supported by the destination may be + * included. + */ + destination_conf?: string; + + /** + * Flag that indicates if the job is enabled. + */ + enabled?: boolean; + + /** + * If not null, the job is currently failing. Failures are usually repetitive + * (example: no permissions to write to destination bucket). Only the last failure + * is recorded. On successful execution of a job the error_message and last_error + * are set to null. + */ + error_message?: string | null; + + /** + * The frequency at which Cloudflare sends batches of logs to your destination. + * Setting frequency to high sends your logs in larger quantities of smaller files. + * Setting frequency to low sends logs in smaller quantities of larger files. + */ + frequency?: 'high' | 'low' | null; + + /** + * Records the last time for which logs have been successfully pushed. If the last + * successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z + * then the value of this field will be 2018-07-23T10:01:00Z. If the job has never + * run or has just been enabled and hasn't run yet then the field will be empty. + */ + last_complete?: string | null; + + /** + * Records the last time the job failed. If not null, the job is currently failing. + * If null, the job has either never failed or has run successfully at least once + * since last failure. See also the error_message field. + */ + last_error?: string | null; + + /** + * @deprecated: This field is deprecated. Use `output_options` instead. + * Configuration string. It specifies things like requested fields and timestamp + * formats. If migrating from the logpull api, copy the url (full url or just the + * query string) of your call here, and logpush will keep on making this call for + * you, setting start and end times appropriately. + */ + logpull_options?: string | null; + + /** + * Optional human readable job name. Not unique. Cloudflare suggests that you set + * this to a meaningful string, like the domain name, to make it easier to identify + * your job. + */ + name?: string | null; + + /** + * The structured replacement for `logpull_options`. When including this field, the + * `logpull_option` field will be ignored. + */ + output_options?: OutputOptions | null; +} + +/** + * The structured replacement for `logpull_options`. When including this field, the + * `logpull_option` field will be ignored. + */ +export interface OutputOptions { + /** + * String to be prepended before each batch. + */ + batch_prefix?: string | null; + + /** + * String to be appended after each batch. + */ + batch_suffix?: string | null; + + /** + * If set to true, will cause all occurrences of `${` in the generated files to be + * replaced with `x{`. + */ + 'CVE-2021-4428'?: boolean | null; + + /** + * String to join fields. This field be ignored when `record_template` is set. + */ + field_delimiter?: string | null; + + /** + * List of field names to be included in the Logpush output. For the moment, there + * is no option to add all fields at once, so you must specify all the fields names + * you are interested in. + */ + field_names?: Array; + + /** + * Specifies the output type, such as `ndjson` or `csv`. This sets default values + * for the rest of the settings, depending on the chosen output type. Some + * formatting rules, like string quoting, are different between output types. + */ + output_type?: 'ndjson' | 'csv'; + + /** + * String to be inserted in-between the records as separator. + */ + record_delimiter?: string | null; + + /** + * String to be prepended before each record. + */ + record_prefix?: string | null; + + /** + * String to be appended after each record. + */ + record_suffix?: string | null; + + /** + * String to use as template for each record instead of the default comma-separated + * list. All fields used in the template must be present in `field_names` as well, + * otherwise they will end up as null. Format as a Go `text/template` without any + * standard functions, like conditionals, loops, sub-templates, etc. + */ + record_template?: string | null; + + /** + * Floating number to specify sampling rate. Sampling is applied on top of + * filtering, and regardless of the current `sample_interval` of the data. + */ + sample_rate?: number | null; + + /** + * String to specify the format for timestamps, such as `unixnano`, `unix`, or + * `rfc3339`. + */ + timestamp_format?: 'unixnano' | 'unix' | 'rfc3339'; +} + +export interface JobCreateResponse { + /** + * Unique id of the job. + */ + id?: number; + + /** + * Name of the dataset. + */ + dataset?: string | null; + + /** + * Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. + * Additional configuration parameters supported by the destination may be + * included. + */ + destination_conf?: string; + + /** + * Flag that indicates if the job is enabled. + */ + enabled?: boolean; + + /** + * If not null, the job is currently failing. Failures are usually repetitive + * (example: no permissions to write to destination bucket). Only the last failure + * is recorded. On successful execution of a job the error_message and last_error + * are set to null. + */ + error_message?: string | null; + + /** + * The frequency at which Cloudflare sends batches of logs to your destination. + * Setting frequency to high sends your logs in larger quantities of smaller files. + * Setting frequency to low sends logs in smaller quantities of larger files. + */ + frequency?: 'high' | 'low' | null; + + /** + * Records the last time for which logs have been successfully pushed. If the last + * successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z + * then the value of this field will be 2018-07-23T10:01:00Z. If the job has never + * run or has just been enabled and hasn't run yet then the field will be empty. + */ + last_complete?: string | null; + + /** + * Records the last time the job failed. If not null, the job is currently failing. + * If null, the job has either never failed or has run successfully at least once + * since last failure. See also the error_message field. + */ + last_error?: string | null; + + /** + * @deprecated: This field is deprecated. Use `output_options` instead. + * Configuration string. It specifies things like requested fields and timestamp + * formats. If migrating from the logpull api, copy the url (full url or just the + * query string) of your call here, and logpush will keep on making this call for + * you, setting start and end times appropriately. + */ + logpull_options?: string | null; + + /** + * Optional human readable job name. Not unique. Cloudflare suggests that you set + * this to a meaningful string, like the domain name, to make it easier to identify + * your job. + */ + name?: string | null; + + /** + * The structured replacement for `logpull_options`. When including this field, the + * `logpull_option` field will be ignored. + */ + output_options?: OutputOptions | null; +} + +export interface JobUpdateResponse { + /** + * Unique id of the job. + */ + id?: number; + + /** + * Name of the dataset. + */ + dataset?: string | null; + + /** + * Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. + * Additional configuration parameters supported by the destination may be + * included. + */ + destination_conf?: string; + + /** + * Flag that indicates if the job is enabled. + */ + enabled?: boolean; + + /** + * If not null, the job is currently failing. Failures are usually repetitive + * (example: no permissions to write to destination bucket). Only the last failure + * is recorded. On successful execution of a job the error_message and last_error + * are set to null. + */ + error_message?: string | null; + + /** + * The frequency at which Cloudflare sends batches of logs to your destination. + * Setting frequency to high sends your logs in larger quantities of smaller files. + * Setting frequency to low sends logs in smaller quantities of larger files. + */ + frequency?: 'high' | 'low' | null; + + /** + * Records the last time for which logs have been successfully pushed. If the last + * successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z + * then the value of this field will be 2018-07-23T10:01:00Z. If the job has never + * run or has just been enabled and hasn't run yet then the field will be empty. + */ + last_complete?: string | null; + + /** + * Records the last time the job failed. If not null, the job is currently failing. + * If null, the job has either never failed or has run successfully at least once + * since last failure. See also the error_message field. + */ + last_error?: string | null; + + /** + * @deprecated: This field is deprecated. Use `output_options` instead. + * Configuration string. It specifies things like requested fields and timestamp + * formats. If migrating from the logpull api, copy the url (full url or just the + * query string) of your call here, and logpush will keep on making this call for + * you, setting start and end times appropriately. + */ + logpull_options?: string | null; + + /** + * Optional human readable job name. Not unique. Cloudflare suggests that you set + * this to a meaningful string, like the domain name, to make it easier to identify + * your job. + */ + name?: string | null; + + /** + * The structured replacement for `logpull_options`. When including this field, the + * `logpull_option` field will be ignored. + */ + output_options?: OutputOptions | null; +} + +export interface JobListResponse { /** * Unique id of the job. */ @@ -262,11 +564,87 @@ export interface UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5 { * The structured replacement for `logpull_options`. When including this field, the * `logpull_option` field will be ignored. */ - output_options?: DatasetsJobsAPI.OutputOptions | null; + output_options?: OutputOptions | null; } export type JobDeleteResponse = unknown | Array | string; +export interface JobGetResponse { + /** + * Unique id of the job. + */ + id?: number; + + /** + * Name of the dataset. + */ + dataset?: string | null; + + /** + * Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. + * Additional configuration parameters supported by the destination may be + * included. + */ + destination_conf?: string; + + /** + * Flag that indicates if the job is enabled. + */ + enabled?: boolean; + + /** + * If not null, the job is currently failing. Failures are usually repetitive + * (example: no permissions to write to destination bucket). Only the last failure + * is recorded. On successful execution of a job the error_message and last_error + * are set to null. + */ + error_message?: string | null; + + /** + * The frequency at which Cloudflare sends batches of logs to your destination. + * Setting frequency to high sends your logs in larger quantities of smaller files. + * Setting frequency to low sends logs in smaller quantities of larger files. + */ + frequency?: 'high' | 'low' | null; + + /** + * Records the last time for which logs have been successfully pushed. If the last + * successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z + * then the value of this field will be 2018-07-23T10:01:00Z. If the job has never + * run or has just been enabled and hasn't run yet then the field will be empty. + */ + last_complete?: string | null; + + /** + * Records the last time the job failed. If not null, the job is currently failing. + * If null, the job has either never failed or has run successfully at least once + * since last failure. See also the error_message field. + */ + last_error?: string | null; + + /** + * @deprecated: This field is deprecated. Use `output_options` instead. + * Configuration string. It specifies things like requested fields and timestamp + * formats. If migrating from the logpull api, copy the url (full url or just the + * query string) of your call here, and logpush will keep on making this call for + * you, setting start and end times appropriately. + */ + logpull_options?: string | null; + + /** + * Optional human readable job name. Not unique. Cloudflare suggests that you set + * this to a meaningful string, like the domain name, to make it easier to identify + * your job. + */ + name?: string | null; + + /** + * The structured replacement for `logpull_options`. When including this field, the + * `logpull_option` field will be ignored. + */ + output_options?: OutputOptions | null; +} + export interface JobCreateParams { /** * Body param: Uniquely identifies a resource (such as an s3 bucket) where data @@ -325,7 +703,7 @@ export interface JobCreateParams { * Body param: The structured replacement for `logpull_options`. When including * this field, the `logpull_option` field will be ignored. */ - output_options?: DatasetsJobsAPI.OutputOptions | null; + output_options?: OutputOptions | null; /** * Body param: Ownership challenge token to prove destination ownership. @@ -379,7 +757,7 @@ export interface JobUpdateParams { * Body param: The structured replacement for `logpull_options`. When including * this field, the `logpull_option` field will be ignored. */ - output_options?: DatasetsJobsAPI.OutputOptions | null; + output_options?: OutputOptions | null; /** * Body param: Ownership challenge token to prove destination ownership. @@ -431,13 +809,17 @@ export interface JobGetParams { } export namespace Jobs { - export import UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5 = JobsAPI.UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5; + export import LogpushJob = JobsAPI.LogpushJob; + export import OutputOptions = JobsAPI.OutputOptions; + export import JobCreateResponse = JobsAPI.JobCreateResponse; + export import JobUpdateResponse = JobsAPI.JobUpdateResponse; + export import JobListResponse = JobsAPI.JobListResponse; export import JobDeleteResponse = JobsAPI.JobDeleteResponse; + export import JobGetResponse = JobsAPI.JobGetResponse; + export import JobListResponsesSinglePage = JobsAPI.JobListResponsesSinglePage; export import JobCreateParams = JobsAPI.JobCreateParams; export import JobUpdateParams = JobsAPI.JobUpdateParams; export import JobListParams = JobsAPI.JobListParams; export import JobDeleteParams = JobsAPI.JobDeleteParams; export import JobGetParams = JobsAPI.JobGetParams; } - -export { JobsSinglePage }; diff --git a/src/resources/logpush/logpush.ts b/src/resources/logpush/logpush.ts index a5aa768d0b..ff2fe94098 100644 --- a/src/resources/logpush/logpush.ts +++ b/src/resources/logpush/logpush.ts @@ -23,8 +23,14 @@ export namespace Logpush { export import EdgeCreateParams = EdgeAPI.EdgeCreateParams; export import EdgeGetParams = EdgeAPI.EdgeGetParams; export import Jobs = JobsAPI.Jobs; - export import UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5 = JobsAPI.UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5; + export import LogpushJob = JobsAPI.LogpushJob; + export import OutputOptions = JobsAPI.OutputOptions; + export import JobCreateResponse = JobsAPI.JobCreateResponse; + export import JobUpdateResponse = JobsAPI.JobUpdateResponse; + export import JobListResponse = JobsAPI.JobListResponse; export import JobDeleteResponse = JobsAPI.JobDeleteResponse; + export import JobGetResponse = JobsAPI.JobGetResponse; + export import JobListResponsesSinglePage = JobsAPI.JobListResponsesSinglePage; export import JobCreateParams = JobsAPI.JobCreateParams; export import JobUpdateParams = JobsAPI.JobUpdateParams; export import JobListParams = JobsAPI.JobListParams; diff --git a/src/resources/magic-transit/sites/acls.ts b/src/resources/magic-transit/sites/acls.ts index 1a43c15303..198ecb9e26 100644 --- a/src/resources/magic-transit/sites/acls.ts +++ b/src/resources/magic-transit/sites/acls.ts @@ -124,7 +124,7 @@ export interface ACL { */ name?: string; - protocols?: Array; + protocols?: Array; } export interface ACLConfiguration { @@ -152,15 +152,15 @@ export interface ACLConfiguration { } /** - * A valid IPv4 address. + * Array of allowed communication protocols between configured LANs. If no + * protocols are provided, all protocols are allowed. */ -export type Subnet = string | string; +export type AllowedProtocol = 'tcp' | 'udp' | 'icmp'; /** - * Array of allowed communication protocols between configured LANs. If no - * protocols are provided, all protocols are allowed. + * A valid IPv4 address. */ -export type UnnamedSchemaRef87fa9e5fe9f6b8d607be1df57340d916 = 'tcp' | 'udp' | 'icmp'; +export type Subnet = string | string; export interface ACLCreateResponse { acls?: Array; @@ -229,7 +229,7 @@ export namespace ACLCreateParams { */ forward_locally?: boolean; - protocols?: Array; + protocols?: Array; } } @@ -269,7 +269,7 @@ export namespace ACLUpdateParams { */ name?: string; - protocols?: Array; + protocols?: Array; } } @@ -302,8 +302,8 @@ export interface ACLGetParams { export namespace ACLs { export import ACL = ACLsAPI.ACL; export import ACLConfiguration = ACLsAPI.ACLConfiguration; + export import AllowedProtocol = ACLsAPI.AllowedProtocol; export import Subnet = ACLsAPI.Subnet; - export import UnnamedSchemaRef87fa9e5fe9f6b8d607be1df57340d916 = ACLsAPI.UnnamedSchemaRef87fa9e5fe9f6b8d607be1df57340d916; export import ACLCreateResponse = ACLsAPI.ACLCreateResponse; export import ACLUpdateResponse = ACLsAPI.ACLUpdateResponse; export import ACLListResponse = ACLsAPI.ACLListResponse; diff --git a/src/resources/magic-transit/sites/index.ts b/src/resources/magic-transit/sites/index.ts index 6cc414c27a..78d72ebd7a 100644 --- a/src/resources/magic-transit/sites/index.ts +++ b/src/resources/magic-transit/sites/index.ts @@ -3,8 +3,8 @@ export { ACL, ACLConfiguration, + AllowedProtocol, Subnet, - UnnamedSchemaRef87fa9e5fe9f6b8d607be1df57340d916, ACLCreateResponse, ACLUpdateResponse, ACLListResponse, diff --git a/src/resources/magic-transit/sites/sites.ts b/src/resources/magic-transit/sites/sites.ts index 968c701041..7e525bb962 100644 --- a/src/resources/magic-transit/sites/sites.ts +++ b/src/resources/magic-transit/sites/sites.ts @@ -290,8 +290,8 @@ export namespace Sites { export import ACLs = ACLsAPI.ACLs; export import ACL = ACLsAPI.ACL; export import ACLConfiguration = ACLsAPI.ACLConfiguration; + export import AllowedProtocol = ACLsAPI.AllowedProtocol; export import Subnet = ACLsAPI.Subnet; - export import UnnamedSchemaRef87fa9e5fe9f6b8d607be1df57340d916 = ACLsAPI.UnnamedSchemaRef87fa9e5fe9f6b8d607be1df57340d916; export import ACLCreateResponse = ACLsAPI.ACLCreateResponse; export import ACLUpdateResponse = ACLsAPI.ACLUpdateResponse; export import ACLListResponse = ACLsAPI.ACLListResponse; diff --git a/src/resources/origin-tls-client-auth/hostnames/certificates.ts b/src/resources/origin-tls-client-auth/hostnames/certificates.ts index 378e31061c..77de9ecf29 100644 --- a/src/resources/origin-tls-client-auth/hostnames/certificates.ts +++ b/src/resources/origin-tls-client-auth/hostnames/certificates.ts @@ -11,13 +11,16 @@ export class Certificates extends APIResource { * Upload a certificate to be used for client authentication on a hostname. 10 * hostname certificates per zone are allowed. */ - create(params: CertificateCreateParams, options?: Core.RequestOptions): Core.APIPromise { + create( + params: CertificateCreateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { const { zone_id, ...body } = params; return ( this._client.post(`/zones/${zone_id}/origin_tls_client_auth/hostnames/certificates`, { body, ...options, - }) as Core.APIPromise<{ result: Certificate }> + }) as Core.APIPromise<{ result: CertificateCreateResponse }> )._thenUnwrap((obj) => obj.result); } @@ -43,13 +46,13 @@ export class Certificates extends APIResource { certificateId: string, params: CertificateDeleteParams, options?: Core.RequestOptions, - ): Core.APIPromise { + ): Core.APIPromise { const { zone_id, body } = params; return ( this._client.delete( `/zones/${zone_id}/origin_tls_client_auth/hostnames/certificates/${certificateId}`, { body: body, ...options }, - ) as Core.APIPromise<{ result: Certificate }> + ) as Core.APIPromise<{ result: CertificateDeleteResponse }> )._thenUnwrap((obj) => obj.result); } @@ -60,13 +63,13 @@ export class Certificates extends APIResource { certificateId: string, params: CertificateGetParams, options?: Core.RequestOptions, - ): Core.APIPromise { + ): Core.APIPromise { const { zone_id } = params; return ( this._client.get( `/zones/${zone_id}/origin_tls_client_auth/hostnames/certificates/${certificateId}`, options, - ) as Core.APIPromise<{ result: Certificate }> + ) as Core.APIPromise<{ result: CertificateGetResponse }> )._thenUnwrap((obj) => obj.result); } } @@ -120,7 +123,105 @@ export interface Certificate { uploaded_on?: string; } -export interface UnnamedSchemaRefD182888b36f93a765d9ce5aefa3009e9 { +export interface CertificateCreateResponse { + /** + * Identifier + */ + id?: string; + + /** + * The hostname certificate. + */ + certificate?: string; + + /** + * The date when the certificate expires. + */ + expires_on?: string; + + /** + * The certificate authority that issued the certificate. + */ + issuer?: string; + + /** + * The serial number on the uploaded certificate. + */ + serial_number?: string; + + /** + * The type of hash used for the certificate. + */ + signature?: string; + + /** + * Status of the certificate or the association. + */ + status?: + | 'initializing' + | 'pending_deployment' + | 'pending_deletion' + | 'active' + | 'deleted' + | 'deployment_timed_out' + | 'deletion_timed_out'; + + /** + * The time when the certificate was uploaded. + */ + uploaded_on?: string; +} + +export interface CertificateDeleteResponse { + /** + * Identifier + */ + id?: string; + + /** + * The hostname certificate. + */ + certificate?: string; + + /** + * The date when the certificate expires. + */ + expires_on?: string; + + /** + * The certificate authority that issued the certificate. + */ + issuer?: string; + + /** + * The serial number on the uploaded certificate. + */ + serial_number?: string; + + /** + * The type of hash used for the certificate. + */ + signature?: string; + + /** + * Status of the certificate or the association. + */ + status?: + | 'initializing' + | 'pending_deployment' + | 'pending_deletion' + | 'active' + | 'deleted' + | 'deployment_timed_out' + | 'deletion_timed_out'; + + /** + * The time when the certificate was uploaded. + */ + uploaded_on?: string; +} + +export interface CertificateGetResponse { /** * Identifier */ @@ -214,7 +315,9 @@ export interface CertificateGetParams { export namespace Certificates { export import Certificate = CertificatesAPI.Certificate; - export import UnnamedSchemaRefD182888b36f93a765d9ce5aefa3009e9 = CertificatesAPI.UnnamedSchemaRefD182888b36f93a765d9ce5aefa3009e9; + export import CertificateCreateResponse = CertificatesAPI.CertificateCreateResponse; + export import CertificateDeleteResponse = CertificatesAPI.CertificateDeleteResponse; + export import CertificateGetResponse = CertificatesAPI.CertificateGetResponse; export import CertificateCreateParams = CertificatesAPI.CertificateCreateParams; export import CertificateListParams = CertificatesAPI.CertificateListParams; export import CertificateDeleteParams = CertificatesAPI.CertificateDeleteParams; diff --git a/src/resources/origin-tls-client-auth/hostnames/hostnames.ts b/src/resources/origin-tls-client-auth/hostnames/hostnames.ts index 577392b886..db9e2a45fa 100644 --- a/src/resources/origin-tls-client-auth/hostnames/hostnames.ts +++ b/src/resources/origin-tls-client-auth/hostnames/hostnames.ts @@ -217,7 +217,9 @@ export namespace Hostnames { export import HostnameGetParams = HostnamesAPI.HostnameGetParams; export import Certificates = CertificatesAPI.Certificates; export import Certificate = CertificatesAPI.Certificate; - export import UnnamedSchemaRefD182888b36f93a765d9ce5aefa3009e9 = CertificatesAPI.UnnamedSchemaRefD182888b36f93a765d9ce5aefa3009e9; + export import CertificateCreateResponse = CertificatesAPI.CertificateCreateResponse; + export import CertificateDeleteResponse = CertificatesAPI.CertificateDeleteResponse; + export import CertificateGetResponse = CertificatesAPI.CertificateGetResponse; export import CertificateCreateParams = CertificatesAPI.CertificateCreateParams; export import CertificateListParams = CertificatesAPI.CertificateListParams; export import CertificateDeleteParams = CertificatesAPI.CertificateDeleteParams; diff --git a/src/resources/origin-tls-client-auth/hostnames/index.ts b/src/resources/origin-tls-client-auth/hostnames/index.ts index eef250404a..d88d43504b 100644 --- a/src/resources/origin-tls-client-auth/hostnames/index.ts +++ b/src/resources/origin-tls-client-auth/hostnames/index.ts @@ -11,7 +11,9 @@ export { } from './hostnames'; export { Certificate, - UnnamedSchemaRefD182888b36f93a765d9ce5aefa3009e9, + CertificateCreateResponse, + CertificateDeleteResponse, + CertificateGetResponse, CertificateCreateParams, CertificateListParams, CertificateDeleteParams, diff --git a/src/resources/queues/consumers.ts b/src/resources/queues/consumers.ts index 8ef073925c..9efbb13e3e 100644 --- a/src/resources/queues/consumers.ts +++ b/src/resources/queues/consumers.ts @@ -88,17 +88,6 @@ export interface Consumer { settings?: QueuesAPI.QueueSettings; } -export interface UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5 { - /** - * The maximum number of messages to include in a batch - */ - batch_size?: number; - - max_retries?: number; - - max_wait_time_ms?: number; -} - export interface ConsumerCreateResponse { created_on?: unknown; @@ -110,7 +99,20 @@ export interface ConsumerCreateResponse { script_name?: unknown; - settings?: UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5; + settings?: ConsumerCreateResponse.Settings; +} + +export namespace ConsumerCreateResponse { + export interface Settings { + /** + * The maximum number of messages to include in a batch + */ + batch_size?: number; + + max_retries?: number; + + max_wait_time_ms?: number; + } } export interface ConsumerUpdateResponse { @@ -151,7 +153,20 @@ export namespace ConsumerGetResponse { service?: unknown; - settings?: ConsumersAPI.UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5; + settings?: ConsumerGetResponseItem.Settings; + } + + export namespace ConsumerGetResponseItem { + export interface Settings { + /** + * The maximum number of messages to include in a batch + */ + batch_size?: number; + + max_retries?: number; + + max_wait_time_ms?: number; + } } } @@ -200,7 +215,6 @@ export interface ConsumerGetParams { export namespace Consumers { export import Consumer = ConsumersAPI.Consumer; - export import UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5 = ConsumersAPI.UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5; export import ConsumerCreateResponse = ConsumersAPI.ConsumerCreateResponse; export import ConsumerUpdateResponse = ConsumersAPI.ConsumerUpdateResponse; export import ConsumerDeleteResponse = ConsumersAPI.ConsumerDeleteResponse; diff --git a/src/resources/queues/index.ts b/src/resources/queues/index.ts index fd1e1b6e98..a152604a51 100644 --- a/src/resources/queues/index.ts +++ b/src/resources/queues/index.ts @@ -2,7 +2,6 @@ export { Consumer, - UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5, ConsumerCreateResponse, ConsumerUpdateResponse, ConsumerDeleteResponse, diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts index d82bb391d6..664740d9fd 100644 --- a/src/resources/queues/queues.ts +++ b/src/resources/queues/queues.ts @@ -246,7 +246,6 @@ export interface QueueGetParams { export namespace Queues { export import Consumers = ConsumersAPI.Consumers; export import Consumer = ConsumersAPI.Consumer; - export import UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5 = ConsumersAPI.UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5; export import ConsumerCreateResponse = ConsumersAPI.ConsumerCreateResponse; export import ConsumerUpdateResponse = ConsumersAPI.ConsumerUpdateResponse; export import ConsumerDeleteResponse = ConsumersAPI.ConsumerDeleteResponse; diff --git a/src/resources/secondary-dns/incoming.ts b/src/resources/secondary-dns/incoming.ts index 09ef85fd8d..1db7e1b250 100644 --- a/src/resources/secondary-dns/incoming.ts +++ b/src/resources/secondary-dns/incoming.ts @@ -4,7 +4,7 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as IncomingAPI from 'cloudflare/resources/secondary-dns/incoming'; -export class Incoming extends APIResource { +export class IncomingResource extends APIResource { /** * Create secondary zone configuration for incoming zone transfers. */ @@ -64,7 +64,7 @@ export class Incoming extends APIResource { } } -export interface UnnamedSchemaRef150c555e27f53dbb40cdce4d6644ff0a { +export interface Incoming { id?: string; /** @@ -290,8 +290,8 @@ export interface IncomingGetParams { zone_id: string; } -export namespace Incoming { - export import UnnamedSchemaRef150c555e27f53dbb40cdce4d6644ff0a = IncomingAPI.UnnamedSchemaRef150c555e27f53dbb40cdce4d6644ff0a; +export namespace IncomingResource { + export import Incoming = IncomingAPI.Incoming; export import IncomingCreateResponse = IncomingAPI.IncomingCreateResponse; export import IncomingUpdateResponse = IncomingAPI.IncomingUpdateResponse; export import IncomingDeleteResponse = IncomingAPI.IncomingDeleteResponse; diff --git a/src/resources/secondary-dns/index.ts b/src/resources/secondary-dns/index.ts index d86999b96f..98a5167c67 100644 --- a/src/resources/secondary-dns/index.ts +++ b/src/resources/secondary-dns/index.ts @@ -14,8 +14,8 @@ export { export { DisableTransfer, EnableTransfer, + Outgoing, OutgoingStatus, - UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564, OutgoingCreateResponse, OutgoingUpdateResponse, OutgoingDeleteResponse, @@ -28,19 +28,34 @@ export { OutgoingEnableParams, OutgoingForceNotifyParams, OutgoingGetParams, - Outgoing, + OutgoingResource, } from './outgoing/index'; export { ForceAXFR, ForceAXFRCreateParams, ForceAXFRResource } from './force-axfr'; +export { + Incoming, + IncomingCreateResponse, + IncomingUpdateResponse, + IncomingDeleteResponse, + IncomingGetResponse, + IncomingCreateParams, + IncomingUpdateParams, + IncomingDeleteParams, + IncomingGetParams, + IncomingResource, +} from './incoming'; export { Peer, - UnnamedSchemaRefBc727f0a53d75f2b531245a82603fbe0, + PeerCreateResponse, + PeerUpdateResponse, + PeerListResponse, PeerDeleteResponse, + PeerGetResponse, PeerCreateParams, PeerUpdateParams, PeerListParams, PeerDeleteParams, PeerGetParams, - PeersSinglePage, + PeerListResponsesSinglePage, Peers, } from './peers'; export { SecondaryDNS } from './secondary-dns'; @@ -55,15 +70,3 @@ export { TSIGsSinglePage, TSIGs, } from './tsigs'; -export { - UnnamedSchemaRef150c555e27f53dbb40cdce4d6644ff0a, - IncomingCreateResponse, - IncomingUpdateResponse, - IncomingDeleteResponse, - IncomingGetResponse, - IncomingCreateParams, - IncomingUpdateParams, - IncomingDeleteParams, - IncomingGetParams, - Incoming, -} from './incoming'; diff --git a/src/resources/secondary-dns/outgoing/index.ts b/src/resources/secondary-dns/outgoing/index.ts index c8a325082d..029bf48f18 100644 --- a/src/resources/secondary-dns/outgoing/index.ts +++ b/src/resources/secondary-dns/outgoing/index.ts @@ -3,8 +3,8 @@ export { DisableTransfer, EnableTransfer, + Outgoing, OutgoingStatus, - UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564, OutgoingCreateResponse, OutgoingUpdateResponse, OutgoingDeleteResponse, @@ -17,6 +17,6 @@ export { OutgoingEnableParams, OutgoingForceNotifyParams, OutgoingGetParams, - Outgoing, + OutgoingResource, } from './outgoing'; export { StatusGetParams, Status } from './status'; diff --git a/src/resources/secondary-dns/outgoing/outgoing.ts b/src/resources/secondary-dns/outgoing/outgoing.ts index befbb7db80..33a24b1bb0 100644 --- a/src/resources/secondary-dns/outgoing/outgoing.ts +++ b/src/resources/secondary-dns/outgoing/outgoing.ts @@ -5,7 +5,7 @@ import { APIResource } from 'cloudflare/resource'; import * as OutgoingAPI from 'cloudflare/resources/secondary-dns/outgoing/outgoing'; import * as StatusAPI from 'cloudflare/resources/secondary-dns/outgoing/status'; -export class Outgoing extends APIResource { +export class OutgoingResource extends APIResource { status: StatusAPI.Status = new StatusAPI.Status(this._client); /** @@ -120,12 +120,7 @@ export type DisableTransfer = string; */ export type EnableTransfer = string; -/** - * The zone transfer status of a primary zone - */ -export type OutgoingStatus = string | null; - -export interface UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564 { +export interface Outgoing { id?: string; /** @@ -159,6 +154,11 @@ export interface UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564 { soa_serial?: number; } +/** + * The zone transfer status of a primary zone + */ +export type OutgoingStatus = string | null; + export interface OutgoingCreateResponse { id?: string; @@ -357,11 +357,11 @@ export interface OutgoingGetParams { zone_id: string; } -export namespace Outgoing { +export namespace OutgoingResource { export import DisableTransfer = OutgoingAPI.DisableTransfer; export import EnableTransfer = OutgoingAPI.EnableTransfer; + export import Outgoing = OutgoingAPI.Outgoing; export import OutgoingStatus = OutgoingAPI.OutgoingStatus; - export import UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564 = OutgoingAPI.UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564; export import OutgoingCreateResponse = OutgoingAPI.OutgoingCreateResponse; export import OutgoingUpdateResponse = OutgoingAPI.OutgoingUpdateResponse; export import OutgoingDeleteResponse = OutgoingAPI.OutgoingDeleteResponse; diff --git a/src/resources/secondary-dns/peers.ts b/src/resources/secondary-dns/peers.ts index 4a46552b36..7f953a5347 100644 --- a/src/resources/secondary-dns/peers.ts +++ b/src/resources/secondary-dns/peers.ts @@ -9,35 +9,46 @@ export class Peers extends APIResource { /** * Create Peer. */ - create(params: PeerCreateParams, options?: Core.RequestOptions): Core.APIPromise { + create(params: PeerCreateParams, options?: Core.RequestOptions): Core.APIPromise { const { account_id, body } = params; return ( this._client.post(`/accounts/${account_id}/secondary_dns/peers`, { body: body, ...options, - }) as Core.APIPromise<{ result: Peer }> + }) as Core.APIPromise<{ result: PeerCreateResponse }> )._thenUnwrap((obj) => obj.result); } /** * Modify Peer. */ - update(peerId: string, params: PeerUpdateParams, options?: Core.RequestOptions): Core.APIPromise { + update( + peerId: string, + params: PeerUpdateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { const { account_id, ...body } = params; return ( this._client.put(`/accounts/${account_id}/secondary_dns/peers/${peerId}`, { body, ...options, - }) as Core.APIPromise<{ result: Peer }> + }) as Core.APIPromise<{ result: PeerUpdateResponse }> )._thenUnwrap((obj) => obj.result); } /** * List Peers. */ - list(params: PeerListParams, options?: Core.RequestOptions): Core.PagePromise { + list( + params: PeerListParams, + options?: Core.RequestOptions, + ): Core.PagePromise { const { account_id } = params; - return this._client.getAPIList(`/accounts/${account_id}/secondary_dns/peers`, PeersSinglePage, options); + return this._client.getAPIList( + `/accounts/${account_id}/secondary_dns/peers`, + PeerListResponsesSinglePage, + options, + ); } /** @@ -60,17 +71,21 @@ export class Peers extends APIResource { /** * Get Peer. */ - get(peerId: string, params: PeerGetParams, options?: Core.RequestOptions): Core.APIPromise { + get( + peerId: string, + params: PeerGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { const { account_id } = params; return ( this._client.get(`/accounts/${account_id}/secondary_dns/peers/${peerId}`, options) as Core.APIPromise<{ - result: Peer; + result: PeerGetResponse; }> )._thenUnwrap((obj) => obj.result); } } -export class PeersSinglePage extends SinglePage {} +export class PeerListResponsesSinglePage extends SinglePage {} export interface Peer { id: string; @@ -107,7 +122,77 @@ export interface Peer { tsig_id?: string; } -export interface UnnamedSchemaRefBc727f0a53d75f2b531245a82603fbe0 { +export interface PeerCreateResponse { + id: string; + + /** + * The name of the peer. + */ + name: string; + + /** + * IPv4/IPv6 address of primary or secondary nameserver, depending on what zone + * this peer is linked to. For primary zones this IP defines the IP of the + * secondary nameserver Cloudflare will NOTIFY upon zone changes. For secondary + * zones this IP defines the IP of the primary nameserver Cloudflare will send + * AXFR/IXFR requests to. + */ + ip?: string; + + /** + * Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary + * zones. + */ + ixfr_enable?: boolean; + + /** + * DNS port of primary or secondary nameserver, depending on what zone this peer is + * linked to. + */ + port?: number; + + /** + * TSIG authentication will be used for zone transfer if configured. + */ + tsig_id?: string; +} + +export interface PeerUpdateResponse { + id: string; + + /** + * The name of the peer. + */ + name: string; + + /** + * IPv4/IPv6 address of primary or secondary nameserver, depending on what zone + * this peer is linked to. For primary zones this IP defines the IP of the + * secondary nameserver Cloudflare will NOTIFY upon zone changes. For secondary + * zones this IP defines the IP of the primary nameserver Cloudflare will send + * AXFR/IXFR requests to. + */ + ip?: string; + + /** + * Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary + * zones. + */ + ixfr_enable?: boolean; + + /** + * DNS port of primary or secondary nameserver, depending on what zone this peer is + * linked to. + */ + port?: number; + + /** + * TSIG authentication will be used for zone transfer if configured. + */ + tsig_id?: string; +} + +export interface PeerListResponse { id: string; /** @@ -146,6 +231,41 @@ export interface PeerDeleteResponse { id?: string; } +export interface PeerGetResponse { + id: string; + + /** + * The name of the peer. + */ + name: string; + + /** + * IPv4/IPv6 address of primary or secondary nameserver, depending on what zone + * this peer is linked to. For primary zones this IP defines the IP of the + * secondary nameserver Cloudflare will NOTIFY upon zone changes. For secondary + * zones this IP defines the IP of the primary nameserver Cloudflare will send + * AXFR/IXFR requests to. + */ + ip?: string; + + /** + * Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary + * zones. + */ + ixfr_enable?: boolean; + + /** + * DNS port of primary or secondary nameserver, depending on what zone this peer is + * linked to. + */ + port?: number; + + /** + * TSIG authentication will be used for zone transfer if configured. + */ + tsig_id?: string; +} + export interface PeerCreateParams { /** * Path param: @@ -218,9 +338,12 @@ export interface PeerGetParams { export namespace Peers { export import Peer = PeersAPI.Peer; - export import UnnamedSchemaRefBc727f0a53d75f2b531245a82603fbe0 = PeersAPI.UnnamedSchemaRefBc727f0a53d75f2b531245a82603fbe0; + export import PeerCreateResponse = PeersAPI.PeerCreateResponse; + export import PeerUpdateResponse = PeersAPI.PeerUpdateResponse; + export import PeerListResponse = PeersAPI.PeerListResponse; export import PeerDeleteResponse = PeersAPI.PeerDeleteResponse; - export import PeersSinglePage = PeersAPI.PeersSinglePage; + export import PeerGetResponse = PeersAPI.PeerGetResponse; + export import PeerListResponsesSinglePage = PeersAPI.PeerListResponsesSinglePage; export import PeerCreateParams = PeersAPI.PeerCreateParams; export import PeerUpdateParams = PeersAPI.PeerUpdateParams; export import PeerListParams = PeersAPI.PeerListParams; diff --git a/src/resources/secondary-dns/secondary-dns.ts b/src/resources/secondary-dns/secondary-dns.ts index 5ac461d468..7c6233f06a 100644 --- a/src/resources/secondary-dns/secondary-dns.ts +++ b/src/resources/secondary-dns/secondary-dns.ts @@ -10,8 +10,8 @@ import * as OutgoingAPI from 'cloudflare/resources/secondary-dns/outgoing/outgoi export class SecondaryDNS extends APIResource { forceAXFR: ForceAXFRAPI.ForceAXFRResource = new ForceAXFRAPI.ForceAXFRResource(this._client); - incoming: IncomingAPI.Incoming = new IncomingAPI.Incoming(this._client); - outgoing: OutgoingAPI.Outgoing = new OutgoingAPI.Outgoing(this._client); + incoming: IncomingAPI.IncomingResource = new IncomingAPI.IncomingResource(this._client); + outgoing: OutgoingAPI.OutgoingResource = new OutgoingAPI.OutgoingResource(this._client); acls: ACLsAPI.ACLs = new ACLsAPI.ACLs(this._client); peers: PeersAPI.Peers = new PeersAPI.Peers(this._client); tsigs: TSIGsAPI.TSIGs = new TSIGsAPI.TSIGs(this._client); @@ -21,8 +21,8 @@ export namespace SecondaryDNS { export import ForceAXFRResource = ForceAXFRAPI.ForceAXFRResource; export import ForceAXFR = ForceAXFRAPI.ForceAXFR; export import ForceAXFRCreateParams = ForceAXFRAPI.ForceAXFRCreateParams; + export import IncomingResource = IncomingAPI.IncomingResource; export import Incoming = IncomingAPI.Incoming; - export import UnnamedSchemaRef150c555e27f53dbb40cdce4d6644ff0a = IncomingAPI.UnnamedSchemaRef150c555e27f53dbb40cdce4d6644ff0a; export import IncomingCreateResponse = IncomingAPI.IncomingCreateResponse; export import IncomingUpdateResponse = IncomingAPI.IncomingUpdateResponse; export import IncomingDeleteResponse = IncomingAPI.IncomingDeleteResponse; @@ -31,11 +31,11 @@ export namespace SecondaryDNS { export import IncomingUpdateParams = IncomingAPI.IncomingUpdateParams; export import IncomingDeleteParams = IncomingAPI.IncomingDeleteParams; export import IncomingGetParams = IncomingAPI.IncomingGetParams; - export import Outgoing = OutgoingAPI.Outgoing; + export import OutgoingResource = OutgoingAPI.OutgoingResource; export import DisableTransfer = OutgoingAPI.DisableTransfer; export import EnableTransfer = OutgoingAPI.EnableTransfer; + export import Outgoing = OutgoingAPI.Outgoing; export import OutgoingStatus = OutgoingAPI.OutgoingStatus; - export import UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564 = OutgoingAPI.UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564; export import OutgoingCreateResponse = OutgoingAPI.OutgoingCreateResponse; export import OutgoingUpdateResponse = OutgoingAPI.OutgoingUpdateResponse; export import OutgoingDeleteResponse = OutgoingAPI.OutgoingDeleteResponse; @@ -59,9 +59,12 @@ export namespace SecondaryDNS { export import ACLGetParams = ACLsAPI.ACLGetParams; export import Peers = PeersAPI.Peers; export import Peer = PeersAPI.Peer; - export import UnnamedSchemaRefBc727f0a53d75f2b531245a82603fbe0 = PeersAPI.UnnamedSchemaRefBc727f0a53d75f2b531245a82603fbe0; + export import PeerCreateResponse = PeersAPI.PeerCreateResponse; + export import PeerUpdateResponse = PeersAPI.PeerUpdateResponse; + export import PeerListResponse = PeersAPI.PeerListResponse; export import PeerDeleteResponse = PeersAPI.PeerDeleteResponse; - export import PeersSinglePage = PeersAPI.PeersSinglePage; + export import PeerGetResponse = PeersAPI.PeerGetResponse; + export import PeerListResponsesSinglePage = PeersAPI.PeerListResponsesSinglePage; export import PeerCreateParams = PeersAPI.PeerCreateParams; export import PeerUpdateParams = PeersAPI.PeerUpdateParams; export import PeerListParams = PeersAPI.PeerListParams; diff --git a/src/resources/waiting-rooms/events/events.ts b/src/resources/waiting-rooms/events/events.ts index 6a88224a42..134cbcd201 100644 --- a/src/resources/waiting-rooms/events/events.ts +++ b/src/resources/waiting-rooms/events/events.ts @@ -214,98 +214,6 @@ export interface Event { total_active_users?: number | null; } -export interface UnnamedSchemaRef229c159575bc68a9c21f5a1615629cf6 { - id?: string; - - created_on?: string; - - /** - * If set, the event will override the waiting room's `custom_page_html` property - * while it is active. If null, the event will inherit it. - */ - custom_page_html?: string | null; - - /** - * A note that you can use to add more details about the event. - */ - description?: string; - - /** - * If set, the event will override the waiting room's `disable_session_renewal` - * property while it is active. If null, the event will inherit it. - */ - disable_session_renewal?: boolean | null; - - /** - * An ISO 8601 timestamp that marks the end of the event. - */ - event_end_time?: string; - - /** - * An ISO 8601 timestamp that marks the start of the event. At this time, queued - * users will be processed with the event's configuration. The start time must be - * at least one minute before `event_end_time`. - */ - event_start_time?: string; - - modified_on?: string; - - /** - * A unique name to identify the event. Only alphanumeric characters, hyphens and - * underscores are allowed. - */ - name?: string; - - /** - * If set, the event will override the waiting room's `new_users_per_minute` - * property while it is active. If null, the event will inherit it. This can only - * be set if the event's `total_active_users` property is also set. - */ - new_users_per_minute?: number | null; - - /** - * An ISO 8601 timestamp that marks when to begin queueing all users before the - * event starts. The prequeue must start at least five minutes before - * `event_start_time`. - */ - prequeue_start_time?: string | null; - - /** - * If set, the event will override the waiting room's `queueing_method` property - * while it is active. If null, the event will inherit it. - */ - queueing_method?: string | null; - - /** - * If set, the event will override the waiting room's `session_duration` property - * while it is active. If null, the event will inherit it. - */ - session_duration?: number | null; - - /** - * If enabled, users in the prequeue will be shuffled randomly at the - * `event_start_time`. Requires that `prequeue_start_time` is not null. This is - * useful for situations when many users will join the event prequeue at the same - * time and you want to shuffle them to ensure fairness. Naturally, it makes the - * most sense to enable this feature when the `queueing_method` during the event - * respects ordering such as **fifo**, or else the shuffling may be unnecessary. - */ - shuffle_at_event_start?: boolean; - - /** - * Suspends or allows an event. If set to `true`, the event is ignored and traffic - * will be handled based on the waiting room configuration. - */ - suspended?: boolean; - - /** - * If set, the event will override the waiting room's `total_active_users` property - * while it is active. If null, the event will inherit it. This can only be set if - * the event's `new_users_per_minute` property is also set. - */ - total_active_users?: number | null; -} - export interface EventDeleteResponse { id?: string; } @@ -626,7 +534,6 @@ export interface EventGetParams { export namespace Events { export import Event = EventsAPI.Event; - export import UnnamedSchemaRef229c159575bc68a9c21f5a1615629cf6 = EventsAPI.UnnamedSchemaRef229c159575bc68a9c21f5a1615629cf6; export import EventDeleteResponse = EventsAPI.EventDeleteResponse; export import EventsSinglePage = EventsAPI.EventsSinglePage; export import EventCreateParams = EventsAPI.EventCreateParams; diff --git a/src/resources/waiting-rooms/events/index.ts b/src/resources/waiting-rooms/events/index.ts index 39f368ad87..12b872fcc4 100644 --- a/src/resources/waiting-rooms/events/index.ts +++ b/src/resources/waiting-rooms/events/index.ts @@ -2,7 +2,6 @@ export { Event, - UnnamedSchemaRef229c159575bc68a9c21f5a1615629cf6, EventDeleteResponse, EventCreateParams, EventUpdateParams, diff --git a/src/resources/waiting-rooms/index.ts b/src/resources/waiting-rooms/index.ts index 9219dd27e6..bf571e6dc1 100644 --- a/src/resources/waiting-rooms/index.ts +++ b/src/resources/waiting-rooms/index.ts @@ -2,7 +2,6 @@ export { Event, - UnnamedSchemaRef229c159575bc68a9c21f5a1615629cf6, EventDeleteResponse, EventCreateParams, EventUpdateParams, @@ -26,7 +25,6 @@ export { } from './settings'; export { StatusGetResponse, StatusGetParams, Statuses } from './statuses'; export { - UnnamedSchemaRefF1c0ba8f44601f2db2e07b9397b6c430, WaitingRoomRule, RuleCreateResponse, RuleUpdateResponse, diff --git a/src/resources/waiting-rooms/rules.ts b/src/resources/waiting-rooms/rules.ts index f748028059..c3284a2fc0 100644 --- a/src/resources/waiting-rooms/rules.ts +++ b/src/resources/waiting-rooms/rules.ts @@ -97,8 +97,6 @@ export class Rules extends APIResource { export class WaitingRoomRulesSinglePage extends SinglePage {} -export type UnnamedSchemaRefF1c0ba8f44601f2db2e07b9397b6c430 = Array; - export interface WaitingRoomRule { /** * The ID of the rule. @@ -284,7 +282,6 @@ export namespace RuleEditParams { } export namespace Rules { - export import UnnamedSchemaRefF1c0ba8f44601f2db2e07b9397b6c430 = RulesAPI.UnnamedSchemaRefF1c0ba8f44601f2db2e07b9397b6c430; export import WaitingRoomRule = RulesAPI.WaitingRoomRule; export import RuleCreateResponse = RulesAPI.RuleCreateResponse; export import RuleUpdateResponse = RulesAPI.RuleUpdateResponse; diff --git a/src/resources/waiting-rooms/waiting-rooms.ts b/src/resources/waiting-rooms/waiting-rooms.ts index e3e13da104..4cc6e0656f 100644 --- a/src/resources/waiting-rooms/waiting-rooms.ts +++ b/src/resources/waiting-rooms/waiting-rooms.ts @@ -1869,7 +1869,6 @@ export namespace WaitingRooms { export import PagePreviewParams = PageAPI.PagePreviewParams; export import Events = EventsAPI.Events; export import Event = EventsAPI.Event; - export import UnnamedSchemaRef229c159575bc68a9c21f5a1615629cf6 = EventsAPI.UnnamedSchemaRef229c159575bc68a9c21f5a1615629cf6; export import EventDeleteResponse = EventsAPI.EventDeleteResponse; export import EventsSinglePage = EventsAPI.EventsSinglePage; export import EventCreateParams = EventsAPI.EventCreateParams; @@ -1879,7 +1878,6 @@ export namespace WaitingRooms { export import EventEditParams = EventsAPI.EventEditParams; export import EventGetParams = EventsAPI.EventGetParams; export import Rules = RulesAPI.Rules; - export import UnnamedSchemaRefF1c0ba8f44601f2db2e07b9397b6c430 = RulesAPI.UnnamedSchemaRefF1c0ba8f44601f2db2e07b9397b6c430; export import WaitingRoomRule = RulesAPI.WaitingRoomRule; export import RuleCreateResponse = RulesAPI.RuleCreateResponse; export import RuleUpdateResponse = RulesAPI.RuleUpdateResponse; diff --git a/src/resources/web3/hostnames/hostnames.ts b/src/resources/web3/hostnames/hostnames.ts index 178a2f653a..b4868b3be0 100644 --- a/src/resources/web3/hostnames/hostnames.ts +++ b/src/resources/web3/hostnames/hostnames.ts @@ -120,42 +120,6 @@ export interface Hostname { target?: 'ethereum' | 'ipfs' | 'ipfs_universal_path'; } -export interface UnnamedSchemaRef2e420942fb77cd2cd2ba3ca7b5f32e1e { - /** - * Identifier - */ - id?: string; - - created_on?: string; - - /** - * An optional description of the hostname. - */ - description?: string; - - /** - * DNSLink value used if the target is ipfs. - */ - dnslink?: string; - - modified_on?: string; - - /** - * The hostname that will point to the target gateway via CNAME. - */ - name?: string; - - /** - * Status of the hostname's activation. - */ - status?: 'active' | 'pending' | 'deleting' | 'error'; - - /** - * Target gateway of the hostname. - */ - target?: 'ethereum' | 'ipfs' | 'ipfs_universal_path'; -} - export interface HostnameDeleteResponse { /** * Identifier @@ -196,7 +160,6 @@ export interface HostnameEditParams { export namespace Hostnames { export import Hostname = HostnamesAPI.Hostname; - export import UnnamedSchemaRef2e420942fb77cd2cd2ba3ca7b5f32e1e = HostnamesAPI.UnnamedSchemaRef2e420942fb77cd2cd2ba3ca7b5f32e1e; export import HostnameDeleteResponse = HostnamesAPI.HostnameDeleteResponse; export import HostnamesSinglePage = HostnamesAPI.HostnamesSinglePage; export import HostnameCreateParams = HostnamesAPI.HostnameCreateParams; diff --git a/src/resources/web3/hostnames/index.ts b/src/resources/web3/hostnames/index.ts index af3a129504..8bbfee4eaa 100644 --- a/src/resources/web3/hostnames/index.ts +++ b/src/resources/web3/hostnames/index.ts @@ -2,7 +2,6 @@ export { Hostname, - UnnamedSchemaRef2e420942fb77cd2cd2ba3ca7b5f32e1e, HostnameDeleteResponse, HostnameCreateParams, HostnameDeleteParams, diff --git a/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/content-lists.ts b/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/content-lists.ts index e2c8bd94df..b0531fe5df 100644 --- a/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/content-lists.ts +++ b/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/content-lists.ts @@ -87,7 +87,6 @@ export namespace ContentLists { export import ContentList = ContentListsAPI.ContentList; export import ContentListUpdateParams = ContentListsAPI.ContentListUpdateParams; export import Entries = EntriesAPI.Entries; - export import UnnamedSchemaRef5e618833803e286db9ee7c73727f8b86 = EntriesAPI.UnnamedSchemaRef5e618833803e286db9ee7c73727f8b86; export import EntryCreateResponse = EntriesAPI.EntryCreateResponse; export import EntryUpdateResponse = EntriesAPI.EntryUpdateResponse; export import EntryListResponse = EntriesAPI.EntryListResponse; diff --git a/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/entries.ts b/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/entries.ts index 4dfd5f1e94..af89622e73 100644 --- a/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/entries.ts +++ b/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/entries.ts @@ -92,35 +92,6 @@ export class Entries extends APIResource { } } -/** - * Content list entry to be blocked. - */ -export interface UnnamedSchemaRef5e618833803e286db9ee7c73727f8b86 { - /** - * Identifier - */ - id?: string; - - /** - * CID or content path of content to block. - */ - content?: string; - - created_on?: string; - - /** - * An optional description of the content list entry. - */ - description?: string; - - modified_on?: string; - - /** - * Type of content list entry to block. - */ - type?: 'cid' | 'content_path'; -} - /** * Content list entry to be blocked. */ @@ -290,7 +261,6 @@ export interface EntryUpdateParams { export type EntryDeleteParams = unknown; export namespace Entries { - export import UnnamedSchemaRef5e618833803e286db9ee7c73727f8b86 = EntriesAPI.UnnamedSchemaRef5e618833803e286db9ee7c73727f8b86; export import EntryCreateResponse = EntriesAPI.EntryCreateResponse; export import EntryUpdateResponse = EntriesAPI.EntryUpdateResponse; export import EntryListResponse = EntriesAPI.EntryListResponse; diff --git a/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/index.ts b/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/index.ts index e0bbdab001..a025f52b77 100644 --- a/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/index.ts +++ b/src/resources/web3/hostnames/ipfs-universal-paths/content-lists/index.ts @@ -2,7 +2,6 @@ export { ContentList, ContentListUpdateParams, ContentLists } from './content-lists'; export { - UnnamedSchemaRef5e618833803e286db9ee7c73727f8b86, EntryCreateResponse, EntryUpdateResponse, EntryListResponse, diff --git a/src/resources/web3/index.ts b/src/resources/web3/index.ts index 2abf353c70..e2afe2146d 100644 --- a/src/resources/web3/index.ts +++ b/src/resources/web3/index.ts @@ -2,7 +2,6 @@ export { Hostname, - UnnamedSchemaRef2e420942fb77cd2cd2ba3ca7b5f32e1e, HostnameDeleteResponse, HostnameCreateParams, HostnameDeleteParams, diff --git a/src/resources/web3/web3.ts b/src/resources/web3/web3.ts index b33fc9536d..7458656a61 100644 --- a/src/resources/web3/web3.ts +++ b/src/resources/web3/web3.ts @@ -10,7 +10,6 @@ export class Web3 extends APIResource { export namespace Web3 { export import Hostnames = HostnamesAPI.Hostnames; export import Hostname = HostnamesAPI.Hostname; - export import UnnamedSchemaRef2e420942fb77cd2cd2ba3ca7b5f32e1e = HostnamesAPI.UnnamedSchemaRef2e420942fb77cd2cd2ba3ca7b5f32e1e; export import HostnameDeleteResponse = HostnamesAPI.HostnameDeleteResponse; export import HostnamesSinglePage = HostnamesAPI.HostnamesSinglePage; export import HostnameCreateParams = HostnamesAPI.HostnameCreateParams; diff --git a/src/resources/workers/scripts/index.ts b/src/resources/workers/scripts/index.ts index e3e67c384b..f9024cf2d7 100644 --- a/src/resources/workers/scripts/index.ts +++ b/src/resources/workers/scripts/index.ts @@ -19,6 +19,14 @@ export { DeploymentGetParams, Deployments, } from './deployments'; +export { + Schedule, + ScheduleUpdateResponse, + ScheduleGetResponse, + ScheduleUpdateParams, + ScheduleGetParams, + Schedules, +} from './schedules'; export { Script, ScriptSetting, @@ -30,14 +38,6 @@ export { Scripts, } from './scripts'; export { SettingEditParams, SettingGetParams, Settings } from './settings'; -export { - UnnamedSchemaRefC8302c265937f9d6f96fd69644e56b26, - ScheduleUpdateResponse, - ScheduleGetResponse, - ScheduleUpdateParams, - ScheduleGetParams, - Schedules, -} from './schedules'; export { VersionCreateResponse, VersionListResponse, diff --git a/src/resources/workers/scripts/schedules.ts b/src/resources/workers/scripts/schedules.ts index 1b3642e7aa..b40e6fc1de 100644 --- a/src/resources/workers/scripts/schedules.ts +++ b/src/resources/workers/scripts/schedules.ts @@ -40,7 +40,7 @@ export class Schedules extends APIResource { } } -export interface UnnamedSchemaRefC8302c265937f9d6f96fd69644e56b26 { +export interface Schedule { created_on?: unknown; cron?: unknown; @@ -49,11 +49,11 @@ export interface UnnamedSchemaRefC8302c265937f9d6f96fd69644e56b26 { } export interface ScheduleUpdateResponse { - schedules?: Array; + schedules?: Array; } export interface ScheduleGetResponse { - schedules?: Array; + schedules?: Array; } export interface ScheduleUpdateParams { @@ -76,7 +76,7 @@ export interface ScheduleGetParams { } export namespace Schedules { - export import UnnamedSchemaRefC8302c265937f9d6f96fd69644e56b26 = SchedulesAPI.UnnamedSchemaRefC8302c265937f9d6f96fd69644e56b26; + export import Schedule = SchedulesAPI.Schedule; export import ScheduleUpdateResponse = SchedulesAPI.ScheduleUpdateResponse; export import ScheduleGetResponse = SchedulesAPI.ScheduleGetResponse; export import ScheduleUpdateParams = SchedulesAPI.ScheduleUpdateParams; diff --git a/src/resources/workers/scripts/scripts.ts b/src/resources/workers/scripts/scripts.ts index 0d7deb95e4..b079127fea 100644 --- a/src/resources/workers/scripts/scripts.ts +++ b/src/resources/workers/scripts/scripts.ts @@ -307,7 +307,7 @@ export namespace Scripts { export import ScriptDeleteParams = ScriptsAPI.ScriptDeleteParams; export import ScriptGetParams = ScriptsAPI.ScriptGetParams; export import Schedules = SchedulesAPI.Schedules; - export import UnnamedSchemaRefC8302c265937f9d6f96fd69644e56b26 = SchedulesAPI.UnnamedSchemaRefC8302c265937f9d6f96fd69644e56b26; + export import Schedule = SchedulesAPI.Schedule; export import ScheduleUpdateResponse = SchedulesAPI.ScheduleUpdateResponse; export import ScheduleGetResponse = SchedulesAPI.ScheduleGetResponse; export import ScheduleUpdateParams = SchedulesAPI.ScheduleUpdateParams;