@immediately-run/sandbox-protocol 0.10.5 → 0.10.6

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 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: 53a22fb549bd1758
4
+ // descriptorsHash: d52e2cd5b6c85b14
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
@@ -250,6 +250,14 @@ export declare const PROTOCOL_SECRETS = "protocol-secrets";
250
250
  export declare const PROTOCOL_SETTINGS = "protocol-settings";
251
251
  /** `protocol-spaces` — request · app->host. */
252
252
  export declare const PROTOCOL_SPACES = "protocol-spaces";
253
+ /** Params of `protocol-spaces` method `acceptInvite`. */
254
+ export interface ProtocolSpacesAcceptInviteParams {
255
+ spaceId: string;
256
+ }
257
+ /** Params of `protocol-spaces` method `declineInvite`. */
258
+ export interface ProtocolSpacesDeclineInviteParams {
259
+ spaceId: string;
260
+ }
253
261
  /** Params of `protocol-spaces` method `invite`. */
254
262
  export interface ProtocolSpacesInviteParams {
255
263
  login: string;
@@ -268,11 +276,20 @@ export interface ProtocolSpacesLookupUserParams {
268
276
  export interface ProtocolSpacesMembersParams {
269
277
  spaceId: string;
270
278
  }
279
+ /** Params of `protocol-spaces` method `pendingInvites`. */
280
+ export interface ProtocolSpacesPendingInvitesParams {
281
+ spaceId: string;
282
+ }
271
283
  /** Params of `protocol-spaces` method `revokeGrant`. */
272
284
  export interface ProtocolSpacesRevokeGrantParams {
273
285
  appKey: string;
274
286
  spaceId: string;
275
287
  }
288
+ /** Params of `protocol-spaces` method `revokeInvite`. */
289
+ export interface ProtocolSpacesRevokeInviteParams {
290
+ spaceId: string;
291
+ uid: string;
292
+ }
276
293
  /** Params of `protocol-spaces` method `setRole`. */
277
294
  export interface ProtocolSpacesSetRoleParams {
278
295
  role: "owner" | "reader" | "writer";
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: 53a22fb549bd1758
4
+ // descriptorsHash: d52e2cd5b6c85b14
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.10.5",
3
+ "version": "0.10.6",
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": {
@@ -1635,6 +1635,28 @@
1635
1635
  "type": "Record<string, unknown>"
1636
1636
  }
1637
1637
  },
1638
+ "acceptInvite": {
1639
+ "payload": {
1640
+ "fields": [
1641
+ {
1642
+ "name": "spaceId",
1643
+ "optional": false,
1644
+ "type": "string"
1645
+ }
1646
+ ]
1647
+ }
1648
+ },
1649
+ "declineInvite": {
1650
+ "payload": {
1651
+ "fields": [
1652
+ {
1653
+ "name": "spaceId",
1654
+ "optional": false,
1655
+ "type": "string"
1656
+ }
1657
+ ]
1658
+ }
1659
+ },
1638
1660
  "grants": {
1639
1661
  "payload": {
1640
1662
  "type": "{}"
@@ -1697,6 +1719,11 @@
1697
1719
  "type": "{}"
1698
1720
  }
1699
1721
  },
1722
+ "listInvites": {
1723
+ "payload": {
1724
+ "type": "{}"
1725
+ }
1726
+ },
1700
1727
  "lookupUser": {
1701
1728
  "payload": {
1702
1729
  "fields": [
@@ -1719,6 +1746,17 @@
1719
1746
  ]
1720
1747
  }
1721
1748
  },
1749
+ "pendingInvites": {
1750
+ "payload": {
1751
+ "fields": [
1752
+ {
1753
+ "name": "spaceId",
1754
+ "optional": false,
1755
+ "type": "string"
1756
+ }
1757
+ ]
1758
+ }
1759
+ },
1722
1760
  "revokeGrant": {
1723
1761
  "payload": {
1724
1762
  "fields": [
@@ -1735,6 +1773,22 @@
1735
1773
  ]
1736
1774
  }
1737
1775
  },
1776
+ "revokeInvite": {
1777
+ "payload": {
1778
+ "fields": [
1779
+ {
1780
+ "name": "spaceId",
1781
+ "optional": false,
1782
+ "type": "string"
1783
+ },
1784
+ {
1785
+ "name": "uid",
1786
+ "optional": false,
1787
+ "type": "string"
1788
+ }
1789
+ ]
1790
+ }
1791
+ },
1738
1792
  "setRole": {
1739
1793
  "payload": {
1740
1794
  "fields": [