Skip to content

Commit 56ec6a4

Browse files
feat(api): api update
1 parent a6d690d commit 56ec6a4

File tree

4 files changed

+45
-14
lines changed

4 files changed

+45
-14
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1793
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dde6d209f78bcbc379c45619d46a518a8facebca366a150505994a244cf716bc.yml
3-
openapi_spec_hash: 1eb48e887e2539d2679d23de30814bd0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fa228e0e5630576fb09caf637762c0fd38ba8bc29ae5dad88ba612cb391cd25c.yml
3+
openapi_spec_hash: 29022fdca536eab9103acd0f2ea986d9
44
config_hash: de4c81cee29cd7dd907279e8916b334f

src/resources/custom-nameservers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export interface CustomNameserver {
102102
status: 'moved' | 'pending' | 'verified';
103103

104104
/**
105-
* Identifier
105+
* Identifier.
106106
*/
107107
zone_tag: string;
108108

src/resources/dns/dns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class DNS extends APIResource {
7474
/**
7575
* Nominal metric values, broken down by time interval.
7676
*/
77-
export type DNSAnalyticsNominalMetric = Array<unknown>;
77+
export type DNSAnalyticsNominalMetric = Array<number>;
7878

7979
export interface DNSAnalyticsQuery {
8080
/**

src/resources/zones/custom-nameservers.ts

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import { APIResource } from '../../resource';
44
import * as Core from '../../core';
5-
import * as Shared from '../shared';
65
import { SinglePage } from '../../pagination';
76

87
/**
@@ -58,12 +57,12 @@ export class CustomNameserverUpdateResponsesSinglePage extends SinglePage<Custom
5857
export type CustomNameserverUpdateResponse = string;
5958

6059
export interface CustomNameserverGetResponse {
61-
errors: Array<Shared.ResponseInfo>;
60+
errors: Array<CustomNameserverGetResponse.Error>;
6261

63-
messages: Array<Shared.ResponseInfo>;
62+
messages: Array<CustomNameserverGetResponse.Message>;
6463

6564
/**
66-
* Whether the API call was successful
65+
* Whether the API call was successful.
6766
*/
6867
success: true;
6968

@@ -81,32 +80,64 @@ export interface CustomNameserverGetResponse {
8180
}
8281

8382
export namespace CustomNameserverGetResponse {
83+
export interface Error {
84+
code: number;
85+
86+
message: string;
87+
88+
documentation_url?: string;
89+
90+
source?: Error.Source;
91+
}
92+
93+
export namespace Error {
94+
export interface Source {
95+
pointer?: string;
96+
}
97+
}
98+
99+
export interface Message {
100+
code: number;
101+
102+
message: string;
103+
104+
documentation_url?: string;
105+
106+
source?: Message.Source;
107+
}
108+
109+
export namespace Message {
110+
export interface Source {
111+
pointer?: string;
112+
}
113+
}
114+
84115
export interface ResultInfo {
85116
/**
86-
* Total number of results for the requested service
117+
* Total number of results for the requested service.
87118
*/
88119
count?: number;
89120

90121
/**
91-
* Current page within paginated list of results
122+
* Current page within paginated list of results.
92123
*/
93124
page?: number;
94125

95126
/**
96-
* Number of results per page of results
127+
* Number of results per page of results.
97128
*/
98129
per_page?: number;
99130

100131
/**
101-
* Total results available without any search parameters
132+
* Total results available without any search parameters.
102133
*/
103134
total_count?: number;
104135
}
105136
}
106137

107138
export interface CustomNameserverUpdateParams {
108139
/**
109-
* Path param: Identifier
140+
* Path param: Identifier.
110141
*/
111142
zone_id: string;
112143

@@ -123,7 +154,7 @@ export interface CustomNameserverUpdateParams {
123154

124155
export interface CustomNameserverGetParams {
125156
/**
126-
* Identifier
157+
* Identifier.
127158
*/
128159
zone_id: string;
129160
}

0 commit comments

Comments
 (0)