@sentry/api 0.306.0 → 0.308.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.
package/dist/zod.js CHANGED
@@ -4271,6 +4271,23 @@ var zIntegrationIssueConfigResponse = z.object({
4271
4271
  linkIssueConfig: z.array(z.record(z.unknown())).optional(),
4272
4272
  createIssueConfig: z.array(z.record(z.unknown())).optional()
4273
4273
  });
4274
+ var zIntegrationRepositoriesResponse = z.object({
4275
+ repos: z.array(z.object({
4276
+ name: z.string(),
4277
+ identifier: z.string(),
4278
+ isInstalled: z.boolean(),
4279
+ defaultBranch: z.union([
4280
+ z.string(),
4281
+ z.null()
4282
+ ]),
4283
+ externalId: z.string(),
4284
+ url: z.union([
4285
+ z.string(),
4286
+ z.null()
4287
+ ])
4288
+ })),
4289
+ searchable: z.boolean().optional()
4290
+ });
4274
4291
  var zIssueEventDetailsResponse = z.object({
4275
4292
  id: z.string(),
4276
4293
  groupID: z.union([
@@ -4589,6 +4606,54 @@ var zIssueEventDetailsResponse = z.object({
4589
4606
  content: z.string()
4590
4607
  }).optional()
4591
4608
  });
4609
+ var zIssueIntegrationsResponse = z.array(z.object({
4610
+ id: z.string(),
4611
+ name: z.string(),
4612
+ icon: z.union([
4613
+ z.string(),
4614
+ z.null()
4615
+ ]),
4616
+ domainName: z.union([
4617
+ z.string(),
4618
+ z.null()
4619
+ ]),
4620
+ accountType: z.union([
4621
+ z.string(),
4622
+ z.null()
4623
+ ]),
4624
+ scopes: z.union([
4625
+ z.array(z.string()),
4626
+ z.null()
4627
+ ]),
4628
+ outOfDate: z.union([
4629
+ z.boolean(),
4630
+ z.null()
4631
+ ]),
4632
+ status: z.string(),
4633
+ provider: z.object({
4634
+ key: z.string(),
4635
+ slug: z.string(),
4636
+ name: z.string(),
4637
+ canAdd: z.boolean(),
4638
+ canDisable: z.boolean(),
4639
+ features: z.array(z.string()),
4640
+ aspects: z.record(z.unknown())
4641
+ }),
4642
+ externalIssues: z.array(z.object({
4643
+ id: z.string(),
4644
+ key: z.string(),
4645
+ url: z.string(),
4646
+ title: z.union([
4647
+ z.string(),
4648
+ z.null()
4649
+ ]),
4650
+ description: z.union([
4651
+ z.string(),
4652
+ z.null()
4653
+ ]),
4654
+ displayName: z.string()
4655
+ }))
4656
+ }));
4592
4657
  var zLatestBaseSnapshotResponse = z.object({
4593
4658
  head_artifact_id: z.string().optional(),
4594
4659
  project_id: z.string().optional(),
@@ -8462,7 +8527,8 @@ var zOrganizationEventsTimeseriesResponse = z.object({
8462
8527
  end: z.number(),
8463
8528
  droppedCount: z.number(),
8464
8529
  label: z.string()
8465
- })).optional()
8530
+ })).optional(),
8531
+ estimatedIngestionDelaySeconds: z.number().optional()
8466
8532
  }).optional(),
8467
8533
  timeSeries: z.array(z.object({
8468
8534
  values: z.array(z.object({
@@ -10144,6 +10210,13 @@ var zOutgoingNotificationAction = z.object({
10144
10210
  z.null()
10145
10211
  ])
10146
10212
  });
10213
+ var zPlatformExternalIssueResponse = z.object({
10214
+ id: z.string(),
10215
+ issueId: z.string(),
10216
+ serviceType: z.string(),
10217
+ displayName: z.string(),
10218
+ webUrl: z.string()
10219
+ });
10147
10220
  var zProjectAdmin = z.object({
10148
10221
  digestsMinDelay: z.number().int().gte(60).lte(3600),
10149
10222
  digestsMaxDelay: z.number().int().gte(60).lte(3600),
@@ -11300,6 +11373,30 @@ var zScimTeamRequestBody = z.object({
11300
11373
  var zSeerModelsResponse = z.object({
11301
11374
  models: z.array(z.string())
11302
11375
  });
11376
+ var zSentryAppComponentsResponse = z.array(z.object({
11377
+ uuid: z.string(),
11378
+ type: z.string(),
11379
+ schema: z.record(z.unknown()),
11380
+ error: z.union([
11381
+ z.string(),
11382
+ z.object({
11383
+ detail: z.string().optional(),
11384
+ context: z.record(z.unknown()).optional()
11385
+ })
11386
+ ]),
11387
+ sentryApp: z.object({
11388
+ uuid: z.string(),
11389
+ slug: z.string(),
11390
+ name: z.string(),
11391
+ avatars: z.array(z.object({
11392
+ avatarType: z.string(),
11393
+ avatarUuid: z.string(),
11394
+ avatarUrl: z.string(),
11395
+ color: z.boolean(),
11396
+ photoType: z.string()
11397
+ }))
11398
+ })
11399
+ }));
11303
11400
  var zSentryAppDetailsResponse = z.object({
11304
11401
  allowedOrigins: z.array(z.string()),
11305
11402
  avatars: z.array(z.object({
@@ -11354,6 +11451,15 @@ var zSentryAppDetailsResponse = z.object({
11354
11451
  slug: z.string()
11355
11452
  }).optional()
11356
11453
  });
11454
+ var zSentryAppExternalRequestOptionsResponse = z.object({
11455
+ choices: z.array(z.array(z.string())),
11456
+ defaultValue: z.string().optional()
11457
+ });
11458
+ var zSentryAppInstallationExternalIssueActions = z.object({
11459
+ groupId: z.string(),
11460
+ action: z.enum(["link", "create"]),
11461
+ uri: z.string()
11462
+ });
11357
11463
  var zSentryAppParser = z.object({
11358
11464
  name: z.string(),
11359
11465
  scopes: z.union([
@@ -15710,7 +15816,8 @@ var zListOrganizationEventsTimeseriesResponse = z.object({
15710
15816
  end: z.number(),
15711
15817
  droppedCount: z.number(),
15712
15818
  label: z.string()
15713
- })).optional()
15819
+ })).optional(),
15820
+ estimatedIngestionDelaySeconds: z.number().optional()
15714
15821
  }).optional(),
15715
15822
  timeSeries: z.array(z.object({
15716
15823
  values: z.array(z.object({
@@ -16373,6 +16480,35 @@ var zGetOrganizationIntegrationResponse = z.object({
16373
16480
  z.null()
16374
16481
  ])
16375
16482
  });
16483
+ var zListOrganizationIntegrationRepositoriesData = z.object({
16484
+ body: z.never().optional(),
16485
+ path: z.object({
16486
+ organization_id_or_slug: z.string(),
16487
+ integration_id: z.string()
16488
+ }),
16489
+ query: z.object({
16490
+ search: z.string().optional(),
16491
+ installableOnly: z.boolean().optional(),
16492
+ accessibleOnly: z.boolean().optional()
16493
+ }).optional()
16494
+ });
16495
+ var zListOrganizationIntegrationRepositoriesResponse = z.object({
16496
+ repos: z.array(z.object({
16497
+ name: z.string(),
16498
+ identifier: z.string(),
16499
+ isInstalled: z.boolean(),
16500
+ defaultBranch: z.union([
16501
+ z.string(),
16502
+ z.null()
16503
+ ]),
16504
+ externalId: z.string(),
16505
+ url: z.union([
16506
+ z.string(),
16507
+ z.null()
16508
+ ])
16509
+ })),
16510
+ searchable: z.boolean().optional()
16511
+ });
16376
16512
  var zDeleteOrganizationIssuesData = z.object({
16377
16513
  body: z.never().optional(),
16378
16514
  path: z.object({
@@ -23471,6 +23607,40 @@ var zUpdateOrganizationScimV2UserData = z.object({
23471
23607
  query: z.never().optional()
23472
23608
  });
23473
23609
  var zUpdateOrganizationScimV2UserResponse = z.void();
23610
+ var zListOrganizationSentryAppComponentsData = z.object({
23611
+ body: z.never().optional(),
23612
+ path: z.object({
23613
+ organization_id_or_slug: z.string()
23614
+ }),
23615
+ query: z.object({
23616
+ cursor: z.string().min(1).optional(),
23617
+ filter: z.string().optional()
23618
+ }).optional()
23619
+ });
23620
+ var zListOrganizationSentryAppComponentsResponse = z.array(z.object({
23621
+ uuid: z.string(),
23622
+ type: z.string(),
23623
+ schema: z.record(z.unknown()),
23624
+ error: z.union([
23625
+ z.string(),
23626
+ z.object({
23627
+ detail: z.string().optional(),
23628
+ context: z.record(z.unknown()).optional()
23629
+ })
23630
+ ]),
23631
+ sentryApp: z.object({
23632
+ uuid: z.string(),
23633
+ slug: z.string(),
23634
+ name: z.string(),
23635
+ avatars: z.array(z.object({
23636
+ avatarType: z.string(),
23637
+ avatarUuid: z.string(),
23638
+ avatarUrl: z.string(),
23639
+ color: z.boolean(),
23640
+ photoType: z.string()
23641
+ }))
23642
+ })
23643
+ }));
23474
23644
  var zListOrganizationSentryAppsData = z.object({
23475
23645
  body: z.never().optional(),
23476
23646
  path: z.object({
@@ -30275,6 +30445,40 @@ var zListSeerModelsData = z.object({
30275
30445
  var zListSeerModelsResponse = z.object({
30276
30446
  models: z.array(z.string())
30277
30447
  });
30448
+ var zExecuteSentryAppInstallationExternalIssueActionData = z.object({
30449
+ body: z.object({
30450
+ groupId: z.string(),
30451
+ action: z.enum(["link", "create"]),
30452
+ uri: z.string()
30453
+ }),
30454
+ path: z.object({
30455
+ uuid: z.string()
30456
+ }),
30457
+ query: z.never().optional()
30458
+ });
30459
+ var zExecuteSentryAppInstallationExternalIssueActionResponse = z.object({
30460
+ id: z.string(),
30461
+ issueId: z.string(),
30462
+ serviceType: z.string(),
30463
+ displayName: z.string(),
30464
+ webUrl: z.string()
30465
+ });
30466
+ var zGetSentryAppInstallationExternalRequestOptionsData = z.object({
30467
+ body: z.never().optional(),
30468
+ path: z.object({
30469
+ uuid: z.string()
30470
+ }),
30471
+ query: z.object({
30472
+ uri: z.string().min(1),
30473
+ projectId: z.number().int().optional(),
30474
+ query: z.string().min(1).optional(),
30475
+ dependentData: z.string().min(1).optional()
30476
+ })
30477
+ });
30478
+ var zGetSentryAppInstallationExternalRequestOptionsResponse = z.object({
30479
+ choices: z.array(z.array(z.string())),
30480
+ defaultValue: z.string().optional()
30481
+ });
30278
30482
  var zDeleteSentryAppData = z.object({
30279
30483
  body: z.never().optional(),
30280
30484
  path: z.object({
@@ -32657,6 +32861,16 @@ var zListOrganizationIssueExternalIssuesResponse = z.array(z.object({
32657
32861
  displayName: z.string(),
32658
32862
  webUrl: z.string()
32659
32863
  }));
32864
+ var zDeleteOrganizationIssueExternalIssueData = z.object({
32865
+ body: z.never().optional(),
32866
+ path: z.object({
32867
+ organization_id_or_slug: z.string(),
32868
+ issue_id: z.string(),
32869
+ external_issue_id: z.string()
32870
+ }),
32871
+ query: z.never().optional()
32872
+ });
32873
+ var zDeleteOrganizationIssueExternalIssueResponse = z.void();
32660
32874
  var zListOrganizationIssueHashesData = z.object({
32661
32875
  body: z.never().optional(),
32662
32876
  path: z.object({
@@ -32936,6 +33150,65 @@ var zListOrganizationIssueHashesResponse = z.array(z.object({
32936
33150
  z.null()
32937
33151
  ])
32938
33152
  }));
33153
+ var zListOrganizationIssueIntegrationsData = z.object({
33154
+ body: z.never().optional(),
33155
+ path: z.object({
33156
+ organization_id_or_slug: z.string(),
33157
+ issue_id: z.string()
33158
+ }),
33159
+ query: z.object({
33160
+ cursor: z.string().min(1).optional(),
33161
+ per_page: z.number().int().optional()
33162
+ }).optional()
33163
+ });
33164
+ var zListOrganizationIssueIntegrationsResponse = z.array(z.object({
33165
+ id: z.string(),
33166
+ name: z.string(),
33167
+ icon: z.union([
33168
+ z.string(),
33169
+ z.null()
33170
+ ]),
33171
+ domainName: z.union([
33172
+ z.string(),
33173
+ z.null()
33174
+ ]),
33175
+ accountType: z.union([
33176
+ z.string(),
33177
+ z.null()
33178
+ ]),
33179
+ scopes: z.union([
33180
+ z.array(z.string()),
33181
+ z.null()
33182
+ ]),
33183
+ outOfDate: z.union([
33184
+ z.boolean(),
33185
+ z.null()
33186
+ ]),
33187
+ status: z.string(),
33188
+ provider: z.object({
33189
+ key: z.string(),
33190
+ slug: z.string(),
33191
+ name: z.string(),
33192
+ canAdd: z.boolean(),
33193
+ canDisable: z.boolean(),
33194
+ features: z.array(z.string()),
33195
+ aspects: z.record(z.unknown())
33196
+ }),
33197
+ externalIssues: z.array(z.object({
33198
+ id: z.string(),
33199
+ key: z.string(),
33200
+ url: z.string(),
33201
+ title: z.union([
33202
+ z.string(),
33203
+ z.null()
33204
+ ]),
33205
+ description: z.union([
33206
+ z.string(),
33207
+ z.null()
33208
+ ]),
33209
+ displayName: z.string()
33210
+ }))
33211
+ }));
32939
33212
  var zDeleteOrganizationIssueIntegrationData = z.object({
32940
33213
  body: z.never().optional(),
32941
33214
  path: z.object({
@@ -33184,7 +33457,10 @@ export {
33184
33457
  zShortIdLookupResponse,
33185
33458
  zSessionsQueryResult,
33186
33459
  zSentryAppParser,
33460
+ zSentryAppInstallationExternalIssueActions,
33461
+ zSentryAppExternalRequestOptionsResponse,
33187
33462
  zSentryAppDetailsResponse,
33463
+ zSentryAppComponentsResponse,
33188
33464
  zSeerModelsResponse,
33189
33465
  zScimTeamRequestBody,
33190
33466
  zScimTeamPatchRequest,
@@ -33234,6 +33510,7 @@ export {
33234
33510
  zProjectEventsResponseDict,
33235
33511
  zProjectEventDetailsResponse,
33236
33512
  zProjectAdmin,
33513
+ zPlatformExternalIssueResponse,
33237
33514
  zOutgoingNotificationAction,
33238
33515
  zOutcomesResponse,
33239
33516
  zOrganizationWithProjectsAndTeams,
@@ -33362,6 +33639,8 @@ export {
33362
33639
  zListOrganizationSentryAppsData,
33363
33640
  zListOrganizationSentryAppInstallationsResponse,
33364
33641
  zListOrganizationSentryAppInstallationsData,
33642
+ zListOrganizationSentryAppComponentsResponse,
33643
+ zListOrganizationSentryAppComponentsData,
33365
33644
  zListOrganizationScimV2UsersResponse,
33366
33645
  zListOrganizationScimV2UsersData,
33367
33646
  zListOrganizationScimV2GroupsResponse,
@@ -33411,6 +33690,8 @@ export {
33411
33690
  zListOrganizationIssueViewsData,
33412
33691
  zListOrganizationIssueTagValuesResponse,
33413
33692
  zListOrganizationIssueTagValuesData,
33693
+ zListOrganizationIssueIntegrationsResponse,
33694
+ zListOrganizationIssueIntegrationsData,
33414
33695
  zListOrganizationIssueHashesResponse,
33415
33696
  zListOrganizationIssueHashesData,
33416
33697
  zListOrganizationIssueExternalIssuesResponse,
@@ -33420,6 +33701,8 @@ export {
33420
33701
  zListOrganizationIntegrationsResponse,
33421
33702
  zListOrganizationIntegrationsData,
33422
33703
  zListOrganizationIntegrationResponse,
33704
+ zListOrganizationIntegrationRepositoriesResponse,
33705
+ zListOrganizationIntegrationRepositoriesData,
33423
33706
  zListOrganizationForwardingResponse,
33424
33707
  zListOrganizationForwardingData,
33425
33708
  zListOrganizationEventsTimeseriesResponse,
@@ -33453,7 +33736,9 @@ export {
33453
33736
  zLayout,
33454
33737
  zLatestInstallableBuildResponse,
33455
33738
  zLatestBaseSnapshotResponse,
33739
+ zIssueIntegrationsResponse,
33456
33740
  zIssueEventDetailsResponse,
33741
+ zIntegrationRepositoriesResponse,
33457
33742
  zIntegrationIssueConfigResponse,
33458
33743
  zInstallInfoResponse,
33459
33744
  zInCommitValidator,
@@ -33468,6 +33753,8 @@ export {
33468
33753
  zGetTeamResponse,
33469
33754
  zGetTeamData,
33470
33755
  zGetSentryAppResponse,
33756
+ zGetSentryAppInstallationExternalRequestOptionsResponse,
33757
+ zGetSentryAppInstallationExternalRequestOptionsData,
33471
33758
  zGetSentryAppData,
33472
33759
  zGetReplayViewedBy,
33473
33760
  zGetReplayRecordingSegment,
@@ -33574,6 +33861,8 @@ export {
33574
33861
  zExternalIssueLinkResponse,
33575
33862
  zExternalActor,
33576
33863
  zExplorerAutofixRequest,
33864
+ zExecuteSentryAppInstallationExternalIssueActionResponse,
33865
+ zExecuteSentryAppInstallationExternalIssueActionData,
33577
33866
  zEventIdLookupResponse,
33578
33867
  zEventAttachmentDetailsResponse,
33579
33868
  zEnvironmentProject,
@@ -33638,6 +33927,8 @@ export {
33638
33927
  zDeleteOrganizationIssuesData,
33639
33928
  zDeleteOrganizationIssueIntegrationResponse,
33640
33929
  zDeleteOrganizationIssueIntegrationData,
33930
+ zDeleteOrganizationIssueExternalIssueResponse,
33931
+ zDeleteOrganizationIssueExternalIssueData,
33641
33932
  zDeleteOrganizationIssueData,
33642
33933
  zDeleteOrganizationIntegrationResponse,
33643
33934
  zDeleteOrganizationIntegrationData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.306.0",
3
+ "version": "0.308.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",