@chrt-inc/typescript-sdk 0.0.174 → 0.0.183

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 (310) hide show
  1. package/dist/cjs/Client.d.ts +24 -24
  2. package/dist/cjs/Client.js +48 -48
  3. package/dist/cjs/api/index.d.ts +1 -1
  4. package/dist/cjs/api/index.js +1 -1
  5. package/dist/cjs/api/resources/connections/client/Client.d.ts +8 -8
  6. package/dist/cjs/api/resources/connections/client/Client.js +14 -14
  7. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +1 -1
  8. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +1 -1
  9. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +26 -26
  10. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +79 -79
  11. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +1 -1
  12. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +1 -1
  13. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +1 -1
  14. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +1 -1
  15. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +1 -1
  16. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +16 -12
  17. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +27 -23
  18. package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +3 -3
  19. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +39 -26
  20. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +112 -67
  21. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +24 -24
  22. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +12 -12
  23. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/index.d.ts +0 -1
  24. package/dist/cjs/api/resources/courierPayDriverRateSheets/index.d.ts +0 -1
  25. package/dist/cjs/api/resources/courierPayDriverRateSheets/index.js +0 -1
  26. package/dist/cjs/api/resources/dev/client/Client.d.ts +28 -10
  27. package/dist/cjs/api/resources/dev/client/Client.js +103 -46
  28. package/dist/cjs/api/resources/drivers/client/Client.d.ts +52 -50
  29. package/dist/cjs/api/resources/drivers/client/Client.js +109 -107
  30. package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +3 -3
  31. package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +1 -1
  32. package/dist/cjs/api/resources/index.d.ts +14 -15
  33. package/dist/cjs/api/resources/index.js +15 -16
  34. package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +2 -2
  35. package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +2 -2
  36. package/dist/cjs/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +3 -3
  37. package/dist/cjs/api/resources/milestones/client/Client.d.ts +16 -16
  38. package/dist/cjs/api/resources/milestones/client/Client.js +25 -25
  39. package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
  40. package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
  41. package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +1 -1
  42. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +1 -5
  43. package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +1 -5
  44. package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +14 -14
  45. package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +35 -35
  46. package/dist/cjs/api/resources/milestones/resources/index.d.ts +1 -1
  47. package/dist/cjs/api/resources/milestones/resources/index.js +2 -2
  48. package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
  49. package/dist/cjs/api/resources/notifications/client/Client.js +6 -6
  50. package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.d.ts +2 -2
  51. package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.js +2 -2
  52. package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +3 -3
  53. package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
  54. package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
  55. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
  56. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
  57. package/dist/cjs/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +3 -3
  58. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.ts +6 -6
  59. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.js +6 -6
  60. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
  61. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
  62. package/dist/cjs/api/resources/orders/client/Client.d.ts +30 -26
  63. package/dist/cjs/api/resources/orders/client/Client.js +74 -70
  64. package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +16 -16
  65. package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +12 -12
  66. package/dist/cjs/api/resources/orders/resources/full/client/Client.js +33 -33
  67. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +3 -3
  68. package/dist/cjs/api/resources/orgConnectionInfos/client/Client.js +6 -6
  69. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +5 -5
  70. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +5 -5
  71. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +7 -7
  72. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +4 -4
  73. package/dist/cjs/api/resources/orgConnectionInfos/resources/index.d.ts +2 -2
  74. package/dist/cjs/api/resources/orgConnectionInfos/resources/index.js +3 -3
  75. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +5 -5
  76. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +5 -5
  77. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +7 -7
  78. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
  79. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +15 -17
  80. package/dist/cjs/api/resources/orgProfiles/client/Client.js +43 -49
  81. package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +3 -3
  82. package/dist/cjs/api/resources/orgProfiles/client/requests/index.d.ts +0 -1
  83. package/dist/cjs/api/resources/orgs/client/Client.d.ts +41 -37
  84. package/dist/cjs/api/resources/orgs/client/Client.js +90 -86
  85. package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +3 -3
  86. package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
  87. package/dist/cjs/api/resources/payments/client/Client.d.ts +3 -7
  88. package/dist/cjs/api/resources/payments/client/Client.js +3 -7
  89. package/dist/cjs/api/resources/root/client/Client.d.ts +19 -13
  90. package/dist/cjs/api/resources/root/client/Client.js +31 -25
  91. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +42 -42
  92. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +90 -90
  93. package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +4 -4
  94. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +24 -18
  95. package/dist/cjs/api/resources/taskGroups/client/Client.js +43 -37
  96. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +2 -2
  97. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +2 -2
  98. package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +2 -2
  99. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
  100. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +4 -2
  101. package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.ts +3 -3
  102. package/dist/cjs/api/resources/users/client/Client.d.ts +2 -0
  103. package/dist/cjs/api/resources/users/client/Client.js +2 -0
  104. package/dist/cjs/api/types/Cargo1.d.ts +6 -6
  105. package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -3
  106. package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
  107. package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
  108. package/dist/cjs/api/types/CourierOrgProfile3.d.ts +3 -3
  109. package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +5 -5
  110. package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +1 -1
  111. package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +16 -16
  112. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
  113. package/dist/cjs/api/types/Driver1.d.ts +6 -6
  114. package/dist/cjs/api/types/Expense1.d.ts +3 -3
  115. package/dist/cjs/api/types/Feature.d.ts +3 -3
  116. package/dist/cjs/api/types/GetOrderFullRes.d.ts +2 -2
  117. package/dist/cjs/api/types/Incident1.d.ts +1 -1
  118. package/dist/cjs/api/types/Insurance1.d.ts +1 -1
  119. package/dist/cjs/api/types/LineItem1.d.ts +1 -1
  120. package/dist/cjs/api/types/Milestone1.d.ts +13 -13
  121. package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
  122. package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +9 -9
  123. package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -11
  124. package/dist/cjs/api/types/Order1.d.ts +11 -11
  125. package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
  126. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  127. package/dist/cjs/api/types/OrgPublicData2.d.ts +4 -4
  128. package/dist/cjs/api/types/PayablesInvoice1.d.ts +11 -11
  129. package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
  130. package/dist/cjs/api/types/ShipperContactInfo1.d.ts +11 -11
  131. package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +6 -6
  132. package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +4 -4
  133. package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +9 -9
  134. package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +6 -6
  135. package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +5 -5
  136. package/dist/cjs/api/types/Task1.d.ts +13 -13
  137. package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
  138. package/dist/cjs/api/types/TaskCreateBundle.d.ts +2 -2
  139. package/dist/cjs/api/types/TaskGroup1.d.ts +11 -11
  140. package/dist/cjs/api/types/TaskWithDetails.d.ts +2 -2
  141. package/dist/cjs/api/types/Tracker1.d.ts +1 -1
  142. package/dist/cjs/api/types/TrackerSession1.d.ts +1 -1
  143. package/dist/cjs/api/types/UserPublicData6.d.ts +6 -6
  144. package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
  145. package/dist/cjs/version.d.ts +1 -1
  146. package/dist/cjs/version.js +1 -1
  147. package/dist/esm/Client.d.mts +24 -24
  148. package/dist/esm/Client.mjs +36 -36
  149. package/dist/esm/api/index.d.mts +1 -1
  150. package/dist/esm/api/index.mjs +1 -1
  151. package/dist/esm/api/resources/connections/client/Client.d.mts +8 -8
  152. package/dist/esm/api/resources/connections/client/Client.mjs +14 -14
  153. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +1 -1
  154. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +1 -1
  155. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +26 -26
  156. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +79 -79
  157. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +1 -1
  158. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +1 -1
  159. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +1 -1
  160. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +1 -1
  161. package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +1 -1
  162. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +16 -12
  163. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +27 -23
  164. package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +3 -3
  165. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +39 -26
  166. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +112 -67
  167. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +24 -24
  168. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +12 -12
  169. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/index.d.mts +0 -1
  170. package/dist/esm/api/resources/courierPayDriverRateSheets/index.d.mts +0 -1
  171. package/dist/esm/api/resources/courierPayDriverRateSheets/index.mjs +0 -1
  172. package/dist/esm/api/resources/dev/client/Client.d.mts +28 -10
  173. package/dist/esm/api/resources/dev/client/Client.mjs +103 -46
  174. package/dist/esm/api/resources/drivers/client/Client.d.mts +52 -50
  175. package/dist/esm/api/resources/drivers/client/Client.mjs +109 -107
  176. package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +3 -3
  177. package/dist/esm/api/resources/drivers/client/requests/index.d.mts +1 -1
  178. package/dist/esm/api/resources/index.d.mts +14 -15
  179. package/dist/esm/api/resources/index.mjs +14 -15
  180. package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +2 -2
  181. package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +2 -2
  182. package/dist/esm/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +3 -3
  183. package/dist/esm/api/resources/milestones/client/Client.d.mts +16 -16
  184. package/dist/esm/api/resources/milestones/client/Client.mjs +24 -24
  185. package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
  186. package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +1 -1
  187. package/dist/esm/api/resources/milestones/client/requests/index.d.mts +1 -1
  188. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +1 -5
  189. package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +1 -5
  190. package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +14 -14
  191. package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +35 -35
  192. package/dist/esm/api/resources/milestones/resources/index.d.mts +1 -1
  193. package/dist/esm/api/resources/milestones/resources/index.mjs +1 -1
  194. package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
  195. package/dist/esm/api/resources/notifications/client/Client.mjs +5 -5
  196. package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.d.mts +2 -2
  197. package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.mjs +2 -2
  198. package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +3 -3
  199. package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
  200. package/dist/esm/api/resources/notifications/resources/index.mjs +2 -2
  201. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
  202. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
  203. package/dist/esm/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +3 -3
  204. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.mts +6 -6
  205. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs +6 -6
  206. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
  207. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
  208. package/dist/esm/api/resources/orders/client/Client.d.mts +30 -26
  209. package/dist/esm/api/resources/orders/client/Client.mjs +74 -70
  210. package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +16 -16
  211. package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +12 -12
  212. package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +33 -33
  213. package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +3 -3
  214. package/dist/esm/api/resources/orgConnectionInfos/client/Client.mjs +5 -5
  215. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +5 -5
  216. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +5 -5
  217. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +7 -7
  218. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +4 -4
  219. package/dist/esm/api/resources/orgConnectionInfos/resources/index.d.mts +2 -2
  220. package/dist/esm/api/resources/orgConnectionInfos/resources/index.mjs +2 -2
  221. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +5 -5
  222. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +5 -5
  223. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +7 -7
  224. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
  225. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +15 -17
  226. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +43 -49
  227. package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts +3 -3
  228. package/dist/esm/api/resources/orgProfiles/client/requests/index.d.mts +0 -1
  229. package/dist/esm/api/resources/orgs/client/Client.d.mts +41 -37
  230. package/dist/esm/api/resources/orgs/client/Client.mjs +90 -86
  231. package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +3 -3
  232. package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
  233. package/dist/esm/api/resources/payments/client/Client.d.mts +3 -7
  234. package/dist/esm/api/resources/payments/client/Client.mjs +3 -7
  235. package/dist/esm/api/resources/root/client/Client.d.mts +19 -13
  236. package/dist/esm/api/resources/root/client/Client.mjs +31 -25
  237. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +42 -42
  238. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +90 -90
  239. package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +4 -4
  240. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +24 -18
  241. package/dist/esm/api/resources/taskGroups/client/Client.mjs +43 -37
  242. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +2 -2
  243. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +2 -2
  244. package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +2 -2
  245. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
  246. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +4 -2
  247. package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.mts +3 -3
  248. package/dist/esm/api/resources/users/client/Client.d.mts +2 -0
  249. package/dist/esm/api/resources/users/client/Client.mjs +2 -0
  250. package/dist/esm/api/types/Cargo1.d.mts +6 -6
  251. package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -3
  252. package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
  253. package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
  254. package/dist/esm/api/types/CourierOrgProfile3.d.mts +3 -3
  255. package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +5 -5
  256. package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +1 -1
  257. package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +16 -16
  258. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +8 -8
  259. package/dist/esm/api/types/Driver1.d.mts +6 -6
  260. package/dist/esm/api/types/Expense1.d.mts +3 -3
  261. package/dist/esm/api/types/Feature.d.mts +3 -3
  262. package/dist/esm/api/types/GetOrderFullRes.d.mts +2 -2
  263. package/dist/esm/api/types/Incident1.d.mts +1 -1
  264. package/dist/esm/api/types/Insurance1.d.mts +1 -1
  265. package/dist/esm/api/types/LineItem1.d.mts +1 -1
  266. package/dist/esm/api/types/Milestone1.d.mts +13 -13
  267. package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
  268. package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +9 -9
  269. package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -11
  270. package/dist/esm/api/types/Order1.d.mts +11 -11
  271. package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
  272. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  273. package/dist/esm/api/types/OrgPublicData2.d.mts +4 -4
  274. package/dist/esm/api/types/PayablesInvoice1.d.mts +11 -11
  275. package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
  276. package/dist/esm/api/types/ShipperContactInfo1.d.mts +11 -11
  277. package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +6 -6
  278. package/dist/esm/api/types/ShipperCourierConnection1.d.mts +4 -4
  279. package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +9 -9
  280. package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +6 -6
  281. package/dist/esm/api/types/StripeConnectInvoice1.d.mts +5 -5
  282. package/dist/esm/api/types/Task1.d.mts +13 -13
  283. package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
  284. package/dist/esm/api/types/TaskCreateBundle.d.mts +2 -2
  285. package/dist/esm/api/types/TaskGroup1.d.mts +11 -11
  286. package/dist/esm/api/types/TaskWithDetails.d.mts +2 -2
  287. package/dist/esm/api/types/Tracker1.d.mts +1 -1
  288. package/dist/esm/api/types/TrackerSession1.d.mts +1 -1
  289. package/dist/esm/api/types/UserPublicData6.d.mts +6 -6
  290. package/dist/esm/api/types/Vehicle1.d.mts +1 -1
  291. package/dist/esm/version.d.mts +1 -1
  292. package/dist/esm/version.mjs +1 -1
  293. package/package.json +1 -1
  294. package/reference.md +1196 -764
  295. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +0 -11
  296. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js +0 -5
  297. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.ts +0 -5
  298. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js +0 -5
  299. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.d.ts +0 -1
  300. package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.js +0 -17
  301. package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.ts +0 -12
  302. package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js +0 -5
  303. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +0 -11
  304. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs +0 -4
  305. package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.mts +0 -5
  306. package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs +0 -4
  307. package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.d.mts +0 -1
  308. package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.mjs +0 -1
  309. package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.mts +0 -12
  310. package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs +0 -4
@@ -20,21 +20,21 @@ export class Orgs {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Get the handle for the org from JWT
23
+ * Retrieves basic organization information from the authentication service.
24
24
  *
25
25
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
27
27
  * @example
28
- * await client.orgs.getHandle()
28
+ * await client.orgs.getInfo()
29
29
  */
30
- getHandle(requestOptions) {
31
- return core.HttpResponsePromise.fromPromise(this.__getHandle(requestOptions));
30
+ getInfo(requestOptions) {
31
+ return core.HttpResponsePromise.fromPromise(this.__getInfo(requestOptions));
32
32
  }
33
- __getHandle(requestOptions) {
33
+ __getInfo(requestOptions) {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
35
  var _a, _b, _c, _d;
36
36
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
37
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/handle"),
37
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/info"),
38
38
  method: "GET",
39
39
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
40
40
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -59,7 +59,7 @@ export class Orgs {
59
59
  rawResponse: _response.rawResponse,
60
60
  });
61
61
  case "timeout":
62
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle.");
62
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/info.");
63
63
  case "unknown":
64
64
  throw new errors.ChrtError({
65
65
  message: _response.error.errorMessage,
@@ -69,24 +69,21 @@ export class Orgs {
69
69
  });
70
70
  }
71
71
  /**
72
- * Check if a handle is available, returns true if it is, false if it is not
72
+ * Lists all members of the authenticated organization with their roles and details.
73
73
  *
74
- * @param {string} handle
75
74
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
76
75
  *
77
- * @throws {@link Chrt.UnprocessableEntityError}
78
- *
79
76
  * @example
80
- * await client.orgs.getHandleAvailability("handle")
77
+ * await client.orgs.listMembers()
81
78
  */
82
- getHandleAvailability(handle, requestOptions) {
83
- return core.HttpResponsePromise.fromPromise(this.__getHandleAvailability(handle, requestOptions));
79
+ listMembers(requestOptions) {
80
+ return core.HttpResponsePromise.fromPromise(this.__listMembers(requestOptions));
84
81
  }
85
- __getHandleAvailability(handle, requestOptions) {
82
+ __listMembers(requestOptions) {
86
83
  return __awaiter(this, void 0, void 0, function* () {
87
84
  var _a, _b, _c, _d;
88
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
89
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `orgs/handle/availability/${encodeURIComponent(handle)}`),
86
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/members/list"),
90
87
  method: "GET",
91
88
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -97,16 +94,11 @@ export class Orgs {
97
94
  return { data: _response.body, rawResponse: _response.rawResponse };
98
95
  }
99
96
  if (_response.error.reason === "status-code") {
100
- switch (_response.error.statusCode) {
101
- case 422:
102
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
103
- default:
104
- throw new errors.ChrtError({
105
- statusCode: _response.error.statusCode,
106
- body: _response.error.body,
107
- rawResponse: _response.rawResponse,
108
- });
109
- }
97
+ throw new errors.ChrtError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.body,
100
+ rawResponse: _response.rawResponse,
101
+ });
110
102
  }
111
103
  switch (_response.error.reason) {
112
104
  case "non-json":
@@ -116,7 +108,7 @@ export class Orgs {
116
108
  rawResponse: _response.rawResponse,
117
109
  });
118
110
  case "timeout":
119
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/availability/{handle}.");
111
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/members/list.");
120
112
  case "unknown":
121
113
  throw new errors.ChrtError({
122
114
  message: _response.error.errorMessage,
@@ -126,19 +118,21 @@ export class Orgs {
126
118
  });
127
119
  }
128
120
  /**
121
+ * Retrieves public organization data for the authenticated organization.
122
+ *
129
123
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
130
124
  *
131
125
  * @example
132
- * await client.orgs.getInfo()
126
+ * await client.orgs.getPublicData()
133
127
  */
134
- getInfo(requestOptions) {
135
- return core.HttpResponsePromise.fromPromise(this.__getInfo(requestOptions));
128
+ getPublicData(requestOptions) {
129
+ return core.HttpResponsePromise.fromPromise(this.__getPublicData(requestOptions));
136
130
  }
137
- __getInfo(requestOptions) {
131
+ __getPublicData(requestOptions) {
138
132
  return __awaiter(this, void 0, void 0, function* () {
139
133
  var _a, _b, _c, _d;
140
134
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
141
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/info"),
135
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/public_data"),
142
136
  method: "GET",
143
137
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -163,7 +157,7 @@ export class Orgs {
163
157
  rawResponse: _response.rawResponse,
164
158
  });
165
159
  case "timeout":
166
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/info.");
160
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data.");
167
161
  case "unknown":
168
162
  throw new errors.ChrtError({
169
163
  message: _response.error.errorMessage,
@@ -173,19 +167,24 @@ export class Orgs {
173
167
  });
174
168
  }
175
169
  /**
170
+ * Retrieves public organization data for a specific organization by ID.
171
+ *
172
+ * @param {string} orgId
176
173
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
177
174
  *
175
+ * @throws {@link Chrt.UnprocessableEntityError}
176
+ *
178
177
  * @example
179
- * await client.orgs.listMembers()
178
+ * await client.orgs.getPublicDataByOrgId("org_id")
180
179
  */
181
- listMembers(requestOptions) {
182
- return core.HttpResponsePromise.fromPromise(this.__listMembers(requestOptions));
180
+ getPublicDataByOrgId(orgId, requestOptions) {
181
+ return core.HttpResponsePromise.fromPromise(this.__getPublicDataByOrgId(orgId, requestOptions));
183
182
  }
184
- __listMembers(requestOptions) {
183
+ __getPublicDataByOrgId(orgId, requestOptions) {
185
184
  return __awaiter(this, void 0, void 0, function* () {
186
185
  var _a, _b, _c, _d;
187
186
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/members/list"),
187
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `orgs/public_data/${encodeURIComponent(orgId)}`),
189
188
  method: "GET",
190
189
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -196,11 +195,16 @@ export class Orgs {
196
195
  return { data: _response.body, rawResponse: _response.rawResponse };
197
196
  }
198
197
  if (_response.error.reason === "status-code") {
199
- throw new errors.ChrtError({
200
- statusCode: _response.error.statusCode,
201
- body: _response.error.body,
202
- rawResponse: _response.rawResponse,
203
- });
198
+ switch (_response.error.statusCode) {
199
+ case 422:
200
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
201
+ default:
202
+ throw new errors.ChrtError({
203
+ statusCode: _response.error.statusCode,
204
+ body: _response.error.body,
205
+ rawResponse: _response.rawResponse,
206
+ });
207
+ }
204
208
  }
205
209
  switch (_response.error.reason) {
206
210
  case "non-json":
@@ -210,7 +214,7 @@ export class Orgs {
210
214
  rawResponse: _response.rawResponse,
211
215
  });
212
216
  case "timeout":
213
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/members/list.");
217
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/{org_id}.");
214
218
  case "unknown":
215
219
  throw new errors.ChrtError({
216
220
  message: _response.error.errorMessage,
@@ -220,21 +224,21 @@ export class Orgs {
220
224
  });
221
225
  }
222
226
  /**
223
- * Get the org public data for the org from JWT
227
+ * Retrieves the organization handle for the authenticated organization.
224
228
  *
225
229
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
226
230
  *
227
231
  * @example
228
- * await client.orgs.getPublicData()
232
+ * await client.orgs.getHandle()
229
233
  */
230
- getPublicData(requestOptions) {
231
- return core.HttpResponsePromise.fromPromise(this.__getPublicData(requestOptions));
234
+ getHandle(requestOptions) {
235
+ return core.HttpResponsePromise.fromPromise(this.__getHandle(requestOptions));
232
236
  }
233
- __getPublicData(requestOptions) {
237
+ __getHandle(requestOptions) {
234
238
  return __awaiter(this, void 0, void 0, function* () {
235
239
  var _a, _b, _c, _d;
236
240
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
237
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/public_data"),
241
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/handle"),
238
242
  method: "GET",
239
243
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
244
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -259,7 +263,7 @@ export class Orgs {
259
263
  rawResponse: _response.rawResponse,
260
264
  });
261
265
  case "timeout":
262
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data.");
266
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle.");
263
267
  case "unknown":
264
268
  throw new errors.ChrtError({
265
269
  message: _response.error.errorMessage,
@@ -269,32 +273,26 @@ export class Orgs {
269
273
  });
270
274
  }
271
275
  /**
272
- * Create org public data with handle and company name
276
+ * Checks if an organization handle is available for use.
273
277
  *
274
- * @param {Chrt.CreateOrgPublicDataReq} request
278
+ * @param {string} handle
275
279
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
276
280
  *
277
281
  * @throws {@link Chrt.UnprocessableEntityError}
278
282
  *
279
283
  * @example
280
- * await client.orgs.createPublicData({
281
- * company_name: "company_name",
282
- * handle: "handle"
283
- * })
284
+ * await client.orgs.getHandleAvailability("handle")
284
285
  */
285
- createPublicData(request, requestOptions) {
286
- return core.HttpResponsePromise.fromPromise(this.__createPublicData(request, requestOptions));
286
+ getHandleAvailability(handle, requestOptions) {
287
+ return core.HttpResponsePromise.fromPromise(this.__getHandleAvailability(handle, requestOptions));
287
288
  }
288
- __createPublicData(request, requestOptions) {
289
+ __getHandleAvailability(handle, requestOptions) {
289
290
  return __awaiter(this, void 0, void 0, function* () {
290
291
  var _a, _b, _c, _d;
291
292
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
292
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/public_data/create"),
293
- method: "POST",
293
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `orgs/handle/availability/${encodeURIComponent(handle)}`),
294
+ method: "GET",
294
295
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
295
- contentType: "application/json",
296
- requestType: "json",
297
- body: request,
298
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
299
297
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
300
298
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -322,7 +320,7 @@ export class Orgs {
322
320
  rawResponse: _response.rawResponse,
323
321
  });
324
322
  case "timeout":
325
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/public_data/create.");
323
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/availability/{handle}.");
326
324
  case "unknown":
327
325
  throw new errors.ChrtError({
328
326
  message: _response.error.errorMessage,
@@ -332,25 +330,28 @@ export class Orgs {
332
330
  });
333
331
  }
334
332
  /**
335
- * Update handle or company_name for an org
333
+ * Creates public organization data with handle and company name for the authenticated organization.
336
334
  *
337
- * @param {Chrt.UpdateOrgPublicDataReq} request
335
+ * @param {Chrt.CreateOrgPublicDataReq} request
338
336
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
339
337
  *
340
338
  * @throws {@link Chrt.UnprocessableEntityError}
341
339
  *
342
340
  * @example
343
- * await client.orgs.updatePublicData()
341
+ * await client.orgs.createPublicData({
342
+ * handle: "handle",
343
+ * company_name: "company_name"
344
+ * })
344
345
  */
345
- updatePublicData(request = {}, requestOptions) {
346
- return core.HttpResponsePromise.fromPromise(this.__updatePublicData(request, requestOptions));
346
+ createPublicData(request, requestOptions) {
347
+ return core.HttpResponsePromise.fromPromise(this.__createPublicData(request, requestOptions));
347
348
  }
348
- __updatePublicData() {
349
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
349
+ __createPublicData(request, requestOptions) {
350
+ return __awaiter(this, void 0, void 0, function* () {
350
351
  var _a, _b, _c, _d;
351
352
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
352
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/public_data/update"),
353
- method: "PATCH",
353
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/public_data/create"),
354
+ method: "POST",
354
355
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
355
356
  contentType: "application/json",
356
357
  requestType: "json",
@@ -382,7 +383,7 @@ export class Orgs {
382
383
  rawResponse: _response.rawResponse,
383
384
  });
384
385
  case "timeout":
385
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/public_data/update.");
386
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/public_data/create.");
386
387
  case "unknown":
387
388
  throw new errors.ChrtError({
388
389
  message: _response.error.errorMessage,
@@ -392,26 +393,29 @@ export class Orgs {
392
393
  });
393
394
  }
394
395
  /**
395
- * Get the org public data for the org from org_id
396
+ * Updates the organization handle or company name for the authenticated organization.
396
397
  *
397
- * @param {string} orgId
398
+ * @param {Chrt.UpdateOrgPublicDataReq} request
398
399
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
399
400
  *
400
401
  * @throws {@link Chrt.UnprocessableEntityError}
401
402
  *
402
403
  * @example
403
- * await client.orgs.getPublicDataByOrgId("org_id")
404
+ * await client.orgs.updatePublicData()
404
405
  */
405
- getPublicDataByOrgId(orgId, requestOptions) {
406
- return core.HttpResponsePromise.fromPromise(this.__getPublicDataByOrgId(orgId, requestOptions));
406
+ updatePublicData(request = {}, requestOptions) {
407
+ return core.HttpResponsePromise.fromPromise(this.__updatePublicData(request, requestOptions));
407
408
  }
408
- __getPublicDataByOrgId(orgId, requestOptions) {
409
- return __awaiter(this, void 0, void 0, function* () {
409
+ __updatePublicData() {
410
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
410
411
  var _a, _b, _c, _d;
411
412
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
412
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `orgs/public_data/${encodeURIComponent(orgId)}`),
413
- method: "GET",
413
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "orgs/public_data/update"),
414
+ method: "PATCH",
414
415
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
416
+ contentType: "application/json",
417
+ requestType: "json",
418
+ body: request,
415
419
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
416
420
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
417
421
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -439,7 +443,7 @@ export class Orgs {
439
443
  rawResponse: _response.rawResponse,
440
444
  });
441
445
  case "timeout":
442
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/{org_id}.");
446
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/public_data/update.");
443
447
  case "unknown":
444
448
  throw new errors.ChrtError({
445
449
  message: _response.error.errorMessage,
@@ -4,11 +4,11 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * company_name: "company_name",
8
- * handle: "handle"
7
+ * handle: "handle",
8
+ * company_name: "company_name"
9
9
  * }
10
10
  */
11
11
  export interface CreateOrgPublicDataReq {
12
- company_name: string;
13
12
  handle: string;
13
+ company_name: string;
14
14
  }
@@ -6,6 +6,6 @@
6
6
  * {}
7
7
  */
8
8
  export interface UpdateOrgPublicDataReq {
9
- company_name?: string;
10
9
  handle?: string;
10
+ company_name?: string;
11
11
  }
@@ -29,13 +29,7 @@ export declare class Payments {
29
29
  protected readonly _options: Payments.Options;
30
30
  constructor(_options?: Payments.Options);
31
31
  /**
32
- * Steps:
33
- * (1) (a) Validate and decode the jwt, (b) check for an org_id
34
- * (2) Resolve the subscription_plan
35
- * (3) Check for an already-active same subscription within the org
36
- * (4) Check if the current org membership count <= subscription_plan's limit
37
- * (5) Get the customer_id
38
- * (6) Create the checkout session url
32
+ * Create a checkout session for a subscription
39
33
  *
40
34
  * @param {Chrt.CreateCheckoutSessionReq2} request
41
35
  * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
@@ -50,6 +44,8 @@ export declare class Payments {
50
44
  createCheckoutSession(request: Chrt.CreateCheckoutSessionReq2, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateCheckoutSessionRes2>;
51
45
  private __createCheckoutSession;
52
46
  /**
47
+ * Synchronizes subscription data from Stripe to the authentication service for the current user.
48
+ *
53
49
  * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
54
50
  *
55
51
  * @example
@@ -20,13 +20,7 @@ export class Payments {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Steps:
24
- * (1) (a) Validate and decode the jwt, (b) check for an org_id
25
- * (2) Resolve the subscription_plan
26
- * (3) Check for an already-active same subscription within the org
27
- * (4) Check if the current org membership count <= subscription_plan's limit
28
- * (5) Get the customer_id
29
- * (6) Create the checkout session url
23
+ * Create a checkout session for a subscription
30
24
  *
31
25
  * @param {Chrt.CreateCheckoutSessionReq2} request
32
26
  * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
@@ -88,6 +82,8 @@ export class Payments {
88
82
  });
89
83
  }
90
84
  /**
85
+ * Synchronizes subscription data from Stripe to the authentication service for the current user.
86
+ *
91
87
  * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
92
88
  *
93
89
  * @example
@@ -28,31 +28,35 @@ export declare class Root {
28
28
  protected readonly _options: Root.Options;
29
29
  constructor(_options?: Root.Options);
30
30
  /**
31
- * Returns a greeting message
31
+ * Test endpoint for authenticated requests that requires valid authentication tokens.
32
32
  *
33
33
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
34
34
  *
35
35
  * @example
36
- * await client.root.pingUnauthd()
36
+ * await client.root.pingAuthd()
37
37
  */
38
- pingUnauthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
39
- private __pingUnauthd;
38
+ pingAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
39
+ private __pingAuthd;
40
40
  /**
41
+ * Test endpoint for optionally authenticated requests that works with or without authentication.
42
+ *
41
43
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
42
44
  *
43
45
  * @example
44
- * await client.root.pingAuthd()
46
+ * await client.root.pingOptionallyAuthd()
45
47
  */
46
- pingAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
47
- private __pingAuthd;
48
+ pingOptionallyAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
49
+ private __pingOptionallyAuthd;
48
50
  /**
51
+ * Returns a greeting message
52
+ *
49
53
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
50
54
  *
51
55
  * @example
52
- * await client.root.failure()
56
+ * await client.root.pingUnauthd()
53
57
  */
54
- failure(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
55
- private __failure;
58
+ pingUnauthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
59
+ private __pingUnauthd;
56
60
  /**
57
61
  * Used for monitoring system health
58
62
  *
@@ -64,12 +68,14 @@ export declare class Root {
64
68
  health(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
65
69
  private __health;
66
70
  /**
71
+ * Test endpoint that intentionally fails for error handling validation and monitoring purposes.
72
+ *
67
73
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
68
74
  *
69
75
  * @example
70
- * await client.root.pingOptionallyAuthd()
76
+ * await client.root.failure()
71
77
  */
72
- pingOptionallyAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
73
- private __pingOptionallyAuthd;
78
+ failure(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
79
+ private __failure;
74
80
  protected _getAuthorizationHeader(): Promise<string | undefined>;
75
81
  }