@fern-api/generator-cli 0.6.0 → 0.6.2

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.
Files changed (4) hide show
  1. package/LICENSE +201 -0
  2. package/dist/api.js +771 -615
  3. package/dist/cli.js +765 -609
  4. package/package.json +24 -21
package/dist/cli.js CHANGED
@@ -11885,226 +11885,99 @@ var init_esm4 = __esm({
11885
11885
  }
11886
11886
  });
11887
11887
 
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) {
11888
+ // ../../node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.js
11889
+ var require_fast_content_type_parse = __commonJS({
11890
+ "../../node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.js"(exports2, module2) {
11891
11891
  "use strict";
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
- };
11892
+ var NullObject = function NullObject2() {
11893
+ };
11894
+ NullObject.prototype = /* @__PURE__ */ Object.create(null);
11895
+ var paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;
11896
+ var quotedPairRE = /\\([\v\u0020-\u00ff])/gu;
11897
+ var mediaTypeRE = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;
11898
+ var defaultContentType = { type: "", parameters: new NullObject() };
11899
+ Object.freeze(defaultContentType.parameters);
11900
+ Object.freeze(defaultContentType);
11901
+ function parse4(header) {
11902
+ if (typeof header !== "string") {
11903
+ throw new TypeError("argument header is required and must be a string");
11904
+ }
11905
+ let index = header.indexOf(";");
11906
+ const type = index !== -1 ? header.slice(0, index).trim() : header.trim();
11907
+ if (mediaTypeRE.test(type) === false) {
11908
+ throw new TypeError("invalid media type");
11909
+ }
11910
+ const result = {
11911
+ type: type.toLowerCase(),
11912
+ parameters: new NullObject()
11913
+ };
11914
+ if (index === -1) {
11915
+ return result;
11931
11916
  }
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
- };
11917
+ let key;
11918
+ let match2;
11919
+ let value;
11920
+ paramRE.lastIndex = index;
11921
+ while (match2 = paramRE.exec(header)) {
11922
+ if (match2.index !== index) {
11923
+ throw new TypeError("invalid parameter format");
11924
+ }
11925
+ index += match2[0].length;
11926
+ key = match2[1].toLowerCase();
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;
11942
11933
  }
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
- };
11934
+ if (index !== header.length) {
11935
+ throw new TypeError("invalid parameter format");
11949
11936
  }
11950
- state.registry[name].push({
11951
- hook: hook2,
11952
- orig
11953
- });
11937
+ return result;
11954
11938
  }
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;
11939
+ function safeParse2(header) {
11940
+ if (typeof header !== "string") {
11941
+ return defaultContentType;
11966
11942
  }
11967
- var index = state.registry[name].map(function(registered) {
11968
- return registered.orig;
11969
- }).indexOf(method);
11970
- if (index === -1) {
11971
- return;
11943
+ let index = header.indexOf(";");
11944
+ const type = index !== -1 ? header.slice(0, index).trim() : header.trim();
11945
+ if (mediaTypeRE.test(type) === false) {
11946
+ return defaultContentType;
11972
11947
  }
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: {}
12003
- };
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: {}
11948
+ const result = {
11949
+ type: type.toLowerCase(),
11950
+ parameters: new NullObject()
12011
11951
  };
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;
11952
+ if (index === -1) {
11953
+ return result;
12023
11954
  }
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
- });
11955
+ let key;
11956
+ let match2;
11957
+ let value;
11958
+ paramRE.lastIndex = index;
11959
+ while (match2 = paramRE.exec(header)) {
11960
+ if (match2.index !== index) {
11961
+ return defaultContentType;
12059
11962
  }
12060
- return ret;
11963
+ index += match2[0].length;
11964
+ key = match2[1].toLowerCase();
11965
+ value = match2[2];
11966
+ if (value[0] === '"') {
11967
+ value = value.slice(1, value.length - 1);
11968
+ quotedPairRE.test(value) && (value = value.replace(quotedPairRE, "$1"));
11969
+ }
11970
+ result.parameters[key] = value;
12061
11971
  }
11972
+ if (index !== header.length) {
11973
+ return defaultContentType;
11974
+ }
11975
+ return result;
12062
11976
  }
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
- }
11977
+ module2.exports.default = { parse: parse4, safeParse: safeParse2 };
11978
+ module2.exports.parse = parse4;
11979
+ module2.exports.safeParse = safeParse2;
11980
+ module2.exports.defaultContentType = defaultContentType;
12108
11981
  }
12109
11982
  });
12110
11983
 
@@ -16115,10 +15988,10 @@ var require_resolve_block_map = __commonJS({
16115
15988
  let offset = bm.offset;
16116
15989
  let commentEnd = null;
16117
15990
  for (const collItem of bm.items) {
16118
- const { start, key, sep: sep2, value } = collItem;
15991
+ const { start, key, sep: sep3, value } = collItem;
16119
15992
  const keyProps = resolveProps.resolveProps(start, {
16120
15993
  indicator: "explicit-key-ind",
16121
- next: key ?? sep2?.[0],
15994
+ next: key ?? sep3?.[0],
16122
15995
  offset,
16123
15996
  onError: onError2,
16124
15997
  startOnNewline: true
@@ -16131,7 +16004,7 @@ var require_resolve_block_map = __commonJS({
16131
16004
  else if ("indent" in key && key.indent !== bm.indent)
16132
16005
  onError2(offset, "BAD_INDENT", startColMsg);
16133
16006
  }
16134
- if (!keyProps.anchor && !keyProps.tag && !sep2) {
16007
+ if (!keyProps.anchor && !keyProps.tag && !sep3) {
16135
16008
  commentEnd = keyProps.end;
16136
16009
  if (keyProps.comment) {
16137
16010
  if (map.comment)
@@ -16153,7 +16026,7 @@ var require_resolve_block_map = __commonJS({
16153
16026
  utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError2);
16154
16027
  if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
16155
16028
  onError2(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
16156
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
16029
+ const valueProps = resolveProps.resolveProps(sep3 ?? [], {
16157
16030
  indicator: "map-value-ind",
16158
16031
  next: value,
16159
16032
  offset: keyNode.range[2],
@@ -16168,7 +16041,7 @@ var require_resolve_block_map = __commonJS({
16168
16041
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
16169
16042
  onError2(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
16170
16043
  }
16171
- const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError2);
16044
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset, sep3, null, valueProps, onError2);
16172
16045
  if (ctx.schema.compat)
16173
16046
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError2);
16174
16047
  offset = valueNode.range[2];
@@ -16256,7 +16129,7 @@ var require_resolve_end = __commonJS({
16256
16129
  let comment = "";
16257
16130
  if (end) {
16258
16131
  let hasSpace = false;
16259
- let sep2 = "";
16132
+ let sep3 = "";
16260
16133
  for (const token of end) {
16261
16134
  const { source, type } = token;
16262
16135
  switch (type) {
@@ -16270,13 +16143,13 @@ var require_resolve_end = __commonJS({
16270
16143
  if (!comment)
16271
16144
  comment = cb;
16272
16145
  else
16273
- comment += sep2 + cb;
16274
- sep2 = "";
16146
+ comment += sep3 + cb;
16147
+ sep3 = "";
16275
16148
  break;
16276
16149
  }
16277
16150
  case "newline":
16278
16151
  if (comment)
16279
- sep2 += source;
16152
+ sep3 += source;
16280
16153
  hasSpace = true;
16281
16154
  break;
16282
16155
  default:
@@ -16317,17 +16190,17 @@ var require_resolve_flow_collection = __commonJS({
16317
16190
  let offset = fc.offset + fc.start.source.length;
16318
16191
  for (let i = 0; i < fc.items.length; ++i) {
16319
16192
  const collItem = fc.items[i];
16320
- const { start, key, sep: sep2, value } = collItem;
16193
+ const { start, key, sep: sep3, value } = collItem;
16321
16194
  const props = resolveProps.resolveProps(start, {
16322
16195
  flow: fcName,
16323
16196
  indicator: "explicit-key-ind",
16324
- next: key ?? sep2?.[0],
16197
+ next: key ?? sep3?.[0],
16325
16198
  offset,
16326
16199
  onError: onError2,
16327
16200
  startOnNewline: false
16328
16201
  });
16329
16202
  if (!props.found) {
16330
- if (!props.anchor && !props.tag && !sep2 && !value) {
16203
+ if (!props.anchor && !props.tag && !sep3 && !value) {
16331
16204
  if (i === 0 && props.comma)
16332
16205
  onError2(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
16333
16206
  else if (i < fc.items.length - 1)
@@ -16381,8 +16254,8 @@ var require_resolve_flow_collection = __commonJS({
16381
16254
  }
16382
16255
  }
16383
16256
  }
16384
- if (!isMap && !sep2 && !props.found) {
16385
- const valueNode = value ? composeNode(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end, sep2, null, props, onError2);
16257
+ if (!isMap && !sep3 && !props.found) {
16258
+ const valueNode = value ? composeNode(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end, sep3, null, props, onError2);
16386
16259
  coll.items.push(valueNode);
16387
16260
  offset = valueNode.range[2];
16388
16261
  if (isBlock(value))
@@ -16392,7 +16265,7 @@ var require_resolve_flow_collection = __commonJS({
16392
16265
  const keyNode = key ? composeNode(ctx, key, props, onError2) : composeEmptyNode(ctx, keyStart, start, null, props, onError2);
16393
16266
  if (isBlock(key))
16394
16267
  onError2(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
16395
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
16268
+ const valueProps = resolveProps.resolveProps(sep3 ?? [], {
16396
16269
  flow: fcName,
16397
16270
  indicator: "map-value-ind",
16398
16271
  next: value,
@@ -16402,8 +16275,8 @@ var require_resolve_flow_collection = __commonJS({
16402
16275
  });
16403
16276
  if (valueProps.found) {
16404
16277
  if (!isMap && !props.found && ctx.options.strict) {
16405
- if (sep2)
16406
- for (const st of sep2) {
16278
+ if (sep3)
16279
+ for (const st of sep3) {
16407
16280
  if (st === valueProps.found)
16408
16281
  break;
16409
16282
  if (st.type === "newline") {
@@ -16420,7 +16293,7 @@ var require_resolve_flow_collection = __commonJS({
16420
16293
  else
16421
16294
  onError2(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
16422
16295
  }
16423
- const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError2) : null;
16296
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep3, null, valueProps, onError2) : null;
16424
16297
  if (valueNode) {
16425
16298
  if (isBlock(value))
16426
16299
  onError2(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -16585,7 +16458,7 @@ var require_resolve_block_scalar = __commonJS({
16585
16458
  chompStart = i + 1;
16586
16459
  }
16587
16460
  let value = "";
16588
- let sep2 = "";
16461
+ let sep3 = "";
16589
16462
  let prevMoreIndented = false;
16590
16463
  for (let i = 0; i < contentStart; ++i)
16591
16464
  value += lines[i][0].slice(trimIndent) + "\n";
@@ -16602,24 +16475,24 @@ var require_resolve_block_scalar = __commonJS({
16602
16475
  indent = "";
16603
16476
  }
16604
16477
  if (type === Scalar.Scalar.BLOCK_LITERAL) {
16605
- value += sep2 + indent.slice(trimIndent) + content;
16606
- sep2 = "\n";
16478
+ value += sep3 + indent.slice(trimIndent) + content;
16479
+ sep3 = "\n";
16607
16480
  } else if (indent.length > trimIndent || content[0] === " ") {
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";
16481
+ if (sep3 === " ")
16482
+ sep3 = "\n";
16483
+ else if (!prevMoreIndented && sep3 === "\n")
16484
+ sep3 = "\n\n";
16485
+ value += sep3 + indent.slice(trimIndent) + content;
16486
+ sep3 = "\n";
16614
16487
  prevMoreIndented = true;
16615
16488
  } else if (content === "") {
16616
- if (sep2 === "\n")
16489
+ if (sep3 === "\n")
16617
16490
  value += "\n";
16618
16491
  else
16619
- sep2 = "\n";
16492
+ sep3 = "\n";
16620
16493
  } else {
16621
- value += sep2 + content;
16622
- sep2 = " ";
16494
+ value += sep3 + content;
16495
+ sep3 = " ";
16623
16496
  prevMoreIndented = false;
16624
16497
  }
16625
16498
  }
@@ -16801,25 +16674,25 @@ var require_resolve_flow_scalar = __commonJS({
16801
16674
  if (!match2)
16802
16675
  return source;
16803
16676
  let res = match2[1];
16804
- let sep2 = " ";
16677
+ let sep3 = " ";
16805
16678
  let pos = first2.lastIndex;
16806
16679
  line.lastIndex = pos;
16807
16680
  while (match2 = line.exec(source)) {
16808
16681
  if (match2[1] === "") {
16809
- if (sep2 === "\n")
16810
- res += sep2;
16682
+ if (sep3 === "\n")
16683
+ res += sep3;
16811
16684
  else
16812
- sep2 = "\n";
16685
+ sep3 = "\n";
16813
16686
  } else {
16814
- res += sep2 + match2[1];
16815
- sep2 = " ";
16687
+ res += sep3 + match2[1];
16688
+ sep3 = " ";
16816
16689
  }
16817
16690
  pos = line.lastIndex;
16818
16691
  }
16819
16692
  const last2 = /[ \t]*(.*)/sy;
16820
16693
  last2.lastIndex = pos;
16821
16694
  match2 = last2.exec(source);
16822
- return res + sep2 + (match2?.[1] ?? "");
16695
+ return res + sep3 + (match2?.[1] ?? "");
16823
16696
  }
16824
16697
  function doubleQuotedValue(source, onError2) {
16825
16698
  let res = "";
@@ -17592,14 +17465,14 @@ var require_cst_stringify = __commonJS({
17592
17465
  }
17593
17466
  }
17594
17467
  }
17595
- function stringifyItem({ start, key, sep: sep2, value }) {
17468
+ function stringifyItem({ start, key, sep: sep3, value }) {
17596
17469
  let res = "";
17597
17470
  for (const st of start)
17598
17471
  res += st.source;
17599
17472
  if (key)
17600
17473
  res += stringifyToken(key);
17601
- if (sep2)
17602
- for (const st of sep2)
17474
+ if (sep3)
17475
+ for (const st of sep3)
17603
17476
  res += st.source;
17604
17477
  if (value)
17605
17478
  res += stringifyToken(value);
@@ -18736,18 +18609,18 @@ var require_parser = __commonJS({
18736
18609
  if (this.type === "map-value-ind") {
18737
18610
  const prev = getPrevProps(this.peek(2));
18738
18611
  const start = getFirstKeyStartProps(prev);
18739
- let sep2;
18612
+ let sep3;
18740
18613
  if (scalar.end) {
18741
- sep2 = scalar.end;
18742
- sep2.push(this.sourceToken);
18614
+ sep3 = scalar.end;
18615
+ sep3.push(this.sourceToken);
18743
18616
  delete scalar.end;
18744
18617
  } else
18745
- sep2 = [this.sourceToken];
18618
+ sep3 = [this.sourceToken];
18746
18619
  const map = {
18747
18620
  type: "block-map",
18748
18621
  offset: scalar.offset,
18749
18622
  indent: scalar.indent,
18750
- items: [{ start, key: scalar, sep: sep2 }]
18623
+ items: [{ start, key: scalar, sep: sep3 }]
18751
18624
  };
18752
18625
  this.onKeyLine = true;
18753
18626
  this.stack[this.stack.length - 1] = map;
@@ -18898,14 +18771,14 @@ var require_parser = __commonJS({
18898
18771
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
18899
18772
  const start2 = getFirstKeyStartProps(it.start);
18900
18773
  const key = it.key;
18901
- const sep2 = it.sep;
18902
- sep2.push(this.sourceToken);
18774
+ const sep3 = it.sep;
18775
+ sep3.push(this.sourceToken);
18903
18776
  delete it.key, delete it.sep;
18904
18777
  this.stack.push({
18905
18778
  type: "block-map",
18906
18779
  offset: this.offset,
18907
18780
  indent: this.indent,
18908
- items: [{ start: start2, key, sep: sep2 }]
18781
+ items: [{ start: start2, key, sep: sep3 }]
18909
18782
  });
18910
18783
  } else if (start.length > 0) {
18911
18784
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -19089,13 +18962,13 @@ var require_parser = __commonJS({
19089
18962
  const prev = getPrevProps(parent);
19090
18963
  const start = getFirstKeyStartProps(prev);
19091
18964
  fixFlowSeqItems(fc);
19092
- const sep2 = fc.end.splice(1, fc.end.length);
19093
- sep2.push(this.sourceToken);
18965
+ const sep3 = fc.end.splice(1, fc.end.length);
18966
+ sep3.push(this.sourceToken);
19094
18967
  const map = {
19095
18968
  type: "block-map",
19096
18969
  offset: fc.offset,
19097
18970
  indent: fc.indent,
19098
- items: [{ start, key: fc, sep: sep2 }]
18971
+ items: [{ start, key: fc, sep: sep3 }]
19099
18972
  };
19100
18973
  this.onKeyLine = true;
19101
18974
  this.stack[this.stack.length - 1] = map;
@@ -23574,7 +23447,7 @@ async function cloneRepository({ githubRepository, installationToken, targetDire
23574
23447
  });
23575
23448
  }
23576
23449
 
23577
- // ../../node_modules/.pnpm/universal-user-agent@6.0.1/node_modules/universal-user-agent/dist-web/index.js
23450
+ // ../../node_modules/.pnpm/universal-user-agent@7.0.3/node_modules/universal-user-agent/index.js
23578
23451
  function getUserAgent() {
23579
23452
  if (typeof navigator === "object" && "userAgent" in navigator) {
23580
23453
  return navigator.userAgent;
@@ -23585,13 +23458,114 @@ function getUserAgent() {
23585
23458
  return "<environment undetectable>";
23586
23459
  }
23587
23460
 
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());
23461
+ // ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/register.js
23462
+ function register(state, name, method, options) {
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
+ }
23590
23483
 
23591
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/version.js
23592
- var VERSION = "9.0.6";
23484
+ // ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/add.js
23485
+ function addHook(state, kind, name, hook2) {
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
+ }
23593
23518
 
23594
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/defaults.js
23519
+ // ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/remove.js
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";
23595
23569
  var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
23596
23570
  var DEFAULTS = {
23597
23571
  method: "GET",
@@ -23604,8 +23578,6 @@ var DEFAULTS = {
23604
23578
  format: ""
23605
23579
  }
23606
23580
  };
23607
-
23608
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js
23609
23581
  function lowercaseKeys(object2) {
23610
23582
  if (!object2) {
23611
23583
  return {};
@@ -23615,37 +23587,26 @@ function lowercaseKeys(object2) {
23615
23587
  return newObj;
23616
23588
  }, {});
23617
23589
  }
23618
-
23619
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/is-plain-object.js
23620
23590
  function isPlainObject(value) {
23621
- if (typeof value !== "object" || value === null)
23622
- return false;
23623
- if (Object.prototype.toString.call(value) !== "[object Object]")
23624
- return false;
23591
+ if (typeof value !== "object" || value === null) return false;
23592
+ if (Object.prototype.toString.call(value) !== "[object Object]") return false;
23625
23593
  const proto = Object.getPrototypeOf(value);
23626
- if (proto === null)
23627
- return true;
23594
+ if (proto === null) return true;
23628
23595
  const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
23629
23596
  return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
23630
23597
  }
23631
-
23632
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
23633
23598
  function mergeDeep(defaults3, options) {
23634
23599
  const result = Object.assign({}, defaults3);
23635
23600
  Object.keys(options).forEach((key) => {
23636
23601
  if (isPlainObject(options[key])) {
23637
- if (!(key in defaults3))
23638
- Object.assign(result, { [key]: options[key] });
23639
- else
23640
- result[key] = mergeDeep(defaults3[key], options[key]);
23602
+ if (!(key in defaults3)) Object.assign(result, { [key]: options[key] });
23603
+ else result[key] = mergeDeep(defaults3[key], options[key]);
23641
23604
  } else {
23642
23605
  Object.assign(result, { [key]: options[key] });
23643
23606
  }
23644
23607
  });
23645
23608
  return result;
23646
23609
  }
23647
-
23648
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
23649
23610
  function removeUndefinedProperties(obj) {
23650
23611
  for (const key in obj) {
23651
23612
  if (obj[key] === void 0) {
@@ -23654,8 +23615,6 @@ function removeUndefinedProperties(obj) {
23654
23615
  }
23655
23616
  return obj;
23656
23617
  }
23657
-
23658
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/merge.js
23659
23618
  function merge(defaults3, route, options) {
23660
23619
  if (typeof route === "string") {
23661
23620
  let [method, url] = route.split(" ");
@@ -23677,8 +23636,6 @@ function merge(defaults3, route, options) {
23677
23636
  }
23678
23637
  return mergedOptions;
23679
23638
  }
23680
-
23681
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js
23682
23639
  function addQueryParameters(url, parameters) {
23683
23640
  const separator = /\?/.test(url) ? "&" : "?";
23684
23641
  const names = Object.keys(parameters);
@@ -23692,8 +23649,6 @@ function addQueryParameters(url, parameters) {
23692
23649
  return `${name}=${encodeURIComponent(parameters[name])}`;
23693
23650
  }).join("&");
23694
23651
  }
23695
-
23696
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js
23697
23652
  var urlVariableRegex = /\{[^{}}]+\}/g;
23698
23653
  function removeNonChars(variableName) {
23699
23654
  return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
@@ -23705,8 +23660,6 @@ function extractUrlVariableNames(url) {
23705
23660
  }
23706
23661
  return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
23707
23662
  }
23708
-
23709
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/omit.js
23710
23663
  function omit(object2, keysToOmit) {
23711
23664
  const result = { __proto__: null };
23712
23665
  for (const key of Object.keys(object2)) {
@@ -23716,8 +23669,6 @@ function omit(object2, keysToOmit) {
23716
23669
  }
23717
23670
  return result;
23718
23671
  }
23719
-
23720
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/url-template.js
23721
23672
  function encodeReserved(str) {
23722
23673
  return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
23723
23674
  if (!/%[0-9A-Fa-f]/.test(part)) {
@@ -23848,8 +23799,6 @@ function expand2(template2, context) {
23848
23799
  return template2.replace(/\/$/, "");
23849
23800
  }
23850
23801
  }
23851
-
23852
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/parse.js
23853
23802
  function parse(options) {
23854
23803
  let method = options.method.toUpperCase();
23855
23804
  let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
@@ -23913,13 +23862,9 @@ function parse(options) {
23913
23862
  options.request ? { request: options.request } : null
23914
23863
  );
23915
23864
  }
23916
-
23917
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js
23918
23865
  function endpointWithDefaults(defaults3, route, options) {
23919
23866
  return parse(merge(defaults3, route, options));
23920
23867
  }
23921
-
23922
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/with-defaults.js
23923
23868
  function withDefaults(oldDefaults, newDefaults) {
23924
23869
  const DEFAULTS2 = merge(oldDefaults, newDefaults);
23925
23870
  const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
@@ -23930,56 +23875,35 @@ function withDefaults(oldDefaults, newDefaults) {
23930
23875
  parse
23931
23876
  });
23932
23877
  }
23933
-
23934
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/index.js
23935
23878
  var endpoint = withDefaults(null, DEFAULTS);
23936
23879
 
23937
- // ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/version.js
23938
- var VERSION2 = "8.4.1";
23880
+ // ../../node_modules/.pnpm/@octokit+request@10.0.7/node_modules/@octokit/request/dist-bundle/index.js
23881
+ var import_fast_content_type_parse = __toESM(require_fast_content_type_parse(), 1);
23939
23882
 
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));
23883
+ // ../../node_modules/.pnpm/@octokit+request-error@7.1.0/node_modules/@octokit/request-error/dist-src/index.js
23968
23884
  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;
23969
23898
  constructor(message, statusCode, options) {
23970
- super(message);
23971
- if (Error.captureStackTrace) {
23972
- Error.captureStackTrace(this, this.constructor);
23973
- }
23899
+ super(message, { cause: options.cause });
23974
23900
  this.name = "HttpError";
23975
- this.status = statusCode;
23976
- let headers;
23977
- if ("headers" in options && typeof options.headers !== "undefined") {
23978
- headers = options.headers;
23901
+ this.status = Number.parseInt(statusCode);
23902
+ if (Number.isNaN(this.status)) {
23903
+ this.status = 0;
23979
23904
  }
23980
23905
  if ("response" in options) {
23981
23906
  this.response = options.response;
23982
- headers = options.response.headers;
23983
23907
  }
23984
23908
  const requestCopy = Object.assign({}, options.request);
23985
23909
  if (options.request.headers.authorization) {
@@ -23992,171 +23916,162 @@ var RequestError = class extends Error {
23992
23916
  }
23993
23917
  requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
23994
23918
  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
- });
24015
23919
  }
24016
23920
  };
24017
23921
 
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();
24021
- }
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;
23922
+ // ../../node_modules/.pnpm/@octokit+request@10.0.7/node_modules/@octokit/request/dist-bundle/index.js
23923
+ var VERSION2 = "10.0.7";
23924
+ var defaults_default = {
23925
+ headers: {
23926
+ "user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
24036
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);
23936
+ }
23937
+ var noop = () => "";
23938
+ async function fetchWrapper(requestOptions) {
23939
+ const fetch2 = requestOptions.request?.fetch || globalThis.fetch;
24037
23940
  if (!fetch2) {
24038
23941
  throw new Error(
24039
23942
  "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"
24040
23943
  );
24041
23944
  }
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;
23945
+ const log = requestOptions.request?.log || console;
23946
+ const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
23947
+ const body = isPlainObject2(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify(requestOptions.body) : requestOptions.body;
23948
+ const requestHeaders = Object.fromEntries(
23949
+ Object.entries(requestOptions.headers).map(([name, value]) => [
23950
+ name,
23951
+ String(value)
23952
+ ])
23953
+ );
23954
+ let fetchResponse;
23955
+ try {
23956
+ fetchResponse = await fetch2(requestOptions.url, {
23957
+ method: requestOptions.method,
23958
+ body,
23959
+ redirect: requestOptions.request?.redirect,
23960
+ headers: requestHeaders,
23961
+ signal: requestOptions.request?.signal,
23962
+ // duplex must be set if request.body is ReadableStream or Async Iterables.
23963
+ // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
23964
+ ...requestOptions.body && { duplex: "half" }
23965
+ });
23966
+ } catch (error) {
23967
+ let message = "Unknown Error";
23968
+ if (error instanceof Error) {
23969
+ if (error.name === "AbortError") {
23970
+ error.status = 500;
23971
+ throw error;
24070
23972
  }
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
- });
24080
- }
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
- });
24091
- }
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;
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
+ }
24124
23980
  }
24125
23981
  }
24126
- throw new RequestError(message, 500, {
23982
+ const requestError = new RequestError(message, 500, {
24127
23983
  request: requestOptions
24128
23984
  });
24129
- });
23985
+ requestError.cause = error;
23986
+ throw requestError;
23987
+ }
23988
+ const status2 = fetchResponse.status;
23989
+ const url = fetchResponse.url;
23990
+ const responseHeaders = {};
23991
+ for (const [key, value] of fetchResponse.headers) {
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;
24013
+ }
24014
+ throw new RequestError(fetchResponse.statusText, status2, {
24015
+ response: octokitResponse,
24016
+ request: requestOptions
24017
+ });
24018
+ }
24019
+ if (status2 === 304) {
24020
+ octokitResponse.data = await getResponseData(fetchResponse);
24021
+ throw new RequestError("Not modified", status2, {
24022
+ response: octokitResponse,
24023
+ request: requestOptions
24024
+ });
24025
+ }
24026
+ if (status2 >= 400) {
24027
+ octokitResponse.data = await getResponseData(fetchResponse);
24028
+ throw new RequestError(toErrorMessage(octokitResponse.data), status2, {
24029
+ response: octokitResponse,
24030
+ request: requestOptions
24031
+ });
24032
+ }
24033
+ octokitResponse.data = parseSuccessResponseBody ? await getResponseData(fetchResponse) : fetchResponse.body;
24034
+ return octokitResponse;
24130
24035
  }
24131
24036
  async function getResponseData(response) {
24132
24037
  const contentType = response.headers.get("content-type");
24133
- if (/application\/json/.test(contentType)) {
24134
- return response.json().catch(() => response.text()).catch(() => "");
24038
+ if (!contentType) {
24039
+ return response.text().catch(noop);
24135
24040
  }
24136
- if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
24137
- return response.text();
24041
+ const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
24042
+ if (isJSONResponse(mimetype)) {
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
+ );
24138
24057
  }
24139
- return getBufferResponse(response);
24058
+ }
24059
+ function isJSONResponse(mimetype) {
24060
+ return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
24140
24061
  }
24141
24062
  function toErrorMessage(data) {
24142
- if (typeof data === "string")
24063
+ if (typeof data === "string") {
24143
24064
  return data;
24144
- let suffix;
24145
- if ("documentation_url" in data) {
24146
- suffix = ` - ${data.documentation_url}`;
24147
- } else {
24148
- suffix = "";
24065
+ }
24066
+ if (data instanceof ArrayBuffer) {
24067
+ return "Unknown error";
24149
24068
  }
24150
24069
  if ("message" in data) {
24151
- if (Array.isArray(data.errors)) {
24152
- return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
24153
- }
24154
- return `${data.message}${suffix}`;
24070
+ const suffix = "documentation_url" in data ? ` - ${data.documentation_url}` : "";
24071
+ return Array.isArray(data.errors) ? `${data.message}: ${data.errors.map((v) => JSON.stringify(v)).join(", ")}${suffix}` : `${data.message}${suffix}`;
24155
24072
  }
24156
24073
  return `Unknown error: ${JSON.stringify(data)}`;
24157
24074
  }
24158
-
24159
- // ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/with-defaults.js
24160
24075
  function withDefaults2(oldEndpoint, newDefaults) {
24161
24076
  const endpoint2 = oldEndpoint.defaults(newDefaults);
24162
24077
  const newApi = function(route, parameters) {
@@ -24180,16 +24095,10 @@ function withDefaults2(oldEndpoint, newDefaults) {
24180
24095
  defaults: withDefaults2.bind(null, endpoint2)
24181
24096
  });
24182
24097
  }
24098
+ var request = withDefaults2(endpoint, defaults_default);
24183
24099
 
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";
24100
+ // ../../node_modules/.pnpm/@octokit+graphql@9.0.3/node_modules/@octokit/graphql/dist-bundle/index.js
24101
+ var VERSION3 = "0.0.0-development";
24193
24102
  function _buildMessageForResponseErrors(data) {
24194
24103
  return `Request failed due to following response errors:
24195
24104
  ` + data.errors.map((e) => ` - ${e.message}`).join("\n");
@@ -24200,13 +24109,15 @@ var GraphqlResponseError = class extends Error {
24200
24109
  this.request = request2;
24201
24110
  this.headers = headers;
24202
24111
  this.response = response;
24203
- this.name = "GraphqlResponseError";
24204
24112
  this.errors = response.errors;
24205
24113
  this.data = response.data;
24206
24114
  if (Error.captureStackTrace) {
24207
24115
  Error.captureStackTrace(this, this.constructor);
24208
24116
  }
24209
24117
  }
24118
+ name = "GraphqlResponseError";
24119
+ errors;
24120
+ data;
24210
24121
  };
24211
24122
  var NON_VARIABLE_OPTIONS = [
24212
24123
  "method",
@@ -24215,7 +24126,8 @@ var NON_VARIABLE_OPTIONS = [
24215
24126
  "headers",
24216
24127
  "request",
24217
24128
  "query",
24218
- "mediaType"
24129
+ "mediaType",
24130
+ "operationName"
24219
24131
  ];
24220
24132
  var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
24221
24133
  var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
@@ -24292,14 +24204,15 @@ function withCustomRequest(customRequest) {
24292
24204
  });
24293
24205
  }
24294
24206
 
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_/;
24207
+ // ../../node_modules/.pnpm/@octokit+auth-token@6.0.0/node_modules/@octokit/auth-token/dist-bundle/index.js
24208
+ var b64url = "(?:[a-zA-Z0-9_-]+)";
24209
+ var sep2 = "\\.";
24210
+ var jwtRE = new RegExp(`^${b64url}${sep2}${b64url}${sep2}${b64url}$`);
24211
+ var isJWT = jwtRE.test.bind(jwtRE);
24299
24212
  async function auth(token) {
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);
24213
+ const isApp = isJWT(token);
24214
+ const isInstallation = token.startsWith("v1.") || token.startsWith("ghs_");
24215
+ const isUserToServer = token.startsWith("ghu_");
24303
24216
  const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
24304
24217
  return {
24305
24218
  type: "token",
@@ -24307,16 +24220,12 @@ async function auth(token) {
24307
24220
  tokenType
24308
24221
  };
24309
24222
  }
24310
-
24311
- // ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js
24312
24223
  function withAuthorizationPrefix(token) {
24313
24224
  if (token.split(/\./).length === 3) {
24314
24225
  return `bearer ${token}`;
24315
24226
  }
24316
24227
  return `token ${token}`;
24317
24228
  }
24318
-
24319
- // ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/hook.js
24320
24229
  async function hook(token, request2, route, parameters) {
24321
24230
  const endpoint2 = request2.endpoint.merge(
24322
24231
  route,
@@ -24325,8 +24234,6 @@ async function hook(token, request2, route, parameters) {
24325
24234
  endpoint2.headers.authorization = withAuthorizationPrefix(token);
24326
24235
  return request2(endpoint2);
24327
24236
  }
24328
-
24329
- // ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/index.js
24330
24237
  var createTokenAuth = function createTokenAuth2(token) {
24331
24238
  if (!token) {
24332
24239
  throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
@@ -24342,18 +24249,20 @@ var createTokenAuth = function createTokenAuth2(token) {
24342
24249
  });
24343
24250
  };
24344
24251
 
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 = () => {
24252
+ // ../../node_modules/.pnpm/@octokit+core@7.0.6/node_modules/@octokit/core/dist-src/version.js
24253
+ var VERSION4 = "7.0.6";
24254
+
24255
+ // ../../node_modules/.pnpm/@octokit+core@7.0.6/node_modules/@octokit/core/dist-src/index.js
24256
+ var noop2 = () => {
24348
24257
  };
24349
24258
  var consoleWarn = console.warn.bind(console);
24350
24259
  var consoleError = console.error.bind(console);
24351
24260
  function createLogger2(logger = {}) {
24352
24261
  if (typeof logger.debug !== "function") {
24353
- logger.debug = noop;
24262
+ logger.debug = noop2;
24354
24263
  }
24355
24264
  if (typeof logger.info !== "function") {
24356
- logger.info = noop;
24265
+ logger.info = noop2;
24357
24266
  }
24358
24267
  if (typeof logger.warn !== "function") {
24359
24268
  logger.warn = consoleWarn;
@@ -24365,9 +24274,7 @@ function createLogger2(logger = {}) {
24365
24274
  }
24366
24275
  var userAgentTrail = `octokit-core.js/${VERSION4} ${getUserAgent()}`;
24367
24276
  var Octokit = class {
24368
- static {
24369
- this.VERSION = VERSION4;
24370
- }
24277
+ static VERSION = VERSION4;
24371
24278
  static defaults(defaults3) {
24372
24279
  const OctokitWithDefaults = class extends this {
24373
24280
  constructor(...args) {
@@ -24390,9 +24297,7 @@ var Octokit = class {
24390
24297
  };
24391
24298
  return OctokitWithDefaults;
24392
24299
  }
24393
- static {
24394
- this.plugins = [];
24395
- }
24300
+ static plugins = [];
24396
24301
  /**
24397
24302
  * Attach a plugin (or many) to your Octokit instance.
24398
24303
  *
@@ -24402,16 +24307,14 @@ var Octokit = class {
24402
24307
  static plugin(...newPlugins) {
24403
24308
  const currentPlugins = this.plugins;
24404
24309
  const NewOctokit = class extends this {
24405
- static {
24406
- this.plugins = currentPlugins.concat(
24407
- newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
24408
- );
24409
- }
24310
+ static plugins = currentPlugins.concat(
24311
+ newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
24312
+ );
24410
24313
  };
24411
24314
  return NewOctokit;
24412
24315
  }
24413
24316
  constructor(options = {}) {
24414
- const hook2 = new import_before_after_hook.Collection();
24317
+ const hook2 = new before_after_hook_default.Collection();
24415
24318
  const requestDefaults = {
24416
24319
  baseUrl: request.endpoint.DEFAULTS.baseUrl,
24417
24320
  headers: {},
@@ -24474,12 +24377,19 @@ var Octokit = class {
24474
24377
  Object.assign(this, classConstructor.plugins[i](this, options));
24475
24378
  }
24476
24379
  }
24380
+ // assigned during constructor
24381
+ request;
24382
+ graphql;
24383
+ log;
24384
+ hook;
24385
+ // TODO: type `octokit.auth` based on passed options.authStrategy
24386
+ auth;
24477
24387
  };
24478
24388
 
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";
24389
+ // ../../node_modules/.pnpm/@octokit+plugin-request-log@6.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-request-log/dist-src/version.js
24390
+ var VERSION5 = "6.0.0";
24481
24391
 
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
24392
+ // ../../node_modules/.pnpm/@octokit+plugin-request-log@6.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-request-log/dist-src/index.js
24483
24393
  function requestLog(octokit) {
24484
24394
  octokit.hook.wrap("request", (request2, options) => {
24485
24395
  octokit.log.debug("request", options);
@@ -24487,13 +24397,15 @@ function requestLog(octokit) {
24487
24397
  const requestOptions = octokit.request.endpoint.parse(options);
24488
24398
  const path5 = requestOptions.url.replace(options.baseUrl, "");
24489
24399
  return request2(options).then((response) => {
24400
+ const requestId = response.headers["x-github-request-id"];
24490
24401
  octokit.log.info(
24491
- `${requestOptions.method} ${path5} - ${response.status} in ${Date.now() - start}ms`
24402
+ `${requestOptions.method} ${path5} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
24492
24403
  );
24493
24404
  return response;
24494
24405
  }).catch((error) => {
24495
- octokit.log.info(
24496
- `${requestOptions.method} ${path5} - ${error.status} in ${Date.now() - start}ms`
24406
+ const requestId = error.response?.headers["x-github-request-id"] || "UNKNOWN";
24407
+ octokit.log.error(
24408
+ `${requestOptions.method} ${path5} - ${error.status} with id ${requestId} in ${Date.now() - start}ms`
24497
24409
  );
24498
24410
  throw error;
24499
24411
  });
@@ -24501,8 +24413,8 @@ function requestLog(octokit) {
24501
24413
  }
24502
24414
  requestLog.VERSION = VERSION5;
24503
24415
 
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";
24416
+ // ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@14.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.js
24417
+ var VERSION6 = "0.0.0-development";
24506
24418
  function normalizePaginatedListResponse(response) {
24507
24419
  if (!response.data) {
24508
24420
  return {
@@ -24510,14 +24422,16 @@ function normalizePaginatedListResponse(response) {
24510
24422
  data: []
24511
24423
  };
24512
24424
  }
24513
- const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
24425
+ const responseNeedsNormalization = ("total_count" in response.data || "total_commits" in response.data) && !("url" in response.data);
24514
24426
  if (!responseNeedsNormalization) return response;
24515
24427
  const incompleteResults = response.data.incomplete_results;
24516
24428
  const repositorySelection = response.data.repository_selection;
24517
24429
  const totalCount = response.data.total_count;
24430
+ const totalCommits = response.data.total_commits;
24518
24431
  delete response.data.incomplete_results;
24519
24432
  delete response.data.repository_selection;
24520
24433
  delete response.data.total_count;
24434
+ delete response.data.total_commits;
24521
24435
  const namespaceKey = Object.keys(response.data)[0];
24522
24436
  const data = response.data[namespaceKey];
24523
24437
  response.data = data;
@@ -24528,6 +24442,7 @@ function normalizePaginatedListResponse(response) {
24528
24442
  response.data.repository_selection = repositorySelection;
24529
24443
  }
24530
24444
  response.data.total_count = totalCount;
24445
+ response.data.total_commits = totalCommits;
24531
24446
  return response;
24532
24447
  }
24533
24448
  function iterator(octokit, route, parameters) {
@@ -24546,6 +24461,16 @@ function iterator(octokit, route, parameters) {
24546
24461
  url = ((normalizedResponse.headers.link || "").match(
24547
24462
  /<([^<>]+)>;\s*rel="next"/
24548
24463
  ) || [])[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
+ }
24549
24474
  return { value: normalizedResponse };
24550
24475
  } catch (error) {
24551
24476
  if (error.status !== 409) throw error;
@@ -24604,10 +24529,10 @@ function paginateRest(octokit) {
24604
24529
  }
24605
24530
  paginateRest.VERSION = VERSION6;
24606
24531
 
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";
24532
+ // ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
24533
+ var VERSION7 = "17.0.0";
24609
24534
 
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
24535
+ // ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js
24611
24536
  var Endpoints = {
24612
24537
  actions: {
24613
24538
  addCustomLabelsToSelfHostedRunnerForOrg: [
@@ -24634,6 +24559,7 @@ var Endpoints = {
24634
24559
  createEnvironmentVariable: [
24635
24560
  "POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
24636
24561
  ],
24562
+ createHostedRunnerForOrg: ["POST /orgs/{org}/actions/hosted-runners"],
24637
24563
  createOrUpdateEnvironmentSecret: [
24638
24564
  "PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
24639
24565
  ],
@@ -24665,12 +24591,21 @@ var Endpoints = {
24665
24591
  deleteArtifact: [
24666
24592
  "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
24667
24593
  ],
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
+ ],
24668
24600
  deleteEnvironmentSecret: [
24669
24601
  "DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
24670
24602
  ],
24671
24603
  deleteEnvironmentVariable: [
24672
24604
  "DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
24673
24605
  ],
24606
+ deleteHostedRunnerForOrg: [
24607
+ "DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
24608
+ ],
24674
24609
  deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
24675
24610
  deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
24676
24611
  deleteRepoSecret: [
@@ -24735,6 +24670,12 @@ var Endpoints = {
24735
24670
  "GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
24736
24671
  ],
24737
24672
  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
+ ],
24738
24679
  getCustomOidcSubClaimForRepo: [
24739
24680
  "GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
24740
24681
  ],
@@ -24759,6 +24700,24 @@ var Endpoints = {
24759
24700
  getGithubActionsPermissionsRepository: [
24760
24701
  "GET /repos/{owner}/{repo}/actions/permissions"
24761
24702
  ],
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
+ ],
24762
24721
  getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
24763
24722
  getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
24764
24723
  getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
@@ -24796,12 +24755,22 @@ var Endpoints = {
24796
24755
  "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
24797
24756
  ],
24798
24757
  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
+ ],
24799
24764
  listEnvironmentSecrets: [
24800
24765
  "GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
24801
24766
  ],
24802
24767
  listEnvironmentVariables: [
24803
24768
  "GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
24804
24769
  ],
24770
+ listGithubHostedRunnersInGroupForOrg: [
24771
+ "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"
24772
+ ],
24773
+ listHostedRunnersForOrg: ["GET /orgs/{org}/actions/hosted-runners"],
24805
24774
  listJobsForWorkflowRun: [
24806
24775
  "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
24807
24776
  ],
@@ -24920,6 +24889,9 @@ var Endpoints = {
24920
24889
  updateEnvironmentVariable: [
24921
24890
  "PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
24922
24891
  ],
24892
+ updateHostedRunnerForOrg: [
24893
+ "PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
24894
+ ],
24923
24895
  updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
24924
24896
  updateRepoVariable: [
24925
24897
  "PATCH /repos/{owner}/{repo}/actions/variables/{name}"
@@ -25047,9 +25019,18 @@ var Endpoints = {
25047
25019
  getGithubActionsBillingUser: [
25048
25020
  "GET /users/{username}/settings/billing/actions"
25049
25021
  ],
25022
+ getGithubBillingPremiumRequestUsageReportOrg: [
25023
+ "GET /organizations/{org}/settings/billing/premium_request/usage"
25024
+ ],
25025
+ getGithubBillingPremiumRequestUsageReportUser: [
25026
+ "GET /users/{username}/settings/billing/premium_request/usage"
25027
+ ],
25050
25028
  getGithubBillingUsageReportOrg: [
25051
25029
  "GET /organizations/{org}/settings/billing/usage"
25052
25030
  ],
25031
+ getGithubBillingUsageReportUser: [
25032
+ "GET /users/{username}/settings/billing/usage"
25033
+ ],
25053
25034
  getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
25054
25035
  getGithubPackagesBillingUser: [
25055
25036
  "GET /users/{username}/settings/billing/packages"
@@ -25061,6 +25042,13 @@ var Endpoints = {
25061
25042
  "GET /users/{username}/settings/billing/shared-storage"
25062
25043
  ]
25063
25044
  },
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
+ },
25064
25052
  checks: {
25065
25053
  create: ["POST /repos/{owner}/{repo}/check-runs"],
25066
25054
  createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
@@ -25339,10 +25327,9 @@ var Endpoints = {
25339
25327
  getCopilotSeatDetailsForUser: [
25340
25328
  "GET /orgs/{org}/members/{username}/copilot"
25341
25329
  ],
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"]
25330
+ listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"]
25345
25331
  },
25332
+ credentials: { revoke: ["POST /credentials/revoke"] },
25346
25333
  dependabot: {
25347
25334
  addSelectedRepoToOrgSecret: [
25348
25335
  "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
@@ -25379,11 +25366,20 @@ var Endpoints = {
25379
25366
  removeSelectedRepoFromOrgSecret: [
25380
25367
  "DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
25381
25368
  ],
25369
+ repositoryAccessForOrg: [
25370
+ "GET /organizations/{org}/dependabot/repository-access"
25371
+ ],
25372
+ setRepositoryAccessDefaultLevel: [
25373
+ "PUT /organizations/{org}/dependabot/repository-access/default-level"
25374
+ ],
25382
25375
  setSelectedReposForOrgSecret: [
25383
25376
  "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
25384
25377
  ],
25385
25378
  updateAlert: [
25386
25379
  "PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
25380
+ ],
25381
+ updateRepositoryAccessForOrg: [
25382
+ "PATCH /organizations/{org}/dependabot/repository-access"
25387
25383
  ]
25388
25384
  },
25389
25385
  dependencyGraph: {
@@ -25396,6 +25392,51 @@ var Endpoints = {
25396
25392
  exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
25397
25393
  },
25398
25394
  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
+ },
25399
25440
  gists: {
25400
25441
  checkIsStarred: ["GET /gists/{gist_id}/star"],
25401
25442
  create: ["POST /gists"],
@@ -25437,6 +25478,26 @@ var Endpoints = {
25437
25478
  getAllTemplates: ["GET /gitignore/templates"],
25438
25479
  getTemplate: ["GET /gitignore/templates/{name}"]
25439
25480
  },
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
+ },
25440
25501
  interactions: {
25441
25502
  getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
25442
25503
  getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
@@ -25469,6 +25530,9 @@ var Endpoints = {
25469
25530
  addAssignees: [
25470
25531
  "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
25471
25532
  ],
25533
+ addBlockedByDependency: [
25534
+ "POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"
25535
+ ],
25472
25536
  addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
25473
25537
  addSubIssue: [
25474
25538
  "POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
@@ -25495,10 +25559,17 @@ var Endpoints = {
25495
25559
  getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
25496
25560
  getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
25497
25561
  getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
25562
+ getParent: ["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],
25498
25563
  list: ["GET /issues"],
25499
25564
  listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
25500
25565
  listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
25501
25566
  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
+ ],
25502
25573
  listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
25503
25574
  listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
25504
25575
  listEventsForTimeline: [
@@ -25525,6 +25596,9 @@ var Endpoints = {
25525
25596
  removeAssignees: [
25526
25597
  "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
25527
25598
  ],
25599
+ removeDependencyBlockedBy: [
25600
+ "DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"
25601
+ ],
25528
25602
  removeLabel: [
25529
25603
  "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
25530
25604
  ],
@@ -25627,32 +25701,69 @@ var Endpoints = {
25627
25701
  convertMemberToOutsideCollaborator: [
25628
25702
  "PUT /orgs/{org}/outside_collaborators/{username}"
25629
25703
  ],
25704
+ createArtifactStorageRecord: [
25705
+ "POST /orgs/{org}/artifacts/metadata/storage-record"
25706
+ ],
25630
25707
  createInvitation: ["POST /orgs/{org}/invitations"],
25631
- createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
25632
- createOrUpdateCustomPropertiesValuesForRepos: [
25633
- "PATCH /orgs/{org}/properties/values"
25708
+ createIssueType: ["POST /orgs/{org}/issue-types"],
25709
+ createWebhook: ["POST /orgs/{org}/hooks"],
25710
+ customPropertiesForOrgsCreateOrUpdateOrganizationValues: [
25711
+ "PATCH /organizations/{org}/org-properties/values"
25712
+ ],
25713
+ customPropertiesForOrgsGetOrganizationValues: [
25714
+ "GET /organizations/{org}/org-properties/values"
25634
25715
  ],
25635
- createOrUpdateCustomProperty: [
25716
+ customPropertiesForReposCreateOrUpdateOrganizationDefinition: [
25636
25717
  "PUT /orgs/{org}/properties/schema/{custom_property_name}"
25637
25718
  ],
25638
- createWebhook: ["POST /orgs/{org}/hooks"],
25719
+ customPropertiesForReposCreateOrUpdateOrganizationDefinitions: [
25720
+ "PATCH /orgs/{org}/properties/schema"
25721
+ ],
25722
+ customPropertiesForReposCreateOrUpdateOrganizationValues: [
25723
+ "PATCH /orgs/{org}/properties/values"
25724
+ ],
25725
+ customPropertiesForReposDeleteOrganizationDefinition: [
25726
+ "DELETE /orgs/{org}/properties/schema/{custom_property_name}"
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"
25736
+ ],
25639
25737
  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}"],
25640
25746
  deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
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
- }
25747
+ disableSelectedRepositoryImmutableReleasesOrganization: [
25748
+ "DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"
25749
+ ],
25750
+ enableSelectedRepositoryImmutableReleasesOrganization: [
25751
+ "PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"
25647
25752
  ],
25648
25753
  get: ["GET /orgs/{org}"],
25649
- getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
25650
- getCustomProperty: [
25651
- "GET /orgs/{org}/properties/schema/{custom_property_name}"
25754
+ getImmutableReleasesSettings: [
25755
+ "GET /orgs/{org}/settings/immutable-releases"
25756
+ ],
25757
+ getImmutableReleasesSettingsRepositories: [
25758
+ "GET /orgs/{org}/settings/immutable-releases/repositories"
25652
25759
  ],
25653
25760
  getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
25654
25761
  getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
25655
25762
  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
+ ],
25656
25767
  getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
25657
25768
  getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
25658
25769
  getWebhookDelivery: [
@@ -25660,13 +25771,20 @@ var Endpoints = {
25660
25771
  ],
25661
25772
  list: ["GET /organizations"],
25662
25773
  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"],
25663
25778
  listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
25779
+ listAttestationsBulk: [
25780
+ "POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"
25781
+ ],
25664
25782
  listBlockedUsers: ["GET /orgs/{org}/blocks"],
25665
- listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
25666
25783
  listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
25667
25784
  listForAuthenticatedUser: ["GET /user/orgs"],
25668
25785
  listForUser: ["GET /users/{username}/orgs"],
25669
25786
  listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
25787
+ listIssueTypes: ["GET /orgs/{org}/issue-types"],
25670
25788
  listMembers: ["GET /orgs/{org}/members"],
25671
25789
  listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
25672
25790
  listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
@@ -25699,9 +25817,6 @@ var Endpoints = {
25699
25817
  redeliverWebhookDelivery: [
25700
25818
  "POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
25701
25819
  ],
25702
- removeCustomProperty: [
25703
- "DELETE /orgs/{org}/properties/schema/{custom_property_name}"
25704
- ],
25705
25820
  removeMember: ["DELETE /orgs/{org}/members/{username}"],
25706
25821
  removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
25707
25822
  removeOutsideCollaborator: [
@@ -25735,12 +25850,19 @@ var Endpoints = {
25735
25850
  revokeOrgRoleUser: [
25736
25851
  "DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
25737
25852
  ],
25853
+ setImmutableReleasesSettings: [
25854
+ "PUT /orgs/{org}/settings/immutable-releases"
25855
+ ],
25856
+ setImmutableReleasesSettingsRepositories: [
25857
+ "PUT /orgs/{org}/settings/immutable-releases/repositories"
25858
+ ],
25738
25859
  setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
25739
25860
  setPublicMembershipForAuthenticatedUser: [
25740
25861
  "PUT /orgs/{org}/public_members/{username}"
25741
25862
  ],
25742
25863
  unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
25743
25864
  update: ["PATCH /orgs/{org}"],
25865
+ updateIssueType: ["PUT /orgs/{org}/issue-types/{issue_type_id}"],
25744
25866
  updateMembershipForAuthenticatedUser: [
25745
25867
  "PATCH /user/memberships/orgs/{org}"
25746
25868
  ],
@@ -25854,35 +25976,44 @@ var Endpoints = {
25854
25976
  ]
25855
25977
  },
25856
25978
  projects: {
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}"
25979
+ addItemForOrg: ["POST /orgs/{org}/projectsV2/{project_number}/items"],
25980
+ addItemForUser: [
25981
+ "POST /users/{username}/projectsV2/{project_number}/items"
25982
+ ],
25983
+ deleteItemForOrg: [
25984
+ "DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
25985
+ ],
25986
+ deleteItemForUser: [
25987
+ "DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"
25988
+ ],
25989
+ getFieldForOrg: [
25990
+ "GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"
25882
25991
  ],
25883
- update: ["PATCH /projects/{project_id}"],
25884
- updateCard: ["PATCH /projects/columns/cards/{card_id}"],
25885
- updateColumn: ["PATCH /projects/columns/{column_id}"]
25992
+ getFieldForUser: [
25993
+ "GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"
25994
+ ],
25995
+ getForOrg: ["GET /orgs/{org}/projectsV2/{project_number}"],
25996
+ getForUser: ["GET /users/{username}/projectsV2/{project_number}"],
25997
+ getOrgItem: ["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],
25998
+ getUserItem: [
25999
+ "GET /users/{username}/projectsV2/{project_number}/items/{item_id}"
26000
+ ],
26001
+ listFieldsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/fields"],
26002
+ listFieldsForUser: [
26003
+ "GET /users/{username}/projectsV2/{project_number}/fields"
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}"
26013
+ ],
26014
+ updateItemForUser: [
26015
+ "PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"
26016
+ ]
25886
26017
  },
25887
26018
  pulls: {
25888
26019
  checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
@@ -26044,6 +26175,7 @@ var Endpoints = {
26044
26175
  "GET /repos/{owner}/{repo}/automated-security-fixes"
26045
26176
  ],
26046
26177
  checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
26178
+ checkImmutableReleases: ["GET /repos/{owner}/{repo}/immutable-releases"],
26047
26179
  checkPrivateVulnerabilityReporting: [
26048
26180
  "GET /repos/{owner}/{repo}/private-vulnerability-reporting"
26049
26181
  ],
@@ -26079,9 +26211,6 @@ var Endpoints = {
26079
26211
  createForAuthenticatedUser: ["POST /user/repos"],
26080
26212
  createFork: ["POST /repos/{owner}/{repo}/forks"],
26081
26213
  createInOrg: ["POST /orgs/{org}/repos"],
26082
- createOrUpdateCustomPropertiesValues: [
26083
- "PATCH /repos/{owner}/{repo}/properties/values"
26084
- ],
26085
26214
  createOrUpdateEnvironment: [
26086
26215
  "PUT /repos/{owner}/{repo}/environments/{environment_name}"
26087
26216
  ],
@@ -26095,6 +26224,12 @@ var Endpoints = {
26095
26224
  "POST /repos/{template_owner}/{template_repo}/generate"
26096
26225
  ],
26097
26226
  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
+ ],
26098
26233
  declineInvitation: [
26099
26234
  "DELETE /user/repository_invitations/{invitation_id}",
26100
26235
  {},
@@ -26149,6 +26284,9 @@ var Endpoints = {
26149
26284
  disableDeploymentProtectionRule: [
26150
26285
  "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
26151
26286
  ],
26287
+ disableImmutableReleases: [
26288
+ "DELETE /repos/{owner}/{repo}/immutable-releases"
26289
+ ],
26152
26290
  disablePrivateVulnerabilityReporting: [
26153
26291
  "DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
26154
26292
  ],
@@ -26165,6 +26303,7 @@ var Endpoints = {
26165
26303
  enableAutomatedSecurityFixes: [
26166
26304
  "PUT /repos/{owner}/{repo}/automated-security-fixes"
26167
26305
  ],
26306
+ enableImmutableReleases: ["PUT /repos/{owner}/{repo}/immutable-releases"],
26168
26307
  enablePrivateVulnerabilityReporting: [
26169
26308
  "PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
26170
26309
  ],
@@ -26216,7 +26355,6 @@ var Endpoints = {
26216
26355
  getCustomDeploymentProtectionRule: [
26217
26356
  "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
26218
26357
  ],
26219
- getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
26220
26358
  getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
26221
26359
  getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
26222
26360
  getDeploymentBranchPolicy: [
@@ -26255,6 +26393,12 @@ var Endpoints = {
26255
26393
  ],
26256
26394
  getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
26257
26395
  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
+ ],
26258
26402
  getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
26259
26403
  getStatusChecksProtection: [
26260
26404
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
@@ -26442,16 +26586,19 @@ var Endpoints = {
26442
26586
  "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
26443
26587
  ],
26444
26588
  getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
26445
- listAlertsForEnterprise: [
26446
- "GET /enterprises/{enterprise}/secret-scanning/alerts"
26447
- ],
26448
26589
  listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
26449
26590
  listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
26450
26591
  listLocationsForAlert: [
26451
26592
  "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
26452
26593
  ],
26594
+ listOrgPatternConfigs: [
26595
+ "GET /orgs/{org}/secret-scanning/pattern-configurations"
26596
+ ],
26453
26597
  updateAlert: [
26454
26598
  "PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
26599
+ ],
26600
+ updateOrgPatternConfigs: [
26601
+ "PATCH /orgs/{org}/secret-scanning/pattern-configurations"
26455
26602
  ]
26456
26603
  },
26457
26604
  securityAdvisories: {
@@ -26482,15 +26629,9 @@ var Endpoints = {
26482
26629
  addOrUpdateMembershipForUserInOrg: [
26483
26630
  "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
26484
26631
  ],
26485
- addOrUpdateProjectPermissionsInOrg: [
26486
- "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
26487
- ],
26488
26632
  addOrUpdateRepoPermissionsInOrg: [
26489
26633
  "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
26490
26634
  ],
26491
- checkPermissionsForProjectInOrg: [
26492
- "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
26493
- ],
26494
26635
  checkPermissionsForRepoInOrg: [
26495
26636
  "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
26496
26637
  ],
@@ -26527,14 +26668,10 @@ var Endpoints = {
26527
26668
  listPendingInvitationsInOrg: [
26528
26669
  "GET /orgs/{org}/teams/{team_slug}/invitations"
26529
26670
  ],
26530
- listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
26531
26671
  listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
26532
26672
  removeMembershipForUserInOrg: [
26533
26673
  "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
26534
26674
  ],
26535
- removeProjectInOrg: [
26536
- "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
26537
- ],
26538
26675
  removeRepoInOrg: [
26539
26676
  "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
26540
26677
  ],
@@ -26571,6 +26708,15 @@ var Endpoints = {
26571
26708
  ],
26572
26709
  createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
26573
26710
  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
+ ],
26574
26720
  deleteEmailForAuthenticated: [
26575
26721
  "DELETE /user/emails",
26576
26722
  {},
@@ -26615,6 +26761,9 @@ var Endpoints = {
26615
26761
  ],
26616
26762
  list: ["GET /users"],
26617
26763
  listAttestations: ["GET /users/{username}/attestations/{subject_digest}"],
26764
+ listAttestationsBulk: [
26765
+ "POST /users/{username}/attestations/bulk-list{?per_page,before,after}"
26766
+ ],
26618
26767
  listBlockedByAuthenticated: [
26619
26768
  "GET /user/blocks",
26620
26769
  {},
@@ -26675,7 +26824,7 @@ var Endpoints = {
26675
26824
  };
26676
26825
  var endpoints_default = Endpoints;
26677
26826
 
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
26827
+ // ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
26679
26828
  var endpointMethodsMap = /* @__PURE__ */ new Map();
26680
26829
  for (const [scope, endpoints] of Object.entries(endpoints_default)) {
26681
26830
  for (const [methodName, endpoint2] of Object.entries(endpoints)) {
@@ -26798,7 +26947,7 @@ function decorate(octokit, scope, methodName, defaults3, decorations) {
26798
26947
  return Object.assign(withDecorations, requestWithDefaults);
26799
26948
  }
26800
26949
 
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
26950
+ // ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
26802
26951
  function restEndpointMethods(octokit) {
26803
26952
  const api = endpointsToMethods(octokit);
26804
26953
  return {
@@ -26815,15 +26964,15 @@ function legacyRestEndpointMethods(octokit) {
26815
26964
  }
26816
26965
  legacyRestEndpointMethods.VERSION = VERSION7;
26817
26966
 
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
- });
26967
+ // ../../node_modules/.pnpm/@octokit+rest@22.0.1/node_modules/@octokit/rest/dist-src/version.js
26968
+ var VERSION8 = "22.0.1";
26969
+
26970
+ // ../../node_modules/.pnpm/@octokit+rest@22.0.1/node_modules/@octokit/rest/dist-src/index.js
26971
+ var Octokit2 = Octokit.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults(
26972
+ {
26973
+ userAgent: `octokit-rest.js/${VERSION8}`
26974
+ }
26975
+ );
26827
26976
 
26828
26977
  // src/github/GitHub.ts
26829
26978
  var GitHub = class {
@@ -32477,4 +32626,11 @@ yargs-parser/build/lib/index.js:
32477
32626
  * Copyright (c) 2016, Contributors
32478
32627
  * SPDX-License-Identifier: ISC
32479
32628
  *)
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 *)
32480
32636
  */