Skip to content

Commit 72cdac6

Browse files
feat(api): update via SDK Studio (#201)
1 parent 2c421e9 commit 72cdac6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+315
-316
lines changed

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3847,7 +3847,7 @@ Types:
38473847

38483848
Methods:
38493849

3850-
- <code title="get /accounts/{account_id}/stream/{identifier}/embed">client.stream.embed.<a href="./src/resources/stream/embed.ts">get</a>(identifier, { ...params }) -> unknown</code>
3850+
- <code title="get /accounts/{account_id}/stream/{identifier}/embed">client.stream.embed.<a href="./src/resources/stream/embed.ts">get</a>(identifier, { ...params }) -> string</code>
38513851

38523852
## Token
38533853

src/resources/d1/database.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export interface D1CreateDatabase {
8989
/**
9090
* Specifies the timestamp the resource was created as an ISO8601 string.
9191
*/
92-
created_at?: unknown;
92+
created_at?: string;
9393

9494
name?: string;
9595

@@ -102,7 +102,7 @@ export interface D1DatabaseDetails {
102102
/**
103103
* Specifies the timestamp the resource was created as an ISO8601 string.
104104
*/
105-
created_at?: unknown;
105+
created_at?: string;
106106

107107
/**
108108
* The D1 database's size, in bytes.

src/resources/dns/records.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ export namespace DNSRecord {
15041504
/**
15051505
* A valid name server host name.
15061506
*/
1507-
content: unknown;
1507+
content: string;
15081508

15091509
/**
15101510
* DNS record name (or @ for the zone apex) in Punycode.
@@ -3310,7 +3310,7 @@ export namespace RecordCreateParams {
33103310
/**
33113311
* Body param: A valid name server host name.
33123312
*/
3313-
content: unknown;
3313+
content: string;
33143314

33153315
/**
33163316
* Body param: DNS record name (or @ for the zone apex) in Punycode.
@@ -4579,7 +4579,7 @@ export namespace RecordUpdateParams {
45794579
/**
45804580
* Body param: A valid name server host name.
45814581
*/
4582-
content: unknown;
4582+
content: string;
45834583

45844584
/**
45854585
* Body param: DNS record name (or @ for the zone apex) in Punycode.
@@ -6025,7 +6025,7 @@ export namespace RecordEditParams {
60256025
/**
60266026
* Body param: A valid name server host name.
60276027
*/
6028-
content: unknown;
6028+
content: string;
60296029

60306030
/**
60316031
* Body param: DNS record name (or @ for the zone apex) in Punycode.

src/resources/firewall/waf/overrides.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,16 @@ export namespace LegacyJhsOverride {
182182
*/
183183
block?: 'challenge' | 'block' | 'simulate' | 'disable' | 'default';
184184

185-
challenge?: unknown;
185+
challenge?: string;
186186

187-
default?: unknown;
187+
default?: string;
188188

189189
/**
190190
* The WAF rule action to apply.
191191
*/
192192
disable?: 'challenge' | 'block' | 'simulate' | 'disable' | 'default';
193193

194-
simulate?: unknown;
194+
simulate?: string;
195195
}
196196
}
197197

src/resources/hostnames/settings/tls.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ export interface TLSCertificatesAndHostnamesSettingObjectDelete {
9696
*/
9797
hostname?: string;
9898

99-
status?: unknown;
99+
status?: string;
100100

101101
/**
102102
* This is the time the tls setting was updated.
103103
*/
104104
updated_at?: string;
105105

106-
value?: unknown;
106+
value?: string;
107107
}
108108

109109
export type TLSGetResponse = Array<TLSGetResponse.TLSGetResponseItem>;

src/resources/images/v1/keys.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class Keys extends APIResource {
99
* Create a new signing key with specified name. Returns all keys available.
1010
*/
1111
update(
12-
signingKeyName: unknown,
12+
signingKeyName: string,
1313
params: KeyUpdateParams,
1414
options?: Core.RequestOptions,
1515
): Core.APIPromise<ImagesImageKeys> {
@@ -39,7 +39,7 @@ export class Keys extends APIResource {
3939
* key is removed, a new default signing key will be generated.
4040
*/
4141
delete(
42-
signingKeyName: unknown,
42+
signingKeyName: string,
4343
params: KeyDeleteParams,
4444
options?: Core.RequestOptions,
4545
): Core.APIPromise<ImagesImageKeys> {

src/resources/images/v1/variants.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class Variants extends APIResource {
3434
* Deleting a variant purges the cache for all images associated with the variant.
3535
*/
3636
delete(
37-
variantId: unknown,
37+
variantId: string,
3838
params: VariantDeleteParams,
3939
options?: Core.RequestOptions,
4040
): Core.APIPromise<VariantDeleteResponse> {
@@ -51,7 +51,7 @@ export class Variants extends APIResource {
5151
* Updating a variant purges the cache for all images associated with the variant.
5252
*/
5353
edit(
54-
variantId: unknown,
54+
variantId: string,
5555
params: VariantEditParams,
5656
options?: Core.RequestOptions,
5757
): Core.APIPromise<ImageVariant> {
@@ -68,7 +68,7 @@ export class Variants extends APIResource {
6868
* Fetch details for a single variant.
6969
*/
7070
get(
71-
variantId: unknown,
71+
variantId: string,
7272
params: VariantGetParams,
7373
options?: Core.RequestOptions,
7474
): Core.APIPromise<ImageVariant> {
@@ -88,7 +88,7 @@ export interface ImageVariant {
8888

8989
export namespace ImageVariant {
9090
export interface Variant {
91-
id: unknown;
91+
id: string;
9292

9393
/**
9494
* Allows you to define image resizing sizes for different use cases.
@@ -142,7 +142,7 @@ export namespace ImageVariants {
142142

143143
export namespace Variants {
144144
export interface Hero {
145-
id: unknown;
145+
id: string;
146146

147147
/**
148148
* Allows you to define image resizing sizes for different use cases.
@@ -197,7 +197,7 @@ export interface VariantCreateParams {
197197
/**
198198
* Body param:
199199
*/
200-
id: unknown;
200+
id: string;
201201

202202
/**
203203
* Body param: Allows you to define image resizing sizes for different use cases.

src/resources/intel/domain-history.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface IntelDomainHistory {
3030

3131
export namespace IntelDomainHistory {
3232
export interface Categorization {
33-
categories?: unknown;
33+
categories?: Array<unknown>;
3434

3535
end?: string;
3636

@@ -49,7 +49,7 @@ export interface DomainHistoryGetParams {
4949
/**
5050
* Query param:
5151
*/
52-
domain?: unknown;
52+
domain?: string;
5353
}
5454

5555
export namespace DomainHistory {

src/resources/intel/domains/bulks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export namespace BulkGetResponse {
3636
/**
3737
* Current content categories.
3838
*/
39-
content_categories?: unknown;
39+
content_categories?: Array<unknown>;
4040

4141
domain?: string;
4242

@@ -62,7 +62,7 @@ export namespace BulkGetResponse {
6262
*/
6363
risk_score?: number;
6464

65-
risk_types?: unknown;
65+
risk_types?: Array<unknown>;
6666
}
6767

6868
export namespace BulkGetResponseItem {

src/resources/intel/domains/domains.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface IntelDomain {
3535
/**
3636
* Current content categories.
3737
*/
38-
content_categories?: unknown;
38+
content_categories?: Array<unknown>;
3939

4040
domain?: string;
4141

@@ -67,7 +67,7 @@ export interface IntelDomain {
6767
*/
6868
risk_score?: number;
6969

70-
risk_types?: unknown;
70+
risk_types?: Array<unknown>;
7171
}
7272

7373
export namespace IntelDomain {

0 commit comments

Comments
 (0)