@sentry/api 0.145.0 → 0.147.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.
@@ -1946,7 +1946,7 @@ export type DataForwarderResponse = {
1946
1946
  provider: string;
1947
1947
  config: {
1948
1948
  [key: string]: string;
1949
- };
1949
+ } | null;
1950
1950
  projectConfigs: Array<{
1951
1951
  id: string;
1952
1952
  isEnabled: boolean;
@@ -3292,7 +3292,7 @@ export type ListDataForwarderResponse = Array<{
3292
3292
  provider: string;
3293
3293
  config: {
3294
3294
  [key: string]: string;
3295
- };
3295
+ } | null;
3296
3296
  projectConfigs: Array<{
3297
3297
  id: string;
3298
3298
  isEnabled: boolean;
@@ -13073,9 +13073,16 @@ export type QueryExploreEventsInTableFormatData = {
13073
13073
  */
13074
13074
  field: Array<string>;
13075
13075
  /**
13076
- * Which dataset to query, changing datasets changes the available fields that can be queried
13076
+ * Which dataset to query. The chosen dataset determines which fields are queryable.
13077
+ * - `errors` - Error events.
13078
+ * - `logs` - Structured log events.
13079
+ * - `profile_functions` - Function-level Profiling data.
13080
+ * - `spans` - Distributed tracing span events.
13081
+ * - `tracemetrics` - Application Metrics.
13082
+ * - `uptime_results` - Uptime monitoring check results.
13083
+ *
13077
13084
  */
13078
- dataset: 'discover' | 'errors' | 'logs' | 'profile_functions' | 'spans' | 'transactions' | 'uptime_results';
13085
+ dataset: 'errors' | 'logs' | 'profile_functions' | 'spans' | 'tracemetrics' | 'uptime_results';
13079
13086
  /**
13080
13087
  * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
13081
13088
  */
@@ -13165,9 +13172,16 @@ export type QueryExploreEventsInTimeseriesFormatData = {
13165
13172
  };
13166
13173
  query: {
13167
13174
  /**
13168
- * Which dataset to query, changing datasets changes the available fields that can be queried
13175
+ * Which dataset to query. The chosen dataset determines which fields are queryable.
13176
+ * - `errors` - Error events.
13177
+ * - `logs` - Structured log events.
13178
+ * - `profile_functions` - Function-level Profiling data.
13179
+ * - `spans` - Distributed tracing span events.
13180
+ * - `tracemetrics` - Application Metrics.
13181
+ * - `uptime_results` - Uptime monitoring check results.
13182
+ *
13169
13183
  */
13170
- dataset: 'discover' | 'errors' | 'logs' | 'profile_functions' | 'spans' | 'transactions' | 'uptime_results';
13184
+ dataset: 'errors' | 'logs' | 'profile_functions' | 'spans' | 'tracemetrics' | 'uptime_results';
13171
13185
  /**
13172
13186
  * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
13173
13187
  */
@@ -13513,7 +13527,7 @@ export type RetrieveDataForwardersForAnOrganizationResponses = {
13513
13527
  provider: string;
13514
13528
  config: {
13515
13529
  [key: string]: string;
13516
- };
13530
+ } | null;
13517
13531
  projectConfigs: Array<{
13518
13532
  id: string;
13519
13533
  isEnabled: boolean;
@@ -13606,7 +13620,7 @@ export type CreateADataForwarderForAnOrganizationResponses = {
13606
13620
  provider: string;
13607
13621
  config: {
13608
13622
  [key: string]: string;
13609
- };
13623
+ } | null;
13610
13624
  projectConfigs: Array<{
13611
13625
  id: string;
13612
13626
  isEnabled: boolean;
@@ -13731,7 +13745,7 @@ export type UpdateADataForwarderForAnOrganizationResponses = {
13731
13745
  provider: string;
13732
13746
  config: {
13733
13747
  [key: string]: string;
13734
- };
13748
+ } | null;
13735
13749
  projectConfigs: Array<{
13736
13750
  id: string;
13737
13751
  isEnabled: boolean;
package/dist/zod.gen.d.ts CHANGED
@@ -3431,7 +3431,7 @@ export declare const zDataForwarderResponse: z.ZodObject<{
3431
3431
  slug: string;
3432
3432
  }>, "many">;
3433
3433
  provider: z.ZodString;
3434
- config: z.ZodRecord<z.ZodString, z.ZodString>;
3434
+ config: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodNull]>;
3435
3435
  projectConfigs: z.ZodArray<z.ZodObject<{
3436
3436
  id: z.ZodString;
3437
3437
  isEnabled: z.ZodBoolean;
@@ -3485,7 +3485,7 @@ export declare const zDataForwarderResponse: z.ZodObject<{
3485
3485
  }, "strip", z.ZodTypeAny, {
3486
3486
  id: string;
3487
3487
  organizationId: string;
3488
- config: Record<string, string>;
3488
+ config: Record<string, string> | null;
3489
3489
  dateAdded: string;
3490
3490
  dateUpdated: string;
3491
3491
  provider: string;
@@ -3513,7 +3513,7 @@ export declare const zDataForwarderResponse: z.ZodObject<{
3513
3513
  }, {
3514
3514
  id: string;
3515
3515
  organizationId: string;
3516
- config: Record<string, string>;
3516
+ config: Record<string, string> | null;
3517
3517
  dateAdded: string;
3518
3518
  dateUpdated: string;
3519
3519
  provider: string;
@@ -7368,7 +7368,7 @@ export declare const zListDataForwarderResponse: z.ZodArray<z.ZodObject<{
7368
7368
  slug: string;
7369
7369
  }>, "many">;
7370
7370
  provider: z.ZodString;
7371
- config: z.ZodRecord<z.ZodString, z.ZodString>;
7371
+ config: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodNull]>;
7372
7372
  projectConfigs: z.ZodArray<z.ZodObject<{
7373
7373
  id: z.ZodString;
7374
7374
  isEnabled: z.ZodBoolean;
@@ -7422,7 +7422,7 @@ export declare const zListDataForwarderResponse: z.ZodArray<z.ZodObject<{
7422
7422
  }, "strip", z.ZodTypeAny, {
7423
7423
  id: string;
7424
7424
  organizationId: string;
7425
- config: Record<string, string>;
7425
+ config: Record<string, string> | null;
7426
7426
  dateAdded: string;
7427
7427
  dateUpdated: string;
7428
7428
  provider: string;
@@ -7450,7 +7450,7 @@ export declare const zListDataForwarderResponse: z.ZodArray<z.ZodObject<{
7450
7450
  }, {
7451
7451
  id: string;
7452
7452
  organizationId: string;
7453
- config: Record<string, string>;
7453
+ config: Record<string, string> | null;
7454
7454
  dateAdded: string;
7455
7455
  dateUpdated: string;
7456
7456
  provider: string;
@@ -30402,7 +30402,7 @@ export declare const zQueryExploreEventsInTableFormatData: z.ZodObject<{
30402
30402
  }>;
30403
30403
  query: z.ZodObject<{
30404
30404
  field: z.ZodArray<z.ZodString, "many">;
30405
- dataset: z.ZodEnum<["discover", "errors", "logs", "profile_functions", "spans", "transactions", "uptime_results"]>;
30405
+ dataset: z.ZodEnum<["errors", "logs", "profile_functions", "spans", "tracemetrics", "uptime_results"]>;
30406
30406
  end: z.ZodOptional<z.ZodString>;
30407
30407
  environment: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30408
30408
  project: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
@@ -30414,7 +30414,7 @@ export declare const zQueryExploreEventsInTableFormatData: z.ZodObject<{
30414
30414
  cursor: z.ZodOptional<z.ZodString>;
30415
30415
  }, "strip", z.ZodTypeAny, {
30416
30416
  field: string[];
30417
- dataset: "discover" | "spans" | "logs" | "errors" | "profile_functions" | "transactions" | "uptime_results";
30417
+ dataset: "spans" | "logs" | "tracemetrics" | "errors" | "profile_functions" | "uptime_results";
30418
30418
  query?: string | undefined;
30419
30419
  sort?: string | undefined;
30420
30420
  environment?: string[] | undefined;
@@ -30426,7 +30426,7 @@ export declare const zQueryExploreEventsInTableFormatData: z.ZodObject<{
30426
30426
  statsPeriod?: string | undefined;
30427
30427
  }, {
30428
30428
  field: string[];
30429
- dataset: "discover" | "spans" | "logs" | "errors" | "profile_functions" | "transactions" | "uptime_results";
30429
+ dataset: "spans" | "logs" | "tracemetrics" | "errors" | "profile_functions" | "uptime_results";
30430
30430
  query?: string | undefined;
30431
30431
  sort?: string | undefined;
30432
30432
  environment?: string[] | undefined;
@@ -30440,7 +30440,7 @@ export declare const zQueryExploreEventsInTableFormatData: z.ZodObject<{
30440
30440
  }, "strip", z.ZodTypeAny, {
30441
30441
  query: {
30442
30442
  field: string[];
30443
- dataset: "discover" | "spans" | "logs" | "errors" | "profile_functions" | "transactions" | "uptime_results";
30443
+ dataset: "spans" | "logs" | "tracemetrics" | "errors" | "profile_functions" | "uptime_results";
30444
30444
  query?: string | undefined;
30445
30445
  sort?: string | undefined;
30446
30446
  environment?: string[] | undefined;
@@ -30458,7 +30458,7 @@ export declare const zQueryExploreEventsInTableFormatData: z.ZodObject<{
30458
30458
  }, {
30459
30459
  query: {
30460
30460
  field: string[];
30461
- dataset: "discover" | "spans" | "logs" | "errors" | "profile_functions" | "transactions" | "uptime_results";
30461
+ dataset: "spans" | "logs" | "tracemetrics" | "errors" | "profile_functions" | "uptime_results";
30462
30462
  query?: string | undefined;
30463
30463
  sort?: string | undefined;
30464
30464
  environment?: string[] | undefined;
@@ -30519,7 +30519,7 @@ export declare const zQueryExploreEventsInTimeseriesFormatData: z.ZodObject<{
30519
30519
  organization_id_or_slug: string;
30520
30520
  }>;
30521
30521
  query: z.ZodObject<{
30522
- dataset: z.ZodEnum<["discover", "errors", "logs", "profile_functions", "spans", "transactions", "uptime_results"]>;
30522
+ dataset: z.ZodEnum<["errors", "logs", "profile_functions", "spans", "tracemetrics", "uptime_results"]>;
30523
30523
  end: z.ZodOptional<z.ZodString>;
30524
30524
  environment: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30525
30525
  project: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
@@ -30536,7 +30536,7 @@ export declare const zQueryExploreEventsInTimeseriesFormatData: z.ZodObject<{
30536
30536
  preventMetricAggregates: z.ZodOptional<z.ZodEnum<["0", "1"]>>;
30537
30537
  excludeOther: z.ZodOptional<z.ZodEnum<["0", "1"]>>;
30538
30538
  }, "strip", z.ZodTypeAny, {
30539
- dataset: "discover" | "spans" | "logs" | "errors" | "profile_functions" | "transactions" | "uptime_results";
30539
+ dataset: "spans" | "logs" | "tracemetrics" | "errors" | "profile_functions" | "uptime_results";
30540
30540
  query?: string | undefined;
30541
30541
  sort?: string | undefined;
30542
30542
  interval?: number | undefined;
@@ -30553,7 +30553,7 @@ export declare const zQueryExploreEventsInTimeseriesFormatData: z.ZodObject<{
30553
30553
  preventMetricAggregates?: "1" | "0" | undefined;
30554
30554
  excludeOther?: "1" | "0" | undefined;
30555
30555
  }, {
30556
- dataset: "discover" | "spans" | "logs" | "errors" | "profile_functions" | "transactions" | "uptime_results";
30556
+ dataset: "spans" | "logs" | "tracemetrics" | "errors" | "profile_functions" | "uptime_results";
30557
30557
  query?: string | undefined;
30558
30558
  sort?: string | undefined;
30559
30559
  interval?: number | undefined;
@@ -30572,7 +30572,7 @@ export declare const zQueryExploreEventsInTimeseriesFormatData: z.ZodObject<{
30572
30572
  }>;
30573
30573
  }, "strip", z.ZodTypeAny, {
30574
30574
  query: {
30575
- dataset: "discover" | "spans" | "logs" | "errors" | "profile_functions" | "transactions" | "uptime_results";
30575
+ dataset: "spans" | "logs" | "tracemetrics" | "errors" | "profile_functions" | "uptime_results";
30576
30576
  query?: string | undefined;
30577
30577
  sort?: string | undefined;
30578
30578
  interval?: number | undefined;
@@ -30595,7 +30595,7 @@ export declare const zQueryExploreEventsInTimeseriesFormatData: z.ZodObject<{
30595
30595
  body?: undefined;
30596
30596
  }, {
30597
30597
  query: {
30598
- dataset: "discover" | "spans" | "logs" | "errors" | "profile_functions" | "transactions" | "uptime_results";
30598
+ dataset: "spans" | "logs" | "tracemetrics" | "errors" | "profile_functions" | "uptime_results";
30599
30599
  query?: string | undefined;
30600
30600
  sort?: string | undefined;
30601
30601
  interval?: number | undefined;
@@ -31074,7 +31074,7 @@ export declare const zRetrieveDataForwardersForAnOrganizationResponse: z.ZodArra
31074
31074
  slug: string;
31075
31075
  }>, "many">;
31076
31076
  provider: z.ZodString;
31077
- config: z.ZodRecord<z.ZodString, z.ZodString>;
31077
+ config: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodNull]>;
31078
31078
  projectConfigs: z.ZodArray<z.ZodObject<{
31079
31079
  id: z.ZodString;
31080
31080
  isEnabled: z.ZodBoolean;
@@ -31128,7 +31128,7 @@ export declare const zRetrieveDataForwardersForAnOrganizationResponse: z.ZodArra
31128
31128
  }, "strip", z.ZodTypeAny, {
31129
31129
  id: string;
31130
31130
  organizationId: string;
31131
- config: Record<string, string>;
31131
+ config: Record<string, string> | null;
31132
31132
  dateAdded: string;
31133
31133
  dateUpdated: string;
31134
31134
  provider: string;
@@ -31156,7 +31156,7 @@ export declare const zRetrieveDataForwardersForAnOrganizationResponse: z.ZodArra
31156
31156
  }, {
31157
31157
  id: string;
31158
31158
  organizationId: string;
31159
- config: Record<string, string>;
31159
+ config: Record<string, string> | null;
31160
31160
  dateAdded: string;
31161
31161
  dateUpdated: string;
31162
31162
  provider: string;
@@ -31259,7 +31259,7 @@ export declare const zCreateADataForwarderForAnOrganizationResponse: z.ZodObject
31259
31259
  slug: string;
31260
31260
  }>, "many">;
31261
31261
  provider: z.ZodString;
31262
- config: z.ZodRecord<z.ZodString, z.ZodString>;
31262
+ config: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodNull]>;
31263
31263
  projectConfigs: z.ZodArray<z.ZodObject<{
31264
31264
  id: z.ZodString;
31265
31265
  isEnabled: z.ZodBoolean;
@@ -31313,7 +31313,7 @@ export declare const zCreateADataForwarderForAnOrganizationResponse: z.ZodObject
31313
31313
  }, "strip", z.ZodTypeAny, {
31314
31314
  id: string;
31315
31315
  organizationId: string;
31316
- config: Record<string, string>;
31316
+ config: Record<string, string> | null;
31317
31317
  dateAdded: string;
31318
31318
  dateUpdated: string;
31319
31319
  provider: string;
@@ -31341,7 +31341,7 @@ export declare const zCreateADataForwarderForAnOrganizationResponse: z.ZodObject
31341
31341
  }, {
31342
31342
  id: string;
31343
31343
  organizationId: string;
31344
- config: Record<string, string>;
31344
+ config: Record<string, string> | null;
31345
31345
  dateAdded: string;
31346
31346
  dateUpdated: string;
31347
31347
  provider: string;
@@ -31481,7 +31481,7 @@ export declare const zUpdateADataForwarderForAnOrganizationResponse: z.ZodObject
31481
31481
  slug: string;
31482
31482
  }>, "many">;
31483
31483
  provider: z.ZodString;
31484
- config: z.ZodRecord<z.ZodString, z.ZodString>;
31484
+ config: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodNull]>;
31485
31485
  projectConfigs: z.ZodArray<z.ZodObject<{
31486
31486
  id: z.ZodString;
31487
31487
  isEnabled: z.ZodBoolean;
@@ -31535,7 +31535,7 @@ export declare const zUpdateADataForwarderForAnOrganizationResponse: z.ZodObject
31535
31535
  }, "strip", z.ZodTypeAny, {
31536
31536
  id: string;
31537
31537
  organizationId: string;
31538
- config: Record<string, string>;
31538
+ config: Record<string, string> | null;
31539
31539
  dateAdded: string;
31540
31540
  dateUpdated: string;
31541
31541
  provider: string;
@@ -31563,7 +31563,7 @@ export declare const zUpdateADataForwarderForAnOrganizationResponse: z.ZodObject
31563
31563
  }, {
31564
31564
  id: string;
31565
31565
  organizationId: string;
31566
- config: Record<string, string>;
31566
+ config: Record<string, string> | null;
31567
31567
  dateAdded: string;
31568
31568
  dateUpdated: string;
31569
31569
  provider: string;
package/dist/zod.js CHANGED
@@ -1773,7 +1773,10 @@ var zDataForwarderResponse = z.object({
1773
1773
  ])
1774
1774
  })),
1775
1775
  provider: z.string(),
1776
- config: z.record(z.string()),
1776
+ config: z.union([
1777
+ z.record(z.string()),
1778
+ z.null()
1779
+ ]),
1777
1780
  projectConfigs: z.array(z.object({
1778
1781
  id: z.string(),
1779
1782
  isEnabled: z.boolean(),
@@ -3475,7 +3478,10 @@ var zListDataForwarderResponse = z.array(z.object({
3475
3478
  ])
3476
3479
  })),
3477
3480
  provider: z.string(),
3478
- config: z.record(z.string()),
3481
+ config: z.union([
3482
+ z.record(z.string()),
3483
+ z.null()
3484
+ ]),
3479
3485
  projectConfigs: z.array(z.object({
3480
3486
  id: z.string(),
3481
3487
  isEnabled: z.boolean(),
@@ -11632,12 +11638,11 @@ var zQueryExploreEventsInTableFormatData = z.object({
11632
11638
  query: z.object({
11633
11639
  field: z.array(z.string()),
11634
11640
  dataset: z.enum([
11635
- "discover",
11636
11641
  "errors",
11637
11642
  "logs",
11638
11643
  "profile_functions",
11639
11644
  "spans",
11640
- "transactions",
11645
+ "tracemetrics",
11641
11646
  "uptime_results"
11642
11647
  ]),
11643
11648
  end: z.string().datetime().optional(),
@@ -11667,12 +11672,11 @@ var zQueryExploreEventsInTimeseriesFormatData = z.object({
11667
11672
  }),
11668
11673
  query: z.object({
11669
11674
  dataset: z.enum([
11670
- "discover",
11671
11675
  "errors",
11672
11676
  "logs",
11673
11677
  "profile_functions",
11674
11678
  "spans",
11675
- "transactions",
11679
+ "tracemetrics",
11676
11680
  "uptime_results"
11677
11681
  ]),
11678
11682
  end: z.string().datetime().optional(),
@@ -11851,7 +11855,10 @@ var zRetrieveDataForwardersForAnOrganizationResponse = z.array(z.object({
11851
11855
  ])
11852
11856
  })),
11853
11857
  provider: z.string(),
11854
- config: z.record(z.string()),
11858
+ config: z.union([
11859
+ z.record(z.string()),
11860
+ z.null()
11861
+ ]),
11855
11862
  projectConfigs: z.array(z.object({
11856
11863
  id: z.string(),
11857
11864
  isEnabled: z.boolean(),
@@ -11904,7 +11911,10 @@ var zCreateADataForwarderForAnOrganizationResponse = z.object({
11904
11911
  ])
11905
11912
  })),
11906
11913
  provider: z.string(),
11907
- config: z.record(z.string()),
11914
+ config: z.union([
11915
+ z.record(z.string()),
11916
+ z.null()
11917
+ ]),
11908
11918
  projectConfigs: z.array(z.object({
11909
11919
  id: z.string(),
11910
11920
  isEnabled: z.boolean(),
@@ -11967,7 +11977,10 @@ var zUpdateADataForwarderForAnOrganizationResponse = z.object({
11967
11977
  ])
11968
11978
  })),
11969
11979
  provider: z.string(),
11970
- config: z.record(z.string()),
11980
+ config: z.union([
11981
+ z.record(z.string()),
11982
+ z.null()
11983
+ ]),
11971
11984
  projectConfigs: z.array(z.object({
11972
11985
  id: z.string(),
11973
11986
  isEnabled: z.boolean(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.145.0",
3
+ "version": "0.147.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",