@sentry/api 0.422.0 → 0.423.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
@@ -90,6 +90,7 @@ A few operations send a query parameter by default to skip expensive work most c
90
90
  | Operation | Default | Effect |
91
91
  | --- | --- | --- |
92
92
  | `getOrganizationIssueEvent` | `collapse: ["adjacentEvents"]` | Skips the next/previous event lookups; `nextEventID` and `previousEventID` are `null` |
93
+ | `getProjectEvent` | `collapse: ["adjacentEvents"]` | Skips the next/previous event lookups; `nextEventID` and `previousEventID` are `null` |
93
94
 
94
95
  The default applies only when the parameter is omitted or `undefined`. Any value you pass replaces it, and an empty list sends nothing:
95
96
 
package/dist/index.js CHANGED
@@ -1890,7 +1890,8 @@ var listProjectEvents = (options) => (options.client ?? client).get({
1890
1890
  var getProjectEvent = (options) => (options.client ?? client).get({
1891
1891
  security: [{ scheme: "bearer", type: "http" }],
1892
1892
  url: "/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/",
1893
- ...options
1893
+ ...options,
1894
+ query: { ...options?.query, collapse: options?.query?.["collapse"] ?? ["adjacentEvents"] }
1894
1895
  });
1895
1896
  var listProjectEventAttachments = (options) => (options.client ?? client).get({
1896
1897
  security: [{ scheme: "bearer", type: "http" }],
package/dist/sdk.gen.d.ts CHANGED
@@ -1440,6 +1440,8 @@ export declare const listProjectEvents: <ThrowOnError extends boolean = false>(o
1440
1440
  * Retrieve an Event for a Project
1441
1441
  *
1442
1442
  * Return details on an individual event.
1443
+ *
1444
+ * By default, the SDK sends `collapse: ["adjacentEvents"]`, which skips looking up the neighboring events (`nextEventID` and `previousEventID` are `null`). Passing the parameter replaces the default; `collapse: []` sends none.
1443
1445
  */
1444
1446
  export declare const getProjectEvent: <ThrowOnError extends boolean = false>(options: Options<GetProjectEventData, ThrowOnError>) => import("./client").RequestResult<GetProjectEventResponses, GetProjectEventErrors, ThrowOnError, "fields">;
1445
1447
  /**
@@ -1436,6 +1436,8 @@ export declare function createSentryClient(config?: Config): {
1436
1436
  * Retrieve an Event for a Project
1437
1437
  *
1438
1438
  * Return details on an individual event.
1439
+ *
1440
+ * By default, the SDK sends `collapse: ["adjacentEvents"]`, which skips looking up the neighboring events (`nextEventID` and `previousEventID` are `null`). Passing the parameter replaces the default; `collapse: []` sends none.
1439
1441
  */
1440
1442
  readonly getProjectEvent: <ThrowOnError extends boolean = false>(options: Omit<NonNullable<sdk.Options<types.GetProjectEventData, ThrowOnError>>, "client">) => import("./client").RequestResult<types.GetProjectEventResponses, types.GetProjectEventErrors, ThrowOnError, "fields">;
1441
1443
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.422.0",
3
+ "version": "0.423.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",