@sentry/api 0.231.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;
@@ -17837,9 +17839,9 @@ export type ListOrganizationProfilingChunksData = {
17837
17839
  };
17838
17840
  query: {
17839
17841
  /**
17840
- * The ID of the project to fetch chunks for. Exactly one project must be specified.
17842
+ * The ID or slug of the project to fetch chunks for. Exactly one project must be specified.
17841
17843
  */
17842
- project: number;
17844
+ project: string;
17843
17845
  /**
17844
17846
  * The continuous-profiler ID to fetch chunks for.
17845
17847
  */
@@ -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;
@@ -44225,19 +44225,19 @@ export declare const zListOrganizationProfilingChunksData: z.ZodObject<{
44225
44225
  organization_id_or_slug: string;
44226
44226
  }>;
44227
44227
  query: z.ZodObject<{
44228
- project: z.ZodNumber;
44228
+ project: z.ZodString;
44229
44229
  profiler_id: z.ZodString;
44230
44230
  statsPeriod: z.ZodOptional<z.ZodString>;
44231
44231
  start: z.ZodOptional<z.ZodString>;
44232
44232
  end: z.ZodOptional<z.ZodString>;
44233
44233
  }, "strip", z.ZodTypeAny, {
44234
- project: number;
44234
+ project: string;
44235
44235
  profiler_id: string;
44236
44236
  end?: string | undefined;
44237
44237
  start?: string | undefined;
44238
44238
  statsPeriod?: string | undefined;
44239
44239
  }, {
44240
- project: number;
44240
+ project: string;
44241
44241
  profiler_id: string;
44242
44242
  end?: string | undefined;
44243
44243
  start?: string | undefined;
@@ -44245,7 +44245,7 @@ export declare const zListOrganizationProfilingChunksData: z.ZodObject<{
44245
44245
  }>;
44246
44246
  }, "strip", z.ZodTypeAny, {
44247
44247
  query: {
44248
- project: number;
44248
+ project: string;
44249
44249
  profiler_id: string;
44250
44250
  end?: string | undefined;
44251
44251
  start?: string | undefined;
@@ -44257,7 +44257,7 @@ export declare const zListOrganizationProfilingChunksData: z.ZodObject<{
44257
44257
  body?: undefined;
44258
44258
  }, {
44259
44259
  query: {
44260
- project: number;
44260
+ project: string;
44261
44261
  profiler_id: string;
44262
44262
  end?: string | undefined;
44263
44263
  start?: string | 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()
@@ -17252,7 +17252,7 @@ var zListOrganizationProfilingChunksData = z.object({
17252
17252
  organization_id_or_slug: z.string()
17253
17253
  }),
17254
17254
  query: z.object({
17255
- project: z.number().int(),
17255
+ project: z.string(),
17256
17256
  profiler_id: z.string(),
17257
17257
  statsPeriod: z.string().optional(),
17258
17258
  start: z.string().datetime().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.231.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",