sailfork 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +14 -0
- package/dist/index.cjs +231 -1
- package/dist/index.js +231 -1
- package/dist/tools.cjs +349 -0
- package/dist/tools.js +349 -0
- package/dist/types/core/version.d.ts +1 -1
- package/dist/types/generated/api.d.ts +99 -0
- package/dist/types/generated/index.d.ts +1 -1
- package/dist/types/generated/ops.d.ts +143 -0
- package/dist/types/generated/types.d.ts +304 -0
- package/dist/types-cjs/core/version.d.ts +1 -1
- package/dist/types-cjs/generated/api.d.ts +99 -0
- package/dist/types-cjs/generated/index.d.ts +1 -1
- package/dist/types-cjs/generated/ops.d.ts +143 -0
- package/dist/types-cjs/generated/types.d.ts +304 -0
- package/llms.txt +14 -0
- package/package.json +1 -1
package/dist/tools.js
CHANGED
|
@@ -572,6 +572,110 @@ var ops = {
|
|
|
572
572
|
long: false,
|
|
573
573
|
paginated: false
|
|
574
574
|
},
|
|
575
|
+
"env.chain": {
|
|
576
|
+
id: "env.chain",
|
|
577
|
+
method: "GET",
|
|
578
|
+
path: "/api/repos/{owner}/{repo}/env/chain",
|
|
579
|
+
pathParams: ["owner", "repo"],
|
|
580
|
+
queryParams: ["since"],
|
|
581
|
+
bodyParams: [],
|
|
582
|
+
effect: "read",
|
|
583
|
+
retry: "safe",
|
|
584
|
+
held: false,
|
|
585
|
+
long: false,
|
|
586
|
+
paginated: false
|
|
587
|
+
},
|
|
588
|
+
"env.chain.append": {
|
|
589
|
+
id: "env.chain.append",
|
|
590
|
+
method: "POST",
|
|
591
|
+
path: "/api/repos/{owner}/{repo}/env/chain",
|
|
592
|
+
pathParams: ["owner", "repo"],
|
|
593
|
+
queryParams: [],
|
|
594
|
+
bodyParams: ["entry", "files"],
|
|
595
|
+
effect: "write",
|
|
596
|
+
retry: "none",
|
|
597
|
+
held: false,
|
|
598
|
+
long: false,
|
|
599
|
+
paginated: false
|
|
600
|
+
},
|
|
601
|
+
"env.devices.cancel": {
|
|
602
|
+
id: "env.devices.cancel",
|
|
603
|
+
method: "DELETE",
|
|
604
|
+
path: "/api/repos/{owner}/{repo}/env/devices/{id}",
|
|
605
|
+
pathParams: ["owner", "repo", "id"],
|
|
606
|
+
queryParams: [],
|
|
607
|
+
bodyParams: [],
|
|
608
|
+
effect: "delete",
|
|
609
|
+
retry: "idempotent",
|
|
610
|
+
held: false,
|
|
611
|
+
long: false,
|
|
612
|
+
paginated: false
|
|
613
|
+
},
|
|
614
|
+
"env.devices.request": {
|
|
615
|
+
id: "env.devices.request",
|
|
616
|
+
method: "POST",
|
|
617
|
+
path: "/api/repos/{owner}/{repo}/env/devices",
|
|
618
|
+
pathParams: ["owner", "repo"],
|
|
619
|
+
queryParams: [],
|
|
620
|
+
bodyParams: ["name", "signKey", "ageRecipient"],
|
|
621
|
+
effect: "write",
|
|
622
|
+
retry: "none",
|
|
623
|
+
held: false,
|
|
624
|
+
long: false,
|
|
625
|
+
paginated: false
|
|
626
|
+
},
|
|
627
|
+
"env.list": {
|
|
628
|
+
id: "env.list",
|
|
629
|
+
method: "GET",
|
|
630
|
+
path: "/api/repos/{owner}/{repo}/env",
|
|
631
|
+
pathParams: ["owner", "repo"],
|
|
632
|
+
queryParams: ["content"],
|
|
633
|
+
bodyParams: [],
|
|
634
|
+
effect: "read",
|
|
635
|
+
retry: "safe",
|
|
636
|
+
held: false,
|
|
637
|
+
long: false,
|
|
638
|
+
paginated: false
|
|
639
|
+
},
|
|
640
|
+
"env.log": {
|
|
641
|
+
id: "env.log",
|
|
642
|
+
method: "GET",
|
|
643
|
+
path: "/api/repos/{owner}/{repo}/env/log",
|
|
644
|
+
pathParams: ["owner", "repo"],
|
|
645
|
+
queryParams: ["path"],
|
|
646
|
+
bodyParams: [],
|
|
647
|
+
effect: "read",
|
|
648
|
+
retry: "safe",
|
|
649
|
+
held: false,
|
|
650
|
+
long: false,
|
|
651
|
+
paginated: false
|
|
652
|
+
},
|
|
653
|
+
"env.version": {
|
|
654
|
+
id: "env.version",
|
|
655
|
+
method: "GET",
|
|
656
|
+
path: "/api/repos/{owner}/{repo}/env/version",
|
|
657
|
+
pathParams: ["owner", "repo"],
|
|
658
|
+
queryParams: ["path", "version"],
|
|
659
|
+
bodyParams: [],
|
|
660
|
+
effect: "read",
|
|
661
|
+
retry: "safe",
|
|
662
|
+
held: false,
|
|
663
|
+
long: false,
|
|
664
|
+
paginated: false
|
|
665
|
+
},
|
|
666
|
+
"env.write": {
|
|
667
|
+
id: "env.write",
|
|
668
|
+
method: "POST",
|
|
669
|
+
path: "/api/repos/{owner}/{repo}/env/files",
|
|
670
|
+
pathParams: ["owner", "repo"],
|
|
671
|
+
queryParams: [],
|
|
672
|
+
bodyParams: ["files", "message"],
|
|
673
|
+
effect: "write",
|
|
674
|
+
retry: "none",
|
|
675
|
+
held: false,
|
|
676
|
+
long: false,
|
|
677
|
+
paginated: false
|
|
678
|
+
},
|
|
575
679
|
"event_subscriptions.advance": {
|
|
576
680
|
id: "event_subscriptions.advance",
|
|
577
681
|
method: "POST",
|
|
@@ -754,6 +858,32 @@ var ops = {
|
|
|
754
858
|
long: false,
|
|
755
859
|
paginated: false
|
|
756
860
|
},
|
|
861
|
+
"issues.answer": {
|
|
862
|
+
id: "issues.answer",
|
|
863
|
+
method: "POST",
|
|
864
|
+
path: "/api/repos/{owner}/{repo}/issues/{number}/asks/{id}/answer",
|
|
865
|
+
pathParams: ["owner", "repo", "number", "id"],
|
|
866
|
+
queryParams: [],
|
|
867
|
+
bodyParams: ["choices", "text"],
|
|
868
|
+
effect: "write",
|
|
869
|
+
retry: "idempotent",
|
|
870
|
+
held: false,
|
|
871
|
+
long: false,
|
|
872
|
+
paginated: false
|
|
873
|
+
},
|
|
874
|
+
"issues.ask": {
|
|
875
|
+
id: "issues.ask",
|
|
876
|
+
method: "POST",
|
|
877
|
+
path: "/api/repos/{owner}/{repo}/issues/{number}/asks",
|
|
878
|
+
pathParams: ["owner", "repo", "number"],
|
|
879
|
+
queryParams: [],
|
|
880
|
+
bodyParams: ["kind", "text", "options", "recommended", "other"],
|
|
881
|
+
effect: "write",
|
|
882
|
+
retry: "none",
|
|
883
|
+
held: false,
|
|
884
|
+
long: false,
|
|
885
|
+
paginated: false
|
|
886
|
+
},
|
|
757
887
|
"issues.claim": {
|
|
758
888
|
id: "issues.claim",
|
|
759
889
|
method: "POST",
|
|
@@ -1014,6 +1144,19 @@ var ops = {
|
|
|
1014
1144
|
long: false,
|
|
1015
1145
|
paginated: false
|
|
1016
1146
|
},
|
|
1147
|
+
"issues.unask": {
|
|
1148
|
+
id: "issues.unask",
|
|
1149
|
+
method: "DELETE",
|
|
1150
|
+
path: "/api/repos/{owner}/{repo}/issues/{number}/asks/{id}",
|
|
1151
|
+
pathParams: ["owner", "repo", "number", "id"],
|
|
1152
|
+
queryParams: [],
|
|
1153
|
+
bodyParams: [],
|
|
1154
|
+
effect: "write",
|
|
1155
|
+
retry: "idempotent",
|
|
1156
|
+
held: false,
|
|
1157
|
+
long: false,
|
|
1158
|
+
paginated: false
|
|
1159
|
+
},
|
|
1017
1160
|
"issues.unreact": {
|
|
1018
1161
|
id: "issues.unreact",
|
|
1019
1162
|
method: "DELETE",
|
|
@@ -4490,6 +4633,171 @@ cursor at or behind the stored one leaves it as it is, so two readers cannot rew
|
|
|
4490
4633
|
tab: "tab"
|
|
4491
4634
|
}
|
|
4492
4635
|
},
|
|
4636
|
+
{
|
|
4637
|
+
name: "issue_answer",
|
|
4638
|
+
op: "issues.answer",
|
|
4639
|
+
description: "Answer a question on an issue, replacing an earlier answer: `choices` are option labels (one for `single`, any for `multi`), `text` the free-text answer of a `text` question or an `other` answer. You need write access or the issue's lease.",
|
|
4640
|
+
schema: {
|
|
4641
|
+
additionalProperties: false,
|
|
4642
|
+
description: "Answer a question on an issue, replacing an earlier answer: `choices` are option labels (one for `single`, any for\n`multi`), `text` the free-text answer of a `text` question or an `other` answer. You need write access or the\nissue's lease.",
|
|
4643
|
+
properties: {
|
|
4644
|
+
choices: {
|
|
4645
|
+
default: [],
|
|
4646
|
+
description: "The labels of the options picked.",
|
|
4647
|
+
items: {
|
|
4648
|
+
type: "string"
|
|
4649
|
+
},
|
|
4650
|
+
type: "array"
|
|
4651
|
+
},
|
|
4652
|
+
id: {
|
|
4653
|
+
description: "The question's id, from the issue's context.",
|
|
4654
|
+
type: "string"
|
|
4655
|
+
},
|
|
4656
|
+
number: {
|
|
4657
|
+
description: "Issue number.",
|
|
4658
|
+
format: "int64",
|
|
4659
|
+
type: "integer"
|
|
4660
|
+
},
|
|
4661
|
+
org: {
|
|
4662
|
+
description: "The repository's owner: a user or an org handle.",
|
|
4663
|
+
type: "string"
|
|
4664
|
+
},
|
|
4665
|
+
repo: {
|
|
4666
|
+
description: "The repository's name.",
|
|
4667
|
+
type: "string"
|
|
4668
|
+
},
|
|
4669
|
+
text: {
|
|
4670
|
+
default: "",
|
|
4671
|
+
description: "The answer in your own words.",
|
|
4672
|
+
type: "string"
|
|
4673
|
+
}
|
|
4674
|
+
},
|
|
4675
|
+
required: [
|
|
4676
|
+
"org",
|
|
4677
|
+
"repo",
|
|
4678
|
+
"number",
|
|
4679
|
+
"id"
|
|
4680
|
+
],
|
|
4681
|
+
type: "object"
|
|
4682
|
+
},
|
|
4683
|
+
renames: {
|
|
4684
|
+
choices: "choices",
|
|
4685
|
+
id: "id",
|
|
4686
|
+
number: "number",
|
|
4687
|
+
org: "owner",
|
|
4688
|
+
repo: "repo",
|
|
4689
|
+
text: "text"
|
|
4690
|
+
}
|
|
4691
|
+
},
|
|
4692
|
+
{
|
|
4693
|
+
name: "issue_ask",
|
|
4694
|
+
op: "issues.ask",
|
|
4695
|
+
description: "Ask a person a question on an issue and read the answer back later from the issue's context (`asks`). `single` takes one of 2 to 10 options, `multi` any number of them, `text` free text; `other` lets a choice question also take free text. The issue reads as needing input, and its assignee is told, until it is answered. You need the issue's lease or write access.",
|
|
4696
|
+
schema: {
|
|
4697
|
+
$defs: {
|
|
4698
|
+
AskKind: {
|
|
4699
|
+
description: "How a person answers an [`IssueAsk`]: `single` (one option), `multi` (any number of options) or `text` (free text).",
|
|
4700
|
+
enum: [
|
|
4701
|
+
"single",
|
|
4702
|
+
"multi",
|
|
4703
|
+
"text"
|
|
4704
|
+
],
|
|
4705
|
+
type: "string"
|
|
4706
|
+
},
|
|
4707
|
+
AskOptionInput: {
|
|
4708
|
+
anyOf: [
|
|
4709
|
+
{
|
|
4710
|
+
type: "string"
|
|
4711
|
+
},
|
|
4712
|
+
{
|
|
4713
|
+
$ref: "#/$defs/IssueAskOption"
|
|
4714
|
+
}
|
|
4715
|
+
],
|
|
4716
|
+
description: "An option as an asker writes it: its label alone, or the label with a description."
|
|
4717
|
+
},
|
|
4718
|
+
IssueAskOption: {
|
|
4719
|
+
properties: {
|
|
4720
|
+
description: {
|
|
4721
|
+
type: [
|
|
4722
|
+
"string",
|
|
4723
|
+
"null"
|
|
4724
|
+
]
|
|
4725
|
+
},
|
|
4726
|
+
label: {
|
|
4727
|
+
type: "string"
|
|
4728
|
+
}
|
|
4729
|
+
},
|
|
4730
|
+
required: [
|
|
4731
|
+
"label"
|
|
4732
|
+
],
|
|
4733
|
+
type: "object"
|
|
4734
|
+
}
|
|
4735
|
+
},
|
|
4736
|
+
additionalProperties: false,
|
|
4737
|
+
description: "Ask a person a question on an issue and read the answer back later from the issue's context (`asks`). `single`\ntakes one of 2 to 10 options, `multi` any number of them, `text` free text; `other` lets a choice question also take\nfree text. The issue reads as needing input, and its assignee is told, until it is answered. You need the issue's\nlease or write access.",
|
|
4738
|
+
properties: {
|
|
4739
|
+
kind: {
|
|
4740
|
+
$ref: "#/$defs/AskKind",
|
|
4741
|
+
description: "`single` (pick one option), `multi` (pick any) or `text` (free text)."
|
|
4742
|
+
},
|
|
4743
|
+
number: {
|
|
4744
|
+
description: "Issue number.",
|
|
4745
|
+
format: "int64",
|
|
4746
|
+
type: "integer"
|
|
4747
|
+
},
|
|
4748
|
+
options: {
|
|
4749
|
+
default: [],
|
|
4750
|
+
description: "The choices of a `single` or `multi` question, 2 to 10, each a label or `{label, description}`; none for\n`text`.",
|
|
4751
|
+
items: {
|
|
4752
|
+
$ref: "#/$defs/AskOptionInput"
|
|
4753
|
+
},
|
|
4754
|
+
type: "array"
|
|
4755
|
+
},
|
|
4756
|
+
org: {
|
|
4757
|
+
description: "The repository's owner: a user or an org handle.",
|
|
4758
|
+
type: "string"
|
|
4759
|
+
},
|
|
4760
|
+
other: {
|
|
4761
|
+
default: false,
|
|
4762
|
+
description: "true lets a `single` or `multi` question also take an answer in the person's own words.",
|
|
4763
|
+
type: "boolean"
|
|
4764
|
+
},
|
|
4765
|
+
recommended: {
|
|
4766
|
+
description: "The label of the option you suggest.",
|
|
4767
|
+
type: [
|
|
4768
|
+
"string",
|
|
4769
|
+
"null"
|
|
4770
|
+
]
|
|
4771
|
+
},
|
|
4772
|
+
repo: {
|
|
4773
|
+
description: "The repository's name.",
|
|
4774
|
+
type: "string"
|
|
4775
|
+
},
|
|
4776
|
+
text: {
|
|
4777
|
+
description: "The whole question, in Markdown, with what the person needs to answer it (up to 2000 characters).",
|
|
4778
|
+
type: "string"
|
|
4779
|
+
}
|
|
4780
|
+
},
|
|
4781
|
+
required: [
|
|
4782
|
+
"org",
|
|
4783
|
+
"repo",
|
|
4784
|
+
"number",
|
|
4785
|
+
"kind",
|
|
4786
|
+
"text"
|
|
4787
|
+
],
|
|
4788
|
+
type: "object"
|
|
4789
|
+
},
|
|
4790
|
+
renames: {
|
|
4791
|
+
kind: "kind",
|
|
4792
|
+
number: "number",
|
|
4793
|
+
options: "options",
|
|
4794
|
+
org: "owner",
|
|
4795
|
+
other: "other",
|
|
4796
|
+
recommended: "recommended",
|
|
4797
|
+
repo: "repo",
|
|
4798
|
+
text: "text"
|
|
4799
|
+
}
|
|
4800
|
+
},
|
|
4493
4801
|
{
|
|
4494
4802
|
name: "issue_claim",
|
|
4495
4803
|
op: "issues.claim",
|
|
@@ -5680,6 +5988,47 @@ repository.`,
|
|
|
5680
5988
|
repo: "repo"
|
|
5681
5989
|
}
|
|
5682
5990
|
},
|
|
5991
|
+
{
|
|
5992
|
+
name: "issue_unask",
|
|
5993
|
+
op: "issues.unask",
|
|
5994
|
+
description: "Take a question back from an issue, answered or not, once its answer is used or it no longer matters. You need the issue's lease or write access.",
|
|
5995
|
+
schema: {
|
|
5996
|
+
description: `Take a question back from an issue, answered or not, once its answer is used or it no longer matters. You need
|
|
5997
|
+
the issue's lease or write access.`,
|
|
5998
|
+
properties: {
|
|
5999
|
+
id: {
|
|
6000
|
+
description: "The question's id, from the issue's context.",
|
|
6001
|
+
type: "string"
|
|
6002
|
+
},
|
|
6003
|
+
number: {
|
|
6004
|
+
description: "Issue number.",
|
|
6005
|
+
format: "int64",
|
|
6006
|
+
type: "integer"
|
|
6007
|
+
},
|
|
6008
|
+
org: {
|
|
6009
|
+
description: "The repository's owner: a user or an org handle.",
|
|
6010
|
+
type: "string"
|
|
6011
|
+
},
|
|
6012
|
+
repo: {
|
|
6013
|
+
description: "The repository's name.",
|
|
6014
|
+
type: "string"
|
|
6015
|
+
}
|
|
6016
|
+
},
|
|
6017
|
+
required: [
|
|
6018
|
+
"org",
|
|
6019
|
+
"repo",
|
|
6020
|
+
"number",
|
|
6021
|
+
"id"
|
|
6022
|
+
],
|
|
6023
|
+
type: "object"
|
|
6024
|
+
},
|
|
6025
|
+
renames: {
|
|
6026
|
+
id: "id",
|
|
6027
|
+
number: "number",
|
|
6028
|
+
org: "owner",
|
|
6029
|
+
repo: "repo"
|
|
6030
|
+
}
|
|
6031
|
+
},
|
|
5683
6032
|
{
|
|
5684
6033
|
name: "issue_update",
|
|
5685
6034
|
op: "issues.update",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.3.1";
|
|
2
2
|
export declare const API_VERSION = "2026-12-01";
|
|
@@ -188,6 +188,42 @@ export declare class CiResource {
|
|
|
188
188
|
*/
|
|
189
189
|
stepLog(input: T.CiStepLogInput, opts?: RequestOptions): Promise<T.CiStepLogOutput>;
|
|
190
190
|
}
|
|
191
|
+
export declare class EnvResource {
|
|
192
|
+
private readonly core;
|
|
193
|
+
constructor(core: Core);
|
|
194
|
+
/**
|
|
195
|
+
* The owner's env device chain after an epoch, the device requests the caller may see, and the people the head still encrypts to who have lost access. Needs write access to the repository.
|
|
196
|
+
*/
|
|
197
|
+
chain(input: T.EnvChainInput, opts?: RequestOptions): Promise<T.EnvChainOutput>;
|
|
198
|
+
/**
|
|
199
|
+
* Append an entry, signed by an admin device of the head, to the owner's env device chain, with every file it re-encrypts in the same transaction. Org owners only (the owner, for a personal repository).
|
|
200
|
+
*/
|
|
201
|
+
chainAppend(input: T.EnvChainAppendInput, opts?: RequestOptions): Promise<T.EnvChainAppendOutput>;
|
|
202
|
+
/**
|
|
203
|
+
* Withdraw a device request: the requester's own, or any for an admin.
|
|
204
|
+
*/
|
|
205
|
+
devicesCancel(input: T.EnvDevicesCancelInput, opts?: RequestOptions): Promise<T.EnvDevicesCancelOutput>;
|
|
206
|
+
/**
|
|
207
|
+
* Ask to add this device to the owner's env device chain; an admin device approves it after comparing the approval code both show. Needs write access to the repository.
|
|
208
|
+
*/
|
|
209
|
+
devicesRequest(input: T.EnvDevicesRequestInput, opts?: RequestOptions): Promise<T.EnvDevicesRequestOutput>;
|
|
210
|
+
/**
|
|
211
|
+
* The repository's env files at their current versions: key names, signed manifests and, with `content`, the age ciphertext. Needs write access to the repository.
|
|
212
|
+
*/
|
|
213
|
+
list(input: T.EnvListInput, opts?: RequestOptions): Promise<T.EnvListOutput>;
|
|
214
|
+
/**
|
|
215
|
+
* An env file's versions, newest first: key names, epoch, author and message, never content. Needs write access.
|
|
216
|
+
*/
|
|
217
|
+
log(input: T.EnvLogInput, opts?: RequestOptions): Promise<T.EnvLogOutput>;
|
|
218
|
+
/**
|
|
219
|
+
* One version of one env file with its ciphertext, such as the base of a merge. Needs write access.
|
|
220
|
+
*/
|
|
221
|
+
version(input: T.EnvVersionInput, opts?: RequestOptions): Promise<T.EnvVersionOutput>;
|
|
222
|
+
/**
|
|
223
|
+
* Store new versions of env files, all or none: each a manifest signed by a device the chain head grants, built on the file's current version, and its age ciphertext. A stale version or chain epoch answers 409. Needs write access.
|
|
224
|
+
*/
|
|
225
|
+
write(input: T.EnvWriteInput, opts?: RequestOptions): Promise<T.EnvWriteOutput>;
|
|
226
|
+
}
|
|
191
227
|
export declare class Event_subscriptionsResource {
|
|
192
228
|
private readonly core;
|
|
193
229
|
constructor(core: Core);
|
|
@@ -267,6 +303,14 @@ export declare class InboxResource {
|
|
|
267
303
|
export declare class IssuesResource {
|
|
268
304
|
private readonly core;
|
|
269
305
|
constructor(core: Core);
|
|
306
|
+
/**
|
|
307
|
+
* Answer a question on an issue, replacing an earlier answer: `choices` are option labels (one for `single`, any for `multi`), `text` the free-text answer of a `text` question or an `other` answer. You need write access or the issue's lease.
|
|
308
|
+
*/
|
|
309
|
+
answer(input: T.IssuesAnswerInput, opts?: RequestOptions): Promise<T.IssuesAnswerOutput>;
|
|
310
|
+
/**
|
|
311
|
+
* Ask a person a question on an issue and read the answer back later from the issue's context (`asks`). `single` takes one of 2 to 10 options, `multi` any number of them, `text` free text; `other` lets a choice question also take free text. The issue reads as needing input, and its assignee is told, until it is answered. You need the issue's lease or write access.
|
|
312
|
+
*/
|
|
313
|
+
ask(input: T.IssuesAskInput, opts?: RequestOptions): Promise<T.IssuesAskOutput>;
|
|
270
314
|
/**
|
|
271
315
|
* Delegate an issue to yourself or your agent for a lease, or renew the lease. The issue returns to ready if the lease lapses.
|
|
272
316
|
*/
|
|
@@ -349,6 +393,10 @@ export declare class IssuesResource {
|
|
|
349
393
|
* Follow an issue to be notified of its activity, or stop following it. Needs only read access.
|
|
350
394
|
*/
|
|
351
395
|
subscribe(input: T.IssuesSubscribeInput, opts?: RequestOptions): Promise<T.IssuesSubscribeOutput>;
|
|
396
|
+
/**
|
|
397
|
+
* Take a question back from an issue, answered or not, once its answer is used or it no longer matters. You need the issue's lease or write access.
|
|
398
|
+
*/
|
|
399
|
+
unask(input: T.IssuesUnaskInput, opts?: RequestOptions): Promise<T.IssuesUnaskOutput>;
|
|
352
400
|
/**
|
|
353
401
|
* Take your reaction back from an issue.
|
|
354
402
|
*/
|
|
@@ -968,10 +1016,55 @@ export declare class RepoCiResource {
|
|
|
968
1016
|
*/
|
|
969
1017
|
stepLog(input: Omit<T.CiStepLogInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.CiStepLogOutput>;
|
|
970
1018
|
}
|
|
1019
|
+
export declare class RepoEnvResource {
|
|
1020
|
+
private readonly core;
|
|
1021
|
+
private readonly bound;
|
|
1022
|
+
constructor(core: Core, bound: RepoBound);
|
|
1023
|
+
/**
|
|
1024
|
+
* The owner's env device chain after an epoch, the device requests the caller may see, and the people the head still encrypts to who have lost access. Needs write access to the repository.
|
|
1025
|
+
*/
|
|
1026
|
+
chain(input?: Omit<T.EnvChainInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.EnvChainOutput>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Append an entry, signed by an admin device of the head, to the owner's env device chain, with every file it re-encrypts in the same transaction. Org owners only (the owner, for a personal repository).
|
|
1029
|
+
*/
|
|
1030
|
+
chainAppend(input: Omit<T.EnvChainAppendInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.EnvChainAppendOutput>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Withdraw a device request: the requester's own, or any for an admin.
|
|
1033
|
+
*/
|
|
1034
|
+
devicesCancel(input: Omit<T.EnvDevicesCancelInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.EnvDevicesCancelOutput>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Ask to add this device to the owner's env device chain; an admin device approves it after comparing the approval code both show. Needs write access to the repository.
|
|
1037
|
+
*/
|
|
1038
|
+
devicesRequest(input: Omit<T.EnvDevicesRequestInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.EnvDevicesRequestOutput>;
|
|
1039
|
+
/**
|
|
1040
|
+
* The repository's env files at their current versions: key names, signed manifests and, with `content`, the age ciphertext. Needs write access to the repository.
|
|
1041
|
+
*/
|
|
1042
|
+
list(input?: Omit<T.EnvListInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.EnvListOutput>;
|
|
1043
|
+
/**
|
|
1044
|
+
* An env file's versions, newest first: key names, epoch, author and message, never content. Needs write access.
|
|
1045
|
+
*/
|
|
1046
|
+
log(input: Omit<T.EnvLogInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.EnvLogOutput>;
|
|
1047
|
+
/**
|
|
1048
|
+
* One version of one env file with its ciphertext, such as the base of a merge. Needs write access.
|
|
1049
|
+
*/
|
|
1050
|
+
version(input: Omit<T.EnvVersionInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.EnvVersionOutput>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Store new versions of env files, all or none: each a manifest signed by a device the chain head grants, built on the file's current version, and its age ciphertext. A stale version or chain epoch answers 409. Needs write access.
|
|
1053
|
+
*/
|
|
1054
|
+
write(input: Omit<T.EnvWriteInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.EnvWriteOutput>;
|
|
1055
|
+
}
|
|
971
1056
|
export declare class RepoIssuesResource {
|
|
972
1057
|
private readonly core;
|
|
973
1058
|
private readonly bound;
|
|
974
1059
|
constructor(core: Core, bound: RepoBound);
|
|
1060
|
+
/**
|
|
1061
|
+
* Answer a question on an issue, replacing an earlier answer: `choices` are option labels (one for `single`, any for `multi`), `text` the free-text answer of a `text` question or an `other` answer. You need write access or the issue's lease.
|
|
1062
|
+
*/
|
|
1063
|
+
answer(input: Omit<T.IssuesAnswerInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.IssuesAnswerOutput>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Ask a person a question on an issue and read the answer back later from the issue's context (`asks`). `single` takes one of 2 to 10 options, `multi` any number of them, `text` free text; `other` lets a choice question also take free text. The issue reads as needing input, and its assignee is told, until it is answered. You need the issue's lease or write access.
|
|
1066
|
+
*/
|
|
1067
|
+
ask(input: Omit<T.IssuesAskInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.IssuesAskOutput>;
|
|
975
1068
|
/**
|
|
976
1069
|
* Delegate an issue to yourself or your agent for a lease, or renew the lease. The issue returns to ready if the lease lapses.
|
|
977
1070
|
*/
|
|
@@ -1050,6 +1143,10 @@ export declare class RepoIssuesResource {
|
|
|
1050
1143
|
* Follow an issue to be notified of its activity, or stop following it. Needs only read access.
|
|
1051
1144
|
*/
|
|
1052
1145
|
subscribe(input: Omit<T.IssuesSubscribeInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.IssuesSubscribeOutput>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Take a question back from an issue, answered or not, once its answer is used or it no longer matters. You need the issue's lease or write access.
|
|
1148
|
+
*/
|
|
1149
|
+
unask(input: Omit<T.IssuesUnaskInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.IssuesUnaskOutput>;
|
|
1053
1150
|
/**
|
|
1054
1151
|
* Take your reaction back from an issue.
|
|
1055
1152
|
*/
|
|
@@ -1177,6 +1274,7 @@ export declare class Repo {
|
|
|
1177
1274
|
readonly bound: RepoBound;
|
|
1178
1275
|
readonly check_runs: RepoCheck_runsResource;
|
|
1179
1276
|
readonly ci: RepoCiResource;
|
|
1277
|
+
readonly env: RepoEnvResource;
|
|
1180
1278
|
readonly issues: RepoIssuesResource;
|
|
1181
1279
|
readonly labels: RepoLabelsResource;
|
|
1182
1280
|
readonly merge_queue: RepoMerge_queueResource;
|
|
@@ -1193,6 +1291,7 @@ export type Resources = {
|
|
|
1193
1291
|
caissons: CaissonsResource;
|
|
1194
1292
|
check_runs: Check_runsResource;
|
|
1195
1293
|
ci: CiResource;
|
|
1294
|
+
env: EnvResource;
|
|
1196
1295
|
event_subscriptions: Event_subscriptionsResource;
|
|
1197
1296
|
events: EventsResource;
|
|
1198
1297
|
github: GithubResource;
|
|
@@ -2,4 +2,4 @@ export * from "./api.js";
|
|
|
2
2
|
export { type OpId, ops } from "./ops.js";
|
|
3
3
|
export * as tools from "./tools.js";
|
|
4
4
|
export type * as types from "./types.js";
|
|
5
|
-
export type { AffectedMode, AffectedStep, AgentTrackingState, Annotation, ApiError, Artifacts, AutoMerge, BatchItem, BranchUpdated, CaissonAffected, CaissonAsk, CaissonAstMatch, CaissonAstMatches, CaissonBase, CaissonBashResult, CaissonBatchResult, CaissonChange, CaissonChangeRequest, CaissonChanged, CaissonCommitted, CaissonEdit, CaissonFileRead, CaissonFilesRead, CaissonGlob, CaissonGrep, CaissonGrepCount, CaissonGrepLine, CaissonGrepMatch, CaissonLocated, CaissonLspAnswer, CaissonLspPlace, CaissonLspProgress, CaissonLspQuestion, CaissonLspRenamed, CaissonLspStopped, CaissonPage, CaissonPolicy, CaissonPull, CaissonRefused, CaissonReview, CaissonReviewStatus, CaissonRow, CaissonShipped, CaissonTested, Check, CheckRun, CheckRunAction, CheckRunApp, CheckRunApp2, CheckRunBody, CheckRunBrief, CheckRunList, CheckRunOutput, CheckRunText, CheckSource, CheckState, CheckStep, ChecksState, Claim, CloneDefaults, CloneDefaultsEdit, CloseReason, CodeLine, CodeSnippet, CommentKind, CommentProof, ConflictFile, ConflictKind, ConflictResolution, ConflictSide, ConflictTake, ContextVisibility, CreatedIssue, Delegate, DelegateAsk, DelegateRequest, DeletionScheduled, DiffSide, ErrorCode, ErrorLocation, Event, EventPage, EventSubscription, FailedStep, FileHit, FindingResolution, GithubInstallUrl, GithubInstallation, GithubRepo, GrepMode, Held, HeldDecided, HeldListing, HeldRequest, Hidden, HideReason, Inbox, InboxCounts, InboxItem, Issue, IssueComment, IssueContext, IssueDetail, IssueEvent, IssuePage, IssuePriority, IssueStage, IssueStarted, IssueState, IssueStatus, ItemRef, KeyProof, Label, LabelItem, LabelList, MeUpdated, MergeMethod, Mergeable, Milestone, MilestoneItem, MilestoneList, MilestoneState, MyIssue, MyIssues, NoContent, Opener, PathHit, PathRule, Proof, ProofSource, Pull, PullChecks, PullComment, PullCommit, PullConflicts, PullDetail, PullFile, PullHunk, PullLine, PullMerge, PullPage, PullPatchState, PullThread, QueueBatch, QueueDropped, QueueEntry, QueueStatus, Reaction, Reaction2, ReactionKind, RecoveryCodeList, RefHit, RefHit2, RefResults, RefResults2, RelatedItem, RelatedKind, RelatedLink, RelatedWork, RepoHit, RepoInfo, RepoNote, RepoNoteLimits, RepoNotes, ReviewChange, ReviewComment, ReviewFinding, ReviewFindingInput, ReviewPacket, ReviewRisk, ReviewSince, ReviewSinceFinding, Rollup, Run, RunArtifact, RunCancelled, RunEvent, RunFailures, RunId, RunJob, RunLogPage, RunLogs, RunStep, RunStepLog, RunTests, RunWait, Runs, Sandbox, SandboxBackground, SandboxCaisson, SandboxClass, SandboxExecResult, SandboxHostRef, SandboxIdle, SandboxKind, SandboxOrigin, SandboxPage, SandboxTokenMode, SandboxUsage, SandboxWait, SearchResults, SessionStep, SimilarIssue, SimilarIssues, SkippedWorkflow, SshKey, StackEntry, StopMode, SubIssue, Surface, SymbolHit, SymbolHit2, SymbolResults, SymbolResults2, TestFailure, Token, TokenCreated, TotpSetup, Verdict, Visibility, WaitAnswer, WaitTarget, WorkspaceUnread } from "./types.js";
|
|
5
|
+
export type { AffectedMode, AffectedStep, AgentTrackingState, Annotation, ApiError, Artifacts, AskKind, AskOptionInput, AutoMerge, BatchItem, BranchUpdated, CaissonAffected, CaissonAsk, CaissonAstMatch, CaissonAstMatches, CaissonBase, CaissonBashResult, CaissonBatchResult, CaissonChange, CaissonChangeRequest, CaissonChanged, CaissonCommitted, CaissonEdit, CaissonFileRead, CaissonFilesRead, CaissonGlob, CaissonGrep, CaissonGrepCount, CaissonGrepLine, CaissonGrepMatch, CaissonLocated, CaissonLspAnswer, CaissonLspPlace, CaissonLspProgress, CaissonLspQuestion, CaissonLspRenamed, CaissonLspStopped, CaissonPage, CaissonPolicy, CaissonPull, CaissonRefused, CaissonReview, CaissonReviewStatus, CaissonRow, CaissonShipped, CaissonTested, Check, CheckRun, CheckRunAction, CheckRunApp, CheckRunApp2, CheckRunBody, CheckRunBrief, CheckRunList, CheckRunOutput, CheckRunText, CheckSource, CheckState, CheckStep, ChecksState, Claim, CloneDefaults, CloneDefaultsEdit, CloseReason, CodeLine, CodeSnippet, CommentKind, CommentProof, ConflictFile, ConflictKind, ConflictResolution, ConflictSide, ConflictTake, ContextVisibility, CreatedIssue, Delegate, DelegateAsk, DelegateRequest, DeletionScheduled, DiffSide, EnvChain, EnvChainEntry, EnvDeviceRequest, EnvFile, EnvFileWrite, EnvFiles, EnvLog, EnvLogEntry, EnvPendingRemoval, EnvPerson, EnvRekeyFile, EnvRepo, EnvSigned, ErrorCode, ErrorLocation, Event, EventPage, EventSubscription, FailedStep, FileHit, FindingResolution, GithubInstallUrl, GithubInstallation, GithubRepo, GrepMode, Held, HeldDecided, HeldListing, HeldRequest, Hidden, HideReason, Inbox, InboxCounts, InboxItem, Issue, IssueAsk, IssueAskAnswer, IssueAskOption, IssueComment, IssueContext, IssueDetail, IssueEvent, IssuePage, IssuePriority, IssueStage, IssueStarted, IssueState, IssueStatus, ItemRef, KeyProof, Label, LabelItem, LabelList, MeUpdated, MergeMethod, Mergeable, Milestone, MilestoneItem, MilestoneList, MilestoneState, MyIssue, MyIssues, NoContent, Opener, PathHit, PathRule, Proof, ProofSource, Pull, PullChecks, PullComment, PullCommit, PullConflicts, PullDetail, PullFile, PullHunk, PullLine, PullMerge, PullPage, PullPatchState, PullThread, QueueBatch, QueueDropped, QueueEntry, QueueStatus, Reaction, Reaction2, ReactionKind, RecoveryCodeList, RefHit, RefHit2, RefResults, RefResults2, RelatedItem, RelatedKind, RelatedLink, RelatedWork, RepoHit, RepoInfo, RepoNote, RepoNoteLimits, RepoNotes, ReviewChange, ReviewComment, ReviewFinding, ReviewFindingInput, ReviewPacket, ReviewRisk, ReviewSince, ReviewSinceFinding, Rollup, Run, RunArtifact, RunCancelled, RunEvent, RunFailures, RunId, RunJob, RunLogPage, RunLogs, RunStep, RunStepLog, RunTests, RunWait, Runs, Sandbox, SandboxBackground, SandboxCaisson, SandboxClass, SandboxExecResult, SandboxHostRef, SandboxIdle, SandboxKind, SandboxOrigin, SandboxPage, SandboxTokenMode, SandboxUsage, SandboxWait, SearchResults, SessionStep, SimilarIssue, SimilarIssues, SkippedWorkflow, SshKey, StackEntry, StopMode, SubIssue, Surface, SymbolHit, SymbolHit2, SymbolResults, SymbolResults2, TestFailure, Token, TokenCreated, TotpSetup, Verdict, Visibility, WaitAnswer, WaitTarget, WorkspaceUnread } from "./types.js";
|