@trigger.dev/sdk 2.3.15 → 2.3.17

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.
package/dist/index.mjs CHANGED
@@ -258,7 +258,7 @@ __name(_Job, "Job");
258
258
  var Job = _Job;
259
259
 
260
260
  // package.json
261
- var version = "2.3.15";
261
+ var version = "2.3.17";
262
262
 
263
263
  // src/errors.ts
264
264
  var _ResumeWithTaskError = class _ResumeWithTaskError {
@@ -2106,7 +2106,7 @@ var _ApiClient = class _ApiClient {
2106
2106
  __privateGet(this, _logger).debug("Getting Event", {
2107
2107
  eventId
2108
2108
  });
2109
- return await zodfetch(GetEventSchema, `${__privateGet(this, _apiUrl)}/api/v1/events/${eventId}`, {
2109
+ return await zodfetch(GetEventSchema, `${__privateGet(this, _apiUrl)}/api/v2/events/${eventId}`, {
2110
2110
  method: "GET",
2111
2111
  headers: {
2112
2112
  Authorization: `Bearer ${apiKey}`
@@ -2118,7 +2118,7 @@ var _ApiClient = class _ApiClient {
2118
2118
  __privateGet(this, _logger).debug("Getting Run", {
2119
2119
  runId
2120
2120
  });
2121
- return await zodfetch(GetRunSchema, urlWithSearchParams(`${__privateGet(this, _apiUrl)}/api/v1/runs/${runId}`, options), {
2121
+ return await zodfetch(GetRunSchema, urlWithSearchParams(`${__privateGet(this, _apiUrl)}/api/v2/runs/${runId}`, options), {
2122
2122
  method: "GET",
2123
2123
  headers: {
2124
2124
  Authorization: `Bearer ${apiKey}`
@@ -2143,7 +2143,7 @@ var _ApiClient = class _ApiClient {
2143
2143
  __privateGet(this, _logger).debug("Getting Run statuses", {
2144
2144
  runId
2145
2145
  });
2146
- return await zodfetch(GetRunStatusesSchema, `${__privateGet(this, _apiUrl)}/api/v1/runs/${runId}/statuses`, {
2146
+ return await zodfetch(GetRunStatusesSchema, `${__privateGet(this, _apiUrl)}/api/v2/runs/${runId}/statuses`, {
2147
2147
  method: "GET",
2148
2148
  headers: {
2149
2149
  Authorization: `Bearer ${apiKey}`