@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
@@ -56,21 +56,21 @@ class Orgs {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Get the handle for the org from JWT
59
+ * Retrieves basic organization information from the authentication service.
60
60
  *
61
61
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
63
63
  * @example
64
- * await client.orgs.getHandle()
64
+ * await client.orgs.getInfo()
65
65
  */
66
- getHandle(requestOptions) {
67
- return core.HttpResponsePromise.fromPromise(this.__getHandle(requestOptions));
66
+ getInfo(requestOptions) {
67
+ return core.HttpResponsePromise.fromPromise(this.__getInfo(requestOptions));
68
68
  }
69
- __getHandle(requestOptions) {
69
+ __getInfo(requestOptions) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
71
  var _a, _b, _c, _d;
72
72
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
- 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"),
73
+ 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"),
74
74
  method: "GET",
75
75
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -95,7 +95,7 @@ class Orgs {
95
95
  rawResponse: _response.rawResponse,
96
96
  });
97
97
  case "timeout":
98
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle.");
98
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/info.");
99
99
  case "unknown":
100
100
  throw new errors.ChrtError({
101
101
  message: _response.error.errorMessage,
@@ -105,24 +105,21 @@ class Orgs {
105
105
  });
106
106
  }
107
107
  /**
108
- * Check if a handle is available, returns true if it is, false if it is not
108
+ * Lists all members of the authenticated organization with their roles and details.
109
109
  *
110
- * @param {string} handle
111
110
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
112
111
  *
113
- * @throws {@link Chrt.UnprocessableEntityError}
114
- *
115
112
  * @example
116
- * await client.orgs.getHandleAvailability("handle")
113
+ * await client.orgs.listMembers()
117
114
  */
118
- getHandleAvailability(handle, requestOptions) {
119
- return core.HttpResponsePromise.fromPromise(this.__getHandleAvailability(handle, requestOptions));
115
+ listMembers(requestOptions) {
116
+ return core.HttpResponsePromise.fromPromise(this.__listMembers(requestOptions));
120
117
  }
121
- __getHandleAvailability(handle, requestOptions) {
118
+ __listMembers(requestOptions) {
122
119
  return __awaiter(this, void 0, void 0, function* () {
123
120
  var _a, _b, _c, _d;
124
121
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
125
- 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)}`),
122
+ 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"),
126
123
  method: "GET",
127
124
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
125
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -133,16 +130,11 @@ class Orgs {
133
130
  return { data: _response.body, rawResponse: _response.rawResponse };
134
131
  }
135
132
  if (_response.error.reason === "status-code") {
136
- switch (_response.error.statusCode) {
137
- case 422:
138
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
139
- default:
140
- throw new errors.ChrtError({
141
- statusCode: _response.error.statusCode,
142
- body: _response.error.body,
143
- rawResponse: _response.rawResponse,
144
- });
145
- }
133
+ throw new errors.ChrtError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.body,
136
+ rawResponse: _response.rawResponse,
137
+ });
146
138
  }
147
139
  switch (_response.error.reason) {
148
140
  case "non-json":
@@ -152,7 +144,7 @@ class Orgs {
152
144
  rawResponse: _response.rawResponse,
153
145
  });
154
146
  case "timeout":
155
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/availability/{handle}.");
147
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/members/list.");
156
148
  case "unknown":
157
149
  throw new errors.ChrtError({
158
150
  message: _response.error.errorMessage,
@@ -162,19 +154,21 @@ class Orgs {
162
154
  });
163
155
  }
164
156
  /**
157
+ * Retrieves public organization data for the authenticated organization.
158
+ *
165
159
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
166
160
  *
167
161
  * @example
168
- * await client.orgs.getInfo()
162
+ * await client.orgs.getPublicData()
169
163
  */
170
- getInfo(requestOptions) {
171
- return core.HttpResponsePromise.fromPromise(this.__getInfo(requestOptions));
164
+ getPublicData(requestOptions) {
165
+ return core.HttpResponsePromise.fromPromise(this.__getPublicData(requestOptions));
172
166
  }
173
- __getInfo(requestOptions) {
167
+ __getPublicData(requestOptions) {
174
168
  return __awaiter(this, void 0, void 0, function* () {
175
169
  var _a, _b, _c, _d;
176
170
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
177
- 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"),
171
+ 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"),
178
172
  method: "GET",
179
173
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -199,7 +193,7 @@ class Orgs {
199
193
  rawResponse: _response.rawResponse,
200
194
  });
201
195
  case "timeout":
202
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/info.");
196
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data.");
203
197
  case "unknown":
204
198
  throw new errors.ChrtError({
205
199
  message: _response.error.errorMessage,
@@ -209,19 +203,24 @@ class Orgs {
209
203
  });
210
204
  }
211
205
  /**
206
+ * Retrieves public organization data for a specific organization by ID.
207
+ *
208
+ * @param {string} orgId
212
209
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
213
210
  *
211
+ * @throws {@link Chrt.UnprocessableEntityError}
212
+ *
214
213
  * @example
215
- * await client.orgs.listMembers()
214
+ * await client.orgs.getPublicDataByOrgId("org_id")
216
215
  */
217
- listMembers(requestOptions) {
218
- return core.HttpResponsePromise.fromPromise(this.__listMembers(requestOptions));
216
+ getPublicDataByOrgId(orgId, requestOptions) {
217
+ return core.HttpResponsePromise.fromPromise(this.__getPublicDataByOrgId(orgId, requestOptions));
219
218
  }
220
- __listMembers(requestOptions) {
219
+ __getPublicDataByOrgId(orgId, requestOptions) {
221
220
  return __awaiter(this, void 0, void 0, function* () {
222
221
  var _a, _b, _c, _d;
223
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
224
- 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"),
223
+ 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)}`),
225
224
  method: "GET",
226
225
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
226
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -232,11 +231,16 @@ class Orgs {
232
231
  return { data: _response.body, rawResponse: _response.rawResponse };
233
232
  }
234
233
  if (_response.error.reason === "status-code") {
235
- throw new errors.ChrtError({
236
- statusCode: _response.error.statusCode,
237
- body: _response.error.body,
238
- rawResponse: _response.rawResponse,
239
- });
234
+ switch (_response.error.statusCode) {
235
+ case 422:
236
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
237
+ default:
238
+ throw new errors.ChrtError({
239
+ statusCode: _response.error.statusCode,
240
+ body: _response.error.body,
241
+ rawResponse: _response.rawResponse,
242
+ });
243
+ }
240
244
  }
241
245
  switch (_response.error.reason) {
242
246
  case "non-json":
@@ -246,7 +250,7 @@ class Orgs {
246
250
  rawResponse: _response.rawResponse,
247
251
  });
248
252
  case "timeout":
249
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/members/list.");
253
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/{org_id}.");
250
254
  case "unknown":
251
255
  throw new errors.ChrtError({
252
256
  message: _response.error.errorMessage,
@@ -256,21 +260,21 @@ class Orgs {
256
260
  });
257
261
  }
258
262
  /**
259
- * Get the org public data for the org from JWT
263
+ * Retrieves the organization handle for the authenticated organization.
260
264
  *
261
265
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
262
266
  *
263
267
  * @example
264
- * await client.orgs.getPublicData()
268
+ * await client.orgs.getHandle()
265
269
  */
266
- getPublicData(requestOptions) {
267
- return core.HttpResponsePromise.fromPromise(this.__getPublicData(requestOptions));
270
+ getHandle(requestOptions) {
271
+ return core.HttpResponsePromise.fromPromise(this.__getHandle(requestOptions));
268
272
  }
269
- __getPublicData(requestOptions) {
273
+ __getHandle(requestOptions) {
270
274
  return __awaiter(this, void 0, void 0, function* () {
271
275
  var _a, _b, _c, _d;
272
276
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
- 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"),
277
+ 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"),
274
278
  method: "GET",
275
279
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
280
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -295,7 +299,7 @@ class Orgs {
295
299
  rawResponse: _response.rawResponse,
296
300
  });
297
301
  case "timeout":
298
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data.");
302
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle.");
299
303
  case "unknown":
300
304
  throw new errors.ChrtError({
301
305
  message: _response.error.errorMessage,
@@ -305,32 +309,26 @@ class Orgs {
305
309
  });
306
310
  }
307
311
  /**
308
- * Create org public data with handle and company name
312
+ * Checks if an organization handle is available for use.
309
313
  *
310
- * @param {Chrt.CreateOrgPublicDataReq} request
314
+ * @param {string} handle
311
315
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
312
316
  *
313
317
  * @throws {@link Chrt.UnprocessableEntityError}
314
318
  *
315
319
  * @example
316
- * await client.orgs.createPublicData({
317
- * company_name: "company_name",
318
- * handle: "handle"
319
- * })
320
+ * await client.orgs.getHandleAvailability("handle")
320
321
  */
321
- createPublicData(request, requestOptions) {
322
- return core.HttpResponsePromise.fromPromise(this.__createPublicData(request, requestOptions));
322
+ getHandleAvailability(handle, requestOptions) {
323
+ return core.HttpResponsePromise.fromPromise(this.__getHandleAvailability(handle, requestOptions));
323
324
  }
324
- __createPublicData(request, requestOptions) {
325
+ __getHandleAvailability(handle, requestOptions) {
325
326
  return __awaiter(this, void 0, void 0, function* () {
326
327
  var _a, _b, _c, _d;
327
328
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
328
- 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"),
329
- method: "POST",
329
+ 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)}`),
330
+ method: "GET",
330
331
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
331
- contentType: "application/json",
332
- requestType: "json",
333
- body: request,
334
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
335
333
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
336
334
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -358,7 +356,7 @@ class Orgs {
358
356
  rawResponse: _response.rawResponse,
359
357
  });
360
358
  case "timeout":
361
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/public_data/create.");
359
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/availability/{handle}.");
362
360
  case "unknown":
363
361
  throw new errors.ChrtError({
364
362
  message: _response.error.errorMessage,
@@ -368,25 +366,28 @@ class Orgs {
368
366
  });
369
367
  }
370
368
  /**
371
- * Update handle or company_name for an org
369
+ * Creates public organization data with handle and company name for the authenticated organization.
372
370
  *
373
- * @param {Chrt.UpdateOrgPublicDataReq} request
371
+ * @param {Chrt.CreateOrgPublicDataReq} request
374
372
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
375
373
  *
376
374
  * @throws {@link Chrt.UnprocessableEntityError}
377
375
  *
378
376
  * @example
379
- * await client.orgs.updatePublicData()
377
+ * await client.orgs.createPublicData({
378
+ * handle: "handle",
379
+ * company_name: "company_name"
380
+ * })
380
381
  */
381
- updatePublicData(request = {}, requestOptions) {
382
- return core.HttpResponsePromise.fromPromise(this.__updatePublicData(request, requestOptions));
382
+ createPublicData(request, requestOptions) {
383
+ return core.HttpResponsePromise.fromPromise(this.__createPublicData(request, requestOptions));
383
384
  }
384
- __updatePublicData() {
385
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
385
+ __createPublicData(request, requestOptions) {
386
+ return __awaiter(this, void 0, void 0, function* () {
386
387
  var _a, _b, _c, _d;
387
388
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
388
- 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"),
389
- method: "PATCH",
389
+ 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"),
390
+ method: "POST",
390
391
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
391
392
  contentType: "application/json",
392
393
  requestType: "json",
@@ -418,7 +419,7 @@ class Orgs {
418
419
  rawResponse: _response.rawResponse,
419
420
  });
420
421
  case "timeout":
421
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/public_data/update.");
422
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/public_data/create.");
422
423
  case "unknown":
423
424
  throw new errors.ChrtError({
424
425
  message: _response.error.errorMessage,
@@ -428,26 +429,29 @@ class Orgs {
428
429
  });
429
430
  }
430
431
  /**
431
- * Get the org public data for the org from org_id
432
+ * Updates the organization handle or company name for the authenticated organization.
432
433
  *
433
- * @param {string} orgId
434
+ * @param {Chrt.UpdateOrgPublicDataReq} request
434
435
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
435
436
  *
436
437
  * @throws {@link Chrt.UnprocessableEntityError}
437
438
  *
438
439
  * @example
439
- * await client.orgs.getPublicDataByOrgId("org_id")
440
+ * await client.orgs.updatePublicData()
440
441
  */
441
- getPublicDataByOrgId(orgId, requestOptions) {
442
- return core.HttpResponsePromise.fromPromise(this.__getPublicDataByOrgId(orgId, requestOptions));
442
+ updatePublicData(request = {}, requestOptions) {
443
+ return core.HttpResponsePromise.fromPromise(this.__updatePublicData(request, requestOptions));
443
444
  }
444
- __getPublicDataByOrgId(orgId, requestOptions) {
445
- return __awaiter(this, void 0, void 0, function* () {
445
+ __updatePublicData() {
446
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
446
447
  var _a, _b, _c, _d;
447
448
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
448
- 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)}`),
449
- method: "GET",
449
+ 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"),
450
+ method: "PATCH",
450
451
  headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
452
+ contentType: "application/json",
453
+ requestType: "json",
454
+ body: request,
451
455
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
452
456
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
453
457
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -475,7 +479,7 @@ class Orgs {
475
479
  rawResponse: _response.rawResponse,
476
480
  });
477
481
  case "timeout":
478
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/{org_id}.");
482
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/public_data/update.");
479
483
  case "unknown":
480
484
  throw new errors.ChrtError({
481
485
  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
@@ -56,13 +56,7 @@ class Payments {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Steps:
60
- * (1) (a) Validate and decode the jwt, (b) check for an org_id
61
- * (2) Resolve the subscription_plan
62
- * (3) Check for an already-active same subscription within the org
63
- * (4) Check if the current org membership count <= subscription_plan's limit
64
- * (5) Get the customer_id
65
- * (6) Create the checkout session url
59
+ * Create a checkout session for a subscription
66
60
  *
67
61
  * @param {Chrt.CreateCheckoutSessionReq2} request
68
62
  * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
@@ -124,6 +118,8 @@ class Payments {
124
118
  });
125
119
  }
126
120
  /**
121
+ * Synchronizes subscription data from Stripe to the authentication service for the current user.
122
+ *
127
123
  * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
128
124
  *
129
125
  * @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
  }