celitech-sdk 1.3.56 → 1.3.58

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
@@ -247,36 +247,36 @@ declare class BaseService {
247
247
  * The shape of the model inside the application code - what the users use
248
248
  */
249
249
  declare const listDestinationsOkResponse: z.ZodLazy<z.ZodObject<{
250
- destinations: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
251
- name: z.ZodOptional<z.ZodString>;
252
- destination: z.ZodOptional<z.ZodString>;
253
- destinationIso2: z.ZodOptional<z.ZodString>;
254
- supportedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
250
+ destinations: z.ZodArray<z.ZodLazy<z.ZodObject<{
251
+ name: z.ZodString;
252
+ destination: z.ZodString;
253
+ destinationIso2: z.ZodString;
254
+ supportedCountries: z.ZodArray<z.ZodString, "many">;
255
255
  }, "strip", z.ZodTypeAny, {
256
- name?: string | undefined;
257
- destination?: string | undefined;
258
- destinationIso2?: string | undefined;
259
- supportedCountries?: string[] | undefined;
256
+ name: string;
257
+ destination: string;
258
+ destinationIso2: string;
259
+ supportedCountries: string[];
260
260
  }, {
261
- name?: string | undefined;
262
- destination?: string | undefined;
263
- destinationIso2?: string | undefined;
264
- supportedCountries?: string[] | undefined;
265
- }>>, "many">>;
261
+ name: string;
262
+ destination: string;
263
+ destinationIso2: string;
264
+ supportedCountries: string[];
265
+ }>>, "many">;
266
266
  }, "strip", z.ZodTypeAny, {
267
- destinations?: {
268
- name?: string | undefined;
269
- destination?: string | undefined;
270
- destinationIso2?: string | undefined;
271
- supportedCountries?: string[] | undefined;
272
- }[] | undefined;
267
+ destinations: {
268
+ name: string;
269
+ destination: string;
270
+ destinationIso2: string;
271
+ supportedCountries: string[];
272
+ }[];
273
273
  }, {
274
- destinations?: {
275
- name?: string | undefined;
276
- destination?: string | undefined;
277
- destinationIso2?: string | undefined;
278
- supportedCountries?: string[] | undefined;
279
- }[] | undefined;
274
+ destinations: {
275
+ name: string;
276
+ destination: string;
277
+ destinationIso2: string;
278
+ supportedCountries: string[];
279
+ }[];
280
280
  }>>;
281
281
  /**
282
282
  *
@@ -298,20 +298,20 @@ declare class DestinationsService extends BaseService {
298
298
  * The shape of the model inside the application code - what the users use
299
299
  */
300
300
  declare const destinations: z.ZodLazy<z.ZodObject<{
301
- name: z.ZodOptional<z.ZodString>;
302
- destination: z.ZodOptional<z.ZodString>;
303
- destinationIso2: z.ZodOptional<z.ZodString>;
304
- supportedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
301
+ name: z.ZodString;
302
+ destination: z.ZodString;
303
+ destinationIso2: z.ZodString;
304
+ supportedCountries: z.ZodArray<z.ZodString, "many">;
305
305
  }, "strip", z.ZodTypeAny, {
306
- name?: string | undefined;
307
- destination?: string | undefined;
308
- destinationIso2?: string | undefined;
309
- supportedCountries?: string[] | undefined;
306
+ name: string;
307
+ destination: string;
308
+ destinationIso2: string;
309
+ supportedCountries: string[];
310
310
  }, {
311
- name?: string | undefined;
312
- destination?: string | undefined;
313
- destinationIso2?: string | undefined;
314
- supportedCountries?: string[] | undefined;
311
+ name: string;
312
+ destination: string;
313
+ destinationIso2: string;
314
+ supportedCountries: string[];
315
315
  }>>;
316
316
  /**
317
317
  *
@@ -323,72 +323,58 @@ declare const destinations: z.ZodLazy<z.ZodObject<{
323
323
  */
324
324
  type Destinations = z.infer<typeof destinations>;
325
325
 
326
- declare class __ extends ThrowableError {
327
- message: string;
328
- protected response?: unknown;
329
- constructor(message: string, response?: unknown);
330
- throw(): void;
331
- }
332
-
333
- declare class _1 extends ThrowableError {
334
- message: string;
335
- protected response?: unknown;
336
- constructor(message: string, response?: unknown);
337
- throw(): void;
338
- }
339
-
340
326
  /**
341
327
  * The shape of the model inside the application code - what the users use
342
328
  */
343
329
  declare const listPackagesOkResponse: z.ZodLazy<z.ZodObject<{
344
- packages: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
345
- id: z.ZodOptional<z.ZodString>;
346
- destination: z.ZodOptional<z.ZodString>;
347
- destinationIso2: z.ZodOptional<z.ZodString>;
348
- dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
349
- minDays: z.ZodOptional<z.ZodNumber>;
350
- maxDays: z.ZodOptional<z.ZodNumber>;
351
- priceInCents: z.ZodOptional<z.ZodNumber>;
330
+ packages: z.ZodArray<z.ZodLazy<z.ZodObject<{
331
+ id: z.ZodString;
332
+ destination: z.ZodString;
333
+ destinationIso2: z.ZodString;
334
+ dataLimitInBytes: z.ZodNumber;
335
+ minDays: z.ZodNumber;
336
+ maxDays: z.ZodNumber;
337
+ priceInCents: z.ZodNumber;
352
338
  }, "strip", z.ZodTypeAny, {
353
- id?: string | undefined;
354
- destination?: string | undefined;
355
- destinationIso2?: string | undefined;
356
- dataLimitInBytes?: number | undefined;
357
- minDays?: number | undefined;
358
- maxDays?: number | undefined;
359
- priceInCents?: number | undefined;
339
+ destination: string;
340
+ destinationIso2: string;
341
+ id: string;
342
+ dataLimitInBytes: number;
343
+ minDays: number;
344
+ maxDays: number;
345
+ priceInCents: number;
360
346
  }, {
361
- id?: string | undefined;
362
- destination?: string | undefined;
363
- destinationIso2?: string | undefined;
364
- dataLimitInBytes?: number | undefined;
365
- minDays?: number | undefined;
366
- maxDays?: number | undefined;
367
- priceInCents?: number | undefined;
368
- }>>, "many">>;
369
- afterCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
347
+ destination: string;
348
+ destinationIso2: string;
349
+ id: string;
350
+ dataLimitInBytes: number;
351
+ minDays: number;
352
+ maxDays: number;
353
+ priceInCents: number;
354
+ }>>, "many">;
355
+ afterCursor: z.ZodNullable<z.ZodString>;
370
356
  }, "strip", z.ZodTypeAny, {
371
- packages?: {
372
- id?: string | undefined;
373
- destination?: string | undefined;
374
- destinationIso2?: string | undefined;
375
- dataLimitInBytes?: number | undefined;
376
- minDays?: number | undefined;
377
- maxDays?: number | undefined;
378
- priceInCents?: number | undefined;
379
- }[] | undefined;
380
- afterCursor?: string | null | undefined;
357
+ packages: {
358
+ destination: string;
359
+ destinationIso2: string;
360
+ id: string;
361
+ dataLimitInBytes: number;
362
+ minDays: number;
363
+ maxDays: number;
364
+ priceInCents: number;
365
+ }[];
366
+ afterCursor: string | null;
381
367
  }, {
382
- packages?: {
383
- id?: string | undefined;
384
- destination?: string | undefined;
385
- destinationIso2?: string | undefined;
386
- dataLimitInBytes?: number | undefined;
387
- minDays?: number | undefined;
388
- maxDays?: number | undefined;
389
- priceInCents?: number | undefined;
390
- }[] | undefined;
391
- afterCursor?: string | null | undefined;
368
+ packages: {
369
+ destination: string;
370
+ destinationIso2: string;
371
+ id: string;
372
+ dataLimitInBytes: number;
373
+ minDays: number;
374
+ maxDays: number;
375
+ priceInCents: number;
376
+ }[];
377
+ afterCursor: string | null;
392
378
  }>>;
393
379
  /**
394
380
  *
@@ -430,29 +416,29 @@ declare class PackagesService extends BaseService {
430
416
  * The shape of the model inside the application code - what the users use
431
417
  */
432
418
  declare const packages: z.ZodLazy<z.ZodObject<{
433
- id: z.ZodOptional<z.ZodString>;
434
- destination: z.ZodOptional<z.ZodString>;
435
- destinationIso2: z.ZodOptional<z.ZodString>;
436
- dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
437
- minDays: z.ZodOptional<z.ZodNumber>;
438
- maxDays: z.ZodOptional<z.ZodNumber>;
439
- priceInCents: z.ZodOptional<z.ZodNumber>;
419
+ id: z.ZodString;
420
+ destination: z.ZodString;
421
+ destinationIso2: z.ZodString;
422
+ dataLimitInBytes: z.ZodNumber;
423
+ minDays: z.ZodNumber;
424
+ maxDays: z.ZodNumber;
425
+ priceInCents: z.ZodNumber;
440
426
  }, "strip", z.ZodTypeAny, {
441
- id?: string | undefined;
442
- destination?: string | undefined;
443
- destinationIso2?: string | undefined;
444
- dataLimitInBytes?: number | undefined;
445
- minDays?: number | undefined;
446
- maxDays?: number | undefined;
447
- priceInCents?: number | undefined;
427
+ destination: string;
428
+ destinationIso2: string;
429
+ id: string;
430
+ dataLimitInBytes: number;
431
+ minDays: number;
432
+ maxDays: number;
433
+ priceInCents: number;
448
434
  }, {
449
- id?: string | undefined;
450
- destination?: string | undefined;
451
- destinationIso2?: string | undefined;
452
- dataLimitInBytes?: number | undefined;
453
- minDays?: number | undefined;
454
- maxDays?: number | undefined;
455
- priceInCents?: number | undefined;
435
+ destination: string;
436
+ destinationIso2: string;
437
+ id: string;
438
+ dataLimitInBytes: number;
439
+ minDays: number;
440
+ maxDays: number;
441
+ priceInCents: number;
456
442
  }>>;
457
443
  /**
458
444
  *
@@ -467,20 +453,6 @@ declare const packages: z.ZodLazy<z.ZodObject<{
467
453
  */
468
454
  type Packages = z.infer<typeof packages>;
469
455
 
470
- declare class _2 extends ThrowableError {
471
- message: string;
472
- protected response?: unknown;
473
- constructor(message: string, response?: unknown);
474
- throw(): void;
475
- }
476
-
477
- declare class _3 extends ThrowableError {
478
- message: string;
479
- protected response?: unknown;
480
- constructor(message: string, response?: unknown);
481
- throw(): void;
482
- }
483
-
484
456
  /**
485
457
  * The shape of the model inside the application code - what the users use
486
458
  */
@@ -534,54 +506,54 @@ type CreatePurchaseV2Request = z.infer<typeof createPurchaseV2Request>;
534
506
  * The shape of the model inside the application code - what the users use
535
507
  */
536
508
  declare const createPurchaseV2OkResponse: z.ZodLazy<z.ZodObject<{
537
- purchase: z.ZodOptional<z.ZodLazy<z.ZodObject<{
538
- id: z.ZodOptional<z.ZodString>;
539
- packageId: z.ZodOptional<z.ZodString>;
540
- createdDate: z.ZodOptional<z.ZodString>;
509
+ purchase: z.ZodLazy<z.ZodObject<{
510
+ id: z.ZodString;
511
+ packageId: z.ZodString;
512
+ createdDate: z.ZodString;
541
513
  }, "strip", z.ZodTypeAny, {
542
- id?: string | undefined;
543
- packageId?: string | undefined;
544
- createdDate?: string | undefined;
514
+ id: string;
515
+ packageId: string;
516
+ createdDate: string;
545
517
  }, {
546
- id?: string | undefined;
547
- packageId?: string | undefined;
548
- createdDate?: string | undefined;
549
- }>>>;
550
- profile: z.ZodOptional<z.ZodLazy<z.ZodObject<{
551
- iccid: z.ZodOptional<z.ZodString>;
552
- activationCode: z.ZodOptional<z.ZodString>;
553
- manualActivationCode: z.ZodOptional<z.ZodString>;
518
+ id: string;
519
+ packageId: string;
520
+ createdDate: string;
521
+ }>>;
522
+ profile: z.ZodLazy<z.ZodObject<{
523
+ iccid: z.ZodString;
524
+ activationCode: z.ZodString;
525
+ manualActivationCode: z.ZodString;
554
526
  }, "strip", z.ZodTypeAny, {
555
- iccid?: string | undefined;
556
- activationCode?: string | undefined;
557
- manualActivationCode?: string | undefined;
527
+ iccid: string;
528
+ activationCode: string;
529
+ manualActivationCode: string;
558
530
  }, {
559
- iccid?: string | undefined;
560
- activationCode?: string | undefined;
561
- manualActivationCode?: string | undefined;
562
- }>>>;
531
+ iccid: string;
532
+ activationCode: string;
533
+ manualActivationCode: string;
534
+ }>>;
563
535
  }, "strip", z.ZodTypeAny, {
564
- purchase?: {
565
- id?: string | undefined;
566
- packageId?: string | undefined;
567
- createdDate?: string | undefined;
568
- } | undefined;
569
- profile?: {
570
- iccid?: string | undefined;
571
- activationCode?: string | undefined;
572
- manualActivationCode?: string | undefined;
573
- } | undefined;
536
+ purchase: {
537
+ id: string;
538
+ packageId: string;
539
+ createdDate: string;
540
+ };
541
+ profile: {
542
+ iccid: string;
543
+ activationCode: string;
544
+ manualActivationCode: string;
545
+ };
574
546
  }, {
575
- purchase?: {
576
- id?: string | undefined;
577
- packageId?: string | undefined;
578
- createdDate?: string | undefined;
579
- } | undefined;
580
- profile?: {
581
- iccid?: string | undefined;
582
- activationCode?: string | undefined;
583
- manualActivationCode?: string | undefined;
584
- } | undefined;
547
+ purchase: {
548
+ id: string;
549
+ packageId: string;
550
+ createdDate: string;
551
+ };
552
+ profile: {
553
+ iccid: string;
554
+ activationCode: string;
555
+ manualActivationCode: string;
556
+ };
585
557
  }>>;
586
558
  /**
587
559
  *
@@ -595,142 +567,142 @@ type CreatePurchaseV2OkResponse = z.infer<typeof createPurchaseV2OkResponse>;
595
567
  * The shape of the model inside the application code - what the users use
596
568
  */
597
569
  declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
598
- purchases: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
599
- id: z.ZodOptional<z.ZodString>;
600
- startDate: z.ZodOptional<z.ZodString>;
601
- endDate: z.ZodOptional<z.ZodString>;
602
- createdDate: z.ZodOptional<z.ZodString>;
570
+ purchases: z.ZodArray<z.ZodLazy<z.ZodObject<{
571
+ id: z.ZodString;
572
+ startDate: z.ZodString;
573
+ endDate: z.ZodString;
574
+ createdDate: z.ZodString;
603
575
  startTime: z.ZodOptional<z.ZodNumber>;
604
576
  endTime: z.ZodOptional<z.ZodNumber>;
605
577
  createdAt: z.ZodOptional<z.ZodNumber>;
606
- package: z.ZodOptional<z.ZodLazy<z.ZodObject<{
607
- id: z.ZodOptional<z.ZodString>;
608
- dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
609
- destination: z.ZodOptional<z.ZodString>;
610
- destinationIso2: z.ZodOptional<z.ZodString>;
611
- destinationName: z.ZodOptional<z.ZodString>;
612
- priceInCents: z.ZodOptional<z.ZodNumber>;
578
+ package: z.ZodLazy<z.ZodObject<{
579
+ id: z.ZodString;
580
+ dataLimitInBytes: z.ZodNumber;
581
+ destination: z.ZodString;
582
+ destinationIso2: z.ZodString;
583
+ destinationName: z.ZodString;
584
+ priceInCents: z.ZodNumber;
613
585
  }, "strip", z.ZodTypeAny, {
614
- id?: string | undefined;
615
- dataLimitInBytes?: number | undefined;
616
- destination?: string | undefined;
617
- destinationIso2?: string | undefined;
618
- destinationName?: string | undefined;
619
- priceInCents?: number | undefined;
586
+ destination: string;
587
+ destinationIso2: string;
588
+ id: string;
589
+ dataLimitInBytes: number;
590
+ priceInCents: number;
591
+ destinationName: string;
620
592
  }, {
621
- id?: string | undefined;
622
- dataLimitInBytes?: number | undefined;
623
- destination?: string | undefined;
624
- destinationIso2?: string | undefined;
625
- destinationName?: string | undefined;
626
- priceInCents?: number | undefined;
627
- }>>>;
628
- esim: z.ZodOptional<z.ZodLazy<z.ZodObject<{
629
- iccid: z.ZodOptional<z.ZodString>;
593
+ destination: string;
594
+ destinationIso2: string;
595
+ id: string;
596
+ dataLimitInBytes: number;
597
+ priceInCents: number;
598
+ destinationName: string;
599
+ }>>;
600
+ esim: z.ZodLazy<z.ZodObject<{
601
+ iccid: z.ZodString;
630
602
  }, "strip", z.ZodTypeAny, {
631
- iccid?: string | undefined;
603
+ iccid: string;
632
604
  }, {
633
- iccid?: string | undefined;
634
- }>>>;
635
- source: z.ZodOptional<z.ZodString>;
636
- purchaseType: z.ZodOptional<z.ZodString>;
605
+ iccid: string;
606
+ }>>;
607
+ source: z.ZodString;
608
+ purchaseType: z.ZodString;
637
609
  referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
638
610
  }, "strip", z.ZodTypeAny, {
639
- id?: string | undefined;
640
- startDate?: string | undefined;
641
- endDate?: string | undefined;
642
- createdDate?: string | undefined;
611
+ id: string;
612
+ startDate: string;
613
+ endDate: string;
614
+ createdDate: string;
615
+ package: {
616
+ destination: string;
617
+ destinationIso2: string;
618
+ id: string;
619
+ dataLimitInBytes: number;
620
+ priceInCents: number;
621
+ destinationName: string;
622
+ };
623
+ esim: {
624
+ iccid: string;
625
+ };
626
+ source: string;
627
+ purchaseType: string;
643
628
  startTime?: number | undefined;
644
629
  endTime?: number | undefined;
645
630
  createdAt?: number | undefined;
646
- package?: {
647
- id?: string | undefined;
648
- dataLimitInBytes?: number | undefined;
649
- destination?: string | undefined;
650
- destinationIso2?: string | undefined;
651
- destinationName?: string | undefined;
652
- priceInCents?: number | undefined;
653
- } | undefined;
654
- esim?: {
655
- iccid?: string | undefined;
656
- } | undefined;
657
- source?: string | undefined;
658
- purchaseType?: string | undefined;
659
631
  referenceId?: string | null | undefined;
660
632
  }, {
661
- id?: string | undefined;
662
- startDate?: string | undefined;
663
- endDate?: string | undefined;
664
- createdDate?: string | undefined;
633
+ id: string;
634
+ startDate: string;
635
+ endDate: string;
636
+ createdDate: string;
637
+ package: {
638
+ destination: string;
639
+ destinationIso2: string;
640
+ id: string;
641
+ dataLimitInBytes: number;
642
+ priceInCents: number;
643
+ destinationName: string;
644
+ };
645
+ esim: {
646
+ iccid: string;
647
+ };
648
+ source: string;
649
+ purchaseType: string;
665
650
  startTime?: number | undefined;
666
651
  endTime?: number | undefined;
667
652
  createdAt?: number | undefined;
668
- package?: {
669
- id?: string | undefined;
670
- dataLimitInBytes?: number | undefined;
671
- destination?: string | undefined;
672
- destinationIso2?: string | undefined;
673
- destinationName?: string | undefined;
674
- priceInCents?: number | undefined;
675
- } | undefined;
676
- esim?: {
677
- iccid?: string | undefined;
678
- } | undefined;
679
- source?: string | undefined;
680
- purchaseType?: string | undefined;
681
653
  referenceId?: string | null | undefined;
682
- }>>, "many">>;
683
- afterCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
654
+ }>>, "many">;
655
+ afterCursor: z.ZodNullable<z.ZodString>;
684
656
  }, "strip", z.ZodTypeAny, {
685
- purchases?: {
686
- id?: string | undefined;
687
- startDate?: string | undefined;
688
- endDate?: string | undefined;
689
- createdDate?: string | undefined;
657
+ afterCursor: string | null;
658
+ purchases: {
659
+ id: string;
660
+ startDate: string;
661
+ endDate: string;
662
+ createdDate: string;
663
+ package: {
664
+ destination: string;
665
+ destinationIso2: string;
666
+ id: string;
667
+ dataLimitInBytes: number;
668
+ priceInCents: number;
669
+ destinationName: string;
670
+ };
671
+ esim: {
672
+ iccid: string;
673
+ };
674
+ source: string;
675
+ purchaseType: string;
690
676
  startTime?: number | undefined;
691
677
  endTime?: number | undefined;
692
678
  createdAt?: number | undefined;
693
- package?: {
694
- id?: string | undefined;
695
- dataLimitInBytes?: number | undefined;
696
- destination?: string | undefined;
697
- destinationIso2?: string | undefined;
698
- destinationName?: string | undefined;
699
- priceInCents?: number | undefined;
700
- } | undefined;
701
- esim?: {
702
- iccid?: string | undefined;
703
- } | undefined;
704
- source?: string | undefined;
705
- purchaseType?: string | undefined;
706
679
  referenceId?: string | null | undefined;
707
- }[] | undefined;
708
- afterCursor?: string | null | undefined;
680
+ }[];
709
681
  }, {
710
- purchases?: {
711
- id?: string | undefined;
712
- startDate?: string | undefined;
713
- endDate?: string | undefined;
714
- createdDate?: string | undefined;
682
+ afterCursor: string | null;
683
+ purchases: {
684
+ id: string;
685
+ startDate: string;
686
+ endDate: string;
687
+ createdDate: string;
688
+ package: {
689
+ destination: string;
690
+ destinationIso2: string;
691
+ id: string;
692
+ dataLimitInBytes: number;
693
+ priceInCents: number;
694
+ destinationName: string;
695
+ };
696
+ esim: {
697
+ iccid: string;
698
+ };
699
+ source: string;
700
+ purchaseType: string;
715
701
  startTime?: number | undefined;
716
702
  endTime?: number | undefined;
717
703
  createdAt?: number | undefined;
718
- package?: {
719
- id?: string | undefined;
720
- dataLimitInBytes?: number | undefined;
721
- destination?: string | undefined;
722
- destinationIso2?: string | undefined;
723
- destinationName?: string | undefined;
724
- priceInCents?: number | undefined;
725
- } | undefined;
726
- esim?: {
727
- iccid?: string | undefined;
728
- } | undefined;
729
- source?: string | undefined;
730
- purchaseType?: string | undefined;
731
704
  referenceId?: string | null | undefined;
732
- }[] | undefined;
733
- afterCursor?: string | null | undefined;
705
+ }[];
734
706
  }>>;
735
707
  /**
736
708
  *
@@ -809,74 +781,74 @@ type CreatePurchaseRequest = z.infer<typeof createPurchaseRequest>;
809
781
  * The shape of the model inside the application code - what the users use
810
782
  */
811
783
  declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
812
- purchase: z.ZodOptional<z.ZodLazy<z.ZodObject<{
813
- id: z.ZodOptional<z.ZodString>;
814
- packageId: z.ZodOptional<z.ZodString>;
815
- startDate: z.ZodOptional<z.ZodString>;
816
- endDate: z.ZodOptional<z.ZodString>;
817
- createdDate: z.ZodOptional<z.ZodString>;
784
+ purchase: z.ZodLazy<z.ZodObject<{
785
+ id: z.ZodString;
786
+ packageId: z.ZodString;
787
+ startDate: z.ZodString;
788
+ endDate: z.ZodString;
789
+ createdDate: z.ZodString;
818
790
  startTime: z.ZodOptional<z.ZodNumber>;
819
791
  endTime: z.ZodOptional<z.ZodNumber>;
820
792
  }, "strip", z.ZodTypeAny, {
821
- id?: string | undefined;
822
- packageId?: string | undefined;
823
- startDate?: string | undefined;
824
- endDate?: string | undefined;
825
- createdDate?: string | undefined;
793
+ id: string;
794
+ startDate: string;
795
+ endDate: string;
796
+ packageId: string;
797
+ createdDate: string;
826
798
  startTime?: number | undefined;
827
799
  endTime?: number | undefined;
828
800
  }, {
829
- id?: string | undefined;
830
- packageId?: string | undefined;
831
- startDate?: string | undefined;
832
- endDate?: string | undefined;
833
- createdDate?: string | undefined;
801
+ id: string;
802
+ startDate: string;
803
+ endDate: string;
804
+ packageId: string;
805
+ createdDate: string;
834
806
  startTime?: number | undefined;
835
807
  endTime?: number | undefined;
836
- }>>>;
837
- profile: z.ZodOptional<z.ZodLazy<z.ZodObject<{
838
- iccid: z.ZodOptional<z.ZodString>;
839
- activationCode: z.ZodOptional<z.ZodString>;
840
- manualActivationCode: z.ZodOptional<z.ZodString>;
808
+ }>>;
809
+ profile: z.ZodLazy<z.ZodObject<{
810
+ iccid: z.ZodString;
811
+ activationCode: z.ZodString;
812
+ manualActivationCode: z.ZodString;
841
813
  }, "strip", z.ZodTypeAny, {
842
- iccid?: string | undefined;
843
- activationCode?: string | undefined;
844
- manualActivationCode?: string | undefined;
814
+ iccid: string;
815
+ activationCode: string;
816
+ manualActivationCode: string;
845
817
  }, {
846
- iccid?: string | undefined;
847
- activationCode?: string | undefined;
848
- manualActivationCode?: string | undefined;
849
- }>>>;
818
+ iccid: string;
819
+ activationCode: string;
820
+ manualActivationCode: string;
821
+ }>>;
850
822
  }, "strip", z.ZodTypeAny, {
851
- purchase?: {
852
- id?: string | undefined;
853
- packageId?: string | undefined;
854
- startDate?: string | undefined;
855
- endDate?: string | undefined;
856
- createdDate?: string | undefined;
823
+ purchase: {
824
+ id: string;
825
+ startDate: string;
826
+ endDate: string;
827
+ packageId: string;
828
+ createdDate: string;
857
829
  startTime?: number | undefined;
858
830
  endTime?: number | undefined;
859
- } | undefined;
860
- profile?: {
861
- iccid?: string | undefined;
862
- activationCode?: string | undefined;
863
- manualActivationCode?: string | undefined;
864
- } | undefined;
831
+ };
832
+ profile: {
833
+ iccid: string;
834
+ activationCode: string;
835
+ manualActivationCode: string;
836
+ };
865
837
  }, {
866
- purchase?: {
867
- id?: string | undefined;
868
- packageId?: string | undefined;
869
- startDate?: string | undefined;
870
- endDate?: string | undefined;
871
- createdDate?: string | undefined;
838
+ purchase: {
839
+ id: string;
840
+ startDate: string;
841
+ endDate: string;
842
+ packageId: string;
843
+ createdDate: string;
872
844
  startTime?: number | undefined;
873
845
  endTime?: number | undefined;
874
- } | undefined;
875
- profile?: {
876
- iccid?: string | undefined;
877
- activationCode?: string | undefined;
878
- manualActivationCode?: string | undefined;
879
- } | undefined;
846
+ };
847
+ profile: {
848
+ iccid: string;
849
+ activationCode: string;
850
+ manualActivationCode: string;
851
+ };
880
852
  }>>;
881
853
  /**
882
854
  *
@@ -939,64 +911,64 @@ type TopUpEsimRequest = z.infer<typeof topUpEsimRequest>;
939
911
  * The shape of the model inside the application code - what the users use
940
912
  */
941
913
  declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
942
- purchase: z.ZodOptional<z.ZodLazy<z.ZodObject<{
943
- id: z.ZodOptional<z.ZodString>;
944
- packageId: z.ZodOptional<z.ZodString>;
945
- startDate: z.ZodOptional<z.ZodString>;
946
- endDate: z.ZodOptional<z.ZodString>;
947
- createdDate: z.ZodOptional<z.ZodString>;
914
+ purchase: z.ZodLazy<z.ZodObject<{
915
+ id: z.ZodString;
916
+ packageId: z.ZodString;
917
+ startDate: z.ZodString;
918
+ endDate: z.ZodString;
919
+ createdDate: z.ZodString;
948
920
  startTime: z.ZodOptional<z.ZodNumber>;
949
921
  endTime: z.ZodOptional<z.ZodNumber>;
950
922
  }, "strip", z.ZodTypeAny, {
951
- id?: string | undefined;
952
- packageId?: string | undefined;
953
- startDate?: string | undefined;
954
- endDate?: string | undefined;
955
- createdDate?: string | undefined;
923
+ id: string;
924
+ startDate: string;
925
+ endDate: string;
926
+ packageId: string;
927
+ createdDate: string;
956
928
  startTime?: number | undefined;
957
929
  endTime?: number | undefined;
958
930
  }, {
959
- id?: string | undefined;
960
- packageId?: string | undefined;
961
- startDate?: string | undefined;
962
- endDate?: string | undefined;
963
- createdDate?: string | undefined;
931
+ id: string;
932
+ startDate: string;
933
+ endDate: string;
934
+ packageId: string;
935
+ createdDate: string;
964
936
  startTime?: number | undefined;
965
937
  endTime?: number | undefined;
966
- }>>>;
967
- profile: z.ZodOptional<z.ZodLazy<z.ZodObject<{
968
- iccid: z.ZodOptional<z.ZodString>;
938
+ }>>;
939
+ profile: z.ZodLazy<z.ZodObject<{
940
+ iccid: z.ZodString;
969
941
  }, "strip", z.ZodTypeAny, {
970
- iccid?: string | undefined;
942
+ iccid: string;
971
943
  }, {
972
- iccid?: string | undefined;
973
- }>>>;
944
+ iccid: string;
945
+ }>>;
974
946
  }, "strip", z.ZodTypeAny, {
975
- purchase?: {
976
- id?: string | undefined;
977
- packageId?: string | undefined;
978
- startDate?: string | undefined;
979
- endDate?: string | undefined;
980
- createdDate?: string | undefined;
947
+ purchase: {
948
+ id: string;
949
+ startDate: string;
950
+ endDate: string;
951
+ packageId: string;
952
+ createdDate: string;
981
953
  startTime?: number | undefined;
982
954
  endTime?: number | undefined;
983
- } | undefined;
984
- profile?: {
985
- iccid?: string | undefined;
986
- } | undefined;
955
+ };
956
+ profile: {
957
+ iccid: string;
958
+ };
987
959
  }, {
988
- purchase?: {
989
- id?: string | undefined;
990
- packageId?: string | undefined;
991
- startDate?: string | undefined;
992
- endDate?: string | undefined;
993
- createdDate?: string | undefined;
960
+ purchase: {
961
+ id: string;
962
+ startDate: string;
963
+ endDate: string;
964
+ packageId: string;
965
+ createdDate: string;
994
966
  startTime?: number | undefined;
995
967
  endTime?: number | undefined;
996
- } | undefined;
997
- profile?: {
998
- iccid?: string | undefined;
999
- } | undefined;
968
+ };
969
+ profile: {
970
+ iccid: string;
971
+ };
1000
972
  }>>;
1001
973
  /**
1002
974
  *
@@ -1043,21 +1015,21 @@ type EditPurchaseRequest = z.infer<typeof editPurchaseRequest>;
1043
1015
  * The shape of the model inside the application code - what the users use
1044
1016
  */
1045
1017
  declare const editPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
1046
- purchaseId: z.ZodOptional<z.ZodString>;
1047
- newStartDate: z.ZodOptional<z.ZodString>;
1048
- newEndDate: z.ZodOptional<z.ZodString>;
1018
+ purchaseId: z.ZodString;
1019
+ newStartDate: z.ZodString;
1020
+ newEndDate: z.ZodString;
1049
1021
  newStartTime: z.ZodOptional<z.ZodNumber>;
1050
1022
  newEndTime: z.ZodOptional<z.ZodNumber>;
1051
1023
  }, "strip", z.ZodTypeAny, {
1052
- purchaseId?: string | undefined;
1053
- newStartDate?: string | undefined;
1054
- newEndDate?: string | undefined;
1024
+ purchaseId: string;
1025
+ newStartDate: string;
1026
+ newEndDate: string;
1055
1027
  newStartTime?: number | undefined;
1056
1028
  newEndTime?: number | undefined;
1057
1029
  }, {
1058
- purchaseId?: string | undefined;
1059
- newStartDate?: string | undefined;
1060
- newEndDate?: string | undefined;
1030
+ purchaseId: string;
1031
+ newStartDate: string;
1032
+ newEndDate: string;
1061
1033
  newStartTime?: number | undefined;
1062
1034
  newEndTime?: number | undefined;
1063
1035
  }>>;
@@ -1076,14 +1048,14 @@ type EditPurchaseOkResponse = z.infer<typeof editPurchaseOkResponse>;
1076
1048
  * The shape of the model inside the application code - what the users use
1077
1049
  */
1078
1050
  declare const getPurchaseConsumptionOkResponse: z.ZodLazy<z.ZodObject<{
1079
- dataUsageRemainingInBytes: z.ZodOptional<z.ZodNumber>;
1080
- status: z.ZodOptional<z.ZodString>;
1051
+ dataUsageRemainingInBytes: z.ZodNumber;
1052
+ status: z.ZodString;
1081
1053
  }, "strip", z.ZodTypeAny, {
1082
- dataUsageRemainingInBytes?: number | undefined;
1083
- status?: string | undefined;
1054
+ status: string;
1055
+ dataUsageRemainingInBytes: number;
1084
1056
  }, {
1085
- dataUsageRemainingInBytes?: number | undefined;
1086
- status?: string | undefined;
1057
+ status: string;
1058
+ dataUsageRemainingInBytes: number;
1087
1059
  }>>;
1088
1060
  /**
1089
1061
  *
@@ -1128,10 +1100,17 @@ declare class PurchasesService extends BaseService {
1128
1100
  */
1129
1101
  topUpEsim(body: TopUpEsimRequest, requestConfig?: RequestConfig): Promise<HttpResponse<TopUpEsimOkResponse>>;
1130
1102
  /**
1131
- * 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.
1132
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
1133
- * @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
1134
- */
1103
+ * This endpoint allows you to modify the validity dates of an existing purchase.
1104
+ **Behavior:**
1105
+ - If the purchase has **not yet been activated**, both the start and end dates can be updated.
1106
+ - If the purchase is **already active**, only the **end date** can be updated, while the **start date must remain unchanged** (and should be passed as originally set).
1107
+ - Updates must comply with the same pricing structure; the modification cannot alter the package size or change its duration category.
1108
+
1109
+ 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.
1110
+
1111
+ * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
1112
+ * @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
1113
+ */
1135
1114
  editPurchase(body: EditPurchaseRequest, requestConfig?: RequestConfig): Promise<HttpResponse<EditPurchaseOkResponse>>;
1136
1115
  /**
1137
1116
  * 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.
@@ -1146,17 +1125,17 @@ declare class PurchasesService extends BaseService {
1146
1125
  * The shape of the model inside the application code - what the users use
1147
1126
  */
1148
1127
  declare const createPurchaseV2OkResponsePurchase: z.ZodLazy<z.ZodObject<{
1149
- id: z.ZodOptional<z.ZodString>;
1150
- packageId: z.ZodOptional<z.ZodString>;
1151
- createdDate: z.ZodOptional<z.ZodString>;
1128
+ id: z.ZodString;
1129
+ packageId: z.ZodString;
1130
+ createdDate: z.ZodString;
1152
1131
  }, "strip", z.ZodTypeAny, {
1153
- id?: string | undefined;
1154
- packageId?: string | undefined;
1155
- createdDate?: string | undefined;
1132
+ id: string;
1133
+ packageId: string;
1134
+ createdDate: string;
1156
1135
  }, {
1157
- id?: string | undefined;
1158
- packageId?: string | undefined;
1159
- createdDate?: string | undefined;
1136
+ id: string;
1137
+ packageId: string;
1138
+ createdDate: string;
1160
1139
  }>>;
1161
1140
  /**
1162
1141
  *
@@ -1171,17 +1150,17 @@ type CreatePurchaseV2OkResponsePurchase = z.infer<typeof createPurchaseV2OkRespo
1171
1150
  * The shape of the model inside the application code - what the users use
1172
1151
  */
1173
1152
  declare const createPurchaseV2OkResponseProfile: z.ZodLazy<z.ZodObject<{
1174
- iccid: z.ZodOptional<z.ZodString>;
1175
- activationCode: z.ZodOptional<z.ZodString>;
1176
- manualActivationCode: z.ZodOptional<z.ZodString>;
1153
+ iccid: z.ZodString;
1154
+ activationCode: z.ZodString;
1155
+ manualActivationCode: z.ZodString;
1177
1156
  }, "strip", z.ZodTypeAny, {
1178
- iccid?: string | undefined;
1179
- activationCode?: string | undefined;
1180
- manualActivationCode?: string | undefined;
1157
+ iccid: string;
1158
+ activationCode: string;
1159
+ manualActivationCode: string;
1181
1160
  }, {
1182
- iccid?: string | undefined;
1183
- activationCode?: string | undefined;
1184
- manualActivationCode?: string | undefined;
1161
+ iccid: string;
1162
+ activationCode: string;
1163
+ manualActivationCode: string;
1185
1164
  }>>;
1186
1165
  /**
1187
1166
  *
@@ -1196,88 +1175,88 @@ type CreatePurchaseV2OkResponseProfile = z.infer<typeof createPurchaseV2OkRespon
1196
1175
  * The shape of the model inside the application code - what the users use
1197
1176
  */
1198
1177
  declare const purchases: z.ZodLazy<z.ZodObject<{
1199
- id: z.ZodOptional<z.ZodString>;
1200
- startDate: z.ZodOptional<z.ZodString>;
1201
- endDate: z.ZodOptional<z.ZodString>;
1202
- createdDate: z.ZodOptional<z.ZodString>;
1178
+ id: z.ZodString;
1179
+ startDate: z.ZodString;
1180
+ endDate: z.ZodString;
1181
+ createdDate: z.ZodString;
1203
1182
  startTime: z.ZodOptional<z.ZodNumber>;
1204
1183
  endTime: z.ZodOptional<z.ZodNumber>;
1205
1184
  createdAt: z.ZodOptional<z.ZodNumber>;
1206
- package: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1207
- id: z.ZodOptional<z.ZodString>;
1208
- dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
1209
- destination: z.ZodOptional<z.ZodString>;
1210
- destinationIso2: z.ZodOptional<z.ZodString>;
1211
- destinationName: z.ZodOptional<z.ZodString>;
1212
- priceInCents: z.ZodOptional<z.ZodNumber>;
1185
+ package: z.ZodLazy<z.ZodObject<{
1186
+ id: z.ZodString;
1187
+ dataLimitInBytes: z.ZodNumber;
1188
+ destination: z.ZodString;
1189
+ destinationIso2: z.ZodString;
1190
+ destinationName: z.ZodString;
1191
+ priceInCents: z.ZodNumber;
1213
1192
  }, "strip", z.ZodTypeAny, {
1214
- id?: string | undefined;
1215
- dataLimitInBytes?: number | undefined;
1216
- destination?: string | undefined;
1217
- destinationIso2?: string | undefined;
1218
- destinationName?: string | undefined;
1219
- priceInCents?: number | undefined;
1193
+ destination: string;
1194
+ destinationIso2: string;
1195
+ id: string;
1196
+ dataLimitInBytes: number;
1197
+ priceInCents: number;
1198
+ destinationName: string;
1220
1199
  }, {
1221
- id?: string | undefined;
1222
- dataLimitInBytes?: number | undefined;
1223
- destination?: string | undefined;
1224
- destinationIso2?: string | undefined;
1225
- destinationName?: string | undefined;
1226
- priceInCents?: number | undefined;
1227
- }>>>;
1228
- esim: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1229
- iccid: z.ZodOptional<z.ZodString>;
1200
+ destination: string;
1201
+ destinationIso2: string;
1202
+ id: string;
1203
+ dataLimitInBytes: number;
1204
+ priceInCents: number;
1205
+ destinationName: string;
1206
+ }>>;
1207
+ esim: z.ZodLazy<z.ZodObject<{
1208
+ iccid: z.ZodString;
1230
1209
  }, "strip", z.ZodTypeAny, {
1231
- iccid?: string | undefined;
1210
+ iccid: string;
1232
1211
  }, {
1233
- iccid?: string | undefined;
1234
- }>>>;
1235
- source: z.ZodOptional<z.ZodString>;
1236
- purchaseType: z.ZodOptional<z.ZodString>;
1212
+ iccid: string;
1213
+ }>>;
1214
+ source: z.ZodString;
1215
+ purchaseType: z.ZodString;
1237
1216
  referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1238
1217
  }, "strip", z.ZodTypeAny, {
1239
- id?: string | undefined;
1240
- startDate?: string | undefined;
1241
- endDate?: string | undefined;
1242
- createdDate?: string | undefined;
1218
+ id: string;
1219
+ startDate: string;
1220
+ endDate: string;
1221
+ createdDate: string;
1222
+ package: {
1223
+ destination: string;
1224
+ destinationIso2: string;
1225
+ id: string;
1226
+ dataLimitInBytes: number;
1227
+ priceInCents: number;
1228
+ destinationName: string;
1229
+ };
1230
+ esim: {
1231
+ iccid: string;
1232
+ };
1233
+ source: string;
1234
+ purchaseType: string;
1243
1235
  startTime?: number | undefined;
1244
1236
  endTime?: number | undefined;
1245
1237
  createdAt?: number | undefined;
1246
- package?: {
1247
- id?: string | undefined;
1248
- dataLimitInBytes?: number | undefined;
1249
- destination?: string | undefined;
1250
- destinationIso2?: string | undefined;
1251
- destinationName?: string | undefined;
1252
- priceInCents?: number | undefined;
1253
- } | undefined;
1254
- esim?: {
1255
- iccid?: string | undefined;
1256
- } | undefined;
1257
- source?: string | undefined;
1258
- purchaseType?: string | undefined;
1259
1238
  referenceId?: string | null | undefined;
1260
1239
  }, {
1261
- id?: string | undefined;
1262
- startDate?: string | undefined;
1263
- endDate?: string | undefined;
1264
- createdDate?: string | undefined;
1240
+ id: string;
1241
+ startDate: string;
1242
+ endDate: string;
1243
+ createdDate: string;
1244
+ package: {
1245
+ destination: string;
1246
+ destinationIso2: string;
1247
+ id: string;
1248
+ dataLimitInBytes: number;
1249
+ priceInCents: number;
1250
+ destinationName: string;
1251
+ };
1252
+ esim: {
1253
+ iccid: string;
1254
+ };
1255
+ source: string;
1256
+ purchaseType: string;
1265
1257
  startTime?: number | undefined;
1266
1258
  endTime?: number | undefined;
1267
1259
  createdAt?: number | undefined;
1268
- package?: {
1269
- id?: string | undefined;
1270
- dataLimitInBytes?: number | undefined;
1271
- destination?: string | undefined;
1272
- destinationIso2?: string | undefined;
1273
- destinationName?: string | undefined;
1274
- priceInCents?: number | undefined;
1275
- } | undefined;
1276
- esim?: {
1277
- iccid?: string | undefined;
1278
- } | undefined;
1279
- source?: string | undefined;
1280
- purchaseType?: string | undefined;
1281
1260
  referenceId?: string | null | undefined;
1282
1261
  }>>;
1283
1262
  /**
@@ -1302,26 +1281,26 @@ type Purchases = z.infer<typeof purchases>;
1302
1281
  * The shape of the model inside the application code - what the users use
1303
1282
  */
1304
1283
  declare const package_: z.ZodLazy<z.ZodObject<{
1305
- id: z.ZodOptional<z.ZodString>;
1306
- dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
1307
- destination: z.ZodOptional<z.ZodString>;
1308
- destinationIso2: z.ZodOptional<z.ZodString>;
1309
- destinationName: z.ZodOptional<z.ZodString>;
1310
- priceInCents: z.ZodOptional<z.ZodNumber>;
1284
+ id: z.ZodString;
1285
+ dataLimitInBytes: z.ZodNumber;
1286
+ destination: z.ZodString;
1287
+ destinationIso2: z.ZodString;
1288
+ destinationName: z.ZodString;
1289
+ priceInCents: z.ZodNumber;
1311
1290
  }, "strip", z.ZodTypeAny, {
1312
- id?: string | undefined;
1313
- dataLimitInBytes?: number | undefined;
1314
- destination?: string | undefined;
1315
- destinationIso2?: string | undefined;
1316
- destinationName?: string | undefined;
1317
- priceInCents?: number | undefined;
1291
+ destination: string;
1292
+ destinationIso2: string;
1293
+ id: string;
1294
+ dataLimitInBytes: number;
1295
+ priceInCents: number;
1296
+ destinationName: string;
1318
1297
  }, {
1319
- id?: string | undefined;
1320
- dataLimitInBytes?: number | undefined;
1321
- destination?: string | undefined;
1322
- destinationIso2?: string | undefined;
1323
- destinationName?: string | undefined;
1324
- priceInCents?: number | undefined;
1298
+ destination: string;
1299
+ destinationIso2: string;
1300
+ id: string;
1301
+ dataLimitInBytes: number;
1302
+ priceInCents: number;
1303
+ destinationName: string;
1325
1304
  }>>;
1326
1305
  /**
1327
1306
  *
@@ -1339,11 +1318,11 @@ type Package_ = z.infer<typeof package_>;
1339
1318
  * The shape of the model inside the application code - what the users use
1340
1319
  */
1341
1320
  declare const purchasesEsim: z.ZodLazy<z.ZodObject<{
1342
- iccid: z.ZodOptional<z.ZodString>;
1321
+ iccid: z.ZodString;
1343
1322
  }, "strip", z.ZodTypeAny, {
1344
- iccid?: string | undefined;
1323
+ iccid: string;
1345
1324
  }, {
1346
- iccid?: string | undefined;
1325
+ iccid: string;
1347
1326
  }>>;
1348
1327
  /**
1349
1328
  *
@@ -1356,27 +1335,27 @@ type PurchasesEsim = z.infer<typeof purchasesEsim>;
1356
1335
  * The shape of the model inside the application code - what the users use
1357
1336
  */
1358
1337
  declare const createPurchaseOkResponsePurchase: z.ZodLazy<z.ZodObject<{
1359
- id: z.ZodOptional<z.ZodString>;
1360
- packageId: z.ZodOptional<z.ZodString>;
1361
- startDate: z.ZodOptional<z.ZodString>;
1362
- endDate: z.ZodOptional<z.ZodString>;
1363
- createdDate: z.ZodOptional<z.ZodString>;
1338
+ id: z.ZodString;
1339
+ packageId: z.ZodString;
1340
+ startDate: z.ZodString;
1341
+ endDate: z.ZodString;
1342
+ createdDate: z.ZodString;
1364
1343
  startTime: z.ZodOptional<z.ZodNumber>;
1365
1344
  endTime: z.ZodOptional<z.ZodNumber>;
1366
1345
  }, "strip", z.ZodTypeAny, {
1367
- id?: string | undefined;
1368
- packageId?: string | undefined;
1369
- startDate?: string | undefined;
1370
- endDate?: string | undefined;
1371
- createdDate?: string | undefined;
1346
+ id: string;
1347
+ startDate: string;
1348
+ endDate: string;
1349
+ packageId: string;
1350
+ createdDate: string;
1372
1351
  startTime?: number | undefined;
1373
1352
  endTime?: number | undefined;
1374
1353
  }, {
1375
- id?: string | undefined;
1376
- packageId?: string | undefined;
1377
- startDate?: string | undefined;
1378
- endDate?: string | undefined;
1379
- createdDate?: string | undefined;
1354
+ id: string;
1355
+ startDate: string;
1356
+ endDate: string;
1357
+ packageId: string;
1358
+ createdDate: string;
1380
1359
  startTime?: number | undefined;
1381
1360
  endTime?: number | undefined;
1382
1361
  }>>;
@@ -1397,17 +1376,17 @@ type CreatePurchaseOkResponsePurchase = z.infer<typeof createPurchaseOkResponseP
1397
1376
  * The shape of the model inside the application code - what the users use
1398
1377
  */
1399
1378
  declare const createPurchaseOkResponseProfile: z.ZodLazy<z.ZodObject<{
1400
- iccid: z.ZodOptional<z.ZodString>;
1401
- activationCode: z.ZodOptional<z.ZodString>;
1402
- manualActivationCode: z.ZodOptional<z.ZodString>;
1379
+ iccid: z.ZodString;
1380
+ activationCode: z.ZodString;
1381
+ manualActivationCode: z.ZodString;
1403
1382
  }, "strip", z.ZodTypeAny, {
1404
- iccid?: string | undefined;
1405
- activationCode?: string | undefined;
1406
- manualActivationCode?: string | undefined;
1383
+ iccid: string;
1384
+ activationCode: string;
1385
+ manualActivationCode: string;
1407
1386
  }, {
1408
- iccid?: string | undefined;
1409
- activationCode?: string | undefined;
1410
- manualActivationCode?: string | undefined;
1387
+ iccid: string;
1388
+ activationCode: string;
1389
+ manualActivationCode: string;
1411
1390
  }>>;
1412
1391
  /**
1413
1392
  *
@@ -1422,27 +1401,27 @@ type CreatePurchaseOkResponseProfile = z.infer<typeof createPurchaseOkResponsePr
1422
1401
  * The shape of the model inside the application code - what the users use
1423
1402
  */
1424
1403
  declare const topUpEsimOkResponsePurchase: z.ZodLazy<z.ZodObject<{
1425
- id: z.ZodOptional<z.ZodString>;
1426
- packageId: z.ZodOptional<z.ZodString>;
1427
- startDate: z.ZodOptional<z.ZodString>;
1428
- endDate: z.ZodOptional<z.ZodString>;
1429
- createdDate: z.ZodOptional<z.ZodString>;
1404
+ id: z.ZodString;
1405
+ packageId: z.ZodString;
1406
+ startDate: z.ZodString;
1407
+ endDate: z.ZodString;
1408
+ createdDate: z.ZodString;
1430
1409
  startTime: z.ZodOptional<z.ZodNumber>;
1431
1410
  endTime: z.ZodOptional<z.ZodNumber>;
1432
1411
  }, "strip", z.ZodTypeAny, {
1433
- id?: string | undefined;
1434
- packageId?: string | undefined;
1435
- startDate?: string | undefined;
1436
- endDate?: string | undefined;
1437
- createdDate?: string | undefined;
1412
+ id: string;
1413
+ startDate: string;
1414
+ endDate: string;
1415
+ packageId: string;
1416
+ createdDate: string;
1438
1417
  startTime?: number | undefined;
1439
1418
  endTime?: number | undefined;
1440
1419
  }, {
1441
- id?: string | undefined;
1442
- packageId?: string | undefined;
1443
- startDate?: string | undefined;
1444
- endDate?: string | undefined;
1445
- createdDate?: string | undefined;
1420
+ id: string;
1421
+ startDate: string;
1422
+ endDate: string;
1423
+ packageId: string;
1424
+ createdDate: string;
1446
1425
  startTime?: number | undefined;
1447
1426
  endTime?: number | undefined;
1448
1427
  }>>;
@@ -1463,11 +1442,11 @@ type TopUpEsimOkResponsePurchase = z.infer<typeof topUpEsimOkResponsePurchase>;
1463
1442
  * The shape of the model inside the application code - what the users use
1464
1443
  */
1465
1444
  declare const topUpEsimOkResponseProfile: z.ZodLazy<z.ZodObject<{
1466
- iccid: z.ZodOptional<z.ZodString>;
1445
+ iccid: z.ZodString;
1467
1446
  }, "strip", z.ZodTypeAny, {
1468
- iccid?: string | undefined;
1447
+ iccid: string;
1469
1448
  }, {
1470
- iccid?: string | undefined;
1449
+ iccid: string;
1471
1450
  }>>;
1472
1451
  /**
1473
1452
  *
@@ -1476,129 +1455,50 @@ declare const topUpEsimOkResponseProfile: z.ZodLazy<z.ZodObject<{
1476
1455
  */
1477
1456
  type TopUpEsimOkResponseProfile = z.infer<typeof topUpEsimOkResponseProfile>;
1478
1457
 
1479
- declare class _4 extends ThrowableError {
1480
- message: string;
1481
- protected response?: unknown;
1482
- constructor(message: string, response?: unknown);
1483
- throw(): void;
1484
- }
1485
-
1486
- declare class _5 extends ThrowableError {
1487
- message: string;
1488
- protected response?: unknown;
1489
- constructor(message: string, response?: unknown);
1490
- throw(): void;
1491
- }
1492
-
1493
- declare class _6 extends ThrowableError {
1494
- message: string;
1495
- protected response?: unknown;
1496
- constructor(message: string, response?: unknown);
1497
- throw(): void;
1498
- }
1499
-
1500
- declare class _7 extends ThrowableError {
1501
- message: string;
1502
- protected response?: unknown;
1503
- constructor(message: string, response?: unknown);
1504
- throw(): void;
1505
- }
1506
-
1507
- declare class _8 extends ThrowableError {
1508
- message: string;
1509
- protected response?: unknown;
1510
- constructor(message: string, response?: unknown);
1511
- throw(): void;
1512
- }
1513
-
1514
- declare class _9 extends ThrowableError {
1515
- message: string;
1516
- protected response?: unknown;
1517
- constructor(message: string, response?: unknown);
1518
- throw(): void;
1519
- }
1520
-
1521
- declare class _10 extends ThrowableError {
1522
- message: string;
1523
- protected response?: unknown;
1524
- constructor(message: string, response?: unknown);
1525
- throw(): void;
1526
- }
1527
-
1528
- declare class _11 extends ThrowableError {
1529
- message: string;
1530
- protected response?: unknown;
1531
- constructor(message: string, response?: unknown);
1532
- throw(): void;
1533
- }
1534
-
1535
- declare class _12 extends ThrowableError {
1536
- message: string;
1537
- protected response?: unknown;
1538
- constructor(message: string, response?: unknown);
1539
- throw(): void;
1540
- }
1541
-
1542
- declare class _13 extends ThrowableError {
1543
- message: string;
1544
- protected response?: unknown;
1545
- constructor(message: string, response?: unknown);
1546
- throw(): void;
1547
- }
1548
-
1549
- declare class _14 extends ThrowableError {
1550
- message: string;
1551
- protected response?: unknown;
1552
- constructor(message: string, response?: unknown);
1553
- throw(): void;
1554
- }
1555
-
1556
- declare class _15 extends ThrowableError {
1557
- message: string;
1558
- protected response?: unknown;
1559
- constructor(message: string, response?: unknown);
1560
- throw(): void;
1561
- }
1562
-
1563
1458
  /**
1564
1459
  * The shape of the model inside the application code - what the users use
1565
1460
  */
1566
1461
  declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
1567
- esim: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1568
- iccid: z.ZodOptional<z.ZodString>;
1569
- smdpAddress: z.ZodOptional<z.ZodString>;
1570
- manualActivationCode: z.ZodOptional<z.ZodString>;
1571
- status: z.ZodOptional<z.ZodString>;
1572
- isTopUpAllowed: z.ZodOptional<z.ZodBoolean>;
1462
+ esim: z.ZodLazy<z.ZodObject<{
1463
+ iccid: z.ZodString;
1464
+ smdpAddress: z.ZodString;
1465
+ activationCode: z.ZodString;
1466
+ manualActivationCode: z.ZodString;
1467
+ status: z.ZodString;
1468
+ isTopUpAllowed: z.ZodBoolean;
1573
1469
  }, "strip", z.ZodTypeAny, {
1574
- iccid?: string | undefined;
1575
- smdpAddress?: string | undefined;
1576
- manualActivationCode?: string | undefined;
1577
- status?: string | undefined;
1578
- isTopUpAllowed?: boolean | undefined;
1470
+ status: string;
1471
+ iccid: string;
1472
+ activationCode: string;
1473
+ manualActivationCode: string;
1474
+ smdpAddress: string;
1475
+ isTopUpAllowed: boolean;
1579
1476
  }, {
1580
- iccid?: string | undefined;
1581
- smdpAddress?: string | undefined;
1582
- manualActivationCode?: string | undefined;
1583
- status?: string | undefined;
1584
- isTopUpAllowed?: boolean | undefined;
1585
- }>>>;
1477
+ status: string;
1478
+ iccid: string;
1479
+ activationCode: string;
1480
+ manualActivationCode: string;
1481
+ smdpAddress: string;
1482
+ isTopUpAllowed: boolean;
1483
+ }>>;
1586
1484
  }, "strip", z.ZodTypeAny, {
1587
- esim?: {
1588
- iccid?: string | undefined;
1589
- smdpAddress?: string | undefined;
1590
- manualActivationCode?: string | undefined;
1591
- status?: string | undefined;
1592
- isTopUpAllowed?: boolean | undefined;
1593
- } | undefined;
1485
+ esim: {
1486
+ status: string;
1487
+ iccid: string;
1488
+ activationCode: string;
1489
+ manualActivationCode: string;
1490
+ smdpAddress: string;
1491
+ isTopUpAllowed: boolean;
1492
+ };
1594
1493
  }, {
1595
- esim?: {
1596
- iccid?: string | undefined;
1597
- smdpAddress?: string | undefined;
1598
- manualActivationCode?: string | undefined;
1599
- status?: string | undefined;
1600
- isTopUpAllowed?: boolean | undefined;
1601
- } | undefined;
1494
+ esim: {
1495
+ status: string;
1496
+ iccid: string;
1497
+ activationCode: string;
1498
+ manualActivationCode: string;
1499
+ smdpAddress: string;
1500
+ isTopUpAllowed: boolean;
1501
+ };
1602
1502
  }>>;
1603
1503
  /**
1604
1504
  *
@@ -1615,36 +1515,36 @@ interface GetEsimParams {
1615
1515
  * The shape of the model inside the application code - what the users use
1616
1516
  */
1617
1517
  declare const getEsimDeviceOkResponse: z.ZodLazy<z.ZodObject<{
1618
- device: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1619
- oem: z.ZodOptional<z.ZodString>;
1620
- hardwareName: z.ZodOptional<z.ZodString>;
1621
- hardwareModel: z.ZodOptional<z.ZodString>;
1622
- eid: z.ZodOptional<z.ZodString>;
1518
+ device: z.ZodLazy<z.ZodObject<{
1519
+ oem: z.ZodString;
1520
+ hardwareName: z.ZodString;
1521
+ hardwareModel: z.ZodString;
1522
+ eid: z.ZodString;
1623
1523
  }, "strip", z.ZodTypeAny, {
1624
- oem?: string | undefined;
1625
- hardwareName?: string | undefined;
1626
- hardwareModel?: string | undefined;
1627
- eid?: string | undefined;
1524
+ oem: string;
1525
+ hardwareName: string;
1526
+ hardwareModel: string;
1527
+ eid: string;
1628
1528
  }, {
1629
- oem?: string | undefined;
1630
- hardwareName?: string | undefined;
1631
- hardwareModel?: string | undefined;
1632
- eid?: string | undefined;
1633
- }>>>;
1529
+ oem: string;
1530
+ hardwareName: string;
1531
+ hardwareModel: string;
1532
+ eid: string;
1533
+ }>>;
1634
1534
  }, "strip", z.ZodTypeAny, {
1635
- device?: {
1636
- oem?: string | undefined;
1637
- hardwareName?: string | undefined;
1638
- hardwareModel?: string | undefined;
1639
- eid?: string | undefined;
1640
- } | undefined;
1535
+ device: {
1536
+ oem: string;
1537
+ hardwareName: string;
1538
+ hardwareModel: string;
1539
+ eid: string;
1540
+ };
1641
1541
  }, {
1642
- device?: {
1643
- oem?: string | undefined;
1644
- hardwareName?: string | undefined;
1645
- hardwareModel?: string | undefined;
1646
- eid?: string | undefined;
1647
- } | undefined;
1542
+ device: {
1543
+ oem: string;
1544
+ hardwareName: string;
1545
+ hardwareModel: string;
1546
+ eid: string;
1547
+ };
1648
1548
  }>>;
1649
1549
  /**
1650
1550
  *
@@ -1657,54 +1557,54 @@ type GetEsimDeviceOkResponse = z.infer<typeof getEsimDeviceOkResponse>;
1657
1557
  * The shape of the model inside the application code - what the users use
1658
1558
  */
1659
1559
  declare const getEsimHistoryOkResponse: z.ZodLazy<z.ZodObject<{
1660
- esim: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1661
- iccid: z.ZodOptional<z.ZodString>;
1662
- history: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
1663
- status: z.ZodOptional<z.ZodString>;
1664
- statusDate: z.ZodOptional<z.ZodString>;
1560
+ esim: z.ZodLazy<z.ZodObject<{
1561
+ iccid: z.ZodString;
1562
+ history: z.ZodArray<z.ZodLazy<z.ZodObject<{
1563
+ status: z.ZodString;
1564
+ statusDate: z.ZodString;
1665
1565
  date: z.ZodOptional<z.ZodNumber>;
1666
1566
  }, "strip", z.ZodTypeAny, {
1667
- status?: string | undefined;
1668
- statusDate?: string | undefined;
1567
+ status: string;
1568
+ statusDate: string;
1669
1569
  date?: number | undefined;
1670
1570
  }, {
1671
- status?: string | undefined;
1672
- statusDate?: string | undefined;
1571
+ status: string;
1572
+ statusDate: string;
1673
1573
  date?: number | undefined;
1674
- }>>, "many">>;
1574
+ }>>, "many">;
1675
1575
  }, "strip", z.ZodTypeAny, {
1676
- iccid?: string | undefined;
1677
- history?: {
1678
- status?: string | undefined;
1679
- statusDate?: string | undefined;
1576
+ iccid: string;
1577
+ history: {
1578
+ status: string;
1579
+ statusDate: string;
1680
1580
  date?: number | undefined;
1681
- }[] | undefined;
1581
+ }[];
1682
1582
  }, {
1683
- iccid?: string | undefined;
1684
- history?: {
1685
- status?: string | undefined;
1686
- statusDate?: string | undefined;
1583
+ iccid: string;
1584
+ history: {
1585
+ status: string;
1586
+ statusDate: string;
1687
1587
  date?: number | undefined;
1688
- }[] | undefined;
1689
- }>>>;
1588
+ }[];
1589
+ }>>;
1690
1590
  }, "strip", z.ZodTypeAny, {
1691
- esim?: {
1692
- iccid?: string | undefined;
1693
- history?: {
1694
- status?: string | undefined;
1695
- statusDate?: string | undefined;
1591
+ esim: {
1592
+ iccid: string;
1593
+ history: {
1594
+ status: string;
1595
+ statusDate: string;
1696
1596
  date?: number | undefined;
1697
- }[] | undefined;
1698
- } | undefined;
1597
+ }[];
1598
+ };
1699
1599
  }, {
1700
- esim?: {
1701
- iccid?: string | undefined;
1702
- history?: {
1703
- status?: string | undefined;
1704
- statusDate?: string | undefined;
1600
+ esim: {
1601
+ iccid: string;
1602
+ history: {
1603
+ status: string;
1604
+ statusDate: string;
1705
1605
  date?: number | undefined;
1706
- }[] | undefined;
1707
- } | undefined;
1606
+ }[];
1607
+ };
1708
1608
  }>>;
1709
1609
  /**
1710
1610
  *
@@ -1713,46 +1613,9 @@ declare const getEsimHistoryOkResponse: z.ZodLazy<z.ZodObject<{
1713
1613
  */
1714
1614
  type GetEsimHistoryOkResponse = z.infer<typeof getEsimHistoryOkResponse>;
1715
1615
 
1716
- /**
1717
- * The shape of the model inside the application code - what the users use
1718
- */
1719
- declare const getEsimMacOkResponse: z.ZodLazy<z.ZodObject<{
1720
- esim: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1721
- iccid: z.ZodOptional<z.ZodString>;
1722
- smdpAddress: z.ZodOptional<z.ZodString>;
1723
- manualActivationCode: z.ZodOptional<z.ZodString>;
1724
- }, "strip", z.ZodTypeAny, {
1725
- iccid?: string | undefined;
1726
- smdpAddress?: string | undefined;
1727
- manualActivationCode?: string | undefined;
1728
- }, {
1729
- iccid?: string | undefined;
1730
- smdpAddress?: string | undefined;
1731
- manualActivationCode?: string | undefined;
1732
- }>>>;
1733
- }, "strip", z.ZodTypeAny, {
1734
- esim?: {
1735
- iccid?: string | undefined;
1736
- smdpAddress?: string | undefined;
1737
- manualActivationCode?: string | undefined;
1738
- } | undefined;
1739
- }, {
1740
- esim?: {
1741
- iccid?: string | undefined;
1742
- smdpAddress?: string | undefined;
1743
- manualActivationCode?: string | undefined;
1744
- } | undefined;
1745
- }>>;
1746
- /**
1747
- *
1748
- * @typedef {GetEsimMacOkResponse} getEsimMacOkResponse
1749
- * @property {GetEsimMacOkResponseEsim}
1750
- */
1751
- type GetEsimMacOkResponse = z.infer<typeof getEsimMacOkResponse>;
1752
-
1753
1616
  declare class ESimService extends BaseService {
1754
1617
  /**
1755
- * Get eSIM Status
1618
+ * Get eSIM
1756
1619
  * @param {string} iccid - ID of the eSIM
1757
1620
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
1758
1621
  * @returns {Promise<HttpResponse<GetEsimOkResponse>>} Successful Response
@@ -1772,42 +1635,39 @@ declare class ESimService extends BaseService {
1772
1635
  * @returns {Promise<HttpResponse<GetEsimHistoryOkResponse>>} Successful Response
1773
1636
  */
1774
1637
  getEsimHistory(iccid: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimHistoryOkResponse>>;
1775
- /**
1776
- * Get eSIM MAC
1777
- * @param {string} iccid - ID of the eSIM
1778
- * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
1779
- * @returns {Promise<HttpResponse<GetEsimMacOkResponse>>} Successful Response
1780
- */
1781
- getEsimMac(iccid: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimMacOkResponse>>;
1782
1638
  }
1783
1639
 
1784
1640
  /**
1785
1641
  * The shape of the model inside the application code - what the users use
1786
1642
  */
1787
1643
  declare const getEsimOkResponseEsim: z.ZodLazy<z.ZodObject<{
1788
- iccid: z.ZodOptional<z.ZodString>;
1789
- smdpAddress: z.ZodOptional<z.ZodString>;
1790
- manualActivationCode: z.ZodOptional<z.ZodString>;
1791
- status: z.ZodOptional<z.ZodString>;
1792
- isTopUpAllowed: z.ZodOptional<z.ZodBoolean>;
1644
+ iccid: z.ZodString;
1645
+ smdpAddress: z.ZodString;
1646
+ activationCode: z.ZodString;
1647
+ manualActivationCode: z.ZodString;
1648
+ status: z.ZodString;
1649
+ isTopUpAllowed: z.ZodBoolean;
1793
1650
  }, "strip", z.ZodTypeAny, {
1794
- iccid?: string | undefined;
1795
- smdpAddress?: string | undefined;
1796
- manualActivationCode?: string | undefined;
1797
- status?: string | undefined;
1798
- isTopUpAllowed?: boolean | undefined;
1651
+ status: string;
1652
+ iccid: string;
1653
+ activationCode: string;
1654
+ manualActivationCode: string;
1655
+ smdpAddress: string;
1656
+ isTopUpAllowed: boolean;
1799
1657
  }, {
1800
- iccid?: string | undefined;
1801
- smdpAddress?: string | undefined;
1802
- manualActivationCode?: string | undefined;
1803
- status?: string | undefined;
1804
- isTopUpAllowed?: boolean | undefined;
1658
+ status: string;
1659
+ iccid: string;
1660
+ activationCode: string;
1661
+ manualActivationCode: string;
1662
+ smdpAddress: string;
1663
+ isTopUpAllowed: boolean;
1805
1664
  }>>;
1806
1665
  /**
1807
1666
  *
1808
1667
  * @typedef {GetEsimOkResponseEsim} getEsimOkResponseEsim
1809
1668
  * @property {string} - ID of the eSIM
1810
1669
  * @property {string} - SM-DP+ Address
1670
+ * @property {string} - QR Code of the eSIM as base64
1811
1671
  * @property {string} - The manual activation code
1812
1672
  * @property {string} - Status of the eSIM, possible values are 'RELEASED', 'DOWNLOADED', 'INSTALLED', 'ENABLED', 'DELETED', or 'ERROR'
1813
1673
  * @property {boolean} - Indicates whether the eSIM is currently eligible for a top-up. This flag should be checked before attempting a top-up request.
@@ -1818,20 +1678,20 @@ type GetEsimOkResponseEsim = z.infer<typeof getEsimOkResponseEsim>;
1818
1678
  * The shape of the model inside the application code - what the users use
1819
1679
  */
1820
1680
  declare const device: z.ZodLazy<z.ZodObject<{
1821
- oem: z.ZodOptional<z.ZodString>;
1822
- hardwareName: z.ZodOptional<z.ZodString>;
1823
- hardwareModel: z.ZodOptional<z.ZodString>;
1824
- eid: z.ZodOptional<z.ZodString>;
1681
+ oem: z.ZodString;
1682
+ hardwareName: z.ZodString;
1683
+ hardwareModel: z.ZodString;
1684
+ eid: z.ZodString;
1825
1685
  }, "strip", z.ZodTypeAny, {
1826
- oem?: string | undefined;
1827
- hardwareName?: string | undefined;
1828
- hardwareModel?: string | undefined;
1829
- eid?: string | undefined;
1686
+ oem: string;
1687
+ hardwareName: string;
1688
+ hardwareModel: string;
1689
+ eid: string;
1830
1690
  }, {
1831
- oem?: string | undefined;
1832
- hardwareName?: string | undefined;
1833
- hardwareModel?: string | undefined;
1834
- eid?: string | undefined;
1691
+ oem: string;
1692
+ hardwareName: string;
1693
+ hardwareModel: string;
1694
+ eid: string;
1835
1695
  }>>;
1836
1696
  /**
1837
1697
  *
@@ -1847,34 +1707,34 @@ type Device = z.infer<typeof device>;
1847
1707
  * The shape of the model inside the application code - what the users use
1848
1708
  */
1849
1709
  declare const getEsimHistoryOkResponseEsim: z.ZodLazy<z.ZodObject<{
1850
- iccid: z.ZodOptional<z.ZodString>;
1851
- history: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
1852
- status: z.ZodOptional<z.ZodString>;
1853
- statusDate: z.ZodOptional<z.ZodString>;
1710
+ iccid: z.ZodString;
1711
+ history: z.ZodArray<z.ZodLazy<z.ZodObject<{
1712
+ status: z.ZodString;
1713
+ statusDate: z.ZodString;
1854
1714
  date: z.ZodOptional<z.ZodNumber>;
1855
1715
  }, "strip", z.ZodTypeAny, {
1856
- status?: string | undefined;
1857
- statusDate?: string | undefined;
1716
+ status: string;
1717
+ statusDate: string;
1858
1718
  date?: number | undefined;
1859
1719
  }, {
1860
- status?: string | undefined;
1861
- statusDate?: string | undefined;
1720
+ status: string;
1721
+ statusDate: string;
1862
1722
  date?: number | undefined;
1863
- }>>, "many">>;
1723
+ }>>, "many">;
1864
1724
  }, "strip", z.ZodTypeAny, {
1865
- iccid?: string | undefined;
1866
- history?: {
1867
- status?: string | undefined;
1868
- statusDate?: string | undefined;
1725
+ iccid: string;
1726
+ history: {
1727
+ status: string;
1728
+ statusDate: string;
1869
1729
  date?: number | undefined;
1870
- }[] | undefined;
1730
+ }[];
1871
1731
  }, {
1872
- iccid?: string | undefined;
1873
- history?: {
1874
- status?: string | undefined;
1875
- statusDate?: string | undefined;
1732
+ iccid: string;
1733
+ history: {
1734
+ status: string;
1735
+ statusDate: string;
1876
1736
  date?: number | undefined;
1877
- }[] | undefined;
1737
+ }[];
1878
1738
  }>>;
1879
1739
  /**
1880
1740
  *
@@ -1888,16 +1748,16 @@ type GetEsimHistoryOkResponseEsim = z.infer<typeof getEsimHistoryOkResponseEsim>
1888
1748
  * The shape of the model inside the application code - what the users use
1889
1749
  */
1890
1750
  declare const history: z.ZodLazy<z.ZodObject<{
1891
- status: z.ZodOptional<z.ZodString>;
1892
- statusDate: z.ZodOptional<z.ZodString>;
1751
+ status: z.ZodString;
1752
+ statusDate: z.ZodString;
1893
1753
  date: z.ZodOptional<z.ZodNumber>;
1894
1754
  }, "strip", z.ZodTypeAny, {
1895
- status?: string | undefined;
1896
- statusDate?: string | undefined;
1755
+ status: string;
1756
+ statusDate: string;
1897
1757
  date?: number | undefined;
1898
1758
  }, {
1899
- status?: string | undefined;
1900
- statusDate?: string | undefined;
1759
+ status: string;
1760
+ statusDate: string;
1901
1761
  date?: number | undefined;
1902
1762
  }>>;
1903
1763
  /**
@@ -1909,96 +1769,15 @@ declare const history: z.ZodLazy<z.ZodObject<{
1909
1769
  */
1910
1770
  type History = z.infer<typeof history>;
1911
1771
 
1912
- /**
1913
- * The shape of the model inside the application code - what the users use
1914
- */
1915
- declare const getEsimMacOkResponseEsim: z.ZodLazy<z.ZodObject<{
1916
- iccid: z.ZodOptional<z.ZodString>;
1917
- smdpAddress: z.ZodOptional<z.ZodString>;
1918
- manualActivationCode: z.ZodOptional<z.ZodString>;
1919
- }, "strip", z.ZodTypeAny, {
1920
- iccid?: string | undefined;
1921
- smdpAddress?: string | undefined;
1922
- manualActivationCode?: string | undefined;
1923
- }, {
1924
- iccid?: string | undefined;
1925
- smdpAddress?: string | undefined;
1926
- manualActivationCode?: string | undefined;
1927
- }>>;
1928
- /**
1929
- *
1930
- * @typedef {GetEsimMacOkResponseEsim} getEsimMacOkResponseEsim
1931
- * @property {string} - ID of the eSIM
1932
- * @property {string} - SM-DP+ Address
1933
- * @property {string} - The manual activation code
1934
- */
1935
- type GetEsimMacOkResponseEsim = z.infer<typeof getEsimMacOkResponseEsim>;
1936
-
1937
- declare class _16 extends ThrowableError {
1938
- message: string;
1939
- protected response?: unknown;
1940
- constructor(message: string, response?: unknown);
1941
- throw(): void;
1942
- }
1943
-
1944
- declare class _17 extends ThrowableError {
1945
- message: string;
1946
- protected response?: unknown;
1947
- constructor(message: string, response?: unknown);
1948
- throw(): void;
1949
- }
1950
-
1951
- declare class _18 extends ThrowableError {
1952
- message: string;
1953
- protected response?: unknown;
1954
- constructor(message: string, response?: unknown);
1955
- throw(): void;
1956
- }
1957
-
1958
- declare class _19 extends ThrowableError {
1959
- message: string;
1960
- protected response?: unknown;
1961
- constructor(message: string, response?: unknown);
1962
- throw(): void;
1963
- }
1964
-
1965
- declare class _20 extends ThrowableError {
1966
- message: string;
1967
- protected response?: unknown;
1968
- constructor(message: string, response?: unknown);
1969
- throw(): void;
1970
- }
1971
-
1972
- declare class _21 extends ThrowableError {
1973
- message: string;
1974
- protected response?: unknown;
1975
- constructor(message: string, response?: unknown);
1976
- throw(): void;
1977
- }
1978
-
1979
- declare class _22 extends ThrowableError {
1980
- message: string;
1981
- protected response?: unknown;
1982
- constructor(message: string, response?: unknown);
1983
- throw(): void;
1984
- }
1985
-
1986
- declare class _23 extends ThrowableError {
1987
- message: string;
1988
- protected response?: unknown;
1989
- constructor(message: string, response?: unknown);
1990
- throw(): void;
1991
- }
1992
-
1993
1772
  /**
1994
1773
  * The shape of the model inside the application code - what the users use
1995
1774
  */
1996
1775
  declare const tokenOkResponse: z.ZodLazy<z.ZodObject<{
1997
- token: z.ZodOptional<z.ZodString>;
1776
+ token: z.ZodString;
1998
1777
  }, "strip", z.ZodTypeAny, {
1999
- token?: string | undefined;
1778
+ token: string;
2000
1779
  }, {
2001
- token?: string | undefined;
1780
+ token: string;
2002
1781
  }>>;
2003
1782
  /**
2004
1783
  *
@@ -2016,20 +1795,6 @@ declare class IFrameService extends BaseService {
2016
1795
  token(requestConfig?: RequestConfig): Promise<HttpResponse<TokenOkResponse>>;
2017
1796
  }
2018
1797
 
2019
- declare class _24 extends ThrowableError {
2020
- message: string;
2021
- protected response?: unknown;
2022
- constructor(message: string, response?: unknown);
2023
- throw(): void;
2024
- }
2025
-
2026
- declare class _25 extends ThrowableError {
2027
- message: string;
2028
- protected response?: unknown;
2029
- constructor(message: string, response?: unknown);
2030
- throw(): void;
2031
- }
2032
-
2033
1798
  /**
2034
1799
  * The shape of the model inside the application code - what the users use
2035
1800
  */
@@ -2093,6 +1858,20 @@ declare enum GrantType {
2093
1858
  CLIENT_CREDENTIALS = "client_credentials"
2094
1859
  }
2095
1860
 
1861
+ declare class BadRequest extends ThrowableError {
1862
+ message: string;
1863
+ protected response?: unknown;
1864
+ constructor(message: string, response?: unknown);
1865
+ throw(): void;
1866
+ }
1867
+
1868
+ declare class Unauthorized extends ThrowableError {
1869
+ message: string;
1870
+ protected response?: unknown;
1871
+ constructor(message: string, response?: unknown);
1872
+ throw(): void;
1873
+ }
1874
+
2096
1875
  declare class Celitech {
2097
1876
  config: SdkConfig;
2098
1877
  readonly destinations: DestinationsService;
@@ -2111,4 +1890,4 @@ declare class Celitech {
2111
1890
  set accessToken(accessToken: string);
2112
1891
  }
2113
1892
 
2114
- export { Celitech, CreatePurchaseOkResponse, CreatePurchaseOkResponseProfile, CreatePurchaseOkResponsePurchase, CreatePurchaseRequest, CreatePurchaseV2OkResponse, CreatePurchaseV2OkResponseProfile, CreatePurchaseV2OkResponsePurchase, CreatePurchaseV2Request, Destinations, DestinationsService, Device, ESimService, EditPurchaseOkResponse, EditPurchaseRequest, Environment, GetAccessTokenOkResponse, GetAccessTokenRequest, GetEsimDeviceOkResponse, GetEsimHistoryOkResponse, GetEsimHistoryOkResponseEsim, GetEsimMacOkResponse, GetEsimMacOkResponseEsim, GetEsimOkResponse, GetEsimOkResponseEsim, GetPurchaseConsumptionOkResponse, GrantType, History, HttpError, HttpMetadata, HttpMethod, HttpResponse, IFrameService, ListDestinationsOkResponse, ListPackagesOkResponse, ListPurchasesOkResponse, OAuthService, Package_, Packages, PackagesService, Purchases, PurchasesEsim, PurchasesService, RequestConfig, RetryOptions, SdkConfig, TokenOkResponse, TopUpEsimOkResponse, TopUpEsimOkResponseProfile, TopUpEsimOkResponsePurchase, TopUpEsimRequest, ValidationOptions, _1, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _2, _20, _21, _22, _23, _24, _25, _3, _4, _5, _6, _7, _8, _9, __ };
1893
+ export { BadRequest, Celitech, CreatePurchaseOkResponse, CreatePurchaseOkResponseProfile, CreatePurchaseOkResponsePurchase, CreatePurchaseRequest, CreatePurchaseV2OkResponse, CreatePurchaseV2OkResponseProfile, CreatePurchaseV2OkResponsePurchase, CreatePurchaseV2Request, Destinations, DestinationsService, Device, ESimService, EditPurchaseOkResponse, EditPurchaseRequest, Environment, GetAccessTokenOkResponse, GetAccessTokenRequest, GetEsimDeviceOkResponse, GetEsimHistoryOkResponse, GetEsimHistoryOkResponseEsim, GetEsimOkResponse, GetEsimOkResponseEsim, GetPurchaseConsumptionOkResponse, GrantType, History, HttpError, HttpMetadata, HttpMethod, HttpResponse, IFrameService, ListDestinationsOkResponse, ListPackagesOkResponse, ListPurchasesOkResponse, OAuthService, Package_, Packages, PackagesService, Purchases, PurchasesEsim, PurchasesService, RequestConfig, RetryOptions, SdkConfig, TokenOkResponse, TopUpEsimOkResponse, TopUpEsimOkResponseProfile, TopUpEsimOkResponsePurchase, TopUpEsimRequest, Unauthorized, ValidationOptions };