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