@sentry/api 0.232.0 → 0.233.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.
@@ -4592,18 +4592,20 @@ export type ListTraceItemAttributesResponse = Array<{
4592
4592
  };
4593
4593
  attributeType: 'string' | 'number' | 'boolean';
4594
4594
  /**
4595
- * Additional, mostly-static metadata about an attribute sourced from the
4596
- * sentry conventions (``sentry_conventions.attributes.ATTRIBUTE_METADATA``).
4595
+ * Additional, mostly-static metadata about an attribute.
4597
4596
  *
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.
4597
+ * When ``expand=context`` is requested (and the
4598
+ * ``data-browsing-attribute-context`` feature is enabled), context is attached
4599
+ * to every attribute. Today the metadata is sourced from the sentry
4600
+ * conventions (``sentry_conventions.attributes.ATTRIBUTE_METADATA``), so
4601
+ * attributes that map to a known convention carry that metadata (only the
4602
+ * fields actually present are included) while custom attributes get an empty
4603
+ * context. Serving context for custom attributes is planned, at which point
4604
+ * the empty contexts will start to be populated.
4603
4605
  */
4604
4606
  context?: {
4605
- brief: string;
4606
- isDeprecated: boolean;
4607
+ brief?: string;
4608
+ isDeprecated?: boolean;
4607
4609
  details?: Array<string>;
4608
4610
  examples?: Array<unknown>;
4609
4611
  replacementAttribute?: string;
@@ -21588,18 +21590,20 @@ export type ListOrganizationTraceItemAttributesResponses = {
21588
21590
  };
21589
21591
  attributeType: 'string' | 'number' | 'boolean';
21590
21592
  /**
21591
- * Additional, mostly-static metadata about an attribute sourced from the
21592
- * sentry conventions (``sentry_conventions.attributes.ATTRIBUTE_METADATA``).
21593
+ * Additional, mostly-static metadata about an attribute.
21593
21594
  *
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.
21595
+ * When ``expand=context`` is requested (and the
21596
+ * ``data-browsing-attribute-context`` feature is enabled), context is attached
21597
+ * to every attribute. Today the metadata is sourced from the sentry
21598
+ * conventions (``sentry_conventions.attributes.ATTRIBUTE_METADATA``), so
21599
+ * attributes that map to a known convention carry that metadata (only the
21600
+ * fields actually present are included) while custom attributes get an empty
21601
+ * context. Serving context for custom attributes is planned, at which point
21602
+ * the empty contexts will start to be populated.
21599
21603
  */
21600
21604
  context?: {
21601
- brief: string;
21602
- isDeprecated: boolean;
21605
+ brief?: string;
21606
+ isDeprecated?: boolean;
21603
21607
  details?: Array<string>;
21604
21608
  examples?: Array<unknown>;
21605
21609
  replacementAttribute?: string;
package/dist/zod.gen.d.ts CHANGED
@@ -13215,21 +13215,21 @@ export declare const zListTraceItemAttributesResponse: z.ZodArray<z.ZodObject<{
13215
13215
  }>;
13216
13216
  attributeType: z.ZodEnum<["string", "number", "boolean"]>;
13217
13217
  context: z.ZodOptional<z.ZodObject<{
13218
- brief: z.ZodString;
13219
- isDeprecated: z.ZodBoolean;
13218
+ brief: z.ZodOptional<z.ZodString>;
13219
+ isDeprecated: z.ZodOptional<z.ZodBoolean>;
13220
13220
  details: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13221
13221
  examples: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
13222
13222
  replacementAttribute: z.ZodOptional<z.ZodString>;
13223
13223
  }, "strip", z.ZodTypeAny, {
13224
- isDeprecated: boolean;
13225
- brief: string;
13226
13224
  details?: string[] | undefined;
13225
+ isDeprecated?: boolean | undefined;
13226
+ brief?: string | undefined;
13227
13227
  examples?: unknown[] | undefined;
13228
13228
  replacementAttribute?: string | undefined;
13229
13229
  }, {
13230
- isDeprecated: boolean;
13231
- brief: string;
13232
13230
  details?: string[] | undefined;
13231
+ isDeprecated?: boolean | undefined;
13232
+ brief?: string | undefined;
13233
13233
  examples?: unknown[] | undefined;
13234
13234
  replacementAttribute?: string | undefined;
13235
13235
  }>>;
@@ -13242,9 +13242,9 @@ export declare const zListTraceItemAttributesResponse: z.ZodArray<z.ZodObject<{
13242
13242
  is_transformed_alias?: boolean | undefined;
13243
13243
  };
13244
13244
  context?: {
13245
- isDeprecated: boolean;
13246
- brief: string;
13247
13245
  details?: string[] | undefined;
13246
+ isDeprecated?: boolean | undefined;
13247
+ brief?: string | undefined;
13248
13248
  examples?: unknown[] | undefined;
13249
13249
  replacementAttribute?: string | undefined;
13250
13250
  } | undefined;
@@ -13258,9 +13258,9 @@ export declare const zListTraceItemAttributesResponse: z.ZodArray<z.ZodObject<{
13258
13258
  is_transformed_alias?: boolean | undefined;
13259
13259
  };
13260
13260
  context?: {
13261
- isDeprecated: boolean;
13262
- brief: string;
13263
13261
  details?: string[] | undefined;
13262
+ isDeprecated?: boolean | undefined;
13263
+ brief?: string | undefined;
13264
13264
  examples?: unknown[] | undefined;
13265
13265
  replacementAttribute?: string | undefined;
13266
13266
  } | undefined;
@@ -52934,21 +52934,21 @@ export declare const zListOrganizationTraceItemAttributesResponse: z.ZodArray<z.
52934
52934
  }>;
52935
52935
  attributeType: z.ZodEnum<["string", "number", "boolean"]>;
52936
52936
  context: z.ZodOptional<z.ZodObject<{
52937
- brief: z.ZodString;
52938
- isDeprecated: z.ZodBoolean;
52937
+ brief: z.ZodOptional<z.ZodString>;
52938
+ isDeprecated: z.ZodOptional<z.ZodBoolean>;
52939
52939
  details: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52940
52940
  examples: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
52941
52941
  replacementAttribute: z.ZodOptional<z.ZodString>;
52942
52942
  }, "strip", z.ZodTypeAny, {
52943
- isDeprecated: boolean;
52944
- brief: string;
52945
52943
  details?: string[] | undefined;
52944
+ isDeprecated?: boolean | undefined;
52945
+ brief?: string | undefined;
52946
52946
  examples?: unknown[] | undefined;
52947
52947
  replacementAttribute?: string | undefined;
52948
52948
  }, {
52949
- isDeprecated: boolean;
52950
- brief: string;
52951
52949
  details?: string[] | undefined;
52950
+ isDeprecated?: boolean | undefined;
52951
+ brief?: string | undefined;
52952
52952
  examples?: unknown[] | undefined;
52953
52953
  replacementAttribute?: string | undefined;
52954
52954
  }>>;
@@ -52961,9 +52961,9 @@ export declare const zListOrganizationTraceItemAttributesResponse: z.ZodArray<z.
52961
52961
  is_transformed_alias?: boolean | undefined;
52962
52962
  };
52963
52963
  context?: {
52964
- isDeprecated: boolean;
52965
- brief: string;
52966
52964
  details?: string[] | undefined;
52965
+ isDeprecated?: boolean | undefined;
52966
+ brief?: string | undefined;
52967
52967
  examples?: unknown[] | undefined;
52968
52968
  replacementAttribute?: string | undefined;
52969
52969
  } | undefined;
@@ -52977,9 +52977,9 @@ export declare const zListOrganizationTraceItemAttributesResponse: z.ZodArray<z.
52977
52977
  is_transformed_alias?: boolean | undefined;
52978
52978
  };
52979
52979
  context?: {
52980
- isDeprecated: boolean;
52981
- brief: string;
52982
52980
  details?: string[] | undefined;
52981
+ isDeprecated?: boolean | undefined;
52982
+ brief?: string | undefined;
52983
52983
  examples?: unknown[] | undefined;
52984
52984
  replacementAttribute?: string | undefined;
52985
52985
  } | undefined;
package/dist/zod.js CHANGED
@@ -5375,8 +5375,8 @@ var zListTraceItemAttributesResponse = z.array(z.object({
5375
5375
  "boolean"
5376
5376
  ]),
5377
5377
  context: z.object({
5378
- brief: z.string(),
5379
- isDeprecated: z.boolean(),
5378
+ brief: z.string().optional(),
5379
+ isDeprecated: z.boolean().optional(),
5380
5380
  details: z.array(z.string()).optional(),
5381
5381
  examples: z.array(z.unknown()).optional(),
5382
5382
  replacementAttribute: z.string().optional()
@@ -20133,8 +20133,8 @@ var zListOrganizationTraceItemAttributesResponse = z.array(z.object({
20133
20133
  "boolean"
20134
20134
  ]),
20135
20135
  context: z.object({
20136
- brief: z.string(),
20137
- isDeprecated: z.boolean(),
20136
+ brief: z.string().optional(),
20137
+ isDeprecated: z.boolean().optional(),
20138
20138
  details: z.array(z.string()).optional(),
20139
20139
  examples: z.array(z.unknown()).optional(),
20140
20140
  replacementAttribute: z.string().optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.232.0",
3
+ "version": "0.233.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",