@theholocron/sentry-client 1.54.2 → 1.56.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.
package/README.md CHANGED
@@ -69,6 +69,7 @@ await sentry.workflows.create("my-org", {
69
69
  },
70
70
  ],
71
71
  });
72
+ await sentry.workflows.delete("my-org", "6236202"); // remove one
72
73
  ```
73
74
 
74
75
  ## Auth
package/dist/index.d.mts CHANGED
@@ -168,6 +168,7 @@ declare function createSentryClient(opts: SentryClientOptions): {
168
168
  get: (org: string, id: string) => Promise<SentryWorkflow>;
169
169
  create: (org: string, input: SentryWorkflowInput) => Promise<SentryWorkflow>;
170
170
  update: (org: string, id: string, input: SentryWorkflowInput) => Promise<SentryWorkflow>;
171
+ delete: (org: string, id: string) => Promise<void>;
171
172
  detectors: (org: string) => Promise<SentryDetector[]>;
172
173
  };
173
174
  };
package/dist/index.mjs CHANGED
@@ -108,6 +108,8 @@ function workflows(rest) {
108
108
  method: "PUT",
109
109
  body: input
110
110
  }),
111
+ /** Remove a workflow. Sentry answers 204 with no body. */
112
+ delete: (org, id) => rest.request(`/organizations/${seg(org)}/workflows/${seg(id)}/`, { method: "DELETE" }),
111
113
  /** The detectors of an organization: what a workflow is attached to. */
112
114
  detectors: (org) => rest.request(`/organizations/${seg(org)}/detectors/`)
113
115
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/sentry-client",
3
- "version": "1.54.2",
3
+ "version": "1.56.0",
4
4
  "description": "A TypeScript client for the Sentry management API",
5
5
  "keywords": [
6
6
  "sentry",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@theholocron/observability": "^0.3.0",
36
- "@theholocron/http-client": "^1.54.2"
36
+ "@theholocron/http-client": "^1.56.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@theholocron/cli": "5.0.0-alpha.79",