@tinkerlandai/indiana-sdk 0.8.1 → 0.8.3

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 (43) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{ai-usage-JoM7ZWk-.d.ts → ai-usage-BV-FlgWr.d.ts} +1 -1
  3. package/dist/{api-JVC7x2FV.d.ts → api-B3FIE41b.d.ts} +381 -7
  4. package/dist/chunk-2QPETWDX.js +1 -0
  5. package/dist/chunk-ANOOBDW5.js +350 -0
  6. package/dist/chunk-BNU6IG3F.js +1 -0
  7. package/dist/{chunk-YWFNWK7C.js → chunk-GRLMT5PR.js} +1 -1
  8. package/dist/chunk-LMR2TM3X.js +1 -0
  9. package/dist/chunk-OBYJWIRB.js +1 -0
  10. package/dist/{chunk-USLZX2ZA.js → chunk-SHSNIJJM.js} +1 -1
  11. package/dist/{chunk-6HG7U6AU.js → chunk-SOQO2RDZ.js} +1 -1
  12. package/dist/{chunk-KSNOXNTC.js → chunk-VVV3JNS3.js} +1 -1
  13. package/dist/{chunk-56AYS7RS.js → chunk-Y32NPIYY.js} +1 -1
  14. package/dist/chunk-ZT66RIFU.js +10 -0
  15. package/dist/{configuration-sync-BexM2qbg.d.ts → configuration-sync-DNvKXHk-.d.ts} +2 -2
  16. package/dist/{content-YNL2CRJZ.js → content-J3FKZTGT.js} +1 -1
  17. package/dist/{errors-DrdTlPwf.d.ts → errors-C8lRYZ0n.d.ts} +48 -1
  18. package/dist/{funnel-local-client-D1Fe7CZ6.d.ts → funnel-local-client-wbz-4gFx.d.ts} +28 -19
  19. package/dist/{funnel-runtime-host-CAMI6BJS.js → funnel-runtime-host-C5P5JTV3.js} +1 -1
  20. package/dist/index.d.ts +104 -14
  21. package/dist/index.js +1 -1
  22. package/dist/native-shell.js +1 -1
  23. package/dist/openrouter.d.ts +3 -3
  24. package/dist/openrouter.js +1 -1
  25. package/dist/page.d.ts +2 -2
  26. package/dist/{paywall-MXRMMF3R.js → paywall-3GIRKSHN.js} +1 -1
  27. package/dist/popup.d.ts +1 -1
  28. package/dist/popup.js +1 -1
  29. package/dist/react-native.d.ts +97 -4
  30. package/dist/react-native.js +1 -1
  31. package/dist/{screen-renderer-P7MLBHY5.js → screen-renderer-5FPYVSPW.js} +1 -1
  32. package/dist/server.d.ts +11 -8
  33. package/dist/server.js +1 -1
  34. package/dist/src-BMJCIMIF.js +1 -0
  35. package/dist/visual.js +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunk-3BQFJANQ.js +0 -1
  38. package/dist/chunk-AE4CUTUE.js +0 -1
  39. package/dist/chunk-AEUFCOFG.js +0 -1
  40. package/dist/chunk-F767CM3T.js +0 -7
  41. package/dist/chunk-X7JJAEQQ.js +0 -350
  42. package/dist/src-G7UQB3QE.js +0 -1
  43. package/dist/{screen-i6eHL11m.d.ts → screen-BpAejkn0.d.ts} +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  Release facts and artifact evidence: [SDK release ledger](../../docs/sdk-releases.md).
4
4
 
5
+ ## 0.8.3 — 2026-10-26
6
+
7
+ - Refresh sanitized custom HTML fallback content when Product availability changes.
8
+ - Preserve the selected Product across empty availability refreshes, keeping purchase disabled while that Product is unavailable.
9
+ - Synchronize the shared Web and native renderers with the current Product selection rules.
10
+ - Align Server SDK request helpers with the committed messaging contract.
11
+
5
12
  ## 0.8.1 — 2026-10-25
6
13
 
7
14
  - Organize SDK implementations by capability while preserving public entry points and interfaces.
@@ -1,5 +1,5 @@
1
1
  import { LanguageModelV4Usage, LanguageModelV4Middleware } from '@ai-sdk/provider';
2
- import { F as FoundationApi, A as ApiInput } from './api-JVC7x2FV.js';
2
+ import { F as FoundationApi, A as ApiInput } from './api-B3FIE41b.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  declare const tokenCounts: z.ZodObject<{
@@ -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;
@@ -7175,8 +7540,8 @@ declare const apiOperations: {
7175
7540
  batch: z$1.ZodObject<{
7176
7541
  batchId: z$1.ZodUUID;
7177
7542
  status: z$1.ZodEnum<{
7178
- complete: "complete";
7179
7543
  queued: "queued";
7544
+ complete: "complete";
7180
7545
  }>;
7181
7546
  total: z$1.ZodNumber;
7182
7547
  processed: z$1.ZodNumber;
@@ -7187,8 +7552,8 @@ declare const apiOperations: {
7187
7552
  status: z$1.ZodEnum<{
7188
7553
  failed: "failed";
7189
7554
  accepted: "accepted";
7190
- rejected: "rejected";
7191
7555
  queued: "queued";
7556
+ rejected: "rejected";
7192
7557
  }>;
7193
7558
  receipt: z$1.ZodNullable<z$1.ZodObject<{
7194
7559
  id: z$1.ZodUUID;
@@ -8341,8 +8706,8 @@ declare const apiOperations: {
8341
8706
  }>;
8342
8707
  status: z$1.ZodEnum<{
8343
8708
  unknown: "unknown";
8344
- pending: "pending";
8345
8709
  active: "active";
8710
+ pending: "pending";
8346
8711
  expired: "expired";
8347
8712
  scheduled: "scheduled";
8348
8713
  trial: "trial";
@@ -10081,6 +10446,7 @@ declare const apiOperations: {
10081
10446
  externalUserId: z$1.ZodOptional<z$1.ZodString>;
10082
10447
  name: z$1.ZodDefault<z$1.ZodString>;
10083
10448
  email: z$1.ZodDefault<z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>>;
10449
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10084
10450
  attributes: z$1.ZodDefault<z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10085
10451
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10086
10452
  }, z$1.core.$loose>>>;
@@ -10100,6 +10466,7 @@ declare const apiOperations: {
10100
10466
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10101
10467
  name: z$1.ZodString;
10102
10468
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10469
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10103
10470
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10104
10471
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10105
10472
  }, z$1.core.$loose>>;
@@ -10136,6 +10503,7 @@ declare const apiOperations: {
10136
10503
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10137
10504
  name: z$1.ZodString;
10138
10505
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10506
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10139
10507
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10140
10508
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10141
10509
  }, z$1.core.$loose>>;
@@ -10187,6 +10555,7 @@ declare const apiOperations: {
10187
10555
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10188
10556
  name: z$1.ZodString;
10189
10557
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10558
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10190
10559
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10191
10560
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10192
10561
  }, z$1.core.$loose>>;
@@ -10214,6 +10583,7 @@ declare const apiOperations: {
10214
10583
  patch: z$1.ZodObject<{
10215
10584
  name: z$1.ZodOptional<z$1.ZodString>;
10216
10585
  email: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>>;
10586
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10217
10587
  attributes: z$1.ZodOptional<z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10218
10588
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10219
10589
  }, z$1.core.$loose>>>;
@@ -10238,6 +10608,7 @@ declare const apiOperations: {
10238
10608
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10239
10609
  name: z$1.ZodString;
10240
10610
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10611
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10241
10612
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10242
10613
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10243
10614
  }, z$1.core.$loose>>;
@@ -10383,6 +10754,7 @@ declare const apiOperations: {
10383
10754
  externalUserId: z$1.ZodNullable<z$1.ZodString>;
10384
10755
  name: z$1.ZodString;
10385
10756
  email: z$1.ZodUnion<readonly [z$1.ZodEmail, z$1.ZodLiteral<"">]>;
10757
+ phone: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
10386
10758
  attributes: z$1.ZodIntersection<z$1.ZodRecord<z$1.ZodString, z$1.ZodJSONSchema>, z$1.ZodObject<{
10387
10759
  tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10388
10760
  }, z$1.core.$loose>>;
@@ -10735,6 +11107,8 @@ type ApiOperation = keyof typeof apiOperations;
10735
11107
  type ApiInput<K extends ApiOperation> = z$1.input<(typeof apiOperations)[K]["request"]>;
10736
11108
  type ApiOutput<K extends ApiOperation> = z$1.output<(typeof apiOperations)[K]["response"]>;
10737
11109
  interface FoundationApi {
11110
+ sendMessage(input: ApiInput<"sendMessage">): Promise<ApiOutput<"sendMessage">>;
11111
+ readMessage(input: ApiInput<"readMessage">): Promise<ApiOutput<"readMessage">>;
10738
11112
  listInvoiceTemplates(input?: ApiInput<"listInvoiceTemplates">): Promise<ApiOutput<"listInvoiceTemplates">>;
10739
11113
  previewInvoice(input: ApiInput<"previewInvoice">): Promise<ApiOutput<"previewInvoice">>;
10740
11114
  createInvoice(input: ApiInput<"createInvoice">): Promise<ApiOutput<"createInvoice">>;
@@ -10866,4 +11240,4 @@ interface FoundationApi {
10866
11240
  recordCouponRedemption(input: ApiInput<"recordCouponRedemption">): Promise<ApiOutput<"recordCouponRedemption">>;
10867
11241
  }
10868
11242
 
10869
- export type { ApiInput as A, FoundationApi as F, InvoiceModeParams as I, OfferingItem as O, InvoiceModeParamsInput as a };
11243
+ export { type ApiInput as A, type FoundationApi as F, type InvoiceModeParams as I, type OfferingItem as O, apiOperations as a, type InvoiceModeParamsInput as b };
@@ -0,0 +1 @@
1
+ import{o as v,p as k,s as S}from"./chunk-ZT66RIFU.js";import{a as e}from"./chunk-SOQO2RDZ.js";import{a as C,j,m as _,p as P}from"./chunk-LMR2TM3X.js";import{b}from"./chunk-OBYJWIRB.js";import{a as L}from"./chunk-EXCPE2XH.js";var M={name:"@tinkerlandai/indiana-sdk",version:"0.8.3",description:"Framework-independent Indiana SDK for customer identity, entitlements, credits, offers and growth surfaces.",license:"UNLICENSED",repository:{type:"git",url:"git+https://github.com/tinkerlandai/Indiana.git",directory:"packages/sdk"},engines:{node:">=22"},publishConfig:{access:"public",tag:"beta"},type:"module",sideEffects:!1,files:["dist","README.md","README.zh-CN.md","CHANGELOG.md","THIRD_PARTY_NOTICES.md"],exports:{"./react-native":{types:"./dist/react-native.d.ts","react-native":"./dist/react-native.js",import:"./dist/react-native.js",default:"./dist/react-native.js"},".":{types:"./dist/index.d.ts",import:"./dist/index.js"},"./popup":{types:"./dist/popup.d.ts",import:"./dist/popup.js"},"./server":{types:"./dist/server.d.ts",import:"./dist/server.js"},"./openrouter":{types:"./dist/openrouter.d.ts",import:"./dist/openrouter.js"},"./native-shell":{types:"./dist/native-shell.d.ts",import:"./dist/native-shell.js"},"./page":{types:"./dist/page.d.ts",import:"./dist/page.js"},"./visual":{types:"./dist/visual.d.ts",import:"./dist/visual.js"}},scripts:{build:"tsup",prepack:"pnpm run build",typecheck:"tsc --noEmit",lint:"node ../../scripts/ci/lint.mjs --workspace packages/sdk"},dependencies:{"@ai-sdk/provider":"4.0.26","@types/json-schema":"7.0.15","css-tree":"^3.2.1","dom-mutator":"0.7.0",dompurify:"^3.4.15",zod:"4.6.6"},devDependencies:{"@indiana/contracts":"workspace:*","@openrouter/sdk":"^1.4.25","@types/css-tree":"^3.2.0",ai:"7.0.136",tsup:"^8.5.1",typescript:"^5.9.3","whatwg-url-minimum":"0.2.0"},peerDependencies:{"@openrouter/sdk":"^1.4.25"},peerDependenciesMeta:{"@openrouter/sdk":{optional:!0}}};var U=Symbol("IndianaNoContent");function Z(p,H,q=URL){let l=p.configuration?.scope,R=p.scope??(l&&{projectId:l.projectId,environment:l.environment}),s=R?b.parse(R):void 0;if(s&&l&&(s.projectId!==l.projectId||s.environment!==l.environment))throw new e("SCOPE_MISMATCH","Configuration belongs to another App/environment");let a=new q(p.baseUrl??L);if(a.username||a.password||a.search||a.hash)throw new e("INVALID_URL","baseUrl must not contain credentials, query, or fragment");if(a.protocol!=="https:"&&!(a.protocol==="http:"&&["localhost","127.0.0.1","[::1]"].includes(a.hostname)))throw new e("INVALID_URL","Use HTTPS, or HTTP on localhost during development");let V=p.fetch??globalThis.fetch.bind(globalThis),f=p.timeoutMs??1e4;if(!Number.isFinite(f)||f<1||f>12e4)throw new e("INVALID_TIMEOUT","timeoutMs must be between 1 and 120000");let h=null,u=0,m=null,g=new Set;function A(){u+=1,h=null,m=null;for(let i of g)i.abort();g.clear()}async function x(i,K={},I="POST",D={}){let d=D.installationDetach===!0;if(d&&(i!=="push/installations/detach"||I!=="POST"))throw new e("INVALID_REQUEST","Installation authority only detaches this installation");if(!h&&!d)throw new e("NOT_IDENTIFIED","Call identify with a server-issued customer token first");let E=u,o=new AbortController;d||g.add(o);let w=()=>!d&&E!==u?new e("IDENTITY_CHANGED","Customer identity changed while the request was in flight"):new e("TIMEOUT","Indiana request timed out"),T,F=new Promise((n,r)=>{T=()=>r(w()),o.signal.addEventListener("abort",T,{once:!0})}),G=setTimeout(()=>o.abort(),f),X=async()=>{let n=await V(`${a.href.replace(/\/$/,"")}/api/v1/${i}`,{method:I,headers:{"Content-Type":"application/json",...d?{}:{Authorization:`Bearer ${h}`},[v]:S.current,[k]:M.version,...s?{"X-Indiana-Project":s.projectId,"X-Indiana-Environment":s.environment}:{}},body:I==="POST"?JSON.stringify(K):void 0,signal:o.signal,credentials:"omit",cache:"no-store",redirect:"error",...D.keepalive?{keepalive:!0}:{}});if(o.signal.aborted)throw w();let r;try{r=n.status===204?U:await n.json()}catch{throw o.signal.aborted?w():new e(n.ok?"INVALID_RESPONSE":"HTTP_ERROR","The gateway returned an unreadable response",n.status,n.headers.get("X-Request-Id")??void 0)}if(o.signal.aborted)throw w();if(!d&&E!==u)throw new e("IDENTITY_CHANGED","Customer identity changed while the request was in flight");if(!n.ok){let t=_.safeParse(r),c=t.success&&(!C.safeParse(t.data.error.code).success||j(t.data.error.code,n.status)),N=c?t.data.error.code:"HTTP_ERROR",O=P(N,n.status,{retryAfter:n.headers.get("Retry-After"),recovery:c?t.data.error.recovery:void 0,reason:c?t.data.error.reason:void 0});throw new e(N,c?t.data.error.message:"Indiana request failed",n.status,n.headers.get("X-Request-Id")??(t.success?t.data.requestId:void 0),{...O,...t.success&&t.data.error.retryable===!1?{retryable:!1}:{},...O.retryAfterSeconds===void 0&&t.success&&t.data.error.retryAfterSeconds!==void 0?{retryAfterSeconds:t.data.error.retryAfterSeconds}:{}})}if(n.headers.get(v)!==S.current)throw new e("PROTOCOL_MISMATCH","Response protocol does not match this SDK");if(s&&r!==U){let t=r&&typeof r=="object"&&"scope"in r?r:r&&typeof r=="object"&&"configuration"in r?r.configuration:null;if(!t||typeof t!="object"||!("scope"in t))throw new e("INVALID_RESPONSE","Response is missing its App/environment scope");let c=b.safeParse(t.scope);if(!c.success||c.data.projectId!==s.projectId||c.data.environment!==s.environment)throw new e("SCOPE_MISMATCH","Response scope does not match this SDK instance")}let y=n.headers.get("X-Indiana-Telemetry-Subject");if(y){if(!/^[a-f0-9]{64}$/.test(y))throw new e("INVALID_RESPONSE","Invalid telemetry identity");m!==y&&(m=y,H?.(m))}return r};try{return await Promise.race([X(),F])}catch(n){throw!d&&E!==u?new e("IDENTITY_CHANGED","Customer identity changed while the request was in flight"):n instanceof e?n:new e(o.signal.aborted?"TIMEOUT":"NETWORK_ERROR",o.signal.aborted?"Indiana request timed out":"Unable to read the Indiana response")}finally{clearTimeout(G),o.signal.removeEventListener("abort",T),g.delete(o)}}return{subjectKey:()=>m,identify(i){if(!i.trim()||/\s/.test(i)||i.length>4096)throw new e("INVALID_TOKEN","A nonempty server-issued token is required");A(),h=i},reset:A,request:x}}export{Z as a};