@fern-api/generator-cli 0.4.3 → 0.4.5
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/api.cjs +3791 -60
- package/dist/cli.cjs +3822 -91
- package/package.json +7 -9
package/dist/cli.cjs
CHANGED
|
@@ -765,7 +765,7 @@ var require_build2 = __commonJS({
|
|
|
765
765
|
"strip-dashed": false,
|
|
766
766
|
"unknown-options-as-args": false
|
|
767
767
|
}, opts.configuration);
|
|
768
|
-
const
|
|
768
|
+
const defaults2 = Object.assign(/* @__PURE__ */ Object.create(null), opts.default);
|
|
769
769
|
const configObjects = opts.configObjects || [];
|
|
770
770
|
const envPrefix = opts.envPrefix;
|
|
771
771
|
const notFlagsOption = configuration["populate--"];
|
|
@@ -854,9 +854,9 @@ var require_build2 = __commonJS({
|
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
extendAliases(opts.key, aliases, opts.default, flags.arrays);
|
|
857
|
-
Object.keys(
|
|
857
|
+
Object.keys(defaults2).forEach(function(key) {
|
|
858
858
|
(flags.aliases[key] || []).forEach(function(alias) {
|
|
859
|
-
|
|
859
|
+
defaults2[alias] = defaults2[key];
|
|
860
860
|
});
|
|
861
861
|
});
|
|
862
862
|
let error = null;
|
|
@@ -1004,7 +1004,7 @@ var require_build2 = __commonJS({
|
|
|
1004
1004
|
applyEnvVars(argv, false);
|
|
1005
1005
|
setConfig(argv);
|
|
1006
1006
|
setConfigObjects();
|
|
1007
|
-
applyDefaultsAndAliases(argv, flags.aliases,
|
|
1007
|
+
applyDefaultsAndAliases(argv, flags.aliases, defaults2, true);
|
|
1008
1008
|
applyCoercions(argv);
|
|
1009
1009
|
if (configuration["set-placeholder-key"])
|
|
1010
1010
|
setPlaceholderKeys(argv);
|
|
@@ -1080,8 +1080,8 @@ var require_build2 = __commonJS({
|
|
|
1080
1080
|
if (checkAllAliases(key, flags.bools) && !/^(true|false)$/.test(next)) {
|
|
1081
1081
|
argsToSet.push(true);
|
|
1082
1082
|
} else if (isUndefined(next) || isUndefined(argAfterEqualSign) && /^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next)) {
|
|
1083
|
-
if (
|
|
1084
|
-
const defVal =
|
|
1083
|
+
if (defaults2[key] !== void 0) {
|
|
1084
|
+
const defVal = defaults2[key];
|
|
1085
1085
|
argsToSet = Array.isArray(defVal) ? defVal : [defVal];
|
|
1086
1086
|
}
|
|
1087
1087
|
} else {
|
|
@@ -1192,7 +1192,7 @@ var require_build2 = __commonJS({
|
|
|
1192
1192
|
}
|
|
1193
1193
|
function setConfig(argv2) {
|
|
1194
1194
|
const configLookup = /* @__PURE__ */ Object.create(null);
|
|
1195
|
-
applyDefaultsAndAliases(configLookup, flags.aliases,
|
|
1195
|
+
applyDefaultsAndAliases(configLookup, flags.aliases, defaults2);
|
|
1196
1196
|
Object.keys(flags.configs).forEach(function(configKey) {
|
|
1197
1197
|
const configPath = argv2[configKey] || configLookup[configKey];
|
|
1198
1198
|
if (configPath) {
|
|
@@ -1291,16 +1291,16 @@ var require_build2 = __commonJS({
|
|
|
1291
1291
|
});
|
|
1292
1292
|
return argv2;
|
|
1293
1293
|
}
|
|
1294
|
-
function applyDefaultsAndAliases(obj, aliases2,
|
|
1295
|
-
Object.keys(
|
|
1294
|
+
function applyDefaultsAndAliases(obj, aliases2, defaults3, canLog = false) {
|
|
1295
|
+
Object.keys(defaults3).forEach(function(key) {
|
|
1296
1296
|
if (!hasKey(obj, key.split("."))) {
|
|
1297
|
-
setKey(obj, key.split("."),
|
|
1297
|
+
setKey(obj, key.split("."), defaults3[key]);
|
|
1298
1298
|
if (canLog)
|
|
1299
1299
|
defaulted[key] = true;
|
|
1300
1300
|
(aliases2[key] || []).forEach(function(x) {
|
|
1301
1301
|
if (hasKey(obj, x.split(".")))
|
|
1302
1302
|
return;
|
|
1303
|
-
setKey(obj, x.split("."),
|
|
1303
|
+
setKey(obj, x.split("."), defaults3[key]);
|
|
1304
1304
|
});
|
|
1305
1305
|
}
|
|
1306
1306
|
});
|
|
@@ -1456,8 +1456,8 @@ var require_build2 = __commonJS({
|
|
|
1456
1456
|
return !hasFlagsMatching(arg, flagWithEquals, negatedBoolean, normalFlag, flagEndingInHyphen, flagEndingInDigits, flagEndingInNonWordCharacters);
|
|
1457
1457
|
}
|
|
1458
1458
|
function defaultValue(key) {
|
|
1459
|
-
if (!checkAllAliases(key, flags.bools) && !checkAllAliases(key, flags.counts) && `${key}` in
|
|
1460
|
-
return
|
|
1459
|
+
if (!checkAllAliases(key, flags.bools) && !checkAllAliases(key, flags.counts) && `${key}` in defaults2) {
|
|
1460
|
+
return defaults2[key];
|
|
1461
1461
|
} else {
|
|
1462
1462
|
return defaultForType(guessType(key));
|
|
1463
1463
|
}
|
|
@@ -2863,18 +2863,18 @@ var require_wrap_ansi = __commonJS({
|
|
|
2863
2863
|
}
|
|
2864
2864
|
};
|
|
2865
2865
|
var stringVisibleTrimSpacesRight = (string) => {
|
|
2866
|
-
const
|
|
2867
|
-
let last2 =
|
|
2866
|
+
const words2 = string.split(" ");
|
|
2867
|
+
let last2 = words2.length;
|
|
2868
2868
|
while (last2 > 0) {
|
|
2869
|
-
if (stringWidth(
|
|
2869
|
+
if (stringWidth(words2[last2 - 1]) > 0) {
|
|
2870
2870
|
break;
|
|
2871
2871
|
}
|
|
2872
2872
|
last2--;
|
|
2873
2873
|
}
|
|
2874
|
-
if (last2 ===
|
|
2874
|
+
if (last2 === words2.length) {
|
|
2875
2875
|
return string;
|
|
2876
2876
|
}
|
|
2877
|
-
return
|
|
2877
|
+
return words2.slice(0, last2).join(" ") + words2.slice(last2).join("");
|
|
2878
2878
|
};
|
|
2879
2879
|
var exec = (string, columns, options = {}) => {
|
|
2880
2880
|
if (options.trim !== false && string.trim() === "") {
|
|
@@ -4976,7 +4976,7 @@ var require_ms = __commonJS({
|
|
|
4976
4976
|
options = options || {};
|
|
4977
4977
|
var type = typeof val;
|
|
4978
4978
|
if (type === "string" && val.length > 0) {
|
|
4979
|
-
return
|
|
4979
|
+
return parse2(val);
|
|
4980
4980
|
} else if (type === "number" && isFinite(val)) {
|
|
4981
4981
|
return options.long ? fmtLong(val) : fmtShort(val);
|
|
4982
4982
|
}
|
|
@@ -4984,7 +4984,7 @@ var require_ms = __commonJS({
|
|
|
4984
4984
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
4985
4985
|
);
|
|
4986
4986
|
};
|
|
4987
|
-
function
|
|
4987
|
+
function parse2(str) {
|
|
4988
4988
|
str = String(str);
|
|
4989
4989
|
if (str.length > 100) {
|
|
4990
4990
|
return;
|
|
@@ -5809,6 +5809,229 @@ var require_dist2 = __commonJS({
|
|
|
5809
5809
|
}
|
|
5810
5810
|
});
|
|
5811
5811
|
|
|
5812
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/register.js
|
|
5813
|
+
var require_register = __commonJS({
|
|
5814
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/register.js"(exports2, module2) {
|
|
5815
|
+
"use strict";
|
|
5816
|
+
module2.exports = register;
|
|
5817
|
+
function register(state, name, method, options) {
|
|
5818
|
+
if (typeof method !== "function") {
|
|
5819
|
+
throw new Error("method for before hook must be a function");
|
|
5820
|
+
}
|
|
5821
|
+
if (!options) {
|
|
5822
|
+
options = {};
|
|
5823
|
+
}
|
|
5824
|
+
if (Array.isArray(name)) {
|
|
5825
|
+
return name.reverse().reduce(function(callback, name2) {
|
|
5826
|
+
return register.bind(null, state, name2, callback, options);
|
|
5827
|
+
}, method)();
|
|
5828
|
+
}
|
|
5829
|
+
return Promise.resolve().then(function() {
|
|
5830
|
+
if (!state.registry[name]) {
|
|
5831
|
+
return method(options);
|
|
5832
|
+
}
|
|
5833
|
+
return state.registry[name].reduce(function(method2, registered) {
|
|
5834
|
+
return registered.hook.bind(null, method2, options);
|
|
5835
|
+
}, method)();
|
|
5836
|
+
});
|
|
5837
|
+
}
|
|
5838
|
+
}
|
|
5839
|
+
});
|
|
5840
|
+
|
|
5841
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/add.js
|
|
5842
|
+
var require_add = __commonJS({
|
|
5843
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/add.js"(exports2, module2) {
|
|
5844
|
+
"use strict";
|
|
5845
|
+
module2.exports = addHook;
|
|
5846
|
+
function addHook(state, kind, name, hook2) {
|
|
5847
|
+
var orig = hook2;
|
|
5848
|
+
if (!state.registry[name]) {
|
|
5849
|
+
state.registry[name] = [];
|
|
5850
|
+
}
|
|
5851
|
+
if (kind === "before") {
|
|
5852
|
+
hook2 = function(method, options) {
|
|
5853
|
+
return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
|
|
5854
|
+
};
|
|
5855
|
+
}
|
|
5856
|
+
if (kind === "after") {
|
|
5857
|
+
hook2 = function(method, options) {
|
|
5858
|
+
var result;
|
|
5859
|
+
return Promise.resolve().then(method.bind(null, options)).then(function(result_) {
|
|
5860
|
+
result = result_;
|
|
5861
|
+
return orig(result, options);
|
|
5862
|
+
}).then(function() {
|
|
5863
|
+
return result;
|
|
5864
|
+
});
|
|
5865
|
+
};
|
|
5866
|
+
}
|
|
5867
|
+
if (kind === "error") {
|
|
5868
|
+
hook2 = function(method, options) {
|
|
5869
|
+
return Promise.resolve().then(method.bind(null, options)).catch(function(error) {
|
|
5870
|
+
return orig(error, options);
|
|
5871
|
+
});
|
|
5872
|
+
};
|
|
5873
|
+
}
|
|
5874
|
+
state.registry[name].push({
|
|
5875
|
+
hook: hook2,
|
|
5876
|
+
orig
|
|
5877
|
+
});
|
|
5878
|
+
}
|
|
5879
|
+
}
|
|
5880
|
+
});
|
|
5881
|
+
|
|
5882
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/remove.js
|
|
5883
|
+
var require_remove = __commonJS({
|
|
5884
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/remove.js"(exports2, module2) {
|
|
5885
|
+
"use strict";
|
|
5886
|
+
module2.exports = removeHook;
|
|
5887
|
+
function removeHook(state, name, method) {
|
|
5888
|
+
if (!state.registry[name]) {
|
|
5889
|
+
return;
|
|
5890
|
+
}
|
|
5891
|
+
var index = state.registry[name].map(function(registered) {
|
|
5892
|
+
return registered.orig;
|
|
5893
|
+
}).indexOf(method);
|
|
5894
|
+
if (index === -1) {
|
|
5895
|
+
return;
|
|
5896
|
+
}
|
|
5897
|
+
state.registry[name].splice(index, 1);
|
|
5898
|
+
}
|
|
5899
|
+
}
|
|
5900
|
+
});
|
|
5901
|
+
|
|
5902
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/index.js
|
|
5903
|
+
var require_before_after_hook = __commonJS({
|
|
5904
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/index.js"(exports2, module2) {
|
|
5905
|
+
"use strict";
|
|
5906
|
+
var register = require_register();
|
|
5907
|
+
var addHook = require_add();
|
|
5908
|
+
var removeHook = require_remove();
|
|
5909
|
+
var bind = Function.bind;
|
|
5910
|
+
var bindable = bind.bind(bind);
|
|
5911
|
+
function bindApi(hook2, state, name) {
|
|
5912
|
+
var removeHookRef = bindable(removeHook, null).apply(
|
|
5913
|
+
null,
|
|
5914
|
+
name ? [state, name] : [state]
|
|
5915
|
+
);
|
|
5916
|
+
hook2.api = { remove: removeHookRef };
|
|
5917
|
+
hook2.remove = removeHookRef;
|
|
5918
|
+
["before", "error", "after", "wrap"].forEach(function(kind) {
|
|
5919
|
+
var args = name ? [state, kind, name] : [state, kind];
|
|
5920
|
+
hook2[kind] = hook2.api[kind] = bindable(addHook, null).apply(null, args);
|
|
5921
|
+
});
|
|
5922
|
+
}
|
|
5923
|
+
function HookSingular() {
|
|
5924
|
+
var singularHookName = "h";
|
|
5925
|
+
var singularHookState = {
|
|
5926
|
+
registry: {}
|
|
5927
|
+
};
|
|
5928
|
+
var singularHook = register.bind(null, singularHookState, singularHookName);
|
|
5929
|
+
bindApi(singularHook, singularHookState, singularHookName);
|
|
5930
|
+
return singularHook;
|
|
5931
|
+
}
|
|
5932
|
+
function HookCollection() {
|
|
5933
|
+
var state = {
|
|
5934
|
+
registry: {}
|
|
5935
|
+
};
|
|
5936
|
+
var hook2 = register.bind(null, state);
|
|
5937
|
+
bindApi(hook2, state);
|
|
5938
|
+
return hook2;
|
|
5939
|
+
}
|
|
5940
|
+
var collectionHookDeprecationMessageDisplayed = false;
|
|
5941
|
+
function Hook() {
|
|
5942
|
+
if (!collectionHookDeprecationMessageDisplayed) {
|
|
5943
|
+
console.warn(
|
|
5944
|
+
'[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
|
|
5945
|
+
);
|
|
5946
|
+
collectionHookDeprecationMessageDisplayed = true;
|
|
5947
|
+
}
|
|
5948
|
+
return HookCollection();
|
|
5949
|
+
}
|
|
5950
|
+
Hook.Singular = HookSingular.bind();
|
|
5951
|
+
Hook.Collection = HookCollection.bind();
|
|
5952
|
+
module2.exports = Hook;
|
|
5953
|
+
module2.exports.Hook = Hook;
|
|
5954
|
+
module2.exports.Singular = Hook.Singular;
|
|
5955
|
+
module2.exports.Collection = Hook.Collection;
|
|
5956
|
+
}
|
|
5957
|
+
});
|
|
5958
|
+
|
|
5959
|
+
// ../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js
|
|
5960
|
+
var require_wrappy = __commonJS({
|
|
5961
|
+
"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(exports2, module2) {
|
|
5962
|
+
"use strict";
|
|
5963
|
+
module2.exports = wrappy;
|
|
5964
|
+
function wrappy(fn, cb) {
|
|
5965
|
+
if (fn && cb) return wrappy(fn)(cb);
|
|
5966
|
+
if (typeof fn !== "function")
|
|
5967
|
+
throw new TypeError("need wrapper function");
|
|
5968
|
+
Object.keys(fn).forEach(function(k) {
|
|
5969
|
+
wrapper[k] = fn[k];
|
|
5970
|
+
});
|
|
5971
|
+
return wrapper;
|
|
5972
|
+
function wrapper() {
|
|
5973
|
+
var args = new Array(arguments.length);
|
|
5974
|
+
for (var i = 0; i < args.length; i++) {
|
|
5975
|
+
args[i] = arguments[i];
|
|
5976
|
+
}
|
|
5977
|
+
var ret = fn.apply(this, args);
|
|
5978
|
+
var cb2 = args[args.length - 1];
|
|
5979
|
+
if (typeof ret === "function" && ret !== cb2) {
|
|
5980
|
+
Object.keys(cb2).forEach(function(k) {
|
|
5981
|
+
ret[k] = cb2[k];
|
|
5982
|
+
});
|
|
5983
|
+
}
|
|
5984
|
+
return ret;
|
|
5985
|
+
}
|
|
5986
|
+
}
|
|
5987
|
+
}
|
|
5988
|
+
});
|
|
5989
|
+
|
|
5990
|
+
// ../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js
|
|
5991
|
+
var require_once = __commonJS({
|
|
5992
|
+
"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(exports2, module2) {
|
|
5993
|
+
"use strict";
|
|
5994
|
+
var wrappy = require_wrappy();
|
|
5995
|
+
module2.exports = wrappy(once2);
|
|
5996
|
+
module2.exports.strict = wrappy(onceStrict);
|
|
5997
|
+
once2.proto = once2(function() {
|
|
5998
|
+
Object.defineProperty(Function.prototype, "once", {
|
|
5999
|
+
value: function() {
|
|
6000
|
+
return once2(this);
|
|
6001
|
+
},
|
|
6002
|
+
configurable: true
|
|
6003
|
+
});
|
|
6004
|
+
Object.defineProperty(Function.prototype, "onceStrict", {
|
|
6005
|
+
value: function() {
|
|
6006
|
+
return onceStrict(this);
|
|
6007
|
+
},
|
|
6008
|
+
configurable: true
|
|
6009
|
+
});
|
|
6010
|
+
});
|
|
6011
|
+
function once2(fn) {
|
|
6012
|
+
var f = function() {
|
|
6013
|
+
if (f.called) return f.value;
|
|
6014
|
+
f.called = true;
|
|
6015
|
+
return f.value = fn.apply(this, arguments);
|
|
6016
|
+
};
|
|
6017
|
+
f.called = false;
|
|
6018
|
+
return f;
|
|
6019
|
+
}
|
|
6020
|
+
function onceStrict(fn) {
|
|
6021
|
+
var f = function() {
|
|
6022
|
+
if (f.called)
|
|
6023
|
+
throw new Error(f.onceError);
|
|
6024
|
+
f.called = true;
|
|
6025
|
+
return f.value = fn.apply(this, arguments);
|
|
6026
|
+
};
|
|
6027
|
+
var name = fn.name || "Function wrapped with `once`";
|
|
6028
|
+
f.onceError = name + " shouldn't be called more than once";
|
|
6029
|
+
f.called = false;
|
|
6030
|
+
return f;
|
|
6031
|
+
}
|
|
6032
|
+
}
|
|
6033
|
+
});
|
|
6034
|
+
|
|
5812
6035
|
// ../commons/path-utils/lib/convertToOsPath.js
|
|
5813
6036
|
function convertToOsPath(path4) {
|
|
5814
6037
|
return path4.replace(/\\/g, "/");
|
|
@@ -6024,7 +6247,7 @@ var YargsParser = class {
|
|
|
6024
6247
|
"strip-dashed": false,
|
|
6025
6248
|
"unknown-options-as-args": false
|
|
6026
6249
|
}, opts.configuration);
|
|
6027
|
-
const
|
|
6250
|
+
const defaults2 = Object.assign(/* @__PURE__ */ Object.create(null), opts.default);
|
|
6028
6251
|
const configObjects = opts.configObjects || [];
|
|
6029
6252
|
const envPrefix = opts.envPrefix;
|
|
6030
6253
|
const notFlagsOption = configuration["populate--"];
|
|
@@ -6114,9 +6337,9 @@ var YargsParser = class {
|
|
|
6114
6337
|
}
|
|
6115
6338
|
}
|
|
6116
6339
|
extendAliases(opts.key, aliases, opts.default, flags.arrays);
|
|
6117
|
-
Object.keys(
|
|
6340
|
+
Object.keys(defaults2).forEach(function(key) {
|
|
6118
6341
|
(flags.aliases[key] || []).forEach(function(alias) {
|
|
6119
|
-
|
|
6342
|
+
defaults2[alias] = defaults2[key];
|
|
6120
6343
|
});
|
|
6121
6344
|
});
|
|
6122
6345
|
let error = null;
|
|
@@ -6264,7 +6487,7 @@ var YargsParser = class {
|
|
|
6264
6487
|
applyEnvVars(argv, false);
|
|
6265
6488
|
setConfig(argv);
|
|
6266
6489
|
setConfigObjects();
|
|
6267
|
-
applyDefaultsAndAliases(argv, flags.aliases,
|
|
6490
|
+
applyDefaultsAndAliases(argv, flags.aliases, defaults2, true);
|
|
6268
6491
|
applyCoercions(argv);
|
|
6269
6492
|
if (configuration["set-placeholder-key"])
|
|
6270
6493
|
setPlaceholderKeys(argv);
|
|
@@ -6341,8 +6564,8 @@ var YargsParser = class {
|
|
|
6341
6564
|
if (checkAllAliases(key, flags.bools) && !/^(true|false)$/.test(next)) {
|
|
6342
6565
|
argsToSet.push(true);
|
|
6343
6566
|
} else if (isUndefined(next) || isUndefined(argAfterEqualSign) && /^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next)) {
|
|
6344
|
-
if (
|
|
6345
|
-
const defVal =
|
|
6567
|
+
if (defaults2[key] !== void 0) {
|
|
6568
|
+
const defVal = defaults2[key];
|
|
6346
6569
|
argsToSet = Array.isArray(defVal) ? defVal : [defVal];
|
|
6347
6570
|
}
|
|
6348
6571
|
} else {
|
|
@@ -6454,7 +6677,7 @@ var YargsParser = class {
|
|
|
6454
6677
|
}
|
|
6455
6678
|
function setConfig(argv2) {
|
|
6456
6679
|
const configLookup = /* @__PURE__ */ Object.create(null);
|
|
6457
|
-
applyDefaultsAndAliases(configLookup, flags.aliases,
|
|
6680
|
+
applyDefaultsAndAliases(configLookup, flags.aliases, defaults2);
|
|
6458
6681
|
Object.keys(flags.configs).forEach(function(configKey) {
|
|
6459
6682
|
const configPath = argv2[configKey] || configLookup[configKey];
|
|
6460
6683
|
if (configPath) {
|
|
@@ -6553,16 +6776,16 @@ var YargsParser = class {
|
|
|
6553
6776
|
});
|
|
6554
6777
|
return argv2;
|
|
6555
6778
|
}
|
|
6556
|
-
function applyDefaultsAndAliases(obj, aliases2,
|
|
6557
|
-
Object.keys(
|
|
6779
|
+
function applyDefaultsAndAliases(obj, aliases2, defaults3, canLog = false) {
|
|
6780
|
+
Object.keys(defaults3).forEach(function(key) {
|
|
6558
6781
|
if (!hasKey(obj, key.split("."))) {
|
|
6559
|
-
setKey(obj, key.split("."),
|
|
6782
|
+
setKey(obj, key.split("."), defaults3[key]);
|
|
6560
6783
|
if (canLog)
|
|
6561
6784
|
defaulted[key] = true;
|
|
6562
6785
|
(aliases2[key] || []).forEach(function(x) {
|
|
6563
6786
|
if (hasKey(obj, x.split(".")))
|
|
6564
6787
|
return;
|
|
6565
|
-
setKey(obj, x.split("."),
|
|
6788
|
+
setKey(obj, x.split("."), defaults3[key]);
|
|
6566
6789
|
});
|
|
6567
6790
|
}
|
|
6568
6791
|
});
|
|
@@ -6718,8 +6941,8 @@ var YargsParser = class {
|
|
|
6718
6941
|
return !hasFlagsMatching(arg, flagWithEquals, negatedBoolean, normalFlag, flagEndingInHyphen, flagEndingInDigits, flagEndingInNonWordCharacters);
|
|
6719
6942
|
}
|
|
6720
6943
|
function defaultValue(key) {
|
|
6721
|
-
if (!checkAllAliases(key, flags.bools) && !checkAllAliases(key, flags.counts) && `${key}` in
|
|
6722
|
-
return
|
|
6944
|
+
if (!checkAllAliases(key, flags.bools) && !checkAllAliases(key, flags.counts) && `${key}` in defaults2) {
|
|
6945
|
+
return defaults2[key];
|
|
6723
6946
|
} else {
|
|
6724
6947
|
return defaultForType(guessType(key));
|
|
6725
6948
|
}
|
|
@@ -7436,6 +7659,10 @@ var yargs_default = Yargs;
|
|
|
7436
7659
|
// src/api/generate-readme.ts
|
|
7437
7660
|
var import_node_stream = require("stream");
|
|
7438
7661
|
|
|
7662
|
+
// ../commons/github/lib/ClonedRepository.js
|
|
7663
|
+
var import_promises2 = require("fs/promises");
|
|
7664
|
+
var import_path6 = __toESM(require("path"), 1);
|
|
7665
|
+
|
|
7439
7666
|
// ../../node_modules/.pnpm/simple-git@3.30.0/node_modules/simple-git/dist/esm/index.js
|
|
7440
7667
|
var import_node_buffer = require("buffer");
|
|
7441
7668
|
var import_file_exists = __toESM(require_dist(), 1);
|
|
@@ -7660,9 +7887,9 @@ function filterType(input, filter, def) {
|
|
|
7660
7887
|
}
|
|
7661
7888
|
return arguments.length > 2 ? def : void 0;
|
|
7662
7889
|
}
|
|
7663
|
-
function filterPrimitives(input,
|
|
7890
|
+
function filterPrimitives(input, omit2) {
|
|
7664
7891
|
const type = isPathSpec(input) ? "string" : typeof input;
|
|
7665
|
-
return /number|string|boolean/.test(type) && (!
|
|
7892
|
+
return /number|string|boolean/.test(type) && (!omit2 || !omit2.includes(type));
|
|
7666
7893
|
}
|
|
7667
7894
|
function filterPlainObject(input) {
|
|
7668
7895
|
return !!input && objectToString(input) === "[object Object]";
|
|
@@ -7870,7 +8097,7 @@ function parseStringResponse(result, parsers12, texts, trim = true) {
|
|
|
7870
8097
|
}
|
|
7871
8098
|
return lines[i + offset];
|
|
7872
8099
|
};
|
|
7873
|
-
parsers12.some(({ parse }) =>
|
|
8100
|
+
parsers12.some(({ parse: parse2 }) => parse2(line, result));
|
|
7874
8101
|
}
|
|
7875
8102
|
});
|
|
7876
8103
|
return result;
|
|
@@ -9879,11 +10106,11 @@ function mergeTask(customArgs) {
|
|
|
9879
10106
|
commands: ["merge", ...customArgs],
|
|
9880
10107
|
format: "utf-8",
|
|
9881
10108
|
parser(stdOut, stdErr) {
|
|
9882
|
-
const
|
|
9883
|
-
if (
|
|
9884
|
-
throw new GitResponseError(
|
|
10109
|
+
const merge2 = parseMergeResult(stdOut, stdErr);
|
|
10110
|
+
if (merge2.failed) {
|
|
10111
|
+
throw new GitResponseError(merge2);
|
|
9885
10112
|
}
|
|
9886
|
-
return
|
|
10113
|
+
return merge2;
|
|
9887
10114
|
}
|
|
9888
10115
|
};
|
|
9889
10116
|
}
|
|
@@ -10058,8 +10285,8 @@ function renamedFile(line) {
|
|
|
10058
10285
|
to
|
|
10059
10286
|
};
|
|
10060
10287
|
}
|
|
10061
|
-
function parser3(indexX, indexY,
|
|
10062
|
-
return [`${indexX}${indexY}`,
|
|
10288
|
+
function parser3(indexX, indexY, handler2) {
|
|
10289
|
+
return [`${indexX}${indexY}`, handler2];
|
|
10063
10290
|
}
|
|
10064
10291
|
function conflicts(indexX, ...indexY) {
|
|
10065
10292
|
return indexY.map((y) => parser3(indexX, y, (result, file) => append(result.conflicted, file)));
|
|
@@ -10076,9 +10303,9 @@ function splitLine(result, lineStr) {
|
|
|
10076
10303
|
}
|
|
10077
10304
|
function data(index, workingDir, path4) {
|
|
10078
10305
|
const raw = `${index}${workingDir}`;
|
|
10079
|
-
const
|
|
10080
|
-
if (
|
|
10081
|
-
|
|
10306
|
+
const handler2 = parsers6.get(raw);
|
|
10307
|
+
if (handler2) {
|
|
10308
|
+
handler2(result, path4);
|
|
10082
10309
|
}
|
|
10083
10310
|
if (raw !== "##" && raw !== "!!") {
|
|
10084
10311
|
result.files.push(new FileStatusSummary(path4, index, workingDir));
|
|
@@ -10425,8 +10652,8 @@ var init_simple_git_api = __esm({
|
|
|
10425
10652
|
trailingFunctionArgument(arguments, false)
|
|
10426
10653
|
);
|
|
10427
10654
|
}
|
|
10428
|
-
outputHandler(
|
|
10429
|
-
this._executor.outputHandler =
|
|
10655
|
+
outputHandler(handler2) {
|
|
10656
|
+
this._executor.outputHandler = handler2;
|
|
10430
10657
|
return this;
|
|
10431
10658
|
}
|
|
10432
10659
|
push() {
|
|
@@ -10975,8 +11202,8 @@ function parseGetRemotesVerbose(text) {
|
|
|
10975
11202
|
});
|
|
10976
11203
|
return Object.values(remotes);
|
|
10977
11204
|
}
|
|
10978
|
-
function forEach(text,
|
|
10979
|
-
forEachLineWithContent(text, (line) =>
|
|
11205
|
+
function forEach(text, handler2) {
|
|
11206
|
+
forEachLineWithContent(text, (line) => handler2(line.split(/\s+/)));
|
|
10980
11207
|
}
|
|
10981
11208
|
var init_GetRemoteSummary = __esm({
|
|
10982
11209
|
"src/lib/responses/GetRemoteSummary.ts"() {
|
|
@@ -11479,20 +11706,20 @@ var require_git = __commonJS2({
|
|
|
11479
11706
|
return this._catFile("buffer", arguments);
|
|
11480
11707
|
};
|
|
11481
11708
|
Git2.prototype._catFile = function(format3, args) {
|
|
11482
|
-
var
|
|
11709
|
+
var handler2 = trailingFunctionArgument2(args);
|
|
11483
11710
|
var command = ["cat-file"];
|
|
11484
11711
|
var options = args[0];
|
|
11485
11712
|
if (typeof options === "string") {
|
|
11486
11713
|
return this._runTask(
|
|
11487
11714
|
configurationErrorTask2("Git.catFile: options must be supplied as an array of strings"),
|
|
11488
|
-
|
|
11715
|
+
handler2
|
|
11489
11716
|
);
|
|
11490
11717
|
}
|
|
11491
11718
|
if (Array.isArray(options)) {
|
|
11492
11719
|
command.push.apply(command, options);
|
|
11493
11720
|
}
|
|
11494
11721
|
const task = format3 === "buffer" ? straightThroughBufferTask2(command) : straightThroughStringTask2(command);
|
|
11495
|
-
return this._runTask(task,
|
|
11722
|
+
return this._runTask(task, handler2);
|
|
11496
11723
|
};
|
|
11497
11724
|
Git2.prototype.diff = function(options, then) {
|
|
11498
11725
|
const task = filterString2(options) ? configurationErrorTask2(
|
|
@@ -11981,15 +12208,9 @@ function gitInstanceFactory(baseDir, options) {
|
|
|
11981
12208
|
return new Git(config, plugins);
|
|
11982
12209
|
}
|
|
11983
12210
|
init_git_response_error();
|
|
12211
|
+
var simpleGit = gitInstanceFactory;
|
|
11984
12212
|
var esm_default2 = gitInstanceFactory;
|
|
11985
12213
|
|
|
11986
|
-
// ../commons/github/lib/cloneRepository.js
|
|
11987
|
-
var import_tmp_promise = __toESM(require_tmp_promise(), 1);
|
|
11988
|
-
|
|
11989
|
-
// ../commons/github/lib/ClonedRepository.js
|
|
11990
|
-
var import_promises2 = require("fs/promises");
|
|
11991
|
-
var import_path6 = __toESM(require("path"), 1);
|
|
11992
|
-
|
|
11993
12214
|
// ../commons/github/lib/constants.js
|
|
11994
12215
|
var DEFAULT_REMOTE = "github.com";
|
|
11995
12216
|
var README_FILEPATH = "README.md";
|
|
@@ -11999,13 +12220,19 @@ var GIT_DIR = ".git";
|
|
|
11999
12220
|
|
|
12000
12221
|
// ../commons/github/lib/ClonedRepository.js
|
|
12001
12222
|
var DEFAULT_IGNORED_FILES = [FERNIGNORE, GITIGNORE, GIT_DIR];
|
|
12002
|
-
var ClonedRepository = class {
|
|
12223
|
+
var ClonedRepository = class _ClonedRepository {
|
|
12003
12224
|
clonePath;
|
|
12004
12225
|
git;
|
|
12005
12226
|
constructor({ clonePath, git }) {
|
|
12006
12227
|
this.clonePath = clonePath;
|
|
12007
12228
|
this.git = git;
|
|
12008
12229
|
}
|
|
12230
|
+
static createAtPath(clonePath) {
|
|
12231
|
+
return new _ClonedRepository({
|
|
12232
|
+
clonePath,
|
|
12233
|
+
git: simpleGit(clonePath)
|
|
12234
|
+
});
|
|
12235
|
+
}
|
|
12009
12236
|
async getDefaultBranch() {
|
|
12010
12237
|
await this.git.cwd(this.clonePath);
|
|
12011
12238
|
const remoteInfo = await this.git.remote(["show", "origin"]);
|
|
@@ -12018,6 +12245,11 @@ var ClonedRepository = class {
|
|
|
12018
12245
|
}
|
|
12019
12246
|
return match[1].trim();
|
|
12020
12247
|
}
|
|
12248
|
+
async getCurrentBranch() {
|
|
12249
|
+
await this.git.cwd(this.clonePath);
|
|
12250
|
+
const branch = await this.git.branchLocal();
|
|
12251
|
+
return branch.current;
|
|
12252
|
+
}
|
|
12021
12253
|
async getReadme() {
|
|
12022
12254
|
return await this.readFile({ relativeFilePath: README_FILEPATH });
|
|
12023
12255
|
}
|
|
@@ -12045,6 +12277,11 @@ var ClonedRepository = class {
|
|
|
12045
12277
|
"--allow-empty": null
|
|
12046
12278
|
});
|
|
12047
12279
|
}
|
|
12280
|
+
async commitAllChanges(message) {
|
|
12281
|
+
await this.git.cwd(this.clonePath);
|
|
12282
|
+
await this.git.add(".");
|
|
12283
|
+
await this.commit(message);
|
|
12284
|
+
}
|
|
12048
12285
|
async checkout(branch) {
|
|
12049
12286
|
await this.git.cwd(this.clonePath);
|
|
12050
12287
|
try {
|
|
@@ -12116,6 +12353,9 @@ async function doesPathExist2(filepath) {
|
|
|
12116
12353
|
}
|
|
12117
12354
|
}
|
|
12118
12355
|
|
|
12356
|
+
// ../commons/github/lib/cloneRepository.js
|
|
12357
|
+
var import_tmp_promise = __toESM(require_tmp_promise(), 1);
|
|
12358
|
+
|
|
12119
12359
|
// ../commons/github/lib/parseRepository.js
|
|
12120
12360
|
function parseRepository(githubRepository) {
|
|
12121
12361
|
let remote = DEFAULT_REMOTE;
|
|
@@ -12159,12 +12399,16 @@ function getCloneUrl({ remote, owner, repo }) {
|
|
|
12159
12399
|
}
|
|
12160
12400
|
|
|
12161
12401
|
// ../commons/github/lib/cloneRepository.js
|
|
12162
|
-
async function cloneRepository({ githubRepository, installationToken }) {
|
|
12402
|
+
async function cloneRepository({ githubRepository, installationToken, targetDirectory, timeoutMs }) {
|
|
12163
12403
|
const repositoryReference = parseRepository(githubRepository);
|
|
12164
12404
|
const cloneUrl = installationToken != null ? repositoryReference.getAuthedCloneUrl(installationToken) : repositoryReference.cloneUrl;
|
|
12165
|
-
const
|
|
12166
|
-
const
|
|
12167
|
-
|
|
12405
|
+
const clonePath = targetDirectory ?? (await import_tmp_promise.default.dir()).path;
|
|
12406
|
+
const git = esm_default2(clonePath, {
|
|
12407
|
+
timeout: timeoutMs != null ? {
|
|
12408
|
+
block: timeoutMs
|
|
12409
|
+
// Kill the process if no data is received for the specified time
|
|
12410
|
+
} : void 0
|
|
12411
|
+
});
|
|
12168
12412
|
await git.clone(cloneUrl, ".");
|
|
12169
12413
|
return new ClonedRepository({
|
|
12170
12414
|
clonePath,
|
|
@@ -12172,9 +12416,244 @@ async function cloneRepository({ githubRepository, installationToken }) {
|
|
|
12172
12416
|
});
|
|
12173
12417
|
}
|
|
12174
12418
|
|
|
12175
|
-
//
|
|
12176
|
-
|
|
12177
|
-
|
|
12419
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
12420
|
+
function isLength(value) {
|
|
12421
|
+
return Number.isSafeInteger(value) && value >= 0;
|
|
12422
|
+
}
|
|
12423
|
+
|
|
12424
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
|
|
12425
|
+
function isArrayLike2(value) {
|
|
12426
|
+
return value != null && typeof value !== "function" && isLength(value.length);
|
|
12427
|
+
}
|
|
12428
|
+
|
|
12429
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.mjs
|
|
12430
|
+
function toString(value) {
|
|
12431
|
+
if (value == null) {
|
|
12432
|
+
return "";
|
|
12433
|
+
}
|
|
12434
|
+
if (typeof value === "string") {
|
|
12435
|
+
return value;
|
|
12436
|
+
}
|
|
12437
|
+
if (Array.isArray(value)) {
|
|
12438
|
+
return value.map(toString).join(",");
|
|
12439
|
+
}
|
|
12440
|
+
const result = String(value);
|
|
12441
|
+
if (result === "0" && Object.is(Number(value), -0)) {
|
|
12442
|
+
return "-0";
|
|
12443
|
+
}
|
|
12444
|
+
return result;
|
|
12445
|
+
}
|
|
12446
|
+
|
|
12447
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
|
|
12448
|
+
function isObject(value) {
|
|
12449
|
+
return value !== null && (typeof value === "object" || typeof value === "function");
|
|
12450
|
+
}
|
|
12451
|
+
|
|
12452
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/eq.mjs
|
|
12453
|
+
function eq(value, other) {
|
|
12454
|
+
return value === other || Number.isNaN(value) && Number.isNaN(other);
|
|
12455
|
+
}
|
|
12456
|
+
|
|
12457
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
|
|
12458
|
+
var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
|
|
12459
|
+
function isIndex(value, length = Number.MAX_SAFE_INTEGER) {
|
|
12460
|
+
switch (typeof value) {
|
|
12461
|
+
case "number": {
|
|
12462
|
+
return Number.isInteger(value) && value >= 0 && value < length;
|
|
12463
|
+
}
|
|
12464
|
+
case "symbol": {
|
|
12465
|
+
return false;
|
|
12466
|
+
}
|
|
12467
|
+
case "string": {
|
|
12468
|
+
return IS_UNSIGNED_INTEGER.test(value);
|
|
12469
|
+
}
|
|
12470
|
+
}
|
|
12471
|
+
}
|
|
12472
|
+
|
|
12473
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
|
|
12474
|
+
function isIterateeCall(value, index, object) {
|
|
12475
|
+
if (!isObject(object)) {
|
|
12476
|
+
return false;
|
|
12477
|
+
}
|
|
12478
|
+
if (typeof index === "number" && isArrayLike2(object) && isIndex(index) && index < object.length || typeof index === "string" && index in object) {
|
|
12479
|
+
return eq(object[index], value);
|
|
12480
|
+
}
|
|
12481
|
+
return false;
|
|
12482
|
+
}
|
|
12483
|
+
|
|
12484
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isNil.mjs
|
|
12485
|
+
function isNil(x) {
|
|
12486
|
+
return x == null;
|
|
12487
|
+
}
|
|
12488
|
+
|
|
12489
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/function/attempt.mjs
|
|
12490
|
+
function attempt(func, ...args) {
|
|
12491
|
+
try {
|
|
12492
|
+
return func(...args);
|
|
12493
|
+
} catch (e) {
|
|
12494
|
+
return e instanceof Error ? e : new Error(e);
|
|
12495
|
+
}
|
|
12496
|
+
}
|
|
12497
|
+
|
|
12498
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/defaults.mjs
|
|
12499
|
+
function defaults(object, ...sources) {
|
|
12500
|
+
object = Object(object);
|
|
12501
|
+
const objectProto = Object.prototype;
|
|
12502
|
+
let length = sources.length;
|
|
12503
|
+
const guard = length > 2 ? sources[2] : void 0;
|
|
12504
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
12505
|
+
length = 1;
|
|
12506
|
+
}
|
|
12507
|
+
for (let i = 0; i < length; i++) {
|
|
12508
|
+
if (isNil(sources[i])) {
|
|
12509
|
+
continue;
|
|
12510
|
+
}
|
|
12511
|
+
const source = sources[i];
|
|
12512
|
+
const keys = Object.keys(source);
|
|
12513
|
+
for (let j = 0; j < keys.length; j++) {
|
|
12514
|
+
const key = keys[j];
|
|
12515
|
+
const value = object[key];
|
|
12516
|
+
if (value === void 0 || !Object.hasOwn(object, key) && eq(value, objectProto[key])) {
|
|
12517
|
+
object[key] = source[key];
|
|
12518
|
+
}
|
|
12519
|
+
}
|
|
12520
|
+
}
|
|
12521
|
+
return object;
|
|
12522
|
+
}
|
|
12523
|
+
|
|
12524
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/capitalize.mjs
|
|
12525
|
+
function capitalize(str) {
|
|
12526
|
+
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
12527
|
+
}
|
|
12528
|
+
|
|
12529
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/words.mjs
|
|
12530
|
+
var CASE_SPLIT_PATTERN = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
|
|
12531
|
+
function words(str) {
|
|
12532
|
+
return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
|
|
12533
|
+
}
|
|
12534
|
+
|
|
12535
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/camelCase.mjs
|
|
12536
|
+
function camelCase2(str) {
|
|
12537
|
+
const words$1 = words(str);
|
|
12538
|
+
if (words$1.length === 0) {
|
|
12539
|
+
return "";
|
|
12540
|
+
}
|
|
12541
|
+
const [first2, ...rest] = words$1;
|
|
12542
|
+
return `${first2.toLowerCase()}${rest.map((word) => capitalize(word)).join("")}`;
|
|
12543
|
+
}
|
|
12544
|
+
|
|
12545
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/escape.mjs
|
|
12546
|
+
var htmlEscapes = {
|
|
12547
|
+
"&": "&",
|
|
12548
|
+
"<": "<",
|
|
12549
|
+
">": ">",
|
|
12550
|
+
'"': """,
|
|
12551
|
+
"'": "'"
|
|
12552
|
+
};
|
|
12553
|
+
function escape(str) {
|
|
12554
|
+
return str.replace(/[&<>"']/g, (match) => htmlEscapes[match]);
|
|
12555
|
+
}
|
|
12556
|
+
|
|
12557
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/string/escape.mjs
|
|
12558
|
+
function escape2(string) {
|
|
12559
|
+
return escape(toString(string));
|
|
12560
|
+
}
|
|
12561
|
+
|
|
12562
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/snakeCase.mjs
|
|
12563
|
+
function snakeCase(str) {
|
|
12564
|
+
const words$1 = words(str);
|
|
12565
|
+
return words$1.map((word) => word.toLowerCase()).join("_");
|
|
12566
|
+
}
|
|
12567
|
+
|
|
12568
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/string/template.mjs
|
|
12569
|
+
var esTemplateRegExp = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
|
|
12570
|
+
var unEscapedRegExp = /['\n\r\u2028\u2029\\]/g;
|
|
12571
|
+
var noMatchExp = /($^)/;
|
|
12572
|
+
var escapeMap = /* @__PURE__ */ new Map([
|
|
12573
|
+
["\\", "\\"],
|
|
12574
|
+
["'", "'"],
|
|
12575
|
+
["\n", "n"],
|
|
12576
|
+
["\r", "r"],
|
|
12577
|
+
["\u2028", "u2028"],
|
|
12578
|
+
["\u2029", "u2029"]
|
|
12579
|
+
]);
|
|
12580
|
+
function escapeString(match) {
|
|
12581
|
+
return `\\${escapeMap.get(match)}`;
|
|
12582
|
+
}
|
|
12583
|
+
var templateSettings = {
|
|
12584
|
+
escape: /<%-([\s\S]+?)%>/g,
|
|
12585
|
+
evaluate: /<%([\s\S]+?)%>/g,
|
|
12586
|
+
interpolate: /<%=([\s\S]+?)%>/g,
|
|
12587
|
+
variable: "",
|
|
12588
|
+
imports: {
|
|
12589
|
+
_: {
|
|
12590
|
+
escape: escape2,
|
|
12591
|
+
template
|
|
12592
|
+
}
|
|
12593
|
+
}
|
|
12594
|
+
};
|
|
12595
|
+
function template(string, options, guard) {
|
|
12596
|
+
string = toString(string);
|
|
12597
|
+
if (guard) {
|
|
12598
|
+
options = templateSettings;
|
|
12599
|
+
}
|
|
12600
|
+
options = defaults({ ...options }, templateSettings);
|
|
12601
|
+
const delimitersRegExp = new RegExp([
|
|
12602
|
+
options.escape?.source ?? noMatchExp.source,
|
|
12603
|
+
options.interpolate?.source ?? noMatchExp.source,
|
|
12604
|
+
options.interpolate ? esTemplateRegExp.source : noMatchExp.source,
|
|
12605
|
+
options.evaluate?.source ?? noMatchExp.source,
|
|
12606
|
+
"$"
|
|
12607
|
+
].join("|"), "g");
|
|
12608
|
+
let lastIndex = 0;
|
|
12609
|
+
let isEvaluated = false;
|
|
12610
|
+
let source = `__p += ''`;
|
|
12611
|
+
for (const match of string.matchAll(delimitersRegExp)) {
|
|
12612
|
+
const [fullMatch, escapeValue, interpolateValue, esTemplateValue, evaluateValue] = match;
|
|
12613
|
+
const { index } = match;
|
|
12614
|
+
source += ` + '${string.slice(lastIndex, index).replace(unEscapedRegExp, escapeString)}'`;
|
|
12615
|
+
if (escapeValue) {
|
|
12616
|
+
source += ` + _.escape(${escapeValue})`;
|
|
12617
|
+
}
|
|
12618
|
+
if (interpolateValue) {
|
|
12619
|
+
source += ` + ((${interpolateValue}) == null ? '' : ${interpolateValue})`;
|
|
12620
|
+
} else if (esTemplateValue) {
|
|
12621
|
+
source += ` + ((${esTemplateValue}) == null ? '' : ${esTemplateValue})`;
|
|
12622
|
+
}
|
|
12623
|
+
if (evaluateValue) {
|
|
12624
|
+
source += `;
|
|
12625
|
+
${evaluateValue};
|
|
12626
|
+
__p += ''`;
|
|
12627
|
+
isEvaluated = true;
|
|
12628
|
+
}
|
|
12629
|
+
lastIndex = index + fullMatch.length;
|
|
12630
|
+
}
|
|
12631
|
+
const imports = defaults({ ...options.imports }, templateSettings.imports);
|
|
12632
|
+
const importsKeys = Object.keys(imports);
|
|
12633
|
+
const importValues = Object.values(imports);
|
|
12634
|
+
const sourceURL = `//# sourceURL=${options.sourceURL ? String(options.sourceURL).replace(/[\r\n]/g, " ") : `es-toolkit.templateSource[${Date.now()}]`}
|
|
12635
|
+
`;
|
|
12636
|
+
const compiledFunction = `function(${options.variable || "obj"}) {
|
|
12637
|
+
let __p = '';
|
|
12638
|
+
${options.variable ? "" : "if (obj == null) { obj = {}; }"}
|
|
12639
|
+
${isEvaluated ? `function print() { __p += Array.prototype.join.call(arguments, ''); }` : ""}
|
|
12640
|
+
${options.variable ? source : `with(obj) {
|
|
12641
|
+
${source}
|
|
12642
|
+
}`}
|
|
12643
|
+
return __p;
|
|
12644
|
+
}`;
|
|
12645
|
+
const result = attempt(() => new Function(...importsKeys, `${sourceURL}return ${compiledFunction}`)(...importValues));
|
|
12646
|
+
result.source = compiledFunction;
|
|
12647
|
+
if (result instanceof Error) {
|
|
12648
|
+
throw result;
|
|
12649
|
+
}
|
|
12650
|
+
return result;
|
|
12651
|
+
}
|
|
12652
|
+
|
|
12653
|
+
// ../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/string/upperFirst.mjs
|
|
12654
|
+
function upperFirst(str) {
|
|
12655
|
+
return str.substring(0, 1).toUpperCase() + str.substring(1);
|
|
12656
|
+
}
|
|
12178
12657
|
|
|
12179
12658
|
// src/configuration/sdk/api/index.ts
|
|
12180
12659
|
var api_exports = {};
|
|
@@ -12955,7 +13434,7 @@ var ReadmeGenerator = class {
|
|
|
12955
13434
|
}
|
|
12956
13435
|
applyTemplateOptions(content, options) {
|
|
12957
13436
|
try {
|
|
12958
|
-
return
|
|
13437
|
+
return template(content, { interpolate: /{{([^}]+)}}/g })(options);
|
|
12959
13438
|
} catch (error) {
|
|
12960
13439
|
console.error(`[templates] ${JSON.stringify(error)}`);
|
|
12961
13440
|
return content;
|
|
@@ -13410,7 +13889,7 @@ function languageToTitle(language) {
|
|
|
13410
13889
|
}
|
|
13411
13890
|
}
|
|
13412
13891
|
function featureIDToTitle(featureID) {
|
|
13413
|
-
const
|
|
13892
|
+
const words2 = featureID.split("_").map((s) => pascalCase(s));
|
|
13414
13893
|
const lowercaseWords = /* @__PURE__ */ new Set([
|
|
13415
13894
|
"And",
|
|
13416
13895
|
"Or",
|
|
@@ -13427,8 +13906,8 @@ function featureIDToTitle(featureID) {
|
|
|
13427
13906
|
"To",
|
|
13428
13907
|
"As"
|
|
13429
13908
|
]);
|
|
13430
|
-
return
|
|
13431
|
-
if (index === 0 || index ===
|
|
13909
|
+
return words2.map((word, index) => {
|
|
13910
|
+
if (index === 0 || index === words2.length - 1) {
|
|
13432
13911
|
return word;
|
|
13433
13912
|
}
|
|
13434
13913
|
if (lowercaseWords.has(word)) {
|
|
@@ -13438,7 +13917,7 @@ function featureIDToTitle(featureID) {
|
|
|
13438
13917
|
}).join(" ");
|
|
13439
13918
|
}
|
|
13440
13919
|
function pascalCase(s) {
|
|
13441
|
-
return
|
|
13920
|
+
return upperFirst(camelCase2(s));
|
|
13442
13921
|
}
|
|
13443
13922
|
function getMajorVersion(version) {
|
|
13444
13923
|
return version.split(".")[0] ?? "0";
|
|
@@ -13451,7 +13930,6 @@ function toScreamingSnakeCase(s) {
|
|
|
13451
13930
|
}
|
|
13452
13931
|
|
|
13453
13932
|
// src/readme/ReadmeParser.ts
|
|
13454
|
-
var import_string2 = require("es-toolkit/string");
|
|
13455
13933
|
var ReadmeParser = class {
|
|
13456
13934
|
parse({ content }) {
|
|
13457
13935
|
let header = "";
|
|
@@ -13461,7 +13939,7 @@ var ReadmeParser = class {
|
|
|
13461
13939
|
for (const line of lines) {
|
|
13462
13940
|
const h2Match = line.match(/^##\s+(.*)/);
|
|
13463
13941
|
if (h2Match) {
|
|
13464
|
-
if (currentBlock) {
|
|
13942
|
+
if (currentBlock && !this.isTableOfContentsBlock(currentBlock.id)) {
|
|
13465
13943
|
blocks.push(currentBlock);
|
|
13466
13944
|
}
|
|
13467
13945
|
currentBlock = new Block({
|
|
@@ -13476,7 +13954,7 @@ var ReadmeParser = class {
|
|
|
13476
13954
|
currentBlock.content += `${line}
|
|
13477
13955
|
`;
|
|
13478
13956
|
}
|
|
13479
|
-
if (currentBlock) {
|
|
13957
|
+
if (currentBlock && !this.isTableOfContentsBlock(currentBlock.id)) {
|
|
13480
13958
|
blocks.push(currentBlock);
|
|
13481
13959
|
}
|
|
13482
13960
|
return {
|
|
@@ -13484,9 +13962,12 @@ var ReadmeParser = class {
|
|
|
13484
13962
|
blocks
|
|
13485
13963
|
};
|
|
13486
13964
|
}
|
|
13965
|
+
isTableOfContentsBlock(blockId) {
|
|
13966
|
+
return blockId === "TABLE_OF_CONTENTS" || blockId === "CONTENTS";
|
|
13967
|
+
}
|
|
13487
13968
|
};
|
|
13488
13969
|
function sectionNameToID(sectionName) {
|
|
13489
|
-
return
|
|
13970
|
+
return snakeCase(
|
|
13490
13971
|
sectionName.split(" ").map((word, index) => {
|
|
13491
13972
|
if (index === 0) {
|
|
13492
13973
|
return word;
|
|
@@ -13541,8 +14022,8 @@ var ReferenceGenerator = class {
|
|
|
13541
14022
|
if (section.description != null) {
|
|
13542
14023
|
await writer.writeLine(section.description);
|
|
13543
14024
|
}
|
|
13544
|
-
for (const
|
|
13545
|
-
await this.writeEndpoint({ endpoint, writer });
|
|
14025
|
+
for (const endpoint2 of section.endpoints) {
|
|
14026
|
+
await this.writeEndpoint({ endpoint: endpoint2, writer });
|
|
13546
14027
|
}
|
|
13547
14028
|
}
|
|
13548
14029
|
async writeSection({ section, writer }) {
|
|
@@ -13550,17 +14031,17 @@ var ReferenceGenerator = class {
|
|
|
13550
14031
|
if (section.description != null) {
|
|
13551
14032
|
await writer.writeLine(section.description);
|
|
13552
14033
|
}
|
|
13553
|
-
for (const
|
|
13554
|
-
await this.writeEndpoint({ endpoint, writer });
|
|
14034
|
+
for (const endpoint2 of section.endpoints) {
|
|
14035
|
+
await this.writeEndpoint({ endpoint: endpoint2, writer });
|
|
13555
14036
|
}
|
|
13556
14037
|
}
|
|
13557
|
-
async writeEndpoint({ endpoint, writer }) {
|
|
14038
|
+
async writeEndpoint({ endpoint: endpoint2, writer }) {
|
|
13558
14039
|
const stringWriter = new StringWriter();
|
|
13559
|
-
if (
|
|
14040
|
+
if (endpoint2.description != null) {
|
|
13560
14041
|
await stringWriter.writeLine(
|
|
13561
14042
|
`#### \u{1F4DD} Description
|
|
13562
14043
|
|
|
13563
|
-
${this.generateIndentedBlock(this.generateIndentedBlock(
|
|
14044
|
+
${this.generateIndentedBlock(this.generateIndentedBlock(endpoint2.description))}
|
|
13564
14045
|
`
|
|
13565
14046
|
);
|
|
13566
14047
|
}
|
|
@@ -13570,25 +14051,25 @@ ${this.generateIndentedBlock(this.generateIndentedBlock(endpoint.description))}
|
|
|
13570
14051
|
${this.generateIndentedBlock(
|
|
13571
14052
|
this.generateIndentedBlock(
|
|
13572
14053
|
`\`\`\`${this.referenceConfig.language.toLowerCase()}
|
|
13573
|
-
${
|
|
14054
|
+
${endpoint2.snippet}
|
|
13574
14055
|
\`\`\``
|
|
13575
14056
|
)
|
|
13576
14057
|
)}
|
|
13577
14058
|
`
|
|
13578
14059
|
);
|
|
13579
|
-
if (
|
|
14060
|
+
if (endpoint2.parameters.length > 0) {
|
|
13580
14061
|
await stringWriter.writeLine(
|
|
13581
14062
|
`#### \u2699\uFE0F Parameters
|
|
13582
14063
|
|
|
13583
14064
|
${this.generateIndentedBlock(
|
|
13584
|
-
|
|
14065
|
+
endpoint2.parameters.map((parameter) => this.generateIndentedBlock(this.generateParameter(parameter))).join("\n\n")
|
|
13585
14066
|
)}
|
|
13586
14067
|
`
|
|
13587
14068
|
);
|
|
13588
14069
|
}
|
|
13589
|
-
let linkedSnippet = this.wrapInLinksAndJoin(
|
|
13590
|
-
if (
|
|
13591
|
-
linkedSnippet += ` -> ${this.wrapInLink(
|
|
14070
|
+
let linkedSnippet = this.wrapInLinksAndJoin(endpoint2.title.snippetParts);
|
|
14071
|
+
if (endpoint2.title.returnValue != null) {
|
|
14072
|
+
linkedSnippet += ` -> ${this.wrapInLink(endpoint2.title.returnValue.text, endpoint2.title.returnValue.location)}`;
|
|
13592
14073
|
}
|
|
13593
14074
|
await writer.writeLine(`<details><summary><code>${linkedSnippet}</code></summary>`);
|
|
13594
14075
|
await writer.writeLine(this.generateIndentedBlock(stringWriter.toString()));
|
|
@@ -13627,8 +14108,3258 @@ async function generateReferenceToStream(params) {
|
|
|
13627
14108
|
});
|
|
13628
14109
|
}
|
|
13629
14110
|
|
|
14111
|
+
// ../../node_modules/.pnpm/universal-user-agent@6.0.1/node_modules/universal-user-agent/dist-web/index.js
|
|
14112
|
+
function getUserAgent() {
|
|
14113
|
+
if (typeof navigator === "object" && "userAgent" in navigator) {
|
|
14114
|
+
return navigator.userAgent;
|
|
14115
|
+
}
|
|
14116
|
+
if (typeof process === "object" && process.version !== void 0) {
|
|
14117
|
+
return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
|
|
14118
|
+
}
|
|
14119
|
+
return "<environment undetectable>";
|
|
14120
|
+
}
|
|
14121
|
+
|
|
14122
|
+
// ../../node_modules/.pnpm/@octokit+core@5.2.2/node_modules/@octokit/core/dist-web/index.js
|
|
14123
|
+
var import_before_after_hook = __toESM(require_before_after_hook());
|
|
14124
|
+
|
|
14125
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/version.js
|
|
14126
|
+
var VERSION = "9.0.6";
|
|
14127
|
+
|
|
14128
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/defaults.js
|
|
14129
|
+
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
|
14130
|
+
var DEFAULTS = {
|
|
14131
|
+
method: "GET",
|
|
14132
|
+
baseUrl: "https://api.github.com",
|
|
14133
|
+
headers: {
|
|
14134
|
+
accept: "application/vnd.github.v3+json",
|
|
14135
|
+
"user-agent": userAgent
|
|
14136
|
+
},
|
|
14137
|
+
mediaType: {
|
|
14138
|
+
format: ""
|
|
14139
|
+
}
|
|
14140
|
+
};
|
|
14141
|
+
|
|
14142
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js
|
|
14143
|
+
function lowercaseKeys(object) {
|
|
14144
|
+
if (!object) {
|
|
14145
|
+
return {};
|
|
14146
|
+
}
|
|
14147
|
+
return Object.keys(object).reduce((newObj, key) => {
|
|
14148
|
+
newObj[key.toLowerCase()] = object[key];
|
|
14149
|
+
return newObj;
|
|
14150
|
+
}, {});
|
|
14151
|
+
}
|
|
14152
|
+
|
|
14153
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/is-plain-object.js
|
|
14154
|
+
function isPlainObject(value) {
|
|
14155
|
+
if (typeof value !== "object" || value === null)
|
|
14156
|
+
return false;
|
|
14157
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
14158
|
+
return false;
|
|
14159
|
+
const proto = Object.getPrototypeOf(value);
|
|
14160
|
+
if (proto === null)
|
|
14161
|
+
return true;
|
|
14162
|
+
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
14163
|
+
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
14164
|
+
}
|
|
14165
|
+
|
|
14166
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
|
|
14167
|
+
function mergeDeep(defaults2, options) {
|
|
14168
|
+
const result = Object.assign({}, defaults2);
|
|
14169
|
+
Object.keys(options).forEach((key) => {
|
|
14170
|
+
if (isPlainObject(options[key])) {
|
|
14171
|
+
if (!(key in defaults2))
|
|
14172
|
+
Object.assign(result, { [key]: options[key] });
|
|
14173
|
+
else
|
|
14174
|
+
result[key] = mergeDeep(defaults2[key], options[key]);
|
|
14175
|
+
} else {
|
|
14176
|
+
Object.assign(result, { [key]: options[key] });
|
|
14177
|
+
}
|
|
14178
|
+
});
|
|
14179
|
+
return result;
|
|
14180
|
+
}
|
|
14181
|
+
|
|
14182
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
|
|
14183
|
+
function removeUndefinedProperties(obj) {
|
|
14184
|
+
for (const key in obj) {
|
|
14185
|
+
if (obj[key] === void 0) {
|
|
14186
|
+
delete obj[key];
|
|
14187
|
+
}
|
|
14188
|
+
}
|
|
14189
|
+
return obj;
|
|
14190
|
+
}
|
|
14191
|
+
|
|
14192
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/merge.js
|
|
14193
|
+
function merge(defaults2, route, options) {
|
|
14194
|
+
if (typeof route === "string") {
|
|
14195
|
+
let [method, url] = route.split(" ");
|
|
14196
|
+
options = Object.assign(url ? { method, url } : { url: method }, options);
|
|
14197
|
+
} else {
|
|
14198
|
+
options = Object.assign({}, route);
|
|
14199
|
+
}
|
|
14200
|
+
options.headers = lowercaseKeys(options.headers);
|
|
14201
|
+
removeUndefinedProperties(options);
|
|
14202
|
+
removeUndefinedProperties(options.headers);
|
|
14203
|
+
const mergedOptions = mergeDeep(defaults2 || {}, options);
|
|
14204
|
+
if (options.url === "/graphql") {
|
|
14205
|
+
if (defaults2 && defaults2.mediaType.previews?.length) {
|
|
14206
|
+
mergedOptions.mediaType.previews = defaults2.mediaType.previews.filter(
|
|
14207
|
+
(preview) => !mergedOptions.mediaType.previews.includes(preview)
|
|
14208
|
+
).concat(mergedOptions.mediaType.previews);
|
|
14209
|
+
}
|
|
14210
|
+
mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, ""));
|
|
14211
|
+
}
|
|
14212
|
+
return mergedOptions;
|
|
14213
|
+
}
|
|
14214
|
+
|
|
14215
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js
|
|
14216
|
+
function addQueryParameters(url, parameters) {
|
|
14217
|
+
const separator = /\?/.test(url) ? "&" : "?";
|
|
14218
|
+
const names = Object.keys(parameters);
|
|
14219
|
+
if (names.length === 0) {
|
|
14220
|
+
return url;
|
|
14221
|
+
}
|
|
14222
|
+
return url + separator + names.map((name) => {
|
|
14223
|
+
if (name === "q") {
|
|
14224
|
+
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
|
|
14225
|
+
}
|
|
14226
|
+
return `${name}=${encodeURIComponent(parameters[name])}`;
|
|
14227
|
+
}).join("&");
|
|
14228
|
+
}
|
|
14229
|
+
|
|
14230
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js
|
|
14231
|
+
var urlVariableRegex = /\{[^{}}]+\}/g;
|
|
14232
|
+
function removeNonChars(variableName) {
|
|
14233
|
+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
|
|
14234
|
+
}
|
|
14235
|
+
function extractUrlVariableNames(url) {
|
|
14236
|
+
const matches = url.match(urlVariableRegex);
|
|
14237
|
+
if (!matches) {
|
|
14238
|
+
return [];
|
|
14239
|
+
}
|
|
14240
|
+
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
|
|
14241
|
+
}
|
|
14242
|
+
|
|
14243
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/omit.js
|
|
14244
|
+
function omit(object, keysToOmit) {
|
|
14245
|
+
const result = { __proto__: null };
|
|
14246
|
+
for (const key of Object.keys(object)) {
|
|
14247
|
+
if (keysToOmit.indexOf(key) === -1) {
|
|
14248
|
+
result[key] = object[key];
|
|
14249
|
+
}
|
|
14250
|
+
}
|
|
14251
|
+
return result;
|
|
14252
|
+
}
|
|
14253
|
+
|
|
14254
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/url-template.js
|
|
14255
|
+
function encodeReserved(str) {
|
|
14256
|
+
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
|
|
14257
|
+
if (!/%[0-9A-Fa-f]/.test(part)) {
|
|
14258
|
+
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
|
14259
|
+
}
|
|
14260
|
+
return part;
|
|
14261
|
+
}).join("");
|
|
14262
|
+
}
|
|
14263
|
+
function encodeUnreserved(str) {
|
|
14264
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
|
|
14265
|
+
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
|
14266
|
+
});
|
|
14267
|
+
}
|
|
14268
|
+
function encodeValue(operator, value, key) {
|
|
14269
|
+
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
|
|
14270
|
+
if (key) {
|
|
14271
|
+
return encodeUnreserved(key) + "=" + value;
|
|
14272
|
+
} else {
|
|
14273
|
+
return value;
|
|
14274
|
+
}
|
|
14275
|
+
}
|
|
14276
|
+
function isDefined(value) {
|
|
14277
|
+
return value !== void 0 && value !== null;
|
|
14278
|
+
}
|
|
14279
|
+
function isKeyOperator(operator) {
|
|
14280
|
+
return operator === ";" || operator === "&" || operator === "?";
|
|
14281
|
+
}
|
|
14282
|
+
function getValues(context, operator, key, modifier) {
|
|
14283
|
+
var value = context[key], result = [];
|
|
14284
|
+
if (isDefined(value) && value !== "") {
|
|
14285
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
14286
|
+
value = value.toString();
|
|
14287
|
+
if (modifier && modifier !== "*") {
|
|
14288
|
+
value = value.substring(0, parseInt(modifier, 10));
|
|
14289
|
+
}
|
|
14290
|
+
result.push(
|
|
14291
|
+
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
|
14292
|
+
);
|
|
14293
|
+
} else {
|
|
14294
|
+
if (modifier === "*") {
|
|
14295
|
+
if (Array.isArray(value)) {
|
|
14296
|
+
value.filter(isDefined).forEach(function(value2) {
|
|
14297
|
+
result.push(
|
|
14298
|
+
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
|
14299
|
+
);
|
|
14300
|
+
});
|
|
14301
|
+
} else {
|
|
14302
|
+
Object.keys(value).forEach(function(k) {
|
|
14303
|
+
if (isDefined(value[k])) {
|
|
14304
|
+
result.push(encodeValue(operator, value[k], k));
|
|
14305
|
+
}
|
|
14306
|
+
});
|
|
14307
|
+
}
|
|
14308
|
+
} else {
|
|
14309
|
+
const tmp2 = [];
|
|
14310
|
+
if (Array.isArray(value)) {
|
|
14311
|
+
value.filter(isDefined).forEach(function(value2) {
|
|
14312
|
+
tmp2.push(encodeValue(operator, value2));
|
|
14313
|
+
});
|
|
14314
|
+
} else {
|
|
14315
|
+
Object.keys(value).forEach(function(k) {
|
|
14316
|
+
if (isDefined(value[k])) {
|
|
14317
|
+
tmp2.push(encodeUnreserved(k));
|
|
14318
|
+
tmp2.push(encodeValue(operator, value[k].toString()));
|
|
14319
|
+
}
|
|
14320
|
+
});
|
|
14321
|
+
}
|
|
14322
|
+
if (isKeyOperator(operator)) {
|
|
14323
|
+
result.push(encodeUnreserved(key) + "=" + tmp2.join(","));
|
|
14324
|
+
} else if (tmp2.length !== 0) {
|
|
14325
|
+
result.push(tmp2.join(","));
|
|
14326
|
+
}
|
|
14327
|
+
}
|
|
14328
|
+
}
|
|
14329
|
+
} else {
|
|
14330
|
+
if (operator === ";") {
|
|
14331
|
+
if (isDefined(value)) {
|
|
14332
|
+
result.push(encodeUnreserved(key));
|
|
14333
|
+
}
|
|
14334
|
+
} else if (value === "" && (operator === "&" || operator === "?")) {
|
|
14335
|
+
result.push(encodeUnreserved(key) + "=");
|
|
14336
|
+
} else if (value === "") {
|
|
14337
|
+
result.push("");
|
|
14338
|
+
}
|
|
14339
|
+
}
|
|
14340
|
+
return result;
|
|
14341
|
+
}
|
|
14342
|
+
function parseUrl(template2) {
|
|
14343
|
+
return {
|
|
14344
|
+
expand: expand.bind(null, template2)
|
|
14345
|
+
};
|
|
14346
|
+
}
|
|
14347
|
+
function expand(template2, context) {
|
|
14348
|
+
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
|
14349
|
+
template2 = template2.replace(
|
|
14350
|
+
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
|
14351
|
+
function(_, expression, literal) {
|
|
14352
|
+
if (expression) {
|
|
14353
|
+
let operator = "";
|
|
14354
|
+
const values = [];
|
|
14355
|
+
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
|
14356
|
+
operator = expression.charAt(0);
|
|
14357
|
+
expression = expression.substr(1);
|
|
14358
|
+
}
|
|
14359
|
+
expression.split(/,/g).forEach(function(variable) {
|
|
14360
|
+
var tmp2 = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
|
14361
|
+
values.push(getValues(context, operator, tmp2[1], tmp2[2] || tmp2[3]));
|
|
14362
|
+
});
|
|
14363
|
+
if (operator && operator !== "+") {
|
|
14364
|
+
var separator = ",";
|
|
14365
|
+
if (operator === "?") {
|
|
14366
|
+
separator = "&";
|
|
14367
|
+
} else if (operator !== "#") {
|
|
14368
|
+
separator = operator;
|
|
14369
|
+
}
|
|
14370
|
+
return (values.length !== 0 ? operator : "") + values.join(separator);
|
|
14371
|
+
} else {
|
|
14372
|
+
return values.join(",");
|
|
14373
|
+
}
|
|
14374
|
+
} else {
|
|
14375
|
+
return encodeReserved(literal);
|
|
14376
|
+
}
|
|
14377
|
+
}
|
|
14378
|
+
);
|
|
14379
|
+
if (template2 === "/") {
|
|
14380
|
+
return template2;
|
|
14381
|
+
} else {
|
|
14382
|
+
return template2.replace(/\/$/, "");
|
|
14383
|
+
}
|
|
14384
|
+
}
|
|
14385
|
+
|
|
14386
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/parse.js
|
|
14387
|
+
function parse(options) {
|
|
14388
|
+
let method = options.method.toUpperCase();
|
|
14389
|
+
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
|
14390
|
+
let headers = Object.assign({}, options.headers);
|
|
14391
|
+
let body;
|
|
14392
|
+
let parameters = omit(options, [
|
|
14393
|
+
"method",
|
|
14394
|
+
"baseUrl",
|
|
14395
|
+
"url",
|
|
14396
|
+
"headers",
|
|
14397
|
+
"request",
|
|
14398
|
+
"mediaType"
|
|
14399
|
+
]);
|
|
14400
|
+
const urlVariableNames = extractUrlVariableNames(url);
|
|
14401
|
+
url = parseUrl(url).expand(parameters);
|
|
14402
|
+
if (!/^http/.test(url)) {
|
|
14403
|
+
url = options.baseUrl + url;
|
|
14404
|
+
}
|
|
14405
|
+
const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
|
|
14406
|
+
const remainingParameters = omit(parameters, omittedParameters);
|
|
14407
|
+
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
|
14408
|
+
if (!isBinaryRequest) {
|
|
14409
|
+
if (options.mediaType.format) {
|
|
14410
|
+
headers.accept = headers.accept.split(/,/).map(
|
|
14411
|
+
(format3) => format3.replace(
|
|
14412
|
+
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
|
14413
|
+
`application/vnd$1$2.${options.mediaType.format}`
|
|
14414
|
+
)
|
|
14415
|
+
).join(",");
|
|
14416
|
+
}
|
|
14417
|
+
if (url.endsWith("/graphql")) {
|
|
14418
|
+
if (options.mediaType.previews?.length) {
|
|
14419
|
+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
|
|
14420
|
+
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
|
14421
|
+
const format3 = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
|
14422
|
+
return `application/vnd.github.${preview}-preview${format3}`;
|
|
14423
|
+
}).join(",");
|
|
14424
|
+
}
|
|
14425
|
+
}
|
|
14426
|
+
}
|
|
14427
|
+
if (["GET", "HEAD"].includes(method)) {
|
|
14428
|
+
url = addQueryParameters(url, remainingParameters);
|
|
14429
|
+
} else {
|
|
14430
|
+
if ("data" in remainingParameters) {
|
|
14431
|
+
body = remainingParameters.data;
|
|
14432
|
+
} else {
|
|
14433
|
+
if (Object.keys(remainingParameters).length) {
|
|
14434
|
+
body = remainingParameters;
|
|
14435
|
+
}
|
|
14436
|
+
}
|
|
14437
|
+
}
|
|
14438
|
+
if (!headers["content-type"] && typeof body !== "undefined") {
|
|
14439
|
+
headers["content-type"] = "application/json; charset=utf-8";
|
|
14440
|
+
}
|
|
14441
|
+
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
|
14442
|
+
body = "";
|
|
14443
|
+
}
|
|
14444
|
+
return Object.assign(
|
|
14445
|
+
{ method, url, headers },
|
|
14446
|
+
typeof body !== "undefined" ? { body } : null,
|
|
14447
|
+
options.request ? { request: options.request } : null
|
|
14448
|
+
);
|
|
14449
|
+
}
|
|
14450
|
+
|
|
14451
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js
|
|
14452
|
+
function endpointWithDefaults(defaults2, route, options) {
|
|
14453
|
+
return parse(merge(defaults2, route, options));
|
|
14454
|
+
}
|
|
14455
|
+
|
|
14456
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/with-defaults.js
|
|
14457
|
+
function withDefaults(oldDefaults, newDefaults) {
|
|
14458
|
+
const DEFAULTS2 = merge(oldDefaults, newDefaults);
|
|
14459
|
+
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
|
|
14460
|
+
return Object.assign(endpoint2, {
|
|
14461
|
+
DEFAULTS: DEFAULTS2,
|
|
14462
|
+
defaults: withDefaults.bind(null, DEFAULTS2),
|
|
14463
|
+
merge: merge.bind(null, DEFAULTS2),
|
|
14464
|
+
parse
|
|
14465
|
+
});
|
|
14466
|
+
}
|
|
14467
|
+
|
|
14468
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/index.js
|
|
14469
|
+
var endpoint = withDefaults(null, DEFAULTS);
|
|
14470
|
+
|
|
14471
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/version.js
|
|
14472
|
+
var VERSION2 = "8.4.1";
|
|
14473
|
+
|
|
14474
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/is-plain-object.js
|
|
14475
|
+
function isPlainObject2(value) {
|
|
14476
|
+
if (typeof value !== "object" || value === null)
|
|
14477
|
+
return false;
|
|
14478
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
14479
|
+
return false;
|
|
14480
|
+
const proto = Object.getPrototypeOf(value);
|
|
14481
|
+
if (proto === null)
|
|
14482
|
+
return true;
|
|
14483
|
+
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
14484
|
+
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
14485
|
+
}
|
|
14486
|
+
|
|
14487
|
+
// ../../node_modules/.pnpm/deprecation@2.3.1/node_modules/deprecation/dist-web/index.js
|
|
14488
|
+
var Deprecation = class extends Error {
|
|
14489
|
+
constructor(message) {
|
|
14490
|
+
super(message);
|
|
14491
|
+
if (Error.captureStackTrace) {
|
|
14492
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14493
|
+
}
|
|
14494
|
+
this.name = "Deprecation";
|
|
14495
|
+
}
|
|
14496
|
+
};
|
|
14497
|
+
|
|
14498
|
+
// ../../node_modules/.pnpm/@octokit+request-error@5.1.1/node_modules/@octokit/request-error/dist-src/index.js
|
|
14499
|
+
var import_once = __toESM(require_once());
|
|
14500
|
+
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
|
14501
|
+
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
|
14502
|
+
var RequestError = class extends Error {
|
|
14503
|
+
constructor(message, statusCode, options) {
|
|
14504
|
+
super(message);
|
|
14505
|
+
if (Error.captureStackTrace) {
|
|
14506
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14507
|
+
}
|
|
14508
|
+
this.name = "HttpError";
|
|
14509
|
+
this.status = statusCode;
|
|
14510
|
+
let headers;
|
|
14511
|
+
if ("headers" in options && typeof options.headers !== "undefined") {
|
|
14512
|
+
headers = options.headers;
|
|
14513
|
+
}
|
|
14514
|
+
if ("response" in options) {
|
|
14515
|
+
this.response = options.response;
|
|
14516
|
+
headers = options.response.headers;
|
|
14517
|
+
}
|
|
14518
|
+
const requestCopy = Object.assign({}, options.request);
|
|
14519
|
+
if (options.request.headers.authorization) {
|
|
14520
|
+
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
14521
|
+
authorization: options.request.headers.authorization.replace(
|
|
14522
|
+
/(?<! ) .*$/,
|
|
14523
|
+
" [REDACTED]"
|
|
14524
|
+
)
|
|
14525
|
+
});
|
|
14526
|
+
}
|
|
14527
|
+
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
14528
|
+
this.request = requestCopy;
|
|
14529
|
+
Object.defineProperty(this, "code", {
|
|
14530
|
+
get() {
|
|
14531
|
+
logOnceCode(
|
|
14532
|
+
new Deprecation(
|
|
14533
|
+
"[@octokit/request-error] `error.code` is deprecated, use `error.status`."
|
|
14534
|
+
)
|
|
14535
|
+
);
|
|
14536
|
+
return statusCode;
|
|
14537
|
+
}
|
|
14538
|
+
});
|
|
14539
|
+
Object.defineProperty(this, "headers", {
|
|
14540
|
+
get() {
|
|
14541
|
+
logOnceHeaders(
|
|
14542
|
+
new Deprecation(
|
|
14543
|
+
"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."
|
|
14544
|
+
)
|
|
14545
|
+
);
|
|
14546
|
+
return headers || {};
|
|
14547
|
+
}
|
|
14548
|
+
});
|
|
14549
|
+
}
|
|
14550
|
+
};
|
|
14551
|
+
|
|
14552
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/get-buffer-response.js
|
|
14553
|
+
function getBufferResponse(response) {
|
|
14554
|
+
return response.arrayBuffer();
|
|
14555
|
+
}
|
|
14556
|
+
|
|
14557
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/fetch-wrapper.js
|
|
14558
|
+
function fetchWrapper(requestOptions) {
|
|
14559
|
+
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
|
|
14560
|
+
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
|
|
14561
|
+
if (isPlainObject2(requestOptions.body) || Array.isArray(requestOptions.body)) {
|
|
14562
|
+
requestOptions.body = JSON.stringify(requestOptions.body);
|
|
14563
|
+
}
|
|
14564
|
+
let headers = {};
|
|
14565
|
+
let status;
|
|
14566
|
+
let url;
|
|
14567
|
+
let { fetch } = globalThis;
|
|
14568
|
+
if (requestOptions.request?.fetch) {
|
|
14569
|
+
fetch = requestOptions.request.fetch;
|
|
14570
|
+
}
|
|
14571
|
+
if (!fetch) {
|
|
14572
|
+
throw new Error(
|
|
14573
|
+
"fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing"
|
|
14574
|
+
);
|
|
14575
|
+
}
|
|
14576
|
+
return fetch(requestOptions.url, {
|
|
14577
|
+
method: requestOptions.method,
|
|
14578
|
+
body: requestOptions.body,
|
|
14579
|
+
redirect: requestOptions.request?.redirect,
|
|
14580
|
+
headers: requestOptions.headers,
|
|
14581
|
+
signal: requestOptions.request?.signal,
|
|
14582
|
+
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
|
14583
|
+
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
|
14584
|
+
...requestOptions.body && { duplex: "half" }
|
|
14585
|
+
}).then(async (response) => {
|
|
14586
|
+
url = response.url;
|
|
14587
|
+
status = response.status;
|
|
14588
|
+
for (const keyAndValue of response.headers) {
|
|
14589
|
+
headers[keyAndValue[0]] = keyAndValue[1];
|
|
14590
|
+
}
|
|
14591
|
+
if ("deprecation" in headers) {
|
|
14592
|
+
const matches = headers.link && headers.link.match(/<([^<>]+)>; rel="deprecation"/);
|
|
14593
|
+
const deprecationLink = matches && matches.pop();
|
|
14594
|
+
log.warn(
|
|
14595
|
+
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
|
14596
|
+
);
|
|
14597
|
+
}
|
|
14598
|
+
if (status === 204 || status === 205) {
|
|
14599
|
+
return;
|
|
14600
|
+
}
|
|
14601
|
+
if (requestOptions.method === "HEAD") {
|
|
14602
|
+
if (status < 400) {
|
|
14603
|
+
return;
|
|
14604
|
+
}
|
|
14605
|
+
throw new RequestError(response.statusText, status, {
|
|
14606
|
+
response: {
|
|
14607
|
+
url,
|
|
14608
|
+
status,
|
|
14609
|
+
headers,
|
|
14610
|
+
data: void 0
|
|
14611
|
+
},
|
|
14612
|
+
request: requestOptions
|
|
14613
|
+
});
|
|
14614
|
+
}
|
|
14615
|
+
if (status === 304) {
|
|
14616
|
+
throw new RequestError("Not modified", status, {
|
|
14617
|
+
response: {
|
|
14618
|
+
url,
|
|
14619
|
+
status,
|
|
14620
|
+
headers,
|
|
14621
|
+
data: await getResponseData(response)
|
|
14622
|
+
},
|
|
14623
|
+
request: requestOptions
|
|
14624
|
+
});
|
|
14625
|
+
}
|
|
14626
|
+
if (status >= 400) {
|
|
14627
|
+
const data = await getResponseData(response);
|
|
14628
|
+
const error = new RequestError(toErrorMessage(data), status, {
|
|
14629
|
+
response: {
|
|
14630
|
+
url,
|
|
14631
|
+
status,
|
|
14632
|
+
headers,
|
|
14633
|
+
data
|
|
14634
|
+
},
|
|
14635
|
+
request: requestOptions
|
|
14636
|
+
});
|
|
14637
|
+
throw error;
|
|
14638
|
+
}
|
|
14639
|
+
return parseSuccessResponseBody ? await getResponseData(response) : response.body;
|
|
14640
|
+
}).then((data) => {
|
|
14641
|
+
return {
|
|
14642
|
+
status,
|
|
14643
|
+
url,
|
|
14644
|
+
headers,
|
|
14645
|
+
data
|
|
14646
|
+
};
|
|
14647
|
+
}).catch((error) => {
|
|
14648
|
+
if (error instanceof RequestError)
|
|
14649
|
+
throw error;
|
|
14650
|
+
else if (error.name === "AbortError")
|
|
14651
|
+
throw error;
|
|
14652
|
+
let message = error.message;
|
|
14653
|
+
if (error.name === "TypeError" && "cause" in error) {
|
|
14654
|
+
if (error.cause instanceof Error) {
|
|
14655
|
+
message = error.cause.message;
|
|
14656
|
+
} else if (typeof error.cause === "string") {
|
|
14657
|
+
message = error.cause;
|
|
14658
|
+
}
|
|
14659
|
+
}
|
|
14660
|
+
throw new RequestError(message, 500, {
|
|
14661
|
+
request: requestOptions
|
|
14662
|
+
});
|
|
14663
|
+
});
|
|
14664
|
+
}
|
|
14665
|
+
async function getResponseData(response) {
|
|
14666
|
+
const contentType = response.headers.get("content-type");
|
|
14667
|
+
if (/application\/json/.test(contentType)) {
|
|
14668
|
+
return response.json().catch(() => response.text()).catch(() => "");
|
|
14669
|
+
}
|
|
14670
|
+
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
|
|
14671
|
+
return response.text();
|
|
14672
|
+
}
|
|
14673
|
+
return getBufferResponse(response);
|
|
14674
|
+
}
|
|
14675
|
+
function toErrorMessage(data) {
|
|
14676
|
+
if (typeof data === "string")
|
|
14677
|
+
return data;
|
|
14678
|
+
let suffix;
|
|
14679
|
+
if ("documentation_url" in data) {
|
|
14680
|
+
suffix = ` - ${data.documentation_url}`;
|
|
14681
|
+
} else {
|
|
14682
|
+
suffix = "";
|
|
14683
|
+
}
|
|
14684
|
+
if ("message" in data) {
|
|
14685
|
+
if (Array.isArray(data.errors)) {
|
|
14686
|
+
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
|
|
14687
|
+
}
|
|
14688
|
+
return `${data.message}${suffix}`;
|
|
14689
|
+
}
|
|
14690
|
+
return `Unknown error: ${JSON.stringify(data)}`;
|
|
14691
|
+
}
|
|
14692
|
+
|
|
14693
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/with-defaults.js
|
|
14694
|
+
function withDefaults2(oldEndpoint, newDefaults) {
|
|
14695
|
+
const endpoint2 = oldEndpoint.defaults(newDefaults);
|
|
14696
|
+
const newApi = function(route, parameters) {
|
|
14697
|
+
const endpointOptions = endpoint2.merge(route, parameters);
|
|
14698
|
+
if (!endpointOptions.request || !endpointOptions.request.hook) {
|
|
14699
|
+
return fetchWrapper(endpoint2.parse(endpointOptions));
|
|
14700
|
+
}
|
|
14701
|
+
const request2 = (route2, parameters2) => {
|
|
14702
|
+
return fetchWrapper(
|
|
14703
|
+
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
|
14704
|
+
);
|
|
14705
|
+
};
|
|
14706
|
+
Object.assign(request2, {
|
|
14707
|
+
endpoint: endpoint2,
|
|
14708
|
+
defaults: withDefaults2.bind(null, endpoint2)
|
|
14709
|
+
});
|
|
14710
|
+
return endpointOptions.request.hook(request2, endpointOptions);
|
|
14711
|
+
};
|
|
14712
|
+
return Object.assign(newApi, {
|
|
14713
|
+
endpoint: endpoint2,
|
|
14714
|
+
defaults: withDefaults2.bind(null, endpoint2)
|
|
14715
|
+
});
|
|
14716
|
+
}
|
|
14717
|
+
|
|
14718
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/index.js
|
|
14719
|
+
var request = withDefaults2(endpoint, {
|
|
14720
|
+
headers: {
|
|
14721
|
+
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
|
|
14722
|
+
}
|
|
14723
|
+
});
|
|
14724
|
+
|
|
14725
|
+
// ../../node_modules/.pnpm/@octokit+graphql@7.1.1/node_modules/@octokit/graphql/dist-web/index.js
|
|
14726
|
+
var VERSION3 = "7.1.1";
|
|
14727
|
+
function _buildMessageForResponseErrors(data) {
|
|
14728
|
+
return `Request failed due to following response errors:
|
|
14729
|
+
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
|
14730
|
+
}
|
|
14731
|
+
var GraphqlResponseError = class extends Error {
|
|
14732
|
+
constructor(request2, headers, response) {
|
|
14733
|
+
super(_buildMessageForResponseErrors(response));
|
|
14734
|
+
this.request = request2;
|
|
14735
|
+
this.headers = headers;
|
|
14736
|
+
this.response = response;
|
|
14737
|
+
this.name = "GraphqlResponseError";
|
|
14738
|
+
this.errors = response.errors;
|
|
14739
|
+
this.data = response.data;
|
|
14740
|
+
if (Error.captureStackTrace) {
|
|
14741
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14742
|
+
}
|
|
14743
|
+
}
|
|
14744
|
+
};
|
|
14745
|
+
var NON_VARIABLE_OPTIONS = [
|
|
14746
|
+
"method",
|
|
14747
|
+
"baseUrl",
|
|
14748
|
+
"url",
|
|
14749
|
+
"headers",
|
|
14750
|
+
"request",
|
|
14751
|
+
"query",
|
|
14752
|
+
"mediaType"
|
|
14753
|
+
];
|
|
14754
|
+
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
|
14755
|
+
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
|
14756
|
+
function graphql(request2, query, options) {
|
|
14757
|
+
if (options) {
|
|
14758
|
+
if (typeof query === "string" && "query" in options) {
|
|
14759
|
+
return Promise.reject(
|
|
14760
|
+
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
|
14761
|
+
);
|
|
14762
|
+
}
|
|
14763
|
+
for (const key in options) {
|
|
14764
|
+
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue;
|
|
14765
|
+
return Promise.reject(
|
|
14766
|
+
new Error(
|
|
14767
|
+
`[@octokit/graphql] "${key}" cannot be used as variable name`
|
|
14768
|
+
)
|
|
14769
|
+
);
|
|
14770
|
+
}
|
|
14771
|
+
}
|
|
14772
|
+
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
|
14773
|
+
const requestOptions = Object.keys(
|
|
14774
|
+
parsedOptions
|
|
14775
|
+
).reduce((result, key) => {
|
|
14776
|
+
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
|
14777
|
+
result[key] = parsedOptions[key];
|
|
14778
|
+
return result;
|
|
14779
|
+
}
|
|
14780
|
+
if (!result.variables) {
|
|
14781
|
+
result.variables = {};
|
|
14782
|
+
}
|
|
14783
|
+
result.variables[key] = parsedOptions[key];
|
|
14784
|
+
return result;
|
|
14785
|
+
}, {});
|
|
14786
|
+
const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
|
|
14787
|
+
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
|
|
14788
|
+
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
|
|
14789
|
+
}
|
|
14790
|
+
return request2(requestOptions).then((response) => {
|
|
14791
|
+
if (response.data.errors) {
|
|
14792
|
+
const headers = {};
|
|
14793
|
+
for (const key of Object.keys(response.headers)) {
|
|
14794
|
+
headers[key] = response.headers[key];
|
|
14795
|
+
}
|
|
14796
|
+
throw new GraphqlResponseError(
|
|
14797
|
+
requestOptions,
|
|
14798
|
+
headers,
|
|
14799
|
+
response.data
|
|
14800
|
+
);
|
|
14801
|
+
}
|
|
14802
|
+
return response.data.data;
|
|
14803
|
+
});
|
|
14804
|
+
}
|
|
14805
|
+
function withDefaults3(request2, newDefaults) {
|
|
14806
|
+
const newRequest = request2.defaults(newDefaults);
|
|
14807
|
+
const newApi = (query, options) => {
|
|
14808
|
+
return graphql(newRequest, query, options);
|
|
14809
|
+
};
|
|
14810
|
+
return Object.assign(newApi, {
|
|
14811
|
+
defaults: withDefaults3.bind(null, newRequest),
|
|
14812
|
+
endpoint: newRequest.endpoint
|
|
14813
|
+
});
|
|
14814
|
+
}
|
|
14815
|
+
var graphql2 = withDefaults3(request, {
|
|
14816
|
+
headers: {
|
|
14817
|
+
"user-agent": `octokit-graphql.js/${VERSION3} ${getUserAgent()}`
|
|
14818
|
+
},
|
|
14819
|
+
method: "POST",
|
|
14820
|
+
url: "/graphql"
|
|
14821
|
+
});
|
|
14822
|
+
function withCustomRequest(customRequest) {
|
|
14823
|
+
return withDefaults3(customRequest, {
|
|
14824
|
+
method: "POST",
|
|
14825
|
+
url: "/graphql"
|
|
14826
|
+
});
|
|
14827
|
+
}
|
|
14828
|
+
|
|
14829
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/auth.js
|
|
14830
|
+
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
|
14831
|
+
var REGEX_IS_INSTALLATION = /^ghs_/;
|
|
14832
|
+
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
|
14833
|
+
async function auth(token) {
|
|
14834
|
+
const isApp = token.split(/\./).length === 3;
|
|
14835
|
+
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
|
|
14836
|
+
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
|
|
14837
|
+
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
|
14838
|
+
return {
|
|
14839
|
+
type: "token",
|
|
14840
|
+
token,
|
|
14841
|
+
tokenType
|
|
14842
|
+
};
|
|
14843
|
+
}
|
|
14844
|
+
|
|
14845
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js
|
|
14846
|
+
function withAuthorizationPrefix(token) {
|
|
14847
|
+
if (token.split(/\./).length === 3) {
|
|
14848
|
+
return `bearer ${token}`;
|
|
14849
|
+
}
|
|
14850
|
+
return `token ${token}`;
|
|
14851
|
+
}
|
|
14852
|
+
|
|
14853
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/hook.js
|
|
14854
|
+
async function hook(token, request2, route, parameters) {
|
|
14855
|
+
const endpoint2 = request2.endpoint.merge(
|
|
14856
|
+
route,
|
|
14857
|
+
parameters
|
|
14858
|
+
);
|
|
14859
|
+
endpoint2.headers.authorization = withAuthorizationPrefix(token);
|
|
14860
|
+
return request2(endpoint2);
|
|
14861
|
+
}
|
|
14862
|
+
|
|
14863
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/index.js
|
|
14864
|
+
var createTokenAuth = function createTokenAuth2(token) {
|
|
14865
|
+
if (!token) {
|
|
14866
|
+
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
14867
|
+
}
|
|
14868
|
+
if (typeof token !== "string") {
|
|
14869
|
+
throw new Error(
|
|
14870
|
+
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
|
14871
|
+
);
|
|
14872
|
+
}
|
|
14873
|
+
token = token.replace(/^(token|bearer) +/i, "");
|
|
14874
|
+
return Object.assign(auth.bind(null, token), {
|
|
14875
|
+
hook: hook.bind(null, token)
|
|
14876
|
+
});
|
|
14877
|
+
};
|
|
14878
|
+
|
|
14879
|
+
// ../../node_modules/.pnpm/@octokit+core@5.2.2/node_modules/@octokit/core/dist-web/index.js
|
|
14880
|
+
var VERSION4 = "5.2.2";
|
|
14881
|
+
var noop = () => {
|
|
14882
|
+
};
|
|
14883
|
+
var consoleWarn = console.warn.bind(console);
|
|
14884
|
+
var consoleError = console.error.bind(console);
|
|
14885
|
+
function createLogger2(logger = {}) {
|
|
14886
|
+
if (typeof logger.debug !== "function") {
|
|
14887
|
+
logger.debug = noop;
|
|
14888
|
+
}
|
|
14889
|
+
if (typeof logger.info !== "function") {
|
|
14890
|
+
logger.info = noop;
|
|
14891
|
+
}
|
|
14892
|
+
if (typeof logger.warn !== "function") {
|
|
14893
|
+
logger.warn = consoleWarn;
|
|
14894
|
+
}
|
|
14895
|
+
if (typeof logger.error !== "function") {
|
|
14896
|
+
logger.error = consoleError;
|
|
14897
|
+
}
|
|
14898
|
+
return logger;
|
|
14899
|
+
}
|
|
14900
|
+
var userAgentTrail = `octokit-core.js/${VERSION4} ${getUserAgent()}`;
|
|
14901
|
+
var Octokit = class {
|
|
14902
|
+
static {
|
|
14903
|
+
this.VERSION = VERSION4;
|
|
14904
|
+
}
|
|
14905
|
+
static defaults(defaults2) {
|
|
14906
|
+
const OctokitWithDefaults = class extends this {
|
|
14907
|
+
constructor(...args) {
|
|
14908
|
+
const options = args[0] || {};
|
|
14909
|
+
if (typeof defaults2 === "function") {
|
|
14910
|
+
super(defaults2(options));
|
|
14911
|
+
return;
|
|
14912
|
+
}
|
|
14913
|
+
super(
|
|
14914
|
+
Object.assign(
|
|
14915
|
+
{},
|
|
14916
|
+
defaults2,
|
|
14917
|
+
options,
|
|
14918
|
+
options.userAgent && defaults2.userAgent ? {
|
|
14919
|
+
userAgent: `${options.userAgent} ${defaults2.userAgent}`
|
|
14920
|
+
} : null
|
|
14921
|
+
)
|
|
14922
|
+
);
|
|
14923
|
+
}
|
|
14924
|
+
};
|
|
14925
|
+
return OctokitWithDefaults;
|
|
14926
|
+
}
|
|
14927
|
+
static {
|
|
14928
|
+
this.plugins = [];
|
|
14929
|
+
}
|
|
14930
|
+
/**
|
|
14931
|
+
* Attach a plugin (or many) to your Octokit instance.
|
|
14932
|
+
*
|
|
14933
|
+
* @example
|
|
14934
|
+
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
14935
|
+
*/
|
|
14936
|
+
static plugin(...newPlugins) {
|
|
14937
|
+
const currentPlugins = this.plugins;
|
|
14938
|
+
const NewOctokit = class extends this {
|
|
14939
|
+
static {
|
|
14940
|
+
this.plugins = currentPlugins.concat(
|
|
14941
|
+
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
|
14942
|
+
);
|
|
14943
|
+
}
|
|
14944
|
+
};
|
|
14945
|
+
return NewOctokit;
|
|
14946
|
+
}
|
|
14947
|
+
constructor(options = {}) {
|
|
14948
|
+
const hook2 = new import_before_after_hook.Collection();
|
|
14949
|
+
const requestDefaults = {
|
|
14950
|
+
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
|
14951
|
+
headers: {},
|
|
14952
|
+
request: Object.assign({}, options.request, {
|
|
14953
|
+
// @ts-ignore internal usage only, no need to type
|
|
14954
|
+
hook: hook2.bind(null, "request")
|
|
14955
|
+
}),
|
|
14956
|
+
mediaType: {
|
|
14957
|
+
previews: [],
|
|
14958
|
+
format: ""
|
|
14959
|
+
}
|
|
14960
|
+
};
|
|
14961
|
+
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
|
|
14962
|
+
if (options.baseUrl) {
|
|
14963
|
+
requestDefaults.baseUrl = options.baseUrl;
|
|
14964
|
+
}
|
|
14965
|
+
if (options.previews) {
|
|
14966
|
+
requestDefaults.mediaType.previews = options.previews;
|
|
14967
|
+
}
|
|
14968
|
+
if (options.timeZone) {
|
|
14969
|
+
requestDefaults.headers["time-zone"] = options.timeZone;
|
|
14970
|
+
}
|
|
14971
|
+
this.request = request.defaults(requestDefaults);
|
|
14972
|
+
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
|
14973
|
+
this.log = createLogger2(options.log);
|
|
14974
|
+
this.hook = hook2;
|
|
14975
|
+
if (!options.authStrategy) {
|
|
14976
|
+
if (!options.auth) {
|
|
14977
|
+
this.auth = async () => ({
|
|
14978
|
+
type: "unauthenticated"
|
|
14979
|
+
});
|
|
14980
|
+
} else {
|
|
14981
|
+
const auth2 = createTokenAuth(options.auth);
|
|
14982
|
+
hook2.wrap("request", auth2.hook);
|
|
14983
|
+
this.auth = auth2;
|
|
14984
|
+
}
|
|
14985
|
+
} else {
|
|
14986
|
+
const { authStrategy, ...otherOptions } = options;
|
|
14987
|
+
const auth2 = authStrategy(
|
|
14988
|
+
Object.assign(
|
|
14989
|
+
{
|
|
14990
|
+
request: this.request,
|
|
14991
|
+
log: this.log,
|
|
14992
|
+
// we pass the current octokit instance as well as its constructor options
|
|
14993
|
+
// to allow for authentication strategies that return a new octokit instance
|
|
14994
|
+
// that shares the same internal state as the current one. The original
|
|
14995
|
+
// requirement for this was the "event-octokit" authentication strategy
|
|
14996
|
+
// of https://github.com/probot/octokit-auth-probot.
|
|
14997
|
+
octokit: this,
|
|
14998
|
+
octokitOptions: otherOptions
|
|
14999
|
+
},
|
|
15000
|
+
options.auth
|
|
15001
|
+
)
|
|
15002
|
+
);
|
|
15003
|
+
hook2.wrap("request", auth2.hook);
|
|
15004
|
+
this.auth = auth2;
|
|
15005
|
+
}
|
|
15006
|
+
const classConstructor = this.constructor;
|
|
15007
|
+
for (let i = 0; i < classConstructor.plugins.length; ++i) {
|
|
15008
|
+
Object.assign(this, classConstructor.plugins[i](this, options));
|
|
15009
|
+
}
|
|
15010
|
+
}
|
|
15011
|
+
};
|
|
15012
|
+
|
|
15013
|
+
// ../../node_modules/.pnpm/@octokit+plugin-request-log@4.0.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-request-log/dist-src/version.js
|
|
15014
|
+
var VERSION5 = "4.0.1";
|
|
15015
|
+
|
|
15016
|
+
// ../../node_modules/.pnpm/@octokit+plugin-request-log@4.0.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-request-log/dist-src/index.js
|
|
15017
|
+
function requestLog(octokit) {
|
|
15018
|
+
octokit.hook.wrap("request", (request2, options) => {
|
|
15019
|
+
octokit.log.debug("request", options);
|
|
15020
|
+
const start = Date.now();
|
|
15021
|
+
const requestOptions = octokit.request.endpoint.parse(options);
|
|
15022
|
+
const path4 = requestOptions.url.replace(options.baseUrl, "");
|
|
15023
|
+
return request2(options).then((response) => {
|
|
15024
|
+
octokit.log.info(
|
|
15025
|
+
`${requestOptions.method} ${path4} - ${response.status} in ${Date.now() - start}ms`
|
|
15026
|
+
);
|
|
15027
|
+
return response;
|
|
15028
|
+
}).catch((error) => {
|
|
15029
|
+
octokit.log.info(
|
|
15030
|
+
`${requestOptions.method} ${path4} - ${error.status} in ${Date.now() - start}ms`
|
|
15031
|
+
);
|
|
15032
|
+
throw error;
|
|
15033
|
+
});
|
|
15034
|
+
});
|
|
15035
|
+
}
|
|
15036
|
+
requestLog.VERSION = VERSION5;
|
|
15037
|
+
|
|
15038
|
+
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@11.4.4-cjs.2_@octokit+core@5.2.2/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
|
|
15039
|
+
var VERSION6 = "11.4.4-cjs.2";
|
|
15040
|
+
function normalizePaginatedListResponse(response) {
|
|
15041
|
+
if (!response.data) {
|
|
15042
|
+
return {
|
|
15043
|
+
...response,
|
|
15044
|
+
data: []
|
|
15045
|
+
};
|
|
15046
|
+
}
|
|
15047
|
+
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
|
15048
|
+
if (!responseNeedsNormalization) return response;
|
|
15049
|
+
const incompleteResults = response.data.incomplete_results;
|
|
15050
|
+
const repositorySelection = response.data.repository_selection;
|
|
15051
|
+
const totalCount = response.data.total_count;
|
|
15052
|
+
delete response.data.incomplete_results;
|
|
15053
|
+
delete response.data.repository_selection;
|
|
15054
|
+
delete response.data.total_count;
|
|
15055
|
+
const namespaceKey = Object.keys(response.data)[0];
|
|
15056
|
+
const data = response.data[namespaceKey];
|
|
15057
|
+
response.data = data;
|
|
15058
|
+
if (typeof incompleteResults !== "undefined") {
|
|
15059
|
+
response.data.incomplete_results = incompleteResults;
|
|
15060
|
+
}
|
|
15061
|
+
if (typeof repositorySelection !== "undefined") {
|
|
15062
|
+
response.data.repository_selection = repositorySelection;
|
|
15063
|
+
}
|
|
15064
|
+
response.data.total_count = totalCount;
|
|
15065
|
+
return response;
|
|
15066
|
+
}
|
|
15067
|
+
function iterator(octokit, route, parameters) {
|
|
15068
|
+
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
|
15069
|
+
const requestMethod = typeof route === "function" ? route : octokit.request;
|
|
15070
|
+
const method = options.method;
|
|
15071
|
+
const headers = options.headers;
|
|
15072
|
+
let url = options.url;
|
|
15073
|
+
return {
|
|
15074
|
+
[Symbol.asyncIterator]: () => ({
|
|
15075
|
+
async next() {
|
|
15076
|
+
if (!url) return { done: true };
|
|
15077
|
+
try {
|
|
15078
|
+
const response = await requestMethod({ method, url, headers });
|
|
15079
|
+
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
15080
|
+
url = ((normalizedResponse.headers.link || "").match(
|
|
15081
|
+
/<([^<>]+)>;\s*rel="next"/
|
|
15082
|
+
) || [])[1];
|
|
15083
|
+
return { value: normalizedResponse };
|
|
15084
|
+
} catch (error) {
|
|
15085
|
+
if (error.status !== 409) throw error;
|
|
15086
|
+
url = "";
|
|
15087
|
+
return {
|
|
15088
|
+
value: {
|
|
15089
|
+
status: 200,
|
|
15090
|
+
headers: {},
|
|
15091
|
+
data: []
|
|
15092
|
+
}
|
|
15093
|
+
};
|
|
15094
|
+
}
|
|
15095
|
+
}
|
|
15096
|
+
})
|
|
15097
|
+
};
|
|
15098
|
+
}
|
|
15099
|
+
function paginate(octokit, route, parameters, mapFn) {
|
|
15100
|
+
if (typeof parameters === "function") {
|
|
15101
|
+
mapFn = parameters;
|
|
15102
|
+
parameters = void 0;
|
|
15103
|
+
}
|
|
15104
|
+
return gather(
|
|
15105
|
+
octokit,
|
|
15106
|
+
[],
|
|
15107
|
+
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
|
15108
|
+
mapFn
|
|
15109
|
+
);
|
|
15110
|
+
}
|
|
15111
|
+
function gather(octokit, results, iterator2, mapFn) {
|
|
15112
|
+
return iterator2.next().then((result) => {
|
|
15113
|
+
if (result.done) {
|
|
15114
|
+
return results;
|
|
15115
|
+
}
|
|
15116
|
+
let earlyExit = false;
|
|
15117
|
+
function done() {
|
|
15118
|
+
earlyExit = true;
|
|
15119
|
+
}
|
|
15120
|
+
results = results.concat(
|
|
15121
|
+
mapFn ? mapFn(result.value, done) : result.value.data
|
|
15122
|
+
);
|
|
15123
|
+
if (earlyExit) {
|
|
15124
|
+
return results;
|
|
15125
|
+
}
|
|
15126
|
+
return gather(octokit, results, iterator2, mapFn);
|
|
15127
|
+
});
|
|
15128
|
+
}
|
|
15129
|
+
var composePaginateRest = Object.assign(paginate, {
|
|
15130
|
+
iterator
|
|
15131
|
+
});
|
|
15132
|
+
function paginateRest(octokit) {
|
|
15133
|
+
return {
|
|
15134
|
+
paginate: Object.assign(paginate.bind(null, octokit), {
|
|
15135
|
+
iterator: iterator.bind(null, octokit)
|
|
15136
|
+
})
|
|
15137
|
+
};
|
|
15138
|
+
}
|
|
15139
|
+
paginateRest.VERSION = VERSION6;
|
|
15140
|
+
|
|
15141
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.2-cjs.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
|
15142
|
+
var VERSION7 = "13.3.2-cjs.1";
|
|
15143
|
+
|
|
15144
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.2-cjs.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js
|
|
15145
|
+
var Endpoints = {
|
|
15146
|
+
actions: {
|
|
15147
|
+
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
15148
|
+
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
15149
|
+
],
|
|
15150
|
+
addCustomLabelsToSelfHostedRunnerForRepo: [
|
|
15151
|
+
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
15152
|
+
],
|
|
15153
|
+
addRepoAccessToSelfHostedRunnerGroupInOrg: [
|
|
15154
|
+
"PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"
|
|
15155
|
+
],
|
|
15156
|
+
addSelectedRepoToOrgSecret: [
|
|
15157
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
15158
|
+
],
|
|
15159
|
+
addSelectedRepoToOrgVariable: [
|
|
15160
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
15161
|
+
],
|
|
15162
|
+
approveWorkflowRun: [
|
|
15163
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
|
15164
|
+
],
|
|
15165
|
+
cancelWorkflowRun: [
|
|
15166
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
|
15167
|
+
],
|
|
15168
|
+
createEnvironmentVariable: [
|
|
15169
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
15170
|
+
],
|
|
15171
|
+
createOrUpdateEnvironmentSecret: [
|
|
15172
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
15173
|
+
],
|
|
15174
|
+
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
|
15175
|
+
createOrUpdateRepoSecret: [
|
|
15176
|
+
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
15177
|
+
],
|
|
15178
|
+
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
|
15179
|
+
createRegistrationTokenForOrg: [
|
|
15180
|
+
"POST /orgs/{org}/actions/runners/registration-token"
|
|
15181
|
+
],
|
|
15182
|
+
createRegistrationTokenForRepo: [
|
|
15183
|
+
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
|
15184
|
+
],
|
|
15185
|
+
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
|
15186
|
+
createRemoveTokenForRepo: [
|
|
15187
|
+
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
|
15188
|
+
],
|
|
15189
|
+
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
|
15190
|
+
createWorkflowDispatch: [
|
|
15191
|
+
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
15192
|
+
],
|
|
15193
|
+
deleteActionsCacheById: [
|
|
15194
|
+
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
|
15195
|
+
],
|
|
15196
|
+
deleteActionsCacheByKey: [
|
|
15197
|
+
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
|
15198
|
+
],
|
|
15199
|
+
deleteArtifact: [
|
|
15200
|
+
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
15201
|
+
],
|
|
15202
|
+
deleteEnvironmentSecret: [
|
|
15203
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
15204
|
+
],
|
|
15205
|
+
deleteEnvironmentVariable: [
|
|
15206
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
15207
|
+
],
|
|
15208
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
|
15209
|
+
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
|
15210
|
+
deleteRepoSecret: [
|
|
15211
|
+
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
15212
|
+
],
|
|
15213
|
+
deleteRepoVariable: [
|
|
15214
|
+
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
|
15215
|
+
],
|
|
15216
|
+
deleteSelfHostedRunnerFromOrg: [
|
|
15217
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
|
15218
|
+
],
|
|
15219
|
+
deleteSelfHostedRunnerFromRepo: [
|
|
15220
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
15221
|
+
],
|
|
15222
|
+
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
15223
|
+
deleteWorkflowRunLogs: [
|
|
15224
|
+
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
15225
|
+
],
|
|
15226
|
+
disableSelectedRepositoryGithubActionsOrganization: [
|
|
15227
|
+
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
15228
|
+
],
|
|
15229
|
+
disableWorkflow: [
|
|
15230
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
|
15231
|
+
],
|
|
15232
|
+
downloadArtifact: [
|
|
15233
|
+
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
|
15234
|
+
],
|
|
15235
|
+
downloadJobLogsForWorkflowRun: [
|
|
15236
|
+
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
|
15237
|
+
],
|
|
15238
|
+
downloadWorkflowRunAttemptLogs: [
|
|
15239
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
|
15240
|
+
],
|
|
15241
|
+
downloadWorkflowRunLogs: [
|
|
15242
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
15243
|
+
],
|
|
15244
|
+
enableSelectedRepositoryGithubActionsOrganization: [
|
|
15245
|
+
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
15246
|
+
],
|
|
15247
|
+
enableWorkflow: [
|
|
15248
|
+
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
|
15249
|
+
],
|
|
15250
|
+
forceCancelWorkflowRun: [
|
|
15251
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"
|
|
15252
|
+
],
|
|
15253
|
+
generateRunnerJitconfigForOrg: [
|
|
15254
|
+
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
|
15255
|
+
],
|
|
15256
|
+
generateRunnerJitconfigForRepo: [
|
|
15257
|
+
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
|
15258
|
+
],
|
|
15259
|
+
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
|
15260
|
+
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
|
15261
|
+
getActionsCacheUsageByRepoForOrg: [
|
|
15262
|
+
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
|
15263
|
+
],
|
|
15264
|
+
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
|
15265
|
+
getAllowedActionsOrganization: [
|
|
15266
|
+
"GET /orgs/{org}/actions/permissions/selected-actions"
|
|
15267
|
+
],
|
|
15268
|
+
getAllowedActionsRepository: [
|
|
15269
|
+
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
15270
|
+
],
|
|
15271
|
+
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
|
15272
|
+
getCustomOidcSubClaimForRepo: [
|
|
15273
|
+
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
15274
|
+
],
|
|
15275
|
+
getEnvironmentPublicKey: [
|
|
15276
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"
|
|
15277
|
+
],
|
|
15278
|
+
getEnvironmentSecret: [
|
|
15279
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
15280
|
+
],
|
|
15281
|
+
getEnvironmentVariable: [
|
|
15282
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
15283
|
+
],
|
|
15284
|
+
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
15285
|
+
"GET /orgs/{org}/actions/permissions/workflow"
|
|
15286
|
+
],
|
|
15287
|
+
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
15288
|
+
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
15289
|
+
],
|
|
15290
|
+
getGithubActionsPermissionsOrganization: [
|
|
15291
|
+
"GET /orgs/{org}/actions/permissions"
|
|
15292
|
+
],
|
|
15293
|
+
getGithubActionsPermissionsRepository: [
|
|
15294
|
+
"GET /repos/{owner}/{repo}/actions/permissions"
|
|
15295
|
+
],
|
|
15296
|
+
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
|
15297
|
+
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
|
15298
|
+
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
|
15299
|
+
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
|
15300
|
+
getPendingDeploymentsForRun: [
|
|
15301
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
15302
|
+
],
|
|
15303
|
+
getRepoPermissions: [
|
|
15304
|
+
"GET /repos/{owner}/{repo}/actions/permissions",
|
|
15305
|
+
{},
|
|
15306
|
+
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
|
15307
|
+
],
|
|
15308
|
+
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
|
15309
|
+
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
|
15310
|
+
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
|
15311
|
+
getReviewsForRun: [
|
|
15312
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
|
15313
|
+
],
|
|
15314
|
+
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
|
15315
|
+
getSelfHostedRunnerForRepo: [
|
|
15316
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
15317
|
+
],
|
|
15318
|
+
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
|
15319
|
+
getWorkflowAccessToRepository: [
|
|
15320
|
+
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
|
15321
|
+
],
|
|
15322
|
+
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
15323
|
+
getWorkflowRunAttempt: [
|
|
15324
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
|
15325
|
+
],
|
|
15326
|
+
getWorkflowRunUsage: [
|
|
15327
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
|
15328
|
+
],
|
|
15329
|
+
getWorkflowUsage: [
|
|
15330
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
15331
|
+
],
|
|
15332
|
+
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
|
15333
|
+
listEnvironmentSecrets: [
|
|
15334
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
|
15335
|
+
],
|
|
15336
|
+
listEnvironmentVariables: [
|
|
15337
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
15338
|
+
],
|
|
15339
|
+
listJobsForWorkflowRun: [
|
|
15340
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
|
15341
|
+
],
|
|
15342
|
+
listJobsForWorkflowRunAttempt: [
|
|
15343
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
|
15344
|
+
],
|
|
15345
|
+
listLabelsForSelfHostedRunnerForOrg: [
|
|
15346
|
+
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
15347
|
+
],
|
|
15348
|
+
listLabelsForSelfHostedRunnerForRepo: [
|
|
15349
|
+
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
15350
|
+
],
|
|
15351
|
+
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
|
15352
|
+
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
|
15353
|
+
listRepoOrganizationSecrets: [
|
|
15354
|
+
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
|
15355
|
+
],
|
|
15356
|
+
listRepoOrganizationVariables: [
|
|
15357
|
+
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
|
15358
|
+
],
|
|
15359
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
|
15360
|
+
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
|
15361
|
+
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
|
15362
|
+
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
|
15363
|
+
listRunnerApplicationsForRepo: [
|
|
15364
|
+
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
|
15365
|
+
],
|
|
15366
|
+
listSelectedReposForOrgSecret: [
|
|
15367
|
+
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
15368
|
+
],
|
|
15369
|
+
listSelectedReposForOrgVariable: [
|
|
15370
|
+
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
|
15371
|
+
],
|
|
15372
|
+
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
15373
|
+
"GET /orgs/{org}/actions/permissions/repositories"
|
|
15374
|
+
],
|
|
15375
|
+
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
|
15376
|
+
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
|
15377
|
+
listWorkflowRunArtifacts: [
|
|
15378
|
+
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
|
15379
|
+
],
|
|
15380
|
+
listWorkflowRuns: [
|
|
15381
|
+
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
|
15382
|
+
],
|
|
15383
|
+
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
|
15384
|
+
reRunJobForWorkflowRun: [
|
|
15385
|
+
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
15386
|
+
],
|
|
15387
|
+
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
|
15388
|
+
reRunWorkflowFailedJobs: [
|
|
15389
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
15390
|
+
],
|
|
15391
|
+
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
|
15392
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
15393
|
+
],
|
|
15394
|
+
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
|
15395
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
15396
|
+
],
|
|
15397
|
+
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
|
15398
|
+
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
|
15399
|
+
],
|
|
15400
|
+
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
|
15401
|
+
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
|
15402
|
+
],
|
|
15403
|
+
removeSelectedRepoFromOrgSecret: [
|
|
15404
|
+
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
15405
|
+
],
|
|
15406
|
+
removeSelectedRepoFromOrgVariable: [
|
|
15407
|
+
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
15408
|
+
],
|
|
15409
|
+
reviewCustomGatesForRun: [
|
|
15410
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
|
15411
|
+
],
|
|
15412
|
+
reviewPendingDeploymentsForRun: [
|
|
15413
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
15414
|
+
],
|
|
15415
|
+
setAllowedActionsOrganization: [
|
|
15416
|
+
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
|
15417
|
+
],
|
|
15418
|
+
setAllowedActionsRepository: [
|
|
15419
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
15420
|
+
],
|
|
15421
|
+
setCustomLabelsForSelfHostedRunnerForOrg: [
|
|
15422
|
+
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
15423
|
+
],
|
|
15424
|
+
setCustomLabelsForSelfHostedRunnerForRepo: [
|
|
15425
|
+
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
15426
|
+
],
|
|
15427
|
+
setCustomOidcSubClaimForRepo: [
|
|
15428
|
+
"PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
15429
|
+
],
|
|
15430
|
+
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
15431
|
+
"PUT /orgs/{org}/actions/permissions/workflow"
|
|
15432
|
+
],
|
|
15433
|
+
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
15434
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
15435
|
+
],
|
|
15436
|
+
setGithubActionsPermissionsOrganization: [
|
|
15437
|
+
"PUT /orgs/{org}/actions/permissions"
|
|
15438
|
+
],
|
|
15439
|
+
setGithubActionsPermissionsRepository: [
|
|
15440
|
+
"PUT /repos/{owner}/{repo}/actions/permissions"
|
|
15441
|
+
],
|
|
15442
|
+
setSelectedReposForOrgSecret: [
|
|
15443
|
+
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
15444
|
+
],
|
|
15445
|
+
setSelectedReposForOrgVariable: [
|
|
15446
|
+
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
|
15447
|
+
],
|
|
15448
|
+
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
15449
|
+
"PUT /orgs/{org}/actions/permissions/repositories"
|
|
15450
|
+
],
|
|
15451
|
+
setWorkflowAccessToRepository: [
|
|
15452
|
+
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
|
15453
|
+
],
|
|
15454
|
+
updateEnvironmentVariable: [
|
|
15455
|
+
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
15456
|
+
],
|
|
15457
|
+
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
|
15458
|
+
updateRepoVariable: [
|
|
15459
|
+
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
|
15460
|
+
]
|
|
15461
|
+
},
|
|
15462
|
+
activity: {
|
|
15463
|
+
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
|
15464
|
+
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
|
15465
|
+
deleteThreadSubscription: [
|
|
15466
|
+
"DELETE /notifications/threads/{thread_id}/subscription"
|
|
15467
|
+
],
|
|
15468
|
+
getFeeds: ["GET /feeds"],
|
|
15469
|
+
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
|
15470
|
+
getThread: ["GET /notifications/threads/{thread_id}"],
|
|
15471
|
+
getThreadSubscriptionForAuthenticatedUser: [
|
|
15472
|
+
"GET /notifications/threads/{thread_id}/subscription"
|
|
15473
|
+
],
|
|
15474
|
+
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
|
15475
|
+
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
|
15476
|
+
listOrgEventsForAuthenticatedUser: [
|
|
15477
|
+
"GET /users/{username}/events/orgs/{org}"
|
|
15478
|
+
],
|
|
15479
|
+
listPublicEvents: ["GET /events"],
|
|
15480
|
+
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
|
15481
|
+
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
|
15482
|
+
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
|
15483
|
+
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
|
15484
|
+
listReceivedPublicEventsForUser: [
|
|
15485
|
+
"GET /users/{username}/received_events/public"
|
|
15486
|
+
],
|
|
15487
|
+
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
|
15488
|
+
listRepoNotificationsForAuthenticatedUser: [
|
|
15489
|
+
"GET /repos/{owner}/{repo}/notifications"
|
|
15490
|
+
],
|
|
15491
|
+
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
|
15492
|
+
listReposStarredByUser: ["GET /users/{username}/starred"],
|
|
15493
|
+
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
|
15494
|
+
listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
|
|
15495
|
+
listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
|
|
15496
|
+
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
|
|
15497
|
+
markNotificationsAsRead: ["PUT /notifications"],
|
|
15498
|
+
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
|
15499
|
+
markThreadAsDone: ["DELETE /notifications/threads/{thread_id}"],
|
|
15500
|
+
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
|
15501
|
+
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
|
15502
|
+
setThreadSubscription: [
|
|
15503
|
+
"PUT /notifications/threads/{thread_id}/subscription"
|
|
15504
|
+
],
|
|
15505
|
+
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
|
15506
|
+
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
|
15507
|
+
},
|
|
15508
|
+
apps: {
|
|
15509
|
+
addRepoToInstallation: [
|
|
15510
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
|
15511
|
+
{},
|
|
15512
|
+
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
|
15513
|
+
],
|
|
15514
|
+
addRepoToInstallationForAuthenticatedUser: [
|
|
15515
|
+
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
|
15516
|
+
],
|
|
15517
|
+
checkToken: ["POST /applications/{client_id}/token"],
|
|
15518
|
+
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
|
15519
|
+
createInstallationAccessToken: [
|
|
15520
|
+
"POST /app/installations/{installation_id}/access_tokens"
|
|
15521
|
+
],
|
|
15522
|
+
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
|
15523
|
+
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
|
15524
|
+
deleteToken: ["DELETE /applications/{client_id}/token"],
|
|
15525
|
+
getAuthenticated: ["GET /app"],
|
|
15526
|
+
getBySlug: ["GET /apps/{app_slug}"],
|
|
15527
|
+
getInstallation: ["GET /app/installations/{installation_id}"],
|
|
15528
|
+
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
|
15529
|
+
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
|
15530
|
+
getSubscriptionPlanForAccount: [
|
|
15531
|
+
"GET /marketplace_listing/accounts/{account_id}"
|
|
15532
|
+
],
|
|
15533
|
+
getSubscriptionPlanForAccountStubbed: [
|
|
15534
|
+
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
|
15535
|
+
],
|
|
15536
|
+
getUserInstallation: ["GET /users/{username}/installation"],
|
|
15537
|
+
getWebhookConfigForApp: ["GET /app/hook/config"],
|
|
15538
|
+
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
|
15539
|
+
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
|
15540
|
+
listAccountsForPlanStubbed: [
|
|
15541
|
+
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
|
15542
|
+
],
|
|
15543
|
+
listInstallationReposForAuthenticatedUser: [
|
|
15544
|
+
"GET /user/installations/{installation_id}/repositories"
|
|
15545
|
+
],
|
|
15546
|
+
listInstallationRequestsForAuthenticatedApp: [
|
|
15547
|
+
"GET /app/installation-requests"
|
|
15548
|
+
],
|
|
15549
|
+
listInstallations: ["GET /app/installations"],
|
|
15550
|
+
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
|
15551
|
+
listPlans: ["GET /marketplace_listing/plans"],
|
|
15552
|
+
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
|
15553
|
+
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
|
15554
|
+
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
|
15555
|
+
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
15556
|
+
"GET /user/marketplace_purchases/stubbed"
|
|
15557
|
+
],
|
|
15558
|
+
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
|
15559
|
+
redeliverWebhookDelivery: [
|
|
15560
|
+
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
|
15561
|
+
],
|
|
15562
|
+
removeRepoFromInstallation: [
|
|
15563
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
|
15564
|
+
{},
|
|
15565
|
+
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
|
15566
|
+
],
|
|
15567
|
+
removeRepoFromInstallationForAuthenticatedUser: [
|
|
15568
|
+
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
|
15569
|
+
],
|
|
15570
|
+
resetToken: ["PATCH /applications/{client_id}/token"],
|
|
15571
|
+
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
|
15572
|
+
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
|
15573
|
+
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
|
15574
|
+
unsuspendInstallation: [
|
|
15575
|
+
"DELETE /app/installations/{installation_id}/suspended"
|
|
15576
|
+
],
|
|
15577
|
+
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
|
15578
|
+
},
|
|
15579
|
+
billing: {
|
|
15580
|
+
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
|
15581
|
+
getGithubActionsBillingUser: [
|
|
15582
|
+
"GET /users/{username}/settings/billing/actions"
|
|
15583
|
+
],
|
|
15584
|
+
getGithubBillingUsageReportOrg: [
|
|
15585
|
+
"GET /organizations/{org}/settings/billing/usage"
|
|
15586
|
+
],
|
|
15587
|
+
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
|
15588
|
+
getGithubPackagesBillingUser: [
|
|
15589
|
+
"GET /users/{username}/settings/billing/packages"
|
|
15590
|
+
],
|
|
15591
|
+
getSharedStorageBillingOrg: [
|
|
15592
|
+
"GET /orgs/{org}/settings/billing/shared-storage"
|
|
15593
|
+
],
|
|
15594
|
+
getSharedStorageBillingUser: [
|
|
15595
|
+
"GET /users/{username}/settings/billing/shared-storage"
|
|
15596
|
+
]
|
|
15597
|
+
},
|
|
15598
|
+
checks: {
|
|
15599
|
+
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
|
15600
|
+
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
|
15601
|
+
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
|
15602
|
+
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
|
15603
|
+
listAnnotations: [
|
|
15604
|
+
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
|
15605
|
+
],
|
|
15606
|
+
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
|
15607
|
+
listForSuite: [
|
|
15608
|
+
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
|
15609
|
+
],
|
|
15610
|
+
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
|
15611
|
+
rerequestRun: [
|
|
15612
|
+
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
|
15613
|
+
],
|
|
15614
|
+
rerequestSuite: [
|
|
15615
|
+
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
|
15616
|
+
],
|
|
15617
|
+
setSuitesPreferences: [
|
|
15618
|
+
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
|
15619
|
+
],
|
|
15620
|
+
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
|
15621
|
+
},
|
|
15622
|
+
codeScanning: {
|
|
15623
|
+
commitAutofix: [
|
|
15624
|
+
"POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"
|
|
15625
|
+
],
|
|
15626
|
+
createAutofix: [
|
|
15627
|
+
"POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"
|
|
15628
|
+
],
|
|
15629
|
+
createVariantAnalysis: [
|
|
15630
|
+
"POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"
|
|
15631
|
+
],
|
|
15632
|
+
deleteAnalysis: [
|
|
15633
|
+
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
|
15634
|
+
],
|
|
15635
|
+
deleteCodeqlDatabase: [
|
|
15636
|
+
"DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
15637
|
+
],
|
|
15638
|
+
getAlert: [
|
|
15639
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
|
15640
|
+
{},
|
|
15641
|
+
{ renamedParameters: { alert_id: "alert_number" } }
|
|
15642
|
+
],
|
|
15643
|
+
getAnalysis: [
|
|
15644
|
+
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
|
15645
|
+
],
|
|
15646
|
+
getAutofix: [
|
|
15647
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"
|
|
15648
|
+
],
|
|
15649
|
+
getCodeqlDatabase: [
|
|
15650
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
15651
|
+
],
|
|
15652
|
+
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
|
15653
|
+
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
|
15654
|
+
getVariantAnalysis: [
|
|
15655
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"
|
|
15656
|
+
],
|
|
15657
|
+
getVariantAnalysisRepoTask: [
|
|
15658
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"
|
|
15659
|
+
],
|
|
15660
|
+
listAlertInstances: [
|
|
15661
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
|
15662
|
+
],
|
|
15663
|
+
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
|
15664
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
|
15665
|
+
listAlertsInstances: [
|
|
15666
|
+
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
15667
|
+
{},
|
|
15668
|
+
{ renamed: ["codeScanning", "listAlertInstances"] }
|
|
15669
|
+
],
|
|
15670
|
+
listCodeqlDatabases: [
|
|
15671
|
+
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
|
15672
|
+
],
|
|
15673
|
+
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
|
15674
|
+
updateAlert: [
|
|
15675
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
|
15676
|
+
],
|
|
15677
|
+
updateDefaultSetup: [
|
|
15678
|
+
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
|
15679
|
+
],
|
|
15680
|
+
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
|
15681
|
+
},
|
|
15682
|
+
codeSecurity: {
|
|
15683
|
+
attachConfiguration: [
|
|
15684
|
+
"POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"
|
|
15685
|
+
],
|
|
15686
|
+
attachEnterpriseConfiguration: [
|
|
15687
|
+
"POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"
|
|
15688
|
+
],
|
|
15689
|
+
createConfiguration: ["POST /orgs/{org}/code-security/configurations"],
|
|
15690
|
+
createConfigurationForEnterprise: [
|
|
15691
|
+
"POST /enterprises/{enterprise}/code-security/configurations"
|
|
15692
|
+
],
|
|
15693
|
+
deleteConfiguration: [
|
|
15694
|
+
"DELETE /orgs/{org}/code-security/configurations/{configuration_id}"
|
|
15695
|
+
],
|
|
15696
|
+
deleteConfigurationForEnterprise: [
|
|
15697
|
+
"DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
|
15698
|
+
],
|
|
15699
|
+
detachConfiguration: [
|
|
15700
|
+
"DELETE /orgs/{org}/code-security/configurations/detach"
|
|
15701
|
+
],
|
|
15702
|
+
getConfiguration: [
|
|
15703
|
+
"GET /orgs/{org}/code-security/configurations/{configuration_id}"
|
|
15704
|
+
],
|
|
15705
|
+
getConfigurationForRepository: [
|
|
15706
|
+
"GET /repos/{owner}/{repo}/code-security-configuration"
|
|
15707
|
+
],
|
|
15708
|
+
getConfigurationsForEnterprise: [
|
|
15709
|
+
"GET /enterprises/{enterprise}/code-security/configurations"
|
|
15710
|
+
],
|
|
15711
|
+
getConfigurationsForOrg: ["GET /orgs/{org}/code-security/configurations"],
|
|
15712
|
+
getDefaultConfigurations: [
|
|
15713
|
+
"GET /orgs/{org}/code-security/configurations/defaults"
|
|
15714
|
+
],
|
|
15715
|
+
getDefaultConfigurationsForEnterprise: [
|
|
15716
|
+
"GET /enterprises/{enterprise}/code-security/configurations/defaults"
|
|
15717
|
+
],
|
|
15718
|
+
getRepositoriesForConfiguration: [
|
|
15719
|
+
"GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"
|
|
15720
|
+
],
|
|
15721
|
+
getRepositoriesForEnterpriseConfiguration: [
|
|
15722
|
+
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"
|
|
15723
|
+
],
|
|
15724
|
+
getSingleConfigurationForEnterprise: [
|
|
15725
|
+
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
|
15726
|
+
],
|
|
15727
|
+
setConfigurationAsDefault: [
|
|
15728
|
+
"PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"
|
|
15729
|
+
],
|
|
15730
|
+
setConfigurationAsDefaultForEnterprise: [
|
|
15731
|
+
"PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"
|
|
15732
|
+
],
|
|
15733
|
+
updateConfiguration: [
|
|
15734
|
+
"PATCH /orgs/{org}/code-security/configurations/{configuration_id}"
|
|
15735
|
+
],
|
|
15736
|
+
updateEnterpriseConfiguration: [
|
|
15737
|
+
"PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
|
15738
|
+
]
|
|
15739
|
+
},
|
|
15740
|
+
codesOfConduct: {
|
|
15741
|
+
getAllCodesOfConduct: ["GET /codes_of_conduct"],
|
|
15742
|
+
getConductCode: ["GET /codes_of_conduct/{key}"]
|
|
15743
|
+
},
|
|
15744
|
+
codespaces: {
|
|
15745
|
+
addRepositoryForSecretForAuthenticatedUser: [
|
|
15746
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
15747
|
+
],
|
|
15748
|
+
addSelectedRepoToOrgSecret: [
|
|
15749
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
15750
|
+
],
|
|
15751
|
+
checkPermissionsForDevcontainer: [
|
|
15752
|
+
"GET /repos/{owner}/{repo}/codespaces/permissions_check"
|
|
15753
|
+
],
|
|
15754
|
+
codespaceMachinesForAuthenticatedUser: [
|
|
15755
|
+
"GET /user/codespaces/{codespace_name}/machines"
|
|
15756
|
+
],
|
|
15757
|
+
createForAuthenticatedUser: ["POST /user/codespaces"],
|
|
15758
|
+
createOrUpdateOrgSecret: [
|
|
15759
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
|
15760
|
+
],
|
|
15761
|
+
createOrUpdateRepoSecret: [
|
|
15762
|
+
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
15763
|
+
],
|
|
15764
|
+
createOrUpdateSecretForAuthenticatedUser: [
|
|
15765
|
+
"PUT /user/codespaces/secrets/{secret_name}"
|
|
15766
|
+
],
|
|
15767
|
+
createWithPrForAuthenticatedUser: [
|
|
15768
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
|
15769
|
+
],
|
|
15770
|
+
createWithRepoForAuthenticatedUser: [
|
|
15771
|
+
"POST /repos/{owner}/{repo}/codespaces"
|
|
15772
|
+
],
|
|
15773
|
+
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
|
15774
|
+
deleteFromOrganization: [
|
|
15775
|
+
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
|
15776
|
+
],
|
|
15777
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
15778
|
+
deleteRepoSecret: [
|
|
15779
|
+
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
15780
|
+
],
|
|
15781
|
+
deleteSecretForAuthenticatedUser: [
|
|
15782
|
+
"DELETE /user/codespaces/secrets/{secret_name}"
|
|
15783
|
+
],
|
|
15784
|
+
exportForAuthenticatedUser: [
|
|
15785
|
+
"POST /user/codespaces/{codespace_name}/exports"
|
|
15786
|
+
],
|
|
15787
|
+
getCodespacesForUserInOrg: [
|
|
15788
|
+
"GET /orgs/{org}/members/{username}/codespaces"
|
|
15789
|
+
],
|
|
15790
|
+
getExportDetailsForAuthenticatedUser: [
|
|
15791
|
+
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
|
15792
|
+
],
|
|
15793
|
+
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
|
15794
|
+
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
|
15795
|
+
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
15796
|
+
getPublicKeyForAuthenticatedUser: [
|
|
15797
|
+
"GET /user/codespaces/secrets/public-key"
|
|
15798
|
+
],
|
|
15799
|
+
getRepoPublicKey: [
|
|
15800
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
|
15801
|
+
],
|
|
15802
|
+
getRepoSecret: [
|
|
15803
|
+
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
15804
|
+
],
|
|
15805
|
+
getSecretForAuthenticatedUser: [
|
|
15806
|
+
"GET /user/codespaces/secrets/{secret_name}"
|
|
15807
|
+
],
|
|
15808
|
+
listDevcontainersInRepositoryForAuthenticatedUser: [
|
|
15809
|
+
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
|
15810
|
+
],
|
|
15811
|
+
listForAuthenticatedUser: ["GET /user/codespaces"],
|
|
15812
|
+
listInOrganization: [
|
|
15813
|
+
"GET /orgs/{org}/codespaces",
|
|
15814
|
+
{},
|
|
15815
|
+
{ renamedParameters: { org_id: "org" } }
|
|
15816
|
+
],
|
|
15817
|
+
listInRepositoryForAuthenticatedUser: [
|
|
15818
|
+
"GET /repos/{owner}/{repo}/codespaces"
|
|
15819
|
+
],
|
|
15820
|
+
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
|
15821
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
|
15822
|
+
listRepositoriesForSecretForAuthenticatedUser: [
|
|
15823
|
+
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
|
15824
|
+
],
|
|
15825
|
+
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
|
15826
|
+
listSelectedReposForOrgSecret: [
|
|
15827
|
+
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
15828
|
+
],
|
|
15829
|
+
preFlightWithRepoForAuthenticatedUser: [
|
|
15830
|
+
"GET /repos/{owner}/{repo}/codespaces/new"
|
|
15831
|
+
],
|
|
15832
|
+
publishForAuthenticatedUser: [
|
|
15833
|
+
"POST /user/codespaces/{codespace_name}/publish"
|
|
15834
|
+
],
|
|
15835
|
+
removeRepositoryForSecretForAuthenticatedUser: [
|
|
15836
|
+
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
15837
|
+
],
|
|
15838
|
+
removeSelectedRepoFromOrgSecret: [
|
|
15839
|
+
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
15840
|
+
],
|
|
15841
|
+
repoMachinesForAuthenticatedUser: [
|
|
15842
|
+
"GET /repos/{owner}/{repo}/codespaces/machines"
|
|
15843
|
+
],
|
|
15844
|
+
setRepositoriesForSecretForAuthenticatedUser: [
|
|
15845
|
+
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
|
15846
|
+
],
|
|
15847
|
+
setSelectedReposForOrgSecret: [
|
|
15848
|
+
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
15849
|
+
],
|
|
15850
|
+
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
|
15851
|
+
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
|
15852
|
+
stopInOrganization: [
|
|
15853
|
+
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
|
15854
|
+
],
|
|
15855
|
+
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
|
15856
|
+
},
|
|
15857
|
+
copilot: {
|
|
15858
|
+
addCopilotSeatsForTeams: [
|
|
15859
|
+
"POST /orgs/{org}/copilot/billing/selected_teams"
|
|
15860
|
+
],
|
|
15861
|
+
addCopilotSeatsForUsers: [
|
|
15862
|
+
"POST /orgs/{org}/copilot/billing/selected_users"
|
|
15863
|
+
],
|
|
15864
|
+
cancelCopilotSeatAssignmentForTeams: [
|
|
15865
|
+
"DELETE /orgs/{org}/copilot/billing/selected_teams"
|
|
15866
|
+
],
|
|
15867
|
+
cancelCopilotSeatAssignmentForUsers: [
|
|
15868
|
+
"DELETE /orgs/{org}/copilot/billing/selected_users"
|
|
15869
|
+
],
|
|
15870
|
+
copilotMetricsForOrganization: ["GET /orgs/{org}/copilot/metrics"],
|
|
15871
|
+
copilotMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],
|
|
15872
|
+
getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"],
|
|
15873
|
+
getCopilotSeatDetailsForUser: [
|
|
15874
|
+
"GET /orgs/{org}/members/{username}/copilot"
|
|
15875
|
+
],
|
|
15876
|
+
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
|
|
15877
|
+
usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
|
|
15878
|
+
usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
|
|
15879
|
+
},
|
|
15880
|
+
dependabot: {
|
|
15881
|
+
addSelectedRepoToOrgSecret: [
|
|
15882
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
15883
|
+
],
|
|
15884
|
+
createOrUpdateOrgSecret: [
|
|
15885
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
|
15886
|
+
],
|
|
15887
|
+
createOrUpdateRepoSecret: [
|
|
15888
|
+
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
15889
|
+
],
|
|
15890
|
+
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
15891
|
+
deleteRepoSecret: [
|
|
15892
|
+
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
15893
|
+
],
|
|
15894
|
+
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
|
15895
|
+
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
|
15896
|
+
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
15897
|
+
getRepoPublicKey: [
|
|
15898
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
|
15899
|
+
],
|
|
15900
|
+
getRepoSecret: [
|
|
15901
|
+
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
15902
|
+
],
|
|
15903
|
+
listAlertsForEnterprise: [
|
|
15904
|
+
"GET /enterprises/{enterprise}/dependabot/alerts"
|
|
15905
|
+
],
|
|
15906
|
+
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
|
15907
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
|
15908
|
+
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
|
15909
|
+
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
|
15910
|
+
listSelectedReposForOrgSecret: [
|
|
15911
|
+
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
15912
|
+
],
|
|
15913
|
+
removeSelectedRepoFromOrgSecret: [
|
|
15914
|
+
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
15915
|
+
],
|
|
15916
|
+
setSelectedReposForOrgSecret: [
|
|
15917
|
+
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
15918
|
+
],
|
|
15919
|
+
updateAlert: [
|
|
15920
|
+
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
|
15921
|
+
]
|
|
15922
|
+
},
|
|
15923
|
+
dependencyGraph: {
|
|
15924
|
+
createRepositorySnapshot: [
|
|
15925
|
+
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
|
15926
|
+
],
|
|
15927
|
+
diffRange: [
|
|
15928
|
+
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
|
15929
|
+
],
|
|
15930
|
+
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
|
15931
|
+
},
|
|
15932
|
+
emojis: { get: ["GET /emojis"] },
|
|
15933
|
+
gists: {
|
|
15934
|
+
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
|
15935
|
+
create: ["POST /gists"],
|
|
15936
|
+
createComment: ["POST /gists/{gist_id}/comments"],
|
|
15937
|
+
delete: ["DELETE /gists/{gist_id}"],
|
|
15938
|
+
deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
|
|
15939
|
+
fork: ["POST /gists/{gist_id}/forks"],
|
|
15940
|
+
get: ["GET /gists/{gist_id}"],
|
|
15941
|
+
getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
|
|
15942
|
+
getRevision: ["GET /gists/{gist_id}/{sha}"],
|
|
15943
|
+
list: ["GET /gists"],
|
|
15944
|
+
listComments: ["GET /gists/{gist_id}/comments"],
|
|
15945
|
+
listCommits: ["GET /gists/{gist_id}/commits"],
|
|
15946
|
+
listForUser: ["GET /users/{username}/gists"],
|
|
15947
|
+
listForks: ["GET /gists/{gist_id}/forks"],
|
|
15948
|
+
listPublic: ["GET /gists/public"],
|
|
15949
|
+
listStarred: ["GET /gists/starred"],
|
|
15950
|
+
star: ["PUT /gists/{gist_id}/star"],
|
|
15951
|
+
unstar: ["DELETE /gists/{gist_id}/star"],
|
|
15952
|
+
update: ["PATCH /gists/{gist_id}"],
|
|
15953
|
+
updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
|
|
15954
|
+
},
|
|
15955
|
+
git: {
|
|
15956
|
+
createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
|
|
15957
|
+
createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
|
|
15958
|
+
createRef: ["POST /repos/{owner}/{repo}/git/refs"],
|
|
15959
|
+
createTag: ["POST /repos/{owner}/{repo}/git/tags"],
|
|
15960
|
+
createTree: ["POST /repos/{owner}/{repo}/git/trees"],
|
|
15961
|
+
deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
|
|
15962
|
+
getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
|
|
15963
|
+
getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
|
|
15964
|
+
getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
|
|
15965
|
+
getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
|
|
15966
|
+
getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
|
|
15967
|
+
listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
|
|
15968
|
+
updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
|
|
15969
|
+
},
|
|
15970
|
+
gitignore: {
|
|
15971
|
+
getAllTemplates: ["GET /gitignore/templates"],
|
|
15972
|
+
getTemplate: ["GET /gitignore/templates/{name}"]
|
|
15973
|
+
},
|
|
15974
|
+
interactions: {
|
|
15975
|
+
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
|
15976
|
+
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
|
15977
|
+
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
|
15978
|
+
getRestrictionsForYourPublicRepos: [
|
|
15979
|
+
"GET /user/interaction-limits",
|
|
15980
|
+
{},
|
|
15981
|
+
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
|
15982
|
+
],
|
|
15983
|
+
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
|
15984
|
+
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
|
15985
|
+
removeRestrictionsForRepo: [
|
|
15986
|
+
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
|
15987
|
+
],
|
|
15988
|
+
removeRestrictionsForYourPublicRepos: [
|
|
15989
|
+
"DELETE /user/interaction-limits",
|
|
15990
|
+
{},
|
|
15991
|
+
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
|
15992
|
+
],
|
|
15993
|
+
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
|
15994
|
+
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
|
15995
|
+
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
|
15996
|
+
setRestrictionsForYourPublicRepos: [
|
|
15997
|
+
"PUT /user/interaction-limits",
|
|
15998
|
+
{},
|
|
15999
|
+
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
|
16000
|
+
]
|
|
16001
|
+
},
|
|
16002
|
+
issues: {
|
|
16003
|
+
addAssignees: [
|
|
16004
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
16005
|
+
],
|
|
16006
|
+
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
16007
|
+
addSubIssue: [
|
|
16008
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
|
|
16009
|
+
],
|
|
16010
|
+
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
|
16011
|
+
checkUserCanBeAssignedToIssue: [
|
|
16012
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
|
16013
|
+
],
|
|
16014
|
+
create: ["POST /repos/{owner}/{repo}/issues"],
|
|
16015
|
+
createComment: [
|
|
16016
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
|
16017
|
+
],
|
|
16018
|
+
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
|
16019
|
+
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
|
16020
|
+
deleteComment: [
|
|
16021
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
|
16022
|
+
],
|
|
16023
|
+
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
|
16024
|
+
deleteMilestone: [
|
|
16025
|
+
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
16026
|
+
],
|
|
16027
|
+
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
16028
|
+
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
16029
|
+
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
|
16030
|
+
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
|
|
16031
|
+
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
|
|
16032
|
+
list: ["GET /issues"],
|
|
16033
|
+
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
|
|
16034
|
+
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
|
|
16035
|
+
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
|
16036
|
+
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
|
16037
|
+
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
|
16038
|
+
listEventsForTimeline: [
|
|
16039
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
|
16040
|
+
],
|
|
16041
|
+
listForAuthenticatedUser: ["GET /user/issues"],
|
|
16042
|
+
listForOrg: ["GET /orgs/{org}/issues"],
|
|
16043
|
+
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
|
16044
|
+
listLabelsForMilestone: [
|
|
16045
|
+
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
|
16046
|
+
],
|
|
16047
|
+
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
|
16048
|
+
listLabelsOnIssue: [
|
|
16049
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
16050
|
+
],
|
|
16051
|
+
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
|
16052
|
+
listSubIssues: [
|
|
16053
|
+
"GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
|
|
16054
|
+
],
|
|
16055
|
+
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
16056
|
+
removeAllLabels: [
|
|
16057
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
16058
|
+
],
|
|
16059
|
+
removeAssignees: [
|
|
16060
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
16061
|
+
],
|
|
16062
|
+
removeLabel: [
|
|
16063
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
|
16064
|
+
],
|
|
16065
|
+
removeSubIssue: [
|
|
16066
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"
|
|
16067
|
+
],
|
|
16068
|
+
reprioritizeSubIssue: [
|
|
16069
|
+
"PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"
|
|
16070
|
+
],
|
|
16071
|
+
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
16072
|
+
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
16073
|
+
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
16074
|
+
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
16075
|
+
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
|
16076
|
+
updateMilestone: [
|
|
16077
|
+
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
16078
|
+
]
|
|
16079
|
+
},
|
|
16080
|
+
licenses: {
|
|
16081
|
+
get: ["GET /licenses/{license}"],
|
|
16082
|
+
getAllCommonlyUsed: ["GET /licenses"],
|
|
16083
|
+
getForRepo: ["GET /repos/{owner}/{repo}/license"]
|
|
16084
|
+
},
|
|
16085
|
+
markdown: {
|
|
16086
|
+
render: ["POST /markdown"],
|
|
16087
|
+
renderRaw: [
|
|
16088
|
+
"POST /markdown/raw",
|
|
16089
|
+
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
|
16090
|
+
]
|
|
16091
|
+
},
|
|
16092
|
+
meta: {
|
|
16093
|
+
get: ["GET /meta"],
|
|
16094
|
+
getAllVersions: ["GET /versions"],
|
|
16095
|
+
getOctocat: ["GET /octocat"],
|
|
16096
|
+
getZen: ["GET /zen"],
|
|
16097
|
+
root: ["GET /"]
|
|
16098
|
+
},
|
|
16099
|
+
migrations: {
|
|
16100
|
+
deleteArchiveForAuthenticatedUser: [
|
|
16101
|
+
"DELETE /user/migrations/{migration_id}/archive"
|
|
16102
|
+
],
|
|
16103
|
+
deleteArchiveForOrg: [
|
|
16104
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
|
16105
|
+
],
|
|
16106
|
+
downloadArchiveForOrg: [
|
|
16107
|
+
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
|
16108
|
+
],
|
|
16109
|
+
getArchiveForAuthenticatedUser: [
|
|
16110
|
+
"GET /user/migrations/{migration_id}/archive"
|
|
16111
|
+
],
|
|
16112
|
+
getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
|
|
16113
|
+
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
|
16114
|
+
listForAuthenticatedUser: ["GET /user/migrations"],
|
|
16115
|
+
listForOrg: ["GET /orgs/{org}/migrations"],
|
|
16116
|
+
listReposForAuthenticatedUser: [
|
|
16117
|
+
"GET /user/migrations/{migration_id}/repositories"
|
|
16118
|
+
],
|
|
16119
|
+
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
|
16120
|
+
listReposForUser: [
|
|
16121
|
+
"GET /user/migrations/{migration_id}/repositories",
|
|
16122
|
+
{},
|
|
16123
|
+
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
|
16124
|
+
],
|
|
16125
|
+
startForAuthenticatedUser: ["POST /user/migrations"],
|
|
16126
|
+
startForOrg: ["POST /orgs/{org}/migrations"],
|
|
16127
|
+
unlockRepoForAuthenticatedUser: [
|
|
16128
|
+
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
16129
|
+
],
|
|
16130
|
+
unlockRepoForOrg: [
|
|
16131
|
+
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
16132
|
+
]
|
|
16133
|
+
},
|
|
16134
|
+
oidc: {
|
|
16135
|
+
getOidcCustomSubTemplateForOrg: [
|
|
16136
|
+
"GET /orgs/{org}/actions/oidc/customization/sub"
|
|
16137
|
+
],
|
|
16138
|
+
updateOidcCustomSubTemplateForOrg: [
|
|
16139
|
+
"PUT /orgs/{org}/actions/oidc/customization/sub"
|
|
16140
|
+
]
|
|
16141
|
+
},
|
|
16142
|
+
orgs: {
|
|
16143
|
+
addSecurityManagerTeam: [
|
|
16144
|
+
"PUT /orgs/{org}/security-managers/teams/{team_slug}",
|
|
16145
|
+
{},
|
|
16146
|
+
{
|
|
16147
|
+
deprecated: "octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"
|
|
16148
|
+
}
|
|
16149
|
+
],
|
|
16150
|
+
assignTeamToOrgRole: [
|
|
16151
|
+
"PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
16152
|
+
],
|
|
16153
|
+
assignUserToOrgRole: [
|
|
16154
|
+
"PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
16155
|
+
],
|
|
16156
|
+
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
|
16157
|
+
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
|
16158
|
+
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
|
16159
|
+
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
|
16160
|
+
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
|
16161
|
+
convertMemberToOutsideCollaborator: [
|
|
16162
|
+
"PUT /orgs/{org}/outside_collaborators/{username}"
|
|
16163
|
+
],
|
|
16164
|
+
createInvitation: ["POST /orgs/{org}/invitations"],
|
|
16165
|
+
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
|
16166
|
+
createOrUpdateCustomPropertiesValuesForRepos: [
|
|
16167
|
+
"PATCH /orgs/{org}/properties/values"
|
|
16168
|
+
],
|
|
16169
|
+
createOrUpdateCustomProperty: [
|
|
16170
|
+
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
|
16171
|
+
],
|
|
16172
|
+
createWebhook: ["POST /orgs/{org}/hooks"],
|
|
16173
|
+
delete: ["DELETE /orgs/{org}"],
|
|
16174
|
+
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
|
16175
|
+
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
16176
|
+
"POST /orgs/{org}/{security_product}/{enablement}",
|
|
16177
|
+
{},
|
|
16178
|
+
{
|
|
16179
|
+
deprecated: "octokit.rest.orgs.enableOrDisableSecurityProductOnAllOrgRepos() is deprecated, see https://docs.github.com/rest/orgs/orgs#enable-or-disable-a-security-feature-for-an-organization"
|
|
16180
|
+
}
|
|
16181
|
+
],
|
|
16182
|
+
get: ["GET /orgs/{org}"],
|
|
16183
|
+
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
|
16184
|
+
getCustomProperty: [
|
|
16185
|
+
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
|
16186
|
+
],
|
|
16187
|
+
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
|
16188
|
+
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
|
16189
|
+
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
|
|
16190
|
+
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
|
16191
|
+
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
|
16192
|
+
getWebhookDelivery: [
|
|
16193
|
+
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
16194
|
+
],
|
|
16195
|
+
list: ["GET /organizations"],
|
|
16196
|
+
listAppInstallations: ["GET /orgs/{org}/installations"],
|
|
16197
|
+
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
|
16198
|
+
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
|
16199
|
+
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
|
16200
|
+
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
|
16201
|
+
listForAuthenticatedUser: ["GET /user/orgs"],
|
|
16202
|
+
listForUser: ["GET /users/{username}/orgs"],
|
|
16203
|
+
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
|
16204
|
+
listMembers: ["GET /orgs/{org}/members"],
|
|
16205
|
+
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
|
16206
|
+
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
|
|
16207
|
+
listOrgRoleUsers: ["GET /orgs/{org}/organization-roles/{role_id}/users"],
|
|
16208
|
+
listOrgRoles: ["GET /orgs/{org}/organization-roles"],
|
|
16209
|
+
listOrganizationFineGrainedPermissions: [
|
|
16210
|
+
"GET /orgs/{org}/organization-fine-grained-permissions"
|
|
16211
|
+
],
|
|
16212
|
+
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
|
16213
|
+
listPatGrantRepositories: [
|
|
16214
|
+
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
|
|
16215
|
+
],
|
|
16216
|
+
listPatGrantRequestRepositories: [
|
|
16217
|
+
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
|
16218
|
+
],
|
|
16219
|
+
listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"],
|
|
16220
|
+
listPatGrants: ["GET /orgs/{org}/personal-access-tokens"],
|
|
16221
|
+
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
|
16222
|
+
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
|
16223
|
+
listSecurityManagerTeams: [
|
|
16224
|
+
"GET /orgs/{org}/security-managers",
|
|
16225
|
+
{},
|
|
16226
|
+
{
|
|
16227
|
+
deprecated: "octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"
|
|
16228
|
+
}
|
|
16229
|
+
],
|
|
16230
|
+
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
|
16231
|
+
listWebhooks: ["GET /orgs/{org}/hooks"],
|
|
16232
|
+
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
|
16233
|
+
redeliverWebhookDelivery: [
|
|
16234
|
+
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
16235
|
+
],
|
|
16236
|
+
removeCustomProperty: [
|
|
16237
|
+
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
|
16238
|
+
],
|
|
16239
|
+
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
|
16240
|
+
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
|
16241
|
+
removeOutsideCollaborator: [
|
|
16242
|
+
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
|
16243
|
+
],
|
|
16244
|
+
removePublicMembershipForAuthenticatedUser: [
|
|
16245
|
+
"DELETE /orgs/{org}/public_members/{username}"
|
|
16246
|
+
],
|
|
16247
|
+
removeSecurityManagerTeam: [
|
|
16248
|
+
"DELETE /orgs/{org}/security-managers/teams/{team_slug}",
|
|
16249
|
+
{},
|
|
16250
|
+
{
|
|
16251
|
+
deprecated: "octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"
|
|
16252
|
+
}
|
|
16253
|
+
],
|
|
16254
|
+
reviewPatGrantRequest: [
|
|
16255
|
+
"POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
|
16256
|
+
],
|
|
16257
|
+
reviewPatGrantRequestsInBulk: [
|
|
16258
|
+
"POST /orgs/{org}/personal-access-token-requests"
|
|
16259
|
+
],
|
|
16260
|
+
revokeAllOrgRolesTeam: [
|
|
16261
|
+
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}"
|
|
16262
|
+
],
|
|
16263
|
+
revokeAllOrgRolesUser: [
|
|
16264
|
+
"DELETE /orgs/{org}/organization-roles/users/{username}"
|
|
16265
|
+
],
|
|
16266
|
+
revokeOrgRoleTeam: [
|
|
16267
|
+
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
16268
|
+
],
|
|
16269
|
+
revokeOrgRoleUser: [
|
|
16270
|
+
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
16271
|
+
],
|
|
16272
|
+
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
|
16273
|
+
setPublicMembershipForAuthenticatedUser: [
|
|
16274
|
+
"PUT /orgs/{org}/public_members/{username}"
|
|
16275
|
+
],
|
|
16276
|
+
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
|
16277
|
+
update: ["PATCH /orgs/{org}"],
|
|
16278
|
+
updateMembershipForAuthenticatedUser: [
|
|
16279
|
+
"PATCH /user/memberships/orgs/{org}"
|
|
16280
|
+
],
|
|
16281
|
+
updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"],
|
|
16282
|
+
updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"],
|
|
16283
|
+
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
|
16284
|
+
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
|
16285
|
+
},
|
|
16286
|
+
packages: {
|
|
16287
|
+
deletePackageForAuthenticatedUser: [
|
|
16288
|
+
"DELETE /user/packages/{package_type}/{package_name}"
|
|
16289
|
+
],
|
|
16290
|
+
deletePackageForOrg: [
|
|
16291
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
|
16292
|
+
],
|
|
16293
|
+
deletePackageForUser: [
|
|
16294
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
|
16295
|
+
],
|
|
16296
|
+
deletePackageVersionForAuthenticatedUser: [
|
|
16297
|
+
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
16298
|
+
],
|
|
16299
|
+
deletePackageVersionForOrg: [
|
|
16300
|
+
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
16301
|
+
],
|
|
16302
|
+
deletePackageVersionForUser: [
|
|
16303
|
+
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
16304
|
+
],
|
|
16305
|
+
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
|
16306
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
16307
|
+
{},
|
|
16308
|
+
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
|
16309
|
+
],
|
|
16310
|
+
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
|
16311
|
+
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
16312
|
+
{},
|
|
16313
|
+
{
|
|
16314
|
+
renamed: [
|
|
16315
|
+
"packages",
|
|
16316
|
+
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
|
16317
|
+
]
|
|
16318
|
+
}
|
|
16319
|
+
],
|
|
16320
|
+
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
|
16321
|
+
"GET /user/packages/{package_type}/{package_name}/versions"
|
|
16322
|
+
],
|
|
16323
|
+
getAllPackageVersionsForPackageOwnedByOrg: [
|
|
16324
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
|
16325
|
+
],
|
|
16326
|
+
getAllPackageVersionsForPackageOwnedByUser: [
|
|
16327
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
|
16328
|
+
],
|
|
16329
|
+
getPackageForAuthenticatedUser: [
|
|
16330
|
+
"GET /user/packages/{package_type}/{package_name}"
|
|
16331
|
+
],
|
|
16332
|
+
getPackageForOrganization: [
|
|
16333
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
|
16334
|
+
],
|
|
16335
|
+
getPackageForUser: [
|
|
16336
|
+
"GET /users/{username}/packages/{package_type}/{package_name}"
|
|
16337
|
+
],
|
|
16338
|
+
getPackageVersionForAuthenticatedUser: [
|
|
16339
|
+
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
16340
|
+
],
|
|
16341
|
+
getPackageVersionForOrganization: [
|
|
16342
|
+
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
16343
|
+
],
|
|
16344
|
+
getPackageVersionForUser: [
|
|
16345
|
+
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
16346
|
+
],
|
|
16347
|
+
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
|
16348
|
+
"GET /user/docker/conflicts"
|
|
16349
|
+
],
|
|
16350
|
+
listDockerMigrationConflictingPackagesForOrganization: [
|
|
16351
|
+
"GET /orgs/{org}/docker/conflicts"
|
|
16352
|
+
],
|
|
16353
|
+
listDockerMigrationConflictingPackagesForUser: [
|
|
16354
|
+
"GET /users/{username}/docker/conflicts"
|
|
16355
|
+
],
|
|
16356
|
+
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
|
16357
|
+
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
|
16358
|
+
listPackagesForUser: ["GET /users/{username}/packages"],
|
|
16359
|
+
restorePackageForAuthenticatedUser: [
|
|
16360
|
+
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
|
16361
|
+
],
|
|
16362
|
+
restorePackageForOrg: [
|
|
16363
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
|
16364
|
+
],
|
|
16365
|
+
restorePackageForUser: [
|
|
16366
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
|
16367
|
+
],
|
|
16368
|
+
restorePackageVersionForAuthenticatedUser: [
|
|
16369
|
+
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
16370
|
+
],
|
|
16371
|
+
restorePackageVersionForOrg: [
|
|
16372
|
+
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
16373
|
+
],
|
|
16374
|
+
restorePackageVersionForUser: [
|
|
16375
|
+
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
16376
|
+
]
|
|
16377
|
+
},
|
|
16378
|
+
privateRegistries: {
|
|
16379
|
+
createOrgPrivateRegistry: ["POST /orgs/{org}/private-registries"],
|
|
16380
|
+
deleteOrgPrivateRegistry: [
|
|
16381
|
+
"DELETE /orgs/{org}/private-registries/{secret_name}"
|
|
16382
|
+
],
|
|
16383
|
+
getOrgPrivateRegistry: ["GET /orgs/{org}/private-registries/{secret_name}"],
|
|
16384
|
+
getOrgPublicKey: ["GET /orgs/{org}/private-registries/public-key"],
|
|
16385
|
+
listOrgPrivateRegistries: ["GET /orgs/{org}/private-registries"],
|
|
16386
|
+
updateOrgPrivateRegistry: [
|
|
16387
|
+
"PATCH /orgs/{org}/private-registries/{secret_name}"
|
|
16388
|
+
]
|
|
16389
|
+
},
|
|
16390
|
+
projects: {
|
|
16391
|
+
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
|
16392
|
+
createCard: ["POST /projects/columns/{column_id}/cards"],
|
|
16393
|
+
createColumn: ["POST /projects/{project_id}/columns"],
|
|
16394
|
+
createForAuthenticatedUser: ["POST /user/projects"],
|
|
16395
|
+
createForOrg: ["POST /orgs/{org}/projects"],
|
|
16396
|
+
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
|
16397
|
+
delete: ["DELETE /projects/{project_id}"],
|
|
16398
|
+
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
|
16399
|
+
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
|
16400
|
+
get: ["GET /projects/{project_id}"],
|
|
16401
|
+
getCard: ["GET /projects/columns/cards/{card_id}"],
|
|
16402
|
+
getColumn: ["GET /projects/columns/{column_id}"],
|
|
16403
|
+
getPermissionForUser: [
|
|
16404
|
+
"GET /projects/{project_id}/collaborators/{username}/permission"
|
|
16405
|
+
],
|
|
16406
|
+
listCards: ["GET /projects/columns/{column_id}/cards"],
|
|
16407
|
+
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
|
16408
|
+
listColumns: ["GET /projects/{project_id}/columns"],
|
|
16409
|
+
listForOrg: ["GET /orgs/{org}/projects"],
|
|
16410
|
+
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
|
16411
|
+
listForUser: ["GET /users/{username}/projects"],
|
|
16412
|
+
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
|
16413
|
+
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
|
16414
|
+
removeCollaborator: [
|
|
16415
|
+
"DELETE /projects/{project_id}/collaborators/{username}"
|
|
16416
|
+
],
|
|
16417
|
+
update: ["PATCH /projects/{project_id}"],
|
|
16418
|
+
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
|
16419
|
+
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
|
16420
|
+
},
|
|
16421
|
+
pulls: {
|
|
16422
|
+
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
16423
|
+
create: ["POST /repos/{owner}/{repo}/pulls"],
|
|
16424
|
+
createReplyForReviewComment: [
|
|
16425
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
|
16426
|
+
],
|
|
16427
|
+
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
16428
|
+
createReviewComment: [
|
|
16429
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
16430
|
+
],
|
|
16431
|
+
deletePendingReview: [
|
|
16432
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
16433
|
+
],
|
|
16434
|
+
deleteReviewComment: [
|
|
16435
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
16436
|
+
],
|
|
16437
|
+
dismissReview: [
|
|
16438
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
|
16439
|
+
],
|
|
16440
|
+
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
16441
|
+
getReview: [
|
|
16442
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
16443
|
+
],
|
|
16444
|
+
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
|
16445
|
+
list: ["GET /repos/{owner}/{repo}/pulls"],
|
|
16446
|
+
listCommentsForReview: [
|
|
16447
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
|
16448
|
+
],
|
|
16449
|
+
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
|
16450
|
+
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
|
16451
|
+
listRequestedReviewers: [
|
|
16452
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
16453
|
+
],
|
|
16454
|
+
listReviewComments: [
|
|
16455
|
+
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
16456
|
+
],
|
|
16457
|
+
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
|
16458
|
+
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
16459
|
+
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
16460
|
+
removeRequestedReviewers: [
|
|
16461
|
+
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
16462
|
+
],
|
|
16463
|
+
requestReviewers: [
|
|
16464
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
16465
|
+
],
|
|
16466
|
+
submitReview: [
|
|
16467
|
+
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
|
16468
|
+
],
|
|
16469
|
+
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
16470
|
+
updateBranch: [
|
|
16471
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
|
16472
|
+
],
|
|
16473
|
+
updateReview: [
|
|
16474
|
+
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
16475
|
+
],
|
|
16476
|
+
updateReviewComment: [
|
|
16477
|
+
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
16478
|
+
]
|
|
16479
|
+
},
|
|
16480
|
+
rateLimit: { get: ["GET /rate_limit"] },
|
|
16481
|
+
reactions: {
|
|
16482
|
+
createForCommitComment: [
|
|
16483
|
+
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
16484
|
+
],
|
|
16485
|
+
createForIssue: [
|
|
16486
|
+
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
|
16487
|
+
],
|
|
16488
|
+
createForIssueComment: [
|
|
16489
|
+
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
16490
|
+
],
|
|
16491
|
+
createForPullRequestReviewComment: [
|
|
16492
|
+
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
16493
|
+
],
|
|
16494
|
+
createForRelease: [
|
|
16495
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
16496
|
+
],
|
|
16497
|
+
createForTeamDiscussionCommentInOrg: [
|
|
16498
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
16499
|
+
],
|
|
16500
|
+
createForTeamDiscussionInOrg: [
|
|
16501
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
16502
|
+
],
|
|
16503
|
+
deleteForCommitComment: [
|
|
16504
|
+
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
|
16505
|
+
],
|
|
16506
|
+
deleteForIssue: [
|
|
16507
|
+
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
|
16508
|
+
],
|
|
16509
|
+
deleteForIssueComment: [
|
|
16510
|
+
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
|
16511
|
+
],
|
|
16512
|
+
deleteForPullRequestComment: [
|
|
16513
|
+
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
|
16514
|
+
],
|
|
16515
|
+
deleteForRelease: [
|
|
16516
|
+
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
|
16517
|
+
],
|
|
16518
|
+
deleteForTeamDiscussion: [
|
|
16519
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
|
16520
|
+
],
|
|
16521
|
+
deleteForTeamDiscussionComment: [
|
|
16522
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
|
16523
|
+
],
|
|
16524
|
+
listForCommitComment: [
|
|
16525
|
+
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
16526
|
+
],
|
|
16527
|
+
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
|
16528
|
+
listForIssueComment: [
|
|
16529
|
+
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
16530
|
+
],
|
|
16531
|
+
listForPullRequestReviewComment: [
|
|
16532
|
+
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
16533
|
+
],
|
|
16534
|
+
listForRelease: [
|
|
16535
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
16536
|
+
],
|
|
16537
|
+
listForTeamDiscussionCommentInOrg: [
|
|
16538
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
16539
|
+
],
|
|
16540
|
+
listForTeamDiscussionInOrg: [
|
|
16541
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
16542
|
+
]
|
|
16543
|
+
},
|
|
16544
|
+
repos: {
|
|
16545
|
+
acceptInvitation: [
|
|
16546
|
+
"PATCH /user/repository_invitations/{invitation_id}",
|
|
16547
|
+
{},
|
|
16548
|
+
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
|
16549
|
+
],
|
|
16550
|
+
acceptInvitationForAuthenticatedUser: [
|
|
16551
|
+
"PATCH /user/repository_invitations/{invitation_id}"
|
|
16552
|
+
],
|
|
16553
|
+
addAppAccessRestrictions: [
|
|
16554
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
16555
|
+
{},
|
|
16556
|
+
{ mapToData: "apps" }
|
|
16557
|
+
],
|
|
16558
|
+
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
|
16559
|
+
addStatusCheckContexts: [
|
|
16560
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
16561
|
+
{},
|
|
16562
|
+
{ mapToData: "contexts" }
|
|
16563
|
+
],
|
|
16564
|
+
addTeamAccessRestrictions: [
|
|
16565
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
16566
|
+
{},
|
|
16567
|
+
{ mapToData: "teams" }
|
|
16568
|
+
],
|
|
16569
|
+
addUserAccessRestrictions: [
|
|
16570
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
16571
|
+
{},
|
|
16572
|
+
{ mapToData: "users" }
|
|
16573
|
+
],
|
|
16574
|
+
cancelPagesDeployment: [
|
|
16575
|
+
"POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"
|
|
16576
|
+
],
|
|
16577
|
+
checkAutomatedSecurityFixes: [
|
|
16578
|
+
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
|
16579
|
+
],
|
|
16580
|
+
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
|
16581
|
+
checkPrivateVulnerabilityReporting: [
|
|
16582
|
+
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
16583
|
+
],
|
|
16584
|
+
checkVulnerabilityAlerts: [
|
|
16585
|
+
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
|
16586
|
+
],
|
|
16587
|
+
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
|
16588
|
+
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
|
16589
|
+
compareCommitsWithBasehead: [
|
|
16590
|
+
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
|
16591
|
+
],
|
|
16592
|
+
createAttestation: ["POST /repos/{owner}/{repo}/attestations"],
|
|
16593
|
+
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
|
16594
|
+
createCommitComment: [
|
|
16595
|
+
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
16596
|
+
],
|
|
16597
|
+
createCommitSignatureProtection: [
|
|
16598
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
16599
|
+
],
|
|
16600
|
+
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
|
16601
|
+
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
|
16602
|
+
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
|
16603
|
+
createDeploymentBranchPolicy: [
|
|
16604
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
16605
|
+
],
|
|
16606
|
+
createDeploymentProtectionRule: [
|
|
16607
|
+
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
16608
|
+
],
|
|
16609
|
+
createDeploymentStatus: [
|
|
16610
|
+
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
16611
|
+
],
|
|
16612
|
+
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
|
16613
|
+
createForAuthenticatedUser: ["POST /user/repos"],
|
|
16614
|
+
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
|
16615
|
+
createInOrg: ["POST /orgs/{org}/repos"],
|
|
16616
|
+
createOrUpdateCustomPropertiesValues: [
|
|
16617
|
+
"PATCH /repos/{owner}/{repo}/properties/values"
|
|
16618
|
+
],
|
|
16619
|
+
createOrUpdateEnvironment: [
|
|
16620
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
|
16621
|
+
],
|
|
16622
|
+
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
|
16623
|
+
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
|
16624
|
+
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployments"],
|
|
16625
|
+
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
|
16626
|
+
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
|
16627
|
+
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
|
16628
|
+
createUsingTemplate: [
|
|
16629
|
+
"POST /repos/{template_owner}/{template_repo}/generate"
|
|
16630
|
+
],
|
|
16631
|
+
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
|
16632
|
+
declineInvitation: [
|
|
16633
|
+
"DELETE /user/repository_invitations/{invitation_id}",
|
|
16634
|
+
{},
|
|
16635
|
+
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
|
16636
|
+
],
|
|
16637
|
+
declineInvitationForAuthenticatedUser: [
|
|
16638
|
+
"DELETE /user/repository_invitations/{invitation_id}"
|
|
16639
|
+
],
|
|
16640
|
+
delete: ["DELETE /repos/{owner}/{repo}"],
|
|
16641
|
+
deleteAccessRestrictions: [
|
|
16642
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
16643
|
+
],
|
|
16644
|
+
deleteAdminBranchProtection: [
|
|
16645
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
16646
|
+
],
|
|
16647
|
+
deleteAnEnvironment: [
|
|
16648
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
|
16649
|
+
],
|
|
16650
|
+
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
16651
|
+
deleteBranchProtection: [
|
|
16652
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
16653
|
+
],
|
|
16654
|
+
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
16655
|
+
deleteCommitSignatureProtection: [
|
|
16656
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
16657
|
+
],
|
|
16658
|
+
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
|
16659
|
+
deleteDeployment: [
|
|
16660
|
+
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
|
16661
|
+
],
|
|
16662
|
+
deleteDeploymentBranchPolicy: [
|
|
16663
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
16664
|
+
],
|
|
16665
|
+
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
|
16666
|
+
deleteInvitation: [
|
|
16667
|
+
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
16668
|
+
],
|
|
16669
|
+
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
|
16670
|
+
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
|
16671
|
+
deletePullRequestReviewProtection: [
|
|
16672
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
16673
|
+
],
|
|
16674
|
+
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
|
16675
|
+
deleteReleaseAsset: [
|
|
16676
|
+
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
16677
|
+
],
|
|
16678
|
+
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
16679
|
+
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
16680
|
+
disableAutomatedSecurityFixes: [
|
|
16681
|
+
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
|
16682
|
+
],
|
|
16683
|
+
disableDeploymentProtectionRule: [
|
|
16684
|
+
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
16685
|
+
],
|
|
16686
|
+
disablePrivateVulnerabilityReporting: [
|
|
16687
|
+
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
16688
|
+
],
|
|
16689
|
+
disableVulnerabilityAlerts: [
|
|
16690
|
+
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
|
16691
|
+
],
|
|
16692
|
+
downloadArchive: [
|
|
16693
|
+
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
|
16694
|
+
{},
|
|
16695
|
+
{ renamed: ["repos", "downloadZipballArchive"] }
|
|
16696
|
+
],
|
|
16697
|
+
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
|
16698
|
+
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
|
16699
|
+
enableAutomatedSecurityFixes: [
|
|
16700
|
+
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
|
16701
|
+
],
|
|
16702
|
+
enablePrivateVulnerabilityReporting: [
|
|
16703
|
+
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
16704
|
+
],
|
|
16705
|
+
enableVulnerabilityAlerts: [
|
|
16706
|
+
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
|
16707
|
+
],
|
|
16708
|
+
generateReleaseNotes: [
|
|
16709
|
+
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
|
16710
|
+
],
|
|
16711
|
+
get: ["GET /repos/{owner}/{repo}"],
|
|
16712
|
+
getAccessRestrictions: [
|
|
16713
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
16714
|
+
],
|
|
16715
|
+
getAdminBranchProtection: [
|
|
16716
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
16717
|
+
],
|
|
16718
|
+
getAllDeploymentProtectionRules: [
|
|
16719
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
16720
|
+
],
|
|
16721
|
+
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
|
16722
|
+
getAllStatusCheckContexts: [
|
|
16723
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
16724
|
+
],
|
|
16725
|
+
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
|
16726
|
+
getAppsWithAccessToProtectedBranch: [
|
|
16727
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
16728
|
+
],
|
|
16729
|
+
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
16730
|
+
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
|
16731
|
+
getBranchProtection: [
|
|
16732
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
16733
|
+
],
|
|
16734
|
+
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
|
16735
|
+
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
|
16736
|
+
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
|
16737
|
+
getCollaboratorPermissionLevel: [
|
|
16738
|
+
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
|
16739
|
+
],
|
|
16740
|
+
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
|
16741
|
+
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
|
16742
|
+
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
|
16743
|
+
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
16744
|
+
getCommitSignatureProtection: [
|
|
16745
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
16746
|
+
],
|
|
16747
|
+
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
|
16748
|
+
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
|
16749
|
+
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
|
16750
|
+
getCustomDeploymentProtectionRule: [
|
|
16751
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
16752
|
+
],
|
|
16753
|
+
getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
|
|
16754
|
+
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
|
16755
|
+
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
|
16756
|
+
getDeploymentBranchPolicy: [
|
|
16757
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
16758
|
+
],
|
|
16759
|
+
getDeploymentStatus: [
|
|
16760
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
|
16761
|
+
],
|
|
16762
|
+
getEnvironment: [
|
|
16763
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
|
16764
|
+
],
|
|
16765
|
+
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
|
16766
|
+
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
|
16767
|
+
getOrgRuleSuite: ["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],
|
|
16768
|
+
getOrgRuleSuites: ["GET /orgs/{org}/rulesets/rule-suites"],
|
|
16769
|
+
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
|
16770
|
+
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
|
16771
|
+
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
|
16772
|
+
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
|
16773
|
+
getPagesDeployment: [
|
|
16774
|
+
"GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"
|
|
16775
|
+
],
|
|
16776
|
+
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
|
16777
|
+
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
|
16778
|
+
getPullRequestReviewProtection: [
|
|
16779
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
16780
|
+
],
|
|
16781
|
+
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
|
16782
|
+
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
|
16783
|
+
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
|
16784
|
+
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
|
16785
|
+
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
|
16786
|
+
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
|
16787
|
+
getRepoRuleSuite: [
|
|
16788
|
+
"GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"
|
|
16789
|
+
],
|
|
16790
|
+
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
|
|
16791
|
+
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
16792
|
+
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
|
16793
|
+
getStatusChecksProtection: [
|
|
16794
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
16795
|
+
],
|
|
16796
|
+
getTeamsWithAccessToProtectedBranch: [
|
|
16797
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
16798
|
+
],
|
|
16799
|
+
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
|
16800
|
+
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
|
16801
|
+
getUsersWithAccessToProtectedBranch: [
|
|
16802
|
+
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
16803
|
+
],
|
|
16804
|
+
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
|
16805
|
+
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
16806
|
+
getWebhookConfigForRepo: [
|
|
16807
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
16808
|
+
],
|
|
16809
|
+
getWebhookDelivery: [
|
|
16810
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
16811
|
+
],
|
|
16812
|
+
listActivities: ["GET /repos/{owner}/{repo}/activity"],
|
|
16813
|
+
listAttestations: [
|
|
16814
|
+
"GET /repos/{owner}/{repo}/attestations/{subject_digest}"
|
|
16815
|
+
],
|
|
16816
|
+
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
|
16817
|
+
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
|
16818
|
+
listBranchesForHeadCommit: [
|
|
16819
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
|
16820
|
+
],
|
|
16821
|
+
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
|
16822
|
+
listCommentsForCommit: [
|
|
16823
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
16824
|
+
],
|
|
16825
|
+
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
|
16826
|
+
listCommitStatusesForRef: [
|
|
16827
|
+
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
|
16828
|
+
],
|
|
16829
|
+
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
|
16830
|
+
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
|
16831
|
+
listCustomDeploymentRuleIntegrations: [
|
|
16832
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
|
16833
|
+
],
|
|
16834
|
+
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
|
16835
|
+
listDeploymentBranchPolicies: [
|
|
16836
|
+
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
16837
|
+
],
|
|
16838
|
+
listDeploymentStatuses: [
|
|
16839
|
+
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
16840
|
+
],
|
|
16841
|
+
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
|
16842
|
+
listForAuthenticatedUser: ["GET /user/repos"],
|
|
16843
|
+
listForOrg: ["GET /orgs/{org}/repos"],
|
|
16844
|
+
listForUser: ["GET /users/{username}/repos"],
|
|
16845
|
+
listForks: ["GET /repos/{owner}/{repo}/forks"],
|
|
16846
|
+
listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
|
|
16847
|
+
listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
|
|
16848
|
+
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
|
16849
|
+
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
|
16850
|
+
listPublic: ["GET /repositories"],
|
|
16851
|
+
listPullRequestsAssociatedWithCommit: [
|
|
16852
|
+
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
|
16853
|
+
],
|
|
16854
|
+
listReleaseAssets: [
|
|
16855
|
+
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
|
16856
|
+
],
|
|
16857
|
+
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
|
16858
|
+
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
|
16859
|
+
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
|
16860
|
+
listWebhookDeliveries: [
|
|
16861
|
+
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
|
16862
|
+
],
|
|
16863
|
+
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
|
16864
|
+
merge: ["POST /repos/{owner}/{repo}/merges"],
|
|
16865
|
+
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
|
16866
|
+
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
|
16867
|
+
redeliverWebhookDelivery: [
|
|
16868
|
+
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
16869
|
+
],
|
|
16870
|
+
removeAppAccessRestrictions: [
|
|
16871
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
16872
|
+
{},
|
|
16873
|
+
{ mapToData: "apps" }
|
|
16874
|
+
],
|
|
16875
|
+
removeCollaborator: [
|
|
16876
|
+
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
|
16877
|
+
],
|
|
16878
|
+
removeStatusCheckContexts: [
|
|
16879
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
16880
|
+
{},
|
|
16881
|
+
{ mapToData: "contexts" }
|
|
16882
|
+
],
|
|
16883
|
+
removeStatusCheckProtection: [
|
|
16884
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
16885
|
+
],
|
|
16886
|
+
removeTeamAccessRestrictions: [
|
|
16887
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
16888
|
+
{},
|
|
16889
|
+
{ mapToData: "teams" }
|
|
16890
|
+
],
|
|
16891
|
+
removeUserAccessRestrictions: [
|
|
16892
|
+
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
16893
|
+
{},
|
|
16894
|
+
{ mapToData: "users" }
|
|
16895
|
+
],
|
|
16896
|
+
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
|
16897
|
+
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
|
16898
|
+
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
|
16899
|
+
setAdminBranchProtection: [
|
|
16900
|
+
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
16901
|
+
],
|
|
16902
|
+
setAppAccessRestrictions: [
|
|
16903
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
16904
|
+
{},
|
|
16905
|
+
{ mapToData: "apps" }
|
|
16906
|
+
],
|
|
16907
|
+
setStatusCheckContexts: [
|
|
16908
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
16909
|
+
{},
|
|
16910
|
+
{ mapToData: "contexts" }
|
|
16911
|
+
],
|
|
16912
|
+
setTeamAccessRestrictions: [
|
|
16913
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
16914
|
+
{},
|
|
16915
|
+
{ mapToData: "teams" }
|
|
16916
|
+
],
|
|
16917
|
+
setUserAccessRestrictions: [
|
|
16918
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
16919
|
+
{},
|
|
16920
|
+
{ mapToData: "users" }
|
|
16921
|
+
],
|
|
16922
|
+
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
|
16923
|
+
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
|
16924
|
+
update: ["PATCH /repos/{owner}/{repo}"],
|
|
16925
|
+
updateBranchProtection: [
|
|
16926
|
+
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
16927
|
+
],
|
|
16928
|
+
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
16929
|
+
updateDeploymentBranchPolicy: [
|
|
16930
|
+
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
16931
|
+
],
|
|
16932
|
+
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
|
16933
|
+
updateInvitation: [
|
|
16934
|
+
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
16935
|
+
],
|
|
16936
|
+
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
|
16937
|
+
updatePullRequestReviewProtection: [
|
|
16938
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
16939
|
+
],
|
|
16940
|
+
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
|
16941
|
+
updateReleaseAsset: [
|
|
16942
|
+
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
16943
|
+
],
|
|
16944
|
+
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
16945
|
+
updateStatusCheckPotection: [
|
|
16946
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
|
16947
|
+
{},
|
|
16948
|
+
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
|
16949
|
+
],
|
|
16950
|
+
updateStatusCheckProtection: [
|
|
16951
|
+
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
16952
|
+
],
|
|
16953
|
+
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
16954
|
+
updateWebhookConfigForRepo: [
|
|
16955
|
+
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
16956
|
+
],
|
|
16957
|
+
uploadReleaseAsset: [
|
|
16958
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
|
16959
|
+
{ baseUrl: "https://uploads.github.com" }
|
|
16960
|
+
]
|
|
16961
|
+
},
|
|
16962
|
+
search: {
|
|
16963
|
+
code: ["GET /search/code"],
|
|
16964
|
+
commits: ["GET /search/commits"],
|
|
16965
|
+
issuesAndPullRequests: ["GET /search/issues"],
|
|
16966
|
+
labels: ["GET /search/labels"],
|
|
16967
|
+
repos: ["GET /search/repositories"],
|
|
16968
|
+
topics: ["GET /search/topics"],
|
|
16969
|
+
users: ["GET /search/users"]
|
|
16970
|
+
},
|
|
16971
|
+
secretScanning: {
|
|
16972
|
+
createPushProtectionBypass: [
|
|
16973
|
+
"POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"
|
|
16974
|
+
],
|
|
16975
|
+
getAlert: [
|
|
16976
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
16977
|
+
],
|
|
16978
|
+
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
|
16979
|
+
listAlertsForEnterprise: [
|
|
16980
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
16981
|
+
],
|
|
16982
|
+
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
|
16983
|
+
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
|
16984
|
+
listLocationsForAlert: [
|
|
16985
|
+
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
|
16986
|
+
],
|
|
16987
|
+
updateAlert: [
|
|
16988
|
+
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
16989
|
+
]
|
|
16990
|
+
},
|
|
16991
|
+
securityAdvisories: {
|
|
16992
|
+
createFork: [
|
|
16993
|
+
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"
|
|
16994
|
+
],
|
|
16995
|
+
createPrivateVulnerabilityReport: [
|
|
16996
|
+
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
|
16997
|
+
],
|
|
16998
|
+
createRepositoryAdvisory: [
|
|
16999
|
+
"POST /repos/{owner}/{repo}/security-advisories"
|
|
17000
|
+
],
|
|
17001
|
+
createRepositoryAdvisoryCveRequest: [
|
|
17002
|
+
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
|
|
17003
|
+
],
|
|
17004
|
+
getGlobalAdvisory: ["GET /advisories/{ghsa_id}"],
|
|
17005
|
+
getRepositoryAdvisory: [
|
|
17006
|
+
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
17007
|
+
],
|
|
17008
|
+
listGlobalAdvisories: ["GET /advisories"],
|
|
17009
|
+
listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"],
|
|
17010
|
+
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
|
17011
|
+
updateRepositoryAdvisory: [
|
|
17012
|
+
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
17013
|
+
]
|
|
17014
|
+
},
|
|
17015
|
+
teams: {
|
|
17016
|
+
addOrUpdateMembershipForUserInOrg: [
|
|
17017
|
+
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
17018
|
+
],
|
|
17019
|
+
addOrUpdateProjectPermissionsInOrg: [
|
|
17020
|
+
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
17021
|
+
],
|
|
17022
|
+
addOrUpdateRepoPermissionsInOrg: [
|
|
17023
|
+
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
17024
|
+
],
|
|
17025
|
+
checkPermissionsForProjectInOrg: [
|
|
17026
|
+
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
17027
|
+
],
|
|
17028
|
+
checkPermissionsForRepoInOrg: [
|
|
17029
|
+
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
17030
|
+
],
|
|
17031
|
+
create: ["POST /orgs/{org}/teams"],
|
|
17032
|
+
createDiscussionCommentInOrg: [
|
|
17033
|
+
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
17034
|
+
],
|
|
17035
|
+
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
|
17036
|
+
deleteDiscussionCommentInOrg: [
|
|
17037
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
17038
|
+
],
|
|
17039
|
+
deleteDiscussionInOrg: [
|
|
17040
|
+
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
17041
|
+
],
|
|
17042
|
+
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
|
17043
|
+
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
|
17044
|
+
getDiscussionCommentInOrg: [
|
|
17045
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
17046
|
+
],
|
|
17047
|
+
getDiscussionInOrg: [
|
|
17048
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
17049
|
+
],
|
|
17050
|
+
getMembershipForUserInOrg: [
|
|
17051
|
+
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
17052
|
+
],
|
|
17053
|
+
list: ["GET /orgs/{org}/teams"],
|
|
17054
|
+
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
|
17055
|
+
listDiscussionCommentsInOrg: [
|
|
17056
|
+
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
17057
|
+
],
|
|
17058
|
+
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
|
17059
|
+
listForAuthenticatedUser: ["GET /user/teams"],
|
|
17060
|
+
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
|
17061
|
+
listPendingInvitationsInOrg: [
|
|
17062
|
+
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
|
17063
|
+
],
|
|
17064
|
+
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
|
17065
|
+
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
|
17066
|
+
removeMembershipForUserInOrg: [
|
|
17067
|
+
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
17068
|
+
],
|
|
17069
|
+
removeProjectInOrg: [
|
|
17070
|
+
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
17071
|
+
],
|
|
17072
|
+
removeRepoInOrg: [
|
|
17073
|
+
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
17074
|
+
],
|
|
17075
|
+
updateDiscussionCommentInOrg: [
|
|
17076
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
17077
|
+
],
|
|
17078
|
+
updateDiscussionInOrg: [
|
|
17079
|
+
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
17080
|
+
],
|
|
17081
|
+
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
|
17082
|
+
},
|
|
17083
|
+
users: {
|
|
17084
|
+
addEmailForAuthenticated: [
|
|
17085
|
+
"POST /user/emails",
|
|
17086
|
+
{},
|
|
17087
|
+
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
|
17088
|
+
],
|
|
17089
|
+
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
|
17090
|
+
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
|
17091
|
+
block: ["PUT /user/blocks/{username}"],
|
|
17092
|
+
checkBlocked: ["GET /user/blocks/{username}"],
|
|
17093
|
+
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
|
17094
|
+
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
|
17095
|
+
createGpgKeyForAuthenticated: [
|
|
17096
|
+
"POST /user/gpg_keys",
|
|
17097
|
+
{},
|
|
17098
|
+
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
|
17099
|
+
],
|
|
17100
|
+
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
|
17101
|
+
createPublicSshKeyForAuthenticated: [
|
|
17102
|
+
"POST /user/keys",
|
|
17103
|
+
{},
|
|
17104
|
+
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
|
17105
|
+
],
|
|
17106
|
+
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
|
17107
|
+
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
|
17108
|
+
deleteEmailForAuthenticated: [
|
|
17109
|
+
"DELETE /user/emails",
|
|
17110
|
+
{},
|
|
17111
|
+
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
|
17112
|
+
],
|
|
17113
|
+
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
|
17114
|
+
deleteGpgKeyForAuthenticated: [
|
|
17115
|
+
"DELETE /user/gpg_keys/{gpg_key_id}",
|
|
17116
|
+
{},
|
|
17117
|
+
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
|
17118
|
+
],
|
|
17119
|
+
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
|
17120
|
+
deletePublicSshKeyForAuthenticated: [
|
|
17121
|
+
"DELETE /user/keys/{key_id}",
|
|
17122
|
+
{},
|
|
17123
|
+
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
|
17124
|
+
],
|
|
17125
|
+
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
|
17126
|
+
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
|
17127
|
+
deleteSshSigningKeyForAuthenticatedUser: [
|
|
17128
|
+
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
17129
|
+
],
|
|
17130
|
+
follow: ["PUT /user/following/{username}"],
|
|
17131
|
+
getAuthenticated: ["GET /user"],
|
|
17132
|
+
getById: ["GET /user/{account_id}"],
|
|
17133
|
+
getByUsername: ["GET /users/{username}"],
|
|
17134
|
+
getContextForUser: ["GET /users/{username}/hovercard"],
|
|
17135
|
+
getGpgKeyForAuthenticated: [
|
|
17136
|
+
"GET /user/gpg_keys/{gpg_key_id}",
|
|
17137
|
+
{},
|
|
17138
|
+
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
|
17139
|
+
],
|
|
17140
|
+
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
|
17141
|
+
getPublicSshKeyForAuthenticated: [
|
|
17142
|
+
"GET /user/keys/{key_id}",
|
|
17143
|
+
{},
|
|
17144
|
+
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
|
17145
|
+
],
|
|
17146
|
+
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
|
17147
|
+
getSshSigningKeyForAuthenticatedUser: [
|
|
17148
|
+
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
17149
|
+
],
|
|
17150
|
+
list: ["GET /users"],
|
|
17151
|
+
listAttestations: ["GET /users/{username}/attestations/{subject_digest}"],
|
|
17152
|
+
listBlockedByAuthenticated: [
|
|
17153
|
+
"GET /user/blocks",
|
|
17154
|
+
{},
|
|
17155
|
+
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
|
17156
|
+
],
|
|
17157
|
+
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
|
17158
|
+
listEmailsForAuthenticated: [
|
|
17159
|
+
"GET /user/emails",
|
|
17160
|
+
{},
|
|
17161
|
+
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
|
17162
|
+
],
|
|
17163
|
+
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
|
17164
|
+
listFollowedByAuthenticated: [
|
|
17165
|
+
"GET /user/following",
|
|
17166
|
+
{},
|
|
17167
|
+
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
|
17168
|
+
],
|
|
17169
|
+
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
|
17170
|
+
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
|
17171
|
+
listFollowersForUser: ["GET /users/{username}/followers"],
|
|
17172
|
+
listFollowingForUser: ["GET /users/{username}/following"],
|
|
17173
|
+
listGpgKeysForAuthenticated: [
|
|
17174
|
+
"GET /user/gpg_keys",
|
|
17175
|
+
{},
|
|
17176
|
+
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
|
17177
|
+
],
|
|
17178
|
+
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
|
17179
|
+
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
|
17180
|
+
listPublicEmailsForAuthenticated: [
|
|
17181
|
+
"GET /user/public_emails",
|
|
17182
|
+
{},
|
|
17183
|
+
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
|
17184
|
+
],
|
|
17185
|
+
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
|
17186
|
+
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
|
17187
|
+
listPublicSshKeysForAuthenticated: [
|
|
17188
|
+
"GET /user/keys",
|
|
17189
|
+
{},
|
|
17190
|
+
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
|
17191
|
+
],
|
|
17192
|
+
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
|
17193
|
+
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
|
17194
|
+
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
|
17195
|
+
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
|
17196
|
+
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
|
17197
|
+
setPrimaryEmailVisibilityForAuthenticated: [
|
|
17198
|
+
"PATCH /user/email/visibility",
|
|
17199
|
+
{},
|
|
17200
|
+
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
|
17201
|
+
],
|
|
17202
|
+
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
|
17203
|
+
"PATCH /user/email/visibility"
|
|
17204
|
+
],
|
|
17205
|
+
unblock: ["DELETE /user/blocks/{username}"],
|
|
17206
|
+
unfollow: ["DELETE /user/following/{username}"],
|
|
17207
|
+
updateAuthenticated: ["PATCH /user"]
|
|
17208
|
+
}
|
|
17209
|
+
};
|
|
17210
|
+
var endpoints_default = Endpoints;
|
|
17211
|
+
|
|
17212
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.2-cjs.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
|
|
17213
|
+
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
17214
|
+
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
17215
|
+
for (const [methodName, endpoint2] of Object.entries(endpoints)) {
|
|
17216
|
+
const [route, defaults2, decorations] = endpoint2;
|
|
17217
|
+
const [method, url] = route.split(/ /);
|
|
17218
|
+
const endpointDefaults = Object.assign(
|
|
17219
|
+
{
|
|
17220
|
+
method,
|
|
17221
|
+
url
|
|
17222
|
+
},
|
|
17223
|
+
defaults2
|
|
17224
|
+
);
|
|
17225
|
+
if (!endpointMethodsMap.has(scope)) {
|
|
17226
|
+
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
|
|
17227
|
+
}
|
|
17228
|
+
endpointMethodsMap.get(scope).set(methodName, {
|
|
17229
|
+
scope,
|
|
17230
|
+
methodName,
|
|
17231
|
+
endpointDefaults,
|
|
17232
|
+
decorations
|
|
17233
|
+
});
|
|
17234
|
+
}
|
|
17235
|
+
}
|
|
17236
|
+
var handler = {
|
|
17237
|
+
has({ scope }, methodName) {
|
|
17238
|
+
return endpointMethodsMap.get(scope).has(methodName);
|
|
17239
|
+
},
|
|
17240
|
+
getOwnPropertyDescriptor(target, methodName) {
|
|
17241
|
+
return {
|
|
17242
|
+
value: this.get(target, methodName),
|
|
17243
|
+
// ensures method is in the cache
|
|
17244
|
+
configurable: true,
|
|
17245
|
+
writable: true,
|
|
17246
|
+
enumerable: true
|
|
17247
|
+
};
|
|
17248
|
+
},
|
|
17249
|
+
defineProperty(target, methodName, descriptor) {
|
|
17250
|
+
Object.defineProperty(target.cache, methodName, descriptor);
|
|
17251
|
+
return true;
|
|
17252
|
+
},
|
|
17253
|
+
deleteProperty(target, methodName) {
|
|
17254
|
+
delete target.cache[methodName];
|
|
17255
|
+
return true;
|
|
17256
|
+
},
|
|
17257
|
+
ownKeys({ scope }) {
|
|
17258
|
+
return [...endpointMethodsMap.get(scope).keys()];
|
|
17259
|
+
},
|
|
17260
|
+
set(target, methodName, value) {
|
|
17261
|
+
return target.cache[methodName] = value;
|
|
17262
|
+
},
|
|
17263
|
+
get({ octokit, scope, cache: cache2 }, methodName) {
|
|
17264
|
+
if (cache2[methodName]) {
|
|
17265
|
+
return cache2[methodName];
|
|
17266
|
+
}
|
|
17267
|
+
const method = endpointMethodsMap.get(scope).get(methodName);
|
|
17268
|
+
if (!method) {
|
|
17269
|
+
return void 0;
|
|
17270
|
+
}
|
|
17271
|
+
const { endpointDefaults, decorations } = method;
|
|
17272
|
+
if (decorations) {
|
|
17273
|
+
cache2[methodName] = decorate(
|
|
17274
|
+
octokit,
|
|
17275
|
+
scope,
|
|
17276
|
+
methodName,
|
|
17277
|
+
endpointDefaults,
|
|
17278
|
+
decorations
|
|
17279
|
+
);
|
|
17280
|
+
} else {
|
|
17281
|
+
cache2[methodName] = octokit.request.defaults(endpointDefaults);
|
|
17282
|
+
}
|
|
17283
|
+
return cache2[methodName];
|
|
17284
|
+
}
|
|
17285
|
+
};
|
|
17286
|
+
function endpointsToMethods(octokit) {
|
|
17287
|
+
const newMethods = {};
|
|
17288
|
+
for (const scope of endpointMethodsMap.keys()) {
|
|
17289
|
+
newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
|
|
17290
|
+
}
|
|
17291
|
+
return newMethods;
|
|
17292
|
+
}
|
|
17293
|
+
function decorate(octokit, scope, methodName, defaults2, decorations) {
|
|
17294
|
+
const requestWithDefaults = octokit.request.defaults(defaults2);
|
|
17295
|
+
function withDecorations(...args) {
|
|
17296
|
+
let options = requestWithDefaults.endpoint.merge(...args);
|
|
17297
|
+
if (decorations.mapToData) {
|
|
17298
|
+
options = Object.assign({}, options, {
|
|
17299
|
+
data: options[decorations.mapToData],
|
|
17300
|
+
[decorations.mapToData]: void 0
|
|
17301
|
+
});
|
|
17302
|
+
return requestWithDefaults(options);
|
|
17303
|
+
}
|
|
17304
|
+
if (decorations.renamed) {
|
|
17305
|
+
const [newScope, newMethodName] = decorations.renamed;
|
|
17306
|
+
octokit.log.warn(
|
|
17307
|
+
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
|
17308
|
+
);
|
|
17309
|
+
}
|
|
17310
|
+
if (decorations.deprecated) {
|
|
17311
|
+
octokit.log.warn(decorations.deprecated);
|
|
17312
|
+
}
|
|
17313
|
+
if (decorations.renamedParameters) {
|
|
17314
|
+
const options2 = requestWithDefaults.endpoint.merge(...args);
|
|
17315
|
+
for (const [name, alias] of Object.entries(
|
|
17316
|
+
decorations.renamedParameters
|
|
17317
|
+
)) {
|
|
17318
|
+
if (name in options2) {
|
|
17319
|
+
octokit.log.warn(
|
|
17320
|
+
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
|
17321
|
+
);
|
|
17322
|
+
if (!(alias in options2)) {
|
|
17323
|
+
options2[alias] = options2[name];
|
|
17324
|
+
}
|
|
17325
|
+
delete options2[name];
|
|
17326
|
+
}
|
|
17327
|
+
}
|
|
17328
|
+
return requestWithDefaults(options2);
|
|
17329
|
+
}
|
|
17330
|
+
return requestWithDefaults(...args);
|
|
17331
|
+
}
|
|
17332
|
+
return Object.assign(withDecorations, requestWithDefaults);
|
|
17333
|
+
}
|
|
17334
|
+
|
|
17335
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.2-cjs.1_@octokit+core@5.2.2/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
|
|
17336
|
+
function restEndpointMethods(octokit) {
|
|
17337
|
+
const api = endpointsToMethods(octokit);
|
|
17338
|
+
return {
|
|
17339
|
+
rest: api
|
|
17340
|
+
};
|
|
17341
|
+
}
|
|
17342
|
+
restEndpointMethods.VERSION = VERSION7;
|
|
17343
|
+
function legacyRestEndpointMethods(octokit) {
|
|
17344
|
+
const api = endpointsToMethods(octokit);
|
|
17345
|
+
return {
|
|
17346
|
+
...api,
|
|
17347
|
+
rest: api
|
|
17348
|
+
};
|
|
17349
|
+
}
|
|
17350
|
+
legacyRestEndpointMethods.VERSION = VERSION7;
|
|
17351
|
+
|
|
17352
|
+
// ../../node_modules/.pnpm/@octokit+rest@20.1.2/node_modules/@octokit/rest/dist-web/index.js
|
|
17353
|
+
var VERSION8 = "20.1.2";
|
|
17354
|
+
var Octokit2 = Octokit.plugin(
|
|
17355
|
+
requestLog,
|
|
17356
|
+
legacyRestEndpointMethods,
|
|
17357
|
+
paginateRest
|
|
17358
|
+
).defaults({
|
|
17359
|
+
userAgent: `octokit-rest.js/${VERSION8}`
|
|
17360
|
+
});
|
|
17361
|
+
|
|
13630
17362
|
// src/github/GitHub.ts
|
|
13631
|
-
var import_rest = require("@octokit/rest");
|
|
13632
17363
|
var GitHub = class {
|
|
13633
17364
|
githubConfig;
|
|
13634
17365
|
constructor({
|
|
@@ -13699,7 +17430,7 @@ var GitHub = class {
|
|
|
13699
17430
|
await this.restoreFiles(repository, fernIgnoreFiles);
|
|
13700
17431
|
await repository.commit("SDK Generation");
|
|
13701
17432
|
await repository.push();
|
|
13702
|
-
const octokit = new
|
|
17433
|
+
const octokit = new Octokit2({
|
|
13703
17434
|
auth: this.githubConfig.token
|
|
13704
17435
|
});
|
|
13705
17436
|
const parsedRepo = parseRepository(this.githubConfig.uri);
|