@chrt-inc/typescript-sdk 1.676.0 → 1.685.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.ts +0 -1
  3. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.js +0 -1
  4. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.ts +0 -1
  5. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +0 -1
  6. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +0 -1
  7. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.ts +0 -1
  8. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +0 -1
  9. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +0 -1
  10. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.ts +0 -1
  11. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +0 -2
  12. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +0 -2
  13. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +0 -1
  14. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +0 -1
  15. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +0 -2
  16. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +0 -2
  17. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +0 -1
  18. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +0 -1
  19. package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +0 -6
  20. package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +0 -6
  21. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +0 -2
  22. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +0 -2
  23. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +0 -2
  24. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +0 -2
  25. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +0 -2
  26. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +0 -2
  27. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +1 -2
  28. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +1 -2
  29. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +1 -2
  30. package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -1
  31. package/dist/cjs/api/resources/orgs/client/Client.js +13 -9
  32. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +0 -1
  33. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/Client.d.ts +76 -0
  34. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/Client.js +248 -0
  35. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/index.d.ts +2 -0
  36. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/index.js +17 -0
  37. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.ts +17 -0
  38. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/index.js +2 -0
  40. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/index.d.ts +2 -0
  41. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/index.js +18 -0
  42. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/index.d.ts +2 -0
  43. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/index.js +41 -0
  44. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +83 -0
  45. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.js +311 -0
  46. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.d.ts +2 -0
  47. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.js +17 -0
  48. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.d.ts +13 -0
  49. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.js +5 -0
  50. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.js +2 -0
  52. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.js +17 -0
  54. package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
  55. package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
  56. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +3 -1
  57. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +5 -1
  58. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +0 -1
  59. package/dist/cjs/api/resources/shipping/resources/drivers/index.d.ts +1 -0
  60. package/dist/cjs/api/resources/shipping/resources/drivers/index.js +1 -0
  61. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.ts +80 -0
  62. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.js +257 -0
  63. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.js +17 -0
  65. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.ts +17 -0
  66. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.js +5 -0
  67. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.js +2 -0
  69. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.d.ts +2 -0
  70. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.js +18 -0
  71. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.d.ts +2 -0
  72. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.js +41 -0
  73. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +83 -0
  74. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.js +311 -0
  75. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.d.ts +2 -0
  76. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.js +17 -0
  77. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.d.ts +13 -0
  78. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.js +5 -0
  79. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.d.ts +1 -0
  80. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.js +2 -0
  81. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.d.ts +1 -0
  82. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.js +17 -0
  83. package/dist/cjs/api/resources/shipping/resources/drivers/resources/index.d.ts +2 -0
  84. package/dist/cjs/api/resources/shipping/resources/drivers/resources/index.js +41 -0
  85. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +0 -2
  86. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +0 -2
  87. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +0 -2
  88. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +0 -2
  89. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +0 -2
  90. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +0 -1
  91. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +0 -1
  92. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +0 -2
  93. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +0 -2
  94. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +0 -1
  95. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +0 -1
  96. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +1 -1
  97. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +1 -1
  98. package/dist/cjs/api/types/BillingLineItemS3ObjectAddedWebhookPayload.d.ts +14 -0
  99. package/dist/cjs/api/types/BillingLineItemS3ObjectAddedWebhookPayload.js +5 -0
  100. package/dist/cjs/api/types/DateTimeWindow1.d.ts +7 -0
  101. package/dist/cjs/api/types/DateTimeWindow1.js +5 -0
  102. package/dist/cjs/api/types/DriverComplianceDocument1.d.ts +15 -0
  103. package/dist/cjs/api/types/DriverComplianceDocument1.js +5 -0
  104. package/dist/cjs/api/types/DriverComplianceDocumentS3ObjectMetadata1.d.ts +19 -0
  105. package/dist/cjs/api/types/DriverComplianceDocumentS3ObjectMetadata1.js +5 -0
  106. package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.d.ts +8 -0
  107. package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.js +10 -0
  108. package/dist/cjs/api/types/ListingBidThreadActionAddedWebhookPayload.d.ts +21 -0
  109. package/dist/cjs/api/types/ListingBidThreadActionAddedWebhookPayload.js +5 -0
  110. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +8 -2
  111. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +7 -1
  112. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +7 -1
  113. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +6 -0
  114. package/dist/cjs/api/types/OperationsCaseMessageWebhookPayload.d.ts +15 -0
  115. package/dist/cjs/api/types/OperationsCaseMessageWebhookPayload.js +5 -0
  116. package/dist/cjs/api/types/OperationsCaseS3ObjectAddedWebhookPayload.d.ts +14 -0
  117. package/dist/cjs/api/types/OperationsCaseS3ObjectAddedWebhookPayload.js +5 -0
  118. package/dist/cjs/api/types/OrgComplianceDocument1.d.ts +15 -0
  119. package/dist/cjs/api/types/OrgComplianceDocument1.js +5 -0
  120. package/dist/cjs/api/types/OrgComplianceDocumentS3ObjectMetadata1.d.ts +19 -0
  121. package/dist/cjs/api/types/OrgComplianceDocumentS3ObjectMetadata1.js +5 -0
  122. package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.d.ts +8 -0
  123. package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.js +10 -0
  124. package/dist/cjs/api/types/ShippingTaskAttemptedWebhookPayload.d.ts +22 -0
  125. package/dist/cjs/api/types/ShippingTaskAttemptedWebhookPayload.js +5 -0
  126. package/dist/cjs/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.d.ts +17 -0
  127. package/dist/cjs/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.js +5 -0
  128. package/dist/cjs/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.d.ts +14 -0
  129. package/dist/cjs/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.js +5 -0
  130. package/dist/cjs/api/types/Task1.d.ts +1 -1
  131. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
  132. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -1
  133. package/dist/cjs/api/types/TimeWindow1.d.ts +2 -2
  134. package/dist/cjs/api/types/index.d.ts +14 -1
  135. package/dist/cjs/api/types/index.js +14 -1
  136. package/dist/cjs/version.d.ts +1 -1
  137. package/dist/cjs/version.js +1 -1
  138. package/dist/esm/Client.mjs +2 -2
  139. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.mts +0 -1
  140. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.mjs +0 -1
  141. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.mts +0 -1
  142. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +0 -1
  143. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +0 -1
  144. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.mts +0 -1
  145. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +0 -1
  146. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +0 -1
  147. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.mts +0 -1
  148. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +0 -2
  149. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +0 -2
  150. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +0 -1
  151. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +0 -1
  152. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +0 -2
  153. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +0 -2
  154. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +0 -1
  155. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +0 -1
  156. package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +0 -6
  157. package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +0 -6
  158. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +0 -2
  159. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +0 -2
  160. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +0 -2
  161. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +0 -2
  162. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +0 -2
  163. package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +0 -2
  164. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +1 -2
  165. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +1 -2
  166. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +1 -2
  167. package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -1
  168. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -1
  169. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +0 -1
  170. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.d.mts +76 -0
  171. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.mjs +211 -0
  172. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/index.d.mts +2 -0
  173. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/index.mjs +1 -0
  174. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.mts +17 -0
  175. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.mts +1 -0
  176. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/index.mjs +1 -0
  177. package/dist/esm/api/resources/orgs/resources/complianceDocuments/index.d.mts +2 -0
  178. package/dist/esm/api/resources/orgs/resources/complianceDocuments/index.mjs +2 -0
  179. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/index.d.mts +2 -0
  180. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/index.mjs +2 -0
  181. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +83 -0
  182. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.mjs +274 -0
  183. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.d.mts +2 -0
  184. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.mjs +1 -0
  185. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.d.mts +13 -0
  186. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.mjs +4 -0
  187. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.d.mts +1 -0
  188. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.mjs +1 -0
  189. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.d.mts +1 -0
  190. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.mjs +1 -0
  191. package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
  192. package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
  193. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +3 -1
  194. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +5 -1
  195. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +0 -1
  196. package/dist/esm/api/resources/shipping/resources/drivers/index.d.mts +1 -0
  197. package/dist/esm/api/resources/shipping/resources/drivers/index.mjs +1 -0
  198. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.mts +80 -0
  199. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.mjs +220 -0
  200. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.d.mts +2 -0
  201. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.mjs +1 -0
  202. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.mts +17 -0
  203. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.mjs +4 -0
  204. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.mts +1 -0
  205. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.mjs +1 -0
  206. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.d.mts +2 -0
  207. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.mjs +2 -0
  208. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.d.mts +2 -0
  209. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.mjs +2 -0
  210. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +83 -0
  211. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.mjs +274 -0
  212. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.d.mts +2 -0
  213. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.mjs +1 -0
  214. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.d.mts +13 -0
  215. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.mjs +4 -0
  216. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.d.mts +1 -0
  217. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.mjs +1 -0
  218. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.d.mts +1 -0
  219. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.mjs +1 -0
  220. package/dist/esm/api/resources/shipping/resources/drivers/resources/index.d.mts +2 -0
  221. package/dist/esm/api/resources/shipping/resources/drivers/resources/index.mjs +2 -0
  222. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +0 -2
  223. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +0 -2
  224. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +0 -2
  225. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +0 -2
  226. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +0 -2
  227. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +0 -1
  228. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +0 -1
  229. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +0 -2
  230. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +0 -2
  231. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +0 -1
  232. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +0 -1
  233. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +1 -1
  234. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +1 -1
  235. package/dist/esm/api/types/BillingLineItemS3ObjectAddedWebhookPayload.d.mts +14 -0
  236. package/dist/esm/api/types/BillingLineItemS3ObjectAddedWebhookPayload.mjs +4 -0
  237. package/dist/esm/api/types/DateTimeWindow1.d.mts +7 -0
  238. package/dist/esm/api/types/DateTimeWindow1.mjs +4 -0
  239. package/dist/esm/api/types/DriverComplianceDocument1.d.mts +15 -0
  240. package/dist/esm/api/types/DriverComplianceDocument1.mjs +4 -0
  241. package/dist/esm/api/types/DriverComplianceDocumentS3ObjectMetadata1.d.mts +19 -0
  242. package/dist/esm/api/types/DriverComplianceDocumentS3ObjectMetadata1.mjs +4 -0
  243. package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.d.mts +8 -0
  244. package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.mjs +7 -0
  245. package/dist/esm/api/types/ListingBidThreadActionAddedWebhookPayload.d.mts +21 -0
  246. package/dist/esm/api/types/ListingBidThreadActionAddedWebhookPayload.mjs +4 -0
  247. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +8 -2
  248. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +7 -1
  249. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +7 -1
  250. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +6 -0
  251. package/dist/esm/api/types/OperationsCaseMessageWebhookPayload.d.mts +15 -0
  252. package/dist/esm/api/types/OperationsCaseMessageWebhookPayload.mjs +4 -0
  253. package/dist/esm/api/types/OperationsCaseS3ObjectAddedWebhookPayload.d.mts +14 -0
  254. package/dist/esm/api/types/OperationsCaseS3ObjectAddedWebhookPayload.mjs +4 -0
  255. package/dist/esm/api/types/OrgComplianceDocument1.d.mts +15 -0
  256. package/dist/esm/api/types/OrgComplianceDocument1.mjs +4 -0
  257. package/dist/esm/api/types/OrgComplianceDocumentS3ObjectMetadata1.d.mts +19 -0
  258. package/dist/esm/api/types/OrgComplianceDocumentS3ObjectMetadata1.mjs +4 -0
  259. package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.d.mts +8 -0
  260. package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.mjs +7 -0
  261. package/dist/esm/api/types/ShippingTaskAttemptedWebhookPayload.d.mts +22 -0
  262. package/dist/esm/api/types/ShippingTaskAttemptedWebhookPayload.mjs +4 -0
  263. package/dist/esm/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.d.mts +17 -0
  264. package/dist/esm/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.mjs +4 -0
  265. package/dist/esm/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.d.mts +14 -0
  266. package/dist/esm/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.mjs +4 -0
  267. package/dist/esm/api/types/Task1.d.mts +1 -1
  268. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
  269. package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -1
  270. package/dist/esm/api/types/TimeWindow1.d.mts +2 -2
  271. package/dist/esm/api/types/index.d.mts +14 -1
  272. package/dist/esm/api/types/index.mjs +14 -1
  273. package/dist/esm/version.d.mts +1 -1
  274. package/dist/esm/version.mjs +1 -1
  275. package/package.json +1 -1
  276. package/reference.md +1487 -593
  277. package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.ts +0 -14
  278. package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.mts +0 -14
  279. /package/dist/cjs/api/{types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.js → resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.js} +0 -0
  280. /package/dist/esm/api/{types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.mjs → resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.mjs} +0 -0
@@ -0,0 +1,211 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../errors/index.mjs";
18
+ import { S3Object } from "../resources/s3Object/client/Client.mjs";
19
+ export class ComplianceDocuments {
20
+ constructor(_options = {}) {
21
+ this._options = _options;
22
+ }
23
+ get s3Object() {
24
+ var _a;
25
+ return ((_a = this._s3Object) !== null && _a !== void 0 ? _a : (this._s3Object = new S3Object(this._options)));
26
+ }
27
+ /**
28
+ * Lists compliance documents for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[OrgComplianceDocument1])
29
+ *
30
+ * @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @example
33
+ * await client.orgs.complianceDocuments.listV1()
34
+ */
35
+ listV1(requestOptions) {
36
+ return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
37
+ }
38
+ __listV1(requestOptions) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ var _a, _b, _c, _d;
41
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
42
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
43
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/compliance_documents/list/v1"),
44
+ method: "GET",
45
+ headers: _headers,
46
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
47
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
48
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
49
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
50
+ });
51
+ if (_response.ok) {
52
+ return { data: _response.body, rawResponse: _response.rawResponse };
53
+ }
54
+ if (_response.error.reason === "status-code") {
55
+ throw new errors.ChrtError({
56
+ statusCode: _response.error.statusCode,
57
+ body: _response.error.body,
58
+ rawResponse: _response.rawResponse,
59
+ });
60
+ }
61
+ switch (_response.error.reason) {
62
+ case "non-json":
63
+ throw new errors.ChrtError({
64
+ statusCode: _response.error.statusCode,
65
+ body: _response.error.rawBody,
66
+ rawResponse: _response.rawResponse,
67
+ });
68
+ case "timeout":
69
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/compliance_documents/list/v1.");
70
+ case "unknown":
71
+ throw new errors.ChrtError({
72
+ message: _response.error.errorMessage,
73
+ rawResponse: _response.rawResponse,
74
+ });
75
+ }
76
+ });
77
+ }
78
+ /**
79
+ * Retrieves one compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrgComplianceDocument1)
80
+ *
81
+ * @param {string} orgComplianceDocumentId
82
+ * @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
83
+ *
84
+ * @throws {@link Chrt.UnprocessableEntityError}
85
+ *
86
+ * @example
87
+ * await client.orgs.complianceDocuments.getV1("org_compliance_document_id")
88
+ */
89
+ getV1(orgComplianceDocumentId, requestOptions) {
90
+ return core.HttpResponsePromise.fromPromise(this.__getV1(orgComplianceDocumentId, requestOptions));
91
+ }
92
+ __getV1(orgComplianceDocumentId, requestOptions) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ var _a, _b, _c, _d;
95
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
96
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
97
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/compliance_documents/v1/${encodeURIComponent(orgComplianceDocumentId)}`),
98
+ method: "GET",
99
+ headers: _headers,
100
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
101
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
102
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
103
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
+ });
105
+ if (_response.ok) {
106
+ return { data: _response.body, rawResponse: _response.rawResponse };
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ switch (_response.error.statusCode) {
110
+ case 422:
111
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
112
+ default:
113
+ throw new errors.ChrtError({
114
+ statusCode: _response.error.statusCode,
115
+ body: _response.error.body,
116
+ rawResponse: _response.rawResponse,
117
+ });
118
+ }
119
+ }
120
+ switch (_response.error.reason) {
121
+ case "non-json":
122
+ throw new errors.ChrtError({
123
+ statusCode: _response.error.statusCode,
124
+ body: _response.error.rawBody,
125
+ rawResponse: _response.rawResponse,
126
+ });
127
+ case "timeout":
128
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/compliance_documents/v1/{org_compliance_document_id}.");
129
+ case "unknown":
130
+ throw new errors.ChrtError({
131
+ message: _response.error.errorMessage,
132
+ rawResponse: _response.rawResponse,
133
+ });
134
+ }
135
+ });
136
+ }
137
+ /**
138
+ * Creates a compliance document record for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientCreate1) -> (OrgComplianceDocument1)
139
+ *
140
+ * @param {Chrt.orgs.OrgComplianceDocumentClientCreate1} request
141
+ * @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
142
+ *
143
+ * @throws {@link Chrt.UnprocessableEntityError}
144
+ *
145
+ * @example
146
+ * await client.orgs.complianceDocuments.createV1({
147
+ * schema_version: 1,
148
+ * document_type: "security_threat_assessment"
149
+ * })
150
+ */
151
+ createV1(request, requestOptions) {
152
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
153
+ }
154
+ __createV1(request, requestOptions) {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ var _a, _b, _c, _d;
157
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
158
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
159
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/compliance_documents/create/v1"),
160
+ method: "POST",
161
+ headers: _headers,
162
+ contentType: "application/json",
163
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
164
+ requestType: "json",
165
+ body: request,
166
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
167
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
168
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
169
+ });
170
+ if (_response.ok) {
171
+ return { data: _response.body, rawResponse: _response.rawResponse };
172
+ }
173
+ if (_response.error.reason === "status-code") {
174
+ switch (_response.error.statusCode) {
175
+ case 422:
176
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
177
+ default:
178
+ throw new errors.ChrtError({
179
+ statusCode: _response.error.statusCode,
180
+ body: _response.error.body,
181
+ rawResponse: _response.rawResponse,
182
+ });
183
+ }
184
+ }
185
+ switch (_response.error.reason) {
186
+ case "non-json":
187
+ throw new errors.ChrtError({
188
+ statusCode: _response.error.statusCode,
189
+ body: _response.error.rawBody,
190
+ rawResponse: _response.rawResponse,
191
+ });
192
+ case "timeout":
193
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/compliance_documents/create/v1.");
194
+ case "unknown":
195
+ throw new errors.ChrtError({
196
+ message: _response.error.errorMessage,
197
+ rawResponse: _response.rawResponse,
198
+ });
199
+ }
200
+ });
201
+ }
202
+ _getAuthorizationHeader() {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ const bearer = yield core.Supplier.get(this._options.token);
205
+ if (bearer != null) {
206
+ return `Bearer ${bearer}`;
207
+ }
208
+ return undefined;
209
+ });
210
+ }
211
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * schema_version: 1,
9
+ * document_type: "security_threat_assessment"
10
+ * }
11
+ */
12
+ export interface OrgComplianceDocumentClientCreate1 {
13
+ schema_version: number;
14
+ document_type: Chrt.OrgComplianceDocumentTypeEnum1;
15
+ valid_from?: string | null;
16
+ valid_until?: string | null;
17
+ }
@@ -0,0 +1 @@
1
+ export { type OrgComplianceDocumentClientCreate1 } from "./OrgComplianceDocumentClientCreate1.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as s3Object from "./s3Object/index.mjs";
2
+ export * from "./s3Object/client/requests/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as s3Object from "./s3Object/index.mjs";
2
+ export * from "./s3Object/client/requests/index.mjs";
@@ -0,0 +1,83 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../../../index.mjs";
7
+ export declare namespace S3Object {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class S3Object {
31
+ protected readonly _options: S3Object.Options;
32
+ constructor(_options?: S3Object.Options);
33
+ /**
34
+ * Retrieves metadata for an organization compliance document S3 object. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (OrgComplianceDocumentS3ObjectMetadata1)
35
+ *
36
+ * @param {string} orgComplianceDocumentS3ObjectMetadataId
37
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.orgs.complianceDocuments.s3Object.getS3ObjectMetadataV1("org_compliance_document_s3_object_metadata_id")
43
+ */
44
+ getS3ObjectMetadataV1(orgComplianceDocumentS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<Chrt.OrgComplianceDocumentS3ObjectMetadata1>;
45
+ private __getS3ObjectMetadataV1;
46
+ /**
47
+ * Streams an organization compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)
48
+ * @throws {@link Chrt.UnprocessableEntityError}
49
+ */
50
+ getV1(orgComplianceDocumentS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
+ private __getV1;
52
+ /**
53
+ * Uploads a file to an organization compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (bool)
54
+ *
55
+ * @param {string} orgComplianceDocumentId
56
+ * @param {Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost} request
57
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
58
+ *
59
+ * @throws {@link Chrt.UnprocessableEntityError}
60
+ *
61
+ * @example
62
+ * import { createReadStream } from "fs";
63
+ * await client.orgs.complianceDocuments.s3Object.addV1("org_compliance_document_id", {
64
+ * file: fs.createReadStream("/path/to/your/file")
65
+ * })
66
+ */
67
+ addV1(orgComplianceDocumentId: string, request: Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
68
+ private __addV1;
69
+ /**
70
+ * Deletes an organization compliance document S3 object and metadata. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (bool)
71
+ *
72
+ * @param {string} orgComplianceDocumentS3ObjectMetadataId
73
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link Chrt.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.orgs.complianceDocuments.s3Object.deleteV1("org_compliance_document_s3_object_metadata_id")
79
+ */
80
+ deleteV1(orgComplianceDocumentS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
81
+ private __deleteV1;
82
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
83
+ }
@@ -0,0 +1,274 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../../../errors/index.mjs";
18
+ export class S3Object {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Retrieves metadata for an organization compliance document S3 object. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (OrgComplianceDocumentS3ObjectMetadata1)
24
+ *
25
+ * @param {string} orgComplianceDocumentS3ObjectMetadataId
26
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.orgs.complianceDocuments.s3Object.getS3ObjectMetadataV1("org_compliance_document_s3_object_metadata_id")
32
+ */
33
+ getS3ObjectMetadataV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
34
+ return core.HttpResponsePromise.fromPromise(this.__getS3ObjectMetadataV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions));
35
+ }
36
+ __getS3ObjectMetadataV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ var _a, _b, _c, _d;
39
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
40
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
41
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/compliance_documents/s3_object/s3_object_metadata/v1/${encodeURIComponent(orgComplianceDocumentS3ObjectMetadataId)}`),
42
+ method: "GET",
43
+ headers: _headers,
44
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
45
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
46
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
47
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
48
+ });
49
+ if (_response.ok) {
50
+ return {
51
+ data: _response.body,
52
+ rawResponse: _response.rawResponse,
53
+ };
54
+ }
55
+ if (_response.error.reason === "status-code") {
56
+ switch (_response.error.statusCode) {
57
+ case 422:
58
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
59
+ default:
60
+ throw new errors.ChrtError({
61
+ statusCode: _response.error.statusCode,
62
+ body: _response.error.body,
63
+ rawResponse: _response.rawResponse,
64
+ });
65
+ }
66
+ }
67
+ switch (_response.error.reason) {
68
+ case "non-json":
69
+ throw new errors.ChrtError({
70
+ statusCode: _response.error.statusCode,
71
+ body: _response.error.rawBody,
72
+ rawResponse: _response.rawResponse,
73
+ });
74
+ case "timeout":
75
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/compliance_documents/s3_object/s3_object_metadata/v1/{org_compliance_document_s3_object_metadata_id}.");
76
+ case "unknown":
77
+ throw new errors.ChrtError({
78
+ message: _response.error.errorMessage,
79
+ rawResponse: _response.rawResponse,
80
+ });
81
+ }
82
+ });
83
+ }
84
+ /**
85
+ * Streams an organization compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)
86
+ * @throws {@link Chrt.UnprocessableEntityError}
87
+ */
88
+ getV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
89
+ return core.HttpResponsePromise.fromPromise(this.__getV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions));
90
+ }
91
+ __getV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ var _a, _b, _c, _d;
94
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
95
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
96
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/compliance_documents/s3_object/v1/${encodeURIComponent(orgComplianceDocumentS3ObjectMetadataId)}`),
97
+ method: "GET",
98
+ headers: _headers,
99
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
100
+ responseType: "binary-response",
101
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
102
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
103
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
+ });
105
+ if (_response.ok) {
106
+ return { data: _response.body, rawResponse: _response.rawResponse };
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ switch (_response.error.statusCode) {
110
+ case 422:
111
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
112
+ default:
113
+ throw new errors.ChrtError({
114
+ statusCode: _response.error.statusCode,
115
+ body: _response.error.body,
116
+ rawResponse: _response.rawResponse,
117
+ });
118
+ }
119
+ }
120
+ switch (_response.error.reason) {
121
+ case "non-json":
122
+ throw new errors.ChrtError({
123
+ statusCode: _response.error.statusCode,
124
+ body: _response.error.rawBody,
125
+ rawResponse: _response.rawResponse,
126
+ });
127
+ case "timeout":
128
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/compliance_documents/s3_object/v1/{org_compliance_document_s3_object_metadata_id}.");
129
+ case "unknown":
130
+ throw new errors.ChrtError({
131
+ message: _response.error.errorMessage,
132
+ rawResponse: _response.rawResponse,
133
+ });
134
+ }
135
+ });
136
+ }
137
+ /**
138
+ * Uploads a file to an organization compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (bool)
139
+ *
140
+ * @param {string} orgComplianceDocumentId
141
+ * @param {Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost} request
142
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
143
+ *
144
+ * @throws {@link Chrt.UnprocessableEntityError}
145
+ *
146
+ * @example
147
+ * import { createReadStream } from "fs";
148
+ * await client.orgs.complianceDocuments.s3Object.addV1("org_compliance_document_id", {
149
+ * file: fs.createReadStream("/path/to/your/file")
150
+ * })
151
+ */
152
+ addV1(orgComplianceDocumentId, request, requestOptions) {
153
+ return core.HttpResponsePromise.fromPromise(this.__addV1(orgComplianceDocumentId, request, requestOptions));
154
+ }
155
+ __addV1(orgComplianceDocumentId, request, requestOptions) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ var _a, _b, _c, _d;
158
+ const _request = yield core.newFormData();
159
+ yield _request.appendFile("file", request.file);
160
+ const _maybeEncodedRequest = yield _request.getRequest();
161
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
162
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
163
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/compliance_documents/s3_object/add/v1/${encodeURIComponent(orgComplianceDocumentId)}`),
164
+ method: "POST",
165
+ headers: _headers,
166
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
167
+ requestType: "file",
168
+ duplex: _maybeEncodedRequest.duplex,
169
+ body: _maybeEncodedRequest.body,
170
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
171
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
172
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
173
+ });
174
+ if (_response.ok) {
175
+ return { data: _response.body, rawResponse: _response.rawResponse };
176
+ }
177
+ if (_response.error.reason === "status-code") {
178
+ switch (_response.error.statusCode) {
179
+ case 422:
180
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
181
+ default:
182
+ throw new errors.ChrtError({
183
+ statusCode: _response.error.statusCode,
184
+ body: _response.error.body,
185
+ rawResponse: _response.rawResponse,
186
+ });
187
+ }
188
+ }
189
+ switch (_response.error.reason) {
190
+ case "non-json":
191
+ throw new errors.ChrtError({
192
+ statusCode: _response.error.statusCode,
193
+ body: _response.error.rawBody,
194
+ rawResponse: _response.rawResponse,
195
+ });
196
+ case "timeout":
197
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/compliance_documents/s3_object/add/v1/{org_compliance_document_id}.");
198
+ case "unknown":
199
+ throw new errors.ChrtError({
200
+ message: _response.error.errorMessage,
201
+ rawResponse: _response.rawResponse,
202
+ });
203
+ }
204
+ });
205
+ }
206
+ /**
207
+ * Deletes an organization compliance document S3 object and metadata. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (bool)
208
+ *
209
+ * @param {string} orgComplianceDocumentS3ObjectMetadataId
210
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
211
+ *
212
+ * @throws {@link Chrt.UnprocessableEntityError}
213
+ *
214
+ * @example
215
+ * await client.orgs.complianceDocuments.s3Object.deleteV1("org_compliance_document_s3_object_metadata_id")
216
+ */
217
+ deleteV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
218
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions));
219
+ }
220
+ __deleteV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
221
+ return __awaiter(this, void 0, void 0, function* () {
222
+ var _a, _b, _c, _d;
223
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
224
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
225
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/compliance_documents/s3_object/delete/v1/${encodeURIComponent(orgComplianceDocumentS3ObjectMetadataId)}`),
226
+ method: "DELETE",
227
+ headers: _headers,
228
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
229
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
230
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
231
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
232
+ });
233
+ if (_response.ok) {
234
+ return { data: _response.body, rawResponse: _response.rawResponse };
235
+ }
236
+ if (_response.error.reason === "status-code") {
237
+ switch (_response.error.statusCode) {
238
+ case 422:
239
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
240
+ default:
241
+ throw new errors.ChrtError({
242
+ statusCode: _response.error.statusCode,
243
+ body: _response.error.body,
244
+ rawResponse: _response.rawResponse,
245
+ });
246
+ }
247
+ }
248
+ switch (_response.error.reason) {
249
+ case "non-json":
250
+ throw new errors.ChrtError({
251
+ statusCode: _response.error.statusCode,
252
+ body: _response.error.rawBody,
253
+ rawResponse: _response.rawResponse,
254
+ });
255
+ case "timeout":
256
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /orgs/compliance_documents/s3_object/delete/v1/{org_compliance_document_s3_object_metadata_id}.");
257
+ case "unknown":
258
+ throw new errors.ChrtError({
259
+ message: _response.error.errorMessage,
260
+ rawResponse: _response.rawResponse,
261
+ });
262
+ }
263
+ });
264
+ }
265
+ _getAuthorizationHeader() {
266
+ return __awaiter(this, void 0, void 0, function* () {
267
+ const bearer = yield core.Supplier.get(this._options.token);
268
+ if (bearer != null) {
269
+ return `Bearer ${bearer}`;
270
+ }
271
+ return undefined;
272
+ });
273
+ }
274
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../../../../../core/index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * file: fs.createReadStream("/path/to/your/file")
9
+ * }
10
+ */
11
+ export interface BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost {
12
+ file: core.file.Uploadable.FileLike;
13
+ }
@@ -0,0 +1 @@
1
+ export { type BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost } from "./BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.mjs";