@de./sdk 1.0.5 → 2.1.0

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 (838) hide show
  1. package/dist/allend/Access.d.ts +51 -0
  2. package/dist/allend/Access.js +199 -0
  3. package/dist/allend/Access.js.map +1 -0
  4. package/dist/allend/Agent/consolidation.d.ts +16 -0
  5. package/dist/allend/Agent/consolidation.js +38 -0
  6. package/dist/allend/Agent/consolidation.js.map +1 -0
  7. package/dist/allend/Agent/delivery.js +43 -0
  8. package/dist/allend/Agent/delivery.js.map +1 -0
  9. package/dist/allend/Agent/dispatch.js +24 -0
  10. package/dist/allend/Agent/dispatch.js.map +1 -0
  11. package/dist/{de.sdk/src/allend → allend}/Agent/index.d.ts +18 -0
  12. package/dist/allend/Agent/index.js +74 -0
  13. package/dist/allend/Agent/index.js.map +1 -0
  14. package/dist/allend/Agent/navigation.js +25 -0
  15. package/dist/allend/Agent/navigation.js.map +1 -0
  16. package/dist/allend/Agent/origin.js +31 -0
  17. package/dist/allend/Agent/origin.js.map +1 -0
  18. package/dist/allend/Agent/reallocation.js +17 -0
  19. package/dist/allend/Agent/reallocation.js.map +1 -0
  20. package/dist/allend/Agent/realtime.d.ts +36 -0
  21. package/dist/allend/Agent/realtime.js +111 -0
  22. package/dist/allend/Agent/realtime.js.map +1 -0
  23. package/dist/allend/Agent/rides.js +51 -0
  24. package/dist/allend/Agent/rides.js.map +1 -0
  25. package/dist/allend/Agent/shipping.js +43 -0
  26. package/dist/allend/Agent/shipping.js.map +1 -0
  27. package/dist/allend/CSP/analytics.js +51 -0
  28. package/dist/allend/CSP/analytics.js.map +1 -0
  29. package/dist/{de.sdk/src/allend → allend}/CSP/index.d.ts +4 -0
  30. package/dist/allend/CSP/index.js +43 -0
  31. package/dist/allend/CSP/index.js.map +1 -0
  32. package/dist/allend/CSP/inventory.js +78 -0
  33. package/dist/allend/CSP/inventory.js.map +1 -0
  34. package/dist/allend/CSP/orders.js +97 -0
  35. package/dist/allend/CSP/orders.js.map +1 -0
  36. package/dist/allend/CSP/webhooks.js +56 -0
  37. package/dist/allend/CSP/webhooks.js.map +1 -0
  38. package/dist/{de.sdk/src/allend → allend}/Customer/index.d.ts +10 -0
  39. package/dist/allend/Customer/index.js +39 -0
  40. package/dist/allend/Customer/index.js.map +1 -0
  41. package/dist/allend/Customer/intents.js +55 -0
  42. package/dist/allend/Customer/intents.js.map +1 -0
  43. package/dist/allend/Customer/orders.js +43 -0
  44. package/dist/allend/Customer/orders.js.map +1 -0
  45. package/dist/allend/Customer/rides.js +50 -0
  46. package/dist/allend/Customer/rides.js.map +1 -0
  47. package/dist/{de.sdk/src/allend → allend}/DEV/developers.d.ts +2 -1
  48. package/dist/allend/DEV/developers.js +35 -0
  49. package/dist/allend/DEV/developers.js.map +1 -0
  50. package/dist/{de.sdk/src/allend → allend}/DEV/index.d.ts +4 -0
  51. package/dist/allend/DEV/index.js +37 -0
  52. package/dist/allend/DEV/index.js.map +1 -0
  53. package/dist/allend/IoTClient.js +53 -0
  54. package/dist/allend/IoTClient.js.map +1 -0
  55. package/dist/{de.sdk/src/allend → allend}/IoTSP/backend.d.ts +2 -0
  56. package/dist/allend/IoTSP/backend.js +75 -0
  57. package/dist/allend/IoTSP/backend.js.map +1 -0
  58. package/dist/allend/IoTSP/devices.js +61 -0
  59. package/dist/allend/IoTSP/devices.js.map +1 -0
  60. package/dist/{de.sdk/src/allend → allend}/IoTSP/index.d.ts +4 -0
  61. package/dist/{de.sdk/src/allend → allend}/IoTSP/index.js +24 -45
  62. package/dist/allend/IoTSP/index.js.map +1 -0
  63. package/dist/allend/IoTSP/rules.js +81 -0
  64. package/dist/allend/IoTSP/rules.js.map +1 -0
  65. package/dist/allend/IoTSP/topics.js +81 -0
  66. package/dist/allend/IoTSP/topics.js.map +1 -0
  67. package/dist/{de.sdk/src/allend → allend}/LSP/agents.d.ts +2 -1
  68. package/dist/allend/LSP/agents.js +89 -0
  69. package/dist/allend/LSP/agents.js.map +1 -0
  70. package/dist/{de.sdk/src/allend → allend}/LSP/carriers.d.ts +2 -1
  71. package/dist/allend/LSP/carriers.js +315 -0
  72. package/dist/allend/LSP/carriers.js.map +1 -0
  73. package/dist/allend/LSP/coverage.js +135 -0
  74. package/dist/allend/LSP/coverage.js.map +1 -0
  75. package/dist/{de.sdk/src/allend → allend}/LSP/fleets.d.ts +7 -7
  76. package/dist/allend/LSP/fleets.js +381 -0
  77. package/dist/allend/LSP/fleets.js.map +1 -0
  78. package/dist/{de.sdk/src/allend → allend}/LSP/hubs.d.ts +4 -3
  79. package/dist/allend/LSP/hubs.js +186 -0
  80. package/dist/allend/LSP/hubs.js.map +1 -0
  81. package/dist/{de.sdk/src/allend → allend}/LSP/index.d.ts +4 -0
  82. package/dist/allend/LSP/index.js +55 -0
  83. package/dist/allend/LSP/index.js.map +1 -0
  84. package/dist/allend/LSP/inventory.js +56 -0
  85. package/dist/allend/LSP/inventory.js.map +1 -0
  86. package/dist/{de.sdk/src/allend → allend}/LSP/operations.d.ts +24 -2
  87. package/dist/allend/LSP/operations.js +156 -0
  88. package/dist/allend/LSP/operations.js.map +1 -0
  89. package/dist/{de.sdk/src/allend → allend}/LSP/orders.d.ts +20 -1
  90. package/dist/allend/LSP/orders.js +303 -0
  91. package/dist/allend/LSP/orders.js.map +1 -0
  92. package/dist/{de.sdk/src/allend → allend}/LSP/pods.d.ts +2 -1
  93. package/dist/allend/LSP/pods.js +137 -0
  94. package/dist/allend/LSP/pods.js.map +1 -0
  95. package/dist/{de.sdk/src/allend → allend}/LSP/pricing.d.ts +15 -4
  96. package/dist/allend/LSP/pricing.js +151 -0
  97. package/dist/allend/LSP/pricing.js.map +1 -0
  98. package/dist/allend/LSP/psl.js +68 -0
  99. package/dist/allend/LSP/psl.js.map +1 -0
  100. package/dist/{de.sdk/src/allend → allend}/LSP/warehouses.d.ts +2 -1
  101. package/dist/allend/LSP/warehouses.js +94 -0
  102. package/dist/allend/LSP/warehouses.js.map +1 -0
  103. package/dist/{de.sdk/src/allend → allend}/MSI/Controls.d.ts +7 -4
  104. package/dist/allend/MSI/Controls.js +773 -0
  105. package/dist/allend/MSI/Controls.js.map +1 -0
  106. package/dist/{de.sdk/src/allend → allend}/MSI/Handles.d.ts +5 -4
  107. package/dist/allend/MSI/Handles.js +378 -0
  108. package/dist/allend/MSI/Handles.js.map +1 -0
  109. package/dist/{de.sdk/src/allend → allend}/MSI/Plugins.d.ts +2 -2
  110. package/dist/{de.sdk/src/allend → allend}/MSI/Plugins.js +12 -15
  111. package/dist/allend/MSI/Plugins.js.map +1 -0
  112. package/dist/{de.sdk/src/allend → allend}/MSI/index.d.ts +4 -3
  113. package/dist/allend/MSI/index.js +191 -0
  114. package/dist/allend/MSI/index.js.map +1 -0
  115. package/dist/allend/MSI/native.d.ts +32 -0
  116. package/dist/allend/MSI/native.js +246 -0
  117. package/dist/allend/MSI/native.js.map +1 -0
  118. package/dist/allend/MSI/token.d.ts +12 -0
  119. package/dist/allend/MSI/token.js +21 -0
  120. package/dist/allend/MSI/token.js.map +1 -0
  121. package/dist/allend/OTPAuth/index.d.ts +77 -0
  122. package/dist/allend/OTPAuth/index.js +69 -0
  123. package/dist/allend/OTPAuth/index.js.map +1 -0
  124. package/dist/allend/Pipelines/analytics.js +24 -0
  125. package/dist/allend/Pipelines/analytics.js.map +1 -0
  126. package/dist/allend/Pipelines/escalations.js +25 -0
  127. package/dist/allend/Pipelines/escalations.js.map +1 -0
  128. package/dist/allend/Pipelines/executions.js +44 -0
  129. package/dist/allend/Pipelines/executions.js.map +1 -0
  130. package/dist/{de.sdk/src/allend → allend}/Pipelines/index.d.ts +4 -0
  131. package/dist/allend/Pipelines/index.js +88 -0
  132. package/dist/allend/Pipelines/index.js.map +1 -0
  133. package/dist/allend/Pipelines/interventions.js +25 -0
  134. package/dist/allend/Pipelines/interventions.js.map +1 -0
  135. package/dist/allend/Pipelines/monitor.js +30 -0
  136. package/dist/allend/Pipelines/monitor.js.map +1 -0
  137. package/dist/allend/Pipelines/queries.js +25 -0
  138. package/dist/allend/Pipelines/queries.js.map +1 -0
  139. package/dist/allend/Pipelines/templates.js +46 -0
  140. package/dist/allend/Pipelines/templates.js.map +1 -0
  141. package/dist/allend/Pipelines/utils.js.map +1 -0
  142. package/dist/allend/Pipelines/webhooks.js +35 -0
  143. package/dist/allend/Pipelines/webhooks.js.map +1 -0
  144. package/dist/allend/Pipelines/workers.js +45 -0
  145. package/dist/allend/Pipelines/workers.js.map +1 -0
  146. package/dist/allend/Queries/capacity.js +44 -0
  147. package/dist/allend/Queries/capacity.js.map +1 -0
  148. package/dist/allend/Queries/discovery.js +45 -0
  149. package/dist/allend/Queries/discovery.js.map +1 -0
  150. package/dist/{de.sdk/src/allend → allend}/Queries/index.d.ts +4 -0
  151. package/dist/allend/Queries/index.js +40 -0
  152. package/dist/allend/Queries/index.js.map +1 -0
  153. package/dist/allend/Queries/matching.js +18 -0
  154. package/dist/allend/Queries/matching.js.map +1 -0
  155. package/dist/allend/Queries/performance.js +31 -0
  156. package/dist/allend/Queries/performance.js.map +1 -0
  157. package/dist/allend/Queries/pricing.js +43 -0
  158. package/dist/allend/Queries/pricing.js.map +1 -0
  159. package/dist/allend/Realtime/index.js +62 -0
  160. package/dist/allend/Realtime/index.js.map +1 -0
  161. package/dist/allend/Shared/account.js +22 -0
  162. package/dist/allend/Shared/account.js.map +1 -0
  163. package/dist/allend/Shared/buckets.js +95 -0
  164. package/dist/allend/Shared/buckets.js.map +1 -0
  165. package/dist/allend/Shared/context.js +33 -0
  166. package/dist/allend/Shared/context.js.map +1 -0
  167. package/dist/allend/Shared/faqs.js +87 -0
  168. package/dist/allend/Shared/faqs.js.map +1 -0
  169. package/dist/{de.sdk/src/allend → allend}/Shared/invitation.d.ts +10 -2
  170. package/dist/allend/Shared/invitation.js +40 -0
  171. package/dist/allend/Shared/invitation.js.map +1 -0
  172. package/dist/allend/Shared/operators.js +37 -0
  173. package/dist/allend/Shared/operators.js.map +1 -0
  174. package/dist/allend/Shared/users.js +29 -0
  175. package/dist/allend/Shared/users.js.map +1 -0
  176. package/dist/{de.sdk/src/allend → allend}/Tracking/index.d.ts +4 -0
  177. package/dist/allend/Tracking/index.js +39 -0
  178. package/dist/allend/Tracking/index.js.map +1 -0
  179. package/dist/allend/Utilities/common.js +53 -0
  180. package/dist/allend/Utilities/common.js.map +1 -0
  181. package/dist/allend/Utilities/fares.js +39 -0
  182. package/dist/allend/Utilities/fares.js.map +1 -0
  183. package/dist/{de.sdk/src/allend → allend}/Utilities/index.d.ts +4 -0
  184. package/dist/allend/Utilities/index.js +36 -0
  185. package/dist/allend/Utilities/index.js.map +1 -0
  186. package/dist/allend/Utilities/nearby.js +32 -0
  187. package/dist/allend/Utilities/nearby.js.map +1 -0
  188. package/dist/allend/Workflows/Client.d.ts +17 -0
  189. package/dist/allend/Workflows/Client.js +50 -0
  190. package/dist/allend/Workflows/Client.js.map +1 -0
  191. package/dist/{de.sdk/src/allend → allend}/Workflows/Delivery.js +3 -4
  192. package/dist/allend/Workflows/Delivery.js.map +1 -0
  193. package/dist/{de.sdk/src/allend → allend}/Workflows/index.js +4 -6
  194. package/dist/allend/Workflows/index.js.map +1 -0
  195. package/dist/allend/Workspace/index.d.ts +162 -0
  196. package/dist/allend/Workspace/index.js +220 -0
  197. package/dist/allend/Workspace/index.js.map +1 -0
  198. package/dist/{de.sdk/src/allend → allend}/index.d.ts +2 -1
  199. package/dist/{de.sdk/src/allend → allend}/index.js +10 -10
  200. package/dist/allend/index.js.map +1 -0
  201. package/dist/{de.sdk/src/backend → backend}/Auth.d.ts +12 -0
  202. package/dist/backend/Auth.js +166 -0
  203. package/dist/backend/Auth.js.map +1 -0
  204. package/dist/baseUrl.d.ts +66 -0
  205. package/dist/baseUrl.js +82 -0
  206. package/dist/baseUrl.js.map +1 -0
  207. package/dist/{de.sdk/src/index.d.ts → core.d.ts} +31 -9
  208. package/dist/{de.sdk/src/index.js → core.js} +61 -43
  209. package/dist/core.js.map +1 -0
  210. package/dist/error.d.ts +17 -0
  211. package/dist/error.js +26 -0
  212. package/dist/error.js.map +1 -0
  213. package/dist/index.d.ts +31 -0
  214. package/dist/index.js +44 -1
  215. package/dist/index.js.map +1 -0
  216. package/dist/react-native.d.ts +30 -0
  217. package/dist/react-native.js +55 -0
  218. package/dist/react-native.js.map +1 -0
  219. package/dist/response.d.ts +9 -0
  220. package/dist/response.js +42 -0
  221. package/dist/response.js.map +1 -0
  222. package/dist/types/access.d.ts +57 -0
  223. package/dist/types/channel.d.ts +45 -0
  224. package/dist/types/index.d.ts +45 -2
  225. package/dist/utils/index.d.ts +30 -0
  226. package/dist/utils/index.js +18 -0
  227. package/dist/utils/index.js.map +1 -0
  228. package/dist/{de.sdk/src/utils → utils}/stream.js +25 -26
  229. package/dist/utils/stream.js.map +1 -0
  230. package/package.json +39 -20
  231. package/src/allend/Access.ts +146 -13
  232. package/src/allend/Agent/consolidation.ts +20 -8
  233. package/src/allend/Agent/delivery.ts +6 -16
  234. package/src/allend/Agent/dispatch.ts +3 -7
  235. package/src/allend/Agent/index.ts +30 -13
  236. package/src/allend/Agent/navigation.ts +3 -7
  237. package/src/allend/Agent/origin.ts +4 -10
  238. package/src/allend/Agent/reallocation.ts +2 -4
  239. package/src/allend/Agent/realtime.ts +140 -0
  240. package/src/allend/Agent/rides.ts +7 -19
  241. package/src/allend/Agent/shipping.ts +6 -16
  242. package/src/allend/CSP/analytics.ts +7 -19
  243. package/src/allend/CSP/index.ts +7 -1
  244. package/src/allend/CSP/inventory.ts +11 -31
  245. package/src/allend/CSP/orders.ts +14 -40
  246. package/src/allend/CSP/webhooks.ts +8 -22
  247. package/src/allend/Customer/index.ts +14 -2
  248. package/src/allend/Customer/intents.ts +7 -19
  249. package/src/allend/Customer/orders.ts +6 -16
  250. package/src/allend/Customer/rides.ts +7 -19
  251. package/src/allend/DEV/developers.ts +7 -13
  252. package/src/allend/DEV/index.ts +7 -1
  253. package/src/allend/IoTSP/backend.ts +5 -3
  254. package/src/allend/IoTSP/devices.ts +9 -25
  255. package/src/allend/IoTSP/index.ts +7 -1
  256. package/src/allend/IoTSP/rules.ts +12 -34
  257. package/src/allend/IoTSP/topics.ts +12 -34
  258. package/src/allend/LSP/agents.ts +15 -37
  259. package/src/allend/LSP/carriers.ts +49 -139
  260. package/src/allend/LSP/coverage.ts +39 -115
  261. package/src/allend/LSP/fleets.ts +62 -176
  262. package/src/allend/LSP/hubs.ts +29 -77
  263. package/src/allend/LSP/index.ts +7 -1
  264. package/src/allend/LSP/inventory.ts +7 -19
  265. package/src/allend/LSP/operations.ts +71 -47
  266. package/src/allend/LSP/orders.ts +85 -116
  267. package/src/allend/LSP/pods.ts +22 -58
  268. package/src/allend/LSP/pricing.ts +42 -56
  269. package/src/allend/LSP/psl.ts +9 -25
  270. package/src/allend/LSP/warehouses.ts +14 -34
  271. package/src/allend/MSI/Controls.ts +104 -88
  272. package/src/allend/MSI/Handles.ts +23 -14
  273. package/src/allend/MSI/Plugins.ts +3 -3
  274. package/src/allend/MSI/index.ts +85 -16
  275. package/src/allend/MSI/native.tsx +314 -0
  276. package/src/allend/MSI/token.ts +20 -0
  277. package/src/allend/OTPAuth/index.ts +125 -32
  278. package/src/allend/Pipelines/analytics.ts +3 -7
  279. package/src/allend/Pipelines/escalations.ts +3 -7
  280. package/src/allend/Pipelines/executions.ts +6 -16
  281. package/src/allend/Pipelines/index.ts +13 -19
  282. package/src/allend/Pipelines/interventions.ts +3 -7
  283. package/src/allend/Pipelines/monitor.ts +4 -10
  284. package/src/allend/Pipelines/queries.ts +3 -7
  285. package/src/allend/Pipelines/templates.ts +5 -13
  286. package/src/allend/Pipelines/webhooks.ts +2 -4
  287. package/src/allend/Pipelines/workers.ts +4 -10
  288. package/src/allend/Queries/capacity.ts +6 -16
  289. package/src/allend/Queries/discovery.ts +6 -16
  290. package/src/allend/Queries/index.ts +6 -0
  291. package/src/allend/Queries/matching.ts +2 -4
  292. package/src/allend/Queries/performance.ts +4 -10
  293. package/src/allend/Queries/pricing.ts +6 -16
  294. package/src/allend/Realtime/index.ts +4 -2
  295. package/src/allend/Shared/account.ts +3 -7
  296. package/src/allend/Shared/buckets.ts +14 -40
  297. package/src/allend/Shared/faqs.ts +13 -37
  298. package/src/allend/Shared/invitation.ts +14 -11
  299. package/src/allend/Shared/operators.ts +5 -13
  300. package/src/allend/Shared/users.ts +4 -10
  301. package/src/allend/Tracking/index.ts +9 -5
  302. package/src/allend/Utilities/common.ts +7 -19
  303. package/src/allend/Utilities/fares.ts +5 -13
  304. package/src/allend/Utilities/index.ts +6 -0
  305. package/src/allend/Utilities/nearby.ts +4 -10
  306. package/src/allend/Workflows/Client.ts +9 -15
  307. package/src/allend/Workspace/index.ts +256 -67
  308. package/src/allend/index.ts +2 -0
  309. package/src/backend/Auth.ts +16 -3
  310. package/src/baseUrl.ts +68 -4
  311. package/src/core.ts +146 -0
  312. package/src/error.ts +27 -0
  313. package/src/index.ts +14 -103
  314. package/src/react-native.ts +43 -0
  315. package/src/response.ts +38 -0
  316. package/src/types/access.d.ts +57 -0
  317. package/src/types/channel.d.ts +45 -0
  318. package/src/types/index.d.ts +45 -2
  319. package/src/utils/index.ts +15 -0
  320. package/dist/de.sdk/src/allend/Access.d.ts +0 -15
  321. package/dist/de.sdk/src/allend/Access.js +0 -164
  322. package/dist/de.sdk/src/allend/Access.js.map +0 -1
  323. package/dist/de.sdk/src/allend/Agent/consolidation.d.ts +0 -8
  324. package/dist/de.sdk/src/allend/Agent/consolidation.js +0 -85
  325. package/dist/de.sdk/src/allend/Agent/consolidation.js.map +0 -1
  326. package/dist/de.sdk/src/allend/Agent/delivery.js +0 -140
  327. package/dist/de.sdk/src/allend/Agent/delivery.js.map +0 -1
  328. package/dist/de.sdk/src/allend/Agent/dispatch.js +0 -85
  329. package/dist/de.sdk/src/allend/Agent/dispatch.js.map +0 -1
  330. package/dist/de.sdk/src/allend/Agent/index.js +0 -158
  331. package/dist/de.sdk/src/allend/Agent/index.js.map +0 -1
  332. package/dist/de.sdk/src/allend/Agent/navigation.js +0 -86
  333. package/dist/de.sdk/src/allend/Agent/navigation.js.map +0 -1
  334. package/dist/de.sdk/src/allend/Agent/origin.js +0 -104
  335. package/dist/de.sdk/src/allend/Agent/origin.js.map +0 -1
  336. package/dist/de.sdk/src/allend/Agent/reallocation.js +0 -66
  337. package/dist/de.sdk/src/allend/Agent/reallocation.js.map +0 -1
  338. package/dist/de.sdk/src/allend/Agent/rides.js +0 -160
  339. package/dist/de.sdk/src/allend/Agent/rides.js.map +0 -1
  340. package/dist/de.sdk/src/allend/Agent/shipping.js +0 -140
  341. package/dist/de.sdk/src/allend/Agent/shipping.js.map +0 -1
  342. package/dist/de.sdk/src/allend/CSP/analytics.js +0 -160
  343. package/dist/de.sdk/src/allend/CSP/analytics.js.map +0 -1
  344. package/dist/de.sdk/src/allend/CSP/index.js +0 -60
  345. package/dist/de.sdk/src/allend/CSP/index.js.map +0 -1
  346. package/dist/de.sdk/src/allend/CSP/inventory.js +0 -235
  347. package/dist/de.sdk/src/allend/CSP/inventory.js.map +0 -1
  348. package/dist/de.sdk/src/allend/CSP/orders.js +0 -290
  349. package/dist/de.sdk/src/allend/CSP/orders.js.map +0 -1
  350. package/dist/de.sdk/src/allend/CSP/webhooks.js +0 -177
  351. package/dist/de.sdk/src/allend/CSP/webhooks.js.map +0 -1
  352. package/dist/de.sdk/src/allend/Customer/index.js +0 -55
  353. package/dist/de.sdk/src/allend/Customer/index.js.map +0 -1
  354. package/dist/de.sdk/src/allend/Customer/intents.js +0 -164
  355. package/dist/de.sdk/src/allend/Customer/intents.js.map +0 -1
  356. package/dist/de.sdk/src/allend/Customer/orders.js +0 -140
  357. package/dist/de.sdk/src/allend/Customer/orders.js.map +0 -1
  358. package/dist/de.sdk/src/allend/Customer/rides.js +0 -159
  359. package/dist/de.sdk/src/allend/Customer/rides.js.map +0 -1
  360. package/dist/de.sdk/src/allend/DEV/developers.js +0 -120
  361. package/dist/de.sdk/src/allend/DEV/developers.js.map +0 -1
  362. package/dist/de.sdk/src/allend/DEV/index.js +0 -54
  363. package/dist/de.sdk/src/allend/DEV/index.js.map +0 -1
  364. package/dist/de.sdk/src/allend/IoTClient.js +0 -59
  365. package/dist/de.sdk/src/allend/IoTClient.js.map +0 -1
  366. package/dist/de.sdk/src/allend/IoTSP/backend.js +0 -90
  367. package/dist/de.sdk/src/allend/IoTSP/backend.js.map +0 -1
  368. package/dist/de.sdk/src/allend/IoTSP/devices.js +0 -194
  369. package/dist/de.sdk/src/allend/IoTSP/devices.js.map +0 -1
  370. package/dist/de.sdk/src/allend/IoTSP/index.js.map +0 -1
  371. package/dist/de.sdk/src/allend/IoTSP/rules.js +0 -250
  372. package/dist/de.sdk/src/allend/IoTSP/rules.js.map +0 -1
  373. package/dist/de.sdk/src/allend/IoTSP/topics.js +0 -250
  374. package/dist/de.sdk/src/allend/IoTSP/topics.js.map +0 -1
  375. package/dist/de.sdk/src/allend/LSP/agents.js +0 -270
  376. package/dist/de.sdk/src/allend/LSP/agents.js.map +0 -1
  377. package/dist/de.sdk/src/allend/LSP/carriers.js +0 -904
  378. package/dist/de.sdk/src/allend/LSP/carriers.js.map +0 -1
  379. package/dist/de.sdk/src/allend/LSP/coverage.js +0 -628
  380. package/dist/de.sdk/src/allend/LSP/coverage.js.map +0 -1
  381. package/dist/de.sdk/src/allend/LSP/fleets.js +0 -1102
  382. package/dist/de.sdk/src/allend/LSP/fleets.js.map +0 -1
  383. package/dist/de.sdk/src/allend/LSP/hubs.js +0 -523
  384. package/dist/de.sdk/src/allend/LSP/hubs.js.map +0 -1
  385. package/dist/de.sdk/src/allend/LSP/index.js +0 -72
  386. package/dist/de.sdk/src/allend/LSP/index.js.map +0 -1
  387. package/dist/de.sdk/src/allend/LSP/inventory.js +0 -165
  388. package/dist/de.sdk/src/allend/LSP/inventory.js.map +0 -1
  389. package/dist/de.sdk/src/allend/LSP/operations.js +0 -330
  390. package/dist/de.sdk/src/allend/LSP/operations.js.map +0 -1
  391. package/dist/de.sdk/src/allend/LSP/orders.js +0 -760
  392. package/dist/de.sdk/src/allend/LSP/orders.js.map +0 -1
  393. package/dist/de.sdk/src/allend/LSP/pods.js +0 -402
  394. package/dist/de.sdk/src/allend/LSP/pods.js.map +0 -1
  395. package/dist/de.sdk/src/allend/LSP/pricing.js +0 -388
  396. package/dist/de.sdk/src/allend/LSP/pricing.js.map +0 -1
  397. package/dist/de.sdk/src/allend/LSP/psl.js +0 -201
  398. package/dist/de.sdk/src/allend/LSP/psl.js.map +0 -1
  399. package/dist/de.sdk/src/allend/LSP/warehouses.js +0 -263
  400. package/dist/de.sdk/src/allend/LSP/warehouses.js.map +0 -1
  401. package/dist/de.sdk/src/allend/MSI/Controls.js +0 -801
  402. package/dist/de.sdk/src/allend/MSI/Controls.js.map +0 -1
  403. package/dist/de.sdk/src/allend/MSI/Handles.js +0 -475
  404. package/dist/de.sdk/src/allend/MSI/Handles.js.map +0 -1
  405. package/dist/de.sdk/src/allend/MSI/Plugins.js.map +0 -1
  406. package/dist/de.sdk/src/allend/MSI/index.js +0 -155
  407. package/dist/de.sdk/src/allend/MSI/index.js.map +0 -1
  408. package/dist/de.sdk/src/allend/OTPAuth/index.d.ts +0 -20
  409. package/dist/de.sdk/src/allend/OTPAuth/index.js +0 -92
  410. package/dist/de.sdk/src/allend/OTPAuth/index.js.map +0 -1
  411. package/dist/de.sdk/src/allend/Pipelines/analytics.js +0 -85
  412. package/dist/de.sdk/src/allend/Pipelines/analytics.js.map +0 -1
  413. package/dist/de.sdk/src/allend/Pipelines/escalations.js +0 -86
  414. package/dist/de.sdk/src/allend/Pipelines/escalations.js.map +0 -1
  415. package/dist/de.sdk/src/allend/Pipelines/executions.js +0 -141
  416. package/dist/de.sdk/src/allend/Pipelines/executions.js.map +0 -1
  417. package/dist/de.sdk/src/allend/Pipelines/index.js +0 -213
  418. package/dist/de.sdk/src/allend/Pipelines/index.js.map +0 -1
  419. package/dist/de.sdk/src/allend/Pipelines/interventions.js +0 -86
  420. package/dist/de.sdk/src/allend/Pipelines/interventions.js.map +0 -1
  421. package/dist/de.sdk/src/allend/Pipelines/monitor.js +0 -103
  422. package/dist/de.sdk/src/allend/Pipelines/monitor.js.map +0 -1
  423. package/dist/de.sdk/src/allend/Pipelines/queries.js +0 -86
  424. package/dist/de.sdk/src/allend/Pipelines/queries.js.map +0 -1
  425. package/dist/de.sdk/src/allend/Pipelines/templates.js +0 -141
  426. package/dist/de.sdk/src/allend/Pipelines/templates.js.map +0 -1
  427. package/dist/de.sdk/src/allend/Pipelines/utils.js.map +0 -1
  428. package/dist/de.sdk/src/allend/Pipelines/webhooks.js +0 -104
  429. package/dist/de.sdk/src/allend/Pipelines/webhooks.js.map +0 -1
  430. package/dist/de.sdk/src/allend/Pipelines/workers.js +0 -138
  431. package/dist/de.sdk/src/allend/Pipelines/workers.js.map +0 -1
  432. package/dist/de.sdk/src/allend/Queries/capacity.js +0 -141
  433. package/dist/de.sdk/src/allend/Queries/capacity.js.map +0 -1
  434. package/dist/de.sdk/src/allend/Queries/discovery.js +0 -142
  435. package/dist/de.sdk/src/allend/Queries/discovery.js.map +0 -1
  436. package/dist/de.sdk/src/allend/Queries/index.js +0 -57
  437. package/dist/de.sdk/src/allend/Queries/index.js.map +0 -1
  438. package/dist/de.sdk/src/allend/Queries/matching.js +0 -67
  439. package/dist/de.sdk/src/allend/Queries/matching.js.map +0 -1
  440. package/dist/de.sdk/src/allend/Queries/performance.js +0 -104
  441. package/dist/de.sdk/src/allend/Queries/performance.js.map +0 -1
  442. package/dist/de.sdk/src/allend/Queries/pricing.js +0 -140
  443. package/dist/de.sdk/src/allend/Queries/pricing.js.map +0 -1
  444. package/dist/de.sdk/src/allend/Realtime/index.js +0 -79
  445. package/dist/de.sdk/src/allend/Realtime/index.js.map +0 -1
  446. package/dist/de.sdk/src/allend/Shared/account.js +0 -83
  447. package/dist/de.sdk/src/allend/Shared/account.js.map +0 -1
  448. package/dist/de.sdk/src/allend/Shared/buckets.js +0 -288
  449. package/dist/de.sdk/src/allend/Shared/buckets.js.map +0 -1
  450. package/dist/de.sdk/src/allend/Shared/context.js +0 -51
  451. package/dist/de.sdk/src/allend/Shared/context.js.map +0 -1
  452. package/dist/de.sdk/src/allend/Shared/faqs.js +0 -268
  453. package/dist/de.sdk/src/allend/Shared/faqs.js.map +0 -1
  454. package/dist/de.sdk/src/allend/Shared/invitation.js +0 -105
  455. package/dist/de.sdk/src/allend/Shared/invitation.js.map +0 -1
  456. package/dist/de.sdk/src/allend/Shared/operators.js +0 -122
  457. package/dist/de.sdk/src/allend/Shared/operators.js.map +0 -1
  458. package/dist/de.sdk/src/allend/Shared/users.js +0 -102
  459. package/dist/de.sdk/src/allend/Shared/users.js.map +0 -1
  460. package/dist/de.sdk/src/allend/Tracking/index.js +0 -102
  461. package/dist/de.sdk/src/allend/Tracking/index.js.map +0 -1
  462. package/dist/de.sdk/src/allend/Utilities/common.js +0 -162
  463. package/dist/de.sdk/src/allend/Utilities/common.js.map +0 -1
  464. package/dist/de.sdk/src/allend/Utilities/fares.js +0 -124
  465. package/dist/de.sdk/src/allend/Utilities/fares.js.map +0 -1
  466. package/dist/de.sdk/src/allend/Utilities/index.js +0 -53
  467. package/dist/de.sdk/src/allend/Utilities/index.js.map +0 -1
  468. package/dist/de.sdk/src/allend/Utilities/nearby.js +0 -105
  469. package/dist/de.sdk/src/allend/Utilities/nearby.js.map +0 -1
  470. package/dist/de.sdk/src/allend/Workflows/Client.d.ts +0 -10
  471. package/dist/de.sdk/src/allend/Workflows/Client.js +0 -144
  472. package/dist/de.sdk/src/allend/Workflows/Client.js.map +0 -1
  473. package/dist/de.sdk/src/allend/Workflows/Delivery.js.map +0 -1
  474. package/dist/de.sdk/src/allend/Workflows/index.js.map +0 -1
  475. package/dist/de.sdk/src/allend/Workspace/index.d.ts +0 -18
  476. package/dist/de.sdk/src/allend/Workspace/index.js +0 -225
  477. package/dist/de.sdk/src/allend/Workspace/index.js.map +0 -1
  478. package/dist/de.sdk/src/allend/index.js.map +0 -1
  479. package/dist/de.sdk/src/backend/Auth.js +0 -281
  480. package/dist/de.sdk/src/backend/Auth.js.map +0 -1
  481. package/dist/de.sdk/src/baseUrl.d.ts +0 -20
  482. package/dist/de.sdk/src/baseUrl.js +0 -25
  483. package/dist/de.sdk/src/baseUrl.js.map +0 -1
  484. package/dist/de.sdk/src/index.js.map +0 -1
  485. package/dist/de.sdk/src/utils/index.d.ts +0 -16
  486. package/dist/de.sdk/src/utils/index.js +0 -24
  487. package/dist/de.sdk/src/utils/index.js.map +0 -1
  488. package/dist/de.sdk/src/utils/stream.js.map +0 -1
  489. package/dist/de.types/src/api.d.ts +0 -112
  490. package/dist/de.types/src/api.js +0 -92
  491. package/dist/de.types/src/api.js.map +0 -1
  492. package/dist/de.types/src/auth.d.ts +0 -108
  493. package/dist/de.types/src/auth.js +0 -80
  494. package/dist/de.types/src/auth.js.map +0 -1
  495. package/dist/de.types/src/aux/agent-rvs.d.ts +0 -1204
  496. package/dist/de.types/src/aux/agent-rvs.js +0 -444
  497. package/dist/de.types/src/aux/agent-rvs.js.map +0 -1
  498. package/dist/de.types/src/aux/agents.d.ts +0 -1572
  499. package/dist/de.types/src/aux/agents.js +0 -487
  500. package/dist/de.types/src/aux/agents.js.map +0 -1
  501. package/dist/de.types/src/aux/customer-rvs.d.ts +0 -710
  502. package/dist/de.types/src/aux/customer-rvs.js +0 -321
  503. package/dist/de.types/src/aux/customer-rvs.js.map +0 -1
  504. package/dist/de.types/src/aux/customers.d.ts +0 -378
  505. package/dist/de.types/src/aux/customers.js +0 -67
  506. package/dist/de.types/src/aux/customers.js.map +0 -1
  507. package/dist/de.types/src/aux/index.d.ts +0 -4
  508. package/dist/de.types/src/aux/index.js +0 -21
  509. package/dist/de.types/src/aux/index.js.map +0 -1
  510. package/dist/de.types/src/billing.d.ts +0 -366
  511. package/dist/de.types/src/billing.js +0 -308
  512. package/dist/de.types/src/billing.js.map +0 -1
  513. package/dist/de.types/src/bucket.d.ts +0 -96
  514. package/dist/de.types/src/bucket.js +0 -52
  515. package/dist/de.types/src/bucket.js.map +0 -1
  516. package/dist/de.types/src/context.d.ts +0 -147
  517. package/dist/de.types/src/context.js +0 -148
  518. package/dist/de.types/src/context.js.map +0 -1
  519. package/dist/de.types/src/csp/analytics.d.ts +0 -269
  520. package/dist/de.types/src/csp/analytics.js +0 -185
  521. package/dist/de.types/src/csp/analytics.js.map +0 -1
  522. package/dist/de.types/src/csp/base.d.ts +0 -10
  523. package/dist/de.types/src/csp/base.js +0 -17
  524. package/dist/de.types/src/csp/base.js.map +0 -1
  525. package/dist/de.types/src/csp/index.d.ts +0 -106
  526. package/dist/de.types/src/csp/index.js +0 -48
  527. package/dist/de.types/src/csp/index.js.map +0 -1
  528. package/dist/de.types/src/csp/inventory.d.ts +0 -360
  529. package/dist/de.types/src/csp/inventory.js +0 -267
  530. package/dist/de.types/src/csp/inventory.js.map +0 -1
  531. package/dist/de.types/src/csp/order.d.ts +0 -1456
  532. package/dist/de.types/src/csp/order.js +0 -375
  533. package/dist/de.types/src/csp/order.js.map +0 -1
  534. package/dist/de.types/src/csp/webhook.d.ts +0 -380
  535. package/dist/de.types/src/csp/webhook.js +0 -207
  536. package/dist/de.types/src/csp/webhook.js.map +0 -1
  537. package/dist/de.types/src/de.profile.d.ts +0 -410
  538. package/dist/de.types/src/de.profile.js +0 -98
  539. package/dist/de.types/src/de.profile.js.map +0 -1
  540. package/dist/de.types/src/dev/developer.d.ts +0 -210
  541. package/dist/de.types/src/dev/developer.js +0 -55
  542. package/dist/de.types/src/dev/developer.js.map +0 -1
  543. package/dist/de.types/src/dev/index.d.ts +0 -132
  544. package/dist/de.types/src/dev/index.js +0 -79
  545. package/dist/de.types/src/dev/index.js.map +0 -1
  546. package/dist/de.types/src/entity.d.ts +0 -158
  547. package/dist/de.types/src/entity.js +0 -127
  548. package/dist/de.types/src/entity.js.map +0 -1
  549. package/dist/de.types/src/events.d.ts +0 -1843
  550. package/dist/de.types/src/events.js +0 -303
  551. package/dist/de.types/src/events.js.map +0 -1
  552. package/dist/de.types/src/faq.d.ts +0 -59
  553. package/dist/de.types/src/faq.js +0 -31
  554. package/dist/de.types/src/faq.js.map +0 -1
  555. package/dist/de.types/src/geo.d.ts +0 -122
  556. package/dist/de.types/src/geo.js +0 -87
  557. package/dist/de.types/src/geo.js.map +0 -1
  558. package/dist/de.types/src/index.d.ts +0 -27
  559. package/dist/de.types/src/index.js +0 -59
  560. package/dist/de.types/src/index.js.map +0 -1
  561. package/dist/de.types/src/inventory.d.ts +0 -1346
  562. package/dist/de.types/src/inventory.js +0 -356
  563. package/dist/de.types/src/inventory.js.map +0 -1
  564. package/dist/de.types/src/iotsp/device.d.ts +0 -580
  565. package/dist/de.types/src/iotsp/device.js +0 -277
  566. package/dist/de.types/src/iotsp/device.js.map +0 -1
  567. package/dist/de.types/src/iotsp/index.d.ts +0 -110
  568. package/dist/de.types/src/iotsp/index.js +0 -76
  569. package/dist/de.types/src/iotsp/index.js.map +0 -1
  570. package/dist/de.types/src/iotsp/rule.d.ts +0 -339
  571. package/dist/de.types/src/iotsp/rule.js +0 -172
  572. package/dist/de.types/src/iotsp/rule.js.map +0 -1
  573. package/dist/de.types/src/iotsp/topic.d.ts +0 -248
  574. package/dist/de.types/src/iotsp/topic.js +0 -139
  575. package/dist/de.types/src/iotsp/topic.js.map +0 -1
  576. package/dist/de.types/src/lsp/carrier/analytics.d.ts +0 -1190
  577. package/dist/de.types/src/lsp/carrier/analytics.js +0 -354
  578. package/dist/de.types/src/lsp/carrier/analytics.js.map +0 -1
  579. package/dist/de.types/src/lsp/carrier/capabilities.d.ts +0 -3602
  580. package/dist/de.types/src/lsp/carrier/capabilities.js +0 -880
  581. package/dist/de.types/src/lsp/carrier/capabilities.js.map +0 -1
  582. package/dist/de.types/src/lsp/carrier/capacities.d.ts +0 -4435
  583. package/dist/de.types/src/lsp/carrier/capacities.js +0 -615
  584. package/dist/de.types/src/lsp/carrier/capacities.js.map +0 -1
  585. package/dist/de.types/src/lsp/carrier/index.d.ts +0 -733
  586. package/dist/de.types/src/lsp/carrier/index.js +0 -150
  587. package/dist/de.types/src/lsp/carrier/index.js.map +0 -1
  588. package/dist/de.types/src/lsp/carrier/performance.d.ts +0 -566
  589. package/dist/de.types/src/lsp/carrier/performance.js +0 -127
  590. package/dist/de.types/src/lsp/carrier/performance.js.map +0 -1
  591. package/dist/de.types/src/lsp/carrier/utilities.d.ts +0 -6670
  592. package/dist/de.types/src/lsp/carrier/utilities.js +0 -597
  593. package/dist/de.types/src/lsp/carrier/utilities.js.map +0 -1
  594. package/dist/de.types/src/lsp/consolidation.d.ts +0 -792
  595. package/dist/de.types/src/lsp/consolidation.js +0 -343
  596. package/dist/de.types/src/lsp/consolidation.js.map +0 -1
  597. package/dist/de.types/src/lsp/coverage.d.ts +0 -7448
  598. package/dist/de.types/src/lsp/coverage.js +0 -706
  599. package/dist/de.types/src/lsp/coverage.js.map +0 -1
  600. package/dist/de.types/src/lsp/fleet/index.d.ts +0 -1127
  601. package/dist/de.types/src/lsp/fleet/index.js +0 -269
  602. package/dist/de.types/src/lsp/fleet/index.js.map +0 -1
  603. package/dist/de.types/src/lsp/fleet/maintenance.d.ts +0 -2021
  604. package/dist/de.types/src/lsp/fleet/maintenance.js +0 -386
  605. package/dist/de.types/src/lsp/fleet/maintenance.js.map +0 -1
  606. package/dist/de.types/src/lsp/fleet/parking.d.ts +0 -2042
  607. package/dist/de.types/src/lsp/fleet/parking.js +0 -458
  608. package/dist/de.types/src/lsp/fleet/parking.js.map +0 -1
  609. package/dist/de.types/src/lsp/fleet/vehicle.d.ts +0 -782
  610. package/dist/de.types/src/lsp/fleet/vehicle.js +0 -314
  611. package/dist/de.types/src/lsp/fleet/vehicle.js.map +0 -1
  612. package/dist/de.types/src/lsp/graph.d.ts +0 -211
  613. package/dist/de.types/src/lsp/graph.js +0 -92
  614. package/dist/de.types/src/lsp/graph.js.map +0 -1
  615. package/dist/de.types/src/lsp/hub/analytics.d.ts +0 -4293
  616. package/dist/de.types/src/lsp/hub/analytics.js +0 -219
  617. package/dist/de.types/src/lsp/hub/analytics.js.map +0 -1
  618. package/dist/de.types/src/lsp/hub/capabilities.d.ts +0 -1466
  619. package/dist/de.types/src/lsp/hub/capabilities.js +0 -464
  620. package/dist/de.types/src/lsp/hub/capabilities.js.map +0 -1
  621. package/dist/de.types/src/lsp/hub/capacities.d.ts +0 -4277
  622. package/dist/de.types/src/lsp/hub/capacities.js +0 -495
  623. package/dist/de.types/src/lsp/hub/capacities.js.map +0 -1
  624. package/dist/de.types/src/lsp/hub/index.d.ts +0 -2783
  625. package/dist/de.types/src/lsp/hub/index.js +0 -268
  626. package/dist/de.types/src/lsp/hub/index.js.map +0 -1
  627. package/dist/de.types/src/lsp/hub/performance.d.ts +0 -390
  628. package/dist/de.types/src/lsp/hub/performance.js +0 -78
  629. package/dist/de.types/src/lsp/hub/performance.js.map +0 -1
  630. package/dist/de.types/src/lsp/hub/utilities.d.ts +0 -2995
  631. package/dist/de.types/src/lsp/hub/utilities.js +0 -521
  632. package/dist/de.types/src/lsp/hub/utilities.js.map +0 -1
  633. package/dist/de.types/src/lsp/index.d.ts +0 -156
  634. package/dist/de.types/src/lsp/index.js +0 -124
  635. package/dist/de.types/src/lsp/index.js.map +0 -1
  636. package/dist/de.types/src/lsp/operations.d.ts +0 -562
  637. package/dist/de.types/src/lsp/operations.js +0 -265
  638. package/dist/de.types/src/lsp/operations.js.map +0 -1
  639. package/dist/de.types/src/lsp/order/delivery.d.ts +0 -1118
  640. package/dist/de.types/src/lsp/order/delivery.js +0 -177
  641. package/dist/de.types/src/lsp/order/delivery.js.map +0 -1
  642. package/dist/de.types/src/lsp/order/flow/processes.d.ts +0 -7
  643. package/dist/de.types/src/lsp/order/flow/processes.js +0 -67
  644. package/dist/de.types/src/lsp/order/flow/processes.js.map +0 -1
  645. package/dist/de.types/src/lsp/order/flow/stages.d.ts +0 -7
  646. package/dist/de.types/src/lsp/order/flow/stages.js +0 -111
  647. package/dist/de.types/src/lsp/order/flow/stages.js.map +0 -1
  648. package/dist/de.types/src/lsp/order/inbound.d.ts +0 -1164
  649. package/dist/de.types/src/lsp/order/inbound.js +0 -193
  650. package/dist/de.types/src/lsp/order/inbound.js.map +0 -1
  651. package/dist/de.types/src/lsp/order/internal.d.ts +0 -1403
  652. package/dist/de.types/src/lsp/order/internal.js +0 -263
  653. package/dist/de.types/src/lsp/order/internal.js.map +0 -1
  654. package/dist/de.types/src/lsp/order/management.d.ts +0 -540
  655. package/dist/de.types/src/lsp/order/management.js +0 -326
  656. package/dist/de.types/src/lsp/order/management.js.map +0 -1
  657. package/dist/de.types/src/lsp/order/passthrough.d.ts +0 -1815
  658. package/dist/de.types/src/lsp/order/passthrough.js +0 -368
  659. package/dist/de.types/src/lsp/order/passthrough.js.map +0 -1
  660. package/dist/de.types/src/lsp/order/ride.d.ts +0 -1055
  661. package/dist/de.types/src/lsp/order/ride.js +0 -174
  662. package/dist/de.types/src/lsp/order/ride.js.map +0 -1
  663. package/dist/de.types/src/lsp/order/shipping.d.ts +0 -1523
  664. package/dist/de.types/src/lsp/order/shipping.js +0 -231
  665. package/dist/de.types/src/lsp/order/shipping.js.map +0 -1
  666. package/dist/de.types/src/lsp/pod/index.d.ts +0 -804
  667. package/dist/de.types/src/lsp/pod/index.js +0 -250
  668. package/dist/de.types/src/lsp/pod/index.js.map +0 -1
  669. package/dist/de.types/src/lsp/pricing.d.ts +0 -1810
  670. package/dist/de.types/src/lsp/pricing.js +0 -972
  671. package/dist/de.types/src/lsp/pricing.js.map +0 -1
  672. package/dist/de.types/src/lsp/psl.d.ts +0 -784
  673. package/dist/de.types/src/lsp/psl.js +0 -333
  674. package/dist/de.types/src/lsp/psl.js.map +0 -1
  675. package/dist/de.types/src/lsp/terminal/analytics.d.ts +0 -277
  676. package/dist/de.types/src/lsp/terminal/analytics.js +0 -310
  677. package/dist/de.types/src/lsp/terminal/analytics.js.map +0 -1
  678. package/dist/de.types/src/lsp/terminal/capabilities.d.ts +0 -796
  679. package/dist/de.types/src/lsp/terminal/capabilities.js +0 -506
  680. package/dist/de.types/src/lsp/terminal/capabilities.js.map +0 -1
  681. package/dist/de.types/src/lsp/terminal/capacities.d.ts +0 -3151
  682. package/dist/de.types/src/lsp/terminal/capacities.js +0 -504
  683. package/dist/de.types/src/lsp/terminal/capacities.js.map +0 -1
  684. package/dist/de.types/src/lsp/terminal/index.d.ts +0 -1055
  685. package/dist/de.types/src/lsp/terminal/index.js +0 -394
  686. package/dist/de.types/src/lsp/terminal/index.js.map +0 -1
  687. package/dist/de.types/src/lsp/terminal/performance.d.ts +0 -954
  688. package/dist/de.types/src/lsp/terminal/performance.js +0 -159
  689. package/dist/de.types/src/lsp/terminal/performance.js.map +0 -1
  690. package/dist/de.types/src/lsp/terminal/utilities.d.ts +0 -2373
  691. package/dist/de.types/src/lsp/terminal/utilities.js +0 -161
  692. package/dist/de.types/src/lsp/terminal/utilities.js.map +0 -1
  693. package/dist/de.types/src/lsp/warehouse/analytics.d.ts +0 -3087
  694. package/dist/de.types/src/lsp/warehouse/analytics.js +0 -229
  695. package/dist/de.types/src/lsp/warehouse/analytics.js.map +0 -1
  696. package/dist/de.types/src/lsp/warehouse/capabilities.d.ts +0 -1383
  697. package/dist/de.types/src/lsp/warehouse/capabilities.js +0 -567
  698. package/dist/de.types/src/lsp/warehouse/capabilities.js.map +0 -1
  699. package/dist/de.types/src/lsp/warehouse/capacities.d.ts +0 -2920
  700. package/dist/de.types/src/lsp/warehouse/capacities.js +0 -450
  701. package/dist/de.types/src/lsp/warehouse/capacities.js.map +0 -1
  702. package/dist/de.types/src/lsp/warehouse/index.d.ts +0 -2565
  703. package/dist/de.types/src/lsp/warehouse/index.js +0 -264
  704. package/dist/de.types/src/lsp/warehouse/index.js.map +0 -1
  705. package/dist/de.types/src/lsp/warehouse/performance.d.ts +0 -286
  706. package/dist/de.types/src/lsp/warehouse/performance.js +0 -72
  707. package/dist/de.types/src/lsp/warehouse/performance.js.map +0 -1
  708. package/dist/de.types/src/lsp/warehouse/utilities.d.ts +0 -5173
  709. package/dist/de.types/src/lsp/warehouse/utilities.js +0 -588
  710. package/dist/de.types/src/lsp/warehouse/utilities.js.map +0 -1
  711. package/dist/de.types/src/lsp/zones.d.ts +0 -304
  712. package/dist/de.types/src/lsp/zones.js +0 -118
  713. package/dist/de.types/src/lsp/zones.js.map +0 -1
  714. package/dist/de.types/src/measure.d.ts +0 -138
  715. package/dist/de.types/src/measure.js +0 -190
  716. package/dist/de.types/src/measure.js.map +0 -1
  717. package/dist/de.types/src/operator.d.ts +0 -102
  718. package/dist/de.types/src/operator.js +0 -38
  719. package/dist/de.types/src/operator.js.map +0 -1
  720. package/dist/de.types/src/order.d.ts +0 -2738
  721. package/dist/de.types/src/order.js +0 -1078
  722. package/dist/de.types/src/order.js.map +0 -1
  723. package/dist/de.types/src/realm/index.d.ts +0 -3
  724. package/dist/de.types/src/realm/index.js +0 -20
  725. package/dist/de.types/src/realm/index.js.map +0 -1
  726. package/dist/de.types/src/realm/pipelines.d.ts +0 -32566
  727. package/dist/de.types/src/realm/pipelines.js +0 -1273
  728. package/dist/de.types/src/realm/pipelines.js.map +0 -1
  729. package/dist/de.types/src/realm/queries.d.ts +0 -1326
  730. package/dist/de.types/src/realm/queries.js +0 -456
  731. package/dist/de.types/src/realm/queries.js.map +0 -1
  732. package/dist/de.types/src/realm/utilities.d.ts +0 -1793
  733. package/dist/de.types/src/realm/utilities.js +0 -594
  734. package/dist/de.types/src/realm/utilities.js.map +0 -1
  735. package/dist/de.types/src/routing.d.ts +0 -427
  736. package/dist/de.types/src/routing.js +0 -60
  737. package/dist/de.types/src/routing.js.map +0 -1
  738. package/dist/de.types/src/service.d.ts +0 -263
  739. package/dist/de.types/src/service.js +0 -60
  740. package/dist/de.types/src/service.js.map +0 -1
  741. package/dist/de.types/src/shared/access.d.ts +0 -101
  742. package/dist/de.types/src/shared/access.js +0 -30
  743. package/dist/de.types/src/shared/access.js.map +0 -1
  744. package/dist/de.types/src/shared/account.d.ts +0 -43
  745. package/dist/de.types/src/shared/account.js +0 -15
  746. package/dist/de.types/src/shared/account.js.map +0 -1
  747. package/dist/de.types/src/shared/auth.d.ts +0 -44
  748. package/dist/de.types/src/shared/auth.js +0 -19
  749. package/dist/de.types/src/shared/auth.js.map +0 -1
  750. package/dist/de.types/src/shared/bucket.d.ts +0 -293
  751. package/dist/de.types/src/shared/bucket.js +0 -79
  752. package/dist/de.types/src/shared/bucket.js.map +0 -1
  753. package/dist/de.types/src/shared/faq.d.ts +0 -279
  754. package/dist/de.types/src/shared/faq.js +0 -73
  755. package/dist/de.types/src/shared/faq.js.map +0 -1
  756. package/dist/de.types/src/shared/index.d.ts +0 -9
  757. package/dist/de.types/src/shared/index.js +0 -26
  758. package/dist/de.types/src/shared/index.js.map +0 -1
  759. package/dist/de.types/src/shared/invitation.d.ts +0 -1524
  760. package/dist/de.types/src/shared/invitation.js +0 -60
  761. package/dist/de.types/src/shared/invitation.js.map +0 -1
  762. package/dist/de.types/src/shared/operator.d.ts +0 -955
  763. package/dist/de.types/src/shared/operator.js +0 -48
  764. package/dist/de.types/src/shared/operator.js.map +0 -1
  765. package/dist/de.types/src/shared/tracking.d.ts +0 -30
  766. package/dist/de.types/src/shared/tracking.js +0 -23
  767. package/dist/de.types/src/shared/tracking.js.map +0 -1
  768. package/dist/de.types/src/shared/user.d.ts +0 -76
  769. package/dist/de.types/src/shared/user.js +0 -22
  770. package/dist/de.types/src/shared/user.js.map +0 -1
  771. package/dist/de.types/src/sync.d.ts +0 -538
  772. package/dist/de.types/src/sync.js +0 -329
  773. package/dist/de.types/src/sync.js.map +0 -1
  774. package/dist/de.types/src/time.d.ts +0 -138
  775. package/dist/de.types/src/time.js +0 -93
  776. package/dist/de.types/src/time.js.map +0 -1
  777. package/dist/de.types/src/user.d.ts +0 -393
  778. package/dist/de.types/src/user.js +0 -205
  779. package/dist/de.types/src/user.js.map +0 -1
  780. package/dist/de.types/src/workspace/admin.d.ts +0 -90
  781. package/dist/de.types/src/workspace/admin.js +0 -33
  782. package/dist/de.types/src/workspace/admin.js.map +0 -1
  783. package/dist/de.types/src/workspace/connector.d.ts +0 -594
  784. package/dist/de.types/src/workspace/connector.js +0 -229
  785. package/dist/de.types/src/workspace/connector.js.map +0 -1
  786. package/dist/de.types/src/workspace/index.d.ts +0 -35
  787. package/dist/de.types/src/workspace/index.js +0 -21
  788. package/dist/de.types/src/workspace/index.js.map +0 -1
  789. /package/dist/{de.sdk/src/allend → allend}/Agent/delivery.d.ts +0 -0
  790. /package/dist/{de.sdk/src/allend → allend}/Agent/dispatch.d.ts +0 -0
  791. /package/dist/{de.sdk/src/allend → allend}/Agent/navigation.d.ts +0 -0
  792. /package/dist/{de.sdk/src/allend → allend}/Agent/origin.d.ts +0 -0
  793. /package/dist/{de.sdk/src/allend → allend}/Agent/reallocation.d.ts +0 -0
  794. /package/dist/{de.sdk/src/allend → allend}/Agent/rides.d.ts +0 -0
  795. /package/dist/{de.sdk/src/allend → allend}/Agent/shipping.d.ts +0 -0
  796. /package/dist/{de.sdk/src/allend → allend}/CSP/analytics.d.ts +0 -0
  797. /package/dist/{de.sdk/src/allend → allend}/CSP/inventory.d.ts +0 -0
  798. /package/dist/{de.sdk/src/allend → allend}/CSP/orders.d.ts +0 -0
  799. /package/dist/{de.sdk/src/allend → allend}/CSP/webhooks.d.ts +0 -0
  800. /package/dist/{de.sdk/src/allend → allend}/Customer/intents.d.ts +0 -0
  801. /package/dist/{de.sdk/src/allend → allend}/Customer/orders.d.ts +0 -0
  802. /package/dist/{de.sdk/src/allend → allend}/Customer/rides.d.ts +0 -0
  803. /package/dist/{de.sdk/src/allend → allend}/IoTClient.d.ts +0 -0
  804. /package/dist/{de.sdk/src/allend → allend}/IoTSP/devices.d.ts +0 -0
  805. /package/dist/{de.sdk/src/allend → allend}/IoTSP/rules.d.ts +0 -0
  806. /package/dist/{de.sdk/src/allend → allend}/IoTSP/topics.d.ts +0 -0
  807. /package/dist/{de.sdk/src/allend → allend}/LSP/coverage.d.ts +0 -0
  808. /package/dist/{de.sdk/src/allend → allend}/LSP/inventory.d.ts +0 -0
  809. /package/dist/{de.sdk/src/allend → allend}/LSP/psl.d.ts +0 -0
  810. /package/dist/{de.sdk/src/allend → allend}/Pipelines/analytics.d.ts +0 -0
  811. /package/dist/{de.sdk/src/allend → allend}/Pipelines/escalations.d.ts +0 -0
  812. /package/dist/{de.sdk/src/allend → allend}/Pipelines/executions.d.ts +0 -0
  813. /package/dist/{de.sdk/src/allend → allend}/Pipelines/interventions.d.ts +0 -0
  814. /package/dist/{de.sdk/src/allend → allend}/Pipelines/monitor.d.ts +0 -0
  815. /package/dist/{de.sdk/src/allend → allend}/Pipelines/queries.d.ts +0 -0
  816. /package/dist/{de.sdk/src/allend → allend}/Pipelines/templates.d.ts +0 -0
  817. /package/dist/{de.sdk/src/allend → allend}/Pipelines/utils.d.ts +0 -0
  818. /package/dist/{de.sdk/src/allend → allend}/Pipelines/utils.js +0 -0
  819. /package/dist/{de.sdk/src/allend → allend}/Pipelines/webhooks.d.ts +0 -0
  820. /package/dist/{de.sdk/src/allend → allend}/Pipelines/workers.d.ts +0 -0
  821. /package/dist/{de.sdk/src/allend → allend}/Queries/capacity.d.ts +0 -0
  822. /package/dist/{de.sdk/src/allend → allend}/Queries/discovery.d.ts +0 -0
  823. /package/dist/{de.sdk/src/allend → allend}/Queries/matching.d.ts +0 -0
  824. /package/dist/{de.sdk/src/allend → allend}/Queries/performance.d.ts +0 -0
  825. /package/dist/{de.sdk/src/allend → allend}/Queries/pricing.d.ts +0 -0
  826. /package/dist/{de.sdk/src/allend → allend}/Realtime/index.d.ts +0 -0
  827. /package/dist/{de.sdk/src/allend → allend}/Shared/account.d.ts +0 -0
  828. /package/dist/{de.sdk/src/allend → allend}/Shared/buckets.d.ts +0 -0
  829. /package/dist/{de.sdk/src/allend → allend}/Shared/context.d.ts +0 -0
  830. /package/dist/{de.sdk/src/allend → allend}/Shared/faqs.d.ts +0 -0
  831. /package/dist/{de.sdk/src/allend → allend}/Shared/operators.d.ts +0 -0
  832. /package/dist/{de.sdk/src/allend → allend}/Shared/users.d.ts +0 -0
  833. /package/dist/{de.sdk/src/allend → allend}/Utilities/common.d.ts +0 -0
  834. /package/dist/{de.sdk/src/allend → allend}/Utilities/fares.d.ts +0 -0
  835. /package/dist/{de.sdk/src/allend → allend}/Utilities/nearby.d.ts +0 -0
  836. /package/dist/{de.sdk/src/allend → allend}/Workflows/Delivery.d.ts +0 -0
  837. /package/dist/{de.sdk/src/allend → allend}/Workflows/index.d.ts +0 -0
  838. /package/dist/{de.sdk/src/utils → utils}/stream.d.ts +0 -0
@@ -1,35 +1,77 @@
1
- import type { AccessOptions } from '../types/access'
1
+ import type { AccessOptions, UserSession } from '../types/access'
2
2
  import type { HTTPRequestOptions } from '../types'
3
- import { API_SERVER_BASEURL, ASI_SERVER_BASEURL } from '../baseUrl'
3
+ import { baseURL } from '../baseUrl'
4
+ import APIError from '../error'
5
+ import { rememberStatus } from '../response'
4
6
 
5
- type AccessType = 'API' | 'ASI'
7
+ /**
8
+ * Which service the client addresses.
9
+ *
10
+ * De. is more than one server: de.arch answers the API, de.auth the ASI, and
11
+ * de.workspace the control plane. They are separate hosts, so the client has
12
+ * to say which one it means rather than assume the API.
13
+ */
14
+ type AccessType = 'API' | 'ASI' | 'WSP'
6
15
 
7
16
  const USER_ACCOUNT_SERVICE = 'De.API'
8
17
 
18
+ /**
19
+ * Resolve a fetch implementation for the host runtime.
20
+ *
21
+ * Node 18+, every browser and React Native all expose a global `fetch`, so that
22
+ * is the first and usual answer. `node-fetch` remains only as a fallback for
23
+ * Node versions predating the global.
24
+ *
25
+ * The previous check tested `globalThis.window && globalThis.fetch`, which was
26
+ * wrong for React Native: there is no `window` there but `fetch` is global, so
27
+ * it fell through to importing node-fetch and broke. Testing for `fetch`
28
+ * directly is what lets one Access layer serve node, browser and native.
29
+ */
30
+ async function resolveFetch(): Promise<typeof globalThis.fetch> {
31
+ if( typeof globalThis?.fetch === 'function' )
32
+ return globalThis.fetch
33
+
34
+ return ( await import('node-fetch') ).default as any
35
+ }
36
+
9
37
  export default class AccessManager {
10
38
  private atype: AccessType
11
39
  private version: number
12
40
  private platform: AccessOptions['platform']
13
41
  private baseURL: string
42
+ /**
43
+ * The client's own `wid:TYPE:xcode`, base64-encoded.
44
+ *
45
+ * Not a transport header: de.arch resolves the workspace from the access
46
+ * token, and its header contract has no context field. It is kept because a
47
+ * client is scoped to one context for its lifetime, and a caller holding
48
+ * several — a proxy serving many workspaces — needs to ask which is which.
49
+ * `scope` decodes it.
50
+ */
51
+ readonly context: string
14
52
  protected accessToken?: string
15
53
  protected remoteOrigin?: string
54
+ protected session?: UserSession
55
+ private timeout?: number
16
56
 
17
57
  constructor( options: AccessOptions, atype: AccessType ){
18
58
  if( !options ) throw new Error('Undefined Access Configuration')
19
59
  if( !options.context ) throw new Error('Undefined Context Reference. Check https://doc.dedot.io/sdk/auth')
20
60
  if( !options.accessToken ) throw new Error('Undefined Access Token. Check https://doc.dedot.io/sdk/auth')
21
61
 
62
+ this.context = options.context
22
63
  this.atype = atype
23
64
  this.version = options.version || 1
24
65
  this.platform = options.platform || 'proxy'
25
66
  this.accessToken = options.accessToken
26
67
  this.remoteOrigin = options.remoteOrigin
27
- this.baseURL = this.atype === 'ASI'
28
- ? ASI_SERVER_BASEURL[ options.env || 'dev' ]
29
- : API_SERVER_BASEURL[ options.env || 'dev' ]
68
+ this.session = options.session
69
+ this.timeout = options.timeout
70
+ this.baseURL = options.baseUrl?.replace( /\/+$/, '' )
71
+ || baseURL( this.atype, options.env || 'dev', options.devHostname )
30
72
  }
31
73
 
32
- async request<Response>({ url, ...options }: HTTPRequestOptions ): Promise<Response> {
74
+ async request<Response>({ url, timeout, ...options }: HTTPRequestOptions ): Promise<Response> {
33
75
  const rawOptions: any = {
34
76
  method: 'GET',
35
77
  headers: {
@@ -49,6 +91,17 @@ export default class AccessManager {
49
91
  if( this.accessToken )
50
92
  rawOptions.headers.authorization = `Bearer ${this.accessToken}`
51
93
 
94
+ /**
95
+ * User-session credentials, sent alongside the bearer token rather than
96
+ * instead of it. `isConnected` (AUX agent routes) reads only this pair;
97
+ * `isAuthorized` reads only the bearer. Routes guarded by either one are
98
+ * then reachable from a single client.
99
+ */
100
+ if( this.session ){
101
+ rawOptions.headers['de-auth-token'] = this.session.token
102
+ rawOptions.headers['de-auth-device'] = this.session.device
103
+ }
104
+
52
105
  if( options.body ){
53
106
  rawOptions.headers['content-type'] = 'application/json'
54
107
  if( typeof options.body === 'object' )
@@ -63,16 +116,96 @@ export default class AccessManager {
63
116
 
64
117
  options = { ...rawOptions, ...options }
65
118
 
119
+ /**
120
+ * Bound the request when a deadline is configured.
121
+ *
122
+ * `AbortSignal.timeout` is not in the pre-18 Node the node-fetch fallback
123
+ * exists for, so this is guarded rather than assumed. A missing signal
124
+ * leaves the previous unbounded behaviour, which is the right degradation:
125
+ * the request still goes out.
126
+ */
127
+ const deadline = timeout ?? this.timeout
128
+ if( deadline && typeof AbortSignal?.timeout === 'function' )
129
+ ( options as any ).signal = AbortSignal.timeout( deadline )
130
+
66
131
  url = `${this.baseURL}/v${this.version}/${url.replace(/^\//, '')}`
67
132
 
68
- // Support fetch for in both node & browser environment
69
- let fetch = globalThis?.window && globalThis?.fetch
70
- if( !fetch )
71
- fetch = ( await import('node-fetch') ).default as any
133
+ const fetch = await resolveFetch(),
134
+ response = await fetch( url, options as any )
135
+
136
+ /**
137
+ * Everything De. answers is the `{ error, message, data }` envelope, so a
138
+ * body that will not parse did not come from De. — a gateway 502 page, a
139
+ * proxy timeout, an empty 204. Reporting that as a JSON syntax error hides
140
+ * the only two facts worth having, which are the status and the URL.
141
+ */
142
+ let body: any
143
+ try { body = await response.json() }
144
+ catch {
145
+ /**
146
+ * Not De. answering — a gateway's HTML 502, a proxy timeout, an empty
147
+ * 204. There is no envelope to hand back, so this is the one case that
148
+ * raises, carrying the status and URL rather than a JSON syntax error.
149
+ */
150
+ throw new APIError(`${options.method} ${url} — ${response.statusText || 'no JSON body'}`, response.status )
151
+ }
152
+
153
+ /**
154
+ * A refusal is returned, not raised.
155
+ *
156
+ * De.'s answer is the `{ error, status, message, data }` envelope whether
157
+ * it succeeded or not, and `status` names the refusal precisely —
158
+ * SENDER_CAP_REACHED, CONSOLIDATION::NOT_IN_PROGRESS. Throwing that away
159
+ * and reconstructing it from an exception message is what callers were
160
+ * reduced to; handing back the envelope lets them read it.
161
+ *
162
+ * A non-2xx carrying an envelope is still De. answering, so it comes back
163
+ * the same way.
164
+ *
165
+ * What is NOT De. answering is raised. A wrong path gets Fastify's own
166
+ * 404 body, which is JSON but not the envelope — `error` there is the
167
+ * string 'Not Found', not a boolean. Returning that as though it were a
168
+ * refusal is how a client addressing a route that does not exist would
169
+ * look like a workspace being told no, which is precisely the bug that
170
+ * hid `/LSP/invitation/agent` behind a plausible-looking failure.
171
+ */
172
+ rememberStatus( body, response.status )
72
173
 
73
- // console.log( options )
74
- return await ( await fetch( url, options ) ).json() as Response
174
+ if( typeof body?.error !== 'boolean' )
175
+ throw new APIError(
176
+ body?.message || `${options.method} ${url} — ${response.status} ${response.statusText || 'not a De. response'}`,
177
+ response.status,
178
+ body
179
+ )
180
+
181
+ return body as Response
182
+ }
183
+
184
+ /**
185
+ * The context decoded into its parts.
186
+ *
187
+ * Every consumer was decoding the base64 and splitting on ':' by hand,
188
+ * including validating that it produced three fields. Returns undefined
189
+ * rather than throwing when the string is not a context, since a caller
190
+ * asking is usually checking.
191
+ */
192
+ get scope(): { wid: string, type: string, xcode: string } | undefined {
193
+ try {
194
+ const decoded = typeof atob === 'function'
195
+ ? atob( this.context )
196
+ : Buffer.from( this.context, 'base64' ).toString('utf8'),
197
+ [ wid, type, xcode ] = decoded.split(':')
198
+
199
+ return wid && type && xcode ? { wid, type, xcode } : undefined
200
+ }
201
+ catch { return undefined }
75
202
  }
76
203
 
77
204
  setToken( token: string ): void { this.accessToken = token }
205
+
206
+ /** Attach or replace the signed-in user after construction. */
207
+ setSession( session: UserSession ): void { this.session = session }
208
+
209
+ /** Drop the user session — e.g. on sign-out. */
210
+ clearSession(): void { this.session = undefined }
78
211
  }
@@ -1,8 +1,9 @@
1
1
  import type {
2
2
  AgentConsolidationRespondValidation,
3
- AgentConsolidationHandoffValidation
3
+ AgentConsolidationHandoffValidation,
4
+ AgentConsolidationCompleteValidation
4
5
  } from '@de./types'
5
- import { type Http, type Res } from '../../utils'
6
+ import { type Http, type Res, type Data } from '../../utils'
6
7
 
7
8
  // ─── Agent Consolidation ──────────────────────────────────────────────────────
8
9
 
@@ -10,22 +11,33 @@ export default class AgentConsolidation {
10
11
  constructor( private http: Http ){}
11
12
 
12
13
  async respond( body: AgentConsolidationRespondValidation['body'] ): Promise<AgentConsolidationRespondValidation['response']> {
13
- const { error, message, data } = await this.http.request<Res<AgentConsolidationRespondValidation['response']>>({
14
+ return await this.http.request<AgentConsolidationRespondValidation['response']>({
14
15
  url: '/agent/consolidation/respond',
15
16
  method: 'POST',
16
17
  body
17
18
  })
18
- if( error ) throw new Error( message )
19
- return data
20
19
  }
21
20
 
22
21
  async handoffConfirm( body: AgentConsolidationHandoffValidation['body'] ): Promise<AgentConsolidationHandoffValidation['response']> {
23
- const { error, message, data } = await this.http.request<Res<AgentConsolidationHandoffValidation['response']>>({
22
+ return await this.http.request<AgentConsolidationHandoffValidation['response']>({
24
23
  url: '/agent/consolidation/handoff/confirm',
25
24
  method: 'POST',
26
25
  body
27
26
  })
28
- if( error ) throw new Error( message )
29
- return data
27
+ }
28
+
29
+ /**
30
+ * The receiving rider reporting leg 2 delivered.
31
+ *
32
+ * No handoff code — the PIN authenticated the transfer between riders at
33
+ * confirm. This is what takes the offer out of IN_PROGRESS and returns the
34
+ * rider to their zone pool.
35
+ */
36
+ async handoffComplete( body: AgentConsolidationCompleteValidation['body'] ): Promise<AgentConsolidationCompleteValidation['response']> {
37
+ return await this.http.request<AgentConsolidationCompleteValidation['response']>({
38
+ url: '/agent/consolidation/handoff/complete',
39
+ method: 'POST',
40
+ body
41
+ })
30
42
  }
31
43
  }
@@ -5,7 +5,7 @@ import type {
5
5
  AgentDeliveryUpdateStatusValidation,
6
6
  AgentDeliveryReportIssueValidation
7
7
  } from '@de./types'
8
- import { qs, type Http, type Res } from '../../utils'
8
+ import { qs, type Http, type Res, type Data } from '../../utils'
9
9
 
10
10
  // ─── Agent Delivery Orders ────────────────────────────────────────────────────
11
11
 
@@ -13,49 +13,39 @@ export default class AgentDelivery {
13
13
  constructor( private http: Http ){}
14
14
 
15
15
  async list( querystring?: AgentDeliveryListValidation['querystring'] ): Promise<AgentDeliveryListValidation['response']> {
16
- const { error, message, data } = await this.http.request<Res<AgentDeliveryListValidation['response']>>({
16
+ return await this.http.request<AgentDeliveryListValidation['response']>({
17
17
  url: `/agent/delivery/orders${qs( querystring )}`,
18
18
  method: 'GET'
19
19
  })
20
- if( error ) throw new Error( message )
21
- return data
22
20
  }
23
21
 
24
22
  async get( reference: string ): Promise<AgentDeliveryGetValidation['response']> {
25
- const { error, message, data } = await this.http.request<Res<AgentDeliveryGetValidation['response']>>({
23
+ return await this.http.request<AgentDeliveryGetValidation['response']>({
26
24
  url: `/agent/delivery/orders/${reference}`,
27
25
  method: 'GET'
28
26
  })
29
- if( error ) throw new Error( message )
30
- return data
31
27
  }
32
28
 
33
29
  async accept( reference: string ): Promise<AgentDeliveryAcceptValidation['response']> {
34
- const { error, message, data } = await this.http.request<Res<AgentDeliveryAcceptValidation['response']>>({
30
+ return await this.http.request<AgentDeliveryAcceptValidation['response']>({
35
31
  url: `/agent/delivery/orders/${reference}/accept`,
36
32
  method: 'POST'
37
33
  })
38
- if( error ) throw new Error( message )
39
- return data
40
34
  }
41
35
 
42
36
  async updateStatus( reference: string, body: AgentDeliveryUpdateStatusValidation['body'] ): Promise<AgentDeliveryUpdateStatusValidation['response']> {
43
- const { error, message, data } = await this.http.request<Res<AgentDeliveryUpdateStatusValidation['response']>>({
37
+ return await this.http.request<AgentDeliveryUpdateStatusValidation['response']>({
44
38
  url: `/agent/delivery/orders/${reference}/status`,
45
39
  method: 'PATCH',
46
40
  body
47
41
  })
48
- if( error ) throw new Error( message )
49
- return data
50
42
  }
51
43
 
52
44
  async reportIssue( reference: string, body: AgentDeliveryReportIssueValidation['body'] ): Promise<AgentDeliveryReportIssueValidation['response']> {
53
- const { error, message, data } = await this.http.request<Res<AgentDeliveryReportIssueValidation['response']>>({
45
+ return await this.http.request<AgentDeliveryReportIssueValidation['response']>({
54
46
  url: `/agent/delivery/orders/${reference}/issue`,
55
47
  method: 'POST',
56
48
  body
57
49
  })
58
- if( error ) throw new Error( message )
59
- return data
60
50
  }
61
51
  }
@@ -2,7 +2,7 @@ import type {
2
2
  AgentDispatchRespondValidation,
3
3
  AgentDispatchRateValidation
4
4
  } from '@de./types'
5
- import { type Http, type Res } from '../../utils'
5
+ import { type Http, type Res, type Data } from '../../utils'
6
6
 
7
7
  // ─── Agent Dispatch ───────────────────────────────────────────────────────────
8
8
 
@@ -10,22 +10,18 @@ export default class AgentDispatch {
10
10
  constructor( private http: Http ){}
11
11
 
12
12
  async respond( body: AgentDispatchRespondValidation['body'] ): Promise<AgentDispatchRespondValidation['response']> {
13
- const { error, message, data } = await this.http.request<Res<AgentDispatchRespondValidation['response']>>({
13
+ return await this.http.request<AgentDispatchRespondValidation['response']>({
14
14
  url: '/agent/dispatch/respond',
15
15
  method: 'POST',
16
16
  body
17
17
  })
18
- if( error ) throw new Error( message )
19
- return data
20
18
  }
21
19
 
22
20
  async rate( body: AgentDispatchRateValidation['body'] ): Promise<AgentDispatchRateValidation['response']> {
23
- const { error, message, data } = await this.http.request<Res<AgentDispatchRateValidation['response']>>({
21
+ return await this.http.request<AgentDispatchRateValidation['response']>({
24
22
  url: '/agent/dispatch/rate',
25
23
  method: 'POST',
26
24
  body
27
25
  })
28
- if( error ) throw new Error( message )
29
- return data
30
26
  }
31
27
  }
@@ -1,11 +1,11 @@
1
- import type { AccessOptions } from '../../types/access'
1
+ import type { AccessOptions, UserSession } from '../../types/access'
2
2
  import type {
3
3
  AgentInfoValidation,
4
4
  AgentAvailabilityValidation,
5
5
  AgentUpdateValidation
6
6
  } from '@de./types'
7
7
  import AccessManager from '../Access'
8
- import { type Res } from '../../utils'
8
+ import { type Res, type Data } from '../../utils'
9
9
  import AgentRides from './rides'
10
10
  import AgentDelivery from './delivery'
11
11
  import AgentShipping from './shipping'
@@ -14,6 +14,7 @@ import AgentConsolidation from './consolidation'
14
14
  import AgentReallocation from './reallocation'
15
15
  import AgentDispatch from './dispatch'
16
16
  import AgentOrigin from './origin'
17
+ import AgentRealtime from './realtime'
17
18
 
18
19
  export type AgentConfig = {
19
20
  context: string
@@ -21,13 +22,29 @@ export type AgentConfig = {
21
22
  env?: 'dev' | 'staging' | 'prod'
22
23
  platform?: 'web' | 'mobile' | 'server' | 'proxy'
23
24
  remoteOrigin?: string
25
+ /** Per-request deadline in ms. See `AccessOptions.timeout`. */
26
+ timeout?: number
27
+ /** Explicit service origin, overriding the env table. See `AccessOptions.baseUrl`. */
28
+ baseUrl?: string
29
+ /** Host to substitute for `localhost` in `dev` (Eg. a native emulator) */
30
+ devHostname?: string
31
+ /**
32
+ * The signed-in rider.
33
+ *
34
+ * Required in practice: AUX agent routes authenticate the caller with
35
+ * `isConnected` + `isAgent`, which read `de-auth-token` / `de-auth-device`
36
+ * and ignore the bearer token entirely. Without this, every call here
37
+ * fails authorization no matter how valid the access token is.
38
+ */
39
+ session?: UserSession
24
40
  }
25
41
 
26
42
  // ─────────────────────────────────────────────────────────────────────────────
27
43
  //
28
44
  // Agent: Agent Operation Interfaces — de.arch AUX/agent routes.
29
45
  // Covers profile, availability, orders (ride/delivery/shipping),
30
- // navigation, consolidation, reallocation, dispatch, and origin.
46
+ // navigation, consolidation, reallocation, dispatch, and origin — plus the
47
+ // realtime socket channel (order rooms + proactive-consolidation responses).
31
48
  //
32
49
  // ─────────────────────────────────────────────────────────────────────────────
33
50
 
@@ -40,6 +57,7 @@ export default class Agent extends AccessManager {
40
57
  readonly reallocation: AgentReallocation
41
58
  readonly dispatch: AgentDispatch
42
59
  readonly origin: AgentOrigin
60
+ readonly realtime: AgentRealtime
43
61
 
44
62
  constructor( config: AgentConfig ){
45
63
  if( !config.context ) throw new Error('Undefined context. See https://doc.dedot.io/sdk/aux')
@@ -50,7 +68,11 @@ export default class Agent extends AccessManager {
50
68
  accessToken: config.accessToken,
51
69
  env: config.env || 'dev',
52
70
  platform: config.platform || 'proxy',
53
- remoteOrigin: config.remoteOrigin
71
+ remoteOrigin: config.remoteOrigin,
72
+ timeout: config.timeout,
73
+ baseUrl: config.baseUrl,
74
+ devHostname: config.devHostname,
75
+ session: config.session
54
76
  }
55
77
  super( access, 'API' )
56
78
 
@@ -62,35 +84,30 @@ export default class Agent extends AccessManager {
62
84
  this.reallocation = new AgentReallocation( this )
63
85
  this.dispatch = new AgentDispatch( this )
64
86
  this.origin = new AgentOrigin( this )
87
+ this.realtime = new AgentRealtime( access )
65
88
  }
66
89
 
67
90
  // ── Agent profile ─────────────────────────────────────────────────────────
68
91
 
69
92
  async info(): Promise<AgentInfoValidation['response']> {
70
- const { error, message, data } = await this.request<Res<AgentInfoValidation['response']>>({
93
+ return await this.request<AgentInfoValidation['response']>({
71
94
  url: '/agent',
72
95
  method: 'GET'
73
96
  })
74
- if( error ) throw new Error( message )
75
- return data
76
97
  }
77
98
 
78
99
  async update( body: AgentUpdateValidation['body'] ): Promise<AgentUpdateValidation['response']> {
79
- const { error, message, data } = await this.request<Res<AgentUpdateValidation['response']>>({
100
+ return await this.request<AgentUpdateValidation['response']>({
80
101
  url: '/agent',
81
102
  method: 'PATCH',
82
103
  body
83
104
  })
84
- if( error ) throw new Error( message )
85
- return data
86
105
  }
87
106
 
88
107
  async availability( status: AgentAvailabilityValidation['params']['availability'] ): Promise<AgentAvailabilityValidation['response']> {
89
- const { error, message, data } = await this.request<Res<AgentAvailabilityValidation['response']>>({
108
+ return await this.request<AgentAvailabilityValidation['response']>({
90
109
  url: `/agent/${status}`,
91
110
  method: 'GET'
92
111
  })
93
- if( error ) throw new Error( message )
94
- return data
95
112
  }
96
113
  }
@@ -2,7 +2,7 @@ import type {
2
2
  AgentLocationValidation,
3
3
  AgentNearbyValidation
4
4
  } from '@de./types'
5
- import { qs, type Http, type Res } from '../../utils'
5
+ import { qs, type Http, type Res, type Data } from '../../utils'
6
6
 
7
7
  // ─── Agent Navigation ─────────────────────────────────────────────────────────
8
8
 
@@ -10,22 +10,18 @@ export default class AgentNavigation {
10
10
  constructor( private http: Http ){}
11
11
 
12
12
  async location( body: AgentLocationValidation['body'] ): Promise<AgentLocationValidation['response']> {
13
- const { error, message, data } = await this.http.request<Res<AgentLocationValidation['response']>>({
13
+ return await this.http.request<AgentLocationValidation['response']>({
14
14
  url: '/agent/navigation/location',
15
15
  method: 'POST',
16
16
  body
17
17
  })
18
- if( error ) throw new Error( message )
19
- return data
20
18
  }
21
19
 
22
20
  async nearby( body: AgentNearbyValidation['body'], querystring?: AgentNearbyValidation['querystring'] ): Promise<AgentNearbyValidation['response']> {
23
- const { error, message, data } = await this.http.request<Res<AgentNearbyValidation['response']>>({
21
+ return await this.http.request<AgentNearbyValidation['response']>({
24
22
  url: `/agent/navigation/nearby${qs( querystring )}`,
25
23
  method: 'POST',
26
24
  body
27
25
  })
28
- if( error ) throw new Error( message )
29
- return data
30
26
  }
31
27
  }
@@ -3,7 +3,7 @@ import type {
3
3
  AgentRegisterPoiValidation,
4
4
  AgentAddPoiNoteValidation
5
5
  } from '@de./types'
6
- import { type Http, type Res } from '../../utils'
6
+ import { type Http, type Res, type Data } from '../../utils'
7
7
 
8
8
  // ─── Agent Origin ─────────────────────────────────────────────────────────────
9
9
 
@@ -11,32 +11,26 @@ export default class AgentOrigin {
11
11
  constructor( private http: Http ){}
12
12
 
13
13
  async statusReport( body: AgentOriginStatusReportValidation['body'] ): Promise<AgentOriginStatusReportValidation['response']> {
14
- const { error, message, data } = await this.http.request<Res<AgentOriginStatusReportValidation['response']>>({
14
+ return await this.http.request<AgentOriginStatusReportValidation['response']>({
15
15
  url: '/agent/origin/status',
16
16
  method: 'POST',
17
17
  body
18
18
  })
19
- if( error ) throw new Error( message )
20
- return data
21
19
  }
22
20
 
23
21
  async registerPoi( body: AgentRegisterPoiValidation['body'] ): Promise<AgentRegisterPoiValidation['response']> {
24
- const { error, message, data } = await this.http.request<Res<AgentRegisterPoiValidation['response']>>({
22
+ return await this.http.request<AgentRegisterPoiValidation['response']>({
25
23
  url: '/agent/origin/poi/register',
26
24
  method: 'POST',
27
25
  body
28
26
  })
29
- if( error ) throw new Error( message )
30
- return data
31
27
  }
32
28
 
33
29
  async addPoiNote( body: AgentAddPoiNoteValidation['body'] ): Promise<AgentAddPoiNoteValidation['response']> {
34
- const { error, message, data } = await this.http.request<Res<AgentAddPoiNoteValidation['response']>>({
30
+ return await this.http.request<AgentAddPoiNoteValidation['response']>({
35
31
  url: '/agent/origin/poi/note',
36
32
  method: 'POST',
37
33
  body
38
34
  })
39
- if( error ) throw new Error( message )
40
- return data
41
35
  }
42
36
  }
@@ -1,5 +1,5 @@
1
1
  import type { AgentReallocationRespondValidation } from '@de./types'
2
- import { type Http, type Res } from '../../utils'
2
+ import { type Http, type Res, type Data } from '../../utils'
3
3
 
4
4
  // ─── Agent Reallocation ───────────────────────────────────────────────────────
5
5
 
@@ -7,12 +7,10 @@ export default class AgentReallocation {
7
7
  constructor( private http: Http ){}
8
8
 
9
9
  async respond( body: AgentReallocationRespondValidation['body'] ): Promise<AgentReallocationRespondValidation['response']> {
10
- const { error, message, data } = await this.http.request<Res<AgentReallocationRespondValidation['response']>>({
10
+ return await this.http.request<AgentReallocationRespondValidation['response']>({
11
11
  url: '/agent/reallocation/respond',
12
12
  method: 'POST',
13
13
  body
14
14
  })
15
- if( error ) throw new Error( message )
16
- return data
17
15
  }
18
16
  }