@sentry/api 0.326.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/error-results.gen.d.ts +11 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +48 -0
- package/dist/sdk.gen.d.ts +31 -1
- package/dist/types.gen.d.ts +573 -0
- package/dist/valibot.gen.d.ts +385 -0
- package/dist/valibot.js +396 -0
- package/dist/zod.gen.d.ts +1963 -6
- package/dist/zod.js +486 -0
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -1830,6 +1830,7 @@ export type DashboardDetailsModel = {
|
|
|
1830
1830
|
displayType: string;
|
|
1831
1831
|
thresholds: {
|
|
1832
1832
|
preferredPolarity?: string;
|
|
1833
|
+
timeWindow?: string;
|
|
1833
1834
|
max_values: {
|
|
1834
1835
|
[key: string]: number;
|
|
1835
1836
|
};
|
|
@@ -8793,6 +8794,140 @@ export type ProjectAdmin = {
|
|
|
8793
8794
|
*/
|
|
8794
8795
|
debugFilesRole?: 'member' | 'admin' | 'manager' | 'owner' | null;
|
|
8795
8796
|
};
|
|
8797
|
+
export type ProjectCodeOwners = {
|
|
8798
|
+
codeMapping?: {
|
|
8799
|
+
id: string;
|
|
8800
|
+
projectId: string;
|
|
8801
|
+
projectSlug: string;
|
|
8802
|
+
repoId: string;
|
|
8803
|
+
repoName: string;
|
|
8804
|
+
integrationId: string | null;
|
|
8805
|
+
provider: {
|
|
8806
|
+
key: string;
|
|
8807
|
+
slug: string;
|
|
8808
|
+
name: string;
|
|
8809
|
+
canAdd: boolean;
|
|
8810
|
+
canDisable: boolean;
|
|
8811
|
+
features: Array<string>;
|
|
8812
|
+
aspects: {
|
|
8813
|
+
[key: string]: unknown;
|
|
8814
|
+
};
|
|
8815
|
+
} | null;
|
|
8816
|
+
stackRoot: string;
|
|
8817
|
+
sourceRoot: string;
|
|
8818
|
+
defaultBranch: string | null;
|
|
8819
|
+
automaticallyGenerated: boolean;
|
|
8820
|
+
};
|
|
8821
|
+
ownershipSyntax?: string;
|
|
8822
|
+
errors?: {
|
|
8823
|
+
missing_user_emails: Array<string>;
|
|
8824
|
+
missing_external_users: Array<string>;
|
|
8825
|
+
missing_external_teams: Array<string>;
|
|
8826
|
+
teams_without_access: Array<string>;
|
|
8827
|
+
users_without_access: Array<string>;
|
|
8828
|
+
};
|
|
8829
|
+
schema?: {
|
|
8830
|
+
$version: number;
|
|
8831
|
+
rules: Array<{
|
|
8832
|
+
matcher: {
|
|
8833
|
+
type: string;
|
|
8834
|
+
pattern: string;
|
|
8835
|
+
};
|
|
8836
|
+
owners: Array<{
|
|
8837
|
+
type: string;
|
|
8838
|
+
name: string;
|
|
8839
|
+
id?: string;
|
|
8840
|
+
}>;
|
|
8841
|
+
}>;
|
|
8842
|
+
} | {
|
|
8843
|
+
[key: string]: unknown;
|
|
8844
|
+
};
|
|
8845
|
+
codeOwnersUrl?: string;
|
|
8846
|
+
id: string;
|
|
8847
|
+
raw: string;
|
|
8848
|
+
dateCreated: string;
|
|
8849
|
+
dateUpdated: string;
|
|
8850
|
+
dateSynced: string | null;
|
|
8851
|
+
codeMappingId: string;
|
|
8852
|
+
provider: string;
|
|
8853
|
+
};
|
|
8854
|
+
export type ProjectCodeOwnersCreateRequest = {
|
|
8855
|
+
/**
|
|
8856
|
+
* The raw contents of the CODEOWNERS file.
|
|
8857
|
+
*/
|
|
8858
|
+
raw: string;
|
|
8859
|
+
/**
|
|
8860
|
+
* The ID of the code mapping used to translate repository paths to stack trace paths.
|
|
8861
|
+
*/
|
|
8862
|
+
codeMappingId: string;
|
|
8863
|
+
};
|
|
8864
|
+
export type ProjectCodeOwnersList = Array<{
|
|
8865
|
+
codeMapping?: {
|
|
8866
|
+
id: string;
|
|
8867
|
+
projectId: string;
|
|
8868
|
+
projectSlug: string;
|
|
8869
|
+
repoId: string;
|
|
8870
|
+
repoName: string;
|
|
8871
|
+
integrationId: string | null;
|
|
8872
|
+
provider: {
|
|
8873
|
+
key: string;
|
|
8874
|
+
slug: string;
|
|
8875
|
+
name: string;
|
|
8876
|
+
canAdd: boolean;
|
|
8877
|
+
canDisable: boolean;
|
|
8878
|
+
features: Array<string>;
|
|
8879
|
+
aspects: {
|
|
8880
|
+
[key: string]: unknown;
|
|
8881
|
+
};
|
|
8882
|
+
} | null;
|
|
8883
|
+
stackRoot: string;
|
|
8884
|
+
sourceRoot: string;
|
|
8885
|
+
defaultBranch: string | null;
|
|
8886
|
+
automaticallyGenerated: boolean;
|
|
8887
|
+
};
|
|
8888
|
+
ownershipSyntax?: string;
|
|
8889
|
+
errors?: {
|
|
8890
|
+
missing_user_emails: Array<string>;
|
|
8891
|
+
missing_external_users: Array<string>;
|
|
8892
|
+
missing_external_teams: Array<string>;
|
|
8893
|
+
teams_without_access: Array<string>;
|
|
8894
|
+
users_without_access: Array<string>;
|
|
8895
|
+
};
|
|
8896
|
+
schema?: {
|
|
8897
|
+
$version: number;
|
|
8898
|
+
rules: Array<{
|
|
8899
|
+
matcher: {
|
|
8900
|
+
type: string;
|
|
8901
|
+
pattern: string;
|
|
8902
|
+
};
|
|
8903
|
+
owners: Array<{
|
|
8904
|
+
type: string;
|
|
8905
|
+
name: string;
|
|
8906
|
+
id?: string;
|
|
8907
|
+
}>;
|
|
8908
|
+
}>;
|
|
8909
|
+
} | {
|
|
8910
|
+
[key: string]: unknown;
|
|
8911
|
+
};
|
|
8912
|
+
codeOwnersUrl?: string;
|
|
8913
|
+
id: string;
|
|
8914
|
+
raw: string;
|
|
8915
|
+
dateCreated: string;
|
|
8916
|
+
dateUpdated: string;
|
|
8917
|
+
dateSynced: string | null;
|
|
8918
|
+
codeMappingId: string;
|
|
8919
|
+
provider: string;
|
|
8920
|
+
}>;
|
|
8921
|
+
export type ProjectCodeOwnersUpdateRequest = {
|
|
8922
|
+
/**
|
|
8923
|
+
* The raw contents of the CODEOWNERS file.
|
|
8924
|
+
*/
|
|
8925
|
+
raw?: string;
|
|
8926
|
+
/**
|
|
8927
|
+
* The ID of the code mapping used to translate repository paths to stack trace paths.
|
|
8928
|
+
*/
|
|
8929
|
+
codeMappingId?: string;
|
|
8930
|
+
};
|
|
8796
8931
|
export type ProjectEventDetailsResponse = {
|
|
8797
8932
|
id: string;
|
|
8798
8933
|
groupID: string | null;
|
|
@@ -13070,6 +13205,7 @@ export type CreateOrganizationDashboardResponses = {
|
|
|
13070
13205
|
displayType: string;
|
|
13071
13206
|
thresholds: {
|
|
13072
13207
|
preferredPolarity?: string;
|
|
13208
|
+
timeWindow?: string;
|
|
13073
13209
|
max_values: {
|
|
13074
13210
|
[key: string]: number;
|
|
13075
13211
|
};
|
|
@@ -13257,6 +13393,7 @@ export type GetOrganizationDashboardResponses = {
|
|
|
13257
13393
|
displayType: string;
|
|
13258
13394
|
thresholds: {
|
|
13259
13395
|
preferredPolarity?: string;
|
|
13396
|
+
timeWindow?: string;
|
|
13260
13397
|
max_values: {
|
|
13261
13398
|
[key: string]: number;
|
|
13262
13399
|
};
|
|
@@ -13580,6 +13717,7 @@ export type UpdateOrganizationDashboardResponses = {
|
|
|
13580
13717
|
displayType: string;
|
|
13581
13718
|
thresholds: {
|
|
13582
13719
|
preferredPolarity?: string;
|
|
13720
|
+
timeWindow?: string;
|
|
13583
13721
|
max_values: {
|
|
13584
13722
|
[key: string]: number;
|
|
13585
13723
|
};
|
|
@@ -28704,6 +28842,441 @@ export type UpdateProjectResponses = {
|
|
|
28704
28842
|
};
|
|
28705
28843
|
};
|
|
28706
28844
|
export type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses];
|
|
28845
|
+
export type ListProjectCodeOwnersData = {
|
|
28846
|
+
body?: never;
|
|
28847
|
+
path: {
|
|
28848
|
+
/**
|
|
28849
|
+
* The ID or slug of the organization the resource belongs to.
|
|
28850
|
+
*/
|
|
28851
|
+
organization_id_or_slug: string;
|
|
28852
|
+
/**
|
|
28853
|
+
* The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
|
|
28854
|
+
*/
|
|
28855
|
+
project_id_or_slug: string;
|
|
28856
|
+
};
|
|
28857
|
+
query?: {
|
|
28858
|
+
/**
|
|
28859
|
+
* Optional fields to expand.
|
|
28860
|
+
*/
|
|
28861
|
+
expand?: Array<'codeMapping' | 'ownershipSyntax'>;
|
|
28862
|
+
};
|
|
28863
|
+
url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/';
|
|
28864
|
+
};
|
|
28865
|
+
export type ListProjectCodeOwnersErrors = {
|
|
28866
|
+
/**
|
|
28867
|
+
* Unauthorized
|
|
28868
|
+
*/
|
|
28869
|
+
401: unknown;
|
|
28870
|
+
/**
|
|
28871
|
+
* Forbidden
|
|
28872
|
+
*/
|
|
28873
|
+
403: unknown;
|
|
28874
|
+
/**
|
|
28875
|
+
* Not Found
|
|
28876
|
+
*/
|
|
28877
|
+
404: unknown;
|
|
28878
|
+
};
|
|
28879
|
+
export type ListProjectCodeOwnersResponses = {
|
|
28880
|
+
200: Array<{
|
|
28881
|
+
codeMapping?: {
|
|
28882
|
+
id: string;
|
|
28883
|
+
projectId: string;
|
|
28884
|
+
projectSlug: string;
|
|
28885
|
+
repoId: string;
|
|
28886
|
+
repoName: string;
|
|
28887
|
+
integrationId: string | null;
|
|
28888
|
+
provider: {
|
|
28889
|
+
key: string;
|
|
28890
|
+
slug: string;
|
|
28891
|
+
name: string;
|
|
28892
|
+
canAdd: boolean;
|
|
28893
|
+
canDisable: boolean;
|
|
28894
|
+
features: Array<string>;
|
|
28895
|
+
aspects: {
|
|
28896
|
+
[key: string]: unknown;
|
|
28897
|
+
};
|
|
28898
|
+
} | null;
|
|
28899
|
+
stackRoot: string;
|
|
28900
|
+
sourceRoot: string;
|
|
28901
|
+
defaultBranch: string | null;
|
|
28902
|
+
automaticallyGenerated: boolean;
|
|
28903
|
+
};
|
|
28904
|
+
ownershipSyntax?: string;
|
|
28905
|
+
errors?: {
|
|
28906
|
+
missing_user_emails: Array<string>;
|
|
28907
|
+
missing_external_users: Array<string>;
|
|
28908
|
+
missing_external_teams: Array<string>;
|
|
28909
|
+
teams_without_access: Array<string>;
|
|
28910
|
+
users_without_access: Array<string>;
|
|
28911
|
+
};
|
|
28912
|
+
schema?: {
|
|
28913
|
+
$version: number;
|
|
28914
|
+
rules: Array<{
|
|
28915
|
+
matcher: {
|
|
28916
|
+
type: string;
|
|
28917
|
+
pattern: string;
|
|
28918
|
+
};
|
|
28919
|
+
owners: Array<{
|
|
28920
|
+
type: string;
|
|
28921
|
+
name: string;
|
|
28922
|
+
id?: string;
|
|
28923
|
+
}>;
|
|
28924
|
+
}>;
|
|
28925
|
+
} | {
|
|
28926
|
+
[key: string]: unknown;
|
|
28927
|
+
};
|
|
28928
|
+
codeOwnersUrl?: string;
|
|
28929
|
+
id: string;
|
|
28930
|
+
raw: string;
|
|
28931
|
+
dateCreated: string;
|
|
28932
|
+
dateUpdated: string;
|
|
28933
|
+
dateSynced: string | null;
|
|
28934
|
+
codeMappingId: string;
|
|
28935
|
+
provider: string;
|
|
28936
|
+
}>;
|
|
28937
|
+
};
|
|
28938
|
+
export type ListProjectCodeOwnersResponse = ListProjectCodeOwnersResponses[keyof ListProjectCodeOwnersResponses];
|
|
28939
|
+
export type CreateProjectCodeOwnersData = {
|
|
28940
|
+
body: {
|
|
28941
|
+
/**
|
|
28942
|
+
* The raw contents of the CODEOWNERS file.
|
|
28943
|
+
*/
|
|
28944
|
+
raw: string;
|
|
28945
|
+
/**
|
|
28946
|
+
* The ID of the code mapping used to translate repository paths to stack trace paths.
|
|
28947
|
+
*/
|
|
28948
|
+
codeMappingId: string;
|
|
28949
|
+
};
|
|
28950
|
+
path: {
|
|
28951
|
+
/**
|
|
28952
|
+
* The ID or slug of the organization the resource belongs to.
|
|
28953
|
+
*/
|
|
28954
|
+
organization_id_or_slug: string;
|
|
28955
|
+
/**
|
|
28956
|
+
* The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
|
|
28957
|
+
*/
|
|
28958
|
+
project_id_or_slug: string;
|
|
28959
|
+
};
|
|
28960
|
+
query?: never;
|
|
28961
|
+
url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/';
|
|
28962
|
+
};
|
|
28963
|
+
export type CreateProjectCodeOwnersErrors = {
|
|
28964
|
+
/**
|
|
28965
|
+
* Bad Request
|
|
28966
|
+
*/
|
|
28967
|
+
400: unknown;
|
|
28968
|
+
/**
|
|
28969
|
+
* Unauthorized
|
|
28970
|
+
*/
|
|
28971
|
+
401: unknown;
|
|
28972
|
+
/**
|
|
28973
|
+
* Forbidden
|
|
28974
|
+
*/
|
|
28975
|
+
403: unknown;
|
|
28976
|
+
/**
|
|
28977
|
+
* Not Found
|
|
28978
|
+
*/
|
|
28979
|
+
404: unknown;
|
|
28980
|
+
};
|
|
28981
|
+
export type CreateProjectCodeOwnersResponses = {
|
|
28982
|
+
201: {
|
|
28983
|
+
codeMapping?: {
|
|
28984
|
+
id: string;
|
|
28985
|
+
projectId: string;
|
|
28986
|
+
projectSlug: string;
|
|
28987
|
+
repoId: string;
|
|
28988
|
+
repoName: string;
|
|
28989
|
+
integrationId: string | null;
|
|
28990
|
+
provider: {
|
|
28991
|
+
key: string;
|
|
28992
|
+
slug: string;
|
|
28993
|
+
name: string;
|
|
28994
|
+
canAdd: boolean;
|
|
28995
|
+
canDisable: boolean;
|
|
28996
|
+
features: Array<string>;
|
|
28997
|
+
aspects: {
|
|
28998
|
+
[key: string]: unknown;
|
|
28999
|
+
};
|
|
29000
|
+
} | null;
|
|
29001
|
+
stackRoot: string;
|
|
29002
|
+
sourceRoot: string;
|
|
29003
|
+
defaultBranch: string | null;
|
|
29004
|
+
automaticallyGenerated: boolean;
|
|
29005
|
+
};
|
|
29006
|
+
ownershipSyntax?: string;
|
|
29007
|
+
errors?: {
|
|
29008
|
+
missing_user_emails: Array<string>;
|
|
29009
|
+
missing_external_users: Array<string>;
|
|
29010
|
+
missing_external_teams: Array<string>;
|
|
29011
|
+
teams_without_access: Array<string>;
|
|
29012
|
+
users_without_access: Array<string>;
|
|
29013
|
+
};
|
|
29014
|
+
schema?: {
|
|
29015
|
+
$version: number;
|
|
29016
|
+
rules: Array<{
|
|
29017
|
+
matcher: {
|
|
29018
|
+
type: string;
|
|
29019
|
+
pattern: string;
|
|
29020
|
+
};
|
|
29021
|
+
owners: Array<{
|
|
29022
|
+
type: string;
|
|
29023
|
+
name: string;
|
|
29024
|
+
id?: string;
|
|
29025
|
+
}>;
|
|
29026
|
+
}>;
|
|
29027
|
+
} | {
|
|
29028
|
+
[key: string]: unknown;
|
|
29029
|
+
};
|
|
29030
|
+
codeOwnersUrl?: string;
|
|
29031
|
+
id: string;
|
|
29032
|
+
raw: string;
|
|
29033
|
+
dateCreated: string;
|
|
29034
|
+
dateUpdated: string;
|
|
29035
|
+
dateSynced: string | null;
|
|
29036
|
+
codeMappingId: string;
|
|
29037
|
+
provider: string;
|
|
29038
|
+
};
|
|
29039
|
+
};
|
|
29040
|
+
export type CreateProjectCodeOwnersResponse = CreateProjectCodeOwnersResponses[keyof CreateProjectCodeOwnersResponses];
|
|
29041
|
+
export type DeleteProjectCodeOwnersData = {
|
|
29042
|
+
body?: never;
|
|
29043
|
+
path: {
|
|
29044
|
+
/**
|
|
29045
|
+
* The ID or slug of the organization the resource belongs to.
|
|
29046
|
+
*/
|
|
29047
|
+
organization_id_or_slug: string;
|
|
29048
|
+
/**
|
|
29049
|
+
* The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
|
|
29050
|
+
*/
|
|
29051
|
+
project_id_or_slug: string;
|
|
29052
|
+
/**
|
|
29053
|
+
* The ID of the CODEOWNERS configuration.
|
|
29054
|
+
*/
|
|
29055
|
+
codeowners_id: string;
|
|
29056
|
+
};
|
|
29057
|
+
query?: never;
|
|
29058
|
+
url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/{codeowners_id}/';
|
|
29059
|
+
};
|
|
29060
|
+
export type DeleteProjectCodeOwnersErrors = {
|
|
29061
|
+
/**
|
|
29062
|
+
* Unauthorized
|
|
29063
|
+
*/
|
|
29064
|
+
401: unknown;
|
|
29065
|
+
/**
|
|
29066
|
+
* Forbidden
|
|
29067
|
+
*/
|
|
29068
|
+
403: unknown;
|
|
29069
|
+
/**
|
|
29070
|
+
* Not Found
|
|
29071
|
+
*/
|
|
29072
|
+
404: unknown;
|
|
29073
|
+
};
|
|
29074
|
+
export type DeleteProjectCodeOwnersResponses = {
|
|
29075
|
+
/**
|
|
29076
|
+
* No Content
|
|
29077
|
+
*/
|
|
29078
|
+
204: void;
|
|
29079
|
+
};
|
|
29080
|
+
export type DeleteProjectCodeOwnersResponse = DeleteProjectCodeOwnersResponses[keyof DeleteProjectCodeOwnersResponses];
|
|
29081
|
+
export type RetrieveProjectCodeOwnersData = {
|
|
29082
|
+
body?: never;
|
|
29083
|
+
path: {
|
|
29084
|
+
/**
|
|
29085
|
+
* The ID or slug of the organization the resource belongs to.
|
|
29086
|
+
*/
|
|
29087
|
+
organization_id_or_slug: string;
|
|
29088
|
+
/**
|
|
29089
|
+
* The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
|
|
29090
|
+
*/
|
|
29091
|
+
project_id_or_slug: string;
|
|
29092
|
+
/**
|
|
29093
|
+
* The ID of the CODEOWNERS configuration.
|
|
29094
|
+
*/
|
|
29095
|
+
codeowners_id: string;
|
|
29096
|
+
};
|
|
29097
|
+
query?: never;
|
|
29098
|
+
url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/{codeowners_id}/';
|
|
29099
|
+
};
|
|
29100
|
+
export type RetrieveProjectCodeOwnersErrors = {
|
|
29101
|
+
/**
|
|
29102
|
+
* Unauthorized
|
|
29103
|
+
*/
|
|
29104
|
+
401: unknown;
|
|
29105
|
+
/**
|
|
29106
|
+
* Forbidden
|
|
29107
|
+
*/
|
|
29108
|
+
403: unknown;
|
|
29109
|
+
/**
|
|
29110
|
+
* Not Found
|
|
29111
|
+
*/
|
|
29112
|
+
404: unknown;
|
|
29113
|
+
};
|
|
29114
|
+
export type RetrieveProjectCodeOwnersResponses = {
|
|
29115
|
+
200: {
|
|
29116
|
+
codeMapping?: {
|
|
29117
|
+
id: string;
|
|
29118
|
+
projectId: string;
|
|
29119
|
+
projectSlug: string;
|
|
29120
|
+
repoId: string;
|
|
29121
|
+
repoName: string;
|
|
29122
|
+
integrationId: string | null;
|
|
29123
|
+
provider: {
|
|
29124
|
+
key: string;
|
|
29125
|
+
slug: string;
|
|
29126
|
+
name: string;
|
|
29127
|
+
canAdd: boolean;
|
|
29128
|
+
canDisable: boolean;
|
|
29129
|
+
features: Array<string>;
|
|
29130
|
+
aspects: {
|
|
29131
|
+
[key: string]: unknown;
|
|
29132
|
+
};
|
|
29133
|
+
} | null;
|
|
29134
|
+
stackRoot: string;
|
|
29135
|
+
sourceRoot: string;
|
|
29136
|
+
defaultBranch: string | null;
|
|
29137
|
+
automaticallyGenerated: boolean;
|
|
29138
|
+
};
|
|
29139
|
+
ownershipSyntax?: string;
|
|
29140
|
+
errors?: {
|
|
29141
|
+
missing_user_emails: Array<string>;
|
|
29142
|
+
missing_external_users: Array<string>;
|
|
29143
|
+
missing_external_teams: Array<string>;
|
|
29144
|
+
teams_without_access: Array<string>;
|
|
29145
|
+
users_without_access: Array<string>;
|
|
29146
|
+
};
|
|
29147
|
+
schema?: {
|
|
29148
|
+
$version: number;
|
|
29149
|
+
rules: Array<{
|
|
29150
|
+
matcher: {
|
|
29151
|
+
type: string;
|
|
29152
|
+
pattern: string;
|
|
29153
|
+
};
|
|
29154
|
+
owners: Array<{
|
|
29155
|
+
type: string;
|
|
29156
|
+
name: string;
|
|
29157
|
+
id?: string;
|
|
29158
|
+
}>;
|
|
29159
|
+
}>;
|
|
29160
|
+
} | {
|
|
29161
|
+
[key: string]: unknown;
|
|
29162
|
+
};
|
|
29163
|
+
codeOwnersUrl?: string;
|
|
29164
|
+
id: string;
|
|
29165
|
+
raw: string;
|
|
29166
|
+
dateCreated: string;
|
|
29167
|
+
dateUpdated: string;
|
|
29168
|
+
dateSynced: string | null;
|
|
29169
|
+
codeMappingId: string;
|
|
29170
|
+
provider: string;
|
|
29171
|
+
};
|
|
29172
|
+
};
|
|
29173
|
+
export type RetrieveProjectCodeOwnersResponse = RetrieveProjectCodeOwnersResponses[keyof RetrieveProjectCodeOwnersResponses];
|
|
29174
|
+
export type UpdateProjectCodeOwnersData = {
|
|
29175
|
+
body?: {
|
|
29176
|
+
/**
|
|
29177
|
+
* The raw contents of the CODEOWNERS file.
|
|
29178
|
+
*/
|
|
29179
|
+
raw?: string;
|
|
29180
|
+
/**
|
|
29181
|
+
* The ID of the code mapping used to translate repository paths to stack trace paths.
|
|
29182
|
+
*/
|
|
29183
|
+
codeMappingId?: string;
|
|
29184
|
+
};
|
|
29185
|
+
path: {
|
|
29186
|
+
/**
|
|
29187
|
+
* The ID or slug of the organization the resource belongs to.
|
|
29188
|
+
*/
|
|
29189
|
+
organization_id_or_slug: string;
|
|
29190
|
+
/**
|
|
29191
|
+
* The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
|
|
29192
|
+
*/
|
|
29193
|
+
project_id_or_slug: string;
|
|
29194
|
+
/**
|
|
29195
|
+
* The ID of the CODEOWNERS configuration.
|
|
29196
|
+
*/
|
|
29197
|
+
codeowners_id: string;
|
|
29198
|
+
};
|
|
29199
|
+
query?: never;
|
|
29200
|
+
url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/{codeowners_id}/';
|
|
29201
|
+
};
|
|
29202
|
+
export type UpdateProjectCodeOwnersErrors = {
|
|
29203
|
+
/**
|
|
29204
|
+
* Bad Request
|
|
29205
|
+
*/
|
|
29206
|
+
400: unknown;
|
|
29207
|
+
/**
|
|
29208
|
+
* Unauthorized
|
|
29209
|
+
*/
|
|
29210
|
+
401: unknown;
|
|
29211
|
+
/**
|
|
29212
|
+
* Forbidden
|
|
29213
|
+
*/
|
|
29214
|
+
403: unknown;
|
|
29215
|
+
/**
|
|
29216
|
+
* Not Found
|
|
29217
|
+
*/
|
|
29218
|
+
404: unknown;
|
|
29219
|
+
};
|
|
29220
|
+
export type UpdateProjectCodeOwnersResponses = {
|
|
29221
|
+
200: {
|
|
29222
|
+
codeMapping?: {
|
|
29223
|
+
id: string;
|
|
29224
|
+
projectId: string;
|
|
29225
|
+
projectSlug: string;
|
|
29226
|
+
repoId: string;
|
|
29227
|
+
repoName: string;
|
|
29228
|
+
integrationId: string | null;
|
|
29229
|
+
provider: {
|
|
29230
|
+
key: string;
|
|
29231
|
+
slug: string;
|
|
29232
|
+
name: string;
|
|
29233
|
+
canAdd: boolean;
|
|
29234
|
+
canDisable: boolean;
|
|
29235
|
+
features: Array<string>;
|
|
29236
|
+
aspects: {
|
|
29237
|
+
[key: string]: unknown;
|
|
29238
|
+
};
|
|
29239
|
+
} | null;
|
|
29240
|
+
stackRoot: string;
|
|
29241
|
+
sourceRoot: string;
|
|
29242
|
+
defaultBranch: string | null;
|
|
29243
|
+
automaticallyGenerated: boolean;
|
|
29244
|
+
};
|
|
29245
|
+
ownershipSyntax?: string;
|
|
29246
|
+
errors?: {
|
|
29247
|
+
missing_user_emails: Array<string>;
|
|
29248
|
+
missing_external_users: Array<string>;
|
|
29249
|
+
missing_external_teams: Array<string>;
|
|
29250
|
+
teams_without_access: Array<string>;
|
|
29251
|
+
users_without_access: Array<string>;
|
|
29252
|
+
};
|
|
29253
|
+
schema?: {
|
|
29254
|
+
$version: number;
|
|
29255
|
+
rules: Array<{
|
|
29256
|
+
matcher: {
|
|
29257
|
+
type: string;
|
|
29258
|
+
pattern: string;
|
|
29259
|
+
};
|
|
29260
|
+
owners: Array<{
|
|
29261
|
+
type: string;
|
|
29262
|
+
name: string;
|
|
29263
|
+
id?: string;
|
|
29264
|
+
}>;
|
|
29265
|
+
}>;
|
|
29266
|
+
} | {
|
|
29267
|
+
[key: string]: unknown;
|
|
29268
|
+
};
|
|
29269
|
+
codeOwnersUrl?: string;
|
|
29270
|
+
id: string;
|
|
29271
|
+
raw: string;
|
|
29272
|
+
dateCreated: string;
|
|
29273
|
+
dateUpdated: string;
|
|
29274
|
+
dateSynced: string | null;
|
|
29275
|
+
codeMappingId: string;
|
|
29276
|
+
provider: string;
|
|
29277
|
+
};
|
|
29278
|
+
};
|
|
29279
|
+
export type UpdateProjectCodeOwnersResponse = UpdateProjectCodeOwnersResponses[keyof UpdateProjectCodeOwnersResponses];
|
|
28707
29280
|
export type ListProjectEnvironmentsData = {
|
|
28708
29281
|
body?: never;
|
|
28709
29282
|
path: {
|