@veltdev/sdk-staging 4.5.0-beta.89 → 4.5.0-beta.9
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/app/client/snippyly.model.d.ts +8 -62
- package/app/models/data/button.data.model.d.ts +0 -2
- package/app/models/data/comment-annotation.data.model.d.ts +0 -7
- package/app/models/data/comment-resolver.data.model.d.ts +0 -19
- package/app/models/data/comment-sidebar-config.model.d.ts +0 -26
- package/app/models/data/comment.data.model.d.ts +0 -1
- package/app/models/data/core-events.data.model.d.ts +0 -9
- package/app/models/data/custom-filter.data.model.d.ts +0 -8
- package/app/models/data/document-paths.data.model.d.ts +0 -12
- package/app/models/data/document.data.model.d.ts +0 -2
- package/app/models/data/location.model.d.ts +0 -10
- package/app/models/data/media-preview-config.data.model.d.ts +0 -2
- package/app/models/data/multi-thread.data.model.d.ts +0 -2
- package/app/models/data/notification.model.d.ts +1 -23
- package/app/models/data/presence-events.data.model.d.ts +0 -8
- package/app/models/data/reaction-resolver.data.model.d.ts +2 -4
- package/app/models/data/recorder-annotation.data.model.d.ts +0 -3
- package/app/models/data/recorder-events.data.model.d.ts +0 -19
- package/app/models/data/recorder.model.d.ts +0 -4
- package/app/models/data/resolver.data.model.d.ts +0 -7
- package/app/models/data/user-iam.data.model.d.ts +0 -6
- package/app/models/data/user-resolver.data.model.d.ts +0 -2
- package/app/models/data/user.data.model.d.ts +0 -10
- package/app/models/element/comment-element.model.d.ts +11 -136
- package/app/models/element/notification-element.model.d.ts +3 -103
- package/app/models/element/presence-element.model.d.ts +1 -15
- package/app/models/element/recorder-element.model.d.ts +158 -239
- package/app/utils/constants.d.ts +0 -45
- package/app/utils/enums.d.ts +1 -21
- package/models.d.ts +0 -4
- package/package.json +1 -1
- package/types.d.ts +0 -1
- package/velt.js +106 -117
- package/app/models/data/crdt.data.model.d.ts +0 -59
- package/app/models/data/encryption-provider.data.model.d.ts +0 -12
- package/app/models/data/notifications-events.data.model.d.ts +0 -9
- package/app/models/data/presence-actions.data.model.d.ts +0 -5
- package/app/models/element/crdt-element.model.d.ts +0 -166
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface CrdtVersion {
|
|
2
|
-
versionId: string;
|
|
3
|
-
versionName?: string;
|
|
4
|
-
state: Uint8Array | number[];
|
|
5
|
-
timestamp: number;
|
|
6
|
-
}
|
|
7
|
-
export interface CrdtVersionWithEncryptedState extends Omit<CrdtVersion, 'state'> {
|
|
8
|
-
encryptedState: string;
|
|
9
|
-
}
|
|
10
|
-
export interface CrdtUpdateDataQuery {
|
|
11
|
-
id: string;
|
|
12
|
-
state: Uint8Array | number[];
|
|
13
|
-
}
|
|
14
|
-
export interface CrdtOnDataChangeQuery {
|
|
15
|
-
id: string;
|
|
16
|
-
callback: (data: any) => void;
|
|
17
|
-
}
|
|
18
|
-
export interface CrdtGetDataQuery {
|
|
19
|
-
id: string;
|
|
20
|
-
}
|
|
21
|
-
export interface CrdtOnStateChangeQuery {
|
|
22
|
-
id: string;
|
|
23
|
-
callback: (data: any) => void;
|
|
24
|
-
}
|
|
25
|
-
export interface CrdtUpdateStateQuery {
|
|
26
|
-
id: string;
|
|
27
|
-
state: Uint8Array | number[];
|
|
28
|
-
}
|
|
29
|
-
export interface CrdtRegisterSyncUserQuery {
|
|
30
|
-
id: string;
|
|
31
|
-
}
|
|
32
|
-
export interface CrdtOnRegisteredUserChangeQuery {
|
|
33
|
-
id: string;
|
|
34
|
-
callback: (data: any) => void;
|
|
35
|
-
}
|
|
36
|
-
export interface CrdtSetPresenceQuery {
|
|
37
|
-
id: string;
|
|
38
|
-
}
|
|
39
|
-
export interface CrdtOnPresenceChangeQuery {
|
|
40
|
-
id: string;
|
|
41
|
-
callback: (data: any) => void;
|
|
42
|
-
}
|
|
43
|
-
export interface CrdtSaveVersionQuery {
|
|
44
|
-
id: string;
|
|
45
|
-
versionId: string;
|
|
46
|
-
versionName?: string;
|
|
47
|
-
state: Uint8Array | number[];
|
|
48
|
-
}
|
|
49
|
-
export interface CrdtGetVersionQuery {
|
|
50
|
-
id: string;
|
|
51
|
-
versionId: string;
|
|
52
|
-
}
|
|
53
|
-
export interface CrdtGetVersionsQuery {
|
|
54
|
-
id: string;
|
|
55
|
-
}
|
|
56
|
-
export interface CrdtDeleteVersionQuery {
|
|
57
|
-
id: string;
|
|
58
|
-
versionId: string;
|
|
59
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface EncryptConfig<T = any> {
|
|
2
|
-
data: T;
|
|
3
|
-
type?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface DecryptConfig<R = any> {
|
|
6
|
-
data: R;
|
|
7
|
-
type?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface VeltEncryptionProvider<T = any, R = any> {
|
|
10
|
-
encrypt: (config: EncryptConfig<T>) => Promise<R>;
|
|
11
|
-
decrypt: (config: DecryptConfig<R>) => Promise<T>;
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NotificationSettingsConfig } from "./notification.model";
|
|
2
|
-
import { NotificationEventTypes } from "../../utils/enums";
|
|
3
|
-
export interface SettingsUpdatedEvent {
|
|
4
|
-
settings: NotificationSettingsConfig;
|
|
5
|
-
isMutedAll: boolean;
|
|
6
|
-
}
|
|
7
|
-
export type NotificationEventTypesMap = {
|
|
8
|
-
[NotificationEventTypes.SETTINGS_UPDATED]: SettingsUpdatedEvent;
|
|
9
|
-
};
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CrdtGetDataQuery, CrdtGetVersionQuery, CrdtOnDataChangeQuery, CrdtOnPresenceChangeQuery, CrdtOnRegisteredUserChangeQuery, CrdtOnStateChangeQuery, CrdtRegisterSyncUserQuery, CrdtSetPresenceQuery, CrdtSaveVersionQuery, CrdtUpdateDataQuery, CrdtUpdateStateQuery } from "../data/crdt.data.model";
|
|
3
|
-
|
|
4
|
-
export declare class CrdtElement {
|
|
5
|
-
/**
|
|
6
|
-
* Update data for a specific CRDT document
|
|
7
|
-
* @param id Document ID
|
|
8
|
-
* @param state State data as Uint8Array or number array
|
|
9
|
-
*/
|
|
10
|
-
updateData: (updateDataQuery: CrdtUpdateDataQuery) => Promise<any>;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Subscribe to data changes for a specific CRDT document
|
|
14
|
-
* @param id Document ID
|
|
15
|
-
* @param callback Callback function to handle data changes
|
|
16
|
-
* @returns Unsubscribe function
|
|
17
|
-
*/
|
|
18
|
-
onDataChange: (onDataChangeQuery: CrdtOnDataChangeQuery) => () => void;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Get data for a specific CRDT document
|
|
22
|
-
* @param id Document ID
|
|
23
|
-
*/
|
|
24
|
-
getData: (getDataQuery: CrdtGetDataQuery) => Promise<any>;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Subscribe to state changes for a specific CRDT document
|
|
28
|
-
* @param id Document ID
|
|
29
|
-
* @param callback Callback function to handle state changes
|
|
30
|
-
* @returns Unsubscribe function
|
|
31
|
-
*/
|
|
32
|
-
onStateChange: (onStateChangeQuery: CrdtOnStateChangeQuery) => () => void;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Update state for a specific CRDT document
|
|
36
|
-
* @param id Document ID
|
|
37
|
-
* @param state State data as Uint8Array or number array
|
|
38
|
-
*/
|
|
39
|
-
updateState: (updateStateQuery: CrdtUpdateStateQuery) => Promise<any>;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Register a user for synchronization on a specific CRDT document
|
|
43
|
-
* @param id Document ID
|
|
44
|
-
*/
|
|
45
|
-
registerSyncUser: (registerSyncUserQuery: CrdtRegisterSyncUserQuery) => Promise<void>;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Subscribe to registered user changes for a specific CRDT document
|
|
49
|
-
*/
|
|
50
|
-
onRegisteredUserChange: (onRegisteredUserChangeQuery: CrdtOnRegisteredUserChangeQuery) => () => void;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Set presence for a specific CRDT document
|
|
54
|
-
* @param id Document ID
|
|
55
|
-
*/
|
|
56
|
-
setPresence: (setPresenceQuery: CrdtSetPresenceQuery) => Promise<void>;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Subscribe to presence changes for a specific CRDT document
|
|
60
|
-
* @param id Document ID
|
|
61
|
-
* @param callback Callback function to handle presence changes
|
|
62
|
-
* @returns Unsubscribe function
|
|
63
|
-
*/
|
|
64
|
-
onPresenceChange: (onPresenceChangeQuery: CrdtOnPresenceChangeQuery) => () => void;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Store a version of a specific CRDT document
|
|
68
|
-
* @param id Document ID
|
|
69
|
-
* @param versionId Version ID
|
|
70
|
-
* @param versionName Version name
|
|
71
|
-
* @param state State data as Uint8Array or number array
|
|
72
|
-
*/
|
|
73
|
-
saveVersion: (saveVersionQuery: CrdtSaveVersionQuery) => Promise<any>;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Get a version of a specific CRDT document
|
|
77
|
-
* @param id Document ID
|
|
78
|
-
* @param versionId Version ID
|
|
79
|
-
*/
|
|
80
|
-
getVersion: (getVersionQuery: CrdtGetVersionQuery) => Promise<any>;
|
|
81
|
-
|
|
82
|
-
constructor();
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Update data for a specific CRDT document
|
|
86
|
-
* @param id Document ID
|
|
87
|
-
* @param state State data as Uint8Array or number array
|
|
88
|
-
*/
|
|
89
|
-
private _updateData;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Subscribe to data changes for a specific CRDT document
|
|
93
|
-
* @param id Document ID
|
|
94
|
-
* @param callback Callback function to handle data changes
|
|
95
|
-
* @returns Unsubscribe function
|
|
96
|
-
*/
|
|
97
|
-
private _onDataChange;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Get data for a specific CRDT document
|
|
101
|
-
* @param id Document ID
|
|
102
|
-
*/
|
|
103
|
-
private _getData;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Subscribe to state changes for a specific CRDT document
|
|
107
|
-
* @param id Document ID
|
|
108
|
-
* @param callback Callback function to handle state changes
|
|
109
|
-
* @returns Unsubscribe function
|
|
110
|
-
*/
|
|
111
|
-
private _onStateChange;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Update state for a specific CRDT document
|
|
115
|
-
* @param id Document ID
|
|
116
|
-
* @param state State data as Uint8Array or number array
|
|
117
|
-
*/
|
|
118
|
-
private _updateState;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Register a user for synchronization on a specific CRDT document
|
|
122
|
-
* @param id Document ID
|
|
123
|
-
*/
|
|
124
|
-
private _registerSyncUser;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Subscribe to registered user changes for a specific CRDT document
|
|
128
|
-
*/
|
|
129
|
-
private _onRegisteredUserChange;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Set presence for a specific CRDT document
|
|
133
|
-
* @param id Document ID
|
|
134
|
-
*/
|
|
135
|
-
private _setPresence;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Subscribe to presence changes for a specific CRDT document
|
|
139
|
-
* @param id Document ID
|
|
140
|
-
* @param callback Callback function to handle presence changes
|
|
141
|
-
* @returns Unsubscribe function
|
|
142
|
-
*/
|
|
143
|
-
private _onPresenceChange;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Store a version of a specific CRDT document
|
|
147
|
-
* @param id Document ID
|
|
148
|
-
* @param versionId Version ID
|
|
149
|
-
* @param versionName Version name
|
|
150
|
-
* @param state State data as Uint8Array or number array
|
|
151
|
-
*/
|
|
152
|
-
private _saveVersion;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Get a version of a specific CRDT document
|
|
156
|
-
* @param id Document ID
|
|
157
|
-
* @param versionId Version ID
|
|
158
|
-
*/
|
|
159
|
-
private _getVersion;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Get all versions of a specific CRDT document
|
|
163
|
-
* @param id Document ID
|
|
164
|
-
*/
|
|
165
|
-
private _getVersions;
|
|
166
|
-
}
|