@explorins/pers-shared 2.1.209 → 2.1.210
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/cjs/index.d.ts +0 -2
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/shared-lib/interfaces/ws-relay.types.d.ts +56 -3
- package/dist/cjs/shared-lib/interfaces/ws-relay.types.d.ts.map +1 -1
- package/dist/cjs/shared-lib/interfaces/ws-relay.types.js +7 -0
- package/dist/cjs/shared-lib/interfaces/ws-relay.types.js.map +1 -1
- package/dist/cjs/shared-lib/types/domains.d.ts +1 -0
- package/dist/cjs/shared-lib/types/domains.d.ts.map +1 -1
- package/dist/cjs/shared-lib/types/domains.js +1 -0
- package/dist/cjs/shared-lib/types/domains.js.map +1 -1
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/shared-lib/interfaces/ws-relay.types.d.ts +56 -3
- package/dist/esm/shared-lib/interfaces/ws-relay.types.d.ts.map +1 -1
- package/dist/esm/shared-lib/interfaces/ws-relay.types.js +6 -0
- package/dist/esm/shared-lib/interfaces/ws-relay.types.js.map +1 -1
- package/dist/esm/shared-lib/types/domains.d.ts +1 -0
- package/dist/esm/shared-lib/types/domains.d.ts.map +1 -1
- package/dist/esm/shared-lib/types/domains.js +1 -0
- package/dist/esm/shared-lib/types/domains.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ export * from './shared-lib/types';
|
|
|
4
4
|
export * from './shared-lib/constants';
|
|
5
5
|
export * from './shared-lib/validation';
|
|
6
6
|
export type * from './shared-lib/dto';
|
|
7
|
-
export { PriceTokenUnitSpec } from './shared-lib/dto/token/price-token-unit.dto';
|
|
8
|
-
export { TokenUnitCreateRequestDTO, TokenUnitDTO } from './shared-lib/dto/token/token-unit.dto';
|
|
9
7
|
export * from '@explorins/web3-types';
|
|
10
8
|
export type * from './shared-lib/errors';
|
|
11
9
|
export { type StructuredError, ErrorCategory } from './shared-lib/errors/base/error-classification-enums';
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,kBAAkB,CAAC;AAGtC,cAAc,uBAAuB,CAAC;AAGtC,mBAAmB,qBAAqB,CAAC;AACzC,OAAO,EAAE,KAAK,eAAe,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,19 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.ErrorDomains = exports.CommonErrorCodes = exports.ErrorCategory =
|
|
19
|
+
exports.ErrorDomains = exports.CommonErrorCodes = exports.ErrorCategory = void 0;
|
|
20
20
|
// Core domain contracts
|
|
21
21
|
__exportStar(require("./shared-lib/enum"), exports);
|
|
22
22
|
__exportStar(require("./shared-lib/interfaces"), exports);
|
|
23
23
|
__exportStar(require("./shared-lib/types"), exports);
|
|
24
24
|
__exportStar(require("./shared-lib/constants"), exports);
|
|
25
25
|
__exportStar(require("./shared-lib/validation"), exports);
|
|
26
|
-
// Re-export concrete DTO classes that need to be usable as values (e.g. class-transformer @Type decorators)
|
|
27
|
-
var price_token_unit_dto_1 = require("./shared-lib/dto/token/price-token-unit.dto");
|
|
28
|
-
Object.defineProperty(exports, "PriceTokenUnitSpec", { enumerable: true, get: function () { return price_token_unit_dto_1.PriceTokenUnitSpec; } });
|
|
29
|
-
var token_unit_dto_1 = require("./shared-lib/dto/token/token-unit.dto");
|
|
30
|
-
Object.defineProperty(exports, "TokenUnitCreateRequestDTO", { enumerable: true, get: function () { return token_unit_dto_1.TokenUnitCreateRequestDTO; } });
|
|
31
|
-
Object.defineProperty(exports, "TokenUnitDTO", { enumerable: true, get: function () { return token_unit_dto_1.TokenUnitDTO; } });
|
|
32
26
|
// Re-export web3 types for convenience
|
|
33
27
|
__exportStar(require("@explorins/web3-types"), exports);
|
|
34
28
|
var error_classification_enums_1 = require("./shared-lib/errors/base/error-classification-enums");
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,8FAA8F;;;;;;;;;;;;;;;;;AAE9F,wBAAwB;AACxB,oDAAkC;AAClC,0DAAwC;AACxC,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,8FAA8F;;;;;;;;;;;;;;;;;AAE9F,wBAAwB;AACxB,oDAAkC;AAClC,0DAAwC;AACxC,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AAGxC,uCAAuC;AACvC,wDAAsC;AAItC,kGAA0G;AAA3E,2HAAA,aAAa,OAAA;AAC5C,+DAAyH;AAAhH,+GAAA,gBAAgB,OAAA;AAAE,2GAAA,YAAY,OAAA;AAEvC,4CAA4C;AAC5C,2CAA2C;AAC3C,iFAAiF"}
|
|
@@ -14,11 +14,16 @@ export interface WalletInfo {
|
|
|
14
14
|
/** Chain ID (e.g., 39123 for PERS testnet) */
|
|
15
15
|
chainId: number;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* On-chain intent category for the `NotificationHub` signal (Option B — locked 2026-07-11).
|
|
19
|
+
* Stable regardless of internal `EntityTypes` evolution.
|
|
20
|
+
*/
|
|
21
|
+
export type NotificationCategory = 'APPROVAL' | 'REWARD' | 'CAMPAIGN' | 'SYSTEM';
|
|
17
22
|
/**
|
|
18
23
|
* Base client message
|
|
19
24
|
*/
|
|
20
25
|
export interface WSClientMessageBase {
|
|
21
|
-
type: 'subscribe' | 'unsubscribe' | 'pong';
|
|
26
|
+
type: 'subscribe' | 'unsubscribe' | 'pong' | 'subscription.updated';
|
|
22
27
|
}
|
|
23
28
|
/**
|
|
24
29
|
* Subscribe to wallet addresses (filtered events) or chains (all events)
|
|
@@ -45,6 +50,10 @@ export interface SubscribeMessage extends WSClientMessageBase {
|
|
|
45
50
|
wallets?: WalletInfo[];
|
|
46
51
|
/** Chain IDs for full chain subscription (all events - admin mode) */
|
|
47
52
|
chains?: number[];
|
|
53
|
+
/** Personal notification channelId to bind this socket to (from `GET /notifications/channel-id`) */
|
|
54
|
+
notificationChannelId?: string;
|
|
55
|
+
/** Topic channel IDs to fan into (Flow 2 — channel pub/sub; reserved, not yet backed by a public endpoint) */
|
|
56
|
+
topicIds?: string[];
|
|
48
57
|
}
|
|
49
58
|
/**
|
|
50
59
|
* Unsubscribe from wallets or chains
|
|
@@ -55,6 +64,8 @@ export interface UnsubscribeMessage extends WSClientMessageBase {
|
|
|
55
64
|
wallets?: WalletInfo[];
|
|
56
65
|
/** Chain IDs to unsubscribe */
|
|
57
66
|
chains?: number[];
|
|
67
|
+
/** Topic channel IDs to stop receiving (Flow 2 — reserved) */
|
|
68
|
+
topicIds?: string[];
|
|
58
69
|
}
|
|
59
70
|
/**
|
|
60
71
|
* Pong response to server ping
|
|
@@ -62,10 +73,22 @@ export interface UnsubscribeMessage extends WSClientMessageBase {
|
|
|
62
73
|
export interface PongMessage extends WSClientMessageBase {
|
|
63
74
|
type: 'pong';
|
|
64
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Live mutation of the notification routing context for an already-connected socket —
|
|
78
|
+
* e.g. rebind the personal channelId after re-auth, or add/remove a single topic (Flow 2).
|
|
79
|
+
*/
|
|
80
|
+
export interface SubscriptionUpdatedMessage extends WSClientMessageBase {
|
|
81
|
+
type: 'subscription.updated';
|
|
82
|
+
/** Updated personal notification channelId */
|
|
83
|
+
notificationChannelId?: string;
|
|
84
|
+
/** Single topic mutation (Flow 2 — reserved) */
|
|
85
|
+
topicId?: string;
|
|
86
|
+
action?: 'add' | 'remove';
|
|
87
|
+
}
|
|
65
88
|
/**
|
|
66
89
|
* All client message types
|
|
67
90
|
*/
|
|
68
|
-
export type WSClientMessage = SubscribeMessage | UnsubscribeMessage | PongMessage;
|
|
91
|
+
export type WSClientMessage = SubscribeMessage | UnsubscribeMessage | PongMessage | SubscriptionUpdatedMessage;
|
|
69
92
|
/**
|
|
70
93
|
* Connection confirmation (sent immediately after auth)
|
|
71
94
|
*/
|
|
@@ -73,6 +96,10 @@ export interface ConnectedPayload {
|
|
|
73
96
|
userId: string;
|
|
74
97
|
wallets: WalletInfo[];
|
|
75
98
|
activeChains: number[];
|
|
99
|
+
/** Personal notification channelId the relay auto-resolved for this socket (null if not provisioned) */
|
|
100
|
+
notificationChannelId?: string | null;
|
|
101
|
+
/** Topic channel IDs the relay pinned to this socket at connect time (Flow 2 — reserved) */
|
|
102
|
+
topicIds?: string[];
|
|
76
103
|
}
|
|
77
104
|
/**
|
|
78
105
|
* Subscription confirmation
|
|
@@ -84,6 +111,10 @@ export interface SubscribedPayload {
|
|
|
84
111
|
chains: number[];
|
|
85
112
|
/** All active chain IDs */
|
|
86
113
|
activeChains: number[];
|
|
114
|
+
/** Current personal notification channelId */
|
|
115
|
+
notificationChannelId?: string | null;
|
|
116
|
+
/** Current topic subscriptions (Flow 2 — reserved) */
|
|
117
|
+
topicIds?: string[];
|
|
87
118
|
}
|
|
88
119
|
/**
|
|
89
120
|
* Unsubscription confirmation
|
|
@@ -160,10 +191,28 @@ export interface WSServerMessagePing {
|
|
|
160
191
|
type: 'ping';
|
|
161
192
|
timestamp: number;
|
|
162
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Minimal real-time notification wake signal — carries no notification content.
|
|
196
|
+
* `channelOrTopicId` matched either the socket's personal channelId or one of its
|
|
197
|
+
* subscribed topicIds (Flow 2). Clients must fetch `GET /notifications` (or
|
|
198
|
+
* `GET /notifications/:messageId`) for the actual content.
|
|
199
|
+
*/
|
|
200
|
+
export interface NotificationPendingInfo {
|
|
201
|
+
/** Canonical UUID (lowercase, dashed) of the notification/channel_message row */
|
|
202
|
+
messageId: string;
|
|
203
|
+
notificationCategory?: NotificationCategory | string;
|
|
204
|
+
/** The channelId or topicId that matched, lowercased 0x hex */
|
|
205
|
+
channelOrTopicId?: string;
|
|
206
|
+
}
|
|
207
|
+
export interface WSServerMessageNotificationPending {
|
|
208
|
+
type: 'notification.pending';
|
|
209
|
+
payload: NotificationPendingInfo;
|
|
210
|
+
timestamp: number;
|
|
211
|
+
}
|
|
163
212
|
/**
|
|
164
213
|
* All server message types
|
|
165
214
|
*/
|
|
166
|
-
export type WSServerMessage = WSServerMessageConnected | WSServerMessageSubscribed | WSServerMessageUnsubscribed | WSServerMessageEvent | WSServerMessageError | WSServerMessagePing;
|
|
215
|
+
export type WSServerMessage = WSServerMessageConnected | WSServerMessageSubscribed | WSServerMessageUnsubscribed | WSServerMessageEvent | WSServerMessageError | WSServerMessagePing | WSServerMessageNotificationPending;
|
|
167
216
|
/**
|
|
168
217
|
* Type guard for server messages
|
|
169
218
|
*/
|
|
@@ -192,4 +241,8 @@ export declare function isErrorMessage(msg: WSServerMessage): msg is WSServerMes
|
|
|
192
241
|
* Type guard for ping messages
|
|
193
242
|
*/
|
|
194
243
|
export declare function isPingMessage(msg: WSServerMessage): msg is WSServerMessagePing;
|
|
244
|
+
/**
|
|
245
|
+
* Type guard for notification.pending messages
|
|
246
|
+
*/
|
|
247
|
+
export declare function isNotificationPendingMessage(msg: WSServerMessage): msg is WSServerMessageNotificationPending;
|
|
195
248
|
//# sourceMappingURL=ws-relay.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws-relay.types.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/ws-relay.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"ws-relay.types.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/ws-relay.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAMjF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,WAAW,GAAG,aAAa,GAAG,MAAM,GAAG,sBAAsB,CAAC;CACrE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,gBAAi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EAAE,OAAO,GAAG,IAAI,IAAI,eAAe,CAOtE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG,IAAI,oBAAoB,CAEhF;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG,IAAI,wBAAwB,CAExF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG,IAAI,yBAAyB,CAE1F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG,IAAI,2BAA2B,CAE9F;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG,IAAI,oBAAoB,CAEhF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG,IAAI,mBAAmB,CAE9E;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG,IAAI,kCAAkC,CAE5G"}
|
|
@@ -14,6 +14,7 @@ exports.isSubscribedMessage = isSubscribedMessage;
|
|
|
14
14
|
exports.isUnsubscribedMessage = isUnsubscribedMessage;
|
|
15
15
|
exports.isErrorMessage = isErrorMessage;
|
|
16
16
|
exports.isPingMessage = isPingMessage;
|
|
17
|
+
exports.isNotificationPendingMessage = isNotificationPendingMessage;
|
|
17
18
|
// =============================================================================
|
|
18
19
|
// HELPER FUNCTIONS (TYPE GUARDS)
|
|
19
20
|
// =============================================================================
|
|
@@ -62,4 +63,10 @@ function isErrorMessage(msg) {
|
|
|
62
63
|
function isPingMessage(msg) {
|
|
63
64
|
return msg.type === 'ping';
|
|
64
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Type guard for notification.pending messages
|
|
68
|
+
*/
|
|
69
|
+
function isNotificationPendingMessage(msg) {
|
|
70
|
+
return msg.type === 'notification.pending';
|
|
71
|
+
}
|
|
65
72
|
//# sourceMappingURL=ws-relay.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws-relay.types.js","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/ws-relay.types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;
|
|
1
|
+
{"version":3,"file":"ws-relay.types.js","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/ws-relay.types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAyQH,0CAOC;AAKD,wCAEC;AAKD,gDAEC;AAKD,kDAEC;AAKD,sDAEC;AAKD,wCAEC;AAKD,sCAEC;AAKD,oEAEC;AA/DD,gFAAgF;AAChF,iCAAiC;AACjC,gFAAgF;AAEhF;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAa;IAC3C,OAAO,CACL,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,MAAM,IAAI,IAAI;QACd,WAAW,IAAI,IAAI,CACpB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,cAAc,CAAC,GAAoB;IACjD,OAAO,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAAC,GAAoB;IACrD,OAAO,GAAG,CAAC,IAAI,KAAK,WAAW,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,GAAoB;IACtD,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,SAAgB,qBAAqB,CAAC,GAAoB;IACxD,OAAO,GAAG,CAAC,IAAI,KAAK,cAAc,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,SAAgB,cAAc,CAAC,GAAoB;IACjD,OAAO,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,SAAgB,aAAa,CAAC,GAAoB;IAChD,OAAO,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC;AAC7B,CAAC;AAED;;GAEG;AACH,SAAgB,4BAA4B,CAAC,GAAoB;IAC/D,OAAO,GAAG,CAAC,IAAI,KAAK,sBAAsB,CAAC;AAC7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domains.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types/domains.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"domains.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types/domains.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAuCV,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,OAAO,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domains.js","sourceRoot":"","sources":["../../../../src/shared-lib/types/domains.ts"],"names":[],"mappings":";AAAA,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;;;AAE/E;;;;;;;;GAQG;AACU,QAAA,OAAO,GAAG;IACrB,gBAAgB;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IAEd,oBAAoB;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAElB,oBAAoB;IACpB,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,iBAAiB;IAElC,4BAA4B;IAC5B,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IAExB,oBAAoB;IACpB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IAEd,yBAAyB;IACzB,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,gBAAgB;IAEhC,4BAA4B;IAC5B,cAAc,EAAE,gBAAgB;IAChC,OAAO,EAAE,SAAS;IAElB,iBAAiB;IACjB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"domains.js","sourceRoot":"","sources":["../../../../src/shared-lib/types/domains.ts"],"names":[],"mappings":";AAAA,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;;;AAE/E;;;;;;;;GAQG;AACU,QAAA,OAAO,GAAG;IACrB,gBAAgB;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IAEd,oBAAoB;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAElB,oBAAoB;IACpB,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,iBAAiB;IAElC,4BAA4B;IAC5B,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IAExB,oBAAoB;IACpB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IAEd,yBAAyB;IACzB,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,gBAAgB;IAEhC,4BAA4B;IAC5B,cAAc,EAAE,gBAAgB;IAChC,OAAO,EAAE,SAAS;IAElB,iBAAiB;IACjB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,cAAc;CACpB,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ export * from './shared-lib/types';
|
|
|
4
4
|
export * from './shared-lib/constants';
|
|
5
5
|
export * from './shared-lib/validation';
|
|
6
6
|
export type * from './shared-lib/dto';
|
|
7
|
-
export { PriceTokenUnitSpec } from './shared-lib/dto/token/price-token-unit.dto';
|
|
8
|
-
export { TokenUnitCreateRequestDTO, TokenUnitDTO } from './shared-lib/dto/token/token-unit.dto';
|
|
9
7
|
export * from '@explorins/web3-types';
|
|
10
8
|
export type * from './shared-lib/errors';
|
|
11
9
|
export { type StructuredError, ErrorCategory } from './shared-lib/errors/base/error-classification-enums';
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,kBAAkB,CAAC;AAGtC,cAAc,uBAAuB,CAAC;AAGtC,mBAAmB,qBAAqB,CAAC;AACzC,OAAO,EAAE,KAAK,eAAe,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -6,9 +6,6 @@ export * from './shared-lib/interfaces/index.js';
|
|
|
6
6
|
export * from './shared-lib/types/index.js';
|
|
7
7
|
export * from './shared-lib/constants/index.js';
|
|
8
8
|
export * from './shared-lib/validation/index.js';
|
|
9
|
-
// Re-export concrete DTO classes that need to be usable as values (e.g. class-transformer @Type decorators)
|
|
10
|
-
export { PriceTokenUnitSpec } from './shared-lib/dto/token/price-token-unit.dto.js';
|
|
11
|
-
export { TokenUnitCreateRequestDTO, TokenUnitDTO } from './shared-lib/dto/token/token-unit.dto.js';
|
|
12
9
|
// Re-export web3 types for convenience
|
|
13
10
|
export * from '@explorins/web3-types';
|
|
14
11
|
export { ErrorCategory } from './shared-lib/errors/base/error-classification-enums.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,8FAA8F;AAE9F,wBAAwB;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,8FAA8F;AAE9F,wBAAwB;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,uCAAuC;AACvC,cAAc,uBAAuB,CAAC;AAItC,OAAO,EAAwB,aAAa,EAAE,MAAM,qDAAqD,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAA0C,MAAM,iCAAiC,CAAC;AAEzH,4CAA4C;AAC5C,2CAA2C;AAC3C,iFAAiF"}
|
|
@@ -14,11 +14,16 @@ export interface WalletInfo {
|
|
|
14
14
|
/** Chain ID (e.g., 39123 for PERS testnet) */
|
|
15
15
|
chainId: number;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* On-chain intent category for the `NotificationHub` signal (Option B — locked 2026-07-11).
|
|
19
|
+
* Stable regardless of internal `EntityTypes` evolution.
|
|
20
|
+
*/
|
|
21
|
+
export type NotificationCategory = 'APPROVAL' | 'REWARD' | 'CAMPAIGN' | 'SYSTEM';
|
|
17
22
|
/**
|
|
18
23
|
* Base client message
|
|
19
24
|
*/
|
|
20
25
|
export interface WSClientMessageBase {
|
|
21
|
-
type: 'subscribe' | 'unsubscribe' | 'pong';
|
|
26
|
+
type: 'subscribe' | 'unsubscribe' | 'pong' | 'subscription.updated';
|
|
22
27
|
}
|
|
23
28
|
/**
|
|
24
29
|
* Subscribe to wallet addresses (filtered events) or chains (all events)
|
|
@@ -45,6 +50,10 @@ export interface SubscribeMessage extends WSClientMessageBase {
|
|
|
45
50
|
wallets?: WalletInfo[];
|
|
46
51
|
/** Chain IDs for full chain subscription (all events - admin mode) */
|
|
47
52
|
chains?: number[];
|
|
53
|
+
/** Personal notification channelId to bind this socket to (from `GET /notifications/channel-id`) */
|
|
54
|
+
notificationChannelId?: string;
|
|
55
|
+
/** Topic channel IDs to fan into (Flow 2 — channel pub/sub; reserved, not yet backed by a public endpoint) */
|
|
56
|
+
topicIds?: string[];
|
|
48
57
|
}
|
|
49
58
|
/**
|
|
50
59
|
* Unsubscribe from wallets or chains
|
|
@@ -55,6 +64,8 @@ export interface UnsubscribeMessage extends WSClientMessageBase {
|
|
|
55
64
|
wallets?: WalletInfo[];
|
|
56
65
|
/** Chain IDs to unsubscribe */
|
|
57
66
|
chains?: number[];
|
|
67
|
+
/** Topic channel IDs to stop receiving (Flow 2 — reserved) */
|
|
68
|
+
topicIds?: string[];
|
|
58
69
|
}
|
|
59
70
|
/**
|
|
60
71
|
* Pong response to server ping
|
|
@@ -62,10 +73,22 @@ export interface UnsubscribeMessage extends WSClientMessageBase {
|
|
|
62
73
|
export interface PongMessage extends WSClientMessageBase {
|
|
63
74
|
type: 'pong';
|
|
64
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Live mutation of the notification routing context for an already-connected socket —
|
|
78
|
+
* e.g. rebind the personal channelId after re-auth, or add/remove a single topic (Flow 2).
|
|
79
|
+
*/
|
|
80
|
+
export interface SubscriptionUpdatedMessage extends WSClientMessageBase {
|
|
81
|
+
type: 'subscription.updated';
|
|
82
|
+
/** Updated personal notification channelId */
|
|
83
|
+
notificationChannelId?: string;
|
|
84
|
+
/** Single topic mutation (Flow 2 — reserved) */
|
|
85
|
+
topicId?: string;
|
|
86
|
+
action?: 'add' | 'remove';
|
|
87
|
+
}
|
|
65
88
|
/**
|
|
66
89
|
* All client message types
|
|
67
90
|
*/
|
|
68
|
-
export type WSClientMessage = SubscribeMessage | UnsubscribeMessage | PongMessage;
|
|
91
|
+
export type WSClientMessage = SubscribeMessage | UnsubscribeMessage | PongMessage | SubscriptionUpdatedMessage;
|
|
69
92
|
/**
|
|
70
93
|
* Connection confirmation (sent immediately after auth)
|
|
71
94
|
*/
|
|
@@ -73,6 +96,10 @@ export interface ConnectedPayload {
|
|
|
73
96
|
userId: string;
|
|
74
97
|
wallets: WalletInfo[];
|
|
75
98
|
activeChains: number[];
|
|
99
|
+
/** Personal notification channelId the relay auto-resolved for this socket (null if not provisioned) */
|
|
100
|
+
notificationChannelId?: string | null;
|
|
101
|
+
/** Topic channel IDs the relay pinned to this socket at connect time (Flow 2 — reserved) */
|
|
102
|
+
topicIds?: string[];
|
|
76
103
|
}
|
|
77
104
|
/**
|
|
78
105
|
* Subscription confirmation
|
|
@@ -84,6 +111,10 @@ export interface SubscribedPayload {
|
|
|
84
111
|
chains: number[];
|
|
85
112
|
/** All active chain IDs */
|
|
86
113
|
activeChains: number[];
|
|
114
|
+
/** Current personal notification channelId */
|
|
115
|
+
notificationChannelId?: string | null;
|
|
116
|
+
/** Current topic subscriptions (Flow 2 — reserved) */
|
|
117
|
+
topicIds?: string[];
|
|
87
118
|
}
|
|
88
119
|
/**
|
|
89
120
|
* Unsubscription confirmation
|
|
@@ -160,10 +191,28 @@ export interface WSServerMessagePing {
|
|
|
160
191
|
type: 'ping';
|
|
161
192
|
timestamp: number;
|
|
162
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Minimal real-time notification wake signal — carries no notification content.
|
|
196
|
+
* `channelOrTopicId` matched either the socket's personal channelId or one of its
|
|
197
|
+
* subscribed topicIds (Flow 2). Clients must fetch `GET /notifications` (or
|
|
198
|
+
* `GET /notifications/:messageId`) for the actual content.
|
|
199
|
+
*/
|
|
200
|
+
export interface NotificationPendingInfo {
|
|
201
|
+
/** Canonical UUID (lowercase, dashed) of the notification/channel_message row */
|
|
202
|
+
messageId: string;
|
|
203
|
+
notificationCategory?: NotificationCategory | string;
|
|
204
|
+
/** The channelId or topicId that matched, lowercased 0x hex */
|
|
205
|
+
channelOrTopicId?: string;
|
|
206
|
+
}
|
|
207
|
+
export interface WSServerMessageNotificationPending {
|
|
208
|
+
type: 'notification.pending';
|
|
209
|
+
payload: NotificationPendingInfo;
|
|
210
|
+
timestamp: number;
|
|
211
|
+
}
|
|
163
212
|
/**
|
|
164
213
|
* All server message types
|
|
165
214
|
*/
|
|
166
|
-
export type WSServerMessage = WSServerMessageConnected | WSServerMessageSubscribed | WSServerMessageUnsubscribed | WSServerMessageEvent | WSServerMessageError | WSServerMessagePing;
|
|
215
|
+
export type WSServerMessage = WSServerMessageConnected | WSServerMessageSubscribed | WSServerMessageUnsubscribed | WSServerMessageEvent | WSServerMessageError | WSServerMessagePing | WSServerMessageNotificationPending;
|
|
167
216
|
/**
|
|
168
217
|
* Type guard for server messages
|
|
169
218
|
*/
|
|
@@ -192,4 +241,8 @@ export declare function isErrorMessage(msg: WSServerMessage): msg is WSServerMes
|
|
|
192
241
|
* Type guard for ping messages
|
|
193
242
|
*/
|
|
194
243
|
export declare function isPingMessage(msg: WSServerMessage): msg is WSServerMessagePing;
|
|
244
|
+
/**
|
|
245
|
+
* Type guard for notification.pending messages
|
|
246
|
+
*/
|
|
247
|
+
export declare function isNotificationPendingMessage(msg: WSServerMessage): msg is WSServerMessageNotificationPending;
|
|
195
248
|
//# sourceMappingURL=ws-relay.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws-relay.types.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/ws-relay.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"ws-relay.types.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/ws-relay.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAMjF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,WAAW,GAAG,aAAa,GAAG,MAAM,GAAG,sBAAsB,CAAC;CACrE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,IAAI,EAAE,WAAW,CAAC;IAClB,sDAAsD;IACtD,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,IAAI,EAAE,aAAa,CAAC;IACpB,sCAAsC;IACtC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAA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,GAAG,IAAI,oBAAoB,CAEhF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG,IAAI,mBAAmB,CAE9E;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG,IAAI,kCAAkC,CAE5G"}
|
|
@@ -53,4 +53,10 @@ export function isErrorMessage(msg) {
|
|
|
53
53
|
export function isPingMessage(msg) {
|
|
54
54
|
return msg.type === 'ping';
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Type guard for notification.pending messages
|
|
58
|
+
*/
|
|
59
|
+
export function isNotificationPendingMessage(msg) {
|
|
60
|
+
return msg.type === 'notification.pending';
|
|
61
|
+
}
|
|
56
62
|
//# sourceMappingURL=ws-relay.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws-relay.types.js","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/ws-relay.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"ws-relay.types.js","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/ws-relay.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkQH,gFAAgF;AAChF,iCAAiC;AACjC,gFAAgF;AAEhF;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAa;IAC3C,OAAO,CACL,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,MAAM,IAAI,IAAI;QACd,WAAW,IAAI,IAAI,CACpB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,GAAoB;IACjD,OAAO,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAoB;IACrD,OAAO,GAAG,CAAC,IAAI,KAAK,WAAW,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAoB;IACtD,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAoB;IACxD,OAAO,GAAG,CAAC,IAAI,KAAK,cAAc,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,GAAoB;IACjD,OAAO,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,GAAoB;IAChD,OAAO,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC;AAC7B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,GAAoB;IAC/D,OAAO,GAAG,CAAC,IAAI,KAAK,sBAAsB,CAAC;AAC7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domains.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types/domains.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"domains.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types/domains.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAuCV,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,OAAO,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domains.js","sourceRoot":"","sources":["../../../../src/shared-lib/types/domains.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,gBAAgB;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IAC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E,UAAU;IACpB,cAAc,EAAE,gBAAgB;IAEhC,4BAA4B;IAC5B,cAAc,EAAE,gBAAgB;IAChC,OAAO,EAAE,SAAS;IAElB,iBAAiB;IACjB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,cAAc;CACpB,CAAC"}
|
package/package.json
CHANGED