@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.gen.d.ts CHANGED
@@ -26182,6 +26182,596 @@ export declare const zProjectAdmin: z.ZodObject<{
26182
26182
  preprodDistributionEnabledQuery?: string | null | undefined;
26183
26183
  copy_from_project?: number | undefined;
26184
26184
  }>;
26185
+ export declare const zProjectCodeOwners: z.ZodObject<{
26186
+ codeMapping: z.ZodOptional<z.ZodObject<{
26187
+ id: z.ZodString;
26188
+ projectId: z.ZodString;
26189
+ projectSlug: z.ZodString;
26190
+ repoId: z.ZodString;
26191
+ repoName: z.ZodString;
26192
+ integrationId: z.ZodUnion<[z.ZodString, z.ZodNull]>;
26193
+ provider: z.ZodUnion<[z.ZodObject<{
26194
+ key: z.ZodString;
26195
+ slug: z.ZodString;
26196
+ name: z.ZodString;
26197
+ canAdd: z.ZodBoolean;
26198
+ canDisable: z.ZodBoolean;
26199
+ features: z.ZodArray<z.ZodString, "many">;
26200
+ aspects: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26201
+ }, "strip", z.ZodTypeAny, {
26202
+ name: string;
26203
+ key: string;
26204
+ features: string[];
26205
+ slug: string;
26206
+ aspects: Record<string, unknown>;
26207
+ canAdd: boolean;
26208
+ canDisable: boolean;
26209
+ }, {
26210
+ name: string;
26211
+ key: string;
26212
+ features: string[];
26213
+ slug: string;
26214
+ aspects: Record<string, unknown>;
26215
+ canAdd: boolean;
26216
+ canDisable: boolean;
26217
+ }>, z.ZodNull]>;
26218
+ stackRoot: z.ZodString;
26219
+ sourceRoot: z.ZodString;
26220
+ defaultBranch: z.ZodUnion<[z.ZodString, z.ZodNull]>;
26221
+ automaticallyGenerated: z.ZodBoolean;
26222
+ }, "strip", z.ZodTypeAny, {
26223
+ id: string;
26224
+ projectSlug: string;
26225
+ projectId: string;
26226
+ provider: {
26227
+ name: string;
26228
+ key: string;
26229
+ features: string[];
26230
+ slug: string;
26231
+ aspects: Record<string, unknown>;
26232
+ canAdd: boolean;
26233
+ canDisable: boolean;
26234
+ } | null;
26235
+ integrationId: string | null;
26236
+ defaultBranch: string | null;
26237
+ repoId: string;
26238
+ repoName: string;
26239
+ stackRoot: string;
26240
+ sourceRoot: string;
26241
+ automaticallyGenerated: boolean;
26242
+ }, {
26243
+ id: string;
26244
+ projectSlug: string;
26245
+ projectId: string;
26246
+ provider: {
26247
+ name: string;
26248
+ key: string;
26249
+ features: string[];
26250
+ slug: string;
26251
+ aspects: Record<string, unknown>;
26252
+ canAdd: boolean;
26253
+ canDisable: boolean;
26254
+ } | null;
26255
+ integrationId: string | null;
26256
+ defaultBranch: string | null;
26257
+ repoId: string;
26258
+ repoName: string;
26259
+ stackRoot: string;
26260
+ sourceRoot: string;
26261
+ automaticallyGenerated: boolean;
26262
+ }>>;
26263
+ ownershipSyntax: z.ZodOptional<z.ZodString>;
26264
+ errors: z.ZodOptional<z.ZodObject<{
26265
+ missing_user_emails: z.ZodArray<z.ZodString, "many">;
26266
+ missing_external_users: z.ZodArray<z.ZodString, "many">;
26267
+ missing_external_teams: z.ZodArray<z.ZodString, "many">;
26268
+ teams_without_access: z.ZodArray<z.ZodString, "many">;
26269
+ users_without_access: z.ZodArray<z.ZodString, "many">;
26270
+ }, "strip", z.ZodTypeAny, {
26271
+ missing_user_emails: string[];
26272
+ missing_external_users: string[];
26273
+ missing_external_teams: string[];
26274
+ teams_without_access: string[];
26275
+ users_without_access: string[];
26276
+ }, {
26277
+ missing_user_emails: string[];
26278
+ missing_external_users: string[];
26279
+ missing_external_teams: string[];
26280
+ teams_without_access: string[];
26281
+ users_without_access: string[];
26282
+ }>>;
26283
+ schema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
26284
+ $version: z.ZodNumber;
26285
+ rules: z.ZodArray<z.ZodObject<{
26286
+ matcher: z.ZodObject<{
26287
+ type: z.ZodString;
26288
+ pattern: z.ZodString;
26289
+ }, "strip", z.ZodTypeAny, {
26290
+ type: string;
26291
+ pattern: string;
26292
+ }, {
26293
+ type: string;
26294
+ pattern: string;
26295
+ }>;
26296
+ owners: z.ZodArray<z.ZodObject<{
26297
+ type: z.ZodString;
26298
+ name: z.ZodString;
26299
+ id: z.ZodOptional<z.ZodString>;
26300
+ }, "strip", z.ZodTypeAny, {
26301
+ name: string;
26302
+ type: string;
26303
+ id?: string | undefined;
26304
+ }, {
26305
+ name: string;
26306
+ type: string;
26307
+ id?: string | undefined;
26308
+ }>, "many">;
26309
+ }, "strip", z.ZodTypeAny, {
26310
+ owners: {
26311
+ name: string;
26312
+ type: string;
26313
+ id?: string | undefined;
26314
+ }[];
26315
+ matcher: {
26316
+ type: string;
26317
+ pattern: string;
26318
+ };
26319
+ }, {
26320
+ owners: {
26321
+ name: string;
26322
+ type: string;
26323
+ id?: string | undefined;
26324
+ }[];
26325
+ matcher: {
26326
+ type: string;
26327
+ pattern: string;
26328
+ };
26329
+ }>, "many">;
26330
+ }, "strip", z.ZodTypeAny, {
26331
+ $version: number;
26332
+ rules: {
26333
+ owners: {
26334
+ name: string;
26335
+ type: string;
26336
+ id?: string | undefined;
26337
+ }[];
26338
+ matcher: {
26339
+ type: string;
26340
+ pattern: string;
26341
+ };
26342
+ }[];
26343
+ }, {
26344
+ $version: number;
26345
+ rules: {
26346
+ owners: {
26347
+ name: string;
26348
+ type: string;
26349
+ id?: string | undefined;
26350
+ }[];
26351
+ matcher: {
26352
+ type: string;
26353
+ pattern: string;
26354
+ };
26355
+ }[];
26356
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
26357
+ codeOwnersUrl: z.ZodOptional<z.ZodString>;
26358
+ id: z.ZodString;
26359
+ raw: z.ZodString;
26360
+ dateCreated: z.ZodString;
26361
+ dateUpdated: z.ZodString;
26362
+ dateSynced: z.ZodUnion<[z.ZodString, z.ZodNull]>;
26363
+ codeMappingId: z.ZodString;
26364
+ provider: z.ZodString;
26365
+ }, "strip", z.ZodTypeAny, {
26366
+ id: string;
26367
+ dateCreated: string;
26368
+ dateUpdated: string;
26369
+ provider: string;
26370
+ dateSynced: string | null;
26371
+ raw: string;
26372
+ codeMappingId: string;
26373
+ errors?: {
26374
+ missing_user_emails: string[];
26375
+ missing_external_users: string[];
26376
+ missing_external_teams: string[];
26377
+ teams_without_access: string[];
26378
+ users_without_access: string[];
26379
+ } | undefined;
26380
+ codeMapping?: {
26381
+ id: string;
26382
+ projectSlug: string;
26383
+ projectId: string;
26384
+ provider: {
26385
+ name: string;
26386
+ key: string;
26387
+ features: string[];
26388
+ slug: string;
26389
+ aspects: Record<string, unknown>;
26390
+ canAdd: boolean;
26391
+ canDisable: boolean;
26392
+ } | null;
26393
+ integrationId: string | null;
26394
+ defaultBranch: string | null;
26395
+ repoId: string;
26396
+ repoName: string;
26397
+ stackRoot: string;
26398
+ sourceRoot: string;
26399
+ automaticallyGenerated: boolean;
26400
+ } | undefined;
26401
+ ownershipSyntax?: string | undefined;
26402
+ schema?: Record<string, unknown> | {
26403
+ $version: number;
26404
+ rules: {
26405
+ owners: {
26406
+ name: string;
26407
+ type: string;
26408
+ id?: string | undefined;
26409
+ }[];
26410
+ matcher: {
26411
+ type: string;
26412
+ pattern: string;
26413
+ };
26414
+ }[];
26415
+ } | undefined;
26416
+ codeOwnersUrl?: string | undefined;
26417
+ }, {
26418
+ id: string;
26419
+ dateCreated: string;
26420
+ dateUpdated: string;
26421
+ provider: string;
26422
+ dateSynced: string | null;
26423
+ raw: string;
26424
+ codeMappingId: string;
26425
+ errors?: {
26426
+ missing_user_emails: string[];
26427
+ missing_external_users: string[];
26428
+ missing_external_teams: string[];
26429
+ teams_without_access: string[];
26430
+ users_without_access: string[];
26431
+ } | undefined;
26432
+ codeMapping?: {
26433
+ id: string;
26434
+ projectSlug: string;
26435
+ projectId: string;
26436
+ provider: {
26437
+ name: string;
26438
+ key: string;
26439
+ features: string[];
26440
+ slug: string;
26441
+ aspects: Record<string, unknown>;
26442
+ canAdd: boolean;
26443
+ canDisable: boolean;
26444
+ } | null;
26445
+ integrationId: string | null;
26446
+ defaultBranch: string | null;
26447
+ repoId: string;
26448
+ repoName: string;
26449
+ stackRoot: string;
26450
+ sourceRoot: string;
26451
+ automaticallyGenerated: boolean;
26452
+ } | undefined;
26453
+ ownershipSyntax?: string | undefined;
26454
+ schema?: Record<string, unknown> | {
26455
+ $version: number;
26456
+ rules: {
26457
+ owners: {
26458
+ name: string;
26459
+ type: string;
26460
+ id?: string | undefined;
26461
+ }[];
26462
+ matcher: {
26463
+ type: string;
26464
+ pattern: string;
26465
+ };
26466
+ }[];
26467
+ } | undefined;
26468
+ codeOwnersUrl?: string | undefined;
26469
+ }>;
26470
+ export declare const zProjectCodeOwnersCreateRequest: z.ZodObject<{
26471
+ raw: z.ZodString;
26472
+ codeMappingId: z.ZodString;
26473
+ }, "strip", z.ZodTypeAny, {
26474
+ raw: string;
26475
+ codeMappingId: string;
26476
+ }, {
26477
+ raw: string;
26478
+ codeMappingId: string;
26479
+ }>;
26480
+ export declare const zProjectCodeOwnersList: z.ZodArray<z.ZodObject<{
26481
+ codeMapping: z.ZodOptional<z.ZodObject<{
26482
+ id: z.ZodString;
26483
+ projectId: z.ZodString;
26484
+ projectSlug: z.ZodString;
26485
+ repoId: z.ZodString;
26486
+ repoName: z.ZodString;
26487
+ integrationId: z.ZodUnion<[z.ZodString, z.ZodNull]>;
26488
+ provider: z.ZodUnion<[z.ZodObject<{
26489
+ key: z.ZodString;
26490
+ slug: z.ZodString;
26491
+ name: z.ZodString;
26492
+ canAdd: z.ZodBoolean;
26493
+ canDisable: z.ZodBoolean;
26494
+ features: z.ZodArray<z.ZodString, "many">;
26495
+ aspects: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26496
+ }, "strip", z.ZodTypeAny, {
26497
+ name: string;
26498
+ key: string;
26499
+ features: string[];
26500
+ slug: string;
26501
+ aspects: Record<string, unknown>;
26502
+ canAdd: boolean;
26503
+ canDisable: boolean;
26504
+ }, {
26505
+ name: string;
26506
+ key: string;
26507
+ features: string[];
26508
+ slug: string;
26509
+ aspects: Record<string, unknown>;
26510
+ canAdd: boolean;
26511
+ canDisable: boolean;
26512
+ }>, z.ZodNull]>;
26513
+ stackRoot: z.ZodString;
26514
+ sourceRoot: z.ZodString;
26515
+ defaultBranch: z.ZodUnion<[z.ZodString, z.ZodNull]>;
26516
+ automaticallyGenerated: z.ZodBoolean;
26517
+ }, "strip", z.ZodTypeAny, {
26518
+ id: string;
26519
+ projectSlug: string;
26520
+ projectId: string;
26521
+ provider: {
26522
+ name: string;
26523
+ key: string;
26524
+ features: string[];
26525
+ slug: string;
26526
+ aspects: Record<string, unknown>;
26527
+ canAdd: boolean;
26528
+ canDisable: boolean;
26529
+ } | null;
26530
+ integrationId: string | null;
26531
+ defaultBranch: string | null;
26532
+ repoId: string;
26533
+ repoName: string;
26534
+ stackRoot: string;
26535
+ sourceRoot: string;
26536
+ automaticallyGenerated: boolean;
26537
+ }, {
26538
+ id: string;
26539
+ projectSlug: string;
26540
+ projectId: string;
26541
+ provider: {
26542
+ name: string;
26543
+ key: string;
26544
+ features: string[];
26545
+ slug: string;
26546
+ aspects: Record<string, unknown>;
26547
+ canAdd: boolean;
26548
+ canDisable: boolean;
26549
+ } | null;
26550
+ integrationId: string | null;
26551
+ defaultBranch: string | null;
26552
+ repoId: string;
26553
+ repoName: string;
26554
+ stackRoot: string;
26555
+ sourceRoot: string;
26556
+ automaticallyGenerated: boolean;
26557
+ }>>;
26558
+ ownershipSyntax: z.ZodOptional<z.ZodString>;
26559
+ errors: z.ZodOptional<z.ZodObject<{
26560
+ missing_user_emails: z.ZodArray<z.ZodString, "many">;
26561
+ missing_external_users: z.ZodArray<z.ZodString, "many">;
26562
+ missing_external_teams: z.ZodArray<z.ZodString, "many">;
26563
+ teams_without_access: z.ZodArray<z.ZodString, "many">;
26564
+ users_without_access: z.ZodArray<z.ZodString, "many">;
26565
+ }, "strip", z.ZodTypeAny, {
26566
+ missing_user_emails: string[];
26567
+ missing_external_users: string[];
26568
+ missing_external_teams: string[];
26569
+ teams_without_access: string[];
26570
+ users_without_access: string[];
26571
+ }, {
26572
+ missing_user_emails: string[];
26573
+ missing_external_users: string[];
26574
+ missing_external_teams: string[];
26575
+ teams_without_access: string[];
26576
+ users_without_access: string[];
26577
+ }>>;
26578
+ schema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
26579
+ $version: z.ZodNumber;
26580
+ rules: z.ZodArray<z.ZodObject<{
26581
+ matcher: z.ZodObject<{
26582
+ type: z.ZodString;
26583
+ pattern: z.ZodString;
26584
+ }, "strip", z.ZodTypeAny, {
26585
+ type: string;
26586
+ pattern: string;
26587
+ }, {
26588
+ type: string;
26589
+ pattern: string;
26590
+ }>;
26591
+ owners: z.ZodArray<z.ZodObject<{
26592
+ type: z.ZodString;
26593
+ name: z.ZodString;
26594
+ id: z.ZodOptional<z.ZodString>;
26595
+ }, "strip", z.ZodTypeAny, {
26596
+ name: string;
26597
+ type: string;
26598
+ id?: string | undefined;
26599
+ }, {
26600
+ name: string;
26601
+ type: string;
26602
+ id?: string | undefined;
26603
+ }>, "many">;
26604
+ }, "strip", z.ZodTypeAny, {
26605
+ owners: {
26606
+ name: string;
26607
+ type: string;
26608
+ id?: string | undefined;
26609
+ }[];
26610
+ matcher: {
26611
+ type: string;
26612
+ pattern: string;
26613
+ };
26614
+ }, {
26615
+ owners: {
26616
+ name: string;
26617
+ type: string;
26618
+ id?: string | undefined;
26619
+ }[];
26620
+ matcher: {
26621
+ type: string;
26622
+ pattern: string;
26623
+ };
26624
+ }>, "many">;
26625
+ }, "strip", z.ZodTypeAny, {
26626
+ $version: number;
26627
+ rules: {
26628
+ owners: {
26629
+ name: string;
26630
+ type: string;
26631
+ id?: string | undefined;
26632
+ }[];
26633
+ matcher: {
26634
+ type: string;
26635
+ pattern: string;
26636
+ };
26637
+ }[];
26638
+ }, {
26639
+ $version: number;
26640
+ rules: {
26641
+ owners: {
26642
+ name: string;
26643
+ type: string;
26644
+ id?: string | undefined;
26645
+ }[];
26646
+ matcher: {
26647
+ type: string;
26648
+ pattern: string;
26649
+ };
26650
+ }[];
26651
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
26652
+ codeOwnersUrl: z.ZodOptional<z.ZodString>;
26653
+ id: z.ZodString;
26654
+ raw: z.ZodString;
26655
+ dateCreated: z.ZodString;
26656
+ dateUpdated: z.ZodString;
26657
+ dateSynced: z.ZodUnion<[z.ZodString, z.ZodNull]>;
26658
+ codeMappingId: z.ZodString;
26659
+ provider: z.ZodString;
26660
+ }, "strip", z.ZodTypeAny, {
26661
+ id: string;
26662
+ dateCreated: string;
26663
+ dateUpdated: string;
26664
+ provider: string;
26665
+ dateSynced: string | null;
26666
+ raw: string;
26667
+ codeMappingId: string;
26668
+ errors?: {
26669
+ missing_user_emails: string[];
26670
+ missing_external_users: string[];
26671
+ missing_external_teams: string[];
26672
+ teams_without_access: string[];
26673
+ users_without_access: string[];
26674
+ } | undefined;
26675
+ codeMapping?: {
26676
+ id: string;
26677
+ projectSlug: string;
26678
+ projectId: string;
26679
+ provider: {
26680
+ name: string;
26681
+ key: string;
26682
+ features: string[];
26683
+ slug: string;
26684
+ aspects: Record<string, unknown>;
26685
+ canAdd: boolean;
26686
+ canDisable: boolean;
26687
+ } | null;
26688
+ integrationId: string | null;
26689
+ defaultBranch: string | null;
26690
+ repoId: string;
26691
+ repoName: string;
26692
+ stackRoot: string;
26693
+ sourceRoot: string;
26694
+ automaticallyGenerated: boolean;
26695
+ } | undefined;
26696
+ ownershipSyntax?: string | undefined;
26697
+ schema?: Record<string, unknown> | {
26698
+ $version: number;
26699
+ rules: {
26700
+ owners: {
26701
+ name: string;
26702
+ type: string;
26703
+ id?: string | undefined;
26704
+ }[];
26705
+ matcher: {
26706
+ type: string;
26707
+ pattern: string;
26708
+ };
26709
+ }[];
26710
+ } | undefined;
26711
+ codeOwnersUrl?: string | undefined;
26712
+ }, {
26713
+ id: string;
26714
+ dateCreated: string;
26715
+ dateUpdated: string;
26716
+ provider: string;
26717
+ dateSynced: string | null;
26718
+ raw: string;
26719
+ codeMappingId: string;
26720
+ errors?: {
26721
+ missing_user_emails: string[];
26722
+ missing_external_users: string[];
26723
+ missing_external_teams: string[];
26724
+ teams_without_access: string[];
26725
+ users_without_access: string[];
26726
+ } | undefined;
26727
+ codeMapping?: {
26728
+ id: string;
26729
+ projectSlug: string;
26730
+ projectId: string;
26731
+ provider: {
26732
+ name: string;
26733
+ key: string;
26734
+ features: string[];
26735
+ slug: string;
26736
+ aspects: Record<string, unknown>;
26737
+ canAdd: boolean;
26738
+ canDisable: boolean;
26739
+ } | null;
26740
+ integrationId: string | null;
26741
+ defaultBranch: string | null;
26742
+ repoId: string;
26743
+ repoName: string;
26744
+ stackRoot: string;
26745
+ sourceRoot: string;
26746
+ automaticallyGenerated: boolean;
26747
+ } | undefined;
26748
+ ownershipSyntax?: string | undefined;
26749
+ schema?: Record<string, unknown> | {
26750
+ $version: number;
26751
+ rules: {
26752
+ owners: {
26753
+ name: string;
26754
+ type: string;
26755
+ id?: string | undefined;
26756
+ }[];
26757
+ matcher: {
26758
+ type: string;
26759
+ pattern: string;
26760
+ };
26761
+ }[];
26762
+ } | undefined;
26763
+ codeOwnersUrl?: string | undefined;
26764
+ }>, "many">;
26765
+ export declare const zProjectCodeOwnersUpdateRequest: z.ZodObject<{
26766
+ raw: z.ZodOptional<z.ZodString>;
26767
+ codeMappingId: z.ZodOptional<z.ZodString>;
26768
+ }, "strip", z.ZodTypeAny, {
26769
+ raw?: string | undefined;
26770
+ codeMappingId?: string | undefined;
26771
+ }, {
26772
+ raw?: string | undefined;
26773
+ codeMappingId?: string | undefined;
26774
+ }>;
26185
26775
  export declare const zProjectEventDetailsResponse: z.ZodObject<{
26186
26776
  id: z.ZodString;
26187
26777
  groupID: z.ZodUnion<[z.ZodString, z.ZodNull]>;
@@ -27228,8 +27818,8 @@ export declare const zProjectOwnership: z.ZodObject<{
27228
27818
  }, "strip", z.ZodTypeAny, {
27229
27819
  dateCreated: string;
27230
27820
  isActive: boolean;
27231
- lastUpdated: string;
27232
27821
  raw: string;
27822
+ lastUpdated: string;
27233
27823
  fallthrough: boolean;
27234
27824
  autoAssignment: string;
27235
27825
  codeownersAutoSync: boolean;
@@ -27250,8 +27840,8 @@ export declare const zProjectOwnership: z.ZodObject<{
27250
27840
  }, {
27251
27841
  dateCreated: string;
27252
27842
  isActive: boolean;
27253
- lastUpdated: string;
27254
27843
  raw: string;
27844
+ lastUpdated: string;
27255
27845
  fallthrough: boolean;
27256
27846
  autoAssignment: string;
27257
27847
  codeownersAutoSync: boolean;
@@ -69799,6 +70389,1345 @@ export declare const zUpdateProjectResponse: z.ZodObject<{
69799
70389
  sessionStats?: unknown;
69800
70390
  seerNightshiftTweaks?: unknown;
69801
70391
  }>;
70392
+ export declare const zListProjectCodeOwnersData: z.ZodObject<{
70393
+ body: z.ZodOptional<z.ZodNever>;
70394
+ path: z.ZodObject<{
70395
+ organization_id_or_slug: z.ZodString;
70396
+ project_id_or_slug: z.ZodString;
70397
+ }, "strip", z.ZodTypeAny, {
70398
+ organization_id_or_slug: string;
70399
+ project_id_or_slug: string;
70400
+ }, {
70401
+ organization_id_or_slug: string;
70402
+ project_id_or_slug: string;
70403
+ }>;
70404
+ query: z.ZodOptional<z.ZodObject<{
70405
+ expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["codeMapping", "ownershipSyntax"]>, "many">>;
70406
+ }, "strip", z.ZodTypeAny, {
70407
+ expand?: ("codeMapping" | "ownershipSyntax")[] | undefined;
70408
+ }, {
70409
+ expand?: ("codeMapping" | "ownershipSyntax")[] | undefined;
70410
+ }>>;
70411
+ }, "strip", z.ZodTypeAny, {
70412
+ path: {
70413
+ organization_id_or_slug: string;
70414
+ project_id_or_slug: string;
70415
+ };
70416
+ query?: {
70417
+ expand?: ("codeMapping" | "ownershipSyntax")[] | undefined;
70418
+ } | undefined;
70419
+ body?: undefined;
70420
+ }, {
70421
+ path: {
70422
+ organization_id_or_slug: string;
70423
+ project_id_or_slug: string;
70424
+ };
70425
+ query?: {
70426
+ expand?: ("codeMapping" | "ownershipSyntax")[] | undefined;
70427
+ } | undefined;
70428
+ body?: undefined;
70429
+ }>;
70430
+ export declare const zListProjectCodeOwnersResponse: z.ZodArray<z.ZodObject<{
70431
+ codeMapping: z.ZodOptional<z.ZodObject<{
70432
+ id: z.ZodString;
70433
+ projectId: z.ZodString;
70434
+ projectSlug: z.ZodString;
70435
+ repoId: z.ZodString;
70436
+ repoName: z.ZodString;
70437
+ integrationId: z.ZodUnion<[z.ZodString, z.ZodNull]>;
70438
+ provider: z.ZodUnion<[z.ZodObject<{
70439
+ key: z.ZodString;
70440
+ slug: z.ZodString;
70441
+ name: z.ZodString;
70442
+ canAdd: z.ZodBoolean;
70443
+ canDisable: z.ZodBoolean;
70444
+ features: z.ZodArray<z.ZodString, "many">;
70445
+ aspects: z.ZodRecord<z.ZodString, z.ZodUnknown>;
70446
+ }, "strip", z.ZodTypeAny, {
70447
+ name: string;
70448
+ key: string;
70449
+ features: string[];
70450
+ slug: string;
70451
+ aspects: Record<string, unknown>;
70452
+ canAdd: boolean;
70453
+ canDisable: boolean;
70454
+ }, {
70455
+ name: string;
70456
+ key: string;
70457
+ features: string[];
70458
+ slug: string;
70459
+ aspects: Record<string, unknown>;
70460
+ canAdd: boolean;
70461
+ canDisable: boolean;
70462
+ }>, z.ZodNull]>;
70463
+ stackRoot: z.ZodString;
70464
+ sourceRoot: z.ZodString;
70465
+ defaultBranch: z.ZodUnion<[z.ZodString, z.ZodNull]>;
70466
+ automaticallyGenerated: z.ZodBoolean;
70467
+ }, "strip", z.ZodTypeAny, {
70468
+ id: string;
70469
+ projectSlug: string;
70470
+ projectId: string;
70471
+ provider: {
70472
+ name: string;
70473
+ key: string;
70474
+ features: string[];
70475
+ slug: string;
70476
+ aspects: Record<string, unknown>;
70477
+ canAdd: boolean;
70478
+ canDisable: boolean;
70479
+ } | null;
70480
+ integrationId: string | null;
70481
+ defaultBranch: string | null;
70482
+ repoId: string;
70483
+ repoName: string;
70484
+ stackRoot: string;
70485
+ sourceRoot: string;
70486
+ automaticallyGenerated: boolean;
70487
+ }, {
70488
+ id: string;
70489
+ projectSlug: string;
70490
+ projectId: string;
70491
+ provider: {
70492
+ name: string;
70493
+ key: string;
70494
+ features: string[];
70495
+ slug: string;
70496
+ aspects: Record<string, unknown>;
70497
+ canAdd: boolean;
70498
+ canDisable: boolean;
70499
+ } | null;
70500
+ integrationId: string | null;
70501
+ defaultBranch: string | null;
70502
+ repoId: string;
70503
+ repoName: string;
70504
+ stackRoot: string;
70505
+ sourceRoot: string;
70506
+ automaticallyGenerated: boolean;
70507
+ }>>;
70508
+ ownershipSyntax: z.ZodOptional<z.ZodString>;
70509
+ errors: z.ZodOptional<z.ZodObject<{
70510
+ missing_user_emails: z.ZodArray<z.ZodString, "many">;
70511
+ missing_external_users: z.ZodArray<z.ZodString, "many">;
70512
+ missing_external_teams: z.ZodArray<z.ZodString, "many">;
70513
+ teams_without_access: z.ZodArray<z.ZodString, "many">;
70514
+ users_without_access: z.ZodArray<z.ZodString, "many">;
70515
+ }, "strip", z.ZodTypeAny, {
70516
+ missing_user_emails: string[];
70517
+ missing_external_users: string[];
70518
+ missing_external_teams: string[];
70519
+ teams_without_access: string[];
70520
+ users_without_access: string[];
70521
+ }, {
70522
+ missing_user_emails: string[];
70523
+ missing_external_users: string[];
70524
+ missing_external_teams: string[];
70525
+ teams_without_access: string[];
70526
+ users_without_access: string[];
70527
+ }>>;
70528
+ schema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
70529
+ $version: z.ZodNumber;
70530
+ rules: z.ZodArray<z.ZodObject<{
70531
+ matcher: z.ZodObject<{
70532
+ type: z.ZodString;
70533
+ pattern: z.ZodString;
70534
+ }, "strip", z.ZodTypeAny, {
70535
+ type: string;
70536
+ pattern: string;
70537
+ }, {
70538
+ type: string;
70539
+ pattern: string;
70540
+ }>;
70541
+ owners: z.ZodArray<z.ZodObject<{
70542
+ type: z.ZodString;
70543
+ name: z.ZodString;
70544
+ id: z.ZodOptional<z.ZodString>;
70545
+ }, "strip", z.ZodTypeAny, {
70546
+ name: string;
70547
+ type: string;
70548
+ id?: string | undefined;
70549
+ }, {
70550
+ name: string;
70551
+ type: string;
70552
+ id?: string | undefined;
70553
+ }>, "many">;
70554
+ }, "strip", z.ZodTypeAny, {
70555
+ owners: {
70556
+ name: string;
70557
+ type: string;
70558
+ id?: string | undefined;
70559
+ }[];
70560
+ matcher: {
70561
+ type: string;
70562
+ pattern: string;
70563
+ };
70564
+ }, {
70565
+ owners: {
70566
+ name: string;
70567
+ type: string;
70568
+ id?: string | undefined;
70569
+ }[];
70570
+ matcher: {
70571
+ type: string;
70572
+ pattern: string;
70573
+ };
70574
+ }>, "many">;
70575
+ }, "strip", z.ZodTypeAny, {
70576
+ $version: number;
70577
+ rules: {
70578
+ owners: {
70579
+ name: string;
70580
+ type: string;
70581
+ id?: string | undefined;
70582
+ }[];
70583
+ matcher: {
70584
+ type: string;
70585
+ pattern: string;
70586
+ };
70587
+ }[];
70588
+ }, {
70589
+ $version: number;
70590
+ rules: {
70591
+ owners: {
70592
+ name: string;
70593
+ type: string;
70594
+ id?: string | undefined;
70595
+ }[];
70596
+ matcher: {
70597
+ type: string;
70598
+ pattern: string;
70599
+ };
70600
+ }[];
70601
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
70602
+ codeOwnersUrl: z.ZodOptional<z.ZodString>;
70603
+ id: z.ZodString;
70604
+ raw: z.ZodString;
70605
+ dateCreated: z.ZodString;
70606
+ dateUpdated: z.ZodString;
70607
+ dateSynced: z.ZodUnion<[z.ZodString, z.ZodNull]>;
70608
+ codeMappingId: z.ZodString;
70609
+ provider: z.ZodString;
70610
+ }, "strip", z.ZodTypeAny, {
70611
+ id: string;
70612
+ dateCreated: string;
70613
+ dateUpdated: string;
70614
+ provider: string;
70615
+ dateSynced: string | null;
70616
+ raw: string;
70617
+ codeMappingId: string;
70618
+ errors?: {
70619
+ missing_user_emails: string[];
70620
+ missing_external_users: string[];
70621
+ missing_external_teams: string[];
70622
+ teams_without_access: string[];
70623
+ users_without_access: string[];
70624
+ } | undefined;
70625
+ codeMapping?: {
70626
+ id: string;
70627
+ projectSlug: string;
70628
+ projectId: string;
70629
+ provider: {
70630
+ name: string;
70631
+ key: string;
70632
+ features: string[];
70633
+ slug: string;
70634
+ aspects: Record<string, unknown>;
70635
+ canAdd: boolean;
70636
+ canDisable: boolean;
70637
+ } | null;
70638
+ integrationId: string | null;
70639
+ defaultBranch: string | null;
70640
+ repoId: string;
70641
+ repoName: string;
70642
+ stackRoot: string;
70643
+ sourceRoot: string;
70644
+ automaticallyGenerated: boolean;
70645
+ } | undefined;
70646
+ ownershipSyntax?: string | undefined;
70647
+ schema?: Record<string, unknown> | {
70648
+ $version: number;
70649
+ rules: {
70650
+ owners: {
70651
+ name: string;
70652
+ type: string;
70653
+ id?: string | undefined;
70654
+ }[];
70655
+ matcher: {
70656
+ type: string;
70657
+ pattern: string;
70658
+ };
70659
+ }[];
70660
+ } | undefined;
70661
+ codeOwnersUrl?: string | undefined;
70662
+ }, {
70663
+ id: string;
70664
+ dateCreated: string;
70665
+ dateUpdated: string;
70666
+ provider: string;
70667
+ dateSynced: string | null;
70668
+ raw: string;
70669
+ codeMappingId: string;
70670
+ errors?: {
70671
+ missing_user_emails: string[];
70672
+ missing_external_users: string[];
70673
+ missing_external_teams: string[];
70674
+ teams_without_access: string[];
70675
+ users_without_access: string[];
70676
+ } | undefined;
70677
+ codeMapping?: {
70678
+ id: string;
70679
+ projectSlug: string;
70680
+ projectId: string;
70681
+ provider: {
70682
+ name: string;
70683
+ key: string;
70684
+ features: string[];
70685
+ slug: string;
70686
+ aspects: Record<string, unknown>;
70687
+ canAdd: boolean;
70688
+ canDisable: boolean;
70689
+ } | null;
70690
+ integrationId: string | null;
70691
+ defaultBranch: string | null;
70692
+ repoId: string;
70693
+ repoName: string;
70694
+ stackRoot: string;
70695
+ sourceRoot: string;
70696
+ automaticallyGenerated: boolean;
70697
+ } | undefined;
70698
+ ownershipSyntax?: string | undefined;
70699
+ schema?: Record<string, unknown> | {
70700
+ $version: number;
70701
+ rules: {
70702
+ owners: {
70703
+ name: string;
70704
+ type: string;
70705
+ id?: string | undefined;
70706
+ }[];
70707
+ matcher: {
70708
+ type: string;
70709
+ pattern: string;
70710
+ };
70711
+ }[];
70712
+ } | undefined;
70713
+ codeOwnersUrl?: string | undefined;
70714
+ }>, "many">;
70715
+ export declare const zCreateProjectCodeOwnersData: z.ZodObject<{
70716
+ body: z.ZodObject<{
70717
+ raw: z.ZodString;
70718
+ codeMappingId: z.ZodString;
70719
+ }, "strip", z.ZodTypeAny, {
70720
+ raw: string;
70721
+ codeMappingId: string;
70722
+ }, {
70723
+ raw: string;
70724
+ codeMappingId: string;
70725
+ }>;
70726
+ path: z.ZodObject<{
70727
+ organization_id_or_slug: z.ZodString;
70728
+ project_id_or_slug: z.ZodString;
70729
+ }, "strip", z.ZodTypeAny, {
70730
+ organization_id_or_slug: string;
70731
+ project_id_or_slug: string;
70732
+ }, {
70733
+ organization_id_or_slug: string;
70734
+ project_id_or_slug: string;
70735
+ }>;
70736
+ query: z.ZodOptional<z.ZodNever>;
70737
+ }, "strip", z.ZodTypeAny, {
70738
+ body: {
70739
+ raw: string;
70740
+ codeMappingId: string;
70741
+ };
70742
+ path: {
70743
+ organization_id_or_slug: string;
70744
+ project_id_or_slug: string;
70745
+ };
70746
+ query?: undefined;
70747
+ }, {
70748
+ body: {
70749
+ raw: string;
70750
+ codeMappingId: string;
70751
+ };
70752
+ path: {
70753
+ organization_id_or_slug: string;
70754
+ project_id_or_slug: string;
70755
+ };
70756
+ query?: undefined;
70757
+ }>;
70758
+ export declare const zCreateProjectCodeOwnersResponse: z.ZodObject<{
70759
+ codeMapping: z.ZodOptional<z.ZodObject<{
70760
+ id: z.ZodString;
70761
+ projectId: z.ZodString;
70762
+ projectSlug: z.ZodString;
70763
+ repoId: z.ZodString;
70764
+ repoName: z.ZodString;
70765
+ integrationId: z.ZodUnion<[z.ZodString, z.ZodNull]>;
70766
+ provider: z.ZodUnion<[z.ZodObject<{
70767
+ key: z.ZodString;
70768
+ slug: z.ZodString;
70769
+ name: z.ZodString;
70770
+ canAdd: z.ZodBoolean;
70771
+ canDisable: z.ZodBoolean;
70772
+ features: z.ZodArray<z.ZodString, "many">;
70773
+ aspects: z.ZodRecord<z.ZodString, z.ZodUnknown>;
70774
+ }, "strip", z.ZodTypeAny, {
70775
+ name: string;
70776
+ key: string;
70777
+ features: string[];
70778
+ slug: string;
70779
+ aspects: Record<string, unknown>;
70780
+ canAdd: boolean;
70781
+ canDisable: boolean;
70782
+ }, {
70783
+ name: string;
70784
+ key: string;
70785
+ features: string[];
70786
+ slug: string;
70787
+ aspects: Record<string, unknown>;
70788
+ canAdd: boolean;
70789
+ canDisable: boolean;
70790
+ }>, z.ZodNull]>;
70791
+ stackRoot: z.ZodString;
70792
+ sourceRoot: z.ZodString;
70793
+ defaultBranch: z.ZodUnion<[z.ZodString, z.ZodNull]>;
70794
+ automaticallyGenerated: z.ZodBoolean;
70795
+ }, "strip", z.ZodTypeAny, {
70796
+ id: string;
70797
+ projectSlug: string;
70798
+ projectId: string;
70799
+ provider: {
70800
+ name: string;
70801
+ key: string;
70802
+ features: string[];
70803
+ slug: string;
70804
+ aspects: Record<string, unknown>;
70805
+ canAdd: boolean;
70806
+ canDisable: boolean;
70807
+ } | null;
70808
+ integrationId: string | null;
70809
+ defaultBranch: string | null;
70810
+ repoId: string;
70811
+ repoName: string;
70812
+ stackRoot: string;
70813
+ sourceRoot: string;
70814
+ automaticallyGenerated: boolean;
70815
+ }, {
70816
+ id: string;
70817
+ projectSlug: string;
70818
+ projectId: string;
70819
+ provider: {
70820
+ name: string;
70821
+ key: string;
70822
+ features: string[];
70823
+ slug: string;
70824
+ aspects: Record<string, unknown>;
70825
+ canAdd: boolean;
70826
+ canDisable: boolean;
70827
+ } | null;
70828
+ integrationId: string | null;
70829
+ defaultBranch: string | null;
70830
+ repoId: string;
70831
+ repoName: string;
70832
+ stackRoot: string;
70833
+ sourceRoot: string;
70834
+ automaticallyGenerated: boolean;
70835
+ }>>;
70836
+ ownershipSyntax: z.ZodOptional<z.ZodString>;
70837
+ errors: z.ZodOptional<z.ZodObject<{
70838
+ missing_user_emails: z.ZodArray<z.ZodString, "many">;
70839
+ missing_external_users: z.ZodArray<z.ZodString, "many">;
70840
+ missing_external_teams: z.ZodArray<z.ZodString, "many">;
70841
+ teams_without_access: z.ZodArray<z.ZodString, "many">;
70842
+ users_without_access: z.ZodArray<z.ZodString, "many">;
70843
+ }, "strip", z.ZodTypeAny, {
70844
+ missing_user_emails: string[];
70845
+ missing_external_users: string[];
70846
+ missing_external_teams: string[];
70847
+ teams_without_access: string[];
70848
+ users_without_access: string[];
70849
+ }, {
70850
+ missing_user_emails: string[];
70851
+ missing_external_users: string[];
70852
+ missing_external_teams: string[];
70853
+ teams_without_access: string[];
70854
+ users_without_access: string[];
70855
+ }>>;
70856
+ schema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
70857
+ $version: z.ZodNumber;
70858
+ rules: z.ZodArray<z.ZodObject<{
70859
+ matcher: z.ZodObject<{
70860
+ type: z.ZodString;
70861
+ pattern: z.ZodString;
70862
+ }, "strip", z.ZodTypeAny, {
70863
+ type: string;
70864
+ pattern: string;
70865
+ }, {
70866
+ type: string;
70867
+ pattern: string;
70868
+ }>;
70869
+ owners: z.ZodArray<z.ZodObject<{
70870
+ type: z.ZodString;
70871
+ name: z.ZodString;
70872
+ id: z.ZodOptional<z.ZodString>;
70873
+ }, "strip", z.ZodTypeAny, {
70874
+ name: string;
70875
+ type: string;
70876
+ id?: string | undefined;
70877
+ }, {
70878
+ name: string;
70879
+ type: string;
70880
+ id?: string | undefined;
70881
+ }>, "many">;
70882
+ }, "strip", z.ZodTypeAny, {
70883
+ owners: {
70884
+ name: string;
70885
+ type: string;
70886
+ id?: string | undefined;
70887
+ }[];
70888
+ matcher: {
70889
+ type: string;
70890
+ pattern: string;
70891
+ };
70892
+ }, {
70893
+ owners: {
70894
+ name: string;
70895
+ type: string;
70896
+ id?: string | undefined;
70897
+ }[];
70898
+ matcher: {
70899
+ type: string;
70900
+ pattern: string;
70901
+ };
70902
+ }>, "many">;
70903
+ }, "strip", z.ZodTypeAny, {
70904
+ $version: number;
70905
+ rules: {
70906
+ owners: {
70907
+ name: string;
70908
+ type: string;
70909
+ id?: string | undefined;
70910
+ }[];
70911
+ matcher: {
70912
+ type: string;
70913
+ pattern: string;
70914
+ };
70915
+ }[];
70916
+ }, {
70917
+ $version: number;
70918
+ rules: {
70919
+ owners: {
70920
+ name: string;
70921
+ type: string;
70922
+ id?: string | undefined;
70923
+ }[];
70924
+ matcher: {
70925
+ type: string;
70926
+ pattern: string;
70927
+ };
70928
+ }[];
70929
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
70930
+ codeOwnersUrl: z.ZodOptional<z.ZodString>;
70931
+ id: z.ZodString;
70932
+ raw: z.ZodString;
70933
+ dateCreated: z.ZodString;
70934
+ dateUpdated: z.ZodString;
70935
+ dateSynced: z.ZodUnion<[z.ZodString, z.ZodNull]>;
70936
+ codeMappingId: z.ZodString;
70937
+ provider: z.ZodString;
70938
+ }, "strip", z.ZodTypeAny, {
70939
+ id: string;
70940
+ dateCreated: string;
70941
+ dateUpdated: string;
70942
+ provider: string;
70943
+ dateSynced: string | null;
70944
+ raw: string;
70945
+ codeMappingId: string;
70946
+ errors?: {
70947
+ missing_user_emails: string[];
70948
+ missing_external_users: string[];
70949
+ missing_external_teams: string[];
70950
+ teams_without_access: string[];
70951
+ users_without_access: string[];
70952
+ } | undefined;
70953
+ codeMapping?: {
70954
+ id: string;
70955
+ projectSlug: string;
70956
+ projectId: string;
70957
+ provider: {
70958
+ name: string;
70959
+ key: string;
70960
+ features: string[];
70961
+ slug: string;
70962
+ aspects: Record<string, unknown>;
70963
+ canAdd: boolean;
70964
+ canDisable: boolean;
70965
+ } | null;
70966
+ integrationId: string | null;
70967
+ defaultBranch: string | null;
70968
+ repoId: string;
70969
+ repoName: string;
70970
+ stackRoot: string;
70971
+ sourceRoot: string;
70972
+ automaticallyGenerated: boolean;
70973
+ } | undefined;
70974
+ ownershipSyntax?: string | undefined;
70975
+ schema?: Record<string, unknown> | {
70976
+ $version: number;
70977
+ rules: {
70978
+ owners: {
70979
+ name: string;
70980
+ type: string;
70981
+ id?: string | undefined;
70982
+ }[];
70983
+ matcher: {
70984
+ type: string;
70985
+ pattern: string;
70986
+ };
70987
+ }[];
70988
+ } | undefined;
70989
+ codeOwnersUrl?: string | undefined;
70990
+ }, {
70991
+ id: string;
70992
+ dateCreated: string;
70993
+ dateUpdated: string;
70994
+ provider: string;
70995
+ dateSynced: string | null;
70996
+ raw: string;
70997
+ codeMappingId: string;
70998
+ errors?: {
70999
+ missing_user_emails: string[];
71000
+ missing_external_users: string[];
71001
+ missing_external_teams: string[];
71002
+ teams_without_access: string[];
71003
+ users_without_access: string[];
71004
+ } | undefined;
71005
+ codeMapping?: {
71006
+ id: string;
71007
+ projectSlug: string;
71008
+ projectId: string;
71009
+ provider: {
71010
+ name: string;
71011
+ key: string;
71012
+ features: string[];
71013
+ slug: string;
71014
+ aspects: Record<string, unknown>;
71015
+ canAdd: boolean;
71016
+ canDisable: boolean;
71017
+ } | null;
71018
+ integrationId: string | null;
71019
+ defaultBranch: string | null;
71020
+ repoId: string;
71021
+ repoName: string;
71022
+ stackRoot: string;
71023
+ sourceRoot: string;
71024
+ automaticallyGenerated: boolean;
71025
+ } | undefined;
71026
+ ownershipSyntax?: string | undefined;
71027
+ schema?: Record<string, unknown> | {
71028
+ $version: number;
71029
+ rules: {
71030
+ owners: {
71031
+ name: string;
71032
+ type: string;
71033
+ id?: string | undefined;
71034
+ }[];
71035
+ matcher: {
71036
+ type: string;
71037
+ pattern: string;
71038
+ };
71039
+ }[];
71040
+ } | undefined;
71041
+ codeOwnersUrl?: string | undefined;
71042
+ }>;
71043
+ export declare const zDeleteProjectCodeOwnersData: z.ZodObject<{
71044
+ body: z.ZodOptional<z.ZodNever>;
71045
+ path: z.ZodObject<{
71046
+ organization_id_or_slug: z.ZodString;
71047
+ project_id_or_slug: z.ZodString;
71048
+ codeowners_id: z.ZodString;
71049
+ }, "strip", z.ZodTypeAny, {
71050
+ organization_id_or_slug: string;
71051
+ project_id_or_slug: string;
71052
+ codeowners_id: string;
71053
+ }, {
71054
+ organization_id_or_slug: string;
71055
+ project_id_or_slug: string;
71056
+ codeowners_id: string;
71057
+ }>;
71058
+ query: z.ZodOptional<z.ZodNever>;
71059
+ }, "strip", z.ZodTypeAny, {
71060
+ path: {
71061
+ organization_id_or_slug: string;
71062
+ project_id_or_slug: string;
71063
+ codeowners_id: string;
71064
+ };
71065
+ query?: undefined;
71066
+ body?: undefined;
71067
+ }, {
71068
+ path: {
71069
+ organization_id_or_slug: string;
71070
+ project_id_or_slug: string;
71071
+ codeowners_id: string;
71072
+ };
71073
+ query?: undefined;
71074
+ body?: undefined;
71075
+ }>;
71076
+ /**
71077
+ * No Content
71078
+ */
71079
+ export declare const zDeleteProjectCodeOwnersResponse: z.ZodVoid;
71080
+ export declare const zRetrieveProjectCodeOwnersData: z.ZodObject<{
71081
+ body: z.ZodOptional<z.ZodNever>;
71082
+ path: z.ZodObject<{
71083
+ organization_id_or_slug: z.ZodString;
71084
+ project_id_or_slug: z.ZodString;
71085
+ codeowners_id: z.ZodString;
71086
+ }, "strip", z.ZodTypeAny, {
71087
+ organization_id_or_slug: string;
71088
+ project_id_or_slug: string;
71089
+ codeowners_id: string;
71090
+ }, {
71091
+ organization_id_or_slug: string;
71092
+ project_id_or_slug: string;
71093
+ codeowners_id: string;
71094
+ }>;
71095
+ query: z.ZodOptional<z.ZodNever>;
71096
+ }, "strip", z.ZodTypeAny, {
71097
+ path: {
71098
+ organization_id_or_slug: string;
71099
+ project_id_or_slug: string;
71100
+ codeowners_id: string;
71101
+ };
71102
+ query?: undefined;
71103
+ body?: undefined;
71104
+ }, {
71105
+ path: {
71106
+ organization_id_or_slug: string;
71107
+ project_id_or_slug: string;
71108
+ codeowners_id: string;
71109
+ };
71110
+ query?: undefined;
71111
+ body?: undefined;
71112
+ }>;
71113
+ export declare const zRetrieveProjectCodeOwnersResponse: z.ZodObject<{
71114
+ codeMapping: z.ZodOptional<z.ZodObject<{
71115
+ id: z.ZodString;
71116
+ projectId: z.ZodString;
71117
+ projectSlug: z.ZodString;
71118
+ repoId: z.ZodString;
71119
+ repoName: z.ZodString;
71120
+ integrationId: z.ZodUnion<[z.ZodString, z.ZodNull]>;
71121
+ provider: z.ZodUnion<[z.ZodObject<{
71122
+ key: z.ZodString;
71123
+ slug: z.ZodString;
71124
+ name: z.ZodString;
71125
+ canAdd: z.ZodBoolean;
71126
+ canDisable: z.ZodBoolean;
71127
+ features: z.ZodArray<z.ZodString, "many">;
71128
+ aspects: z.ZodRecord<z.ZodString, z.ZodUnknown>;
71129
+ }, "strip", z.ZodTypeAny, {
71130
+ name: string;
71131
+ key: string;
71132
+ features: string[];
71133
+ slug: string;
71134
+ aspects: Record<string, unknown>;
71135
+ canAdd: boolean;
71136
+ canDisable: boolean;
71137
+ }, {
71138
+ name: string;
71139
+ key: string;
71140
+ features: string[];
71141
+ slug: string;
71142
+ aspects: Record<string, unknown>;
71143
+ canAdd: boolean;
71144
+ canDisable: boolean;
71145
+ }>, z.ZodNull]>;
71146
+ stackRoot: z.ZodString;
71147
+ sourceRoot: z.ZodString;
71148
+ defaultBranch: z.ZodUnion<[z.ZodString, z.ZodNull]>;
71149
+ automaticallyGenerated: z.ZodBoolean;
71150
+ }, "strip", z.ZodTypeAny, {
71151
+ id: string;
71152
+ projectSlug: string;
71153
+ projectId: string;
71154
+ provider: {
71155
+ name: string;
71156
+ key: string;
71157
+ features: string[];
71158
+ slug: string;
71159
+ aspects: Record<string, unknown>;
71160
+ canAdd: boolean;
71161
+ canDisable: boolean;
71162
+ } | null;
71163
+ integrationId: string | null;
71164
+ defaultBranch: string | null;
71165
+ repoId: string;
71166
+ repoName: string;
71167
+ stackRoot: string;
71168
+ sourceRoot: string;
71169
+ automaticallyGenerated: boolean;
71170
+ }, {
71171
+ id: string;
71172
+ projectSlug: string;
71173
+ projectId: string;
71174
+ provider: {
71175
+ name: string;
71176
+ key: string;
71177
+ features: string[];
71178
+ slug: string;
71179
+ aspects: Record<string, unknown>;
71180
+ canAdd: boolean;
71181
+ canDisable: boolean;
71182
+ } | null;
71183
+ integrationId: string | null;
71184
+ defaultBranch: string | null;
71185
+ repoId: string;
71186
+ repoName: string;
71187
+ stackRoot: string;
71188
+ sourceRoot: string;
71189
+ automaticallyGenerated: boolean;
71190
+ }>>;
71191
+ ownershipSyntax: z.ZodOptional<z.ZodString>;
71192
+ errors: z.ZodOptional<z.ZodObject<{
71193
+ missing_user_emails: z.ZodArray<z.ZodString, "many">;
71194
+ missing_external_users: z.ZodArray<z.ZodString, "many">;
71195
+ missing_external_teams: z.ZodArray<z.ZodString, "many">;
71196
+ teams_without_access: z.ZodArray<z.ZodString, "many">;
71197
+ users_without_access: z.ZodArray<z.ZodString, "many">;
71198
+ }, "strip", z.ZodTypeAny, {
71199
+ missing_user_emails: string[];
71200
+ missing_external_users: string[];
71201
+ missing_external_teams: string[];
71202
+ teams_without_access: string[];
71203
+ users_without_access: string[];
71204
+ }, {
71205
+ missing_user_emails: string[];
71206
+ missing_external_users: string[];
71207
+ missing_external_teams: string[];
71208
+ teams_without_access: string[];
71209
+ users_without_access: string[];
71210
+ }>>;
71211
+ schema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
71212
+ $version: z.ZodNumber;
71213
+ rules: z.ZodArray<z.ZodObject<{
71214
+ matcher: z.ZodObject<{
71215
+ type: z.ZodString;
71216
+ pattern: z.ZodString;
71217
+ }, "strip", z.ZodTypeAny, {
71218
+ type: string;
71219
+ pattern: string;
71220
+ }, {
71221
+ type: string;
71222
+ pattern: string;
71223
+ }>;
71224
+ owners: z.ZodArray<z.ZodObject<{
71225
+ type: z.ZodString;
71226
+ name: z.ZodString;
71227
+ id: z.ZodOptional<z.ZodString>;
71228
+ }, "strip", z.ZodTypeAny, {
71229
+ name: string;
71230
+ type: string;
71231
+ id?: string | undefined;
71232
+ }, {
71233
+ name: string;
71234
+ type: string;
71235
+ id?: string | undefined;
71236
+ }>, "many">;
71237
+ }, "strip", z.ZodTypeAny, {
71238
+ owners: {
71239
+ name: string;
71240
+ type: string;
71241
+ id?: string | undefined;
71242
+ }[];
71243
+ matcher: {
71244
+ type: string;
71245
+ pattern: string;
71246
+ };
71247
+ }, {
71248
+ owners: {
71249
+ name: string;
71250
+ type: string;
71251
+ id?: string | undefined;
71252
+ }[];
71253
+ matcher: {
71254
+ type: string;
71255
+ pattern: string;
71256
+ };
71257
+ }>, "many">;
71258
+ }, "strip", z.ZodTypeAny, {
71259
+ $version: number;
71260
+ rules: {
71261
+ owners: {
71262
+ name: string;
71263
+ type: string;
71264
+ id?: string | undefined;
71265
+ }[];
71266
+ matcher: {
71267
+ type: string;
71268
+ pattern: string;
71269
+ };
71270
+ }[];
71271
+ }, {
71272
+ $version: number;
71273
+ rules: {
71274
+ owners: {
71275
+ name: string;
71276
+ type: string;
71277
+ id?: string | undefined;
71278
+ }[];
71279
+ matcher: {
71280
+ type: string;
71281
+ pattern: string;
71282
+ };
71283
+ }[];
71284
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
71285
+ codeOwnersUrl: z.ZodOptional<z.ZodString>;
71286
+ id: z.ZodString;
71287
+ raw: z.ZodString;
71288
+ dateCreated: z.ZodString;
71289
+ dateUpdated: z.ZodString;
71290
+ dateSynced: z.ZodUnion<[z.ZodString, z.ZodNull]>;
71291
+ codeMappingId: z.ZodString;
71292
+ provider: z.ZodString;
71293
+ }, "strip", z.ZodTypeAny, {
71294
+ id: string;
71295
+ dateCreated: string;
71296
+ dateUpdated: string;
71297
+ provider: string;
71298
+ dateSynced: string | null;
71299
+ raw: string;
71300
+ codeMappingId: string;
71301
+ errors?: {
71302
+ missing_user_emails: string[];
71303
+ missing_external_users: string[];
71304
+ missing_external_teams: string[];
71305
+ teams_without_access: string[];
71306
+ users_without_access: string[];
71307
+ } | undefined;
71308
+ codeMapping?: {
71309
+ id: string;
71310
+ projectSlug: string;
71311
+ projectId: string;
71312
+ provider: {
71313
+ name: string;
71314
+ key: string;
71315
+ features: string[];
71316
+ slug: string;
71317
+ aspects: Record<string, unknown>;
71318
+ canAdd: boolean;
71319
+ canDisable: boolean;
71320
+ } | null;
71321
+ integrationId: string | null;
71322
+ defaultBranch: string | null;
71323
+ repoId: string;
71324
+ repoName: string;
71325
+ stackRoot: string;
71326
+ sourceRoot: string;
71327
+ automaticallyGenerated: boolean;
71328
+ } | undefined;
71329
+ ownershipSyntax?: string | undefined;
71330
+ schema?: Record<string, unknown> | {
71331
+ $version: number;
71332
+ rules: {
71333
+ owners: {
71334
+ name: string;
71335
+ type: string;
71336
+ id?: string | undefined;
71337
+ }[];
71338
+ matcher: {
71339
+ type: string;
71340
+ pattern: string;
71341
+ };
71342
+ }[];
71343
+ } | undefined;
71344
+ codeOwnersUrl?: string | undefined;
71345
+ }, {
71346
+ id: string;
71347
+ dateCreated: string;
71348
+ dateUpdated: string;
71349
+ provider: string;
71350
+ dateSynced: string | null;
71351
+ raw: string;
71352
+ codeMappingId: string;
71353
+ errors?: {
71354
+ missing_user_emails: string[];
71355
+ missing_external_users: string[];
71356
+ missing_external_teams: string[];
71357
+ teams_without_access: string[];
71358
+ users_without_access: string[];
71359
+ } | undefined;
71360
+ codeMapping?: {
71361
+ id: string;
71362
+ projectSlug: string;
71363
+ projectId: string;
71364
+ provider: {
71365
+ name: string;
71366
+ key: string;
71367
+ features: string[];
71368
+ slug: string;
71369
+ aspects: Record<string, unknown>;
71370
+ canAdd: boolean;
71371
+ canDisable: boolean;
71372
+ } | null;
71373
+ integrationId: string | null;
71374
+ defaultBranch: string | null;
71375
+ repoId: string;
71376
+ repoName: string;
71377
+ stackRoot: string;
71378
+ sourceRoot: string;
71379
+ automaticallyGenerated: boolean;
71380
+ } | undefined;
71381
+ ownershipSyntax?: string | undefined;
71382
+ schema?: Record<string, unknown> | {
71383
+ $version: number;
71384
+ rules: {
71385
+ owners: {
71386
+ name: string;
71387
+ type: string;
71388
+ id?: string | undefined;
71389
+ }[];
71390
+ matcher: {
71391
+ type: string;
71392
+ pattern: string;
71393
+ };
71394
+ }[];
71395
+ } | undefined;
71396
+ codeOwnersUrl?: string | undefined;
71397
+ }>;
71398
+ export declare const zUpdateProjectCodeOwnersData: z.ZodObject<{
71399
+ body: z.ZodOptional<z.ZodObject<{
71400
+ raw: z.ZodOptional<z.ZodString>;
71401
+ codeMappingId: z.ZodOptional<z.ZodString>;
71402
+ }, "strip", z.ZodTypeAny, {
71403
+ raw?: string | undefined;
71404
+ codeMappingId?: string | undefined;
71405
+ }, {
71406
+ raw?: string | undefined;
71407
+ codeMappingId?: string | undefined;
71408
+ }>>;
71409
+ path: z.ZodObject<{
71410
+ organization_id_or_slug: z.ZodString;
71411
+ project_id_or_slug: z.ZodString;
71412
+ codeowners_id: z.ZodString;
71413
+ }, "strip", z.ZodTypeAny, {
71414
+ organization_id_or_slug: string;
71415
+ project_id_or_slug: string;
71416
+ codeowners_id: string;
71417
+ }, {
71418
+ organization_id_or_slug: string;
71419
+ project_id_or_slug: string;
71420
+ codeowners_id: string;
71421
+ }>;
71422
+ query: z.ZodOptional<z.ZodNever>;
71423
+ }, "strip", z.ZodTypeAny, {
71424
+ path: {
71425
+ organization_id_or_slug: string;
71426
+ project_id_or_slug: string;
71427
+ codeowners_id: string;
71428
+ };
71429
+ query?: undefined;
71430
+ body?: {
71431
+ raw?: string | undefined;
71432
+ codeMappingId?: string | undefined;
71433
+ } | undefined;
71434
+ }, {
71435
+ path: {
71436
+ organization_id_or_slug: string;
71437
+ project_id_or_slug: string;
71438
+ codeowners_id: string;
71439
+ };
71440
+ query?: undefined;
71441
+ body?: {
71442
+ raw?: string | undefined;
71443
+ codeMappingId?: string | undefined;
71444
+ } | undefined;
71445
+ }>;
71446
+ export declare const zUpdateProjectCodeOwnersResponse: z.ZodObject<{
71447
+ codeMapping: z.ZodOptional<z.ZodObject<{
71448
+ id: z.ZodString;
71449
+ projectId: z.ZodString;
71450
+ projectSlug: z.ZodString;
71451
+ repoId: z.ZodString;
71452
+ repoName: z.ZodString;
71453
+ integrationId: z.ZodUnion<[z.ZodString, z.ZodNull]>;
71454
+ provider: z.ZodUnion<[z.ZodObject<{
71455
+ key: z.ZodString;
71456
+ slug: z.ZodString;
71457
+ name: z.ZodString;
71458
+ canAdd: z.ZodBoolean;
71459
+ canDisable: z.ZodBoolean;
71460
+ features: z.ZodArray<z.ZodString, "many">;
71461
+ aspects: z.ZodRecord<z.ZodString, z.ZodUnknown>;
71462
+ }, "strip", z.ZodTypeAny, {
71463
+ name: string;
71464
+ key: string;
71465
+ features: string[];
71466
+ slug: string;
71467
+ aspects: Record<string, unknown>;
71468
+ canAdd: boolean;
71469
+ canDisable: boolean;
71470
+ }, {
71471
+ name: string;
71472
+ key: string;
71473
+ features: string[];
71474
+ slug: string;
71475
+ aspects: Record<string, unknown>;
71476
+ canAdd: boolean;
71477
+ canDisable: boolean;
71478
+ }>, z.ZodNull]>;
71479
+ stackRoot: z.ZodString;
71480
+ sourceRoot: z.ZodString;
71481
+ defaultBranch: z.ZodUnion<[z.ZodString, z.ZodNull]>;
71482
+ automaticallyGenerated: z.ZodBoolean;
71483
+ }, "strip", z.ZodTypeAny, {
71484
+ id: string;
71485
+ projectSlug: string;
71486
+ projectId: string;
71487
+ provider: {
71488
+ name: string;
71489
+ key: string;
71490
+ features: string[];
71491
+ slug: string;
71492
+ aspects: Record<string, unknown>;
71493
+ canAdd: boolean;
71494
+ canDisable: boolean;
71495
+ } | null;
71496
+ integrationId: string | null;
71497
+ defaultBranch: string | null;
71498
+ repoId: string;
71499
+ repoName: string;
71500
+ stackRoot: string;
71501
+ sourceRoot: string;
71502
+ automaticallyGenerated: boolean;
71503
+ }, {
71504
+ id: string;
71505
+ projectSlug: string;
71506
+ projectId: string;
71507
+ provider: {
71508
+ name: string;
71509
+ key: string;
71510
+ features: string[];
71511
+ slug: string;
71512
+ aspects: Record<string, unknown>;
71513
+ canAdd: boolean;
71514
+ canDisable: boolean;
71515
+ } | null;
71516
+ integrationId: string | null;
71517
+ defaultBranch: string | null;
71518
+ repoId: string;
71519
+ repoName: string;
71520
+ stackRoot: string;
71521
+ sourceRoot: string;
71522
+ automaticallyGenerated: boolean;
71523
+ }>>;
71524
+ ownershipSyntax: z.ZodOptional<z.ZodString>;
71525
+ errors: z.ZodOptional<z.ZodObject<{
71526
+ missing_user_emails: z.ZodArray<z.ZodString, "many">;
71527
+ missing_external_users: z.ZodArray<z.ZodString, "many">;
71528
+ missing_external_teams: z.ZodArray<z.ZodString, "many">;
71529
+ teams_without_access: z.ZodArray<z.ZodString, "many">;
71530
+ users_without_access: z.ZodArray<z.ZodString, "many">;
71531
+ }, "strip", z.ZodTypeAny, {
71532
+ missing_user_emails: string[];
71533
+ missing_external_users: string[];
71534
+ missing_external_teams: string[];
71535
+ teams_without_access: string[];
71536
+ users_without_access: string[];
71537
+ }, {
71538
+ missing_user_emails: string[];
71539
+ missing_external_users: string[];
71540
+ missing_external_teams: string[];
71541
+ teams_without_access: string[];
71542
+ users_without_access: string[];
71543
+ }>>;
71544
+ schema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
71545
+ $version: z.ZodNumber;
71546
+ rules: z.ZodArray<z.ZodObject<{
71547
+ matcher: z.ZodObject<{
71548
+ type: z.ZodString;
71549
+ pattern: z.ZodString;
71550
+ }, "strip", z.ZodTypeAny, {
71551
+ type: string;
71552
+ pattern: string;
71553
+ }, {
71554
+ type: string;
71555
+ pattern: string;
71556
+ }>;
71557
+ owners: z.ZodArray<z.ZodObject<{
71558
+ type: z.ZodString;
71559
+ name: z.ZodString;
71560
+ id: z.ZodOptional<z.ZodString>;
71561
+ }, "strip", z.ZodTypeAny, {
71562
+ name: string;
71563
+ type: string;
71564
+ id?: string | undefined;
71565
+ }, {
71566
+ name: string;
71567
+ type: string;
71568
+ id?: string | undefined;
71569
+ }>, "many">;
71570
+ }, "strip", z.ZodTypeAny, {
71571
+ owners: {
71572
+ name: string;
71573
+ type: string;
71574
+ id?: string | undefined;
71575
+ }[];
71576
+ matcher: {
71577
+ type: string;
71578
+ pattern: string;
71579
+ };
71580
+ }, {
71581
+ owners: {
71582
+ name: string;
71583
+ type: string;
71584
+ id?: string | undefined;
71585
+ }[];
71586
+ matcher: {
71587
+ type: string;
71588
+ pattern: string;
71589
+ };
71590
+ }>, "many">;
71591
+ }, "strip", z.ZodTypeAny, {
71592
+ $version: number;
71593
+ rules: {
71594
+ owners: {
71595
+ name: string;
71596
+ type: string;
71597
+ id?: string | undefined;
71598
+ }[];
71599
+ matcher: {
71600
+ type: string;
71601
+ pattern: string;
71602
+ };
71603
+ }[];
71604
+ }, {
71605
+ $version: number;
71606
+ rules: {
71607
+ owners: {
71608
+ name: string;
71609
+ type: string;
71610
+ id?: string | undefined;
71611
+ }[];
71612
+ matcher: {
71613
+ type: string;
71614
+ pattern: string;
71615
+ };
71616
+ }[];
71617
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
71618
+ codeOwnersUrl: z.ZodOptional<z.ZodString>;
71619
+ id: z.ZodString;
71620
+ raw: z.ZodString;
71621
+ dateCreated: z.ZodString;
71622
+ dateUpdated: z.ZodString;
71623
+ dateSynced: z.ZodUnion<[z.ZodString, z.ZodNull]>;
71624
+ codeMappingId: z.ZodString;
71625
+ provider: z.ZodString;
71626
+ }, "strip", z.ZodTypeAny, {
71627
+ id: string;
71628
+ dateCreated: string;
71629
+ dateUpdated: string;
71630
+ provider: string;
71631
+ dateSynced: string | null;
71632
+ raw: string;
71633
+ codeMappingId: string;
71634
+ errors?: {
71635
+ missing_user_emails: string[];
71636
+ missing_external_users: string[];
71637
+ missing_external_teams: string[];
71638
+ teams_without_access: string[];
71639
+ users_without_access: string[];
71640
+ } | undefined;
71641
+ codeMapping?: {
71642
+ id: string;
71643
+ projectSlug: string;
71644
+ projectId: string;
71645
+ provider: {
71646
+ name: string;
71647
+ key: string;
71648
+ features: string[];
71649
+ slug: string;
71650
+ aspects: Record<string, unknown>;
71651
+ canAdd: boolean;
71652
+ canDisable: boolean;
71653
+ } | null;
71654
+ integrationId: string | null;
71655
+ defaultBranch: string | null;
71656
+ repoId: string;
71657
+ repoName: string;
71658
+ stackRoot: string;
71659
+ sourceRoot: string;
71660
+ automaticallyGenerated: boolean;
71661
+ } | undefined;
71662
+ ownershipSyntax?: string | undefined;
71663
+ schema?: Record<string, unknown> | {
71664
+ $version: number;
71665
+ rules: {
71666
+ owners: {
71667
+ name: string;
71668
+ type: string;
71669
+ id?: string | undefined;
71670
+ }[];
71671
+ matcher: {
71672
+ type: string;
71673
+ pattern: string;
71674
+ };
71675
+ }[];
71676
+ } | undefined;
71677
+ codeOwnersUrl?: string | undefined;
71678
+ }, {
71679
+ id: string;
71680
+ dateCreated: string;
71681
+ dateUpdated: string;
71682
+ provider: string;
71683
+ dateSynced: string | null;
71684
+ raw: string;
71685
+ codeMappingId: string;
71686
+ errors?: {
71687
+ missing_user_emails: string[];
71688
+ missing_external_users: string[];
71689
+ missing_external_teams: string[];
71690
+ teams_without_access: string[];
71691
+ users_without_access: string[];
71692
+ } | undefined;
71693
+ codeMapping?: {
71694
+ id: string;
71695
+ projectSlug: string;
71696
+ projectId: string;
71697
+ provider: {
71698
+ name: string;
71699
+ key: string;
71700
+ features: string[];
71701
+ slug: string;
71702
+ aspects: Record<string, unknown>;
71703
+ canAdd: boolean;
71704
+ canDisable: boolean;
71705
+ } | null;
71706
+ integrationId: string | null;
71707
+ defaultBranch: string | null;
71708
+ repoId: string;
71709
+ repoName: string;
71710
+ stackRoot: string;
71711
+ sourceRoot: string;
71712
+ automaticallyGenerated: boolean;
71713
+ } | undefined;
71714
+ ownershipSyntax?: string | undefined;
71715
+ schema?: Record<string, unknown> | {
71716
+ $version: number;
71717
+ rules: {
71718
+ owners: {
71719
+ name: string;
71720
+ type: string;
71721
+ id?: string | undefined;
71722
+ }[];
71723
+ matcher: {
71724
+ type: string;
71725
+ pattern: string;
71726
+ };
71727
+ }[];
71728
+ } | undefined;
71729
+ codeOwnersUrl?: string | undefined;
71730
+ }>;
69802
71731
  export declare const zListProjectEnvironmentsData: z.ZodObject<{
69803
71732
  body: z.ZodOptional<z.ZodNever>;
69804
71733
  path: z.ZodObject<{
@@ -74545,8 +76474,8 @@ export declare const zGetProjectOwnershipResponse: z.ZodObject<{
74545
76474
  }, "strip", z.ZodTypeAny, {
74546
76475
  dateCreated: string;
74547
76476
  isActive: boolean;
74548
- lastUpdated: string;
74549
76477
  raw: string;
76478
+ lastUpdated: string;
74550
76479
  fallthrough: boolean;
74551
76480
  autoAssignment: string;
74552
76481
  codeownersAutoSync: boolean;
@@ -74567,8 +76496,8 @@ export declare const zGetProjectOwnershipResponse: z.ZodObject<{
74567
76496
  }, {
74568
76497
  dateCreated: string;
74569
76498
  isActive: boolean;
74570
- lastUpdated: string;
74571
76499
  raw: string;
76500
+ lastUpdated: string;
74572
76501
  fallthrough: boolean;
74573
76502
  autoAssignment: string;
74574
76503
  codeownersAutoSync: boolean;
@@ -74725,8 +76654,8 @@ export declare const zUpdateProjectOwnershipResponse: z.ZodObject<{
74725
76654
  }, "strip", z.ZodTypeAny, {
74726
76655
  dateCreated: string;
74727
76656
  isActive: boolean;
74728
- lastUpdated: string;
74729
76657
  raw: string;
76658
+ lastUpdated: string;
74730
76659
  fallthrough: boolean;
74731
76660
  autoAssignment: string;
74732
76661
  codeownersAutoSync: boolean;
@@ -74747,8 +76676,8 @@ export declare const zUpdateProjectOwnershipResponse: z.ZodObject<{
74747
76676
  }, {
74748
76677
  dateCreated: string;
74749
76678
  isActive: boolean;
74750
- lastUpdated: string;
74751
76679
  raw: string;
76680
+ lastUpdated: string;
74752
76681
  fallthrough: boolean;
74753
76682
  autoAssignment: string;
74754
76683
  codeownersAutoSync: boolean;