@doorstepai/dropoff-sdk 2.2.9 → 3.0.0-rc.1

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 (437) hide show
  1. package/DropoffSdk.podspec +10 -31
  2. package/android/build.gradle +42 -54
  3. package/android/gradle.properties +3 -4
  4. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module +106 -0
  5. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module.asc +7 -0
  6. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module.asc.md5 +1 -0
  7. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module.asc.sha1 +1 -0
  8. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module.asc.sha256 +1 -0
  9. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module.asc.sha512 +1 -0
  10. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module.md5 +1 -0
  11. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module.sha1 +1 -0
  12. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module.sha256 +1 -0
  13. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.module.sha512 +1 -0
  14. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom +46 -0
  15. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom.asc +7 -0
  16. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom.asc.md5 +1 -0
  17. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom.asc.sha1 +1 -0
  18. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom.asc.sha256 +1 -0
  19. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom.asc.sha512 +1 -0
  20. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom.md5 +1 -0
  21. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom.sha1 +1 -0
  22. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom.sha256 +1 -0
  23. package/android/maven/ai/doorstep/doorstep-bom/2026.12.0-rc.1/doorstep-bom-2026.12.0-rc.1.pom.sha512 +1 -0
  24. package/android/maven/ai/doorstep/doorstep-bom/maven-metadata.xml +13 -0
  25. package/android/maven/ai/doorstep/doorstep-bom/maven-metadata.xml.md5 +1 -0
  26. package/android/maven/ai/doorstep/doorstep-bom/maven-metadata.xml.sha1 +1 -0
  27. package/android/maven/ai/doorstep/doorstep-bom/maven-metadata.xml.sha256 +1 -0
  28. package/android/maven/ai/doorstep/doorstep-bom/maven-metadata.xml.sha512 +1 -0
  29. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar +0 -0
  30. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar.asc +7 -0
  31. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar.asc.md5 +1 -0
  32. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar.asc.sha1 +1 -0
  33. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar.asc.sha256 +1 -0
  34. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar.asc.sha512 +1 -0
  35. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar.md5 +1 -0
  36. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar.sha1 +1 -0
  37. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar.sha256 +1 -0
  38. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.aar.sha512 +1 -0
  39. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module +146 -0
  40. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module.asc +7 -0
  41. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module.asc.md5 +1 -0
  42. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module.asc.sha1 +1 -0
  43. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module.asc.sha256 +1 -0
  44. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module.asc.sha512 +1 -0
  45. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module.md5 +1 -0
  46. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module.sha1 +1 -0
  47. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module.sha256 +1 -0
  48. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.module.sha512 +1 -0
  49. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom +79 -0
  50. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom.asc +7 -0
  51. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom.asc.md5 +1 -0
  52. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom.asc.sha1 +1 -0
  53. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom.asc.sha256 +1 -0
  54. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom.asc.sha512 +1 -0
  55. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom.md5 +1 -0
  56. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom.sha1 +1 -0
  57. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom.sha256 +1 -0
  58. package/android/maven/ai/doorstep/doorstep-core/3.1.0/doorstep-core-3.1.0.pom.sha512 +1 -0
  59. package/android/maven/ai/doorstep/doorstep-core/maven-metadata.xml +13 -0
  60. package/android/maven/ai/doorstep/doorstep-core/maven-metadata.xml.md5 +1 -0
  61. package/android/maven/ai/doorstep/doorstep-core/maven-metadata.xml.sha1 +1 -0
  62. package/android/maven/ai/doorstep/doorstep-core/maven-metadata.xml.sha256 +1 -0
  63. package/android/maven/ai/doorstep/doorstep-core/maven-metadata.xml.sha512 +1 -0
  64. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar +0 -0
  65. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar.asc +7 -0
  66. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar.asc.md5 +1 -0
  67. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar.asc.sha1 +1 -0
  68. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar.asc.sha256 +1 -0
  69. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar.asc.sha512 +1 -0
  70. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar.md5 +1 -0
  71. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar.sha1 +1 -0
  72. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar.sha256 +1 -0
  73. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.aar.sha512 +1 -0
  74. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module +104 -0
  75. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module.asc +7 -0
  76. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module.asc.md5 +1 -0
  77. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module.asc.sha1 +1 -0
  78. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module.asc.sha256 +1 -0
  79. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module.asc.sha512 +1 -0
  80. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module.md5 +1 -0
  81. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module.sha1 +1 -0
  82. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module.sha256 +1 -0
  83. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.module.sha512 +1 -0
  84. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom +39 -0
  85. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom.asc +7 -0
  86. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom.asc.md5 +1 -0
  87. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom.asc.sha1 +1 -0
  88. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom.asc.sha256 +1 -0
  89. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom.asc.sha512 +1 -0
  90. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom.md5 +1 -0
  91. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom.sha1 +1 -0
  92. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom.sha256 +1 -0
  93. package/android/maven/ai/doorstep/doorstep-embed/1.0.0/doorstep-embed-1.0.0.pom.sha512 +1 -0
  94. package/android/maven/ai/doorstep/doorstep-embed/maven-metadata.xml +13 -0
  95. package/android/maven/ai/doorstep/doorstep-embed/maven-metadata.xml.md5 +1 -0
  96. package/android/maven/ai/doorstep/doorstep-embed/maven-metadata.xml.sha1 +1 -0
  97. package/android/maven/ai/doorstep/doorstep-embed/maven-metadata.xml.sha256 +1 -0
  98. package/android/maven/ai/doorstep/doorstep-embed/maven-metadata.xml.sha512 +1 -0
  99. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar +0 -0
  100. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar.asc +7 -0
  101. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar.asc.md5 +1 -0
  102. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar.asc.sha1 +1 -0
  103. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar.asc.sha256 +1 -0
  104. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar.asc.sha512 +1 -0
  105. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar.md5 +1 -0
  106. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar.sha1 +1 -0
  107. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar.sha256 +1 -0
  108. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.aar.sha512 +1 -0
  109. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module +104 -0
  110. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module.asc +7 -0
  111. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module.asc.md5 +1 -0
  112. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module.asc.sha1 +1 -0
  113. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module.asc.sha256 +1 -0
  114. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module.asc.sha512 +1 -0
  115. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module.md5 +1 -0
  116. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module.sha1 +1 -0
  117. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module.sha256 +1 -0
  118. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.module.sha512 +1 -0
  119. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom +39 -0
  120. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom.asc +7 -0
  121. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom.asc.md5 +1 -0
  122. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom.asc.sha1 +1 -0
  123. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom.asc.sha256 +1 -0
  124. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom.asc.sha512 +1 -0
  125. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom.md5 +1 -0
  126. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom.sha1 +1 -0
  127. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom.sha256 +1 -0
  128. package/android/maven/ai/doorstep/doorstep-permissions/3.1.0/doorstep-permissions-3.1.0.pom.sha512 +1 -0
  129. package/android/maven/ai/doorstep/doorstep-permissions/maven-metadata.xml +13 -0
  130. package/android/maven/ai/doorstep/doorstep-permissions/maven-metadata.xml.md5 +1 -0
  131. package/android/maven/ai/doorstep/doorstep-permissions/maven-metadata.xml.sha1 +1 -0
  132. package/android/maven/ai/doorstep/doorstep-permissions/maven-metadata.xml.sha256 +1 -0
  133. package/android/maven/ai/doorstep/doorstep-permissions/maven-metadata.xml.sha512 +1 -0
  134. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar +0 -0
  135. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar.asc +7 -0
  136. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar.asc.md5 +1 -0
  137. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar.asc.sha1 +1 -0
  138. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar.asc.sha256 +1 -0
  139. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar.asc.sha512 +1 -0
  140. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar.md5 +1 -0
  141. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar.sha1 +1 -0
  142. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar.sha256 +1 -0
  143. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.aar.sha512 +1 -0
  144. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module +146 -0
  145. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module.asc +7 -0
  146. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module.asc.md5 +1 -0
  147. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module.asc.sha1 +1 -0
  148. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module.asc.sha256 +1 -0
  149. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module.asc.sha512 +1 -0
  150. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module.md5 +1 -0
  151. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module.sha1 +1 -0
  152. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module.sha256 +1 -0
  153. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.module.sha512 +1 -0
  154. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom +59 -0
  155. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom.asc +7 -0
  156. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom.asc.md5 +1 -0
  157. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom.asc.sha1 +1 -0
  158. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom.asc.sha256 +1 -0
  159. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom.asc.sha512 +1 -0
  160. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom.md5 +1 -0
  161. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom.sha1 +1 -0
  162. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom.sha256 +1 -0
  163. package/android/maven/ai/doorstep/doorstep-realtime/1.0.0/doorstep-realtime-1.0.0.pom.sha512 +1 -0
  164. package/android/maven/ai/doorstep/doorstep-realtime/maven-metadata.xml +13 -0
  165. package/android/maven/ai/doorstep/doorstep-realtime/maven-metadata.xml.md5 +1 -0
  166. package/android/maven/ai/doorstep/doorstep-realtime/maven-metadata.xml.sha1 +1 -0
  167. package/android/maven/ai/doorstep/doorstep-realtime/maven-metadata.xml.sha256 +1 -0
  168. package/android/maven/ai/doorstep/doorstep-realtime/maven-metadata.xml.sha512 +1 -0
  169. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar +0 -0
  170. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar.asc +7 -0
  171. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar.asc.md5 +1 -0
  172. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar.asc.sha1 +1 -0
  173. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar.asc.sha256 +1 -0
  174. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar.asc.sha512 +1 -0
  175. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar.md5 +1 -0
  176. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar.sha1 +1 -0
  177. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar.sha256 +1 -0
  178. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.aar.sha512 +1 -0
  179. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module +188 -0
  180. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module.asc +7 -0
  181. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module.asc.md5 +1 -0
  182. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module.asc.sha1 +1 -0
  183. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module.asc.sha256 +1 -0
  184. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module.asc.sha512 +1 -0
  185. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module.md5 +1 -0
  186. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module.sha1 +1 -0
  187. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module.sha256 +1 -0
  188. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.module.sha512 +1 -0
  189. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom +99 -0
  190. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom.asc +7 -0
  191. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom.asc.md5 +1 -0
  192. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom.asc.sha1 +1 -0
  193. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom.asc.sha256 +1 -0
  194. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom.asc.sha512 +1 -0
  195. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom.md5 +1 -0
  196. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom.sha1 +1 -0
  197. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom.sha256 +1 -0
  198. package/android/maven/ai/doorstep/doorstep-route/3.1.0/doorstep-route-3.1.0.pom.sha512 +1 -0
  199. package/android/maven/ai/doorstep/doorstep-route/maven-metadata.xml +13 -0
  200. package/android/maven/ai/doorstep/doorstep-route/maven-metadata.xml.md5 +1 -0
  201. package/android/maven/ai/doorstep/doorstep-route/maven-metadata.xml.sha1 +1 -0
  202. package/android/maven/ai/doorstep/doorstep-route/maven-metadata.xml.sha256 +1 -0
  203. package/android/maven/ai/doorstep/doorstep-route/maven-metadata.xml.sha512 +1 -0
  204. package/android/src/main/AndroidManifest.xml +14 -2
  205. package/android/src/main/java/ai/doorstep/reactnative/DoorstepRNAutoStartProvider.kt +24 -0
  206. package/android/src/main/java/ai/doorstep/reactnative/DoorstepRNCore.kt +271 -0
  207. package/android/src/main/java/ai/doorstep/reactnative/DoorstepRNEmbedView.kt +135 -0
  208. package/android/src/main/java/ai/doorstep/reactnative/DoorstepRNEmbedViewManager.kt +61 -0
  209. package/android/src/main/java/ai/doorstep/reactnative/DoorstepRNMap.kt +272 -0
  210. package/android/src/main/java/ai/doorstep/reactnative/DoorstepRNPermissions.kt +67 -0
  211. package/android/src/main/java/ai/doorstep/reactnative/DoorstepReactNative.kt +17 -0
  212. package/android/src/main/java/ai/doorstep/reactnative/DoorstepReactNativeModule.kt +219 -0
  213. package/android/src/main/java/ai/doorstep/reactnative/DoorstepReactNativePackage.kt +21 -0
  214. package/ios/DoorstepRNAutoStart.m +32 -0
  215. package/ios/DoorstepRNCore.swift +302 -0
  216. package/ios/DoorstepRNEmbedHost.swift +110 -0
  217. package/ios/DoorstepRNEmbedView.h +8 -0
  218. package/ios/DoorstepRNEmbedView.mm +94 -0
  219. package/ios/DoorstepRNMap.swift +308 -0
  220. package/ios/DoorstepRNModuleImpl.swift +159 -0
  221. package/ios/DoorstepReactNative.h +12 -0
  222. package/ios/DoorstepReactNative.mm +118 -0
  223. package/ios/{DoorstepDropoffSDK.xcframework → Frameworks/DoorstepCore.xcframework}/Info.plist +4 -8
  224. package/ios/Frameworks/DoorstepCore.xcframework/_CodeSignature/CodeDirectory +0 -0
  225. package/ios/Frameworks/DoorstepCore.xcframework/_CodeSignature/CodeRequirements +0 -0
  226. package/ios/Frameworks/DoorstepCore.xcframework/_CodeSignature/CodeResources +285 -0
  227. package/ios/Frameworks/DoorstepCore.xcframework/_CodeSignature/CodeSignature +0 -0
  228. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64/DoorstepCore.framework/DoorstepCore +0 -0
  229. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64/DoorstepCore.framework/Headers/DoorstepCore-Swift.h +382 -0
  230. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64/DoorstepCore.framework/Headers/DoorstepCore.h +2 -0
  231. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64/DoorstepCore.framework/Headers/DoorstepCoreBootstrap.h +16 -0
  232. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64/DoorstepCore.framework/Info.plist +0 -0
  233. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64/DoorstepCore.framework/Modules/DoorstepCore.swiftmodule/arm64-apple-ios.swiftinterface +279 -0
  234. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64/DoorstepCore.framework/Modules/module.modulemap +10 -0
  235. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64/DoorstepCore.framework/PrivacyInfo.xcprivacy +41 -0
  236. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64_x86_64-simulator/DoorstepCore.framework/DoorstepCore +0 -0
  237. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64_x86_64-simulator/DoorstepCore.framework/Headers/DoorstepCore-Swift.h +760 -0
  238. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64_x86_64-simulator/DoorstepCore.framework/Headers/DoorstepCore.h +2 -0
  239. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64_x86_64-simulator/DoorstepCore.framework/Headers/DoorstepCoreBootstrap.h +16 -0
  240. package/ios/{DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework → Frameworks/DoorstepCore.xcframework/ios-arm64_x86_64-simulator/DoorstepCore.framework}/Info.plist +0 -0
  241. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64_x86_64-simulator/DoorstepCore.framework/Modules/DoorstepCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +279 -0
  242. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64_x86_64-simulator/DoorstepCore.framework/Modules/DoorstepCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +279 -0
  243. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64_x86_64-simulator/DoorstepCore.framework/Modules/module.modulemap +10 -0
  244. package/ios/Frameworks/DoorstepCore.xcframework/ios-arm64_x86_64-simulator/DoorstepCore.framework/PrivacyInfo.xcprivacy +41 -0
  245. package/ios/Frameworks/DoorstepEmbed.xcframework/Info.plist +44 -0
  246. package/ios/Frameworks/DoorstepEmbed.xcframework/_CodeSignature/CodeDirectory +0 -0
  247. package/ios/Frameworks/DoorstepEmbed.xcframework/_CodeSignature/CodeRequirements +0 -0
  248. package/ios/Frameworks/DoorstepEmbed.xcframework/_CodeSignature/CodeResources +241 -0
  249. package/ios/Frameworks/DoorstepEmbed.xcframework/_CodeSignature/CodeSignature +0 -0
  250. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64/DoorstepEmbed.framework/DoorstepEmbed +0 -0
  251. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64/DoorstepEmbed.framework/Headers/DoorstepEmbed-Swift.h +382 -0
  252. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64/DoorstepEmbed.framework/Info.plist +0 -0
  253. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64/DoorstepEmbed.framework/Modules/DoorstepEmbed.swiftmodule/arm64-apple-ios.swiftinterface +93 -0
  254. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64/DoorstepEmbed.framework/Modules/module.modulemap +3 -0
  255. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64/DoorstepEmbed.framework/PrivacyInfo.xcprivacy +25 -0
  256. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64_x86_64-simulator/DoorstepEmbed.framework/DoorstepEmbed +0 -0
  257. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64_x86_64-simulator/DoorstepEmbed.framework/Headers/DoorstepEmbed-Swift.h +760 -0
  258. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64_x86_64-simulator/DoorstepEmbed.framework/Info.plist +0 -0
  259. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64_x86_64-simulator/DoorstepEmbed.framework/Modules/DoorstepEmbed.swiftmodule/arm64-apple-ios-simulator.swiftinterface +93 -0
  260. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64_x86_64-simulator/DoorstepEmbed.framework/Modules/DoorstepEmbed.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +93 -0
  261. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64_x86_64-simulator/DoorstepEmbed.framework/Modules/module.modulemap +3 -0
  262. package/ios/Frameworks/DoorstepEmbed.xcframework/ios-arm64_x86_64-simulator/DoorstepEmbed.framework/PrivacyInfo.xcprivacy +25 -0
  263. package/ios/Frameworks/DoorstepPermissions.xcframework/Info.plist +44 -0
  264. package/ios/Frameworks/DoorstepPermissions.xcframework/_CodeSignature/CodeDirectory +0 -0
  265. package/ios/Frameworks/DoorstepPermissions.xcframework/_CodeSignature/CodeRequirements +0 -0
  266. package/ios/Frameworks/DoorstepPermissions.xcframework/_CodeSignature/CodeResources +241 -0
  267. package/ios/Frameworks/DoorstepPermissions.xcframework/_CodeSignature/CodeSignature +0 -0
  268. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64/DoorstepPermissions.framework/DoorstepPermissions +0 -0
  269. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64/DoorstepPermissions.framework/Headers/DoorstepPermissions-Swift.h +382 -0
  270. package/ios/{DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework → Frameworks/DoorstepPermissions.xcframework/ios-arm64/DoorstepPermissions.framework}/Info.plist +0 -0
  271. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64/DoorstepPermissions.framework/Modules/DoorstepPermissions.swiftmodule/arm64-apple-ios.swiftinterface +151 -0
  272. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64/DoorstepPermissions.framework/Modules/module.modulemap +3 -0
  273. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64/DoorstepPermissions.framework/PrivacyInfo.xcprivacy +17 -0
  274. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64_x86_64-simulator/DoorstepPermissions.framework/DoorstepPermissions +0 -0
  275. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64_x86_64-simulator/DoorstepPermissions.framework/Headers/DoorstepPermissions-Swift.h +760 -0
  276. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64_x86_64-simulator/DoorstepPermissions.framework/Info.plist +0 -0
  277. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64_x86_64-simulator/DoorstepPermissions.framework/Modules/DoorstepPermissions.swiftmodule/arm64-apple-ios-simulator.swiftinterface +151 -0
  278. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64_x86_64-simulator/DoorstepPermissions.framework/Modules/DoorstepPermissions.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +151 -0
  279. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64_x86_64-simulator/DoorstepPermissions.framework/Modules/module.modulemap +3 -0
  280. package/ios/Frameworks/DoorstepPermissions.xcframework/ios-arm64_x86_64-simulator/DoorstepPermissions.framework/PrivacyInfo.xcprivacy +17 -0
  281. package/ios/Frameworks/DoorstepRealTime.xcframework/Info.plist +44 -0
  282. package/ios/Frameworks/DoorstepRealTime.xcframework/_CodeSignature/CodeDirectory +0 -0
  283. package/ios/Frameworks/DoorstepRealTime.xcframework/_CodeSignature/CodeRequirements +0 -0
  284. package/ios/Frameworks/DoorstepRealTime.xcframework/_CodeSignature/CodeResources +241 -0
  285. package/ios/Frameworks/DoorstepRealTime.xcframework/_CodeSignature/CodeSignature +0 -0
  286. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64/DoorstepRealTime.framework/DoorstepRealTime +0 -0
  287. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64/DoorstepRealTime.framework/Headers/DoorstepRealTime-Swift.h +382 -0
  288. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64/DoorstepRealTime.framework/Info.plist +0 -0
  289. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64/DoorstepRealTime.framework/Modules/DoorstepRealTime.swiftmodule/arm64-apple-ios.swiftinterface +906 -0
  290. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64/DoorstepRealTime.framework/Modules/module.modulemap +3 -0
  291. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64/DoorstepRealTime.framework/PrivacyInfo.xcprivacy +33 -0
  292. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64_x86_64-simulator/DoorstepRealTime.framework/DoorstepRealTime +0 -0
  293. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64_x86_64-simulator/DoorstepRealTime.framework/Headers/DoorstepRealTime-Swift.h +760 -0
  294. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64_x86_64-simulator/DoorstepRealTime.framework/Info.plist +0 -0
  295. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64_x86_64-simulator/DoorstepRealTime.framework/Modules/DoorstepRealTime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +906 -0
  296. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64_x86_64-simulator/DoorstepRealTime.framework/Modules/DoorstepRealTime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +906 -0
  297. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64_x86_64-simulator/DoorstepRealTime.framework/Modules/module.modulemap +3 -0
  298. package/ios/Frameworks/DoorstepRealTime.xcframework/ios-arm64_x86_64-simulator/DoorstepRealTime.framework/PrivacyInfo.xcprivacy +33 -0
  299. package/ios/Frameworks/DoorstepRoute.xcframework/Info.plist +44 -0
  300. package/ios/Frameworks/DoorstepRoute.xcframework/_CodeSignature/CodeDirectory +0 -0
  301. package/ios/Frameworks/DoorstepRoute.xcframework/_CodeSignature/CodeRequirements +0 -0
  302. package/ios/Frameworks/DoorstepRoute.xcframework/_CodeSignature/CodeResources +285 -0
  303. package/ios/Frameworks/DoorstepRoute.xcframework/_CodeSignature/CodeSignature +0 -0
  304. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64/DoorstepRoute.framework/DoorstepRoute +0 -0
  305. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64/DoorstepRoute.framework/Headers/DoorstepRoute-Swift.h +382 -0
  306. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64/DoorstepRoute.framework/Headers/DoorstepRoute.h +2 -0
  307. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64/DoorstepRoute.framework/Headers/DoorstepRouteBootstrap.h +19 -0
  308. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64/DoorstepRoute.framework/Info.plist +0 -0
  309. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64/DoorstepRoute.framework/Modules/DoorstepRoute.swiftmodule/arm64-apple-ios.swiftinterface +259 -0
  310. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64/DoorstepRoute.framework/Modules/module.modulemap +10 -0
  311. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64/DoorstepRoute.framework/PrivacyInfo.xcprivacy +33 -0
  312. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64_x86_64-simulator/DoorstepRoute.framework/DoorstepRoute +0 -0
  313. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64_x86_64-simulator/DoorstepRoute.framework/Headers/DoorstepRoute-Swift.h +760 -0
  314. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64_x86_64-simulator/DoorstepRoute.framework/Headers/DoorstepRoute.h +2 -0
  315. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64_x86_64-simulator/DoorstepRoute.framework/Headers/DoorstepRouteBootstrap.h +19 -0
  316. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64_x86_64-simulator/DoorstepRoute.framework/Info.plist +0 -0
  317. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64_x86_64-simulator/DoorstepRoute.framework/Modules/DoorstepRoute.swiftmodule/arm64-apple-ios-simulator.swiftinterface +259 -0
  318. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64_x86_64-simulator/DoorstepRoute.framework/Modules/DoorstepRoute.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +259 -0
  319. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64_x86_64-simulator/DoorstepRoute.framework/Modules/module.modulemap +10 -0
  320. package/ios/Frameworks/DoorstepRoute.xcframework/ios-arm64_x86_64-simulator/DoorstepRoute.framework/PrivacyInfo.xcprivacy +33 -0
  321. package/lib/module/DoorstepEmbedViewNativeComponent.ts +51 -0
  322. package/lib/module/NativeDoorstep.ts +56 -0
  323. package/lib/module/compat.js +226 -0
  324. package/lib/module/compat.js.map +1 -0
  325. package/lib/module/doorstep.js +100 -0
  326. package/lib/module/doorstep.js.map +1 -0
  327. package/lib/module/embed.js +138 -0
  328. package/lib/module/embed.js.map +1 -0
  329. package/lib/module/index.js +16 -4
  330. package/lib/module/index.js.map +1 -1
  331. package/lib/module/internal.js +72 -0
  332. package/lib/module/internal.js.map +1 -0
  333. package/lib/module/permissions.js +78 -0
  334. package/lib/module/permissions.js.map +1 -0
  335. package/lib/module/realtime.js +86 -0
  336. package/lib/module/realtime.js.map +1 -0
  337. package/lib/module/route.js +57 -0
  338. package/lib/module/route.js.map +1 -0
  339. package/lib/module/types.js +4 -0
  340. package/lib/module/types.js.map +1 -0
  341. package/lib/typescript/src/DoorstepEmbedViewNativeComponent.d.ts +50 -0
  342. package/lib/typescript/src/DoorstepEmbedViewNativeComponent.d.ts.map +1 -0
  343. package/lib/typescript/src/NativeDoorstep.d.ts +36 -0
  344. package/lib/typescript/src/NativeDoorstep.d.ts.map +1 -0
  345. package/lib/typescript/src/compat.d.ts +77 -0
  346. package/lib/typescript/src/compat.d.ts.map +1 -0
  347. package/lib/typescript/src/doorstep.d.ts +3 -0
  348. package/lib/typescript/src/doorstep.d.ts.map +1 -0
  349. package/lib/typescript/src/embed.d.ts +5 -0
  350. package/lib/typescript/src/embed.d.ts.map +1 -0
  351. package/lib/typescript/src/index.d.ts +11 -6
  352. package/lib/typescript/src/index.d.ts.map +1 -1
  353. package/lib/typescript/src/internal.d.ts +20 -0
  354. package/lib/typescript/src/internal.d.ts.map +1 -0
  355. package/lib/typescript/src/permissions.d.ts +3 -0
  356. package/lib/typescript/src/permissions.d.ts.map +1 -0
  357. package/lib/typescript/src/realtime.d.ts +3 -0
  358. package/lib/typescript/src/realtime.d.ts.map +1 -0
  359. package/lib/typescript/src/route.d.ts +3 -0
  360. package/lib/typescript/src/route.d.ts.map +1 -0
  361. package/lib/typescript/src/types.d.ts +1043 -0
  362. package/lib/typescript/src/types.d.ts.map +1 -0
  363. package/package.json +47 -65
  364. package/src/DoorstepEmbedViewNativeComponent.ts +51 -0
  365. package/src/NativeDoorstep.ts +56 -0
  366. package/src/compat.ts +240 -0
  367. package/src/doorstep.ts +110 -0
  368. package/src/embed.tsx +137 -0
  369. package/src/index.ts +19 -0
  370. package/src/internal.ts +61 -0
  371. package/src/permissions.ts +66 -0
  372. package/src/realtime.ts +120 -0
  373. package/src/route.ts +53 -0
  374. package/src/types.ts +1110 -0
  375. package/README.md +0 -593
  376. package/android/libs/doorstepai-tracking-sdk-api-prod-release.aar +0 -0
  377. package/android/src/main/AndroidManifestNew.xml +0 -2
  378. package/android/src/main/java/com/doorstepai/dropoffsdk/DoorstepAIModule.kt +0 -1064
  379. package/android/src/main/java/com/doorstepai/dropoffsdk/DoorstepEmbedViewManager.kt +0 -241
  380. package/android/src/main/java/com/doorstepai/dropoffsdk/DropoffSdkPackage.kt +0 -19
  381. package/android/src/main/java/com/doorstepai/dropoffsdk/HostForegroundServiceWaiter.kt +0 -98
  382. package/ios/DoorstepAI.mm +0 -109
  383. package/ios/DoorstepAI.swift +0 -610
  384. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  385. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Headers/DoorstepDropoffSDK.h +0 -19
  386. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Headers/RateReducer.h +0 -117
  387. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.abi.json +0 -20490
  388. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -415
  389. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  390. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios.swiftinterface +0 -415
  391. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/Modules/module.modulemap +0 -6
  392. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/PrivacyInfo.xcprivacy +0 -39
  393. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +0 -201
  394. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Info.plist +0 -20
  395. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  396. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +0 -5074
  397. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/DoorstepDropoffSDK +0 -0
  398. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Headers/DoorstepDropoffSDK.h +0 -19
  399. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Headers/RateReducer.h +0 -117
  400. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -20490
  401. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -415
  402. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  403. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -415
  404. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -20490
  405. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -415
  406. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  407. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/DoorstepDropoffSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -415
  408. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/Modules/module.modulemap +0 -6
  409. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/PrivacyInfo.xcprivacy +0 -39
  410. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/DoorstepDropoffSDK.framework/_CodeSignature/CodeResources +0 -256
  411. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Info.plist +0 -20
  412. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/DWARF/DoorstepDropoffSDK +0 -0
  413. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/DoorstepDropoffSDK.yml +0 -5075
  414. package/ios/DoorstepDropoffSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/DoorstepDropoffSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/DoorstepDropoffSDK.yml +0 -5037
  415. package/ios/DoorstepEmbedViewManager.mm +0 -29
  416. package/ios/DoorstepEmbedViewManager.swift +0 -184
  417. package/ios/DropoffSdk-Bridging-Header.h +0 -2
  418. package/ios/RootDoorstepAIViewManager.mm +0 -5
  419. package/ios/RootDoorstepAIViewManager.swift +0 -16
  420. package/lib/module/DoorstepAI.js +0 -758
  421. package/lib/module/DoorstepAI.js.map +0 -1
  422. package/lib/module/DoorstepEmbedView.js +0 -89
  423. package/lib/module/DoorstepEmbedView.js.map +0 -1
  424. package/lib/module/RootDoorstepAI.js +0 -118
  425. package/lib/module/RootDoorstepAI.js.map +0 -1
  426. package/lib/typescript/embed-preload.example.d.ts +0 -25
  427. package/lib/typescript/embed-preload.example.d.ts.map +0 -1
  428. package/lib/typescript/src/DoorstepAI.d.ts +0 -538
  429. package/lib/typescript/src/DoorstepAI.d.ts.map +0 -1
  430. package/lib/typescript/src/DoorstepEmbedView.d.ts +0 -68
  431. package/lib/typescript/src/DoorstepEmbedView.d.ts.map +0 -1
  432. package/lib/typescript/src/RootDoorstepAI.d.ts +0 -37
  433. package/lib/typescript/src/RootDoorstepAI.d.ts.map +0 -1
  434. package/src/DoorstepAI.tsx +0 -1233
  435. package/src/DoorstepEmbedView.tsx +0 -185
  436. package/src/RootDoorstepAI.tsx +0 -178
  437. package/src/index.tsx +0 -32
@@ -1,1233 +0,0 @@
1
- import { NativeModules, NativeEventEmitter, Platform } from 'react-native';
2
- import type { EmitterSubscription } from 'react-native';
3
- import { DoorstepEmbedView } from './DoorstepEmbedView';
4
- const { DoorstepAI } = NativeModules;
5
-
6
- // Bridges the native geofence-session event stream (iOS RCTEventEmitter /
7
- // Android DeviceEventManagerModule) to JS. See `addGeofenceSessionListener`.
8
- const GEOFENCE_SESSION_EVENT = 'DoorstepGeofenceSessionEvent';
9
- const doorstepEventEmitter = DoorstepAI
10
- ? new NativeEventEmitter(DoorstepAI)
11
- : undefined;
12
-
13
- type AddressType = {
14
- streetNumber: string;
15
- route: string;
16
- subPremise: string;
17
- locality: string;
18
- administrativeAreaLevel1: string;
19
- postalCode: string;
20
- };
21
-
22
- type LatLngObject = {
23
- lat: number;
24
- lng: number;
25
- };
26
-
27
- /**
28
- * A single stop the SDK should geofence in `startRouteGeofencing`. On geofence
29
- * ENTER the SDK auto-starts a delivery session for `deliveryId`; on EXIT it stops
30
- * it according to server-owned `misc.geofence.waitForDropoff` policy.
31
- */
32
- type DeliveryStop = {
33
- deliveryId: string;
34
- address: string;
35
- latitude: number;
36
- longitude: number;
37
- /** Stable stop identity, defaulting to deliveryId in the native SDK. */
38
- routeStopId?: string;
39
- /** @deprecated Ignored; the server owns geofence radius. */
40
- radiusMeters?: number;
41
- customerId?: string;
42
- driverId?: string;
43
- };
44
-
45
- /** Route-wide options for `startRouteGeofencing`. */
46
- type RouteOptions = {
47
- /** @deprecated Ignored; the server owns geofence radius. */
48
- defaultRadiusMeters?: number;
49
- /** Per-session safety timeout (s) forwarded to the auto-started delivery. */
50
- timeoutSeconds?: number;
51
- /** Auto-stop countdown (s) applied when `stopDelivery` is called for a stop. */
52
- autoStopAfterDropoffSeconds?: number;
53
- /** Android only. Host owns the foreground service; SDK won't promote its own. Ignored on iOS. */
54
- manualForeground?: boolean;
55
- /** Android only. Maximum age of durable route intent in seconds. */
56
- maxAgeSeconds?: number;
57
- /** Optional host business route identifier. */
58
- clientRouteId?: string;
59
- /** Optional driver identifier for the whole route. */
60
- driverId?: string;
61
- /** Small business metadata; native route options accept string values. */
62
- metadata?: Record<string, string>;
63
- };
64
-
65
- /** @deprecated Use RouteOptions. Kept for existing integrations. */
66
- type RouteGeofenceOptions = RouteOptions;
67
-
68
- type GeofenceSessionEventType = 'STARTED' | 'STOPPED';
69
-
70
- /** Emitted whenever route geofencing auto-starts or auto-stops a session. */
71
- type GeofenceSessionEvent = {
72
- deliveryId: string;
73
- type: GeofenceSessionEventType;
74
- /** Short trigger tag, e.g. "geofence", "distance", "route_cleared". */
75
- reason: string;
76
- };
77
-
78
- /**
79
- * Per-delivery options shared across both platforms. Fields not supported on a
80
- * given platform are silently ignored.
81
- */
82
- type StartDeliveryOptions = {
83
- /**
84
- * Hard upper bound on the delivery's tracking session in seconds. When the
85
- * timer fires the SDK calls `stopDelivery` automatically.
86
- *
87
- * Omit it for NO backstop — that is the native behaviour on both platforms.
88
- * This wrapper used to substitute 3600 s here, which silently force-stopped
89
- * every delivery at one hour and re-created a bug the native SDK had already
90
- * removed. It now passes your value through untouched.
91
- */
92
- timeoutSeconds?: number;
93
- /**
94
- * Optional countdown (in seconds) to auto-stop the delivery once
95
- * `stopDelivery` is invoked. Survives backgrounding/process death on both
96
- * platforms (UserDefaults on iOS, AlarmManager on Android).
97
- */
98
- autoStopAfterDropoffSeconds?: number;
99
- /**
100
- * Android only. When `true`, the SDK will NOT promote its internal
101
- * tracking service to the foreground — it expects the host app to already
102
- * be running its own foreground service that keeps the process alive.
103
- * Ignored on iOS.
104
- */
105
- manualForeground?: boolean;
106
- /**
107
- * Optional customer identifier associated with this delivery. Forwarded to
108
- * the native SDK on both platforms.
109
- */
110
- customerId?: string;
111
- /**
112
- * Optional driver identifier associated with this delivery. Forwarded to the
113
- * native SDK on both platforms.
114
- */
115
- driverId?: string;
116
- };
117
-
118
- /**
119
- * A runtime-permission **bucket** — one bucket is one user-visible OS decision,
120
- * spelled exactly as the native SDK spells it.
121
- *
122
- * The buckets are deliberately OS-specific, because the platforms are: iOS has a
123
- * single Motion & Fitness authorization and no WiFi-scan permission at all,
124
- * Android splits BLE scanning, nearby-WiFi and notifications into their own
125
- * dialogs. Only the two location buckets exist on both.
126
- *
127
- * | bucket | iOS | Android |
128
- * |---|---|---|
129
- * | `locationWhenInUse` | `requestWhenInUseAuthorization` | `ACCESS_FINE_LOCATION` + `ACCESS_COARSE_LOCATION` |
130
- * | `locationAlways` | `requestAlwaysAuthorization` | `ACCESS_BACKGROUND_LOCATION` |
131
- * | `motionFitness` | Motion & Fitness | — (use `activityRecognition`) |
132
- * | `activityRecognition` | — (use `motionFitness`) | `ACTIVITY_RECOGNITION` |
133
- * | `bluetooth` | `CBCentralManager` | — (use `bluetoothScan`) |
134
- * | `bluetoothScan` | — (use `bluetooth`) | `BLUETOOTH_SCAN` (API 31+) |
135
- * | `nearbyWifiDevices` | — | `NEARBY_WIFI_DEVICES` (API 33+) |
136
- * | `notifications` | — | `POST_NOTIFICATIONS` (API 33+) |
137
- *
138
- * You may pass **either platform's** name on either platform: the wrapper
139
- * translates the counterpart bucket (`motionFitness` ⇄ `activityRecognition`,
140
- * `bluetooth` ⇄ `bluetoothScan`) so one whitelist works on both without a
141
- * `Platform.OS` branch. A bucket with no counterpart at all (`nearbyWifiDevices`
142
- * / `notifications` on iOS) is reported back in `unsupported` rather than
143
- * silently dropped.
144
- */
145
- type DoorstepPermission =
146
- | 'locationWhenInUse'
147
- | 'locationAlways'
148
- | 'motionFitness'
149
- | 'bluetooth'
150
- | 'activityRecognition'
151
- | 'bluetoothScan'
152
- | 'nearbyWifiDevices'
153
- | 'notifications';
154
-
155
- /**
156
- * Coarse aliases accepted anywhere a {@link DoorstepPermission} is, kept because
157
- * they are what the published 2.x wrapper API took. Each expands to this
158
- * platform's buckets: `location` → both location buckets, `motion` / `activity`
159
- * → the platform's motion bucket, `bluetooth` → the platform's BLE bucket
160
- * (`bluetooth` is also a real iOS bucket name, so it is both).
161
- */
162
- type DoorstepPermissionAlias = 'location' | 'motion' | 'activity';
163
-
164
- /** Anything the whitelist accepts. */
165
- type DoorstepPermissionInput = DoorstepPermission | DoorstepPermissionAlias;
166
-
167
- /**
168
- * The state of one bucket. Eight states, **identical names on both platforms**,
169
- * so host code branches once.
170
- *
171
- * - `granted` — held right now.
172
- * - `notDetermined` — never asked; a request will show a dialog.
173
- * - `whenInUseOnly` — **load-bearing.** Foreground location held, background not
174
- * (iOS "While Using the App" / Android foreground-only). Only ever reported for
175
- * `locationAlways`. Never treat it as `granted`: background collection and
176
- * route geofencing do not work in it.
177
- * - `denied` — refused, but another prompt is still possible. Android only; iOS
178
- * refusals are always final.
179
- * - `permanentlyDenied` — refused with no further prompt possible. Deep-link the
180
- * user to Settings. Every iOS refusal lands here.
181
- * - `restricted` — blocked by device policy / MDM / Screen Time.
182
- * - `unavailable` — the OS version or the hardware does not have it. Not a
183
- * failure, nothing to request.
184
- * - `notDeclared` — **the HOST BUILD is missing the declaration**
185
- * (`<uses-permission>` on Android, an `NS…UsageDescription` key on iOS), so the
186
- * OS would never show a dialog. Fixable by you; it is NOT a user refusal.
187
- */
188
- type DoorstepPermissionState =
189
- | 'granted'
190
- | 'notDetermined'
191
- | 'whenInUseOnly'
192
- | 'denied'
193
- | 'permanentlyDenied'
194
- | 'restricted'
195
- | 'unavailable'
196
- | 'notDeclared';
197
-
198
- /** The evaluated state of one bucket. */
199
- type DoorstepPermissionStatus = {
200
- permission: DoorstepPermission;
201
- state: DoorstepPermissionState;
202
- /**
203
- * Raw evidence in the OS's own vocabulary (`"authorizedWhenInUse"`,
204
- * `"ACCESS_FINE_LOCATION=granted,ACCESS_COARSE_LOCATION=denied"`, …).
205
- * Diagnostic only — never branch on it.
206
- */
207
- osStatus: string;
208
- /** True when `requestPermissions` would actually raise a dialog for it. */
209
- canRequest: boolean;
210
- };
211
-
212
- /**
213
- * The grant state of one permission in the **legacy** three-value vocabulary the
214
- * published 2.x wrapper API used. `'prompt'` means "not determined yet".
215
- *
216
- * @deprecated Read {@link PermissionStatus.statuses} instead — it distinguishes
217
- * `whenInUseOnly`, `permanentlyDenied` and `notDeclared`, all of which collapse
218
- * away here.
219
- */
220
- type PermissionState = 'granted' | 'denied' | 'prompt';
221
-
222
- /**
223
- * The three coarse domains of the legacy view.
224
- *
225
- * @deprecated Use {@link DoorstepPermission}.
226
- */
227
- type DoorstepPermissionType = 'location' | 'motion' | 'bluetooth';
228
-
229
- /** What {@link DoorstepAIModule.checkPermissions} answers. */
230
- interface PermissionStatus {
231
- /**
232
- * One entry per whitelisted bucket, keyed by bucket name. This is the real
233
- * answer; everything else on this object is a convenience over it.
234
- */
235
- statuses: Partial<Record<DoorstepPermission, DoorstepPermissionStatus>>;
236
- /**
237
- * The legacy three-key view, kept so hosts written against the published 2.x
238
- * API keep working. Collapsed from `statuses` as: `whenInUseOnly` and
239
- * `unavailable` → `'granted'`, `notDetermined` → `'prompt'`, everything else
240
- * (including `notDeclared`) → `'denied'`.
241
- *
242
- * `motion` is unconditionally `'granted'` on Android, as it has always been, and
243
- * that is the honest answer to what the key asks: Android's IMU streams need no
244
- * runtime grant, so motion collection is always possible. `activityRecognition`
245
- * adds only the step-counter streams — read `statuses.activityRecognition` if you
246
- * need its real state. On iOS `motion` does track Motion & Fitness, which really
247
- * does gate capability there.
248
- *
249
- * @deprecated Read `statuses`.
250
- */
251
- permissions: Record<DoorstepPermissionType, PermissionState>;
252
- /**
253
- * Whitelist entries this platform has no bucket for, echoed back rather than
254
- * dropped in silence (e.g. `notifications` on iOS).
255
- */
256
- unsupported: string[];
257
- }
258
-
259
- /** What {@link DoorstepAIModule.requestPermissions} answers. */
260
- interface PermissionRequestResult extends PermissionStatus {
261
- /** Buckets a dialog was actually raised for. */
262
- requested: DoorstepPermission[];
263
- /**
264
- * Whitelisted buckets that were already answered, so the default policy left
265
- * them alone.
266
- */
267
- alreadyDetermined: DoorstepPermission[];
268
- /**
269
- * Whitelisted buckets that cannot be requested on this device or in this build
270
- * (`unavailable` or `notDeclared`).
271
- */
272
- unavailable: DoorstepPermission[];
273
- /**
274
- * Whitelisted buckets deliberately skipped, with the reason. The one to expect:
275
- * `locationAlways` is only ever asked **alone and after foreground location is
276
- * granted**, so a whitelist containing anything else askable defers it — call
277
- * again once the first batch is answered.
278
- */
279
- deferred: Partial<Record<DoorstepPermission, string>>;
280
- /** True when at least one dialog was raised. */
281
- didRequest: boolean;
282
- /**
283
- * Android only, diagnostic: the manifest permission strings actually passed to
284
- * `ActivityCompat.requestPermissions`.
285
- */
286
- androidPermissions?: string[];
287
- }
288
-
289
- /** Options for {@link DoorstepAIModule.requestPermissions}. */
290
- interface PermissionRequestOptions {
291
- /**
292
- * The whitelist: **exactly these buckets are requested, and nothing else**.
293
- * Omit it (or pass `undefined`) to request every bucket the platform has.
294
- *
295
- * An empty array requests nothing — it is not the same as omitting the field.
296
- */
297
- permissions?: DoorstepPermissionInput[];
298
- /**
299
- * Skip buckets the user has already answered. Default `true`, which is what
300
- * makes a launch-time call safe and what stops a deliberate "While Using the
301
- * App" choice from being re-escalated. **iOS only** — on Android a first denial
302
- * is re-askable by design, so the native planner always re-asks it.
303
- */
304
- onlyIfNotDetermined?: boolean;
305
- /**
306
- * How long to wait for each answer before giving up and reporting the state as
307
- * it stands (default 120 s). A prompt the user never answers is reported
308
- * `notDetermined`, not guessed at.
309
- */
310
- timeoutSeconds?: number;
311
- }
312
-
313
- // ---- Whitelist normalisation ----------------------------------------------
314
- //
315
- // A NAMING translation, not a permission list: it maps the names the two native
316
- // SDKs use onto each other so one host whitelist compiles on both. It never adds
317
- // or removes a bucket of its own accord, and it never decides what gets
318
- // requested — the native planner owns that.
319
-
320
- const IOS_ALIASES: Record<string, DoorstepPermission[]> = {
321
- location: ['locationWhenInUse', 'locationAlways'],
322
- locationwheninuse: ['locationWhenInUse'],
323
- locationalways: ['locationAlways'],
324
- motion: ['motionFitness'],
325
- activity: ['motionFitness'],
326
- motionfitness: ['motionFitness'],
327
- activityrecognition: ['motionFitness'],
328
- bluetooth: ['bluetooth'],
329
- bluetoothscan: ['bluetooth'],
330
- nearbywifidevices: [],
331
- notifications: [],
332
- };
333
-
334
- const ANDROID_ALIASES: Record<string, DoorstepPermission[]> = {
335
- location: ['locationWhenInUse', 'locationAlways'],
336
- locationwheninuse: ['locationWhenInUse'],
337
- locationalways: ['locationAlways'],
338
- motion: ['activityRecognition'],
339
- activity: ['activityRecognition'],
340
- motionfitness: ['activityRecognition'],
341
- activityrecognition: ['activityRecognition'],
342
- bluetooth: ['bluetoothScan'],
343
- bluetoothscan: ['bluetoothScan'],
344
- nearbywifidevices: ['nearbyWifiDevices'],
345
- notifications: ['notifications'],
346
- };
347
-
348
- /** Every bucket this platform has, derived from the one alias table above. */
349
- function platformBuckets(): DoorstepPermission[] {
350
- const table = Platform.OS === 'ios' ? IOS_ALIASES : ANDROID_ALIASES;
351
- const out: DoorstepPermission[] = [];
352
- for (const mapped of Object.values(table)) {
353
- for (const bucket of mapped) if (!out.includes(bucket)) out.push(bucket);
354
- }
355
- return out;
356
- }
357
-
358
- type NormalizedWhitelist = {
359
- /** `undefined` = no whitelist = every bucket. Never `[]` for that case. */
360
- buckets: DoorstepPermission[] | undefined;
361
- unsupported: string[];
362
- };
363
-
364
- function normalizeWhitelist(
365
- permissions: DoorstepPermissionInput[] | undefined
366
- ): NormalizedWhitelist {
367
- if (permissions == null) return { buckets: undefined, unsupported: [] };
368
- const table = Platform.OS === 'ios' ? IOS_ALIASES : ANDROID_ALIASES;
369
- const buckets: DoorstepPermission[] = [];
370
- const unsupported: string[] = [];
371
- for (const raw of permissions) {
372
- const mapped = table[String(raw).trim().toLowerCase()];
373
- if (mapped == null || mapped.length === 0) {
374
- unsupported.push(String(raw));
375
- continue;
376
- }
377
- for (const bucket of mapped) {
378
- if (!buckets.includes(bucket)) buckets.push(bucket);
379
- }
380
- }
381
- return { buckets, unsupported };
382
- }
383
-
384
- /** Merges the wrapper-side `unsupported` list into whatever native answered. */
385
- function withUnsupported<T extends { unsupported?: string[] }>(
386
- payload: T,
387
- unsupported: string[]
388
- ): T & { unsupported: string[] } {
389
- return {
390
- ...payload,
391
- unsupported: [...(payload.unsupported ?? []), ...unsupported],
392
- };
393
- }
394
-
395
- /**
396
- * Mirrors the iOS SDK's `SDKLogLevel` enum. Only used by
397
- * `configureRemoteLogging` (iOS only).
398
- */
399
- type SDKLogLevel = 'debug' | 'info' | 'warning' | 'error' | 'critical';
400
-
401
- /**
402
- * Rejects instead of resolving a fabricated value: the Android runtime-permission
403
- * query helpers have no counterpart on iOS, and a helper that silently resolved
404
- * `true`/`[]` would read as "granted" / "nothing needed" to a cross-platform host.
405
- */
406
- function unsupportedOnThisPlatform(
407
- method: string,
408
- supportedOn: 'iOS' | 'Android'
409
- ): Promise<never> {
410
- return Promise.reject(
411
- new Error(
412
- `DoorstepAI.${method} is ${supportedOn}-only; there is no native counterpart on ${Platform.OS}.`
413
- )
414
- );
415
- }
416
-
417
- const SDK_LOG_LEVEL_RAW: Record<SDKLogLevel, number> = {
418
- debug: 0,
419
- info: 1,
420
- warning: 2,
421
- error: 3,
422
- critical: 4,
423
- };
424
-
425
- /** Android-only host foreground-service readiness options. */
426
- type HostForegroundServiceWaitOptions = {
427
- /** Maximum wait in milliseconds, 0–120000. Default 10000; zero checks once. */
428
- timeoutMs?: number;
429
- /** Optional fully qualified service class. Omit to accept any non-Doorstep FGS. */
430
- serviceClassName?: string;
431
- };
432
-
433
- class DoorstepAIModule {
434
- /** Cross-platform native Doorstep Go embed component. */
435
- static readonly EmbedView = DoorstepEmbedView;
436
-
437
- /**
438
- * Android only. Resolves after observing a matching host service in foreground
439
- * state. Rejects on timeout, query failure, or native-module teardown. This does
440
- * not start a service or verify location permissions, fixes, or future uptime.
441
- */
442
- static async waitForHostForegroundService(
443
- options: HostForegroundServiceWaitOptions = {}
444
- ): Promise<void> {
445
- if (Platform.OS !== 'android') {
446
- return unsupportedOnThisPlatform(
447
- 'waitForHostForegroundService',
448
- 'Android'
449
- );
450
- }
451
- const { timeoutMs = 10_000, serviceClassName } = options;
452
- if (!Number.isInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 120_000) {
453
- throw new Error('timeoutMs must be an integer from 0 to 120000');
454
- }
455
- if (
456
- serviceClassName !== undefined &&
457
- (typeof serviceClassName !== 'string' || serviceClassName.trim() === '')
458
- ) {
459
- throw new Error(
460
- 'serviceClassName must be a nonempty fully qualified class name'
461
- );
462
- }
463
- if (typeof DoorstepAI?.waitForHostForegroundService !== 'function') {
464
- throw new Error(
465
- 'waitForHostForegroundService requires an updated native SDK build'
466
- );
467
- }
468
- await DoorstepAI.waitForHostForegroundService(
469
- timeoutMs,
470
- serviceClassName ?? null
471
- );
472
- }
473
-
474
- static isInitialized = false;
475
-
476
- static async init(
477
- notificationTitle?: string,
478
- notificationText?: string
479
- ): Promise<void> {
480
- if (Platform.OS === 'android') {
481
- if (this.isInitialized) {
482
- return;
483
- }
484
- try {
485
- await DoorstepAI.init(notificationTitle, notificationText);
486
- console.log('DOORSTEPAI - DoorstepAI initialized');
487
- this.isInitialized = true;
488
- } catch (error) {
489
- console.error('DOORSTEPAI - Failed to initialize DoorstepAI:', error);
490
- throw error;
491
- }
492
- } // iOS does not require explicit init in the bridge
493
- }
494
-
495
- static setApiKey(apiKey: string) {
496
- DoorstepAI.setApiKey(apiKey);
497
- }
498
-
499
- /**
500
- * Sets the API key for the Doorstep Go service, which is a separate credential
501
- * from {@link setApiKey}. Present on both native SDKs; a no-op if you do not use
502
- * Doorstep Go.
503
- */
504
- static setDoorstepGoApiKey(apiKey: string) {
505
- DoorstepAI.setDoorstepGoApiKey(apiKey);
506
- }
507
-
508
- /**
509
- * The native SDK's internal-state dump as compact JSON, for bug reports and
510
- * support logs. Free-form and unstable — never branch on it. **iOS only**
511
- * (`DoorstepAI.debugStateJson()`); the Android SDK has no counterpart, so it
512
- * rejects there.
513
- */
514
- static debugStateJson(): Promise<string> {
515
- if (Platform.OS !== 'ios') {
516
- return unsupportedOnThisPlatform('debugStateJson', 'iOS');
517
- }
518
- return DoorstepAI.debugStateJson();
519
- }
520
-
521
- /**
522
- * Re-registers the raw-GNSS callbacks after the OS has dropped them (some
523
- * devices stop delivering measurements without reporting an error). **Android
524
- * only** — iOS has no raw-GNSS access at all, so it rejects there.
525
- */
526
- static retryGnssCallbacks(): Promise<boolean> {
527
- if (Platform.OS !== 'android') {
528
- return unsupportedOnThisPlatform('retryGnssCallbacks', 'Android');
529
- }
530
- return DoorstepAI.retryGnssCallbacks();
531
- }
532
-
533
- // ---- Runtime permissions -------------------------------------------------
534
- // Every method below is a pass-through to the native SDK's own permission API.
535
- // The SDK owns the permission list and the prompt ordering; this wrapper used to
536
- // keep a second implementation beside it and drifted — it requested
537
- // ACCESS_FINE_LOCATION with no ACCESS_COARSE_LOCATION (Android 12+ ignores that
538
- // request outright), never requested ACCESS_BACKGROUND_LOCATION or
539
- // POST_NOTIFICATIONS at all, and requested ACTIVITY_RECOGNITION, which native
540
- // deliberately does not require (`internal/SensorCollectionManager.kt:139`).
541
-
542
- /**
543
- * The dangerous runtime permissions the native SDK needs on THIS device,
544
- * version-gated. **Android only.**
545
- *
546
- * Foreground set only — it deliberately excludes `ACCESS_BACKGROUND_LOCATION`,
547
- * which Android 11+ requires be requested separately and only after foreground
548
- * location is granted (see `requestBackgroundLocationPermission`).
549
- *
550
- * Feed it to your own permission UI (e.g. `PermissionsAndroid.requestMultiple`)
551
- * when you want the grant results in JS — it is the same list `requestPermissions`
552
- * asks for, so the two cannot diverge.
553
- *
554
- * @param includeBluetooth include `BLUETOOTH_SCAN` (Android 12+) and
555
- * `NEARBY_WIFI_DEVICES` (Android 13+). Native default: `true`.
556
- */
557
- static getRequiredPermissions(includeBluetooth?: boolean): Promise<string[]> {
558
- if (Platform.OS !== 'android') {
559
- return unsupportedOnThisPlatform('getRequiredPermissions', 'Android');
560
- }
561
- return DoorstepAI.getRequiredPermissions(includeBluetooth ?? null);
562
- }
563
-
564
- /**
565
- * True when every foreground permission the SDK needs is currently granted.
566
- * **Android only.**
567
- *
568
- * @param includeBluetooth native default here is `false`, unlike the request
569
- * methods — Bluetooth is optional, so a denied "Nearby devices" grant must not
570
- * make the SDK look unusable.
571
- */
572
- static hasRequiredPermissions(includeBluetooth?: boolean): Promise<boolean> {
573
- if (Platform.OS !== 'android') {
574
- return unsupportedOnThisPlatform('hasRequiredPermissions', 'Android');
575
- }
576
- return DoorstepAI.hasRequiredPermissions(includeBluetooth ?? null);
577
- }
578
-
579
- /**
580
- * True when `ACCESS_BACKGROUND_LOCATION` is granted (always true below API 29,
581
- * where it is not a separate grant). **Android only.**
582
- */
583
- static hasBackgroundLocationPermission(): Promise<boolean> {
584
- if (Platform.OS !== 'android') {
585
- return unsupportedOnThisPlatform(
586
- 'hasBackgroundLocationPermission',
587
- 'Android'
588
- );
589
- }
590
- return DoorstepAI.hasBackgroundLocationPermission();
591
- }
592
-
593
- /**
594
- * The current state of the whitelisted permission buckets, on both platforms.
595
- * **Pure observation — never prompts**, so it is safe at launch, on every
596
- * screen, as often as you like.
597
- *
598
- * @param permissions whitelist; omit for every bucket this platform has.
599
- *
600
- * ```ts
601
- * const { statuses } = await DoorstepAI.checkPermissions();
602
- * if (statuses.locationAlways?.state === 'whenInUseOnly') {
603
- * // foreground location only: background collection and route geofencing
604
- * // will NOT work. Never read this as 'granted'.
605
- * }
606
- * ```
607
- *
608
- * The buckets and their states come straight from the native SDKs
609
- * (`DoorstepAI.checkPermissions(...)` on both platforms) — the wrapper keeps no
610
- * permission list and no state machine of its own.
611
- */
612
- static async checkPermissions(
613
- permissions?: DoorstepPermissionInput[]
614
- ): Promise<PermissionStatus> {
615
- const { buckets, unsupported } = normalizeWhitelist(permissions);
616
- const payload = await DoorstepAI.checkPermissions(buckets ?? null);
617
- return withUnsupported(payload as PermissionStatus, unsupported);
618
- }
619
-
620
- /**
621
- * Every permission bucket this platform has — the whitelist
622
- * {@link requestPermissions} uses when you pass none.
623
- *
624
- * Useful for building a permission screen that lists what the SDK can ask for
625
- * without hardcoding a per-platform list. Synchronous: it is the wrapper's name
626
- * table, not a device read. Use {@link checkPermissions} for state.
627
- */
628
- static allPermissionBuckets(): DoorstepPermission[] {
629
- return platformBuckets();
630
- }
631
-
632
- /**
633
- * {@link checkPermissions} rendered as the native SDK's own compact JSON — for
634
- * bug reports, support logs and scripted on-device assertions.
635
- *
636
- * Shape: `{"<bucket>":{"state":"…","canRequest":true|false,"os":"…"}}`.
637
- */
638
- static checkPermissionsJson(
639
- permissions?: DoorstepPermissionInput[]
640
- ): Promise<string> {
641
- const { buckets } = normalizeWhitelist(permissions);
642
- return DoorstepAI.checkPermissionsJson(buckets ?? null);
643
- }
644
-
645
- /**
646
- * The one permission requester, and the only one hosts should need.
647
- *
648
- * **No argument requests every bucket the platform has. An argument is a
649
- * whitelist: exactly those buckets are requested and nothing else.** That is
650
- * the native contract on both platforms
651
- * (`DoorstepAI.requestPermissions(_ permissions:…)` on iOS,
652
- * `DoorstepAI.requestPermissions(activity, permissions)` on Android) and this
653
- * method is a pass-through to it — the wrapper does not decide what gets asked.
654
- *
655
- * ```ts
656
- * await DoorstepAI.requestPermissions(); // everything
657
- * await DoorstepAI.requestPermissions(['locationWhenInUse']); // just that
658
- * await DoorstepAI.requestPermissions({ permissions: ['location', 'motion'] });
659
- * ```
660
- *
661
- * Accepts the array directly or the legacy `{ permissions: [...] }` object; the
662
- * object form additionally carries `onlyIfNotDetermined` (iOS) and
663
- * `timeoutSeconds`.
664
- *
665
- * **Resolves only AFTER the user has answered**, with the settled state — a
666
- * status read while a dialog is still up would be a lie. Anything the native
667
- * planner declines to ask comes back explained rather than silent:
668
- * `alreadyDetermined`, `unavailable`, `deferred`.
669
- *
670
- * The deferral to expect: **`locationAlways` is only ever requested alone, and
671
- * only once foreground location is granted** (Android auto-denies a bundled
672
- * background ask; iOS shows the When-In-Use prompt first and offers the Always
673
- * upgrade later on its own schedule). So a full-whitelist call typically returns
674
- * `locationAlways` in `deferred` — call again, with just that bucket, after the
675
- * first batch is answered.
676
- *
677
- * A second call made while one is still in flight does not interleave prompt
678
- * sequences: iOS reports every bucket as `deferred`, Android rejects with
679
- * `E_PERMISSION_REQUEST_IN_FLIGHT`.
680
- *
681
- * iOS guidance from the SDK: call this **once, from a user-initiated flow**, not
682
- * from app launch.
683
- */
684
- static async requestPermissions(
685
- options?: DoorstepPermissionInput[] | PermissionRequestOptions
686
- ): Promise<PermissionRequestResult> {
687
- const opts: PermissionRequestOptions = Array.isArray(options)
688
- ? { permissions: options }
689
- : (options ?? {});
690
- const { buckets, unsupported } = normalizeWhitelist(opts.permissions);
691
- const payload = await DoorstepAI.requestPermissions({
692
- permissions: buckets ?? null,
693
- onlyIfNotDetermined: opts.onlyIfNotDetermined ?? null,
694
- timeoutSeconds: opts.timeoutSeconds ?? null,
695
- });
696
- return withUnsupported(payload as PermissionRequestResult, unsupported);
697
- }
698
-
699
- /**
700
- * Forward your Activity's `onRequestPermissionsResult` to the SDK. **Android
701
- * only; a no-op elsewhere.**
702
- *
703
- * Optional but worth wiring: it is the only way the SDK can tell a refusal it
704
- * may re-ask (`denied`) from one only Settings can fix (`permanentlyDenied`).
705
- * Android reports the same signals for "permanently denied" and "never asked",
706
- * and a *cancelled* dialog leaves the same trace as a denial — so the SDK
707
- * refuses to guess and reports the re-askable `denied` until a real,
708
- * host-forwarded answer says otherwise.
709
- *
710
- * It also settles a `requestPermissions` promise the moment the real answer
711
- * arrives, instead of waiting on the activity-lifecycle backstop.
712
- *
713
- * ```kotlin
714
- * // MainActivity.kt
715
- * override fun onRequestPermissionsResult(
716
- * requestCode: Int, permissions: Array<out String>, grantResults: IntArray
717
- * ) {
718
- * super.onRequestPermissionsResult(requestCode, permissions, grantResults)
719
- * DoorstepAI.notePermissionRequestResult(this, permissions, grantResults)
720
- * }
721
- * ```
722
- *
723
- * If you would rather not touch Kotlin, call this from JS with the same values.
724
- */
725
- static async notePermissionRequestResult(
726
- permissions: string[],
727
- grantResults: number[]
728
- ): Promise<void> {
729
- if (Platform.OS !== 'android') return;
730
- await DoorstepAI.notePermissionRequestResult(permissions, grantResults);
731
- }
732
-
733
- /**
734
- * Requests `ACCESS_BACKGROUND_LOCATION` (Android 10+), required to keep
735
- * collecting once the host app is backgrounded or the screen is off — without it
736
- * the SDK refuses to start a session from the background and route geofences
737
- * only fire in the foreground. **Android only.**
738
- *
739
- * This is a separate entry point because Android makes it one: from Android 11+
740
- * the OS refuses to bundle background location into the foreground request, so it
741
- * has to be a SECOND prompt issued after foreground location is granted, and
742
- * asking earlier burns it on an automatic denial. The wrapper does not sequence
743
- * the two calls for you — deciding when the user has been told why the app wants
744
- * "Allow all the time" is the host's, not the wrapper's.
745
- *
746
- * On iOS the same intent is the `locationAlways` bucket of
747
- * `requestPermissions`; there is no iOS counterpart to this method, so it
748
- * rejects there rather than resolving a made-up answer. On Android you can also
749
- * express it as `requestPermissions(['locationAlways'])` — same prompt, and it
750
- * reports back why if the OS would have refused to show it.
751
- *
752
- * Resolves `true` when a request was actually issued (false below API 29 or when
753
- * already granted).
754
- */
755
- static requestBackgroundLocationPermission(): Promise<boolean> {
756
- if (Platform.OS !== 'android') {
757
- return unsupportedOnThisPlatform(
758
- 'requestBackgroundLocationPermission',
759
- 'Android'
760
- );
761
- }
762
- return DoorstepAI.requestBackgroundLocationPermission();
763
- }
764
-
765
- /**
766
- * Configures the iOS SDK's remote logging pipeline. No-op on Android (the
767
- * Android SDK currently configures remote logging via remote config / dev
768
- * mode rather than a public host-app entry point).
769
- */
770
- static configureRemoteLogging(options: {
771
- enabled: boolean;
772
- minLevel?: SDKLogLevel;
773
- flushIntervalSeconds?: number;
774
- batchSize?: number;
775
- maxQueueSize?: number;
776
- }) {
777
- if (Platform.OS !== 'ios') return;
778
- const minLevelRaw =
779
- options.minLevel != null ? SDK_LOG_LEVEL_RAW[options.minLevel] : null;
780
- DoorstepAI.configureRemoteLogging(
781
- options.enabled,
782
- minLevelRaw,
783
- options.flushIntervalSeconds ?? null,
784
- options.batchSize ?? null,
785
- options.maxQueueSize ?? null
786
- );
787
- }
788
-
789
- static async startDeliveryByPlaceID(
790
- placeID: string,
791
- deliveryId: string,
792
- timeoutSeconds?: number,
793
- options?: StartDeliveryOptions
794
- ) {
795
- try {
796
- const timeout = timeoutSeconds ?? options?.timeoutSeconds;
797
- const autoStop = options?.autoStopAfterDropoffSeconds ?? null;
798
- const customerId = options?.customerId ?? null;
799
- const driverId = options?.driverId ?? null;
800
- const result =
801
- Platform.OS === 'android'
802
- ? await DoorstepAI.startDeliveryByPlaceID(
803
- placeID,
804
- deliveryId,
805
- timeout,
806
- autoStop,
807
- options?.manualForeground ?? false,
808
- customerId,
809
- driverId
810
- )
811
- : await DoorstepAI.startDeliveryByPlaceID(
812
- placeID,
813
- deliveryId,
814
- timeout,
815
- autoStop,
816
- customerId,
817
- driverId
818
- );
819
- console.log(
820
- 'DOORSTEPAI - Delivery started successfully by Place ID:',
821
- placeID,
822
- deliveryId
823
- );
824
- return result;
825
- } catch (error: any) {
826
- console.error(
827
- 'DOORSTEPAI - Failed to start delivery by Place ID:',
828
- error
829
- );
830
- throw error;
831
- }
832
- }
833
-
834
- /** @deprecated Use `startDeliveryByAddressString` with coordinates instead. */
835
- static async startDeliveryByPlusCode(
836
- plusCode: string,
837
- deliveryId: string,
838
- timeoutSeconds?: number,
839
- options?: StartDeliveryOptions
840
- ) {
841
- try {
842
- const timeout = timeoutSeconds ?? options?.timeoutSeconds;
843
- const customerId = options?.customerId ?? null;
844
- const driverId = options?.driverId ?? null;
845
- // Android's deprecated startDeliveryByPlusCode does not accept
846
- // autoStopAfterDropoffSeconds, so we forward only the supported
847
- // parameters there.
848
- const result =
849
- Platform.OS === 'ios'
850
- ? await DoorstepAI.startDeliveryByPlusCode(
851
- plusCode,
852
- deliveryId,
853
- timeout,
854
- options?.autoStopAfterDropoffSeconds ?? null,
855
- customerId,
856
- driverId
857
- )
858
- : await DoorstepAI.startDeliveryByPlusCode(
859
- plusCode,
860
- deliveryId,
861
- timeout,
862
- customerId,
863
- driverId
864
- );
865
- console.log(
866
- 'DOORSTEPAI - Delivery started successfully by Plus Code:',
867
- plusCode,
868
- deliveryId
869
- );
870
- return result;
871
- } catch (error: any) {
872
- console.error(
873
- 'DOORSTEPAI - Failed to start delivery by Plus Code:',
874
- error
875
- );
876
- throw error;
877
- }
878
- }
879
-
880
- static async startDeliveryByAddress(
881
- address: AddressType,
882
- deliveryId: string,
883
- timeoutSeconds?: number,
884
- coordinates?: LatLngObject,
885
- options?: StartDeliveryOptions
886
- ) {
887
- try {
888
- const timeout = timeoutSeconds ?? options?.timeoutSeconds;
889
- const autoStop = options?.autoStopAfterDropoffSeconds ?? null;
890
- const customerId = options?.customerId ?? null;
891
- const driverId = options?.driverId ?? null;
892
- const result =
893
- Platform.OS === 'android'
894
- ? await DoorstepAI.startDeliveryByAddress(
895
- address,
896
- deliveryId,
897
- coordinates ?? null,
898
- timeout,
899
- autoStop,
900
- options?.manualForeground ?? false,
901
- customerId,
902
- driverId
903
- )
904
- : await DoorstepAI.startDeliveryByAddress(
905
- address,
906
- deliveryId,
907
- coordinates ?? null,
908
- timeout,
909
- autoStop,
910
- customerId,
911
- driverId
912
- );
913
- console.log(
914
- 'DOORSTEPAI - Delivery started successfully by Address:',
915
- address,
916
- deliveryId
917
- );
918
- return result;
919
- } catch (error: any) {
920
- console.error('DOORSTEPAI - Failed to start delivery by Address:', error);
921
- throw error;
922
- }
923
- }
924
-
925
- static async startDeliveryByAddressString(
926
- address: string,
927
- deliveryId: string,
928
- timeoutSeconds?: number,
929
- coordinates?: LatLngObject,
930
- options?: StartDeliveryOptions
931
- ) {
932
- try {
933
- const timeout = timeoutSeconds ?? options?.timeoutSeconds;
934
- const autoStop = options?.autoStopAfterDropoffSeconds ?? null;
935
- const customerId = options?.customerId ?? null;
936
- const driverId = options?.driverId ?? null;
937
- const result =
938
- Platform.OS === 'android'
939
- ? await DoorstepAI.startDeliveryByAddressString(
940
- address,
941
- deliveryId,
942
- coordinates ?? null,
943
- timeout,
944
- autoStop,
945
- options?.manualForeground ?? false,
946
- customerId,
947
- driverId
948
- )
949
- : await DoorstepAI.startDeliveryByAddressString(
950
- address,
951
- deliveryId,
952
- coordinates ?? null,
953
- timeout,
954
- autoStop,
955
- customerId,
956
- driverId
957
- );
958
- console.log(
959
- 'DOORSTEPAI - Delivery started successfully by Address String:',
960
- address,
961
- deliveryId
962
- );
963
- return result;
964
- } catch (error: any) {
965
- console.error(
966
- 'DOORSTEPAI - Failed to start delivery by Address String:',
967
- error
968
- );
969
- throw error;
970
- }
971
- }
972
-
973
- /** @deprecated Use `startDeliveryByAddress` or `startDeliveryByAddressString` with coordinates instead. */
974
- static async startDeliveryByLatLng(
975
- latitude: number,
976
- longitude: number,
977
- subUnit: string,
978
- deliveryId: string,
979
- timeoutSeconds?: number,
980
- options?: StartDeliveryOptions
981
- ) {
982
- try {
983
- const timeout = timeoutSeconds ?? options?.timeoutSeconds;
984
- const customerId = options?.customerId ?? null;
985
- const driverId = options?.driverId ?? null;
986
- // Android's deprecated startDeliveryByLatLng does not accept
987
- // autoStopAfterDropoffSeconds, so we forward only the supported
988
- // parameters there.
989
- const result =
990
- Platform.OS === 'ios'
991
- ? await DoorstepAI.startDeliveryByLatLng(
992
- latitude,
993
- longitude,
994
- subUnit,
995
- deliveryId,
996
- timeout,
997
- options?.autoStopAfterDropoffSeconds ?? null,
998
- customerId,
999
- driverId
1000
- )
1001
- : await DoorstepAI.startDeliveryByLatLng(
1002
- latitude,
1003
- longitude,
1004
- subUnit,
1005
- deliveryId,
1006
- timeout,
1007
- customerId,
1008
- driverId
1009
- );
1010
- console.log(
1011
- 'DOORSTEPAI - Delivery started successfully by LatLng:',
1012
- latitude,
1013
- longitude,
1014
- subUnit,
1015
- deliveryId
1016
- );
1017
- return result;
1018
- } catch (error: any) {
1019
- console.error('DOORSTEPAI - Failed to start delivery by LatLng:', error);
1020
- throw error;
1021
- }
1022
- }
1023
-
1024
- static async markDropoff(deliveryId: string, dropoffType: 'pod' | 'non_pod') {
1025
- try {
1026
- await DoorstepAI.markDropoff(deliveryId, dropoffType);
1027
- console.log(
1028
- 'DOORSTEPAI - Dropoff marked successfully:',
1029
- deliveryId,
1030
- dropoffType
1031
- );
1032
- } catch (error: any) {
1033
- console.error(
1034
- 'DOORSTEPAI - Failed to mark dropoff:',
1035
- deliveryId,
1036
- dropoffType,
1037
- error
1038
- );
1039
- throw error;
1040
- }
1041
- }
1042
-
1043
- static async stopDelivery(deliveryId: string) {
1044
- try {
1045
- await DoorstepAI.stopDelivery(deliveryId);
1046
- console.log('DOORSTEPAI - Delivery stopped successfully');
1047
- } catch (error: any) {
1048
- console.error('DOORSTEPAI - Failed to stop delivery:', error);
1049
- throw error;
1050
- }
1051
- }
1052
-
1053
- /**
1054
- * Record a custom event on a delivery. `timestamp` is optional epoch SECONDS —
1055
- * when provided the event is recorded at that time instead of "now".
1056
- */
1057
- static async newEvent(
1058
- eventName: string,
1059
- deliveryId: string,
1060
- timestamp?: number
1061
- ) {
1062
- try {
1063
- const result = await DoorstepAI.newEvent(
1064
- eventName,
1065
- deliveryId,
1066
- timestamp ?? null
1067
- );
1068
- console.log('DOORSTEPAI - Event sent successfully:', result);
1069
- return result;
1070
- } catch (error: any) {
1071
- console.error(
1072
- 'DOORSTEPAI - Failed to send event:',
1073
- eventName,
1074
- deliveryId,
1075
- error
1076
- );
1077
- throw error;
1078
- }
1079
- }
1080
-
1081
- // ---- Route geofencing (in-SDK) ----
1082
-
1083
- /**
1084
- * Begin in-SDK route geofencing. The SDK fences each stop and auto-starts a
1085
- * delivery session on geofence ENTER / stops it on EXIT (EXIT is gated on
1086
- * `markDropoff`). Requires location permission; background operation needs
1087
- * "Allow all the time" (Android) / Always authorization (iOS). Subscribe to
1088
- * start/stop events via `addGeofenceSessionListener`.
1089
- */
1090
- static async startRouteGeofencing(
1091
- stops: DeliveryStop[],
1092
- options?: RouteOptions
1093
- ): Promise<void> {
1094
- try {
1095
- await DoorstepAI.startRouteGeofencing(stops, options ?? null);
1096
- console.log(
1097
- 'DOORSTEPAI - Route geofencing started for',
1098
- stops.length,
1099
- 'stop(s)'
1100
- );
1101
- } catch (error: any) {
1102
- console.error('DOORSTEPAI - Failed to start route geofencing:', error);
1103
- throw error;
1104
- }
1105
- }
1106
-
1107
- /**
1108
- * Replace the monitored stops in place without tearing down still-present
1109
- * stops' sessions. Stops dropped from the list are removed (their session is
1110
- * stopped only if a dropoff was marked); new stops are added and armed.
1111
- */
1112
- static async updateRouteStops(stops: DeliveryStop[]): Promise<void> {
1113
- try {
1114
- await DoorstepAI.updateRouteStops(stops);
1115
- } catch (error: any) {
1116
- console.error('DOORSTEPAI - Failed to update route stops:', error);
1117
- throw error;
1118
- }
1119
- }
1120
-
1121
- /** Stop route geofencing and clear all monitored stops. */
1122
- static async stopRouteGeofencing(): Promise<void> {
1123
- try {
1124
- await DoorstepAI.stopRouteGeofencing();
1125
- } catch (error: any) {
1126
- console.error('DOORSTEPAI - Failed to stop route geofencing:', error);
1127
- throw error;
1128
- }
1129
- }
1130
-
1131
- /** Durable route intent, independent of an active delivery session. */
1132
- static async isRouteGeofencingActive(): Promise<boolean> {
1133
- return Boolean(await DoorstepAI.isRouteGeofencingActive());
1134
- }
1135
-
1136
- /** Canonical SDK route UUID, or null when no route is active. */
1137
- static async getActiveRouteId(): Promise<string | null> {
1138
- return (await DoorstepAI.getActiveRouteId()) ?? null;
1139
- }
1140
-
1141
- static async getActiveRouteRevision(): Promise<number | null> {
1142
- return (await DoorstepAI.getActiveRouteRevision()) ?? null;
1143
- }
1144
-
1145
- /** Attach JSON metadata to a delivery before or after its session starts. */
1146
- static async addMetadata(
1147
- deliveryId: string,
1148
- metadata: Record<string, unknown>
1149
- ): Promise<void> {
1150
- await DoorstepAI.addMetadata(deliveryId, metadata);
1151
- }
1152
-
1153
- /**
1154
- * Re-arm route geofencing after a process relaunch if a route was active.
1155
- * Safe no-op when no route is persisted.
1156
- */
1157
- static async resumeRouteGeofencingIfNeeded(): Promise<void> {
1158
- try {
1159
- await DoorstepAI.resumeRouteGeofencingIfNeeded();
1160
- } catch (error: any) {
1161
- console.error('DOORSTEPAI - Failed to resume route geofencing:', error);
1162
- throw error;
1163
- }
1164
- }
1165
-
1166
- /** The stops currently registered for route geofencing (empty if none). */
1167
- static async getMonitoredStops(): Promise<DeliveryStop[]> {
1168
- try {
1169
- const stops = await DoorstepAI.getMonitoredStops();
1170
- return (stops as DeliveryStop[]) ?? [];
1171
- } catch (error: any) {
1172
- console.error('DOORSTEPAI - Failed to get monitored stops:', error);
1173
- return [];
1174
- }
1175
- }
1176
-
1177
- /**
1178
- * Subscribe to geofence-session events (auto start/stop of a delivery on
1179
- * geofence transitions). Returns a subscription — call `.remove()` to
1180
- * unsubscribe. Returns `undefined` if the native module is unavailable.
1181
- */
1182
- static addGeofenceSessionListener(
1183
- listener: (event: GeofenceSessionEvent) => void
1184
- ): EmitterSubscription | undefined {
1185
- return doorstepEventEmitter?.addListener(GEOFENCE_SESSION_EVENT, listener);
1186
- }
1187
-
1188
- // ---- Dev-mode helpers (Android exposes a richer surface than iOS) ----
1189
-
1190
- static async enableDevMode(apiKey: string): Promise<boolean> {
1191
- if (Platform.OS === 'ios') {
1192
- await DoorstepAI.enableDevMode(apiKey);
1193
- return true;
1194
- }
1195
- return Boolean(await DoorstepAI.enableDevMode());
1196
- }
1197
-
1198
- /** Android only. Returns false on iOS. */
1199
- static async validateDevModeAccess(): Promise<boolean> {
1200
- if (Platform.OS !== 'android') return false;
1201
- return Boolean(await DoorstepAI.validateDevModeAccess());
1202
- }
1203
-
1204
- /** Android only. No-op on iOS. */
1205
- static async disableDevMode(): Promise<boolean> {
1206
- if (Platform.OS !== 'android') return false;
1207
- return Boolean(await DoorstepAI.disableDevMode());
1208
- }
1209
- }
1210
-
1211
- export { DoorstepAIModule as DoorstepAI };
1212
- export type {
1213
- HostForegroundServiceWaitOptions,
1214
- AddressType,
1215
- LatLngObject,
1216
- StartDeliveryOptions,
1217
- DoorstepPermission,
1218
- DoorstepPermissionAlias,
1219
- DoorstepPermissionInput,
1220
- DoorstepPermissionState,
1221
- DoorstepPermissionStatus,
1222
- PermissionState,
1223
- DoorstepPermissionType,
1224
- PermissionStatus,
1225
- PermissionRequestOptions,
1226
- PermissionRequestResult,
1227
- SDKLogLevel,
1228
- DeliveryStop,
1229
- RouteGeofenceOptions,
1230
- RouteOptions,
1231
- GeofenceSessionEvent,
1232
- GeofenceSessionEventType,
1233
- };