@dxos/client-services 0.1.58-main.b605d47 → 0.1.58-main.c10e16a
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/lib/browser/{chunk-GRLE5OOK.mjs → chunk-HNSTFSWR.mjs} +20 -16
- package/dist/lib/browser/chunk-HNSTFSWR.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/index.cjs +13 -9
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +13 -9
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +35 -35
- package/src/packlets/invitations/invitations-service.ts +6 -2
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-GRLE5OOK.mjs.map +0 -7
|
@@ -2070,7 +2070,7 @@ import { Event as Event3 } from "@dxos/async";
|
|
|
2070
2070
|
import { Stream as Stream8 } from "@dxos/codec-protobuf";
|
|
2071
2071
|
import { invariant as invariant7 } from "@dxos/invariant";
|
|
2072
2072
|
import { log as log6 } from "@dxos/log";
|
|
2073
|
-
import { QueryInvitationsResponse } from "@dxos/protocols/proto/dxos/client/services";
|
|
2073
|
+
import { Invitation as Invitation4, QueryInvitationsResponse } from "@dxos/protocols/proto/dxos/client/services";
|
|
2074
2074
|
var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-service.ts";
|
|
2075
2075
|
var InvitationsServiceImpl = class {
|
|
2076
2076
|
constructor(_invitationsHandler, _getHandler) {
|
|
@@ -2106,7 +2106,9 @@ var InvitationsServiceImpl = class {
|
|
|
2106
2106
|
}, () => {
|
|
2107
2107
|
close();
|
|
2108
2108
|
this._createInvitations.delete(invitation.get().invitationId);
|
|
2109
|
-
|
|
2109
|
+
if (invitation.get().type !== Invitation4.Type.MULTIUSE) {
|
|
2110
|
+
this._removedCreated.emit(invitation.get());
|
|
2111
|
+
}
|
|
2110
2112
|
});
|
|
2111
2113
|
});
|
|
2112
2114
|
}
|
|
@@ -2129,20 +2131,22 @@ var InvitationsServiceImpl = class {
|
|
|
2129
2131
|
}, () => {
|
|
2130
2132
|
close();
|
|
2131
2133
|
this._acceptInvitations.delete(invitation.get().invitationId);
|
|
2132
|
-
|
|
2134
|
+
if (invitation.get().type !== Invitation4.Type.MULTIUSE) {
|
|
2135
|
+
this._removedAccepted.emit(invitation.get());
|
|
2136
|
+
}
|
|
2133
2137
|
});
|
|
2134
2138
|
});
|
|
2135
2139
|
}
|
|
2136
2140
|
async authenticate({ invitationId, authCode }) {
|
|
2137
2141
|
log6("authenticating...", void 0, {
|
|
2138
2142
|
F: __dxlog_file8,
|
|
2139
|
-
L:
|
|
2143
|
+
L: 108,
|
|
2140
2144
|
S: this,
|
|
2141
2145
|
C: (f, a) => f(...a)
|
|
2142
2146
|
});
|
|
2143
2147
|
invariant7(invitationId, void 0, {
|
|
2144
2148
|
F: __dxlog_file8,
|
|
2145
|
-
L:
|
|
2149
|
+
L: 109,
|
|
2146
2150
|
S: this,
|
|
2147
2151
|
A: [
|
|
2148
2152
|
"invitationId",
|
|
@@ -2155,7 +2159,7 @@ var InvitationsServiceImpl = class {
|
|
|
2155
2159
|
invitationId
|
|
2156
2160
|
}, {
|
|
2157
2161
|
F: __dxlog_file8,
|
|
2158
|
-
L:
|
|
2162
|
+
L: 112,
|
|
2159
2163
|
S: this,
|
|
2160
2164
|
C: (f, a) => f(...a)
|
|
2161
2165
|
});
|
|
@@ -2166,13 +2170,13 @@ var InvitationsServiceImpl = class {
|
|
|
2166
2170
|
async cancelInvitation({ invitationId }) {
|
|
2167
2171
|
log6("deleting...", void 0, {
|
|
2168
2172
|
F: __dxlog_file8,
|
|
2169
|
-
L:
|
|
2173
|
+
L: 119,
|
|
2170
2174
|
S: this,
|
|
2171
2175
|
C: (f, a) => f(...a)
|
|
2172
2176
|
});
|
|
2173
2177
|
invariant7(invitationId, void 0, {
|
|
2174
2178
|
F: __dxlog_file8,
|
|
2175
|
-
L:
|
|
2179
|
+
L: 120,
|
|
2176
2180
|
S: this,
|
|
2177
2181
|
A: [
|
|
2178
2182
|
"invitationId",
|
|
@@ -2194,7 +2198,7 @@ var InvitationsServiceImpl = class {
|
|
|
2194
2198
|
invitationId
|
|
2195
2199
|
}, {
|
|
2196
2200
|
F: __dxlog_file8,
|
|
2197
|
-
L:
|
|
2201
|
+
L: 132,
|
|
2198
2202
|
S: this,
|
|
2199
2203
|
C: (f, a) => f(...a)
|
|
2200
2204
|
});
|
|
@@ -2257,7 +2261,7 @@ import { createAdmissionCredentials, getCredentialAssertion } from "@dxos/creden
|
|
|
2257
2261
|
import { writeMessages as writeMessages2 } from "@dxos/feed-store";
|
|
2258
2262
|
import { invariant as invariant8 } from "@dxos/invariant";
|
|
2259
2263
|
import { log as log7 } from "@dxos/log";
|
|
2260
|
-
import { Invitation as
|
|
2264
|
+
import { Invitation as Invitation5 } from "@dxos/protocols/proto/dxos/client/services";
|
|
2261
2265
|
var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
|
|
2262
2266
|
var SpaceInvitationProtocol = class {
|
|
2263
2267
|
constructor(_spaceManager, _signingContext, _keyring, _spaceKey) {
|
|
@@ -2274,7 +2278,7 @@ var SpaceInvitationProtocol = class {
|
|
|
2274
2278
|
}
|
|
2275
2279
|
getInvitationContext() {
|
|
2276
2280
|
return {
|
|
2277
|
-
kind:
|
|
2281
|
+
kind: Invitation5.Kind.SPACE,
|
|
2278
2282
|
spaceKey: this._spaceKey
|
|
2279
2283
|
};
|
|
2280
2284
|
}
|
|
@@ -2469,7 +2473,7 @@ import { STORAGE_VERSION } from "@dxos/protocols";
|
|
|
2469
2473
|
import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
|
|
2470
2474
|
|
|
2471
2475
|
// packages/sdk/client-services/src/version.ts
|
|
2472
|
-
var DXOS_VERSION = "0.1.58-main.
|
|
2476
|
+
var DXOS_VERSION = "0.1.58-main.c10e16a";
|
|
2473
2477
|
|
|
2474
2478
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
2475
2479
|
var getPlatform = () => {
|
|
@@ -3863,7 +3867,7 @@ import { Keyring } from "@dxos/keyring";
|
|
|
3863
3867
|
import { PublicKey as PublicKey9 } from "@dxos/keys";
|
|
3864
3868
|
import { log as log13 } from "@dxos/log";
|
|
3865
3869
|
import { STORAGE_VERSION as STORAGE_VERSION2, trace as trace7 } from "@dxos/protocols";
|
|
3866
|
-
import { Invitation as
|
|
3870
|
+
import { Invitation as Invitation6 } from "@dxos/protocols/proto/dxos/client/services";
|
|
3867
3871
|
import { BlobStore } from "@dxos/teleport-extension-object-sync";
|
|
3868
3872
|
import { trace as Trace2 } from "@dxos/tracing";
|
|
3869
3873
|
import { safeInstanceof } from "@dxos/util";
|
|
@@ -3913,7 +3917,7 @@ var ServiceContext = class ServiceContext2 {
|
|
|
3913
3917
|
});
|
|
3914
3918
|
this.identityManager = new IdentityManager(this.metadataStore, this.keyring, this.feedStore, this.spaceManager);
|
|
3915
3919
|
this.invitations = new InvitationsHandler(this.networkManager);
|
|
3916
|
-
this._handlerFactories.set(
|
|
3920
|
+
this._handlerFactories.set(Invitation6.Kind.DEVICE, () => new DeviceInvitationProtocol(this.keyring, () => this.identityManager.identity ?? failUndefined3(), this._acceptIdentity.bind(this)));
|
|
3917
3921
|
}
|
|
3918
3922
|
async open(ctx) {
|
|
3919
3923
|
await this._checkStorageVersion();
|
|
@@ -4032,7 +4036,7 @@ var ServiceContext = class ServiceContext2 {
|
|
|
4032
4036
|
};
|
|
4033
4037
|
this.dataSpaceManager = new DataSpaceManager(this.spaceManager, this.metadataStore, this.dataServiceSubscriptions, this.keyring, signingContext, this.feedStore);
|
|
4034
4038
|
await this.dataSpaceManager.open();
|
|
4035
|
-
this._handlerFactories.set(
|
|
4039
|
+
this._handlerFactories.set(Invitation6.Kind.SPACE, (invitation) => {
|
|
4036
4040
|
invariant12(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
|
|
4037
4041
|
F: __dxlog_file15,
|
|
4038
4042
|
L: 218,
|
|
@@ -4957,4 +4961,4 @@ export {
|
|
|
4957
4961
|
createDefaultModelFactory,
|
|
4958
4962
|
ClientServicesHost
|
|
4959
4963
|
};
|
|
4960
|
-
//# sourceMappingURL=chunk-
|
|
4964
|
+
//# sourceMappingURL=chunk-HNSTFSWR.mjs.map
|