diff --git a/.stats.yml b/.stats.yml index d0c74d2b89..bb29cf6c11 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1508 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4d2ad2efc7849cfa1f1205e3d2b513df805aae225cc968df751a60ecd902d1ab.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8a886fe980d03dce34f4bbfd3d40277e65cdb1997e06ffd220c0721fcbd63110.yml diff --git a/src/resources/email-security/settings/domains.ts b/src/resources/email-security/settings/domains.ts index a62726afae..7151bbafb9 100644 --- a/src/resources/email-security/settings/domains.ts +++ b/src/resources/email-security/settings/domains.ts @@ -123,6 +123,10 @@ export interface DomainListResponse { transport: string; + authorization?: DomainListResponse.Authorization | null; + + emails_processed?: DomainListResponse.EmailsProcessed | null; + folder?: 'AllItems' | 'Inbox' | null; inbox_provider?: 'Microsoft' | 'Google' | null; @@ -136,6 +140,24 @@ export interface DomainListResponse { require_tls_outbound?: boolean | null; } +export namespace DomainListResponse { + export interface Authorization { + authorized: boolean; + + timestamp: string; + + status_message?: string | null; + } + + export interface EmailsProcessed { + timestamp: string; + + total_emails_processed: number; + + total_emails_processed_previous: number; + } +} + export interface DomainDeleteResponse { /** * The unique identifier for the domain. @@ -187,6 +209,10 @@ export interface DomainEditResponse { transport: string; + authorization?: DomainEditResponse.Authorization | null; + + emails_processed?: DomainEditResponse.EmailsProcessed | null; + folder?: 'AllItems' | 'Inbox' | null; inbox_provider?: 'Microsoft' | 'Google' | null; @@ -200,6 +226,24 @@ export interface DomainEditResponse { require_tls_outbound?: boolean | null; } +export namespace DomainEditResponse { + export interface Authorization { + authorized: boolean; + + timestamp: string; + + status_message?: string | null; + } + + export interface EmailsProcessed { + timestamp: string; + + total_emails_processed: number; + + total_emails_processed_previous: number; + } +} + export interface DomainGetResponse { /** * The unique identifier for the domain. @@ -233,6 +277,10 @@ export interface DomainGetResponse { transport: string; + authorization?: DomainGetResponse.Authorization | null; + + emails_processed?: DomainGetResponse.EmailsProcessed | null; + folder?: 'AllItems' | 'Inbox' | null; inbox_provider?: 'Microsoft' | 'Google' | null; @@ -246,12 +294,36 @@ export interface DomainGetResponse { require_tls_outbound?: boolean | null; } +export namespace DomainGetResponse { + export interface Authorization { + authorized: boolean; + + timestamp: string; + + status_message?: string | null; + } + + export interface EmailsProcessed { + timestamp: string; + + total_emails_processed: number; + + total_emails_processed_previous: number; + } +} + export interface DomainListParams extends V4PagePaginationArrayParams { /** * Path param: Account Identifier */ account_id: string; + /** + * Query param: Filters response to domains with the currently active delivery + * mode. + */ + active_delivery_mode?: 'DIRECT' | 'BCC' | 'JOURNAL' | 'API' | 'RETRO_SCAN'; + /** * Query param: Filters response to domains with the provided delivery mode. */ diff --git a/tests/api-resources/email-security/settings/domains.test.ts b/tests/api-resources/email-security/settings/domains.test.ts index 6869c66d21..6659046266 100644 --- a/tests/api-resources/email-security/settings/domains.test.ts +++ b/tests/api-resources/email-security/settings/domains.test.ts @@ -26,6 +26,7 @@ describe('resource domains', () => { test('list: required and optional params', async () => { const response = await client.emailSecurity.settings.domains.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353', + active_delivery_mode: 'DIRECT', allowed_delivery_mode: 'DIRECT', direction: 'asc', domain: ['string'],