@sentry/api 0.229.0 → 0.230.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.
@@ -4590,6 +4590,23 @@ export type ListTraceItemAttributesResponse = Array<{
4590
4590
  is_transformed_alias?: boolean;
4591
4591
  };
4592
4592
  attributeType: 'string' | 'number' | 'boolean';
4593
+ /**
4594
+ * Additional, mostly-static metadata about an attribute sourced from the
4595
+ * sentry conventions (``sentry_conventions.attributes.ATTRIBUTE_METADATA``).
4596
+ *
4597
+ * Only attributes that map to a known sentry convention have context, and
4598
+ * within the context only the fields actually present in the conventions
4599
+ * metadata are included. This is only attached when the caller passes
4600
+ * ``expand=context`` and the ``data-browsing-attribute-context`` feature is
4601
+ * enabled.
4602
+ */
4603
+ context?: {
4604
+ brief: string;
4605
+ isDeprecated: boolean;
4606
+ details?: Array<string>;
4607
+ examples?: Array<unknown>;
4608
+ replacementAttribute?: string;
4609
+ };
4593
4610
  }>;
4594
4611
  export type ListWorkflow = Array<{
4595
4612
  id: string;
@@ -21569,6 +21586,23 @@ export type ListOrganizationTraceItemAttributesResponses = {
21569
21586
  is_transformed_alias?: boolean;
21570
21587
  };
21571
21588
  attributeType: 'string' | 'number' | 'boolean';
21589
+ /**
21590
+ * Additional, mostly-static metadata about an attribute sourced from the
21591
+ * sentry conventions (``sentry_conventions.attributes.ATTRIBUTE_METADATA``).
21592
+ *
21593
+ * Only attributes that map to a known sentry convention have context, and
21594
+ * within the context only the fields actually present in the conventions
21595
+ * metadata are included. This is only attached when the caller passes
21596
+ * ``expand=context`` and the ``data-browsing-attribute-context`` feature is
21597
+ * enabled.
21598
+ */
21599
+ context?: {
21600
+ brief: string;
21601
+ isDeprecated: boolean;
21602
+ details?: Array<string>;
21603
+ examples?: Array<unknown>;
21604
+ replacementAttribute?: string;
21605
+ };
21572
21606
  }>;
21573
21607
  };
21574
21608
  export type ListOrganizationTraceItemAttributesResponse = ListOrganizationTraceItemAttributesResponses[keyof ListOrganizationTraceItemAttributesResponses];
package/dist/zod.gen.d.ts CHANGED
@@ -13211,6 +13211,25 @@ export declare const zListTraceItemAttributesResponse: z.ZodArray<z.ZodObject<{
13211
13211
  is_transformed_alias?: boolean | undefined;
13212
13212
  }>;
13213
13213
  attributeType: z.ZodEnum<["string", "number", "boolean"]>;
13214
+ context: z.ZodOptional<z.ZodObject<{
13215
+ brief: z.ZodString;
13216
+ isDeprecated: z.ZodBoolean;
13217
+ details: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13218
+ examples: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
13219
+ replacementAttribute: z.ZodOptional<z.ZodString>;
13220
+ }, "strip", z.ZodTypeAny, {
13221
+ isDeprecated: boolean;
13222
+ brief: string;
13223
+ details?: string[] | undefined;
13224
+ examples?: unknown[] | undefined;
13225
+ replacementAttribute?: string | undefined;
13226
+ }, {
13227
+ isDeprecated: boolean;
13228
+ brief: string;
13229
+ details?: string[] | undefined;
13230
+ examples?: unknown[] | undefined;
13231
+ replacementAttribute?: string | undefined;
13232
+ }>>;
13214
13233
  }, "strip", z.ZodTypeAny, {
13215
13234
  name: string;
13216
13235
  key: string;
@@ -13219,6 +13238,13 @@ export declare const zListTraceItemAttributesResponse: z.ZodArray<z.ZodObject<{
13219
13238
  source_type: "user" | "sentry";
13220
13239
  is_transformed_alias?: boolean | undefined;
13221
13240
  };
13241
+ context?: {
13242
+ isDeprecated: boolean;
13243
+ brief: string;
13244
+ details?: string[] | undefined;
13245
+ examples?: unknown[] | undefined;
13246
+ replacementAttribute?: string | undefined;
13247
+ } | undefined;
13222
13248
  secondaryAliases?: string[] | undefined;
13223
13249
  }, {
13224
13250
  name: string;
@@ -13228,6 +13254,13 @@ export declare const zListTraceItemAttributesResponse: z.ZodArray<z.ZodObject<{
13228
13254
  source_type: "user" | "sentry";
13229
13255
  is_transformed_alias?: boolean | undefined;
13230
13256
  };
13257
+ context?: {
13258
+ isDeprecated: boolean;
13259
+ brief: string;
13260
+ details?: string[] | undefined;
13261
+ examples?: unknown[] | undefined;
13262
+ replacementAttribute?: string | undefined;
13263
+ } | undefined;
13231
13264
  secondaryAliases?: string[] | undefined;
13232
13265
  }>, "many">;
13233
13266
  export declare const zListWorkflow: z.ZodArray<z.ZodObject<{
@@ -52897,6 +52930,25 @@ export declare const zListOrganizationTraceItemAttributesResponse: z.ZodArray<z.
52897
52930
  is_transformed_alias?: boolean | undefined;
52898
52931
  }>;
52899
52932
  attributeType: z.ZodEnum<["string", "number", "boolean"]>;
52933
+ context: z.ZodOptional<z.ZodObject<{
52934
+ brief: z.ZodString;
52935
+ isDeprecated: z.ZodBoolean;
52936
+ details: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52937
+ examples: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
52938
+ replacementAttribute: z.ZodOptional<z.ZodString>;
52939
+ }, "strip", z.ZodTypeAny, {
52940
+ isDeprecated: boolean;
52941
+ brief: string;
52942
+ details?: string[] | undefined;
52943
+ examples?: unknown[] | undefined;
52944
+ replacementAttribute?: string | undefined;
52945
+ }, {
52946
+ isDeprecated: boolean;
52947
+ brief: string;
52948
+ details?: string[] | undefined;
52949
+ examples?: unknown[] | undefined;
52950
+ replacementAttribute?: string | undefined;
52951
+ }>>;
52900
52952
  }, "strip", z.ZodTypeAny, {
52901
52953
  name: string;
52902
52954
  key: string;
@@ -52905,6 +52957,13 @@ export declare const zListOrganizationTraceItemAttributesResponse: z.ZodArray<z.
52905
52957
  source_type: "user" | "sentry";
52906
52958
  is_transformed_alias?: boolean | undefined;
52907
52959
  };
52960
+ context?: {
52961
+ isDeprecated: boolean;
52962
+ brief: string;
52963
+ details?: string[] | undefined;
52964
+ examples?: unknown[] | undefined;
52965
+ replacementAttribute?: string | undefined;
52966
+ } | undefined;
52908
52967
  secondaryAliases?: string[] | undefined;
52909
52968
  }, {
52910
52969
  name: string;
@@ -52914,6 +52973,13 @@ export declare const zListOrganizationTraceItemAttributesResponse: z.ZodArray<z.
52914
52973
  source_type: "user" | "sentry";
52915
52974
  is_transformed_alias?: boolean | undefined;
52916
52975
  };
52976
+ context?: {
52977
+ isDeprecated: boolean;
52978
+ brief: string;
52979
+ details?: string[] | undefined;
52980
+ examples?: unknown[] | undefined;
52981
+ replacementAttribute?: string | undefined;
52982
+ } | undefined;
52917
52983
  secondaryAliases?: string[] | undefined;
52918
52984
  }>, "many">;
52919
52985
  export declare const zGetOrganizationTraceMetaData: z.ZodObject<{
package/dist/zod.js CHANGED
@@ -5369,7 +5369,14 @@ var zListTraceItemAttributesResponse = z.array(z.object({
5369
5369
  "string",
5370
5370
  "number",
5371
5371
  "boolean"
5372
- ])
5372
+ ]),
5373
+ context: z.object({
5374
+ brief: z.string(),
5375
+ isDeprecated: z.boolean(),
5376
+ details: z.array(z.string()).optional(),
5377
+ examples: z.array(z.unknown()).optional(),
5378
+ replacementAttribute: z.string().optional()
5379
+ }).optional()
5373
5380
  }));
5374
5381
  var zListWorkflow = z.array(z.object({
5375
5382
  id: z.string(),
@@ -20120,7 +20127,14 @@ var zListOrganizationTraceItemAttributesResponse = z.array(z.object({
20120
20127
  "string",
20121
20128
  "number",
20122
20129
  "boolean"
20123
- ])
20130
+ ]),
20131
+ context: z.object({
20132
+ brief: z.string(),
20133
+ isDeprecated: z.boolean(),
20134
+ details: z.array(z.string()).optional(),
20135
+ examples: z.array(z.unknown()).optional(),
20136
+ replacementAttribute: z.string().optional()
20137
+ }).optional()
20124
20138
  }));
20125
20139
  var zGetOrganizationTraceMetaData = z.object({
20126
20140
  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.230.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",