@sentry/api 0.214.0 → 0.216.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.
@@ -2526,10 +2526,11 @@ export type ExplorerAutofixRequest = {
2526
2526
  * * `root_cause`
2527
2527
  * * `solution`
2528
2528
  * * `code_changes`
2529
+ * * `pr_iteration`
2529
2530
  * * `open_pr`
2530
2531
  * * `coding_agent_handoff`
2531
2532
  */
2532
- step?: 'root_cause' | 'solution' | 'code_changes' | 'open_pr' | 'coding_agent_handoff';
2533
+ step?: 'root_cause' | 'solution' | 'code_changes' | 'pr_iteration' | 'open_pr' | 'coding_agent_handoff';
2533
2534
  /**
2534
2535
  * Where the issue fix process should stop. If not provided, will run to root cause.
2535
2536
  *
@@ -4849,7 +4850,7 @@ export type MonitorList = Array<{
4849
4850
  */
4850
4851
  export type MonitorValidator = {
4851
4852
  /**
4852
- * The project slug to associate the monitor to.
4853
+ * The project ID or slug to associate the monitor to.
4853
4854
  */
4854
4855
  project: string;
4855
4856
  /**
@@ -5553,7 +5554,7 @@ export type NotificationAction = {
5553
5554
  */
5554
5555
  target_display?: string;
5555
5556
  /**
5556
- * List of projects slugs that the Notification Action is created for.
5557
+ * List of project IDs or slugs that the Notification Action is created for.
5557
5558
  */
5558
5559
  projects?: Array<string>;
5559
5560
  };
@@ -15171,7 +15172,7 @@ export type CreateOrganizationMonitorData = {
15171
15172
  */
15172
15173
  body: {
15173
15174
  /**
15174
- * The project slug to associate the monitor to.
15175
+ * The project ID or slug to associate the monitor to.
15175
15176
  */
15176
15177
  project: string;
15177
15178
  /**
@@ -16138,7 +16139,7 @@ export type UpdateOrganizationMonitorData = {
16138
16139
  */
16139
16140
  body: {
16140
16141
  /**
16141
- * The project slug to associate the monitor to.
16142
+ * The project ID or slug to associate the monitor to.
16142
16143
  */
16143
16144
  project: string;
16144
16145
  /**
@@ -17089,7 +17090,7 @@ export type CreateOrganizationNotificationsActionData = {
17089
17090
  */
17090
17091
  target_display?: string;
17091
17092
  /**
17092
- * List of projects slugs that the Notification Action is created for.
17093
+ * List of project IDs or slugs that the Notification Action is created for.
17093
17094
  */
17094
17095
  projects?: Array<string>;
17095
17096
  };
@@ -17222,7 +17223,7 @@ export type UpdateOrganizationNotificationsActionData = {
17222
17223
  */
17223
17224
  target_display?: string;
17224
17225
  /**
17225
- * List of projects slugs that the Notification Action is created for.
17226
+ * List of project IDs or slugs that the Notification Action is created for.
17226
17227
  */
17227
17228
  projects?: Array<string>;
17228
17229
  };
@@ -17748,9 +17749,9 @@ export type ListOrganizationPreprodartifactsSnapshotsLatestBaseData = {
17748
17749
  */
17749
17750
  branch?: string;
17750
17751
  /**
17751
- * Project ID to scope the lookup.
17752
+ * Project ID or slug to scope the lookup.
17752
17753
  */
17753
- project?: number;
17754
+ project?: number | string;
17754
17755
  /**
17755
17756
  * Set to '1' or 'true' to strip image metadata to display_name, image_file_name, group, description, and image_url only.
17756
17757
  */
@@ -25984,7 +25985,7 @@ export type UpdateProjectMonitorData = {
25984
25985
  */
25985
25986
  body: {
25986
25987
  /**
25987
- * The project slug to associate the monitor to.
25988
+ * The project ID or slug to associate the monitor to.
25988
25989
  */
25989
25990
  project: string;
25990
25991
  /**
@@ -32187,10 +32188,11 @@ export type CreateOrganizationIssueAutofixData = {
32187
32188
  * * `root_cause`
32188
32189
  * * `solution`
32189
32190
  * * `code_changes`
32191
+ * * `pr_iteration`
32190
32192
  * * `open_pr`
32191
32193
  * * `coding_agent_handoff`
32192
32194
  */
32193
- step?: 'root_cause' | 'solution' | 'code_changes' | 'open_pr' | 'coding_agent_handoff';
32195
+ step?: 'root_cause' | 'solution' | 'code_changes' | 'pr_iteration' | 'open_pr' | 'coding_agent_handoff';
32194
32196
  /**
32195
32197
  * Where the issue fix process should stop. If not provided, will run to root cause.
32196
32198
  *
package/dist/zod.gen.d.ts CHANGED
@@ -5310,7 +5310,7 @@ export declare const zEventIdLookupResponse: z.ZodObject<{
5310
5310
  * Serializer for the agent-based autofix requests.
5311
5311
  */
5312
5312
  export declare const zExplorerAutofixRequest: z.ZodObject<{
5313
- step: z.ZodOptional<z.ZodEnum<["root_cause", "solution", "code_changes", "open_pr", "coding_agent_handoff"]>>;
5313
+ step: z.ZodOptional<z.ZodEnum<["root_cause", "solution", "code_changes", "pr_iteration", "open_pr", "coding_agent_handoff"]>>;
5314
5314
  stopping_point: z.ZodOptional<z.ZodEnum<["root_cause", "solution", "code_changes", "open_pr"]>>;
5315
5315
  run_id: z.ZodOptional<z.ZodNumber>;
5316
5316
  sentry_run_id: z.ZodOptional<z.ZodString>;
@@ -5326,7 +5326,7 @@ export declare const zExplorerAutofixRequest: z.ZodObject<{
5326
5326
  run_id?: number | undefined;
5327
5327
  sentry_run_id?: string | undefined;
5328
5328
  provider?: string | undefined;
5329
- step?: "root_cause" | "solution" | "code_changes" | "open_pr" | "coding_agent_handoff" | undefined;
5329
+ step?: "root_cause" | "solution" | "code_changes" | "pr_iteration" | "open_pr" | "coding_agent_handoff" | undefined;
5330
5330
  stopping_point?: "root_cause" | "solution" | "code_changes" | "open_pr" | undefined;
5331
5331
  user_context?: string | undefined;
5332
5332
  repo_name?: string | undefined;
@@ -5337,7 +5337,7 @@ export declare const zExplorerAutofixRequest: z.ZodObject<{
5337
5337
  run_id?: number | undefined;
5338
5338
  sentry_run_id?: string | undefined;
5339
5339
  provider?: string | undefined;
5340
- step?: "root_cause" | "solution" | "code_changes" | "open_pr" | "coding_agent_handoff" | undefined;
5340
+ step?: "root_cause" | "solution" | "code_changes" | "pr_iteration" | "open_pr" | "coding_agent_handoff" | undefined;
5341
5341
  stopping_point?: "root_cause" | "solution" | "code_changes" | "open_pr" | undefined;
5342
5342
  user_context?: string | undefined;
5343
5343
  repo_name?: string | undefined;
@@ -44031,23 +44031,23 @@ export declare const zListOrganizationPreprodartifactsSnapshotsLatestBaseData: z
44031
44031
  query: z.ZodObject<{
44032
44032
  app_id: z.ZodString;
44033
44033
  branch: z.ZodOptional<z.ZodString>;
44034
- project: z.ZodOptional<z.ZodNumber>;
44034
+ project: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
44035
44035
  compact_metadata: z.ZodOptional<z.ZodString>;
44036
44036
  }, "strip", z.ZodTypeAny, {
44037
44037
  app_id: string;
44038
- project?: number | undefined;
44038
+ project?: string | number | undefined;
44039
44039
  compact_metadata?: string | undefined;
44040
44040
  branch?: string | undefined;
44041
44041
  }, {
44042
44042
  app_id: string;
44043
- project?: number | undefined;
44043
+ project?: string | number | undefined;
44044
44044
  compact_metadata?: string | undefined;
44045
44045
  branch?: string | undefined;
44046
44046
  }>;
44047
44047
  }, "strip", z.ZodTypeAny, {
44048
44048
  query: {
44049
44049
  app_id: string;
44050
- project?: number | undefined;
44050
+ project?: string | number | undefined;
44051
44051
  compact_metadata?: string | undefined;
44052
44052
  branch?: string | undefined;
44053
44053
  };
@@ -44058,7 +44058,7 @@ export declare const zListOrganizationPreprodartifactsSnapshotsLatestBaseData: z
44058
44058
  }, {
44059
44059
  query: {
44060
44060
  app_id: string;
44061
- project?: number | undefined;
44061
+ project?: string | number | undefined;
44062
44062
  compact_metadata?: string | undefined;
44063
44063
  branch?: string | undefined;
44064
44064
  };
@@ -73098,7 +73098,7 @@ export declare const zListOrganizationIssueAutofixResponse: z.ZodObject<{
73098
73098
  }>;
73099
73099
  export declare const zCreateOrganizationIssueAutofixData: z.ZodObject<{
73100
73100
  body: z.ZodOptional<z.ZodObject<{
73101
- step: z.ZodOptional<z.ZodEnum<["root_cause", "solution", "code_changes", "open_pr", "coding_agent_handoff"]>>;
73101
+ step: z.ZodOptional<z.ZodEnum<["root_cause", "solution", "code_changes", "pr_iteration", "open_pr", "coding_agent_handoff"]>>;
73102
73102
  stopping_point: z.ZodOptional<z.ZodEnum<["root_cause", "solution", "code_changes", "open_pr"]>>;
73103
73103
  run_id: z.ZodOptional<z.ZodNumber>;
73104
73104
  sentry_run_id: z.ZodOptional<z.ZodString>;
@@ -73114,7 +73114,7 @@ export declare const zCreateOrganizationIssueAutofixData: z.ZodObject<{
73114
73114
  run_id?: number | undefined;
73115
73115
  sentry_run_id?: string | undefined;
73116
73116
  provider?: string | undefined;
73117
- step?: "root_cause" | "solution" | "code_changes" | "open_pr" | "coding_agent_handoff" | undefined;
73117
+ step?: "root_cause" | "solution" | "code_changes" | "pr_iteration" | "open_pr" | "coding_agent_handoff" | undefined;
73118
73118
  stopping_point?: "root_cause" | "solution" | "code_changes" | "open_pr" | undefined;
73119
73119
  user_context?: string | undefined;
73120
73120
  repo_name?: string | undefined;
@@ -73125,7 +73125,7 @@ export declare const zCreateOrganizationIssueAutofixData: z.ZodObject<{
73125
73125
  run_id?: number | undefined;
73126
73126
  sentry_run_id?: string | undefined;
73127
73127
  provider?: string | undefined;
73128
- step?: "root_cause" | "solution" | "code_changes" | "open_pr" | "coding_agent_handoff" | undefined;
73128
+ step?: "root_cause" | "solution" | "code_changes" | "pr_iteration" | "open_pr" | "coding_agent_handoff" | undefined;
73129
73129
  stopping_point?: "root_cause" | "solution" | "code_changes" | "open_pr" | undefined;
73130
73130
  user_context?: string | undefined;
73131
73131
  repo_name?: string | undefined;
@@ -73154,7 +73154,7 @@ export declare const zCreateOrganizationIssueAutofixData: z.ZodObject<{
73154
73154
  run_id?: number | undefined;
73155
73155
  sentry_run_id?: string | undefined;
73156
73156
  provider?: string | undefined;
73157
- step?: "root_cause" | "solution" | "code_changes" | "open_pr" | "coding_agent_handoff" | undefined;
73157
+ step?: "root_cause" | "solution" | "code_changes" | "pr_iteration" | "open_pr" | "coding_agent_handoff" | undefined;
73158
73158
  stopping_point?: "root_cause" | "solution" | "code_changes" | "open_pr" | undefined;
73159
73159
  user_context?: string | undefined;
73160
73160
  repo_name?: string | undefined;
@@ -73172,7 +73172,7 @@ export declare const zCreateOrganizationIssueAutofixData: z.ZodObject<{
73172
73172
  run_id?: number | undefined;
73173
73173
  sentry_run_id?: string | undefined;
73174
73174
  provider?: string | undefined;
73175
- step?: "root_cause" | "solution" | "code_changes" | "open_pr" | "coding_agent_handoff" | undefined;
73175
+ step?: "root_cause" | "solution" | "code_changes" | "pr_iteration" | "open_pr" | "coding_agent_handoff" | undefined;
73176
73176
  stopping_point?: "root_cause" | "solution" | "code_changes" | "open_pr" | undefined;
73177
73177
  user_context?: string | undefined;
73178
73178
  repo_name?: string | undefined;
package/dist/zod.js CHANGED
@@ -2376,6 +2376,7 @@ var zExplorerAutofixRequest = z.object({
2376
2376
  "root_cause",
2377
2377
  "solution",
2378
2378
  "code_changes",
2379
+ "pr_iteration",
2379
2380
  "open_pr",
2380
2381
  "coding_agent_handoff"
2381
2382
  ]).optional(),
@@ -17169,7 +17170,10 @@ var zListOrganizationPreprodartifactsSnapshotsLatestBaseData = z.object({
17169
17170
  query: z.object({
17170
17171
  app_id: z.string(),
17171
17172
  branch: z.string().optional(),
17172
- project: z.number().int().optional(),
17173
+ project: z.union([
17174
+ z.number().int(),
17175
+ z.string()
17176
+ ]).optional(),
17173
17177
  compact_metadata: z.string().optional()
17174
17178
  })
17175
17179
  });
@@ -27559,6 +27563,7 @@ var zCreateOrganizationIssueAutofixData = z.object({
27559
27563
  "root_cause",
27560
27564
  "solution",
27561
27565
  "code_changes",
27566
+ "pr_iteration",
27562
27567
  "open_pr",
27563
27568
  "coding_agent_handoff"
27564
27569
  ]).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.214.0",
3
+ "version": "0.216.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",