@sentry/api 0.376.0 → 0.377.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
@@ -6619,8 +6619,8 @@ export declare const zGetFlagLogResponse: z.ZodObject<{
6619
6619
  id: number;
6620
6620
  action: "created" | "deleted" | "updated";
6621
6621
  tags: Record<string, unknown>;
6622
- flag: string;
6623
6622
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
6623
+ flag: string;
6624
6624
  createdBy: string | null;
6625
6625
  createdAt: string;
6626
6626
  createdByType: "name" | "email" | "id" | null;
@@ -6628,8 +6628,8 @@ export declare const zGetFlagLogResponse: z.ZodObject<{
6628
6628
  id: number;
6629
6629
  action: "created" | "deleted" | "updated";
6630
6630
  tags: Record<string, unknown>;
6631
- flag: string;
6632
6631
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
6632
+ flag: string;
6633
6633
  createdBy: string | null;
6634
6634
  createdAt: string;
6635
6635
  createdByType: "name" | "email" | "id" | null;
@@ -6639,8 +6639,8 @@ export declare const zGetFlagLogResponse: z.ZodObject<{
6639
6639
  id: number;
6640
6640
  action: "created" | "deleted" | "updated";
6641
6641
  tags: Record<string, unknown>;
6642
- flag: string;
6643
6642
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
6643
+ flag: string;
6644
6644
  createdBy: string | null;
6645
6645
  createdAt: string;
6646
6646
  createdByType: "name" | "email" | "id" | null;
@@ -6650,8 +6650,8 @@ export declare const zGetFlagLogResponse: z.ZodObject<{
6650
6650
  id: number;
6651
6651
  action: "created" | "deleted" | "updated";
6652
6652
  tags: Record<string, unknown>;
6653
- flag: string;
6654
6653
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
6654
+ flag: string;
6655
6655
  createdBy: string | null;
6656
6656
  createdAt: string;
6657
6657
  createdByType: "name" | "email" | "id" | null;
@@ -11841,8 +11841,8 @@ export declare const zListFlagLogsResponse: z.ZodObject<{
11841
11841
  id: number;
11842
11842
  action: "created" | "deleted" | "updated";
11843
11843
  tags: Record<string, unknown>;
11844
- flag: string;
11845
11844
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
11845
+ flag: string;
11846
11846
  createdBy: string | null;
11847
11847
  createdAt: string;
11848
11848
  createdByType: "name" | "email" | "id" | null;
@@ -11850,8 +11850,8 @@ export declare const zListFlagLogsResponse: z.ZodObject<{
11850
11850
  id: number;
11851
11851
  action: "created" | "deleted" | "updated";
11852
11852
  tags: Record<string, unknown>;
11853
- flag: string;
11854
11853
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
11854
+ flag: string;
11855
11855
  createdBy: string | null;
11856
11856
  createdAt: string;
11857
11857
  createdByType: "name" | "email" | "id" | null;
@@ -11861,8 +11861,8 @@ export declare const zListFlagLogsResponse: z.ZodObject<{
11861
11861
  id: number;
11862
11862
  action: "created" | "deleted" | "updated";
11863
11863
  tags: Record<string, unknown>;
11864
- flag: string;
11865
11864
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
11865
+ flag: string;
11866
11866
  createdBy: string | null;
11867
11867
  createdAt: string;
11868
11868
  createdByType: "name" | "email" | "id" | null;
@@ -11872,8 +11872,8 @@ export declare const zListFlagLogsResponse: z.ZodObject<{
11872
11872
  id: number;
11873
11873
  action: "created" | "deleted" | "updated";
11874
11874
  tags: Record<string, unknown>;
11875
- flag: string;
11876
11875
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
11876
+ flag: string;
11877
11877
  createdBy: string | null;
11878
11878
  createdAt: string;
11879
11879
  createdByType: "name" | "email" | "id" | null;
@@ -20305,6 +20305,46 @@ export declare const zOrganizationCodeMappingResponse: z.ZodObject<{
20305
20305
  automaticallyGenerated: boolean;
20306
20306
  hasCodeOwner: boolean;
20307
20307
  }>;
20308
+ export declare const zOrganizationCodeOwnersAssociationsResponse: z.ZodRecord<z.ZodString, z.ZodObject<{
20309
+ associations: z.ZodRecord<z.ZodString, z.ZodString>;
20310
+ errors: z.ZodObject<{
20311
+ missing_user_emails: z.ZodArray<z.ZodString, "many">;
20312
+ missing_external_users: z.ZodArray<z.ZodString, "many">;
20313
+ missing_external_teams: z.ZodArray<z.ZodString, "many">;
20314
+ teams_without_access: z.ZodArray<z.ZodString, "many">;
20315
+ users_without_access: z.ZodArray<z.ZodString, "many">;
20316
+ }, "strip", z.ZodTypeAny, {
20317
+ missing_user_emails: string[];
20318
+ missing_external_users: string[];
20319
+ missing_external_teams: string[];
20320
+ teams_without_access: string[];
20321
+ users_without_access: string[];
20322
+ }, {
20323
+ missing_user_emails: string[];
20324
+ missing_external_users: string[];
20325
+ missing_external_teams: string[];
20326
+ teams_without_access: string[];
20327
+ users_without_access: string[];
20328
+ }>;
20329
+ }, "strip", z.ZodTypeAny, {
20330
+ errors: {
20331
+ missing_user_emails: string[];
20332
+ missing_external_users: string[];
20333
+ missing_external_teams: string[];
20334
+ teams_without_access: string[];
20335
+ users_without_access: string[];
20336
+ };
20337
+ associations: Record<string, string>;
20338
+ }, {
20339
+ errors: {
20340
+ missing_user_emails: string[];
20341
+ missing_external_users: string[];
20342
+ missing_external_teams: string[];
20343
+ teams_without_access: string[];
20344
+ users_without_access: string[];
20345
+ };
20346
+ associations: Record<string, string>;
20347
+ }>>;
20308
20348
  export declare const zOrganizationConfigIntegrationsEndpointResponse: z.ZodObject<{
20309
20349
  providers: z.ZodArray<z.ZodObject<{
20310
20350
  key: z.ZodString;
@@ -24051,6 +24091,55 @@ export declare const zOrganizationRelease: z.ZodObject<{
24051
24091
  previousCommit?: string | null | undefined;
24052
24092
  }[] | undefined;
24053
24093
  }>;
24094
+ export declare const zOrganizationRepositorySettingsResponse: z.ZodArray<z.ZodObject<{
24095
+ url: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
24096
+ provider: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24097
+ status: z.ZodOptional<z.ZodString>;
24098
+ integrationId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
24099
+ externalSlug: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
24100
+ externalId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
24101
+ settings: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
24102
+ enabledCodeReview: z.ZodBoolean;
24103
+ codeReviewTriggers: z.ZodArray<z.ZodString, "many">;
24104
+ }, "strip", z.ZodTypeAny, {
24105
+ codeReviewTriggers: string[];
24106
+ enabledCodeReview: boolean;
24107
+ }, {
24108
+ codeReviewTriggers: string[];
24109
+ enabledCodeReview: boolean;
24110
+ }>, z.ZodNull]>>;
24111
+ id: z.ZodString;
24112
+ name: z.ZodString;
24113
+ dateCreated: z.ZodString;
24114
+ }, "strip", z.ZodTypeAny, {
24115
+ name: string;
24116
+ id: string;
24117
+ dateCreated: string;
24118
+ url?: string | null | undefined;
24119
+ integrationId?: string | null | undefined;
24120
+ provider?: Record<string, string> | undefined;
24121
+ status?: string | undefined;
24122
+ externalSlug?: string | null | undefined;
24123
+ externalId?: string | null | undefined;
24124
+ settings?: {
24125
+ codeReviewTriggers: string[];
24126
+ enabledCodeReview: boolean;
24127
+ } | null | undefined;
24128
+ }, {
24129
+ name: string;
24130
+ id: string;
24131
+ dateCreated: string;
24132
+ url?: string | null | undefined;
24133
+ integrationId?: string | null | undefined;
24134
+ provider?: Record<string, string> | undefined;
24135
+ status?: string | undefined;
24136
+ externalSlug?: string | null | undefined;
24137
+ externalId?: string | null | undefined;
24138
+ settings?: {
24139
+ codeReviewTriggers: string[];
24140
+ enabledCodeReview: boolean;
24141
+ } | null | undefined;
24142
+ }>, "many">;
24054
24143
  export declare const zOrganizationSentryAppDetailsResponse: z.ZodArray<z.ZodObject<{
24055
24144
  allowedOrigins: z.ZodArray<z.ZodString, "many">;
24056
24145
  avatars: z.ZodArray<z.ZodObject<{
@@ -29314,6 +29403,19 @@ export declare const zReplayDeletionJobCreateData: z.ZodObject<{
29314
29403
  rangeStart: string;
29315
29404
  rangeEnd: string;
29316
29405
  }>;
29406
+ export declare const zRepositorySettings: z.ZodObject<{
29407
+ repositoryIds: z.ZodArray<z.ZodNumber, "many">;
29408
+ enabledCodeReview: z.ZodOptional<z.ZodBoolean>;
29409
+ codeReviewTriggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["on_new_commit", "on_ready_for_review"]>, "many">>;
29410
+ }, "strip", z.ZodTypeAny, {
29411
+ repositoryIds: number[];
29412
+ codeReviewTriggers?: ("on_new_commit" | "on_ready_for_review")[] | undefined;
29413
+ enabledCodeReview?: boolean | undefined;
29414
+ }, {
29415
+ repositoryIds: number[];
29416
+ codeReviewTriggers?: ("on_new_commit" | "on_ready_for_review")[] | undefined;
29417
+ enabledCodeReview?: boolean | undefined;
29418
+ }>;
29317
29419
  /**
29318
29420
  * Span page plus conversation-level metadata.
29319
29421
  */
@@ -37975,6 +38077,84 @@ export declare const zCreateOrganizationCodeMappingResponse: z.ZodObject<{
37975
38077
  automaticallyGenerated: boolean;
37976
38078
  hasCodeOwner: boolean;
37977
38079
  }>;
38080
+ export declare const zListOrganizationCodeownersAssociationsData: z.ZodObject<{
38081
+ body: z.ZodOptional<z.ZodNever>;
38082
+ path: z.ZodObject<{
38083
+ organization_id_or_slug: z.ZodString;
38084
+ }, "strip", z.ZodTypeAny, {
38085
+ organization_id_or_slug: string;
38086
+ }, {
38087
+ organization_id_or_slug: string;
38088
+ }>;
38089
+ query: z.ZodOptional<z.ZodObject<{
38090
+ project: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
38091
+ provider: z.ZodOptional<z.ZodString>;
38092
+ }, "strip", z.ZodTypeAny, {
38093
+ project?: string[] | undefined;
38094
+ provider?: string | undefined;
38095
+ }, {
38096
+ project?: string[] | undefined;
38097
+ provider?: string | undefined;
38098
+ }>>;
38099
+ }, "strip", z.ZodTypeAny, {
38100
+ path: {
38101
+ organization_id_or_slug: string;
38102
+ };
38103
+ query?: {
38104
+ project?: string[] | undefined;
38105
+ provider?: string | undefined;
38106
+ } | undefined;
38107
+ body?: undefined;
38108
+ }, {
38109
+ path: {
38110
+ organization_id_or_slug: string;
38111
+ };
38112
+ query?: {
38113
+ project?: string[] | undefined;
38114
+ provider?: string | undefined;
38115
+ } | undefined;
38116
+ body?: undefined;
38117
+ }>;
38118
+ export declare const zListOrganizationCodeownersAssociationsResponse: z.ZodRecord<z.ZodString, z.ZodObject<{
38119
+ associations: z.ZodRecord<z.ZodString, z.ZodString>;
38120
+ errors: z.ZodObject<{
38121
+ missing_user_emails: z.ZodArray<z.ZodString, "many">;
38122
+ missing_external_users: z.ZodArray<z.ZodString, "many">;
38123
+ missing_external_teams: z.ZodArray<z.ZodString, "many">;
38124
+ teams_without_access: z.ZodArray<z.ZodString, "many">;
38125
+ users_without_access: z.ZodArray<z.ZodString, "many">;
38126
+ }, "strip", z.ZodTypeAny, {
38127
+ missing_user_emails: string[];
38128
+ missing_external_users: string[];
38129
+ missing_external_teams: string[];
38130
+ teams_without_access: string[];
38131
+ users_without_access: string[];
38132
+ }, {
38133
+ missing_user_emails: string[];
38134
+ missing_external_users: string[];
38135
+ missing_external_teams: string[];
38136
+ teams_without_access: string[];
38137
+ users_without_access: string[];
38138
+ }>;
38139
+ }, "strip", z.ZodTypeAny, {
38140
+ errors: {
38141
+ missing_user_emails: string[];
38142
+ missing_external_users: string[];
38143
+ missing_external_teams: string[];
38144
+ teams_without_access: string[];
38145
+ users_without_access: string[];
38146
+ };
38147
+ associations: Record<string, string>;
38148
+ }, {
38149
+ errors: {
38150
+ missing_user_emails: string[];
38151
+ missing_external_users: string[];
38152
+ missing_external_teams: string[];
38153
+ teams_without_access: string[];
38154
+ users_without_access: string[];
38155
+ };
38156
+ associations: Record<string, string>;
38157
+ }>>;
37978
38158
  export declare const zGetOrganizationConfigIntegrationsData: z.ZodObject<{
37979
38159
  body: z.ZodOptional<z.ZodNever>;
37980
38160
  path: z.ZodObject<{
@@ -45474,8 +45654,8 @@ export declare const zListOrganizationFlagLogsData: z.ZodObject<{
45474
45654
  statsPeriod?: string | undefined;
45475
45655
  start?: string | undefined;
45476
45656
  end?: string | undefined;
45477
- flag?: string[] | undefined;
45478
45657
  provider?: ("unknown" | "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig")[] | undefined;
45658
+ flag?: string[] | undefined;
45479
45659
  }, {
45480
45660
  sort?: string | undefined;
45481
45661
  cursor?: string | undefined;
@@ -45483,8 +45663,8 @@ export declare const zListOrganizationFlagLogsData: z.ZodObject<{
45483
45663
  statsPeriod?: string | undefined;
45484
45664
  start?: string | undefined;
45485
45665
  end?: string | undefined;
45486
- flag?: string[] | undefined;
45487
45666
  provider?: ("unknown" | "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig")[] | undefined;
45667
+ flag?: string[] | undefined;
45488
45668
  }>>;
45489
45669
  }, "strip", z.ZodTypeAny, {
45490
45670
  path: {
@@ -45497,8 +45677,8 @@ export declare const zListOrganizationFlagLogsData: z.ZodObject<{
45497
45677
  statsPeriod?: string | undefined;
45498
45678
  start?: string | undefined;
45499
45679
  end?: string | undefined;
45500
- flag?: string[] | undefined;
45501
45680
  provider?: ("unknown" | "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig")[] | undefined;
45681
+ flag?: string[] | undefined;
45502
45682
  } | undefined;
45503
45683
  body?: undefined;
45504
45684
  }, {
@@ -45512,8 +45692,8 @@ export declare const zListOrganizationFlagLogsData: z.ZodObject<{
45512
45692
  statsPeriod?: string | undefined;
45513
45693
  start?: string | undefined;
45514
45694
  end?: string | undefined;
45515
- flag?: string[] | undefined;
45516
45695
  provider?: ("unknown" | "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig")[] | undefined;
45696
+ flag?: string[] | undefined;
45517
45697
  } | undefined;
45518
45698
  body?: undefined;
45519
45699
  }>;
@@ -45531,8 +45711,8 @@ export declare const zListOrganizationFlagLogsResponse: z.ZodObject<{
45531
45711
  id: number;
45532
45712
  action: "created" | "deleted" | "updated";
45533
45713
  tags: Record<string, unknown>;
45534
- flag: string;
45535
45714
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
45715
+ flag: string;
45536
45716
  createdBy: string | null;
45537
45717
  createdAt: string;
45538
45718
  createdByType: "name" | "email" | "id" | null;
@@ -45540,8 +45720,8 @@ export declare const zListOrganizationFlagLogsResponse: z.ZodObject<{
45540
45720
  id: number;
45541
45721
  action: "created" | "deleted" | "updated";
45542
45722
  tags: Record<string, unknown>;
45543
- flag: string;
45544
45723
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
45724
+ flag: string;
45545
45725
  createdBy: string | null;
45546
45726
  createdAt: string;
45547
45727
  createdByType: "name" | "email" | "id" | null;
@@ -45551,8 +45731,8 @@ export declare const zListOrganizationFlagLogsResponse: z.ZodObject<{
45551
45731
  id: number;
45552
45732
  action: "created" | "deleted" | "updated";
45553
45733
  tags: Record<string, unknown>;
45554
- flag: string;
45555
45734
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
45735
+ flag: string;
45556
45736
  createdBy: string | null;
45557
45737
  createdAt: string;
45558
45738
  createdByType: "name" | "email" | "id" | null;
@@ -45562,8 +45742,8 @@ export declare const zListOrganizationFlagLogsResponse: z.ZodObject<{
45562
45742
  id: number;
45563
45743
  action: "created" | "deleted" | "updated";
45564
45744
  tags: Record<string, unknown>;
45565
- flag: string;
45566
45745
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
45746
+ flag: string;
45567
45747
  createdBy: string | null;
45568
45748
  createdAt: string;
45569
45749
  createdByType: "name" | "email" | "id" | null;
@@ -45611,8 +45791,8 @@ export declare const zRetrieveOrganizationFlagLogResponse: z.ZodObject<{
45611
45791
  id: number;
45612
45792
  action: "created" | "deleted" | "updated";
45613
45793
  tags: Record<string, unknown>;
45614
- flag: string;
45615
45794
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
45795
+ flag: string;
45616
45796
  createdBy: string | null;
45617
45797
  createdAt: string;
45618
45798
  createdByType: "name" | "email" | "id" | null;
@@ -45620,8 +45800,8 @@ export declare const zRetrieveOrganizationFlagLogResponse: z.ZodObject<{
45620
45800
  id: number;
45621
45801
  action: "created" | "deleted" | "updated";
45622
45802
  tags: Record<string, unknown>;
45623
- flag: string;
45624
45803
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
45804
+ flag: string;
45625
45805
  createdBy: string | null;
45626
45806
  createdAt: string;
45627
45807
  createdByType: "name" | "email" | "id" | null;
@@ -45631,8 +45811,8 @@ export declare const zRetrieveOrganizationFlagLogResponse: z.ZodObject<{
45631
45811
  id: number;
45632
45812
  action: "created" | "deleted" | "updated";
45633
45813
  tags: Record<string, unknown>;
45634
- flag: string;
45635
45814
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
45815
+ flag: string;
45636
45816
  createdBy: string | null;
45637
45817
  createdAt: string;
45638
45818
  createdByType: "name" | "email" | "id" | null;
@@ -45642,8 +45822,8 @@ export declare const zRetrieveOrganizationFlagLogResponse: z.ZodObject<{
45642
45822
  id: number;
45643
45823
  action: "created" | "deleted" | "updated";
45644
45824
  tags: Record<string, unknown>;
45645
- flag: string;
45646
45825
  provider: "generic" | "flagpole" | "launchdarkly" | "unleash" | "statsig" | null;
45826
+ flag: string;
45647
45827
  createdBy: string | null;
45648
45828
  createdAt: string;
45649
45829
  createdByType: "name" | "email" | "id" | null;
@@ -63660,6 +63840,98 @@ export declare const zListOrganizationRepoCommitsResponse: z.ZodArray<z.ZodObjec
63660
63840
  email: string;
63661
63841
  } | undefined;
63662
63842
  }>, "many">;
63843
+ export declare const zUpdateOrganizationRepositorySettingsData: z.ZodObject<{
63844
+ body: z.ZodObject<{
63845
+ repositoryIds: z.ZodArray<z.ZodNumber, "many">;
63846
+ enabledCodeReview: z.ZodOptional<z.ZodBoolean>;
63847
+ codeReviewTriggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["on_new_commit", "on_ready_for_review"]>, "many">>;
63848
+ }, "strip", z.ZodTypeAny, {
63849
+ repositoryIds: number[];
63850
+ codeReviewTriggers?: ("on_new_commit" | "on_ready_for_review")[] | undefined;
63851
+ enabledCodeReview?: boolean | undefined;
63852
+ }, {
63853
+ repositoryIds: number[];
63854
+ codeReviewTriggers?: ("on_new_commit" | "on_ready_for_review")[] | undefined;
63855
+ enabledCodeReview?: boolean | undefined;
63856
+ }>;
63857
+ path: z.ZodObject<{
63858
+ organization_id_or_slug: z.ZodString;
63859
+ }, "strip", z.ZodTypeAny, {
63860
+ organization_id_or_slug: string;
63861
+ }, {
63862
+ organization_id_or_slug: string;
63863
+ }>;
63864
+ query: z.ZodOptional<z.ZodNever>;
63865
+ }, "strip", z.ZodTypeAny, {
63866
+ body: {
63867
+ repositoryIds: number[];
63868
+ codeReviewTriggers?: ("on_new_commit" | "on_ready_for_review")[] | undefined;
63869
+ enabledCodeReview?: boolean | undefined;
63870
+ };
63871
+ path: {
63872
+ organization_id_or_slug: string;
63873
+ };
63874
+ query?: undefined;
63875
+ }, {
63876
+ body: {
63877
+ repositoryIds: number[];
63878
+ codeReviewTriggers?: ("on_new_commit" | "on_ready_for_review")[] | undefined;
63879
+ enabledCodeReview?: boolean | undefined;
63880
+ };
63881
+ path: {
63882
+ organization_id_or_slug: string;
63883
+ };
63884
+ query?: undefined;
63885
+ }>;
63886
+ export declare const zUpdateOrganizationRepositorySettingsResponse: z.ZodArray<z.ZodObject<{
63887
+ url: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
63888
+ provider: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
63889
+ status: z.ZodOptional<z.ZodString>;
63890
+ integrationId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
63891
+ externalSlug: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
63892
+ externalId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
63893
+ settings: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
63894
+ enabledCodeReview: z.ZodBoolean;
63895
+ codeReviewTriggers: z.ZodArray<z.ZodString, "many">;
63896
+ }, "strip", z.ZodTypeAny, {
63897
+ codeReviewTriggers: string[];
63898
+ enabledCodeReview: boolean;
63899
+ }, {
63900
+ codeReviewTriggers: string[];
63901
+ enabledCodeReview: boolean;
63902
+ }>, z.ZodNull]>>;
63903
+ id: z.ZodString;
63904
+ name: z.ZodString;
63905
+ dateCreated: z.ZodString;
63906
+ }, "strip", z.ZodTypeAny, {
63907
+ name: string;
63908
+ id: string;
63909
+ dateCreated: string;
63910
+ url?: string | null | undefined;
63911
+ integrationId?: string | null | undefined;
63912
+ provider?: Record<string, string> | undefined;
63913
+ status?: string | undefined;
63914
+ externalSlug?: string | null | undefined;
63915
+ externalId?: string | null | undefined;
63916
+ settings?: {
63917
+ codeReviewTriggers: string[];
63918
+ enabledCodeReview: boolean;
63919
+ } | null | undefined;
63920
+ }, {
63921
+ name: string;
63922
+ id: string;
63923
+ dateCreated: string;
63924
+ url?: string | null | undefined;
63925
+ integrationId?: string | null | undefined;
63926
+ provider?: Record<string, string> | undefined;
63927
+ status?: string | undefined;
63928
+ externalSlug?: string | null | undefined;
63929
+ externalId?: string | null | undefined;
63930
+ settings?: {
63931
+ codeReviewTriggers: string[];
63932
+ enabledCodeReview: boolean;
63933
+ } | null | undefined;
63934
+ }>, "many">;
63663
63935
  export declare const zListOrganizationScimV2GroupsData: z.ZodObject<{
63664
63936
  body: z.ZodOptional<z.ZodNever>;
63665
63937
  path: z.ZodObject<{
package/dist/zod.js CHANGED
@@ -8612,6 +8612,16 @@ var zOrganizationCodeMappingResponse = z.object({
8612
8612
  automaticallyGenerated: z.boolean(),
8613
8613
  hasCodeOwner: z.boolean()
8614
8614
  });
8615
+ var zOrganizationCodeOwnersAssociationsResponse = z.record(z.object({
8616
+ associations: z.record(z.string()),
8617
+ errors: z.object({
8618
+ missing_user_emails: z.array(z.string()),
8619
+ missing_external_users: z.array(z.string()),
8620
+ missing_external_teams: z.array(z.string()),
8621
+ teams_without_access: z.array(z.string()),
8622
+ users_without_access: z.array(z.string())
8623
+ })
8624
+ }));
8615
8625
  var zOrganizationConfigIntegrationsEndpointResponse = z.object({
8616
8626
  providers: z.array(z.object({
8617
8627
  key: z.string(),
@@ -9783,6 +9793,36 @@ var zOrganizationRelease = z.object({
9783
9793
  ]).optional()
9784
9794
  })).optional()
9785
9795
  });
9796
+ var zOrganizationRepositorySettingsResponse = z.array(z.object({
9797
+ url: z.union([
9798
+ z.string(),
9799
+ z.null()
9800
+ ]).optional(),
9801
+ provider: z.record(z.string()).optional(),
9802
+ status: z.string().optional(),
9803
+ integrationId: z.union([
9804
+ z.string(),
9805
+ z.null()
9806
+ ]).optional(),
9807
+ externalSlug: z.union([
9808
+ z.string(),
9809
+ z.null()
9810
+ ]).optional(),
9811
+ externalId: z.union([
9812
+ z.string(),
9813
+ z.null()
9814
+ ]).optional(),
9815
+ settings: z.union([
9816
+ z.object({
9817
+ enabledCodeReview: z.boolean(),
9818
+ codeReviewTriggers: z.array(z.string())
9819
+ }),
9820
+ z.null()
9821
+ ]).optional(),
9822
+ id: z.string(),
9823
+ name: z.string(),
9824
+ dateCreated: z.string().datetime()
9825
+ }));
9786
9826
  var zOrganizationSentryAppDetailsResponse = z.array(z.object({
9787
9827
  allowedOrigins: z.array(z.string()),
9788
9828
  avatars: z.array(z.object({
@@ -11683,6 +11723,11 @@ var zReplayDeletionJobCreateData = z.object({
11683
11723
  z.null()
11684
11724
  ])
11685
11725
  });
11726
+ var zRepositorySettings = z.object({
11727
+ repositoryIds: z.array(z.number().int()).max(1000),
11728
+ enabledCodeReview: z.boolean().optional(),
11729
+ codeReviewTriggers: z.array(z.enum(["on_new_commit", "on_ready_for_review"])).optional()
11730
+ });
11686
11731
  var zRetrieveOrganizationAiConversationResponse = z.object({
11687
11732
  conversationId: z.string(),
11688
11733
  title: z.union([
@@ -14536,6 +14581,26 @@ var zCreateOrganizationCodeMappingResponse = z.object({
14536
14581
  automaticallyGenerated: z.boolean(),
14537
14582
  hasCodeOwner: z.boolean()
14538
14583
  });
14584
+ var zListOrganizationCodeownersAssociationsData = z.object({
14585
+ body: z.never().optional(),
14586
+ path: z.object({
14587
+ organization_id_or_slug: z.string()
14588
+ }),
14589
+ query: z.object({
14590
+ project: z.array(z.string()).optional(),
14591
+ provider: z.string().optional()
14592
+ }).optional()
14593
+ });
14594
+ var zListOrganizationCodeownersAssociationsResponse = z.record(z.object({
14595
+ associations: z.record(z.string()),
14596
+ errors: z.object({
14597
+ missing_user_emails: z.array(z.string()),
14598
+ missing_external_users: z.array(z.string()),
14599
+ missing_external_teams: z.array(z.string()),
14600
+ teams_without_access: z.array(z.string()),
14601
+ users_without_access: z.array(z.string())
14602
+ })
14603
+ }));
14539
14604
  var zGetOrganizationConfigIntegrationsData = z.object({
14540
14605
  body: z.never().optional(),
14541
14606
  path: z.object({
@@ -24341,6 +24406,47 @@ var zListOrganizationRepoCommitsResponse = z.array(z.object({
24341
24406
  z.record(z.unknown())
24342
24407
  ]).optional()
24343
24408
  }));
24409
+ var zUpdateOrganizationRepositorySettingsData = z.object({
24410
+ body: z.object({
24411
+ repositoryIds: z.array(z.number().int()).max(1000),
24412
+ enabledCodeReview: z.boolean().optional(),
24413
+ codeReviewTriggers: z.array(z.enum(["on_new_commit", "on_ready_for_review"])).optional()
24414
+ }),
24415
+ path: z.object({
24416
+ organization_id_or_slug: z.string()
24417
+ }),
24418
+ query: z.never().optional()
24419
+ });
24420
+ var zUpdateOrganizationRepositorySettingsResponse = z.array(z.object({
24421
+ url: z.union([
24422
+ z.string(),
24423
+ z.null()
24424
+ ]).optional(),
24425
+ provider: z.record(z.string()).optional(),
24426
+ status: z.string().optional(),
24427
+ integrationId: z.union([
24428
+ z.string(),
24429
+ z.null()
24430
+ ]).optional(),
24431
+ externalSlug: z.union([
24432
+ z.string(),
24433
+ z.null()
24434
+ ]).optional(),
24435
+ externalId: z.union([
24436
+ z.string(),
24437
+ z.null()
24438
+ ]).optional(),
24439
+ settings: z.union([
24440
+ z.object({
24441
+ enabledCodeReview: z.boolean(),
24442
+ codeReviewTriggers: z.array(z.string())
24443
+ }),
24444
+ z.null()
24445
+ ]).optional(),
24446
+ id: z.string(),
24447
+ name: z.string(),
24448
+ dateCreated: z.string().datetime()
24449
+ }));
24344
24450
  var zListOrganizationScimV2GroupsData = z.object({
24345
24451
  body: z.never().optional(),
24346
24452
  path: z.object({
@@ -35408,6 +35514,8 @@ export {
35408
35514
  zUpdateOrganizationScimV2GroupResponse,
35409
35515
  zUpdateOrganizationScimV2GroupData,
35410
35516
  zUpdateOrganizationResponse,
35517
+ zUpdateOrganizationRepositorySettingsResponse,
35518
+ zUpdateOrganizationRepositorySettingsData,
35411
35519
  zUpdateOrganizationReleaseResponse,
35412
35520
  zUpdateOrganizationReleaseFileResponse,
35413
35521
  zUpdateOrganizationReleaseFileData,
@@ -35493,6 +35601,7 @@ export {
35493
35601
  zResolveOrganizationShortIdData,
35494
35602
  zResolveOrganizationEventIdResponse,
35495
35603
  zResolveOrganizationEventIdData,
35604
+ zRepositorySettings,
35496
35605
  zReplayDeletionJobCreateData,
35497
35606
  zReplayDeletionJobCreate,
35498
35607
  zReplayCounts,
@@ -35540,6 +35649,7 @@ export {
35540
35649
  zOrganizationSummary,
35541
35650
  zOrganizationStatsSummaryResponse,
35542
35651
  zOrganizationSentryAppDetailsResponse,
35652
+ zOrganizationRepositorySettingsResponse,
35543
35653
  zOrganizationRelease,
35544
35654
  zOrganizationRelayResponse,
35545
35655
  zOrganizationProjectResponseDict,
@@ -35563,6 +35673,7 @@ export {
35563
35673
  zOrganizationEnvironmentResponse,
35564
35674
  zOrganizationDetailsPut,
35565
35675
  zOrganizationConfigIntegrationsEndpointResponse,
35676
+ zOrganizationCodeOwnersAssociationsResponse,
35566
35677
  zOrganizationCodeMappingResponse,
35567
35678
  zOrgReleaseResponse,
35568
35679
  zNotificationAction,
@@ -35753,6 +35864,8 @@ export {
35753
35864
  zListOrganizationDetectorsData,
35754
35865
  zListOrganizationDashboardsResponse,
35755
35866
  zListOrganizationDashboardsData,
35867
+ zListOrganizationCodeownersAssociationsResponse,
35868
+ zListOrganizationCodeownersAssociationsData,
35756
35869
  zListOrganizationCodeMappingsResponse2,
35757
35870
  zListOrganizationCodeMappingsResponse,
35758
35871
  zListOrganizationCodeMappingsData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/api",
3
- "version": "0.376.0",
3
+ "version": "0.377.0",
4
4
  "description": "Official auto-generated TypeScript client for the Sentry public REST API",
5
5
  "keywords": [
6
6
  "sentry",