@chrt-inc/typescript-sdk 1.661.0 → 1.662.1

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 (192) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.ts +1 -0
  3. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.js +1 -0
  4. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.ts +1 -0
  5. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +2 -1
  6. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +2 -1
  7. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientCreate1.d.ts +1 -0
  8. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientUpdate1.d.ts +2 -0
  9. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.ts +1 -0
  10. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -0
  11. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +1 -0
  12. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.ts +1 -0
  13. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +2 -0
  14. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +2 -0
  15. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +1 -0
  16. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +1 -0
  17. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -0
  18. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +2 -0
  19. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +1 -0
  20. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +1 -0
  21. package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +6 -0
  22. package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +6 -0
  23. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +2 -0
  24. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +2 -0
  25. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +2 -0
  26. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +77 -0
  27. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +315 -0
  28. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.d.ts +12 -0
  29. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseStatusReq.d.ts +13 -0
  30. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseStatusReq.js +5 -0
  31. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +2 -0
  32. package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +2 -0
  33. package/dist/cjs/api/resources/operations/resources/cases/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/operations/resources/cases/index.js +1 -0
  35. package/dist/cjs/api/resources/operations/resources/cases/resources/index.d.ts +2 -0
  36. package/dist/cjs/api/resources/operations/resources/cases/resources/index.js +41 -0
  37. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/Client.d.ts +83 -0
  38. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/Client.js +308 -0
  39. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/index.d.ts +2 -0
  40. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/index.js +17 -0
  41. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/requests/BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost.d.ts +13 -0
  42. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/requests/BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost.js +5 -0
  43. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/requests/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/client/requests/index.js +2 -0
  45. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/operations/resources/cases/resources/s3Objects/index.js +17 -0
  47. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +2 -1
  48. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +2 -1
  49. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +2 -1
  50. package/dist/cjs/api/resources/orgs/client/Client.d.ts +2 -1
  51. package/dist/cjs/api/resources/orgs/client/Client.js +2 -1
  52. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +1 -0
  53. package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.d.ts +1 -1
  54. package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.js +1 -1
  55. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +1 -0
  56. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +1 -0
  57. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +1 -0
  58. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +2 -0
  59. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +2 -0
  60. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -0
  61. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -0
  62. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +2 -0
  63. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +1 -0
  64. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +1 -0
  65. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +1 -1
  66. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +1 -1
  67. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +2 -0
  68. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +2 -0
  69. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +1 -0
  70. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +1 -0
  71. package/dist/cjs/api/types/BillingLedger1.d.ts +1 -0
  72. package/dist/cjs/api/types/Caller.d.ts +4 -3
  73. package/dist/cjs/api/types/CallerCredentialTypeEnum.d.ts +2 -2
  74. package/dist/cjs/api/types/CallerCredentialTypeEnum.js +1 -1
  75. package/dist/cjs/api/types/Case1.d.ts +4 -0
  76. package/dist/cjs/api/types/CaseMessage1.d.ts +1 -0
  77. package/dist/cjs/api/types/CaseS3ObjectMetadata1.d.ts +19 -0
  78. package/dist/cjs/api/types/CaseS3ObjectMetadata1.js +5 -0
  79. package/dist/cjs/api/types/InternalDelegationTokenReq.d.ts +9 -0
  80. package/dist/cjs/api/types/InternalDelegationTokenReq.js +5 -0
  81. package/dist/cjs/api/types/InternalDelegationTokenRes.d.ts +6 -0
  82. package/dist/cjs/api/types/InternalDelegationTokenRes.js +5 -0
  83. package/dist/cjs/api/types/OrgInfoResponse.d.ts +5 -5
  84. package/dist/cjs/api/types/OrgPrivateData1.d.ts +1 -0
  85. package/dist/cjs/api/types/OrgRoleEnum.d.ts +7 -13
  86. package/dist/cjs/api/types/OrgRoleEnum.js +2 -2
  87. package/dist/cjs/api/types/UserPrivateData1.d.ts +1 -0
  88. package/dist/cjs/api/types/WorkflowActorContext.d.ts +14 -0
  89. package/dist/cjs/api/types/WorkflowActorContext.js +5 -0
  90. package/dist/cjs/api/types/index.d.ts +4 -1
  91. package/dist/cjs/api/types/index.js +4 -1
  92. package/dist/cjs/version.d.ts +1 -1
  93. package/dist/cjs/version.js +1 -1
  94. package/dist/esm/Client.mjs +2 -2
  95. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.mts +1 -0
  96. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.mjs +1 -0
  97. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.mts +1 -0
  98. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +2 -1
  99. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +2 -1
  100. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientCreate1.d.mts +1 -0
  101. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgerClientUpdate1.d.mts +2 -0
  102. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.mts +1 -0
  103. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -0
  104. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +1 -0
  105. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.mts +1 -0
  106. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +2 -0
  107. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +2 -0
  108. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +1 -0
  109. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +1 -0
  110. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -0
  111. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +2 -0
  112. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +1 -0
  113. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +1 -0
  114. package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +6 -0
  115. package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +6 -0
  116. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +2 -0
  117. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +2 -0
  118. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +2 -0
  119. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +77 -0
  120. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +315 -0
  121. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.d.mts +12 -0
  122. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseStatusReq.d.mts +13 -0
  123. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseStatusReq.mjs +4 -0
  124. package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +2 -0
  125. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +2 -0
  126. package/dist/esm/api/resources/operations/resources/cases/index.d.mts +1 -0
  127. package/dist/esm/api/resources/operations/resources/cases/index.mjs +1 -0
  128. package/dist/esm/api/resources/operations/resources/cases/resources/index.d.mts +2 -0
  129. package/dist/esm/api/resources/operations/resources/cases/resources/index.mjs +2 -0
  130. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/Client.d.mts +83 -0
  131. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/Client.mjs +271 -0
  132. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/index.d.mts +2 -0
  133. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/index.mjs +1 -0
  134. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/requests/BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost.d.mts +13 -0
  135. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/requests/BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost.mjs +4 -0
  136. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/requests/index.d.mts +1 -0
  137. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/client/requests/index.mjs +1 -0
  138. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/index.d.mts +1 -0
  139. package/dist/esm/api/resources/operations/resources/cases/resources/s3Objects/index.mjs +1 -0
  140. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +2 -1
  141. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +2 -1
  142. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +2 -1
  143. package/dist/esm/api/resources/orgs/client/Client.d.mts +2 -1
  144. package/dist/esm/api/resources/orgs/client/Client.mjs +2 -1
  145. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +1 -0
  146. package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.d.mts +1 -1
  147. package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.mjs +1 -1
  148. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +1 -0
  149. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +1 -0
  150. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +1 -0
  151. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +2 -0
  152. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +2 -0
  153. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -0
  154. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -0
  155. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +2 -0
  156. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +1 -0
  157. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +1 -0
  158. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +1 -1
  159. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +1 -1
  160. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +2 -0
  161. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +2 -0
  162. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +1 -0
  163. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +1 -0
  164. package/dist/esm/api/types/BillingLedger1.d.mts +1 -0
  165. package/dist/esm/api/types/Caller.d.mts +4 -3
  166. package/dist/esm/api/types/CallerCredentialTypeEnum.d.mts +2 -2
  167. package/dist/esm/api/types/CallerCredentialTypeEnum.mjs +1 -1
  168. package/dist/esm/api/types/Case1.d.mts +4 -0
  169. package/dist/esm/api/types/CaseMessage1.d.mts +1 -0
  170. package/dist/esm/api/types/CaseS3ObjectMetadata1.d.mts +19 -0
  171. package/dist/esm/api/types/CaseS3ObjectMetadata1.mjs +4 -0
  172. package/dist/esm/api/types/InternalDelegationTokenReq.d.mts +9 -0
  173. package/dist/esm/api/types/InternalDelegationTokenReq.mjs +4 -0
  174. package/dist/esm/api/types/InternalDelegationTokenRes.d.mts +6 -0
  175. package/dist/esm/api/types/InternalDelegationTokenRes.mjs +4 -0
  176. package/dist/esm/api/types/OrgInfoResponse.d.mts +5 -5
  177. package/dist/esm/api/types/OrgPrivateData1.d.mts +1 -0
  178. package/dist/esm/api/types/OrgRoleEnum.d.mts +7 -13
  179. package/dist/esm/api/types/OrgRoleEnum.mjs +2 -2
  180. package/dist/esm/api/types/UserPrivateData1.d.mts +1 -0
  181. package/dist/esm/api/types/WorkflowActorContext.d.mts +14 -0
  182. package/dist/esm/api/types/WorkflowActorContext.mjs +4 -0
  183. package/dist/esm/api/types/index.d.mts +4 -1
  184. package/dist/esm/api/types/index.mjs +4 -1
  185. package/dist/esm/version.d.mts +1 -1
  186. package/dist/esm/version.mjs +1 -1
  187. package/package.json +1 -1
  188. package/reference.md +694 -63
  189. package/dist/cjs/api/types/ClerkOrgData.d.ts +0 -12
  190. package/dist/esm/api/types/ClerkOrgData.d.mts +0 -12
  191. /package/dist/cjs/api/{types/ClerkOrgData.js → resources/operations/resources/cases/client/requests/CaseNeedsActionReq.js} +0 -0
  192. /package/dist/esm/api/{types/ClerkOrgData.mjs → resources/operations/resources/cases/client/requests/CaseNeedsActionReq.mjs} +0 -0
@@ -51,10 +51,15 @@ const core = __importStar(require("../../../../../../core/index.js"));
51
51
  const Chrt = __importStar(require("../../../../../index.js"));
52
52
  const headers_js_1 = require("../../../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../../../errors/index.js"));
54
+ const Client_js_1 = require("../resources/s3Objects/client/Client.js");
54
55
  class Cases {
55
56
  constructor(_options = {}) {
56
57
  this._options = _options;
57
58
  }
59
+ get s3Objects() {
60
+ var _a;
61
+ return ((_a = this._s3Objects) !== null && _a !== void 0 ? _a : (this._s3Objects = new Client_js_1.S3Objects(this._options)));
62
+ }
58
63
  /**
59
64
  * Lists cases for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (CaseListRes)
60
65
  *
@@ -69,6 +74,8 @@ class Cases {
69
74
  * sort_order: "asc",
70
75
  * page: 1,
71
76
  * page_size: 1,
77
+ * filter_status: ["open"],
78
+ * filter_department_id: ["filter_department_id"],
72
79
  * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
73
80
  * filter_needs_action: true,
74
81
  * filter_unassigned: true
@@ -342,6 +349,254 @@ class Cases {
342
349
  }
343
350
  });
344
351
  }
352
+ /**
353
+ * Retrieves the case for a given order ID, short ID, or off-chrt reference ID. | authz: min_org_role=operator | () -> (Case1)
354
+ *
355
+ * @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
356
+ * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
357
+ *
358
+ * @throws {@link Chrt.UnprocessableEntityError}
359
+ *
360
+ * @example
361
+ * await client.operations.cases.getByOrderRefV1("order_ref")
362
+ */
363
+ getByOrderRefV1(orderRef, requestOptions) {
364
+ return core.HttpResponsePromise.fromPromise(this.__getByOrderRefV1(orderRef, requestOptions));
365
+ }
366
+ __getByOrderRefV1(orderRef, requestOptions) {
367
+ return __awaiter(this, void 0, void 0, function* () {
368
+ var _a, _b, _c, _d;
369
+ 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);
370
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
371
+ 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, `operations/cases/by_order_ref/v1/${encodeURIComponent(orderRef)}`),
372
+ method: "GET",
373
+ headers: _headers,
374
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
375
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
376
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
377
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
378
+ });
379
+ if (_response.ok) {
380
+ return { data: _response.body, rawResponse: _response.rawResponse };
381
+ }
382
+ if (_response.error.reason === "status-code") {
383
+ switch (_response.error.statusCode) {
384
+ case 422:
385
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
386
+ default:
387
+ throw new errors.ChrtError({
388
+ statusCode: _response.error.statusCode,
389
+ body: _response.error.body,
390
+ rawResponse: _response.rawResponse,
391
+ });
392
+ }
393
+ }
394
+ switch (_response.error.reason) {
395
+ case "non-json":
396
+ throw new errors.ChrtError({
397
+ statusCode: _response.error.statusCode,
398
+ body: _response.error.rawBody,
399
+ rawResponse: _response.rawResponse,
400
+ });
401
+ case "timeout":
402
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/cases/by_order_ref/v1/{order_ref}.");
403
+ case "unknown":
404
+ throw new errors.ChrtError({
405
+ message: _response.error.errorMessage,
406
+ rawResponse: _response.rawResponse,
407
+ });
408
+ }
409
+ });
410
+ }
411
+ /**
412
+ * Retrieves the case for a given order short ID. | authz: min_org_role=operator | () -> (Case1)
413
+ *
414
+ * @param {string} orderShortId
415
+ * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
416
+ *
417
+ * @throws {@link Chrt.UnprocessableEntityError}
418
+ *
419
+ * @example
420
+ * await client.operations.cases.getByOrderShortIdV1("order_short_id")
421
+ */
422
+ getByOrderShortIdV1(orderShortId, requestOptions) {
423
+ return core.HttpResponsePromise.fromPromise(this.__getByOrderShortIdV1(orderShortId, requestOptions));
424
+ }
425
+ __getByOrderShortIdV1(orderShortId, requestOptions) {
426
+ return __awaiter(this, void 0, void 0, function* () {
427
+ var _a, _b, _c, _d;
428
+ 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);
429
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
430
+ 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, `operations/cases/by_order_short_id/v1/${encodeURIComponent(orderShortId)}`),
431
+ method: "GET",
432
+ headers: _headers,
433
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
434
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
435
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
436
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
437
+ });
438
+ if (_response.ok) {
439
+ return { data: _response.body, rawResponse: _response.rawResponse };
440
+ }
441
+ if (_response.error.reason === "status-code") {
442
+ switch (_response.error.statusCode) {
443
+ case 422:
444
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
445
+ default:
446
+ throw new errors.ChrtError({
447
+ statusCode: _response.error.statusCode,
448
+ body: _response.error.body,
449
+ rawResponse: _response.rawResponse,
450
+ });
451
+ }
452
+ }
453
+ switch (_response.error.reason) {
454
+ case "non-json":
455
+ throw new errors.ChrtError({
456
+ statusCode: _response.error.statusCode,
457
+ body: _response.error.rawBody,
458
+ rawResponse: _response.rawResponse,
459
+ });
460
+ case "timeout":
461
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/cases/by_order_short_id/v1/{order_short_id}.");
462
+ case "unknown":
463
+ throw new errors.ChrtError({
464
+ message: _response.error.errorMessage,
465
+ rawResponse: _response.rawResponse,
466
+ });
467
+ }
468
+ });
469
+ }
470
+ /**
471
+ * Updates whether a case needs action. | authz: min_org_role=operator | (CaseNeedsActionReq) -> (bool)
472
+ *
473
+ * @param {string} caseId
474
+ * @param {Chrt.operations.CaseNeedsActionReq} request
475
+ * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
476
+ *
477
+ * @throws {@link Chrt.UnprocessableEntityError}
478
+ *
479
+ * @example
480
+ * await client.operations.cases.updateNeedsActionV1("case_id", {
481
+ * needs_action: true
482
+ * })
483
+ */
484
+ updateNeedsActionV1(caseId, request, requestOptions) {
485
+ return core.HttpResponsePromise.fromPromise(this.__updateNeedsActionV1(caseId, request, requestOptions));
486
+ }
487
+ __updateNeedsActionV1(caseId, request, requestOptions) {
488
+ return __awaiter(this, void 0, void 0, function* () {
489
+ var _a, _b, _c, _d;
490
+ 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);
491
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
492
+ 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, `operations/cases/needs_action/v1/${encodeURIComponent(caseId)}`),
493
+ method: "PATCH",
494
+ headers: _headers,
495
+ contentType: "application/json",
496
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
497
+ requestType: "json",
498
+ body: request,
499
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
500
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
501
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
502
+ });
503
+ if (_response.ok) {
504
+ return { data: _response.body, rawResponse: _response.rawResponse };
505
+ }
506
+ if (_response.error.reason === "status-code") {
507
+ switch (_response.error.statusCode) {
508
+ case 422:
509
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
510
+ default:
511
+ throw new errors.ChrtError({
512
+ statusCode: _response.error.statusCode,
513
+ body: _response.error.body,
514
+ rawResponse: _response.rawResponse,
515
+ });
516
+ }
517
+ }
518
+ switch (_response.error.reason) {
519
+ case "non-json":
520
+ throw new errors.ChrtError({
521
+ statusCode: _response.error.statusCode,
522
+ body: _response.error.rawBody,
523
+ rawResponse: _response.rawResponse,
524
+ });
525
+ case "timeout":
526
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/cases/needs_action/v1/{case_id}.");
527
+ case "unknown":
528
+ throw new errors.ChrtError({
529
+ message: _response.error.errorMessage,
530
+ rawResponse: _response.rawResponse,
531
+ });
532
+ }
533
+ });
534
+ }
535
+ /**
536
+ * Updates a case's status. Closing a case also clears needs_action. | authz: min_org_role=operator | (CaseStatusReq) -> (bool)
537
+ *
538
+ * @param {string} caseId
539
+ * @param {Chrt.operations.CaseStatusReq} request
540
+ * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
541
+ *
542
+ * @throws {@link Chrt.UnprocessableEntityError}
543
+ *
544
+ * @example
545
+ * await client.operations.cases.updateStatusV1("case_id", {
546
+ * status: "open"
547
+ * })
548
+ */
549
+ updateStatusV1(caseId, request, requestOptions) {
550
+ return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(caseId, request, requestOptions));
551
+ }
552
+ __updateStatusV1(caseId, request, requestOptions) {
553
+ return __awaiter(this, void 0, void 0, function* () {
554
+ var _a, _b, _c, _d;
555
+ 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);
556
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
557
+ 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, `operations/cases/status/v1/${encodeURIComponent(caseId)}`),
558
+ method: "PATCH",
559
+ headers: _headers,
560
+ contentType: "application/json",
561
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
562
+ requestType: "json",
563
+ body: request,
564
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
565
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
566
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
567
+ });
568
+ if (_response.ok) {
569
+ return { data: _response.body, rawResponse: _response.rawResponse };
570
+ }
571
+ if (_response.error.reason === "status-code") {
572
+ switch (_response.error.statusCode) {
573
+ case 422:
574
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
575
+ default:
576
+ throw new errors.ChrtError({
577
+ statusCode: _response.error.statusCode,
578
+ body: _response.error.body,
579
+ rawResponse: _response.rawResponse,
580
+ });
581
+ }
582
+ }
583
+ switch (_response.error.reason) {
584
+ case "non-json":
585
+ throw new errors.ChrtError({
586
+ statusCode: _response.error.statusCode,
587
+ body: _response.error.rawBody,
588
+ rawResponse: _response.rawResponse,
589
+ });
590
+ case "timeout":
591
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/cases/status/v1/{case_id}.");
592
+ case "unknown":
593
+ throw new errors.ChrtError({
594
+ message: _response.error.errorMessage,
595
+ rawResponse: _response.rawResponse,
596
+ });
597
+ }
598
+ });
599
+ }
345
600
  /**
346
601
  * Adds operator(s) to a case. | authz: min_org_role=operator | (CaseAssignReq) -> (bool)
347
602
  *
@@ -537,6 +792,66 @@ class Cases {
537
792
  }
538
793
  });
539
794
  }
795
+ /**
796
+ * Deletes a message from a case. | authz: min_org_role=operator | () -> (bool)
797
+ *
798
+ * @param {string} caseId
799
+ * @param {string} messageId
800
+ * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
801
+ *
802
+ * @throws {@link Chrt.UnprocessableEntityError}
803
+ *
804
+ * @example
805
+ * await client.operations.cases.deleteMessageV1("case_id", "message_id")
806
+ */
807
+ deleteMessageV1(caseId, messageId, requestOptions) {
808
+ return core.HttpResponsePromise.fromPromise(this.__deleteMessageV1(caseId, messageId, requestOptions));
809
+ }
810
+ __deleteMessageV1(caseId, messageId, requestOptions) {
811
+ return __awaiter(this, void 0, void 0, function* () {
812
+ var _a, _b, _c, _d;
813
+ 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);
814
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
815
+ 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, `operations/cases/delete_message/v1/${encodeURIComponent(caseId)}/${encodeURIComponent(messageId)}`),
816
+ method: "DELETE",
817
+ headers: _headers,
818
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
819
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
820
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
821
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
822
+ });
823
+ if (_response.ok) {
824
+ return { data: _response.body, rawResponse: _response.rawResponse };
825
+ }
826
+ if (_response.error.reason === "status-code") {
827
+ switch (_response.error.statusCode) {
828
+ case 422:
829
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
830
+ default:
831
+ throw new errors.ChrtError({
832
+ statusCode: _response.error.statusCode,
833
+ body: _response.error.body,
834
+ rawResponse: _response.rawResponse,
835
+ });
836
+ }
837
+ }
838
+ switch (_response.error.reason) {
839
+ case "non-json":
840
+ throw new errors.ChrtError({
841
+ statusCode: _response.error.statusCode,
842
+ body: _response.error.rawBody,
843
+ rawResponse: _response.rawResponse,
844
+ });
845
+ case "timeout":
846
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/cases/delete_message/v1/{case_id}/{message_id}.");
847
+ case "unknown":
848
+ throw new errors.ChrtError({
849
+ message: _response.error.errorMessage,
850
+ rawResponse: _response.rawResponse,
851
+ });
852
+ }
853
+ });
854
+ }
540
855
  _getAuthorizationHeader() {
541
856
  return __awaiter(this, void 0, void 0, function* () {
542
857
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * needs_action: true
8
+ * }
9
+ */
10
+ export interface CaseNeedsActionReq {
11
+ needs_action: boolean;
12
+ }
@@ -0,0 +1,13 @@
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
+ * status: "open"
9
+ * }
10
+ */
11
+ export interface CaseStatusReq {
12
+ status: Chrt.CaseStatusEnum;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.js";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["open"],
13
+ * filter_department_id: ["filter_department_id"],
12
14
  * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
13
15
  * filter_needs_action: true,
14
16
  * filter_unassigned: true
@@ -1,5 +1,7 @@
1
1
  export { type CasesListV1Request } from "./CasesListV1Request.js";
2
2
  export { type CaseClientUpdate1 } from "./CaseClientUpdate1.js";
3
+ export { type CaseNeedsActionReq } from "./CaseNeedsActionReq.js";
4
+ export { type CaseStatusReq } from "./CaseStatusReq.js";
3
5
  export { type CaseAssignReq } from "./CaseAssignReq.js";
4
6
  export { type CaseUnassignReq } from "./CaseUnassignReq.js";
5
7
  export { type CaseAddMessageReq } from "./CaseAddMessageReq.js";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * as s3Objects from "./s3Objects/index.js";
2
+ export * from "./s3Objects/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.s3Objects = void 0;
40
+ exports.s3Objects = __importStar(require("./s3Objects/index.js"));
41
+ __exportStar(require("./s3Objects/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 S3Objects {
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 S3Objects {
31
+ protected readonly _options: S3Objects.Options;
32
+ constructor(_options?: S3Objects.Options);
33
+ /**
34
+ * Retrieves metadata for a case S3 object. | authz: min_org_role=operator | () -> (CaseS3ObjectMetadata1)
35
+ *
36
+ * @param {string} caseS3ObjectMetadataId
37
+ * @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.operations.cases.s3Objects.getS3ObjectMetadataV1("case_s3_object_metadata_id")
43
+ */
44
+ getS3ObjectMetadataV1(caseS3ObjectMetadataId: string, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<Chrt.CaseS3ObjectMetadata1>;
45
+ private __getS3ObjectMetadataV1;
46
+ /**
47
+ * Streams a case S3 object file from storage. | authz: min_org_role=operator | () -> (binary)
48
+ * @throws {@link Chrt.UnprocessableEntityError}
49
+ */
50
+ getV1(caseS3ObjectMetadataId: string, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
+ private __getV1;
52
+ /**
53
+ * Uploads a file to a case. Automatic blurhash generation for images. | authz: min_org_role=operator | (UploadFile) -> (bool)
54
+ *
55
+ * @param {string} caseId
56
+ * @param {Chrt.operations.cases.BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost} request
57
+ * @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
58
+ *
59
+ * @throws {@link Chrt.UnprocessableEntityError}
60
+ *
61
+ * @example
62
+ * import { createReadStream } from "fs";
63
+ * await client.operations.cases.s3Objects.addV1("case_id", {
64
+ * file: fs.createReadStream("/path/to/your/file")
65
+ * })
66
+ */
67
+ addV1(caseId: string, request: Chrt.operations.cases.BodyPostCasesS3ObjectsAddV1OperationsCasesS3ObjectsAddV1CaseIdPost, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<boolean>;
68
+ private __addV1;
69
+ /**
70
+ * Deletes an S3 object metadata and the associated S3 object from a case. Only the uploader or an operator from the uploading org can delete. | () -> (bool)
71
+ *
72
+ * @param {string} caseS3ObjectMetadataId
73
+ * @param {S3Objects.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link Chrt.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.operations.cases.s3Objects.deleteV1("case_s3_object_metadata_id")
79
+ */
80
+ deleteV1(caseS3ObjectMetadataId: string, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<boolean>;
81
+ private __deleteV1;
82
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
83
+ }