@sentry/api 0.327.0 → 0.328.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
@@ -10380,6 +10380,150 @@ var zProjectAdmin = z.object({
10380
10380
  "owner"
10381
10381
  ]).nullable().optional()
10382
10382
  });
10383
+ var zProjectCodeOwners = z.object({
10384
+ codeMapping: z.object({
10385
+ id: z.string(),
10386
+ projectId: z.string(),
10387
+ projectSlug: z.string(),
10388
+ repoId: z.string(),
10389
+ repoName: z.string(),
10390
+ integrationId: z.union([
10391
+ z.string(),
10392
+ z.null()
10393
+ ]),
10394
+ provider: z.union([
10395
+ z.object({
10396
+ key: z.string(),
10397
+ slug: z.string(),
10398
+ name: z.string(),
10399
+ canAdd: z.boolean(),
10400
+ canDisable: z.boolean(),
10401
+ features: z.array(z.string()),
10402
+ aspects: z.record(z.unknown())
10403
+ }),
10404
+ z.null()
10405
+ ]),
10406
+ stackRoot: z.string(),
10407
+ sourceRoot: z.string(),
10408
+ defaultBranch: z.union([
10409
+ z.string(),
10410
+ z.null()
10411
+ ]),
10412
+ automaticallyGenerated: z.boolean()
10413
+ }).optional(),
10414
+ ownershipSyntax: z.string().optional(),
10415
+ errors: z.object({
10416
+ missing_user_emails: z.array(z.string()),
10417
+ missing_external_users: z.array(z.string()),
10418
+ missing_external_teams: z.array(z.string()),
10419
+ teams_without_access: z.array(z.string()),
10420
+ users_without_access: z.array(z.string())
10421
+ }).optional(),
10422
+ schema: z.union([
10423
+ z.object({
10424
+ $version: z.number().int(),
10425
+ rules: z.array(z.object({
10426
+ matcher: z.object({
10427
+ type: z.string(),
10428
+ pattern: z.string()
10429
+ }),
10430
+ owners: z.array(z.object({
10431
+ type: z.string(),
10432
+ name: z.string(),
10433
+ id: z.string().optional()
10434
+ }))
10435
+ }))
10436
+ }),
10437
+ z.record(z.unknown())
10438
+ ]).optional(),
10439
+ codeOwnersUrl: z.string().optional(),
10440
+ id: z.string(),
10441
+ raw: z.string(),
10442
+ dateCreated: z.string().datetime(),
10443
+ dateUpdated: z.string().datetime(),
10444
+ dateSynced: z.union([
10445
+ z.string().datetime(),
10446
+ z.null()
10447
+ ]),
10448
+ codeMappingId: z.string(),
10449
+ provider: z.string()
10450
+ });
10451
+ var zProjectCodeOwnersCreateRequest = z.object({
10452
+ raw: z.string(),
10453
+ codeMappingId: z.string()
10454
+ });
10455
+ var zProjectCodeOwnersList = z.array(z.object({
10456
+ codeMapping: z.object({
10457
+ id: z.string(),
10458
+ projectId: z.string(),
10459
+ projectSlug: z.string(),
10460
+ repoId: z.string(),
10461
+ repoName: z.string(),
10462
+ integrationId: z.union([
10463
+ z.string(),
10464
+ z.null()
10465
+ ]),
10466
+ provider: z.union([
10467
+ z.object({
10468
+ key: z.string(),
10469
+ slug: z.string(),
10470
+ name: z.string(),
10471
+ canAdd: z.boolean(),
10472
+ canDisable: z.boolean(),
10473
+ features: z.array(z.string()),
10474
+ aspects: z.record(z.unknown())
10475
+ }),
10476
+ z.null()
10477
+ ]),
10478
+ stackRoot: z.string(),
10479
+ sourceRoot: z.string(),
10480
+ defaultBranch: z.union([
10481
+ z.string(),
10482
+ z.null()
10483
+ ]),
10484
+ automaticallyGenerated: z.boolean()
10485
+ }).optional(),
10486
+ ownershipSyntax: z.string().optional(),
10487
+ errors: z.object({
10488
+ missing_user_emails: z.array(z.string()),
10489
+ missing_external_users: z.array(z.string()),
10490
+ missing_external_teams: z.array(z.string()),
10491
+ teams_without_access: z.array(z.string()),
10492
+ users_without_access: z.array(z.string())
10493
+ }).optional(),
10494
+ schema: z.union([
10495
+ z.object({
10496
+ $version: z.number().int(),
10497
+ rules: z.array(z.object({
10498
+ matcher: z.object({
10499
+ type: z.string(),
10500
+ pattern: z.string()
10501
+ }),
10502
+ owners: z.array(z.object({
10503
+ type: z.string(),
10504
+ name: z.string(),
10505
+ id: z.string().optional()
10506
+ }))
10507
+ }))
10508
+ }),
10509
+ z.record(z.unknown())
10510
+ ]).optional(),
10511
+ codeOwnersUrl: z.string().optional(),
10512
+ id: z.string(),
10513
+ raw: z.string(),
10514
+ dateCreated: z.string().datetime(),
10515
+ dateUpdated: z.string().datetime(),
10516
+ dateSynced: z.union([
10517
+ z.string().datetime(),
10518
+ z.null()
10519
+ ]),
10520
+ codeMappingId: z.string(),
10521
+ provider: z.string()
10522
+ }));
10523
+ var zProjectCodeOwnersUpdateRequest = z.object({
10524
+ raw: z.string().optional(),
10525
+ codeMappingId: z.string().optional()
10526
+ });
10383
10527
  var zProjectEventDetailsResponse = z.object({
10384
10528
  id: z.string(),
10385
10529
  groupID: z.union([
@@ -26142,6 +26286,330 @@ var zUpdateProjectResponse = z.object({
26142
26286
  z.null()
26143
26287
  ])
26144
26288
  });
26289
+ var zListProjectCodeOwnersData = z.object({
26290
+ body: z.never().optional(),
26291
+ path: z.object({
26292
+ organization_id_or_slug: z.string(),
26293
+ project_id_or_slug: z.string()
26294
+ }),
26295
+ query: z.object({
26296
+ expand: z.array(z.enum(["codeMapping", "ownershipSyntax"])).optional()
26297
+ }).optional()
26298
+ });
26299
+ var zListProjectCodeOwnersResponse = z.array(z.object({
26300
+ codeMapping: z.object({
26301
+ id: z.string(),
26302
+ projectId: z.string(),
26303
+ projectSlug: z.string(),
26304
+ repoId: z.string(),
26305
+ repoName: z.string(),
26306
+ integrationId: z.union([
26307
+ z.string(),
26308
+ z.null()
26309
+ ]),
26310
+ provider: z.union([
26311
+ z.object({
26312
+ key: z.string(),
26313
+ slug: z.string(),
26314
+ name: z.string(),
26315
+ canAdd: z.boolean(),
26316
+ canDisable: z.boolean(),
26317
+ features: z.array(z.string()),
26318
+ aspects: z.record(z.unknown())
26319
+ }),
26320
+ z.null()
26321
+ ]),
26322
+ stackRoot: z.string(),
26323
+ sourceRoot: z.string(),
26324
+ defaultBranch: z.union([
26325
+ z.string(),
26326
+ z.null()
26327
+ ]),
26328
+ automaticallyGenerated: z.boolean()
26329
+ }).optional(),
26330
+ ownershipSyntax: z.string().optional(),
26331
+ errors: z.object({
26332
+ missing_user_emails: z.array(z.string()),
26333
+ missing_external_users: z.array(z.string()),
26334
+ missing_external_teams: z.array(z.string()),
26335
+ teams_without_access: z.array(z.string()),
26336
+ users_without_access: z.array(z.string())
26337
+ }).optional(),
26338
+ schema: z.union([
26339
+ z.object({
26340
+ $version: z.number().int(),
26341
+ rules: z.array(z.object({
26342
+ matcher: z.object({
26343
+ type: z.string(),
26344
+ pattern: z.string()
26345
+ }),
26346
+ owners: z.array(z.object({
26347
+ type: z.string(),
26348
+ name: z.string(),
26349
+ id: z.string().optional()
26350
+ }))
26351
+ }))
26352
+ }),
26353
+ z.record(z.unknown())
26354
+ ]).optional(),
26355
+ codeOwnersUrl: z.string().optional(),
26356
+ id: z.string(),
26357
+ raw: z.string(),
26358
+ dateCreated: z.string().datetime(),
26359
+ dateUpdated: z.string().datetime(),
26360
+ dateSynced: z.union([
26361
+ z.string().datetime(),
26362
+ z.null()
26363
+ ]),
26364
+ codeMappingId: z.string(),
26365
+ provider: z.string()
26366
+ }));
26367
+ var zCreateProjectCodeOwnersData = z.object({
26368
+ body: z.object({
26369
+ raw: z.string(),
26370
+ codeMappingId: z.string()
26371
+ }),
26372
+ path: z.object({
26373
+ organization_id_or_slug: z.string(),
26374
+ project_id_or_slug: z.string()
26375
+ }),
26376
+ query: z.never().optional()
26377
+ });
26378
+ var zCreateProjectCodeOwnersResponse = z.object({
26379
+ codeMapping: z.object({
26380
+ id: z.string(),
26381
+ projectId: z.string(),
26382
+ projectSlug: z.string(),
26383
+ repoId: z.string(),
26384
+ repoName: z.string(),
26385
+ integrationId: z.union([
26386
+ z.string(),
26387
+ z.null()
26388
+ ]),
26389
+ provider: z.union([
26390
+ z.object({
26391
+ key: z.string(),
26392
+ slug: z.string(),
26393
+ name: z.string(),
26394
+ canAdd: z.boolean(),
26395
+ canDisable: z.boolean(),
26396
+ features: z.array(z.string()),
26397
+ aspects: z.record(z.unknown())
26398
+ }),
26399
+ z.null()
26400
+ ]),
26401
+ stackRoot: z.string(),
26402
+ sourceRoot: z.string(),
26403
+ defaultBranch: z.union([
26404
+ z.string(),
26405
+ z.null()
26406
+ ]),
26407
+ automaticallyGenerated: z.boolean()
26408
+ }).optional(),
26409
+ ownershipSyntax: z.string().optional(),
26410
+ errors: z.object({
26411
+ missing_user_emails: z.array(z.string()),
26412
+ missing_external_users: z.array(z.string()),
26413
+ missing_external_teams: z.array(z.string()),
26414
+ teams_without_access: z.array(z.string()),
26415
+ users_without_access: z.array(z.string())
26416
+ }).optional(),
26417
+ schema: z.union([
26418
+ z.object({
26419
+ $version: z.number().int(),
26420
+ rules: z.array(z.object({
26421
+ matcher: z.object({
26422
+ type: z.string(),
26423
+ pattern: z.string()
26424
+ }),
26425
+ owners: z.array(z.object({
26426
+ type: z.string(),
26427
+ name: z.string(),
26428
+ id: z.string().optional()
26429
+ }))
26430
+ }))
26431
+ }),
26432
+ z.record(z.unknown())
26433
+ ]).optional(),
26434
+ codeOwnersUrl: z.string().optional(),
26435
+ id: z.string(),
26436
+ raw: z.string(),
26437
+ dateCreated: z.string().datetime(),
26438
+ dateUpdated: z.string().datetime(),
26439
+ dateSynced: z.union([
26440
+ z.string().datetime(),
26441
+ z.null()
26442
+ ]),
26443
+ codeMappingId: z.string(),
26444
+ provider: z.string()
26445
+ });
26446
+ var zDeleteProjectCodeOwnersData = z.object({
26447
+ body: z.never().optional(),
26448
+ path: z.object({
26449
+ organization_id_or_slug: z.string(),
26450
+ project_id_or_slug: z.string(),
26451
+ codeowners_id: z.string()
26452
+ }),
26453
+ query: z.never().optional()
26454
+ });
26455
+ var zDeleteProjectCodeOwnersResponse = z.void();
26456
+ var zRetrieveProjectCodeOwnersData = z.object({
26457
+ body: z.never().optional(),
26458
+ path: z.object({
26459
+ organization_id_or_slug: z.string(),
26460
+ project_id_or_slug: z.string(),
26461
+ codeowners_id: z.string()
26462
+ }),
26463
+ query: z.never().optional()
26464
+ });
26465
+ var zRetrieveProjectCodeOwnersResponse = z.object({
26466
+ codeMapping: z.object({
26467
+ id: z.string(),
26468
+ projectId: z.string(),
26469
+ projectSlug: z.string(),
26470
+ repoId: z.string(),
26471
+ repoName: z.string(),
26472
+ integrationId: z.union([
26473
+ z.string(),
26474
+ z.null()
26475
+ ]),
26476
+ provider: z.union([
26477
+ z.object({
26478
+ key: z.string(),
26479
+ slug: z.string(),
26480
+ name: z.string(),
26481
+ canAdd: z.boolean(),
26482
+ canDisable: z.boolean(),
26483
+ features: z.array(z.string()),
26484
+ aspects: z.record(z.unknown())
26485
+ }),
26486
+ z.null()
26487
+ ]),
26488
+ stackRoot: z.string(),
26489
+ sourceRoot: z.string(),
26490
+ defaultBranch: z.union([
26491
+ z.string(),
26492
+ z.null()
26493
+ ]),
26494
+ automaticallyGenerated: z.boolean()
26495
+ }).optional(),
26496
+ ownershipSyntax: z.string().optional(),
26497
+ errors: z.object({
26498
+ missing_user_emails: z.array(z.string()),
26499
+ missing_external_users: z.array(z.string()),
26500
+ missing_external_teams: z.array(z.string()),
26501
+ teams_without_access: z.array(z.string()),
26502
+ users_without_access: z.array(z.string())
26503
+ }).optional(),
26504
+ schema: z.union([
26505
+ z.object({
26506
+ $version: z.number().int(),
26507
+ rules: z.array(z.object({
26508
+ matcher: z.object({
26509
+ type: z.string(),
26510
+ pattern: z.string()
26511
+ }),
26512
+ owners: z.array(z.object({
26513
+ type: z.string(),
26514
+ name: z.string(),
26515
+ id: z.string().optional()
26516
+ }))
26517
+ }))
26518
+ }),
26519
+ z.record(z.unknown())
26520
+ ]).optional(),
26521
+ codeOwnersUrl: z.string().optional(),
26522
+ id: z.string(),
26523
+ raw: z.string(),
26524
+ dateCreated: z.string().datetime(),
26525
+ dateUpdated: z.string().datetime(),
26526
+ dateSynced: z.union([
26527
+ z.string().datetime(),
26528
+ z.null()
26529
+ ]),
26530
+ codeMappingId: z.string(),
26531
+ provider: z.string()
26532
+ });
26533
+ var zUpdateProjectCodeOwnersData = z.object({
26534
+ body: z.object({
26535
+ raw: z.string().optional(),
26536
+ codeMappingId: z.string().optional()
26537
+ }).optional(),
26538
+ path: z.object({
26539
+ organization_id_or_slug: z.string(),
26540
+ project_id_or_slug: z.string(),
26541
+ codeowners_id: z.string()
26542
+ }),
26543
+ query: z.never().optional()
26544
+ });
26545
+ var zUpdateProjectCodeOwnersResponse = z.object({
26546
+ codeMapping: z.object({
26547
+ id: z.string(),
26548
+ projectId: z.string(),
26549
+ projectSlug: z.string(),
26550
+ repoId: z.string(),
26551
+ repoName: z.string(),
26552
+ integrationId: z.union([
26553
+ z.string(),
26554
+ z.null()
26555
+ ]),
26556
+ provider: z.union([
26557
+ z.object({
26558
+ key: z.string(),
26559
+ slug: z.string(),
26560
+ name: z.string(),
26561
+ canAdd: z.boolean(),
26562
+ canDisable: z.boolean(),
26563
+ features: z.array(z.string()),
26564
+ aspects: z.record(z.unknown())
26565
+ }),
26566
+ z.null()
26567
+ ]),
26568
+ stackRoot: z.string(),
26569
+ sourceRoot: z.string(),
26570
+ defaultBranch: z.union([
26571
+ z.string(),
26572
+ z.null()
26573
+ ]),
26574
+ automaticallyGenerated: z.boolean()
26575
+ }).optional(),
26576
+ ownershipSyntax: z.string().optional(),
26577
+ errors: z.object({
26578
+ missing_user_emails: z.array(z.string()),
26579
+ missing_external_users: z.array(z.string()),
26580
+ missing_external_teams: z.array(z.string()),
26581
+ teams_without_access: z.array(z.string()),
26582
+ users_without_access: z.array(z.string())
26583
+ }).optional(),
26584
+ schema: z.union([
26585
+ z.object({
26586
+ $version: z.number().int(),
26587
+ rules: z.array(z.object({
26588
+ matcher: z.object({
26589
+ type: z.string(),
26590
+ pattern: z.string()
26591
+ }),
26592
+ owners: z.array(z.object({
26593
+ type: z.string(),
26594
+ name: z.string(),
26595
+ id: z.string().optional()
26596
+ }))
26597
+ }))
26598
+ }),
26599
+ z.record(z.unknown())
26600
+ ]).optional(),
26601
+ codeOwnersUrl: z.string().optional(),
26602
+ id: z.string(),
26603
+ raw: z.string(),
26604
+ dateCreated: z.string().datetime(),
26605
+ dateUpdated: z.string().datetime(),
26606
+ dateSynced: z.union([
26607
+ z.string().datetime(),
26608
+ z.null()
26609
+ ]),
26610
+ codeMappingId: z.string(),
26611
+ provider: z.string()
26612
+ });
26145
26613
  var zListProjectEnvironmentsData = z.object({
26146
26614
  body: z.never().optional(),
26147
26615
  path: z.object({
@@ -33421,6 +33889,8 @@ export {
33421
33889
  zUpdateProjectEnvironmentResponse,
33422
33890
  zUpdateProjectEnvironmentData,
33423
33891
  zUpdateProjectData,
33892
+ zUpdateProjectCodeOwnersResponse,
33893
+ zUpdateProjectCodeOwnersData,
33424
33894
  zUpdateOrganizationWorkflowsResponse,
33425
33895
  zUpdateOrganizationWorkflowsData,
33426
33896
  zUpdateOrganizationWorkflowResponse,
@@ -33496,6 +33966,8 @@ export {
33496
33966
  zScimMemberProvision,
33497
33967
  zScimListResponseEnvelopeScimTeamIndexResponse,
33498
33968
  zScimListResponseEnvelopeScimMemberIndexResponse,
33969
+ zRetrieveProjectCodeOwnersResponse,
33970
+ zRetrieveProjectCodeOwnersData,
33499
33971
  zRetrieveOrganizationAiConversationResponse2,
33500
33972
  zRetrieveOrganizationAiConversationResponse,
33501
33973
  zRetrieveOrganizationAiConversationData,
@@ -33535,6 +34007,10 @@ export {
33535
34007
  zProjectFilterResponse,
33536
34008
  zProjectEventsResponseDict,
33537
34009
  zProjectEventDetailsResponse,
34010
+ zProjectCodeOwnersUpdateRequest,
34011
+ zProjectCodeOwnersList,
34012
+ zProjectCodeOwnersCreateRequest,
34013
+ zProjectCodeOwners,
33538
34014
  zProjectAdmin,
33539
34015
  zPlatformExternalIssueResponse,
33540
34016
  zOutgoingNotificationAction,
@@ -33640,6 +34116,8 @@ export {
33640
34116
  zListProjectDebugFilesResponse2,
33641
34117
  zListProjectDebugFilesResponse,
33642
34118
  zListProjectDebugFilesData,
34119
+ zListProjectCodeOwnersResponse,
34120
+ zListProjectCodeOwnersData,
33643
34121
  zListOrganizationsResponse,
33644
34122
  zListOrganizationsData,
33645
34123
  zListOrganizations,
@@ -33927,6 +34405,8 @@ export {
33927
34405
  zDeleteProjectHookResponse,
33928
34406
  zDeleteProjectHookData,
33929
34407
  zDeleteProjectData,
34408
+ zDeleteProjectCodeOwnersResponse,
34409
+ zDeleteProjectCodeOwnersData,
33930
34410
  zDeleteOrganizationWorkflowsResponse,
33931
34411
  zDeleteOrganizationWorkflowsData,
33932
34412
  zDeleteOrganizationWorkflowResponse,
@@ -33999,6 +34479,8 @@ export {
33999
34479
  zCreateProjectKeyData,
34000
34480
  zCreateProjectHookResponse,
34001
34481
  zCreateProjectHookData,
34482
+ zCreateProjectCodeOwnersResponse,
34483
+ zCreateProjectCodeOwnersData,
34002
34484
  zCreateOrganizationWorkflowResponse,
34003
34485
  zCreateOrganizationWorkflowData,
34004
34486
  zCreateOrganizationTeamResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.327.0",
3
+ "version": "0.328.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",