@agentshouse/app-bridge 0.1.0-ce67b9fcd1972 → 0.1.0-cee55bd82a088

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.
@@ -210,6 +210,10 @@ export type Discovery = {
210
210
  providerLimits: readonly ProviderLimit[];
211
211
  retention: Retention;
212
212
  member?: Member;
213
+ covered?: readonly string[];
214
+ };
215
+ export type DiscoveryScope = {
216
+ readonly authorities: readonly string[];
213
217
  };
214
218
  export type TransportUncertainty = {
215
219
  kind: 'transport-uncertainty';
@@ -439,6 +443,7 @@ export type RoomStreamEvent = {
439
443
  expired: readonly string[];
440
444
  } | {
441
445
  kind: 'authority-changed';
446
+ scope?: DiscoveryScope;
442
447
  } | {
443
448
  kind: 'room-version';
444
449
  locator: string;
@@ -471,7 +476,7 @@ export type Adapter = {
471
476
  readonly localSaves?: true;
472
477
  readonly exhaustiveDiscovery?: true;
473
478
  authorize(): Promise<Authorization>;
474
- discover(authorization: Authorization): Promise<DiscoverResult>;
479
+ discover(authorization: Authorization, scope?: DiscoveryScope): Promise<DiscoverResult>;
475
480
  bootstrap(authorization: Authorization, request: BootstrapRequest): Promise<BootstrapResult>;
476
481
  refresh(authorization: Authorization, request: RefreshRequest): Promise<RefreshResult>;
477
482
  mutate(authorization: Authorization, request: MutationRequest, keep: (upload: unknown) => Promise<void>): Promise<MutationResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentshouse/app-bridge",
3
- "version": "0.1.0-ce67b9fcd1972",
3
+ "version": "0.1.0-cee55bd82a088",
4
4
  "description": "Types of the agents.house App bridge House hands every App: navigation, the tab title and icon, ceremonies, installation, notifications and the icon badge, status, Site image reads, App release code, App and Site screenshot reads, and App messages, with an accessor and an in-page test host.",
5
5
  "license": "MIT",
6
6
  "type": "module",