celitech-sdk 1.3.42 → 1.3.43

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.d.ts CHANGED
@@ -59,13 +59,20 @@ declare class OAuthTokenManager {
59
59
  getToken(scopes: Set<string>, config: SdkConfig): Promise<OAuthToken>;
60
60
  }
61
61
 
62
+ declare class ThrowableError extends Error {
63
+ message: string;
64
+ protected response?: unknown;
65
+ constructor(message: string, response?: unknown);
66
+ throw(): void;
67
+ }
68
+
62
69
  interface ResponseDefinition {
63
70
  schema: ZodType;
64
71
  contentType: ContentType;
65
72
  status: number;
66
73
  }
67
74
  interface ErrorDefinition {
68
- error: new (...args: any[]) => Error;
75
+ error: new (...args: any[]) => ThrowableError;
69
76
  contentType: ContentType;
70
77
  status: number;
71
78
  }
@@ -138,17 +145,25 @@ declare class Request<PageSchema = unknown[]> {
138
145
  }
139
146
 
140
147
  type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
141
- interface SdkConfig {
148
+ interface BaseConfig {
149
+ retry?: RetryOptions;
150
+ validation?: ValidationOptions;
142
151
  baseUrl?: string;
143
152
  environment?: Environment;
144
153
  timeoutMs?: number;
154
+ oAuthBaseUrl?: string;
155
+ }
156
+ interface ClientCredentialAuthConfig extends BaseConfig {
145
157
  clientId: string;
146
158
  clientSecret: string;
147
- oAuthBaseUrl?: string;
148
- accessToken?: string;
149
- retry?: RetryOptions;
150
- validation?: ValidationOptions;
159
+ accessToken?: never;
160
+ }
161
+ interface TokenAuthConfig extends BaseConfig {
162
+ clientId?: never;
163
+ clientSecret?: never;
164
+ accessToken: string;
151
165
  }
166
+ type SdkConfig = ClientCredentialAuthConfig | TokenAuthConfig;
152
167
  interface HttpMetadata {
153
168
  status: number;
154
169
  statusText: string;
@@ -358,12 +373,18 @@ declare const destinations: z.ZodLazy<z.ZodObject<{
358
373
  */
359
374
  type Destinations = z.infer<typeof destinations>;
360
375
 
361
- declare class __ extends Error {
362
- constructor(message?: string, response?: unknown);
376
+ declare class __ extends ThrowableError {
377
+ message: string;
378
+ protected response?: unknown;
379
+ constructor(message: string, response?: unknown);
380
+ throw(): void;
363
381
  }
364
382
 
365
- declare class _1 extends Error {
366
- constructor(message?: string, response?: unknown);
383
+ declare class _1 extends ThrowableError {
384
+ message: string;
385
+ protected response?: unknown;
386
+ constructor(message: string, response?: unknown);
387
+ throw(): void;
367
388
  }
368
389
 
369
390
  /**
@@ -426,6 +447,8 @@ interface ListPackagesParams {
426
447
  destination?: string;
427
448
  startDate?: string;
428
449
  endDate?: string;
450
+ dataLimitInGb?: number;
451
+ includeUnlimited?: boolean;
429
452
  afterCursor?: string;
430
453
  limit?: number;
431
454
  startTime?: number;
@@ -435,18 +458,25 @@ interface ListPackagesParams {
435
458
 
436
459
  declare class PackagesService extends BaseService {
437
460
  /**
438
- * List Packages
439
- * @param {string} [params.destination] - ISO representation of the package's destination.
440
- * @param {string} [params.startDate] - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
441
- * @param {string} [params.endDate] - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
442
- * @param {string} [params.afterCursor] - To get the next batch of results, use this parameter. It tells the API where to start fetching data after the last item you received. It helps you avoid repeats and efficiently browse through large sets of data.
443
- * @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
444
- * @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
445
- * @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
446
- * @param {number} [params.duration] - Duration in seconds for the package's validity. If this parameter is present, it will override the startTime and endTime parameters. The maximum duration for a package's validity period is 90 days
447
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
448
- * @returns {Promise<HttpResponse<ListPackagesOkResponse>>} Successful Response
449
- */
461
+ * List Packages
462
+ * @param {string} [params.destination] - ISO representation of the package's destination.
463
+ * @param {string} [params.startDate] - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
464
+ * @param {string} [params.endDate] - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
465
+ * @param {number} [params.dataLimitInGb] - Size of the package in GB.
466
+
467
+ For **limited packages**, the available options are: **0.5, 1, 2, 3, 5, 8, 20GB**.
468
+
469
+ For **unlimited packages** (available to Region-3), please use **-1** as an identifier.
470
+
471
+ * @param {boolean} [params.includeUnlimited] - A boolean flag to include the **unlimited packages** in the response. The flag is false by default.
472
+ * @param {string} [params.afterCursor] - To get the next batch of results, use this parameter. It tells the API where to start fetching data after the last item you received. It helps you avoid repeats and efficiently browse through large sets of data.
473
+ * @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
474
+ * @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
475
+ * @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
476
+ * @param {number} [params.duration] - Duration in seconds for the package's validity. If this parameter is present, it will override the startTime and endTime parameters. The maximum duration for a package's validity period is 90 days
477
+ * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
478
+ * @returns {Promise<HttpResponse<ListPackagesOkResponse>>} Successful Response
479
+ */
450
480
  listPackages(params?: ListPackagesParams, requestConfig?: RequestConfig): Promise<HttpResponse<ListPackagesOkResponse>>;
451
481
  }
452
482
 
@@ -479,20 +509,27 @@ declare const packages: z.ZodLazy<z.ZodObject<{
479
509
  *
480
510
  * @typedef {Packages} packages
481
511
  * @property {string} - ID of the package
482
- * @property {string} - ISO representation of the package's destination
483
- * @property {number} - Size of the package in Bytes
512
+ * @property {string} - ISO representation of the package's destination.
513
+ * @property {number} - Size of the package in bytes. For ``limited packages``, this field will return the data limit in bytes. For ``unlimited packages``, it will return ``-1`` as an identifier.
514
+
484
515
  * @property {number} - Min number of days for the package
485
516
  * @property {number} - Max number of days for the package
486
517
  * @property {number} - Price of the package in cents
487
518
  */
488
519
  type Packages = z.infer<typeof packages>;
489
520
 
490
- declare class _2 extends Error {
491
- constructor(message?: string, response?: unknown);
521
+ declare class _2 extends ThrowableError {
522
+ message: string;
523
+ protected response?: unknown;
524
+ constructor(message: string, response?: unknown);
525
+ throw(): void;
492
526
  }
493
527
 
494
- declare class _3 extends Error {
495
- constructor(message?: string, response?: unknown);
528
+ declare class _3 extends ThrowableError {
529
+ message: string;
530
+ protected response?: unknown;
531
+ constructor(message: string, response?: unknown);
532
+ throw(): void;
496
533
  }
497
534
 
498
535
  /**
@@ -501,42 +538,43 @@ declare class _3 extends Error {
501
538
  declare const createPurchaseV2Request: z.ZodLazy<z.ZodObject<{
502
539
  destination: z.ZodString;
503
540
  dataLimitInGb: z.ZodNumber;
504
- startDate: z.ZodString;
505
- endDate: z.ZodString;
506
541
  quantity: z.ZodNumber;
507
542
  email: z.ZodOptional<z.ZodString>;
508
543
  referenceId: z.ZodOptional<z.ZodString>;
509
544
  networkBrand: z.ZodOptional<z.ZodString>;
545
+ emailBrand: z.ZodOptional<z.ZodString>;
510
546
  }, "strip", z.ZodTypeAny, {
511
547
  destination: string;
512
- startDate: string;
513
- endDate: string;
514
548
  dataLimitInGb: number;
515
549
  quantity: number;
516
550
  email?: string | undefined;
517
551
  referenceId?: string | undefined;
518
552
  networkBrand?: string | undefined;
553
+ emailBrand?: string | undefined;
519
554
  }, {
520
555
  destination: string;
521
- startDate: string;
522
- endDate: string;
523
556
  dataLimitInGb: number;
524
557
  quantity: number;
525
558
  email?: string | undefined;
526
559
  referenceId?: string | undefined;
527
560
  networkBrand?: string | undefined;
561
+ emailBrand?: string | undefined;
528
562
  }>>;
529
563
  /**
530
564
  *
531
565
  * @typedef {CreatePurchaseV2Request} createPurchaseV2Request
532
- * @property {string} - ISO representation of the package's destination
533
- * @property {number} - Size of the package in GB. The available options are 1, 2, 3, 5, 8, 20GB
534
- * @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
535
- * @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
566
+ * @property {string} - ISO representation of the package's destination.
567
+ * @property {number} - Size of the package in GB.
568
+
569
+ For ``limited packages``, the available options are: ``0.5, 1, 2, 3, 5, 8, 20GB`` (supports `duration` or `startDate` / `endDate`).
570
+
571
+ For ``unlimited packages`` (available to Region-3), please use ``-1`` as an identifier (supports `duration` only).
572
+
536
573
  * @property {number} - Number of eSIMs to purchase.
537
574
  * @property {string} - Email address where the purchase confirmation email will be sent (including QR Code & activation steps)
538
575
  * @property {string} - An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes.
539
- * @property {string} - Customize the network brand of the issued eSIM. This parameter is accessible to platforms with Diamond tier and requires an alphanumeric string of up to 15 characters.
576
+ * @property {string} - Customize the network brand of the issued eSIM. The `networkBrand` parameter cannot exceed 15 characters in length and must contain only letters and numbers. This feature is available to platforms with Diamond tier only.
577
+ * @property {string} - Customize the email subject brand. The `emailBrand` parameter cannot exceed 25 characters in length and must contain only letters, numbers, and spaces. This feature is available to platforms with Diamond tier only.
540
578
  */
541
579
  type CreatePurchaseV2Request = z.infer<typeof createPurchaseV2Request>;
542
580
 
@@ -607,11 +645,12 @@ type CreatePurchaseV2OkResponse = z.infer<typeof createPurchaseV2OkResponse>;
607
645
  declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
608
646
  purchases: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
609
647
  id: z.ZodOptional<z.ZodString>;
610
- startDate: z.ZodOptional<z.ZodString>;
611
- endDate: z.ZodOptional<z.ZodString>;
648
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
649
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
650
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
612
651
  createdDate: z.ZodOptional<z.ZodString>;
613
- startTime: z.ZodOptional<z.ZodNumber>;
614
- endTime: z.ZodOptional<z.ZodNumber>;
652
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
653
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
615
654
  createdAt: z.ZodOptional<z.ZodNumber>;
616
655
  package: z.ZodOptional<z.ZodLazy<z.ZodObject<{
617
656
  id: z.ZodOptional<z.ZodString>;
@@ -640,14 +679,16 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
640
679
  iccid?: string | undefined;
641
680
  }>>>;
642
681
  source: z.ZodOptional<z.ZodString>;
682
+ purchaseType: z.ZodOptional<z.ZodString>;
643
683
  referenceId: z.ZodOptional<z.ZodString>;
644
684
  }, "strip", z.ZodTypeAny, {
645
685
  id?: string | undefined;
646
- startDate?: string | undefined;
647
- endDate?: string | undefined;
686
+ startDate?: string | null | undefined;
687
+ endDate?: string | null | undefined;
688
+ duration?: number | null | undefined;
648
689
  createdDate?: string | undefined;
649
- startTime?: number | undefined;
650
- endTime?: number | undefined;
690
+ startTime?: number | null | undefined;
691
+ endTime?: number | null | undefined;
651
692
  createdAt?: number | undefined;
652
693
  package?: {
653
694
  id?: string | undefined;
@@ -660,14 +701,16 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
660
701
  iccid?: string | undefined;
661
702
  } | undefined;
662
703
  source?: string | undefined;
704
+ purchaseType?: string | undefined;
663
705
  referenceId?: string | undefined;
664
706
  }, {
665
707
  id?: string | undefined;
666
- startDate?: string | undefined;
667
- endDate?: string | undefined;
708
+ startDate?: string | null | undefined;
709
+ endDate?: string | null | undefined;
710
+ duration?: number | null | undefined;
668
711
  createdDate?: string | undefined;
669
- startTime?: number | undefined;
670
- endTime?: number | undefined;
712
+ startTime?: number | null | undefined;
713
+ endTime?: number | null | undefined;
671
714
  createdAt?: number | undefined;
672
715
  package?: {
673
716
  id?: string | undefined;
@@ -680,17 +723,19 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
680
723
  iccid?: string | undefined;
681
724
  } | undefined;
682
725
  source?: string | undefined;
726
+ purchaseType?: string | undefined;
683
727
  referenceId?: string | undefined;
684
728
  }>>, "many">>;
685
729
  afterCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
686
730
  }, "strip", z.ZodTypeAny, {
687
731
  purchases?: {
688
732
  id?: string | undefined;
689
- startDate?: string | undefined;
690
- endDate?: string | undefined;
733
+ startDate?: string | null | undefined;
734
+ endDate?: string | null | undefined;
735
+ duration?: number | null | undefined;
691
736
  createdDate?: string | undefined;
692
- startTime?: number | undefined;
693
- endTime?: number | undefined;
737
+ startTime?: number | null | undefined;
738
+ endTime?: number | null | undefined;
694
739
  createdAt?: number | undefined;
695
740
  package?: {
696
741
  id?: string | undefined;
@@ -703,17 +748,19 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
703
748
  iccid?: string | undefined;
704
749
  } | undefined;
705
750
  source?: string | undefined;
751
+ purchaseType?: string | undefined;
706
752
  referenceId?: string | undefined;
707
753
  }[] | undefined;
708
754
  afterCursor?: string | null | undefined;
709
755
  }, {
710
756
  purchases?: {
711
757
  id?: string | undefined;
712
- startDate?: string | undefined;
713
- endDate?: string | undefined;
758
+ startDate?: string | null | undefined;
759
+ endDate?: string | null | undefined;
760
+ duration?: number | null | undefined;
714
761
  createdDate?: string | undefined;
715
- startTime?: number | undefined;
716
- endTime?: number | undefined;
762
+ startTime?: number | null | undefined;
763
+ endTime?: number | null | undefined;
717
764
  createdAt?: number | undefined;
718
765
  package?: {
719
766
  id?: string | undefined;
@@ -726,6 +773,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
726
773
  iccid?: string | undefined;
727
774
  } | undefined;
728
775
  source?: string | undefined;
776
+ purchaseType?: string | undefined;
729
777
  referenceId?: string | undefined;
730
778
  }[] | undefined;
731
779
  afterCursor?: string | null | undefined;
@@ -760,6 +808,7 @@ declare const createPurchaseRequest: z.ZodLazy<z.ZodObject<{
760
808
  email: z.ZodOptional<z.ZodString>;
761
809
  referenceId: z.ZodOptional<z.ZodString>;
762
810
  networkBrand: z.ZodOptional<z.ZodString>;
811
+ emailBrand: z.ZodOptional<z.ZodString>;
763
812
  startTime: z.ZodOptional<z.ZodNumber>;
764
813
  endTime: z.ZodOptional<z.ZodNumber>;
765
814
  }, "strip", z.ZodTypeAny, {
@@ -770,6 +819,7 @@ declare const createPurchaseRequest: z.ZodLazy<z.ZodObject<{
770
819
  email?: string | undefined;
771
820
  referenceId?: string | undefined;
772
821
  networkBrand?: string | undefined;
822
+ emailBrand?: string | undefined;
773
823
  startTime?: number | undefined;
774
824
  endTime?: number | undefined;
775
825
  }, {
@@ -780,19 +830,21 @@ declare const createPurchaseRequest: z.ZodLazy<z.ZodObject<{
780
830
  email?: string | undefined;
781
831
  referenceId?: string | undefined;
782
832
  networkBrand?: string | undefined;
833
+ emailBrand?: string | undefined;
783
834
  startTime?: number | undefined;
784
835
  endTime?: number | undefined;
785
836
  }>>;
786
837
  /**
787
838
  *
788
839
  * @typedef {CreatePurchaseRequest} createPurchaseRequest
789
- * @property {string} - ISO representation of the package's destination
790
- * @property {number} - Size of the package in GB. The available options are 1, 2, 3, 5, 8, 20GB
840
+ * @property {string} - ISO representation of the package's destination.
841
+ * @property {number} - Size of the package in GB. The available options are 0.5, 1, 2, 3, 5, 8, 20GB
791
842
  * @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
792
843
  * @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
793
844
  * @property {string} - Email address where the purchase confirmation email will be sent (including QR Code & activation steps)
794
845
  * @property {string} - An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes.
795
- * @property {string} - Customize the network brand of the issued eSIM. This parameter is accessible to platforms with Diamond tier and requires an alphanumeric string of up to 15 characters
846
+ * @property {string} - Customize the network brand of the issued eSIM. The `networkBrand` parameter cannot exceed 15 characters in length and must contain only letters and numbers. This feature is available to platforms with Diamond tier only.
847
+ * @property {string} - Customize the email subject brand. The `emailBrand` parameter cannot exceed 25 characters in length and must contain only letters, numbers, and spaces. This feature is available to platforms with Diamond tier only.
796
848
  * @property {number} - 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.
797
849
  * @property {number} - Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time.
798
850
  */
@@ -805,27 +857,27 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
805
857
  purchase: z.ZodOptional<z.ZodLazy<z.ZodObject<{
806
858
  id: z.ZodOptional<z.ZodString>;
807
859
  packageId: z.ZodOptional<z.ZodString>;
808
- startDate: z.ZodOptional<z.ZodString>;
809
- endDate: z.ZodOptional<z.ZodString>;
860
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
861
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
810
862
  createdDate: z.ZodOptional<z.ZodString>;
811
- startTime: z.ZodOptional<z.ZodNumber>;
812
- endTime: z.ZodOptional<z.ZodNumber>;
863
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
864
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
813
865
  }, "strip", z.ZodTypeAny, {
814
866
  id?: string | undefined;
815
867
  packageId?: string | undefined;
816
- startDate?: string | undefined;
817
- endDate?: string | undefined;
868
+ startDate?: string | null | undefined;
869
+ endDate?: string | null | undefined;
818
870
  createdDate?: string | undefined;
819
- startTime?: number | undefined;
820
- endTime?: number | undefined;
871
+ startTime?: number | null | undefined;
872
+ endTime?: number | null | undefined;
821
873
  }, {
822
874
  id?: string | undefined;
823
875
  packageId?: string | undefined;
824
- startDate?: string | undefined;
825
- endDate?: string | undefined;
876
+ startDate?: string | null | undefined;
877
+ endDate?: string | null | undefined;
826
878
  createdDate?: string | undefined;
827
- startTime?: number | undefined;
828
- endTime?: number | undefined;
879
+ startTime?: number | null | undefined;
880
+ endTime?: number | null | undefined;
829
881
  }>>>;
830
882
  profile: z.ZodOptional<z.ZodLazy<z.ZodObject<{
831
883
  iccid: z.ZodOptional<z.ZodString>;
@@ -844,11 +896,11 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
844
896
  purchase?: {
845
897
  id?: string | undefined;
846
898
  packageId?: string | undefined;
847
- startDate?: string | undefined;
848
- endDate?: string | undefined;
899
+ startDate?: string | null | undefined;
900
+ endDate?: string | null | undefined;
849
901
  createdDate?: string | undefined;
850
- startTime?: number | undefined;
851
- endTime?: number | undefined;
902
+ startTime?: number | null | undefined;
903
+ endTime?: number | null | undefined;
852
904
  } | undefined;
853
905
  profile?: {
854
906
  iccid?: string | undefined;
@@ -859,11 +911,11 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
859
911
  purchase?: {
860
912
  id?: string | undefined;
861
913
  packageId?: string | undefined;
862
- startDate?: string | undefined;
863
- endDate?: string | undefined;
914
+ startDate?: string | null | undefined;
915
+ endDate?: string | null | undefined;
864
916
  createdDate?: string | undefined;
865
- startTime?: number | undefined;
866
- endTime?: number | undefined;
917
+ startTime?: number | null | undefined;
918
+ endTime?: number | null | undefined;
867
919
  } | undefined;
868
920
  profile?: {
869
921
  iccid?: string | undefined;
@@ -885,28 +937,25 @@ type CreatePurchaseOkResponse = z.infer<typeof createPurchaseOkResponse>;
885
937
  declare const topUpEsimRequest: z.ZodLazy<z.ZodObject<{
886
938
  iccid: z.ZodString;
887
939
  dataLimitInGb: z.ZodNumber;
888
- startDate: z.ZodString;
889
- endDate: z.ZodString;
890
940
  email: z.ZodOptional<z.ZodString>;
891
941
  referenceId: z.ZodOptional<z.ZodString>;
942
+ emailBrand: z.ZodOptional<z.ZodString>;
892
943
  startTime: z.ZodOptional<z.ZodNumber>;
893
944
  endTime: z.ZodOptional<z.ZodNumber>;
894
945
  }, "strip", z.ZodTypeAny, {
895
- startDate: string;
896
- endDate: string;
897
946
  dataLimitInGb: number;
898
947
  iccid: string;
899
948
  email?: string | undefined;
900
949
  referenceId?: string | undefined;
950
+ emailBrand?: string | undefined;
901
951
  startTime?: number | undefined;
902
952
  endTime?: number | undefined;
903
953
  }, {
904
- startDate: string;
905
- endDate: string;
906
954
  dataLimitInGb: number;
907
955
  iccid: string;
908
956
  email?: string | undefined;
909
957
  referenceId?: string | undefined;
958
+ emailBrand?: string | undefined;
910
959
  startTime?: number | undefined;
911
960
  endTime?: number | undefined;
912
961
  }>>;
@@ -914,11 +963,15 @@ declare const topUpEsimRequest: z.ZodLazy<z.ZodObject<{
914
963
  *
915
964
  * @typedef {TopUpEsimRequest} topUpEsimRequest
916
965
  * @property {string} - ID of the eSIM
917
- * @property {number} - Size of the package in GB. The available options are 1, 2, 3, 5, 8, 20GB
918
- * @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
919
- * @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
920
- * @property {string} - Email address where the purchase confirmation email will be sent (excluding QR Code & activation steps)
966
+ * @property {number} - Size of the package in GB.
967
+
968
+ For ``limited packages``, the available options are: ``0.5, 1, 2, 3, 5, 8, 20GB`` (supports `duration` or `startDate` / `endDate`).
969
+
970
+ For ``unlimited packages`` (available to Region-3), please use ``-1`` as an identifier (supports `duration` only).
971
+
972
+ * @property {string} - Email address where the purchase confirmation email will be sent (excluding QR Code & activation steps).
921
973
  * @property {string} - An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes.
974
+ * @property {string} - Customize the email subject brand. The `emailBrand` parameter cannot exceed 25 characters in length and must contain only letters, numbers, and spaces. This feature is available to platforms with Diamond tier only.
922
975
  * @property {number} - 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.
923
976
  * @property {number} - Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time.
924
977
  */
@@ -931,27 +984,30 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
931
984
  purchase: z.ZodOptional<z.ZodLazy<z.ZodObject<{
932
985
  id: z.ZodOptional<z.ZodString>;
933
986
  packageId: z.ZodOptional<z.ZodString>;
934
- startDate: z.ZodOptional<z.ZodString>;
935
- endDate: z.ZodOptional<z.ZodString>;
987
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
988
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
989
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
936
990
  createdDate: z.ZodOptional<z.ZodString>;
937
- startTime: z.ZodOptional<z.ZodNumber>;
938
- endTime: z.ZodOptional<z.ZodNumber>;
991
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
992
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
939
993
  }, "strip", z.ZodTypeAny, {
940
994
  id?: string | undefined;
941
995
  packageId?: string | undefined;
942
- startDate?: string | undefined;
943
- endDate?: string | undefined;
996
+ startDate?: string | null | undefined;
997
+ endDate?: string | null | undefined;
998
+ duration?: number | null | undefined;
944
999
  createdDate?: string | undefined;
945
- startTime?: number | undefined;
946
- endTime?: number | undefined;
1000
+ startTime?: number | null | undefined;
1001
+ endTime?: number | null | undefined;
947
1002
  }, {
948
1003
  id?: string | undefined;
949
1004
  packageId?: string | undefined;
950
- startDate?: string | undefined;
951
- endDate?: string | undefined;
1005
+ startDate?: string | null | undefined;
1006
+ endDate?: string | null | undefined;
1007
+ duration?: number | null | undefined;
952
1008
  createdDate?: string | undefined;
953
- startTime?: number | undefined;
954
- endTime?: number | undefined;
1009
+ startTime?: number | null | undefined;
1010
+ endTime?: number | null | undefined;
955
1011
  }>>>;
956
1012
  profile: z.ZodOptional<z.ZodLazy<z.ZodObject<{
957
1013
  iccid: z.ZodOptional<z.ZodString>;
@@ -964,11 +1020,12 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
964
1020
  purchase?: {
965
1021
  id?: string | undefined;
966
1022
  packageId?: string | undefined;
967
- startDate?: string | undefined;
968
- endDate?: string | undefined;
1023
+ startDate?: string | null | undefined;
1024
+ endDate?: string | null | undefined;
1025
+ duration?: number | null | undefined;
969
1026
  createdDate?: string | undefined;
970
- startTime?: number | undefined;
971
- endTime?: number | undefined;
1027
+ startTime?: number | null | undefined;
1028
+ endTime?: number | null | undefined;
972
1029
  } | undefined;
973
1030
  profile?: {
974
1031
  iccid?: string | undefined;
@@ -977,11 +1034,12 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
977
1034
  purchase?: {
978
1035
  id?: string | undefined;
979
1036
  packageId?: string | undefined;
980
- startDate?: string | undefined;
981
- endDate?: string | undefined;
1037
+ startDate?: string | null | undefined;
1038
+ endDate?: string | null | undefined;
1039
+ duration?: number | null | undefined;
982
1040
  createdDate?: string | undefined;
983
- startTime?: number | undefined;
984
- endTime?: number | undefined;
1041
+ startTime?: number | null | undefined;
1042
+ endTime?: number | null | undefined;
985
1043
  } | undefined;
986
1044
  profile?: {
987
1045
  iccid?: string | undefined;
@@ -1033,22 +1091,22 @@ type EditPurchaseRequest = z.infer<typeof editPurchaseRequest>;
1033
1091
  */
1034
1092
  declare const editPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
1035
1093
  purchaseId: z.ZodOptional<z.ZodString>;
1036
- newStartDate: z.ZodOptional<z.ZodString>;
1037
- newEndDate: z.ZodOptional<z.ZodString>;
1038
- newStartTime: z.ZodOptional<z.ZodNumber>;
1039
- newEndTime: z.ZodOptional<z.ZodNumber>;
1094
+ newStartDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1095
+ newEndDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1096
+ newStartTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1097
+ newEndTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1040
1098
  }, "strip", z.ZodTypeAny, {
1041
1099
  purchaseId?: string | undefined;
1042
- newStartDate?: string | undefined;
1043
- newEndDate?: string | undefined;
1044
- newStartTime?: number | undefined;
1045
- newEndTime?: number | undefined;
1100
+ newStartDate?: string | null | undefined;
1101
+ newEndDate?: string | null | undefined;
1102
+ newStartTime?: number | null | undefined;
1103
+ newEndTime?: number | null | undefined;
1046
1104
  }, {
1047
1105
  purchaseId?: string | undefined;
1048
- newStartDate?: string | undefined;
1049
- newEndDate?: string | undefined;
1050
- newStartTime?: number | undefined;
1051
- newEndTime?: number | undefined;
1106
+ newStartDate?: string | null | undefined;
1107
+ newEndDate?: string | null | undefined;
1108
+ newStartTime?: number | null | undefined;
1109
+ newEndTime?: number | null | undefined;
1052
1110
  }>>;
1053
1111
  /**
1054
1112
  *
@@ -1077,7 +1135,10 @@ declare const getPurchaseConsumptionOkResponse: z.ZodLazy<z.ZodObject<{
1077
1135
  /**
1078
1136
  *
1079
1137
  * @typedef {GetPurchaseConsumptionOkResponse} getPurchaseConsumptionOkResponse
1080
- * @property {number} - Remaining balance of the package in bytes
1138
+ * @property {number} - Remaining balance of the package in byte.
1139
+ For ``limited packages``, this field indicates the remaining data in bytes.
1140
+ For ``unlimited packages``, it will return ``-1`` as an identifier.
1141
+
1081
1142
  * @property {string} - Status of the connectivity, possible values are 'ACTIVE' or 'NOT_ACTIVE'
1082
1143
  */
1083
1144
  type GetPurchaseConsumptionOkResponse = z.infer<typeof getPurchaseConsumptionOkResponse>;
@@ -1116,7 +1177,7 @@ declare class PurchasesService extends BaseService {
1116
1177
  */
1117
1178
  topUpEsim(body: TopUpEsimRequest, requestConfig?: RequestConfig): Promise<HttpResponse<TopUpEsimOkResponse>>;
1118
1179
  /**
1119
- * This endpoint allows you to modify the dates of an existing package with a future activation start time. Editing can only be performed for packages that have not been activated, and it cannot change the package size. The modification must not change the package duration category to ensure pricing consistency.
1180
+ * This endpoint allows you to modify the dates of an existing package with a future activation start time. Editing can only be performed for packages that have not been activated, and it cannot change the package size. The modification must not change the package duration category to ensure pricing consistency. Duration based packages cannot be edited.
1120
1181
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
1121
1182
  * @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
1122
1183
  */
@@ -1185,11 +1246,12 @@ type CreatePurchaseV2OkResponseProfile = z.infer<typeof createPurchaseV2OkRespon
1185
1246
  */
1186
1247
  declare const purchases: z.ZodLazy<z.ZodObject<{
1187
1248
  id: z.ZodOptional<z.ZodString>;
1188
- startDate: z.ZodOptional<z.ZodString>;
1189
- endDate: z.ZodOptional<z.ZodString>;
1249
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1250
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1251
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1190
1252
  createdDate: z.ZodOptional<z.ZodString>;
1191
- startTime: z.ZodOptional<z.ZodNumber>;
1192
- endTime: z.ZodOptional<z.ZodNumber>;
1253
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1254
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1193
1255
  createdAt: z.ZodOptional<z.ZodNumber>;
1194
1256
  package: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1195
1257
  id: z.ZodOptional<z.ZodString>;
@@ -1218,14 +1280,16 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1218
1280
  iccid?: string | undefined;
1219
1281
  }>>>;
1220
1282
  source: z.ZodOptional<z.ZodString>;
1283
+ purchaseType: z.ZodOptional<z.ZodString>;
1221
1284
  referenceId: z.ZodOptional<z.ZodString>;
1222
1285
  }, "strip", z.ZodTypeAny, {
1223
1286
  id?: string | undefined;
1224
- startDate?: string | undefined;
1225
- endDate?: string | undefined;
1287
+ startDate?: string | null | undefined;
1288
+ endDate?: string | null | undefined;
1289
+ duration?: number | null | undefined;
1226
1290
  createdDate?: string | undefined;
1227
- startTime?: number | undefined;
1228
- endTime?: number | undefined;
1291
+ startTime?: number | null | undefined;
1292
+ endTime?: number | null | undefined;
1229
1293
  createdAt?: number | undefined;
1230
1294
  package?: {
1231
1295
  id?: string | undefined;
@@ -1238,14 +1302,16 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1238
1302
  iccid?: string | undefined;
1239
1303
  } | undefined;
1240
1304
  source?: string | undefined;
1305
+ purchaseType?: string | undefined;
1241
1306
  referenceId?: string | undefined;
1242
1307
  }, {
1243
1308
  id?: string | undefined;
1244
- startDate?: string | undefined;
1245
- endDate?: string | undefined;
1309
+ startDate?: string | null | undefined;
1310
+ endDate?: string | null | undefined;
1311
+ duration?: number | null | undefined;
1246
1312
  createdDate?: string | undefined;
1247
- startTime?: number | undefined;
1248
- endTime?: number | undefined;
1313
+ startTime?: number | null | undefined;
1314
+ endTime?: number | null | undefined;
1249
1315
  createdAt?: number | undefined;
1250
1316
  package?: {
1251
1317
  id?: string | undefined;
@@ -1258,6 +1324,7 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1258
1324
  iccid?: string | undefined;
1259
1325
  } | undefined;
1260
1326
  source?: string | undefined;
1327
+ purchaseType?: string | undefined;
1261
1328
  referenceId?: string | undefined;
1262
1329
  }>>;
1263
1330
  /**
@@ -1266,14 +1333,16 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1266
1333
  * @property {string} - ID of the purchase
1267
1334
  * @property {string} - Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
1268
1335
  * @property {string} - End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
1336
+ * @property {number} - It designates the number of days the eSIM is valid for within 90-day validity from issuance date.
1269
1337
  * @property {string} - Creation date of the purchase in the format 'yyyy-MM-ddThh:mm:ssZZ'
1270
1338
  * @property {number} - Epoch value representing the start time of the package's validity
1271
1339
  * @property {number} - Epoch value representing the end time of the package's validity
1272
1340
  * @property {number} - Epoch value representing the date of creation of the purchase
1273
1341
  * @property {Package_}
1274
1342
  * @property {PurchasesEsim}
1275
- * @property {string} - The source indicates where the eSIM was purchased, which can be from the API, dashboard, landing-page, promo-page or iframe. For purchases made before September 8, 2023, the value will be displayed as 'Not available'.
1276
- * @property {string} - The referenceId that was provided by the partner during the purchase or topup flow. This identifier can be used for analytics and debugging purposes.
1343
+ * @property {string} - The `source` indicates whether the purchase was made from the API, dashboard, landing-page, promo-page or iframe. For purchases made before September 8, 2023, the value will be displayed as 'Not available'.
1344
+ * @property {string} - The `purchaseType` indicates whether this is the initial purchase that creates the eSIM (First Purchase) or a subsequent top-up on an existing eSIM (Top-up Purchase).
1345
+ * @property {string} - The `referenceId` that was provided by the partner during the purchase or top-up flow. This identifier can be used for analytics and debugging purposes.
1277
1346
  */
1278
1347
  type Purchases = z.infer<typeof purchases>;
1279
1348
 
@@ -1303,8 +1372,9 @@ declare const package_: z.ZodLazy<z.ZodObject<{
1303
1372
  *
1304
1373
  * @typedef {Package_} package_
1305
1374
  * @property {string} - ID of the package
1306
- * @property {number} - Size of the package in Bytes
1307
- * @property {string} - ISO representation of the package's destination
1375
+ * @property {number} - Size of the package in bytes. For ``limited packages``, this field will return the data limit in bytes. For ``unlimited packages``, it will return ``-1`` as an identifier.
1376
+
1377
+ * @property {string} - ISO representation of the package's destination.
1308
1378
  * @property {string} - Name of the package's destination
1309
1379
  * @property {number} - Price of the package in cents
1310
1380
  */
@@ -1333,27 +1403,27 @@ type PurchasesEsim = z.infer<typeof purchasesEsim>;
1333
1403
  declare const createPurchaseOkResponsePurchase: z.ZodLazy<z.ZodObject<{
1334
1404
  id: z.ZodOptional<z.ZodString>;
1335
1405
  packageId: z.ZodOptional<z.ZodString>;
1336
- startDate: z.ZodOptional<z.ZodString>;
1337
- endDate: z.ZodOptional<z.ZodString>;
1406
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1407
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1338
1408
  createdDate: z.ZodOptional<z.ZodString>;
1339
- startTime: z.ZodOptional<z.ZodNumber>;
1340
- endTime: z.ZodOptional<z.ZodNumber>;
1409
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1410
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1341
1411
  }, "strip", z.ZodTypeAny, {
1342
1412
  id?: string | undefined;
1343
1413
  packageId?: string | undefined;
1344
- startDate?: string | undefined;
1345
- endDate?: string | undefined;
1414
+ startDate?: string | null | undefined;
1415
+ endDate?: string | null | undefined;
1346
1416
  createdDate?: string | undefined;
1347
- startTime?: number | undefined;
1348
- endTime?: number | undefined;
1417
+ startTime?: number | null | undefined;
1418
+ endTime?: number | null | undefined;
1349
1419
  }, {
1350
1420
  id?: string | undefined;
1351
1421
  packageId?: string | undefined;
1352
- startDate?: string | undefined;
1353
- endDate?: string | undefined;
1422
+ startDate?: string | null | undefined;
1423
+ endDate?: string | null | undefined;
1354
1424
  createdDate?: string | undefined;
1355
- startTime?: number | undefined;
1356
- endTime?: number | undefined;
1425
+ startTime?: number | null | undefined;
1426
+ endTime?: number | null | undefined;
1357
1427
  }>>;
1358
1428
  /**
1359
1429
  *
@@ -1399,27 +1469,30 @@ type CreatePurchaseOkResponseProfile = z.infer<typeof createPurchaseOkResponsePr
1399
1469
  declare const topUpEsimOkResponsePurchase: z.ZodLazy<z.ZodObject<{
1400
1470
  id: z.ZodOptional<z.ZodString>;
1401
1471
  packageId: z.ZodOptional<z.ZodString>;
1402
- startDate: z.ZodOptional<z.ZodString>;
1403
- endDate: z.ZodOptional<z.ZodString>;
1472
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1473
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1474
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1404
1475
  createdDate: z.ZodOptional<z.ZodString>;
1405
- startTime: z.ZodOptional<z.ZodNumber>;
1406
- endTime: z.ZodOptional<z.ZodNumber>;
1476
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1477
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1407
1478
  }, "strip", z.ZodTypeAny, {
1408
1479
  id?: string | undefined;
1409
1480
  packageId?: string | undefined;
1410
- startDate?: string | undefined;
1411
- endDate?: string | undefined;
1481
+ startDate?: string | null | undefined;
1482
+ endDate?: string | null | undefined;
1483
+ duration?: number | null | undefined;
1412
1484
  createdDate?: string | undefined;
1413
- startTime?: number | undefined;
1414
- endTime?: number | undefined;
1485
+ startTime?: number | null | undefined;
1486
+ endTime?: number | null | undefined;
1415
1487
  }, {
1416
1488
  id?: string | undefined;
1417
1489
  packageId?: string | undefined;
1418
- startDate?: string | undefined;
1419
- endDate?: string | undefined;
1490
+ startDate?: string | null | undefined;
1491
+ endDate?: string | null | undefined;
1492
+ duration?: number | null | undefined;
1420
1493
  createdDate?: string | undefined;
1421
- startTime?: number | undefined;
1422
- endTime?: number | undefined;
1494
+ startTime?: number | null | undefined;
1495
+ endTime?: number | null | undefined;
1423
1496
  }>>;
1424
1497
  /**
1425
1498
  *
@@ -1428,6 +1501,7 @@ declare const topUpEsimOkResponsePurchase: z.ZodLazy<z.ZodObject<{
1428
1501
  * @property {string} - ID of the package
1429
1502
  * @property {string} - Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
1430
1503
  * @property {string} - End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
1504
+ * @property {number} - It designates the number of days the eSIM is valid for within 90-day validity from issuance date.
1431
1505
  * @property {string} - Creation date of the purchase in the format 'yyyy-MM-ddThh:mm:ssZZ'
1432
1506
  * @property {number} - Epoch value representing the start time of the package's validity
1433
1507
  * @property {number} - Epoch value representing the end time of the package's validity
@@ -1451,52 +1525,88 @@ declare const topUpEsimOkResponseProfile: z.ZodLazy<z.ZodObject<{
1451
1525
  */
1452
1526
  type TopUpEsimOkResponseProfile = z.infer<typeof topUpEsimOkResponseProfile>;
1453
1527
 
1454
- declare class _4 extends Error {
1455
- constructor(message?: string, response?: unknown);
1528
+ declare class _4 extends ThrowableError {
1529
+ message: string;
1530
+ protected response?: unknown;
1531
+ constructor(message: string, response?: unknown);
1532
+ throw(): void;
1456
1533
  }
1457
1534
 
1458
- declare class _5 extends Error {
1459
- constructor(message?: string, response?: unknown);
1535
+ declare class _5 extends ThrowableError {
1536
+ message: string;
1537
+ protected response?: unknown;
1538
+ constructor(message: string, response?: unknown);
1539
+ throw(): void;
1460
1540
  }
1461
1541
 
1462
- declare class _6 extends Error {
1463
- constructor(message?: string, response?: unknown);
1542
+ declare class _6 extends ThrowableError {
1543
+ message: string;
1544
+ protected response?: unknown;
1545
+ constructor(message: string, response?: unknown);
1546
+ throw(): void;
1464
1547
  }
1465
1548
 
1466
- declare class _7 extends Error {
1467
- constructor(message?: string, response?: unknown);
1549
+ declare class _7 extends ThrowableError {
1550
+ message: string;
1551
+ protected response?: unknown;
1552
+ constructor(message: string, response?: unknown);
1553
+ throw(): void;
1468
1554
  }
1469
1555
 
1470
- declare class _8 extends Error {
1471
- constructor(message?: string, response?: unknown);
1556
+ declare class _8 extends ThrowableError {
1557
+ message: string;
1558
+ protected response?: unknown;
1559
+ constructor(message: string, response?: unknown);
1560
+ throw(): void;
1472
1561
  }
1473
1562
 
1474
- declare class _9 extends Error {
1475
- constructor(message?: string, response?: unknown);
1563
+ declare class _9 extends ThrowableError {
1564
+ message: string;
1565
+ protected response?: unknown;
1566
+ constructor(message: string, response?: unknown);
1567
+ throw(): void;
1476
1568
  }
1477
1569
 
1478
- declare class _10 extends Error {
1479
- constructor(message?: string, response?: unknown);
1570
+ declare class _10 extends ThrowableError {
1571
+ message: string;
1572
+ protected response?: unknown;
1573
+ constructor(message: string, response?: unknown);
1574
+ throw(): void;
1480
1575
  }
1481
1576
 
1482
- declare class _11 extends Error {
1483
- constructor(message?: string, response?: unknown);
1577
+ declare class _11 extends ThrowableError {
1578
+ message: string;
1579
+ protected response?: unknown;
1580
+ constructor(message: string, response?: unknown);
1581
+ throw(): void;
1484
1582
  }
1485
1583
 
1486
- declare class _12 extends Error {
1487
- constructor(message?: string, response?: unknown);
1584
+ declare class _12 extends ThrowableError {
1585
+ message: string;
1586
+ protected response?: unknown;
1587
+ constructor(message: string, response?: unknown);
1588
+ throw(): void;
1488
1589
  }
1489
1590
 
1490
- declare class _13 extends Error {
1491
- constructor(message?: string, response?: unknown);
1591
+ declare class _13 extends ThrowableError {
1592
+ message: string;
1593
+ protected response?: unknown;
1594
+ constructor(message: string, response?: unknown);
1595
+ throw(): void;
1492
1596
  }
1493
1597
 
1494
- declare class _14 extends Error {
1495
- constructor(message?: string, response?: unknown);
1598
+ declare class _14 extends ThrowableError {
1599
+ message: string;
1600
+ protected response?: unknown;
1601
+ constructor(message: string, response?: unknown);
1602
+ throw(): void;
1496
1603
  }
1497
1604
 
1498
- declare class _15 extends Error {
1499
- constructor(message?: string, response?: unknown);
1605
+ declare class _15 extends ThrowableError {
1606
+ message: string;
1607
+ protected response?: unknown;
1608
+ constructor(message: string, response?: unknown);
1609
+ throw(): void;
1500
1610
  }
1501
1611
 
1502
1612
  /**
@@ -1864,36 +1974,60 @@ declare const getEsimMacOkResponseEsim: z.ZodLazy<z.ZodObject<{
1864
1974
  */
1865
1975
  type GetEsimMacOkResponseEsim = z.infer<typeof getEsimMacOkResponseEsim>;
1866
1976
 
1867
- declare class _16 extends Error {
1868
- constructor(message?: string, response?: unknown);
1977
+ declare class _16 extends ThrowableError {
1978
+ message: string;
1979
+ protected response?: unknown;
1980
+ constructor(message: string, response?: unknown);
1981
+ throw(): void;
1869
1982
  }
1870
1983
 
1871
- declare class _17 extends Error {
1872
- constructor(message?: string, response?: unknown);
1984
+ declare class _17 extends ThrowableError {
1985
+ message: string;
1986
+ protected response?: unknown;
1987
+ constructor(message: string, response?: unknown);
1988
+ throw(): void;
1873
1989
  }
1874
1990
 
1875
- declare class _18 extends Error {
1876
- constructor(message?: string, response?: unknown);
1991
+ declare class _18 extends ThrowableError {
1992
+ message: string;
1993
+ protected response?: unknown;
1994
+ constructor(message: string, response?: unknown);
1995
+ throw(): void;
1877
1996
  }
1878
1997
 
1879
- declare class _19 extends Error {
1880
- constructor(message?: string, response?: unknown);
1998
+ declare class _19 extends ThrowableError {
1999
+ message: string;
2000
+ protected response?: unknown;
2001
+ constructor(message: string, response?: unknown);
2002
+ throw(): void;
1881
2003
  }
1882
2004
 
1883
- declare class _20 extends Error {
1884
- constructor(message?: string, response?: unknown);
2005
+ declare class _20 extends ThrowableError {
2006
+ message: string;
2007
+ protected response?: unknown;
2008
+ constructor(message: string, response?: unknown);
2009
+ throw(): void;
1885
2010
  }
1886
2011
 
1887
- declare class _21 extends Error {
1888
- constructor(message?: string, response?: unknown);
2012
+ declare class _21 extends ThrowableError {
2013
+ message: string;
2014
+ protected response?: unknown;
2015
+ constructor(message: string, response?: unknown);
2016
+ throw(): void;
1889
2017
  }
1890
2018
 
1891
- declare class _22 extends Error {
1892
- constructor(message?: string, response?: unknown);
2019
+ declare class _22 extends ThrowableError {
2020
+ message: string;
2021
+ protected response?: unknown;
2022
+ constructor(message: string, response?: unknown);
2023
+ throw(): void;
1893
2024
  }
1894
2025
 
1895
- declare class _23 extends Error {
1896
- constructor(message?: string, response?: unknown);
2026
+ declare class _23 extends ThrowableError {
2027
+ message: string;
2028
+ protected response?: unknown;
2029
+ constructor(message: string, response?: unknown);
2030
+ throw(): void;
1897
2031
  }
1898
2032
 
1899
2033
  /**
@@ -1922,12 +2056,18 @@ declare class IFrameService extends BaseService {
1922
2056
  token(requestConfig?: RequestConfig): Promise<HttpResponse<TokenOkResponse>>;
1923
2057
  }
1924
2058
 
1925
- declare class _24 extends Error {
1926
- constructor(message?: string, response?: unknown);
2059
+ declare class _24 extends ThrowableError {
2060
+ message: string;
2061
+ protected response?: unknown;
2062
+ constructor(message: string, response?: unknown);
2063
+ throw(): void;
1927
2064
  }
1928
2065
 
1929
- declare class _25 extends Error {
1930
- constructor(message?: string, response?: unknown);
2066
+ declare class _25 extends ThrowableError {
2067
+ message: string;
2068
+ protected response?: unknown;
2069
+ constructor(message: string, response?: unknown);
2070
+ throw(): void;
1931
2071
  }
1932
2072
 
1933
2073
  declare class Celitech {