@sogni-ai/sogni-client 3.0.0-alpha.36 → 3.0.0-alpha.37
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [3.0.0-alpha.37](https://github.com/Sogni-AI/sogni-client/compare/v3.0.0-alpha.36...v3.0.0-alpha.37) (2025-06-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add support for `authenticated` socket event ([bc3d345](https://github.com/Sogni-AI/sogni-client/commit/bc3d3451e7640eb15f1368144bbc112298f640fa))
|
|
7
|
+
|
|
1
8
|
# [3.0.0-alpha.36](https://github.com/Sogni-AI/sogni-client/compare/v3.0.0-alpha.35...v3.0.0-alpha.36) (2025-06-29)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
import { SupernetType } from './types';
|
|
2
2
|
import { Balances } from '../../Account/types';
|
|
3
|
+
export interface AuthenticatedData {
|
|
4
|
+
id: string;
|
|
5
|
+
clientType: 'artist' | 'worker';
|
|
6
|
+
username: string;
|
|
7
|
+
address: string;
|
|
8
|
+
SID: number;
|
|
9
|
+
clientSID: number;
|
|
10
|
+
addressSID: number;
|
|
11
|
+
balanceVersion: 2;
|
|
12
|
+
tokens: {
|
|
13
|
+
sogni: {
|
|
14
|
+
settled: string;
|
|
15
|
+
credit: string;
|
|
16
|
+
debit: string;
|
|
17
|
+
net: string;
|
|
18
|
+
};
|
|
19
|
+
spark: {
|
|
20
|
+
settled: string;
|
|
21
|
+
credit: string;
|
|
22
|
+
debit: string;
|
|
23
|
+
net: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
activeProjects: [];
|
|
27
|
+
unclaimedCompletedProjects: [];
|
|
28
|
+
isMainnet: boolean;
|
|
29
|
+
accountWasMigrated: boolean;
|
|
30
|
+
hasUnclaimedAirdrop: boolean;
|
|
31
|
+
firstLoginAfterMigration: boolean;
|
|
32
|
+
}
|
|
3
33
|
export type JobErrorData = {
|
|
4
34
|
jobID: string;
|
|
5
35
|
imgID?: string;
|
|
@@ -57,6 +87,10 @@ export type ArtistCancelConfirmation = {
|
|
|
57
87
|
jobID: string;
|
|
58
88
|
};
|
|
59
89
|
export type SocketEventMap = {
|
|
90
|
+
/**
|
|
91
|
+
* @event WebSocketClient#authenticated - Received after successful connection to the WebSocket server
|
|
92
|
+
*/
|
|
93
|
+
authenticated: AuthenticatedData;
|
|
60
94
|
/**
|
|
61
95
|
* @event WebSocketClient#balanceUpdate - Received balance update
|
|
62
96
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
import { SupernetType } from './types';
|
|
2
2
|
import { Balances } from '../../Account/types';
|
|
3
3
|
|
|
4
|
+
export interface AuthenticatedData {
|
|
5
|
+
id: string;
|
|
6
|
+
clientType: 'artist' | 'worker';
|
|
7
|
+
username: string;
|
|
8
|
+
address: string;
|
|
9
|
+
SID: number;
|
|
10
|
+
clientSID: number;
|
|
11
|
+
addressSID: number;
|
|
12
|
+
balanceVersion: 2;
|
|
13
|
+
tokens: {
|
|
14
|
+
sogni: {
|
|
15
|
+
settled: string;
|
|
16
|
+
credit: string;
|
|
17
|
+
debit: string;
|
|
18
|
+
net: string;
|
|
19
|
+
};
|
|
20
|
+
spark: {
|
|
21
|
+
settled: string;
|
|
22
|
+
credit: string;
|
|
23
|
+
debit: string;
|
|
24
|
+
net: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
activeProjects: [];
|
|
28
|
+
unclaimedCompletedProjects: [];
|
|
29
|
+
isMainnet: boolean;
|
|
30
|
+
accountWasMigrated: boolean;
|
|
31
|
+
hasUnclaimedAirdrop: boolean;
|
|
32
|
+
firstLoginAfterMigration: boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
4
35
|
export type JobErrorData = {
|
|
5
36
|
jobID: string;
|
|
6
37
|
imgID?: string;
|
|
@@ -70,6 +101,10 @@ export type ArtistCancelConfirmation = {
|
|
|
70
101
|
};
|
|
71
102
|
|
|
72
103
|
export type SocketEventMap = {
|
|
104
|
+
/**
|
|
105
|
+
* @event WebSocketClient#authenticated - Received after successful connection to the WebSocket server
|
|
106
|
+
*/
|
|
107
|
+
authenticated: AuthenticatedData;
|
|
73
108
|
/**
|
|
74
109
|
* @event WebSocketClient#balanceUpdate - Received balance update
|
|
75
110
|
*/
|