@sentry/api 0.374.0 → 0.376.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.
@@ -281,6 +281,19 @@ export declare const vCreateExternalIssueRequest: v.ObjectSchema<{
281
281
  readonly title: v.StringSchema<undefined>;
282
282
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
283
283
  }, undefined>;
284
+ /**
285
+ * Allows parameters to be defined in snake case, but passed as camel case.
286
+ *
287
+ * Errors are output in camel case.
288
+ */
289
+ export declare const vCreateOrganizationCodeMappingRequest: v.ObjectSchema<{
290
+ readonly repository_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
291
+ readonly project_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
292
+ readonly stack_root: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
293
+ readonly source_root: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
294
+ readonly integration_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
295
+ readonly default_branch: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
296
+ }, undefined>;
284
297
  export declare const vCreateOrganizationReleaseResponse: v.ObjectSchema<{
285
298
  readonly ref: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
286
299
  readonly url: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
@@ -2890,6 +2903,28 @@ export declare const vListOrganizationClientKeysResponse: v.ArraySchema<v.Object
2890
2903
  }, undefined>;
2891
2904
  readonly useCase: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2892
2905
  }, undefined>, undefined>;
2906
+ export declare const vListOrganizationCodeMappingsResponse: v.ArraySchema<v.ObjectSchema<{
2907
+ readonly id: v.StringSchema<undefined>;
2908
+ readonly projectId: v.StringSchema<undefined>;
2909
+ readonly projectSlug: v.StringSchema<undefined>;
2910
+ readonly repoId: v.StringSchema<undefined>;
2911
+ readonly repoName: v.StringSchema<undefined>;
2912
+ readonly integrationId: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
2913
+ readonly provider: v.UnionSchema<[v.ObjectSchema<{
2914
+ readonly key: v.StringSchema<undefined>;
2915
+ readonly slug: v.StringSchema<undefined>;
2916
+ readonly name: v.StringSchema<undefined>;
2917
+ readonly canAdd: v.BooleanSchema<undefined>;
2918
+ readonly canDisable: v.BooleanSchema<undefined>;
2919
+ readonly features: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2920
+ readonly aspects: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
2921
+ }, undefined>, v.NullSchema<undefined>], undefined>;
2922
+ readonly stackRoot: v.StringSchema<undefined>;
2923
+ readonly sourceRoot: v.StringSchema<undefined>;
2924
+ readonly defaultBranch: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
2925
+ readonly automaticallyGenerated: v.BooleanSchema<undefined>;
2926
+ readonly hasCodeOwner: v.BooleanSchema<undefined>;
2927
+ }, undefined>, undefined>;
2893
2928
  export declare const vListOrganizationIntegrationResponse: v.ArraySchema<v.ObjectSchema<{
2894
2929
  readonly id: v.StringSchema<undefined>;
2895
2930
  readonly name: v.StringSchema<undefined>;
@@ -4040,6 +4075,28 @@ export declare const vOrgReleaseResponse: v.ObjectSchema<{
4040
4075
  readonly newGroups: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
4041
4076
  }, undefined>, undefined>;
4042
4077
  }, undefined>;
4078
+ export declare const vOrganizationCodeMappingResponse: v.ObjectSchema<{
4079
+ readonly id: v.StringSchema<undefined>;
4080
+ readonly projectId: v.StringSchema<undefined>;
4081
+ readonly projectSlug: v.StringSchema<undefined>;
4082
+ readonly repoId: v.StringSchema<undefined>;
4083
+ readonly repoName: v.StringSchema<undefined>;
4084
+ readonly integrationId: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
4085
+ readonly provider: v.UnionSchema<[v.ObjectSchema<{
4086
+ readonly key: v.StringSchema<undefined>;
4087
+ readonly slug: v.StringSchema<undefined>;
4088
+ readonly name: v.StringSchema<undefined>;
4089
+ readonly canAdd: v.BooleanSchema<undefined>;
4090
+ readonly canDisable: v.BooleanSchema<undefined>;
4091
+ readonly features: v.ArraySchema<v.StringSchema<undefined>, undefined>;
4092
+ readonly aspects: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
4093
+ }, undefined>, v.NullSchema<undefined>], undefined>;
4094
+ readonly stackRoot: v.StringSchema<undefined>;
4095
+ readonly sourceRoot: v.StringSchema<undefined>;
4096
+ readonly defaultBranch: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
4097
+ readonly automaticallyGenerated: v.BooleanSchema<undefined>;
4098
+ readonly hasCodeOwner: v.BooleanSchema<undefined>;
4099
+ }, undefined>;
4043
4100
  export declare const vOrganizationConfigIntegrationsEndpointResponse: v.ObjectSchema<{
4044
4101
  readonly providers: v.ArraySchema<v.ObjectSchema<{
4045
4102
  readonly key: v.StringSchema<undefined>;
@@ -7661,6 +7718,76 @@ export declare const vRetrieveOrganizationAiConversationResponse2: v.ObjectSchem
7661
7718
  }, undefined>, undefined>;
7662
7719
  }, undefined>, v.NullSchema<undefined>], undefined>;
7663
7720
  }, undefined>;
7721
+ export declare const vListOrganizationCodeMappingsData: v.ObjectSchema<{
7722
+ readonly body: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
7723
+ readonly path: v.ObjectSchema<{
7724
+ readonly organization_id_or_slug: v.StringSchema<undefined>;
7725
+ }, undefined>;
7726
+ readonly query: v.OptionalSchema<v.ObjectSchema<{
7727
+ readonly integrationId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
7728
+ readonly project: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
7729
+ readonly cursor: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
7730
+ readonly per_page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
7731
+ }, undefined>, undefined>;
7732
+ }, undefined>;
7733
+ export declare const vListOrganizationCodeMappingsResponse2: v.ArraySchema<v.ObjectSchema<{
7734
+ readonly id: v.StringSchema<undefined>;
7735
+ readonly projectId: v.StringSchema<undefined>;
7736
+ readonly projectSlug: v.StringSchema<undefined>;
7737
+ readonly repoId: v.StringSchema<undefined>;
7738
+ readonly repoName: v.StringSchema<undefined>;
7739
+ readonly integrationId: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
7740
+ readonly provider: v.UnionSchema<[v.ObjectSchema<{
7741
+ readonly key: v.StringSchema<undefined>;
7742
+ readonly slug: v.StringSchema<undefined>;
7743
+ readonly name: v.StringSchema<undefined>;
7744
+ readonly canAdd: v.BooleanSchema<undefined>;
7745
+ readonly canDisable: v.BooleanSchema<undefined>;
7746
+ readonly features: v.ArraySchema<v.StringSchema<undefined>, undefined>;
7747
+ readonly aspects: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
7748
+ }, undefined>, v.NullSchema<undefined>], undefined>;
7749
+ readonly stackRoot: v.StringSchema<undefined>;
7750
+ readonly sourceRoot: v.StringSchema<undefined>;
7751
+ readonly defaultBranch: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
7752
+ readonly automaticallyGenerated: v.BooleanSchema<undefined>;
7753
+ readonly hasCodeOwner: v.BooleanSchema<undefined>;
7754
+ }, undefined>, undefined>;
7755
+ export declare const vCreateOrganizationCodeMappingData: v.ObjectSchema<{
7756
+ readonly body: v.ObjectSchema<{
7757
+ readonly repository_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
7758
+ readonly project_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
7759
+ readonly stack_root: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
7760
+ readonly source_root: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
7761
+ readonly integration_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
7762
+ readonly default_branch: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
7763
+ }, undefined>;
7764
+ readonly path: v.ObjectSchema<{
7765
+ readonly organization_id_or_slug: v.StringSchema<undefined>;
7766
+ }, undefined>;
7767
+ readonly query: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
7768
+ }, undefined>;
7769
+ export declare const vCreateOrganizationCodeMappingResponse: v.ObjectSchema<{
7770
+ readonly id: v.StringSchema<undefined>;
7771
+ readonly projectId: v.StringSchema<undefined>;
7772
+ readonly projectSlug: v.StringSchema<undefined>;
7773
+ readonly repoId: v.StringSchema<undefined>;
7774
+ readonly repoName: v.StringSchema<undefined>;
7775
+ readonly integrationId: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
7776
+ readonly provider: v.UnionSchema<[v.ObjectSchema<{
7777
+ readonly key: v.StringSchema<undefined>;
7778
+ readonly slug: v.StringSchema<undefined>;
7779
+ readonly name: v.StringSchema<undefined>;
7780
+ readonly canAdd: v.BooleanSchema<undefined>;
7781
+ readonly canDisable: v.BooleanSchema<undefined>;
7782
+ readonly features: v.ArraySchema<v.StringSchema<undefined>, undefined>;
7783
+ readonly aspects: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
7784
+ }, undefined>, v.NullSchema<undefined>], undefined>;
7785
+ readonly stackRoot: v.StringSchema<undefined>;
7786
+ readonly sourceRoot: v.StringSchema<undefined>;
7787
+ readonly defaultBranch: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
7788
+ readonly automaticallyGenerated: v.BooleanSchema<undefined>;
7789
+ readonly hasCodeOwner: v.BooleanSchema<undefined>;
7790
+ }, undefined>;
7664
7791
  export declare const vGetOrganizationConfigIntegrationsData: v.ObjectSchema<{
7665
7792
  readonly body: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
7666
7793
  readonly path: v.ObjectSchema<{
package/dist/valibot.js CHANGED
@@ -890,6 +890,14 @@ var vCreateExternalIssueRequest = v.object({
890
890
  title: v.string(),
891
891
  description: v.optional(v.string())
892
892
  });
893
+ var vCreateOrganizationCodeMappingRequest = v.object({
894
+ repository_id: v.pipe(v.number(), v.integer()),
895
+ project_id: v.pipe(v.number(), v.integer()),
896
+ stack_root: v.pipe(v.string(), v.regex(/^[^\s'\"]+$/)),
897
+ source_root: v.pipe(v.string(), v.regex(/^[^\s'\"]+$/)),
898
+ integration_id: v.pipe(v.number(), v.integer()),
899
+ default_branch: v.optional(v.pipe(v.string(), v.regex(/^(^(?![\/]))([\w\.\/-]+)(?<![\/])$/)))
900
+ });
893
901
  var vCreateOrganizationReleaseResponse = v.object({
894
902
  ref: v.optional(v.union([v.string(), v.null()])),
895
903
  url: v.optional(v.union([v.string(), v.null()])),
@@ -3721,6 +3729,28 @@ var vListOrganizationClientKeysResponse = v.array(v.object({
3721
3729
  }),
3722
3730
  useCase: v.optional(v.string())
3723
3731
  }));
3732
+ var vListOrganizationCodeMappingsResponse = v.array(v.object({
3733
+ id: v.string(),
3734
+ projectId: v.string(),
3735
+ projectSlug: v.string(),
3736
+ repoId: v.string(),
3737
+ repoName: v.string(),
3738
+ integrationId: v.union([v.string(), v.null()]),
3739
+ provider: v.union([v.object({
3740
+ key: v.string(),
3741
+ slug: v.string(),
3742
+ name: v.string(),
3743
+ canAdd: v.boolean(),
3744
+ canDisable: v.boolean(),
3745
+ features: v.array(v.string()),
3746
+ aspects: v.record(v.string(), v.unknown())
3747
+ }), v.null()]),
3748
+ stackRoot: v.string(),
3749
+ sourceRoot: v.string(),
3750
+ defaultBranch: v.union([v.string(), v.null()]),
3751
+ automaticallyGenerated: v.boolean(),
3752
+ hasCodeOwner: v.boolean()
3753
+ }));
3724
3754
  var vListOrganizationIntegrationResponse = v.array(v.object({
3725
3755
  id: v.string(),
3726
3756
  name: v.string(),
@@ -5497,6 +5527,28 @@ var vOrgReleaseResponse = v.object({
5497
5527
  newGroups: v.pipe(v.number(), v.integer())
5498
5528
  }))
5499
5529
  });
5530
+ var vOrganizationCodeMappingResponse = v.object({
5531
+ id: v.string(),
5532
+ projectId: v.string(),
5533
+ projectSlug: v.string(),
5534
+ repoId: v.string(),
5535
+ repoName: v.string(),
5536
+ integrationId: v.union([v.string(), v.null()]),
5537
+ provider: v.union([v.object({
5538
+ key: v.string(),
5539
+ slug: v.string(),
5540
+ name: v.string(),
5541
+ canAdd: v.boolean(),
5542
+ canDisable: v.boolean(),
5543
+ features: v.array(v.string()),
5544
+ aspects: v.record(v.string(), v.unknown())
5545
+ }), v.null()]),
5546
+ stackRoot: v.string(),
5547
+ sourceRoot: v.string(),
5548
+ defaultBranch: v.union([v.string(), v.null()]),
5549
+ automaticallyGenerated: v.boolean(),
5550
+ hasCodeOwner: v.boolean()
5551
+ });
5500
5552
  var vOrganizationConfigIntegrationsEndpointResponse = v.object({
5501
5553
  providers: v.array(v.object({
5502
5554
  key: v.string(),
@@ -9444,6 +9496,76 @@ var vRetrieveOrganizationAiConversationResponse2 = v.object({
9444
9496
  }))
9445
9497
  }), v.null()])
9446
9498
  });
9499
+ var vListOrganizationCodeMappingsData = v.object({
9500
+ body: v.optional(v.never()),
9501
+ path: v.object({
9502
+ organization_id_or_slug: v.string()
9503
+ }),
9504
+ query: v.optional(v.object({
9505
+ integrationId: v.optional(v.string()),
9506
+ project: v.optional(v.array(v.string())),
9507
+ cursor: v.optional(v.pipe(v.string(), v.minLength(1))),
9508
+ per_page: v.optional(v.pipe(v.number(), v.integer()))
9509
+ }))
9510
+ });
9511
+ var vListOrganizationCodeMappingsResponse2 = v.array(v.object({
9512
+ id: v.string(),
9513
+ projectId: v.string(),
9514
+ projectSlug: v.string(),
9515
+ repoId: v.string(),
9516
+ repoName: v.string(),
9517
+ integrationId: v.union([v.string(), v.null()]),
9518
+ provider: v.union([v.object({
9519
+ key: v.string(),
9520
+ slug: v.string(),
9521
+ name: v.string(),
9522
+ canAdd: v.boolean(),
9523
+ canDisable: v.boolean(),
9524
+ features: v.array(v.string()),
9525
+ aspects: v.record(v.string(), v.unknown())
9526
+ }), v.null()]),
9527
+ stackRoot: v.string(),
9528
+ sourceRoot: v.string(),
9529
+ defaultBranch: v.union([v.string(), v.null()]),
9530
+ automaticallyGenerated: v.boolean(),
9531
+ hasCodeOwner: v.boolean()
9532
+ }));
9533
+ var vCreateOrganizationCodeMappingData = v.object({
9534
+ body: v.object({
9535
+ repository_id: v.pipe(v.number(), v.integer()),
9536
+ project_id: v.pipe(v.number(), v.integer()),
9537
+ stack_root: v.pipe(v.string(), v.regex(/^[^\s'\"]+$/)),
9538
+ source_root: v.pipe(v.string(), v.regex(/^[^\s'\"]+$/)),
9539
+ integration_id: v.pipe(v.number(), v.integer()),
9540
+ default_branch: v.optional(v.pipe(v.string(), v.regex(/^(^(?![\/]))([\w\.\/-]+)(?<![\/])$/)))
9541
+ }),
9542
+ path: v.object({
9543
+ organization_id_or_slug: v.string()
9544
+ }),
9545
+ query: v.optional(v.never())
9546
+ });
9547
+ var vCreateOrganizationCodeMappingResponse = v.object({
9548
+ id: v.string(),
9549
+ projectId: v.string(),
9550
+ projectSlug: v.string(),
9551
+ repoId: v.string(),
9552
+ repoName: v.string(),
9553
+ integrationId: v.union([v.string(), v.null()]),
9554
+ provider: v.union([v.object({
9555
+ key: v.string(),
9556
+ slug: v.string(),
9557
+ name: v.string(),
9558
+ canAdd: v.boolean(),
9559
+ canDisable: v.boolean(),
9560
+ features: v.array(v.string()),
9561
+ aspects: v.record(v.string(), v.unknown())
9562
+ }), v.null()]),
9563
+ stackRoot: v.string(),
9564
+ sourceRoot: v.string(),
9565
+ defaultBranch: v.union([v.string(), v.null()]),
9566
+ automaticallyGenerated: v.boolean(),
9567
+ hasCodeOwner: v.boolean()
9568
+ });
9447
9569
  var vGetOrganizationConfigIntegrationsData = v.object({
9448
9570
  body: v.optional(v.never()),
9449
9571
  path: v.object({
@@ -24455,6 +24577,7 @@ export {
24455
24577
  vOrganizationEnvironmentResponse,
24456
24578
  vOrganizationDetailsPut,
24457
24579
  vOrganizationConfigIntegrationsEndpointResponse,
24580
+ vOrganizationCodeMappingResponse,
24458
24581
  vOrgReleaseResponse,
24459
24582
  vNotificationAction,
24460
24583
  vMonitorValidator,
@@ -24644,6 +24767,9 @@ export {
24644
24767
  vListOrganizationDetectorsData,
24645
24768
  vListOrganizationDashboardsResponse,
24646
24769
  vListOrganizationDashboardsData,
24770
+ vListOrganizationCodeMappingsResponse2,
24771
+ vListOrganizationCodeMappingsResponse,
24772
+ vListOrganizationCodeMappingsData,
24647
24773
  vListOrganizationClientKeysResponse,
24648
24774
  vListOrganizationAiConversationsResponse2,
24649
24775
  vListOrganizationAiConversationsResponse,
@@ -24958,6 +25084,9 @@ export {
24958
25084
  vCreateOrganizationDiscoverSavedQueryData,
24959
25085
  vCreateOrganizationDashboardResponse,
24960
25086
  vCreateOrganizationDashboardData,
25087
+ vCreateOrganizationCodeMappingResponse,
25088
+ vCreateOrganizationCodeMappingRequest,
25089
+ vCreateOrganizationCodeMappingData,
24961
25090
  vCreateExternalIssueRequest,
24962
25091
  vConfigValidator,
24963
25092
  vCommitSerializerResponse,