@sentry/api 0.159.0 → 0.161.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.
@@ -2971,6 +2971,106 @@ export type GroupExternalIssueResponse = Array<{
2971
2971
  displayName: string;
2972
2972
  webUrl: string;
2973
2973
  }>;
2974
+ export type GroupHashesResponse = Array<{
2975
+ id: string;
2976
+ latestEvent: {
2977
+ id: string;
2978
+ groupID: string | null;
2979
+ eventID: string;
2980
+ projectID: string;
2981
+ message: string | null;
2982
+ title: string;
2983
+ location: string | null;
2984
+ user: {
2985
+ id?: string | null;
2986
+ email?: string | null;
2987
+ username?: string | null;
2988
+ ip_address?: string | null;
2989
+ name?: string | null;
2990
+ geo?: {
2991
+ [key: string]: string;
2992
+ } | null;
2993
+ data?: {
2994
+ [key: string]: unknown;
2995
+ } | null;
2996
+ } | null;
2997
+ tags: Array<{
2998
+ query?: string;
2999
+ key: string;
3000
+ value: string;
3001
+ }>;
3002
+ platform: string;
3003
+ dateReceived: string | null;
3004
+ contexts: {
3005
+ [key: string]: unknown;
3006
+ } | null;
3007
+ size: number | null;
3008
+ entries: Array<unknown>;
3009
+ dist: string | null;
3010
+ sdk: {
3011
+ [key: string]: string;
3012
+ };
3013
+ context: {
3014
+ [key: string]: unknown;
3015
+ } | null;
3016
+ packages: {
3017
+ [key: string]: unknown;
3018
+ };
3019
+ type: string;
3020
+ metadata: unknown;
3021
+ errors: Array<unknown>;
3022
+ occurrence: unknown;
3023
+ _meta: {
3024
+ [key: string]: unknown;
3025
+ };
3026
+ crashFile?: string | null;
3027
+ culprit?: string | null;
3028
+ dateCreated?: string;
3029
+ fingerprints?: Array<string>;
3030
+ groupingConfig?: unknown;
3031
+ startTimestamp?: string;
3032
+ endTimestamp?: string;
3033
+ measurements?: unknown;
3034
+ breakdowns?: unknown;
3035
+ } | {
3036
+ id: string;
3037
+ 'event.type': string;
3038
+ groupID: string | null;
3039
+ eventID: string;
3040
+ projectID: string;
3041
+ message: string;
3042
+ title: string;
3043
+ location: string | null;
3044
+ culprit: string | null;
3045
+ user: {
3046
+ id?: string | null;
3047
+ email?: string | null;
3048
+ username?: string | null;
3049
+ ip_address?: string | null;
3050
+ name?: string | null;
3051
+ geo?: {
3052
+ [key: string]: string;
3053
+ } | null;
3054
+ data?: {
3055
+ [key: string]: unknown;
3056
+ } | null;
3057
+ } | null;
3058
+ tags: Array<{
3059
+ query?: string;
3060
+ key: string;
3061
+ value: string;
3062
+ }>;
3063
+ platform: string | null;
3064
+ dateCreated: string;
3065
+ crashFile: string | null;
3066
+ metadata: {
3067
+ [key: string]: unknown;
3068
+ } | null;
3069
+ } | {
3070
+ [key: string]: unknown;
3071
+ } | null;
3072
+ mergedBySeer: boolean;
3073
+ }>;
2974
3074
  export type GroupUpdateResponse = {
2975
3075
  isUnhandled?: boolean;
2976
3076
  count?: string;
@@ -6200,6 +6300,9 @@ export type OrganizationMemberWithRoles = {
6200
6300
  isMinimumRoleFor: string | null;
6201
6301
  }>;
6202
6302
  };
6303
+ export type OrganizationProfilingFlamegraphResponse = {
6304
+ [key: string]: unknown;
6305
+ };
6203
6306
  export type OrganizationProjectResponseDict = Array<{
6204
6307
  latestDeploys?: {
6205
6308
  [key: string]: {
@@ -17329,6 +17432,85 @@ export type RetrieveLatestBaseSnapshotResponses = {
17329
17432
  };
17330
17433
  };
17331
17434
  export type RetrieveLatestBaseSnapshotResponse = RetrieveLatestBaseSnapshotResponses[keyof RetrieveLatestBaseSnapshotResponses];
17435
+ export type RetrieveAFlamegraphForAnOrganizationData = {
17436
+ body?: never;
17437
+ path: {
17438
+ /**
17439
+ * The ID or slug of the organization the resource belongs to.
17440
+ */
17441
+ organization_id_or_slug: string;
17442
+ };
17443
+ query?: {
17444
+ /**
17445
+ * The IDs of projects to filter by. `-1` means all available projects.
17446
+ * For example, the following are valid parameters:
17447
+ * - `/?project=1234&project=56789`
17448
+ * - `/?project=-1`
17449
+ *
17450
+ */
17451
+ project?: Array<number>;
17452
+ /**
17453
+ * The name of environments to filter by.
17454
+ */
17455
+ environment?: Array<string>;
17456
+ /**
17457
+ * The period of time for the query, will override the start & end parameters, a number followed by one of:
17458
+ * - `d` for days
17459
+ * - `h` for hours
17460
+ * - `m` for minutes
17461
+ * - `s` for seconds
17462
+ * - `w` for weeks
17463
+ *
17464
+ * For example, `24h`, to mean query data starting from 24 hours ago to now.
17465
+ */
17466
+ statsPeriod?: string;
17467
+ /**
17468
+ * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
17469
+ */
17470
+ start?: string;
17471
+ /**
17472
+ * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
17473
+ */
17474
+ end?: string;
17475
+ /**
17476
+ * Source dataset to build the flamegraph from. Defaults to `functions` when `fingerprint` is set and `transactions` otherwise.
17477
+ */
17478
+ dataSource?: 'functions' | 'profiles' | 'spans' | 'transactions';
17479
+ /**
17480
+ * A UInt32 function fingerprint. Only valid when `dataSource=functions`.
17481
+ */
17482
+ fingerprint?: number;
17483
+ /**
17484
+ * Sentry [search syntax](https://docs.sentry.io/concepts/search/) to filter the candidate profiles.
17485
+ */
17486
+ query?: string;
17487
+ /**
17488
+ * Optional expansions. Pass `metrics` to include flamegraph metric aggregates in the response.
17489
+ */
17490
+ expand?: Array<'metrics'>;
17491
+ };
17492
+ url: '/api/0/organizations/{organization_id_or_slug}/profiling/flamegraph/';
17493
+ };
17494
+ export type RetrieveAFlamegraphForAnOrganizationErrors = {
17495
+ /**
17496
+ * Unauthorized
17497
+ */
17498
+ 401: unknown;
17499
+ /**
17500
+ * Forbidden
17501
+ */
17502
+ 403: unknown;
17503
+ /**
17504
+ * Not Found
17505
+ */
17506
+ 404: unknown;
17507
+ };
17508
+ export type RetrieveAFlamegraphForAnOrganizationResponses = {
17509
+ 200: {
17510
+ [key: string]: unknown;
17511
+ };
17512
+ };
17513
+ export type RetrieveAFlamegraphForAnOrganizationResponse = RetrieveAFlamegraphForAnOrganizationResponses[keyof RetrieveAFlamegraphForAnOrganizationResponses];
17332
17514
  export type ListAnOrganizationSClientKeysData = {
17333
17515
  body?: never;
17334
17516
  path: {
@@ -29400,240 +29582,6 @@ export type ListATagSValuesForAnIssueResponses = {
29400
29582
  }>;
29401
29583
  };
29402
29584
  export type ListATagSValuesForAnIssueResponse = ListATagSValuesForAnIssueResponses[keyof ListATagSValuesForAnIssueResponses];
29403
- export type ListAnIssueSHashesData = {
29404
- body?: never;
29405
- path: {
29406
- /**
29407
- * The ID or slug of the organization the event belongs to.
29408
- */
29409
- organization_id_or_slug: string;
29410
- /**
29411
- * The ID of the issue to retrieve.
29412
- */
29413
- issue_id: string;
29414
- };
29415
- query?: {
29416
- /**
29417
- * If this is set to true, the event payload will include the full event body, including the stacktrace. Set to 1 to enable.
29418
- */
29419
- full?: boolean;
29420
- /**
29421
- * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
29422
- */
29423
- cursor?: string;
29424
- };
29425
- url: '/api/0/organizations/{organization_id_or_slug}/issues/{issue_id}/hashes/';
29426
- };
29427
- export type ListAnIssueSHashesErrors = {
29428
- /**
29429
- * Forbidden
29430
- */
29431
- 403: unknown;
29432
- };
29433
- export type ListAnIssueSHashesResponses = {
29434
- /**
29435
- * Success
29436
- */
29437
- 200: Array<{
29438
- latestEvent?: {
29439
- eventID: string;
29440
- dist: string | null;
29441
- message: string;
29442
- id: string;
29443
- size: number;
29444
- errors: Array<{
29445
- message?: string;
29446
- type?: string;
29447
- data?: {
29448
- column?: number;
29449
- source?: string;
29450
- row?: number;
29451
- };
29452
- }>;
29453
- platform: string;
29454
- type: string;
29455
- metadata: {
29456
- type: string;
29457
- value: string;
29458
- } | {
29459
- title: string;
29460
- };
29461
- tags: Array<{
29462
- value?: string;
29463
- key?: string;
29464
- _meta?: string | null;
29465
- }>;
29466
- dateCreated: string;
29467
- dateReceived: string;
29468
- user: {
29469
- username: string | null;
29470
- name: string | null;
29471
- ip_address: string | null;
29472
- email: string | null;
29473
- data: {
29474
- isStaff?: boolean;
29475
- } | null;
29476
- id: string;
29477
- } | null;
29478
- entries: Array<{
29479
- type: string;
29480
- data: {
29481
- values: Array<{
29482
- category: string;
29483
- level: string;
29484
- event_id: string | null;
29485
- timestamp: string;
29486
- data: {
29487
- [key: string]: unknown;
29488
- } | null;
29489
- message: string | null;
29490
- type: string;
29491
- }>;
29492
- };
29493
- } | {
29494
- type: string;
29495
- data: {
29496
- fragment: string | null;
29497
- cookies: Array<Array<string>> | null;
29498
- inferredContentType: string | null;
29499
- env: {
29500
- ENV?: string;
29501
- } | null;
29502
- headers: Array<Array<string>>;
29503
- url: string;
29504
- query: Array<Array<string>>;
29505
- data: {
29506
- [key: string]: unknown;
29507
- } | null;
29508
- method: string | null;
29509
- };
29510
- } | {
29511
- type: string;
29512
- data: {
29513
- formatted: string;
29514
- };
29515
- } | {
29516
- type: string;
29517
- data: {
29518
- excOmitted: Array<number> | null;
29519
- hasSystemFrames: boolean;
29520
- values: Array<{
29521
- stacktrace: {
29522
- frames: Array<{
29523
- function: string;
29524
- errors: string | null;
29525
- colNo: number | null;
29526
- vars: {
29527
- [key: string]: unknown;
29528
- } | null;
29529
- package: string | null;
29530
- absPath: string | null;
29531
- inApp: boolean;
29532
- lineNo: number;
29533
- module: string;
29534
- filename: string;
29535
- platform: string | null;
29536
- instructionAddr: string | null;
29537
- context: Array<Array<number | string>>;
29538
- symbolAddr: string | null;
29539
- trust: string | null;
29540
- symbol: string | null;
29541
- }>;
29542
- framesOmitted: string | null;
29543
- registers: string | null;
29544
- hasSystemFrames: boolean;
29545
- } | null;
29546
- module: string | null;
29547
- rawStacktrace: {
29548
- [key: string]: unknown;
29549
- } | null;
29550
- mechanism: {
29551
- type?: string;
29552
- handled?: boolean;
29553
- } | null;
29554
- threadId: string | null;
29555
- value: string;
29556
- type: string;
29557
- }>;
29558
- };
29559
- }>;
29560
- packages: {
29561
- [key: string]: unknown;
29562
- };
29563
- sdk: {
29564
- version?: string;
29565
- name?: string;
29566
- };
29567
- _meta: {
29568
- user?: string | null;
29569
- context?: string | null;
29570
- entries?: {
29571
- [key: string]: unknown;
29572
- };
29573
- contexts?: string | null;
29574
- message?: string | null;
29575
- packages?: string | null;
29576
- tags?: {
29577
- [key: string]: unknown;
29578
- };
29579
- sdk?: string | null;
29580
- };
29581
- contexts: {
29582
- ForbiddenError?: {
29583
- status?: number;
29584
- statusText?: string;
29585
- responseJSON?: {
29586
- detail?: string;
29587
- };
29588
- type?: string;
29589
- };
29590
- browser?: {
29591
- version?: string;
29592
- type?: string;
29593
- name?: string;
29594
- };
29595
- os?: {
29596
- version?: string;
29597
- type?: string;
29598
- name?: string;
29599
- };
29600
- trace?: {
29601
- span_id?: string;
29602
- type?: string;
29603
- trace_id?: string;
29604
- op?: string;
29605
- };
29606
- organization?: {
29607
- type?: string;
29608
- id?: string;
29609
- slug?: string;
29610
- };
29611
- };
29612
- fingerprints: Array<string>;
29613
- context: {
29614
- resp?: {
29615
- status?: number;
29616
- responseJSON?: {
29617
- detail?: string;
29618
- };
29619
- name?: string;
29620
- statusText?: string;
29621
- message?: string;
29622
- stack?: string;
29623
- };
29624
- session?: {
29625
- foo?: string;
29626
- };
29627
- unauthorized?: boolean;
29628
- url?: string;
29629
- };
29630
- groupID: string;
29631
- title: string;
29632
- };
29633
- id?: string;
29634
- }>;
29635
- };
29636
- export type ListAnIssueSHashesResponse = ListAnIssueSHashesResponses[keyof ListAnIssueSHashesResponses];
29637
29585
  export type ListAnOrganizationSReleasesData = {
29638
29586
  body?: never;
29639
29587
  path: {
@@ -31606,6 +31554,147 @@ export type RetrieveCustomIntegrationIssueLinksForTheGivenSentryIssueResponses =
31606
31554
  }>;
31607
31555
  };
31608
31556
  export type RetrieveCustomIntegrationIssueLinksForTheGivenSentryIssueResponse = RetrieveCustomIntegrationIssueLinksForTheGivenSentryIssueResponses[keyof RetrieveCustomIntegrationIssueLinksForTheGivenSentryIssueResponses];
31557
+ export type ListAnIssueSHashesData = {
31558
+ body?: never;
31559
+ path: {
31560
+ /**
31561
+ * The ID or slug of the organization the resource belongs to.
31562
+ */
31563
+ organization_id_or_slug: string;
31564
+ /**
31565
+ * The ID of the issue you'd like to query.
31566
+ */
31567
+ issue_id: number;
31568
+ };
31569
+ query?: {
31570
+ /**
31571
+ * Specify true to include the full event body, including the stacktrace, in the event payload.
31572
+ */
31573
+ full?: boolean;
31574
+ /**
31575
+ * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
31576
+ */
31577
+ cursor?: string;
31578
+ };
31579
+ url: '/api/0/organizations/{organization_id_or_slug}/issues/{issue_id}/hashes/';
31580
+ };
31581
+ export type ListAnIssueSHashesErrors = {
31582
+ /**
31583
+ * Unauthorized
31584
+ */
31585
+ 401: unknown;
31586
+ /**
31587
+ * Forbidden
31588
+ */
31589
+ 403: unknown;
31590
+ /**
31591
+ * Not Found
31592
+ */
31593
+ 404: unknown;
31594
+ };
31595
+ export type ListAnIssueSHashesResponses = {
31596
+ 200: Array<{
31597
+ id: string;
31598
+ latestEvent: {
31599
+ id: string;
31600
+ groupID: string | null;
31601
+ eventID: string;
31602
+ projectID: string;
31603
+ message: string | null;
31604
+ title: string;
31605
+ location: string | null;
31606
+ user: {
31607
+ id?: string | null;
31608
+ email?: string | null;
31609
+ username?: string | null;
31610
+ ip_address?: string | null;
31611
+ name?: string | null;
31612
+ geo?: {
31613
+ [key: string]: string;
31614
+ } | null;
31615
+ data?: {
31616
+ [key: string]: unknown;
31617
+ } | null;
31618
+ } | null;
31619
+ tags: Array<{
31620
+ query?: string;
31621
+ key: string;
31622
+ value: string;
31623
+ }>;
31624
+ platform: string;
31625
+ dateReceived: string | null;
31626
+ contexts: {
31627
+ [key: string]: unknown;
31628
+ } | null;
31629
+ size: number | null;
31630
+ entries: Array<unknown>;
31631
+ dist: string | null;
31632
+ sdk: {
31633
+ [key: string]: string;
31634
+ };
31635
+ context: {
31636
+ [key: string]: unknown;
31637
+ } | null;
31638
+ packages: {
31639
+ [key: string]: unknown;
31640
+ };
31641
+ type: string;
31642
+ metadata: unknown;
31643
+ errors: Array<unknown>;
31644
+ occurrence: unknown;
31645
+ _meta: {
31646
+ [key: string]: unknown;
31647
+ };
31648
+ crashFile?: string | null;
31649
+ culprit?: string | null;
31650
+ dateCreated?: string;
31651
+ fingerprints?: Array<string>;
31652
+ groupingConfig?: unknown;
31653
+ startTimestamp?: string;
31654
+ endTimestamp?: string;
31655
+ measurements?: unknown;
31656
+ breakdowns?: unknown;
31657
+ } | {
31658
+ id: string;
31659
+ 'event.type': string;
31660
+ groupID: string | null;
31661
+ eventID: string;
31662
+ projectID: string;
31663
+ message: string;
31664
+ title: string;
31665
+ location: string | null;
31666
+ culprit: string | null;
31667
+ user: {
31668
+ id?: string | null;
31669
+ email?: string | null;
31670
+ username?: string | null;
31671
+ ip_address?: string | null;
31672
+ name?: string | null;
31673
+ geo?: {
31674
+ [key: string]: string;
31675
+ } | null;
31676
+ data?: {
31677
+ [key: string]: unknown;
31678
+ } | null;
31679
+ } | null;
31680
+ tags: Array<{
31681
+ query?: string;
31682
+ key: string;
31683
+ value: string;
31684
+ }>;
31685
+ platform: string | null;
31686
+ dateCreated: string;
31687
+ crashFile: string | null;
31688
+ metadata: {
31689
+ [key: string]: unknown;
31690
+ } | null;
31691
+ } | {
31692
+ [key: string]: unknown;
31693
+ } | null;
31694
+ mergedBySeer: boolean;
31695
+ }>;
31696
+ };
31697
+ export type ListAnIssueSHashesResponse = ListAnIssueSHashesResponses[keyof ListAnIssueSHashesResponses];
31609
31698
  export type RetrieveTagDetailsData = {
31610
31699
  body?: never;
31611
31700
  path: {