@oxyfoo/whymeet-types 0.0.4 → 0.0.5
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/HTTP/Auth.d.ts +19 -0
- package/dist/WS/Request.d.ts +7 -1
- package/package.json +1 -1
package/dist/HTTP/Auth.d.ts
CHANGED
|
@@ -85,3 +85,22 @@ export interface HTTPRequest_SignOut {
|
|
|
85
85
|
export interface HTTPResponse_SignOut {
|
|
86
86
|
success: boolean;
|
|
87
87
|
}
|
|
88
|
+
export interface HTTPRequest_IntegrityChallenge {
|
|
89
|
+
deviceUUID: string;
|
|
90
|
+
sessionToken: string;
|
|
91
|
+
}
|
|
92
|
+
export interface HTTPResponse_IntegrityChallenge {
|
|
93
|
+
challenge: string | null;
|
|
94
|
+
required: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface HTTPRequest_IntegrityVerify {
|
|
97
|
+
deviceUUID: string;
|
|
98
|
+
sessionToken: string;
|
|
99
|
+
platform: 'android' | 'ios';
|
|
100
|
+
challenge: string;
|
|
101
|
+
token: string;
|
|
102
|
+
keyId?: string;
|
|
103
|
+
}
|
|
104
|
+
export interface HTTPResponse_IntegrityVerify {
|
|
105
|
+
verified: boolean;
|
|
106
|
+
}
|
package/dist/WS/Request.d.ts
CHANGED
|
@@ -891,7 +891,13 @@ export interface WSEvent_Suspended {
|
|
|
891
891
|
event: 'suspended';
|
|
892
892
|
payload: Record<string, never>;
|
|
893
893
|
}
|
|
894
|
-
export
|
|
894
|
+
export interface WSEvent_RateLimited {
|
|
895
|
+
event: 'rate-limited';
|
|
896
|
+
payload: {
|
|
897
|
+
message: string;
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
export type WSServerEvent = WSEvent_NewMessage | WSEvent_NewMatch | WSEvent_Notification | WSEvent_MarkRead | WSEvent_Suspended | WSEvent_RateLimited;
|
|
895
901
|
export interface WSEnvelope<T = WSClientRequest | WSServerResponse | WSServerEvent> {
|
|
896
902
|
id: string;
|
|
897
903
|
timestamp: number;
|