Skip to content

Commit 086577c

Browse files
chore(internal): codegen related update (#2325)
1 parent 8857c9f commit 086577c

File tree

21 files changed

+97
-189
lines changed

21 files changed

+97
-189
lines changed

src/resources/accounts/tokens/tokens.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -281,35 +281,35 @@ export interface TokenUpdateParams {
281281
account_id: string;
282282

283283
/**
284-
* Body param: Token name.
284+
* Body param:
285285
*/
286-
name: string;
286+
condition?: TokenUpdateParams.Condition;
287287

288288
/**
289-
* Body param: List of access policies assigned to the token.
289+
* Body param: The expiration time on or after which the JWT MUST NOT be accepted
290+
* for processing.
290291
*/
291-
policies: Array<Shared.TokenPolicyParam>;
292+
expires_on?: string;
292293

293294
/**
294-
* Body param: Status of the token.
295+
* Body param: Token name.
295296
*/
296-
status: 'active' | 'disabled' | 'expired';
297+
name?: string;
297298

298299
/**
299-
* Body param:
300+
* Body param: The time before which the token MUST NOT be accepted for processing.
300301
*/
301-
condition?: TokenUpdateParams.Condition;
302+
not_before?: string;
302303

303304
/**
304-
* Body param: The expiration time on or after which the JWT MUST NOT be accepted
305-
* for processing.
305+
* Body param: List of access policies assigned to the token.
306306
*/
307-
expires_on?: string;
307+
policies?: Array<Shared.TokenPolicyParam>;
308308

309309
/**
310-
* Body param: The time before which the token MUST NOT be accepted for processing.
310+
* Body param: Status of the token.
311311
*/
312-
not_before?: string;
312+
status?: 'active' | 'disabled' | 'expired';
313313
}
314314

315315
export namespace TokenUpdateParams {

src/resources/dns-firewall/dns-firewall.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,6 @@ export interface DNSFirewallCreateParams {
433433
*/
434434
account_id: string;
435435

436-
/**
437-
* Body param: DNS Firewall cluster name
438-
*/
439-
name: string;
440-
441-
/**
442-
* Body param:
443-
*/
444-
upstream_ips: Array<UpstreamIPsParam>;
445-
446436
/**
447437
* Body param: Attack mitigation settings
448438
*/
@@ -473,6 +463,11 @@ export interface DNSFirewallCreateParams {
473463
*/
474464
minimum_cache_ttl?: number;
475465

466+
/**
467+
* Body param: DNS Firewall cluster name
468+
*/
469+
name?: string;
470+
476471
/**
477472
* Body param: Negative DNS cache TTL This setting controls how long DNS Firewall
478473
* should cache negative responses (e.g., NXDOMAIN) from the upstream servers.
@@ -490,6 +485,11 @@ export interface DNSFirewallCreateParams {
490485
* nameservers (not counting the initial attempt)
491486
*/
492487
retries?: number;
488+
489+
/**
490+
* Body param:
491+
*/
492+
upstream_ips?: Array<UpstreamIPsParam>;
493493
}
494494

495495
export interface DNSFirewallListParams extends V4PagePaginationArrayParams {

src/resources/dns-firewall/reverse-dns.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ export interface ReverseDNSEditResponse {
4343
/**
4444
* Map of cluster IP addresses to PTR record contents
4545
*/
46-
ptr: Record<string, string>;
46+
ptr?: Record<string, string>;
4747
}
4848

4949
export interface ReverseDNSGetResponse {
5050
/**
5151
* Map of cluster IP addresses to PTR record contents
5252
*/
53-
ptr: Record<string, string>;
53+
ptr?: Record<string, string>;
5454
}
5555

5656
export interface ReverseDNSEditParams {

src/resources/dns/settings/views.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ export interface ViewCreateParams {
210210
/**
211211
* Body param: The name of the view.
212212
*/
213-
name: string;
213+
name?: string;
214214

215215
/**
216216
* Body param: The list of zones linked to this view.
217217
*/
218-
zones: Array<string>;
218+
zones?: Array<string>;
219219
}
220220

221221
export interface ViewListParams extends V4PagePaginationArrayParams {

src/resources/spectrum/analytics/events/bytimes.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ export interface BytimeGetParams {
214214
>;
215215

216216
/**
217-
* Query param: Start of time interval to query, defaults to `until` - 6 hours.
218-
* Timestamp must be in RFC3339 format and uses UTC unless otherwise specified.
217+
* Query param:
219218
*/
220219
since?: string;
221220

@@ -226,8 +225,7 @@ export interface BytimeGetParams {
226225
sort?: Array<string>;
227226

228227
/**
229-
* Query param: End of time interval to query, defaults to current time. Timestamp
230-
* must be in RFC3339 format and uses UTC unless otherwise specified.
228+
* Query param:
231229
*/
232230
until?: string;
233231
}

src/resources/spectrum/analytics/events/summaries.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ export interface SummaryGetParams {
209209
>;
210210

211211
/**
212-
* Query param: Start of time interval to query, defaults to `until` - 6 hours.
213-
* Timestamp must be in RFC3339 format and uses UTC unless otherwise specified.
212+
* Query param:
214213
*/
215214
since?: string;
216215

@@ -221,8 +220,7 @@ export interface SummaryGetParams {
221220
sort?: Array<string>;
222221

223222
/**
224-
* Query param: End of time interval to query, defaults to current time. Timestamp
225-
* must be in RFC3339 format and uses UTC unless otherwise specified.
223+
* Query param:
226224
*/
227225
until?: string;
228226
}

src/resources/spectrum/apps.ts

Lines changed: 21 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -175,23 +175,17 @@ export namespace AppCreateResponse {
175175

176176
export interface SpectrumConfigPaygoAppConfig {
177177
/**
178-
* App identifier.
178+
* Identifier
179179
*/
180180
id: string;
181181

182-
/**
183-
* When the Application was created.
184-
*/
185182
created_on: string;
186183

187184
/**
188185
* The name and type of DNS record for the Spectrum application.
189186
*/
190187
dns: SpectrumAPI.DNS;
191188

192-
/**
193-
* When the Application was last modified.
194-
*/
195189
modified_on: string;
196190

197191
/**
@@ -302,23 +296,17 @@ export namespace AppUpdateResponse {
302296

303297
export interface SpectrumConfigPaygoAppConfig {
304298
/**
305-
* App identifier.
299+
* Identifier
306300
*/
307301
id: string;
308302

309-
/**
310-
* When the Application was created.
311-
*/
312303
created_on: string;
313304

314305
/**
315306
* The name and type of DNS record for the Spectrum application.
316307
*/
317308
dns: SpectrumAPI.DNS;
318309

319-
/**
320-
* When the Application was last modified.
321-
*/
322310
modified_on: string;
323311

324312
/**
@@ -427,23 +415,17 @@ export namespace AppListResponse {
427415

428416
export interface UnionMember1 {
429417
/**
430-
* App identifier.
418+
* Identifier
431419
*/
432420
id: string;
433421

434-
/**
435-
* When the Application was created.
436-
*/
437422
created_on: string;
438423

439424
/**
440425
* The name and type of DNS record for the Spectrum application.
441426
*/
442427
dns: SpectrumAPI.DNS;
443428

444-
/**
445-
* When the Application was last modified.
446-
*/
447429
modified_on: string;
448430

449431
/**
@@ -561,23 +543,17 @@ export namespace AppGetResponse {
561543

562544
export interface SpectrumConfigPaygoAppConfig {
563545
/**
564-
* App identifier.
546+
* Identifier
565547
*/
566548
id: string;
567549

568-
/**
569-
* When the Application was created.
570-
*/
571550
created_on: string;
572551

573552
/**
574553
* The name and type of DNS record for the Spectrum application.
575554
*/
576555
dns: SpectrumAPI.DNS;
577556

578-
/**
579-
* When the Application was last modified.
580-
*/
581557
modified_on: string;
582558

583559
/**
@@ -601,7 +577,7 @@ export type AppCreateParams =
601577
export declare namespace AppCreateParams {
602578
export interface SpectrumConfigAppConfig {
603579
/**
604-
* Path param: Zone identifier.
580+
* Path param: Identifier
605581
*/
606582
zone_id: string;
607583

@@ -680,10 +656,15 @@ export declare namespace AppCreateParams {
680656

681657
export interface SpectrumConfigPaygoAppConfig {
682658
/**
683-
* Path param: Zone identifier.
659+
* Path param: Identifier
684660
*/
685661
zone_id: string;
686662

663+
/**
664+
* Body param: Identifier
665+
*/
666+
id: string;
667+
687668
/**
688669
* Body param: The name and type of DNS record for the Spectrum application.
689670
*/
@@ -711,7 +692,7 @@ export type AppUpdateParams =
711692
export declare namespace AppUpdateParams {
712693
export interface SpectrumConfigAppConfig {
713694
/**
714-
* Path param: Zone identifier.
695+
* Path param: Identifier
715696
*/
716697
zone_id: string;
717698

@@ -790,10 +771,15 @@ export declare namespace AppUpdateParams {
790771

791772
export interface SpectrumConfigPaygoAppConfig {
792773
/**
793-
* Path param: Zone identifier.
774+
* Path param: Identifier
794775
*/
795776
zone_id: string;
796777

778+
/**
779+
* Body param: Identifier
780+
*/
781+
id: string;
782+
797783
/**
798784
* Body param: The name and type of DNS record for the Spectrum application.
799785
*/
@@ -816,7 +802,7 @@ export declare namespace AppUpdateParams {
816802

817803
export interface AppListParams extends V4PagePaginationArrayParams {
818804
/**
819-
* Path param: Zone identifier.
805+
* Path param: Identifier
820806
*/
821807
zone_id: string;
822808

@@ -833,14 +819,14 @@ export interface AppListParams extends V4PagePaginationArrayParams {
833819

834820
export interface AppDeleteParams {
835821
/**
836-
* Zone identifier.
822+
* Identifier
837823
*/
838824
zone_id: string;
839825
}
840826

841827
export interface AppGetParams {
842828
/**
843-
* Zone identifier.
829+
* Identifier
844830
*/
845831
zone_id: string;
846832
}

src/resources/user/tokens/tokens.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -258,33 +258,33 @@ export namespace TokenCreateParams {
258258
}
259259

260260
export interface TokenUpdateParams {
261+
condition?: TokenUpdateParams.Condition;
262+
261263
/**
262-
* Token name.
264+
* The expiration time on or after which the JWT MUST NOT be accepted for
265+
* processing.
263266
*/
264-
name: string;
267+
expires_on?: string;
265268

266269
/**
267-
* List of access policies assigned to the token.
270+
* Token name.
268271
*/
269-
policies: Array<Shared.TokenPolicyParam>;
272+
name?: string;
270273

271274
/**
272-
* Status of the token.
275+
* The time before which the token MUST NOT be accepted for processing.
273276
*/
274-
status: 'active' | 'disabled' | 'expired';
275-
276-
condition?: TokenUpdateParams.Condition;
277+
not_before?: string;
277278

278279
/**
279-
* The expiration time on or after which the JWT MUST NOT be accepted for
280-
* processing.
280+
* List of access policies assigned to the token.
281281
*/
282-
expires_on?: string;
282+
policies?: Array<Shared.TokenPolicyParam>;
283283

284284
/**
285-
* The time before which the token MUST NOT be accepted for processing.
285+
* Status of the token.
286286
*/
287-
not_before?: string;
287+
status?: 'active' | 'disabled' | 'expired';
288288
}
289289

290290
export namespace TokenUpdateParams {

0 commit comments

Comments
 (0)