Skip to content

Commit

Permalink
chore(types): use declare namespace (#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and meorphis committed Jan 13, 2025
1 parent 5517452 commit 6930665
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions src/resources/accounts/members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export type MemberCreateParams =
| MemberCreateParams.IAMCreateMemberWithRoles
| MemberCreateParams.IAMCreateMemberWithPolicies;

export namespace MemberCreateParams {
export declare namespace MemberCreateParams {
export interface IAMCreateMemberWithRoles {
/**
* Path param: Account identifier tag.
Expand Down Expand Up @@ -190,7 +190,7 @@ export type MemberUpdateParams =
| MemberUpdateParams.IAMUpdateMemberWithRoles
| MemberUpdateParams.IAMUpdateMemberWithPolicies;

export namespace MemberUpdateParams {
export declare namespace MemberUpdateParams {
export interface IAMUpdateMemberWithRoles {
/**
* Path param: Account identifier tag.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/ai/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export type AIRunParams =
| AIRunParams.Summarization
| AIRunParams.ImageToText;

export namespace AIRunParams {
export declare namespace AIRunParams {
export interface TextClassification {
/**
* Path param:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/bot-management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ export type BotManagementUpdateParams =
| BotManagementUpdateParams.SuperBotFightModeLikelyConfiguration
| BotManagementUpdateParams.SubscriptionConfiguration;

export namespace BotManagementUpdateParams {
export declare namespace BotManagementUpdateParams {
export interface BotFightModeConfiguration {
/**
* Path param: Identifier
Expand Down
2 changes: 1 addition & 1 deletion src/resources/cache/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export type CachePurgeParams =
| CachePurgeParams.CachePurgeSingleFile
| CachePurgeParams.CachePurgeSingleFileWithURLAndHeaders;

export namespace CachePurgeParams {
export declare namespace CachePurgeParams {
export interface CachePurgeFlexPurgeByTags {
/**
* Path param:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/d1/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ export type DatabaseImportParams =
| DatabaseImportParams.Variant1
| DatabaseImportParams.Variant2;

export namespace DatabaseImportParams {
export declare namespace DatabaseImportParams {
export interface Variant0 {
/**
* Path param: Account identifier tag.
Expand Down
6 changes: 3 additions & 3 deletions src/resources/dns/records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4889,7 +4889,7 @@ export type RecordCreateParams =
| RecordCreateParams.TXTRecord
| RecordCreateParams.URIRecord;

export namespace RecordCreateParams {
export declare namespace RecordCreateParams {
export interface ARecord {
/**
* Path param: Identifier
Expand Down Expand Up @@ -6861,7 +6861,7 @@ export type RecordUpdateParams =
| RecordUpdateParams.TXTRecord
| RecordUpdateParams.URIRecord;

export namespace RecordUpdateParams {
export declare namespace RecordUpdateParams {
export interface ARecord {
/**
* Path param: Identifier
Expand Down Expand Up @@ -9091,7 +9091,7 @@ export type RecordEditParams =
| RecordEditParams.TXTRecord
| RecordEditParams.URIRecord;

export namespace RecordEditParams {
export declare namespace RecordEditParams {
export interface ARecord {
/**
* Path param: Identifier
Expand Down
2 changes: 1 addition & 1 deletion src/resources/email-security/settings/trusted-domains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export type TrustedDomainCreateParams =
| TrustedDomainCreateParams.EmailSecurityCreateTrustedDomain
| TrustedDomainCreateParams.Variant1;

export namespace TrustedDomainCreateParams {
export declare namespace TrustedDomainCreateParams {
export interface EmailSecurityCreateTrustedDomain {
/**
* Path param: Account Identifier
Expand Down
4 changes: 2 additions & 2 deletions src/resources/magic-transit/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export interface AppDeleteResponse {

export type AppCreateParams = AppCreateParams.Hostnames | AppCreateParams.Subnets;

export namespace AppCreateParams {
export declare namespace AppCreateParams {
export interface Hostnames {
/**
* Path param: Identifier
Expand Down Expand Up @@ -255,7 +255,7 @@ export type AppUpdateParams =
| AppUpdateParams.UpdateAppHostnames
| AppUpdateParams.UpdateAppSubnets;

export namespace AppUpdateParams {
export declare namespace AppUpdateParams {
export interface UpdateAppName {
/**
* Path param: Identifier
Expand Down
2 changes: 1 addition & 1 deletion src/resources/magic-transit/pcaps/pcaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export type PCAPCreateParams =
| PCAPCreateParams.MagicVisibilityPCAPsPCAPsRequestSimple
| PCAPCreateParams.MagicVisibilityPCAPsPCAPsRequestFull;

export namespace PCAPCreateParams {
export declare namespace PCAPCreateParams {
export interface MagicVisibilityPCAPsPCAPsRequestSimple {
/**
* Path param: Identifier
Expand Down
4 changes: 2 additions & 2 deletions src/resources/queues/consumers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export type ConsumerCreateParams =
| ConsumerCreateParams.MqWorkerConsumer
| ConsumerCreateParams.MqHTTPConsumer;

export namespace ConsumerCreateParams {
export declare namespace ConsumerCreateParams {
export interface MqWorkerConsumer {
/**
* Path param: A Resource identifier.
Expand Down Expand Up @@ -293,7 +293,7 @@ export type ConsumerUpdateParams =
| ConsumerUpdateParams.MqWorkerConsumer
| ConsumerUpdateParams.MqHTTPConsumer;

export namespace ConsumerUpdateParams {
export declare namespace ConsumerUpdateParams {
export interface MqWorkerConsumer {
/**
* Path param: A Resource identifier.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/r2/buckets/sippy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export interface SippyDeleteResponse {

export type SippyUpdateParams = SippyUpdateParams.R2EnableSippyAws | SippyUpdateParams.R2EnableSippyGcs;

export namespace SippyUpdateParams {
export declare namespace SippyUpdateParams {
export interface R2EnableSippyAws {
/**
* Path param: Account ID
Expand Down
4 changes: 2 additions & 2 deletions src/resources/rulesets/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7366,7 +7366,7 @@ export type RuleCreateParams =
| RuleCreateParams.DDoSDynamicRule
| RuleCreateParams.ForceConnectionCloseRule;

export namespace RuleCreateParams {
export declare namespace RuleCreateParams {
export interface BlockRule {
/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
Expand Down Expand Up @@ -10747,7 +10747,7 @@ export type RuleEditParams =
| RuleEditParams.DDoSDynamicRule
| RuleEditParams.ForceConnectionCloseRule;

export namespace RuleEditParams {
export declare namespace RuleEditParams {
export interface BlockRule {
/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
Expand Down
4 changes: 2 additions & 2 deletions src/resources/spectrum/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ export type AppCreateParams =
| AppCreateParams.SpectrumConfigAppConfig
| AppCreateParams.SpectrumConfigPaygoAppConfig;

export namespace AppCreateParams {
export declare namespace AppCreateParams {
export interface SpectrumConfigAppConfig {
/**
* Path param: Zone identifier.
Expand Down Expand Up @@ -708,7 +708,7 @@ export type AppUpdateParams =
| AppUpdateParams.SpectrumConfigAppConfig
| AppUpdateParams.SpectrumConfigPaygoAppConfig;

export namespace AppUpdateParams {
export declare namespace AppUpdateParams {
export interface SpectrumConfigAppConfig {
/**
* Path param: Zone identifier.
Expand Down
4 changes: 2 additions & 2 deletions src/resources/zero-trust/access/applications/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10634,7 +10634,7 @@ export type ApplicationCreateParams =
| ApplicationCreateParams.BookmarkApplication
| ApplicationCreateParams.InfrastructureApplication;

export namespace ApplicationCreateParams {
export declare namespace ApplicationCreateParams {
export interface SelfHostedApplication {
/**
* Body param: The primary hostname and path secured by Access. This domain will be
Expand Down Expand Up @@ -13073,7 +13073,7 @@ export type ApplicationUpdateParams =
| ApplicationUpdateParams.BookmarkApplication
| ApplicationUpdateParams.InfrastructureApplication;

export namespace ApplicationUpdateParams {
export declare namespace ApplicationUpdateParams {
export interface SelfHostedApplication {
/**
* Body param: The primary hostname and path secured by Access. This domain will be
Expand Down
2 changes: 1 addition & 1 deletion src/resources/zero-trust/dlp/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export type EntryUpdateParams =
| EntryUpdateParams.Variant1
| EntryUpdateParams.Variant2;

export namespace EntryUpdateParams {
export declare namespace EntryUpdateParams {
export interface Variant0 {
/**
* Path param:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/zero-trust/dlp/profiles/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ export type CustomDeleteResponse = unknown;

export type CustomCreateParams = CustomCreateParams.Variant0 | CustomCreateParams.DLPNewCustomProfile;

export namespace CustomCreateParams {
export declare namespace CustomCreateParams {
export interface Variant0 {
/**
* Path param:
Expand Down
4 changes: 2 additions & 2 deletions src/resources/zero-trust/identity-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2737,7 +2737,7 @@ export type IdentityProviderCreateParams =
| IdentityProviderCreateParams.AccessYandex
| IdentityProviderCreateParams.AccessOnetimepin;

export namespace IdentityProviderCreateParams {
export declare namespace IdentityProviderCreateParams {
export interface AzureAD {
/**
* Body param: The configuration parameters for the identity provider. To view the
Expand Down Expand Up @@ -3690,7 +3690,7 @@ export type IdentityProviderUpdateParams =
| IdentityProviderUpdateParams.AccessYandex
| IdentityProviderUpdateParams.AccessOnetimepin;

export namespace IdentityProviderUpdateParams {
export declare namespace IdentityProviderUpdateParams {
export interface AzureAD {
/**
* Body param: The configuration parameters for the identity provider. To view the
Expand Down
2 changes: 1 addition & 1 deletion src/resources/zones/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3776,7 +3776,7 @@ export type SettingEditParams =
| SettingEditParams.WebP
| SettingEditParams.Websocket;

export namespace SettingEditParams {
export declare namespace SettingEditParams {
export interface ZeroRTT {
/**
* Path param: Identifier
Expand Down

0 comments on commit 6930665

Please sign in to comment.