@octokit/types 5.4.1 → 5.5.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-node/index.js +1 -1
- package/dist-src/AuthInterface.js +1 -0
- package/dist-src/EndpointDefaults.js +1 -0
- package/dist-src/EndpointInterface.js +1 -0
- package/dist-src/EndpointOptions.js +1 -0
- package/dist-src/Fetch.js +1 -0
- package/dist-src/GetResponseTypeFromEndpointMethod.js +1 -0
- package/dist-src/OctokitResponse.js +1 -0
- package/dist-src/RequestError.js +1 -0
- package/dist-src/RequestHeaders.js +1 -0
- package/dist-src/RequestInterface.js +1 -0
- package/dist-src/RequestMethod.js +1 -0
- package/dist-src/RequestOptions.js +1 -0
- package/dist-src/RequestParameters.js +1 -0
- package/dist-src/RequestRequestOptions.js +1 -0
- package/dist-src/ResponseHeaders.js +1 -0
- package/dist-src/Route.js +1 -0
- package/dist-src/Signal.js +1 -0
- package/dist-src/StrategyInterface.js +1 -0
- package/dist-src/Url.js +1 -0
- package/dist-src/VERSION.js +1 -1
- package/dist-src/generated/Endpoints.js +1 -0
- package/dist-types/VERSION.d.ts +1 -1
- package/dist-types/generated/Endpoints.d.ts +417 -19
- package/dist-web/index.js +1 -1
- package/package.json +3 -3
package/dist-node/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-src/Fetch.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-src/RequestError.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-src/Route.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-src/Signal.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-src/Url.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-src/VERSION.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "5.
|
|
1
|
+
export const VERSION = "5.5.0";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-types/VERSION.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.5.0";
|
|
@@ -1080,6 +1080,33 @@ export interface Endpoints {
|
|
|
1080
1080
|
request: EnterpriseAdminGetSharedStorageBillingGheRequestOptions;
|
|
1081
1081
|
response: OctokitResponse<EnterpriseAdminGetSharedStorageBillingGheResponseData>;
|
|
1082
1082
|
};
|
|
1083
|
+
/**
|
|
1084
|
+
* @see https://developer.github.com/v3/enterprise-admin/billing/#get-github-actions-billing-for-an-enterprise
|
|
1085
|
+
* @deprecated "enterprise_id" is deprecated, use "enterprise" instead
|
|
1086
|
+
*/
|
|
1087
|
+
"GET /enterprises/:enterprise_id/settings/billing/actions": {
|
|
1088
|
+
parameters: EnterpriseAdminGetGithubActionsBillingGheDeprecatedEnterpriseIdEndpoint;
|
|
1089
|
+
request: EnterpriseAdminGetGithubActionsBillingGheRequestOptions;
|
|
1090
|
+
response: OctokitResponse<EnterpriseAdminGetGithubActionsBillingGheResponseData>;
|
|
1091
|
+
};
|
|
1092
|
+
/**
|
|
1093
|
+
* @see https://developer.github.com/v3/enterprise-admin/billing/#get-github-packages-billing-for-an-enterprise
|
|
1094
|
+
* @deprecated "enterprise_id" is deprecated, use "enterprise" instead
|
|
1095
|
+
*/
|
|
1096
|
+
"GET /enterprises/:enterprise_id/settings/billing/packages": {
|
|
1097
|
+
parameters: EnterpriseAdminGetGithubPackagesBillingGheDeprecatedEnterpriseIdEndpoint;
|
|
1098
|
+
request: EnterpriseAdminGetGithubPackagesBillingGheRequestOptions;
|
|
1099
|
+
response: OctokitResponse<EnterpriseAdminGetGithubPackagesBillingGheResponseData>;
|
|
1100
|
+
};
|
|
1101
|
+
/**
|
|
1102
|
+
* @see https://developer.github.com/v3/enterprise-admin/billing/#get-shared-storage-billing-for-an-enterprise
|
|
1103
|
+
* @deprecated "enterprise_id" is deprecated, use "enterprise" instead
|
|
1104
|
+
*/
|
|
1105
|
+
"GET /enterprises/:enterprise_id/settings/billing/shared-storage": {
|
|
1106
|
+
parameters: EnterpriseAdminGetSharedStorageBillingGheDeprecatedEnterpriseIdEndpoint;
|
|
1107
|
+
request: EnterpriseAdminGetSharedStorageBillingGheRequestOptions;
|
|
1108
|
+
response: OctokitResponse<EnterpriseAdminGetSharedStorageBillingGheResponseData>;
|
|
1109
|
+
};
|
|
1083
1110
|
/**
|
|
1084
1111
|
* @see https://developer.github.com/v3/activity/events/#list-public-events
|
|
1085
1112
|
*/
|
|
@@ -2178,12 +2205,29 @@ export interface Endpoints {
|
|
|
2178
2205
|
};
|
|
2179
2206
|
/**
|
|
2180
2207
|
* @see https://developer.github.com/v3/code-scanning/#get-a-code-scanning-alert
|
|
2208
|
+
* @deprecated "alert_id" is deprecated, use "alert_number" instead
|
|
2181
2209
|
*/
|
|
2182
2210
|
"GET /repos/:owner/:repo/code-scanning/alerts/:alert_id": {
|
|
2211
|
+
parameters: CodeScanningGetAlertDeprecatedAlertIdEndpoint;
|
|
2212
|
+
request: CodeScanningGetAlertRequestOptions;
|
|
2213
|
+
response: OctokitResponse<CodeScanningGetAlertResponseData>;
|
|
2214
|
+
};
|
|
2215
|
+
/**
|
|
2216
|
+
* @see https://developer.github.com/v3/code-scanning/#get-a-code-scanning-alert
|
|
2217
|
+
*/
|
|
2218
|
+
"GET /repos/:owner/:repo/code-scanning/alerts/:alert_number": {
|
|
2183
2219
|
parameters: CodeScanningGetAlertEndpoint;
|
|
2184
2220
|
request: CodeScanningGetAlertRequestOptions;
|
|
2185
2221
|
response: OctokitResponse<CodeScanningGetAlertResponseData>;
|
|
2186
2222
|
};
|
|
2223
|
+
/**
|
|
2224
|
+
* @see https://developer.github.com/v3/code-scanning/#list-recent-analyses
|
|
2225
|
+
*/
|
|
2226
|
+
"GET /repos/:owner/:repo/code-scanning/analyses": {
|
|
2227
|
+
parameters: CodeScanningListRecentAnalysesEndpoint;
|
|
2228
|
+
request: CodeScanningListRecentAnalysesRequestOptions;
|
|
2229
|
+
response: OctokitResponse<CodeScanningListRecentAnalysesResponseData>;
|
|
2230
|
+
};
|
|
2187
2231
|
/**
|
|
2188
2232
|
* @see https://developer.github.com/v3/repos/collaborators/#list-repository-collaborators
|
|
2189
2233
|
*/
|
|
@@ -3848,6 +3892,14 @@ export interface Endpoints {
|
|
|
3848
3892
|
request: ChecksSetSuitesPreferencesRequestOptions;
|
|
3849
3893
|
response: OctokitResponse<ChecksSetSuitesPreferencesResponseData>;
|
|
3850
3894
|
};
|
|
3895
|
+
/**
|
|
3896
|
+
* @see https://developer.github.com/v3/code-scanning/#upload-a-code-scanning-alert
|
|
3897
|
+
*/
|
|
3898
|
+
"PATCH /repos/:owner/:repo/code-scanning/alerts/:alert_number": {
|
|
3899
|
+
parameters: CodeScanningUpdateAlertEndpoint;
|
|
3900
|
+
request: CodeScanningUpdateAlertRequestOptions;
|
|
3901
|
+
response: OctokitResponse<CodeScanningUpdateAlertResponseData>;
|
|
3902
|
+
};
|
|
3851
3903
|
/**
|
|
3852
3904
|
* @see https://developer.github.com/v3/repos/comments/#update-a-commit-comment
|
|
3853
3905
|
*/
|
|
@@ -4424,6 +4476,14 @@ export interface Endpoints {
|
|
|
4424
4476
|
request: ChecksRerequestSuiteRequestOptions;
|
|
4425
4477
|
response: OctokitResponse<any>;
|
|
4426
4478
|
};
|
|
4479
|
+
/**
|
|
4480
|
+
* @see https://developer.github.com/v3/code-scanning/#upload-a-sarif-analysis
|
|
4481
|
+
*/
|
|
4482
|
+
"POST /repos/:owner/:repo/code-scanning/sarifs": {
|
|
4483
|
+
parameters: CodeScanningUploadSarifEndpoint;
|
|
4484
|
+
request: CodeScanningUploadSarifRequestOptions;
|
|
4485
|
+
response: OctokitResponse<any>;
|
|
4486
|
+
};
|
|
4427
4487
|
/**
|
|
4428
4488
|
* @see https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment
|
|
4429
4489
|
*/
|
|
@@ -11767,35 +11827,111 @@ export interface ChecksUpdateResponseData {
|
|
|
11767
11827
|
declare type CodeScanningGetAlertEndpoint = {
|
|
11768
11828
|
owner: string;
|
|
11769
11829
|
repo: string;
|
|
11770
|
-
|
|
11830
|
+
/**
|
|
11831
|
+
* The code scanning alert number.
|
|
11832
|
+
*/
|
|
11833
|
+
alert_number?: number;
|
|
11771
11834
|
};
|
|
11772
11835
|
declare type CodeScanningGetAlertRequestOptions = {
|
|
11773
11836
|
method: "GET";
|
|
11774
|
-
url: "/repos/:owner/:repo/code-scanning/alerts/:
|
|
11837
|
+
url: "/repos/:owner/:repo/code-scanning/alerts/:alert_number";
|
|
11775
11838
|
headers: RequestHeaders;
|
|
11776
11839
|
request: RequestRequestOptions;
|
|
11777
11840
|
};
|
|
11778
11841
|
export interface CodeScanningGetAlertResponseData {
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11842
|
+
/**
|
|
11843
|
+
* The code scanning alert number.
|
|
11844
|
+
*/
|
|
11845
|
+
number: number;
|
|
11846
|
+
/**
|
|
11847
|
+
* The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
|
|
11848
|
+
*/
|
|
11783
11849
|
created_at: string;
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11850
|
+
/**
|
|
11851
|
+
* The REST API URL of the alert resource.
|
|
11852
|
+
*/
|
|
11787
11853
|
url: string;
|
|
11854
|
+
/**
|
|
11855
|
+
* The GitHub URL of the alert resource.
|
|
11856
|
+
*/
|
|
11788
11857
|
html_url: string;
|
|
11858
|
+
instances: unknown[];
|
|
11859
|
+
/**
|
|
11860
|
+
* State of a code scanning alert.
|
|
11861
|
+
*/
|
|
11862
|
+
state: "open" | "dismissed" | "fixed";
|
|
11863
|
+
dismissed_by: {
|
|
11864
|
+
login?: string;
|
|
11865
|
+
id?: number;
|
|
11866
|
+
node_id?: string;
|
|
11867
|
+
avatar_url?: string;
|
|
11868
|
+
gravatar_id?: string;
|
|
11869
|
+
url?: string;
|
|
11870
|
+
html_url?: string;
|
|
11871
|
+
followers_url?: string;
|
|
11872
|
+
following_url?: string;
|
|
11873
|
+
gists_url?: string;
|
|
11874
|
+
starred_url?: string;
|
|
11875
|
+
subscriptions_url?: string;
|
|
11876
|
+
organizations_url?: string;
|
|
11877
|
+
repos_url?: string;
|
|
11878
|
+
events_url?: string;
|
|
11879
|
+
received_events_url?: string;
|
|
11880
|
+
type?: string;
|
|
11881
|
+
site_admin?: boolean;
|
|
11882
|
+
[k: string]: unknown;
|
|
11883
|
+
} | null;
|
|
11884
|
+
/**
|
|
11885
|
+
* The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
|
|
11886
|
+
*/
|
|
11887
|
+
dismissed_at: string;
|
|
11888
|
+
/**
|
|
11889
|
+
* **Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.
|
|
11890
|
+
*/
|
|
11891
|
+
dismissed_reason: ("false positive" | "won't fix" | "used in tests") | null;
|
|
11892
|
+
rule: {
|
|
11893
|
+
/**
|
|
11894
|
+
* A unique identifier for the rule used to detect the alert.
|
|
11895
|
+
*/
|
|
11896
|
+
id: string;
|
|
11897
|
+
/**
|
|
11898
|
+
* The severity of the alert.
|
|
11899
|
+
*/
|
|
11900
|
+
severity: "none" | "note" | "warning" | "error";
|
|
11901
|
+
/**
|
|
11902
|
+
* A short description of the rule used to detect the alert.
|
|
11903
|
+
*/
|
|
11904
|
+
description: string;
|
|
11905
|
+
};
|
|
11906
|
+
tool: {
|
|
11907
|
+
/**
|
|
11908
|
+
* The name of the tool used to generate the code scanning analysis alert.
|
|
11909
|
+
*/
|
|
11910
|
+
name: string;
|
|
11911
|
+
/**
|
|
11912
|
+
* The version of the tool used to detect the alert.
|
|
11913
|
+
*/
|
|
11914
|
+
version: string;
|
|
11915
|
+
};
|
|
11789
11916
|
}
|
|
11917
|
+
declare type CodeScanningGetAlertDeprecatedAlertIdEndpoint = {
|
|
11918
|
+
owner: string;
|
|
11919
|
+
repo: string;
|
|
11920
|
+
/**
|
|
11921
|
+
* The code scanning alert number.
|
|
11922
|
+
* @deprecated "alert_id" is deprecated. Use "alert_number" instead
|
|
11923
|
+
*/
|
|
11924
|
+
alert_id?: number;
|
|
11925
|
+
};
|
|
11790
11926
|
declare type CodeScanningListAlertsForRepoEndpoint = {
|
|
11791
11927
|
owner: string;
|
|
11792
11928
|
repo: string;
|
|
11793
11929
|
/**
|
|
11794
|
-
* Set to `
|
|
11930
|
+
* Set to `open`, `fixed`, or `dismissed` to list code scanning alerts in a specific state.
|
|
11795
11931
|
*/
|
|
11796
|
-
state?:
|
|
11932
|
+
state?: "open" | "dismissed" | "fixed";
|
|
11797
11933
|
/**
|
|
11798
|
-
*
|
|
11934
|
+
* Set a full Git reference to list alerts for a specific branch. The `ref` must be formatted as `refs/heads/<branch name>`.
|
|
11799
11935
|
*/
|
|
11800
11936
|
ref?: string;
|
|
11801
11937
|
};
|
|
@@ -11806,17 +11942,258 @@ declare type CodeScanningListAlertsForRepoRequestOptions = {
|
|
|
11806
11942
|
request: RequestRequestOptions;
|
|
11807
11943
|
};
|
|
11808
11944
|
export declare type CodeScanningListAlertsForRepoResponseData = {
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11945
|
+
/**
|
|
11946
|
+
* The code scanning alert number.
|
|
11947
|
+
*/
|
|
11948
|
+
number: number;
|
|
11949
|
+
/**
|
|
11950
|
+
* The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
|
|
11951
|
+
*/
|
|
11813
11952
|
created_at: string;
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11953
|
+
/**
|
|
11954
|
+
* The REST API URL of the alert resource.
|
|
11955
|
+
*/
|
|
11817
11956
|
url: string;
|
|
11957
|
+
/**
|
|
11958
|
+
* The GitHub URL of the alert resource.
|
|
11959
|
+
*/
|
|
11818
11960
|
html_url: string;
|
|
11961
|
+
/**
|
|
11962
|
+
* State of a code scanning alert.
|
|
11963
|
+
*/
|
|
11964
|
+
state: "open" | "dismissed" | "fixed";
|
|
11965
|
+
dismissed_by: {
|
|
11966
|
+
login?: string;
|
|
11967
|
+
id?: number;
|
|
11968
|
+
node_id?: string;
|
|
11969
|
+
avatar_url?: string;
|
|
11970
|
+
gravatar_id?: string;
|
|
11971
|
+
url?: string;
|
|
11972
|
+
html_url?: string;
|
|
11973
|
+
followers_url?: string;
|
|
11974
|
+
following_url?: string;
|
|
11975
|
+
gists_url?: string;
|
|
11976
|
+
starred_url?: string;
|
|
11977
|
+
subscriptions_url?: string;
|
|
11978
|
+
organizations_url?: string;
|
|
11979
|
+
repos_url?: string;
|
|
11980
|
+
events_url?: string;
|
|
11981
|
+
received_events_url?: string;
|
|
11982
|
+
type?: string;
|
|
11983
|
+
site_admin?: boolean;
|
|
11984
|
+
[k: string]: unknown;
|
|
11985
|
+
} | null;
|
|
11986
|
+
/**
|
|
11987
|
+
* The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
|
|
11988
|
+
*/
|
|
11989
|
+
dismissed_at: string;
|
|
11990
|
+
/**
|
|
11991
|
+
* **Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.
|
|
11992
|
+
*/
|
|
11993
|
+
dismissed_reason: ("false positive" | "won't fix" | "used in tests") | null;
|
|
11994
|
+
rule: {
|
|
11995
|
+
/**
|
|
11996
|
+
* A unique identifier for the rule used to detect the alert.
|
|
11997
|
+
*/
|
|
11998
|
+
id: string;
|
|
11999
|
+
/**
|
|
12000
|
+
* The severity of the alert.
|
|
12001
|
+
*/
|
|
12002
|
+
severity: "none" | "note" | "warning" | "error";
|
|
12003
|
+
/**
|
|
12004
|
+
* A short description of the rule used to detect the alert.
|
|
12005
|
+
*/
|
|
12006
|
+
description: string;
|
|
12007
|
+
};
|
|
12008
|
+
tool: {
|
|
12009
|
+
/**
|
|
12010
|
+
* The name of the tool used to generate the code scanning analysis alert.
|
|
12011
|
+
*/
|
|
12012
|
+
name: string;
|
|
12013
|
+
/**
|
|
12014
|
+
* The version of the tool used to detect the alert.
|
|
12015
|
+
*/
|
|
12016
|
+
version: string;
|
|
12017
|
+
};
|
|
12018
|
+
}[];
|
|
12019
|
+
declare type CodeScanningListRecentAnalysesEndpoint = {
|
|
12020
|
+
owner: string;
|
|
12021
|
+
repo: string;
|
|
12022
|
+
/**
|
|
12023
|
+
* Set a full Git reference to list alerts for a specific branch. The `ref` must be formatted as `refs/heads/<branch name>`.
|
|
12024
|
+
*/
|
|
12025
|
+
ref?: string;
|
|
12026
|
+
/**
|
|
12027
|
+
* Set a single code scanning tool name to filter alerts by tool.
|
|
12028
|
+
*/
|
|
12029
|
+
tool_name?: string;
|
|
12030
|
+
};
|
|
12031
|
+
declare type CodeScanningListRecentAnalysesRequestOptions = {
|
|
12032
|
+
method: "GET";
|
|
12033
|
+
url: "/repos/:owner/:repo/code-scanning/analyses";
|
|
12034
|
+
headers: RequestHeaders;
|
|
12035
|
+
request: RequestRequestOptions;
|
|
12036
|
+
};
|
|
12037
|
+
export declare type CodeScanningListRecentAnalysesResponseData = {
|
|
12038
|
+
/**
|
|
12039
|
+
* The commit SHA of the code scanning analysis file.
|
|
12040
|
+
*/
|
|
12041
|
+
commit_sha: string;
|
|
12042
|
+
/**
|
|
12043
|
+
* The full Git reference of the code scanning analysis file, formatted as `refs/heads/<branch name>`.
|
|
12044
|
+
*/
|
|
12045
|
+
ref: string;
|
|
12046
|
+
/**
|
|
12047
|
+
* Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.
|
|
12048
|
+
*/
|
|
12049
|
+
analysis_key: string;
|
|
12050
|
+
/**
|
|
12051
|
+
* The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
|
|
12052
|
+
*/
|
|
12053
|
+
created_at: string;
|
|
12054
|
+
/**
|
|
12055
|
+
* The name of the tool used to generate the code scanning analysis alert.
|
|
12056
|
+
*/
|
|
12057
|
+
tool_name: string;
|
|
12058
|
+
error: string;
|
|
12059
|
+
/**
|
|
12060
|
+
* Identifies the variable values associated with the environment in which this analysis was performed.
|
|
12061
|
+
*/
|
|
12062
|
+
environment: string;
|
|
11819
12063
|
}[];
|
|
12064
|
+
declare type CodeScanningUpdateAlertEndpoint = {
|
|
12065
|
+
owner: string;
|
|
12066
|
+
repo: string;
|
|
12067
|
+
/**
|
|
12068
|
+
* The code scanning alert number.
|
|
12069
|
+
*/
|
|
12070
|
+
alert_number?: number;
|
|
12071
|
+
/**
|
|
12072
|
+
* Sets the state of the code scanning alert. Can be one of `open` or `dismissed`. You must provide `dismissed_reason` when you set the state to `dismissed`.
|
|
12073
|
+
*/
|
|
12074
|
+
state: "open" | "dismissed";
|
|
12075
|
+
/**
|
|
12076
|
+
* **Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.
|
|
12077
|
+
*/
|
|
12078
|
+
dismissed_reason?: string | null;
|
|
12079
|
+
};
|
|
12080
|
+
declare type CodeScanningUpdateAlertRequestOptions = {
|
|
12081
|
+
method: "PATCH";
|
|
12082
|
+
url: "/repos/:owner/:repo/code-scanning/alerts/:alert_number";
|
|
12083
|
+
headers: RequestHeaders;
|
|
12084
|
+
request: RequestRequestOptions;
|
|
12085
|
+
};
|
|
12086
|
+
export interface CodeScanningUpdateAlertResponseData {
|
|
12087
|
+
/**
|
|
12088
|
+
* The code scanning alert number.
|
|
12089
|
+
*/
|
|
12090
|
+
number: number;
|
|
12091
|
+
/**
|
|
12092
|
+
* The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
|
|
12093
|
+
*/
|
|
12094
|
+
created_at: string;
|
|
12095
|
+
/**
|
|
12096
|
+
* The REST API URL of the alert resource.
|
|
12097
|
+
*/
|
|
12098
|
+
url: string;
|
|
12099
|
+
/**
|
|
12100
|
+
* The GitHub URL of the alert resource.
|
|
12101
|
+
*/
|
|
12102
|
+
html_url: string;
|
|
12103
|
+
instances: unknown[];
|
|
12104
|
+
/**
|
|
12105
|
+
* State of a code scanning alert.
|
|
12106
|
+
*/
|
|
12107
|
+
state: "open" | "dismissed" | "fixed";
|
|
12108
|
+
dismissed_by: {
|
|
12109
|
+
login?: string;
|
|
12110
|
+
id?: number;
|
|
12111
|
+
node_id?: string;
|
|
12112
|
+
avatar_url?: string;
|
|
12113
|
+
gravatar_id?: string;
|
|
12114
|
+
url?: string;
|
|
12115
|
+
html_url?: string;
|
|
12116
|
+
followers_url?: string;
|
|
12117
|
+
following_url?: string;
|
|
12118
|
+
gists_url?: string;
|
|
12119
|
+
starred_url?: string;
|
|
12120
|
+
subscriptions_url?: string;
|
|
12121
|
+
organizations_url?: string;
|
|
12122
|
+
repos_url?: string;
|
|
12123
|
+
events_url?: string;
|
|
12124
|
+
received_events_url?: string;
|
|
12125
|
+
type?: string;
|
|
12126
|
+
site_admin?: boolean;
|
|
12127
|
+
[k: string]: unknown;
|
|
12128
|
+
} | null;
|
|
12129
|
+
/**
|
|
12130
|
+
* The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
|
|
12131
|
+
*/
|
|
12132
|
+
dismissed_at: string;
|
|
12133
|
+
/**
|
|
12134
|
+
* **Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.
|
|
12135
|
+
*/
|
|
12136
|
+
dismissed_reason: ("false positive" | "won't fix" | "used in tests") | null;
|
|
12137
|
+
rule: {
|
|
12138
|
+
/**
|
|
12139
|
+
* A unique identifier for the rule used to detect the alert.
|
|
12140
|
+
*/
|
|
12141
|
+
id: string;
|
|
12142
|
+
/**
|
|
12143
|
+
* The severity of the alert.
|
|
12144
|
+
*/
|
|
12145
|
+
severity: "none" | "note" | "warning" | "error";
|
|
12146
|
+
/**
|
|
12147
|
+
* A short description of the rule used to detect the alert.
|
|
12148
|
+
*/
|
|
12149
|
+
description: string;
|
|
12150
|
+
};
|
|
12151
|
+
tool: {
|
|
12152
|
+
/**
|
|
12153
|
+
* The name of the tool used to generate the code scanning analysis alert.
|
|
12154
|
+
*/
|
|
12155
|
+
name: string;
|
|
12156
|
+
/**
|
|
12157
|
+
* The version of the tool used to detect the alert.
|
|
12158
|
+
*/
|
|
12159
|
+
version: string;
|
|
12160
|
+
};
|
|
12161
|
+
}
|
|
12162
|
+
declare type CodeScanningUploadSarifEndpoint = {
|
|
12163
|
+
owner: string;
|
|
12164
|
+
repo: string;
|
|
12165
|
+
/**
|
|
12166
|
+
* The commit SHA of the code scanning analysis file.
|
|
12167
|
+
*/
|
|
12168
|
+
commit_sha: string;
|
|
12169
|
+
/**
|
|
12170
|
+
* The full Git reference of the code scanning analysis file, formatted as `refs/heads/<branch name>`.
|
|
12171
|
+
*/
|
|
12172
|
+
ref: string;
|
|
12173
|
+
/**
|
|
12174
|
+
* A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string.
|
|
12175
|
+
*/
|
|
12176
|
+
sarif: string;
|
|
12177
|
+
/**
|
|
12178
|
+
* The base directory used in the analysis, as it appears in the SARIF file.
|
|
12179
|
+
* This property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
|
|
12180
|
+
*/
|
|
12181
|
+
checkout_uri?: string;
|
|
12182
|
+
/**
|
|
12183
|
+
* The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
|
|
12184
|
+
*/
|
|
12185
|
+
started_at?: string;
|
|
12186
|
+
/**
|
|
12187
|
+
* The name of the tool used to generate the code scanning analysis alert.
|
|
12188
|
+
*/
|
|
12189
|
+
tool_name: string;
|
|
12190
|
+
};
|
|
12191
|
+
declare type CodeScanningUploadSarifRequestOptions = {
|
|
12192
|
+
method: "POST";
|
|
12193
|
+
url: "/repos/:owner/:repo/code-scanning/sarifs";
|
|
12194
|
+
headers: RequestHeaders;
|
|
12195
|
+
request: RequestRequestOptions;
|
|
12196
|
+
};
|
|
11820
12197
|
declare type CodesOfConductGetAllCodesOfConductEndpoint = {} & RequiredPreview<"scarlet-witch">;
|
|
11821
12198
|
declare type CodesOfConductGetAllCodesOfConductRequestOptions = {
|
|
11822
12199
|
method: "GET";
|
|
@@ -12079,6 +12456,13 @@ export interface EnterpriseAdminGetGithubActionsBillingGheResponseData {
|
|
|
12079
12456
|
WINDOWS: number;
|
|
12080
12457
|
};
|
|
12081
12458
|
}
|
|
12459
|
+
declare type EnterpriseAdminGetGithubActionsBillingGheDeprecatedEnterpriseIdEndpoint = {
|
|
12460
|
+
/**
|
|
12461
|
+
* The slug version of the enterprise name. You can also substitute this value with the enterprise id.
|
|
12462
|
+
* @deprecated "enterprise_id" is deprecated. Use "enterprise" instead
|
|
12463
|
+
*/
|
|
12464
|
+
enterprise_id?: string;
|
|
12465
|
+
};
|
|
12082
12466
|
declare type EnterpriseAdminGetGithubPackagesBillingGheEndpoint = {
|
|
12083
12467
|
/**
|
|
12084
12468
|
* The slug version of the enterprise name. You can also substitute this value with the enterprise id.
|
|
@@ -12105,6 +12489,13 @@ export interface EnterpriseAdminGetGithubPackagesBillingGheResponseData {
|
|
|
12105
12489
|
*/
|
|
12106
12490
|
included_gigabytes_bandwidth: number;
|
|
12107
12491
|
}
|
|
12492
|
+
declare type EnterpriseAdminGetGithubPackagesBillingGheDeprecatedEnterpriseIdEndpoint = {
|
|
12493
|
+
/**
|
|
12494
|
+
* The slug version of the enterprise name. You can also substitute this value with the enterprise id.
|
|
12495
|
+
* @deprecated "enterprise_id" is deprecated. Use "enterprise" instead
|
|
12496
|
+
*/
|
|
12497
|
+
enterprise_id?: string;
|
|
12498
|
+
};
|
|
12108
12499
|
declare type EnterpriseAdminGetProvisioningInformationForEnterpriseGroupEndpoint = {
|
|
12109
12500
|
/**
|
|
12110
12501
|
* The slug version of the enterprise name. You can also substitute this value with the enterprise id.
|
|
@@ -12266,6 +12657,13 @@ export interface EnterpriseAdminGetSharedStorageBillingGheResponseData {
|
|
|
12266
12657
|
*/
|
|
12267
12658
|
estimated_storage_for_month: number;
|
|
12268
12659
|
}
|
|
12660
|
+
declare type EnterpriseAdminGetSharedStorageBillingGheDeprecatedEnterpriseIdEndpoint = {
|
|
12661
|
+
/**
|
|
12662
|
+
* The slug version of the enterprise name. You can also substitute this value with the enterprise id.
|
|
12663
|
+
* @deprecated "enterprise_id" is deprecated. Use "enterprise" instead
|
|
12664
|
+
*/
|
|
12665
|
+
enterprise_id?: string;
|
|
12666
|
+
};
|
|
12269
12667
|
declare type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseEndpoint = {
|
|
12270
12668
|
/**
|
|
12271
12669
|
* The slug version of the enterprise name. You can also substitute this value with the enterprise id.
|
package/dist-web/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octokit/types",
|
|
3
3
|
"description": "Shared TypeScript definitions for Octokit projects",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.5.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist-*/",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
|
37
37
|
"sort-keys": "^4.0.0",
|
|
38
38
|
"string-to-jsdoc-comment": "^1.0.0",
|
|
39
|
-
"typedoc": "^0.
|
|
40
|
-
"typescript": "^
|
|
39
|
+
"typedoc": "^0.19.0",
|
|
40
|
+
"typescript": "^4.0.2"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|