@zapier/zapier-sdk 0.56.1 → 0.56.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.56.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 884d0fc: Update ensureTriggerInbox to use new PUT endpoint in upstream Trigger Inbox API
8
+
3
9
  ## 0.56.1
4
10
 
5
11
  ### Patch Changes
@@ -2885,7 +2885,7 @@ async function invalidateCredentialsToken(options) {
2885
2885
  }
2886
2886
 
2887
2887
  // src/sdk-version.ts
2888
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.56.1" : void 0) || "unknown";
2888
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.56.2" : void 0) || "unknown";
2889
2889
 
2890
2890
  // src/utils/open-url.ts
2891
2891
  var nodePrefix = "node:";
@@ -9213,7 +9213,7 @@ var ensureTriggerInboxPlugin = definePlugin(
9213
9213
  if (notificationUrl !== void 0) {
9214
9214
  requestBody.notification_url = notificationUrl;
9215
9215
  }
9216
- const rawResponse = await api.post(
9216
+ const rawResponse = await api.put(
9217
9217
  "/trigger-inbox/api/v1/inboxes",
9218
9218
  requestBody,
9219
9219
  {
@@ -2883,7 +2883,7 @@ async function invalidateCredentialsToken(options) {
2883
2883
  }
2884
2884
 
2885
2885
  // src/sdk-version.ts
2886
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.56.1" : void 0) || "unknown";
2886
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.56.2" : void 0) || "unknown";
2887
2887
 
2888
2888
  // src/utils/open-url.ts
2889
2889
  var nodePrefix = "node:";
@@ -9211,7 +9211,7 @@ var ensureTriggerInboxPlugin = definePlugin(
9211
9211
  if (notificationUrl !== void 0) {
9212
9212
  requestBody.notification_url = notificationUrl;
9213
9213
  }
9214
- const rawResponse = await api.post(
9214
+ const rawResponse = await api.put(
9215
9215
  "/trigger-inbox/api/v1/inboxes",
9216
9216
  requestBody,
9217
9217
  {
package/dist/index.cjs CHANGED
@@ -6322,7 +6322,7 @@ async function invalidateCredentialsToken(options) {
6322
6322
  }
6323
6323
 
6324
6324
  // src/sdk-version.ts
6325
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.56.1" : void 0) || "unknown";
6325
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.56.2" : void 0) || "unknown";
6326
6326
 
6327
6327
  // src/utils/open-url.ts
6328
6328
  var nodePrefix = "node:";
package/dist/index.mjs CHANGED
@@ -6320,7 +6320,7 @@ async function invalidateCredentialsToken(options) {
6320
6320
  }
6321
6321
 
6322
6322
  // src/sdk-version.ts
6323
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.56.1" : void 0) || "unknown";
6323
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.56.2" : void 0) || "unknown";
6324
6324
 
6325
6325
  // src/utils/open-url.ts
6326
6326
  var nodePrefix = "node:";
@@ -46,7 +46,7 @@ export const ensureTriggerInboxPlugin = definePlugin((sdk) => createPluginMethod
46
46
  if (notificationUrl !== undefined) {
47
47
  requestBody.notification_url = notificationUrl;
48
48
  }
49
- const rawResponse = await api.post("/trigger-inbox/api/v1/inboxes", requestBody, {
49
+ const rawResponse = await api.put("/trigger-inbox/api/v1/inboxes", requestBody, {
50
50
  authRequired: true,
51
51
  customErrorHandler: ({ status, data }) => {
52
52
  if (status === 409) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk",
3
- "version": "0.56.1",
3
+ "version": "0.56.2",
4
4
  "description": "Complete Zapier SDK - combines all Zapier SDK packages",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",