celitech-sdk 1.3.63 → 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/dist/index.js CHANGED
@@ -31,6 +31,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
33
  Celitech: () => Celitech,
34
+ CreatePurchaseRequestLanguage: () => CreatePurchaseRequestLanguage,
35
+ CreatePurchaseV2RequestLanguage: () => CreatePurchaseV2RequestLanguage,
34
36
  DestinationsService: () => DestinationsService,
35
37
  ESimService: () => ESimService,
36
38
  Environment: () => Environment,
@@ -279,7 +281,11 @@ var TransportHookAdapter = class {
279
281
  method: newRequest.method,
280
282
  path: newRequest.path,
281
283
  body: newRequest.body,
282
- queryParams: this.hookParamsToTransportParams(newRequest.queryParams, request.queryParams, true),
284
+ queryParams: this.hookParamsToTransportParams(
285
+ newRequest.queryParams,
286
+ request.queryParams,
287
+ true
288
+ ),
283
289
  headers: this.hookParamsToTransportParams(newRequest.headers, request.headers, false),
284
290
  pathParams: this.hookParamsToTransportParams(newRequest.pathParams, request.headers, false)
285
291
  });
@@ -443,7 +449,9 @@ var HookHandler = class {
443
449
  if (error) {
444
450
  const decodedBody2 = new TextDecoder().decode(arrayBuffer);
445
451
  const json = JSON.parse(decodedBody2);
446
- new error.error((json == null ? void 0 : json.message) || "", json).throw();
452
+ const customError = new error.error((json == null ? void 0 : json.message) || "", json);
453
+ customError.metadata = response.metadata;
454
+ customError.throw();
447
455
  }
448
456
  const decodedBody = new TextDecoder().decode(arrayBuffer);
449
457
  throw new HttpError(
@@ -646,8 +654,8 @@ var ResponseValidationHandler = class {
646
654
  * @returns The validated data (parsed if validation enabled, raw otherwise)
647
655
  */
648
656
  validate(request, response, data) {
649
- var _a;
650
- if ((_a = request.validation) == null ? void 0 : _a.responseValidation) {
657
+ var _a, _b;
658
+ if ((_b = (_a = request.config.validation) == null ? void 0 : _a.responseValidation) != null ? _b : true) {
651
659
  return response.schema.parse(data);
652
660
  }
653
661
  return data;
@@ -720,7 +728,9 @@ var ValidationError = class extends Error {
720
728
  }
721
729
  const error = [
722
730
  `ValidationError:`,
723
- ...zodError.issues.map((issue) => ` Property: ${issue.path.join(".")}. Message: ${issue.message}`),
731
+ ...zodError.issues.map(
732
+ (issue) => ` Property: ${issue.path.join(".")}. Message: ${issue.message}`
733
+ ),
724
734
  " Validated:",
725
735
  ...actual.split("\n").map((line) => ` ${line}`)
726
736
  ].join("\n");
@@ -1028,7 +1038,10 @@ var RequestFetchAdapter = class {
1028
1038
  return headers;
1029
1039
  }
1030
1040
  toArrayBuffer(uint8Array) {
1031
- return uint8Array.buffer.slice(uint8Array.byteOffset, uint8Array.byteOffset + uint8Array.byteLength);
1041
+ return uint8Array.buffer.slice(
1042
+ uint8Array.byteOffset,
1043
+ uint8Array.byteOffset + uint8Array.byteLength
1044
+ );
1032
1045
  }
1033
1046
  };
1034
1047
 
@@ -1059,23 +1072,27 @@ var RetryHandler = class {
1059
1072
  /**
1060
1073
  * Handles a standard HTTP request with retry logic.
1061
1074
  * Retries failed requests based on the configured retry settings.
1075
+ * Implements exponential backoff with optional jitter between retry attempts.
1062
1076
  * @template T - The expected response data type
1063
1077
  * @param request - The HTTP request to process
1064
1078
  * @returns A promise that resolves to the HTTP response
1065
1079
  * @throws Error if no next handler is set, or if all retry attempts fail
1066
1080
  */
1067
1081
  async handle(request) {
1082
+ var _a, _b;
1068
1083
  if (!this.next) {
1069
1084
  throw new Error("No next handler set in retry handler.");
1070
1085
  }
1071
- for (let attempt = 1; attempt <= request.retry.attempts; attempt++) {
1086
+ const maxAttempts = (_b = (_a = request.config.retry) == null ? void 0 : _a.attempts) != null ? _b : 3;
1087
+ for (let attempt = 1; attempt <= maxAttempts; attempt++) {
1072
1088
  try {
1073
1089
  return await this.next.handle(request);
1074
1090
  } catch (error) {
1075
- if (!this.shouldRetry(error) || attempt === request.retry.attempts) {
1091
+ if (!this.shouldRetry(error, request) || attempt === maxAttempts) {
1076
1092
  throw error;
1077
1093
  }
1078
- await this.delay(request.retry.delayMs);
1094
+ const delayMs = this.calculateDelay(attempt, request);
1095
+ await this.delay(delayMs);
1079
1096
  }
1080
1097
  }
1081
1098
  throw new Error("Error retrying request.");
@@ -1088,38 +1105,78 @@ var RetryHandler = class {
1088
1105
  * @throws Error if no next handler is set, or if all retry attempts fail
1089
1106
  */
1090
1107
  async *stream(request) {
1108
+ var _a, _b;
1091
1109
  if (!this.next) {
1092
1110
  throw new Error("No next handler set in retry handler.");
1093
1111
  }
1094
- for (let attempt = 1; attempt <= request.retry.attempts; attempt++) {
1112
+ const maxAttempts = (_b = (_a = request.config.retry) == null ? void 0 : _a.attempts) != null ? _b : 3;
1113
+ for (let attempt = 1; attempt <= maxAttempts; attempt++) {
1095
1114
  try {
1096
1115
  yield* this.next.stream(request);
1097
1116
  return;
1098
1117
  } catch (error) {
1099
- if (!this.shouldRetry(error) || attempt === request.retry.attempts) {
1118
+ if (!this.shouldRetry(error, request) || attempt === maxAttempts) {
1100
1119
  throw error;
1101
1120
  }
1102
- await this.delay(request.retry.delayMs);
1121
+ const delayMs = this.calculateDelay(attempt, request);
1122
+ await this.delay(delayMs);
1103
1123
  }
1104
1124
  }
1105
1125
  throw new Error("Error retrying request.");
1106
1126
  }
1107
1127
  /**
1108
1128
  * Determines if an error should trigger a retry.
1109
- * Retries server errors (5xx), request timeouts (408), and rate limits (429).
1129
+ * Checks both HTTP status codes and HTTP methods against the configured retry settings.
1130
+ * By default, retries all 5xx server errors and specific 4xx client errors (408 Timeout, 429 Rate Limit).
1110
1131
  * @param error - The error to check
1132
+ * @param request - The HTTP request being retried
1111
1133
  * @returns True if the request should be retried, false otherwise
1112
1134
  */
1113
- shouldRetry(error) {
1114
- return error instanceof HttpError && (error.metadata.status >= 500 || error.metadata.status === 408 || error.metadata.status === 429);
1135
+ shouldRetry(error, request) {
1136
+ var _a, _b, _c;
1137
+ if (!(error instanceof HttpError)) {
1138
+ return false;
1139
+ }
1140
+ const httpMethodsToRetry = (_b = (_a = request.config.retry) == null ? void 0 : _a.httpMethodsToRetry) != null ? _b : [
1141
+ "GET",
1142
+ "POST",
1143
+ "PUT",
1144
+ "DELETE",
1145
+ "PATCH",
1146
+ "HEAD",
1147
+ "OPTIONS"
1148
+ ];
1149
+ const shouldRetryStatus = ((_c = request.config.retry) == null ? void 0 : _c.statusCodesToRetry) ? request.config.retry.statusCodesToRetry.includes(error.metadata.status) : error.metadata.status >= 500 || [408, 429].includes(error.metadata.status);
1150
+ const shouldRetryMethod = httpMethodsToRetry.includes(request.method);
1151
+ return shouldRetryStatus && shouldRetryMethod;
1152
+ }
1153
+ /**
1154
+ * Calculates the delay before the next retry attempt using exponential backoff.
1155
+ * Optionally adds jitter to prevent thundering herd problems.
1156
+ * @param attempt - The current retry attempt number (1-indexed)
1157
+ * @param request - The HTTP request being retried
1158
+ * @returns The delay in milliseconds, capped at the configured maximum delay
1159
+ */
1160
+ calculateDelay(attempt, request) {
1161
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1162
+ const baseDelay = (_b = (_a = request.config.retry) == null ? void 0 : _a.delayMs) != null ? _b : 150;
1163
+ const backoffFactor = (_d = (_c = request.config.retry) == null ? void 0 : _c.backoffFactor) != null ? _d : 2;
1164
+ const maxDelay = (_f = (_e = request.config.retry) == null ? void 0 : _e.maxDelayMs) != null ? _f : 5e3;
1165
+ const jitter = (_h = (_g = request.config.retry) == null ? void 0 : _g.jitterMs) != null ? _h : 50;
1166
+ let delay = baseDelay * Math.pow(backoffFactor, attempt - 1);
1167
+ delay = Math.min(delay, maxDelay);
1168
+ if (jitter > 0) {
1169
+ delay += Math.random() * jitter;
1170
+ }
1171
+ return Math.floor(delay);
1115
1172
  }
1116
1173
  /**
1117
1174
  * Delays execution for a specified duration before retrying.
1118
- * @param delayMs - The delay in milliseconds (optional)
1175
+ * @param delayMs - The delay in milliseconds
1119
1176
  * @returns A promise that resolves after the delay
1120
1177
  */
1121
1178
  delay(delayMs) {
1122
- if (!delayMs) {
1179
+ if (delayMs <= 0) {
1123
1180
  return Promise.resolve();
1124
1181
  }
1125
1182
  return new Promise((resolve, reject) => {
@@ -1230,6 +1287,15 @@ var HttpClient = class {
1230
1287
  call(request) {
1231
1288
  return this.requestHandlerChain.callChain(request);
1232
1289
  }
1290
+ /**
1291
+ * Executes a standard HTTP request and returns only the data directly.
1292
+ * @template T - The expected response data type
1293
+ * @param request - The HTTP request to execute
1294
+ * @returns A promise that resolves to the response data
1295
+ */
1296
+ callDirect(request) {
1297
+ return this.call(request).then((response) => response.data);
1298
+ }
1233
1299
  /**
1234
1300
  * Executes a streaming HTTP request that yields responses incrementally.
1235
1301
  * @template T - The expected response data type for each chunk
@@ -1350,6 +1416,61 @@ var BaseService = class {
1350
1416
  this.tokenManager = tokenManager;
1351
1417
  this.client = new HttpClient(this.config);
1352
1418
  }
1419
+ /**
1420
+ * Sets service-level configuration that applies to all methods in this service.
1421
+ * @param config - Partial configuration to override SDK-level defaults
1422
+ * @returns This service instance for method chaining
1423
+ */
1424
+ setConfig(config) {
1425
+ this.serviceConfig = config;
1426
+ return this;
1427
+ }
1428
+ /**
1429
+ * Recursively merges two objects. Plain nested objects are merged key-by-key so a
1430
+ * partial override (e.g. `{ retry: { attempts: 5 } }`) only overwrites the specified
1431
+ * keys instead of replacing the whole nested object. Arrays and non-plain values are
1432
+ * replaced wholesale.
1433
+ *
1434
+ * Override keys with the value `undefined` are skipped so the base value is preserved,
1435
+ * matching the common JS merge idiom (e.g. lodash.merge). To explicitly clear a key,
1436
+ * assign `null` or omit the key from the override entirely.
1437
+ */
1438
+ static deepMerge(base, override) {
1439
+ const result = { ...base };
1440
+ for (const [key, value] of Object.entries(override)) {
1441
+ const existing = result[key];
1442
+ if (BaseService.isPlainObject(value) && BaseService.isPlainObject(existing)) {
1443
+ result[key] = BaseService.deepMerge(existing, value);
1444
+ } else if (value !== void 0) {
1445
+ result[key] = value;
1446
+ }
1447
+ }
1448
+ return result;
1449
+ }
1450
+ static isPlainObject(value) {
1451
+ return typeof value === "object" && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype;
1452
+ }
1453
+ /**
1454
+ * Resolves configuration from the hierarchy: requestConfig > methodConfig > serviceConfig > sdkConfig
1455
+ * Deep-merges all config levels so partial nested overrides (e.g. `{ retry: { attempts: 5 } }`)
1456
+ * preserve unoverridden sibling keys from the SDK default.
1457
+ * @param methodConfig - Method-level configuration override
1458
+ * @param requestConfig - Request-level configuration override
1459
+ * @returns Merged configuration with all overrides applied
1460
+ */
1461
+ getResolvedConfig(methodConfig, requestConfig) {
1462
+ let merged = { ...this.config };
1463
+ if (this.serviceConfig) {
1464
+ merged = BaseService.deepMerge(merged, this.serviceConfig);
1465
+ }
1466
+ if (methodConfig) {
1467
+ merged = BaseService.deepMerge(merged, methodConfig);
1468
+ }
1469
+ if (requestConfig) {
1470
+ merged = BaseService.deepMerge(merged, requestConfig);
1471
+ }
1472
+ return merged;
1473
+ }
1353
1474
  set baseUrl(baseUrl) {
1354
1475
  this.config.baseUrl = baseUrl;
1355
1476
  }
@@ -1526,8 +1647,6 @@ var Request = class {
1526
1647
  this.queryParams = /* @__PURE__ */ new Map();
1527
1648
  this.pathParams = /* @__PURE__ */ new Map();
1528
1649
  this.cookies = /* @__PURE__ */ new Map();
1529
- this.validation = {};
1530
- this.retry = {};
1531
1650
  this.baseUrl = params.baseUrl;
1532
1651
  this.method = params.method;
1533
1652
  this.pathPattern = params.path;
@@ -1542,8 +1661,6 @@ var Request = class {
1542
1661
  this.errors = params.errors;
1543
1662
  this.requestSchema = params.requestSchema;
1544
1663
  this.requestContentType = params.requestContentType;
1545
- this.retry = params.retry;
1546
- this.validation = params.validation;
1547
1664
  this.pagination = params.pagination;
1548
1665
  this.filename = params.filename;
1549
1666
  this.filenames = params.filenames;
@@ -1656,7 +1773,7 @@ var Request = class {
1656
1773
  * @returns A new Request instance with the specified overrides
1657
1774
  */
1658
1775
  copy(overrides) {
1659
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
1776
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
1660
1777
  const createRequestParams = {
1661
1778
  baseUrl: (_a = overrides == null ? void 0 : overrides.baseUrl) != null ? _a : this.baseUrl,
1662
1779
  errors: (_b = overrides == null ? void 0 : overrides.errors) != null ? _b : this.errors,
@@ -1671,10 +1788,8 @@ var Request = class {
1671
1788
  responses: (_k = overrides == null ? void 0 : overrides.responses) != null ? _k : this.responses,
1672
1789
  requestSchema: (_l = overrides == null ? void 0 : overrides.requestSchema) != null ? _l : this.requestSchema,
1673
1790
  requestContentType: (_m = overrides == null ? void 0 : overrides.requestContentType) != null ? _m : this.requestContentType,
1674
- retry: (_n = overrides == null ? void 0 : overrides.retry) != null ? _n : this.retry,
1675
- validation: (_o = overrides == null ? void 0 : overrides.validation) != null ? _o : this.validation,
1676
- filename: (_p = overrides == null ? void 0 : overrides.filename) != null ? _p : this.filename,
1677
- filenames: (_q = overrides == null ? void 0 : overrides.filenames) != null ? _q : this.filenames,
1791
+ filename: (_n = overrides == null ? void 0 : overrides.filename) != null ? _n : this.filename,
1792
+ filenames: (_o = overrides == null ? void 0 : overrides.filenames) != null ? _o : this.filenames,
1678
1793
  scopes: overrides == null ? void 0 : overrides.scopes,
1679
1794
  tokenManager: this.tokenManager
1680
1795
  };
@@ -1776,55 +1891,73 @@ var RequestBuilder = class {
1776
1891
  baseUrl: "https://api.celitech.net/v1" /* DEFAULT */,
1777
1892
  method: "GET",
1778
1893
  path: "",
1779
- config: {},
1894
+ config: {
1895
+ clientId: "",
1896
+ clientSecret: "",
1897
+ retry: {
1898
+ attempts: 3,
1899
+ delayMs: 150,
1900
+ maxDelayMs: 5e3,
1901
+ backoffFactor: 2,
1902
+ jitterMs: 50,
1903
+ httpMethodsToRetry: ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]
1904
+ },
1905
+ validation: { responseValidation: true }
1906
+ },
1780
1907
  responses: [],
1781
1908
  errors: [],
1782
1909
  requestSchema: import_zod3.default.any(),
1783
1910
  requestContentType: "json" /* Json */,
1784
- retry: {
1785
- attempts: 3,
1786
- delayMs: 150
1787
- },
1788
- validation: {
1789
- responseValidation: true
1790
- },
1791
1911
  pathParams: /* @__PURE__ */ new Map(),
1792
1912
  queryParams: /* @__PURE__ */ new Map(),
1793
1913
  headers: /* @__PURE__ */ new Map(),
1794
1914
  cookies: /* @__PURE__ */ new Map(),
1795
1915
  tokenManager: new OAuthTokenManager()
1796
1916
  };
1917
+ this.addHeaderParam({
1918
+ key: "User-Agent",
1919
+ value: "postman-codegen/1.1.2 celitech-sdk/2.0.0 (typescript)"
1920
+ });
1797
1921
  }
1798
- setRetryAttempts(sdkConfig, requestConfig) {
1922
+ setConfig(config) {
1799
1923
  var _a, _b;
1800
- if (((_a = requestConfig == null ? void 0 : requestConfig.retry) == null ? void 0 : _a.attempts) !== void 0) {
1801
- this.params.retry.attempts = requestConfig.retry.attempts;
1802
- } else if (((_b = sdkConfig == null ? void 0 : sdkConfig.retry) == null ? void 0 : _b.attempts) !== void 0) {
1803
- this.params.retry.attempts = sdkConfig.retry.attempts;
1924
+ let mergedRetry = (_a = config.retry) != null ? _a : this.params.config.retry;
1925
+ if (config.retry !== void 0 && this.params.config.retry !== void 0) {
1926
+ mergedRetry = { ...this.params.config.retry, ...config.retry };
1804
1927
  }
1805
- return this;
1806
- }
1807
- setRetryDelayMs(sdkConfig, requestConfig) {
1808
- var _a, _b;
1809
- if (((_a = requestConfig == null ? void 0 : requestConfig.retry) == null ? void 0 : _a.delayMs) !== void 0) {
1810
- this.params.retry.delayMs = requestConfig.retry.delayMs;
1811
- } else if (((_b = sdkConfig == null ? void 0 : sdkConfig.retry) == null ? void 0 : _b.delayMs) !== void 0) {
1812
- this.params.retry.delayMs = sdkConfig.retry.delayMs;
1928
+ let mergedValidation = (_b = config.validation) != null ? _b : this.params.config.validation;
1929
+ if (config.validation !== void 0 && this.params.config.validation !== void 0) {
1930
+ mergedValidation = { ...this.params.config.validation, ...config.validation };
1813
1931
  }
1932
+ this.params.config = {
1933
+ ...this.params.config,
1934
+ ...config,
1935
+ ...mergedRetry !== void 0 && { retry: mergedRetry },
1936
+ ...mergedValidation !== void 0 && { validation: mergedValidation }
1937
+ };
1814
1938
  return this;
1815
1939
  }
1816
- setResponseValidation(sdkConfig, requestConfig) {
1817
- var _a, _b;
1818
- if (((_a = requestConfig == null ? void 0 : requestConfig.validation) == null ? void 0 : _a.responseValidation) !== void 0) {
1819
- this.params.validation.responseValidation = requestConfig.validation.responseValidation;
1820
- } else if (((_b = sdkConfig == null ? void 0 : sdkConfig.validation) == null ? void 0 : _b.responseValidation) !== void 0) {
1821
- this.params.validation.responseValidation = sdkConfig.validation.responseValidation;
1940
+ /**
1941
+ * Sets the base URL for the request using hierarchical configuration resolution.
1942
+ *
1943
+ * Resolution logic:
1944
+ * 1. First tries to resolve 'baseUrl' (string) from the resolved config
1945
+ * 2. If no 'baseUrl' found, falls back to 'environment' (enum) from the resolved config
1946
+ * 3. 'baseUrl' always takes precedence over 'environment'
1947
+ *
1948
+ * @param config - Resolved configuration from all hierarchy levels
1949
+ * @returns This builder instance for method chaining
1950
+ */
1951
+ setBaseUrl(config) {
1952
+ if (!config) {
1953
+ return this;
1822
1954
  }
1823
- return this;
1824
- }
1825
- setBaseUrl(baseUrl) {
1826
- if (baseUrl) {
1827
- this.params.baseUrl = baseUrl;
1955
+ if ("baseUrl" in config && typeof config.baseUrl === "string" && config.baseUrl) {
1956
+ this.params.baseUrl = config.baseUrl;
1957
+ return this;
1958
+ }
1959
+ if ("environment" in config && config.environment) {
1960
+ this.params.baseUrl = config.environment;
1828
1961
  }
1829
1962
  return this;
1830
1963
  }
@@ -1836,10 +1969,6 @@ var RequestBuilder = class {
1836
1969
  this.params.path = path;
1837
1970
  return this;
1838
1971
  }
1839
- setConfig(config) {
1840
- this.params.config = config;
1841
- return this;
1842
- }
1843
1972
  setRequestContentType(contentType) {
1844
1973
  this.params.requestContentType = contentType;
1845
1974
  return this;
@@ -1882,7 +2011,7 @@ var RequestBuilder = class {
1882
2011
  }
1883
2012
  this.params.headers.set("Authorization", {
1884
2013
  key: "Authorization",
1885
- value: `${prefix != null ? prefix : "BEARER"} ${accessToken}`,
2014
+ value: `${prefix != null ? prefix : "Bearer"} ${accessToken}`,
1886
2015
  explode: false,
1887
2016
  style: "simple" /* SIMPLE */,
1888
2017
  encode: true,
@@ -2029,66 +2158,66 @@ var RequestBuilder = class {
2029
2158
  }
2030
2159
  };
2031
2160
 
2032
- // src/services/o-auth/models/get-access-token-request.ts
2161
+ // src/services/o-auth/models/o-auth-token-request.ts
2033
2162
  var import_zod4 = require("zod");
2034
- var getAccessTokenRequest = import_zod4.z.lazy(() => {
2163
+ var oAuthTokenRequest = import_zod4.z.lazy(() => {
2035
2164
  return import_zod4.z.object({
2036
- grantType: import_zod4.z.string().optional(),
2037
- clientId: import_zod4.z.string().optional(),
2038
- clientSecret: import_zod4.z.string().optional()
2165
+ grantType: import_zod4.z.string(),
2166
+ clientId: import_zod4.z.string(),
2167
+ clientSecret: import_zod4.z.string(),
2168
+ scope: import_zod4.z.string()
2039
2169
  });
2040
2170
  });
2041
- var getAccessTokenRequestResponse = import_zod4.z.lazy(() => {
2171
+ var oAuthTokenRequestResponse = import_zod4.z.lazy(() => {
2042
2172
  return import_zod4.z.object({
2043
- grant_type: import_zod4.z.string().optional(),
2044
- client_id: import_zod4.z.string().optional(),
2045
- client_secret: import_zod4.z.string().optional()
2173
+ grant_type: import_zod4.z.string(),
2174
+ client_id: import_zod4.z.string(),
2175
+ client_secret: import_zod4.z.string(),
2176
+ scope: import_zod4.z.string()
2046
2177
  }).transform((data) => ({
2047
2178
  grantType: data["grant_type"],
2048
2179
  clientId: data["client_id"],
2049
- clientSecret: data["client_secret"]
2180
+ clientSecret: data["client_secret"],
2181
+ scope: data["scope"]
2050
2182
  }));
2051
2183
  });
2052
- var getAccessTokenRequestRequest = import_zod4.z.lazy(() => {
2184
+ var oAuthTokenRequestRequest = import_zod4.z.lazy(() => {
2053
2185
  return import_zod4.z.object({
2054
- grantType: import_zod4.z.string().optional(),
2055
- clientId: import_zod4.z.string().optional(),
2056
- clientSecret: import_zod4.z.string().optional()
2186
+ grantType: import_zod4.z.string(),
2187
+ clientId: import_zod4.z.string(),
2188
+ clientSecret: import_zod4.z.string(),
2189
+ scope: import_zod4.z.string()
2057
2190
  }).transform((data) => ({
2058
2191
  grant_type: data["grantType"],
2059
2192
  client_id: data["clientId"],
2060
- client_secret: data["clientSecret"]
2193
+ client_secret: data["clientSecret"],
2194
+ scope: data["scope"]
2061
2195
  }));
2062
2196
  });
2063
2197
 
2064
- // src/services/o-auth/models/get-access-token-ok-response.ts
2198
+ // src/services/o-auth/models/o-auth-token-response.ts
2065
2199
  var import_zod5 = require("zod");
2066
- var getAccessTokenOkResponse = import_zod5.z.lazy(() => {
2200
+ var oAuthTokenResponse = import_zod5.z.lazy(() => {
2067
2201
  return import_zod5.z.object({
2068
2202
  accessToken: import_zod5.z.string().optional(),
2069
- tokenType: import_zod5.z.string().optional(),
2070
- expiresIn: import_zod5.z.number().optional()
2203
+ expiresIn: import_zod5.z.number().optional().nullable()
2071
2204
  });
2072
2205
  });
2073
- var getAccessTokenOkResponseResponse = import_zod5.z.lazy(() => {
2206
+ var oAuthTokenResponseResponse = import_zod5.z.lazy(() => {
2074
2207
  return import_zod5.z.object({
2075
2208
  access_token: import_zod5.z.string().optional(),
2076
- token_type: import_zod5.z.string().optional(),
2077
- expires_in: import_zod5.z.number().optional()
2209
+ expires_in: import_zod5.z.number().optional().nullable()
2078
2210
  }).transform((data) => ({
2079
2211
  accessToken: data["access_token"],
2080
- tokenType: data["token_type"],
2081
2212
  expiresIn: data["expires_in"]
2082
2213
  }));
2083
2214
  });
2084
- var getAccessTokenOkResponseRequest = import_zod5.z.lazy(() => {
2215
+ var oAuthTokenResponseRequest = import_zod5.z.lazy(() => {
2085
2216
  return import_zod5.z.object({
2086
2217
  accessToken: import_zod5.z.string().optional(),
2087
- tokenType: import_zod5.z.string().optional(),
2088
- expiresIn: import_zod5.z.number().optional()
2218
+ expiresIn: import_zod5.z.number().optional().nullable()
2089
2219
  }).transform((data) => ({
2090
2220
  access_token: data["accessToken"],
2091
- token_type: data["tokenType"],
2092
2221
  expires_in: data["expiresIn"]
2093
2222
  }));
2094
2223
  });
@@ -2096,17 +2225,27 @@ var getAccessTokenOkResponseRequest = import_zod5.z.lazy(() => {
2096
2225
  // src/services/o-auth/o-auth-service.ts
2097
2226
  var OAuthService = class extends BaseService {
2098
2227
  /**
2099
- * This endpoint was added by liblab
2100
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
2101
- * @returns {Promise<HttpResponse<GetAccessTokenOkResponse>>} - Successful Response
2228
+ * Sets method-level configuration for getAccessToken.
2229
+ * @param config - Partial configuration to override service-level defaults
2230
+ * @returns This service instance for method chaining
2231
+ */
2232
+ setGetAccessTokenConfig(config) {
2233
+ this.getAccessTokenConfig = config;
2234
+ return this;
2235
+ }
2236
+ /**
2237
+ *
2238
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
2239
+ * @returns {Promise<HttpResponse<OAuthTokenResponse>>} - OAuth token
2102
2240
  */
2103
2241
  async getAccessToken(body, requestConfig) {
2104
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/oauth2/token").setRequestSchema(getAccessTokenRequestRequest).setTokenManager(this.tokenManager).setRequestContentType("form" /* FormUrlEncoded */).addResponse({
2105
- schema: getAccessTokenOkResponseResponse,
2242
+ const resolvedConfig = this.getResolvedConfig(this.getAccessTokenConfig, requestConfig);
2243
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("POST").setPath("/oauth2/token").setRequestSchema(oAuthTokenRequestRequest).setTokenManager(this.tokenManager).setRequestContentType("form" /* FormUrlEncoded */).addResponse({
2244
+ schema: oAuthTokenResponseResponse,
2106
2245
  contentType: "json" /* Json */,
2107
2246
  status: 200
2108
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/x-www-form-urlencoded" }).addBody(body).build();
2109
- return this.client.call(request);
2247
+ }).addHeaderParam({ key: "Content-Type", value: "application/x-www-form-urlencoded" }).addBody(body).build();
2248
+ return this.client.callDirect(request);
2110
2249
  }
2111
2250
  };
2112
2251
 
@@ -2153,7 +2292,7 @@ var OAuthTokenManager = class {
2153
2292
  * @throws Error if client credentials are missing or token request fails
2154
2293
  */
2155
2294
  async getToken(scopes, config) {
2156
- var _a, _b, _c, _d, _e, _f;
2295
+ var _a, _b, _c;
2157
2296
  if (((_a = this.token) == null ? void 0 : _a.hasAllScopes(scopes)) && ((_b = this.token) == null ? void 0 : _b.expiresAt) && this.token.expiresAt - Date.now() > 5e3) {
2158
2297
  return this.token;
2159
2298
  }
@@ -2168,23 +2307,21 @@ var OAuthTokenManager = class {
2168
2307
  },
2169
2308
  this
2170
2309
  );
2171
- const response = await oAuth.getAccessToken(
2172
- {
2173
- grantType: "client_credentials",
2174
- clientId: config.clientId,
2175
- clientSecret: config.clientSecret
2176
- },
2177
- {}
2178
- );
2179
- if (!((_d = response.data) == null ? void 0 : _d.accessToken)) {
2310
+ const response = await oAuth.getAccessToken({
2311
+ grantType: "client_credentials",
2312
+ clientId: config.clientId,
2313
+ clientSecret: config.clientSecret,
2314
+ scope: Array.from(scopes).join(" ")
2315
+ });
2316
+ if (!(response == null ? void 0 : response.accessToken)) {
2180
2317
  throw new Error(
2181
2318
  `OAuthError: token endpoint response did not return access token. Response: ${JSON.stringify(response), void 0, 2}.`
2182
2319
  );
2183
2320
  }
2184
2321
  this.token = new OAuthToken(
2185
- response.data.accessToken,
2322
+ response.accessToken,
2186
2323
  updatedScopes,
2187
- ((_e = response.data) == null ? void 0 : _e.expiresIn) ? ((_f = response.data) == null ? void 0 : _f.expiresIn) * 1e3 + Date.now() : null
2324
+ (response == null ? void 0 : response.expiresIn) ? (response == null ? void 0 : response.expiresIn) * 1e3 + Date.now() : null
2188
2325
  );
2189
2326
  return this.token;
2190
2327
  }
@@ -2296,7 +2433,9 @@ var BadRequest = class extends ThrowableError {
2296
2433
  this.message = parsedResponse.message || "";
2297
2434
  }
2298
2435
  throw() {
2299
- throw new BadRequest(this.message, this.response);
2436
+ const error = new BadRequest(this.message, this.response);
2437
+ error.metadata = this.metadata;
2438
+ throw error;
2300
2439
  }
2301
2440
  };
2302
2441
 
@@ -2318,19 +2457,31 @@ var Unauthorized = class extends ThrowableError {
2318
2457
  this.message = parsedResponse.message || "";
2319
2458
  }
2320
2459
  throw() {
2321
- throw new Unauthorized(this.message, this.response);
2460
+ const error = new Unauthorized(this.message, this.response);
2461
+ error.metadata = this.metadata;
2462
+ throw error;
2322
2463
  }
2323
2464
  };
2324
2465
 
2325
2466
  // src/services/destinations/destinations-service.ts
2326
2467
  var DestinationsService = class extends BaseService {
2468
+ /**
2469
+ * Sets method-level configuration for listDestinations.
2470
+ * @param config - Partial configuration to override service-level defaults
2471
+ * @returns This service instance for method chaining
2472
+ */
2473
+ setListDestinationsConfig(config) {
2474
+ this.listDestinationsConfig = config;
2475
+ return this;
2476
+ }
2327
2477
  /**
2328
2478
  * List Destinations
2329
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
2479
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
2330
2480
  * @returns {Promise<HttpResponse<ListDestinationsOkResponse>>} - Successful Response
2331
2481
  */
2332
2482
  async listDestinations(requestConfig) {
2333
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/destinations").setRequestSchema(import_zod10.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
2483
+ const resolvedConfig = this.getResolvedConfig(this.listDestinationsConfig, requestConfig);
2484
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("GET").setPath("/destinations").setRequestSchema(import_zod10.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
2334
2485
  schema: listDestinationsOkResponseResponse,
2335
2486
  contentType: "json" /* Json */,
2336
2487
  status: 200
@@ -2342,8 +2493,8 @@ var DestinationsService = class extends BaseService {
2342
2493
  error: Unauthorized,
2343
2494
  contentType: "json" /* Json */,
2344
2495
  status: 401
2345
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).build();
2346
- return this.client.call(request);
2496
+ }).build();
2497
+ return this.client.callDirect(request);
2347
2498
  }
2348
2499
  };
2349
2500
 
@@ -2438,6 +2589,15 @@ var listPackagesOkResponseRequest = import_zod12.z.lazy(() => {
2438
2589
 
2439
2590
  // src/services/packages/packages-service.ts
2440
2591
  var PackagesService = class extends BaseService {
2592
+ /**
2593
+ * Sets method-level configuration for listPackages.
2594
+ * @param config - Partial configuration to override service-level defaults
2595
+ * @returns This service instance for method chaining
2596
+ */
2597
+ setListPackagesConfig(config) {
2598
+ this.listPackagesConfig = config;
2599
+ return this;
2600
+ }
2441
2601
  /**
2442
2602
  * List Packages
2443
2603
  * @param {string} [params.destination] - ISO representation of the package's destination. Supports both ISO2 (e.g., 'FR') and ISO3 (e.g., 'FRA') country codes.
@@ -2447,11 +2607,21 @@ var PackagesService = class extends BaseService {
2447
2607
  * @param {number} [params.limit] - Maximum number of packages to be returned in the response. The value must be greater than 0 and less than or equal to 160. If not provided, the default value is 20
2448
2608
  * @param {number} [params.startTime] - Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months
2449
2609
  * @param {number} [params.endTime] - Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time
2450
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
2610
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
2451
2611
  * @returns {Promise<HttpResponse<ListPackagesOkResponse>>} - Successful Response
2452
2612
  */
2453
2613
  async listPackages(params, requestConfig) {
2454
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/packages").setRequestSchema(import_zod13.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
2614
+ const resolvedConfig = this.getResolvedConfig(this.listPackagesConfig, requestConfig);
2615
+ import_zod13.z.object({
2616
+ destination: import_zod13.z.string().optional(),
2617
+ startDate: import_zod13.z.string().optional(),
2618
+ endDate: import_zod13.z.string().optional(),
2619
+ afterCursor: import_zod13.z.string().optional(),
2620
+ limit: import_zod13.z.number().optional(),
2621
+ startTime: import_zod13.z.number().optional(),
2622
+ endTime: import_zod13.z.number().optional()
2623
+ }).parse(params != null ? params : {});
2624
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("GET").setPath("/packages").setRequestSchema(import_zod13.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
2455
2625
  schema: listPackagesOkResponseResponse,
2456
2626
  contentType: "json" /* Json */,
2457
2627
  status: 200
@@ -2463,7 +2633,7 @@ var PackagesService = class extends BaseService {
2463
2633
  error: Unauthorized,
2464
2634
  contentType: "json" /* Json */,
2465
2635
  status: 401
2466
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addQueryParam({
2636
+ }).addQueryParam({
2467
2637
  key: "destination",
2468
2638
  value: params == null ? void 0 : params.destination
2469
2639
  }).addQueryParam({
@@ -2485,7 +2655,7 @@ var PackagesService = class extends BaseService {
2485
2655
  key: "endTime",
2486
2656
  value: params == null ? void 0 : params.endTime
2487
2657
  }).build();
2488
- return this.client.call(request);
2658
+ return this.client.callDirect(request);
2489
2659
  }
2490
2660
  };
2491
2661
 
@@ -2505,7 +2675,8 @@ var createPurchaseV2Request = import_zod14.z.lazy(() => {
2505
2675
  email: import_zod14.z.string().optional(),
2506
2676
  referenceId: import_zod14.z.string().optional(),
2507
2677
  networkBrand: import_zod14.z.string().optional(),
2508
- emailBrand: import_zod14.z.string().optional()
2678
+ emailBrand: import_zod14.z.string().optional(),
2679
+ language: import_zod14.z.string().optional()
2509
2680
  });
2510
2681
  });
2511
2682
  var createPurchaseV2RequestResponse = import_zod14.z.lazy(() => {
@@ -2519,7 +2690,8 @@ var createPurchaseV2RequestResponse = import_zod14.z.lazy(() => {
2519
2690
  email: import_zod14.z.string().optional(),
2520
2691
  referenceId: import_zod14.z.string().optional(),
2521
2692
  networkBrand: import_zod14.z.string().optional(),
2522
- emailBrand: import_zod14.z.string().optional()
2693
+ emailBrand: import_zod14.z.string().optional(),
2694
+ language: import_zod14.z.string().optional()
2523
2695
  }).transform((data) => ({
2524
2696
  destination: data["destination"],
2525
2697
  dataLimitInGb: data["dataLimitInGB"],
@@ -2530,7 +2702,8 @@ var createPurchaseV2RequestResponse = import_zod14.z.lazy(() => {
2530
2702
  email: data["email"],
2531
2703
  referenceId: data["referenceId"],
2532
2704
  networkBrand: data["networkBrand"],
2533
- emailBrand: data["emailBrand"]
2705
+ emailBrand: data["emailBrand"],
2706
+ language: data["language"]
2534
2707
  }));
2535
2708
  });
2536
2709
  var createPurchaseV2RequestRequest = import_zod14.z.lazy(() => {
@@ -2544,7 +2717,8 @@ var createPurchaseV2RequestRequest = import_zod14.z.lazy(() => {
2544
2717
  email: import_zod14.z.string().optional(),
2545
2718
  referenceId: import_zod14.z.string().optional(),
2546
2719
  networkBrand: import_zod14.z.string().optional(),
2547
- emailBrand: import_zod14.z.string().optional()
2720
+ emailBrand: import_zod14.z.string().optional(),
2721
+ language: import_zod14.z.string().optional()
2548
2722
  }).transform((data) => ({
2549
2723
  destination: data["destination"],
2550
2724
  dataLimitInGB: data["dataLimitInGb"],
@@ -2555,7 +2729,8 @@ var createPurchaseV2RequestRequest = import_zod14.z.lazy(() => {
2555
2729
  email: data["email"],
2556
2730
  referenceId: data["referenceId"],
2557
2731
  networkBrand: data["networkBrand"],
2558
- emailBrand: data["emailBrand"]
2732
+ emailBrand: data["emailBrand"],
2733
+ language: data["language"]
2559
2734
  }));
2560
2735
  });
2561
2736
 
@@ -2861,6 +3036,7 @@ var createPurchaseRequest = import_zod22.z.lazy(() => {
2861
3036
  referenceId: import_zod22.z.string().optional(),
2862
3037
  networkBrand: import_zod22.z.string().optional(),
2863
3038
  emailBrand: import_zod22.z.string().optional(),
3039
+ language: import_zod22.z.string().optional(),
2864
3040
  startTime: import_zod22.z.number().optional(),
2865
3041
  endTime: import_zod22.z.number().optional()
2866
3042
  });
@@ -2875,6 +3051,7 @@ var createPurchaseRequestResponse = import_zod22.z.lazy(() => {
2875
3051
  referenceId: import_zod22.z.string().optional(),
2876
3052
  networkBrand: import_zod22.z.string().optional(),
2877
3053
  emailBrand: import_zod22.z.string().optional(),
3054
+ language: import_zod22.z.string().optional(),
2878
3055
  startTime: import_zod22.z.number().optional(),
2879
3056
  endTime: import_zod22.z.number().optional()
2880
3057
  }).transform((data) => ({
@@ -2886,6 +3063,7 @@ var createPurchaseRequestResponse = import_zod22.z.lazy(() => {
2886
3063
  referenceId: data["referenceId"],
2887
3064
  networkBrand: data["networkBrand"],
2888
3065
  emailBrand: data["emailBrand"],
3066
+ language: data["language"],
2889
3067
  startTime: data["startTime"],
2890
3068
  endTime: data["endTime"]
2891
3069
  }));
@@ -2900,6 +3078,7 @@ var createPurchaseRequestRequest = import_zod22.z.lazy(() => {
2900
3078
  referenceId: import_zod22.z.string().optional(),
2901
3079
  networkBrand: import_zod22.z.string().optional(),
2902
3080
  emailBrand: import_zod22.z.string().optional(),
3081
+ language: import_zod22.z.string().optional(),
2903
3082
  startTime: import_zod22.z.number().optional(),
2904
3083
  endTime: import_zod22.z.number().optional()
2905
3084
  }).transform((data) => ({
@@ -2911,6 +3090,7 @@ var createPurchaseRequestRequest = import_zod22.z.lazy(() => {
2911
3090
  referenceId: data["referenceId"],
2912
3091
  networkBrand: data["networkBrand"],
2913
3092
  emailBrand: data["emailBrand"],
3093
+ language: data["language"],
2914
3094
  startTime: data["startTime"],
2915
3095
  endTime: data["endTime"]
2916
3096
  }));
@@ -3317,13 +3497,68 @@ var getPurchaseConsumptionOkResponseRequest = import_zod32.z.lazy(() => {
3317
3497
 
3318
3498
  // src/services/purchases/purchases-service.ts
3319
3499
  var PurchasesService = class extends BaseService {
3500
+ /**
3501
+ * Sets method-level configuration for createPurchaseV2.
3502
+ * @param config - Partial configuration to override service-level defaults
3503
+ * @returns This service instance for method chaining
3504
+ */
3505
+ setCreatePurchaseV2Config(config) {
3506
+ this.createPurchaseV2Config = config;
3507
+ return this;
3508
+ }
3509
+ /**
3510
+ * Sets method-level configuration for listPurchases.
3511
+ * @param config - Partial configuration to override service-level defaults
3512
+ * @returns This service instance for method chaining
3513
+ */
3514
+ setListPurchasesConfig(config) {
3515
+ this.listPurchasesConfig = config;
3516
+ return this;
3517
+ }
3518
+ /**
3519
+ * Sets method-level configuration for createPurchase.
3520
+ * @param config - Partial configuration to override service-level defaults
3521
+ * @returns This service instance for method chaining
3522
+ */
3523
+ setCreatePurchaseConfig(config) {
3524
+ this.createPurchaseConfig = config;
3525
+ return this;
3526
+ }
3527
+ /**
3528
+ * Sets method-level configuration for topUpEsim.
3529
+ * @param config - Partial configuration to override service-level defaults
3530
+ * @returns This service instance for method chaining
3531
+ */
3532
+ setTopUpEsimConfig(config) {
3533
+ this.topUpEsimConfig = config;
3534
+ return this;
3535
+ }
3536
+ /**
3537
+ * Sets method-level configuration for editPurchase.
3538
+ * @param config - Partial configuration to override service-level defaults
3539
+ * @returns This service instance for method chaining
3540
+ */
3541
+ setEditPurchaseConfig(config) {
3542
+ this.editPurchaseConfig = config;
3543
+ return this;
3544
+ }
3545
+ /**
3546
+ * Sets method-level configuration for getPurchaseConsumption.
3547
+ * @param config - Partial configuration to override service-level defaults
3548
+ * @returns This service instance for method chaining
3549
+ */
3550
+ setGetPurchaseConsumptionConfig(config) {
3551
+ this.getPurchaseConsumptionConfig = config;
3552
+ return this;
3553
+ }
3320
3554
  /**
3321
3555
  * This endpoint is used to purchase a new eSIM by providing the package details.
3322
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
3556
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3323
3557
  * @returns {Promise<HttpResponse<CreatePurchaseV2OkResponse[]>>} - Successful Response
3324
3558
  */
3325
3559
  async createPurchaseV2(body, requestConfig) {
3326
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/purchases/v2").setRequestSchema(createPurchaseV2RequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3560
+ const resolvedConfig = this.getResolvedConfig(this.createPurchaseV2Config, requestConfig);
3561
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("POST").setPath("/purchases/v2").setRequestSchema(createPurchaseV2RequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3327
3562
  schema: import_zod33.z.array(createPurchaseV2OkResponseResponse),
3328
3563
  contentType: "json" /* Json */,
3329
3564
  status: 200
@@ -3335,8 +3570,8 @@ var PurchasesService = class extends BaseService {
3335
3570
  error: Unauthorized,
3336
3571
  contentType: "json" /* Json */,
3337
3572
  status: 401
3338
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
3339
- return this.client.call(request);
3573
+ }).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
3574
+ return this.client.callDirect(request);
3340
3575
  }
3341
3576
  /**
3342
3577
  * This endpoint can be used to list all the successful purchases made between a given interval.
@@ -3350,11 +3585,24 @@ var PurchasesService = class extends BaseService {
3350
3585
  * @param {number} [params.limit] - Maximum number of purchases to be returned in the response. The value must be greater than 0 and less than or equal to 100. If not provided, the default value is 20
3351
3586
  * @param {number} [params.after] - Epoch value representing the start of the time interval for filtering purchases
3352
3587
  * @param {number} [params.before] - Epoch value representing the end of the time interval for filtering purchases
3353
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
3588
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3354
3589
  * @returns {Promise<HttpResponse<ListPurchasesOkResponse>>} - Successful Response
3355
3590
  */
3356
3591
  async listPurchases(params, requestConfig) {
3357
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/purchases").setRequestSchema(import_zod33.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3592
+ const resolvedConfig = this.getResolvedConfig(this.listPurchasesConfig, requestConfig);
3593
+ import_zod33.z.object({
3594
+ purchaseId: import_zod33.z.string().optional(),
3595
+ iccid: import_zod33.z.string().optional(),
3596
+ afterDate: import_zod33.z.string().optional(),
3597
+ beforeDate: import_zod33.z.string().optional(),
3598
+ email: import_zod33.z.string().optional(),
3599
+ referenceId: import_zod33.z.string().optional(),
3600
+ afterCursor: import_zod33.z.string().optional(),
3601
+ limit: import_zod33.z.number().optional(),
3602
+ after: import_zod33.z.number().optional(),
3603
+ before: import_zod33.z.number().optional()
3604
+ }).parse(params != null ? params : {});
3605
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("GET").setPath("/purchases").setRequestSchema(import_zod33.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3358
3606
  schema: listPurchasesOkResponseResponse,
3359
3607
  contentType: "json" /* Json */,
3360
3608
  status: 200
@@ -3366,7 +3614,7 @@ var PurchasesService = class extends BaseService {
3366
3614
  error: Unauthorized,
3367
3615
  contentType: "json" /* Json */,
3368
3616
  status: 401
3369
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addQueryParam({
3617
+ }).addQueryParam({
3370
3618
  key: "purchaseId",
3371
3619
  value: params == null ? void 0 : params.purchaseId
3372
3620
  }).addQueryParam({
@@ -3397,15 +3645,16 @@ var PurchasesService = class extends BaseService {
3397
3645
  key: "before",
3398
3646
  value: params == null ? void 0 : params.before
3399
3647
  }).build();
3400
- return this.client.call(request);
3648
+ return this.client.callDirect(request);
3401
3649
  }
3402
3650
  /**
3403
3651
  * This endpoint is used to purchase a new eSIM by providing the package details.
3404
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
3652
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3405
3653
  * @returns {Promise<HttpResponse<CreatePurchaseOkResponse>>} - Successful Response
3406
3654
  */
3407
3655
  async createPurchase(body, requestConfig) {
3408
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/purchases").setRequestSchema(createPurchaseRequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3656
+ const resolvedConfig = this.getResolvedConfig(this.createPurchaseConfig, requestConfig);
3657
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("POST").setPath("/purchases").setRequestSchema(createPurchaseRequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3409
3658
  schema: createPurchaseOkResponseResponse,
3410
3659
  contentType: "json" /* Json */,
3411
3660
  status: 200
@@ -3417,16 +3666,17 @@ var PurchasesService = class extends BaseService {
3417
3666
  error: Unauthorized,
3418
3667
  contentType: "json" /* Json */,
3419
3668
  status: 401
3420
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
3421
- return this.client.call(request);
3669
+ }).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
3670
+ return this.client.callDirect(request);
3422
3671
  }
3423
3672
  /**
3424
3673
  * This endpoint is used to top-up an existing eSIM with the previously associated destination by providing its ICCID and package details. To determine if an eSIM can be topped up, use the Get eSIM endpoint, which returns the `isTopUpAllowed` flag.
3425
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
3674
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3426
3675
  * @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} - Successful Response
3427
3676
  */
3428
3677
  async topUpEsim(body, requestConfig) {
3429
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/purchases/topup").setRequestSchema(topUpEsimRequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3678
+ const resolvedConfig = this.getResolvedConfig(this.topUpEsimConfig, requestConfig);
3679
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("POST").setPath("/purchases/topup").setRequestSchema(topUpEsimRequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3430
3680
  schema: topUpEsimOkResponseResponse,
3431
3681
  contentType: "json" /* Json */,
3432
3682
  status: 200
@@ -3438,8 +3688,8 @@ var PurchasesService = class extends BaseService {
3438
3688
  error: Unauthorized,
3439
3689
  contentType: "json" /* Json */,
3440
3690
  status: 401
3441
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
3442
- return this.client.call(request);
3691
+ }).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
3692
+ return this.client.callDirect(request);
3443
3693
  }
3444
3694
  /**
3445
3695
  * This endpoint allows you to modify the validity dates of an existing purchase.
@@ -3450,11 +3700,12 @@ var PurchasesService = class extends BaseService {
3450
3700
 
3451
3701
  The end date can be extended or shortened as long as it adheres to the same pricing category and does not exceed the allowed duration limits.
3452
3702
 
3453
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
3703
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3454
3704
  * @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} - Successful Response
3455
3705
  */
3456
3706
  async editPurchase(body, requestConfig) {
3457
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/purchases/edit").setRequestSchema(editPurchaseRequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3707
+ const resolvedConfig = this.getResolvedConfig(this.editPurchaseConfig, requestConfig);
3708
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("POST").setPath("/purchases/edit").setRequestSchema(editPurchaseRequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3458
3709
  schema: editPurchaseOkResponseResponse,
3459
3710
  contentType: "json" /* Json */,
3460
3711
  status: 200
@@ -3466,17 +3717,18 @@ var PurchasesService = class extends BaseService {
3466
3717
  error: Unauthorized,
3467
3718
  contentType: "json" /* Json */,
3468
3719
  status: 401
3469
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
3470
- return this.client.call(request);
3720
+ }).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
3721
+ return this.client.callDirect(request);
3471
3722
  }
3472
3723
  /**
3473
3724
  * This endpoint can be called for consumption notifications (e.g. every 1 hour or when the user clicks a button). It returns the data balance (consumption) of purchased packages.
3474
3725
  * @param {string} purchaseId - ID of the purchase
3475
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
3726
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3476
3727
  * @returns {Promise<HttpResponse<GetPurchaseConsumptionOkResponse>>} - Successful Response
3477
3728
  */
3478
3729
  async getPurchaseConsumption(purchaseId, requestConfig) {
3479
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/purchases/{purchaseId}/consumption").setRequestSchema(import_zod33.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3730
+ const resolvedConfig = this.getResolvedConfig(this.getPurchaseConsumptionConfig, requestConfig);
3731
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("GET").setPath("/purchases/{purchaseId}/consumption").setRequestSchema(import_zod33.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3480
3732
  schema: getPurchaseConsumptionOkResponseResponse,
3481
3733
  contentType: "json" /* Json */,
3482
3734
  status: 200
@@ -3488,14 +3740,34 @@ var PurchasesService = class extends BaseService {
3488
3740
  error: Unauthorized,
3489
3741
  contentType: "json" /* Json */,
3490
3742
  status: 401
3491
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
3743
+ }).addPathParam({
3492
3744
  key: "purchaseId",
3493
3745
  value: purchaseId
3494
3746
  }).build();
3495
- return this.client.call(request);
3747
+ return this.client.callDirect(request);
3496
3748
  }
3497
3749
  };
3498
3750
 
3751
+ // src/services/purchases/models/create-purchase-v2-request-language.ts
3752
+ var CreatePurchaseV2RequestLanguage = /* @__PURE__ */ ((CreatePurchaseV2RequestLanguage2) => {
3753
+ CreatePurchaseV2RequestLanguage2["EN"] = "en";
3754
+ CreatePurchaseV2RequestLanguage2["ES"] = "es";
3755
+ CreatePurchaseV2RequestLanguage2["FR"] = "fr";
3756
+ CreatePurchaseV2RequestLanguage2["DE"] = "de";
3757
+ CreatePurchaseV2RequestLanguage2["PT_BR"] = "pt-br";
3758
+ return CreatePurchaseV2RequestLanguage2;
3759
+ })(CreatePurchaseV2RequestLanguage || {});
3760
+
3761
+ // src/services/purchases/models/create-purchase-request-language.ts
3762
+ var CreatePurchaseRequestLanguage = /* @__PURE__ */ ((CreatePurchaseRequestLanguage2) => {
3763
+ CreatePurchaseRequestLanguage2["EN"] = "en";
3764
+ CreatePurchaseRequestLanguage2["ES"] = "es";
3765
+ CreatePurchaseRequestLanguage2["FR"] = "fr";
3766
+ CreatePurchaseRequestLanguage2["DE"] = "de";
3767
+ CreatePurchaseRequestLanguage2["PT_BR"] = "pt-br";
3768
+ return CreatePurchaseRequestLanguage2;
3769
+ })(CreatePurchaseRequestLanguage || {});
3770
+
3499
3771
  // src/services/e-sim/e-sim-service.ts
3500
3772
  var import_zod41 = require("zod");
3501
3773
 
@@ -3723,14 +3995,43 @@ var getEsimHistoryOkResponseRequest = import_zod40.z.lazy(() => {
3723
3995
 
3724
3996
  // src/services/e-sim/e-sim-service.ts
3725
3997
  var ESimService = class extends BaseService {
3998
+ /**
3999
+ * Sets method-level configuration for getEsim.
4000
+ * @param config - Partial configuration to override service-level defaults
4001
+ * @returns This service instance for method chaining
4002
+ */
4003
+ setGetEsimConfig(config) {
4004
+ this.getEsimConfig = config;
4005
+ return this;
4006
+ }
4007
+ /**
4008
+ * Sets method-level configuration for getEsimDevice.
4009
+ * @param config - Partial configuration to override service-level defaults
4010
+ * @returns This service instance for method chaining
4011
+ */
4012
+ setGetEsimDeviceConfig(config) {
4013
+ this.getEsimDeviceConfig = config;
4014
+ return this;
4015
+ }
4016
+ /**
4017
+ * Sets method-level configuration for getEsimHistory.
4018
+ * @param config - Partial configuration to override service-level defaults
4019
+ * @returns This service instance for method chaining
4020
+ */
4021
+ setGetEsimHistoryConfig(config) {
4022
+ this.getEsimHistoryConfig = config;
4023
+ return this;
4024
+ }
3726
4025
  /**
3727
4026
  * Get eSIM
3728
4027
  * @param {string} params.iccid - ID of the eSIM
3729
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
4028
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3730
4029
  * @returns {Promise<HttpResponse<GetEsimOkResponse>>} - Successful Response
3731
4030
  */
3732
4031
  async getEsim(params, requestConfig) {
3733
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/esim").setRequestSchema(import_zod41.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
4032
+ const resolvedConfig = this.getResolvedConfig(this.getEsimConfig, requestConfig);
4033
+ import_zod41.z.object({ iccid: import_zod41.z.string() }).parse(params != null ? params : {});
4034
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("GET").setPath("/esim").setRequestSchema(import_zod41.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3734
4035
  schema: getEsimOkResponseResponse,
3735
4036
  contentType: "json" /* Json */,
3736
4037
  status: 200
@@ -3742,20 +4043,21 @@ var ESimService = class extends BaseService {
3742
4043
  error: Unauthorized,
3743
4044
  contentType: "json" /* Json */,
3744
4045
  status: 401
3745
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addQueryParam({
4046
+ }).addQueryParam({
3746
4047
  key: "iccid",
3747
4048
  value: params == null ? void 0 : params.iccid
3748
4049
  }).build();
3749
- return this.client.call(request);
4050
+ return this.client.callDirect(request);
3750
4051
  }
3751
4052
  /**
3752
4053
  * Get eSIM Device
3753
4054
  * @param {string} iccid - ID of the eSIM
3754
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
4055
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3755
4056
  * @returns {Promise<HttpResponse<GetEsimDeviceOkResponse>>} - Successful Response
3756
4057
  */
3757
4058
  async getEsimDevice(iccid, requestConfig) {
3758
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/esim/{iccid}/device").setRequestSchema(import_zod41.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
4059
+ const resolvedConfig = this.getResolvedConfig(this.getEsimDeviceConfig, requestConfig);
4060
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("GET").setPath("/esim/{iccid}/device").setRequestSchema(import_zod41.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3759
4061
  schema: getEsimDeviceOkResponseResponse,
3760
4062
  contentType: "json" /* Json */,
3761
4063
  status: 200
@@ -3767,20 +4069,21 @@ var ESimService = class extends BaseService {
3767
4069
  error: Unauthorized,
3768
4070
  contentType: "json" /* Json */,
3769
4071
  status: 401
3770
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
4072
+ }).addPathParam({
3771
4073
  key: "iccid",
3772
4074
  value: iccid
3773
4075
  }).build();
3774
- return this.client.call(request);
4076
+ return this.client.callDirect(request);
3775
4077
  }
3776
4078
  /**
3777
4079
  * Get eSIM History
3778
4080
  * @param {string} iccid - ID of the eSIM
3779
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
4081
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3780
4082
  * @returns {Promise<HttpResponse<GetEsimHistoryOkResponse>>} - Successful Response
3781
4083
  */
3782
4084
  async getEsimHistory(iccid, requestConfig) {
3783
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/esim/{iccid}/history").setRequestSchema(import_zod41.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
4085
+ const resolvedConfig = this.getResolvedConfig(this.getEsimHistoryConfig, requestConfig);
4086
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("GET").setPath("/esim/{iccid}/history").setRequestSchema(import_zod41.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3784
4087
  schema: getEsimHistoryOkResponseResponse,
3785
4088
  contentType: "json" /* Json */,
3786
4089
  status: 200
@@ -3792,11 +4095,11 @@ var ESimService = class extends BaseService {
3792
4095
  error: Unauthorized,
3793
4096
  contentType: "json" /* Json */,
3794
4097
  status: 401
3795
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
4098
+ }).addPathParam({
3796
4099
  key: "iccid",
3797
4100
  value: iccid
3798
4101
  }).build();
3799
- return this.client.call(request);
4102
+ return this.client.callDirect(request);
3800
4103
  }
3801
4104
  };
3802
4105
 
@@ -3827,13 +4130,23 @@ var tokenOkResponseRequest = import_zod42.z.lazy(() => {
3827
4130
 
3828
4131
  // src/services/i-frame/i-frame-service.ts
3829
4132
  var IFrameService = class extends BaseService {
4133
+ /**
4134
+ * Sets method-level configuration for token.
4135
+ * @param config - Partial configuration to override service-level defaults
4136
+ * @returns This service instance for method chaining
4137
+ */
4138
+ setTokenConfig(config) {
4139
+ this.tokenConfig = config;
4140
+ return this;
4141
+ }
3830
4142
  /**
3831
4143
  * Generate a new token to be used in the iFrame
3832
- * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
4144
+ * @param {Partial<SdkConfig>} [requestConfig] - The request configuration for retry and validation.
3833
4145
  * @returns {Promise<HttpResponse<TokenOkResponse>>} - Successful Response
3834
4146
  */
3835
4147
  async token(requestConfig) {
3836
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/iframe/token").setRequestSchema(import_zod43.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
4148
+ const resolvedConfig = this.getResolvedConfig(this.tokenConfig, requestConfig);
4149
+ const request = new RequestBuilder().setConfig(resolvedConfig).setBaseUrl(resolvedConfig).setMethod("POST").setPath("/iframe/token").setRequestSchema(import_zod43.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
3837
4150
  schema: tokenOkResponseResponse,
3838
4151
  contentType: "json" /* Json */,
3839
4152
  status: 200
@@ -3845,8 +4158,8 @@ var IFrameService = class extends BaseService {
3845
4158
  error: Unauthorized,
3846
4159
  contentType: "json" /* Json */,
3847
4160
  status: 401
3848
- }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).build();
3849
- return this.client.call(request);
4161
+ }).build();
4162
+ return this.client.callDirect(request);
3850
4163
  }
3851
4164
  };
3852
4165
 
@@ -3914,6 +4227,8 @@ var Celitech = class {
3914
4227
  // Annotate the CommonJS export names for ESM import in node:
3915
4228
  0 && (module.exports = {
3916
4229
  Celitech,
4230
+ CreatePurchaseRequestLanguage,
4231
+ CreatePurchaseV2RequestLanguage,
3917
4232
  DestinationsService,
3918
4233
  ESimService,
3919
4234
  Environment,