@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,248 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.ComplianceDocuments = void 0;
49
+ const environments = __importStar(require("../../../../../../environments.js"));
50
+ const core = __importStar(require("../../../../../../core/index.js"));
51
+ const Chrt = __importStar(require("../../../../../index.js"));
52
+ const headers_js_1 = require("../../../../../../core/headers.js");
53
+ const errors = __importStar(require("../../../../../../errors/index.js"));
54
+ const Client_js_1 = require("../resources/s3Object/client/Client.js");
55
+ class ComplianceDocuments {
56
+ constructor(_options = {}) {
57
+ this._options = _options;
58
+ }
59
+ get s3Object() {
60
+ var _a;
61
+ return ((_a = this._s3Object) !== null && _a !== void 0 ? _a : (this._s3Object = new Client_js_1.S3Object(this._options)));
62
+ }
63
+ /**
64
+ * Lists compliance documents for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[OrgComplianceDocument1])
65
+ *
66
+ * @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @example
69
+ * await client.orgs.complianceDocuments.listV1()
70
+ */
71
+ listV1(requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
73
+ }
74
+ __listV1(requestOptions) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ var _a, _b, _c, _d;
77
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
78
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
79
+ 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"),
80
+ method: "GET",
81
+ headers: _headers,
82
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
83
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
84
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
85
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
+ });
87
+ if (_response.ok) {
88
+ return { data: _response.body, rawResponse: _response.rawResponse };
89
+ }
90
+ if (_response.error.reason === "status-code") {
91
+ throw new errors.ChrtError({
92
+ statusCode: _response.error.statusCode,
93
+ body: _response.error.body,
94
+ rawResponse: _response.rawResponse,
95
+ });
96
+ }
97
+ switch (_response.error.reason) {
98
+ case "non-json":
99
+ throw new errors.ChrtError({
100
+ statusCode: _response.error.statusCode,
101
+ body: _response.error.rawBody,
102
+ rawResponse: _response.rawResponse,
103
+ });
104
+ case "timeout":
105
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/compliance_documents/list/v1.");
106
+ case "unknown":
107
+ throw new errors.ChrtError({
108
+ message: _response.error.errorMessage,
109
+ rawResponse: _response.rawResponse,
110
+ });
111
+ }
112
+ });
113
+ }
114
+ /**
115
+ * Retrieves one compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrgComplianceDocument1)
116
+ *
117
+ * @param {string} orgComplianceDocumentId
118
+ * @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
119
+ *
120
+ * @throws {@link Chrt.UnprocessableEntityError}
121
+ *
122
+ * @example
123
+ * await client.orgs.complianceDocuments.getV1("org_compliance_document_id")
124
+ */
125
+ getV1(orgComplianceDocumentId, requestOptions) {
126
+ return core.HttpResponsePromise.fromPromise(this.__getV1(orgComplianceDocumentId, requestOptions));
127
+ }
128
+ __getV1(orgComplianceDocumentId, requestOptions) {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ var _a, _b, _c, _d;
131
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
132
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
133
+ 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)}`),
134
+ method: "GET",
135
+ headers: _headers,
136
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
137
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
138
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
139
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
140
+ });
141
+ if (_response.ok) {
142
+ return { data: _response.body, rawResponse: _response.rawResponse };
143
+ }
144
+ if (_response.error.reason === "status-code") {
145
+ switch (_response.error.statusCode) {
146
+ case 422:
147
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
148
+ default:
149
+ throw new errors.ChrtError({
150
+ statusCode: _response.error.statusCode,
151
+ body: _response.error.body,
152
+ rawResponse: _response.rawResponse,
153
+ });
154
+ }
155
+ }
156
+ switch (_response.error.reason) {
157
+ case "non-json":
158
+ throw new errors.ChrtError({
159
+ statusCode: _response.error.statusCode,
160
+ body: _response.error.rawBody,
161
+ rawResponse: _response.rawResponse,
162
+ });
163
+ case "timeout":
164
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/compliance_documents/v1/{org_compliance_document_id}.");
165
+ case "unknown":
166
+ throw new errors.ChrtError({
167
+ message: _response.error.errorMessage,
168
+ rawResponse: _response.rawResponse,
169
+ });
170
+ }
171
+ });
172
+ }
173
+ /**
174
+ * Creates a compliance document record for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientCreate1) -> (OrgComplianceDocument1)
175
+ *
176
+ * @param {Chrt.orgs.OrgComplianceDocumentClientCreate1} request
177
+ * @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
178
+ *
179
+ * @throws {@link Chrt.UnprocessableEntityError}
180
+ *
181
+ * @example
182
+ * await client.orgs.complianceDocuments.createV1({
183
+ * schema_version: 1,
184
+ * document_type: "security_threat_assessment"
185
+ * })
186
+ */
187
+ createV1(request, requestOptions) {
188
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
189
+ }
190
+ __createV1(request, requestOptions) {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ var _a, _b, _c, _d;
193
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
194
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
195
+ 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"),
196
+ method: "POST",
197
+ headers: _headers,
198
+ contentType: "application/json",
199
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
200
+ requestType: "json",
201
+ body: request,
202
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
203
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
204
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
205
+ });
206
+ if (_response.ok) {
207
+ return { data: _response.body, rawResponse: _response.rawResponse };
208
+ }
209
+ if (_response.error.reason === "status-code") {
210
+ switch (_response.error.statusCode) {
211
+ case 422:
212
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
213
+ default:
214
+ throw new errors.ChrtError({
215
+ statusCode: _response.error.statusCode,
216
+ body: _response.error.body,
217
+ rawResponse: _response.rawResponse,
218
+ });
219
+ }
220
+ }
221
+ switch (_response.error.reason) {
222
+ case "non-json":
223
+ throw new errors.ChrtError({
224
+ statusCode: _response.error.statusCode,
225
+ body: _response.error.rawBody,
226
+ rawResponse: _response.rawResponse,
227
+ });
228
+ case "timeout":
229
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/compliance_documents/create/v1.");
230
+ case "unknown":
231
+ throw new errors.ChrtError({
232
+ message: _response.error.errorMessage,
233
+ rawResponse: _response.rawResponse,
234
+ });
235
+ }
236
+ });
237
+ }
238
+ _getAuthorizationHeader() {
239
+ return __awaiter(this, void 0, void 0, function* () {
240
+ const bearer = yield core.Supplier.get(this._options.token);
241
+ if (bearer != null) {
242
+ return `Bearer ${bearer}`;
243
+ }
244
+ return undefined;
245
+ });
246
+ }
247
+ }
248
+ exports.ComplianceDocuments = ComplianceDocuments;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.js";
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.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * as s3Object from "./s3Object/index.js";
2
+ export * from "./s3Object/client/requests/index.js";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.s3Object = void 0;
40
+ exports.s3Object = __importStar(require("./s3Object/index.js"));
41
+ __exportStar(require("./s3Object/client/requests/index.js"), exports);
@@ -0,0 +1,83 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.js";
5
+ import * as core from "../../../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../../../index.js";
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
+ }