@sentry/api 0.212.0 → 0.214.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/dist/sdk.gen.d.ts CHANGED
@@ -142,6 +142,11 @@ export declare const listOrganizationEvents: <ThrowOnError extends boolean = fal
142
142
  *
143
143
  * This endpoint can return timeseries for either 1 or many axis, and results grouped to the top events depending
144
144
  * on the parameters passed
145
+ *
146
+ * **Note**: For queries extending past `30d`, spanning billions of rows, or running on projects with low
147
+ * sample rates, the aggregation `yAxis=count_unique()` and filters on high-cardinality
148
+ * fields (such as `query=user.id:bc`) will not return accurate results. Use these queries for rough
149
+ * estimation only.
145
150
  */
146
151
  export declare const listOrganizationEventsTimeseries: <ThrowOnError extends boolean = false>(options: Options<ListOrganizationEventsTimeseriesData, ThrowOnError>) => import("./client").RequestResult<ListOrganizationEventsTimeseriesResponses, ListOrganizationEventsTimeseriesErrors, ThrowOnError, "fields">;
147
152
  /**
@@ -13033,7 +13033,22 @@ export type ListOrganizationEventsTimeseriesData = {
13033
13033
  */
13034
13034
  groupBy?: Array<string>;
13035
13035
  /**
13036
- * The aggregate field to create the timeseries for, defaults to `count()` when not included
13036
+ * The aggregate field to create the timeseries for, defaults to `count()` when
13037
+ * not included.
13038
+ * - `count()` - Total count of events over the period.
13039
+ * - `avg(field)` - Average value of the field over the period.
13040
+ * - `pXX(field)` - Percentile value of the field over the period. One of: `p50`, `p75`, `p90`, `p95`, `p99`, `p100`.
13041
+ * - `sum(field)` - Sum of all values for the field over the period.
13042
+ * - `min(field)` - Lowest value observed for the field over the period.
13043
+ * - `max(field)` - Highest value observed for the field over the period.
13044
+ * - `count_unique(field)` - Count of unique values observed for the field over the period. See *Note:* regarding accuracy on sampled data.
13045
+ * - `epm` - Average number of events received per minute.
13046
+ * - `eps` - Average number of events received per second.
13047
+ * - `failure_rate()` - Percentage of events whose `status` indicates failure.
13048
+ * - `failure_count()` - Total count of events with an error `status` over period.
13049
+ * - `performance_score(field)` - Web Vitals performance score for the selected measurement.
13050
+ * - `opportunity_score(field)` - Web Vitals opportunity score for the selected measurement.
13051
+ *
13037
13052
  */
13038
13053
  yAxis?: string;
13039
13054
  /**
@@ -19295,9 +19310,9 @@ export type ListOrganizationReplaySelectorsData = {
19295
19310
  */
19296
19311
  end?: string;
19297
19312
  /**
19298
- * The ID of the projects to filter by.
19313
+ * A list of project IDs or slugs to filter by.
19299
19314
  */
19300
- project?: Array<number>;
19315
+ project?: Array<number | string>;
19301
19316
  /**
19302
19317
  * A list of project slugs to filter your results by.
19303
19318
  */
@@ -19401,9 +19416,9 @@ export type ListOrganizationReplaysData = {
19401
19416
  */
19402
19417
  field?: Array<'activity' | 'browser' | 'count_dead_clicks' | 'count_errors' | 'count_rage_clicks' | 'count_segments' | 'count_urls' | 'device' | 'dist' | 'duration' | 'environment' | 'error_ids' | 'finished_at' | 'id' | 'is_archived' | 'os' | 'platform' | 'project_id' | 'releases' | 'sdk' | 'started_at' | 'tags' | 'trace_ids' | 'urls' | 'user' | 'clicks' | 'info_ids' | 'warning_ids' | 'count_warnings' | 'count_infos' | 'has_viewed'>;
19403
19418
  /**
19404
- * The ID of the projects to filter by.
19419
+ * A list of project IDs or slugs to filter by.
19405
19420
  */
19406
- project?: Array<number>;
19421
+ project?: Array<number | string>;
19407
19422
  /**
19408
19423
  * A list of project slugs to filter your results by.
19409
19424
  */
@@ -19562,9 +19577,9 @@ export type GetOrganizationReplayData = {
19562
19577
  */
19563
19578
  field?: Array<'activity' | 'browser' | 'count_dead_clicks' | 'count_errors' | 'count_rage_clicks' | 'count_segments' | 'count_urls' | 'device' | 'dist' | 'duration' | 'environment' | 'error_ids' | 'finished_at' | 'id' | 'is_archived' | 'os' | 'platform' | 'project_id' | 'releases' | 'sdk' | 'started_at' | 'tags' | 'trace_ids' | 'urls' | 'user' | 'clicks' | 'info_ids' | 'warning_ids' | 'count_warnings' | 'count_infos' | 'has_viewed'>;
19564
19579
  /**
19565
- * The ID of the projects to filter by.
19580
+ * A list of project IDs or slugs to filter by.
19566
19581
  */
19567
- project?: Array<number>;
19582
+ project?: Array<number | string>;
19568
19583
  /**
19569
19584
  * A list of project slugs to filter your results by.
19570
19585
  */
package/dist/zod.gen.d.ts CHANGED
@@ -47017,7 +47017,7 @@ export declare const zListOrganizationReplaySelectorsData: z.ZodObject<{
47017
47017
  statsPeriod: z.ZodOptional<z.ZodString>;
47018
47018
  start: z.ZodOptional<z.ZodString>;
47019
47019
  end: z.ZodOptional<z.ZodString>;
47020
- project: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
47020
+ project: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>;
47021
47021
  projectSlug: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47022
47022
  sort: z.ZodOptional<z.ZodString>;
47023
47023
  sortBy: z.ZodOptional<z.ZodString>;
@@ -47029,7 +47029,7 @@ export declare const zListOrganizationReplaySelectorsData: z.ZodObject<{
47029
47029
  sort?: string | undefined;
47030
47030
  query?: string | undefined;
47031
47031
  environment?: string[] | undefined;
47032
- project?: number[] | undefined;
47032
+ project?: (string | number)[] | undefined;
47033
47033
  cursor?: string | undefined;
47034
47034
  sortBy?: string | undefined;
47035
47035
  per_page?: number | undefined;
@@ -47042,7 +47042,7 @@ export declare const zListOrganizationReplaySelectorsData: z.ZodObject<{
47042
47042
  sort?: string | undefined;
47043
47043
  query?: string | undefined;
47044
47044
  environment?: string[] | undefined;
47045
- project?: number[] | undefined;
47045
+ project?: (string | number)[] | undefined;
47046
47046
  cursor?: string | undefined;
47047
47047
  sortBy?: string | undefined;
47048
47048
  per_page?: number | undefined;
@@ -47060,7 +47060,7 @@ export declare const zListOrganizationReplaySelectorsData: z.ZodObject<{
47060
47060
  sort?: string | undefined;
47061
47061
  query?: string | undefined;
47062
47062
  environment?: string[] | undefined;
47063
- project?: number[] | undefined;
47063
+ project?: (string | number)[] | undefined;
47064
47064
  cursor?: string | undefined;
47065
47065
  sortBy?: string | undefined;
47066
47066
  per_page?: number | undefined;
@@ -47079,7 +47079,7 @@ export declare const zListOrganizationReplaySelectorsData: z.ZodObject<{
47079
47079
  sort?: string | undefined;
47080
47080
  query?: string | undefined;
47081
47081
  environment?: string[] | undefined;
47082
- project?: number[] | undefined;
47082
+ project?: (string | number)[] | undefined;
47083
47083
  cursor?: string | undefined;
47084
47084
  sortBy?: string | undefined;
47085
47085
  per_page?: number | undefined;
@@ -47212,7 +47212,7 @@ export declare const zListOrganizationReplaysData: z.ZodObject<{
47212
47212
  start: z.ZodOptional<z.ZodString>;
47213
47213
  end: z.ZodOptional<z.ZodString>;
47214
47214
  field: z.ZodOptional<z.ZodArray<z.ZodEnum<["activity", "browser", "count_dead_clicks", "count_errors", "count_rage_clicks", "count_segments", "count_urls", "device", "dist", "duration", "environment", "error_ids", "finished_at", "id", "is_archived", "os", "platform", "project_id", "releases", "sdk", "started_at", "tags", "trace_ids", "urls", "user", "clicks", "info_ids", "warning_ids", "count_warnings", "count_infos", "has_viewed"]>, "many">>;
47215
- project: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
47215
+ project: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>;
47216
47216
  projectSlug: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47217
47217
  environment: z.ZodOptional<z.ZodString>;
47218
47218
  sort: z.ZodOptional<z.ZodString>;
@@ -47225,7 +47225,7 @@ export declare const zListOrganizationReplaysData: z.ZodObject<{
47225
47225
  sort?: string | undefined;
47226
47226
  query?: string | undefined;
47227
47227
  environment?: string | undefined;
47228
- project?: number[] | undefined;
47228
+ project?: (string | number)[] | undefined;
47229
47229
  cursor?: string | undefined;
47230
47230
  sortBy?: string | undefined;
47231
47231
  per_page?: number | undefined;
@@ -47239,7 +47239,7 @@ export declare const zListOrganizationReplaysData: z.ZodObject<{
47239
47239
  sort?: string | undefined;
47240
47240
  query?: string | undefined;
47241
47241
  environment?: string | undefined;
47242
- project?: number[] | undefined;
47242
+ project?: (string | number)[] | undefined;
47243
47243
  cursor?: string | undefined;
47244
47244
  sortBy?: string | undefined;
47245
47245
  per_page?: number | undefined;
@@ -47258,7 +47258,7 @@ export declare const zListOrganizationReplaysData: z.ZodObject<{
47258
47258
  sort?: string | undefined;
47259
47259
  query?: string | undefined;
47260
47260
  environment?: string | undefined;
47261
- project?: number[] | undefined;
47261
+ project?: (string | number)[] | undefined;
47262
47262
  cursor?: string | undefined;
47263
47263
  sortBy?: string | undefined;
47264
47264
  per_page?: number | undefined;
@@ -47278,7 +47278,7 @@ export declare const zListOrganizationReplaysData: z.ZodObject<{
47278
47278
  sort?: string | undefined;
47279
47279
  query?: string | undefined;
47280
47280
  environment?: string | undefined;
47281
- project?: number[] | undefined;
47281
+ project?: (string | number)[] | undefined;
47282
47282
  cursor?: string | undefined;
47283
47283
  sortBy?: string | undefined;
47284
47284
  per_page?: number | undefined;
@@ -47695,7 +47695,7 @@ export declare const zGetOrganizationReplayData: z.ZodObject<{
47695
47695
  start: z.ZodOptional<z.ZodString>;
47696
47696
  end: z.ZodOptional<z.ZodString>;
47697
47697
  field: z.ZodOptional<z.ZodArray<z.ZodEnum<["activity", "browser", "count_dead_clicks", "count_errors", "count_rage_clicks", "count_segments", "count_urls", "device", "dist", "duration", "environment", "error_ids", "finished_at", "id", "is_archived", "os", "platform", "project_id", "releases", "sdk", "started_at", "tags", "trace_ids", "urls", "user", "clicks", "info_ids", "warning_ids", "count_warnings", "count_infos", "has_viewed"]>, "many">>;
47698
- project: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
47698
+ project: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>;
47699
47699
  projectSlug: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47700
47700
  environment: z.ZodOptional<z.ZodString>;
47701
47701
  sort: z.ZodOptional<z.ZodString>;
@@ -47708,7 +47708,7 @@ export declare const zGetOrganizationReplayData: z.ZodObject<{
47708
47708
  sort?: string | undefined;
47709
47709
  query?: string | undefined;
47710
47710
  environment?: string | undefined;
47711
- project?: number[] | undefined;
47711
+ project?: (string | number)[] | undefined;
47712
47712
  cursor?: string | undefined;
47713
47713
  sortBy?: string | undefined;
47714
47714
  per_page?: number | undefined;
@@ -47722,7 +47722,7 @@ export declare const zGetOrganizationReplayData: z.ZodObject<{
47722
47722
  sort?: string | undefined;
47723
47723
  query?: string | undefined;
47724
47724
  environment?: string | undefined;
47725
- project?: number[] | undefined;
47725
+ project?: (string | number)[] | undefined;
47726
47726
  cursor?: string | undefined;
47727
47727
  sortBy?: string | undefined;
47728
47728
  per_page?: number | undefined;
@@ -47742,7 +47742,7 @@ export declare const zGetOrganizationReplayData: z.ZodObject<{
47742
47742
  sort?: string | undefined;
47743
47743
  query?: string | undefined;
47744
47744
  environment?: string | undefined;
47745
- project?: number[] | undefined;
47745
+ project?: (string | number)[] | undefined;
47746
47746
  cursor?: string | undefined;
47747
47747
  sortBy?: string | undefined;
47748
47748
  per_page?: number | undefined;
@@ -47763,7 +47763,7 @@ export declare const zGetOrganizationReplayData: z.ZodObject<{
47763
47763
  sort?: string | undefined;
47764
47764
  query?: string | undefined;
47765
47765
  environment?: string | undefined;
47766
- project?: number[] | undefined;
47766
+ project?: (string | number)[] | undefined;
47767
47767
  cursor?: string | undefined;
47768
47768
  sortBy?: string | undefined;
47769
47769
  per_page?: number | undefined;
package/dist/zod.js CHANGED
@@ -18325,7 +18325,7 @@ var zListOrganizationReplaySelectorsData = z.object({
18325
18325
  statsPeriod: z.string().min(1).optional(),
18326
18326
  start: z.string().datetime().optional(),
18327
18327
  end: z.string().datetime().optional(),
18328
- project: z.array(z.number().int()).optional(),
18328
+ project: z.array(z.union([z.number().int(), z.string()])).optional(),
18329
18329
  projectSlug: z.array(z.string()).optional(),
18330
18330
  sort: z.string().min(1).optional(),
18331
18331
  sortBy: z.string().min(1).optional(),
@@ -18396,7 +18396,7 @@ var zListOrganizationReplaysData = z.object({
18396
18396
  "count_infos",
18397
18397
  "has_viewed"
18398
18398
  ])).optional(),
18399
- project: z.array(z.number().int()).optional(),
18399
+ project: z.array(z.union([z.number().int(), z.string()])).optional(),
18400
18400
  projectSlug: z.array(z.string()).optional(),
18401
18401
  environment: z.string().min(1).optional(),
18402
18402
  sort: z.string().min(1).optional(),
@@ -18632,7 +18632,7 @@ var zGetOrganizationReplayData = z.object({
18632
18632
  "count_infos",
18633
18633
  "has_viewed"
18634
18634
  ])).optional(),
18635
- project: z.array(z.number().int()).optional(),
18635
+ project: z.array(z.union([z.number().int(), z.string()])).optional(),
18636
18636
  projectSlug: z.array(z.string()).optional(),
18637
18637
  environment: z.string().min(1).optional(),
18638
18638
  sort: z.string().min(1).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.212.0",
3
+ "version": "0.214.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",