Skip to content

Commit a7c30c4

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(api): api update (#2286)
1 parent 2b0e272 commit a7c30c4

File tree

2 files changed

+39
-100
lines changed

2 files changed

+39
-100
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1489
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-de7ae109130349e5b0b35b4d0944270435dfddb3ce7079da9b85f5dffaf86639.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6dadcd4e513c89328f85b769caf9ab478a927d302533e01ebf511a2965ec8cd5.yml

src/resources/email-security/settings/impersonation-registry.ts

Lines changed: 38 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -93,71 +93,40 @@ export class ImpersonationRegistry extends APIResource {
9393

9494
export class ImpersonationRegistryListResponsesV4PagePaginationArray extends V4PagePaginationArray<ImpersonationRegistryListResponse> {}
9595

96-
export type ImpersonationRegistryCreateResponse =
97-
| ImpersonationRegistryCreateResponse.EmailSecurityDisplayName
98-
| Array<ImpersonationRegistryCreateResponse.UnionMember1>;
99-
100-
export namespace ImpersonationRegistryCreateResponse {
101-
export interface EmailSecurityDisplayName {
102-
id: number;
103-
104-
created_at: string;
105-
106-
is_email_regex: boolean;
107-
108-
last_modified: string;
109-
110-
name: string;
111-
112-
comments?: string | null;
113-
114-
directory_id?: number | null;
115-
116-
directory_node_id?: number | null;
117-
118-
email?: string | null;
119-
120-
/**
121-
* @deprecated
122-
*/
123-
external_directory_node_id?: string | null;
124-
125-
provenance?: string | null;
126-
}
127-
128-
export interface UnionMember1 {
129-
id: number;
96+
export interface ImpersonationRegistryCreateResponse {
97+
id: number;
13098

131-
created_at: string;
99+
created_at: string;
132100

133-
is_email_regex: boolean;
101+
email: string;
134102

135-
last_modified: string;
103+
is_email_regex: boolean;
136104

137-
name: string;
105+
last_modified: string;
138106

139-
comments?: string | null;
107+
name: string;
140108

141-
directory_id?: number | null;
109+
comments?: string | null;
142110

143-
directory_node_id?: number | null;
111+
directory_id?: number | null;
144112

145-
email?: string | null;
113+
directory_node_id?: number | null;
146114

147-
/**
148-
* @deprecated
149-
*/
150-
external_directory_node_id?: string | null;
115+
/**
116+
* @deprecated
117+
*/
118+
external_directory_node_id?: string | null;
151119

152-
provenance?: string | null;
153-
}
120+
provenance?: string | null;
154121
}
155122

156123
export interface ImpersonationRegistryListResponse {
157124
id: number;
158125

159126
created_at: string;
160127

128+
email: string;
129+
161130
is_email_regex: boolean;
162131

163132
last_modified: string;
@@ -170,8 +139,6 @@ export interface ImpersonationRegistryListResponse {
170139

171140
directory_node_id?: number | null;
172141

173-
email?: string | null;
174-
175142
/**
176143
* @deprecated
177144
*/
@@ -189,6 +156,8 @@ export interface ImpersonationRegistryEditResponse {
189156

190157
created_at: string;
191158

159+
email: string;
160+
192161
is_email_regex: boolean;
193162

194163
last_modified: string;
@@ -201,8 +170,6 @@ export interface ImpersonationRegistryEditResponse {
201170

202171
directory_node_id?: number | null;
203172

204-
email?: string | null;
205-
206173
/**
207174
* @deprecated
208175
*/
@@ -216,6 +183,8 @@ export interface ImpersonationRegistryGetResponse {
216183

217184
created_at: string;
218185

186+
email: string;
187+
219188
is_email_regex: boolean;
220189

221190
last_modified: string;
@@ -228,8 +197,6 @@ export interface ImpersonationRegistryGetResponse {
228197

229198
directory_node_id?: number | null;
230199

231-
email?: string | null;
232-
233200
/**
234201
* @deprecated
235202
*/
@@ -238,54 +205,26 @@ export interface ImpersonationRegistryGetResponse {
238205
provenance?: string | null;
239206
}
240207

241-
export type ImpersonationRegistryCreateParams =
242-
| ImpersonationRegistryCreateParams.EmailSecurityCreateDisplayName
243-
| ImpersonationRegistryCreateParams.Variant1;
244-
245-
export namespace ImpersonationRegistryCreateParams {
246-
export interface EmailSecurityCreateDisplayName {
247-
/**
248-
* Path param: Account Identifier
249-
*/
250-
account_id: string;
251-
252-
/**
253-
* Body param:
254-
*/
255-
email: string;
256-
257-
/**
258-
* Body param:
259-
*/
260-
is_email_regex: boolean;
261-
262-
/**
263-
* Body param:
264-
*/
265-
name: string;
266-
}
267-
268-
export interface Variant1 {
269-
/**
270-
* Path param: Account Identifier
271-
*/
272-
account_id: string;
273-
274-
/**
275-
* Body param:
276-
*/
277-
body: Array<ImpersonationRegistryCreateParams.Variant1.Body>;
278-
}
208+
export interface ImpersonationRegistryCreateParams {
209+
/**
210+
* Path param: Account Identifier
211+
*/
212+
account_id: string;
279213

280-
export namespace Variant1 {
281-
export interface Body {
282-
email: string;
214+
/**
215+
* Body param:
216+
*/
217+
email: string;
283218

284-
is_email_regex: boolean;
219+
/**
220+
* Body param:
221+
*/
222+
is_email_regex: boolean;
285223

286-
name: string;
287-
}
288-
}
224+
/**
225+
* Body param:
226+
*/
227+
name: string;
289228
}
290229

291230
export interface ImpersonationRegistryListParams extends V4PagePaginationArrayParams {

0 commit comments

Comments
 (0)