@fern-api/generator-cli 0.6.1 → 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/api.js CHANGED
@@ -5732,226 +5732,99 @@ var require_tmp_promise = __commonJS({
5732
5732
  }
5733
5733
  });
5734
5734
 
5735
- // ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/register.js
5736
- var require_register = __commonJS({
5737
- "../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/register.js"(exports2, module2) {
5735
+ // ../../node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.js
5736
+ var require_fast_content_type_parse = __commonJS({
5737
+ "../../node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.js"(exports2, module2) {
5738
5738
  "use strict";
5739
- module2.exports = register;
5740
- function register(state, name, method, options) {
5741
- if (typeof method !== "function") {
5742
- throw new Error("method for before hook must be a function");
5743
- }
5744
- if (!options) {
5745
- options = {};
5746
- }
5747
- if (Array.isArray(name)) {
5748
- return name.reverse().reduce(function(callback, name2) {
5749
- return register.bind(null, state, name2, callback, options);
5750
- }, method)();
5751
- }
5752
- return Promise.resolve().then(function() {
5753
- if (!state.registry[name]) {
5754
- return method(options);
5755
- }
5756
- return state.registry[name].reduce(function(method2, registered) {
5757
- return registered.hook.bind(null, method2, options);
5758
- }, method)();
5759
- });
5760
- }
5761
- }
5762
- });
5763
-
5764
- // ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/add.js
5765
- var require_add = __commonJS({
5766
- "../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/add.js"(exports2, module2) {
5767
- "use strict";
5768
- module2.exports = addHook;
5769
- function addHook(state, kind, name, hook2) {
5770
- var orig = hook2;
5771
- if (!state.registry[name]) {
5772
- state.registry[name] = [];
5773
- }
5774
- if (kind === "before") {
5775
- hook2 = function(method, options) {
5776
- return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
5777
- };
5739
+ var NullObject = function NullObject2() {
5740
+ };
5741
+ NullObject.prototype = /* @__PURE__ */ Object.create(null);
5742
+ var paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;
5743
+ var quotedPairRE = /\\([\v\u0020-\u00ff])/gu;
5744
+ var mediaTypeRE = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;
5745
+ var defaultContentType = { type: "", parameters: new NullObject() };
5746
+ Object.freeze(defaultContentType.parameters);
5747
+ Object.freeze(defaultContentType);
5748
+ function parse4(header) {
5749
+ if (typeof header !== "string") {
5750
+ throw new TypeError("argument header is required and must be a string");
5751
+ }
5752
+ let index = header.indexOf(";");
5753
+ const type = index !== -1 ? header.slice(0, index).trim() : header.trim();
5754
+ if (mediaTypeRE.test(type) === false) {
5755
+ throw new TypeError("invalid media type");
5756
+ }
5757
+ const result = {
5758
+ type: type.toLowerCase(),
5759
+ parameters: new NullObject()
5760
+ };
5761
+ if (index === -1) {
5762
+ return result;
5778
5763
  }
5779
- if (kind === "after") {
5780
- hook2 = function(method, options) {
5781
- var result;
5782
- return Promise.resolve().then(method.bind(null, options)).then(function(result_) {
5783
- result = result_;
5784
- return orig(result, options);
5785
- }).then(function() {
5786
- return result;
5787
- });
5788
- };
5764
+ let key;
5765
+ let match2;
5766
+ let value;
5767
+ paramRE.lastIndex = index;
5768
+ while (match2 = paramRE.exec(header)) {
5769
+ if (match2.index !== index) {
5770
+ throw new TypeError("invalid parameter format");
5771
+ }
5772
+ index += match2[0].length;
5773
+ key = match2[1].toLowerCase();
5774
+ value = match2[2];
5775
+ if (value[0] === '"') {
5776
+ value = value.slice(1, value.length - 1);
5777
+ quotedPairRE.test(value) && (value = value.replace(quotedPairRE, "$1"));
5778
+ }
5779
+ result.parameters[key] = value;
5789
5780
  }
5790
- if (kind === "error") {
5791
- hook2 = function(method, options) {
5792
- return Promise.resolve().then(method.bind(null, options)).catch(function(error) {
5793
- return orig(error, options);
5794
- });
5795
- };
5781
+ if (index !== header.length) {
5782
+ throw new TypeError("invalid parameter format");
5796
5783
  }
5797
- state.registry[name].push({
5798
- hook: hook2,
5799
- orig
5800
- });
5784
+ return result;
5801
5785
  }
5802
- }
5803
- });
5804
-
5805
- // ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/remove.js
5806
- var require_remove = __commonJS({
5807
- "../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/remove.js"(exports2, module2) {
5808
- "use strict";
5809
- module2.exports = removeHook;
5810
- function removeHook(state, name, method) {
5811
- if (!state.registry[name]) {
5812
- return;
5786
+ function safeParse2(header) {
5787
+ if (typeof header !== "string") {
5788
+ return defaultContentType;
5813
5789
  }
5814
- var index = state.registry[name].map(function(registered) {
5815
- return registered.orig;
5816
- }).indexOf(method);
5817
- if (index === -1) {
5818
- return;
5790
+ let index = header.indexOf(";");
5791
+ const type = index !== -1 ? header.slice(0, index).trim() : header.trim();
5792
+ if (mediaTypeRE.test(type) === false) {
5793
+ return defaultContentType;
5819
5794
  }
5820
- state.registry[name].splice(index, 1);
5821
- }
5822
- }
5823
- });
5824
-
5825
- // ../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/index.js
5826
- var require_before_after_hook = __commonJS({
5827
- "../../node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/index.js"(exports2, module2) {
5828
- "use strict";
5829
- var register = require_register();
5830
- var addHook = require_add();
5831
- var removeHook = require_remove();
5832
- var bind = Function.bind;
5833
- var bindable = bind.bind(bind);
5834
- function bindApi(hook2, state, name) {
5835
- var removeHookRef = bindable(removeHook, null).apply(
5836
- null,
5837
- name ? [state, name] : [state]
5838
- );
5839
- hook2.api = { remove: removeHookRef };
5840
- hook2.remove = removeHookRef;
5841
- ["before", "error", "after", "wrap"].forEach(function(kind) {
5842
- var args = name ? [state, kind, name] : [state, kind];
5843
- hook2[kind] = hook2.api[kind] = bindable(addHook, null).apply(null, args);
5844
- });
5845
- }
5846
- function HookSingular() {
5847
- var singularHookName = "h";
5848
- var singularHookState = {
5849
- registry: {}
5850
- };
5851
- var singularHook = register.bind(null, singularHookState, singularHookName);
5852
- bindApi(singularHook, singularHookState, singularHookName);
5853
- return singularHook;
5854
- }
5855
- function HookCollection() {
5856
- var state = {
5857
- registry: {}
5795
+ const result = {
5796
+ type: type.toLowerCase(),
5797
+ parameters: new NullObject()
5858
5798
  };
5859
- var hook2 = register.bind(null, state);
5860
- bindApi(hook2, state);
5861
- return hook2;
5862
- }
5863
- var collectionHookDeprecationMessageDisplayed = false;
5864
- function Hook() {
5865
- if (!collectionHookDeprecationMessageDisplayed) {
5866
- console.warn(
5867
- '[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
5868
- );
5869
- collectionHookDeprecationMessageDisplayed = true;
5799
+ if (index === -1) {
5800
+ return result;
5870
5801
  }
5871
- return HookCollection();
5872
- }
5873
- Hook.Singular = HookSingular.bind();
5874
- Hook.Collection = HookCollection.bind();
5875
- module2.exports = Hook;
5876
- module2.exports.Hook = Hook;
5877
- module2.exports.Singular = Hook.Singular;
5878
- module2.exports.Collection = Hook.Collection;
5879
- }
5880
- });
5881
-
5882
- // ../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js
5883
- var require_wrappy = __commonJS({
5884
- "../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(exports2, module2) {
5885
- "use strict";
5886
- module2.exports = wrappy;
5887
- function wrappy(fn, cb) {
5888
- if (fn && cb) return wrappy(fn)(cb);
5889
- if (typeof fn !== "function")
5890
- throw new TypeError("need wrapper function");
5891
- Object.keys(fn).forEach(function(k) {
5892
- wrapper[k] = fn[k];
5893
- });
5894
- return wrapper;
5895
- function wrapper() {
5896
- var args = new Array(arguments.length);
5897
- for (var i = 0; i < args.length; i++) {
5898
- args[i] = arguments[i];
5899
- }
5900
- var ret = fn.apply(this, args);
5901
- var cb2 = args[args.length - 1];
5902
- if (typeof ret === "function" && ret !== cb2) {
5903
- Object.keys(cb2).forEach(function(k) {
5904
- ret[k] = cb2[k];
5905
- });
5802
+ let key;
5803
+ let match2;
5804
+ let value;
5805
+ paramRE.lastIndex = index;
5806
+ while (match2 = paramRE.exec(header)) {
5807
+ if (match2.index !== index) {
5808
+ return defaultContentType;
5809
+ }
5810
+ index += match2[0].length;
5811
+ key = match2[1].toLowerCase();
5812
+ value = match2[2];
5813
+ if (value[0] === '"') {
5814
+ value = value.slice(1, value.length - 1);
5815
+ quotedPairRE.test(value) && (value = value.replace(quotedPairRE, "$1"));
5906
5816
  }
5907
- return ret;
5817
+ result.parameters[key] = value;
5908
5818
  }
5819
+ if (index !== header.length) {
5820
+ return defaultContentType;
5821
+ }
5822
+ return result;
5909
5823
  }
5910
- }
5911
- });
5912
-
5913
- // ../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js
5914
- var require_once = __commonJS({
5915
- "../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(exports2, module2) {
5916
- "use strict";
5917
- var wrappy = require_wrappy();
5918
- module2.exports = wrappy(once2);
5919
- module2.exports.strict = wrappy(onceStrict);
5920
- once2.proto = once2(function() {
5921
- Object.defineProperty(Function.prototype, "once", {
5922
- value: function() {
5923
- return once2(this);
5924
- },
5925
- configurable: true
5926
- });
5927
- Object.defineProperty(Function.prototype, "onceStrict", {
5928
- value: function() {
5929
- return onceStrict(this);
5930
- },
5931
- configurable: true
5932
- });
5933
- });
5934
- function once2(fn) {
5935
- var f = function() {
5936
- if (f.called) return f.value;
5937
- f.called = true;
5938
- return f.value = fn.apply(this, arguments);
5939
- };
5940
- f.called = false;
5941
- return f;
5942
- }
5943
- function onceStrict(fn) {
5944
- var f = function() {
5945
- if (f.called)
5946
- throw new Error(f.onceError);
5947
- f.called = true;
5948
- return f.value = fn.apply(this, arguments);
5949
- };
5950
- var name = fn.name || "Function wrapped with `once`";
5951
- f.onceError = name + " shouldn't be called more than once";
5952
- f.called = false;
5953
- return f;
5954
- }
5824
+ module2.exports.default = { parse: parse4, safeParse: safeParse2 };
5825
+ module2.exports.parse = parse4;
5826
+ module2.exports.safeParse = safeParse2;
5827
+ module2.exports.defaultContentType = defaultContentType;
5955
5828
  }
5956
5829
  });
5957
5830
 
@@ -9938,10 +9811,10 @@ var require_resolve_block_map = __commonJS({
9938
9811
  let offset = bm.offset;
9939
9812
  let commentEnd = null;
9940
9813
  for (const collItem of bm.items) {
9941
- const { start, key, sep: sep2, value } = collItem;
9814
+ const { start, key, sep: sep3, value } = collItem;
9942
9815
  const keyProps = resolveProps.resolveProps(start, {
9943
9816
  indicator: "explicit-key-ind",
9944
- next: key ?? sep2?.[0],
9817
+ next: key ?? sep3?.[0],
9945
9818
  offset,
9946
9819
  onError: onError2,
9947
9820
  startOnNewline: true
@@ -9954,7 +9827,7 @@ var require_resolve_block_map = __commonJS({
9954
9827
  else if ("indent" in key && key.indent !== bm.indent)
9955
9828
  onError2(offset, "BAD_INDENT", startColMsg);
9956
9829
  }
9957
- if (!keyProps.anchor && !keyProps.tag && !sep2) {
9830
+ if (!keyProps.anchor && !keyProps.tag && !sep3) {
9958
9831
  commentEnd = keyProps.end;
9959
9832
  if (keyProps.comment) {
9960
9833
  if (map.comment)
@@ -9976,7 +9849,7 @@ var require_resolve_block_map = __commonJS({
9976
9849
  utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError2);
9977
9850
  if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
9978
9851
  onError2(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
9979
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
9852
+ const valueProps = resolveProps.resolveProps(sep3 ?? [], {
9980
9853
  indicator: "map-value-ind",
9981
9854
  next: value,
9982
9855
  offset: keyNode.range[2],
@@ -9991,7 +9864,7 @@ var require_resolve_block_map = __commonJS({
9991
9864
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
9992
9865
  onError2(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
9993
9866
  }
9994
- const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError2);
9867
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : composeEmptyNode(ctx, offset, sep3, null, valueProps, onError2);
9995
9868
  if (ctx.schema.compat)
9996
9869
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError2);
9997
9870
  offset = valueNode.range[2];
@@ -10079,7 +9952,7 @@ var require_resolve_end = __commonJS({
10079
9952
  let comment = "";
10080
9953
  if (end) {
10081
9954
  let hasSpace = false;
10082
- let sep2 = "";
9955
+ let sep3 = "";
10083
9956
  for (const token of end) {
10084
9957
  const { source, type } = token;
10085
9958
  switch (type) {
@@ -10093,13 +9966,13 @@ var require_resolve_end = __commonJS({
10093
9966
  if (!comment)
10094
9967
  comment = cb;
10095
9968
  else
10096
- comment += sep2 + cb;
10097
- sep2 = "";
9969
+ comment += sep3 + cb;
9970
+ sep3 = "";
10098
9971
  break;
10099
9972
  }
10100
9973
  case "newline":
10101
9974
  if (comment)
10102
- sep2 += source;
9975
+ sep3 += source;
10103
9976
  hasSpace = true;
10104
9977
  break;
10105
9978
  default:
@@ -10140,17 +10013,17 @@ var require_resolve_flow_collection = __commonJS({
10140
10013
  let offset = fc.offset + fc.start.source.length;
10141
10014
  for (let i = 0; i < fc.items.length; ++i) {
10142
10015
  const collItem = fc.items[i];
10143
- const { start, key, sep: sep2, value } = collItem;
10016
+ const { start, key, sep: sep3, value } = collItem;
10144
10017
  const props = resolveProps.resolveProps(start, {
10145
10018
  flow: fcName,
10146
10019
  indicator: "explicit-key-ind",
10147
- next: key ?? sep2?.[0],
10020
+ next: key ?? sep3?.[0],
10148
10021
  offset,
10149
10022
  onError: onError2,
10150
10023
  startOnNewline: false
10151
10024
  });
10152
10025
  if (!props.found) {
10153
- if (!props.anchor && !props.tag && !sep2 && !value) {
10026
+ if (!props.anchor && !props.tag && !sep3 && !value) {
10154
10027
  if (i === 0 && props.comma)
10155
10028
  onError2(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
10156
10029
  else if (i < fc.items.length - 1)
@@ -10204,8 +10077,8 @@ var require_resolve_flow_collection = __commonJS({
10204
10077
  }
10205
10078
  }
10206
10079
  }
10207
- if (!isMap && !sep2 && !props.found) {
10208
- const valueNode = value ? composeNode(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end, sep2, null, props, onError2);
10080
+ if (!isMap && !sep3 && !props.found) {
10081
+ const valueNode = value ? composeNode(ctx, value, props, onError2) : composeEmptyNode(ctx, props.end, sep3, null, props, onError2);
10209
10082
  coll.items.push(valueNode);
10210
10083
  offset = valueNode.range[2];
10211
10084
  if (isBlock(value))
@@ -10215,7 +10088,7 @@ var require_resolve_flow_collection = __commonJS({
10215
10088
  const keyNode = key ? composeNode(ctx, key, props, onError2) : composeEmptyNode(ctx, keyStart, start, null, props, onError2);
10216
10089
  if (isBlock(key))
10217
10090
  onError2(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
10218
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
10091
+ const valueProps = resolveProps.resolveProps(sep3 ?? [], {
10219
10092
  flow: fcName,
10220
10093
  indicator: "map-value-ind",
10221
10094
  next: value,
@@ -10225,8 +10098,8 @@ var require_resolve_flow_collection = __commonJS({
10225
10098
  });
10226
10099
  if (valueProps.found) {
10227
10100
  if (!isMap && !props.found && ctx.options.strict) {
10228
- if (sep2)
10229
- for (const st of sep2) {
10101
+ if (sep3)
10102
+ for (const st of sep3) {
10230
10103
  if (st === valueProps.found)
10231
10104
  break;
10232
10105
  if (st.type === "newline") {
@@ -10243,7 +10116,7 @@ var require_resolve_flow_collection = __commonJS({
10243
10116
  else
10244
10117
  onError2(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
10245
10118
  }
10246
- const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError2) : null;
10119
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError2) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep3, null, valueProps, onError2) : null;
10247
10120
  if (valueNode) {
10248
10121
  if (isBlock(value))
10249
10122
  onError2(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -10408,7 +10281,7 @@ var require_resolve_block_scalar = __commonJS({
10408
10281
  chompStart = i + 1;
10409
10282
  }
10410
10283
  let value = "";
10411
- let sep2 = "";
10284
+ let sep3 = "";
10412
10285
  let prevMoreIndented = false;
10413
10286
  for (let i = 0; i < contentStart; ++i)
10414
10287
  value += lines[i][0].slice(trimIndent) + "\n";
@@ -10425,24 +10298,24 @@ var require_resolve_block_scalar = __commonJS({
10425
10298
  indent = "";
10426
10299
  }
10427
10300
  if (type === Scalar.Scalar.BLOCK_LITERAL) {
10428
- value += sep2 + indent.slice(trimIndent) + content;
10429
- sep2 = "\n";
10301
+ value += sep3 + indent.slice(trimIndent) + content;
10302
+ sep3 = "\n";
10430
10303
  } else if (indent.length > trimIndent || content[0] === " ") {
10431
- if (sep2 === " ")
10432
- sep2 = "\n";
10433
- else if (!prevMoreIndented && sep2 === "\n")
10434
- sep2 = "\n\n";
10435
- value += sep2 + indent.slice(trimIndent) + content;
10436
- sep2 = "\n";
10304
+ if (sep3 === " ")
10305
+ sep3 = "\n";
10306
+ else if (!prevMoreIndented && sep3 === "\n")
10307
+ sep3 = "\n\n";
10308
+ value += sep3 + indent.slice(trimIndent) + content;
10309
+ sep3 = "\n";
10437
10310
  prevMoreIndented = true;
10438
10311
  } else if (content === "") {
10439
- if (sep2 === "\n")
10312
+ if (sep3 === "\n")
10440
10313
  value += "\n";
10441
10314
  else
10442
- sep2 = "\n";
10315
+ sep3 = "\n";
10443
10316
  } else {
10444
- value += sep2 + content;
10445
- sep2 = " ";
10317
+ value += sep3 + content;
10318
+ sep3 = " ";
10446
10319
  prevMoreIndented = false;
10447
10320
  }
10448
10321
  }
@@ -10624,25 +10497,25 @@ var require_resolve_flow_scalar = __commonJS({
10624
10497
  if (!match2)
10625
10498
  return source;
10626
10499
  let res = match2[1];
10627
- let sep2 = " ";
10500
+ let sep3 = " ";
10628
10501
  let pos = first2.lastIndex;
10629
10502
  line.lastIndex = pos;
10630
10503
  while (match2 = line.exec(source)) {
10631
10504
  if (match2[1] === "") {
10632
- if (sep2 === "\n")
10633
- res += sep2;
10505
+ if (sep3 === "\n")
10506
+ res += sep3;
10634
10507
  else
10635
- sep2 = "\n";
10508
+ sep3 = "\n";
10636
10509
  } else {
10637
- res += sep2 + match2[1];
10638
- sep2 = " ";
10510
+ res += sep3 + match2[1];
10511
+ sep3 = " ";
10639
10512
  }
10640
10513
  pos = line.lastIndex;
10641
10514
  }
10642
10515
  const last2 = /[ \t]*(.*)/sy;
10643
10516
  last2.lastIndex = pos;
10644
10517
  match2 = last2.exec(source);
10645
- return res + sep2 + (match2?.[1] ?? "");
10518
+ return res + sep3 + (match2?.[1] ?? "");
10646
10519
  }
10647
10520
  function doubleQuotedValue(source, onError2) {
10648
10521
  let res = "";
@@ -11415,14 +11288,14 @@ var require_cst_stringify = __commonJS({
11415
11288
  }
11416
11289
  }
11417
11290
  }
11418
- function stringifyItem({ start, key, sep: sep2, value }) {
11291
+ function stringifyItem({ start, key, sep: sep3, value }) {
11419
11292
  let res = "";
11420
11293
  for (const st of start)
11421
11294
  res += st.source;
11422
11295
  if (key)
11423
11296
  res += stringifyToken(key);
11424
- if (sep2)
11425
- for (const st of sep2)
11297
+ if (sep3)
11298
+ for (const st of sep3)
11426
11299
  res += st.source;
11427
11300
  if (value)
11428
11301
  res += stringifyToken(value);
@@ -12559,18 +12432,18 @@ var require_parser = __commonJS({
12559
12432
  if (this.type === "map-value-ind") {
12560
12433
  const prev = getPrevProps(this.peek(2));
12561
12434
  const start = getFirstKeyStartProps(prev);
12562
- let sep2;
12435
+ let sep3;
12563
12436
  if (scalar.end) {
12564
- sep2 = scalar.end;
12565
- sep2.push(this.sourceToken);
12437
+ sep3 = scalar.end;
12438
+ sep3.push(this.sourceToken);
12566
12439
  delete scalar.end;
12567
12440
  } else
12568
- sep2 = [this.sourceToken];
12441
+ sep3 = [this.sourceToken];
12569
12442
  const map = {
12570
12443
  type: "block-map",
12571
12444
  offset: scalar.offset,
12572
12445
  indent: scalar.indent,
12573
- items: [{ start, key: scalar, sep: sep2 }]
12446
+ items: [{ start, key: scalar, sep: sep3 }]
12574
12447
  };
12575
12448
  this.onKeyLine = true;
12576
12449
  this.stack[this.stack.length - 1] = map;
@@ -12721,14 +12594,14 @@ var require_parser = __commonJS({
12721
12594
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
12722
12595
  const start2 = getFirstKeyStartProps(it.start);
12723
12596
  const key = it.key;
12724
- const sep2 = it.sep;
12725
- sep2.push(this.sourceToken);
12597
+ const sep3 = it.sep;
12598
+ sep3.push(this.sourceToken);
12726
12599
  delete it.key, delete it.sep;
12727
12600
  this.stack.push({
12728
12601
  type: "block-map",
12729
12602
  offset: this.offset,
12730
12603
  indent: this.indent,
12731
- items: [{ start: start2, key, sep: sep2 }]
12604
+ items: [{ start: start2, key, sep: sep3 }]
12732
12605
  });
12733
12606
  } else if (start.length > 0) {
12734
12607
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -12912,13 +12785,13 @@ var require_parser = __commonJS({
12912
12785
  const prev = getPrevProps(parent);
12913
12786
  const start = getFirstKeyStartProps(prev);
12914
12787
  fixFlowSeqItems(fc);
12915
- const sep2 = fc.end.splice(1, fc.end.length);
12916
- sep2.push(this.sourceToken);
12788
+ const sep3 = fc.end.splice(1, fc.end.length);
12789
+ sep3.push(this.sourceToken);
12917
12790
  const map = {
12918
12791
  type: "block-map",
12919
12792
  offset: fc.offset,
12920
12793
  indent: fc.indent,
12921
- items: [{ start, key: fc, sep: sep2 }]
12794
+ items: [{ start, key: fc, sep: sep3 }]
12922
12795
  };
12923
12796
  this.onKeyLine = true;
12924
12797
  this.stack[this.stack.length - 1] = map;
@@ -13640,6 +13513,17 @@ async function cloneRepository({ githubRepository, installationToken, targetDire
13640
13513
  });
13641
13514
  }
13642
13515
 
13516
+ // ../../node_modules/.pnpm/universal-user-agent@7.0.3/node_modules/universal-user-agent/index.js
13517
+ function getUserAgent() {
13518
+ if (typeof navigator === "object" && "userAgent" in navigator) {
13519
+ return navigator.userAgent;
13520
+ }
13521
+ if (typeof process === "object" && process.version !== void 0) {
13522
+ return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
13523
+ }
13524
+ return "<environment undetectable>";
13525
+ }
13526
+
13643
13527
  // ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isLength.mjs
13644
13528
  function isLength(value) {
13645
13529
  return Number.isSafeInteger(value) && value >= 0;
@@ -19079,24 +18963,114 @@ function resolve2(...paths) {
19079
18963
  return import_path2.default.resolve(...paths.map(convertToOsPath));
19080
18964
  }
19081
18965
 
19082
- // ../../node_modules/.pnpm/universal-user-agent@6.0.1/node_modules/universal-user-agent/dist-web/index.js
19083
- function getUserAgent() {
19084
- if (typeof navigator === "object" && "userAgent" in navigator) {
19085
- return navigator.userAgent;
18966
+ // ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/register.js
18967
+ function register(state, name, method, options) {
18968
+ if (typeof method !== "function") {
18969
+ throw new Error("method for before hook must be a function");
19086
18970
  }
19087
- if (typeof process === "object" && process.version !== void 0) {
19088
- return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
18971
+ if (!options) {
18972
+ options = {};
19089
18973
  }
19090
- return "<environment undetectable>";
18974
+ if (Array.isArray(name)) {
18975
+ return name.reverse().reduce((callback, name2) => {
18976
+ return register.bind(null, state, name2, callback, options);
18977
+ }, method)();
18978
+ }
18979
+ return Promise.resolve().then(() => {
18980
+ if (!state.registry[name]) {
18981
+ return method(options);
18982
+ }
18983
+ return state.registry[name].reduce((method2, registered) => {
18984
+ return registered.hook.bind(null, method2, options);
18985
+ }, method)();
18986
+ });
19091
18987
  }
19092
18988
 
19093
- // ../../node_modules/.pnpm/@octokit+core@5.2.2/node_modules/@octokit/core/dist-web/index.js
19094
- var import_before_after_hook = __toESM(require_before_after_hook());
18989
+ // ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/add.js
18990
+ function addHook(state, kind, name, hook2) {
18991
+ const orig = hook2;
18992
+ if (!state.registry[name]) {
18993
+ state.registry[name] = [];
18994
+ }
18995
+ if (kind === "before") {
18996
+ hook2 = (method, options) => {
18997
+ return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
18998
+ };
18999
+ }
19000
+ if (kind === "after") {
19001
+ hook2 = (method, options) => {
19002
+ let result;
19003
+ return Promise.resolve().then(method.bind(null, options)).then((result_) => {
19004
+ result = result_;
19005
+ return orig(result, options);
19006
+ }).then(() => {
19007
+ return result;
19008
+ });
19009
+ };
19010
+ }
19011
+ if (kind === "error") {
19012
+ hook2 = (method, options) => {
19013
+ return Promise.resolve().then(method.bind(null, options)).catch((error) => {
19014
+ return orig(error, options);
19015
+ });
19016
+ };
19017
+ }
19018
+ state.registry[name].push({
19019
+ hook: hook2,
19020
+ orig
19021
+ });
19022
+ }
19095
19023
 
19096
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/version.js
19097
- var VERSION = "9.0.6";
19024
+ // ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/remove.js
19025
+ function removeHook(state, name, method) {
19026
+ if (!state.registry[name]) {
19027
+ return;
19028
+ }
19029
+ const index = state.registry[name].map((registered) => {
19030
+ return registered.orig;
19031
+ }).indexOf(method);
19032
+ if (index === -1) {
19033
+ return;
19034
+ }
19035
+ state.registry[name].splice(index, 1);
19036
+ }
19037
+
19038
+ // ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/index.js
19039
+ var bind = Function.bind;
19040
+ var bindable = bind.bind(bind);
19041
+ function bindApi(hook2, state, name) {
19042
+ const removeHookRef = bindable(removeHook, null).apply(
19043
+ null,
19044
+ name ? [state, name] : [state]
19045
+ );
19046
+ hook2.api = { remove: removeHookRef };
19047
+ hook2.remove = removeHookRef;
19048
+ ["before", "error", "after", "wrap"].forEach((kind) => {
19049
+ const args = name ? [state, kind, name] : [state, kind];
19050
+ hook2[kind] = hook2.api[kind] = bindable(addHook, null).apply(null, args);
19051
+ });
19052
+ }
19053
+ function Singular() {
19054
+ const singularHookName = /* @__PURE__ */ Symbol("Singular");
19055
+ const singularHookState = {
19056
+ registry: {}
19057
+ };
19058
+ const singularHook = register.bind(null, singularHookState, singularHookName);
19059
+ bindApi(singularHook, singularHookState, singularHookName);
19060
+ return singularHook;
19061
+ }
19062
+ function Collection() {
19063
+ const state = {
19064
+ registry: {}
19065
+ };
19066
+ const hook2 = register.bind(null, state);
19067
+ bindApi(hook2, state);
19068
+ return hook2;
19069
+ }
19070
+ var before_after_hook_default = { Singular, Collection };
19098
19071
 
19099
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/defaults.js
19072
+ // ../../node_modules/.pnpm/@octokit+endpoint@11.0.2/node_modules/@octokit/endpoint/dist-bundle/index.js
19073
+ var VERSION = "0.0.0-development";
19100
19074
  var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
19101
19075
  var DEFAULTS = {
19102
19076
  method: "GET",
@@ -19109,8 +19083,6 @@ var DEFAULTS = {
19109
19083
  format: ""
19110
19084
  }
19111
19085
  };
19112
-
19113
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js
19114
19086
  function lowercaseKeys(object2) {
19115
19087
  if (!object2) {
19116
19088
  return {};
@@ -19120,37 +19092,26 @@ function lowercaseKeys(object2) {
19120
19092
  return newObj;
19121
19093
  }, {});
19122
19094
  }
19123
-
19124
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/is-plain-object.js
19125
19095
  function isPlainObject2(value) {
19126
- if (typeof value !== "object" || value === null)
19127
- return false;
19128
- if (Object.prototype.toString.call(value) !== "[object Object]")
19129
- return false;
19096
+ if (typeof value !== "object" || value === null) return false;
19097
+ if (Object.prototype.toString.call(value) !== "[object Object]") return false;
19130
19098
  const proto = Object.getPrototypeOf(value);
19131
- if (proto === null)
19132
- return true;
19099
+ if (proto === null) return true;
19133
19100
  const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
19134
19101
  return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
19135
19102
  }
19136
-
19137
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
19138
19103
  function mergeDeep(defaults3, options) {
19139
19104
  const result = Object.assign({}, defaults3);
19140
19105
  Object.keys(options).forEach((key) => {
19141
19106
  if (isPlainObject2(options[key])) {
19142
- if (!(key in defaults3))
19143
- Object.assign(result, { [key]: options[key] });
19144
- else
19145
- result[key] = mergeDeep(defaults3[key], options[key]);
19107
+ if (!(key in defaults3)) Object.assign(result, { [key]: options[key] });
19108
+ else result[key] = mergeDeep(defaults3[key], options[key]);
19146
19109
  } else {
19147
19110
  Object.assign(result, { [key]: options[key] });
19148
19111
  }
19149
19112
  });
19150
19113
  return result;
19151
19114
  }
19152
-
19153
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
19154
19115
  function removeUndefinedProperties(obj) {
19155
19116
  for (const key in obj) {
19156
19117
  if (obj[key] === void 0) {
@@ -19159,8 +19120,6 @@ function removeUndefinedProperties(obj) {
19159
19120
  }
19160
19121
  return obj;
19161
19122
  }
19162
-
19163
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/merge.js
19164
19123
  function merge(defaults3, route, options) {
19165
19124
  if (typeof route === "string") {
19166
19125
  let [method, url] = route.split(" ");
@@ -19182,8 +19141,6 @@ function merge(defaults3, route, options) {
19182
19141
  }
19183
19142
  return mergedOptions;
19184
19143
  }
19185
-
19186
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js
19187
19144
  function addQueryParameters(url, parameters) {
19188
19145
  const separator = /\?/.test(url) ? "&" : "?";
19189
19146
  const names = Object.keys(parameters);
@@ -19197,8 +19154,6 @@ function addQueryParameters(url, parameters) {
19197
19154
  return `${name}=${encodeURIComponent(parameters[name])}`;
19198
19155
  }).join("&");
19199
19156
  }
19200
-
19201
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js
19202
19157
  var urlVariableRegex = /\{[^{}}]+\}/g;
19203
19158
  function removeNonChars(variableName) {
19204
19159
  return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
@@ -19210,8 +19165,6 @@ function extractUrlVariableNames(url) {
19210
19165
  }
19211
19166
  return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
19212
19167
  }
19213
-
19214
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/omit.js
19215
19168
  function omit(object2, keysToOmit) {
19216
19169
  const result = { __proto__: null };
19217
19170
  for (const key of Object.keys(object2)) {
@@ -19221,8 +19174,6 @@ function omit(object2, keysToOmit) {
19221
19174
  }
19222
19175
  return result;
19223
19176
  }
19224
-
19225
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/util/url-template.js
19226
19177
  function encodeReserved(str) {
19227
19178
  return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
19228
19179
  if (!/%[0-9A-Fa-f]/.test(part)) {
@@ -19353,8 +19304,6 @@ function expand2(template2, context) {
19353
19304
  return template2.replace(/\/$/, "");
19354
19305
  }
19355
19306
  }
19356
-
19357
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/parse.js
19358
19307
  function parse(options) {
19359
19308
  let method = options.method.toUpperCase();
19360
19309
  let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
@@ -19418,13 +19367,9 @@ function parse(options) {
19418
19367
  options.request ? { request: options.request } : null
19419
19368
  );
19420
19369
  }
19421
-
19422
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js
19423
19370
  function endpointWithDefaults(defaults3, route, options) {
19424
19371
  return parse(merge(defaults3, route, options));
19425
19372
  }
19426
-
19427
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/with-defaults.js
19428
19373
  function withDefaults(oldDefaults, newDefaults) {
19429
19374
  const DEFAULTS2 = merge(oldDefaults, newDefaults);
19430
19375
  const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
@@ -19435,56 +19380,35 @@ function withDefaults(oldDefaults, newDefaults) {
19435
19380
  parse
19436
19381
  });
19437
19382
  }
19438
-
19439
- // ../../node_modules/.pnpm/@octokit+endpoint@9.0.6/node_modules/@octokit/endpoint/dist-src/index.js
19440
19383
  var endpoint = withDefaults(null, DEFAULTS);
19441
19384
 
19442
- // ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/version.js
19443
- var VERSION2 = "8.4.1";
19444
-
19445
- // ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/is-plain-object.js
19446
- function isPlainObject3(value) {
19447
- if (typeof value !== "object" || value === null)
19448
- return false;
19449
- if (Object.prototype.toString.call(value) !== "[object Object]")
19450
- return false;
19451
- const proto = Object.getPrototypeOf(value);
19452
- if (proto === null)
19453
- return true;
19454
- const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
19455
- return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
19456
- }
19457
-
19458
- // ../../node_modules/.pnpm/deprecation@2.3.1/node_modules/deprecation/dist-web/index.js
19459
- var Deprecation = class extends Error {
19460
- constructor(message) {
19461
- super(message);
19462
- if (Error.captureStackTrace) {
19463
- Error.captureStackTrace(this, this.constructor);
19464
- }
19465
- this.name = "Deprecation";
19466
- }
19467
- };
19385
+ // ../../node_modules/.pnpm/@octokit+request@10.0.7/node_modules/@octokit/request/dist-bundle/index.js
19386
+ var import_fast_content_type_parse = __toESM(require_fast_content_type_parse(), 1);
19468
19387
 
19469
- // ../../node_modules/.pnpm/@octokit+request-error@5.1.1/node_modules/@octokit/request-error/dist-src/index.js
19470
- var import_once = __toESM(require_once());
19471
- var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
19472
- var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
19388
+ // ../../node_modules/.pnpm/@octokit+request-error@7.1.0/node_modules/@octokit/request-error/dist-src/index.js
19473
19389
  var RequestError = class extends Error {
19390
+ name;
19391
+ /**
19392
+ * http status code
19393
+ */
19394
+ status;
19395
+ /**
19396
+ * Request options that lead to the error.
19397
+ */
19398
+ request;
19399
+ /**
19400
+ * Response object if a response was received
19401
+ */
19402
+ response;
19474
19403
  constructor(message, statusCode, options) {
19475
- super(message);
19476
- if (Error.captureStackTrace) {
19477
- Error.captureStackTrace(this, this.constructor);
19478
- }
19404
+ super(message, { cause: options.cause });
19479
19405
  this.name = "HttpError";
19480
- this.status = statusCode;
19481
- let headers;
19482
- if ("headers" in options && typeof options.headers !== "undefined") {
19483
- headers = options.headers;
19406
+ this.status = Number.parseInt(statusCode);
19407
+ if (Number.isNaN(this.status)) {
19408
+ this.status = 0;
19484
19409
  }
19485
19410
  if ("response" in options) {
19486
19411
  this.response = options.response;
19487
- headers = options.response.headers;
19488
19412
  }
19489
19413
  const requestCopy = Object.assign({}, options.request);
19490
19414
  if (options.request.headers.authorization) {
@@ -19497,171 +19421,162 @@ var RequestError = class extends Error {
19497
19421
  }
19498
19422
  requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
19499
19423
  this.request = requestCopy;
19500
- Object.defineProperty(this, "code", {
19501
- get() {
19502
- logOnceCode(
19503
- new Deprecation(
19504
- "[@octokit/request-error] `error.code` is deprecated, use `error.status`."
19505
- )
19506
- );
19507
- return statusCode;
19508
- }
19509
- });
19510
- Object.defineProperty(this, "headers", {
19511
- get() {
19512
- logOnceHeaders(
19513
- new Deprecation(
19514
- "[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."
19515
- )
19516
- );
19517
- return headers || {};
19518
- }
19519
- });
19520
19424
  }
19521
19425
  };
19522
19426
 
19523
- // ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/get-buffer-response.js
19524
- function getBufferResponse(response) {
19525
- return response.arrayBuffer();
19526
- }
19527
-
19528
- // ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/fetch-wrapper.js
19529
- function fetchWrapper(requestOptions) {
19530
- const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
19531
- const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
19532
- if (isPlainObject3(requestOptions.body) || Array.isArray(requestOptions.body)) {
19533
- requestOptions.body = JSON.stringify(requestOptions.body);
19534
- }
19535
- let headers = {};
19536
- let status2;
19537
- let url;
19538
- let { fetch: fetch2 } = globalThis;
19539
- if (requestOptions.request?.fetch) {
19540
- fetch2 = requestOptions.request.fetch;
19427
+ // ../../node_modules/.pnpm/@octokit+request@10.0.7/node_modules/@octokit/request/dist-bundle/index.js
19428
+ var VERSION2 = "10.0.7";
19429
+ var defaults_default = {
19430
+ headers: {
19431
+ "user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
19541
19432
  }
19433
+ };
19434
+ function isPlainObject3(value) {
19435
+ if (typeof value !== "object" || value === null) return false;
19436
+ if (Object.prototype.toString.call(value) !== "[object Object]") return false;
19437
+ const proto = Object.getPrototypeOf(value);
19438
+ if (proto === null) return true;
19439
+ const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
19440
+ return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
19441
+ }
19442
+ var noop = () => "";
19443
+ async function fetchWrapper(requestOptions) {
19444
+ const fetch2 = requestOptions.request?.fetch || globalThis.fetch;
19542
19445
  if (!fetch2) {
19543
19446
  throw new Error(
19544
19447
  "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"
19545
19448
  );
19546
19449
  }
19547
- return fetch2(requestOptions.url, {
19548
- method: requestOptions.method,
19549
- body: requestOptions.body,
19550
- redirect: requestOptions.request?.redirect,
19551
- headers: requestOptions.headers,
19552
- signal: requestOptions.request?.signal,
19553
- // duplex must be set if request.body is ReadableStream or Async Iterables.
19554
- // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
19555
- ...requestOptions.body && { duplex: "half" }
19556
- }).then(async (response) => {
19557
- url = response.url;
19558
- status2 = response.status;
19559
- for (const keyAndValue of response.headers) {
19560
- headers[keyAndValue[0]] = keyAndValue[1];
19561
- }
19562
- if ("deprecation" in headers) {
19563
- const matches = headers.link && headers.link.match(/<([^<>]+)>; rel="deprecation"/);
19564
- const deprecationLink = matches && matches.pop();
19565
- log.warn(
19566
- `[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
19567
- );
19568
- }
19569
- if (status2 === 204 || status2 === 205) {
19570
- return;
19571
- }
19572
- if (requestOptions.method === "HEAD") {
19573
- if (status2 < 400) {
19574
- return;
19450
+ const log = requestOptions.request?.log || console;
19451
+ const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
19452
+ const body = isPlainObject3(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify(requestOptions.body) : requestOptions.body;
19453
+ const requestHeaders = Object.fromEntries(
19454
+ Object.entries(requestOptions.headers).map(([name, value]) => [
19455
+ name,
19456
+ String(value)
19457
+ ])
19458
+ );
19459
+ let fetchResponse;
19460
+ try {
19461
+ fetchResponse = await fetch2(requestOptions.url, {
19462
+ method: requestOptions.method,
19463
+ body,
19464
+ redirect: requestOptions.request?.redirect,
19465
+ headers: requestHeaders,
19466
+ signal: requestOptions.request?.signal,
19467
+ // duplex must be set if request.body is ReadableStream or Async Iterables.
19468
+ // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
19469
+ ...requestOptions.body && { duplex: "half" }
19470
+ });
19471
+ } catch (error) {
19472
+ let message = "Unknown Error";
19473
+ if (error instanceof Error) {
19474
+ if (error.name === "AbortError") {
19475
+ error.status = 500;
19476
+ throw error;
19575
19477
  }
19576
- throw new RequestError(response.statusText, status2, {
19577
- response: {
19578
- url,
19579
- status: status2,
19580
- headers,
19581
- data: void 0
19582
- },
19583
- request: requestOptions
19584
- });
19585
- }
19586
- if (status2 === 304) {
19587
- throw new RequestError("Not modified", status2, {
19588
- response: {
19589
- url,
19590
- status: status2,
19591
- headers,
19592
- data: await getResponseData(response)
19593
- },
19594
- request: requestOptions
19595
- });
19596
- }
19597
- if (status2 >= 400) {
19598
- const data = await getResponseData(response);
19599
- const error = new RequestError(toErrorMessage(data), status2, {
19600
- response: {
19601
- url,
19602
- status: status2,
19603
- headers,
19604
- data
19605
- },
19606
- request: requestOptions
19607
- });
19608
- throw error;
19609
- }
19610
- return parseSuccessResponseBody ? await getResponseData(response) : response.body;
19611
- }).then((data) => {
19612
- return {
19613
- status: status2,
19614
- url,
19615
- headers,
19616
- data
19617
- };
19618
- }).catch((error) => {
19619
- if (error instanceof RequestError)
19620
- throw error;
19621
- else if (error.name === "AbortError")
19622
- throw error;
19623
- let message = error.message;
19624
- if (error.name === "TypeError" && "cause" in error) {
19625
- if (error.cause instanceof Error) {
19626
- message = error.cause.message;
19627
- } else if (typeof error.cause === "string") {
19628
- message = error.cause;
19478
+ message = error.message;
19479
+ if (error.name === "TypeError" && "cause" in error) {
19480
+ if (error.cause instanceof Error) {
19481
+ message = error.cause.message;
19482
+ } else if (typeof error.cause === "string") {
19483
+ message = error.cause;
19484
+ }
19629
19485
  }
19630
19486
  }
19631
- throw new RequestError(message, 500, {
19487
+ const requestError = new RequestError(message, 500, {
19632
19488
  request: requestOptions
19633
19489
  });
19634
- });
19490
+ requestError.cause = error;
19491
+ throw requestError;
19492
+ }
19493
+ const status2 = fetchResponse.status;
19494
+ const url = fetchResponse.url;
19495
+ const responseHeaders = {};
19496
+ for (const [key, value] of fetchResponse.headers) {
19497
+ responseHeaders[key] = value;
19498
+ }
19499
+ const octokitResponse = {
19500
+ url,
19501
+ status: status2,
19502
+ headers: responseHeaders,
19503
+ data: ""
19504
+ };
19505
+ if ("deprecation" in responseHeaders) {
19506
+ const matches = responseHeaders.link && responseHeaders.link.match(/<([^<>]+)>; rel="deprecation"/);
19507
+ const deprecationLink = matches && matches.pop();
19508
+ log.warn(
19509
+ `[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${responseHeaders.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
19510
+ );
19511
+ }
19512
+ if (status2 === 204 || status2 === 205) {
19513
+ return octokitResponse;
19514
+ }
19515
+ if (requestOptions.method === "HEAD") {
19516
+ if (status2 < 400) {
19517
+ return octokitResponse;
19518
+ }
19519
+ throw new RequestError(fetchResponse.statusText, status2, {
19520
+ response: octokitResponse,
19521
+ request: requestOptions
19522
+ });
19523
+ }
19524
+ if (status2 === 304) {
19525
+ octokitResponse.data = await getResponseData(fetchResponse);
19526
+ throw new RequestError("Not modified", status2, {
19527
+ response: octokitResponse,
19528
+ request: requestOptions
19529
+ });
19530
+ }
19531
+ if (status2 >= 400) {
19532
+ octokitResponse.data = await getResponseData(fetchResponse);
19533
+ throw new RequestError(toErrorMessage(octokitResponse.data), status2, {
19534
+ response: octokitResponse,
19535
+ request: requestOptions
19536
+ });
19537
+ }
19538
+ octokitResponse.data = parseSuccessResponseBody ? await getResponseData(fetchResponse) : fetchResponse.body;
19539
+ return octokitResponse;
19635
19540
  }
19636
19541
  async function getResponseData(response) {
19637
19542
  const contentType = response.headers.get("content-type");
19638
- if (/application\/json/.test(contentType)) {
19639
- return response.json().catch(() => response.text()).catch(() => "");
19543
+ if (!contentType) {
19544
+ return response.text().catch(noop);
19640
19545
  }
19641
- if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
19642
- return response.text();
19546
+ const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
19547
+ if (isJSONResponse(mimetype)) {
19548
+ let text = "";
19549
+ try {
19550
+ text = await response.text();
19551
+ return JSON.parse(text);
19552
+ } catch (err) {
19553
+ return text;
19554
+ }
19555
+ } else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
19556
+ return response.text().catch(noop);
19557
+ } else {
19558
+ return response.arrayBuffer().catch(
19559
+ /* v8 ignore next -- @preserve */
19560
+ () => new ArrayBuffer(0)
19561
+ );
19643
19562
  }
19644
- return getBufferResponse(response);
19563
+ }
19564
+ function isJSONResponse(mimetype) {
19565
+ return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
19645
19566
  }
19646
19567
  function toErrorMessage(data) {
19647
- if (typeof data === "string")
19568
+ if (typeof data === "string") {
19648
19569
  return data;
19649
- let suffix;
19650
- if ("documentation_url" in data) {
19651
- suffix = ` - ${data.documentation_url}`;
19652
- } else {
19653
- suffix = "";
19570
+ }
19571
+ if (data instanceof ArrayBuffer) {
19572
+ return "Unknown error";
19654
19573
  }
19655
19574
  if ("message" in data) {
19656
- if (Array.isArray(data.errors)) {
19657
- return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
19658
- }
19659
- return `${data.message}${suffix}`;
19575
+ const suffix = "documentation_url" in data ? ` - ${data.documentation_url}` : "";
19576
+ return Array.isArray(data.errors) ? `${data.message}: ${data.errors.map((v) => JSON.stringify(v)).join(", ")}${suffix}` : `${data.message}${suffix}`;
19660
19577
  }
19661
19578
  return `Unknown error: ${JSON.stringify(data)}`;
19662
19579
  }
19663
-
19664
- // ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/with-defaults.js
19665
19580
  function withDefaults2(oldEndpoint, newDefaults) {
19666
19581
  const endpoint2 = oldEndpoint.defaults(newDefaults);
19667
19582
  const newApi = function(route, parameters) {
@@ -19685,16 +19600,10 @@ function withDefaults2(oldEndpoint, newDefaults) {
19685
19600
  defaults: withDefaults2.bind(null, endpoint2)
19686
19601
  });
19687
19602
  }
19603
+ var request = withDefaults2(endpoint, defaults_default);
19688
19604
 
19689
- // ../../node_modules/.pnpm/@octokit+request@8.4.1/node_modules/@octokit/request/dist-src/index.js
19690
- var request = withDefaults2(endpoint, {
19691
- headers: {
19692
- "user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
19693
- }
19694
- });
19695
-
19696
- // ../../node_modules/.pnpm/@octokit+graphql@7.1.1/node_modules/@octokit/graphql/dist-web/index.js
19697
- var VERSION3 = "7.1.1";
19605
+ // ../../node_modules/.pnpm/@octokit+graphql@9.0.3/node_modules/@octokit/graphql/dist-bundle/index.js
19606
+ var VERSION3 = "0.0.0-development";
19698
19607
  function _buildMessageForResponseErrors(data) {
19699
19608
  return `Request failed due to following response errors:
19700
19609
  ` + data.errors.map((e) => ` - ${e.message}`).join("\n");
@@ -19705,13 +19614,15 @@ var GraphqlResponseError = class extends Error {
19705
19614
  this.request = request2;
19706
19615
  this.headers = headers;
19707
19616
  this.response = response;
19708
- this.name = "GraphqlResponseError";
19709
19617
  this.errors = response.errors;
19710
19618
  this.data = response.data;
19711
19619
  if (Error.captureStackTrace) {
19712
19620
  Error.captureStackTrace(this, this.constructor);
19713
19621
  }
19714
19622
  }
19623
+ name = "GraphqlResponseError";
19624
+ errors;
19625
+ data;
19715
19626
  };
19716
19627
  var NON_VARIABLE_OPTIONS = [
19717
19628
  "method",
@@ -19720,7 +19631,8 @@ var NON_VARIABLE_OPTIONS = [
19720
19631
  "headers",
19721
19632
  "request",
19722
19633
  "query",
19723
- "mediaType"
19634
+ "mediaType",
19635
+ "operationName"
19724
19636
  ];
19725
19637
  var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
19726
19638
  var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
@@ -19797,14 +19709,15 @@ function withCustomRequest(customRequest) {
19797
19709
  });
19798
19710
  }
19799
19711
 
19800
- // ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/auth.js
19801
- var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
19802
- var REGEX_IS_INSTALLATION = /^ghs_/;
19803
- var REGEX_IS_USER_TO_SERVER = /^ghu_/;
19712
+ // ../../node_modules/.pnpm/@octokit+auth-token@6.0.0/node_modules/@octokit/auth-token/dist-bundle/index.js
19713
+ var b64url = "(?:[a-zA-Z0-9_-]+)";
19714
+ var sep2 = "\\.";
19715
+ var jwtRE = new RegExp(`^${b64url}${sep2}${b64url}${sep2}${b64url}$`);
19716
+ var isJWT = jwtRE.test.bind(jwtRE);
19804
19717
  async function auth(token) {
19805
- const isApp = token.split(/\./).length === 3;
19806
- const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
19807
- const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
19718
+ const isApp = isJWT(token);
19719
+ const isInstallation = token.startsWith("v1.") || token.startsWith("ghs_");
19720
+ const isUserToServer = token.startsWith("ghu_");
19808
19721
  const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
19809
19722
  return {
19810
19723
  type: "token",
@@ -19812,16 +19725,12 @@ async function auth(token) {
19812
19725
  tokenType
19813
19726
  };
19814
19727
  }
19815
-
19816
- // ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js
19817
19728
  function withAuthorizationPrefix(token) {
19818
19729
  if (token.split(/\./).length === 3) {
19819
19730
  return `bearer ${token}`;
19820
19731
  }
19821
19732
  return `token ${token}`;
19822
19733
  }
19823
-
19824
- // ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/hook.js
19825
19734
  async function hook(token, request2, route, parameters) {
19826
19735
  const endpoint2 = request2.endpoint.merge(
19827
19736
  route,
@@ -19830,8 +19739,6 @@ async function hook(token, request2, route, parameters) {
19830
19739
  endpoint2.headers.authorization = withAuthorizationPrefix(token);
19831
19740
  return request2(endpoint2);
19832
19741
  }
19833
-
19834
- // ../../node_modules/.pnpm/@octokit+auth-token@4.0.0/node_modules/@octokit/auth-token/dist-src/index.js
19835
19742
  var createTokenAuth = function createTokenAuth2(token) {
19836
19743
  if (!token) {
19837
19744
  throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
@@ -19847,18 +19754,20 @@ var createTokenAuth = function createTokenAuth2(token) {
19847
19754
  });
19848
19755
  };
19849
19756
 
19850
- // ../../node_modules/.pnpm/@octokit+core@5.2.2/node_modules/@octokit/core/dist-web/index.js
19851
- var VERSION4 = "5.2.2";
19852
- var noop = () => {
19757
+ // ../../node_modules/.pnpm/@octokit+core@7.0.6/node_modules/@octokit/core/dist-src/version.js
19758
+ var VERSION4 = "7.0.6";
19759
+
19760
+ // ../../node_modules/.pnpm/@octokit+core@7.0.6/node_modules/@octokit/core/dist-src/index.js
19761
+ var noop2 = () => {
19853
19762
  };
19854
19763
  var consoleWarn = console.warn.bind(console);
19855
19764
  var consoleError = console.error.bind(console);
19856
19765
  function createLogger3(logger = {}) {
19857
19766
  if (typeof logger.debug !== "function") {
19858
- logger.debug = noop;
19767
+ logger.debug = noop2;
19859
19768
  }
19860
19769
  if (typeof logger.info !== "function") {
19861
- logger.info = noop;
19770
+ logger.info = noop2;
19862
19771
  }
19863
19772
  if (typeof logger.warn !== "function") {
19864
19773
  logger.warn = consoleWarn;
@@ -19870,9 +19779,7 @@ function createLogger3(logger = {}) {
19870
19779
  }
19871
19780
  var userAgentTrail = `octokit-core.js/${VERSION4} ${getUserAgent()}`;
19872
19781
  var Octokit = class {
19873
- static {
19874
- this.VERSION = VERSION4;
19875
- }
19782
+ static VERSION = VERSION4;
19876
19783
  static defaults(defaults3) {
19877
19784
  const OctokitWithDefaults = class extends this {
19878
19785
  constructor(...args) {
@@ -19895,9 +19802,7 @@ var Octokit = class {
19895
19802
  };
19896
19803
  return OctokitWithDefaults;
19897
19804
  }
19898
- static {
19899
- this.plugins = [];
19900
- }
19805
+ static plugins = [];
19901
19806
  /**
19902
19807
  * Attach a plugin (or many) to your Octokit instance.
19903
19808
  *
@@ -19907,16 +19812,14 @@ var Octokit = class {
19907
19812
  static plugin(...newPlugins) {
19908
19813
  const currentPlugins = this.plugins;
19909
19814
  const NewOctokit = class extends this {
19910
- static {
19911
- this.plugins = currentPlugins.concat(
19912
- newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
19913
- );
19914
- }
19815
+ static plugins = currentPlugins.concat(
19816
+ newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
19817
+ );
19915
19818
  };
19916
19819
  return NewOctokit;
19917
19820
  }
19918
19821
  constructor(options = {}) {
19919
- const hook2 = new import_before_after_hook.Collection();
19822
+ const hook2 = new before_after_hook_default.Collection();
19920
19823
  const requestDefaults = {
19921
19824
  baseUrl: request.endpoint.DEFAULTS.baseUrl,
19922
19825
  headers: {},
@@ -19979,12 +19882,19 @@ var Octokit = class {
19979
19882
  Object.assign(this, classConstructor.plugins[i](this, options));
19980
19883
  }
19981
19884
  }
19885
+ // assigned during constructor
19886
+ request;
19887
+ graphql;
19888
+ log;
19889
+ hook;
19890
+ // TODO: type `octokit.auth` based on passed options.authStrategy
19891
+ auth;
19982
19892
  };
19983
19893
 
19984
- // ../../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
19985
- var VERSION5 = "4.0.1";
19894
+ // ../../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
19895
+ var VERSION5 = "6.0.0";
19986
19896
 
19987
- // ../../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
19897
+ // ../../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
19988
19898
  function requestLog(octokit) {
19989
19899
  octokit.hook.wrap("request", (request2, options) => {
19990
19900
  octokit.log.debug("request", options);
@@ -19992,13 +19902,15 @@ function requestLog(octokit) {
19992
19902
  const requestOptions = octokit.request.endpoint.parse(options);
19993
19903
  const path4 = requestOptions.url.replace(options.baseUrl, "");
19994
19904
  return request2(options).then((response) => {
19905
+ const requestId = response.headers["x-github-request-id"];
19995
19906
  octokit.log.info(
19996
- `${requestOptions.method} ${path4} - ${response.status} in ${Date.now() - start}ms`
19907
+ `${requestOptions.method} ${path4} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
19997
19908
  );
19998
19909
  return response;
19999
19910
  }).catch((error) => {
20000
- octokit.log.info(
20001
- `${requestOptions.method} ${path4} - ${error.status} in ${Date.now() - start}ms`
19911
+ const requestId = error.response?.headers["x-github-request-id"] || "UNKNOWN";
19912
+ octokit.log.error(
19913
+ `${requestOptions.method} ${path4} - ${error.status} with id ${requestId} in ${Date.now() - start}ms`
20002
19914
  );
20003
19915
  throw error;
20004
19916
  });
@@ -20006,8 +19918,8 @@ function requestLog(octokit) {
20006
19918
  }
20007
19919
  requestLog.VERSION = VERSION5;
20008
19920
 
20009
- // ../../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
20010
- var VERSION6 = "11.4.4-cjs.2";
19921
+ // ../../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
19922
+ var VERSION6 = "0.0.0-development";
20011
19923
  function normalizePaginatedListResponse(response) {
20012
19924
  if (!response.data) {
20013
19925
  return {
@@ -20015,14 +19927,16 @@ function normalizePaginatedListResponse(response) {
20015
19927
  data: []
20016
19928
  };
20017
19929
  }
20018
- const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
19930
+ const responseNeedsNormalization = ("total_count" in response.data || "total_commits" in response.data) && !("url" in response.data);
20019
19931
  if (!responseNeedsNormalization) return response;
20020
19932
  const incompleteResults = response.data.incomplete_results;
20021
19933
  const repositorySelection = response.data.repository_selection;
20022
19934
  const totalCount = response.data.total_count;
19935
+ const totalCommits = response.data.total_commits;
20023
19936
  delete response.data.incomplete_results;
20024
19937
  delete response.data.repository_selection;
20025
19938
  delete response.data.total_count;
19939
+ delete response.data.total_commits;
20026
19940
  const namespaceKey = Object.keys(response.data)[0];
20027
19941
  const data = response.data[namespaceKey];
20028
19942
  response.data = data;
@@ -20033,6 +19947,7 @@ function normalizePaginatedListResponse(response) {
20033
19947
  response.data.repository_selection = repositorySelection;
20034
19948
  }
20035
19949
  response.data.total_count = totalCount;
19950
+ response.data.total_commits = totalCommits;
20036
19951
  return response;
20037
19952
  }
20038
19953
  function iterator(octokit, route, parameters) {
@@ -20051,6 +19966,16 @@ function iterator(octokit, route, parameters) {
20051
19966
  url = ((normalizedResponse.headers.link || "").match(
20052
19967
  /<([^<>]+)>;\s*rel="next"/
20053
19968
  ) || [])[1];
19969
+ if (!url && "total_commits" in normalizedResponse.data) {
19970
+ const parsedUrl = new URL(normalizedResponse.url);
19971
+ const params = parsedUrl.searchParams;
19972
+ const page = parseInt(params.get("page") || "1", 10);
19973
+ const per_page = parseInt(params.get("per_page") || "250", 10);
19974
+ if (page * per_page < normalizedResponse.data.total_commits) {
19975
+ params.set("page", String(page + 1));
19976
+ url = parsedUrl.toString();
19977
+ }
19978
+ }
20054
19979
  return { value: normalizedResponse };
20055
19980
  } catch (error) {
20056
19981
  if (error.status !== 409) throw error;
@@ -20109,10 +20034,10 @@ function paginateRest(octokit) {
20109
20034
  }
20110
20035
  paginateRest.VERSION = VERSION6;
20111
20036
 
20112
- // ../../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
20113
- var VERSION7 = "13.3.2-cjs.1";
20037
+ // ../../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
20038
+ var VERSION7 = "17.0.0";
20114
20039
 
20115
- // ../../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
20040
+ // ../../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
20116
20041
  var Endpoints = {
20117
20042
  actions: {
20118
20043
  addCustomLabelsToSelfHostedRunnerForOrg: [
@@ -20139,6 +20064,7 @@ var Endpoints = {
20139
20064
  createEnvironmentVariable: [
20140
20065
  "POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
20141
20066
  ],
20067
+ createHostedRunnerForOrg: ["POST /orgs/{org}/actions/hosted-runners"],
20142
20068
  createOrUpdateEnvironmentSecret: [
20143
20069
  "PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
20144
20070
  ],
@@ -20170,12 +20096,21 @@ var Endpoints = {
20170
20096
  deleteArtifact: [
20171
20097
  "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
20172
20098
  ],
20099
+ deleteCustomImageFromOrg: [
20100
+ "DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"
20101
+ ],
20102
+ deleteCustomImageVersionFromOrg: [
20103
+ "DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"
20104
+ ],
20173
20105
  deleteEnvironmentSecret: [
20174
20106
  "DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
20175
20107
  ],
20176
20108
  deleteEnvironmentVariable: [
20177
20109
  "DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
20178
20110
  ],
20111
+ deleteHostedRunnerForOrg: [
20112
+ "DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
20113
+ ],
20179
20114
  deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
20180
20115
  deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
20181
20116
  deleteRepoSecret: [
@@ -20240,6 +20175,12 @@ var Endpoints = {
20240
20175
  "GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
20241
20176
  ],
20242
20177
  getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
20178
+ getCustomImageForOrg: [
20179
+ "GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"
20180
+ ],
20181
+ getCustomImageVersionForOrg: [
20182
+ "GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"
20183
+ ],
20243
20184
  getCustomOidcSubClaimForRepo: [
20244
20185
  "GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
20245
20186
  ],
@@ -20264,6 +20205,24 @@ var Endpoints = {
20264
20205
  getGithubActionsPermissionsRepository: [
20265
20206
  "GET /repos/{owner}/{repo}/actions/permissions"
20266
20207
  ],
20208
+ getHostedRunnerForOrg: [
20209
+ "GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
20210
+ ],
20211
+ getHostedRunnersGithubOwnedImagesForOrg: [
20212
+ "GET /orgs/{org}/actions/hosted-runners/images/github-owned"
20213
+ ],
20214
+ getHostedRunnersLimitsForOrg: [
20215
+ "GET /orgs/{org}/actions/hosted-runners/limits"
20216
+ ],
20217
+ getHostedRunnersMachineSpecsForOrg: [
20218
+ "GET /orgs/{org}/actions/hosted-runners/machine-sizes"
20219
+ ],
20220
+ getHostedRunnersPartnerImagesForOrg: [
20221
+ "GET /orgs/{org}/actions/hosted-runners/images/partner"
20222
+ ],
20223
+ getHostedRunnersPlatformsForOrg: [
20224
+ "GET /orgs/{org}/actions/hosted-runners/platforms"
20225
+ ],
20267
20226
  getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
20268
20227
  getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
20269
20228
  getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
@@ -20301,12 +20260,22 @@ var Endpoints = {
20301
20260
  "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
20302
20261
  ],
20303
20262
  listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
20263
+ listCustomImageVersionsForOrg: [
20264
+ "GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"
20265
+ ],
20266
+ listCustomImagesForOrg: [
20267
+ "GET /orgs/{org}/actions/hosted-runners/images/custom"
20268
+ ],
20304
20269
  listEnvironmentSecrets: [
20305
20270
  "GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
20306
20271
  ],
20307
20272
  listEnvironmentVariables: [
20308
20273
  "GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
20309
20274
  ],
20275
+ listGithubHostedRunnersInGroupForOrg: [
20276
+ "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"
20277
+ ],
20278
+ listHostedRunnersForOrg: ["GET /orgs/{org}/actions/hosted-runners"],
20310
20279
  listJobsForWorkflowRun: [
20311
20280
  "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
20312
20281
  ],
@@ -20425,6 +20394,9 @@ var Endpoints = {
20425
20394
  updateEnvironmentVariable: [
20426
20395
  "PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
20427
20396
  ],
20397
+ updateHostedRunnerForOrg: [
20398
+ "PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
20399
+ ],
20428
20400
  updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
20429
20401
  updateRepoVariable: [
20430
20402
  "PATCH /repos/{owner}/{repo}/actions/variables/{name}"
@@ -20552,9 +20524,18 @@ var Endpoints = {
20552
20524
  getGithubActionsBillingUser: [
20553
20525
  "GET /users/{username}/settings/billing/actions"
20554
20526
  ],
20527
+ getGithubBillingPremiumRequestUsageReportOrg: [
20528
+ "GET /organizations/{org}/settings/billing/premium_request/usage"
20529
+ ],
20530
+ getGithubBillingPremiumRequestUsageReportUser: [
20531
+ "GET /users/{username}/settings/billing/premium_request/usage"
20532
+ ],
20555
20533
  getGithubBillingUsageReportOrg: [
20556
20534
  "GET /organizations/{org}/settings/billing/usage"
20557
20535
  ],
20536
+ getGithubBillingUsageReportUser: [
20537
+ "GET /users/{username}/settings/billing/usage"
20538
+ ],
20558
20539
  getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
20559
20540
  getGithubPackagesBillingUser: [
20560
20541
  "GET /users/{username}/settings/billing/packages"
@@ -20566,6 +20547,13 @@ var Endpoints = {
20566
20547
  "GET /users/{username}/settings/billing/shared-storage"
20567
20548
  ]
20568
20549
  },
20550
+ campaigns: {
20551
+ createCampaign: ["POST /orgs/{org}/campaigns"],
20552
+ deleteCampaign: ["DELETE /orgs/{org}/campaigns/{campaign_number}"],
20553
+ getCampaignSummary: ["GET /orgs/{org}/campaigns/{campaign_number}"],
20554
+ listOrgCampaigns: ["GET /orgs/{org}/campaigns"],
20555
+ updateCampaign: ["PATCH /orgs/{org}/campaigns/{campaign_number}"]
20556
+ },
20569
20557
  checks: {
20570
20558
  create: ["POST /repos/{owner}/{repo}/check-runs"],
20571
20559
  createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
@@ -20844,10 +20832,9 @@ var Endpoints = {
20844
20832
  getCopilotSeatDetailsForUser: [
20845
20833
  "GET /orgs/{org}/members/{username}/copilot"
20846
20834
  ],
20847
- listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
20848
- usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
20849
- usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
20835
+ listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"]
20850
20836
  },
20837
+ credentials: { revoke: ["POST /credentials/revoke"] },
20851
20838
  dependabot: {
20852
20839
  addSelectedRepoToOrgSecret: [
20853
20840
  "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
@@ -20884,11 +20871,20 @@ var Endpoints = {
20884
20871
  removeSelectedRepoFromOrgSecret: [
20885
20872
  "DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
20886
20873
  ],
20874
+ repositoryAccessForOrg: [
20875
+ "GET /organizations/{org}/dependabot/repository-access"
20876
+ ],
20877
+ setRepositoryAccessDefaultLevel: [
20878
+ "PUT /organizations/{org}/dependabot/repository-access/default-level"
20879
+ ],
20887
20880
  setSelectedReposForOrgSecret: [
20888
20881
  "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
20889
20882
  ],
20890
20883
  updateAlert: [
20891
20884
  "PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
20885
+ ],
20886
+ updateRepositoryAccessForOrg: [
20887
+ "PATCH /organizations/{org}/dependabot/repository-access"
20892
20888
  ]
20893
20889
  },
20894
20890
  dependencyGraph: {
@@ -20901,6 +20897,51 @@ var Endpoints = {
20901
20897
  exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
20902
20898
  },
20903
20899
  emojis: { get: ["GET /emojis"] },
20900
+ enterpriseTeamMemberships: {
20901
+ add: [
20902
+ "PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
20903
+ ],
20904
+ bulkAdd: [
20905
+ "POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"
20906
+ ],
20907
+ bulkRemove: [
20908
+ "POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"
20909
+ ],
20910
+ get: [
20911
+ "GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
20912
+ ],
20913
+ list: ["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],
20914
+ remove: [
20915
+ "DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
20916
+ ]
20917
+ },
20918
+ enterpriseTeamOrganizations: {
20919
+ add: [
20920
+ "PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
20921
+ ],
20922
+ bulkAdd: [
20923
+ "POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"
20924
+ ],
20925
+ bulkRemove: [
20926
+ "POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"
20927
+ ],
20928
+ delete: [
20929
+ "DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
20930
+ ],
20931
+ getAssignment: [
20932
+ "GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
20933
+ ],
20934
+ getAssignments: [
20935
+ "GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"
20936
+ ]
20937
+ },
20938
+ enterpriseTeams: {
20939
+ create: ["POST /enterprises/{enterprise}/teams"],
20940
+ delete: ["DELETE /enterprises/{enterprise}/teams/{team_slug}"],
20941
+ get: ["GET /enterprises/{enterprise}/teams/{team_slug}"],
20942
+ list: ["GET /enterprises/{enterprise}/teams"],
20943
+ update: ["PATCH /enterprises/{enterprise}/teams/{team_slug}"]
20944
+ },
20904
20945
  gists: {
20905
20946
  checkIsStarred: ["GET /gists/{gist_id}/star"],
20906
20947
  create: ["POST /gists"],
@@ -20942,6 +20983,26 @@ var Endpoints = {
20942
20983
  getAllTemplates: ["GET /gitignore/templates"],
20943
20984
  getTemplate: ["GET /gitignore/templates/{name}"]
20944
20985
  },
20986
+ hostedCompute: {
20987
+ createNetworkConfigurationForOrg: [
20988
+ "POST /orgs/{org}/settings/network-configurations"
20989
+ ],
20990
+ deleteNetworkConfigurationFromOrg: [
20991
+ "DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"
20992
+ ],
20993
+ getNetworkConfigurationForOrg: [
20994
+ "GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"
20995
+ ],
20996
+ getNetworkSettingsForOrg: [
20997
+ "GET /orgs/{org}/settings/network-settings/{network_settings_id}"
20998
+ ],
20999
+ listNetworkConfigurationsForOrg: [
21000
+ "GET /orgs/{org}/settings/network-configurations"
21001
+ ],
21002
+ updateNetworkConfigurationForOrg: [
21003
+ "PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"
21004
+ ]
21005
+ },
20945
21006
  interactions: {
20946
21007
  getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
20947
21008
  getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
@@ -20974,6 +21035,9 @@ var Endpoints = {
20974
21035
  addAssignees: [
20975
21036
  "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
20976
21037
  ],
21038
+ addBlockedByDependency: [
21039
+ "POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"
21040
+ ],
20977
21041
  addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
20978
21042
  addSubIssue: [
20979
21043
  "POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
@@ -21000,10 +21064,17 @@ var Endpoints = {
21000
21064
  getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
21001
21065
  getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
21002
21066
  getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
21067
+ getParent: ["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],
21003
21068
  list: ["GET /issues"],
21004
21069
  listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
21005
21070
  listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
21006
21071
  listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
21072
+ listDependenciesBlockedBy: [
21073
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"
21074
+ ],
21075
+ listDependenciesBlocking: [
21076
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"
21077
+ ],
21007
21078
  listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
21008
21079
  listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
21009
21080
  listEventsForTimeline: [
@@ -21030,6 +21101,9 @@ var Endpoints = {
21030
21101
  removeAssignees: [
21031
21102
  "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
21032
21103
  ],
21104
+ removeDependencyBlockedBy: [
21105
+ "DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"
21106
+ ],
21033
21107
  removeLabel: [
21034
21108
  "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
21035
21109
  ],
@@ -21132,32 +21206,69 @@ var Endpoints = {
21132
21206
  convertMemberToOutsideCollaborator: [
21133
21207
  "PUT /orgs/{org}/outside_collaborators/{username}"
21134
21208
  ],
21209
+ createArtifactStorageRecord: [
21210
+ "POST /orgs/{org}/artifacts/metadata/storage-record"
21211
+ ],
21135
21212
  createInvitation: ["POST /orgs/{org}/invitations"],
21136
- createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
21137
- createOrUpdateCustomPropertiesValuesForRepos: [
21138
- "PATCH /orgs/{org}/properties/values"
21213
+ createIssueType: ["POST /orgs/{org}/issue-types"],
21214
+ createWebhook: ["POST /orgs/{org}/hooks"],
21215
+ customPropertiesForOrgsCreateOrUpdateOrganizationValues: [
21216
+ "PATCH /organizations/{org}/org-properties/values"
21139
21217
  ],
21140
- createOrUpdateCustomProperty: [
21218
+ customPropertiesForOrgsGetOrganizationValues: [
21219
+ "GET /organizations/{org}/org-properties/values"
21220
+ ],
21221
+ customPropertiesForReposCreateOrUpdateOrganizationDefinition: [
21141
21222
  "PUT /orgs/{org}/properties/schema/{custom_property_name}"
21142
21223
  ],
21143
- createWebhook: ["POST /orgs/{org}/hooks"],
21224
+ customPropertiesForReposCreateOrUpdateOrganizationDefinitions: [
21225
+ "PATCH /orgs/{org}/properties/schema"
21226
+ ],
21227
+ customPropertiesForReposCreateOrUpdateOrganizationValues: [
21228
+ "PATCH /orgs/{org}/properties/values"
21229
+ ],
21230
+ customPropertiesForReposDeleteOrganizationDefinition: [
21231
+ "DELETE /orgs/{org}/properties/schema/{custom_property_name}"
21232
+ ],
21233
+ customPropertiesForReposGetOrganizationDefinition: [
21234
+ "GET /orgs/{org}/properties/schema/{custom_property_name}"
21235
+ ],
21236
+ customPropertiesForReposGetOrganizationDefinitions: [
21237
+ "GET /orgs/{org}/properties/schema"
21238
+ ],
21239
+ customPropertiesForReposGetOrganizationValues: [
21240
+ "GET /orgs/{org}/properties/values"
21241
+ ],
21144
21242
  delete: ["DELETE /orgs/{org}"],
21243
+ deleteAttestationsBulk: ["POST /orgs/{org}/attestations/delete-request"],
21244
+ deleteAttestationsById: [
21245
+ "DELETE /orgs/{org}/attestations/{attestation_id}"
21246
+ ],
21247
+ deleteAttestationsBySubjectDigest: [
21248
+ "DELETE /orgs/{org}/attestations/digest/{subject_digest}"
21249
+ ],
21250
+ deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
21145
21251
  deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
21146
- enableOrDisableSecurityProductOnAllOrgRepos: [
21147
- "POST /orgs/{org}/{security_product}/{enablement}",
21148
- {},
21149
- {
21150
- deprecated: "octokit.rest.orgs.enableOrDisableSecurityProductOnAllOrgRepos() is deprecated, see https://docs.github.com/rest/orgs/orgs#enable-or-disable-a-security-feature-for-an-organization"
21151
- }
21252
+ disableSelectedRepositoryImmutableReleasesOrganization: [
21253
+ "DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"
21254
+ ],
21255
+ enableSelectedRepositoryImmutableReleasesOrganization: [
21256
+ "PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"
21152
21257
  ],
21153
21258
  get: ["GET /orgs/{org}"],
21154
- getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
21155
- getCustomProperty: [
21156
- "GET /orgs/{org}/properties/schema/{custom_property_name}"
21259
+ getImmutableReleasesSettings: [
21260
+ "GET /orgs/{org}/settings/immutable-releases"
21261
+ ],
21262
+ getImmutableReleasesSettingsRepositories: [
21263
+ "GET /orgs/{org}/settings/immutable-releases/repositories"
21157
21264
  ],
21158
21265
  getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
21159
21266
  getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
21160
21267
  getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
21268
+ getOrgRulesetHistory: ["GET /orgs/{org}/rulesets/{ruleset_id}/history"],
21269
+ getOrgRulesetVersion: [
21270
+ "GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"
21271
+ ],
21161
21272
  getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
21162
21273
  getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
21163
21274
  getWebhookDelivery: [
@@ -21165,13 +21276,20 @@ var Endpoints = {
21165
21276
  ],
21166
21277
  list: ["GET /organizations"],
21167
21278
  listAppInstallations: ["GET /orgs/{org}/installations"],
21279
+ listArtifactStorageRecords: [
21280
+ "GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"
21281
+ ],
21282
+ listAttestationRepositories: ["GET /orgs/{org}/attestations/repositories"],
21168
21283
  listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
21284
+ listAttestationsBulk: [
21285
+ "POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"
21286
+ ],
21169
21287
  listBlockedUsers: ["GET /orgs/{org}/blocks"],
21170
- listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
21171
21288
  listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
21172
21289
  listForAuthenticatedUser: ["GET /user/orgs"],
21173
21290
  listForUser: ["GET /users/{username}/orgs"],
21174
21291
  listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
21292
+ listIssueTypes: ["GET /orgs/{org}/issue-types"],
21175
21293
  listMembers: ["GET /orgs/{org}/members"],
21176
21294
  listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
21177
21295
  listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
@@ -21204,9 +21322,6 @@ var Endpoints = {
21204
21322
  redeliverWebhookDelivery: [
21205
21323
  "POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
21206
21324
  ],
21207
- removeCustomProperty: [
21208
- "DELETE /orgs/{org}/properties/schema/{custom_property_name}"
21209
- ],
21210
21325
  removeMember: ["DELETE /orgs/{org}/members/{username}"],
21211
21326
  removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
21212
21327
  removeOutsideCollaborator: [
@@ -21240,12 +21355,19 @@ var Endpoints = {
21240
21355
  revokeOrgRoleUser: [
21241
21356
  "DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
21242
21357
  ],
21358
+ setImmutableReleasesSettings: [
21359
+ "PUT /orgs/{org}/settings/immutable-releases"
21360
+ ],
21361
+ setImmutableReleasesSettingsRepositories: [
21362
+ "PUT /orgs/{org}/settings/immutable-releases/repositories"
21363
+ ],
21243
21364
  setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
21244
21365
  setPublicMembershipForAuthenticatedUser: [
21245
21366
  "PUT /orgs/{org}/public_members/{username}"
21246
21367
  ],
21247
21368
  unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
21248
21369
  update: ["PATCH /orgs/{org}"],
21370
+ updateIssueType: ["PUT /orgs/{org}/issue-types/{issue_type_id}"],
21249
21371
  updateMembershipForAuthenticatedUser: [
21250
21372
  "PATCH /user/memberships/orgs/{org}"
21251
21373
  ],
@@ -21359,35 +21481,44 @@ var Endpoints = {
21359
21481
  ]
21360
21482
  },
21361
21483
  projects: {
21362
- addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
21363
- createCard: ["POST /projects/columns/{column_id}/cards"],
21364
- createColumn: ["POST /projects/{project_id}/columns"],
21365
- createForAuthenticatedUser: ["POST /user/projects"],
21366
- createForOrg: ["POST /orgs/{org}/projects"],
21367
- createForRepo: ["POST /repos/{owner}/{repo}/projects"],
21368
- delete: ["DELETE /projects/{project_id}"],
21369
- deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
21370
- deleteColumn: ["DELETE /projects/columns/{column_id}"],
21371
- get: ["GET /projects/{project_id}"],
21372
- getCard: ["GET /projects/columns/cards/{card_id}"],
21373
- getColumn: ["GET /projects/columns/{column_id}"],
21374
- getPermissionForUser: [
21375
- "GET /projects/{project_id}/collaborators/{username}/permission"
21376
- ],
21377
- listCards: ["GET /projects/columns/{column_id}/cards"],
21378
- listCollaborators: ["GET /projects/{project_id}/collaborators"],
21379
- listColumns: ["GET /projects/{project_id}/columns"],
21380
- listForOrg: ["GET /orgs/{org}/projects"],
21381
- listForRepo: ["GET /repos/{owner}/{repo}/projects"],
21382
- listForUser: ["GET /users/{username}/projects"],
21383
- moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
21384
- moveColumn: ["POST /projects/columns/{column_id}/moves"],
21385
- removeCollaborator: [
21386
- "DELETE /projects/{project_id}/collaborators/{username}"
21484
+ addItemForOrg: ["POST /orgs/{org}/projectsV2/{project_number}/items"],
21485
+ addItemForUser: [
21486
+ "POST /users/{username}/projectsV2/{project_number}/items"
21487
+ ],
21488
+ deleteItemForOrg: [
21489
+ "DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
21490
+ ],
21491
+ deleteItemForUser: [
21492
+ "DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"
21387
21493
  ],
21388
- update: ["PATCH /projects/{project_id}"],
21389
- updateCard: ["PATCH /projects/columns/cards/{card_id}"],
21390
- updateColumn: ["PATCH /projects/columns/{column_id}"]
21494
+ getFieldForOrg: [
21495
+ "GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"
21496
+ ],
21497
+ getFieldForUser: [
21498
+ "GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"
21499
+ ],
21500
+ getForOrg: ["GET /orgs/{org}/projectsV2/{project_number}"],
21501
+ getForUser: ["GET /users/{username}/projectsV2/{project_number}"],
21502
+ getOrgItem: ["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],
21503
+ getUserItem: [
21504
+ "GET /users/{username}/projectsV2/{project_number}/items/{item_id}"
21505
+ ],
21506
+ listFieldsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/fields"],
21507
+ listFieldsForUser: [
21508
+ "GET /users/{username}/projectsV2/{project_number}/fields"
21509
+ ],
21510
+ listForOrg: ["GET /orgs/{org}/projectsV2"],
21511
+ listForUser: ["GET /users/{username}/projectsV2"],
21512
+ listItemsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/items"],
21513
+ listItemsForUser: [
21514
+ "GET /users/{username}/projectsV2/{project_number}/items"
21515
+ ],
21516
+ updateItemForOrg: [
21517
+ "PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
21518
+ ],
21519
+ updateItemForUser: [
21520
+ "PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"
21521
+ ]
21391
21522
  },
21392
21523
  pulls: {
21393
21524
  checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
@@ -21549,6 +21680,7 @@ var Endpoints = {
21549
21680
  "GET /repos/{owner}/{repo}/automated-security-fixes"
21550
21681
  ],
21551
21682
  checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
21683
+ checkImmutableReleases: ["GET /repos/{owner}/{repo}/immutable-releases"],
21552
21684
  checkPrivateVulnerabilityReporting: [
21553
21685
  "GET /repos/{owner}/{repo}/private-vulnerability-reporting"
21554
21686
  ],
@@ -21584,9 +21716,6 @@ var Endpoints = {
21584
21716
  createForAuthenticatedUser: ["POST /user/repos"],
21585
21717
  createFork: ["POST /repos/{owner}/{repo}/forks"],
21586
21718
  createInOrg: ["POST /orgs/{org}/repos"],
21587
- createOrUpdateCustomPropertiesValues: [
21588
- "PATCH /repos/{owner}/{repo}/properties/values"
21589
- ],
21590
21719
  createOrUpdateEnvironment: [
21591
21720
  "PUT /repos/{owner}/{repo}/environments/{environment_name}"
21592
21721
  ],
@@ -21600,6 +21729,12 @@ var Endpoints = {
21600
21729
  "POST /repos/{template_owner}/{template_repo}/generate"
21601
21730
  ],
21602
21731
  createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
21732
+ customPropertiesForReposCreateOrUpdateRepositoryValues: [
21733
+ "PATCH /repos/{owner}/{repo}/properties/values"
21734
+ ],
21735
+ customPropertiesForReposGetRepositoryValues: [
21736
+ "GET /repos/{owner}/{repo}/properties/values"
21737
+ ],
21603
21738
  declineInvitation: [
21604
21739
  "DELETE /user/repository_invitations/{invitation_id}",
21605
21740
  {},
@@ -21654,6 +21789,9 @@ var Endpoints = {
21654
21789
  disableDeploymentProtectionRule: [
21655
21790
  "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
21656
21791
  ],
21792
+ disableImmutableReleases: [
21793
+ "DELETE /repos/{owner}/{repo}/immutable-releases"
21794
+ ],
21657
21795
  disablePrivateVulnerabilityReporting: [
21658
21796
  "DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
21659
21797
  ],
@@ -21670,6 +21808,7 @@ var Endpoints = {
21670
21808
  enableAutomatedSecurityFixes: [
21671
21809
  "PUT /repos/{owner}/{repo}/automated-security-fixes"
21672
21810
  ],
21811
+ enableImmutableReleases: ["PUT /repos/{owner}/{repo}/immutable-releases"],
21673
21812
  enablePrivateVulnerabilityReporting: [
21674
21813
  "PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
21675
21814
  ],
@@ -21721,7 +21860,6 @@ var Endpoints = {
21721
21860
  getCustomDeploymentProtectionRule: [
21722
21861
  "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
21723
21862
  ],
21724
- getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
21725
21863
  getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
21726
21864
  getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
21727
21865
  getDeploymentBranchPolicy: [
@@ -21760,6 +21898,12 @@ var Endpoints = {
21760
21898
  ],
21761
21899
  getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
21762
21900
  getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
21901
+ getRepoRulesetHistory: [
21902
+ "GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"
21903
+ ],
21904
+ getRepoRulesetVersion: [
21905
+ "GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"
21906
+ ],
21763
21907
  getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
21764
21908
  getStatusChecksProtection: [
21765
21909
  "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
@@ -21947,16 +22091,19 @@ var Endpoints = {
21947
22091
  "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
21948
22092
  ],
21949
22093
  getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
21950
- listAlertsForEnterprise: [
21951
- "GET /enterprises/{enterprise}/secret-scanning/alerts"
21952
- ],
21953
22094
  listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
21954
22095
  listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
21955
22096
  listLocationsForAlert: [
21956
22097
  "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
21957
22098
  ],
22099
+ listOrgPatternConfigs: [
22100
+ "GET /orgs/{org}/secret-scanning/pattern-configurations"
22101
+ ],
21958
22102
  updateAlert: [
21959
22103
  "PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
22104
+ ],
22105
+ updateOrgPatternConfigs: [
22106
+ "PATCH /orgs/{org}/secret-scanning/pattern-configurations"
21960
22107
  ]
21961
22108
  },
21962
22109
  securityAdvisories: {
@@ -21987,15 +22134,9 @@ var Endpoints = {
21987
22134
  addOrUpdateMembershipForUserInOrg: [
21988
22135
  "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
21989
22136
  ],
21990
- addOrUpdateProjectPermissionsInOrg: [
21991
- "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
21992
- ],
21993
22137
  addOrUpdateRepoPermissionsInOrg: [
21994
22138
  "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
21995
22139
  ],
21996
- checkPermissionsForProjectInOrg: [
21997
- "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
21998
- ],
21999
22140
  checkPermissionsForRepoInOrg: [
22000
22141
  "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
22001
22142
  ],
@@ -22032,14 +22173,10 @@ var Endpoints = {
22032
22173
  listPendingInvitationsInOrg: [
22033
22174
  "GET /orgs/{org}/teams/{team_slug}/invitations"
22034
22175
  ],
22035
- listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
22036
22176
  listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
22037
22177
  removeMembershipForUserInOrg: [
22038
22178
  "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
22039
22179
  ],
22040
- removeProjectInOrg: [
22041
- "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
22042
- ],
22043
22180
  removeRepoInOrg: [
22044
22181
  "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
22045
22182
  ],
@@ -22076,6 +22213,15 @@ var Endpoints = {
22076
22213
  ],
22077
22214
  createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
22078
22215
  createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
22216
+ deleteAttestationsBulk: [
22217
+ "POST /users/{username}/attestations/delete-request"
22218
+ ],
22219
+ deleteAttestationsById: [
22220
+ "DELETE /users/{username}/attestations/{attestation_id}"
22221
+ ],
22222
+ deleteAttestationsBySubjectDigest: [
22223
+ "DELETE /users/{username}/attestations/digest/{subject_digest}"
22224
+ ],
22079
22225
  deleteEmailForAuthenticated: [
22080
22226
  "DELETE /user/emails",
22081
22227
  {},
@@ -22120,6 +22266,9 @@ var Endpoints = {
22120
22266
  ],
22121
22267
  list: ["GET /users"],
22122
22268
  listAttestations: ["GET /users/{username}/attestations/{subject_digest}"],
22269
+ listAttestationsBulk: [
22270
+ "POST /users/{username}/attestations/bulk-list{?per_page,before,after}"
22271
+ ],
22123
22272
  listBlockedByAuthenticated: [
22124
22273
  "GET /user/blocks",
22125
22274
  {},
@@ -22180,7 +22329,7 @@ var Endpoints = {
22180
22329
  };
22181
22330
  var endpoints_default = Endpoints;
22182
22331
 
22183
- // ../../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
22332
+ // ../../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
22184
22333
  var endpointMethodsMap = /* @__PURE__ */ new Map();
22185
22334
  for (const [scope, endpoints] of Object.entries(endpoints_default)) {
22186
22335
  for (const [methodName, endpoint2] of Object.entries(endpoints)) {
@@ -22303,7 +22452,7 @@ function decorate(octokit, scope, methodName, defaults3, decorations) {
22303
22452
  return Object.assign(withDecorations, requestWithDefaults);
22304
22453
  }
22305
22454
 
22306
- // ../../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
22455
+ // ../../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
22307
22456
  function restEndpointMethods(octokit) {
22308
22457
  const api = endpointsToMethods(octokit);
22309
22458
  return {
@@ -22320,15 +22469,15 @@ function legacyRestEndpointMethods(octokit) {
22320
22469
  }
22321
22470
  legacyRestEndpointMethods.VERSION = VERSION7;
22322
22471
 
22323
- // ../../node_modules/.pnpm/@octokit+rest@20.1.2/node_modules/@octokit/rest/dist-web/index.js
22324
- var VERSION8 = "20.1.2";
22325
- var Octokit2 = Octokit.plugin(
22326
- requestLog,
22327
- legacyRestEndpointMethods,
22328
- paginateRest
22329
- ).defaults({
22330
- userAgent: `octokit-rest.js/${VERSION8}`
22331
- });
22472
+ // ../../node_modules/.pnpm/@octokit+rest@22.0.1/node_modules/@octokit/rest/dist-src/version.js
22473
+ var VERSION8 = "22.0.1";
22474
+
22475
+ // ../../node_modules/.pnpm/@octokit+rest@22.0.1/node_modules/@octokit/rest/dist-src/index.js
22476
+ var Octokit2 = Octokit.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults(
22477
+ {
22478
+ userAgent: `octokit-rest.js/${VERSION8}`
22479
+ }
22480
+ );
22332
22481
 
22333
22482
  // src/github/GitHub.ts
22334
22483
  var GitHub = class {
@@ -25731,4 +25880,11 @@ tmp/lib/tmp.js:
25731
25880
  *
25732
25881
  * MIT Licensed
25733
25882
  *)
25883
+
25884
+ @octokit/request-error/dist-src/index.js:
25885
+ (* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
25886
+
25887
+ @octokit/request/dist-bundle/index.js:
25888
+ (* v8 ignore next -- @preserve *)
25889
+ (* v8 ignore else -- @preserve *)
25734
25890
  */