@satorijs/protocol
Advanced tools
Comparing version 1.4.2 to 1.5.0
@@ -14,3 +14,3 @@ import Element from '@satorijs/element'; | ||
statusText?: string; | ||
data?: ArrayBuffer; | ||
body?: ArrayBuffer; | ||
headers?: Headers; | ||
@@ -139,2 +139,4 @@ } | ||
export interface Login { | ||
sn: number; | ||
adapter: string; | ||
user?: User; | ||
@@ -147,3 +149,2 @@ platform?: string; | ||
features: string[]; | ||
proxyUrls: string[]; | ||
} | ||
@@ -199,3 +200,3 @@ export const enum Status { | ||
export interface Event { | ||
id: number; | ||
sn: number; | ||
type: string; | ||
@@ -228,3 +229,4 @@ selfId: string; | ||
IDENTIFY = 3, | ||
READY = 4 | ||
READY = 4, | ||
META = 5 | ||
} | ||
@@ -237,3 +239,3 @@ export interface GatewayPayloadStructure<O extends Opcode> { | ||
[O in Opcode]: GatewayPayloadStructure<O>; | ||
}[Opcode.EVENT | Opcode.PONG | Opcode.READY]; | ||
}[Opcode.EVENT | Opcode.PONG | Opcode.READY | Opcode.META]; | ||
export type ClientPayload = { | ||
@@ -248,7 +250,11 @@ [O in Opcode]: GatewayPayloadStructure<O>; | ||
token?: string; | ||
sequence?: number; | ||
sn?: number; | ||
}; | ||
[Opcode.READY]: { | ||
logins: Login[]; | ||
proxyUrls: string[]; | ||
}; | ||
[Opcode.META]: { | ||
proxyUrls: string[]; | ||
}; | ||
} | ||
@@ -255,0 +261,0 @@ export namespace WebSocket { |
{ | ||
"name": "@satorijs/protocol", | ||
"description": "Protocol types for Satori protocol", | ||
"version": "1.4.2", | ||
"version": "1.5.0", | ||
"type": "module", | ||
@@ -11,5 +11,5 @@ "main": "lib/index.cjs", | ||
".": { | ||
"types": "./lib/index.d.ts", | ||
"require": "./lib/index.cjs", | ||
"import": "./lib/index.mjs", | ||
"types": "./lib/index.d.ts" | ||
"import": "./lib/index.mjs" | ||
}, | ||
@@ -43,4 +43,4 @@ "./src/*": "./src/*", | ||
"@satorijs/element": "^3.1.7", | ||
"cosmokit": "^1.6.2" | ||
"cosmokit": "^1.6.3" | ||
} | ||
} |
@@ -17,3 +17,3 @@ import Element from '@satorijs/element' | ||
statusText?: string | ||
data?: ArrayBuffer | ||
body?: ArrayBuffer | ||
headers?: Headers | ||
@@ -229,2 +229,4 @@ } | ||
export interface Login { | ||
sn: number | ||
adapter: string | ||
user?: User | ||
@@ -237,3 +239,2 @@ platform?: string | ||
features: string[] | ||
proxyUrls: string[] | ||
} | ||
@@ -314,3 +315,3 @@ | ||
export interface Event { | ||
id: number | ||
sn: number | ||
type: string | ||
@@ -346,2 +347,3 @@ selfId: string | ||
READY = 4, | ||
META = 5, | ||
} | ||
@@ -356,3 +358,3 @@ | ||
[O in Opcode]: GatewayPayloadStructure<O> | ||
}[Opcode.EVENT | Opcode.PONG | Opcode.READY] | ||
}[Opcode.EVENT | Opcode.PONG | Opcode.READY | Opcode.META] | ||
@@ -369,7 +371,11 @@ export type ClientPayload = { | ||
token?: string | ||
sequence?: number | ||
sn?: number | ||
} | ||
[Opcode.READY]: { | ||
logins: Login[] | ||
proxyUrls: string[] | ||
} | ||
[Opcode.META]: { | ||
proxyUrls: string[] | ||
} | ||
} | ||
@@ -376,0 +382,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38492
875
Updatedcosmokit@^1.6.3