sailfork 0.3.0 → 0.3.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.
- package/AGENTS.md +11 -0
- package/README.md +5 -2
- package/dist/index.cjs +174 -1
- package/dist/index.js +174 -1
- package/dist/tools.cjs +104 -0
- package/dist/tools.js +104 -0
- package/dist/types/core/version.d.ts +1 -1
- package/dist/types/generated/api.d.ts +75 -0
- package/dist/types/generated/index.d.ts +1 -1
- package/dist/types/generated/ops.d.ts +104 -0
- package/dist/types/generated/types.d.ts +214 -0
- package/dist/types-cjs/core/version.d.ts +1 -1
- package/dist/types-cjs/generated/api.d.ts +75 -0
- package/dist/types-cjs/generated/index.d.ts +1 -1
- package/dist/types-cjs/generated/ops.d.ts +104 -0
- package/dist/types-cjs/generated/types.d.ts +214 -0
- package/llms.txt +11 -0
- package/package.json +25 -2
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.
|
package/README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
# sailfork
|
|
2
2
|
|
|
3
|
-
The
|
|
4
|
-
|
|
3
|
+
The TypeScript SDK for [Sailfork](https://sailfork.com), git hosting built for AI coding agents: repositories, pull
|
|
4
|
+
requests, code review, issues, CI and sandboxes from one typed client. Full reference at
|
|
5
|
+
[sailfork.com/docs/sdk](https://sailfork.com/docs/sdk).
|
|
6
|
+
|
|
7
|
+
Zero runtime dependencies; uses the global `fetch`. ESM and CJS, Node 20+, Bun, Deno and Workers.
|
|
5
8
|
|
|
6
9
|
```sh
|
|
7
10
|
bun add sailfork # or npm install sailfork
|
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.3.
|
|
609
|
+
var VERSION = "0.3.2";
|
|
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",
|
|
@@ -2928,6 +3034,37 @@ class CiResource {
|
|
|
2928
3034
|
}
|
|
2929
3035
|
}
|
|
2930
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
|
+
|
|
2931
3068
|
class Event_subscriptionsResource {
|
|
2932
3069
|
core;
|
|
2933
3070
|
constructor(core) {
|
|
@@ -3625,6 +3762,39 @@ class RepoCiResource {
|
|
|
3625
3762
|
}
|
|
3626
3763
|
}
|
|
3627
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
|
+
|
|
3628
3798
|
class RepoIssuesResource {
|
|
3629
3799
|
core;
|
|
3630
3800
|
bound;
|
|
@@ -3833,6 +4003,7 @@ class Repo {
|
|
|
3833
4003
|
bound;
|
|
3834
4004
|
check_runs;
|
|
3835
4005
|
ci;
|
|
4006
|
+
env;
|
|
3836
4007
|
issues;
|
|
3837
4008
|
labels;
|
|
3838
4009
|
merge_queue;
|
|
@@ -3846,6 +4017,7 @@ class Repo {
|
|
|
3846
4017
|
this.bound = bound;
|
|
3847
4018
|
this.check_runs = new RepoCheck_runsResource(core, bound);
|
|
3848
4019
|
this.ci = new RepoCiResource(core, bound);
|
|
4020
|
+
this.env = new RepoEnvResource(core, bound);
|
|
3849
4021
|
this.issues = new RepoIssuesResource(core, bound);
|
|
3850
4022
|
this.labels = new RepoLabelsResource(core, bound);
|
|
3851
4023
|
this.merge_queue = new RepoMerge_queueResource(core, bound);
|
|
@@ -3867,6 +4039,7 @@ function resources(core) {
|
|
|
3867
4039
|
caissons: new CaissonsResource(core),
|
|
3868
4040
|
check_runs: new Check_runsResource(core),
|
|
3869
4041
|
ci: new CiResource(core),
|
|
4042
|
+
env: new EnvResource(core),
|
|
3870
4043
|
event_subscriptions: new Event_subscriptionsResource(core),
|
|
3871
4044
|
events: new EventsResource(core),
|
|
3872
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.3.
|
|
503
|
+
var VERSION = "0.3.2";
|
|
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",
|
|
@@ -2824,6 +2928,37 @@ class CiResource {
|
|
|
2824
2928
|
}
|
|
2825
2929
|
}
|
|
2826
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
|
+
|
|
2827
2962
|
class Event_subscriptionsResource {
|
|
2828
2963
|
core;
|
|
2829
2964
|
constructor(core) {
|
|
@@ -3521,6 +3656,39 @@ class RepoCiResource {
|
|
|
3521
3656
|
}
|
|
3522
3657
|
}
|
|
3523
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
|
+
|
|
3524
3692
|
class RepoIssuesResource {
|
|
3525
3693
|
core;
|
|
3526
3694
|
bound;
|
|
@@ -3729,6 +3897,7 @@ class Repo {
|
|
|
3729
3897
|
bound;
|
|
3730
3898
|
check_runs;
|
|
3731
3899
|
ci;
|
|
3900
|
+
env;
|
|
3732
3901
|
issues;
|
|
3733
3902
|
labels;
|
|
3734
3903
|
merge_queue;
|
|
@@ -3742,6 +3911,7 @@ class Repo {
|
|
|
3742
3911
|
this.bound = bound;
|
|
3743
3912
|
this.check_runs = new RepoCheck_runsResource(core, bound);
|
|
3744
3913
|
this.ci = new RepoCiResource(core, bound);
|
|
3914
|
+
this.env = new RepoEnvResource(core, bound);
|
|
3745
3915
|
this.issues = new RepoIssuesResource(core, bound);
|
|
3746
3916
|
this.labels = new RepoLabelsResource(core, bound);
|
|
3747
3917
|
this.merge_queue = new RepoMerge_queueResource(core, bound);
|
|
@@ -3763,6 +3933,7 @@ function resources(core) {
|
|
|
3763
3933
|
caissons: new CaissonsResource(core),
|
|
3764
3934
|
check_runs: new Check_runsResource(core),
|
|
3765
3935
|
ci: new CiResource(core),
|
|
3936
|
+
env: new EnvResource(core),
|
|
3766
3937
|
event_subscriptions: new Event_subscriptionsResource(core),
|
|
3767
3938
|
events: new EventsResource(core),
|
|
3768
3939
|
github: new GithubResource(core),
|
|
@@ -3818,6 +3989,7 @@ export {
|
|
|
3818
3989
|
ConnectionError,
|
|
3819
3990
|
Core,
|
|
3820
3991
|
ERROR_CODES,
|
|
3992
|
+
EnvResource,
|
|
3821
3993
|
Event_subscriptionsResource,
|
|
3822
3994
|
EventsResource,
|
|
3823
3995
|
GithubResource,
|
|
@@ -3843,6 +4015,7 @@ export {
|
|
|
3843
4015
|
Repo,
|
|
3844
4016
|
RepoCheck_runsResource,
|
|
3845
4017
|
RepoCiResource,
|
|
4018
|
+
RepoEnvResource,
|
|
3846
4019
|
RepoIssuesResource,
|
|
3847
4020
|
RepoLabelsResource,
|
|
3848
4021
|
RepoMerge_queueResource,
|
package/dist/tools.cjs
CHANGED
|
@@ -619,6 +619,110 @@ var ops = {
|
|
|
619
619
|
long: false,
|
|
620
620
|
paginated: false
|
|
621
621
|
},
|
|
622
|
+
"env.chain": {
|
|
623
|
+
id: "env.chain",
|
|
624
|
+
method: "GET",
|
|
625
|
+
path: "/api/repos/{owner}/{repo}/env/chain",
|
|
626
|
+
pathParams: ["owner", "repo"],
|
|
627
|
+
queryParams: ["since"],
|
|
628
|
+
bodyParams: [],
|
|
629
|
+
effect: "read",
|
|
630
|
+
retry: "safe",
|
|
631
|
+
held: false,
|
|
632
|
+
long: false,
|
|
633
|
+
paginated: false
|
|
634
|
+
},
|
|
635
|
+
"env.chain.append": {
|
|
636
|
+
id: "env.chain.append",
|
|
637
|
+
method: "POST",
|
|
638
|
+
path: "/api/repos/{owner}/{repo}/env/chain",
|
|
639
|
+
pathParams: ["owner", "repo"],
|
|
640
|
+
queryParams: [],
|
|
641
|
+
bodyParams: ["entry", "files"],
|
|
642
|
+
effect: "write",
|
|
643
|
+
retry: "none",
|
|
644
|
+
held: false,
|
|
645
|
+
long: false,
|
|
646
|
+
paginated: false
|
|
647
|
+
},
|
|
648
|
+
"env.devices.cancel": {
|
|
649
|
+
id: "env.devices.cancel",
|
|
650
|
+
method: "DELETE",
|
|
651
|
+
path: "/api/repos/{owner}/{repo}/env/devices/{id}",
|
|
652
|
+
pathParams: ["owner", "repo", "id"],
|
|
653
|
+
queryParams: [],
|
|
654
|
+
bodyParams: [],
|
|
655
|
+
effect: "delete",
|
|
656
|
+
retry: "idempotent",
|
|
657
|
+
held: false,
|
|
658
|
+
long: false,
|
|
659
|
+
paginated: false
|
|
660
|
+
},
|
|
661
|
+
"env.devices.request": {
|
|
662
|
+
id: "env.devices.request",
|
|
663
|
+
method: "POST",
|
|
664
|
+
path: "/api/repos/{owner}/{repo}/env/devices",
|
|
665
|
+
pathParams: ["owner", "repo"],
|
|
666
|
+
queryParams: [],
|
|
667
|
+
bodyParams: ["name", "signKey", "ageRecipient"],
|
|
668
|
+
effect: "write",
|
|
669
|
+
retry: "none",
|
|
670
|
+
held: false,
|
|
671
|
+
long: false,
|
|
672
|
+
paginated: false
|
|
673
|
+
},
|
|
674
|
+
"env.list": {
|
|
675
|
+
id: "env.list",
|
|
676
|
+
method: "GET",
|
|
677
|
+
path: "/api/repos/{owner}/{repo}/env",
|
|
678
|
+
pathParams: ["owner", "repo"],
|
|
679
|
+
queryParams: ["content"],
|
|
680
|
+
bodyParams: [],
|
|
681
|
+
effect: "read",
|
|
682
|
+
retry: "safe",
|
|
683
|
+
held: false,
|
|
684
|
+
long: false,
|
|
685
|
+
paginated: false
|
|
686
|
+
},
|
|
687
|
+
"env.log": {
|
|
688
|
+
id: "env.log",
|
|
689
|
+
method: "GET",
|
|
690
|
+
path: "/api/repos/{owner}/{repo}/env/log",
|
|
691
|
+
pathParams: ["owner", "repo"],
|
|
692
|
+
queryParams: ["path"],
|
|
693
|
+
bodyParams: [],
|
|
694
|
+
effect: "read",
|
|
695
|
+
retry: "safe",
|
|
696
|
+
held: false,
|
|
697
|
+
long: false,
|
|
698
|
+
paginated: false
|
|
699
|
+
},
|
|
700
|
+
"env.version": {
|
|
701
|
+
id: "env.version",
|
|
702
|
+
method: "GET",
|
|
703
|
+
path: "/api/repos/{owner}/{repo}/env/version",
|
|
704
|
+
pathParams: ["owner", "repo"],
|
|
705
|
+
queryParams: ["path", "version"],
|
|
706
|
+
bodyParams: [],
|
|
707
|
+
effect: "read",
|
|
708
|
+
retry: "safe",
|
|
709
|
+
held: false,
|
|
710
|
+
long: false,
|
|
711
|
+
paginated: false
|
|
712
|
+
},
|
|
713
|
+
"env.write": {
|
|
714
|
+
id: "env.write",
|
|
715
|
+
method: "POST",
|
|
716
|
+
path: "/api/repos/{owner}/{repo}/env/files",
|
|
717
|
+
pathParams: ["owner", "repo"],
|
|
718
|
+
queryParams: [],
|
|
719
|
+
bodyParams: ["files", "message"],
|
|
720
|
+
effect: "write",
|
|
721
|
+
retry: "none",
|
|
722
|
+
held: false,
|
|
723
|
+
long: false,
|
|
724
|
+
paginated: false
|
|
725
|
+
},
|
|
622
726
|
"event_subscriptions.advance": {
|
|
623
727
|
id: "event_subscriptions.advance",
|
|
624
728
|
method: "POST",
|