|
1 | 1 | // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
2 | 2 |
|
3 | | -import * as Core from './core'; |
4 | 3 | import * as Errors from './error'; |
5 | | -import { type Agent } from './_shims/index'; |
6 | 4 | import * as Uploads from './uploads'; |
| 5 | +import { type Agent } from './_shims/index'; |
7 | 6 | import * as qs from 'qs'; |
| 7 | +import * as Core from './core'; |
8 | 8 | import * as Pagination from './pagination'; |
9 | 9 | import * as API from './resources/index'; |
10 | 10 |
|
@@ -86,7 +86,9 @@ export interface ClientOptions { |
86 | 86 | defaultQuery?: Core.DefaultQuery; |
87 | 87 | } |
88 | 88 |
|
89 | | -/** API Client for interfacing with the Cloudflare API. */ |
| 89 | +/** |
| 90 | + * API Client for interfacing with the Cloudflare API. |
| 91 | + */ |
90 | 92 | export class Cloudflare extends Core.APIClient { |
91 | 93 | apiToken: string | null; |
92 | 94 | apiKey: string | null; |
@@ -134,6 +136,7 @@ export class Cloudflare extends Core.APIClient { |
134 | 136 | maxRetries: options.maxRetries, |
135 | 137 | fetch: options.fetch, |
136 | 138 | }); |
| 139 | + |
137 | 140 | this._options = options; |
138 | 141 |
|
139 | 142 | this.apiToken = apiToken; |
@@ -226,6 +229,7 @@ export class Cloudflare extends Core.APIClient { |
226 | 229 | eventNotifications: API.EventNotifications = new API.EventNotifications(this); |
227 | 230 | aiGateway: API.AIGateway = new API.AIGateway(this); |
228 | 231 | iam: API.IAM = new API.IAM(this); |
| 232 | + cloudConnector: API.CloudConnector = new API.CloudConnector(this); |
229 | 233 |
|
230 | 234 | protected override defaultQuery(): Core.DefaultQuery | undefined { |
231 | 235 | return this._options.defaultQuery; |
@@ -328,7 +332,7 @@ export class Cloudflare extends Core.APIClient { |
328 | 332 | } |
329 | 333 |
|
330 | 334 | protected override stringifyQuery(query: Record<string, unknown>): string { |
331 | | - return qs.stringify(query, { arrayFormat: 'repeat' }); |
| 335 | + return qs.stringify(query, { allowDots: true, arrayFormat: 'repeat' }); |
332 | 336 | } |
333 | 337 |
|
334 | 338 | static Cloudflare = this; |
@@ -560,6 +564,8 @@ export namespace Cloudflare { |
560 | 564 |
|
561 | 565 | export import IAM = API.IAM; |
562 | 566 |
|
| 567 | + export import CloudConnector = API.CloudConnector; |
| 568 | + |
563 | 569 | export import ASN = API.ASN; |
564 | 570 | export import AuditLog = API.AuditLog; |
565 | 571 | export import CertificateCA = API.CertificateCA; |
|
0 commit comments