@tinkerlandai/indiana-sdk 0.8.1 → 0.8.4

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +44 -3
  3. package/README.zh-CN.md +8 -0
  4. package/dist/{ai-usage-JoM7ZWk-.d.ts → ai-usage-DUlre7JC.d.ts} +1 -1
  5. package/dist/{api-JVC7x2FV.d.ts → api-XDc4pRlN.d.ts} +444 -17
  6. package/dist/chunk-3F2NQOR2.js +1 -0
  7. package/dist/chunk-663UOBHL.js +1 -0
  8. package/dist/chunk-BUDTHBFF.js +173 -0
  9. package/dist/chunk-EJTBSGLV.js +10 -0
  10. package/dist/{chunk-USLZX2ZA.js → chunk-F2GOIBDQ.js} +1 -1
  11. package/dist/{chunk-YWFNWK7C.js → chunk-GRLMT5PR.js} +1 -1
  12. package/dist/chunk-LMR2TM3X.js +1 -0
  13. package/dist/chunk-OBYJWIRB.js +1 -0
  14. package/dist/chunk-RZBZ6LCT.js +4 -0
  15. package/dist/{chunk-6HG7U6AU.js → chunk-SOQO2RDZ.js} +1 -1
  16. package/dist/chunk-SSHUBTT3.js +1 -0
  17. package/dist/chunk-SSLZKIIU.js +1 -0
  18. package/dist/{chunk-KSNOXNTC.js → chunk-VVV3JNS3.js} +1 -1
  19. package/dist/{configuration-sync-BexM2qbg.d.ts → configuration-sync-Ce3dShy7.d.ts} +8 -3
  20. package/dist/content-2FCUY6XX.js +1 -0
  21. package/dist/{customer-page-WUQVK_tp.d.ts → customer-page-9B97Qdt_.d.ts} +21 -1
  22. package/dist/{errors-DrdTlPwf.d.ts → errors-C8lRYZ0n.d.ts} +48 -1
  23. package/dist/{funnel-local-client-D1Fe7CZ6.d.ts → funnel-local-client-CUGavICI.d.ts} +69 -40
  24. package/dist/{funnel-runtime-host-CAMI6BJS.js → funnel-runtime-host-ENRTSXPJ.js} +1 -1
  25. package/dist/index.d.ts +175 -35
  26. package/dist/index.js +1 -1
  27. package/dist/native-shell.js +1 -1
  28. package/dist/openrouter.d.ts +3 -3
  29. package/dist/openrouter.js +1 -1
  30. package/dist/page.d.ts +2 -2
  31. package/dist/page.js +1 -1
  32. package/dist/paywall-734GWAS4.js +1 -0
  33. package/dist/popup.d.ts +15 -5
  34. package/dist/popup.js +1 -1
  35. package/dist/react-native.d.ts +97 -4
  36. package/dist/react-native.js +1 -1
  37. package/dist/screen-renderer-DLXDQQKK.js +1 -0
  38. package/dist/server.d.ts +18 -15
  39. package/dist/server.js +1 -1
  40. package/dist/src-CLEFCTAU.js +1 -0
  41. package/dist/visual.js +2 -2
  42. package/package.json +1 -1
  43. package/dist/chunk-3BQFJANQ.js +0 -1
  44. package/dist/chunk-56AYS7RS.js +0 -1
  45. package/dist/chunk-AE4CUTUE.js +0 -1
  46. package/dist/chunk-AEUFCOFG.js +0 -1
  47. package/dist/chunk-F767CM3T.js +0 -7
  48. package/dist/chunk-X747SY26.js +0 -4
  49. package/dist/chunk-X7JJAEQQ.js +0 -350
  50. package/dist/content-YNL2CRJZ.js +0 -1
  51. package/dist/paywall-MXRMMF3R.js +0 -1
  52. package/dist/screen-renderer-P7MLBHY5.js +0 -1
  53. package/dist/src-G7UQB3QE.js +0 -1
  54. package/dist/{screen-i6eHL11m.d.ts → screen-BpAejkn0.d.ts} +1 -1
@@ -1,4 +1,4 @@
1
- import { S as StackNode } from './screen-i6eHL11m.js';
1
+ import { S as StackNode } from './screen-BpAejkn0.js';
2
2
  import { z } from 'zod/v4';
3
3
  import { z as z$1 } from 'zod';
4
4
 
@@ -597,6 +597,371 @@ type InvoiceModeParamsInput = {
597
597
  };
598
598
 
599
599
  declare const apiOperations: {
600
+ readonly sendMessage: {
601
+ readonly method: "POST";
602
+ readonly path: "messaging/send";
603
+ readonly permission: "messaging:write";
604
+ readonly audience: "server";
605
+ readonly request: z$1.ZodObject<{
606
+ requestId: z$1.ZodUUID;
607
+ customerId: z$1.ZodUUID;
608
+ connectionId: z$1.ZodOptional<z$1.ZodUUID>;
609
+ message: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
610
+ channel: z$1.ZodLiteral<"email">;
611
+ content: z$1.ZodObject<{
612
+ subject: z$1.ZodString;
613
+ html: z$1.ZodOptional<z$1.ZodString>;
614
+ text: z$1.ZodOptional<z$1.ZodString>;
615
+ }, z$1.core.$strict>;
616
+ }, z$1.core.$strict>, z$1.ZodObject<{
617
+ channel: z$1.ZodLiteral<"sms">;
618
+ content: z$1.ZodObject<{
619
+ body: z$1.ZodString;
620
+ }, z$1.core.$strict>;
621
+ }, z$1.core.$strict>, z$1.ZodObject<{
622
+ channel: z$1.ZodLiteral<"voice">;
623
+ content: z$1.ZodObject<{
624
+ text: z$1.ZodString;
625
+ language: z$1.ZodString;
626
+ maxDurationSeconds: z$1.ZodNumber;
627
+ }, z$1.core.$strict>;
628
+ }, z$1.core.$strict>, z$1.ZodObject<{
629
+ channel: z$1.ZodLiteral<"push">;
630
+ content: z$1.ZodObject<{
631
+ title: z$1.ZodString;
632
+ body: z$1.ZodString;
633
+ url: z$1.ZodOptional<z$1.ZodURL>;
634
+ data: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
635
+ }, z$1.core.$strict>;
636
+ }, z$1.core.$strict>], "channel">;
637
+ expiresAt: z$1.ZodISODateTime;
638
+ }, z$1.core.$strict>;
639
+ readonly response: z$1.ZodObject<{
640
+ requestId: z$1.ZodUUID;
641
+ scope: z$1.ZodObject<{
642
+ projectId: z$1.ZodString;
643
+ environment: z$1.ZodEnum<{
644
+ sandbox: "sandbox";
645
+ live: "live";
646
+ }>;
647
+ }, z$1.core.$strict>;
648
+ message: z$1.ZodObject<{
649
+ messageId: z$1.ZodUUID;
650
+ channel: z$1.ZodEnum<{
651
+ email: "email";
652
+ sms: "sms";
653
+ voice: "voice";
654
+ push: "push";
655
+ }>;
656
+ acceptedAt: z$1.ZodISODateTime;
657
+ status: z$1.ZodEnum<{
658
+ canceled: "canceled";
659
+ completed: "completed";
660
+ accepted: "accepted";
661
+ sending: "sending";
662
+ }>;
663
+ replayed: z$1.ZodBoolean;
664
+ }, z$1.core.$strip>;
665
+ }, z$1.core.$strict>;
666
+ };
667
+ readonly readMessage: {
668
+ readonly method: "POST";
669
+ readonly path: "messaging/read";
670
+ readonly permission: "messaging:write";
671
+ readonly audience: "server";
672
+ readonly request: z$1.ZodObject<{
673
+ messageId: z$1.ZodUUID;
674
+ }, z$1.core.$strict>;
675
+ readonly response: z$1.ZodObject<{
676
+ requestId: z$1.ZodUUID;
677
+ scope: z$1.ZodObject<{
678
+ projectId: z$1.ZodString;
679
+ environment: z$1.ZodEnum<{
680
+ sandbox: "sandbox";
681
+ live: "live";
682
+ }>;
683
+ }, z$1.core.$strict>;
684
+ message: z$1.ZodObject<{
685
+ id: z$1.ZodUUID;
686
+ channel: z$1.ZodEnum<{
687
+ email: "email";
688
+ sms: "sms";
689
+ voice: "voice";
690
+ push: "push";
691
+ }>;
692
+ status: z$1.ZodEnum<{
693
+ canceled: "canceled";
694
+ completed: "completed";
695
+ accepted: "accepted";
696
+ sending: "sending";
697
+ }>;
698
+ deliveries: z$1.ZodArray<z$1.ZodObject<{
699
+ id: z$1.ZodUUID;
700
+ status: z$1.ZodEnum<{
701
+ unknown: "unknown";
702
+ canceled: "canceled";
703
+ failed: "failed";
704
+ accepted: "accepted";
705
+ queued: "queued";
706
+ leased: "leased";
707
+ dispatching: "dispatching";
708
+ retry: "retry";
709
+ skipped: "skipped";
710
+ }>;
711
+ attempts: z$1.ZodNumber;
712
+ receipts: z$1.ZodArray<z$1.ZodObject<{
713
+ kind: z$1.ZodEnum<{
714
+ failed: "failed";
715
+ completed: "completed";
716
+ accepted: "accepted";
717
+ sent: "sent";
718
+ delivered: "delivered";
719
+ delayed: "delayed";
720
+ bounced: "bounced";
721
+ complained: "complained";
722
+ unsubscribed: "unsubscribed";
723
+ opened: "opened";
724
+ clicked: "clicked";
725
+ ringing: "ringing";
726
+ answered: "answered";
727
+ busy: "busy";
728
+ no_answer: "no_answer";
729
+ cost_finalized: "cost_finalized";
730
+ }>;
731
+ occurredAt: z$1.ZodNullable<z$1.ZodISODateTime>;
732
+ }, z$1.core.$strip>>;
733
+ }, z$1.core.$strip>>;
734
+ }, z$1.core.$strip>;
735
+ }, z$1.core.$strict>;
736
+ };
737
+ readonly bindPushInstallation: {
738
+ readonly method: "POST";
739
+ readonly path: "push/installations/bind";
740
+ readonly permission: "messaging:write";
741
+ readonly audience: "customer";
742
+ readonly request: z$1.ZodObject<{
743
+ installationId: z$1.ZodUUID;
744
+ publicKey: z$1.ZodString;
745
+ issuedAt: z$1.ZodISODateTime;
746
+ signature: z$1.ZodString;
747
+ sequence: z$1.ZodNumber;
748
+ platform: z$1.ZodEnum<{
749
+ ios: "ios";
750
+ android: "android";
751
+ }>;
752
+ credentialDigest: z$1.ZodString;
753
+ }, z$1.core.$strict>;
754
+ readonly response: z$1.ZodObject<{
755
+ requestId: z$1.ZodUUID;
756
+ scope: z$1.ZodObject<{
757
+ projectId: z$1.ZodString;
758
+ environment: z$1.ZodEnum<{
759
+ sandbox: "sandbox";
760
+ live: "live";
761
+ }>;
762
+ }, z$1.core.$strict>;
763
+ installation: z$1.ZodObject<{
764
+ installationId: z$1.ZodUUID;
765
+ bound: z$1.ZodBoolean;
766
+ identitySeq: z$1.ZodNumber;
767
+ bindingGeneration: z$1.ZodNumber;
768
+ addressSeq: z$1.ZodNumber;
769
+ addressRevision: z$1.ZodNumber;
770
+ connectionId: z$1.ZodNullable<z$1.ZodUUID>;
771
+ addressStatus: z$1.ZodNullable<z$1.ZodEnum<{
772
+ active: "active";
773
+ invalid: "invalid";
774
+ }>>;
775
+ permission: z$1.ZodEnum<{
776
+ unknown: "unknown";
777
+ denied: "denied";
778
+ provisional: "provisional";
779
+ granted: "granted";
780
+ }>;
781
+ }, z$1.core.$strict>;
782
+ }, z$1.core.$strict>;
783
+ };
784
+ readonly readPushInstallation: {
785
+ readonly method: "POST";
786
+ readonly path: "push/installations/read";
787
+ readonly permission: "messaging:write";
788
+ readonly audience: "customer";
789
+ readonly request: z$1.ZodObject<{
790
+ installationId: z$1.ZodUUID;
791
+ publicKey: z$1.ZodString;
792
+ issuedAt: z$1.ZodISODateTime;
793
+ signature: z$1.ZodString;
794
+ credentialDigest: z$1.ZodString;
795
+ }, z$1.core.$strict>;
796
+ readonly response: z$1.ZodObject<{
797
+ requestId: z$1.ZodUUID;
798
+ scope: z$1.ZodObject<{
799
+ projectId: z$1.ZodString;
800
+ environment: z$1.ZodEnum<{
801
+ sandbox: "sandbox";
802
+ live: "live";
803
+ }>;
804
+ }, z$1.core.$strict>;
805
+ installation: z$1.ZodObject<{
806
+ installationId: z$1.ZodUUID;
807
+ bound: z$1.ZodBoolean;
808
+ identitySeq: z$1.ZodNumber;
809
+ bindingGeneration: z$1.ZodNumber;
810
+ addressSeq: z$1.ZodNumber;
811
+ addressRevision: z$1.ZodNumber;
812
+ connectionId: z$1.ZodNullable<z$1.ZodUUID>;
813
+ addressStatus: z$1.ZodNullable<z$1.ZodEnum<{
814
+ active: "active";
815
+ invalid: "invalid";
816
+ }>>;
817
+ permission: z$1.ZodEnum<{
818
+ unknown: "unknown";
819
+ denied: "denied";
820
+ provisional: "provisional";
821
+ granted: "granted";
822
+ }>;
823
+ }, z$1.core.$strict>;
824
+ }, z$1.core.$strict>;
825
+ };
826
+ readonly updatePushAddress: {
827
+ readonly method: "POST";
828
+ readonly path: "push/installations/address";
829
+ readonly permission: "messaging:write";
830
+ readonly audience: "customer";
831
+ readonly request: z$1.ZodObject<{
832
+ installationId: z$1.ZodUUID;
833
+ publicKey: z$1.ZodString;
834
+ issuedAt: z$1.ZodISODateTime;
835
+ signature: z$1.ZodString;
836
+ sequence: z$1.ZodNumber;
837
+ credentialDigest: z$1.ZodString;
838
+ connectionId: z$1.ZodNullable<z$1.ZodUUID>;
839
+ kind: z$1.ZodNullable<z$1.ZodEnum<{
840
+ fcm_token: "fcm_token";
841
+ apns_token: "apns_token";
842
+ }>>;
843
+ token: z$1.ZodNullable<z$1.ZodString>;
844
+ permission: z$1.ZodEnum<{
845
+ unknown: "unknown";
846
+ denied: "denied";
847
+ provisional: "provisional";
848
+ granted: "granted";
849
+ }>;
850
+ }, z$1.core.$strict>;
851
+ readonly response: z$1.ZodObject<{
852
+ requestId: z$1.ZodUUID;
853
+ scope: z$1.ZodObject<{
854
+ projectId: z$1.ZodString;
855
+ environment: z$1.ZodEnum<{
856
+ sandbox: "sandbox";
857
+ live: "live";
858
+ }>;
859
+ }, z$1.core.$strict>;
860
+ installation: z$1.ZodObject<{
861
+ installationId: z$1.ZodUUID;
862
+ bound: z$1.ZodBoolean;
863
+ identitySeq: z$1.ZodNumber;
864
+ bindingGeneration: z$1.ZodNumber;
865
+ addressSeq: z$1.ZodNumber;
866
+ addressRevision: z$1.ZodNumber;
867
+ connectionId: z$1.ZodNullable<z$1.ZodUUID>;
868
+ addressStatus: z$1.ZodNullable<z$1.ZodEnum<{
869
+ active: "active";
870
+ invalid: "invalid";
871
+ }>>;
872
+ permission: z$1.ZodEnum<{
873
+ unknown: "unknown";
874
+ denied: "denied";
875
+ provisional: "provisional";
876
+ granted: "granted";
877
+ }>;
878
+ }, z$1.core.$strict>;
879
+ }, z$1.core.$strict>;
880
+ };
881
+ readonly readMessagingPreference: {
882
+ readonly method: "POST";
883
+ readonly path: "messaging/preferences/read";
884
+ readonly permission: "messaging:write";
885
+ readonly audience: "customer";
886
+ readonly request: z$1.ZodObject<{
887
+ channel: z$1.ZodEnum<{
888
+ email: "email";
889
+ sms: "sms";
890
+ voice: "voice";
891
+ push: "push";
892
+ }>;
893
+ }, z$1.core.$strict>;
894
+ readonly response: z$1.ZodObject<{
895
+ requestId: z$1.ZodUUID;
896
+ scope: z$1.ZodObject<{
897
+ projectId: z$1.ZodString;
898
+ environment: z$1.ZodEnum<{
899
+ sandbox: "sandbox";
900
+ live: "live";
901
+ }>;
902
+ }, z$1.core.$strict>;
903
+ preference: z$1.ZodObject<{
904
+ channel: z$1.ZodEnum<{
905
+ email: "email";
906
+ sms: "sms";
907
+ voice: "voice";
908
+ push: "push";
909
+ }>;
910
+ state: z$1.ZodEnum<{
911
+ allowed: "allowed";
912
+ unknown: "unknown";
913
+ denied: "denied";
914
+ }>;
915
+ revision: z$1.ZodNumber;
916
+ updatedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
917
+ }, z$1.core.$strict>;
918
+ }, z$1.core.$strict>;
919
+ };
920
+ readonly setMessagingPreference: {
921
+ readonly method: "POST";
922
+ readonly path: "messaging/preferences/set";
923
+ readonly permission: "messaging:write";
924
+ readonly audience: "customer";
925
+ readonly request: z$1.ZodObject<{
926
+ requestId: z$1.ZodUUID;
927
+ channel: z$1.ZodEnum<{
928
+ email: "email";
929
+ sms: "sms";
930
+ voice: "voice";
931
+ push: "push";
932
+ }>;
933
+ state: z$1.ZodEnum<{
934
+ allowed: "allowed";
935
+ denied: "denied";
936
+ }>;
937
+ expectedRevision: z$1.ZodNumber;
938
+ }, z$1.core.$strict>;
939
+ readonly response: z$1.ZodObject<{
940
+ requestId: z$1.ZodUUID;
941
+ scope: z$1.ZodObject<{
942
+ projectId: z$1.ZodString;
943
+ environment: z$1.ZodEnum<{
944
+ sandbox: "sandbox";
945
+ live: "live";
946
+ }>;
947
+ }, z$1.core.$strict>;
948
+ preference: z$1.ZodObject<{
949
+ channel: z$1.ZodEnum<{
950
+ email: "email";
951
+ sms: "sms";
952
+ voice: "voice";
953
+ push: "push";
954
+ }>;
955
+ state: z$1.ZodEnum<{
956
+ allowed: "allowed";
957
+ unknown: "unknown";
958
+ denied: "denied";
959
+ }>;
960
+ revision: z$1.ZodNumber;
961
+ updatedAt: z$1.ZodNullable<z$1.ZodISODateTime>;
962
+ }, z$1.core.$strict>;
963
+ }, z$1.core.$strict>;
964
+ };
600
965
  readonly listInvoiceTemplates: {
601
966
  readonly method: "POST";
602
967
  readonly path: "invoices/templates";
@@ -973,13 +1338,13 @@ declare const apiOperations: {
973
1338
  config: z$1.ZodObject<{
974
1339
  repository: z$1.ZodObject<{
975
1340
  id: z$1.ZodUUID;
976
- revision: z$1.ZodNumber;
977
- include: z$1.ZodArray<z$1.ZodString>;
978
1341
  platform: z$1.ZodEnum<{
979
1342
  github: "github";
980
1343
  gitlab: "gitlab";
981
1344
  bitbucket: "bitbucket";
982
1345
  }>;
1346
+ revision: z$1.ZodNumber;
1347
+ include: z$1.ZodArray<z$1.ZodString>;
983
1348
  repo: z$1.ZodString;
984
1349
  branches: z$1.ZodArray<z$1.ZodString>;
985
1350
  workflow: z$1.ZodString;
@@ -1285,6 +1650,10 @@ declare const apiOperations: {
1285
1650
  stickyBucketUsed: z$1.ZodOptional<z$1.ZodBoolean>;
1286
1651
  }, z$1.core.$strict>>;
1287
1652
  }, z$1.core.$strict>>;
1653
+ merchandiseContext: z$1.ZodOptional<z$1.ZodObject<{
1654
+ merchandiseId: z$1.ZodUUID;
1655
+ merchandise: z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>;
1656
+ }, z$1.core.$strict>>;
1288
1657
  }, z$1.core.$strict>;
1289
1658
  };
1290
1659
  readonly trackEvents: {
@@ -1298,6 +1667,11 @@ declare const apiOperations: {
1298
1667
  eventUuid: z$1.ZodUUID;
1299
1668
  timestamp: z$1.ZodISODateTime;
1300
1669
  name: z$1.ZodString;
1670
+ merchandise: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodObject<{
1671
+ id: z$1.ZodString;
1672
+ }, z$1.core.$strict>, z$1.ZodObject<{
1673
+ internalId: z$1.ZodUUID;
1674
+ }, z$1.core.$strict>]>>;
1301
1675
  properties: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>>;
1302
1676
  deviceId: z$1.ZodOptional<z$1.ZodString>;
1303
1677
  sessionId: z$1.ZodOptional<z$1.ZodString>;
@@ -7175,8 +7549,8 @@ declare const apiOperations: {
7175
7549
  batch: z$1.ZodObject<{
7176
7550
  batchId: z$1.ZodUUID;
7177
7551
  status: z$1.ZodEnum<{
7178
- complete: "complete";
7179
7552
  queued: "queued";
7553
+ complete: "complete";
7180
7554
  }>;
7181
7555
  total: z$1.ZodNumber;
7182
7556
  processed: z$1.ZodNumber;
@@ -7187,8 +7561,8 @@ declare const apiOperations: {
7187
7561
  status: z$1.ZodEnum<{
7188
7562
  failed: "failed";
7189
7563
  accepted: "accepted";
7190
- rejected: "rejected";
7191
7564
  queued: "queued";
7565
+ rejected: "rejected";
7192
7566
  }>;
7193
7567
  receipt: z$1.ZodNullable<z$1.ZodObject<{
7194
7568
  id: z$1.ZodUUID;
@@ -8341,8 +8715,8 @@ declare const apiOperations: {
8341
8715
  }>;
8342
8716
  status: z$1.ZodEnum<{
8343
8717
  unknown: "unknown";
8344
- pending: "pending";
8345
8718
  active: "active";
8719
+ pending: "pending";
8346
8720
  expired: "expired";
8347
8721
  scheduled: "scheduled";
8348
8722
  trial: "trial";
@@ -10081,6 +10455,7 @@ declare const apiOperations: {
10081
10455
  externalUserId: z$1.ZodOptional<z$1.ZodString>;
10082
10456
  name: z$1.ZodDefault<z$1.ZodString>;
10083
10457
  email: z$1.ZodDefault<z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>>;
10458
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10084
10459
  attributes: z$1.ZodDefault<z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10085
10460
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10086
10461
  }, z$1.core.$loose>>>;
@@ -10100,6 +10475,7 @@ declare const apiOperations: {
10100
10475
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10101
10476
  name: z$1.ZodString;
10102
10477
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10478
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10103
10479
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10104
10480
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10105
10481
  }, z$1.core.$loose>>;
@@ -10136,6 +10512,7 @@ declare const apiOperations: {
10136
10512
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10137
10513
  name: z$1.ZodString;
10138
10514
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10515
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10139
10516
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10140
10517
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10141
10518
  }, z$1.core.$loose>>;
@@ -10187,6 +10564,7 @@ declare const apiOperations: {
10187
10564
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10188
10565
  name: z$1.ZodString;
10189
10566
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10567
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10190
10568
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10191
10569
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10192
10570
  }, z$1.core.$loose>>;
@@ -10214,6 +10592,7 @@ declare const apiOperations: {
10214
10592
  patch: z$1.ZodObject<{
10215
10593
  name: z$1.ZodOptional<z$1.ZodString>;
10216
10594
  email: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>>;
10595
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10217
10596
  attributes: z$1.ZodOptional<z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10218
10597
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10219
10598
  }, z$1.core.$loose>>>;
@@ -10238,6 +10617,7 @@ declare const apiOperations: {
10238
10617
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10239
10618
  name: z$1.ZodString;
10240
10619
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10620
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10241
10621
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10242
10622
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10243
10623
  }, z$1.core.$loose>>;
@@ -10383,6 +10763,7 @@ declare const apiOperations: {
10383
10763
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10384
10764
  name: z$1.ZodString;
10385
10765
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10766
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10386
10767
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10387
10768
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10388
10769
  }, z$1.core.$loose>>;
@@ -10479,13 +10860,22 @@ declare const apiOperations: {
10479
10860
  }, z$1.core.$strict>, z$1.ZodObject<{
10480
10861
  type: z$1.ZodLiteral<"plans">;
10481
10862
  planIds: z$1.ZodArray<z$1.ZodUUID>;
10863
+ }, z$1.core.$strict>, z$1.ZodObject<{
10864
+ type: z$1.ZodLiteral<"merchandise">;
10865
+ scope: z$1.ZodObject<{
10866
+ type: z$1.ZodEnum<{
10867
+ selected: "selected";
10868
+ all: "all";
10869
+ condition: "condition";
10870
+ }>;
10871
+ }, z$1.core.$strict>;
10482
10872
  }, z$1.core.$strict>], "type">;
10483
10873
  }, z$1.core.$strict>;
10484
10874
  }, z$1.core.$strict>>;
10485
10875
  reason: z$1.ZodNullable<z$1.ZodEnum<{
10486
10876
  unavailable: "unavailable";
10487
- claim_disabled: "claim_disabled";
10488
10877
  inactive: "inactive";
10878
+ claim_disabled: "claim_disabled";
10489
10879
  outside_window: "outside_window";
10490
10880
  not_targeted: "not_targeted";
10491
10881
  not_first_purchase: "not_first_purchase";
@@ -10579,6 +10969,15 @@ declare const apiOperations: {
10579
10969
  }, z$1.core.$strict>, z$1.ZodObject<{
10580
10970
  type: z$1.ZodLiteral<"plans">;
10581
10971
  planIds: z$1.ZodArray<z$1.ZodUUID>;
10972
+ }, z$1.core.$strict>, z$1.ZodObject<{
10973
+ type: z$1.ZodLiteral<"merchandise">;
10974
+ scope: z$1.ZodObject<{
10975
+ type: z$1.ZodEnum<{
10976
+ selected: "selected";
10977
+ all: "all";
10978
+ condition: "condition";
10979
+ }>;
10980
+ }, z$1.core.$strict>;
10582
10981
  }, z$1.core.$strict>], "type">;
10583
10982
  }, z$1.core.$strict>;
10584
10983
  }, z$1.core.$strict>>;
@@ -10677,13 +11076,22 @@ declare const apiOperations: {
10677
11076
  }, z$1.core.$strict>, z$1.ZodObject<{
10678
11077
  type: z$1.ZodLiteral<"plans">;
10679
11078
  planIds: z$1.ZodArray<z$1.ZodUUID>;
11079
+ }, z$1.core.$strict>, z$1.ZodObject<{
11080
+ type: z$1.ZodLiteral<"merchandise">;
11081
+ scope: z$1.ZodObject<{
11082
+ type: z$1.ZodEnum<{
11083
+ selected: "selected";
11084
+ all: "all";
11085
+ condition: "condition";
11086
+ }>;
11087
+ }, z$1.core.$strict>;
10680
11088
  }, z$1.core.$strict>], "type">;
10681
11089
  }, z$1.core.$strict>;
10682
11090
  }, z$1.core.$strict>>;
10683
11091
  reason: z$1.ZodNullable<z$1.ZodEnum<{
10684
11092
  unavailable: "unavailable";
10685
- claim_disabled: "claim_disabled";
10686
11093
  inactive: "inactive";
11094
+ claim_disabled: "claim_disabled";
10687
11095
  outside_window: "outside_window";
10688
11096
  not_targeted: "not_targeted";
10689
11097
  not_first_purchase: "not_first_purchase";
@@ -10698,14 +11106,20 @@ declare const apiOperations: {
10698
11106
  readonly permission: "billing:write";
10699
11107
  readonly audience: "server";
10700
11108
  /** A stable merchant event records paid Coupon use; this does not verify a provider or grant subscription access. */
10701
- readonly request: z$1.ZodObject<{
11109
+ readonly request: z$1.ZodUnion<readonly [z$1.ZodObject<{
11110
+ productVersionId: z$1.ZodUUID;
11111
+ subscriptionId: z$1.ZodString;
10702
11112
  customerId: z$1.ZodUUID;
10703
11113
  eventId: z$1.ZodString;
10704
11114
  grantId: z$1.ZodUUID;
10705
- productVersionId: z$1.ZodUUID;
10706
- subscriptionId: z$1.ZodString;
10707
11115
  occurredAt: z$1.ZodISODateTime;
10708
- }, z$1.core.$strict>;
11116
+ }, z$1.core.$strict>, z$1.ZodObject<{
11117
+ merchandiseId: z$1.ZodUUID;
11118
+ customerId: z$1.ZodUUID;
11119
+ eventId: z$1.ZodString;
11120
+ grantId: z$1.ZodUUID;
11121
+ occurredAt: z$1.ZodISODateTime;
11122
+ }, z$1.core.$strict>]>;
10709
11123
  readonly response: z$1.ZodObject<{
10710
11124
  requestId: z$1.ZodUUID;
10711
11125
  scope: z$1.ZodObject<{
@@ -10715,19 +11129,30 @@ declare const apiOperations: {
10715
11129
  live: "live";
10716
11130
  }>;
10717
11131
  }, z$1.core.$strict>;
10718
- receipt: z$1.ZodObject<{
11132
+ receipt: z$1.ZodUnion<readonly [z$1.ZodObject<{
11133
+ productVersionId: z$1.ZodUUID;
11134
+ subscriptionId: z$1.ZodString;
10719
11135
  customerId: z$1.ZodUUID;
10720
11136
  eventId: z$1.ZodString;
10721
11137
  grantId: z$1.ZodUUID;
10722
- productVersionId: z$1.ZodUUID;
10723
- subscriptionId: z$1.ZodString;
10724
11138
  occurredAt: z$1.ZodISODateTime;
10725
11139
  id: z$1.ZodUUID;
10726
11140
  couponId: z$1.ZodUUID;
10727
11141
  status: z$1.ZodLiteral<"redeemed">;
10728
11142
  source: z$1.ZodLiteral<"merchant">;
10729
11143
  recordedAt: z$1.ZodISODateTime;
10730
- }, z$1.core.$strict>;
11144
+ }, z$1.core.$strict>, z$1.ZodObject<{
11145
+ merchandiseId: z$1.ZodUUID;
11146
+ customerId: z$1.ZodUUID;
11147
+ eventId: z$1.ZodString;
11148
+ grantId: z$1.ZodUUID;
11149
+ occurredAt: z$1.ZodISODateTime;
11150
+ id: z$1.ZodUUID;
11151
+ couponId: z$1.ZodUUID;
11152
+ status: z$1.ZodLiteral<"redeemed">;
11153
+ source: z$1.ZodLiteral<"merchant">;
11154
+ recordedAt: z$1.ZodISODateTime;
11155
+ }, z$1.core.$strict>]>;
10731
11156
  }, z$1.core.$strict>;
10732
11157
  };
10733
11158
  };
@@ -10735,6 +11160,8 @@ type ApiOperation = keyof typeof apiOperations;
10735
11160
  type ApiInput<K extends ApiOperation> = z$1.input<(typeof apiOperations)[K]["request"]>;
10736
11161
  type ApiOutput<K extends ApiOperation> = z$1.output<(typeof apiOperations)[K]["response"]>;
10737
11162
  interface FoundationApi {
11163
+ sendMessage(input: ApiInput<"sendMessage">): Promise<ApiOutput<"sendMessage">>;
11164
+ readMessage(input: ApiInput<"readMessage">): Promise<ApiOutput<"readMessage">>;
10738
11165
  listInvoiceTemplates(input?: ApiInput<"listInvoiceTemplates">): Promise<ApiOutput<"listInvoiceTemplates">>;
10739
11166
  previewInvoice(input: ApiInput<"previewInvoice">): Promise<ApiOutput<"previewInvoice">>;
10740
11167
  createInvoice(input: ApiInput<"createInvoice">): Promise<ApiOutput<"createInvoice">>;
@@ -10866,4 +11293,4 @@ interface FoundationApi {
10866
11293
  recordCouponRedemption(input: ApiInput<"recordCouponRedemption">): Promise<ApiOutput<"recordCouponRedemption">>;
10867
11294
  }
10868
11295
 
10869
- export type { ApiInput as A, FoundationApi as F, InvoiceModeParams as I, OfferingItem as O, InvoiceModeParamsInput as a };
11296
+ export { type ApiInput as A, type FoundationApi as F, type InvoiceModeParams as I, type OfferingItem as O, apiOperations as a, type InvoiceModeParamsInput as b };