@fern-api/generator-cli 0.6.2 → 0.6.3
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.js +7407 -22334
- package/dist/cli.js +609 -765
- package/package.json +8 -32
- package/lib/api.js +0 -9
package/dist/cli.js
CHANGED
|
@@ -11885,99 +11885,226 @@ var init_esm4 = __esm({
|
|
|
11885
11885
|
}
|
|
11886
11886
|
});
|
|
11887
11887
|
|
|
11888
|
-
// ../../node_modules/.pnpm/
|
|
11889
|
-
var
|
|
11890
|
-
"../../node_modules/.pnpm/
|
|
11888
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/register.js
|
|
11889
|
+
var require_register = __commonJS({
|
|
11890
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/register.js"(exports2, module2) {
|
|
11891
11891
|
"use strict";
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
}
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11892
|
+
module2.exports = register;
|
|
11893
|
+
function register(state, name, method, options) {
|
|
11894
|
+
if (typeof method !== "function") {
|
|
11895
|
+
throw new Error("method for before hook must be a function");
|
|
11896
|
+
}
|
|
11897
|
+
if (!options) {
|
|
11898
|
+
options = {};
|
|
11899
|
+
}
|
|
11900
|
+
if (Array.isArray(name)) {
|
|
11901
|
+
return name.reverse().reduce(function(callback, name2) {
|
|
11902
|
+
return register.bind(null, state, name2, callback, options);
|
|
11903
|
+
}, method)();
|
|
11904
|
+
}
|
|
11905
|
+
return Promise.resolve().then(function() {
|
|
11906
|
+
if (!state.registry[name]) {
|
|
11907
|
+
return method(options);
|
|
11908
|
+
}
|
|
11909
|
+
return state.registry[name].reduce(function(method2, registered) {
|
|
11910
|
+
return registered.hook.bind(null, method2, options);
|
|
11911
|
+
}, method)();
|
|
11912
|
+
});
|
|
11913
|
+
}
|
|
11914
|
+
}
|
|
11915
|
+
});
|
|
11916
|
+
|
|
11917
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/add.js
|
|
11918
|
+
var require_add = __commonJS({
|
|
11919
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/add.js"(exports2, module2) {
|
|
11920
|
+
"use strict";
|
|
11921
|
+
module2.exports = addHook;
|
|
11922
|
+
function addHook(state, kind, name, hook2) {
|
|
11923
|
+
var orig = hook2;
|
|
11924
|
+
if (!state.registry[name]) {
|
|
11925
|
+
state.registry[name] = [];
|
|
11926
|
+
}
|
|
11927
|
+
if (kind === "before") {
|
|
11928
|
+
hook2 = function(method, options) {
|
|
11929
|
+
return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
|
|
11930
|
+
};
|
|
11916
11931
|
}
|
|
11917
|
-
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
value = match2[2];
|
|
11928
|
-
if (value[0] === '"') {
|
|
11929
|
-
value = value.slice(1, value.length - 1);
|
|
11930
|
-
quotedPairRE.test(value) && (value = value.replace(quotedPairRE, "$1"));
|
|
11931
|
-
}
|
|
11932
|
-
result.parameters[key] = value;
|
|
11932
|
+
if (kind === "after") {
|
|
11933
|
+
hook2 = function(method, options) {
|
|
11934
|
+
var result;
|
|
11935
|
+
return Promise.resolve().then(method.bind(null, options)).then(function(result_) {
|
|
11936
|
+
result = result_;
|
|
11937
|
+
return orig(result, options);
|
|
11938
|
+
}).then(function() {
|
|
11939
|
+
return result;
|
|
11940
|
+
});
|
|
11941
|
+
};
|
|
11933
11942
|
}
|
|
11934
|
-
if (
|
|
11935
|
-
|
|
11943
|
+
if (kind === "error") {
|
|
11944
|
+
hook2 = function(method, options) {
|
|
11945
|
+
return Promise.resolve().then(method.bind(null, options)).catch(function(error) {
|
|
11946
|
+
return orig(error, options);
|
|
11947
|
+
});
|
|
11948
|
+
};
|
|
11936
11949
|
}
|
|
11937
|
-
|
|
11950
|
+
state.registry[name].push({
|
|
11951
|
+
hook: hook2,
|
|
11952
|
+
orig
|
|
11953
|
+
});
|
|
11938
11954
|
}
|
|
11939
|
-
|
|
11940
|
-
|
|
11941
|
-
|
|
11955
|
+
}
|
|
11956
|
+
});
|
|
11957
|
+
|
|
11958
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/remove.js
|
|
11959
|
+
var require_remove = __commonJS({
|
|
11960
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/remove.js"(exports2, module2) {
|
|
11961
|
+
"use strict";
|
|
11962
|
+
module2.exports = removeHook;
|
|
11963
|
+
function removeHook(state, name, method) {
|
|
11964
|
+
if (!state.registry[name]) {
|
|
11965
|
+
return;
|
|
11942
11966
|
}
|
|
11943
|
-
|
|
11944
|
-
|
|
11945
|
-
|
|
11946
|
-
|
|
11967
|
+
var index = state.registry[name].map(function(registered) {
|
|
11968
|
+
return registered.orig;
|
|
11969
|
+
}).indexOf(method);
|
|
11970
|
+
if (index === -1) {
|
|
11971
|
+
return;
|
|
11947
11972
|
}
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
|
|
11973
|
+
state.registry[name].splice(index, 1);
|
|
11974
|
+
}
|
|
11975
|
+
}
|
|
11976
|
+
});
|
|
11977
|
+
|
|
11978
|
+
// ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/index.js
|
|
11979
|
+
var require_before_after_hook = __commonJS({
|
|
11980
|
+
"../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/index.js"(exports2, module2) {
|
|
11981
|
+
"use strict";
|
|
11982
|
+
var register = require_register();
|
|
11983
|
+
var addHook = require_add();
|
|
11984
|
+
var removeHook = require_remove();
|
|
11985
|
+
var bind = Function.bind;
|
|
11986
|
+
var bindable = bind.bind(bind);
|
|
11987
|
+
function bindApi(hook2, state, name) {
|
|
11988
|
+
var removeHookRef = bindable(removeHook, null).apply(
|
|
11989
|
+
null,
|
|
11990
|
+
name ? [state, name] : [state]
|
|
11991
|
+
);
|
|
11992
|
+
hook2.api = { remove: removeHookRef };
|
|
11993
|
+
hook2.remove = removeHookRef;
|
|
11994
|
+
["before", "error", "after", "wrap"].forEach(function(kind) {
|
|
11995
|
+
var args = name ? [state, kind, name] : [state, kind];
|
|
11996
|
+
hook2[kind] = hook2.api[kind] = bindable(addHook, null).apply(null, args);
|
|
11997
|
+
});
|
|
11998
|
+
}
|
|
11999
|
+
function HookSingular() {
|
|
12000
|
+
var singularHookName = "h";
|
|
12001
|
+
var singularHookState = {
|
|
12002
|
+
registry: {}
|
|
11951
12003
|
};
|
|
11952
|
-
|
|
11953
|
-
|
|
12004
|
+
var singularHook = register.bind(null, singularHookState, singularHookName);
|
|
12005
|
+
bindApi(singularHook, singularHookState, singularHookName);
|
|
12006
|
+
return singularHook;
|
|
12007
|
+
}
|
|
12008
|
+
function HookCollection() {
|
|
12009
|
+
var state = {
|
|
12010
|
+
registry: {}
|
|
12011
|
+
};
|
|
12012
|
+
var hook2 = register.bind(null, state);
|
|
12013
|
+
bindApi(hook2, state);
|
|
12014
|
+
return hook2;
|
|
12015
|
+
}
|
|
12016
|
+
var collectionHookDeprecationMessageDisplayed = false;
|
|
12017
|
+
function Hook() {
|
|
12018
|
+
if (!collectionHookDeprecationMessageDisplayed) {
|
|
12019
|
+
console.warn(
|
|
12020
|
+
'[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
|
|
12021
|
+
);
|
|
12022
|
+
collectionHookDeprecationMessageDisplayed = true;
|
|
11954
12023
|
}
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
12024
|
+
return HookCollection();
|
|
12025
|
+
}
|
|
12026
|
+
Hook.Singular = HookSingular.bind();
|
|
12027
|
+
Hook.Collection = HookCollection.bind();
|
|
12028
|
+
module2.exports = Hook;
|
|
12029
|
+
module2.exports.Hook = Hook;
|
|
12030
|
+
module2.exports.Singular = Hook.Singular;
|
|
12031
|
+
module2.exports.Collection = Hook.Collection;
|
|
12032
|
+
}
|
|
12033
|
+
});
|
|
12034
|
+
|
|
12035
|
+
// ../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js
|
|
12036
|
+
var require_wrappy = __commonJS({
|
|
12037
|
+
"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(exports2, module2) {
|
|
12038
|
+
"use strict";
|
|
12039
|
+
module2.exports = wrappy;
|
|
12040
|
+
function wrappy(fn, cb) {
|
|
12041
|
+
if (fn && cb) return wrappy(fn)(cb);
|
|
12042
|
+
if (typeof fn !== "function")
|
|
12043
|
+
throw new TypeError("need wrapper function");
|
|
12044
|
+
Object.keys(fn).forEach(function(k) {
|
|
12045
|
+
wrapper[k] = fn[k];
|
|
12046
|
+
});
|
|
12047
|
+
return wrapper;
|
|
12048
|
+
function wrapper() {
|
|
12049
|
+
var args = new Array(arguments.length);
|
|
12050
|
+
for (var i = 0; i < args.length; i++) {
|
|
12051
|
+
args[i] = arguments[i];
|
|
12052
|
+
}
|
|
12053
|
+
var ret = fn.apply(this, args);
|
|
12054
|
+
var cb2 = args[args.length - 1];
|
|
12055
|
+
if (typeof ret === "function" && ret !== cb2) {
|
|
12056
|
+
Object.keys(cb2).forEach(function(k) {
|
|
12057
|
+
ret[k] = cb2[k];
|
|
12058
|
+
});
|
|
11969
12059
|
}
|
|
11970
|
-
|
|
11971
|
-
}
|
|
11972
|
-
if (index !== header.length) {
|
|
11973
|
-
return defaultContentType;
|
|
12060
|
+
return ret;
|
|
11974
12061
|
}
|
|
11975
|
-
return result;
|
|
11976
12062
|
}
|
|
11977
|
-
|
|
11978
|
-
|
|
11979
|
-
|
|
11980
|
-
|
|
12063
|
+
}
|
|
12064
|
+
});
|
|
12065
|
+
|
|
12066
|
+
// ../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js
|
|
12067
|
+
var require_once = __commonJS({
|
|
12068
|
+
"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(exports2, module2) {
|
|
12069
|
+
"use strict";
|
|
12070
|
+
var wrappy = require_wrappy();
|
|
12071
|
+
module2.exports = wrappy(once2);
|
|
12072
|
+
module2.exports.strict = wrappy(onceStrict);
|
|
12073
|
+
once2.proto = once2(function() {
|
|
12074
|
+
Object.defineProperty(Function.prototype, "once", {
|
|
12075
|
+
value: function() {
|
|
12076
|
+
return once2(this);
|
|
12077
|
+
},
|
|
12078
|
+
configurable: true
|
|
12079
|
+
});
|
|
12080
|
+
Object.defineProperty(Function.prototype, "onceStrict", {
|
|
12081
|
+
value: function() {
|
|
12082
|
+
return onceStrict(this);
|
|
12083
|
+
},
|
|
12084
|
+
configurable: true
|
|
12085
|
+
});
|
|
12086
|
+
});
|
|
12087
|
+
function once2(fn) {
|
|
12088
|
+
var f = function() {
|
|
12089
|
+
if (f.called) return f.value;
|
|
12090
|
+
f.called = true;
|
|
12091
|
+
return f.value = fn.apply(this, arguments);
|
|
12092
|
+
};
|
|
12093
|
+
f.called = false;
|
|
12094
|
+
return f;
|
|
12095
|
+
}
|
|
12096
|
+
function onceStrict(fn) {
|
|
12097
|
+
var f = function() {
|
|
12098
|
+
if (f.called)
|
|
12099
|
+
throw new Error(f.onceError);
|
|
12100
|
+
f.called = true;
|
|
12101
|
+
return f.value = fn.apply(this, arguments);
|
|
12102
|
+
};
|
|
12103
|
+
var name = fn.name || "Function wrapped with `once`";
|
|
12104
|
+
f.onceError = name + " shouldn't be called more than once";
|
|
12105
|
+
f.called = false;
|
|
12106
|
+
return f;
|
|
12107
|
+
}
|
|
11981
12108
|
}
|
|
11982
12109
|
});
|
|
11983
12110
|
|
|
@@ -15988,10 +16115,10 @@ var require_resolve_block_map = __commonJS({
|
|
|
15988
16115
|
let offset = bm.offset;
|
|
15989
16116
|
let commentEnd = null;
|
|
15990
16117
|
for (const collItem of bm.items) {
|
|
15991
|
-
const { start, key, sep:
|
|
16118
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
15992
16119
|
const keyProps = resolveProps.resolveProps(start, {
|
|
15993
16120
|
indicator: "explicit-key-ind",
|
|
15994
|
-
next: key ??
|
|
16121
|
+
next: key ?? sep2?.[0],
|
|
15995
16122
|
offset,
|
|
15996
16123
|
onError: onError2,
|
|
15997
16124
|
startOnNewline: true
|
|
@@ -16004,7 +16131,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
16004
16131
|
else if ("indent" in key && key.indent !== bm.indent)
|
|
16005
16132
|
onError2(offset, "BAD_INDENT", startColMsg);
|
|
16006
16133
|
}
|
|
16007
|
-
if (!keyProps.anchor && !keyProps.tag && !
|
|
16134
|
+
if (!keyProps.anchor && !keyProps.tag && !sep2) {
|
|
16008
16135
|
commentEnd = keyProps.end;
|
|
16009
16136
|
if (keyProps.comment) {
|
|
16010
16137
|
if (map.comment)
|
|
@@ -16026,7 +16153,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
16026
16153
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError2);
|
|
16027
16154
|
if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
|
|
16028
16155
|
onError2(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
16029
|
-
const valueProps = resolveProps.resolveProps(
|
|
16156
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
16030
16157
|
indicator: "map-value-ind",
|
|
16031
16158
|
next: value,
|
|
16032
16159
|
offset: keyNode.range[2],
|
|
@@ -16041,7 +16168,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
16041
16168
|
if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
|
|
16042
16169
|
onError2(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
|
|
16043
16170
|
}
|
|
16044
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset,
|
|
16171
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError2);
|
|
16045
16172
|
if (ctx.schema.compat)
|
|
16046
16173
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError2);
|
|
16047
16174
|
offset = valueNode.range[2];
|
|
@@ -16129,7 +16256,7 @@ var require_resolve_end = __commonJS({
|
|
|
16129
16256
|
let comment = "";
|
|
16130
16257
|
if (end) {
|
|
16131
16258
|
let hasSpace = false;
|
|
16132
|
-
let
|
|
16259
|
+
let sep2 = "";
|
|
16133
16260
|
for (const token of end) {
|
|
16134
16261
|
const { source, type } = token;
|
|
16135
16262
|
switch (type) {
|
|
@@ -16143,13 +16270,13 @@ var require_resolve_end = __commonJS({
|
|
|
16143
16270
|
if (!comment)
|
|
16144
16271
|
comment = cb;
|
|
16145
16272
|
else
|
|
16146
|
-
comment +=
|
|
16147
|
-
|
|
16273
|
+
comment += sep2 + cb;
|
|
16274
|
+
sep2 = "";
|
|
16148
16275
|
break;
|
|
16149
16276
|
}
|
|
16150
16277
|
case "newline":
|
|
16151
16278
|
if (comment)
|
|
16152
|
-
|
|
16279
|
+
sep2 += source;
|
|
16153
16280
|
hasSpace = true;
|
|
16154
16281
|
break;
|
|
16155
16282
|
default:
|
|
@@ -16190,17 +16317,17 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
16190
16317
|
let offset = fc.offset + fc.start.source.length;
|
|
16191
16318
|
for (let i = 0; i < fc.items.length; ++i) {
|
|
16192
16319
|
const collItem = fc.items[i];
|
|
16193
|
-
const { start, key, sep:
|
|
16320
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
16194
16321
|
const props = resolveProps.resolveProps(start, {
|
|
16195
16322
|
flow: fcName,
|
|
16196
16323
|
indicator: "explicit-key-ind",
|
|
16197
|
-
next: key ??
|
|
16324
|
+
next: key ?? sep2?.[0],
|
|
16198
16325
|
offset,
|
|
16199
16326
|
onError: onError2,
|
|
16200
16327
|
startOnNewline: false
|
|
16201
16328
|
});
|
|
16202
16329
|
if (!props.found) {
|
|
16203
|
-
if (!props.anchor && !props.tag && !
|
|
16330
|
+
if (!props.anchor && !props.tag && !sep2 && !value) {
|
|
16204
16331
|
if (i === 0 && props.comma)
|
|
16205
16332
|
onError2(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
|
|
16206
16333
|
else if (i < fc.items.length - 1)
|
|
@@ -16254,8 +16381,8 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
16254
16381
|
}
|
|
16255
16382
|
}
|
|
16256
16383
|
}
|
|
16257
|
-
if (!isMap && !
|
|
16258
|
-
const valueNode = value ? composeNode(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end,
|
|
16384
|
+
if (!isMap && !sep2 && !props.found) {
|
|
16385
|
+
const valueNode = value ? composeNode(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end, sep2, null, props, onError2);
|
|
16259
16386
|
coll.items.push(valueNode);
|
|
16260
16387
|
offset = valueNode.range[2];
|
|
16261
16388
|
if (isBlock(value))
|
|
@@ -16265,7 +16392,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
16265
16392
|
const keyNode = key ? composeNode(ctx, key, props, onError2) : composeEmptyNode(ctx, keyStart, start, null, props, onError2);
|
|
16266
16393
|
if (isBlock(key))
|
|
16267
16394
|
onError2(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
16268
|
-
const valueProps = resolveProps.resolveProps(
|
|
16395
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
16269
16396
|
flow: fcName,
|
|
16270
16397
|
indicator: "map-value-ind",
|
|
16271
16398
|
next: value,
|
|
@@ -16275,8 +16402,8 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
16275
16402
|
});
|
|
16276
16403
|
if (valueProps.found) {
|
|
16277
16404
|
if (!isMap && !props.found && ctx.options.strict) {
|
|
16278
|
-
if (
|
|
16279
|
-
for (const st of
|
|
16405
|
+
if (sep2)
|
|
16406
|
+
for (const st of sep2) {
|
|
16280
16407
|
if (st === valueProps.found)
|
|
16281
16408
|
break;
|
|
16282
16409
|
if (st.type === "newline") {
|
|
@@ -16293,7 +16420,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
16293
16420
|
else
|
|
16294
16421
|
onError2(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
|
|
16295
16422
|
}
|
|
16296
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end,
|
|
16423
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError2) : null;
|
|
16297
16424
|
if (valueNode) {
|
|
16298
16425
|
if (isBlock(value))
|
|
16299
16426
|
onError2(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
@@ -16458,7 +16585,7 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
16458
16585
|
chompStart = i + 1;
|
|
16459
16586
|
}
|
|
16460
16587
|
let value = "";
|
|
16461
|
-
let
|
|
16588
|
+
let sep2 = "";
|
|
16462
16589
|
let prevMoreIndented = false;
|
|
16463
16590
|
for (let i = 0; i < contentStart; ++i)
|
|
16464
16591
|
value += lines[i][0].slice(trimIndent) + "\n";
|
|
@@ -16475,24 +16602,24 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
16475
16602
|
indent = "";
|
|
16476
16603
|
}
|
|
16477
16604
|
if (type === Scalar.Scalar.BLOCK_LITERAL) {
|
|
16478
|
-
value +=
|
|
16479
|
-
|
|
16605
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
16606
|
+
sep2 = "\n";
|
|
16480
16607
|
} else if (indent.length > trimIndent || content[0] === " ") {
|
|
16481
|
-
if (
|
|
16482
|
-
|
|
16483
|
-
else if (!prevMoreIndented &&
|
|
16484
|
-
|
|
16485
|
-
value +=
|
|
16486
|
-
|
|
16608
|
+
if (sep2 === " ")
|
|
16609
|
+
sep2 = "\n";
|
|
16610
|
+
else if (!prevMoreIndented && sep2 === "\n")
|
|
16611
|
+
sep2 = "\n\n";
|
|
16612
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
16613
|
+
sep2 = "\n";
|
|
16487
16614
|
prevMoreIndented = true;
|
|
16488
16615
|
} else if (content === "") {
|
|
16489
|
-
if (
|
|
16616
|
+
if (sep2 === "\n")
|
|
16490
16617
|
value += "\n";
|
|
16491
16618
|
else
|
|
16492
|
-
|
|
16619
|
+
sep2 = "\n";
|
|
16493
16620
|
} else {
|
|
16494
|
-
value +=
|
|
16495
|
-
|
|
16621
|
+
value += sep2 + content;
|
|
16622
|
+
sep2 = " ";
|
|
16496
16623
|
prevMoreIndented = false;
|
|
16497
16624
|
}
|
|
16498
16625
|
}
|
|
@@ -16674,25 +16801,25 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
16674
16801
|
if (!match2)
|
|
16675
16802
|
return source;
|
|
16676
16803
|
let res = match2[1];
|
|
16677
|
-
let
|
|
16804
|
+
let sep2 = " ";
|
|
16678
16805
|
let pos = first2.lastIndex;
|
|
16679
16806
|
line.lastIndex = pos;
|
|
16680
16807
|
while (match2 = line.exec(source)) {
|
|
16681
16808
|
if (match2[1] === "") {
|
|
16682
|
-
if (
|
|
16683
|
-
res +=
|
|
16809
|
+
if (sep2 === "\n")
|
|
16810
|
+
res += sep2;
|
|
16684
16811
|
else
|
|
16685
|
-
|
|
16812
|
+
sep2 = "\n";
|
|
16686
16813
|
} else {
|
|
16687
|
-
res +=
|
|
16688
|
-
|
|
16814
|
+
res += sep2 + match2[1];
|
|
16815
|
+
sep2 = " ";
|
|
16689
16816
|
}
|
|
16690
16817
|
pos = line.lastIndex;
|
|
16691
16818
|
}
|
|
16692
16819
|
const last2 = /[ \t]*(.*)/sy;
|
|
16693
16820
|
last2.lastIndex = pos;
|
|
16694
16821
|
match2 = last2.exec(source);
|
|
16695
|
-
return res +
|
|
16822
|
+
return res + sep2 + (match2?.[1] ?? "");
|
|
16696
16823
|
}
|
|
16697
16824
|
function doubleQuotedValue(source, onError2) {
|
|
16698
16825
|
let res = "";
|
|
@@ -17465,14 +17592,14 @@ var require_cst_stringify = __commonJS({
|
|
|
17465
17592
|
}
|
|
17466
17593
|
}
|
|
17467
17594
|
}
|
|
17468
|
-
function stringifyItem({ start, key, sep:
|
|
17595
|
+
function stringifyItem({ start, key, sep: sep2, value }) {
|
|
17469
17596
|
let res = "";
|
|
17470
17597
|
for (const st of start)
|
|
17471
17598
|
res += st.source;
|
|
17472
17599
|
if (key)
|
|
17473
17600
|
res += stringifyToken(key);
|
|
17474
|
-
if (
|
|
17475
|
-
for (const st of
|
|
17601
|
+
if (sep2)
|
|
17602
|
+
for (const st of sep2)
|
|
17476
17603
|
res += st.source;
|
|
17477
17604
|
if (value)
|
|
17478
17605
|
res += stringifyToken(value);
|
|
@@ -18609,18 +18736,18 @@ var require_parser = __commonJS({
|
|
|
18609
18736
|
if (this.type === "map-value-ind") {
|
|
18610
18737
|
const prev = getPrevProps(this.peek(2));
|
|
18611
18738
|
const start = getFirstKeyStartProps(prev);
|
|
18612
|
-
let
|
|
18739
|
+
let sep2;
|
|
18613
18740
|
if (scalar.end) {
|
|
18614
|
-
|
|
18615
|
-
|
|
18741
|
+
sep2 = scalar.end;
|
|
18742
|
+
sep2.push(this.sourceToken);
|
|
18616
18743
|
delete scalar.end;
|
|
18617
18744
|
} else
|
|
18618
|
-
|
|
18745
|
+
sep2 = [this.sourceToken];
|
|
18619
18746
|
const map = {
|
|
18620
18747
|
type: "block-map",
|
|
18621
18748
|
offset: scalar.offset,
|
|
18622
18749
|
indent: scalar.indent,
|
|
18623
|
-
items: [{ start, key: scalar, sep:
|
|
18750
|
+
items: [{ start, key: scalar, sep: sep2 }]
|
|
18624
18751
|
};
|
|
18625
18752
|
this.onKeyLine = true;
|
|
18626
18753
|
this.stack[this.stack.length - 1] = map;
|
|
@@ -18771,14 +18898,14 @@ var require_parser = __commonJS({
|
|
|
18771
18898
|
} else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
18772
18899
|
const start2 = getFirstKeyStartProps(it.start);
|
|
18773
18900
|
const key = it.key;
|
|
18774
|
-
const
|
|
18775
|
-
|
|
18901
|
+
const sep2 = it.sep;
|
|
18902
|
+
sep2.push(this.sourceToken);
|
|
18776
18903
|
delete it.key, delete it.sep;
|
|
18777
18904
|
this.stack.push({
|
|
18778
18905
|
type: "block-map",
|
|
18779
18906
|
offset: this.offset,
|
|
18780
18907
|
indent: this.indent,
|
|
18781
|
-
items: [{ start: start2, key, sep:
|
|
18908
|
+
items: [{ start: start2, key, sep: sep2 }]
|
|
18782
18909
|
});
|
|
18783
18910
|
} else if (start.length > 0) {
|
|
18784
18911
|
it.sep = it.sep.concat(start, this.sourceToken);
|
|
@@ -18962,13 +19089,13 @@ var require_parser = __commonJS({
|
|
|
18962
19089
|
const prev = getPrevProps(parent);
|
|
18963
19090
|
const start = getFirstKeyStartProps(prev);
|
|
18964
19091
|
fixFlowSeqItems(fc);
|
|
18965
|
-
const
|
|
18966
|
-
|
|
19092
|
+
const sep2 = fc.end.splice(1, fc.end.length);
|
|
19093
|
+
sep2.push(this.sourceToken);
|
|
18967
19094
|
const map = {
|
|
18968
19095
|
type: "block-map",
|
|
18969
19096
|
offset: fc.offset,
|
|
18970
19097
|
indent: fc.indent,
|
|
18971
|
-
items: [{ start, key: fc, sep:
|
|
19098
|
+
items: [{ start, key: fc, sep: sep2 }]
|
|
18972
19099
|
};
|
|
18973
19100
|
this.onKeyLine = true;
|
|
18974
19101
|
this.stack[this.stack.length - 1] = map;
|
|
@@ -23447,7 +23574,7 @@ async function cloneRepository({ githubRepository, installationToken, targetDire
|
|
|
23447
23574
|
});
|
|
23448
23575
|
}
|
|
23449
23576
|
|
|
23450
|
-
// ../../node_modules/.pnpm/universal-user-agent@
|
|
23577
|
+
// ../../node_modules/.pnpm/universal-user-agent@6.0.1/node_modules/universal-user-agent/dist-web/index.js
|
|
23451
23578
|
function getUserAgent() {
|
|
23452
23579
|
if (typeof navigator === "object" && "userAgent" in navigator) {
|
|
23453
23580
|
return navigator.userAgent;
|
|
@@ -23458,114 +23585,13 @@ function getUserAgent() {
|
|
|
23458
23585
|
return "<environment undetectable>";
|
|
23459
23586
|
}
|
|
23460
23587
|
|
|
23461
|
-
// ../../node_modules/.pnpm
|
|
23462
|
-
|
|
23463
|
-
if (typeof method !== "function") {
|
|
23464
|
-
throw new Error("method for before hook must be a function");
|
|
23465
|
-
}
|
|
23466
|
-
if (!options) {
|
|
23467
|
-
options = {};
|
|
23468
|
-
}
|
|
23469
|
-
if (Array.isArray(name)) {
|
|
23470
|
-
return name.reverse().reduce((callback, name2) => {
|
|
23471
|
-
return register.bind(null, state, name2, callback, options);
|
|
23472
|
-
}, method)();
|
|
23473
|
-
}
|
|
23474
|
-
return Promise.resolve().then(() => {
|
|
23475
|
-
if (!state.registry[name]) {
|
|
23476
|
-
return method(options);
|
|
23477
|
-
}
|
|
23478
|
-
return state.registry[name].reduce((method2, registered) => {
|
|
23479
|
-
return registered.hook.bind(null, method2, options);
|
|
23480
|
-
}, method)();
|
|
23481
|
-
});
|
|
23482
|
-
}
|
|
23588
|
+
// ../../node_modules/.pnpm/@octokit+core@5.2.2/node_modules/@octokit/core/dist-web/index.js
|
|
23589
|
+
var import_before_after_hook = __toESM(require_before_after_hook());
|
|
23483
23590
|
|
|
23484
|
-
// ../../node_modules/.pnpm
|
|
23485
|
-
|
|
23486
|
-
const orig = hook2;
|
|
23487
|
-
if (!state.registry[name]) {
|
|
23488
|
-
state.registry[name] = [];
|
|
23489
|
-
}
|
|
23490
|
-
if (kind === "before") {
|
|
23491
|
-
hook2 = (method, options) => {
|
|
23492
|
-
return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
|
|
23493
|
-
};
|
|
23494
|
-
}
|
|
23495
|
-
if (kind === "after") {
|
|
23496
|
-
hook2 = (method, options) => {
|
|
23497
|
-
let result;
|
|
23498
|
-
return Promise.resolve().then(method.bind(null, options)).then((result_) => {
|
|
23499
|
-
result = result_;
|
|
23500
|
-
return orig(result, options);
|
|
23501
|
-
}).then(() => {
|
|
23502
|
-
return result;
|
|
23503
|
-
});
|
|
23504
|
-
};
|
|
23505
|
-
}
|
|
23506
|
-
if (kind === "error") {
|
|
23507
|
-
hook2 = (method, options) => {
|
|
23508
|
-
return Promise.resolve().then(method.bind(null, options)).catch((error) => {
|
|
23509
|
-
return orig(error, options);
|
|
23510
|
-
});
|
|
23511
|
-
};
|
|
23512
|
-
}
|
|
23513
|
-
state.registry[name].push({
|
|
23514
|
-
hook: hook2,
|
|
23515
|
-
orig
|
|
23516
|
-
});
|
|
23517
|
-
}
|
|
23591
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/version.js
|
|
23592
|
+
var VERSION = "9.0.6";
|
|
23518
23593
|
|
|
23519
|
-
// ../../node_modules/.pnpm
|
|
23520
|
-
function removeHook(state, name, method) {
|
|
23521
|
-
if (!state.registry[name]) {
|
|
23522
|
-
return;
|
|
23523
|
-
}
|
|
23524
|
-
const index = state.registry[name].map((registered) => {
|
|
23525
|
-
return registered.orig;
|
|
23526
|
-
}).indexOf(method);
|
|
23527
|
-
if (index === -1) {
|
|
23528
|
-
return;
|
|
23529
|
-
}
|
|
23530
|
-
state.registry[name].splice(index, 1);
|
|
23531
|
-
}
|
|
23532
|
-
|
|
23533
|
-
// ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/index.js
|
|
23534
|
-
var bind = Function.bind;
|
|
23535
|
-
var bindable = bind.bind(bind);
|
|
23536
|
-
function bindApi(hook2, state, name) {
|
|
23537
|
-
const removeHookRef = bindable(removeHook, null).apply(
|
|
23538
|
-
null,
|
|
23539
|
-
name ? [state, name] : [state]
|
|
23540
|
-
);
|
|
23541
|
-
hook2.api = { remove: removeHookRef };
|
|
23542
|
-
hook2.remove = removeHookRef;
|
|
23543
|
-
["before", "error", "after", "wrap"].forEach((kind) => {
|
|
23544
|
-
const args = name ? [state, kind, name] : [state, kind];
|
|
23545
|
-
hook2[kind] = hook2.api[kind] = bindable(addHook, null).apply(null, args);
|
|
23546
|
-
});
|
|
23547
|
-
}
|
|
23548
|
-
function Singular() {
|
|
23549
|
-
const singularHookName = /* @__PURE__ */ Symbol("Singular");
|
|
23550
|
-
const singularHookState = {
|
|
23551
|
-
registry: {}
|
|
23552
|
-
};
|
|
23553
|
-
const singularHook = register.bind(null, singularHookState, singularHookName);
|
|
23554
|
-
bindApi(singularHook, singularHookState, singularHookName);
|
|
23555
|
-
return singularHook;
|
|
23556
|
-
}
|
|
23557
|
-
function Collection() {
|
|
23558
|
-
const state = {
|
|
23559
|
-
registry: {}
|
|
23560
|
-
};
|
|
23561
|
-
const hook2 = register.bind(null, state);
|
|
23562
|
-
bindApi(hook2, state);
|
|
23563
|
-
return hook2;
|
|
23564
|
-
}
|
|
23565
|
-
var before_after_hook_default = { Singular, Collection };
|
|
23566
|
-
|
|
23567
|
-
// ../../node_modules/.pnpm/@octokit+endpoint@11.0.2/node_modules/@octokit/endpoint/dist-bundle/index.js
|
|
23568
|
-
var VERSION = "0.0.0-development";
|
|
23594
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/defaults.js
|
|
23569
23595
|
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
|
23570
23596
|
var DEFAULTS = {
|
|
23571
23597
|
method: "GET",
|
|
@@ -23578,6 +23604,8 @@ var DEFAULTS = {
|
|
|
23578
23604
|
format: ""
|
|
23579
23605
|
}
|
|
23580
23606
|
};
|
|
23607
|
+
|
|
23608
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js
|
|
23581
23609
|
function lowercaseKeys(object2) {
|
|
23582
23610
|
if (!object2) {
|
|
23583
23611
|
return {};
|
|
@@ -23587,26 +23615,37 @@ function lowercaseKeys(object2) {
|
|
|
23587
23615
|
return newObj;
|
|
23588
23616
|
}, {});
|
|
23589
23617
|
}
|
|
23618
|
+
|
|
23619
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/is-plain-object.js
|
|
23590
23620
|
function isPlainObject(value) {
|
|
23591
|
-
if (typeof value !== "object" || value === null)
|
|
23592
|
-
|
|
23621
|
+
if (typeof value !== "object" || value === null)
|
|
23622
|
+
return false;
|
|
23623
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
23624
|
+
return false;
|
|
23593
23625
|
const proto = Object.getPrototypeOf(value);
|
|
23594
|
-
if (proto === null)
|
|
23626
|
+
if (proto === null)
|
|
23627
|
+
return true;
|
|
23595
23628
|
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
23596
23629
|
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
23597
23630
|
}
|
|
23631
|
+
|
|
23632
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
|
|
23598
23633
|
function mergeDeep(defaults3, options) {
|
|
23599
23634
|
const result = Object.assign({}, defaults3);
|
|
23600
23635
|
Object.keys(options).forEach((key) => {
|
|
23601
23636
|
if (isPlainObject(options[key])) {
|
|
23602
|
-
if (!(key in defaults3))
|
|
23603
|
-
|
|
23637
|
+
if (!(key in defaults3))
|
|
23638
|
+
Object.assign(result, { [key]: options[key] });
|
|
23639
|
+
else
|
|
23640
|
+
result[key] = mergeDeep(defaults3[key], options[key]);
|
|
23604
23641
|
} else {
|
|
23605
23642
|
Object.assign(result, { [key]: options[key] });
|
|
23606
23643
|
}
|
|
23607
23644
|
});
|
|
23608
23645
|
return result;
|
|
23609
23646
|
}
|
|
23647
|
+
|
|
23648
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
|
|
23610
23649
|
function removeUndefinedProperties(obj) {
|
|
23611
23650
|
for (const key in obj) {
|
|
23612
23651
|
if (obj[key] === void 0) {
|
|
@@ -23615,6 +23654,8 @@ function removeUndefinedProperties(obj) {
|
|
|
23615
23654
|
}
|
|
23616
23655
|
return obj;
|
|
23617
23656
|
}
|
|
23657
|
+
|
|
23658
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/merge.js
|
|
23618
23659
|
function merge(defaults3, route, options) {
|
|
23619
23660
|
if (typeof route === "string") {
|
|
23620
23661
|
let [method, url] = route.split(" ");
|
|
@@ -23636,6 +23677,8 @@ function merge(defaults3, route, options) {
|
|
|
23636
23677
|
}
|
|
23637
23678
|
return mergedOptions;
|
|
23638
23679
|
}
|
|
23680
|
+
|
|
23681
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js
|
|
23639
23682
|
function addQueryParameters(url, parameters) {
|
|
23640
23683
|
const separator = /\?/.test(url) ? "&" : "?";
|
|
23641
23684
|
const names = Object.keys(parameters);
|
|
@@ -23649,6 +23692,8 @@ function addQueryParameters(url, parameters) {
|
|
|
23649
23692
|
return `${name}=${encodeURIComponent(parameters[name])}`;
|
|
23650
23693
|
}).join("&");
|
|
23651
23694
|
}
|
|
23695
|
+
|
|
23696
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js
|
|
23652
23697
|
var urlVariableRegex = /\{[^{}}]+\}/g;
|
|
23653
23698
|
function removeNonChars(variableName) {
|
|
23654
23699
|
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
|
|
@@ -23660,6 +23705,8 @@ function extractUrlVariableNames(url) {
|
|
|
23660
23705
|
}
|
|
23661
23706
|
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
|
|
23662
23707
|
}
|
|
23708
|
+
|
|
23709
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/omit.js
|
|
23663
23710
|
function omit(object2, keysToOmit) {
|
|
23664
23711
|
const result = { __proto__: null };
|
|
23665
23712
|
for (const key of Object.keys(object2)) {
|
|
@@ -23669,6 +23716,8 @@ function omit(object2, keysToOmit) {
|
|
|
23669
23716
|
}
|
|
23670
23717
|
return result;
|
|
23671
23718
|
}
|
|
23719
|
+
|
|
23720
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/url-template.js
|
|
23672
23721
|
function encodeReserved(str) {
|
|
23673
23722
|
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
|
|
23674
23723
|
if (!/%[0-9A-Fa-f]/.test(part)) {
|
|
@@ -23799,6 +23848,8 @@ function expand2(template2, context) {
|
|
|
23799
23848
|
return template2.replace(/\/$/, "");
|
|
23800
23849
|
}
|
|
23801
23850
|
}
|
|
23851
|
+
|
|
23852
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/parse.js
|
|
23802
23853
|
function parse(options) {
|
|
23803
23854
|
let method = options.method.toUpperCase();
|
|
23804
23855
|
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
|
@@ -23862,9 +23913,13 @@ function parse(options) {
|
|
|
23862
23913
|
options.request ? { request: options.request } : null
|
|
23863
23914
|
);
|
|
23864
23915
|
}
|
|
23916
|
+
|
|
23917
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js
|
|
23865
23918
|
function endpointWithDefaults(defaults3, route, options) {
|
|
23866
23919
|
return parse(merge(defaults3, route, options));
|
|
23867
23920
|
}
|
|
23921
|
+
|
|
23922
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/with-defaults.js
|
|
23868
23923
|
function withDefaults(oldDefaults, newDefaults) {
|
|
23869
23924
|
const DEFAULTS2 = merge(oldDefaults, newDefaults);
|
|
23870
23925
|
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
|
|
@@ -23875,35 +23930,56 @@ function withDefaults(oldDefaults, newDefaults) {
|
|
|
23875
23930
|
parse
|
|
23876
23931
|
});
|
|
23877
23932
|
}
|
|
23933
|
+
|
|
23934
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/index.js
|
|
23878
23935
|
var endpoint = withDefaults(null, DEFAULTS);
|
|
23879
23936
|
|
|
23880
|
-
// ../../node_modules/.pnpm/@octokit+request@
|
|
23881
|
-
var
|
|
23937
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/version.js
|
|
23938
|
+
var VERSION2 = "8.4.1";
|
|
23882
23939
|
|
|
23883
|
-
// ../../node_modules/.pnpm/@octokit+request
|
|
23940
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/is-plain-object.js
|
|
23941
|
+
function isPlainObject2(value) {
|
|
23942
|
+
if (typeof value !== "object" || value === null)
|
|
23943
|
+
return false;
|
|
23944
|
+
if (Object.prototype.toString.call(value) !== "[object Object]")
|
|
23945
|
+
return false;
|
|
23946
|
+
const proto = Object.getPrototypeOf(value);
|
|
23947
|
+
if (proto === null)
|
|
23948
|
+
return true;
|
|
23949
|
+
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
23950
|
+
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
23951
|
+
}
|
|
23952
|
+
|
|
23953
|
+
// ../../node_modules/.pnpm/deprecation@2.3.1/node_modules/deprecation/dist-web/index.js
|
|
23954
|
+
var Deprecation = class extends Error {
|
|
23955
|
+
constructor(message) {
|
|
23956
|
+
super(message);
|
|
23957
|
+
if (Error.captureStackTrace) {
|
|
23958
|
+
Error.captureStackTrace(this, this.constructor);
|
|
23959
|
+
}
|
|
23960
|
+
this.name = "Deprecation";
|
|
23961
|
+
}
|
|
23962
|
+
};
|
|
23963
|
+
|
|
23964
|
+
// ../../node_modules/.pnpm/@octokit+request-error@5.1.1/node_modules/@octokit/request-error/dist-src/index.js
|
|
23965
|
+
var import_once = __toESM(require_once());
|
|
23966
|
+
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
|
23967
|
+
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
|
23884
23968
|
var RequestError = class extends Error {
|
|
23885
|
-
name;
|
|
23886
|
-
/**
|
|
23887
|
-
* http status code
|
|
23888
|
-
*/
|
|
23889
|
-
status;
|
|
23890
|
-
/**
|
|
23891
|
-
* Request options that lead to the error.
|
|
23892
|
-
*/
|
|
23893
|
-
request;
|
|
23894
|
-
/**
|
|
23895
|
-
* Response object if a response was received
|
|
23896
|
-
*/
|
|
23897
|
-
response;
|
|
23898
23969
|
constructor(message, statusCode, options) {
|
|
23899
|
-
super(message
|
|
23970
|
+
super(message);
|
|
23971
|
+
if (Error.captureStackTrace) {
|
|
23972
|
+
Error.captureStackTrace(this, this.constructor);
|
|
23973
|
+
}
|
|
23900
23974
|
this.name = "HttpError";
|
|
23901
|
-
this.status =
|
|
23902
|
-
|
|
23903
|
-
|
|
23975
|
+
this.status = statusCode;
|
|
23976
|
+
let headers;
|
|
23977
|
+
if ("headers" in options && typeof options.headers !== "undefined") {
|
|
23978
|
+
headers = options.headers;
|
|
23904
23979
|
}
|
|
23905
23980
|
if ("response" in options) {
|
|
23906
23981
|
this.response = options.response;
|
|
23982
|
+
headers = options.response.headers;
|
|
23907
23983
|
}
|
|
23908
23984
|
const requestCopy = Object.assign({}, options.request);
|
|
23909
23985
|
if (options.request.headers.authorization) {
|
|
@@ -23916,162 +23992,171 @@ var RequestError = class extends Error {
|
|
|
23916
23992
|
}
|
|
23917
23993
|
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
23918
23994
|
this.request = requestCopy;
|
|
23995
|
+
Object.defineProperty(this, "code", {
|
|
23996
|
+
get() {
|
|
23997
|
+
logOnceCode(
|
|
23998
|
+
new Deprecation(
|
|
23999
|
+
"[@octokit/request-error] `error.code` is deprecated, use `error.status`."
|
|
24000
|
+
)
|
|
24001
|
+
);
|
|
24002
|
+
return statusCode;
|
|
24003
|
+
}
|
|
24004
|
+
});
|
|
24005
|
+
Object.defineProperty(this, "headers", {
|
|
24006
|
+
get() {
|
|
24007
|
+
logOnceHeaders(
|
|
24008
|
+
new Deprecation(
|
|
24009
|
+
"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."
|
|
24010
|
+
)
|
|
24011
|
+
);
|
|
24012
|
+
return headers || {};
|
|
24013
|
+
}
|
|
24014
|
+
});
|
|
23919
24015
|
}
|
|
23920
24016
|
};
|
|
23921
24017
|
|
|
23922
|
-
// ../../node_modules/.pnpm/@octokit+request@
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
headers: {
|
|
23926
|
-
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
|
|
23927
|
-
}
|
|
23928
|
-
};
|
|
23929
|
-
function isPlainObject2(value) {
|
|
23930
|
-
if (typeof value !== "object" || value === null) return false;
|
|
23931
|
-
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
23932
|
-
const proto = Object.getPrototypeOf(value);
|
|
23933
|
-
if (proto === null) return true;
|
|
23934
|
-
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
23935
|
-
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
24018
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/get-buffer-response.js
|
|
24019
|
+
function getBufferResponse(response) {
|
|
24020
|
+
return response.arrayBuffer();
|
|
23936
24021
|
}
|
|
23937
|
-
|
|
23938
|
-
|
|
23939
|
-
|
|
24022
|
+
|
|
24023
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/fetch-wrapper.js
|
|
24024
|
+
function fetchWrapper(requestOptions) {
|
|
24025
|
+
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
|
|
24026
|
+
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
|
|
24027
|
+
if (isPlainObject2(requestOptions.body) || Array.isArray(requestOptions.body)) {
|
|
24028
|
+
requestOptions.body = JSON.stringify(requestOptions.body);
|
|
24029
|
+
}
|
|
24030
|
+
let headers = {};
|
|
24031
|
+
let status2;
|
|
24032
|
+
let url;
|
|
24033
|
+
let { fetch: fetch2 } = globalThis;
|
|
24034
|
+
if (requestOptions.request?.fetch) {
|
|
24035
|
+
fetch2 = requestOptions.request.fetch;
|
|
24036
|
+
}
|
|
23940
24037
|
if (!fetch2) {
|
|
23941
24038
|
throw new Error(
|
|
23942
24039
|
"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"
|
|
23943
24040
|
);
|
|
23944
24041
|
}
|
|
23945
|
-
|
|
23946
|
-
|
|
23947
|
-
|
|
23948
|
-
|
|
23949
|
-
|
|
23950
|
-
|
|
23951
|
-
|
|
23952
|
-
|
|
23953
|
-
|
|
23954
|
-
|
|
23955
|
-
|
|
23956
|
-
|
|
23957
|
-
|
|
23958
|
-
|
|
23959
|
-
|
|
23960
|
-
|
|
23961
|
-
|
|
23962
|
-
|
|
23963
|
-
|
|
23964
|
-
|
|
23965
|
-
|
|
23966
|
-
|
|
23967
|
-
|
|
23968
|
-
|
|
23969
|
-
|
|
23970
|
-
|
|
23971
|
-
|
|
23972
|
-
|
|
23973
|
-
message = error.message;
|
|
23974
|
-
if (error.name === "TypeError" && "cause" in error) {
|
|
23975
|
-
if (error.cause instanceof Error) {
|
|
23976
|
-
message = error.cause.message;
|
|
23977
|
-
} else if (typeof error.cause === "string") {
|
|
23978
|
-
message = error.cause;
|
|
23979
|
-
}
|
|
24042
|
+
return fetch2(requestOptions.url, {
|
|
24043
|
+
method: requestOptions.method,
|
|
24044
|
+
body: requestOptions.body,
|
|
24045
|
+
redirect: requestOptions.request?.redirect,
|
|
24046
|
+
headers: requestOptions.headers,
|
|
24047
|
+
signal: requestOptions.request?.signal,
|
|
24048
|
+
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
|
24049
|
+
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
|
24050
|
+
...requestOptions.body && { duplex: "half" }
|
|
24051
|
+
}).then(async (response) => {
|
|
24052
|
+
url = response.url;
|
|
24053
|
+
status2 = response.status;
|
|
24054
|
+
for (const keyAndValue of response.headers) {
|
|
24055
|
+
headers[keyAndValue[0]] = keyAndValue[1];
|
|
24056
|
+
}
|
|
24057
|
+
if ("deprecation" in headers) {
|
|
24058
|
+
const matches = headers.link && headers.link.match(/<([^<>]+)>; rel="deprecation"/);
|
|
24059
|
+
const deprecationLink = matches && matches.pop();
|
|
24060
|
+
log.warn(
|
|
24061
|
+
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
|
24062
|
+
);
|
|
24063
|
+
}
|
|
24064
|
+
if (status2 === 204 || status2 === 205) {
|
|
24065
|
+
return;
|
|
24066
|
+
}
|
|
24067
|
+
if (requestOptions.method === "HEAD") {
|
|
24068
|
+
if (status2 < 400) {
|
|
24069
|
+
return;
|
|
23980
24070
|
}
|
|
24071
|
+
throw new RequestError(response.statusText, status2, {
|
|
24072
|
+
response: {
|
|
24073
|
+
url,
|
|
24074
|
+
status: status2,
|
|
24075
|
+
headers,
|
|
24076
|
+
data: void 0
|
|
24077
|
+
},
|
|
24078
|
+
request: requestOptions
|
|
24079
|
+
});
|
|
23981
24080
|
}
|
|
23982
|
-
|
|
23983
|
-
|
|
23984
|
-
|
|
23985
|
-
|
|
23986
|
-
|
|
23987
|
-
|
|
23988
|
-
|
|
23989
|
-
|
|
23990
|
-
|
|
23991
|
-
|
|
23992
|
-
responseHeaders[key] = value;
|
|
23993
|
-
}
|
|
23994
|
-
const octokitResponse = {
|
|
23995
|
-
url,
|
|
23996
|
-
status: status2,
|
|
23997
|
-
headers: responseHeaders,
|
|
23998
|
-
data: ""
|
|
23999
|
-
};
|
|
24000
|
-
if ("deprecation" in responseHeaders) {
|
|
24001
|
-
const matches = responseHeaders.link && responseHeaders.link.match(/<([^<>]+)>; rel="deprecation"/);
|
|
24002
|
-
const deprecationLink = matches && matches.pop();
|
|
24003
|
-
log.warn(
|
|
24004
|
-
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${responseHeaders.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
|
24005
|
-
);
|
|
24006
|
-
}
|
|
24007
|
-
if (status2 === 204 || status2 === 205) {
|
|
24008
|
-
return octokitResponse;
|
|
24009
|
-
}
|
|
24010
|
-
if (requestOptions.method === "HEAD") {
|
|
24011
|
-
if (status2 < 400) {
|
|
24012
|
-
return octokitResponse;
|
|
24081
|
+
if (status2 === 304) {
|
|
24082
|
+
throw new RequestError("Not modified", status2, {
|
|
24083
|
+
response: {
|
|
24084
|
+
url,
|
|
24085
|
+
status: status2,
|
|
24086
|
+
headers,
|
|
24087
|
+
data: await getResponseData(response)
|
|
24088
|
+
},
|
|
24089
|
+
request: requestOptions
|
|
24090
|
+
});
|
|
24013
24091
|
}
|
|
24014
|
-
|
|
24015
|
-
response
|
|
24016
|
-
|
|
24017
|
-
|
|
24018
|
-
|
|
24019
|
-
|
|
24020
|
-
|
|
24021
|
-
|
|
24022
|
-
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
|
|
24027
|
-
|
|
24028
|
-
|
|
24029
|
-
|
|
24092
|
+
if (status2 >= 400) {
|
|
24093
|
+
const data = await getResponseData(response);
|
|
24094
|
+
const error = new RequestError(toErrorMessage(data), status2, {
|
|
24095
|
+
response: {
|
|
24096
|
+
url,
|
|
24097
|
+
status: status2,
|
|
24098
|
+
headers,
|
|
24099
|
+
data
|
|
24100
|
+
},
|
|
24101
|
+
request: requestOptions
|
|
24102
|
+
});
|
|
24103
|
+
throw error;
|
|
24104
|
+
}
|
|
24105
|
+
return parseSuccessResponseBody ? await getResponseData(response) : response.body;
|
|
24106
|
+
}).then((data) => {
|
|
24107
|
+
return {
|
|
24108
|
+
status: status2,
|
|
24109
|
+
url,
|
|
24110
|
+
headers,
|
|
24111
|
+
data
|
|
24112
|
+
};
|
|
24113
|
+
}).catch((error) => {
|
|
24114
|
+
if (error instanceof RequestError)
|
|
24115
|
+
throw error;
|
|
24116
|
+
else if (error.name === "AbortError")
|
|
24117
|
+
throw error;
|
|
24118
|
+
let message = error.message;
|
|
24119
|
+
if (error.name === "TypeError" && "cause" in error) {
|
|
24120
|
+
if (error.cause instanceof Error) {
|
|
24121
|
+
message = error.cause.message;
|
|
24122
|
+
} else if (typeof error.cause === "string") {
|
|
24123
|
+
message = error.cause;
|
|
24124
|
+
}
|
|
24125
|
+
}
|
|
24126
|
+
throw new RequestError(message, 500, {
|
|
24030
24127
|
request: requestOptions
|
|
24031
24128
|
});
|
|
24032
|
-
}
|
|
24033
|
-
octokitResponse.data = parseSuccessResponseBody ? await getResponseData(fetchResponse) : fetchResponse.body;
|
|
24034
|
-
return octokitResponse;
|
|
24129
|
+
});
|
|
24035
24130
|
}
|
|
24036
24131
|
async function getResponseData(response) {
|
|
24037
24132
|
const contentType = response.headers.get("content-type");
|
|
24038
|
-
if (
|
|
24039
|
-
return response.text().catch(
|
|
24133
|
+
if (/application\/json/.test(contentType)) {
|
|
24134
|
+
return response.json().catch(() => response.text()).catch(() => "");
|
|
24040
24135
|
}
|
|
24041
|
-
|
|
24042
|
-
|
|
24043
|
-
let text = "";
|
|
24044
|
-
try {
|
|
24045
|
-
text = await response.text();
|
|
24046
|
-
return JSON.parse(text);
|
|
24047
|
-
} catch (err) {
|
|
24048
|
-
return text;
|
|
24049
|
-
}
|
|
24050
|
-
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
|
|
24051
|
-
return response.text().catch(noop);
|
|
24052
|
-
} else {
|
|
24053
|
-
return response.arrayBuffer().catch(
|
|
24054
|
-
/* v8 ignore next -- @preserve */
|
|
24055
|
-
() => new ArrayBuffer(0)
|
|
24056
|
-
);
|
|
24136
|
+
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
|
|
24137
|
+
return response.text();
|
|
24057
24138
|
}
|
|
24058
|
-
|
|
24059
|
-
function isJSONResponse(mimetype) {
|
|
24060
|
-
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
|
|
24139
|
+
return getBufferResponse(response);
|
|
24061
24140
|
}
|
|
24062
24141
|
function toErrorMessage(data) {
|
|
24063
|
-
if (typeof data === "string")
|
|
24142
|
+
if (typeof data === "string")
|
|
24064
24143
|
return data;
|
|
24065
|
-
|
|
24066
|
-
if (
|
|
24067
|
-
|
|
24144
|
+
let suffix;
|
|
24145
|
+
if ("documentation_url" in data) {
|
|
24146
|
+
suffix = ` - ${data.documentation_url}`;
|
|
24147
|
+
} else {
|
|
24148
|
+
suffix = "";
|
|
24068
24149
|
}
|
|
24069
24150
|
if ("message" in data) {
|
|
24070
|
-
|
|
24071
|
-
|
|
24151
|
+
if (Array.isArray(data.errors)) {
|
|
24152
|
+
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
|
|
24153
|
+
}
|
|
24154
|
+
return `${data.message}${suffix}`;
|
|
24072
24155
|
}
|
|
24073
24156
|
return `Unknown error: ${JSON.stringify(data)}`;
|
|
24074
24157
|
}
|
|
24158
|
+
|
|
24159
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/with-defaults.js
|
|
24075
24160
|
function withDefaults2(oldEndpoint, newDefaults) {
|
|
24076
24161
|
const endpoint2 = oldEndpoint.defaults(newDefaults);
|
|
24077
24162
|
const newApi = function(route, parameters) {
|
|
@@ -24095,10 +24180,16 @@ function withDefaults2(oldEndpoint, newDefaults) {
|
|
|
24095
24180
|
defaults: withDefaults2.bind(null, endpoint2)
|
|
24096
24181
|
});
|
|
24097
24182
|
}
|
|
24098
|
-
var request = withDefaults2(endpoint, defaults_default);
|
|
24099
24183
|
|
|
24100
|
-
// ../../node_modules/.pnpm/@octokit+
|
|
24101
|
-
var
|
|
24184
|
+
// ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/index.js
|
|
24185
|
+
var request = withDefaults2(endpoint, {
|
|
24186
|
+
headers: {
|
|
24187
|
+
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
|
|
24188
|
+
}
|
|
24189
|
+
});
|
|
24190
|
+
|
|
24191
|
+
// ../../node_modules/.pnpm/@octokit+graphql@7.1.1/node_modules/@octokit/graphql/dist-web/index.js
|
|
24192
|
+
var VERSION3 = "7.1.1";
|
|
24102
24193
|
function _buildMessageForResponseErrors(data) {
|
|
24103
24194
|
return `Request failed due to following response errors:
|
|
24104
24195
|
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
|
@@ -24109,15 +24200,13 @@ var GraphqlResponseError = class extends Error {
|
|
|
24109
24200
|
this.request = request2;
|
|
24110
24201
|
this.headers = headers;
|
|
24111
24202
|
this.response = response;
|
|
24203
|
+
this.name = "GraphqlResponseError";
|
|
24112
24204
|
this.errors = response.errors;
|
|
24113
24205
|
this.data = response.data;
|
|
24114
24206
|
if (Error.captureStackTrace) {
|
|
24115
24207
|
Error.captureStackTrace(this, this.constructor);
|
|
24116
24208
|
}
|
|
24117
24209
|
}
|
|
24118
|
-
name = "GraphqlResponseError";
|
|
24119
|
-
errors;
|
|
24120
|
-
data;
|
|
24121
24210
|
};
|
|
24122
24211
|
var NON_VARIABLE_OPTIONS = [
|
|
24123
24212
|
"method",
|
|
@@ -24126,8 +24215,7 @@ var NON_VARIABLE_OPTIONS = [
|
|
|
24126
24215
|
"headers",
|
|
24127
24216
|
"request",
|
|
24128
24217
|
"query",
|
|
24129
|
-
"mediaType"
|
|
24130
|
-
"operationName"
|
|
24218
|
+
"mediaType"
|
|
24131
24219
|
];
|
|
24132
24220
|
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
|
24133
24221
|
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
|
@@ -24204,15 +24292,14 @@ function withCustomRequest(customRequest) {
|
|
|
24204
24292
|
});
|
|
24205
24293
|
}
|
|
24206
24294
|
|
|
24207
|
-
// ../../node_modules/.pnpm/@octokit+auth-token@
|
|
24208
|
-
var
|
|
24209
|
-
var
|
|
24210
|
-
var
|
|
24211
|
-
var isJWT = jwtRE.test.bind(jwtRE);
|
|
24295
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/auth.js
|
|
24296
|
+
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
|
24297
|
+
var REGEX_IS_INSTALLATION = /^ghs_/;
|
|
24298
|
+
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
|
24212
24299
|
async function auth(token) {
|
|
24213
|
-
const isApp =
|
|
24214
|
-
const isInstallation =
|
|
24215
|
-
const isUserToServer =
|
|
24300
|
+
const isApp = token.split(/\./).length === 3;
|
|
24301
|
+
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
|
|
24302
|
+
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
|
|
24216
24303
|
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
|
24217
24304
|
return {
|
|
24218
24305
|
type: "token",
|
|
@@ -24220,12 +24307,16 @@ async function auth(token) {
|
|
|
24220
24307
|
tokenType
|
|
24221
24308
|
};
|
|
24222
24309
|
}
|
|
24310
|
+
|
|
24311
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js
|
|
24223
24312
|
function withAuthorizationPrefix(token) {
|
|
24224
24313
|
if (token.split(/\./).length === 3) {
|
|
24225
24314
|
return `bearer ${token}`;
|
|
24226
24315
|
}
|
|
24227
24316
|
return `token ${token}`;
|
|
24228
24317
|
}
|
|
24318
|
+
|
|
24319
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/hook.js
|
|
24229
24320
|
async function hook(token, request2, route, parameters) {
|
|
24230
24321
|
const endpoint2 = request2.endpoint.merge(
|
|
24231
24322
|
route,
|
|
@@ -24234,6 +24325,8 @@ async function hook(token, request2, route, parameters) {
|
|
|
24234
24325
|
endpoint2.headers.authorization = withAuthorizationPrefix(token);
|
|
24235
24326
|
return request2(endpoint2);
|
|
24236
24327
|
}
|
|
24328
|
+
|
|
24329
|
+
// ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/index.js
|
|
24237
24330
|
var createTokenAuth = function createTokenAuth2(token) {
|
|
24238
24331
|
if (!token) {
|
|
24239
24332
|
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
@@ -24249,20 +24342,18 @@ var createTokenAuth = function createTokenAuth2(token) {
|
|
|
24249
24342
|
});
|
|
24250
24343
|
};
|
|
24251
24344
|
|
|
24252
|
-
// ../../node_modules/.pnpm/@octokit+core@
|
|
24253
|
-
var VERSION4 = "
|
|
24254
|
-
|
|
24255
|
-
// ../../node_modules/.pnpm/@octokit+core@7.0.6/node_modules/@octokit/core/dist-src/index.js
|
|
24256
|
-
var noop2 = () => {
|
|
24345
|
+
// ../../node_modules/.pnpm/@octokit+core@5.2.2/node_modules/@octokit/core/dist-web/index.js
|
|
24346
|
+
var VERSION4 = "5.2.2";
|
|
24347
|
+
var noop = () => {
|
|
24257
24348
|
};
|
|
24258
24349
|
var consoleWarn = console.warn.bind(console);
|
|
24259
24350
|
var consoleError = console.error.bind(console);
|
|
24260
24351
|
function createLogger2(logger = {}) {
|
|
24261
24352
|
if (typeof logger.debug !== "function") {
|
|
24262
|
-
logger.debug =
|
|
24353
|
+
logger.debug = noop;
|
|
24263
24354
|
}
|
|
24264
24355
|
if (typeof logger.info !== "function") {
|
|
24265
|
-
logger.info =
|
|
24356
|
+
logger.info = noop;
|
|
24266
24357
|
}
|
|
24267
24358
|
if (typeof logger.warn !== "function") {
|
|
24268
24359
|
logger.warn = consoleWarn;
|
|
@@ -24274,7 +24365,9 @@ function createLogger2(logger = {}) {
|
|
|
24274
24365
|
}
|
|
24275
24366
|
var userAgentTrail = `octokit-core.js/${VERSION4} ${getUserAgent()}`;
|
|
24276
24367
|
var Octokit = class {
|
|
24277
|
-
static
|
|
24368
|
+
static {
|
|
24369
|
+
this.VERSION = VERSION4;
|
|
24370
|
+
}
|
|
24278
24371
|
static defaults(defaults3) {
|
|
24279
24372
|
const OctokitWithDefaults = class extends this {
|
|
24280
24373
|
constructor(...args) {
|
|
@@ -24297,7 +24390,9 @@ var Octokit = class {
|
|
|
24297
24390
|
};
|
|
24298
24391
|
return OctokitWithDefaults;
|
|
24299
24392
|
}
|
|
24300
|
-
static
|
|
24393
|
+
static {
|
|
24394
|
+
this.plugins = [];
|
|
24395
|
+
}
|
|
24301
24396
|
/**
|
|
24302
24397
|
* Attach a plugin (or many) to your Octokit instance.
|
|
24303
24398
|
*
|
|
@@ -24307,14 +24402,16 @@ var Octokit = class {
|
|
|
24307
24402
|
static plugin(...newPlugins) {
|
|
24308
24403
|
const currentPlugins = this.plugins;
|
|
24309
24404
|
const NewOctokit = class extends this {
|
|
24310
|
-
static
|
|
24311
|
-
|
|
24312
|
-
|
|
24405
|
+
static {
|
|
24406
|
+
this.plugins = currentPlugins.concat(
|
|
24407
|
+
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
|
24408
|
+
);
|
|
24409
|
+
}
|
|
24313
24410
|
};
|
|
24314
24411
|
return NewOctokit;
|
|
24315
24412
|
}
|
|
24316
24413
|
constructor(options = {}) {
|
|
24317
|
-
const hook2 = new
|
|
24414
|
+
const hook2 = new import_before_after_hook.Collection();
|
|
24318
24415
|
const requestDefaults = {
|
|
24319
24416
|
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
|
24320
24417
|
headers: {},
|
|
@@ -24377,19 +24474,12 @@ var Octokit = class {
|
|
|
24377
24474
|
Object.assign(this, classConstructor.plugins[i](this, options));
|
|
24378
24475
|
}
|
|
24379
24476
|
}
|
|
24380
|
-
// assigned during constructor
|
|
24381
|
-
request;
|
|
24382
|
-
graphql;
|
|
24383
|
-
log;
|
|
24384
|
-
hook;
|
|
24385
|
-
// TODO: type `octokit.auth` based on passed options.authStrategy
|
|
24386
|
-
auth;
|
|
24387
24477
|
};
|
|
24388
24478
|
|
|
24389
|
-
// ../../node_modules/.pnpm/@octokit+plugin-request-log@
|
|
24390
|
-
var VERSION5 = "
|
|
24479
|
+
// ../../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
|
|
24480
|
+
var VERSION5 = "4.0.1";
|
|
24391
24481
|
|
|
24392
|
-
// ../../node_modules/.pnpm/@octokit+plugin-request-log@
|
|
24482
|
+
// ../../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
|
|
24393
24483
|
function requestLog(octokit) {
|
|
24394
24484
|
octokit.hook.wrap("request", (request2, options) => {
|
|
24395
24485
|
octokit.log.debug("request", options);
|
|
@@ -24397,15 +24487,13 @@ function requestLog(octokit) {
|
|
|
24397
24487
|
const requestOptions = octokit.request.endpoint.parse(options);
|
|
24398
24488
|
const path5 = requestOptions.url.replace(options.baseUrl, "");
|
|
24399
24489
|
return request2(options).then((response) => {
|
|
24400
|
-
const requestId = response.headers["x-github-request-id"];
|
|
24401
24490
|
octokit.log.info(
|
|
24402
|
-
`${requestOptions.method} ${path5} - ${response.status}
|
|
24491
|
+
`${requestOptions.method} ${path5} - ${response.status} in ${Date.now() - start}ms`
|
|
24403
24492
|
);
|
|
24404
24493
|
return response;
|
|
24405
24494
|
}).catch((error) => {
|
|
24406
|
-
|
|
24407
|
-
|
|
24408
|
-
`${requestOptions.method} ${path5} - ${error.status} with id ${requestId} in ${Date.now() - start}ms`
|
|
24495
|
+
octokit.log.info(
|
|
24496
|
+
`${requestOptions.method} ${path5} - ${error.status} in ${Date.now() - start}ms`
|
|
24409
24497
|
);
|
|
24410
24498
|
throw error;
|
|
24411
24499
|
});
|
|
@@ -24413,8 +24501,8 @@ function requestLog(octokit) {
|
|
|
24413
24501
|
}
|
|
24414
24502
|
requestLog.VERSION = VERSION5;
|
|
24415
24503
|
|
|
24416
|
-
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@
|
|
24417
|
-
var VERSION6 = "
|
|
24504
|
+
// ../../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
|
|
24505
|
+
var VERSION6 = "11.4.4-cjs.2";
|
|
24418
24506
|
function normalizePaginatedListResponse(response) {
|
|
24419
24507
|
if (!response.data) {
|
|
24420
24508
|
return {
|
|
@@ -24422,16 +24510,14 @@ function normalizePaginatedListResponse(response) {
|
|
|
24422
24510
|
data: []
|
|
24423
24511
|
};
|
|
24424
24512
|
}
|
|
24425
|
-
const responseNeedsNormalization =
|
|
24513
|
+
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
|
24426
24514
|
if (!responseNeedsNormalization) return response;
|
|
24427
24515
|
const incompleteResults = response.data.incomplete_results;
|
|
24428
24516
|
const repositorySelection = response.data.repository_selection;
|
|
24429
24517
|
const totalCount = response.data.total_count;
|
|
24430
|
-
const totalCommits = response.data.total_commits;
|
|
24431
24518
|
delete response.data.incomplete_results;
|
|
24432
24519
|
delete response.data.repository_selection;
|
|
24433
24520
|
delete response.data.total_count;
|
|
24434
|
-
delete response.data.total_commits;
|
|
24435
24521
|
const namespaceKey = Object.keys(response.data)[0];
|
|
24436
24522
|
const data = response.data[namespaceKey];
|
|
24437
24523
|
response.data = data;
|
|
@@ -24442,7 +24528,6 @@ function normalizePaginatedListResponse(response) {
|
|
|
24442
24528
|
response.data.repository_selection = repositorySelection;
|
|
24443
24529
|
}
|
|
24444
24530
|
response.data.total_count = totalCount;
|
|
24445
|
-
response.data.total_commits = totalCommits;
|
|
24446
24531
|
return response;
|
|
24447
24532
|
}
|
|
24448
24533
|
function iterator(octokit, route, parameters) {
|
|
@@ -24461,16 +24546,6 @@ function iterator(octokit, route, parameters) {
|
|
|
24461
24546
|
url = ((normalizedResponse.headers.link || "").match(
|
|
24462
24547
|
/<([^<>]+)>;\s*rel="next"/
|
|
24463
24548
|
) || [])[1];
|
|
24464
|
-
if (!url && "total_commits" in normalizedResponse.data) {
|
|
24465
|
-
const parsedUrl = new URL(normalizedResponse.url);
|
|
24466
|
-
const params = parsedUrl.searchParams;
|
|
24467
|
-
const page = parseInt(params.get("page") || "1", 10);
|
|
24468
|
-
const per_page = parseInt(params.get("per_page") || "250", 10);
|
|
24469
|
-
if (page * per_page < normalizedResponse.data.total_commits) {
|
|
24470
|
-
params.set("page", String(page + 1));
|
|
24471
|
-
url = parsedUrl.toString();
|
|
24472
|
-
}
|
|
24473
|
-
}
|
|
24474
24549
|
return { value: normalizedResponse };
|
|
24475
24550
|
} catch (error) {
|
|
24476
24551
|
if (error.status !== 409) throw error;
|
|
@@ -24529,10 +24604,10 @@ function paginateRest(octokit) {
|
|
|
24529
24604
|
}
|
|
24530
24605
|
paginateRest.VERSION = VERSION6;
|
|
24531
24606
|
|
|
24532
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@
|
|
24533
|
-
var VERSION7 = "
|
|
24607
|
+
// ../../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
|
|
24608
|
+
var VERSION7 = "13.3.2-cjs.1";
|
|
24534
24609
|
|
|
24535
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@
|
|
24610
|
+
// ../../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
|
|
24536
24611
|
var Endpoints = {
|
|
24537
24612
|
actions: {
|
|
24538
24613
|
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
@@ -24559,7 +24634,6 @@ var Endpoints = {
|
|
|
24559
24634
|
createEnvironmentVariable: [
|
|
24560
24635
|
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
24561
24636
|
],
|
|
24562
|
-
createHostedRunnerForOrg: ["POST /orgs/{org}/actions/hosted-runners"],
|
|
24563
24637
|
createOrUpdateEnvironmentSecret: [
|
|
24564
24638
|
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
24565
24639
|
],
|
|
@@ -24591,21 +24665,12 @@ var Endpoints = {
|
|
|
24591
24665
|
deleteArtifact: [
|
|
24592
24666
|
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
24593
24667
|
],
|
|
24594
|
-
deleteCustomImageFromOrg: [
|
|
24595
|
-
"DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"
|
|
24596
|
-
],
|
|
24597
|
-
deleteCustomImageVersionFromOrg: [
|
|
24598
|
-
"DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"
|
|
24599
|
-
],
|
|
24600
24668
|
deleteEnvironmentSecret: [
|
|
24601
24669
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
24602
24670
|
],
|
|
24603
24671
|
deleteEnvironmentVariable: [
|
|
24604
24672
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
24605
24673
|
],
|
|
24606
|
-
deleteHostedRunnerForOrg: [
|
|
24607
|
-
"DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
|
|
24608
|
-
],
|
|
24609
24674
|
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
|
24610
24675
|
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
|
24611
24676
|
deleteRepoSecret: [
|
|
@@ -24670,12 +24735,6 @@ var Endpoints = {
|
|
|
24670
24735
|
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
24671
24736
|
],
|
|
24672
24737
|
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
|
24673
|
-
getCustomImageForOrg: [
|
|
24674
|
-
"GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"
|
|
24675
|
-
],
|
|
24676
|
-
getCustomImageVersionForOrg: [
|
|
24677
|
-
"GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"
|
|
24678
|
-
],
|
|
24679
24738
|
getCustomOidcSubClaimForRepo: [
|
|
24680
24739
|
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
24681
24740
|
],
|
|
@@ -24700,24 +24759,6 @@ var Endpoints = {
|
|
|
24700
24759
|
getGithubActionsPermissionsRepository: [
|
|
24701
24760
|
"GET /repos/{owner}/{repo}/actions/permissions"
|
|
24702
24761
|
],
|
|
24703
|
-
getHostedRunnerForOrg: [
|
|
24704
|
-
"GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
|
|
24705
|
-
],
|
|
24706
|
-
getHostedRunnersGithubOwnedImagesForOrg: [
|
|
24707
|
-
"GET /orgs/{org}/actions/hosted-runners/images/github-owned"
|
|
24708
|
-
],
|
|
24709
|
-
getHostedRunnersLimitsForOrg: [
|
|
24710
|
-
"GET /orgs/{org}/actions/hosted-runners/limits"
|
|
24711
|
-
],
|
|
24712
|
-
getHostedRunnersMachineSpecsForOrg: [
|
|
24713
|
-
"GET /orgs/{org}/actions/hosted-runners/machine-sizes"
|
|
24714
|
-
],
|
|
24715
|
-
getHostedRunnersPartnerImagesForOrg: [
|
|
24716
|
-
"GET /orgs/{org}/actions/hosted-runners/images/partner"
|
|
24717
|
-
],
|
|
24718
|
-
getHostedRunnersPlatformsForOrg: [
|
|
24719
|
-
"GET /orgs/{org}/actions/hosted-runners/platforms"
|
|
24720
|
-
],
|
|
24721
24762
|
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
|
24722
24763
|
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
|
24723
24764
|
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
|
@@ -24755,22 +24796,12 @@ var Endpoints = {
|
|
|
24755
24796
|
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
24756
24797
|
],
|
|
24757
24798
|
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
|
24758
|
-
listCustomImageVersionsForOrg: [
|
|
24759
|
-
"GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"
|
|
24760
|
-
],
|
|
24761
|
-
listCustomImagesForOrg: [
|
|
24762
|
-
"GET /orgs/{org}/actions/hosted-runners/images/custom"
|
|
24763
|
-
],
|
|
24764
24799
|
listEnvironmentSecrets: [
|
|
24765
24800
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
|
24766
24801
|
],
|
|
24767
24802
|
listEnvironmentVariables: [
|
|
24768
24803
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
24769
24804
|
],
|
|
24770
|
-
listGithubHostedRunnersInGroupForOrg: [
|
|
24771
|
-
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"
|
|
24772
|
-
],
|
|
24773
|
-
listHostedRunnersForOrg: ["GET /orgs/{org}/actions/hosted-runners"],
|
|
24774
24805
|
listJobsForWorkflowRun: [
|
|
24775
24806
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
|
24776
24807
|
],
|
|
@@ -24889,9 +24920,6 @@ var Endpoints = {
|
|
|
24889
24920
|
updateEnvironmentVariable: [
|
|
24890
24921
|
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
24891
24922
|
],
|
|
24892
|
-
updateHostedRunnerForOrg: [
|
|
24893
|
-
"PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
|
|
24894
|
-
],
|
|
24895
24923
|
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
|
24896
24924
|
updateRepoVariable: [
|
|
24897
24925
|
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
|
@@ -25019,18 +25047,9 @@ var Endpoints = {
|
|
|
25019
25047
|
getGithubActionsBillingUser: [
|
|
25020
25048
|
"GET /users/{username}/settings/billing/actions"
|
|
25021
25049
|
],
|
|
25022
|
-
getGithubBillingPremiumRequestUsageReportOrg: [
|
|
25023
|
-
"GET /organizations/{org}/settings/billing/premium_request/usage"
|
|
25024
|
-
],
|
|
25025
|
-
getGithubBillingPremiumRequestUsageReportUser: [
|
|
25026
|
-
"GET /users/{username}/settings/billing/premium_request/usage"
|
|
25027
|
-
],
|
|
25028
25050
|
getGithubBillingUsageReportOrg: [
|
|
25029
25051
|
"GET /organizations/{org}/settings/billing/usage"
|
|
25030
25052
|
],
|
|
25031
|
-
getGithubBillingUsageReportUser: [
|
|
25032
|
-
"GET /users/{username}/settings/billing/usage"
|
|
25033
|
-
],
|
|
25034
25053
|
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
|
25035
25054
|
getGithubPackagesBillingUser: [
|
|
25036
25055
|
"GET /users/{username}/settings/billing/packages"
|
|
@@ -25042,13 +25061,6 @@ var Endpoints = {
|
|
|
25042
25061
|
"GET /users/{username}/settings/billing/shared-storage"
|
|
25043
25062
|
]
|
|
25044
25063
|
},
|
|
25045
|
-
campaigns: {
|
|
25046
|
-
createCampaign: ["POST /orgs/{org}/campaigns"],
|
|
25047
|
-
deleteCampaign: ["DELETE /orgs/{org}/campaigns/{campaign_number}"],
|
|
25048
|
-
getCampaignSummary: ["GET /orgs/{org}/campaigns/{campaign_number}"],
|
|
25049
|
-
listOrgCampaigns: ["GET /orgs/{org}/campaigns"],
|
|
25050
|
-
updateCampaign: ["PATCH /orgs/{org}/campaigns/{campaign_number}"]
|
|
25051
|
-
},
|
|
25052
25064
|
checks: {
|
|
25053
25065
|
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
|
25054
25066
|
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
|
@@ -25327,9 +25339,10 @@ var Endpoints = {
|
|
|
25327
25339
|
getCopilotSeatDetailsForUser: [
|
|
25328
25340
|
"GET /orgs/{org}/members/{username}/copilot"
|
|
25329
25341
|
],
|
|
25330
|
-
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"]
|
|
25342
|
+
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
|
|
25343
|
+
usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
|
|
25344
|
+
usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
|
|
25331
25345
|
},
|
|
25332
|
-
credentials: { revoke: ["POST /credentials/revoke"] },
|
|
25333
25346
|
dependabot: {
|
|
25334
25347
|
addSelectedRepoToOrgSecret: [
|
|
25335
25348
|
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
@@ -25366,20 +25379,11 @@ var Endpoints = {
|
|
|
25366
25379
|
removeSelectedRepoFromOrgSecret: [
|
|
25367
25380
|
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
25368
25381
|
],
|
|
25369
|
-
repositoryAccessForOrg: [
|
|
25370
|
-
"GET /organizations/{org}/dependabot/repository-access"
|
|
25371
|
-
],
|
|
25372
|
-
setRepositoryAccessDefaultLevel: [
|
|
25373
|
-
"PUT /organizations/{org}/dependabot/repository-access/default-level"
|
|
25374
|
-
],
|
|
25375
25382
|
setSelectedReposForOrgSecret: [
|
|
25376
25383
|
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
25377
25384
|
],
|
|
25378
25385
|
updateAlert: [
|
|
25379
25386
|
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
|
25380
|
-
],
|
|
25381
|
-
updateRepositoryAccessForOrg: [
|
|
25382
|
-
"PATCH /organizations/{org}/dependabot/repository-access"
|
|
25383
25387
|
]
|
|
25384
25388
|
},
|
|
25385
25389
|
dependencyGraph: {
|
|
@@ -25392,51 +25396,6 @@ var Endpoints = {
|
|
|
25392
25396
|
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
|
25393
25397
|
},
|
|
25394
25398
|
emojis: { get: ["GET /emojis"] },
|
|
25395
|
-
enterpriseTeamMemberships: {
|
|
25396
|
-
add: [
|
|
25397
|
-
"PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
|
|
25398
|
-
],
|
|
25399
|
-
bulkAdd: [
|
|
25400
|
-
"POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"
|
|
25401
|
-
],
|
|
25402
|
-
bulkRemove: [
|
|
25403
|
-
"POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"
|
|
25404
|
-
],
|
|
25405
|
-
get: [
|
|
25406
|
-
"GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
|
|
25407
|
-
],
|
|
25408
|
-
list: ["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],
|
|
25409
|
-
remove: [
|
|
25410
|
-
"DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
|
|
25411
|
-
]
|
|
25412
|
-
},
|
|
25413
|
-
enterpriseTeamOrganizations: {
|
|
25414
|
-
add: [
|
|
25415
|
-
"PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
|
|
25416
|
-
],
|
|
25417
|
-
bulkAdd: [
|
|
25418
|
-
"POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"
|
|
25419
|
-
],
|
|
25420
|
-
bulkRemove: [
|
|
25421
|
-
"POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"
|
|
25422
|
-
],
|
|
25423
|
-
delete: [
|
|
25424
|
-
"DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
|
|
25425
|
-
],
|
|
25426
|
-
getAssignment: [
|
|
25427
|
-
"GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
|
|
25428
|
-
],
|
|
25429
|
-
getAssignments: [
|
|
25430
|
-
"GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"
|
|
25431
|
-
]
|
|
25432
|
-
},
|
|
25433
|
-
enterpriseTeams: {
|
|
25434
|
-
create: ["POST /enterprises/{enterprise}/teams"],
|
|
25435
|
-
delete: ["DELETE /enterprises/{enterprise}/teams/{team_slug}"],
|
|
25436
|
-
get: ["GET /enterprises/{enterprise}/teams/{team_slug}"],
|
|
25437
|
-
list: ["GET /enterprises/{enterprise}/teams"],
|
|
25438
|
-
update: ["PATCH /enterprises/{enterprise}/teams/{team_slug}"]
|
|
25439
|
-
},
|
|
25440
25399
|
gists: {
|
|
25441
25400
|
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
|
25442
25401
|
create: ["POST /gists"],
|
|
@@ -25478,26 +25437,6 @@ var Endpoints = {
|
|
|
25478
25437
|
getAllTemplates: ["GET /gitignore/templates"],
|
|
25479
25438
|
getTemplate: ["GET /gitignore/templates/{name}"]
|
|
25480
25439
|
},
|
|
25481
|
-
hostedCompute: {
|
|
25482
|
-
createNetworkConfigurationForOrg: [
|
|
25483
|
-
"POST /orgs/{org}/settings/network-configurations"
|
|
25484
|
-
],
|
|
25485
|
-
deleteNetworkConfigurationFromOrg: [
|
|
25486
|
-
"DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"
|
|
25487
|
-
],
|
|
25488
|
-
getNetworkConfigurationForOrg: [
|
|
25489
|
-
"GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"
|
|
25490
|
-
],
|
|
25491
|
-
getNetworkSettingsForOrg: [
|
|
25492
|
-
"GET /orgs/{org}/settings/network-settings/{network_settings_id}"
|
|
25493
|
-
],
|
|
25494
|
-
listNetworkConfigurationsForOrg: [
|
|
25495
|
-
"GET /orgs/{org}/settings/network-configurations"
|
|
25496
|
-
],
|
|
25497
|
-
updateNetworkConfigurationForOrg: [
|
|
25498
|
-
"PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"
|
|
25499
|
-
]
|
|
25500
|
-
},
|
|
25501
25440
|
interactions: {
|
|
25502
25441
|
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
|
25503
25442
|
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
|
@@ -25530,9 +25469,6 @@ var Endpoints = {
|
|
|
25530
25469
|
addAssignees: [
|
|
25531
25470
|
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
25532
25471
|
],
|
|
25533
|
-
addBlockedByDependency: [
|
|
25534
|
-
"POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"
|
|
25535
|
-
],
|
|
25536
25472
|
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
25537
25473
|
addSubIssue: [
|
|
25538
25474
|
"POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
|
|
@@ -25559,17 +25495,10 @@ var Endpoints = {
|
|
|
25559
25495
|
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
|
25560
25496
|
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
|
|
25561
25497
|
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
|
|
25562
|
-
getParent: ["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],
|
|
25563
25498
|
list: ["GET /issues"],
|
|
25564
25499
|
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
|
|
25565
25500
|
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
|
|
25566
25501
|
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
|
25567
|
-
listDependenciesBlockedBy: [
|
|
25568
|
-
"GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"
|
|
25569
|
-
],
|
|
25570
|
-
listDependenciesBlocking: [
|
|
25571
|
-
"GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"
|
|
25572
|
-
],
|
|
25573
25502
|
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
|
25574
25503
|
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
|
25575
25504
|
listEventsForTimeline: [
|
|
@@ -25596,9 +25525,6 @@ var Endpoints = {
|
|
|
25596
25525
|
removeAssignees: [
|
|
25597
25526
|
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
25598
25527
|
],
|
|
25599
|
-
removeDependencyBlockedBy: [
|
|
25600
|
-
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"
|
|
25601
|
-
],
|
|
25602
25528
|
removeLabel: [
|
|
25603
25529
|
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
|
25604
25530
|
],
|
|
@@ -25701,69 +25627,32 @@ var Endpoints = {
|
|
|
25701
25627
|
convertMemberToOutsideCollaborator: [
|
|
25702
25628
|
"PUT /orgs/{org}/outside_collaborators/{username}"
|
|
25703
25629
|
],
|
|
25704
|
-
createArtifactStorageRecord: [
|
|
25705
|
-
"POST /orgs/{org}/artifacts/metadata/storage-record"
|
|
25706
|
-
],
|
|
25707
25630
|
createInvitation: ["POST /orgs/{org}/invitations"],
|
|
25708
|
-
|
|
25709
|
-
|
|
25710
|
-
customPropertiesForOrgsCreateOrUpdateOrganizationValues: [
|
|
25711
|
-
"PATCH /organizations/{org}/org-properties/values"
|
|
25712
|
-
],
|
|
25713
|
-
customPropertiesForOrgsGetOrganizationValues: [
|
|
25714
|
-
"GET /organizations/{org}/org-properties/values"
|
|
25715
|
-
],
|
|
25716
|
-
customPropertiesForReposCreateOrUpdateOrganizationDefinition: [
|
|
25717
|
-
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
|
25718
|
-
],
|
|
25719
|
-
customPropertiesForReposCreateOrUpdateOrganizationDefinitions: [
|
|
25720
|
-
"PATCH /orgs/{org}/properties/schema"
|
|
25721
|
-
],
|
|
25722
|
-
customPropertiesForReposCreateOrUpdateOrganizationValues: [
|
|
25631
|
+
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
|
25632
|
+
createOrUpdateCustomPropertiesValuesForRepos: [
|
|
25723
25633
|
"PATCH /orgs/{org}/properties/values"
|
|
25724
25634
|
],
|
|
25725
|
-
|
|
25726
|
-
"
|
|
25727
|
-
],
|
|
25728
|
-
customPropertiesForReposGetOrganizationDefinition: [
|
|
25729
|
-
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
|
25730
|
-
],
|
|
25731
|
-
customPropertiesForReposGetOrganizationDefinitions: [
|
|
25732
|
-
"GET /orgs/{org}/properties/schema"
|
|
25733
|
-
],
|
|
25734
|
-
customPropertiesForReposGetOrganizationValues: [
|
|
25735
|
-
"GET /orgs/{org}/properties/values"
|
|
25635
|
+
createOrUpdateCustomProperty: [
|
|
25636
|
+
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
|
25736
25637
|
],
|
|
25638
|
+
createWebhook: ["POST /orgs/{org}/hooks"],
|
|
25737
25639
|
delete: ["DELETE /orgs/{org}"],
|
|
25738
|
-
deleteAttestationsBulk: ["POST /orgs/{org}/attestations/delete-request"],
|
|
25739
|
-
deleteAttestationsById: [
|
|
25740
|
-
"DELETE /orgs/{org}/attestations/{attestation_id}"
|
|
25741
|
-
],
|
|
25742
|
-
deleteAttestationsBySubjectDigest: [
|
|
25743
|
-
"DELETE /orgs/{org}/attestations/digest/{subject_digest}"
|
|
25744
|
-
],
|
|
25745
|
-
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
|
|
25746
25640
|
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
|
25747
|
-
|
|
25748
|
-
"
|
|
25749
|
-
|
|
25750
|
-
|
|
25751
|
-
|
|
25641
|
+
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
25642
|
+
"POST /orgs/{org}/{security_product}/{enablement}",
|
|
25643
|
+
{},
|
|
25644
|
+
{
|
|
25645
|
+
deprecated: "octokit.rest.orgs.enableOrDisableSecurityProductOnAllOrgRepos() is deprecated, see https://docs.github.com/rest/orgs/orgs#enable-or-disable-a-security-feature-for-an-organization"
|
|
25646
|
+
}
|
|
25752
25647
|
],
|
|
25753
25648
|
get: ["GET /orgs/{org}"],
|
|
25754
|
-
|
|
25755
|
-
|
|
25756
|
-
|
|
25757
|
-
getImmutableReleasesSettingsRepositories: [
|
|
25758
|
-
"GET /orgs/{org}/settings/immutable-releases/repositories"
|
|
25649
|
+
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
|
25650
|
+
getCustomProperty: [
|
|
25651
|
+
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
|
25759
25652
|
],
|
|
25760
25653
|
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
|
25761
25654
|
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
|
25762
25655
|
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
|
|
25763
|
-
getOrgRulesetHistory: ["GET /orgs/{org}/rulesets/{ruleset_id}/history"],
|
|
25764
|
-
getOrgRulesetVersion: [
|
|
25765
|
-
"GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"
|
|
25766
|
-
],
|
|
25767
25656
|
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
|
25768
25657
|
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
|
25769
25658
|
getWebhookDelivery: [
|
|
@@ -25771,20 +25660,13 @@ var Endpoints = {
|
|
|
25771
25660
|
],
|
|
25772
25661
|
list: ["GET /organizations"],
|
|
25773
25662
|
listAppInstallations: ["GET /orgs/{org}/installations"],
|
|
25774
|
-
listArtifactStorageRecords: [
|
|
25775
|
-
"GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"
|
|
25776
|
-
],
|
|
25777
|
-
listAttestationRepositories: ["GET /orgs/{org}/attestations/repositories"],
|
|
25778
25663
|
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
|
25779
|
-
listAttestationsBulk: [
|
|
25780
|
-
"POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"
|
|
25781
|
-
],
|
|
25782
25664
|
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
|
25665
|
+
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
|
25783
25666
|
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
|
25784
25667
|
listForAuthenticatedUser: ["GET /user/orgs"],
|
|
25785
25668
|
listForUser: ["GET /users/{username}/orgs"],
|
|
25786
25669
|
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
|
25787
|
-
listIssueTypes: ["GET /orgs/{org}/issue-types"],
|
|
25788
25670
|
listMembers: ["GET /orgs/{org}/members"],
|
|
25789
25671
|
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
|
25790
25672
|
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
|
|
@@ -25817,6 +25699,9 @@ var Endpoints = {
|
|
|
25817
25699
|
redeliverWebhookDelivery: [
|
|
25818
25700
|
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
25819
25701
|
],
|
|
25702
|
+
removeCustomProperty: [
|
|
25703
|
+
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
|
25704
|
+
],
|
|
25820
25705
|
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
|
25821
25706
|
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
|
25822
25707
|
removeOutsideCollaborator: [
|
|
@@ -25850,19 +25735,12 @@ var Endpoints = {
|
|
|
25850
25735
|
revokeOrgRoleUser: [
|
|
25851
25736
|
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
25852
25737
|
],
|
|
25853
|
-
setImmutableReleasesSettings: [
|
|
25854
|
-
"PUT /orgs/{org}/settings/immutable-releases"
|
|
25855
|
-
],
|
|
25856
|
-
setImmutableReleasesSettingsRepositories: [
|
|
25857
|
-
"PUT /orgs/{org}/settings/immutable-releases/repositories"
|
|
25858
|
-
],
|
|
25859
25738
|
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
|
25860
25739
|
setPublicMembershipForAuthenticatedUser: [
|
|
25861
25740
|
"PUT /orgs/{org}/public_members/{username}"
|
|
25862
25741
|
],
|
|
25863
25742
|
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
|
25864
25743
|
update: ["PATCH /orgs/{org}"],
|
|
25865
|
-
updateIssueType: ["PUT /orgs/{org}/issue-types/{issue_type_id}"],
|
|
25866
25744
|
updateMembershipForAuthenticatedUser: [
|
|
25867
25745
|
"PATCH /user/memberships/orgs/{org}"
|
|
25868
25746
|
],
|
|
@@ -25976,44 +25854,35 @@ var Endpoints = {
|
|
|
25976
25854
|
]
|
|
25977
25855
|
},
|
|
25978
25856
|
projects: {
|
|
25979
|
-
|
|
25980
|
-
|
|
25981
|
-
|
|
25982
|
-
],
|
|
25983
|
-
|
|
25984
|
-
|
|
25985
|
-
],
|
|
25986
|
-
|
|
25987
|
-
|
|
25988
|
-
],
|
|
25989
|
-
|
|
25990
|
-
|
|
25991
|
-
|
|
25992
|
-
|
|
25993
|
-
|
|
25994
|
-
],
|
|
25995
|
-
|
|
25996
|
-
|
|
25997
|
-
|
|
25998
|
-
|
|
25999
|
-
|
|
26000
|
-
],
|
|
26001
|
-
|
|
26002
|
-
|
|
26003
|
-
"
|
|
26004
|
-
],
|
|
26005
|
-
listForOrg: ["GET /orgs/{org}/projectsV2"],
|
|
26006
|
-
listForUser: ["GET /users/{username}/projectsV2"],
|
|
26007
|
-
listItemsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/items"],
|
|
26008
|
-
listItemsForUser: [
|
|
26009
|
-
"GET /users/{username}/projectsV2/{project_number}/items"
|
|
26010
|
-
],
|
|
26011
|
-
updateItemForOrg: [
|
|
26012
|
-
"PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
|
25857
|
+
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
|
25858
|
+
createCard: ["POST /projects/columns/{column_id}/cards"],
|
|
25859
|
+
createColumn: ["POST /projects/{project_id}/columns"],
|
|
25860
|
+
createForAuthenticatedUser: ["POST /user/projects"],
|
|
25861
|
+
createForOrg: ["POST /orgs/{org}/projects"],
|
|
25862
|
+
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
|
25863
|
+
delete: ["DELETE /projects/{project_id}"],
|
|
25864
|
+
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
|
25865
|
+
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
|
25866
|
+
get: ["GET /projects/{project_id}"],
|
|
25867
|
+
getCard: ["GET /projects/columns/cards/{card_id}"],
|
|
25868
|
+
getColumn: ["GET /projects/columns/{column_id}"],
|
|
25869
|
+
getPermissionForUser: [
|
|
25870
|
+
"GET /projects/{project_id}/collaborators/{username}/permission"
|
|
25871
|
+
],
|
|
25872
|
+
listCards: ["GET /projects/columns/{column_id}/cards"],
|
|
25873
|
+
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
|
25874
|
+
listColumns: ["GET /projects/{project_id}/columns"],
|
|
25875
|
+
listForOrg: ["GET /orgs/{org}/projects"],
|
|
25876
|
+
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
|
25877
|
+
listForUser: ["GET /users/{username}/projects"],
|
|
25878
|
+
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
|
25879
|
+
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
|
25880
|
+
removeCollaborator: [
|
|
25881
|
+
"DELETE /projects/{project_id}/collaborators/{username}"
|
|
26013
25882
|
],
|
|
26014
|
-
|
|
26015
|
-
|
|
26016
|
-
]
|
|
25883
|
+
update: ["PATCH /projects/{project_id}"],
|
|
25884
|
+
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
|
25885
|
+
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
|
26017
25886
|
},
|
|
26018
25887
|
pulls: {
|
|
26019
25888
|
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
@@ -26175,7 +26044,6 @@ var Endpoints = {
|
|
|
26175
26044
|
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
|
26176
26045
|
],
|
|
26177
26046
|
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
|
26178
|
-
checkImmutableReleases: ["GET /repos/{owner}/{repo}/immutable-releases"],
|
|
26179
26047
|
checkPrivateVulnerabilityReporting: [
|
|
26180
26048
|
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
26181
26049
|
],
|
|
@@ -26211,6 +26079,9 @@ var Endpoints = {
|
|
|
26211
26079
|
createForAuthenticatedUser: ["POST /user/repos"],
|
|
26212
26080
|
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
|
26213
26081
|
createInOrg: ["POST /orgs/{org}/repos"],
|
|
26082
|
+
createOrUpdateCustomPropertiesValues: [
|
|
26083
|
+
"PATCH /repos/{owner}/{repo}/properties/values"
|
|
26084
|
+
],
|
|
26214
26085
|
createOrUpdateEnvironment: [
|
|
26215
26086
|
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
|
26216
26087
|
],
|
|
@@ -26224,12 +26095,6 @@ var Endpoints = {
|
|
|
26224
26095
|
"POST /repos/{template_owner}/{template_repo}/generate"
|
|
26225
26096
|
],
|
|
26226
26097
|
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
|
26227
|
-
customPropertiesForReposCreateOrUpdateRepositoryValues: [
|
|
26228
|
-
"PATCH /repos/{owner}/{repo}/properties/values"
|
|
26229
|
-
],
|
|
26230
|
-
customPropertiesForReposGetRepositoryValues: [
|
|
26231
|
-
"GET /repos/{owner}/{repo}/properties/values"
|
|
26232
|
-
],
|
|
26233
26098
|
declineInvitation: [
|
|
26234
26099
|
"DELETE /user/repository_invitations/{invitation_id}",
|
|
26235
26100
|
{},
|
|
@@ -26284,9 +26149,6 @@ var Endpoints = {
|
|
|
26284
26149
|
disableDeploymentProtectionRule: [
|
|
26285
26150
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
26286
26151
|
],
|
|
26287
|
-
disableImmutableReleases: [
|
|
26288
|
-
"DELETE /repos/{owner}/{repo}/immutable-releases"
|
|
26289
|
-
],
|
|
26290
26152
|
disablePrivateVulnerabilityReporting: [
|
|
26291
26153
|
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
26292
26154
|
],
|
|
@@ -26303,7 +26165,6 @@ var Endpoints = {
|
|
|
26303
26165
|
enableAutomatedSecurityFixes: [
|
|
26304
26166
|
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
|
26305
26167
|
],
|
|
26306
|
-
enableImmutableReleases: ["PUT /repos/{owner}/{repo}/immutable-releases"],
|
|
26307
26168
|
enablePrivateVulnerabilityReporting: [
|
|
26308
26169
|
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
26309
26170
|
],
|
|
@@ -26355,6 +26216,7 @@ var Endpoints = {
|
|
|
26355
26216
|
getCustomDeploymentProtectionRule: [
|
|
26356
26217
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
26357
26218
|
],
|
|
26219
|
+
getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
|
|
26358
26220
|
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
|
26359
26221
|
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
|
26360
26222
|
getDeploymentBranchPolicy: [
|
|
@@ -26393,12 +26255,6 @@ var Endpoints = {
|
|
|
26393
26255
|
],
|
|
26394
26256
|
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
|
|
26395
26257
|
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
26396
|
-
getRepoRulesetHistory: [
|
|
26397
|
-
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"
|
|
26398
|
-
],
|
|
26399
|
-
getRepoRulesetVersion: [
|
|
26400
|
-
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"
|
|
26401
|
-
],
|
|
26402
26258
|
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
|
26403
26259
|
getStatusChecksProtection: [
|
|
26404
26260
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
@@ -26586,19 +26442,16 @@ var Endpoints = {
|
|
|
26586
26442
|
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
26587
26443
|
],
|
|
26588
26444
|
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
|
26445
|
+
listAlertsForEnterprise: [
|
|
26446
|
+
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
26447
|
+
],
|
|
26589
26448
|
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
|
26590
26449
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
|
26591
26450
|
listLocationsForAlert: [
|
|
26592
26451
|
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
|
26593
26452
|
],
|
|
26594
|
-
listOrgPatternConfigs: [
|
|
26595
|
-
"GET /orgs/{org}/secret-scanning/pattern-configurations"
|
|
26596
|
-
],
|
|
26597
26453
|
updateAlert: [
|
|
26598
26454
|
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
26599
|
-
],
|
|
26600
|
-
updateOrgPatternConfigs: [
|
|
26601
|
-
"PATCH /orgs/{org}/secret-scanning/pattern-configurations"
|
|
26602
26455
|
]
|
|
26603
26456
|
},
|
|
26604
26457
|
securityAdvisories: {
|
|
@@ -26629,9 +26482,15 @@ var Endpoints = {
|
|
|
26629
26482
|
addOrUpdateMembershipForUserInOrg: [
|
|
26630
26483
|
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
26631
26484
|
],
|
|
26485
|
+
addOrUpdateProjectPermissionsInOrg: [
|
|
26486
|
+
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
26487
|
+
],
|
|
26632
26488
|
addOrUpdateRepoPermissionsInOrg: [
|
|
26633
26489
|
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
26634
26490
|
],
|
|
26491
|
+
checkPermissionsForProjectInOrg: [
|
|
26492
|
+
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
26493
|
+
],
|
|
26635
26494
|
checkPermissionsForRepoInOrg: [
|
|
26636
26495
|
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
26637
26496
|
],
|
|
@@ -26668,10 +26527,14 @@ var Endpoints = {
|
|
|
26668
26527
|
listPendingInvitationsInOrg: [
|
|
26669
26528
|
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
|
26670
26529
|
],
|
|
26530
|
+
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
|
26671
26531
|
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
|
26672
26532
|
removeMembershipForUserInOrg: [
|
|
26673
26533
|
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
26674
26534
|
],
|
|
26535
|
+
removeProjectInOrg: [
|
|
26536
|
+
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
26537
|
+
],
|
|
26675
26538
|
removeRepoInOrg: [
|
|
26676
26539
|
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
26677
26540
|
],
|
|
@@ -26708,15 +26571,6 @@ var Endpoints = {
|
|
|
26708
26571
|
],
|
|
26709
26572
|
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
|
26710
26573
|
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
|
26711
|
-
deleteAttestationsBulk: [
|
|
26712
|
-
"POST /users/{username}/attestations/delete-request"
|
|
26713
|
-
],
|
|
26714
|
-
deleteAttestationsById: [
|
|
26715
|
-
"DELETE /users/{username}/attestations/{attestation_id}"
|
|
26716
|
-
],
|
|
26717
|
-
deleteAttestationsBySubjectDigest: [
|
|
26718
|
-
"DELETE /users/{username}/attestations/digest/{subject_digest}"
|
|
26719
|
-
],
|
|
26720
26574
|
deleteEmailForAuthenticated: [
|
|
26721
26575
|
"DELETE /user/emails",
|
|
26722
26576
|
{},
|
|
@@ -26761,9 +26615,6 @@ var Endpoints = {
|
|
|
26761
26615
|
],
|
|
26762
26616
|
list: ["GET /users"],
|
|
26763
26617
|
listAttestations: ["GET /users/{username}/attestations/{subject_digest}"],
|
|
26764
|
-
listAttestationsBulk: [
|
|
26765
|
-
"POST /users/{username}/attestations/bulk-list{?per_page,before,after}"
|
|
26766
|
-
],
|
|
26767
26618
|
listBlockedByAuthenticated: [
|
|
26768
26619
|
"GET /user/blocks",
|
|
26769
26620
|
{},
|
|
@@ -26824,7 +26675,7 @@ var Endpoints = {
|
|
|
26824
26675
|
};
|
|
26825
26676
|
var endpoints_default = Endpoints;
|
|
26826
26677
|
|
|
26827
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@
|
|
26678
|
+
// ../../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
|
|
26828
26679
|
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
26829
26680
|
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
26830
26681
|
for (const [methodName, endpoint2] of Object.entries(endpoints)) {
|
|
@@ -26947,7 +26798,7 @@ function decorate(octokit, scope, methodName, defaults3, decorations) {
|
|
|
26947
26798
|
return Object.assign(withDecorations, requestWithDefaults);
|
|
26948
26799
|
}
|
|
26949
26800
|
|
|
26950
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@
|
|
26801
|
+
// ../../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
|
|
26951
26802
|
function restEndpointMethods(octokit) {
|
|
26952
26803
|
const api = endpointsToMethods(octokit);
|
|
26953
26804
|
return {
|
|
@@ -26964,15 +26815,15 @@ function legacyRestEndpointMethods(octokit) {
|
|
|
26964
26815
|
}
|
|
26965
26816
|
legacyRestEndpointMethods.VERSION = VERSION7;
|
|
26966
26817
|
|
|
26967
|
-
// ../../node_modules/.pnpm/@octokit+rest@
|
|
26968
|
-
var VERSION8 = "
|
|
26969
|
-
|
|
26970
|
-
|
|
26971
|
-
|
|
26972
|
-
|
|
26973
|
-
|
|
26974
|
-
}
|
|
26975
|
-
);
|
|
26818
|
+
// ../../node_modules/.pnpm/@octokit+rest@20.1.2/node_modules/@octokit/rest/dist-web/index.js
|
|
26819
|
+
var VERSION8 = "20.1.2";
|
|
26820
|
+
var Octokit2 = Octokit.plugin(
|
|
26821
|
+
requestLog,
|
|
26822
|
+
legacyRestEndpointMethods,
|
|
26823
|
+
paginateRest
|
|
26824
|
+
).defaults({
|
|
26825
|
+
userAgent: `octokit-rest.js/${VERSION8}`
|
|
26826
|
+
});
|
|
26976
26827
|
|
|
26977
26828
|
// src/github/GitHub.ts
|
|
26978
26829
|
var GitHub = class {
|
|
@@ -32626,11 +32477,4 @@ yargs-parser/build/lib/index.js:
|
|
|
32626
32477
|
* Copyright (c) 2016, Contributors
|
|
32627
32478
|
* SPDX-License-Identifier: ISC
|
|
32628
32479
|
*)
|
|
32629
|
-
|
|
32630
|
-
@octokit/request-error/dist-src/index.js:
|
|
32631
|
-
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
|
|
32632
|
-
|
|
32633
|
-
@octokit/request/dist-bundle/index.js:
|
|
32634
|
-
(* v8 ignore next -- @preserve *)
|
|
32635
|
-
(* v8 ignore else -- @preserve *)
|
|
32636
32480
|
*/
|