@sentry/api 0.229.0 → 0.231.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.
@@ -3113,6 +3113,7 @@ export type GroupHashesResponse = Array<{
3113
3113
  [key: string]: unknown;
3114
3114
  } | null;
3115
3115
  mergedBySeer: boolean;
3116
+ seerMatchDistance: number | null;
3116
3117
  }>;
3117
3118
  export type GroupUpdateResponse = {
3118
3119
  isUnhandled?: boolean;
@@ -4590,6 +4591,23 @@ export type ListTraceItemAttributesResponse = Array<{
4590
4591
  is_transformed_alias?: boolean;
4591
4592
  };
4592
4593
  attributeType: 'string' | 'number' | 'boolean';
4594
+ /**
4595
+ * Additional, mostly-static metadata about an attribute sourced from the
4596
+ * sentry conventions (``sentry_conventions.attributes.ATTRIBUTE_METADATA``).
4597
+ *
4598
+ * Only attributes that map to a known sentry convention have context, and
4599
+ * within the context only the fields actually present in the conventions
4600
+ * metadata are included. This is only attached when the caller passes
4601
+ * ``expand=context`` and the ``data-browsing-attribute-context`` feature is
4602
+ * enabled.
4603
+ */
4604
+ context?: {
4605
+ brief: string;
4606
+ isDeprecated: boolean;
4607
+ details?: Array<string>;
4608
+ examples?: Array<unknown>;
4609
+ replacementAttribute?: string;
4610
+ };
4593
4611
  }>;
4594
4612
  export type ListWorkflow = Array<{
4595
4613
  id: string;
@@ -21569,6 +21587,23 @@ export type ListOrganizationTraceItemAttributesResponses = {
21569
21587
  is_transformed_alias?: boolean;
21570
21588
  };
21571
21589
  attributeType: 'string' | 'number' | 'boolean';
21590
+ /**
21591
+ * Additional, mostly-static metadata about an attribute sourced from the
21592
+ * sentry conventions (``sentry_conventions.attributes.ATTRIBUTE_METADATA``).
21593
+ *
21594
+ * Only attributes that map to a known sentry convention have context, and
21595
+ * within the context only the fields actually present in the conventions
21596
+ * metadata are included. This is only attached when the caller passes
21597
+ * ``expand=context`` and the ``data-browsing-attribute-context`` feature is
21598
+ * enabled.
21599
+ */
21600
+ context?: {
21601
+ brief: string;
21602
+ isDeprecated: boolean;
21603
+ details?: Array<string>;
21604
+ examples?: Array<unknown>;
21605
+ replacementAttribute?: string;
21606
+ };
21572
21607
  }>;
21573
21608
  };
21574
21609
  export type ListOrganizationTraceItemAttributesResponse = ListOrganizationTraceItemAttributesResponses[keyof ListOrganizationTraceItemAttributesResponses];
@@ -32753,6 +32788,7 @@ export type ListOrganizationIssueHashesResponses = {
32753
32788
  [key: string]: unknown;
32754
32789
  } | null;
32755
32790
  mergedBySeer: boolean;
32791
+ seerMatchDistance: number | null;
32756
32792
  }>;
32757
32793
  };
32758
32794
  export type ListOrganizationIssueHashesResponse = ListOrganizationIssueHashesResponses[keyof ListOrganizationIssueHashesResponses];
package/dist/zod.gen.d.ts CHANGED
@@ -7126,6 +7126,7 @@ export declare const zGroupHashesResponse: z.ZodArray<z.ZodObject<{
7126
7126
  'event.type': string;
7127
7127
  }>, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>]>;
7128
7128
  mergedBySeer: z.ZodBoolean;
7129
+ seerMatchDistance: z.ZodUnion<[z.ZodNumber, z.ZodNull]>;
7129
7130
  }, "strip", z.ZodTypeAny, {
7130
7131
  id: string;
7131
7132
  latestEvent: Record<string, unknown> | {
@@ -7203,6 +7204,7 @@ export declare const zGroupHashesResponse: z.ZodArray<z.ZodObject<{
7203
7204
  'event.type': string;
7204
7205
  } | null;
7205
7206
  mergedBySeer: boolean;
7207
+ seerMatchDistance: number | null;
7206
7208
  }, {
7207
7209
  id: string;
7208
7210
  latestEvent: Record<string, unknown> | {
@@ -7280,6 +7282,7 @@ export declare const zGroupHashesResponse: z.ZodArray<z.ZodObject<{
7280
7282
  'event.type': string;
7281
7283
  } | null;
7282
7284
  mergedBySeer: boolean;
7285
+ seerMatchDistance: number | null;
7283
7286
  }>, "many">;
7284
7287
  export declare const zGroupUpdateResponse: z.ZodObject<{
7285
7288
  isUnhandled: z.ZodOptional<z.ZodBoolean>;
@@ -13211,6 +13214,25 @@ export declare const zListTraceItemAttributesResponse: z.ZodArray<z.ZodObject<{
13211
13214
  is_transformed_alias?: boolean | undefined;
13212
13215
  }>;
13213
13216
  attributeType: z.ZodEnum<["string", "number", "boolean"]>;
13217
+ context: z.ZodOptional<z.ZodObject<{
13218
+ brief: z.ZodString;
13219
+ isDeprecated: z.ZodBoolean;
13220
+ details: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13221
+ examples: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
13222
+ replacementAttribute: z.ZodOptional<z.ZodString>;
13223
+ }, "strip", z.ZodTypeAny, {
13224
+ isDeprecated: boolean;
13225
+ brief: string;
13226
+ details?: string[] | undefined;
13227
+ examples?: unknown[] | undefined;
13228
+ replacementAttribute?: string | undefined;
13229
+ }, {
13230
+ isDeprecated: boolean;
13231
+ brief: string;
13232
+ details?: string[] | undefined;
13233
+ examples?: unknown[] | undefined;
13234
+ replacementAttribute?: string | undefined;
13235
+ }>>;
13214
13236
  }, "strip", z.ZodTypeAny, {
13215
13237
  name: string;
13216
13238
  key: string;
@@ -13219,6 +13241,13 @@ export declare const zListTraceItemAttributesResponse: z.ZodArray<z.ZodObject<{
13219
13241
  source_type: "user" | "sentry";
13220
13242
  is_transformed_alias?: boolean | undefined;
13221
13243
  };
13244
+ context?: {
13245
+ isDeprecated: boolean;
13246
+ brief: string;
13247
+ details?: string[] | undefined;
13248
+ examples?: unknown[] | undefined;
13249
+ replacementAttribute?: string | undefined;
13250
+ } | undefined;
13222
13251
  secondaryAliases?: string[] | undefined;
13223
13252
  }, {
13224
13253
  name: string;
@@ -13228,6 +13257,13 @@ export declare const zListTraceItemAttributesResponse: z.ZodArray<z.ZodObject<{
13228
13257
  source_type: "user" | "sentry";
13229
13258
  is_transformed_alias?: boolean | undefined;
13230
13259
  };
13260
+ context?: {
13261
+ isDeprecated: boolean;
13262
+ brief: string;
13263
+ details?: string[] | undefined;
13264
+ examples?: unknown[] | undefined;
13265
+ replacementAttribute?: string | undefined;
13266
+ } | undefined;
13231
13267
  secondaryAliases?: string[] | undefined;
13232
13268
  }>, "many">;
13233
13269
  export declare const zListWorkflow: z.ZodArray<z.ZodObject<{
@@ -52897,6 +52933,25 @@ export declare const zListOrganizationTraceItemAttributesResponse: z.ZodArray<z.
52897
52933
  is_transformed_alias?: boolean | undefined;
52898
52934
  }>;
52899
52935
  attributeType: z.ZodEnum<["string", "number", "boolean"]>;
52936
+ context: z.ZodOptional<z.ZodObject<{
52937
+ brief: z.ZodString;
52938
+ isDeprecated: z.ZodBoolean;
52939
+ details: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52940
+ examples: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
52941
+ replacementAttribute: z.ZodOptional<z.ZodString>;
52942
+ }, "strip", z.ZodTypeAny, {
52943
+ isDeprecated: boolean;
52944
+ brief: string;
52945
+ details?: string[] | undefined;
52946
+ examples?: unknown[] | undefined;
52947
+ replacementAttribute?: string | undefined;
52948
+ }, {
52949
+ isDeprecated: boolean;
52950
+ brief: string;
52951
+ details?: string[] | undefined;
52952
+ examples?: unknown[] | undefined;
52953
+ replacementAttribute?: string | undefined;
52954
+ }>>;
52900
52955
  }, "strip", z.ZodTypeAny, {
52901
52956
  name: string;
52902
52957
  key: string;
@@ -52905,6 +52960,13 @@ export declare const zListOrganizationTraceItemAttributesResponse: z.ZodArray<z.
52905
52960
  source_type: "user" | "sentry";
52906
52961
  is_transformed_alias?: boolean | undefined;
52907
52962
  };
52963
+ context?: {
52964
+ isDeprecated: boolean;
52965
+ brief: string;
52966
+ details?: string[] | undefined;
52967
+ examples?: unknown[] | undefined;
52968
+ replacementAttribute?: string | undefined;
52969
+ } | undefined;
52908
52970
  secondaryAliases?: string[] | undefined;
52909
52971
  }, {
52910
52972
  name: string;
@@ -52914,6 +52976,13 @@ export declare const zListOrganizationTraceItemAttributesResponse: z.ZodArray<z.
52914
52976
  source_type: "user" | "sentry";
52915
52977
  is_transformed_alias?: boolean | undefined;
52916
52978
  };
52979
+ context?: {
52980
+ isDeprecated: boolean;
52981
+ brief: string;
52982
+ details?: string[] | undefined;
52983
+ examples?: unknown[] | undefined;
52984
+ replacementAttribute?: string | undefined;
52985
+ } | undefined;
52917
52986
  secondaryAliases?: string[] | undefined;
52918
52987
  }>, "many">;
52919
52988
  export declare const zGetOrganizationTraceMetaData: z.ZodObject<{
@@ -74274,6 +74343,7 @@ export declare const zListOrganizationIssueHashesResponse: z.ZodArray<z.ZodObjec
74274
74343
  'event.type': string;
74275
74344
  }>, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>]>;
74276
74345
  mergedBySeer: z.ZodBoolean;
74346
+ seerMatchDistance: z.ZodUnion<[z.ZodNumber, z.ZodNull]>;
74277
74347
  }, "strip", z.ZodTypeAny, {
74278
74348
  id: string;
74279
74349
  latestEvent: Record<string, unknown> | {
@@ -74351,6 +74421,7 @@ export declare const zListOrganizationIssueHashesResponse: z.ZodArray<z.ZodObjec
74351
74421
  'event.type': string;
74352
74422
  } | null;
74353
74423
  mergedBySeer: boolean;
74424
+ seerMatchDistance: number | null;
74354
74425
  }, {
74355
74426
  id: string;
74356
74427
  latestEvent: Record<string, unknown> | {
@@ -74428,6 +74499,7 @@ export declare const zListOrganizationIssueHashesResponse: z.ZodArray<z.ZodObjec
74428
74499
  'event.type': string;
74429
74500
  } | null;
74430
74501
  mergedBySeer: boolean;
74502
+ seerMatchDistance: number | null;
74431
74503
  }>, "many">;
74432
74504
  export declare const zGetOrganizationIssueTagData: z.ZodObject<{
74433
74505
  body: z.ZodOptional<z.ZodNever>;
package/dist/zod.js CHANGED
@@ -3167,7 +3167,11 @@ var zGroupHashesResponse = z.array(z.object({
3167
3167
  z.null()
3168
3168
  ])
3169
3169
  ]),
3170
- mergedBySeer: z.boolean()
3170
+ mergedBySeer: z.boolean(),
3171
+ seerMatchDistance: z.union([
3172
+ z.number(),
3173
+ z.null()
3174
+ ])
3171
3175
  }));
3172
3176
  var zGroupUpdateResponse = z.object({
3173
3177
  isUnhandled: z.boolean().optional(),
@@ -5369,7 +5373,14 @@ var zListTraceItemAttributesResponse = z.array(z.object({
5369
5373
  "string",
5370
5374
  "number",
5371
5375
  "boolean"
5372
- ])
5376
+ ]),
5377
+ context: z.object({
5378
+ brief: z.string(),
5379
+ isDeprecated: z.boolean(),
5380
+ details: z.array(z.string()).optional(),
5381
+ examples: z.array(z.unknown()).optional(),
5382
+ replacementAttribute: z.string().optional()
5383
+ }).optional()
5373
5384
  }));
5374
5385
  var zListWorkflow = z.array(z.object({
5375
5386
  id: z.string(),
@@ -20120,7 +20131,14 @@ var zListOrganizationTraceItemAttributesResponse = z.array(z.object({
20120
20131
  "string",
20121
20132
  "number",
20122
20133
  "boolean"
20123
- ])
20134
+ ]),
20135
+ context: z.object({
20136
+ brief: z.string(),
20137
+ isDeprecated: z.boolean(),
20138
+ details: z.array(z.string()).optional(),
20139
+ examples: z.array(z.unknown()).optional(),
20140
+ replacementAttribute: z.string().optional()
20141
+ }).optional()
20124
20142
  }));
20125
20143
  var zGetOrganizationTraceMetaData = z.object({
20126
20144
  body: z.never().optional(),
@@ -28144,7 +28162,11 @@ var zListOrganizationIssueHashesResponse = z.array(z.object({
28144
28162
  z.null()
28145
28163
  ])
28146
28164
  ]),
28147
- mergedBySeer: z.boolean()
28165
+ mergedBySeer: z.boolean(),
28166
+ seerMatchDistance: z.union([
28167
+ z.number(),
28168
+ z.null()
28169
+ ])
28148
28170
  }));
28149
28171
  var zGetOrganizationIssueTagData = z.object({
28150
28172
  body: z.never().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.229.0",
3
+ "version": "0.231.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",