diff --git a/api.md b/api.md
index 46562dd343..027f4a8668 100644
--- a/api.md
+++ b/api.md
@@ -3,19 +3,19 @@
Types:
- ErrorData
+- Identifier
+- ResponseInfo
+- Result
- UnnamedSchemaRef025497b7e63379c31929636b5186e45c
- UnnamedSchemaRef2173d81a0b2d332c9e2ac46900fe8bb9
- UnnamedSchemaRef23001f1f0b697900e282236466a95fa3
-- UnnamedSchemaRef3248f24329456e19dfa042fff9986f72
- UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
-- UnnamedSchemaRef5cf232a1d651060af6450ae882932776
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
- UnnamedSchemaRef619309774d07ec6904f1e354560d6028
- UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
- UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
- UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
-- UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
- UnnamedSchemaRefB0ec5cc02c98b665099a5707a2db4ea6
@@ -23,7 +23,6 @@ Types:
- UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6
- UnnamedSchemaRefCc2ac1a037e5d6702fc77b3bcb527854
- UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b
-- UnnamedSchemaRefE7c61ebe06ebfc3861ae8b9db4ba152b
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
- UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24
@@ -75,12 +74,13 @@ Methods:
Types:
- OriginCACertificate
+- OriginCACertificateDeleteResponse
Methods:
- client.originCACertificates.create({ ...params }) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
- client.originCACertificates.list({ ...params }) -> OriginCACertificatesSinglePage
-- client.originCACertificates.delete(certificateId, { ...params }) -> UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837
+- client.originCACertificates.delete(certificateId, { ...params }) -> OriginCACertificateDeleteResponse
- client.originCACertificates.get(certificateId) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
# IPs
@@ -1145,12 +1145,13 @@ Types:
- HostItem
- CertificatePackListResponse
+- CertificatePackDeleteResponse
- CertificatePackEditResponse
Methods:
- client.ssl.certificatePacks.list({ ...params }) -> CertificatePackListResponsesSinglePage
-- client.ssl.certificatePacks.delete(certificatePackId, { ...params }) -> UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837
+- client.ssl.certificatePacks.delete(certificatePackId, { ...params }) -> CertificatePackDeleteResponse
- client.ssl.certificatePacks.edit(certificatePackId, { ...params }) -> CertificatePackEditResponse
- client.ssl.certificatePacks.get(certificatePackId, { ...params }) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
@@ -1313,12 +1314,13 @@ Types:
- CustomCertificate
- GeoRestrictions
+- CustomCertificateDeleteResponse
Methods:
- client.customCertificates.create({ ...params }) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
- client.customCertificates.list({ ...params }) -> CustomCertificatesV4PagePaginationArray
-- client.customCertificates.delete(customCertificateId, { ...params }) -> UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837
+- client.customCertificates.delete(customCertificateId, { ...params }) -> CustomCertificateDeleteResponse
- client.customCertificates.edit(customCertificateId, { ...params }) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
- client.customCertificates.get(customCertificateId, { ...params }) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
@@ -1342,12 +1344,13 @@ Types:
- UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510
- UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1
- UnnamedSchemaRefD2a16d7ee1ad3a888dd5821c918d51fd
+- CustomHostnameDeleteResponse
Methods:
- client.customHostnames.create({ ...params }) -> CustomHostname
- client.customHostnames.list({ ...params }) -> CustomHostnamesV4PagePaginationArray
-- client.customHostnames.delete(customHostnameId, { ...params }) -> UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837
+- client.customHostnames.delete(customHostnameId, { ...params }) -> CustomHostnameDeleteResponse
- client.customHostnames.edit(customHostnameId, { ...params }) -> CustomHostname
- client.customHostnames.get(customHostnameId, { ...params }) -> CustomHostname
@@ -1754,12 +1757,13 @@ Types:
- KeylessCertificate
- Tunnel
- UnnamedSchemaRefA91f0bd72ee433f010eecfdc94ccf298
+- KeylessCertificateDeleteResponse
Methods:
- client.keylessCertificates.create({ ...params }) -> Hostname
- client.keylessCertificates.list({ ...params }) -> KeylessCertificatesSinglePage
-- client.keylessCertificates.delete(keylessCertificateId, { ...params }) -> UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837
+- client.keylessCertificates.delete(keylessCertificateId, { ...params }) -> KeylessCertificateDeleteResponse
- client.keylessCertificates.edit(keylessCertificateId, { ...params }) -> Hostname
- client.keylessCertificates.get(keylessCertificateId, { ...params }) -> Hostname
diff --git a/src/index.ts b/src/index.ts
index 4748401e4c..f2052a9f38 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -550,19 +550,19 @@ export namespace Cloudflare {
export import CloudforceOne = API.CloudforceOne;
export import ErrorData = API.ErrorData;
+ export import Identifier = API.Identifier;
+ export import ResponseInfo = API.ResponseInfo;
+ export import Result = API.Result;
export import UnnamedSchemaRef025497b7e63379c31929636b5186e45c = API.UnnamedSchemaRef025497b7e63379c31929636b5186e45c;
export import UnnamedSchemaRef2173d81a0b2d332c9e2ac46900fe8bb9 = API.UnnamedSchemaRef2173d81a0b2d332c9e2ac46900fe8bb9;
export import UnnamedSchemaRef23001f1f0b697900e282236466a95fa3 = API.UnnamedSchemaRef23001f1f0b697900e282236466a95fa3;
- export import UnnamedSchemaRef3248f24329456e19dfa042fff9986f72 = API.UnnamedSchemaRef3248f24329456e19dfa042fff9986f72;
export import UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19 = API.UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19;
export import UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8 = API.UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8;
- export import UnnamedSchemaRef5cf232a1d651060af6450ae882932776 = API.UnnamedSchemaRef5cf232a1d651060af6450ae882932776;
export import UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0 = API.UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0;
export import UnnamedSchemaRef619309774d07ec6904f1e354560d6028 = API.UnnamedSchemaRef619309774d07ec6904f1e354560d6028;
export import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1 = API.UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1;
export import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151 = API.UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151;
export import UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c = API.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c;
- export import UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837 = API.UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837;
export import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f = API.UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f;
export import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a = API.UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a;
export import UnnamedSchemaRefB0ec5cc02c98b665099a5707a2db4ea6 = API.UnnamedSchemaRefB0ec5cc02c98b665099a5707a2db4ea6;
@@ -570,7 +570,6 @@ export namespace Cloudflare {
export import UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6 = API.UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6;
export import UnnamedSchemaRefCc2ac1a037e5d6702fc77b3bcb527854 = API.UnnamedSchemaRefCc2ac1a037e5d6702fc77b3bcb527854;
export import UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b = API.UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b;
- export import UnnamedSchemaRefE7c61ebe06ebfc3861ae8b9db4ba152b = API.UnnamedSchemaRefE7c61ebe06ebfc3861ae8b9db4ba152b;
export import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846 = API.UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846;
export import UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 = API.UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24;
}
diff --git a/src/resources/custom-certificates/custom-certificates.ts b/src/resources/custom-certificates/custom-certificates.ts
index c72457487c..1344c183c0 100644
--- a/src/resources/custom-certificates/custom-certificates.ts
+++ b/src/resources/custom-certificates/custom-certificates.ts
@@ -50,13 +50,13 @@ export class CustomCertificates extends APIResource {
customCertificateId: string,
params: CustomCertificateDeleteParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { zone_id, body } = params;
return (
this._client.delete(`/zones/${zone_id}/custom_certificates/${customCertificateId}`, {
body: body,
...options,
- }) as Core.APIPromise<{ result: Shared.UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837 }>
+ }) as Core.APIPromise<{ result: CustomCertificateDeleteResponse }>
)._thenUnwrap((obj) => obj.result);
}
@@ -198,6 +198,13 @@ export interface GeoRestrictions {
label?: 'us' | 'eu' | 'highest_security';
}
+export interface CustomCertificateDeleteResponse {
+ /**
+ * Identifier
+ */
+ id?: string;
+}
+
export interface CustomCertificateCreateParams {
/**
* Path param: Identifier
diff --git a/src/resources/custom-hostnames/custom-hostnames.ts b/src/resources/custom-hostnames/custom-hostnames.ts
index 798fb0c9ed..c1073e5e93 100644
--- a/src/resources/custom-hostnames/custom-hostnames.ts
+++ b/src/resources/custom-hostnames/custom-hostnames.ts
@@ -3,7 +3,6 @@
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as CustomHostnamesAPI from 'cloudflare/resources/custom-hostnames/custom-hostnames';
-import * as Shared from 'cloudflare/resources/shared';
import * as FallbackOriginAPI from 'cloudflare/resources/custom-hostnames/fallback-origin';
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from 'cloudflare/pagination';
@@ -50,7 +49,7 @@ export class CustomHostnames extends APIResource {
customHostnameId: string,
params: CustomHostnameDeleteParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { zone_id, body } = params;
return this._client.delete(`/zones/${zone_id}/custom_hostnames/${customHostnameId}`, {
body: body,
@@ -756,6 +755,13 @@ export namespace UnnamedSchemaRefD2a16d7ee1ad3a888dd5821c918d51fd {
}
}
+export interface CustomHostnameDeleteResponse {
+ /**
+ * Identifier
+ */
+ id?: string;
+}
+
export interface CustomHostnameCreateParams {
/**
* Path param: Identifier
diff --git a/src/resources/firewall/waf/packages/packages.ts b/src/resources/firewall/waf/packages/packages.ts
index b1527b1e5a..1b878e6a16 100644
--- a/src/resources/firewall/waf/packages/packages.ts
+++ b/src/resources/firewall/waf/packages/packages.ts
@@ -66,9 +66,9 @@ export type PackageListResponse =
export namespace PackageListResponse {
export interface FirewallAPIResponseCollection {
- errors: Array;
+ errors: Array;
- messages: Array;
+ messages: Array;
result: Shared.UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151 | null;
@@ -201,9 +201,9 @@ export type PackageGetResponse = PackageGetResponse.FirewallAPIResponseSingle |
export namespace PackageGetResponse {
export interface FirewallAPIResponseSingle {
- errors: Array;
+ errors: Array;
- messages: Array;
+ messages: Array;
result: Shared.UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f;
diff --git a/src/resources/images/v1/v1.ts b/src/resources/images/v1/v1.ts
index 7d6b8c8eed..185b02e8a0 100644
--- a/src/resources/images/v1/v1.ts
+++ b/src/resources/images/v1/v1.ts
@@ -163,9 +163,9 @@ export interface UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a {
}
export interface V1ListResponse {
- errors: Array;
+ errors: Array;
- messages: Array;
+ messages: Array;
result: V1ListResponse.Result;
diff --git a/src/resources/intel/attack-surface-report/issues.ts b/src/resources/intel/attack-surface-report/issues.ts
index 44d2b21481..f4f7bfdf91 100644
--- a/src/resources/intel/attack-surface-report/issues.ts
+++ b/src/resources/intel/attack-surface-report/issues.ts
@@ -100,9 +100,9 @@ export type SeverityQueryParam = 'low' | 'moderate' | 'critical';
export type Subject = string;
export interface IssueListResponse {
- errors: Array;
+ errors: Array;
- messages: Array;
+ messages: Array;
result: IssueListResponse.Result;
diff --git a/src/resources/keyless-certificates.ts b/src/resources/keyless-certificates.ts
index 44ddae28a3..6413eaebe3 100644
--- a/src/resources/keyless-certificates.ts
+++ b/src/resources/keyless-certificates.ts
@@ -2,7 +2,6 @@
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
-import * as Shared from 'cloudflare/resources/shared';
import * as CustomHostnamesAPI from 'cloudflare/resources/custom-hostnames/custom-hostnames';
import { SinglePage } from 'cloudflare/pagination';
@@ -41,13 +40,13 @@ export class KeylessCertificates extends APIResource {
keylessCertificateId: string,
params: KeylessCertificateDeleteParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { zone_id, body } = params;
return (
this._client.delete(`/zones/${zone_id}/keyless_certificates/${keylessCertificateId}`, {
body: body,
...options,
- }) as Core.APIPromise<{ result: Shared.UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837 }>
+ }) as Core.APIPromise<{ result: KeylessCertificateDeleteResponse }>
)._thenUnwrap((obj) => obj.result);
}
@@ -266,6 +265,13 @@ export interface UnnamedSchemaRefA91f0bd72ee433f010eecfdc94ccf298 {
tunnel?: Tunnel;
}
+export interface KeylessCertificateDeleteResponse {
+ /**
+ * Identifier
+ */
+ id?: string;
+}
+
export interface KeylessCertificateCreateParams {
/**
* Path param: Identifier
diff --git a/src/resources/origin-ca-certificates.ts b/src/resources/origin-ca-certificates.ts
index 23a2dd835b..82397f6174 100644
--- a/src/resources/origin-ca-certificates.ts
+++ b/src/resources/origin-ca-certificates.ts
@@ -51,10 +51,10 @@ export class OriginCACertificates extends APIResource {
certificateId: string,
body: OriginCACertificateDeleteParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
return (
this._client.delete(`/certificates/${certificateId}`, { body, ...options }) as Core.APIPromise<{
- result: Shared.UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837;
+ result: OriginCACertificateDeleteResponse;
}>
)._thenUnwrap((obj) => obj.result);
}
@@ -117,6 +117,13 @@ export interface OriginCACertificate {
expires_on?: string;
}
+export interface OriginCACertificateDeleteResponse {
+ /**
+ * Identifier
+ */
+ id?: string;
+}
+
export interface OriginCACertificateCreateParams {
/**
* The Certificate Signing Request (CSR). Must be newline-encoded.
diff --git a/src/resources/shared.ts b/src/resources/shared.ts
index 3e0da50fef..48b8879179 100644
--- a/src/resources/shared.ts
+++ b/src/resources/shared.ts
@@ -12,6 +12,145 @@ export interface ErrorData {
message?: string;
}
+export interface Identifier {
+ /**
+ * Identifier
+ */
+ id?: string;
+}
+
+export interface ResponseInfo {
+ code: number;
+
+ message: string;
+}
+
+export type Result = Result.UnionMember0 | Result.AaaAPIResponseCommon;
+
+export namespace Result {
+ export interface UnionMember0 {
+ errors?: unknown | null;
+
+ messages?: Array;
+
+ result?: Array;
+
+ success?: boolean;
+ }
+
+ export namespace UnionMember0 {
+ export interface Result {
+ /**
+ * A string that uniquely identifies the audit log.
+ */
+ id?: string;
+
+ action?: Result.Action;
+
+ actor?: Result.Actor;
+
+ /**
+ * The source of the event.
+ */
+ interface?: string;
+
+ /**
+ * An object which can lend more context to the action being logged. This is a
+ * flexible value and varies between different actions.
+ */
+ metadata?: unknown;
+
+ /**
+ * The new value of the resource that was modified.
+ */
+ newValue?: string;
+
+ /**
+ * The value of the resource before it was modified.
+ */
+ oldValue?: string;
+
+ owner?: Result.Owner;
+
+ resource?: Result.Resource;
+
+ /**
+ * A UTC RFC3339 timestamp that specifies when the action being logged occured.
+ */
+ when?: string;
+ }
+
+ export namespace Result {
+ export interface Action {
+ /**
+ * A boolean that indicates if the action attempted was successful.
+ */
+ result?: boolean;
+
+ /**
+ * A short string that describes the action that was performed.
+ */
+ type?: string;
+ }
+
+ export interface Actor {
+ /**
+ * The ID of the actor that performed the action. If a user performed the action,
+ * this will be their User ID.
+ */
+ id?: string;
+
+ /**
+ * The email of the user that performed the action.
+ */
+ email?: string;
+
+ /**
+ * The IP address of the request that performed the action.
+ */
+ ip?: string;
+
+ /**
+ * The type of actor, whether a User, Cloudflare Admin, or an Automated System.
+ */
+ type?: 'user' | 'admin' | 'Cloudflare';
+ }
+
+ export interface Owner {
+ /**
+ * Identifier
+ */
+ id?: string;
+ }
+
+ export interface Resource {
+ /**
+ * An identifier for the resource that was affected by the action.
+ */
+ id?: string;
+
+ /**
+ * A short string that describes the resource that was affected by the action.
+ */
+ type?: string;
+ }
+ }
+ }
+
+ export interface AaaAPIResponseCommon {
+ errors: Array;
+
+ messages: Array;
+
+ result: Shared.UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846;
+
+ /**
+ * Whether the API call was successful
+ */
+ success: true;
+ }
+}
+
export interface UnnamedSchemaRef025497b7e63379c31929636b5186e45c {
/**
* Monitored pool IDs mapped to their respective names.
@@ -35,12 +174,6 @@ export interface UnnamedSchemaRef23001f1f0b697900e282236466a95fa3 {
max_wait_time_ms?: number;
}
-export interface UnnamedSchemaRef3248f24329456e19dfa042fff9986f72 {
- code: number;
-
- message: string;
-}
-
/**
* A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
*/
@@ -297,13 +430,6 @@ export namespace UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8 {
}
}
-export interface UnnamedSchemaRef5cf232a1d651060af6450ae882932776 {
- /**
- * Identifier
- */
- id?: string;
-}
-
export type UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0 = unknown | string;
export type UnnamedSchemaRef619309774d07ec6904f1e354560d6028 = unknown;
@@ -322,13 +448,6 @@ export interface UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c {
enabled: boolean;
}
-export interface UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837 {
- /**
- * Identifier
- */
- id?: string;
-}
-
export type UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f = unknown | string;
export type UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a = unknown | string | null;
@@ -541,134 +660,6 @@ export interface UnnamedSchemaRefCc2ac1a037e5d6702fc77b3bcb527854 {
export type UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b = '*' | 'referral' | 'referrer';
-export type UnnamedSchemaRefE7c61ebe06ebfc3861ae8b9db4ba152b =
- | UnnamedSchemaRefE7c61ebe06ebfc3861ae8b9db4ba152b.UnionMember0
- | UnnamedSchemaRefE7c61ebe06ebfc3861ae8b9db4ba152b.AaaAPIResponseCommon;
-
-export namespace UnnamedSchemaRefE7c61ebe06ebfc3861ae8b9db4ba152b {
- export interface UnionMember0 {
- errors?: unknown | null;
-
- messages?: Array;
-
- result?: Array;
-
- success?: boolean;
- }
-
- export namespace UnionMember0 {
- export interface Result {
- /**
- * A string that uniquely identifies the audit log.
- */
- id?: string;
-
- action?: Result.Action;
-
- actor?: Result.Actor;
-
- /**
- * The source of the event.
- */
- interface?: string;
-
- /**
- * An object which can lend more context to the action being logged. This is a
- * flexible value and varies between different actions.
- */
- metadata?: unknown;
-
- /**
- * The new value of the resource that was modified.
- */
- newValue?: string;
-
- /**
- * The value of the resource before it was modified.
- */
- oldValue?: string;
-
- owner?: Result.Owner;
-
- resource?: Result.Resource;
-
- /**
- * A UTC RFC3339 timestamp that specifies when the action being logged occured.
- */
- when?: string;
- }
-
- export namespace Result {
- export interface Action {
- /**
- * A boolean that indicates if the action attempted was successful.
- */
- result?: boolean;
-
- /**
- * A short string that describes the action that was performed.
- */
- type?: string;
- }
-
- export interface Actor {
- /**
- * The ID of the actor that performed the action. If a user performed the action,
- * this will be their User ID.
- */
- id?: string;
-
- /**
- * The email of the user that performed the action.
- */
- email?: string;
-
- /**
- * The IP address of the request that performed the action.
- */
- ip?: string;
-
- /**
- * The type of actor, whether a User, Cloudflare Admin, or an Automated System.
- */
- type?: 'user' | 'admin' | 'Cloudflare';
- }
-
- export interface Owner {
- /**
- * Identifier
- */
- id?: string;
- }
-
- export interface Resource {
- /**
- * An identifier for the resource that was affected by the action.
- */
- id?: string;
-
- /**
- * A short string that describes the resource that was affected by the action.
- */
- type?: string;
- }
- }
- }
-
- export interface AaaAPIResponseCommon {
- errors: Array;
-
- messages: Array;
-
- result: Shared.UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846;
-
- /**
- * Whether the API call was successful
- */
- success: true;
- }
-}
-
export type UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846 = unknown | Array | string;
/**
diff --git a/src/resources/speed/tests.ts b/src/resources/speed/tests.ts
index c9fe3638de..daf5e7d618 100644
--- a/src/resources/speed/tests.ts
+++ b/src/resources/speed/tests.ts
@@ -104,9 +104,9 @@ export interface Test {
}
export interface TestListResponse {
- errors: Array;
+ errors: Array;
- messages: Array;
+ messages: Array;
/**
* Whether the API call was successful.
diff --git a/src/resources/ssl/certificate-packs/certificate-packs.ts b/src/resources/ssl/certificate-packs/certificate-packs.ts
index c7b6606dec..6af70fc68f 100644
--- a/src/resources/ssl/certificate-packs/certificate-packs.ts
+++ b/src/resources/ssl/certificate-packs/certificate-packs.ts
@@ -34,13 +34,13 @@ export class CertificatePacks extends APIResource {
certificatePackId: string,
params: CertificatePackDeleteParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { zone_id, body } = params;
return (
this._client.delete(`/zones/${zone_id}/ssl/certificate_packs/${certificatePackId}`, {
body: body,
...options,
- }) as Core.APIPromise<{ result: Shared.UnnamedSchemaRef8900f4cb9dca9b9ed0ac41ad571e6837 }>
+ }) as Core.APIPromise<{ result: CertificatePackDeleteResponse }>
)._thenUnwrap((obj) => obj.result);
}
@@ -87,6 +87,13 @@ export type HostItem = string;
export type CertificatePackListResponse = unknown;
+export interface CertificatePackDeleteResponse {
+ /**
+ * Identifier
+ */
+ id?: string;
+}
+
export interface CertificatePackEditResponse {
/**
* Identifier
@@ -200,6 +207,7 @@ export interface CertificatePackGetParams {
export namespace CertificatePacks {
export import HostItem = CertificatePacksAPI.HostItem;
export import CertificatePackListResponse = CertificatePacksAPI.CertificatePackListResponse;
+ export import CertificatePackDeleteResponse = CertificatePacksAPI.CertificatePackDeleteResponse;
export import CertificatePackEditResponse = CertificatePacksAPI.CertificatePackEditResponse;
export import CertificatePackListResponsesSinglePage = CertificatePacksAPI.CertificatePackListResponsesSinglePage;
export import CertificatePackListParams = CertificatePacksAPI.CertificatePackListParams;
diff --git a/src/resources/ssl/certificate-packs/index.ts b/src/resources/ssl/certificate-packs/index.ts
index 859666e533..fe864de290 100644
--- a/src/resources/ssl/certificate-packs/index.ts
+++ b/src/resources/ssl/certificate-packs/index.ts
@@ -3,6 +3,7 @@
export {
HostItem,
CertificatePackListResponse,
+ CertificatePackDeleteResponse,
CertificatePackEditResponse,
CertificatePackListParams,
CertificatePackDeleteParams,
diff --git a/src/resources/ssl/index.ts b/src/resources/ssl/index.ts
index 0101cec6ba..1e8e626d9b 100644
--- a/src/resources/ssl/index.ts
+++ b/src/resources/ssl/index.ts
@@ -4,6 +4,7 @@ export { AnalyzeCreateParams, Analyze } from './analyze';
export {
HostItem,
CertificatePackListResponse,
+ CertificatePackDeleteResponse,
CertificatePackEditResponse,
CertificatePackListParams,
CertificatePackDeleteParams,
diff --git a/src/resources/ssl/ssl.ts b/src/resources/ssl/ssl.ts
index 615e141fc8..534b4eafd2 100644
--- a/src/resources/ssl/ssl.ts
+++ b/src/resources/ssl/ssl.ts
@@ -23,6 +23,7 @@ export namespace SSL {
export import CertificatePacks = CertificatePacksAPI.CertificatePacks;
export import HostItem = CertificatePacksAPI.HostItem;
export import CertificatePackListResponse = CertificatePacksAPI.CertificatePackListResponse;
+ export import CertificatePackDeleteResponse = CertificatePacksAPI.CertificatePackDeleteResponse;
export import CertificatePackEditResponse = CertificatePacksAPI.CertificatePackEditResponse;
export import CertificatePackListResponsesSinglePage = CertificatePacksAPI.CertificatePackListResponsesSinglePage;
export import CertificatePackListParams = CertificatePacksAPI.CertificatePackListParams;
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
index f383e4a52a..0e70c202bd 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
@@ -53,12 +53,12 @@ export interface SettingEditParams {
/**
* Body param:
*/
- errors: Array;
+ errors: Array;
/**
* Body param:
*/
- messages: Array;
+ messages: Array;
/**
* Body param:
diff --git a/src/resources/zero-trust/dex/tests/tests.ts b/src/resources/zero-trust/dex/tests/tests.ts
index 8caffd4c63..de8f885ded 100644
--- a/src/resources/zero-trust/dex/tests/tests.ts
+++ b/src/resources/zero-trust/dex/tests/tests.ts
@@ -286,9 +286,9 @@ export namespace Tests {
}
export interface TestListResponse {
- errors: Array;
+ errors: Array;
- messages: Array;
+ messages: Array;
result: Tests;