@chrt-inc/typescript-sdk 1.639.0 → 1.641.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 (164) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.ts +0 -1
  3. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.js +0 -1
  4. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.ts +0 -1
  5. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +0 -1
  6. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +0 -1
  7. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.ts +0 -1
  8. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +0 -1
  9. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +0 -1
  10. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.ts +0 -1
  11. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +0 -2
  12. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +0 -2
  13. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +0 -1
  14. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +0 -1
  15. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +0 -2
  16. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +0 -2
  17. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +0 -1
  18. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +0 -1
  19. package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +0 -6
  20. package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +0 -6
  21. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +0 -2
  22. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +0 -2
  23. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +0 -2
  24. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +0 -2
  25. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +0 -2
  26. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +0 -2
  27. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +1 -2
  28. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +1 -2
  29. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +1 -2
  30. package/dist/cjs/api/resources/orgs/client/Client.d.ts +0 -1
  31. package/dist/cjs/api/resources/orgs/client/Client.js +0 -1
  32. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +0 -1
  33. package/dist/cjs/api/resources/shipping/client/Client.d.ts +3 -0
  34. package/dist/cjs/api/resources/shipping/client/Client.js +9 -4
  35. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +0 -1
  36. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +0 -1
  37. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +0 -1
  38. package/dist/cjs/api/resources/shipping/resources/index.d.ts +2 -0
  39. package/dist/cjs/api/resources/shipping/resources/index.js +3 -1
  40. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +112 -0
  41. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +429 -0
  42. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/index.d.ts +2 -0
  43. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/index.js +17 -0
  44. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderScheduleCreateReq.d.ts +12 -0
  45. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderScheduleRoundTripModelTestReq.d.ts +12 -0
  46. package/dist/cjs/api/resources/{utils/resources/dev/client/requests/AgentReq.d.ts → shipping/resources/orderSchedules/client/requests/OrderScheduleUpdateReq.d.ts} +2 -2
  47. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/index.d.ts +3 -0
  48. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/index.js +2 -0
  49. package/dist/cjs/api/resources/shipping/resources/orderSchedules/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/shipping/resources/orderSchedules/index.js +17 -0
  51. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +0 -2
  52. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +0 -2
  53. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +0 -1
  54. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +0 -1
  55. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +0 -2
  56. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +0 -2
  57. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +0 -1
  58. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +0 -1
  59. package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +12 -12
  60. package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +20 -20
  61. package/dist/cjs/api/resources/utils/resources/dev/client/requests/PingOpenAiReq.d.ts +12 -0
  62. package/dist/cjs/api/resources/utils/resources/dev/client/requests/{ScheduledHelloPocReq.d.ts → ScheduledPingReq.d.ts} +3 -5
  63. package/dist/cjs/api/resources/utils/resources/dev/client/requests/ScheduledPingReq.js +5 -0
  64. package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +2 -2
  65. package/dist/cjs/api/types/OrderScheduleRoundTripModelTestRes.d.ts +11 -0
  66. package/dist/cjs/api/types/OrderScheduleRoundTripModelTestRes.js +5 -0
  67. package/dist/cjs/api/types/OrderScheduleStub.d.ts +7 -0
  68. package/dist/cjs/api/types/OrderScheduleStub.js +5 -0
  69. package/dist/cjs/api/types/PingOpenAiRes.d.ts +6 -0
  70. package/dist/cjs/api/types/PingOpenAiRes.js +5 -0
  71. package/dist/cjs/api/types/{ScheduledHelloPocRes.d.ts → ScheduledPingRes.d.ts} +3 -3
  72. package/dist/cjs/api/types/ScheduledPingRes.js +5 -0
  73. package/dist/cjs/api/types/index.d.ts +4 -2
  74. package/dist/cjs/api/types/index.js +4 -2
  75. package/dist/cjs/version.d.ts +1 -1
  76. package/dist/cjs/version.js +1 -1
  77. package/dist/esm/Client.mjs +2 -2
  78. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.mts +0 -1
  79. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.mjs +0 -1
  80. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.mts +0 -1
  81. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +0 -1
  82. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +0 -1
  83. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.mts +0 -1
  84. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +0 -1
  85. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +0 -1
  86. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.mts +0 -1
  87. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +0 -2
  88. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +0 -2
  89. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +0 -1
  90. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +0 -1
  91. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +0 -2
  92. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +0 -2
  93. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +0 -1
  94. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +0 -1
  95. package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +0 -6
  96. package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +0 -6
  97. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +0 -2
  98. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +0 -2
  99. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +0 -2
  100. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +0 -2
  101. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +0 -2
  102. package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +0 -2
  103. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +1 -2
  104. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +1 -2
  105. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +1 -2
  106. package/dist/esm/api/resources/orgs/client/Client.d.mts +0 -1
  107. package/dist/esm/api/resources/orgs/client/Client.mjs +0 -1
  108. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +0 -1
  109. package/dist/esm/api/resources/shipping/client/Client.d.mts +3 -0
  110. package/dist/esm/api/resources/shipping/client/Client.mjs +5 -0
  111. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +0 -1
  112. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +0 -1
  113. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +0 -1
  114. package/dist/esm/api/resources/shipping/resources/index.d.mts +2 -0
  115. package/dist/esm/api/resources/shipping/resources/index.mjs +2 -0
  116. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +112 -0
  117. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +392 -0
  118. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/index.d.mts +2 -0
  119. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/index.mjs +1 -0
  120. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderScheduleCreateReq.d.mts +12 -0
  121. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderScheduleRoundTripModelTestReq.d.mts +12 -0
  122. package/dist/esm/api/resources/{utils/resources/dev/client/requests/AgentReq.d.mts → shipping/resources/orderSchedules/client/requests/OrderScheduleUpdateReq.d.mts} +2 -2
  123. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/index.d.mts +3 -0
  124. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/index.mjs +1 -0
  125. package/dist/esm/api/resources/shipping/resources/orderSchedules/index.d.mts +1 -0
  126. package/dist/esm/api/resources/shipping/resources/orderSchedules/index.mjs +1 -0
  127. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +0 -2
  128. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +0 -2
  129. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +0 -1
  130. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +0 -1
  131. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +0 -2
  132. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +0 -2
  133. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +0 -1
  134. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +0 -1
  135. package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +12 -12
  136. package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +20 -20
  137. package/dist/esm/api/resources/utils/resources/dev/client/requests/PingOpenAiReq.d.mts +12 -0
  138. package/dist/esm/api/resources/utils/resources/dev/client/requests/{ScheduledHelloPocReq.d.mts → ScheduledPingReq.d.mts} +3 -5
  139. package/dist/esm/api/resources/utils/resources/dev/client/requests/ScheduledPingReq.mjs +4 -0
  140. package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +2 -2
  141. package/dist/esm/api/types/OrderScheduleRoundTripModelTestRes.d.mts +11 -0
  142. package/dist/esm/api/types/OrderScheduleRoundTripModelTestRes.mjs +4 -0
  143. package/dist/esm/api/types/OrderScheduleStub.d.mts +7 -0
  144. package/dist/esm/api/types/OrderScheduleStub.mjs +4 -0
  145. package/dist/esm/api/types/PingOpenAiRes.d.mts +6 -0
  146. package/dist/esm/api/types/PingOpenAiRes.mjs +4 -0
  147. package/dist/esm/api/types/{ScheduledHelloPocRes.d.mts → ScheduledPingRes.d.mts} +3 -3
  148. package/dist/esm/api/types/ScheduledPingRes.mjs +4 -0
  149. package/dist/esm/api/types/index.d.mts +4 -2
  150. package/dist/esm/api/types/index.mjs +4 -2
  151. package/dist/esm/version.d.mts +1 -1
  152. package/dist/esm/version.mjs +1 -1
  153. package/package.json +1 -1
  154. package/reference.md +392 -32
  155. package/dist/cjs/api/types/AgentRes.d.ts +0 -8
  156. package/dist/esm/api/types/AgentRes.d.mts +0 -8
  157. /package/dist/cjs/api/resources/{utils/resources/dev/client/requests/AgentReq.js → shipping/resources/orderSchedules/client/requests/OrderScheduleCreateReq.js} +0 -0
  158. /package/dist/cjs/api/resources/{utils/resources/dev/client/requests/ScheduledHelloPocReq.js → shipping/resources/orderSchedules/client/requests/OrderScheduleRoundTripModelTestReq.js} +0 -0
  159. /package/dist/cjs/api/{types/AgentRes.js → resources/shipping/resources/orderSchedules/client/requests/OrderScheduleUpdateReq.js} +0 -0
  160. /package/dist/cjs/api/{types/ScheduledHelloPocRes.js → resources/utils/resources/dev/client/requests/PingOpenAiReq.js} +0 -0
  161. /package/dist/esm/api/resources/{utils/resources/dev/client/requests/AgentReq.mjs → shipping/resources/orderSchedules/client/requests/OrderScheduleCreateReq.mjs} +0 -0
  162. /package/dist/esm/api/resources/{utils/resources/dev/client/requests/ScheduledHelloPocReq.mjs → shipping/resources/orderSchedules/client/requests/OrderScheduleRoundTripModelTestReq.mjs} +0 -0
  163. /package/dist/esm/api/{types/AgentRes.mjs → resources/shipping/resources/orderSchedules/client/requests/OrderScheduleUpdateReq.mjs} +0 -0
  164. /package/dist/esm/api/{types/ScheduledHelloPocRes.mjs → resources/utils/resources/dev/client/requests/PingOpenAiReq.mjs} +0 -0
@@ -0,0 +1,392 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../errors/index.mjs";
18
+ export class OrderSchedules {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Retrieves an order schedule by ID. | () -> (OrderScheduleStub)
24
+ *
25
+ * @param {string} orderScheduleId
26
+ * @param {OrderSchedules.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.shipping.orderSchedules.getByIdV1("order_schedule_id")
32
+ */
33
+ getByIdV1(orderScheduleId, requestOptions) {
34
+ return core.HttpResponsePromise.fromPromise(this.__getByIdV1(orderScheduleId, requestOptions));
35
+ }
36
+ __getByIdV1(orderScheduleId, requestOptions) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ var _a, _b, _c, _d;
39
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
40
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
41
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/order_schedules/v1/${encodeURIComponent(orderScheduleId)}`),
42
+ method: "GET",
43
+ headers: _headers,
44
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
45
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
46
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
47
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
48
+ });
49
+ if (_response.ok) {
50
+ return { data: _response.body, rawResponse: _response.rawResponse };
51
+ }
52
+ if (_response.error.reason === "status-code") {
53
+ switch (_response.error.statusCode) {
54
+ case 422:
55
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
56
+ default:
57
+ throw new errors.ChrtError({
58
+ statusCode: _response.error.statusCode,
59
+ body: _response.error.body,
60
+ rawResponse: _response.rawResponse,
61
+ });
62
+ }
63
+ }
64
+ switch (_response.error.reason) {
65
+ case "non-json":
66
+ throw new errors.ChrtError({
67
+ statusCode: _response.error.statusCode,
68
+ body: _response.error.rawBody,
69
+ rawResponse: _response.rawResponse,
70
+ });
71
+ case "timeout":
72
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/order_schedules/v1/{order_schedule_id}.");
73
+ case "unknown":
74
+ throw new errors.ChrtError({
75
+ message: _response.error.errorMessage,
76
+ rawResponse: _response.rawResponse,
77
+ });
78
+ }
79
+ });
80
+ }
81
+ /**
82
+ * Lists order schedules for the caller's organization. | () -> (list[OrderScheduleStub])
83
+ *
84
+ * @param {OrderSchedules.RequestOptions} requestOptions - Request-specific configuration.
85
+ *
86
+ * @example
87
+ * await client.shipping.orderSchedules.listV1()
88
+ */
89
+ listV1(requestOptions) {
90
+ return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
91
+ }
92
+ __listV1(requestOptions) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ var _a, _b, _c, _d;
95
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
96
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
97
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "shipping/order_schedules/list/v1"),
98
+ method: "GET",
99
+ headers: _headers,
100
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
101
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
102
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
103
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
+ });
105
+ if (_response.ok) {
106
+ return { data: _response.body, rawResponse: _response.rawResponse };
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ throw new errors.ChrtError({
110
+ statusCode: _response.error.statusCode,
111
+ body: _response.error.body,
112
+ rawResponse: _response.rawResponse,
113
+ });
114
+ }
115
+ switch (_response.error.reason) {
116
+ case "non-json":
117
+ throw new errors.ChrtError({
118
+ statusCode: _response.error.statusCode,
119
+ body: _response.error.rawBody,
120
+ rawResponse: _response.rawResponse,
121
+ });
122
+ case "timeout":
123
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/order_schedules/list/v1.");
124
+ case "unknown":
125
+ throw new errors.ChrtError({
126
+ message: _response.error.errorMessage,
127
+ rawResponse: _response.rawResponse,
128
+ });
129
+ }
130
+ });
131
+ }
132
+ /**
133
+ * Creates an order schedule. | (OrderScheduleCreateReq) -> (PydanticObjectId)
134
+ *
135
+ * @param {Chrt.shipping.OrderScheduleCreateReq} request
136
+ * @param {OrderSchedules.RequestOptions} requestOptions - Request-specific configuration.
137
+ *
138
+ * @throws {@link Chrt.UnprocessableEntityError}
139
+ *
140
+ * @example
141
+ * await client.shipping.orderSchedules.createV1({
142
+ * name: "name"
143
+ * })
144
+ */
145
+ createV1(request, requestOptions) {
146
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
147
+ }
148
+ __createV1(request, requestOptions) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ var _a, _b, _c, _d;
151
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
153
+ 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, "shipping/order_schedules/create/v1"),
154
+ method: "POST",
155
+ headers: _headers,
156
+ contentType: "application/json",
157
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
158
+ requestType: "json",
159
+ body: request,
160
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
161
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
162
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
163
+ });
164
+ if (_response.ok) {
165
+ return { data: _response.body, rawResponse: _response.rawResponse };
166
+ }
167
+ if (_response.error.reason === "status-code") {
168
+ switch (_response.error.statusCode) {
169
+ case 422:
170
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
171
+ default:
172
+ throw new errors.ChrtError({
173
+ statusCode: _response.error.statusCode,
174
+ body: _response.error.body,
175
+ rawResponse: _response.rawResponse,
176
+ });
177
+ }
178
+ }
179
+ switch (_response.error.reason) {
180
+ case "non-json":
181
+ throw new errors.ChrtError({
182
+ statusCode: _response.error.statusCode,
183
+ body: _response.error.rawBody,
184
+ rawResponse: _response.rawResponse,
185
+ });
186
+ case "timeout":
187
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/order_schedules/create/v1.");
188
+ case "unknown":
189
+ throw new errors.ChrtError({
190
+ message: _response.error.errorMessage,
191
+ rawResponse: _response.rawResponse,
192
+ });
193
+ }
194
+ });
195
+ }
196
+ /**
197
+ * Echoes Temporal schedule specs to test SDK round trips. | (OrderScheduleRoundTripModelTestReq) -> (OrderScheduleRoundTripModelTestRes)
198
+ *
199
+ * @param {Chrt.shipping.OrderScheduleRoundTripModelTestReq} request
200
+ * @param {OrderSchedules.RequestOptions} requestOptions - Request-specific configuration.
201
+ *
202
+ * @throws {@link Chrt.UnprocessableEntityError}
203
+ *
204
+ * @example
205
+ * await client.shipping.orderSchedules.roundTripModelTestV1()
206
+ */
207
+ roundTripModelTestV1(request = {}, requestOptions) {
208
+ return core.HttpResponsePromise.fromPromise(this.__roundTripModelTestV1(request, requestOptions));
209
+ }
210
+ __roundTripModelTestV1() {
211
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
212
+ var _a, _b, _c, _d;
213
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
214
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
215
+ 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, "shipping/order_schedules/round_trip_model_test/v1"),
216
+ method: "POST",
217
+ headers: _headers,
218
+ contentType: "application/json",
219
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
220
+ requestType: "json",
221
+ body: request,
222
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
223
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
224
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
225
+ });
226
+ if (_response.ok) {
227
+ return {
228
+ data: _response.body,
229
+ rawResponse: _response.rawResponse,
230
+ };
231
+ }
232
+ if (_response.error.reason === "status-code") {
233
+ switch (_response.error.statusCode) {
234
+ case 422:
235
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
236
+ default:
237
+ throw new errors.ChrtError({
238
+ statusCode: _response.error.statusCode,
239
+ body: _response.error.body,
240
+ rawResponse: _response.rawResponse,
241
+ });
242
+ }
243
+ }
244
+ switch (_response.error.reason) {
245
+ case "non-json":
246
+ throw new errors.ChrtError({
247
+ statusCode: _response.error.statusCode,
248
+ body: _response.error.rawBody,
249
+ rawResponse: _response.rawResponse,
250
+ });
251
+ case "timeout":
252
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/order_schedules/round_trip_model_test/v1.");
253
+ case "unknown":
254
+ throw new errors.ChrtError({
255
+ message: _response.error.errorMessage,
256
+ rawResponse: _response.rawResponse,
257
+ });
258
+ }
259
+ });
260
+ }
261
+ /**
262
+ * Updates an order schedule. | (OrderScheduleUpdateReq) -> (bool)
263
+ *
264
+ * @param {string} orderScheduleId
265
+ * @param {Chrt.shipping.OrderScheduleUpdateReq} request
266
+ * @param {OrderSchedules.RequestOptions} requestOptions - Request-specific configuration.
267
+ *
268
+ * @throws {@link Chrt.UnprocessableEntityError}
269
+ *
270
+ * @example
271
+ * await client.shipping.orderSchedules.updateV1("order_schedule_id")
272
+ */
273
+ updateV1(orderScheduleId, request = {}, requestOptions) {
274
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(orderScheduleId, request, requestOptions));
275
+ }
276
+ __updateV1(orderScheduleId_1) {
277
+ return __awaiter(this, arguments, void 0, function* (orderScheduleId, request = {}, requestOptions) {
278
+ var _a, _b, _c, _d;
279
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
280
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
281
+ 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, `shipping/order_schedules/update/v1/${encodeURIComponent(orderScheduleId)}`),
282
+ method: "PATCH",
283
+ headers: _headers,
284
+ contentType: "application/json",
285
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
286
+ requestType: "json",
287
+ body: request,
288
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
289
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
290
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
291
+ });
292
+ if (_response.ok) {
293
+ return { data: _response.body, rawResponse: _response.rawResponse };
294
+ }
295
+ if (_response.error.reason === "status-code") {
296
+ switch (_response.error.statusCode) {
297
+ case 422:
298
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
299
+ default:
300
+ throw new errors.ChrtError({
301
+ statusCode: _response.error.statusCode,
302
+ body: _response.error.body,
303
+ rawResponse: _response.rawResponse,
304
+ });
305
+ }
306
+ }
307
+ switch (_response.error.reason) {
308
+ case "non-json":
309
+ throw new errors.ChrtError({
310
+ statusCode: _response.error.statusCode,
311
+ body: _response.error.rawBody,
312
+ rawResponse: _response.rawResponse,
313
+ });
314
+ case "timeout":
315
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/order_schedules/update/v1/{order_schedule_id}.");
316
+ case "unknown":
317
+ throw new errors.ChrtError({
318
+ message: _response.error.errorMessage,
319
+ rawResponse: _response.rawResponse,
320
+ });
321
+ }
322
+ });
323
+ }
324
+ /**
325
+ * Deletes an order schedule. | () -> (bool)
326
+ *
327
+ * @param {string} orderScheduleId
328
+ * @param {OrderSchedules.RequestOptions} requestOptions - Request-specific configuration.
329
+ *
330
+ * @throws {@link Chrt.UnprocessableEntityError}
331
+ *
332
+ * @example
333
+ * await client.shipping.orderSchedules.deleteV1("order_schedule_id")
334
+ */
335
+ deleteV1(orderScheduleId, requestOptions) {
336
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(orderScheduleId, requestOptions));
337
+ }
338
+ __deleteV1(orderScheduleId, requestOptions) {
339
+ return __awaiter(this, void 0, void 0, function* () {
340
+ var _a, _b, _c, _d;
341
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
342
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
343
+ 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, `shipping/order_schedules/delete/v1/${encodeURIComponent(orderScheduleId)}`),
344
+ method: "DELETE",
345
+ headers: _headers,
346
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
347
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
348
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
349
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
350
+ });
351
+ if (_response.ok) {
352
+ return { data: _response.body, rawResponse: _response.rawResponse };
353
+ }
354
+ if (_response.error.reason === "status-code") {
355
+ switch (_response.error.statusCode) {
356
+ case 422:
357
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
358
+ default:
359
+ throw new errors.ChrtError({
360
+ statusCode: _response.error.statusCode,
361
+ body: _response.error.body,
362
+ rawResponse: _response.rawResponse,
363
+ });
364
+ }
365
+ }
366
+ switch (_response.error.reason) {
367
+ case "non-json":
368
+ throw new errors.ChrtError({
369
+ statusCode: _response.error.statusCode,
370
+ body: _response.error.rawBody,
371
+ rawResponse: _response.rawResponse,
372
+ });
373
+ case "timeout":
374
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/order_schedules/delete/v1/{order_schedule_id}.");
375
+ case "unknown":
376
+ throw new errors.ChrtError({
377
+ message: _response.error.errorMessage,
378
+ rawResponse: _response.rawResponse,
379
+ });
380
+ }
381
+ });
382
+ }
383
+ _getAuthorizationHeader() {
384
+ return __awaiter(this, void 0, void 0, function* () {
385
+ const bearer = yield core.Supplier.get(this._options.token);
386
+ if (bearer != null) {
387
+ return `Bearer ${bearer}`;
388
+ }
389
+ return undefined;
390
+ });
391
+ }
392
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * name: "name"
8
+ * }
9
+ */
10
+ export interface OrderScheduleCreateReq {
11
+ name: string;
12
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface OrderScheduleRoundTripModelTestReq {
10
+ schedule_calendar_spec?: Chrt.ScheduleCalendarSpec | null;
11
+ schedule_interval_spec?: Chrt.ScheduleIntervalSpec | null;
12
+ }
@@ -5,6 +5,6 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface AgentReq {
9
- topics?: string[] | null;
8
+ export interface OrderScheduleUpdateReq {
9
+ name?: string | null;
10
10
  }
@@ -0,0 +1,3 @@
1
+ export { type OrderScheduleCreateReq } from "./OrderScheduleCreateReq.mjs";
2
+ export { type OrderScheduleRoundTripModelTestReq } from "./OrderScheduleRoundTripModelTestReq.mjs";
3
+ export { type OrderScheduleUpdateReq } from "./OrderScheduleUpdateReq.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -73,7 +73,6 @@ export declare class Expanded {
73
73
  * page: 1,
74
74
  * page_size: 1,
75
75
  * search: "search",
76
- * filter_status: ["draft"],
77
76
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
78
77
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
79
78
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -110,7 +109,6 @@ export declare class Expanded {
110
109
  * page: 1,
111
110
  * page_size: 1,
112
111
  * search: "search",
113
- * filter_status: ["draft"],
114
112
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
115
113
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
116
114
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -160,7 +160,6 @@ export class Expanded {
160
160
  * page: 1,
161
161
  * page_size: 1,
162
162
  * search: "search",
163
- * filter_status: ["draft"],
164
163
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
165
164
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
166
165
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -319,7 +318,6 @@ export class Expanded {
319
318
  * page: 1,
320
319
  * page_size: 1,
321
320
  * search: "search",
322
- * filter_status: ["draft"],
323
321
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
324
322
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
325
323
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,7 +10,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
- * filter_status: ["draft"],
14
13
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
15
14
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
16
15
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,7 +10,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
- * filter_status: ["draft"],
14
13
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
15
14
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
16
15
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -101,7 +101,6 @@ export declare class Expanded {
101
101
  * page: 1,
102
102
  * page_size: 1,
103
103
  * search: "search",
104
- * filter_status: ["draft"],
105
104
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
106
105
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
107
106
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -139,7 +138,6 @@ export declare class Expanded {
139
138
  * page: 1,
140
139
  * page_size: 1,
141
140
  * search: "search",
142
- * filter_status: ["draft"],
143
141
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
144
142
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
145
143
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -286,7 +286,6 @@ export class Expanded {
286
286
  * page: 1,
287
287
  * page_size: 1,
288
288
  * search: "search",
289
- * filter_status: ["draft"],
290
289
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
291
290
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
292
291
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -449,7 +448,6 @@ export class Expanded {
449
448
  * page: 1,
450
449
  * page_size: 1,
451
450
  * search: "search",
452
- * filter_status: ["draft"],
453
451
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
454
452
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
455
453
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,7 +10,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
- * filter_status: ["draft"],
14
13
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
15
14
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
16
15
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,7 +10,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
- * filter_status: ["draft"],
14
13
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
15
14
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
16
15
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -31,33 +31,33 @@ export declare class Dev {
31
31
  protected readonly _options: Dev.Options;
32
32
  constructor(_options?: Dev.Options);
33
33
  /**
34
- * Creates or updates a Temporal Schedule that runs the scheduled hello workflow for a driver. | authz: min_org_role=administrator | (ScheduledHelloPocReq) -> (ScheduledHelloPocRes)
34
+ * Creates or updates a Temporal Schedule that runs the scheduled ping workflow for developer diagnostics. | authz: min_org_role=administrator | (ScheduledPingReq) -> (ScheduledPingRes)
35
35
  *
36
- * @param {Chrt.utils.ScheduledHelloPocReq} request
36
+ * @param {Chrt.utils.ScheduledPingReq} request
37
37
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
38
38
  *
39
39
  * @throws {@link Chrt.UnprocessableEntityError}
40
40
  *
41
41
  * @example
42
- * await client.utils.dev.postAgentScheduledHelloPocV1({
43
- * driver_name: "driver_name"
44
- * })
42
+ * await client.utils.dev.postAgentPingScheduleV1()
45
43
  */
46
- postAgentScheduledHelloPocV1(request: Chrt.utils.ScheduledHelloPocReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.ScheduledHelloPocRes>;
47
- private __postAgentScheduledHelloPocV1;
44
+ postAgentPingScheduleV1(request?: Chrt.utils.ScheduledPingReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.ScheduledPingRes>;
45
+ private __postAgentPingScheduleV1;
48
46
  /**
49
- * Runs a customer service agent that responds with logistics fun facts (real order data not yet available). | (AgentReq) -> (AgentRes)
47
+ * Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response. | (PingOpenAIReq) -> (PingOpenAIRes)
50
48
  *
51
- * @param {Chrt.utils.AgentReq} request
49
+ * @param {Chrt.utils.PingOpenAiReq} request
52
50
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
53
51
  *
54
52
  * @throws {@link Chrt.UnprocessableEntityError}
55
53
  *
56
54
  * @example
57
- * await client.utils.dev.postAgentV1()
55
+ * await client.utils.dev.postAgentOpenaiPingV1({
56
+ * prompt: "prompt"
57
+ * })
58
58
  */
59
- postAgentV1(request?: Chrt.utils.AgentReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.AgentRes>;
60
- private __postAgentV1;
59
+ postAgentOpenaiPingV1(request: Chrt.utils.PingOpenAiReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.PingOpenAiRes>;
60
+ private __postAgentOpenaiPingV1;
61
61
  /**
62
62
  * Runs a lightweight Temporal workflow and activity round trip for developer diagnostics. | (PingReq) -> (PingRes)
63
63
  *