@immediately-run/sandbox-protocol 0.11.0 → 0.12.0
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/dist/sandbox.js +1 -1
- package/dist/sdk.d.ts +25 -0
- package/dist/sdk.js +1 -1
- package/package.json +1 -1
- package/snapshots/sdk.json +80 -0
package/dist/sandbox.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// GENERATED by scripts/generate.mjs — DO NOT EDIT.
|
|
3
3
|
// Source of truth: src/descriptors.protocol.mjs (@immediately-run/sandbox-protocol)
|
|
4
|
-
// descriptorsHash:
|
|
4
|
+
// descriptorsHash: ea023de202a49fbd
|
|
5
5
|
//
|
|
6
6
|
// The sandbox↔SDK wire vocabulary (PLATFORM_LAYERING_SPEC §2 / S1). Import the
|
|
7
7
|
// constants instead of writing the string: a rename then has ONE edit site and
|
package/dist/sdk.d.ts
CHANGED
|
@@ -254,16 +254,31 @@ export declare const PROTOCOL_SPACES = "protocol-spaces";
|
|
|
254
254
|
export interface ProtocolSpacesAcceptInviteParams {
|
|
255
255
|
spaceId: string;
|
|
256
256
|
}
|
|
257
|
+
/** Params of `protocol-spaces` method `convertToShared`. */
|
|
258
|
+
export interface ProtocolSpacesConvertToSharedParams {
|
|
259
|
+
confirm: boolean;
|
|
260
|
+
spaceId: string;
|
|
261
|
+
}
|
|
257
262
|
/** Params of `protocol-spaces` method `declineInvite`. */
|
|
258
263
|
export interface ProtocolSpacesDeclineInviteParams {
|
|
259
264
|
spaceId: string;
|
|
260
265
|
}
|
|
266
|
+
/** Params of `protocol-spaces` method `delete`. */
|
|
267
|
+
export interface ProtocolSpacesDeleteParams {
|
|
268
|
+
confirm: boolean;
|
|
269
|
+
spaceId: string;
|
|
270
|
+
}
|
|
261
271
|
/** Params of `protocol-spaces` method `invite`. */
|
|
262
272
|
export interface ProtocolSpacesInviteParams {
|
|
263
273
|
login: string;
|
|
264
274
|
role: "owner" | "reader" | "writer";
|
|
265
275
|
spaceId: string;
|
|
266
276
|
}
|
|
277
|
+
/** Params of `protocol-spaces` method `leave`. */
|
|
278
|
+
export interface ProtocolSpacesLeaveParams {
|
|
279
|
+
confirm: boolean;
|
|
280
|
+
spaceId: string;
|
|
281
|
+
}
|
|
267
282
|
/** Params of `protocol-spaces` method `list`. */
|
|
268
283
|
export interface ProtocolSpacesListParams {
|
|
269
284
|
app?: false | true | undefined;
|
|
@@ -280,6 +295,16 @@ export interface ProtocolSpacesMembersParams {
|
|
|
280
295
|
export interface ProtocolSpacesPendingInvitesParams {
|
|
281
296
|
spaceId: string;
|
|
282
297
|
}
|
|
298
|
+
/** Params of `protocol-spaces` method `rename`. */
|
|
299
|
+
export interface ProtocolSpacesRenameParams {
|
|
300
|
+
name: string;
|
|
301
|
+
spaceId: string;
|
|
302
|
+
}
|
|
303
|
+
/** Params of `protocol-spaces` method `restore`. */
|
|
304
|
+
export interface ProtocolSpacesRestoreParams {
|
|
305
|
+
confirm: boolean;
|
|
306
|
+
spaceId: string;
|
|
307
|
+
}
|
|
283
308
|
/** Params of `protocol-spaces` method `revokeGrant`. */
|
|
284
309
|
export interface ProtocolSpacesRevokeGrantParams {
|
|
285
310
|
appKey: string;
|
package/dist/sdk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// GENERATED by scripts/generate.mjs — DO NOT EDIT.
|
|
3
3
|
// Source of truth: src/descriptors.protocol.mjs (@immediately-run/sandbox-protocol)
|
|
4
|
-
// descriptorsHash:
|
|
4
|
+
// descriptorsHash: ea023de202a49fbd
|
|
5
5
|
//
|
|
6
6
|
// The sandbox↔SDK wire vocabulary (PLATFORM_LAYERING_SPEC §2 / S1). Import the
|
|
7
7
|
// constants instead of writing the string: a rename then has ONE edit site and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immediately-run/sandbox-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "The sandbox<->SDK wire protocol: ONE descriptor set, projected into the wire-name constants, the payload types, and the per-side snapshots both repos gate against (PLATFORM_LAYERING_SPEC S1). Consumed by sandbox and immediately-run-sdk so a wire change is a version bump, not a hand-copied file.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
package/snapshots/sdk.json
CHANGED
|
@@ -1647,6 +1647,22 @@
|
|
|
1647
1647
|
]
|
|
1648
1648
|
}
|
|
1649
1649
|
},
|
|
1650
|
+
"convertToShared": {
|
|
1651
|
+
"payload": {
|
|
1652
|
+
"fields": [
|
|
1653
|
+
{
|
|
1654
|
+
"name": "confirm",
|
|
1655
|
+
"optional": false,
|
|
1656
|
+
"type": "boolean"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"name": "spaceId",
|
|
1660
|
+
"optional": false,
|
|
1661
|
+
"type": "string"
|
|
1662
|
+
}
|
|
1663
|
+
]
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1650
1666
|
"declineInvite": {
|
|
1651
1667
|
"payload": {
|
|
1652
1668
|
"fields": [
|
|
@@ -1658,6 +1674,22 @@
|
|
|
1658
1674
|
]
|
|
1659
1675
|
}
|
|
1660
1676
|
},
|
|
1677
|
+
"delete": {
|
|
1678
|
+
"payload": {
|
|
1679
|
+
"fields": [
|
|
1680
|
+
{
|
|
1681
|
+
"name": "confirm",
|
|
1682
|
+
"optional": false,
|
|
1683
|
+
"type": "boolean"
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
"name": "spaceId",
|
|
1687
|
+
"optional": false,
|
|
1688
|
+
"type": "string"
|
|
1689
|
+
}
|
|
1690
|
+
]
|
|
1691
|
+
}
|
|
1692
|
+
},
|
|
1661
1693
|
"grants": {
|
|
1662
1694
|
"payload": {
|
|
1663
1695
|
"type": "{}"
|
|
@@ -1694,6 +1726,22 @@
|
|
|
1694
1726
|
]
|
|
1695
1727
|
}
|
|
1696
1728
|
},
|
|
1729
|
+
"leave": {
|
|
1730
|
+
"payload": {
|
|
1731
|
+
"fields": [
|
|
1732
|
+
{
|
|
1733
|
+
"name": "confirm",
|
|
1734
|
+
"optional": false,
|
|
1735
|
+
"type": "boolean"
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
"name": "spaceId",
|
|
1739
|
+
"optional": false,
|
|
1740
|
+
"type": "string"
|
|
1741
|
+
}
|
|
1742
|
+
]
|
|
1743
|
+
}
|
|
1744
|
+
},
|
|
1697
1745
|
"list": {
|
|
1698
1746
|
"payload": {
|
|
1699
1747
|
"fields": [
|
|
@@ -1758,6 +1806,38 @@
|
|
|
1758
1806
|
]
|
|
1759
1807
|
}
|
|
1760
1808
|
},
|
|
1809
|
+
"rename": {
|
|
1810
|
+
"payload": {
|
|
1811
|
+
"fields": [
|
|
1812
|
+
{
|
|
1813
|
+
"name": "name",
|
|
1814
|
+
"optional": false,
|
|
1815
|
+
"type": "string"
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"name": "spaceId",
|
|
1819
|
+
"optional": false,
|
|
1820
|
+
"type": "string"
|
|
1821
|
+
}
|
|
1822
|
+
]
|
|
1823
|
+
}
|
|
1824
|
+
},
|
|
1825
|
+
"restore": {
|
|
1826
|
+
"payload": {
|
|
1827
|
+
"fields": [
|
|
1828
|
+
{
|
|
1829
|
+
"name": "confirm",
|
|
1830
|
+
"optional": false,
|
|
1831
|
+
"type": "boolean"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"name": "spaceId",
|
|
1835
|
+
"optional": false,
|
|
1836
|
+
"type": "string"
|
|
1837
|
+
}
|
|
1838
|
+
]
|
|
1839
|
+
}
|
|
1840
|
+
},
|
|
1761
1841
|
"revokeGrant": {
|
|
1762
1842
|
"payload": {
|
|
1763
1843
|
"fields": [
|