@proxyrequest/sdk 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +42 -8
- package/SECURITY.md +1 -1
- package/dist/index.cjs +631 -257
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +218 -59
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +218 -59
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +632 -256
- package/dist/index.js.map +1 -1
- package/dist/{models-VMmyyuf_.d.cts → models-BDeknFzS.d.cts} +12 -9
- package/dist/models-BDeknFzS.d.cts.map +1 -0
- package/dist/{models-ECy_bhdn.d.ts → models-CNN_LuGV.d.ts} +12 -9
- package/dist/models-CNN_LuGV.d.ts.map +1 -0
- package/dist/models.d.cts +2 -2
- package/dist/models.d.ts +2 -2
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.ts +1 -1
- package/dist/{schema-CvCxeox5.d.cts → schema-BNl4txEF.d.cts} +757 -402
- package/dist/schema-BNl4txEF.d.cts.map +1 -0
- package/dist/{schema-CvCxeox5.d.ts → schema-BNl4txEF.d.ts} +757 -402
- package/dist/schema-BNl4txEF.d.ts.map +1 -0
- package/docs/SDK-AUDIT.md +273 -0
- package/docs/backend-compatibility.md +66 -0
- package/docs/errors-and-pagination.md +1 -1
- package/docs/getting-started.md +1 -2
- package/docs/releasing.md +13 -3
- package/docs/reseller-workflow.md +1 -1
- package/docs/webhooks.md +4 -7
- package/package.json +3 -2
- package/dist/models-ECy_bhdn.d.ts.map +0 -1
- package/dist/models-VMmyyuf_.d.cts.map +0 -1
- package/dist/schema-CvCxeox5.d.cts.map +0 -1
- package/dist/schema-CvCxeox5.d.ts.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as operations } from "./schema-
|
|
2
|
-
import { $ as
|
|
1
|
+
import { n as operations } from "./schema-BNl4txEF.cjs";
|
|
2
|
+
import { $ as LogsResponse, $t as SettingsReferral, A as GenerateProxyRequest, At as PatchedCouponUpdateRequest, B as InvoiceRead, Bt as ProxyGenerationConnectionRequest, C as CouponTypeEnum, Ct as PaginatedPackageCommissionList, D as EnabledResponse, Dt as PaginatedUserList, E as DomainsResponse, Et as PaginatedRewardList, F as Invoice, Ft as PaymentGateway, G as LevelEnum, Gt as RecoverPasswordRequest, H as InvoiceStatusEnum, Ht as ProxyGenerationTargetingRequest, I as InvoiceCreateRequestGatewayEnum, It as PaymentLinkResponse, J as LocationCodeName, Jt as Reward, K as LocationASNGeoItem, Kt as Region, L as InvoiceCreateRequestRequest, Lt as PricingEnum, M as GeneratedProxy, Mt as PatchedProfileUpdateRequest, N as GoogleAuthRequest, Nt as PatchedTelegramConnectionUpdateRequest, O as FeedRecord, Ot as PaginatedWebhookListList, P as ISP, Pt as PatchedUserUpdateRequest, Q as LoginRequestRequest, Qt as SettingsGateway, R as InvoiceCreateRequestStatusEnum, Rt as PricingUnitEnum, S as CouponShort, Sn as WebhookScopeEnum, St as PaginatedOrderList, T as DomainRecord, Tt as PaginatedRegionList, U as InvoiceTypeEnum, Ut as ProxyPasswordResetResponse, V as InvoiceShort, Vt as ProxyGenerationSessionRequest, W as LanguageEnum, Wt as ProxyTypeEnum, X as LocationRegionSummary, Xt as RewardStatusEnum, Y as LocationCountrySummary, Yt as RewardClaimRequestRequest, Z as LogRecord, Zt as SettingsCrypto, _ as Coupon, _n as UserPasswordResetRequestRequest, _t as PaginatedCouponShortList, a as Affiliate, an as TelegramLinkResponse, at as OverallPoint, b as CouponPriceResponse, bn as WebhookCreated, bt as PaginatedLocationASNRecordList, c as AffiliateStatsResponse, cn as TokenRefreshResponse, ct as PackageCommission, d as City, dn as TwoFactorConfirmRequest, dt as PaginatedAffiliateList, en as SettingsResponse, et as MessageResponse, f as CommissionTypeEnum, fn as TwoFactorDisableRequest, ft as PaginatedAffiliateRewardList, g as Country, gn as UserCreateRequest, gt as PaginatedCouponRedeemList, h as Continent, hn as User, ht as PaginatedCountryList, i as AddDataRequest, in as TelegramConnectionResponse, it as OrderDetailed, j as GenerateProxyResponse, jt as PatchedOrderAutoRenewalRequest, k as FeedResponse, kt as PasswordRecoveryResponse, l as ChangePasswordRequest, ln as TransactionRecord, lt as PackageShort, m as ConnectionsResponse, mn as TwoFactorSetupResponse, mt as PaginatedContinentList, n as APIKeyCreateRequest, nn as SubtractDataRequest, nt as OTPChallenge, o as AffiliateReward, on as TokenPairResponse, ot as OverallResponse, p as ConnectionRecord, pn as TwoFactorSetupRequestRequest, pt as PaginatedCityList, q as LocationASNRecord, qt as ResetPasswordRequest, r as APIKeyList, rn as TargetingOptions, rt as Order, s as AffiliateStatsPoint, sn as TokenRefreshRequestRequest, st as Package, t as APIKeyCreate, tn as SignUpRequest, tt as News, u as CheckoutStatusEnum, un as TransactionsResponse, ut as PaginatedAPIKeyListList, v as CouponCalculatePriceRequest, vn as VerifyOTPRequest, vt as PaginatedISPList, w as CouponUpdateRequest, wt as PaginatedPackageList, x as CouponRedeem, xn as WebhookList, xt as PaginatedNewsList, y as CouponCreateRequest, yn as WebhookCreateRequest, yt as PaginatedInvoiceReadList, z as InvoiceGatewayEnum, zt as ProtocolEnum } from "./models-BDeknFzS.cjs";
|
|
3
3
|
//#region src/files.d.ts
|
|
4
4
|
declare class FileDownload {
|
|
5
5
|
readonly content: Uint8Array;
|
|
@@ -27,6 +27,7 @@ interface OperationCallSpec {
|
|
|
27
27
|
method: HttpMethod;
|
|
28
28
|
path: string;
|
|
29
29
|
binary?: boolean;
|
|
30
|
+
idempotent?: boolean;
|
|
30
31
|
}
|
|
31
32
|
interface OperationCallData {
|
|
32
33
|
path?: Record<string, unknown>;
|
|
@@ -37,6 +38,14 @@ interface OperationCallData {
|
|
|
37
38
|
}
|
|
38
39
|
interface ResourceClient {
|
|
39
40
|
_call<Result>(spec: OperationCallSpec, data?: OperationCallData): Promise<Result>;
|
|
41
|
+
_callWithResponse<Result>(spec: OperationCallSpec, data?: OperationCallData): Promise<ApiResponse<Result>>;
|
|
42
|
+
}
|
|
43
|
+
interface ApiResponse<Result> {
|
|
44
|
+
data: Result;
|
|
45
|
+
statusCode: number;
|
|
46
|
+
headers: Readonly<Record<string, string>>;
|
|
47
|
+
etag?: string;
|
|
48
|
+
idempotencyReplayed: boolean;
|
|
40
49
|
}
|
|
41
50
|
type OperationParameter<Operation, Location extends "path" | "query" | "header" | "cookie", Name extends PropertyKey> = Operation extends {
|
|
42
51
|
parameters: infer Parameters;
|
|
@@ -73,6 +82,7 @@ interface APIKeysCreateOptions {
|
|
|
73
82
|
type APIKeysCreateResponse = OperationResult<operations["api_keys_create"]>;
|
|
74
83
|
interface APIKeysDeleteOptions {
|
|
75
84
|
id: OperationParameter<operations["api_keys_destroy"], "path", "id">;
|
|
85
|
+
idempotencyKey?: OperationParameter<operations["api_keys_destroy"], "header", "Idempotency-Key">;
|
|
76
86
|
acceptLanguage?: OperationParameter<operations["api_keys_destroy"], "header", "Accept-Language">;
|
|
77
87
|
request?: RequestControls;
|
|
78
88
|
}
|
|
@@ -82,10 +92,16 @@ declare class APIKeysResource {
|
|
|
82
92
|
constructor(client: ResourceClient);
|
|
83
93
|
/** List API keys */
|
|
84
94
|
list(options?: APIKeysListOptions): Promise<APIKeysListResponse>;
|
|
95
|
+
/** List API keys; include response metadata. */
|
|
96
|
+
listWithResponse(options?: APIKeysListOptions): Promise<ApiResponse<APIKeysListResponse>>;
|
|
85
97
|
/** Create an API key */
|
|
86
98
|
create(options?: APIKeysCreateOptions): Promise<APIKeysCreateResponse>;
|
|
99
|
+
/** Create an API key; include response metadata. */
|
|
100
|
+
createWithResponse(options?: APIKeysCreateOptions): Promise<ApiResponse<APIKeysCreateResponse>>;
|
|
87
101
|
/** Revoke an API key */
|
|
88
102
|
delete(options: APIKeysDeleteOptions): Promise<APIKeysDeleteResponse>;
|
|
103
|
+
/** Revoke an API key; include response metadata. */
|
|
104
|
+
deleteWithResponse(options: APIKeysDeleteOptions): Promise<ApiResponse<APIKeysDeleteResponse>>;
|
|
89
105
|
}
|
|
90
106
|
interface AffiliatesListOptions {
|
|
91
107
|
limit?: OperationParameter<operations["affiliates_list"], "query", "limit">;
|
|
@@ -111,10 +127,16 @@ declare class AffiliatesResource {
|
|
|
111
127
|
constructor(client: ResourceClient);
|
|
112
128
|
/** List referred customers */
|
|
113
129
|
list(options?: AffiliatesListOptions): Promise<AffiliatesListResponse>;
|
|
130
|
+
/** List referred customers; include response metadata. */
|
|
131
|
+
listWithResponse(options?: AffiliatesListOptions): Promise<ApiResponse<AffiliatesListResponse>>;
|
|
114
132
|
/** List affiliate reward entries */
|
|
115
133
|
listRewards(options?: AffiliatesListRewardsOptions): Promise<AffiliatesListRewardsResponse>;
|
|
134
|
+
/** List affiliate reward entries; include response metadata. */
|
|
135
|
+
listRewardsWithResponse(options?: AffiliatesListRewardsOptions): Promise<ApiResponse<AffiliatesListRewardsResponse>>;
|
|
116
136
|
/** Get affiliate earnings over time */
|
|
117
137
|
getRewardsOverall(options?: AffiliatesGetRewardsOverallOptions): Promise<AffiliatesGetRewardsOverallResponse>;
|
|
138
|
+
/** Get affiliate earnings over time; include response metadata. */
|
|
139
|
+
getRewardsOverallWithResponse(options?: AffiliatesGetRewardsOverallOptions): Promise<ApiResponse<AffiliatesGetRewardsOverallResponse>>;
|
|
118
140
|
}
|
|
119
141
|
interface AnalyticsGetTransactionsOptions {
|
|
120
142
|
end?: OperationParameter<operations["analytics_transactions_retrieve"], "query", "end">;
|
|
@@ -212,16 +234,28 @@ declare class AnalyticsResource {
|
|
|
212
234
|
constructor(client: ResourceClient);
|
|
213
235
|
/** List data transactions */
|
|
214
236
|
getTransactions(options: AnalyticsGetTransactionsOptions): Promise<AnalyticsGetTransactionsResponse>;
|
|
237
|
+
/** List data transactions; include response metadata. */
|
|
238
|
+
getTransactionsWithResponse(options: AnalyticsGetTransactionsOptions): Promise<ApiResponse<AnalyticsGetTransactionsResponse>>;
|
|
215
239
|
/** List active proxy connections */
|
|
216
240
|
getConnections(options?: AnalyticsGetConnectionsOptions): Promise<AnalyticsGetConnectionsResponse>;
|
|
241
|
+
/** List active proxy connections; include response metadata. */
|
|
242
|
+
getConnectionsWithResponse(options?: AnalyticsGetConnectionsOptions): Promise<ApiResponse<AnalyticsGetConnectionsResponse>>;
|
|
217
243
|
/** List top destination domains */
|
|
218
244
|
listDomains(options?: AnalyticsListDomainsOptions): Promise<AnalyticsListDomainsResponse>;
|
|
245
|
+
/** List top destination domains; include response metadata. */
|
|
246
|
+
listDomainsWithResponse(options?: AnalyticsListDomainsOptions): Promise<ApiResponse<AnalyticsListDomainsResponse>>;
|
|
219
247
|
/** List proxy request activity */
|
|
220
248
|
listFeed(options?: AnalyticsListFeedOptions): Promise<AnalyticsListFeedResponse>;
|
|
249
|
+
/** List proxy request activity; include response metadata. */
|
|
250
|
+
listFeedWithResponse(options?: AnalyticsListFeedOptions): Promise<ApiResponse<AnalyticsListFeedResponse>>;
|
|
221
251
|
/** List proxy error logs */
|
|
222
252
|
listLogs(options?: AnalyticsListLogsOptions): Promise<AnalyticsListLogsResponse>;
|
|
253
|
+
/** List proxy error logs; include response metadata. */
|
|
254
|
+
listLogsWithResponse(options?: AnalyticsListLogsOptions): Promise<ApiResponse<AnalyticsListLogsResponse>>;
|
|
223
255
|
/** Get traffic totals over time */
|
|
224
256
|
getOverall(options?: AnalyticsGetOverallOptions): Promise<AnalyticsGetOverallResponse>;
|
|
257
|
+
/** Get traffic totals over time; include response metadata. */
|
|
258
|
+
getOverallWithResponse(options?: AnalyticsGetOverallOptions): Promise<ApiResponse<AnalyticsGetOverallResponse>>;
|
|
225
259
|
}
|
|
226
260
|
interface AuthorizationLoginOptions {
|
|
227
261
|
acceptLanguage?: OperationParameter<operations["login_create"], "header", "Accept-Language">;
|
|
@@ -235,6 +269,12 @@ interface AuthorizationLoginWithGoogleOptions {
|
|
|
235
269
|
request?: RequestControls;
|
|
236
270
|
}
|
|
237
271
|
type AuthorizationLoginWithGoogleResponse = OperationResult<operations["login_google_create"]>;
|
|
272
|
+
interface AuthorizationVerifyOtpOptions {
|
|
273
|
+
acceptLanguage?: OperationParameter<operations["login_otp_create"], "header", "Accept-Language">;
|
|
274
|
+
body: OperationBody<operations["login_otp_create"]>;
|
|
275
|
+
request?: RequestControls;
|
|
276
|
+
}
|
|
277
|
+
type AuthorizationVerifyOtpResponse = OperationResult<operations["login_otp_create"]>;
|
|
238
278
|
interface AuthorizationRecoverPasswordOptions {
|
|
239
279
|
acceptLanguage?: OperationParameter<operations["recover_password_create"], "header", "Accept-Language">;
|
|
240
280
|
body: OperationBody<operations["recover_password_create"]>;
|
|
@@ -258,14 +298,28 @@ declare class AuthorizationResource {
|
|
|
258
298
|
constructor(client: ResourceClient);
|
|
259
299
|
/** Sign in with email or username */
|
|
260
300
|
login(options: AuthorizationLoginOptions): Promise<AuthorizationLoginResponse>;
|
|
301
|
+
/** Sign in with email or username; include response metadata. */
|
|
302
|
+
loginWithResponse(options: AuthorizationLoginOptions): Promise<ApiResponse<AuthorizationLoginResponse>>;
|
|
261
303
|
/** Sign in with Google */
|
|
262
304
|
loginWithGoogle(options: AuthorizationLoginWithGoogleOptions): Promise<AuthorizationLoginWithGoogleResponse>;
|
|
305
|
+
/** Sign in with Google; include response metadata. */
|
|
306
|
+
loginWithGoogleWithResponse(options: AuthorizationLoginWithGoogleOptions): Promise<ApiResponse<AuthorizationLoginWithGoogleResponse>>;
|
|
307
|
+
/** Complete two-factor sign-in */
|
|
308
|
+
verifyOtp(options: AuthorizationVerifyOtpOptions): Promise<AuthorizationVerifyOtpResponse>;
|
|
309
|
+
/** Complete two-factor sign-in; include response metadata. */
|
|
310
|
+
verifyOtpWithResponse(options: AuthorizationVerifyOtpOptions): Promise<ApiResponse<AuthorizationVerifyOtpResponse>>;
|
|
263
311
|
/** Send a password recovery email */
|
|
264
312
|
recoverPassword(options: AuthorizationRecoverPasswordOptions): Promise<AuthorizationRecoverPasswordResponse>;
|
|
313
|
+
/** Send a password recovery email; include response metadata. */
|
|
314
|
+
recoverPasswordWithResponse(options: AuthorizationRecoverPasswordOptions): Promise<ApiResponse<AuthorizationRecoverPasswordResponse>>;
|
|
265
315
|
/** Refresh an access token */
|
|
266
316
|
refresh(options: AuthorizationRefreshOptions): Promise<AuthorizationRefreshResponse>;
|
|
317
|
+
/** Refresh an access token; include response metadata. */
|
|
318
|
+
refreshWithResponse(options: AuthorizationRefreshOptions): Promise<ApiResponse<AuthorizationRefreshResponse>>;
|
|
267
319
|
/** Create a customer account */
|
|
268
320
|
signup(options: AuthorizationSignupOptions): Promise<AuthorizationSignupResponse>;
|
|
321
|
+
/** Create a customer account; include response metadata. */
|
|
322
|
+
signupWithResponse(options: AuthorizationSignupOptions): Promise<ApiResponse<AuthorizationSignupResponse>>;
|
|
269
323
|
}
|
|
270
324
|
interface CouponsListOptions {
|
|
271
325
|
code?: OperationParameter<operations["coupons_list"], "query", "code">;
|
|
@@ -279,6 +333,7 @@ interface CouponsListOptions {
|
|
|
279
333
|
}
|
|
280
334
|
type CouponsListResponse = OperationResult<operations["coupons_list"]>;
|
|
281
335
|
interface CouponsCreateOptions {
|
|
336
|
+
idempotencyKey?: OperationParameter<operations["coupons_create"], "header", "Idempotency-Key">;
|
|
282
337
|
acceptLanguage?: OperationParameter<operations["coupons_create"], "header", "Accept-Language">;
|
|
283
338
|
body: OperationBody<operations["coupons_create"]>;
|
|
284
339
|
request?: RequestControls;
|
|
@@ -292,6 +347,7 @@ interface CouponsGetOptions {
|
|
|
292
347
|
type CouponsGetResponse = OperationResult<operations["coupons_retrieve"]>;
|
|
293
348
|
interface CouponsReplaceOptions {
|
|
294
349
|
id: OperationParameter<operations["coupons_update"], "path", "id">;
|
|
350
|
+
ifMatch?: OperationParameter<operations["coupons_update"], "header", "If-Match">;
|
|
295
351
|
acceptLanguage?: OperationParameter<operations["coupons_update"], "header", "Accept-Language">;
|
|
296
352
|
body: OperationBody<operations["coupons_update"]>;
|
|
297
353
|
request?: RequestControls;
|
|
@@ -299,6 +355,7 @@ interface CouponsReplaceOptions {
|
|
|
299
355
|
type CouponsReplaceResponse = OperationResult<operations["coupons_update"]>;
|
|
300
356
|
interface CouponsUpdateOptions {
|
|
301
357
|
id: OperationParameter<operations["coupons_partial_update"], "path", "id">;
|
|
358
|
+
ifMatch?: OperationParameter<operations["coupons_partial_update"], "header", "If-Match">;
|
|
302
359
|
acceptLanguage?: OperationParameter<operations["coupons_partial_update"], "header", "Accept-Language">;
|
|
303
360
|
body?: OperationBody<operations["coupons_partial_update"]>;
|
|
304
361
|
request?: RequestControls;
|
|
@@ -306,6 +363,8 @@ interface CouponsUpdateOptions {
|
|
|
306
363
|
type CouponsUpdateResponse = OperationResult<operations["coupons_partial_update"]>;
|
|
307
364
|
interface CouponsDeleteOptions {
|
|
308
365
|
id: OperationParameter<operations["coupons_destroy"], "path", "id">;
|
|
366
|
+
idempotencyKey?: OperationParameter<operations["coupons_destroy"], "header", "Idempotency-Key">;
|
|
367
|
+
ifMatch?: OperationParameter<operations["coupons_destroy"], "header", "If-Match">;
|
|
309
368
|
acceptLanguage?: OperationParameter<operations["coupons_destroy"], "header", "Accept-Language">;
|
|
310
369
|
request?: RequestControls;
|
|
311
370
|
}
|
|
@@ -332,20 +391,36 @@ declare class CouponsResource {
|
|
|
332
391
|
constructor(client: ResourceClient);
|
|
333
392
|
/** List available coupons */
|
|
334
393
|
list(options?: CouponsListOptions): Promise<CouponsListResponse>;
|
|
394
|
+
/** List available coupons; include response metadata. */
|
|
395
|
+
listWithResponse(options?: CouponsListOptions): Promise<ApiResponse<CouponsListResponse>>;
|
|
335
396
|
/** Create a coupon */
|
|
336
397
|
create(options: CouponsCreateOptions): Promise<CouponsCreateResponse>;
|
|
398
|
+
/** Create a coupon; include response metadata. */
|
|
399
|
+
createWithResponse(options: CouponsCreateOptions): Promise<ApiResponse<CouponsCreateResponse>>;
|
|
337
400
|
/** Get a coupon */
|
|
338
401
|
get(options: CouponsGetOptions): Promise<CouponsGetResponse>;
|
|
402
|
+
/** Get a coupon; include response metadata. */
|
|
403
|
+
getWithResponse(options: CouponsGetOptions): Promise<ApiResponse<CouponsGetResponse>>;
|
|
339
404
|
/** Replace a coupon */
|
|
340
405
|
replace(options: CouponsReplaceOptions): Promise<CouponsReplaceResponse>;
|
|
406
|
+
/** Replace a coupon; include response metadata. */
|
|
407
|
+
replaceWithResponse(options: CouponsReplaceOptions): Promise<ApiResponse<CouponsReplaceResponse>>;
|
|
341
408
|
/** Update a coupon */
|
|
342
409
|
update(options: CouponsUpdateOptions): Promise<CouponsUpdateResponse>;
|
|
410
|
+
/** Update a coupon; include response metadata. */
|
|
411
|
+
updateWithResponse(options: CouponsUpdateOptions): Promise<ApiResponse<CouponsUpdateResponse>>;
|
|
343
412
|
/** Delete a coupon */
|
|
344
413
|
delete(options: CouponsDeleteOptions): Promise<CouponsDeleteResponse>;
|
|
414
|
+
/** Delete a coupon; include response metadata. */
|
|
415
|
+
deleteWithResponse(options: CouponsDeleteOptions): Promise<ApiResponse<CouponsDeleteResponse>>;
|
|
345
416
|
/** List coupon redemptions */
|
|
346
417
|
listRedeems(options: CouponsListRedeemsOptions): Promise<CouponsListRedeemsResponse>;
|
|
418
|
+
/** List coupon redemptions; include response metadata. */
|
|
419
|
+
listRedeemsWithResponse(options: CouponsListRedeemsOptions): Promise<ApiResponse<CouponsListRedeemsResponse>>;
|
|
347
420
|
/** Calculate a discounted price */
|
|
348
421
|
calculatePrice(options: CouponsCalculatePriceOptions): Promise<CouponsCalculatePriceResponse>;
|
|
422
|
+
/** Calculate a discounted price; include response metadata. */
|
|
423
|
+
calculatePriceWithResponse(options: CouponsCalculatePriceOptions): Promise<ApiResponse<CouponsCalculatePriceResponse>>;
|
|
349
424
|
}
|
|
350
425
|
interface InvoicesListOptions {
|
|
351
426
|
gateway?: OperationParameter<operations["invoices_list"], "query", "gateway">;
|
|
@@ -364,6 +439,7 @@ interface InvoicesListOptions {
|
|
|
364
439
|
}
|
|
365
440
|
type InvoicesListResponse = OperationResult<operations["invoices_list"]>;
|
|
366
441
|
interface InvoicesCreateOptions {
|
|
442
|
+
idempotencyKey?: OperationParameter<operations["invoices_create"], "header", "Idempotency-Key">;
|
|
367
443
|
acceptLanguage?: OperationParameter<operations["invoices_create"], "header", "Accept-Language">;
|
|
368
444
|
body: OperationBody<operations["invoices_create"]>;
|
|
369
445
|
request?: RequestControls;
|
|
@@ -377,6 +453,8 @@ interface InvoicesGetOptions {
|
|
|
377
453
|
type InvoicesGetResponse = OperationResult<operations["invoices_retrieve"]>;
|
|
378
454
|
interface InvoicesDeleteOptions {
|
|
379
455
|
id: OperationParameter<operations["invoices_destroy"], "path", "id">;
|
|
456
|
+
idempotencyKey?: OperationParameter<operations["invoices_destroy"], "header", "Idempotency-Key">;
|
|
457
|
+
ifMatch?: OperationParameter<operations["invoices_destroy"], "header", "If-Match">;
|
|
380
458
|
acceptLanguage?: OperationParameter<operations["invoices_destroy"], "header", "Accept-Language">;
|
|
381
459
|
request?: RequestControls;
|
|
382
460
|
}
|
|
@@ -398,16 +476,28 @@ declare class InvoicesResource {
|
|
|
398
476
|
constructor(client: ResourceClient);
|
|
399
477
|
/** List invoices */
|
|
400
478
|
list(options?: InvoicesListOptions): Promise<InvoicesListResponse>;
|
|
479
|
+
/** List invoices; include response metadata. */
|
|
480
|
+
listWithResponse(options?: InvoicesListOptions): Promise<ApiResponse<InvoicesListResponse>>;
|
|
401
481
|
/** Create an invoice */
|
|
402
482
|
create(options: InvoicesCreateOptions): Promise<InvoicesCreateResponse>;
|
|
483
|
+
/** Create an invoice; include response metadata. */
|
|
484
|
+
createWithResponse(options: InvoicesCreateOptions): Promise<ApiResponse<InvoicesCreateResponse>>;
|
|
403
485
|
/** Get an invoice */
|
|
404
486
|
get(options: InvoicesGetOptions): Promise<InvoicesGetResponse>;
|
|
487
|
+
/** Get an invoice; include response metadata. */
|
|
488
|
+
getWithResponse(options: InvoicesGetOptions): Promise<ApiResponse<InvoicesGetResponse>>;
|
|
405
489
|
/** Delete an invoice */
|
|
406
490
|
delete(options: InvoicesDeleteOptions): Promise<InvoicesDeleteResponse>;
|
|
491
|
+
/** Delete an invoice; include response metadata. */
|
|
492
|
+
deleteWithResponse(options: InvoicesDeleteOptions): Promise<ApiResponse<InvoicesDeleteResponse>>;
|
|
407
493
|
/** Download an invoice PDF */
|
|
408
494
|
downloadPdf(options: InvoicesDownloadPdfOptions): Promise<InvoicesDownloadPdfResponse>;
|
|
495
|
+
/** Download an invoice PDF; include response metadata. */
|
|
496
|
+
downloadPdfWithResponse(options: InvoicesDownloadPdfOptions): Promise<ApiResponse<InvoicesDownloadPdfResponse>>;
|
|
409
497
|
/** Get an invoice payment link */
|
|
410
498
|
getPaymentLink(options: InvoicesGetPaymentLinkOptions): Promise<InvoicesGetPaymentLinkResponse>;
|
|
499
|
+
/** Get an invoice payment link; include response metadata. */
|
|
500
|
+
getPaymentLinkWithResponse(options: InvoicesGetPaymentLinkOptions): Promise<ApiResponse<InvoicesGetPaymentLinkResponse>>;
|
|
411
501
|
}
|
|
412
502
|
interface LocationsListAsnsOptions {
|
|
413
503
|
code?: OperationParameter<operations["locations_asn_list"], "query", "code">;
|
|
@@ -516,24 +606,44 @@ declare class LocationsResource {
|
|
|
516
606
|
constructor(client: ResourceClient);
|
|
517
607
|
/** List available autonomous systems */
|
|
518
608
|
listAsns(options?: LocationsListAsnsOptions): Promise<LocationsListAsnsResponse>;
|
|
609
|
+
/** List available autonomous systems; include response metadata. */
|
|
610
|
+
listAsnsWithResponse(options?: LocationsListAsnsOptions): Promise<ApiResponse<LocationsListAsnsResponse>>;
|
|
519
611
|
/** List available cities */
|
|
520
612
|
listCities(options?: LocationsListCitiesOptions): Promise<LocationsListCitiesResponse>;
|
|
613
|
+
/** List available cities; include response metadata. */
|
|
614
|
+
listCitiesWithResponse(options?: LocationsListCitiesOptions): Promise<ApiResponse<LocationsListCitiesResponse>>;
|
|
521
615
|
/** Get a city */
|
|
522
616
|
getCity(options: LocationsGetCityOptions): Promise<LocationsGetCityResponse>;
|
|
617
|
+
/** Get a city; include response metadata. */
|
|
618
|
+
getCityWithResponse(options: LocationsGetCityOptions): Promise<ApiResponse<LocationsGetCityResponse>>;
|
|
523
619
|
/** List available continents */
|
|
524
620
|
listContinents(options?: LocationsListContinentsOptions): Promise<LocationsListContinentsResponse>;
|
|
621
|
+
/** List available continents; include response metadata. */
|
|
622
|
+
listContinentsWithResponse(options?: LocationsListContinentsOptions): Promise<ApiResponse<LocationsListContinentsResponse>>;
|
|
525
623
|
/** Get a continent */
|
|
526
624
|
getContinent(options: LocationsGetContinentOptions): Promise<LocationsGetContinentResponse>;
|
|
625
|
+
/** Get a continent; include response metadata. */
|
|
626
|
+
getContinentWithResponse(options: LocationsGetContinentOptions): Promise<ApiResponse<LocationsGetContinentResponse>>;
|
|
527
627
|
/** List available countries */
|
|
528
628
|
listCountries(options?: LocationsListCountriesOptions): Promise<LocationsListCountriesResponse>;
|
|
629
|
+
/** List available countries; include response metadata. */
|
|
630
|
+
listCountriesWithResponse(options?: LocationsListCountriesOptions): Promise<ApiResponse<LocationsListCountriesResponse>>;
|
|
529
631
|
/** Get a country */
|
|
530
632
|
getCountry(options: LocationsGetCountryOptions): Promise<LocationsGetCountryResponse>;
|
|
633
|
+
/** Get a country; include response metadata. */
|
|
634
|
+
getCountryWithResponse(options: LocationsGetCountryOptions): Promise<ApiResponse<LocationsGetCountryResponse>>;
|
|
531
635
|
/** List available internet service providers */
|
|
532
636
|
listIsps(options?: LocationsListIspsOptions): Promise<LocationsListIspsResponse>;
|
|
637
|
+
/** List available internet service providers; include response metadata. */
|
|
638
|
+
listIspsWithResponse(options?: LocationsListIspsOptions): Promise<ApiResponse<LocationsListIspsResponse>>;
|
|
533
639
|
/** List available regions */
|
|
534
640
|
listRegions(options?: LocationsListRegionsOptions): Promise<LocationsListRegionsResponse>;
|
|
641
|
+
/** List available regions; include response metadata. */
|
|
642
|
+
listRegionsWithResponse(options?: LocationsListRegionsOptions): Promise<ApiResponse<LocationsListRegionsResponse>>;
|
|
535
643
|
/** Get a region */
|
|
536
644
|
getRegion(options: LocationsGetRegionOptions): Promise<LocationsGetRegionResponse>;
|
|
645
|
+
/** Get a region; include response metadata. */
|
|
646
|
+
getRegionWithResponse(options: LocationsGetRegionOptions): Promise<ApiResponse<LocationsGetRegionResponse>>;
|
|
537
647
|
}
|
|
538
648
|
interface NewsListOptions {
|
|
539
649
|
limit?: OperationParameter<operations["news_list"], "query", "limit">;
|
|
@@ -549,6 +659,8 @@ declare class NewsResource {
|
|
|
549
659
|
constructor(client: ResourceClient);
|
|
550
660
|
/** List product announcements */
|
|
551
661
|
list(options?: NewsListOptions): Promise<NewsListResponse>;
|
|
662
|
+
/** List product announcements; include response metadata. */
|
|
663
|
+
listWithResponse(options?: NewsListOptions): Promise<ApiResponse<NewsListResponse>>;
|
|
552
664
|
}
|
|
553
665
|
interface OrdersListOptions {
|
|
554
666
|
limit?: OperationParameter<operations["orders_list"], "query", "limit">;
|
|
@@ -572,6 +684,7 @@ interface OrdersGetOptions {
|
|
|
572
684
|
type OrdersGetResponse = OperationResult<operations["orders_retrieve"]>;
|
|
573
685
|
interface OrdersUpdateAutoRenewalOptions {
|
|
574
686
|
id: OperationParameter<operations["orders_partial_update"], "path", "id">;
|
|
687
|
+
ifMatch?: OperationParameter<operations["orders_partial_update"], "header", "If-Match">;
|
|
575
688
|
acceptLanguage?: OperationParameter<operations["orders_partial_update"], "header", "Accept-Language">;
|
|
576
689
|
body?: OperationBody<operations["orders_partial_update"]>;
|
|
577
690
|
request?: RequestControls;
|
|
@@ -579,6 +692,8 @@ interface OrdersUpdateAutoRenewalOptions {
|
|
|
579
692
|
type OrdersUpdateAutoRenewalResponse = OperationResult<operations["orders_partial_update"]>;
|
|
580
693
|
interface OrdersDeleteOptions {
|
|
581
694
|
id: OperationParameter<operations["orders_destroy"], "path", "id">;
|
|
695
|
+
idempotencyKey?: OperationParameter<operations["orders_destroy"], "header", "Idempotency-Key">;
|
|
696
|
+
ifMatch?: OperationParameter<operations["orders_destroy"], "header", "If-Match">;
|
|
582
697
|
acceptLanguage?: OperationParameter<operations["orders_destroy"], "header", "Accept-Language">;
|
|
583
698
|
request?: RequestControls;
|
|
584
699
|
}
|
|
@@ -594,14 +709,24 @@ declare class OrdersResource {
|
|
|
594
709
|
constructor(client: ResourceClient);
|
|
595
710
|
/** List active orders */
|
|
596
711
|
list(options?: OrdersListOptions): Promise<OrdersListResponse>;
|
|
712
|
+
/** List active orders; include response metadata. */
|
|
713
|
+
listWithResponse(options?: OrdersListOptions): Promise<ApiResponse<OrdersListResponse>>;
|
|
597
714
|
/** Get an order */
|
|
598
715
|
get(options: OrdersGetOptions): Promise<OrdersGetResponse>;
|
|
716
|
+
/** Get an order; include response metadata. */
|
|
717
|
+
getWithResponse(options: OrdersGetOptions): Promise<ApiResponse<OrdersGetResponse>>;
|
|
599
718
|
/** Update order auto-renewal */
|
|
600
719
|
updateAutoRenewal(options: OrdersUpdateAutoRenewalOptions): Promise<OrdersUpdateAutoRenewalResponse>;
|
|
720
|
+
/** Update order auto-renewal; include response metadata. */
|
|
721
|
+
updateAutoRenewalWithResponse(options: OrdersUpdateAutoRenewalOptions): Promise<ApiResponse<OrdersUpdateAutoRenewalResponse>>;
|
|
601
722
|
/** Delete a sub-user order */
|
|
602
723
|
delete(options: OrdersDeleteOptions): Promise<OrdersDeleteResponse>;
|
|
724
|
+
/** Delete a sub-user order; include response metadata. */
|
|
725
|
+
deleteWithResponse(options: OrdersDeleteOptions): Promise<ApiResponse<OrdersDeleteResponse>>;
|
|
603
726
|
/** Reset an order's proxy password */
|
|
604
727
|
resetPassword(options: OrdersResetPasswordOptions): Promise<OrdersResetPasswordResponse>;
|
|
728
|
+
/** Reset an order's proxy password; include response metadata. */
|
|
729
|
+
resetPasswordWithResponse(options: OrdersResetPasswordOptions): Promise<ApiResponse<OrdersResetPasswordResponse>>;
|
|
605
730
|
}
|
|
606
731
|
interface PackagesListOptions {
|
|
607
732
|
alias?: OperationParameter<operations["packages_list"], "query", "alias">;
|
|
@@ -631,8 +756,12 @@ declare class PackagesResource {
|
|
|
631
756
|
constructor(client: ResourceClient);
|
|
632
757
|
/** List available proxy packages */
|
|
633
758
|
list(options?: PackagesListOptions): Promise<PackagesListResponse>;
|
|
759
|
+
/** List available proxy packages; include response metadata. */
|
|
760
|
+
listWithResponse(options?: PackagesListOptions): Promise<ApiResponse<PackagesListResponse>>;
|
|
634
761
|
/** List affiliate package commissions */
|
|
635
762
|
listCommissions(options?: PackagesListCommissionsOptions): Promise<PackagesListCommissionsResponse>;
|
|
763
|
+
/** List affiliate package commissions; include response metadata. */
|
|
764
|
+
listCommissionsWithResponse(options?: PackagesListCommissionsOptions): Promise<ApiResponse<PackagesListCommissionsResponse>>;
|
|
636
765
|
}
|
|
637
766
|
interface ProfileGetOptions {
|
|
638
767
|
acceptLanguage?: OperationParameter<operations["profile_retrieve"], "header", "Accept-Language">;
|
|
@@ -640,12 +769,14 @@ interface ProfileGetOptions {
|
|
|
640
769
|
}
|
|
641
770
|
type ProfileGetResponse = OperationResult<operations["profile_retrieve"]>;
|
|
642
771
|
interface ProfileUpdateOptions {
|
|
772
|
+
ifMatch?: OperationParameter<operations["profile_partial_update"], "header", "If-Match">;
|
|
643
773
|
acceptLanguage?: OperationParameter<operations["profile_partial_update"], "header", "Accept-Language">;
|
|
644
774
|
body?: OperationBody<operations["profile_partial_update"]>;
|
|
645
775
|
request?: RequestControls;
|
|
646
776
|
}
|
|
647
777
|
type ProfileUpdateResponse = OperationResult<operations["profile_partial_update"]>;
|
|
648
778
|
interface ProfileDeleteOptions {
|
|
779
|
+
ifMatch?: OperationParameter<operations["profile_destroy"], "header", "If-Match">;
|
|
649
780
|
acceptLanguage?: OperationParameter<operations["profile_destroy"], "header", "Accept-Language">;
|
|
650
781
|
request?: RequestControls;
|
|
651
782
|
}
|
|
@@ -664,6 +795,7 @@ interface ProfileDisableTwoFactorOptions {
|
|
|
664
795
|
type ProfileDisableTwoFactorResponse = OperationResult<operations["profile_2fa_disable_create"]>;
|
|
665
796
|
interface ProfileSetupTwoFactorOptions {
|
|
666
797
|
acceptLanguage?: OperationParameter<operations["profile_2fa_setup_create"], "header", "Accept-Language">;
|
|
798
|
+
body?: OperationBody<operations["profile_2fa_setup_create"]>;
|
|
667
799
|
request?: RequestControls;
|
|
668
800
|
}
|
|
669
801
|
type ProfileSetupTwoFactorResponse = OperationResult<operations["profile_2fa_setup_create"]>;
|
|
@@ -683,20 +815,36 @@ declare class ProfileResource {
|
|
|
683
815
|
constructor(client: ResourceClient);
|
|
684
816
|
/** Get the current profile */
|
|
685
817
|
get(options?: ProfileGetOptions): Promise<ProfileGetResponse>;
|
|
818
|
+
/** Get the current profile; include response metadata. */
|
|
819
|
+
getWithResponse(options?: ProfileGetOptions): Promise<ApiResponse<ProfileGetResponse>>;
|
|
686
820
|
/** Update the current profile */
|
|
687
821
|
update(options?: ProfileUpdateOptions): Promise<ProfileUpdateResponse>;
|
|
822
|
+
/** Update the current profile; include response metadata. */
|
|
823
|
+
updateWithResponse(options?: ProfileUpdateOptions): Promise<ApiResponse<ProfileUpdateResponse>>;
|
|
688
824
|
/** Delete the current account */
|
|
689
825
|
delete(options?: ProfileDeleteOptions): Promise<ProfileDeleteResponse>;
|
|
690
|
-
/**
|
|
826
|
+
/** Delete the current account; include response metadata. */
|
|
827
|
+
deleteWithResponse(options?: ProfileDeleteOptions): Promise<ApiResponse<ProfileDeleteResponse>>;
|
|
828
|
+
/** Confirm two-factor authentication */
|
|
691
829
|
confirmTwoFactor(options: ProfileConfirmTwoFactorOptions): Promise<ProfileConfirmTwoFactorResponse>;
|
|
830
|
+
/** Confirm two-factor authentication; include response metadata. */
|
|
831
|
+
confirmTwoFactorWithResponse(options: ProfileConfirmTwoFactorOptions): Promise<ApiResponse<ProfileConfirmTwoFactorResponse>>;
|
|
692
832
|
/** Disable two-factor authentication */
|
|
693
833
|
disableTwoFactor(options: ProfileDisableTwoFactorOptions): Promise<ProfileDisableTwoFactorResponse>;
|
|
694
|
-
/**
|
|
834
|
+
/** Disable two-factor authentication; include response metadata. */
|
|
835
|
+
disableTwoFactorWithResponse(options: ProfileDisableTwoFactorOptions): Promise<ApiResponse<ProfileDisableTwoFactorResponse>>;
|
|
836
|
+
/** Prepare two-factor authentication */
|
|
695
837
|
setupTwoFactor(options?: ProfileSetupTwoFactorOptions): Promise<ProfileSetupTwoFactorResponse>;
|
|
838
|
+
/** Prepare two-factor authentication; include response metadata. */
|
|
839
|
+
setupTwoFactorWithResponse(options?: ProfileSetupTwoFactorOptions): Promise<ApiResponse<ProfileSetupTwoFactorResponse>>;
|
|
696
840
|
/** Get two-factor status */
|
|
697
841
|
getTwoFactorStatus(options?: ProfileGetTwoFactorStatusOptions): Promise<ProfileGetTwoFactorStatusResponse>;
|
|
842
|
+
/** Get two-factor status; include response metadata. */
|
|
843
|
+
getTwoFactorStatusWithResponse(options?: ProfileGetTwoFactorStatusOptions): Promise<ApiResponse<ProfileGetTwoFactorStatusResponse>>;
|
|
698
844
|
/** Change the account password */
|
|
699
845
|
changePassword(options: ProfileChangePasswordOptions): Promise<ProfileChangePasswordResponse>;
|
|
846
|
+
/** Change the account password; include response metadata. */
|
|
847
|
+
changePasswordWithResponse(options: ProfileChangePasswordOptions): Promise<ApiResponse<ProfileChangePasswordResponse>>;
|
|
700
848
|
}
|
|
701
849
|
interface ProxiesGenerateOptions {
|
|
702
850
|
acceptLanguage?: OperationParameter<operations["proxies_generate_create"], "header", "Accept-Language">;
|
|
@@ -709,6 +857,8 @@ declare class ProxiesResource {
|
|
|
709
857
|
constructor(client: ResourceClient);
|
|
710
858
|
/** Generate proxy credentials */
|
|
711
859
|
generate(options: ProxiesGenerateOptions): Promise<ProxiesGenerateResponse>;
|
|
860
|
+
/** Generate proxy credentials; include response metadata. */
|
|
861
|
+
generateWithResponse(options: ProxiesGenerateOptions): Promise<ApiResponse<ProxiesGenerateResponse>>;
|
|
712
862
|
}
|
|
713
863
|
interface RewardsListOptions {
|
|
714
864
|
level?: OperationParameter<operations["rewards_list"], "query", "level">;
|
|
@@ -732,27 +882,12 @@ declare class RewardsResource {
|
|
|
732
882
|
constructor(client: ResourceClient);
|
|
733
883
|
/** List account rewards */
|
|
734
884
|
list(options?: RewardsListOptions): Promise<RewardsListResponse>;
|
|
885
|
+
/** List account rewards; include response metadata. */
|
|
886
|
+
listWithResponse(options?: RewardsListOptions): Promise<ApiResponse<RewardsListResponse>>;
|
|
735
887
|
/** Claim available rewards */
|
|
736
888
|
claim(options: RewardsClaimOptions): Promise<RewardsClaimResponse>;
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
acceptLanguage?: OperationParameter<operations["sessions_list"], "header", "Accept-Language">;
|
|
740
|
-
request?: RequestControls;
|
|
741
|
-
}
|
|
742
|
-
type SessionsListResponse = OperationResult<operations["sessions_list"]>;
|
|
743
|
-
interface SessionsDeleteOptions {
|
|
744
|
-
id: OperationParameter<operations["sessions_destroy"], "path", "id">;
|
|
745
|
-
acceptLanguage?: OperationParameter<operations["sessions_destroy"], "header", "Accept-Language">;
|
|
746
|
-
request?: RequestControls;
|
|
747
|
-
}
|
|
748
|
-
type SessionsDeleteResponse = OperationResult<operations["sessions_destroy"]>;
|
|
749
|
-
declare class SessionsResource {
|
|
750
|
-
#private;
|
|
751
|
-
constructor(client: ResourceClient);
|
|
752
|
-
/** List active proxy sessions */
|
|
753
|
-
list(options?: SessionsListOptions): Promise<SessionsListResponse>;
|
|
754
|
-
/** Revoke a proxy session */
|
|
755
|
-
delete(options: SessionsDeleteOptions): Promise<SessionsDeleteResponse>;
|
|
889
|
+
/** Claim available rewards; include response metadata. */
|
|
890
|
+
claimWithResponse(options: RewardsClaimOptions): Promise<ApiResponse<RewardsClaimResponse>>;
|
|
756
891
|
}
|
|
757
892
|
interface SettingsGetOptions {
|
|
758
893
|
acceptLanguage?: OperationParameter<operations["settings_retrieve"], "header", "Accept-Language">;
|
|
@@ -764,6 +899,8 @@ declare class SettingsResource {
|
|
|
764
899
|
constructor(client: ResourceClient);
|
|
765
900
|
/** Get account settings */
|
|
766
901
|
get(options?: SettingsGetOptions): Promise<SettingsGetResponse>;
|
|
902
|
+
/** Get account settings; include response metadata. */
|
|
903
|
+
getWithResponse(options?: SettingsGetOptions): Promise<ApiResponse<SettingsGetResponse>>;
|
|
767
904
|
}
|
|
768
905
|
interface TelegramDashboardGetConnectionOptions {
|
|
769
906
|
acceptLanguage?: OperationParameter<operations["integrations_telegram_connection_retrieve"], "header", "Accept-Language">;
|
|
@@ -791,34 +928,20 @@ declare class TelegramDashboardResource {
|
|
|
791
928
|
constructor(client: ResourceClient);
|
|
792
929
|
/** Get the Telegram dashboard connection */
|
|
793
930
|
getConnection(options?: TelegramDashboardGetConnectionOptions): Promise<TelegramDashboardGetConnectionResponse>;
|
|
931
|
+
/** Get the Telegram dashboard connection; include response metadata. */
|
|
932
|
+
getConnectionWithResponse(options?: TelegramDashboardGetConnectionOptions): Promise<ApiResponse<TelegramDashboardGetConnectionResponse>>;
|
|
794
933
|
/** Update Telegram dashboard preferences */
|
|
795
934
|
updateConnection(options?: TelegramDashboardUpdateConnectionOptions): Promise<TelegramDashboardUpdateConnectionResponse>;
|
|
935
|
+
/** Update Telegram dashboard preferences; include response metadata. */
|
|
936
|
+
updateConnectionWithResponse(options?: TelegramDashboardUpdateConnectionOptions): Promise<ApiResponse<TelegramDashboardUpdateConnectionResponse>>;
|
|
796
937
|
/** Disconnect the Telegram dashboard */
|
|
797
938
|
deleteConnection(options?: TelegramDashboardDeleteConnectionOptions): Promise<TelegramDashboardDeleteConnectionResponse>;
|
|
939
|
+
/** Disconnect the Telegram dashboard; include response metadata. */
|
|
940
|
+
deleteConnectionWithResponse(options?: TelegramDashboardDeleteConnectionOptions): Promise<ApiResponse<TelegramDashboardDeleteConnectionResponse>>;
|
|
798
941
|
/** Create a Telegram account link */
|
|
799
942
|
createLink(options?: TelegramDashboardCreateLinkOptions): Promise<TelegramDashboardCreateLinkResponse>;
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
serviceSecret: OperationParameter<operations["integrations_telegram_link_consume_create"], "header", "X-ProxyRequest-Telegram-Secret">;
|
|
803
|
-
acceptLanguage?: OperationParameter<operations["integrations_telegram_link_consume_create"], "header", "Accept-Language">;
|
|
804
|
-
body: OperationBody<operations["integrations_telegram_link_consume_create"]>;
|
|
805
|
-
request?: RequestControls;
|
|
806
|
-
}
|
|
807
|
-
type TelegramServiceConsumeLinkResponse = OperationResult<operations["integrations_telegram_link_consume_create"]>;
|
|
808
|
-
interface TelegramServiceCreateSessionOptions {
|
|
809
|
-
serviceSecret: OperationParameter<operations["integrations_telegram_session_create"], "header", "X-ProxyRequest-Telegram-Secret">;
|
|
810
|
-
acceptLanguage?: OperationParameter<operations["integrations_telegram_session_create"], "header", "Accept-Language">;
|
|
811
|
-
body: OperationBody<operations["integrations_telegram_session_create"]>;
|
|
812
|
-
request?: RequestControls;
|
|
813
|
-
}
|
|
814
|
-
type TelegramServiceCreateSessionResponse = OperationResult<operations["integrations_telegram_session_create"]>;
|
|
815
|
-
declare class TelegramServiceResource {
|
|
816
|
-
#private;
|
|
817
|
-
constructor(client: ResourceClient);
|
|
818
|
-
/** Consume a Telegram account link */
|
|
819
|
-
consumeLink(options: TelegramServiceConsumeLinkOptions): Promise<TelegramServiceConsumeLinkResponse>;
|
|
820
|
-
/** Create a Telegram API session */
|
|
821
|
-
createSession(options: TelegramServiceCreateSessionOptions): Promise<TelegramServiceCreateSessionResponse>;
|
|
943
|
+
/** Create a Telegram account link; include response metadata. */
|
|
944
|
+
createLinkWithResponse(options?: TelegramDashboardCreateLinkOptions): Promise<ApiResponse<TelegramDashboardCreateLinkResponse>>;
|
|
822
945
|
}
|
|
823
946
|
interface UsersListOptions {
|
|
824
947
|
email?: OperationParameter<operations["users_list"], "query", "email">;
|
|
@@ -834,6 +957,7 @@ interface UsersListOptions {
|
|
|
834
957
|
}
|
|
835
958
|
type UsersListResponse = OperationResult<operations["users_list"]>;
|
|
836
959
|
interface UsersCreateOptions {
|
|
960
|
+
idempotencyKey?: OperationParameter<operations["users_create"], "header", "Idempotency-Key">;
|
|
837
961
|
acceptLanguage?: OperationParameter<operations["users_create"], "header", "Accept-Language">;
|
|
838
962
|
body: OperationBody<operations["users_create"]>;
|
|
839
963
|
request?: RequestControls;
|
|
@@ -847,6 +971,7 @@ interface UsersGetOptions {
|
|
|
847
971
|
type UsersGetResponse = OperationResult<operations["users_retrieve"]>;
|
|
848
972
|
interface UsersUpdateOptions {
|
|
849
973
|
id: OperationParameter<operations["users_partial_update"], "path", "id">;
|
|
974
|
+
ifMatch?: OperationParameter<operations["users_partial_update"], "header", "If-Match">;
|
|
850
975
|
acceptLanguage?: OperationParameter<operations["users_partial_update"], "header", "Accept-Language">;
|
|
851
976
|
body?: OperationBody<operations["users_partial_update"]>;
|
|
852
977
|
request?: RequestControls;
|
|
@@ -854,12 +979,15 @@ interface UsersUpdateOptions {
|
|
|
854
979
|
type UsersUpdateResponse = OperationResult<operations["users_partial_update"]>;
|
|
855
980
|
interface UsersDeleteOptions {
|
|
856
981
|
id: OperationParameter<operations["users_destroy"], "path", "id">;
|
|
982
|
+
idempotencyKey?: OperationParameter<operations["users_destroy"], "header", "Idempotency-Key">;
|
|
983
|
+
ifMatch?: OperationParameter<operations["users_destroy"], "header", "If-Match">;
|
|
857
984
|
acceptLanguage?: OperationParameter<operations["users_destroy"], "header", "Accept-Language">;
|
|
858
985
|
request?: RequestControls;
|
|
859
986
|
}
|
|
860
987
|
type UsersDeleteResponse = OperationResult<operations["users_destroy"]>;
|
|
861
988
|
interface UsersAddDataOptions {
|
|
862
989
|
id: OperationParameter<operations["users_data_add_create"], "path", "id">;
|
|
990
|
+
idempotencyKey?: OperationParameter<operations["users_data_add_create"], "header", "Idempotency-Key">;
|
|
863
991
|
acceptLanguage?: OperationParameter<operations["users_data_add_create"], "header", "Accept-Language">;
|
|
864
992
|
body: OperationBody<operations["users_data_add_create"]>;
|
|
865
993
|
request?: RequestControls;
|
|
@@ -867,6 +995,7 @@ interface UsersAddDataOptions {
|
|
|
867
995
|
type UsersAddDataResponse = OperationResult<operations["users_data_add_create"]>;
|
|
868
996
|
interface UsersSubtractDataOptions {
|
|
869
997
|
id: OperationParameter<operations["users_data_subtract_create"], "path", "id">;
|
|
998
|
+
idempotencyKey?: OperationParameter<operations["users_data_subtract_create"], "header", "Idempotency-Key">;
|
|
870
999
|
acceptLanguage?: OperationParameter<operations["users_data_subtract_create"], "header", "Accept-Language">;
|
|
871
1000
|
body: OperationBody<operations["users_data_subtract_create"]>;
|
|
872
1001
|
request?: RequestControls;
|
|
@@ -896,22 +1025,40 @@ declare class UsersResource {
|
|
|
896
1025
|
constructor(client: ResourceClient);
|
|
897
1026
|
/** List users in the current account */
|
|
898
1027
|
list(options?: UsersListOptions): Promise<UsersListResponse>;
|
|
1028
|
+
/** List users in the current account; include response metadata. */
|
|
1029
|
+
listWithResponse(options?: UsersListOptions): Promise<ApiResponse<UsersListResponse>>;
|
|
899
1030
|
/** Create a sub-user */
|
|
900
1031
|
create(options: UsersCreateOptions): Promise<UsersCreateResponse>;
|
|
1032
|
+
/** Create a sub-user; include response metadata. */
|
|
1033
|
+
createWithResponse(options: UsersCreateOptions): Promise<ApiResponse<UsersCreateResponse>>;
|
|
901
1034
|
/** Get a user */
|
|
902
1035
|
get(options: UsersGetOptions): Promise<UsersGetResponse>;
|
|
1036
|
+
/** Get a user; include response metadata. */
|
|
1037
|
+
getWithResponse(options: UsersGetOptions): Promise<ApiResponse<UsersGetResponse>>;
|
|
903
1038
|
/** Update a user */
|
|
904
1039
|
update(options: UsersUpdateOptions): Promise<UsersUpdateResponse>;
|
|
1040
|
+
/** Update a user; include response metadata. */
|
|
1041
|
+
updateWithResponse(options: UsersUpdateOptions): Promise<ApiResponse<UsersUpdateResponse>>;
|
|
905
1042
|
/** Delete a user */
|
|
906
1043
|
delete(options: UsersDeleteOptions): Promise<UsersDeleteResponse>;
|
|
1044
|
+
/** Delete a user; include response metadata. */
|
|
1045
|
+
deleteWithResponse(options: UsersDeleteOptions): Promise<ApiResponse<UsersDeleteResponse>>;
|
|
907
1046
|
/** Add data to a sub-user order */
|
|
908
1047
|
addData(options: UsersAddDataOptions): Promise<UsersAddDataResponse>;
|
|
1048
|
+
/** Add data to a sub-user order; include response metadata. */
|
|
1049
|
+
addDataWithResponse(options: UsersAddDataOptions): Promise<ApiResponse<UsersAddDataResponse>>;
|
|
909
1050
|
/** Subtract data from a sub-user order */
|
|
910
1051
|
subtractData(options: UsersSubtractDataOptions): Promise<UsersSubtractDataResponse>;
|
|
1052
|
+
/** Subtract data from a sub-user order; include response metadata. */
|
|
1053
|
+
subtractDataWithResponse(options: UsersSubtractDataOptions): Promise<ApiResponse<UsersSubtractDataResponse>>;
|
|
911
1054
|
/** List a sub-user's orders */
|
|
912
1055
|
listOrders(options: UsersListOrdersOptions): Promise<UsersListOrdersResponse>;
|
|
1056
|
+
/** List a sub-user's orders; include response metadata. */
|
|
1057
|
+
listOrdersWithResponse(options: UsersListOrdersOptions): Promise<ApiResponse<UsersListOrdersResponse>>;
|
|
913
1058
|
/** Rotate a sub-user proxy password */
|
|
914
1059
|
resetPassword(options: UsersResetPasswordOptions): Promise<UsersResetPasswordResponse>;
|
|
1060
|
+
/** Rotate a sub-user proxy password; include response metadata. */
|
|
1061
|
+
resetPasswordWithResponse(options: UsersResetPasswordOptions): Promise<ApiResponse<UsersResetPasswordResponse>>;
|
|
915
1062
|
}
|
|
916
1063
|
interface WebhooksListOptions {
|
|
917
1064
|
limit?: OperationParameter<operations["webhooks_list"], "query", "limit">;
|
|
@@ -921,6 +1068,7 @@ interface WebhooksListOptions {
|
|
|
921
1068
|
}
|
|
922
1069
|
type WebhooksListResponse = OperationResult<operations["webhooks_list"]>;
|
|
923
1070
|
interface WebhooksCreateOptions {
|
|
1071
|
+
idempotencyKey?: OperationParameter<operations["webhooks_create"], "header", "Idempotency-Key">;
|
|
924
1072
|
acceptLanguage?: OperationParameter<operations["webhooks_create"], "header", "Accept-Language">;
|
|
925
1073
|
body: OperationBody<operations["webhooks_create"]>;
|
|
926
1074
|
request?: RequestControls;
|
|
@@ -934,6 +1082,8 @@ interface WebhooksGetOptions {
|
|
|
934
1082
|
type WebhooksGetResponse = OperationResult<operations["webhooks_retrieve"]>;
|
|
935
1083
|
interface WebhooksDeleteOptions {
|
|
936
1084
|
id: OperationParameter<operations["webhooks_destroy"], "path", "id">;
|
|
1085
|
+
idempotencyKey?: OperationParameter<operations["webhooks_destroy"], "header", "Idempotency-Key">;
|
|
1086
|
+
ifMatch?: OperationParameter<operations["webhooks_destroy"], "header", "If-Match">;
|
|
937
1087
|
acceptLanguage?: OperationParameter<operations["webhooks_destroy"], "header", "Accept-Language">;
|
|
938
1088
|
request?: RequestControls;
|
|
939
1089
|
}
|
|
@@ -943,12 +1093,20 @@ declare class WebhooksResource {
|
|
|
943
1093
|
constructor(client: ResourceClient);
|
|
944
1094
|
/** List customer webhooks */
|
|
945
1095
|
list(options?: WebhooksListOptions): Promise<WebhooksListResponse>;
|
|
1096
|
+
/** List customer webhooks; include response metadata. */
|
|
1097
|
+
listWithResponse(options?: WebhooksListOptions): Promise<ApiResponse<WebhooksListResponse>>;
|
|
946
1098
|
/** Create a customer webhook */
|
|
947
1099
|
create(options: WebhooksCreateOptions): Promise<WebhooksCreateResponse>;
|
|
1100
|
+
/** Create a customer webhook; include response metadata. */
|
|
1101
|
+
createWithResponse(options: WebhooksCreateOptions): Promise<ApiResponse<WebhooksCreateResponse>>;
|
|
948
1102
|
/** Get a customer webhook */
|
|
949
1103
|
get(options: WebhooksGetOptions): Promise<WebhooksGetResponse>;
|
|
1104
|
+
/** Get a customer webhook; include response metadata. */
|
|
1105
|
+
getWithResponse(options: WebhooksGetOptions): Promise<ApiResponse<WebhooksGetResponse>>;
|
|
950
1106
|
/** Delete a customer webhook */
|
|
951
1107
|
delete(options: WebhooksDeleteOptions): Promise<WebhooksDeleteResponse>;
|
|
1108
|
+
/** Delete a customer webhook; include response metadata. */
|
|
1109
|
+
deleteWithResponse(options: WebhooksDeleteOptions): Promise<ApiResponse<WebhooksDeleteResponse>>;
|
|
952
1110
|
}
|
|
953
1111
|
interface ResourceCollection {
|
|
954
1112
|
readonly apiKeys: APIKeysResource;
|
|
@@ -964,10 +1122,8 @@ interface ResourceCollection {
|
|
|
964
1122
|
readonly profile: ProfileResource;
|
|
965
1123
|
readonly proxies: ProxiesResource;
|
|
966
1124
|
readonly rewards: RewardsResource;
|
|
967
|
-
readonly sessions: SessionsResource;
|
|
968
1125
|
readonly settings: SettingsResource;
|
|
969
1126
|
readonly telegram: TelegramDashboardResource;
|
|
970
|
-
readonly telegramService: TelegramServiceResource;
|
|
971
1127
|
readonly users: UsersResource;
|
|
972
1128
|
readonly webhooks: WebhooksResource;
|
|
973
1129
|
}
|
|
@@ -1000,6 +1156,8 @@ interface ClientCommonOptions {
|
|
|
1000
1156
|
timeoutMs?: number;
|
|
1001
1157
|
fetch?: typeof globalThis.fetch;
|
|
1002
1158
|
headers?: HeadersInit;
|
|
1159
|
+
/** Automatically protect supported mutations with an Idempotency-Key. */
|
|
1160
|
+
idempotency?: boolean;
|
|
1003
1161
|
}
|
|
1004
1162
|
type ClientOptions = ClientCommonOptions & ({
|
|
1005
1163
|
apiKey: string;
|
|
@@ -1030,27 +1188,27 @@ declare class ProxyRequestClient implements ResourceClient, ResourceCollection {
|
|
|
1030
1188
|
readonly profile: ResourceCollection["profile"];
|
|
1031
1189
|
readonly proxies: ResourceCollection["proxies"];
|
|
1032
1190
|
readonly rewards: ResourceCollection["rewards"];
|
|
1033
|
-
readonly sessions: ResourceCollection["sessions"];
|
|
1034
1191
|
readonly settings: ResourceCollection["settings"];
|
|
1035
1192
|
readonly telegram: ResourceCollection["telegram"];
|
|
1036
|
-
readonly telegramService: ResourceCollection["telegramService"];
|
|
1037
1193
|
readonly users: ResourceCollection["users"];
|
|
1038
1194
|
readonly webhooks: ResourceCollection["webhooks"];
|
|
1039
1195
|
readonly baseUrl: string;
|
|
1040
1196
|
readonly language: string;
|
|
1041
1197
|
readonly timeoutMs: number;
|
|
1198
|
+
readonly idempotency: boolean;
|
|
1042
1199
|
constructor(options?: ClientOptions);
|
|
1043
1200
|
static withApiKey(apiKey: string, options?: ClientCommonOptions): ProxyRequestClient;
|
|
1044
1201
|
static withBearerToken(bearerToken: string, options?: ClientCommonOptions): ProxyRequestClient;
|
|
1045
1202
|
static anonymous(options?: ClientCommonOptions): ProxyRequestClient;
|
|
1046
1203
|
_call<Result>(spec: OperationCallSpec, data?: OperationCallData): Promise<Result>;
|
|
1204
|
+
_callWithResponse<Result>(spec: OperationCallSpec, data?: OperationCallData): Promise<ApiResponse<Result>>;
|
|
1047
1205
|
request(method: string, path: string, options?: RawRequestOptions): Promise<Response>;
|
|
1048
1206
|
paginate<Item>(pageFetcher: (parameters: PageParameters) => Promise<PaginatedPage<Item>>, options?: PaginationOptions): AsyncGenerator<Item, void, undefined>;
|
|
1049
1207
|
downloadInvoicePdf(id: string, request?: RequestControls): Promise<FileDownload>;
|
|
1050
1208
|
}
|
|
1051
1209
|
//#endregion
|
|
1052
1210
|
//#region src/errors.d.ts
|
|
1053
|
-
type ErrorKind = "validation" | "authentication" | "permission" | "not_found" | "conflict" | "rate_limit" | "server" | "network" | "unexpected";
|
|
1211
|
+
type ErrorKind = "validation" | "authentication" | "permission" | "not_found" | "conflict" | "precondition" | "rate_limit" | "server" | "network" | "unexpected";
|
|
1054
1212
|
declare class ProxyRequestError extends Error {
|
|
1055
1213
|
readonly name: string;
|
|
1056
1214
|
}
|
|
@@ -1062,6 +1220,8 @@ interface ApiErrorOptions {
|
|
|
1062
1220
|
requestId?: string;
|
|
1063
1221
|
retryAfter?: number;
|
|
1064
1222
|
contentLanguage?: string;
|
|
1223
|
+
currentEtag?: string;
|
|
1224
|
+
idempotencyKey?: string;
|
|
1065
1225
|
headers?: Record<string, string>;
|
|
1066
1226
|
rawBody?: Uint8Array;
|
|
1067
1227
|
cause?: unknown;
|
|
@@ -1075,6 +1235,8 @@ declare class ApiError extends ProxyRequestError {
|
|
|
1075
1235
|
readonly requestId: string | undefined;
|
|
1076
1236
|
readonly retryAfter: number | undefined;
|
|
1077
1237
|
readonly contentLanguage: string | undefined;
|
|
1238
|
+
readonly currentEtag: string | undefined;
|
|
1239
|
+
readonly idempotencyKey: string | undefined;
|
|
1078
1240
|
readonly headers: Readonly<Record<string, string>>;
|
|
1079
1241
|
readonly rawBody: Uint8Array;
|
|
1080
1242
|
readonly cause: unknown;
|
|
@@ -1083,6 +1245,7 @@ declare class ApiError extends ProxyRequestError {
|
|
|
1083
1245
|
static fromPayload(statusCode: number, rawBody: Uint8Array, headers?: Record<string, string>): ApiError;
|
|
1084
1246
|
static network(cause: unknown): ApiError;
|
|
1085
1247
|
static unexpected(message: string, cause?: unknown): ApiError;
|
|
1248
|
+
withIdempotencyKey(idempotencyKey: string | undefined): ApiError;
|
|
1086
1249
|
}
|
|
1087
1250
|
declare class PaginationError extends ProxyRequestError {
|
|
1088
1251
|
readonly name = "PaginationError";
|
|
@@ -1092,16 +1255,12 @@ declare class InvalidSignatureError extends ProxyRequestError {
|
|
|
1092
1255
|
}
|
|
1093
1256
|
//#endregion
|
|
1094
1257
|
//#region src/webhooks.d.ts
|
|
1095
|
-
interface WebhookVerificationOptions {
|
|
1096
|
-
timestampHeader?: string;
|
|
1097
|
-
tolerance?: number | null;
|
|
1098
|
-
now?: number;
|
|
1099
|
-
}
|
|
1100
1258
|
declare class WebhookVerifier {
|
|
1101
|
-
|
|
1102
|
-
static
|
|
1103
|
-
static
|
|
1259
|
+
/** Verify X-Signature against the exact raw request body. */
|
|
1260
|
+
static verify(rawBody: string | Uint8Array | ArrayBuffer, signature: string, secret: string): Promise<boolean>;
|
|
1261
|
+
static verifyOrThrow(rawBody: string | Uint8Array | ArrayBuffer, signature: string, secret: string): Promise<void>;
|
|
1262
|
+
static decodeVerifiedJson<Payload = Record<string, unknown>>(rawBody: string | Uint8Array | ArrayBuffer, signature: string, secret: string): Promise<Payload>;
|
|
1104
1263
|
}
|
|
1105
1264
|
//#endregion
|
|
1106
|
-
export { type APIKeyCreate, type APIKeyCreateRequest, type APIKeyList, APIKeysCreateOptions, APIKeysCreateResponse, APIKeysDeleteOptions, APIKeysDeleteResponse, APIKeysListOptions, APIKeysListResponse, APIKeysResource, type AddDataRequest, type Affiliate, type AffiliateReward, type AffiliateStatsPoint, type AffiliateStatsResponse, AffiliatesGetRewardsOverallOptions, AffiliatesGetRewardsOverallResponse, AffiliatesListOptions, AffiliatesListResponse, AffiliatesListRewardsOptions, AffiliatesListRewardsResponse, AffiliatesResource, AnalyticsGetConnectionsOptions, AnalyticsGetConnectionsResponse, AnalyticsGetOverallOptions, AnalyticsGetOverallResponse, AnalyticsGetTransactionsOptions, AnalyticsGetTransactionsResponse, AnalyticsListDomainsOptions, AnalyticsListDomainsResponse, AnalyticsListFeedOptions, AnalyticsListFeedResponse, AnalyticsListLogsOptions, AnalyticsListLogsResponse, AnalyticsResource, ApiError, type ApiErrorOptions, AuthorizationLoginOptions, AuthorizationLoginResponse, AuthorizationLoginWithGoogleOptions, AuthorizationLoginWithGoogleResponse, AuthorizationRecoverPasswordOptions, AuthorizationRecoverPasswordResponse, AuthorizationRefreshOptions, AuthorizationRefreshResponse, AuthorizationResource, AuthorizationSignupOptions, AuthorizationSignupResponse, type ChangePasswordRequest, type City, ProxyRequestClient as Client, ProxyRequestClient, type ClientCommonOptions, type ClientOptions, type CommissionTypeEnum, type ConnectionRecord, type ConnectionsResponse, type Continent, type Country, type Coupon, type CouponCalculatePriceRequest, type CouponCreateRequest, type CouponPriceResponse, type CouponRedeem, type CouponShort, type CouponTypeEnum, type CouponUpdateRequest, CouponsCalculatePriceOptions, CouponsCalculatePriceResponse, CouponsCreateOptions, CouponsCreateResponse, CouponsDeleteOptions, CouponsDeleteResponse, CouponsGetOptions, CouponsGetResponse, CouponsListOptions, CouponsListRedeemsOptions, CouponsListRedeemsResponse, CouponsListResponse, CouponsReplaceOptions, CouponsReplaceResponse, CouponsResource, CouponsUpdateOptions, CouponsUpdateResponse, DEFAULT_BASE_URL, type DomainRecord, type DomainsResponse, type EnabledResponse, type ErrorKind, type FeedRecord, type FeedResponse, FileDownload, type GenerateProxyRequest, type GenerateProxyResponse, type GeneratedProxy, type GoogleAuthRequest, type ISP, InvalidSignatureError, type Invoice, type InvoiceCreateRequestGatewayEnum, type InvoiceCreateRequestRequest, type InvoiceGatewayEnum, type InvoiceStatusEnum, type InvoiceTypeEnum, InvoicesCreateOptions, InvoicesCreateResponse, InvoicesDeleteOptions, InvoicesDeleteResponse, InvoicesDownloadPdfOptions, InvoicesDownloadPdfResponse, InvoicesGetOptions, InvoicesGetPaymentLinkOptions, InvoicesGetPaymentLinkResponse, InvoicesGetResponse, InvoicesListOptions, InvoicesListResponse, InvoicesResource, type LanguageEnum, type LevelEnum, type LocationASNGeoItem, type LocationASNRecord, type LocationCodeName, type LocationCountrySummary, type LocationRegionSummary, LocationsGetCityOptions, LocationsGetCityResponse, LocationsGetContinentOptions, LocationsGetContinentResponse, LocationsGetCountryOptions, LocationsGetCountryResponse, LocationsGetRegionOptions, LocationsGetRegionResponse, LocationsListAsnsOptions, LocationsListAsnsResponse, LocationsListCitiesOptions, LocationsListCitiesResponse, LocationsListContinentsOptions, LocationsListContinentsResponse, LocationsListCountriesOptions, LocationsListCountriesResponse, LocationsListIspsOptions, LocationsListIspsResponse, LocationsListRegionsOptions, LocationsListRegionsResponse, LocationsResource, type LogRecord, type LoginRequestRequest, type LogsResponse, type MessageResponse, type News, NewsListOptions, NewsListResponse, NewsResource, type Order, type OrderDetailed, OrdersDeleteOptions, OrdersDeleteResponse, OrdersGetOptions, OrdersGetResponse, OrdersListOptions, OrdersListResponse, OrdersResetPasswordOptions, OrdersResetPasswordResponse, OrdersResource, OrdersUpdateAutoRenewalOptions, OrdersUpdateAutoRenewalResponse, type OverallPoint, type OverallResponse, type Package, type PackageCommission, type PackageShort, PackagesListCommissionsOptions, PackagesListCommissionsResponse, PackagesListOptions, PackagesListResponse, PackagesResource, type PageParameters, type PaginatedAPIKeyListList, type PaginatedAffiliateList, type PaginatedAffiliateRewardList, type PaginatedCityList, type PaginatedContinentList, type PaginatedCountryList, type PaginatedCouponRedeemList, type PaginatedCouponShortList, type PaginatedISPList, type
|
|
1265
|
+
export { type APIKeyCreate, type APIKeyCreateRequest, type APIKeyList, APIKeysCreateOptions, APIKeysCreateResponse, APIKeysDeleteOptions, APIKeysDeleteResponse, APIKeysListOptions, APIKeysListResponse, APIKeysResource, type AddDataRequest, type Affiliate, type AffiliateReward, type AffiliateStatsPoint, type AffiliateStatsResponse, AffiliatesGetRewardsOverallOptions, AffiliatesGetRewardsOverallResponse, AffiliatesListOptions, AffiliatesListResponse, AffiliatesListRewardsOptions, AffiliatesListRewardsResponse, AffiliatesResource, AnalyticsGetConnectionsOptions, AnalyticsGetConnectionsResponse, AnalyticsGetOverallOptions, AnalyticsGetOverallResponse, AnalyticsGetTransactionsOptions, AnalyticsGetTransactionsResponse, AnalyticsListDomainsOptions, AnalyticsListDomainsResponse, AnalyticsListFeedOptions, AnalyticsListFeedResponse, AnalyticsListLogsOptions, AnalyticsListLogsResponse, AnalyticsResource, ApiError, type ApiErrorOptions, type ApiResponse, AuthorizationLoginOptions, AuthorizationLoginResponse, AuthorizationLoginWithGoogleOptions, AuthorizationLoginWithGoogleResponse, AuthorizationRecoverPasswordOptions, AuthorizationRecoverPasswordResponse, AuthorizationRefreshOptions, AuthorizationRefreshResponse, AuthorizationResource, AuthorizationSignupOptions, AuthorizationSignupResponse, AuthorizationVerifyOtpOptions, AuthorizationVerifyOtpResponse, type ChangePasswordRequest, type CheckoutStatusEnum, type City, ProxyRequestClient as Client, ProxyRequestClient, type ClientCommonOptions, type ClientOptions, type CommissionTypeEnum, type ConnectionRecord, type ConnectionsResponse, type Continent, type Country, type Coupon, type CouponCalculatePriceRequest, type CouponCreateRequest, type CouponPriceResponse, type CouponRedeem, type CouponShort, type CouponTypeEnum, type CouponUpdateRequest, CouponsCalculatePriceOptions, CouponsCalculatePriceResponse, CouponsCreateOptions, CouponsCreateResponse, CouponsDeleteOptions, CouponsDeleteResponse, CouponsGetOptions, CouponsGetResponse, CouponsListOptions, CouponsListRedeemsOptions, CouponsListRedeemsResponse, CouponsListResponse, CouponsReplaceOptions, CouponsReplaceResponse, CouponsResource, CouponsUpdateOptions, CouponsUpdateResponse, DEFAULT_BASE_URL, type DomainRecord, type DomainsResponse, type EnabledResponse, type ErrorKind, type FeedRecord, type FeedResponse, FileDownload, type GenerateProxyRequest, type GenerateProxyResponse, type GeneratedProxy, type GoogleAuthRequest, type ISP, InvalidSignatureError, type Invoice, type InvoiceCreateRequestGatewayEnum, type InvoiceCreateRequestRequest, type InvoiceCreateRequestStatusEnum, type InvoiceGatewayEnum, type InvoiceRead, type InvoiceShort, type InvoiceStatusEnum, type InvoiceTypeEnum, InvoicesCreateOptions, InvoicesCreateResponse, InvoicesDeleteOptions, InvoicesDeleteResponse, InvoicesDownloadPdfOptions, InvoicesDownloadPdfResponse, InvoicesGetOptions, InvoicesGetPaymentLinkOptions, InvoicesGetPaymentLinkResponse, InvoicesGetResponse, InvoicesListOptions, InvoicesListResponse, InvoicesResource, type LanguageEnum, type LevelEnum, type LocationASNGeoItem, type LocationASNRecord, type LocationCodeName, type LocationCountrySummary, type LocationRegionSummary, LocationsGetCityOptions, LocationsGetCityResponse, LocationsGetContinentOptions, LocationsGetContinentResponse, LocationsGetCountryOptions, LocationsGetCountryResponse, LocationsGetRegionOptions, LocationsGetRegionResponse, LocationsListAsnsOptions, LocationsListAsnsResponse, LocationsListCitiesOptions, LocationsListCitiesResponse, LocationsListContinentsOptions, LocationsListContinentsResponse, LocationsListCountriesOptions, LocationsListCountriesResponse, LocationsListIspsOptions, LocationsListIspsResponse, LocationsListRegionsOptions, LocationsListRegionsResponse, LocationsResource, type LogRecord, type LoginRequestRequest, type LogsResponse, type MessageResponse, type News, NewsListOptions, NewsListResponse, NewsResource, type OTPChallenge, type Order, type OrderDetailed, OrdersDeleteOptions, OrdersDeleteResponse, OrdersGetOptions, OrdersGetResponse, OrdersListOptions, OrdersListResponse, OrdersResetPasswordOptions, OrdersResetPasswordResponse, OrdersResource, OrdersUpdateAutoRenewalOptions, OrdersUpdateAutoRenewalResponse, type OverallPoint, type OverallResponse, type Package, type PackageCommission, type PackageShort, PackagesListCommissionsOptions, PackagesListCommissionsResponse, PackagesListOptions, PackagesListResponse, PackagesResource, type PageParameters, type PaginatedAPIKeyListList, type PaginatedAffiliateList, type PaginatedAffiliateRewardList, type PaginatedCityList, type PaginatedContinentList, type PaginatedCountryList, type PaginatedCouponRedeemList, type PaginatedCouponShortList, type PaginatedISPList, type PaginatedInvoiceReadList, type PaginatedLocationASNRecordList, type PaginatedNewsList, type PaginatedOrderList, type PaginatedPackageCommissionList, type PaginatedPackageList, type PaginatedPage, type PaginatedRegionList, type PaginatedRewardList, type PaginatedUserList, type PaginatedWebhookListList, PaginationError, type PaginationOptions, type PasswordRecoveryResponse, type PatchedCouponUpdateRequest, type PatchedOrderAutoRenewalRequest, type PatchedProfileUpdateRequest, type PatchedTelegramConnectionUpdateRequest, type PatchedUserUpdateRequest, type PaymentGateway, type PaymentLinkResponse, type PricingEnum, type PricingUnitEnum, ProfileChangePasswordOptions, ProfileChangePasswordResponse, ProfileConfirmTwoFactorOptions, ProfileConfirmTwoFactorResponse, ProfileDeleteOptions, ProfileDeleteResponse, ProfileDisableTwoFactorOptions, ProfileDisableTwoFactorResponse, ProfileGetOptions, ProfileGetResponse, ProfileGetTwoFactorStatusOptions, ProfileGetTwoFactorStatusResponse, ProfileResource, ProfileSetupTwoFactorOptions, ProfileSetupTwoFactorResponse, ProfileUpdateOptions, ProfileUpdateResponse, type ProtocolEnum, ProxiesGenerateOptions, ProxiesGenerateResponse, ProxiesResource, type ProxyGenerationConnectionRequest, type ProxyGenerationSessionRequest, type ProxyGenerationTargetingRequest, type ProxyPasswordResetResponse, ProxyRequestError, type ProxyTypeEnum, type RawRequestOptions, type RecoverPasswordRequest, type Region, type RequestControls, type ResetPasswordRequest, ResourceCollection, type Reward, type RewardClaimRequestRequest, type RewardStatusEnum, RewardsClaimOptions, RewardsClaimResponse, RewardsListOptions, RewardsListResponse, RewardsResource, SDK_VERSION, type SettingsCrypto, type SettingsGateway, SettingsGetOptions, SettingsGetResponse, type SettingsReferral, SettingsResource, type SettingsResponse, type SignUpRequest, type SubtractDataRequest, type TargetingOptions, type TelegramConnectionResponse, TelegramDashboardCreateLinkOptions, TelegramDashboardCreateLinkResponse, TelegramDashboardDeleteConnectionOptions, TelegramDashboardDeleteConnectionResponse, TelegramDashboardGetConnectionOptions, TelegramDashboardGetConnectionResponse, TelegramDashboardResource, TelegramDashboardUpdateConnectionOptions, TelegramDashboardUpdateConnectionResponse, type TelegramLinkResponse, type TokenPairResponse, type TokenRefreshRequestRequest, type TokenRefreshResponse, type TransactionRecord, type TransactionsResponse, type TwoFactorConfirmRequest, type TwoFactorDisableRequest, type TwoFactorSetupRequestRequest, type TwoFactorSetupResponse, type User, type UserCreateRequest, type UserPasswordResetRequestRequest, UsersAddDataOptions, UsersAddDataResponse, UsersCreateOptions, UsersCreateResponse, UsersDeleteOptions, UsersDeleteResponse, UsersGetOptions, UsersGetResponse, UsersListOptions, UsersListOrdersOptions, UsersListOrdersResponse, UsersListResponse, UsersResetPasswordOptions, UsersResetPasswordResponse, UsersResource, UsersSubtractDataOptions, UsersSubtractDataResponse, UsersUpdateOptions, UsersUpdateResponse, type VerifyOTPRequest, type WebhookCreateRequest, type WebhookCreated, type WebhookList, type WebhookScopeEnum, WebhookVerifier, WebhooksCreateOptions, WebhooksCreateResponse, WebhooksDeleteOptions, WebhooksDeleteResponse, WebhooksGetOptions, WebhooksGetResponse, WebhooksListOptions, WebhooksListResponse, WebhooksResource, createResourceCollection, paginate };
|
|
1107
1266
|
//# sourceMappingURL=index.d.cts.map
|