@sentry/api 0.156.0 → 0.158.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.
@@ -2418,6 +2418,19 @@ export type EnvironmentProject = {
2418
2418
  name: string;
2419
2419
  isHidden: boolean;
2420
2420
  };
2421
+ export type EventAttachmentDetailsResponse = {
2422
+ id: string;
2423
+ event_id: string;
2424
+ type: string;
2425
+ name: string;
2426
+ mimetype: string | null;
2427
+ dateCreated: string;
2428
+ size: number;
2429
+ headers: {
2430
+ [key: string]: string | null;
2431
+ };
2432
+ sha1: string | null;
2433
+ };
2421
2434
  export type EventIdLookupResponse = {
2422
2435
  organizationSlug: string;
2423
2436
  projectSlug: string;
@@ -3609,6 +3622,19 @@ export type ListDetectorSerializerResponse = Array<{
3609
3622
  };
3610
3623
  enabled: boolean;
3611
3624
  }>;
3625
+ export type ListEventAttachmentsResponse = Array<{
3626
+ id: string;
3627
+ event_id: string;
3628
+ type: string;
3629
+ name: string;
3630
+ mimetype: string | null;
3631
+ dateCreated: string;
3632
+ size: number;
3633
+ headers: {
3634
+ [key: string]: string | null;
3635
+ };
3636
+ sha1: string | null;
3637
+ }>;
3612
3638
  export type ListMemberOnTeamResponse = Array<{
3613
3639
  externalUsers?: Array<{
3614
3640
  externalId?: string;
@@ -6363,6 +6389,20 @@ export type OrganizationSummary = {
6363
6389
  allowMemberProjectCreation: boolean;
6364
6390
  allowSuperuserAccess: boolean;
6365
6391
  };
6392
+ export type OrganizationTraceMetaResponse = {
6393
+ uptimeCount?: number;
6394
+ errorsCount: number;
6395
+ logsCount: number;
6396
+ metricsCount: number;
6397
+ performanceIssuesCount: number;
6398
+ spansCount: number;
6399
+ transactionChildCountMap: Array<{
6400
+ [key: string]: unknown;
6401
+ }>;
6402
+ spansCountMap: {
6403
+ [key: string]: number;
6404
+ };
6405
+ };
6366
6406
  export type OrganizationWithProjectsAndTeams = {
6367
6407
  features?: Array<string>;
6368
6408
  extraOptions?: {
@@ -8114,15 +8154,6 @@ export type Source = {
8114
8154
  */
8115
8155
  private_key?: string;
8116
8156
  };
8117
- export type SourceMapDebug = {
8118
- errors: Array<{
8119
- type: string;
8120
- message: string;
8121
- data: {
8122
- [key: string]: unknown;
8123
- } | null;
8124
- }>;
8125
- };
8126
8157
  export type StatusDetailsValidator = {
8127
8158
  /**
8128
8159
  * If true, marks the issue as resolved in the next release.
@@ -20722,6 +20753,76 @@ export type ListTraceItemAttributesResponses = {
20722
20753
  }>;
20723
20754
  };
20724
20755
  export type ListTraceItemAttributesResponse2 = ListTraceItemAttributesResponses[keyof ListTraceItemAttributesResponses];
20756
+ export type RetrieveTraceMetadataData = {
20757
+ body?: never;
20758
+ path: {
20759
+ /**
20760
+ * The ID or slug of the organization the resource belongs to.
20761
+ */
20762
+ organization_id_or_slug: string;
20763
+ /**
20764
+ * The ID of the trace, a 32-character hexadecimal string.
20765
+ */
20766
+ trace_id: string;
20767
+ };
20768
+ query?: {
20769
+ /**
20770
+ * The period of time for the query, will override the start & end parameters, a number followed by one of:
20771
+ * - `d` for days
20772
+ * - `h` for hours
20773
+ * - `m` for minutes
20774
+ * - `s` for seconds
20775
+ * - `w` for weeks
20776
+ *
20777
+ * For example, `24h`, to mean query data starting from 24 hours ago to now.
20778
+ */
20779
+ statsPeriod?: string;
20780
+ /**
20781
+ * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
20782
+ */
20783
+ start?: string;
20784
+ /**
20785
+ * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
20786
+ */
20787
+ end?: string;
20788
+ /**
20789
+ * Set to `1` to include uptime check counts in the response. Defaults to `0` (disabled).
20790
+ */
20791
+ include_uptime?: '0' | '1';
20792
+ };
20793
+ url: '/api/0/organizations/{organization_id_or_slug}/trace-meta/{trace_id}/';
20794
+ };
20795
+ export type RetrieveTraceMetadataErrors = {
20796
+ /**
20797
+ * Unauthorized
20798
+ */
20799
+ 401: unknown;
20800
+ /**
20801
+ * Forbidden
20802
+ */
20803
+ 403: unknown;
20804
+ /**
20805
+ * Not Found
20806
+ */
20807
+ 404: unknown;
20808
+ };
20809
+ export type RetrieveTraceMetadataResponses = {
20810
+ 200: {
20811
+ uptimeCount?: number;
20812
+ errorsCount: number;
20813
+ logsCount: number;
20814
+ metricsCount: number;
20815
+ performanceIssuesCount: number;
20816
+ spansCount: number;
20817
+ transactionChildCountMap: Array<{
20818
+ [key: string]: unknown;
20819
+ }>;
20820
+ spansCountMap: {
20821
+ [key: string]: number;
20822
+ };
20823
+ };
20824
+ };
20825
+ export type RetrieveTraceMetadataResponse = RetrieveTraceMetadataResponses[keyof RetrieveTraceMetadataResponses];
20725
20826
  export type ListAuserSTeamsForAnOrganizationData = {
20726
20827
  body?: never;
20727
20828
  path: {
@@ -23717,7 +23818,7 @@ export type RetrieveAnEventForAProjectResponses = {
23717
23818
  };
23718
23819
  };
23719
23820
  export type RetrieveAnEventForAProjectResponse = RetrieveAnEventForAProjectResponses[keyof RetrieveAnEventForAProjectResponses];
23720
- export type DebugIssuesRelatedToSourceMapsForAGivenEventData = {
23821
+ export type ListAnEventSAttachmentsData = {
23721
23822
  body?: never;
23722
23823
  path: {
23723
23824
  /**
@@ -23733,19 +23834,19 @@ export type DebugIssuesRelatedToSourceMapsForAGivenEventData = {
23733
23834
  */
23734
23835
  event_id: string;
23735
23836
  };
23736
- query: {
23837
+ query?: {
23737
23838
  /**
23738
- * Index of the frame that should be used for source map resolution.
23839
+ * Filter the attachments by name (substring match) or by attachment kind. Use `is:screenshot` to restrict the results to screenshot attachments.
23739
23840
  */
23740
- frame_idx: number;
23841
+ query?: string;
23741
23842
  /**
23742
- * Index of the exception that should be used for source map resolution.
23843
+ * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
23743
23844
  */
23744
- exception_idx: number;
23845
+ cursor?: string;
23745
23846
  };
23746
- url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/source-map-debug/';
23847
+ url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/attachments/';
23747
23848
  };
23748
- export type DebugIssuesRelatedToSourceMapsForAGivenEventErrors = {
23849
+ export type ListAnEventSAttachmentsErrors = {
23749
23850
  /**
23750
23851
  * Unauthorized
23751
23852
  */
@@ -23759,18 +23860,75 @@ export type DebugIssuesRelatedToSourceMapsForAGivenEventErrors = {
23759
23860
  */
23760
23861
  404: unknown;
23761
23862
  };
23762
- export type DebugIssuesRelatedToSourceMapsForAGivenEventResponses = {
23863
+ export type ListAnEventSAttachmentsResponses = {
23864
+ 200: Array<{
23865
+ id: string;
23866
+ event_id: string;
23867
+ type: string;
23868
+ name: string;
23869
+ mimetype: string | null;
23870
+ dateCreated: string;
23871
+ size: number;
23872
+ headers: {
23873
+ [key: string]: string | null;
23874
+ };
23875
+ sha1: string | null;
23876
+ }>;
23877
+ };
23878
+ export type ListAnEventSAttachmentsResponse = ListAnEventSAttachmentsResponses[keyof ListAnEventSAttachmentsResponses];
23879
+ export type RetrieveAnEventAttachmentData = {
23880
+ body?: never;
23881
+ path: {
23882
+ /**
23883
+ * The ID or slug of the organization the resource belongs to.
23884
+ */
23885
+ organization_id_or_slug: string;
23886
+ /**
23887
+ * The ID or slug of the project the resource belongs to.
23888
+ */
23889
+ project_id_or_slug: string;
23890
+ /**
23891
+ * The ID of the event. It is a 32-character hexadecimal string as reported by the client.
23892
+ */
23893
+ event_id: string;
23894
+ /**
23895
+ * The numeric ID of the attachment, as returned from the attachments list endpoint.
23896
+ */
23897
+ attachment_id: string;
23898
+ };
23899
+ query?: never;
23900
+ url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/attachments/{attachment_id}/';
23901
+ };
23902
+ export type RetrieveAnEventAttachmentErrors = {
23903
+ /**
23904
+ * Unauthorized
23905
+ */
23906
+ 401: unknown;
23907
+ /**
23908
+ * Forbidden
23909
+ */
23910
+ 403: unknown;
23911
+ /**
23912
+ * Not Found
23913
+ */
23914
+ 404: unknown;
23915
+ };
23916
+ export type RetrieveAnEventAttachmentResponses = {
23763
23917
  200: {
23764
- errors: Array<{
23765
- type: string;
23766
- message: string;
23767
- data: {
23768
- [key: string]: unknown;
23769
- } | null;
23770
- }>;
23918
+ id: string;
23919
+ event_id: string;
23920
+ type: string;
23921
+ name: string;
23922
+ mimetype: string | null;
23923
+ dateCreated: string;
23924
+ size: number;
23925
+ headers: {
23926
+ [key: string]: string | null;
23927
+ };
23928
+ sha1: string | null;
23771
23929
  };
23772
23930
  };
23773
- export type DebugIssuesRelatedToSourceMapsForAGivenEventResponse = DebugIssuesRelatedToSourceMapsForAGivenEventResponses[keyof DebugIssuesRelatedToSourceMapsForAGivenEventResponses];
23931
+ export type RetrieveAnEventAttachmentResponse = RetrieveAnEventAttachmentResponses[keyof RetrieveAnEventAttachmentResponses];
23774
23932
  export type ListAProjectSDebugInformationFilesData = {
23775
23933
  body?: never;
23776
23934
  path: {