@sentry/api 1.17.0 → 1.19.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
@@ -287,6 +287,8 @@ const project = zGetProjectResponse.parse(input);
287
287
 
288
288
  `valibot` and `zod` are optional peer dependencies. Install neither when you only need the generated client and TypeScript types, or install the validator used by your application. The `@sentry/api/valibot` entry requires Valibot 1; its optional peer uses a wildcard because npm applies peer constraints to the whole package, including consumers that never import this entry. The `@sentry/api/zod` entry requires Zod 4.6.6 or later.
289
289
 
290
+ Schemas nested in a top-level schema, such as object fields, carry their OpenAPI description: read it with `v.getDescription(vDeployResponse.entries.id)` or `zDeployResponse.shape.id.description`. Top-level Valibot schemas have no description pipe, so `v.pick`, `v.omit`, `v.partial` and `v.required` accept them; their description is in their JSDoc comment.
291
+
290
292
  ## Error handling
291
293
 
292
294
  HTTP failures use `SentryApiError`, whether returned in `result.error` or thrown with `throwOnError: true`. It preserves the status, parsed `body`, exact `rawBody` text, `request`, and `response` (including headers). The transport reads the error body once; consumers do not need to clone or reread the response. Error bodies without valid JSON remain strings.
@@ -504,7 +504,7 @@ export type ActionFilterValidator = {
504
504
  /**
505
505
  * The priority of the opsgenie action
506
506
  */
507
- priority?: 'P3' | 'P2' | 'P4' | 'P1' | 'P5';
507
+ priority?: 'P3' | 'P1' | 'P5' | 'P4' | 'P2';
508
508
  };
509
509
  /**
510
510
  * The configuration schema for a on-call Action
@@ -15217,7 +15217,7 @@ export type WorkflowAction = {
15217
15217
  /**
15218
15218
  * The priority of the opsgenie action
15219
15219
  */
15220
- priority?: 'P3' | 'P2' | 'P4' | 'P1' | 'P5';
15220
+ priority?: 'P3' | 'P1' | 'P5' | 'P4' | 'P2';
15221
15221
  };
15222
15222
  /**
15223
15223
  * The configuration schema for a on-call Action
@@ -16593,7 +16593,7 @@ export type WorkflowValidator = {
16593
16593
  /**
16594
16594
  * The priority of the opsgenie action
16595
16595
  */
16596
- priority?: 'P3' | 'P2' | 'P4' | 'P1' | 'P5';
16596
+ priority?: 'P3' | 'P1' | 'P5' | 'P4' | 'P2';
16597
16597
  };
16598
16598
  /**
16599
16599
  * The configuration schema for a on-call Action
@@ -35845,7 +35845,7 @@ export type CreateOrganizationWorkflowData = {
35845
35845
  /**
35846
35846
  * The priority of the opsgenie action
35847
35847
  */
35848
- priority?: 'P3' | 'P2' | 'P4' | 'P1' | 'P5';
35848
+ priority?: 'P3' | 'P1' | 'P5' | 'P4' | 'P2';
35849
35849
  };
35850
35850
  /**
35851
35851
  * The configuration schema for a on-call Action
@@ -37587,7 +37587,7 @@ export type UpdateOrganizationWorkflowData = {
37587
37587
  /**
37588
37588
  * The priority of the opsgenie action
37589
37589
  */
37590
- priority?: 'P3' | 'P2' | 'P4' | 'P1' | 'P5';
37590
+ priority?: 'P3' | 'P1' | 'P5' | 'P4' | 'P2';
37591
37591
  };
37592
37592
  /**
37593
37593
  * The configuration schema for a on-call Action