@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
package/src/types.ts ADDED
@@ -0,0 +1,1110 @@
1
+ // Public types of @doorstepai/dropoff-sdk 3.0. Generated 2026-11-24 from docs/react-native/index.d.ts (the
2
+ // contract the guides type-check against), trimmed per REACT_NATIVE_PLAN.md D7: no RealTime preview items.
3
+ // The `...Api` interfaces are what src/*.ts implement.
4
+ /**
5
+ * Doorstep SDK for React Native: SIMULATED TYPE STUBS.
6
+ *
7
+ * There is no implementation behind this file. It is the proposed TypeScript surface of a thin
8
+ * React Native binding over the rebuilt native Doorstep SDK (iOS `DoorstepCore` and friends,
9
+ * Android `ai.doorstep.*`). The guides in `Rebuild/docs` are written against these names.
10
+ * See `README.md` and `NATIVE_BINDING_NOTES.md` in this folder.
11
+ *
12
+ * Conventions used throughout:
13
+ * - No promise rejects for an SDK outcome. Every outcome is a result object with a `status`
14
+ * discriminant. A promise rejects only when the native module is not linked into the app.
15
+ * - Every error is a {@link DoorstepError} with a `code` discriminant.
16
+ * - Unions of reasons are open (`string & {}`): new values may be added. Always keep a default
17
+ * branch when switching over `status`, `type`, `kind`, `code` or a reason.
18
+ * - Lengths are counted in characters (Unicode code points). Nothing is truncated: a value over
19
+ * a limit fails the call with `invalidArgument` and changes nothing.
20
+ * - Names follow the existing wrapper `@doorstepai/dropoff-sdk` where it had a name for the same
21
+ * thing; each such decision is noted with "Continuity:".
22
+ */
23
+
24
+ import type { ReactElement } from 'react';
25
+ import type { ViewProps } from 'react-native';
26
+
27
+ // =============================================================================================
28
+ // Shared types
29
+ // =============================================================================================
30
+
31
+ /** Returned by every `add…Listener` call. Same shape as React Native's `EmitterSubscription`. */
32
+ export interface DoorstepSubscription {
33
+ /** Detaches the listener. Safe to call more than once. */
34
+ remove(): void;
35
+ }
36
+
37
+ /**
38
+ * A point on the map for a delivery or a route stop.
39
+ * Latitude −90 to 90, longitude −180 to 180. Sent exactly as given.
40
+ * Maps to iOS `DeliveryCoordinates(latitude:longitude:)`, Android `Coordinates(latitude, longitude)`.
41
+ * Continuity: the existing wrapper used `LatLngObject` (`{ lat, lng }`) here. That shape is kept
42
+ * only for the embed component's `endpoint` prop.
43
+ */
44
+ export type DeliveryCoordinates = { latitude: number; longitude: number };
45
+
46
+ /** `{ lat, lng }`. Used only by {@link DoorstepEmbedViewProps.endpoint}. Continuity: unchanged. */
47
+ export type LatLngObject = { lat: number; lng: number };
48
+
49
+ /** Maps to native `DeliveryType` (`.dropoff` / `.pickup`, `DROPOFF` / `PICKUP`). */
50
+ export type DeliveryType = 'dropoff' | 'pickup';
51
+
52
+ /**
53
+ * String metadata. Values must be strings.
54
+ * Continuity: the existing wrapper accepted `Record<string, unknown>`; the new SDK does not.
55
+ */
56
+ export type DoorstepMetadata = Record<string, string>;
57
+
58
+ /**
59
+ * Android only: the notification of the SDK's foreground service. Ignored on iOS.
60
+ * Maps to Android `NotificationDetails(title, text, iconResId)`.
61
+ */
62
+ export type NotificationDetails = {
63
+ title?: string;
64
+ text?: string;
65
+ /**
66
+ * Name of a drawable resource in the app (for example `'ic_stat_delivery'` for
67
+ * `res/drawable/ic_stat_delivery.xml`), without folder or extension. The binding resolves it
68
+ * to `iconResId`. An unknown name falls back to the SDK's default icon; it never fails a call.
69
+ */
70
+ iconResourceName?: string;
71
+ };
72
+
73
+ /**
74
+ * Every error the SDK can answer. Always inside a result with `status: 'failed'`
75
+ * (or inside a route event). Maps one to one to native `DoorstepError`.
76
+ */
77
+ export type DoorstepError =
78
+ /** A call before the SDK was initialized in this process. */
79
+ | { code: 'notInitialized' }
80
+ /** `field` names the argument; `reason` says why (for example `empty`, `tooLong`, `outOfRange`, `illegalCharacter`). */
81
+ | { code: 'invalidArgument'; field: string; reason: string }
82
+ /** The server rejected the SDK key and no new key has been given. */
83
+ | { code: 'keyRejected' }
84
+ /** Doorstep has remotely stopped collection for this key. */
85
+ | { code: 'killSwitchActive' }
86
+ /** This SDK version is too old for the server. */
87
+ | { code: 'unsupportedWire' }
88
+ /** Android only: `startForeground: false` and no location-type foreground service of the app is running. */
89
+ | { code: 'hostServiceMissing' }
90
+ /** Storage cannot be opened (for example before first unlock after a restart), or another process owns the SDK. */
91
+ | { code: 'storageUnavailable' }
92
+ /** A connector's method was called and that connector is not attached in this process. `module` is `'route'` or the RealTime module name. */
93
+ | { code: 'connectorNotAdded'; module: string }
94
+ /** The connector was requested and the SDK refused it (for example a version mismatch). */
95
+ | { code: 'moduleUnavailable'; module: string; reason: string }
96
+ /** Anything else. Report `message` to Doorstep support. */
97
+ | { code: 'internal'; message: string };
98
+
99
+ /** The common failed variant of every result. */
100
+ export type DoorstepFailure = { status: 'failed'; error: DoorstepError };
101
+
102
+ // =============================================================================================
103
+ // Connectors and initialization
104
+ // =============================================================================================
105
+
106
+ export type DoorstepConnectorName = 'route' | 'realTime';
107
+
108
+ /** Options of the Route connector. Passed to {@link DoorstepRoute.connector}. */
109
+ export type RouteConnectorOptions = {
110
+ /** Android only: foreground-service notification used when a route request supplies none. */
111
+ defaultNotification?: NotificationDetails;
112
+ };
113
+
114
+ /** Options of the RealTime connector. Passed to {@link DoorstepRealTime.connector}. */
115
+ export type RealTimeConnectorOptions = {
116
+ /** Default `true`. `false` switches live events off. */
117
+ liveEvents?: boolean;
118
+ /** Default `true`. `false` switches the check at the dropoff mark off. */
119
+ pointInTime?: boolean;
120
+ };
121
+
122
+ /**
123
+ * A connector to attach at initialization. Create one with `DoorstepRoute.connector(...)` or
124
+ * `DoorstepRealTime.connector(...)`. It is plain data: the binding passes it to native code and
125
+ * saves it for automatic start at launch. Listeners are not part of it; attach them separately with
126
+ * the connector's `add…Listener` calls, at any time.
127
+ */
128
+ export type DoorstepConnector =
129
+ | { readonly connector: 'route'; readonly options: RouteConnectorOptions }
130
+ | { readonly connector: 'realTime'; readonly options: RealTimeConnectorOptions };
131
+
132
+ export type InitializeOptions = {
133
+ /**
134
+ * The Doorstep SDK key: 1 to 4,096 printable ASCII characters with no spaces. Used exactly as
135
+ * given, never trimmed. Never pass the Go key here.
136
+ */
137
+ sdkKey: string;
138
+ /** `true` turns on local logging (Android Logcat tag `Doorstep`). Changes nothing else. Default `false`. */
139
+ debug?: boolean;
140
+ /**
141
+ * The connectors this app uses. Default: none. This is the ONLY place connectors can be added.
142
+ * The set of connectors of a process is fixed by the first native initialization of that
143
+ * process; see {@link InitializeResult}.
144
+ */
145
+ connectors?: DoorstepConnector[];
146
+ };
147
+
148
+ /**
149
+ * Result of {@link Doorstep.initialize}.
150
+ *
151
+ * The design (one design, used everywhere in the guides):
152
+ *
153
+ * 1. The native SDK must be initialized, with its connectors, in native launch code on EVERY
154
+ * launch, including launches by the operating system in the background when JavaScript is not
155
+ * running. THE PACKAGE DOES THIS BY ITSELF (owner decision, 2026-11-23): "automatic start".
156
+ * Android: a start-up component declared in the package's own manifest, merged into the app
157
+ * automatically, main process only. iOS: the package's native code registers at load and
158
+ * runs when the app finishes launching. The app adds no line to `AppDelegate` or
159
+ * `MainApplication`.
160
+ * 2. Automatic start reads the launch configuration (SDK key reference, `debug`, connectors and
161
+ * their options) that `Doorstep.initialize` saved natively on an earlier run, and performs
162
+ * the native `Doorstep.initialize(...).addConnector(...)` with it. With nothing saved (the
163
+ * first launch after install, or after `clearLaunchConfiguration`) it does nothing, so
164
+ * connectors attach only once JavaScript has called `initialize` for the first time. It does
165
+ * one small local read, never blocks or crashes the launch (a corrupt saved configuration is
166
+ * discarded with a diagnostic), prompts for nothing and collects nothing on its own. The Go
167
+ * key is never saved.
168
+ * 3. `Doorstep.initialize(options)` in JavaScript then joins:
169
+ * - native not yet initialized in this process (first run, cleared configuration, or
170
+ * automatic start turned off with no manual call): the binding performs the native
171
+ * initialization now, on the main thread, with the connectors, saves the configuration,
172
+ * and resolves `source: 'javascript'`;
173
+ * - native already initialized in this process with the same connectors and options: resolves
174
+ * with the `source` that performed it, and `connectorsPending` empty;
175
+ * - native already initialized with DIFFERENT connectors or connector options: the connectors
176
+ * of this process cannot change. The new configuration is saved for the next launch, and
177
+ * the result lists the difference in `connectorsPending` with `pendingUntil: 'nextLaunch'`.
178
+ * In every case the `sdkKey` is passed to native: a different key takes over at once.
179
+ * 4. OPT-OUT. An app can turn automatic start off (iOS: the Info.plist boolean
180
+ * `DoorstepAutomaticStartEnabled` = `false`; Android: the manifest `meta-data`
181
+ * `ai.doorstep.reactnative.automaticStart` = `false`, or removing the start-up component by
182
+ * manifest merge; both names provisional) and call the native entry point
183
+ * `DoorstepReactNative.initializeAtLaunch(...)` itself, in
184
+ * `application(_:didFinishLaunchingWithOptions:)` and in `Application.onCreate`. That call
185
+ * must still run in EVERY launch, before any geofence or relaunch event is handled. If it is
186
+ * given an explicit configuration in native code, that configuration is used on every launch
187
+ * and the saved one is ignored; a JavaScript call that asks for other connectors then gets
188
+ * `pendingUntil: 'nativeCodeChange'`.
189
+ * 5. To verify: from the second launch on, `source` is `'nativeLaunch'`; with `debug: true` the
190
+ * log has a line beginning `automatic start` at every launch.
191
+ */
192
+ export type InitializeResult =
193
+ | {
194
+ status: 'ok';
195
+ /**
196
+ * Who performed the first native initialization of this process. `'nativeLaunch'`: the
197
+ * package's automatic start (or, after an opt-out, the app's own `initializeAtLaunch` call).
198
+ * `'javascript'`: this or an earlier `initialize` call; normal on the first launch after
199
+ * install and after `clearLaunchConfiguration`.
200
+ */
201
+ source: 'nativeLaunch' | 'javascript';
202
+ /** The connectors attached in this process. */
203
+ attachedConnectors: DoorstepConnectorName[];
204
+ /**
205
+ * Connectors whose requested state differs from this process: asked for but not attached,
206
+ * attached but no longer asked for, or attached with other options. Empty in the normal case.
207
+ */
208
+ connectorsPending: DoorstepConnectorName[];
209
+ /**
210
+ * `'none'` when `connectorsPending` is empty. `'nextLaunch'`: the request was saved and
211
+ * applies after the app process restarts. `'nativeCodeChange'`: only after an opt-out, when the
212
+ * app's own `DoorstepReactNative.initializeAtLaunch` call has
213
+ * a fixed configuration; change it there.
214
+ */
215
+ pendingUntil: 'none' | 'nextLaunch' | 'nativeCodeChange';
216
+ }
217
+ /**
218
+ * Nothing was initialized or saved. `invalidArgument` with `field: 'sdkKey'` and reason
219
+ * `empty`, `tooLong` or `illegalCharacter` for an unusable key; `invalidArgument` with
220
+ * `field: 'connectors'` for a malformed or duplicate connector.
221
+ */
222
+ | DoorstepFailure;
223
+
224
+ // =============================================================================================
225
+ // Core: deliveries, metadata, events, status
226
+ // =============================================================================================
227
+
228
+ /** Maps to iOS `Doorstep.startDelivery(address:deliveryId:…)`, Android `Doorstep.startDelivery(StartRequest, …)`. */
229
+ export type StartDeliveryRequest = {
230
+ /** Required. 1 to 1,024 characters. The delivery address as text. */
231
+ address: string;
232
+ /** Required. 1 to 256 characters. Your identifier for this delivery. */
233
+ deliveryId: string;
234
+ /**
235
+ * 60 to 86,400 (one minute to 24 hours). The delivery ends by itself after this long.
236
+ * Omitted: the default from Doorstep's server configuration (24 hours unless set lower).
237
+ */
238
+ timeoutSeconds?: number;
239
+ type?: DeliveryType;
240
+ coordinates?: DeliveryCoordinates;
241
+ /** Up to 256 characters. */
242
+ driverId?: string;
243
+ /** Up to 256 characters. */
244
+ customerId?: string;
245
+ /** Up to 256 characters. */
246
+ recipientId?: string;
247
+ /** Up to 2,000 characters. */
248
+ customerNotes?: string;
249
+ /** Up to 2,000 characters. */
250
+ recipientNotes?: string;
251
+ /** Up to 32 entries; keys 1 to 64 characters; values up to 256. */
252
+ metadata?: DoorstepMetadata;
253
+ /**
254
+ * Android only, ignored on iOS. Default `true`: the SDK starts and owns its foreground
255
+ * service. `false`: the app's own location-type foreground service must already be running,
256
+ * otherwise the start fails with `hostServiceMissing`.
257
+ * Continuity: this is the INVERSE of the existing wrapper's `manualForeground`.
258
+ */
259
+ startForeground?: boolean;
260
+ /** Android only, ignored on iOS. Used only when `startForeground` is `true`. */
261
+ notification?: NotificationDetails;
262
+ };
263
+
264
+ export type NotCollectedReason =
265
+ | 'permissionMissing'
266
+ | 'notDeclaredByHost'
267
+ | 'noHardware'
268
+ | 'disabledByConfig'
269
+ | 'locationServicesOff'
270
+ | 'notAllowedInBackground'
271
+ | (string & {});
272
+
273
+ /** One kind of data that is not being collected, and why. */
274
+ export type NotCollected = { collector: string; reason: NotCollectedReason };
275
+
276
+ /**
277
+ * Why background collection is unavailable. The binding gives one spelling on both platforms.
278
+ * iOS: `locationPermissionMissing`, `locationAlwaysNotGranted`, `backgroundModeNotDeclared`,
279
+ * `locationServicesOff`. Android: `locationPermissionMissing` (native `LOCATION_PERMISSION_MISSING`),
280
+ * `osRefused` (`OS_REFUSED`), `hostServiceNotRunning` (`HOST_SERVICE_NOT_RUNNING`).
281
+ */
282
+ export type KeepAliveUnavailableReason =
283
+ | 'locationPermissionMissing'
284
+ | 'locationAlwaysNotGranted'
285
+ | 'backgroundModeNotDeclared'
286
+ | 'locationServicesOff'
287
+ | 'osRefused'
288
+ | 'hostServiceNotRunning'
289
+ | (string & {});
290
+
291
+ /** Whether the SDK can keep collecting when the app goes to the background. */
292
+ export type KeepAlive =
293
+ | { state: 'active' }
294
+ | { state: 'unavailable'; reason: KeepAliveUnavailableReason };
295
+
296
+ export type StartDeliveryResult =
297
+ | {
298
+ status: 'started';
299
+ /** The SDK's identifier for this delivery, created on the phone. Lower-case hyphenated UUID. */
300
+ sessionId: string;
301
+ /** `true` when a delivery with this `deliveryId` was already running. The new arguments were ignored. */
302
+ alreadyActive: boolean;
303
+ /** The data that is not being collected. Empty when everything is. */
304
+ notCollected: NotCollected[];
305
+ keepAlive: KeepAlive;
306
+ }
307
+ | DoorstepFailure;
308
+
309
+ /** `unknownDelivery`: no delivery with that id is running. */
310
+ export type StopDeliveryResult = { status: 'ok' } | { status: 'unknownDelivery' } | DoorstepFailure;
311
+
312
+ /** `notRunning`: the delivery is not running and nothing was recorded. */
313
+ export type AddMetadataResult = { status: 'ok' } | { status: 'notRunning' } | DoorstepFailure;
314
+
315
+ export type DoorstepEventType = 'dropoff' | 'pickup';
316
+
317
+ /**
318
+ * `pod`: with proof of delivery. `nonPod`: without.
319
+ * Continuity: the existing wrapper spelled the second value `'non_pod'`. The new spelling
320
+ * follows native `DoorstepEventSubType.nonPod`.
321
+ */
322
+ export type DoorstepEventSubType = 'pod' | 'nonPod';
323
+
324
+ export type EventResult =
325
+ /** Stored on the phone. It will reach the server once, with its delivery. */
326
+ | { status: 'recorded'; eventId: string }
327
+ /** No delivery with that id is running, including one already stopped. Mark before you stop. */
328
+ | { status: 'notRunning' }
329
+ | DoorstepFailure;
330
+
331
+ export type MarkEventOptions = {
332
+ /**
333
+ * When the event happened, in Unix epoch SECONDS; a fraction is allowed; must be above 0.
334
+ * Omitted: the moment of the call. (Not milliseconds: `Date.now() / 1000`.)
335
+ */
336
+ timestamp?: number;
337
+ };
338
+
339
+ export type MarkCustomEventOptions = MarkEventOptions & {
340
+ /** Up to 16 entries; keys 1 to 64 characters; values up to 256. The whole event at most 4,096 bytes. */
341
+ metadata?: DoorstepMetadata;
342
+ };
343
+
344
+ export type DeliveryEndReason =
345
+ | 'hostStop'
346
+ | 'timeout'
347
+ | 'timeoutOnRecovery'
348
+ | 'killSwitch'
349
+ | 'moduleStop'
350
+ | (string & {});
351
+
352
+ /** Maps one to one to native `DoorstepStatusEvent`. */
353
+ export type DoorstepStatusEvent =
354
+ /** The server rejected the SDK key. Uploads stop until `initialize` is called with a valid key. */
355
+ | { type: 'keyRejected'; code: 'key_invalid' | 'key_revoked' | 'key_disabled' | (string & {}) }
356
+ | { type: 'keyAccepted' }
357
+ /** Doorstep remotely stopped or re-enabled collection for this key. */
358
+ | { type: 'killSwitchChanged'; level: 'off' | 'stop_collection' | 'stop_all' | (string & {}) }
359
+ | { type: 'uploadsPaused'; reason: 'keyRejected' | 'killSwitch' | 'noNetwork' | (string & {}) }
360
+ | { type: 'uploadsResumed' }
361
+ /** Every end of a delivery, including a stop the app asked for. */
362
+ | { type: 'deliveryEnded'; deliveryId: string; sessionId: string; reason: DeliveryEndReason }
363
+ /** A delivery that was running when the app was killed is running again. */
364
+ | { type: 'deliveryResumed'; deliveryId: string; sessionId: string }
365
+ /** A kind of data stopped or started during a delivery. */
366
+ | {
367
+ type: 'collectorChanged';
368
+ deliveryId: string;
369
+ collector: string;
370
+ state: 'started' | 'stopped' | (string & {});
371
+ reason: string;
372
+ }
373
+ /** A requested connector was not attached. */
374
+ | { type: 'connectorRefused'; module: string; reason: string };
375
+
376
+ /**
377
+ * Android only helper kept from the existing wrapper. See {@link Doorstep.waitForHostForegroundService}.
378
+ * Continuity: same name and fields as before.
379
+ */
380
+ export type HostForegroundServiceWaitOptions = {
381
+ /** Integer 0 to 120,000. Default 10,000. 0 performs one immediate check. */
382
+ timeoutMs?: number;
383
+ /** Fully qualified class name of the service to wait for. Omitted: any foreground service of the app except Doorstep's. */
384
+ serviceClassName?: string;
385
+ };
386
+
387
+ export type HostForegroundServiceWaitResult =
388
+ | { status: 'running' }
389
+ | { status: 'timedOut' }
390
+ /** iOS. Continuity: the existing wrapper rejected on iOS; this resolves instead. */
391
+ | { status: 'unsupportedPlatform' }
392
+ | DoorstepFailure;
393
+
394
+ /** The Core facade. Maps to native `Doorstep`. */
395
+ export interface DoorstepApi {
396
+ /**
397
+ * Initializes the SDK, or joins the initialization that automatic start already performed at
398
+ * launch. This call is all an app writes: the package starts the SDK natively at later launches.
399
+ * Call it once, as early as the app can (module scope of `index.js`, or the root component),
400
+ * on every start of JavaScript. See {@link InitializeResult} for the rules.
401
+ * Calling it again with the same options does nothing. A different `sdkKey` takes over for
402
+ * every request from then on.
403
+ * Native: iOS `Doorstep.initialize(sdkKey:debug:).addConnector(…)`,
404
+ * Android `Doorstep.init(context, sdkKey, debug).addConnector(…)`, on the main thread.
405
+ */
406
+ initialize(options: InitializeOptions): Promise<InitializeResult>;
407
+
408
+ /**
409
+ * Removes the launch configuration saved by `initialize`, so automatic start (or, after an
410
+ * opt-out, the app's own `initializeAtLaunch` call) does nothing at the following launches,
411
+ * until the next `initialize` (for example after logout). It does not stop deliveries, and the
412
+ * native SDK still resumes running deliveries and uploads with the key it stored itself.
413
+ * Binding-only: no native SDK call.
414
+ */
415
+ clearLaunchConfiguration(): Promise<void>;
416
+
417
+ /**
418
+ * Starts a delivery. A delivery with missing permissions or declarations still starts:
419
+ * read `notCollected` and `keepAlive`. Never prompts the user.
420
+ * Native: `Doorstep.startDelivery`.
421
+ */
422
+ startDelivery(request: StartDeliveryRequest): Promise<StartDeliveryResult>;
423
+
424
+ /** Stops a delivery at once. Native: `Doorstep.stopDelivery(deliveryId)`. */
425
+ stopDelivery(deliveryId: string): Promise<StopDeliveryResult>;
426
+
427
+ /**
428
+ * Merges entries into a RUNNING delivery's metadata. An existing key takes the new value.
429
+ * The merged set may hold at most 32 entries; keys 1 to 64 characters; values up to 256.
430
+ * An empty object is `invalidArgument`. Native: `Doorstep.addMetadata(deliveryId, metadata)`.
431
+ */
432
+ addMetadata(deliveryId: string, metadata: DoorstepMetadata): Promise<AddMetadataResult>;
433
+
434
+ /**
435
+ * Marks a dropoff or a pickup on a running delivery. `subType` exists only for a dropoff.
436
+ * Does NOT stop the delivery. Connectors react to the same call.
437
+ * Native: `Doorstep.markEvent(deliveryId, type, subType, timestamp)`.
438
+ */
439
+ markEvent(
440
+ deliveryId: string,
441
+ type: 'dropoff',
442
+ options?: MarkEventOptions & { subType?: DoorstepEventSubType }
443
+ ): Promise<EventResult>;
444
+ markEvent(deliveryId: string, type: 'pickup', options?: MarkEventOptions): Promise<EventResult>;
445
+
446
+ /**
447
+ * Marks an event that the app names. `name`: 1 to 64 characters, not `dropoff` or `pickup`.
448
+ * Native: `Doorstep.markCustomEvent(deliveryId, name, metadata, timestamp)`.
449
+ */
450
+ markCustomEvent(
451
+ deliveryId: string,
452
+ name: string,
453
+ options?: MarkCustomEventOptions
454
+ ): Promise<EventResult>;
455
+
456
+ /**
457
+ * Attaches a status listener. Several may be attached; each receives every event, in order.
458
+ * Events raised while no JavaScript listener is attached are held in memory (up to 256) and
459
+ * delivered to the first listener attached. They are not kept across an app kill; after a
460
+ * restart the SDK raises `deliveryResumed` and `deliveryEnded` again for what it finds.
461
+ * May be called before `initialize`.
462
+ * Native: one `Doorstep.setStatusListener` owned by the binding, fanned out to JavaScript.
463
+ */
464
+ addStatusListener(listener: (event: DoorstepStatusEvent) => void): DoorstepSubscription;
465
+
466
+ /**
467
+ * Android only. Waits until a foreground service of the app is running, for use before a
468
+ * start with `startForeground: false`. It starts nothing and is a snapshot, not a guarantee.
469
+ * Binding-only: no native SDK call.
470
+ */
471
+ waitForHostForegroundService(
472
+ options?: HostForegroundServiceWaitOptions
473
+ ): Promise<HostForegroundServiceWaitResult>;
474
+ }
475
+
476
+ // =============================================================================================
477
+ // Permissions
478
+ // =============================================================================================
479
+
480
+ /**
481
+ * Permission buckets. They are operating-system particular by design; the state names are shared.
482
+ * A bucket of the other platform is reported in `unsupported` and never fails a call.
483
+ * Continuity: the first eight strings are the existing wrapper's. `nearbyInteraction`,
484
+ * `bluetoothConnect` and `uwb` are new. The old aliases `location`, `motion` and `activity`
485
+ * are not accepted.
486
+ *
487
+ * | Bucket | Platform | Native |
488
+ * |---|---|---|
489
+ * | `locationWhenInUse` | both | `.locationWhenInUse` / `LOCATION_WHEN_IN_USE` |
490
+ * | `locationAlways` | both | `.locationAlways` / `LOCATION_ALWAYS` |
491
+ * | `motionFitness` | iOS | `.motionFitness` |
492
+ * | `bluetooth` | iOS | `.bluetooth` |
493
+ * | `nearbyInteraction` | iOS, observe only | `.nearbyInteraction` |
494
+ * | `activityRecognition` | Android | `ACTIVITY_RECOGNITION` |
495
+ * | `bluetoothScan` | Android | `BLUETOOTH_SCAN` |
496
+ * | `bluetoothConnect` | Android 12+ | `BLUETOOTH_CONNECT` |
497
+ * | `nearbyWifiDevices` | Android 13+ | `NEARBY_WIFI_DEVICES` |
498
+ * | `notifications` | Android 13+ | `NOTIFICATIONS` |
499
+ * | `uwb` | Android | `UWB` |
500
+ */
501
+ export type DoorstepPermission =
502
+ | 'locationWhenInUse'
503
+ | 'locationAlways'
504
+ | 'motionFitness'
505
+ | 'bluetooth'
506
+ | 'nearbyInteraction'
507
+ | 'activityRecognition'
508
+ | 'bluetoothScan'
509
+ | 'bluetoothConnect'
510
+ | 'nearbyWifiDevices'
511
+ | 'notifications'
512
+ | 'uwb';
513
+
514
+ /**
515
+ * The eight shared states. Continuity: same name and values as the existing wrapper
516
+ * (native calls the type `PermissionState`).
517
+ * - `whenInUseOnly`: reported for `locationAlways` only. Foreground location is held, background
518
+ * is not. Do not treat it as granted.
519
+ * - `denied`: Android only; another prompt is still possible.
520
+ * - `permanentlyDenied`: only the Settings app can change it. Every refusal on iOS is this state.
521
+ * - `notDeclared`: the app build is missing the Info.plist key or manifest permission.
522
+ */
523
+ export type DoorstepPermissionState =
524
+ | 'granted'
525
+ | 'notDetermined'
526
+ | 'whenInUseOnly'
527
+ | 'denied'
528
+ | 'permanentlyDenied'
529
+ | 'restricted'
530
+ | 'unavailable'
531
+ | 'notDeclared';
532
+
533
+ /**
534
+ * Continuity: `permission`, `state` and `canRequest` as in the existing wrapper; `osStatus` is
535
+ * gone; `accuracy` is new. Maps to native `PermissionStatus`.
536
+ */
537
+ export type DoorstepPermissionStatus = {
538
+ permission: DoorstepPermission;
539
+ state: DoorstepPermissionState;
540
+ /** Whether a request with default options would show a prompt. */
541
+ canRequest: boolean;
542
+ /** Location buckets only. */
543
+ accuracy?: 'precise' | 'approximate';
544
+ };
545
+
546
+ /**
547
+ * Continuity: `statuses` and `unsupported` as in the existing wrapper's `PermissionStatus`.
548
+ * The legacy three-value `permissions` map is gone.
549
+ */
550
+ export type PermissionCheckResult = {
551
+ /** One entry for each bucket of this platform that was asked about. */
552
+ statuses: Partial<Record<DoorstepPermission, DoorstepPermissionStatus>>;
553
+ /** The buckets passed in that do not exist on this platform. */
554
+ unsupported: DoorstepPermission[];
555
+ };
556
+
557
+ /** Continuity: same name and fields as the existing wrapper. */
558
+ export type PermissionRequestOptions = {
559
+ /** Exactly these buckets are requested. Omitted: every bucket of the platform. Empty: nothing. */
560
+ permissions?: DoorstepPermission[];
561
+ /**
562
+ * Default `true`. iOS: pass `false` with `['locationAlways']` to show the upgrade prompt to a
563
+ * user who already chose "While Using"; iOS shows that prompt at most once. Ignored on Android.
564
+ */
565
+ onlyIfNotDetermined?: boolean;
566
+ /** How long to wait for the user's answer before resolving with the current states. */
567
+ timeoutSeconds?: number;
568
+ };
569
+
570
+ export type PermissionRequestResult =
571
+ | {
572
+ status: 'completed';
573
+ /** The buckets for which a system prompt was shown by this call. */
574
+ prompted: DoorstepPermission[];
575
+ /**
576
+ * Buckets that were not asked in this call, with the reason. On Android `locationAlways` is
577
+ * only ever asked alone and only after foreground location is granted: in a request for
578
+ * several buckets it is deferred, and the app asks for it in a second call.
579
+ */
580
+ deferred: Partial<Record<DoorstepPermission, string>>;
581
+ /** The states after the user answered. */
582
+ statuses: Partial<Record<DoorstepPermission, DoorstepPermissionStatus>>;
583
+ unsupported: DoorstepPermission[];
584
+ }
585
+ /** Another request is still showing. */
586
+ | { status: 'requestInProgress' }
587
+ /** For example Android with no Activity in the foreground. */
588
+ | DoorstepFailure;
589
+
590
+ /**
591
+ * The Permissions piece. The SDK never prompts on its own; only these calls (or the app's own
592
+ * code) do. Maps to iOS `DoorstepPermissionsAPI`, Android `DoorstepPermissions`.
593
+ * Continuity: method names as on the existing `DoorstepAI` class.
594
+ */
595
+ export interface DoorstepPermissionsApi {
596
+ /** The buckets that exist on the current platform. Synchronous. */
597
+ allPermissionBuckets(): DoorstepPermission[];
598
+
599
+ /** Observes. Never prompts. Omitted list: every bucket of the platform. Native: `checkPermissions`. */
600
+ checkPermissions(permissions?: DoorstepPermission[]): Promise<PermissionCheckResult>;
601
+
602
+ /** The same report as a JSON string, for logs and support. Native: `checkPermissionsJson`. */
603
+ checkPermissionsJson(permissions?: DoorstepPermission[]): Promise<string>;
604
+
605
+ /**
606
+ * Asks for exactly the listed buckets and resolves AFTER the user has answered, on both
607
+ * platforms.
608
+ * - iOS: prompts are shown one at a time. When `locationAlways` is in the list it is the one
609
+ * location prompt of the call. Native: `DoorstepPermissionsAPI.requestPermissions`.
610
+ * - Android: the native call returns when the system dialog is launched; the binding holds the
611
+ * promise until the Activity's `onRequestPermissionsResult` has been forwarded with
612
+ * `DoorstepReactNative.onRequestPermissionsResult(...)` in `MainActivity`, which calls native
613
+ * `DoorstepPermissions.notePermissionRequestResult`. Without that forward the promise resolves
614
+ * when the app is next active, and a refusal can never be reported as `permanentlyDenied`.
615
+ * Continuity: accepts a bare array as the existing wrapper did.
616
+ */
617
+ requestPermissions(
618
+ options?: DoorstepPermission[] | PermissionRequestOptions
619
+ ): Promise<PermissionRequestResult>;
620
+ }
621
+
622
+ // =============================================================================================
623
+ // Route connector (preview)
624
+ // =============================================================================================
625
+
626
+ /**
627
+ * One stop of a route. Fields exactly as native `DoorstepRouteStop`.
628
+ * Continuity: replaces the existing wrapper's `DeliveryStop`. `latitude` / `longitude` became
629
+ * `coordinates`; `type` is new and required; `routeStopId` and `radiusMeters` are gone (the
630
+ * radius is set by Doorstep's server configuration, 250 metres by default).
631
+ */
632
+ export type DoorstepRouteStop = {
633
+ /** Required. 1 to 256 characters. Unique within the route. */
634
+ deliveryId: string;
635
+ /** Required. 1 to 1,024 characters. */
636
+ address: string;
637
+ /** Required. */
638
+ coordinates: DeliveryCoordinates;
639
+ /** Required. */
640
+ type: DeliveryType;
641
+ /** 60 to 86,400 seconds. The timeout of the delivery started for this stop. */
642
+ timeout?: number;
643
+ /** Up to 256 characters. */
644
+ driverId?: string;
645
+ /** Up to 256 characters. */
646
+ customerId?: string;
647
+ /** Up to 256 characters. */
648
+ recipientId?: string;
649
+ /** Up to 2,000 characters. */
650
+ customerNotes?: string;
651
+ /** Up to 2,000 characters. */
652
+ recipientNotes?: string;
653
+ /** Up to 32 entries; keys 1 to 64 characters; values up to 256. */
654
+ metadata?: DoorstepMetadata;
655
+ };
656
+
657
+ /**
658
+ * Continuity: replaces the existing wrapper's `RouteOptions`. `timeoutSeconds` became
659
+ * `stopTimeout`; `clientRouteId` became `routeId`; `manualForeground` became `startForeground`
660
+ * (inverted); `defaultRadiusMeters`, `maxAgeSeconds` and `autoStopAfterDropoffSeconds` are gone.
661
+ */
662
+ export type RouteStartRequest = {
663
+ /** Required. 1 to 1,000 stops. */
664
+ stops: DoorstepRouteStop[];
665
+ /** Default driver for stops that give none. Up to 256 characters. */
666
+ driverId?: string;
667
+ /** Describes the route. Up to 32 entries. */
668
+ metadata?: DoorstepMetadata;
669
+ /** Default delivery timeout for stops that give none: 60 to 86,400 seconds. */
670
+ stopTimeout?: number;
671
+ /** Your identifier for the route, up to 256 characters. Omitted: one is generated and returned. */
672
+ routeId?: string;
673
+ /**
674
+ * Default `false`. `true`: when the driver leaves a stop that was not marked, its delivery is
675
+ * stopped and the stop is watched again after a short pause.
676
+ */
677
+ keepStopOnUnmarkedExit?: boolean;
678
+ /** Android only. As for `startDelivery`. Default `true`. */
679
+ startForeground?: boolean;
680
+ /** Android only. Foreground-service notification for the route. */
681
+ notification?: NotificationDetails;
682
+ };
683
+
684
+ /**
685
+ * What the route can do with the current location permission.
686
+ * `full`: stops are watched in the foreground, the background and after an app kill.
687
+ * `noRegions`: stops rarely start. `foregroundOnly`: watched only while the app (iOS) or the
688
+ * SDK's foreground service (Android) runs. `suspended`: kept, and resumes afterwards.
689
+ */
690
+ export type RouteMode = 'full' | 'noRegions' | 'foregroundOnly' | 'suspended' | (string & {});
691
+
692
+ export type RouteStartResult =
693
+ | {
694
+ status: 'started';
695
+ routeId: string;
696
+ revision: number;
697
+ /** `true` when a route was already active. Nothing changed. */
698
+ alreadyActive: boolean;
699
+ mode: RouteMode;
700
+ modeReason: string;
701
+ stopCount: number;
702
+ }
703
+ /** No location permission. Nothing was stored. */
704
+ | { status: 'notPermitted'; reason: string }
705
+ | DoorstepFailure;
706
+
707
+ export type RouteUpdateResult =
708
+ | { status: 'updated'; revision: number; added: number; changed: number; removed: number }
709
+ | { status: 'noActiveRoute' }
710
+ | DoorstepFailure;
711
+
712
+ export type RouteStopResult =
713
+ | { status: 'stopped'; routeId: string; deliveriesStopping: number }
714
+ | { status: 'noActiveRoute' }
715
+ | DoorstepFailure;
716
+
717
+ export type RouteDeliveryStopReason =
718
+ | 'departed'
719
+ | 'departedUnmarked'
720
+ | 'removed'
721
+ | 'expired'
722
+ | 'routeStopped'
723
+ | 'timeout'
724
+ | 'hostStop'
725
+ | (string & {});
726
+
727
+ /**
728
+ * A route event. `seq` only increases. Events are stored on the phone and delivered AT LEAST
729
+ * ONCE, including to a listener attached after an app restart: use `seq` to skip one already
730
+ * handled. At most 256 undelivered events are held, for at most 72 hours.
731
+ * Continuity: replaces `GeofenceSessionEvent` (`STARTED` / `STOPPED`).
732
+ */
733
+ export type DoorstepRouteEvent = { seq: number; routeId: string } & (
734
+ | { kind: 'deliveryStarted'; deliveryId: string; sessionId: string; trigger: string }
735
+ | {
736
+ kind: 'deliveryStopped';
737
+ deliveryId: string;
738
+ sessionId: string;
739
+ reason: RouteDeliveryStopReason;
740
+ /** The Core end reason of the delivery, when known. */
741
+ endReason?: DeliveryEndReason;
742
+ }
743
+ /** A start attempt failed. The connector retries when `retryInSeconds` is set. */
744
+ | { kind: 'deliveryStartFailed'; deliveryId: string; error: DoorstepError; retryInSeconds?: number }
745
+ /** The route reached its lifetime (24 hours by default) and was closed. */
746
+ | { kind: 'routeExpired' }
747
+ | { kind: 'routeModeChanged'; mode: RouteMode; reason: string }
748
+ | {
749
+ kind: 'stopUnwatchable';
750
+ deliveryId: string;
751
+ reason: 'regionRegistrationFailed' | 'startRejected' | (string & {});
752
+ }
753
+ /** Undelivered events were discarded. */
754
+ | { kind: 'eventsDropped'; count: number }
755
+ );
756
+
757
+ /**
758
+ * The Route connector (geofencing). Every method answers `connectorNotAdded` when the connector
759
+ * is not attached in this process. Native: `DoorstepRoute` passed to `addConnector`, and
760
+ * `Doorstep.startRoute` / `updateRoute` / `stopRoute`.
761
+ */
762
+ export interface DoorstepRouteApi {
763
+ /** Creates the value to pass in `Doorstep.initialize({ connectors: [...] })`. Does nothing by itself. */
764
+ connector(options?: RouteConnectorOptions): DoorstepConnector;
765
+
766
+ /**
767
+ * Starts watching a list of stops. One route is active at a time.
768
+ * Continuity: replaces `DoorstepAI.startRouteGeofencing(stops, options)`.
769
+ */
770
+ startRoute(request: RouteStartRequest): Promise<RouteStartResult>;
771
+
772
+ /**
773
+ * Replaces the whole stop list. An empty list is allowed. Does not extend the route's lifetime.
774
+ * Continuity: replaces `DoorstepAI.updateRouteStops(stops)`.
775
+ */
776
+ updateRoute(stops: DoorstepRouteStop[]): Promise<RouteUpdateResult>;
777
+
778
+ /**
779
+ * Ends the route and stops the deliveries the connector started.
780
+ * Continuity: replaces `DoorstepAI.stopRouteGeofencing()`.
781
+ */
782
+ stopRoute(): Promise<RouteStopResult>;
783
+
784
+ /**
785
+ * Attaches a route event listener. Events stored while no JavaScript listener was attached
786
+ * (including while JavaScript was not running) are delivered first, in `seq` order.
787
+ * Continuity: replaces `DoorstepAI.addGeofenceSessionListener`; same subscription shape.
788
+ */
789
+ addRouteEventListener(listener: (event: DoorstepRouteEvent) => void): DoorstepSubscription;
790
+ }
791
+
792
+ // =============================================================================================
793
+ // RealTime connector (preview; several items below may change)
794
+ // =============================================================================================
795
+
796
+ export type RealTimeNotReadyReason =
797
+ /**
798
+ * The app (iOS: Team ID and bundle ID; Android: package name and the SHA-256 digest of the
799
+ * certificate that signs the installed app) is not on Doorstep's approved list for the account.
800
+ * Also reported by a debug or development-signed build where test model packs are not enabled:
801
+ * such a build never receives production models. Contact Doorstep.
802
+ */
803
+ | 'appNotApproved'
804
+ /**
805
+ * The device cannot run RealTime: Android below 12, no hardware-backed keystore, no
806
+ * Google-certified attestation keys; an iPhone, simulator or emulator without app attestation.
807
+ */
808
+ | 'deviceUnsupported'
809
+ /**
810
+ * Doorstep did not accept the device's proof, for example an Android phone whose bootloader is
811
+ * unlocked. Nothing the app can do on this device.
812
+ */
813
+ | 'attestationRefused'
814
+ | 'moduleOutdated'
815
+ | 'lowDisk'
816
+ | 'meteredNotAllowed'
817
+ | 'deviceLocked'
818
+ | (string & {});
819
+
820
+ export type RealTimeReadiness =
821
+ | { state: 'ready' }
822
+ | { state: 'preparing' }
823
+ | { state: 'notReady'; reason: RealTimeNotReadyReason };
824
+
825
+ export type RealTimeMonitoring =
826
+ | { state: 'monitoring' }
827
+ | { state: 'waitingForModels' }
828
+ | { state: 'notMonitored'; reason: string };
829
+
830
+ /**
831
+ * Whether one output is on for a delivery.
832
+ * Provisional: the exact value set is not final. `recordOnly` means the output is produced and
833
+ * uploaded but not delivered to the app.
834
+ */
835
+ export type RealTimeOutputState = 'on' | 'off' | 'recordOnly' | (string & {});
836
+
837
+ export type RealTimeStatusEvent =
838
+ /** Raised at start-up and on every change. */
839
+ | { type: 'readinessChanged'; readiness: RealTimeReadiness }
840
+ /** Raised when a delivery's monitoring state changes (both platforms). `sessionId` is Android only. */
841
+ | {
842
+ type: 'monitoringChanged';
843
+ deliveryId: string;
844
+ sessionId?: string;
845
+ monitoring: RealTimeMonitoring;
846
+ }
847
+ /** The delivery that live events apply to changed. `null`: none. */
848
+ | { type: 'activeDeliveryChanged'; deliveryId: string | null }
849
+
850
+ export type RealTimeHint = 'wrongBuilding' | 'leftOutsideBuilding' | 'leftInLobby' | (string & {});
851
+
852
+ export type RealTimeNotAssessedReason =
853
+ | 'modelsUnavailable'
854
+ | 'notMonitored'
855
+ | 'disabledByConfig'
856
+ | 'timeBudgetExceeded'
857
+ | 'seriesLost'
858
+ | 'addressUnresolved'
859
+ | (string & {});
860
+
861
+ type RealTimePointInTimeBase = {
862
+ deliveryId: string;
863
+ sessionId: string;
864
+ /** The `eventId` that `Doorstep.markEvent` returned for this mark (native: `eventId`; the design docs called it `markId`). */
865
+ eventId: string;
866
+ /**
867
+ * 1 for the first dropoff mark of the delivery, 2 for the second, and so on. Provisional type.
868
+ */
869
+ markOrdinal: number;
870
+ /** Whether the result was also stored for upload. */
871
+ recorded: boolean;
872
+ /** Whether the result was given to the app (false when results to the app are off for the account). */
873
+ delivered: boolean;
874
+ /** The check's identifier (lower-case hex). */
875
+ checkId: string;
876
+ };
877
+
878
+ /**
879
+ * The result of the check at one dropoff mark. Advisory.
880
+ * `alert: false` does not mean the delivery is confirmed correct, and `notAssessed` must never
881
+ * be shown as "no alert". Maps to native `DoorstepRealTimePointInTimeResult`.
882
+ */
883
+ export type RealTimePointInTimeResult =
884
+ | (RealTimePointInTimeBase & {
885
+ outcome: 'assessed';
886
+ /** `true`: the dropoff may be in the wrong place. */
887
+ alert: boolean;
888
+ /** 0 to 1. */
889
+ alertRisk: number;
890
+ primaryHint?: RealTimeHint;
891
+ secondaryHint?: RealTimeHint;
892
+ })
893
+ | (RealTimePointInTimeBase & { outcome: 'notAssessed'; notAssessedReason: RealTimeNotAssessedReason });
894
+
895
+ /** Provisional: delivery of live events to the app may be removed. */
896
+ export type RealTimeLiveEvent = {
897
+ deliveryId: string;
898
+ sessionId: string;
899
+ eventId: string;
900
+ type: 'parkedToWalking' | 'indoorEntry' | 'elevationChange' | 'prolongedIdle' | (string & {});
901
+ /** Unix epoch seconds. Provisional type. */
902
+ occurredAt: number;
903
+ /** Position of this event among the delivery's live events. */
904
+ order: number;
905
+ confidence: 'high' | 'medium' | (string & {});
906
+ };
907
+
908
+ export type RealTimeStatusResult =
909
+ | {
910
+ status: 'ok';
911
+ readiness: RealTimeReadiness;
912
+ /** The RealTime module's version. */
913
+ moduleVersion: string;
914
+ /** Each model and its state (for example `loaded`). */
915
+ models: Array<{ model: string; state: string }>;
916
+ /** The deliveries RealTime knows about. Provisional shape. */
917
+ deliveries: Array<{ deliveryId: string; sessionId: string; monitoring: RealTimeMonitoring }>;
918
+ }
919
+ | DoorstepFailure;
920
+
921
+ export type RealTimePointInTimeQueryResult =
922
+ | { status: 'result'; result: RealTimePointInTimeResult }
923
+ /** A dropoff was marked and its check has not finished. */
924
+ | { status: 'pending' }
925
+ | { status: 'none' }
926
+ | DoorstepFailure;
927
+
928
+ export type RealTimeRevokeResult = { status: 'ok' } | DoorstepFailure;
929
+
930
+ /** Options for `requestPointInTimeAlert`. */
931
+ export type RequestPointInTimeAlertOptions = {
932
+ /** How long to wait for a check that has not finished, in milliseconds. Default 10000. */
933
+ timeoutMs?: number;
934
+ };
935
+
936
+ /**
937
+ * What `requestPointInTimeAlert` resolves: the check's result for the delivery's most recent dropoff mark, or
938
+ * `notAssessed` when there is nothing to give:
939
+ * - `noDropoffMark`: no dropoff mark is known for the delivery (mark first with `markDropoff` / `markEvent`);
940
+ * - `timeout`: the check did not finish within `timeoutMs` (the result still arrives later, to the listener and
941
+ * to `pointInTimeResult`).
942
+ * A `failed` status is an SDK refusal (for example `connectorNotAdded`), as for every other call.
943
+ */
944
+ export type RealTimePointInTimeAlertResult =
945
+ | RealTimePointInTimeResult
946
+ | { deliveryId: string; outcome: 'notAssessed'; notAssessedReason: 'noDropoffMark' | 'timeout' }
947
+ | DoorstepFailure;
948
+
949
+ /**
950
+ * The RealTime connector. It has NO start, stop or mark call of its own: it reacts to
951
+ * `Doorstep.startDelivery`, `Doorstep.markEvent(..., 'dropoff')` and `Doorstep.stopDelivery`.
952
+ * Every method answers `connectorNotAdded` when the connector is not attached in this process.
953
+ * Native: `DoorstepRealTime(options:listener:)` passed to `addConnector`.
954
+ * Not offered from JavaScript: the native per-delivery `monitorDelivery` function (it is a
955
+ * synchronous native callback).
956
+ * Listeners receive only events raised while they are attached; use `status()` and
957
+ * `pointInTimeResult()` to catch up after JavaScript starts.
958
+ */
959
+ export interface DoorstepRealTimeApi {
960
+ /** Creates the value to pass in `Doorstep.initialize({ connectors: [...] })`. */
961
+ connector(options?: RealTimeConnectorOptions): DoorstepConnector;
962
+
963
+ /** Current readiness and per-delivery state. Native: `Doorstep.realTimeStatus()`. */
964
+ status(): Promise<RealTimeStatusResult>;
965
+
966
+ /** The most recent result for a delivery. Native: `Doorstep.realTimePointInTimeResult(deliveryId:)`. */
967
+ pointInTimeResult(deliveryId: string, markOrdinal?: number): Promise<RealTimePointInTimeQueryResult>;
968
+
969
+ /**
970
+ * The point-in-time alert for the delivery's most recent dropoff mark. Call it after `markDropoff` (or
971
+ * `Doorstep.markEvent(id, 'dropoff')`) and before `stopDelivery`. It does not start a check: the check starts at
972
+ * the mark. It returns the result when it is ready, waiting up to `timeoutMs` (default 10 s) for one that has
973
+ * not finished. Implemented in JavaScript over `pointInTimeResult` and the result listener.
974
+ */
975
+ requestPointInTimeAlert(
976
+ deliveryId: string,
977
+ options?: RequestPointInTimeAlertOptions
978
+ ): Promise<RealTimePointInTimeAlertResult>;
979
+
980
+ /** Removes the models and keys from the phone. Rarely needed. Native: `Doorstep.revokeRealTime()`. */
981
+ revoke(): Promise<RealTimeRevokeResult>;
982
+
983
+ /** Native: `realTimeStatusChanged` / `onRealTimeStatus`. */
984
+ addStatusListener(listener: (event: RealTimeStatusEvent) => void): DoorstepSubscription;
985
+
986
+ /** Called once per dropoff mark. Native: `realTimePointInTimeResult` / `onRealTimePointInTimeResult`. */
987
+ addPointInTimeResultListener(
988
+ listener: (result: RealTimePointInTimeResult) => void
989
+ ): DoorstepSubscription;
990
+
991
+ /** Native: `realTimeLiveEvent` / `onRealTimeLiveEvent`. Provisional. */
992
+ addLiveEventListener(listener: (event: RealTimeLiveEvent) => void): DoorstepSubscription;
993
+ }
994
+
995
+ // =============================================================================================
996
+ // Embed component (Doorstep Go) (preview)
997
+ // =============================================================================================
998
+
999
+ /** Continuity: unchanged. */
1000
+ export type DoorstepEmbedMode = 'preview' | 'compact';
1001
+
1002
+ /** Continuity: unchanged, with open unions. Maps to native `DoorstepEmbedError`. */
1003
+ export type DoorstepEmbedError = {
1004
+ code:
1005
+ | 'INVALID_API_KEY'
1006
+ | 'DESTINATION_NOT_MAPPED'
1007
+ | 'NETWORK_ERROR'
1008
+ | 'INTERNAL_SERVER_ERROR'
1009
+ | (string & {});
1010
+ stage: 'linkGeneration' | 'webNavigation' | 'initialization' | 'rendering' | (string & {});
1011
+ message: string;
1012
+ isRetryable: boolean;
1013
+ httpStatusCode?: number;
1014
+ requestId?: string;
1015
+ };
1016
+
1017
+ /** What `onSuccess` receives. */
1018
+ export type DoorstepEmbedOutput = {
1019
+ link_id?: string;
1020
+ expirationDateISO?: string;
1021
+ /** Present when requested through `queryParams`. */
1022
+ entranceData?: unknown;
1023
+ /** Present when requested through `queryParams`. */
1024
+ parkingData?: unknown;
1025
+ [key: string]: unknown;
1026
+ };
1027
+
1028
+ /**
1029
+ * Continuity: every existing prop keeps its name, type and default. New: `queryParams`,
1030
+ * `onLocationPermissionNeeded`, and the `output` argument of `onSuccess`.
1031
+ */
1032
+ export type DoorstepEmbedViewProps = ViewProps & {
1033
+ /** Required. The delivery address as text. */
1034
+ address: string;
1035
+ /** Your delivery identifier. */
1036
+ deliveryID?: string;
1037
+ /** Leave at the default. A release build refuses any other value. */
1038
+ linkAPI?: string;
1039
+ /** Controlled display mode. Omit it to let the view's own expand button control it. */
1040
+ mode?: DoorstepEmbedMode;
1041
+ /** Height in points/dp in preview mode. Default 300. */
1042
+ inlineHeight?: number;
1043
+ /** Height in points/dp in compact mode. Default 600. */
1044
+ expandedHeight?: number;
1045
+ /** Corner radius in points/dp. Default 0. */
1046
+ borderRadius?: number;
1047
+ /** Map style. Default `'light'`. */
1048
+ baseMap?: string;
1049
+ /** Label for the parking marker. Default `'95% of drivers parked here'`. */
1050
+ parkingText?: string;
1051
+ /** Default `'#027FB8'`. */
1052
+ markerColor?: string;
1053
+ /** Default `'#3291BC'`. */
1054
+ polygonColor?: string;
1055
+ /** Default `'#FF847B'`. */
1056
+ parkingColor?: string;
1057
+ /** An exact destination point. */
1058
+ endpoint?: LatLngObject;
1059
+ /** Default `true`. */
1060
+ mapStyleToggle?: boolean;
1061
+ /** Default `true`. */
1062
+ gpsRecenterToggle?: boolean;
1063
+ /** Default `true`. Android native name: `streetViewVisible`. */
1064
+ streetViewToggle?: boolean;
1065
+ /** Default `true`. */
1066
+ expandContractToggle?: boolean;
1067
+ /** Fit the map to include the driver's position at start. Default `false`. */
1068
+ fitGpsOnStart?: boolean;
1069
+ /** Show a non-interactive map. Default `false`. */
1070
+ staticMap?: boolean;
1071
+ /** How long to wait for the page before reporting an error. Default 15. */
1072
+ readyTimeoutSeconds?: number;
1073
+ /** New. Extra options for the link request, for example `entrance` and `parkingData`. */
1074
+ queryParams?: Record<string, string>;
1075
+ /** When the card switches between preview and compact. */
1076
+ onModeChanged?: (mode: DoorstepEmbedMode) => void;
1077
+ /** Once per load attempt, when page loading begins. */
1078
+ onLoad?: () => void;
1079
+ /** Alias of `onLoad`, kept from the existing wrapper. */
1080
+ onLoading?: () => void;
1081
+ /** When the page is ready. Continuity: the existing callback took no argument; that still type-checks. */
1082
+ onSuccess?: (output: DoorstepEmbedOutput) => void;
1083
+ /**
1084
+ * When the attempt fails. Exactly one of `onSuccess` and `onError` is called per attempt.
1085
+ * Continuity: the message stays the first argument.
1086
+ */
1087
+ onError?: (message: string, error: DoorstepEmbedError) => void;
1088
+ /**
1089
+ * New. At most once per load, when the page wants the driver's position and the app does not
1090
+ * hold location permission. The view never prompts for location itself.
1091
+ */
1092
+ onLocationPermissionNeeded?: () => void;
1093
+ };
1094
+
1095
+ /**
1096
+ * The Doorstep Go map card for one delivery address. Independent of Core: it is not a connector.
1097
+ * Keep it mounted while visible, and do not place it inside a scrolling container.
1098
+ * Continuity: same component name. The static alias `DoorstepAI.EmbedView` is gone.
1099
+ */
1100
+ export type DoorstepEmbedViewComponent = (props: DoorstepEmbedViewProps) => ReactElement | null;
1101
+
1102
+ /** Doorstep Go settings. Maps to native `DoorstepGo`. */
1103
+ export interface DoorstepGoApi {
1104
+ /**
1105
+ * Sets the Go key, a SEPARATE key from the SDK key. Held in memory only, never saved: call it
1106
+ * on every start of JavaScript, before an embed view appears. There is no fallback to the SDK
1107
+ * key. Continuity: replaces `DoorstepAI.setDoorstepGoApiKey(apiKey)`.
1108
+ */
1109
+ setApiKey(key: string): void;
1110
+ }