@chrt-inc/typescript-sdk 1.681.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 (198) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/orgs/client/Client.js +13 -8
  4. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/Client.d.ts +76 -0
  5. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/Client.js +248 -0
  6. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/index.d.ts +2 -0
  7. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/index.js +17 -0
  8. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.ts +17 -0
  9. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/index.js +2 -0
  11. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/index.js +18 -0
  13. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/index.js +41 -0
  15. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +83 -0
  16. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.js +311 -0
  17. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.d.ts +2 -0
  18. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.js +17 -0
  19. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.d.ts +13 -0
  20. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.js +5 -0
  21. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.js +2 -0
  23. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.js +17 -0
  25. package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
  26. package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
  27. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +3 -0
  28. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +5 -0
  29. package/dist/cjs/api/resources/shipping/resources/drivers/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/shipping/resources/drivers/index.js +1 -0
  31. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.ts +80 -0
  32. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.js +257 -0
  33. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.js +17 -0
  35. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.ts +17 -0
  36. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.js +5 -0
  37. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.ts +1 -0
  38. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.js +2 -0
  39. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.d.ts +2 -0
  40. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.js +18 -0
  41. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.d.ts +2 -0
  42. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.js +41 -0
  43. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +83 -0
  44. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.js +311 -0
  45. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.d.ts +2 -0
  46. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.js +17 -0
  47. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.d.ts +13 -0
  48. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.js +5 -0
  49. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.js +2 -0
  51. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.js +17 -0
  53. package/dist/cjs/api/resources/shipping/resources/drivers/resources/index.d.ts +2 -0
  54. package/dist/cjs/api/resources/shipping/resources/drivers/resources/index.js +41 -0
  55. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +1 -1
  56. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +1 -1
  57. package/dist/cjs/api/types/BillingLineItemS3ObjectAddedWebhookPayload.d.ts +14 -0
  58. package/dist/cjs/api/types/BillingLineItemS3ObjectAddedWebhookPayload.js +5 -0
  59. package/dist/cjs/api/types/DateTimeWindow1.d.ts +7 -0
  60. package/dist/cjs/api/types/DateTimeWindow1.js +5 -0
  61. package/dist/cjs/api/types/DriverComplianceDocument1.d.ts +15 -0
  62. package/dist/cjs/api/types/DriverComplianceDocument1.js +5 -0
  63. package/dist/cjs/api/types/DriverComplianceDocumentS3ObjectMetadata1.d.ts +19 -0
  64. package/dist/cjs/api/types/DriverComplianceDocumentS3ObjectMetadata1.js +5 -0
  65. package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.d.ts +8 -0
  66. package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.js +10 -0
  67. package/dist/cjs/api/types/ListingBidThreadActionAddedWebhookPayload.d.ts +21 -0
  68. package/dist/cjs/api/types/ListingBidThreadActionAddedWebhookPayload.js +5 -0
  69. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +8 -2
  70. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +7 -1
  71. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +7 -1
  72. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +6 -0
  73. package/dist/cjs/api/types/OperationsCaseMessageWebhookPayload.d.ts +15 -0
  74. package/dist/cjs/api/types/OperationsCaseMessageWebhookPayload.js +5 -0
  75. package/dist/cjs/api/types/OperationsCaseS3ObjectAddedWebhookPayload.d.ts +14 -0
  76. package/dist/cjs/api/types/OperationsCaseS3ObjectAddedWebhookPayload.js +5 -0
  77. package/dist/cjs/api/types/OrgComplianceDocument1.d.ts +15 -0
  78. package/dist/cjs/api/types/OrgComplianceDocument1.js +5 -0
  79. package/dist/cjs/api/types/OrgComplianceDocumentS3ObjectMetadata1.d.ts +19 -0
  80. package/dist/cjs/api/types/OrgComplianceDocumentS3ObjectMetadata1.js +5 -0
  81. package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.d.ts +8 -0
  82. package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.js +10 -0
  83. package/dist/cjs/api/types/ShippingTaskAttemptedWebhookPayload.d.ts +22 -0
  84. package/dist/cjs/api/types/ShippingTaskAttemptedWebhookPayload.js +5 -0
  85. package/dist/cjs/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.d.ts +17 -0
  86. package/dist/cjs/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.js +5 -0
  87. package/dist/cjs/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.d.ts +14 -0
  88. package/dist/cjs/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.js +5 -0
  89. package/dist/cjs/api/types/Task1.d.ts +1 -1
  90. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
  91. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -1
  92. package/dist/cjs/api/types/TimeWindow1.d.ts +2 -2
  93. package/dist/cjs/api/types/index.d.ts +14 -1
  94. package/dist/cjs/api/types/index.js +14 -1
  95. package/dist/cjs/version.d.ts +1 -1
  96. package/dist/cjs/version.js +1 -1
  97. package/dist/esm/Client.mjs +2 -2
  98. package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
  99. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
  100. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.d.mts +76 -0
  101. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.mjs +211 -0
  102. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/index.d.mts +2 -0
  103. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/index.mjs +1 -0
  104. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.mts +17 -0
  105. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.mts +1 -0
  106. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/index.mjs +1 -0
  107. package/dist/esm/api/resources/orgs/resources/complianceDocuments/index.d.mts +2 -0
  108. package/dist/esm/api/resources/orgs/resources/complianceDocuments/index.mjs +2 -0
  109. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/index.d.mts +2 -0
  110. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/index.mjs +2 -0
  111. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +83 -0
  112. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.mjs +274 -0
  113. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.d.mts +2 -0
  114. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.mjs +1 -0
  115. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.d.mts +13 -0
  116. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.mjs +4 -0
  117. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.d.mts +1 -0
  118. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.mjs +1 -0
  119. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.d.mts +1 -0
  120. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.mjs +1 -0
  121. package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
  122. package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
  123. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +3 -0
  124. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +5 -0
  125. package/dist/esm/api/resources/shipping/resources/drivers/index.d.mts +1 -0
  126. package/dist/esm/api/resources/shipping/resources/drivers/index.mjs +1 -0
  127. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.mts +80 -0
  128. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.mjs +220 -0
  129. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.d.mts +2 -0
  130. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.mjs +1 -0
  131. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.mts +17 -0
  132. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.mjs +4 -0
  133. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.mts +1 -0
  134. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.mjs +1 -0
  135. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.d.mts +2 -0
  136. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.mjs +2 -0
  137. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.d.mts +2 -0
  138. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.mjs +2 -0
  139. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +83 -0
  140. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.mjs +274 -0
  141. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.d.mts +2 -0
  142. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.mjs +1 -0
  143. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.d.mts +13 -0
  144. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.mjs +4 -0
  145. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.d.mts +1 -0
  146. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.mjs +1 -0
  147. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.d.mts +1 -0
  148. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.mjs +1 -0
  149. package/dist/esm/api/resources/shipping/resources/drivers/resources/index.d.mts +2 -0
  150. package/dist/esm/api/resources/shipping/resources/drivers/resources/index.mjs +2 -0
  151. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +1 -1
  152. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +1 -1
  153. package/dist/esm/api/types/BillingLineItemS3ObjectAddedWebhookPayload.d.mts +14 -0
  154. package/dist/esm/api/types/BillingLineItemS3ObjectAddedWebhookPayload.mjs +4 -0
  155. package/dist/esm/api/types/DateTimeWindow1.d.mts +7 -0
  156. package/dist/esm/api/types/DateTimeWindow1.mjs +4 -0
  157. package/dist/esm/api/types/DriverComplianceDocument1.d.mts +15 -0
  158. package/dist/esm/api/types/DriverComplianceDocument1.mjs +4 -0
  159. package/dist/esm/api/types/DriverComplianceDocumentS3ObjectMetadata1.d.mts +19 -0
  160. package/dist/esm/api/types/DriverComplianceDocumentS3ObjectMetadata1.mjs +4 -0
  161. package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.d.mts +8 -0
  162. package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.mjs +7 -0
  163. package/dist/esm/api/types/ListingBidThreadActionAddedWebhookPayload.d.mts +21 -0
  164. package/dist/esm/api/types/ListingBidThreadActionAddedWebhookPayload.mjs +4 -0
  165. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +8 -2
  166. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +7 -1
  167. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +7 -1
  168. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +6 -0
  169. package/dist/esm/api/types/OperationsCaseMessageWebhookPayload.d.mts +15 -0
  170. package/dist/esm/api/types/OperationsCaseMessageWebhookPayload.mjs +4 -0
  171. package/dist/esm/api/types/OperationsCaseS3ObjectAddedWebhookPayload.d.mts +14 -0
  172. package/dist/esm/api/types/OperationsCaseS3ObjectAddedWebhookPayload.mjs +4 -0
  173. package/dist/esm/api/types/OrgComplianceDocument1.d.mts +15 -0
  174. package/dist/esm/api/types/OrgComplianceDocument1.mjs +4 -0
  175. package/dist/esm/api/types/OrgComplianceDocumentS3ObjectMetadata1.d.mts +19 -0
  176. package/dist/esm/api/types/OrgComplianceDocumentS3ObjectMetadata1.mjs +4 -0
  177. package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.d.mts +8 -0
  178. package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.mjs +7 -0
  179. package/dist/esm/api/types/ShippingTaskAttemptedWebhookPayload.d.mts +22 -0
  180. package/dist/esm/api/types/ShippingTaskAttemptedWebhookPayload.mjs +4 -0
  181. package/dist/esm/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.d.mts +17 -0
  182. package/dist/esm/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.mjs +4 -0
  183. package/dist/esm/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.d.mts +14 -0
  184. package/dist/esm/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.mjs +4 -0
  185. package/dist/esm/api/types/Task1.d.mts +1 -1
  186. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
  187. package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -1
  188. package/dist/esm/api/types/TimeWindow1.d.mts +2 -2
  189. package/dist/esm/api/types/index.d.mts +14 -1
  190. package/dist/esm/api/types/index.mjs +14 -1
  191. package/dist/esm/version.d.mts +1 -1
  192. package/dist/esm/version.mjs +1 -1
  193. package/package.json +1 -1
  194. package/reference.md +1487 -569
  195. package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.ts +0 -14
  196. package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.mts +0 -14
  197. /package/dist/cjs/api/{types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.js → resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.js} +0 -0
  198. /package/dist/esm/api/{types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.mjs → resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.mjs} +0 -0
@@ -56,8 +56,8 @@ class ChrtClient {
56
56
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
59
- "X-Fern-SDK-Version": "1.681.0",
60
- "User-Agent": "@chrt-inc/typescript-sdk/1.681.0",
59
+ "X-Fern-SDK-Version": "1.685.0",
60
+ "User-Agent": "@chrt-inc/typescript-sdk/1.685.0",
61
61
  "X-Fern-Runtime": core.RUNTIME.type,
62
62
  "X-Fern-Runtime-Version": core.RUNTIME.version,
63
63
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -7,6 +7,7 @@ import * as Chrt from "../../../index.js";
7
7
  import { Connections } from "../resources/connections/client/Client.js";
8
8
  import { OffChrtProviderOrg } from "../resources/offChrtProviderOrg/client/Client.js";
9
9
  import { OffChrtShipperOrg } from "../resources/offChrtShipperOrg/client/Client.js";
10
+ import { ComplianceDocuments } from "../resources/complianceDocuments/client/Client.js";
10
11
  import { PrivateData } from "../resources/privateData/client/Client.js";
11
12
  import { OrgProfiles } from "../resources/orgProfiles/client/Client.js";
12
13
  import { PublicData } from "../resources/publicData/client/Client.js";
@@ -39,6 +40,7 @@ export declare class Orgs {
39
40
  protected _connections: Connections | undefined;
40
41
  protected _offChrtProviderOrg: OffChrtProviderOrg | undefined;
41
42
  protected _offChrtShipperOrg: OffChrtShipperOrg | undefined;
43
+ protected _complianceDocuments: ComplianceDocuments | undefined;
42
44
  protected _privateData: PrivateData | undefined;
43
45
  protected _orgProfiles: OrgProfiles | undefined;
44
46
  protected _publicData: PublicData | undefined;
@@ -47,6 +49,7 @@ export declare class Orgs {
47
49
  get connections(): Connections;
48
50
  get offChrtProviderOrg(): OffChrtProviderOrg;
49
51
  get offChrtShipperOrg(): OffChrtShipperOrg;
52
+ get complianceDocuments(): ComplianceDocuments;
50
53
  get privateData(): PrivateData;
51
54
  get orgProfiles(): OrgProfiles;
52
55
  get publicData(): PublicData;
@@ -54,10 +54,11 @@ const errors = __importStar(require("../../../../errors/index.js"));
54
54
  const Client_js_1 = require("../resources/connections/client/Client.js");
55
55
  const Client_js_2 = require("../resources/offChrtProviderOrg/client/Client.js");
56
56
  const Client_js_3 = require("../resources/offChrtShipperOrg/client/Client.js");
57
- const Client_js_4 = require("../resources/privateData/client/Client.js");
58
- const Client_js_5 = require("../resources/orgProfiles/client/Client.js");
59
- const Client_js_6 = require("../resources/publicData/client/Client.js");
60
- const Client_js_7 = require("../resources/orgInfoForConnections/client/Client.js");
57
+ const Client_js_4 = require("../resources/complianceDocuments/client/Client.js");
58
+ const Client_js_5 = require("../resources/privateData/client/Client.js");
59
+ const Client_js_6 = require("../resources/orgProfiles/client/Client.js");
60
+ const Client_js_7 = require("../resources/publicData/client/Client.js");
61
+ const Client_js_8 = require("../resources/orgInfoForConnections/client/Client.js");
61
62
  class Orgs {
62
63
  constructor(_options = {}) {
63
64
  this._options = _options;
@@ -74,21 +75,25 @@ class Orgs {
74
75
  var _a;
75
76
  return ((_a = this._offChrtShipperOrg) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrg = new Client_js_3.OffChrtShipperOrg(this._options)));
76
77
  }
78
+ get complianceDocuments() {
79
+ var _a;
80
+ return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new Client_js_4.ComplianceDocuments(this._options)));
81
+ }
77
82
  get privateData() {
78
83
  var _a;
79
- return ((_a = this._privateData) !== null && _a !== void 0 ? _a : (this._privateData = new Client_js_4.PrivateData(this._options)));
84
+ return ((_a = this._privateData) !== null && _a !== void 0 ? _a : (this._privateData = new Client_js_5.PrivateData(this._options)));
80
85
  }
81
86
  get orgProfiles() {
82
87
  var _a;
83
- return ((_a = this._orgProfiles) !== null && _a !== void 0 ? _a : (this._orgProfiles = new Client_js_5.OrgProfiles(this._options)));
88
+ return ((_a = this._orgProfiles) !== null && _a !== void 0 ? _a : (this._orgProfiles = new Client_js_6.OrgProfiles(this._options)));
84
89
  }
85
90
  get publicData() {
86
91
  var _a;
87
- return ((_a = this._publicData) !== null && _a !== void 0 ? _a : (this._publicData = new Client_js_6.PublicData(this._options)));
92
+ return ((_a = this._publicData) !== null && _a !== void 0 ? _a : (this._publicData = new Client_js_7.PublicData(this._options)));
88
93
  }
89
94
  get orgInfoForConnections() {
90
95
  var _a;
91
- return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new Client_js_7.OrgInfoForConnections(this._options)));
96
+ return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new Client_js_8.OrgInfoForConnections(this._options)));
92
97
  }
93
98
  /**
94
99
  * Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)
@@ -0,0 +1,76 @@
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
+ import { S3Object } from "../resources/s3Object/client/Client.js";
8
+ export declare namespace ComplianceDocuments {
9
+ interface Options {
10
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
11
+ /** Specify a custom URL to connect the client to. */
12
+ baseUrl?: core.Supplier<string>;
13
+ token?: core.Supplier<core.BearerToken | undefined>;
14
+ /** Additional headers to include in requests. */
15
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
16
+ fetcher?: core.FetchFunction;
17
+ }
18
+ interface RequestOptions {
19
+ /** The maximum time to wait for a response in seconds. */
20
+ timeoutInSeconds?: number;
21
+ /** The number of times to retry the request. Defaults to 2. */
22
+ maxRetries?: number;
23
+ /** A hook to abort the request. */
24
+ abortSignal?: AbortSignal;
25
+ /** Additional query string parameters to include in the request. */
26
+ queryParams?: Record<string, unknown>;
27
+ /** Additional headers to include in the request. */
28
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
29
+ }
30
+ }
31
+ export declare class ComplianceDocuments {
32
+ protected readonly _options: ComplianceDocuments.Options;
33
+ protected _s3Object: S3Object | undefined;
34
+ constructor(_options?: ComplianceDocuments.Options);
35
+ get s3Object(): S3Object;
36
+ /**
37
+ * Lists compliance documents for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[OrgComplianceDocument1])
38
+ *
39
+ * @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
40
+ *
41
+ * @example
42
+ * await client.orgs.complianceDocuments.listV1()
43
+ */
44
+ listV1(requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.OrgComplianceDocument1[]>;
45
+ private __listV1;
46
+ /**
47
+ * Retrieves one compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrgComplianceDocument1)
48
+ *
49
+ * @param {string} orgComplianceDocumentId
50
+ * @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
51
+ *
52
+ * @throws {@link Chrt.UnprocessableEntityError}
53
+ *
54
+ * @example
55
+ * await client.orgs.complianceDocuments.getV1("org_compliance_document_id")
56
+ */
57
+ getV1(orgComplianceDocumentId: string, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.OrgComplianceDocument1>;
58
+ private __getV1;
59
+ /**
60
+ * Creates a compliance document record for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientCreate1) -> (OrgComplianceDocument1)
61
+ *
62
+ * @param {Chrt.orgs.OrgComplianceDocumentClientCreate1} request
63
+ * @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Chrt.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.orgs.complianceDocuments.createV1({
69
+ * schema_version: 1,
70
+ * document_type: "security_threat_assessment"
71
+ * })
72
+ */
73
+ createV1(request: Chrt.orgs.OrgComplianceDocumentClientCreate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.OrgComplianceDocument1>;
74
+ private __createV1;
75
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
76
+ }
@@ -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
+ }