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/AGENTS.md
CHANGED
|
@@ -77,6 +77,17 @@ const repo = sf.repo("acme/api");
|
|
|
77
77
|
- `sf.ci.runs(input)`: List a repository's CI runs, newest first. Scope `repo:read`, read, retry safe.
|
|
78
78
|
- `sf.ci.stepLog(input)`: Show one step's log from line `after`, for reading on as the step runs. Scope `repo:read`, read, retry safe.
|
|
79
79
|
|
|
80
|
+
### env
|
|
81
|
+
|
|
82
|
+
- `sf.env.chain(input)`: 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. Scope `repo:read`, read, retry safe.
|
|
83
|
+
- `sf.env.chainAppend(input)`: 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). Scope `repo:write`, write, retry once.
|
|
84
|
+
- `sf.env.devicesCancel(input)`: Withdraw a device request: the requester's own, or any for an admin. Scope `repo:write`, destructive, retry idempotent.
|
|
85
|
+
- `sf.env.devicesRequest(input)`: 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. Scope `repo:write`, write, retry once.
|
|
86
|
+
- `sf.env.list(input)`: 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. Scope `repo:read`, read, retry safe.
|
|
87
|
+
- `sf.env.log(input)`: An env file's versions, newest first: key names, epoch, author and message, never content. Needs write access. Scope `repo:read`, read, retry safe.
|
|
88
|
+
- `sf.env.version(input)`: One version of one env file with its ciphertext, such as the base of a merge. Needs write access. Scope `repo:read`, read, retry safe.
|
|
89
|
+
- `sf.env.write(input)`: 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. Scope `repo:write`, write, retry once.
|
|
90
|
+
|
|
80
91
|
### event_subscriptions
|
|
81
92
|
|
|
82
93
|
- `sf.event_subscriptions.advance(input)`: Move a subscription's cursor forward to an event id the reader has finished with. It never moves back: a cursor at or behind the stored one leaves it as it is, so two readers cannot rewind each other. Scope `repo:read`, write, retry idempotent.
|
|
@@ -108,6 +119,8 @@ const repo = sf.repo("acme/api");
|
|
|
108
119
|
|
|
109
120
|
### issues
|
|
110
121
|
|
|
122
|
+
- `sf.issues.answer(input)`: 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. Scope `repo:write`, write, retry idempotent.
|
|
123
|
+
- `sf.issues.ask(input)`: 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. Scope `repo:write`, write, retry once.
|
|
111
124
|
- `sf.issues.claim(input)`: Delegate an issue to yourself or your agent for a lease, or renew the lease. The issue returns to ready if the lease lapses. Scope `repo:write`, write, retry idempotent.
|
|
112
125
|
- `sf.issues.close(input)`: Close an issue with a reason, after posting an optional comment. Without a `reason` it is `done`, or `duplicate` when `duplicateOf` names the issue it repeats. Scope `repo:write`, destructive, retry idempotent.
|
|
113
126
|
- `sf.issues.comment(input)`: Comment on an issue, or post a progress update as whoever holds its lease. Scope `repo:write`, write, retry idempotent.
|
|
@@ -128,6 +141,7 @@ const repo = sf.repo("acme/api");
|
|
|
128
141
|
- `sf.issues.similar(input)`: Check for issues the title reads like, open ones closest first, to look through before filing a duplicate. Scope `repo:read`, read, retry safe.
|
|
129
142
|
- `sf.issues.start(input)`: Claim an issue and open a caisson on its branch, or return the live caisson already working on it. Safe to repeat. Scope `repo:write`, write, retry idempotent.
|
|
130
143
|
- `sf.issues.subscribe(input)`: Follow an issue to be notified of its activity, or stop following it. Needs only read access. Scope `repo:read`, write, retry idempotent.
|
|
144
|
+
- `sf.issues.unask(input)`: 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. Scope `repo:write`, write, retry idempotent.
|
|
131
145
|
- `sf.issues.unreact(input)`: Take your reaction back from an issue. Scope `repo:read`, write, retry idempotent.
|
|
132
146
|
- `sf.issues.update(input)`: Change any field of an issue. A field left out stays; `null` clears the ones that can be cleared. An issue's author may change its words and whether it is open without write access. Scope `repo:write`, write, retry idempotent.
|
|
133
147
|
|
package/dist/index.cjs
CHANGED
|
@@ -50,6 +50,7 @@ __export(exports_src, {
|
|
|
50
50
|
ConnectionError: () => ConnectionError,
|
|
51
51
|
Core: () => Core,
|
|
52
52
|
ERROR_CODES: () => ERROR_CODES,
|
|
53
|
+
EnvResource: () => EnvResource,
|
|
53
54
|
Event_subscriptionsResource: () => Event_subscriptionsResource,
|
|
54
55
|
EventsResource: () => EventsResource,
|
|
55
56
|
GithubResource: () => GithubResource,
|
|
@@ -75,6 +76,7 @@ __export(exports_src, {
|
|
|
75
76
|
Repo: () => Repo,
|
|
76
77
|
RepoCheck_runsResource: () => RepoCheck_runsResource,
|
|
77
78
|
RepoCiResource: () => RepoCiResource,
|
|
79
|
+
RepoEnvResource: () => RepoEnvResource,
|
|
78
80
|
RepoIssuesResource: () => RepoIssuesResource,
|
|
79
81
|
RepoLabelsResource: () => RepoLabelsResource,
|
|
80
82
|
RepoMerge_queueResource: () => RepoMerge_queueResource,
|
|
@@ -604,7 +606,7 @@ async function resolveToken(host, option) {
|
|
|
604
606
|
}
|
|
605
607
|
|
|
606
608
|
// src/core/version.ts
|
|
607
|
-
var VERSION = "0.
|
|
609
|
+
var VERSION = "0.3.1";
|
|
608
610
|
var API_VERSION = "2026-12-01";
|
|
609
611
|
|
|
610
612
|
// src/core/client.ts
|
|
@@ -1523,6 +1525,110 @@ var ops = {
|
|
|
1523
1525
|
long: false,
|
|
1524
1526
|
paginated: false
|
|
1525
1527
|
},
|
|
1528
|
+
"env.chain": {
|
|
1529
|
+
id: "env.chain",
|
|
1530
|
+
method: "GET",
|
|
1531
|
+
path: "/api/repos/{owner}/{repo}/env/chain",
|
|
1532
|
+
pathParams: ["owner", "repo"],
|
|
1533
|
+
queryParams: ["since"],
|
|
1534
|
+
bodyParams: [],
|
|
1535
|
+
effect: "read",
|
|
1536
|
+
retry: "safe",
|
|
1537
|
+
held: false,
|
|
1538
|
+
long: false,
|
|
1539
|
+
paginated: false
|
|
1540
|
+
},
|
|
1541
|
+
"env.chain.append": {
|
|
1542
|
+
id: "env.chain.append",
|
|
1543
|
+
method: "POST",
|
|
1544
|
+
path: "/api/repos/{owner}/{repo}/env/chain",
|
|
1545
|
+
pathParams: ["owner", "repo"],
|
|
1546
|
+
queryParams: [],
|
|
1547
|
+
bodyParams: ["entry", "files"],
|
|
1548
|
+
effect: "write",
|
|
1549
|
+
retry: "none",
|
|
1550
|
+
held: false,
|
|
1551
|
+
long: false,
|
|
1552
|
+
paginated: false
|
|
1553
|
+
},
|
|
1554
|
+
"env.devices.cancel": {
|
|
1555
|
+
id: "env.devices.cancel",
|
|
1556
|
+
method: "DELETE",
|
|
1557
|
+
path: "/api/repos/{owner}/{repo}/env/devices/{id}",
|
|
1558
|
+
pathParams: ["owner", "repo", "id"],
|
|
1559
|
+
queryParams: [],
|
|
1560
|
+
bodyParams: [],
|
|
1561
|
+
effect: "delete",
|
|
1562
|
+
retry: "idempotent",
|
|
1563
|
+
held: false,
|
|
1564
|
+
long: false,
|
|
1565
|
+
paginated: false
|
|
1566
|
+
},
|
|
1567
|
+
"env.devices.request": {
|
|
1568
|
+
id: "env.devices.request",
|
|
1569
|
+
method: "POST",
|
|
1570
|
+
path: "/api/repos/{owner}/{repo}/env/devices",
|
|
1571
|
+
pathParams: ["owner", "repo"],
|
|
1572
|
+
queryParams: [],
|
|
1573
|
+
bodyParams: ["name", "signKey", "ageRecipient"],
|
|
1574
|
+
effect: "write",
|
|
1575
|
+
retry: "none",
|
|
1576
|
+
held: false,
|
|
1577
|
+
long: false,
|
|
1578
|
+
paginated: false
|
|
1579
|
+
},
|
|
1580
|
+
"env.list": {
|
|
1581
|
+
id: "env.list",
|
|
1582
|
+
method: "GET",
|
|
1583
|
+
path: "/api/repos/{owner}/{repo}/env",
|
|
1584
|
+
pathParams: ["owner", "repo"],
|
|
1585
|
+
queryParams: ["content"],
|
|
1586
|
+
bodyParams: [],
|
|
1587
|
+
effect: "read",
|
|
1588
|
+
retry: "safe",
|
|
1589
|
+
held: false,
|
|
1590
|
+
long: false,
|
|
1591
|
+
paginated: false
|
|
1592
|
+
},
|
|
1593
|
+
"env.log": {
|
|
1594
|
+
id: "env.log",
|
|
1595
|
+
method: "GET",
|
|
1596
|
+
path: "/api/repos/{owner}/{repo}/env/log",
|
|
1597
|
+
pathParams: ["owner", "repo"],
|
|
1598
|
+
queryParams: ["path"],
|
|
1599
|
+
bodyParams: [],
|
|
1600
|
+
effect: "read",
|
|
1601
|
+
retry: "safe",
|
|
1602
|
+
held: false,
|
|
1603
|
+
long: false,
|
|
1604
|
+
paginated: false
|
|
1605
|
+
},
|
|
1606
|
+
"env.version": {
|
|
1607
|
+
id: "env.version",
|
|
1608
|
+
method: "GET",
|
|
1609
|
+
path: "/api/repos/{owner}/{repo}/env/version",
|
|
1610
|
+
pathParams: ["owner", "repo"],
|
|
1611
|
+
queryParams: ["path", "version"],
|
|
1612
|
+
bodyParams: [],
|
|
1613
|
+
effect: "read",
|
|
1614
|
+
retry: "safe",
|
|
1615
|
+
held: false,
|
|
1616
|
+
long: false,
|
|
1617
|
+
paginated: false
|
|
1618
|
+
},
|
|
1619
|
+
"env.write": {
|
|
1620
|
+
id: "env.write",
|
|
1621
|
+
method: "POST",
|
|
1622
|
+
path: "/api/repos/{owner}/{repo}/env/files",
|
|
1623
|
+
pathParams: ["owner", "repo"],
|
|
1624
|
+
queryParams: [],
|
|
1625
|
+
bodyParams: ["files", "message"],
|
|
1626
|
+
effect: "write",
|
|
1627
|
+
retry: "none",
|
|
1628
|
+
held: false,
|
|
1629
|
+
long: false,
|
|
1630
|
+
paginated: false
|
|
1631
|
+
},
|
|
1526
1632
|
"event_subscriptions.advance": {
|
|
1527
1633
|
id: "event_subscriptions.advance",
|
|
1528
1634
|
method: "POST",
|
|
@@ -1705,6 +1811,32 @@ var ops = {
|
|
|
1705
1811
|
long: false,
|
|
1706
1812
|
paginated: false
|
|
1707
1813
|
},
|
|
1814
|
+
"issues.answer": {
|
|
1815
|
+
id: "issues.answer",
|
|
1816
|
+
method: "POST",
|
|
1817
|
+
path: "/api/repos/{owner}/{repo}/issues/{number}/asks/{id}/answer",
|
|
1818
|
+
pathParams: ["owner", "repo", "number", "id"],
|
|
1819
|
+
queryParams: [],
|
|
1820
|
+
bodyParams: ["choices", "text"],
|
|
1821
|
+
effect: "write",
|
|
1822
|
+
retry: "idempotent",
|
|
1823
|
+
held: false,
|
|
1824
|
+
long: false,
|
|
1825
|
+
paginated: false
|
|
1826
|
+
},
|
|
1827
|
+
"issues.ask": {
|
|
1828
|
+
id: "issues.ask",
|
|
1829
|
+
method: "POST",
|
|
1830
|
+
path: "/api/repos/{owner}/{repo}/issues/{number}/asks",
|
|
1831
|
+
pathParams: ["owner", "repo", "number"],
|
|
1832
|
+
queryParams: [],
|
|
1833
|
+
bodyParams: ["kind", "text", "options", "recommended", "other"],
|
|
1834
|
+
effect: "write",
|
|
1835
|
+
retry: "none",
|
|
1836
|
+
held: false,
|
|
1837
|
+
long: false,
|
|
1838
|
+
paginated: false
|
|
1839
|
+
},
|
|
1708
1840
|
"issues.claim": {
|
|
1709
1841
|
id: "issues.claim",
|
|
1710
1842
|
method: "POST",
|
|
@@ -1965,6 +2097,19 @@ var ops = {
|
|
|
1965
2097
|
long: false,
|
|
1966
2098
|
paginated: false
|
|
1967
2099
|
},
|
|
2100
|
+
"issues.unask": {
|
|
2101
|
+
id: "issues.unask",
|
|
2102
|
+
method: "DELETE",
|
|
2103
|
+
path: "/api/repos/{owner}/{repo}/issues/{number}/asks/{id}",
|
|
2104
|
+
pathParams: ["owner", "repo", "number", "id"],
|
|
2105
|
+
queryParams: [],
|
|
2106
|
+
bodyParams: [],
|
|
2107
|
+
effect: "write",
|
|
2108
|
+
retry: "idempotent",
|
|
2109
|
+
held: false,
|
|
2110
|
+
long: false,
|
|
2111
|
+
paginated: false
|
|
2112
|
+
},
|
|
1968
2113
|
"issues.unreact": {
|
|
1969
2114
|
id: "issues.unreact",
|
|
1970
2115
|
method: "DELETE",
|
|
@@ -2889,6 +3034,37 @@ class CiResource {
|
|
|
2889
3034
|
}
|
|
2890
3035
|
}
|
|
2891
3036
|
|
|
3037
|
+
class EnvResource {
|
|
3038
|
+
core;
|
|
3039
|
+
constructor(core) {
|
|
3040
|
+
this.core = core;
|
|
3041
|
+
}
|
|
3042
|
+
chain(input, opts) {
|
|
3043
|
+
return this.core.request(ops["env.chain"], input, opts);
|
|
3044
|
+
}
|
|
3045
|
+
chainAppend(input, opts) {
|
|
3046
|
+
return this.core.request(ops["env.chain.append"], input, opts);
|
|
3047
|
+
}
|
|
3048
|
+
devicesCancel(input, opts) {
|
|
3049
|
+
return this.core.request(ops["env.devices.cancel"], input, opts);
|
|
3050
|
+
}
|
|
3051
|
+
devicesRequest(input, opts) {
|
|
3052
|
+
return this.core.request(ops["env.devices.request"], input, opts);
|
|
3053
|
+
}
|
|
3054
|
+
list(input, opts) {
|
|
3055
|
+
return this.core.request(ops["env.list"], input, opts);
|
|
3056
|
+
}
|
|
3057
|
+
log(input, opts) {
|
|
3058
|
+
return this.core.request(ops["env.log"], input, opts);
|
|
3059
|
+
}
|
|
3060
|
+
version(input, opts) {
|
|
3061
|
+
return this.core.request(ops["env.version"], input, opts);
|
|
3062
|
+
}
|
|
3063
|
+
write(input, opts) {
|
|
3064
|
+
return this.core.request(ops["env.write"], input, opts);
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
|
|
2892
3068
|
class Event_subscriptionsResource {
|
|
2893
3069
|
core;
|
|
2894
3070
|
constructor(core) {
|
|
@@ -2971,6 +3147,12 @@ class IssuesResource {
|
|
|
2971
3147
|
constructor(core) {
|
|
2972
3148
|
this.core = core;
|
|
2973
3149
|
}
|
|
3150
|
+
answer(input, opts) {
|
|
3151
|
+
return this.core.request(ops["issues.answer"], input, opts);
|
|
3152
|
+
}
|
|
3153
|
+
ask(input, opts) {
|
|
3154
|
+
return this.core.request(ops["issues.ask"], input, opts);
|
|
3155
|
+
}
|
|
2974
3156
|
claim(input, opts) {
|
|
2975
3157
|
return this.core.request(ops["issues.claim"], input, opts);
|
|
2976
3158
|
}
|
|
@@ -3032,6 +3214,9 @@ class IssuesResource {
|
|
|
3032
3214
|
subscribe(input, opts) {
|
|
3033
3215
|
return this.core.request(ops["issues.subscribe"], input, opts);
|
|
3034
3216
|
}
|
|
3217
|
+
unask(input, opts) {
|
|
3218
|
+
return this.core.request(ops["issues.unask"], input, opts);
|
|
3219
|
+
}
|
|
3035
3220
|
unreact(input, opts) {
|
|
3036
3221
|
return this.core.request(ops["issues.unreact"], input, opts);
|
|
3037
3222
|
}
|
|
@@ -3577,6 +3762,39 @@ class RepoCiResource {
|
|
|
3577
3762
|
}
|
|
3578
3763
|
}
|
|
3579
3764
|
|
|
3765
|
+
class RepoEnvResource {
|
|
3766
|
+
core;
|
|
3767
|
+
bound;
|
|
3768
|
+
constructor(core, bound) {
|
|
3769
|
+
this.core = core;
|
|
3770
|
+
this.bound = bound;
|
|
3771
|
+
}
|
|
3772
|
+
chain(input = {}, opts) {
|
|
3773
|
+
return this.core.request(ops["env.chain"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3774
|
+
}
|
|
3775
|
+
chainAppend(input, opts) {
|
|
3776
|
+
return this.core.request(ops["env.chain.append"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3777
|
+
}
|
|
3778
|
+
devicesCancel(input, opts) {
|
|
3779
|
+
return this.core.request(ops["env.devices.cancel"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3780
|
+
}
|
|
3781
|
+
devicesRequest(input, opts) {
|
|
3782
|
+
return this.core.request(ops["env.devices.request"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3783
|
+
}
|
|
3784
|
+
list(input = {}, opts) {
|
|
3785
|
+
return this.core.request(ops["env.list"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3786
|
+
}
|
|
3787
|
+
log(input, opts) {
|
|
3788
|
+
return this.core.request(ops["env.log"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3789
|
+
}
|
|
3790
|
+
version(input, opts) {
|
|
3791
|
+
return this.core.request(ops["env.version"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3792
|
+
}
|
|
3793
|
+
write(input, opts) {
|
|
3794
|
+
return this.core.request(ops["env.write"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3797
|
+
|
|
3580
3798
|
class RepoIssuesResource {
|
|
3581
3799
|
core;
|
|
3582
3800
|
bound;
|
|
@@ -3584,6 +3802,12 @@ class RepoIssuesResource {
|
|
|
3584
3802
|
this.core = core;
|
|
3585
3803
|
this.bound = bound;
|
|
3586
3804
|
}
|
|
3805
|
+
answer(input, opts) {
|
|
3806
|
+
return this.core.request(ops["issues.answer"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3807
|
+
}
|
|
3808
|
+
ask(input, opts) {
|
|
3809
|
+
return this.core.request(ops["issues.ask"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3810
|
+
}
|
|
3587
3811
|
claim(input, opts) {
|
|
3588
3812
|
return this.core.request(ops["issues.claim"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3589
3813
|
}
|
|
@@ -3642,6 +3866,9 @@ class RepoIssuesResource {
|
|
|
3642
3866
|
subscribe(input, opts) {
|
|
3643
3867
|
return this.core.request(ops["issues.subscribe"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3644
3868
|
}
|
|
3869
|
+
unask(input, opts) {
|
|
3870
|
+
return this.core.request(ops["issues.unask"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3871
|
+
}
|
|
3645
3872
|
unreact(input, opts) {
|
|
3646
3873
|
return this.core.request(ops["issues.unreact"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3647
3874
|
}
|
|
@@ -3776,6 +4003,7 @@ class Repo {
|
|
|
3776
4003
|
bound;
|
|
3777
4004
|
check_runs;
|
|
3778
4005
|
ci;
|
|
4006
|
+
env;
|
|
3779
4007
|
issues;
|
|
3780
4008
|
labels;
|
|
3781
4009
|
merge_queue;
|
|
@@ -3789,6 +4017,7 @@ class Repo {
|
|
|
3789
4017
|
this.bound = bound;
|
|
3790
4018
|
this.check_runs = new RepoCheck_runsResource(core, bound);
|
|
3791
4019
|
this.ci = new RepoCiResource(core, bound);
|
|
4020
|
+
this.env = new RepoEnvResource(core, bound);
|
|
3792
4021
|
this.issues = new RepoIssuesResource(core, bound);
|
|
3793
4022
|
this.labels = new RepoLabelsResource(core, bound);
|
|
3794
4023
|
this.merge_queue = new RepoMerge_queueResource(core, bound);
|
|
@@ -3810,6 +4039,7 @@ function resources(core) {
|
|
|
3810
4039
|
caissons: new CaissonsResource(core),
|
|
3811
4040
|
check_runs: new Check_runsResource(core),
|
|
3812
4041
|
ci: new CiResource(core),
|
|
4042
|
+
env: new EnvResource(core),
|
|
3813
4043
|
event_subscriptions: new Event_subscriptionsResource(core),
|
|
3814
4044
|
events: new EventsResource(core),
|
|
3815
4045
|
github: new GithubResource(core),
|
package/dist/index.js
CHANGED
|
@@ -500,7 +500,7 @@ async function resolveToken(host, option) {
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
// src/core/version.ts
|
|
503
|
-
var VERSION = "0.
|
|
503
|
+
var VERSION = "0.3.1";
|
|
504
504
|
var API_VERSION = "2026-12-01";
|
|
505
505
|
|
|
506
506
|
// src/core/client.ts
|
|
@@ -1419,6 +1419,110 @@ var ops = {
|
|
|
1419
1419
|
long: false,
|
|
1420
1420
|
paginated: false
|
|
1421
1421
|
},
|
|
1422
|
+
"env.chain": {
|
|
1423
|
+
id: "env.chain",
|
|
1424
|
+
method: "GET",
|
|
1425
|
+
path: "/api/repos/{owner}/{repo}/env/chain",
|
|
1426
|
+
pathParams: ["owner", "repo"],
|
|
1427
|
+
queryParams: ["since"],
|
|
1428
|
+
bodyParams: [],
|
|
1429
|
+
effect: "read",
|
|
1430
|
+
retry: "safe",
|
|
1431
|
+
held: false,
|
|
1432
|
+
long: false,
|
|
1433
|
+
paginated: false
|
|
1434
|
+
},
|
|
1435
|
+
"env.chain.append": {
|
|
1436
|
+
id: "env.chain.append",
|
|
1437
|
+
method: "POST",
|
|
1438
|
+
path: "/api/repos/{owner}/{repo}/env/chain",
|
|
1439
|
+
pathParams: ["owner", "repo"],
|
|
1440
|
+
queryParams: [],
|
|
1441
|
+
bodyParams: ["entry", "files"],
|
|
1442
|
+
effect: "write",
|
|
1443
|
+
retry: "none",
|
|
1444
|
+
held: false,
|
|
1445
|
+
long: false,
|
|
1446
|
+
paginated: false
|
|
1447
|
+
},
|
|
1448
|
+
"env.devices.cancel": {
|
|
1449
|
+
id: "env.devices.cancel",
|
|
1450
|
+
method: "DELETE",
|
|
1451
|
+
path: "/api/repos/{owner}/{repo}/env/devices/{id}",
|
|
1452
|
+
pathParams: ["owner", "repo", "id"],
|
|
1453
|
+
queryParams: [],
|
|
1454
|
+
bodyParams: [],
|
|
1455
|
+
effect: "delete",
|
|
1456
|
+
retry: "idempotent",
|
|
1457
|
+
held: false,
|
|
1458
|
+
long: false,
|
|
1459
|
+
paginated: false
|
|
1460
|
+
},
|
|
1461
|
+
"env.devices.request": {
|
|
1462
|
+
id: "env.devices.request",
|
|
1463
|
+
method: "POST",
|
|
1464
|
+
path: "/api/repos/{owner}/{repo}/env/devices",
|
|
1465
|
+
pathParams: ["owner", "repo"],
|
|
1466
|
+
queryParams: [],
|
|
1467
|
+
bodyParams: ["name", "signKey", "ageRecipient"],
|
|
1468
|
+
effect: "write",
|
|
1469
|
+
retry: "none",
|
|
1470
|
+
held: false,
|
|
1471
|
+
long: false,
|
|
1472
|
+
paginated: false
|
|
1473
|
+
},
|
|
1474
|
+
"env.list": {
|
|
1475
|
+
id: "env.list",
|
|
1476
|
+
method: "GET",
|
|
1477
|
+
path: "/api/repos/{owner}/{repo}/env",
|
|
1478
|
+
pathParams: ["owner", "repo"],
|
|
1479
|
+
queryParams: ["content"],
|
|
1480
|
+
bodyParams: [],
|
|
1481
|
+
effect: "read",
|
|
1482
|
+
retry: "safe",
|
|
1483
|
+
held: false,
|
|
1484
|
+
long: false,
|
|
1485
|
+
paginated: false
|
|
1486
|
+
},
|
|
1487
|
+
"env.log": {
|
|
1488
|
+
id: "env.log",
|
|
1489
|
+
method: "GET",
|
|
1490
|
+
path: "/api/repos/{owner}/{repo}/env/log",
|
|
1491
|
+
pathParams: ["owner", "repo"],
|
|
1492
|
+
queryParams: ["path"],
|
|
1493
|
+
bodyParams: [],
|
|
1494
|
+
effect: "read",
|
|
1495
|
+
retry: "safe",
|
|
1496
|
+
held: false,
|
|
1497
|
+
long: false,
|
|
1498
|
+
paginated: false
|
|
1499
|
+
},
|
|
1500
|
+
"env.version": {
|
|
1501
|
+
id: "env.version",
|
|
1502
|
+
method: "GET",
|
|
1503
|
+
path: "/api/repos/{owner}/{repo}/env/version",
|
|
1504
|
+
pathParams: ["owner", "repo"],
|
|
1505
|
+
queryParams: ["path", "version"],
|
|
1506
|
+
bodyParams: [],
|
|
1507
|
+
effect: "read",
|
|
1508
|
+
retry: "safe",
|
|
1509
|
+
held: false,
|
|
1510
|
+
long: false,
|
|
1511
|
+
paginated: false
|
|
1512
|
+
},
|
|
1513
|
+
"env.write": {
|
|
1514
|
+
id: "env.write",
|
|
1515
|
+
method: "POST",
|
|
1516
|
+
path: "/api/repos/{owner}/{repo}/env/files",
|
|
1517
|
+
pathParams: ["owner", "repo"],
|
|
1518
|
+
queryParams: [],
|
|
1519
|
+
bodyParams: ["files", "message"],
|
|
1520
|
+
effect: "write",
|
|
1521
|
+
retry: "none",
|
|
1522
|
+
held: false,
|
|
1523
|
+
long: false,
|
|
1524
|
+
paginated: false
|
|
1525
|
+
},
|
|
1422
1526
|
"event_subscriptions.advance": {
|
|
1423
1527
|
id: "event_subscriptions.advance",
|
|
1424
1528
|
method: "POST",
|
|
@@ -1601,6 +1705,32 @@ var ops = {
|
|
|
1601
1705
|
long: false,
|
|
1602
1706
|
paginated: false
|
|
1603
1707
|
},
|
|
1708
|
+
"issues.answer": {
|
|
1709
|
+
id: "issues.answer",
|
|
1710
|
+
method: "POST",
|
|
1711
|
+
path: "/api/repos/{owner}/{repo}/issues/{number}/asks/{id}/answer",
|
|
1712
|
+
pathParams: ["owner", "repo", "number", "id"],
|
|
1713
|
+
queryParams: [],
|
|
1714
|
+
bodyParams: ["choices", "text"],
|
|
1715
|
+
effect: "write",
|
|
1716
|
+
retry: "idempotent",
|
|
1717
|
+
held: false,
|
|
1718
|
+
long: false,
|
|
1719
|
+
paginated: false
|
|
1720
|
+
},
|
|
1721
|
+
"issues.ask": {
|
|
1722
|
+
id: "issues.ask",
|
|
1723
|
+
method: "POST",
|
|
1724
|
+
path: "/api/repos/{owner}/{repo}/issues/{number}/asks",
|
|
1725
|
+
pathParams: ["owner", "repo", "number"],
|
|
1726
|
+
queryParams: [],
|
|
1727
|
+
bodyParams: ["kind", "text", "options", "recommended", "other"],
|
|
1728
|
+
effect: "write",
|
|
1729
|
+
retry: "none",
|
|
1730
|
+
held: false,
|
|
1731
|
+
long: false,
|
|
1732
|
+
paginated: false
|
|
1733
|
+
},
|
|
1604
1734
|
"issues.claim": {
|
|
1605
1735
|
id: "issues.claim",
|
|
1606
1736
|
method: "POST",
|
|
@@ -1861,6 +1991,19 @@ var ops = {
|
|
|
1861
1991
|
long: false,
|
|
1862
1992
|
paginated: false
|
|
1863
1993
|
},
|
|
1994
|
+
"issues.unask": {
|
|
1995
|
+
id: "issues.unask",
|
|
1996
|
+
method: "DELETE",
|
|
1997
|
+
path: "/api/repos/{owner}/{repo}/issues/{number}/asks/{id}",
|
|
1998
|
+
pathParams: ["owner", "repo", "number", "id"],
|
|
1999
|
+
queryParams: [],
|
|
2000
|
+
bodyParams: [],
|
|
2001
|
+
effect: "write",
|
|
2002
|
+
retry: "idempotent",
|
|
2003
|
+
held: false,
|
|
2004
|
+
long: false,
|
|
2005
|
+
paginated: false
|
|
2006
|
+
},
|
|
1864
2007
|
"issues.unreact": {
|
|
1865
2008
|
id: "issues.unreact",
|
|
1866
2009
|
method: "DELETE",
|
|
@@ -2785,6 +2928,37 @@ class CiResource {
|
|
|
2785
2928
|
}
|
|
2786
2929
|
}
|
|
2787
2930
|
|
|
2931
|
+
class EnvResource {
|
|
2932
|
+
core;
|
|
2933
|
+
constructor(core) {
|
|
2934
|
+
this.core = core;
|
|
2935
|
+
}
|
|
2936
|
+
chain(input, opts) {
|
|
2937
|
+
return this.core.request(ops["env.chain"], input, opts);
|
|
2938
|
+
}
|
|
2939
|
+
chainAppend(input, opts) {
|
|
2940
|
+
return this.core.request(ops["env.chain.append"], input, opts);
|
|
2941
|
+
}
|
|
2942
|
+
devicesCancel(input, opts) {
|
|
2943
|
+
return this.core.request(ops["env.devices.cancel"], input, opts);
|
|
2944
|
+
}
|
|
2945
|
+
devicesRequest(input, opts) {
|
|
2946
|
+
return this.core.request(ops["env.devices.request"], input, opts);
|
|
2947
|
+
}
|
|
2948
|
+
list(input, opts) {
|
|
2949
|
+
return this.core.request(ops["env.list"], input, opts);
|
|
2950
|
+
}
|
|
2951
|
+
log(input, opts) {
|
|
2952
|
+
return this.core.request(ops["env.log"], input, opts);
|
|
2953
|
+
}
|
|
2954
|
+
version(input, opts) {
|
|
2955
|
+
return this.core.request(ops["env.version"], input, opts);
|
|
2956
|
+
}
|
|
2957
|
+
write(input, opts) {
|
|
2958
|
+
return this.core.request(ops["env.write"], input, opts);
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2788
2962
|
class Event_subscriptionsResource {
|
|
2789
2963
|
core;
|
|
2790
2964
|
constructor(core) {
|
|
@@ -2867,6 +3041,12 @@ class IssuesResource {
|
|
|
2867
3041
|
constructor(core) {
|
|
2868
3042
|
this.core = core;
|
|
2869
3043
|
}
|
|
3044
|
+
answer(input, opts) {
|
|
3045
|
+
return this.core.request(ops["issues.answer"], input, opts);
|
|
3046
|
+
}
|
|
3047
|
+
ask(input, opts) {
|
|
3048
|
+
return this.core.request(ops["issues.ask"], input, opts);
|
|
3049
|
+
}
|
|
2870
3050
|
claim(input, opts) {
|
|
2871
3051
|
return this.core.request(ops["issues.claim"], input, opts);
|
|
2872
3052
|
}
|
|
@@ -2928,6 +3108,9 @@ class IssuesResource {
|
|
|
2928
3108
|
subscribe(input, opts) {
|
|
2929
3109
|
return this.core.request(ops["issues.subscribe"], input, opts);
|
|
2930
3110
|
}
|
|
3111
|
+
unask(input, opts) {
|
|
3112
|
+
return this.core.request(ops["issues.unask"], input, opts);
|
|
3113
|
+
}
|
|
2931
3114
|
unreact(input, opts) {
|
|
2932
3115
|
return this.core.request(ops["issues.unreact"], input, opts);
|
|
2933
3116
|
}
|
|
@@ -3473,6 +3656,39 @@ class RepoCiResource {
|
|
|
3473
3656
|
}
|
|
3474
3657
|
}
|
|
3475
3658
|
|
|
3659
|
+
class RepoEnvResource {
|
|
3660
|
+
core;
|
|
3661
|
+
bound;
|
|
3662
|
+
constructor(core, bound) {
|
|
3663
|
+
this.core = core;
|
|
3664
|
+
this.bound = bound;
|
|
3665
|
+
}
|
|
3666
|
+
chain(input = {}, opts) {
|
|
3667
|
+
return this.core.request(ops["env.chain"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3668
|
+
}
|
|
3669
|
+
chainAppend(input, opts) {
|
|
3670
|
+
return this.core.request(ops["env.chain.append"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3671
|
+
}
|
|
3672
|
+
devicesCancel(input, opts) {
|
|
3673
|
+
return this.core.request(ops["env.devices.cancel"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3674
|
+
}
|
|
3675
|
+
devicesRequest(input, opts) {
|
|
3676
|
+
return this.core.request(ops["env.devices.request"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3677
|
+
}
|
|
3678
|
+
list(input = {}, opts) {
|
|
3679
|
+
return this.core.request(ops["env.list"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3680
|
+
}
|
|
3681
|
+
log(input, opts) {
|
|
3682
|
+
return this.core.request(ops["env.log"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3683
|
+
}
|
|
3684
|
+
version(input, opts) {
|
|
3685
|
+
return this.core.request(ops["env.version"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3686
|
+
}
|
|
3687
|
+
write(input, opts) {
|
|
3688
|
+
return this.core.request(ops["env.write"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3689
|
+
}
|
|
3690
|
+
}
|
|
3691
|
+
|
|
3476
3692
|
class RepoIssuesResource {
|
|
3477
3693
|
core;
|
|
3478
3694
|
bound;
|
|
@@ -3480,6 +3696,12 @@ class RepoIssuesResource {
|
|
|
3480
3696
|
this.core = core;
|
|
3481
3697
|
this.bound = bound;
|
|
3482
3698
|
}
|
|
3699
|
+
answer(input, opts) {
|
|
3700
|
+
return this.core.request(ops["issues.answer"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3701
|
+
}
|
|
3702
|
+
ask(input, opts) {
|
|
3703
|
+
return this.core.request(ops["issues.ask"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3704
|
+
}
|
|
3483
3705
|
claim(input, opts) {
|
|
3484
3706
|
return this.core.request(ops["issues.claim"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3485
3707
|
}
|
|
@@ -3538,6 +3760,9 @@ class RepoIssuesResource {
|
|
|
3538
3760
|
subscribe(input, opts) {
|
|
3539
3761
|
return this.core.request(ops["issues.subscribe"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3540
3762
|
}
|
|
3763
|
+
unask(input, opts) {
|
|
3764
|
+
return this.core.request(ops["issues.unask"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3765
|
+
}
|
|
3541
3766
|
unreact(input, opts) {
|
|
3542
3767
|
return this.core.request(ops["issues.unreact"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3543
3768
|
}
|
|
@@ -3672,6 +3897,7 @@ class Repo {
|
|
|
3672
3897
|
bound;
|
|
3673
3898
|
check_runs;
|
|
3674
3899
|
ci;
|
|
3900
|
+
env;
|
|
3675
3901
|
issues;
|
|
3676
3902
|
labels;
|
|
3677
3903
|
merge_queue;
|
|
@@ -3685,6 +3911,7 @@ class Repo {
|
|
|
3685
3911
|
this.bound = bound;
|
|
3686
3912
|
this.check_runs = new RepoCheck_runsResource(core, bound);
|
|
3687
3913
|
this.ci = new RepoCiResource(core, bound);
|
|
3914
|
+
this.env = new RepoEnvResource(core, bound);
|
|
3688
3915
|
this.issues = new RepoIssuesResource(core, bound);
|
|
3689
3916
|
this.labels = new RepoLabelsResource(core, bound);
|
|
3690
3917
|
this.merge_queue = new RepoMerge_queueResource(core, bound);
|
|
@@ -3706,6 +3933,7 @@ function resources(core) {
|
|
|
3706
3933
|
caissons: new CaissonsResource(core),
|
|
3707
3934
|
check_runs: new Check_runsResource(core),
|
|
3708
3935
|
ci: new CiResource(core),
|
|
3936
|
+
env: new EnvResource(core),
|
|
3709
3937
|
event_subscriptions: new Event_subscriptionsResource(core),
|
|
3710
3938
|
events: new EventsResource(core),
|
|
3711
3939
|
github: new GithubResource(core),
|
|
@@ -3761,6 +3989,7 @@ export {
|
|
|
3761
3989
|
ConnectionError,
|
|
3762
3990
|
Core,
|
|
3763
3991
|
ERROR_CODES,
|
|
3992
|
+
EnvResource,
|
|
3764
3993
|
Event_subscriptionsResource,
|
|
3765
3994
|
EventsResource,
|
|
3766
3995
|
GithubResource,
|
|
@@ -3786,6 +4015,7 @@ export {
|
|
|
3786
4015
|
Repo,
|
|
3787
4016
|
RepoCheck_runsResource,
|
|
3788
4017
|
RepoCiResource,
|
|
4018
|
+
RepoEnvResource,
|
|
3789
4019
|
RepoIssuesResource,
|
|
3790
4020
|
RepoLabelsResource,
|
|
3791
4021
|
RepoMerge_queueResource,
|