File tree Expand file tree Collapse file tree 5 files changed +8
-15
lines changed
Expand file tree Collapse file tree 5 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ message DeviceInfo {
3838 mobile = 1 ;
3939 tablet = 2 ;
4040 desktop = 3 ;
41- selfHostedServer = 4 ;
4241 }
4342 string name = 1 ;
4443 optional DeviceType deviceType = 2 ;
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ export declare const DeviceInfo_DeviceType: {
3939 readonly mobile : "mobile" ;
4040 readonly tablet : "tablet" ;
4141 readonly desktop : "desktop" ;
42- readonly selfHostedServer : "selfHostedServer" ;
4342 readonly UNRECOGNIZED : "UNRECOGNIZED" ;
4443} ;
4544export type DeviceInfo_DeviceType = typeof DeviceInfo_DeviceType [ keyof typeof DeviceInfo_DeviceType ] ;
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ export var DeviceInfo_DeviceType = {
4848 mobile : "mobile" ,
4949 tablet : "tablet" ,
5050 desktop : "desktop" ,
51- selfHostedServer : "selfHostedServer" ,
5251 UNRECOGNIZED : "UNRECOGNIZED" ,
5352} ;
5453export function deviceInfo_DeviceTypeFromJSON ( object ) {
@@ -65,9 +64,6 @@ export function deviceInfo_DeviceTypeFromJSON(object) {
6564 case 3 :
6665 case "desktop" :
6766 return DeviceInfo_DeviceType . desktop ;
68- case 4 :
69- case "selfHostedServer" :
70- return DeviceInfo_DeviceType . selfHostedServer ;
7167 case - 1 :
7268 case "UNRECOGNIZED" :
7369 default :
@@ -84,8 +80,6 @@ export function deviceInfo_DeviceTypeToNumber(object) {
8480 return 2 ;
8581 case DeviceInfo_DeviceType . desktop :
8682 return 3 ;
87- case DeviceInfo_DeviceType . selfHostedServer :
88- return 4 ;
8983 case DeviceInfo_DeviceType . UNRECOGNIZED :
9084 default :
9185 return - 1 ;
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ export const DeviceInfo_DeviceType = {
8383 mobile : "mobile" ,
8484 tablet : "tablet" ,
8585 desktop : "desktop" ,
86- selfHostedServer : "selfHostedServer" ,
8786 UNRECOGNIZED : "UNRECOGNIZED" ,
8887} as const ;
8988
@@ -103,9 +102,6 @@ export function deviceInfo_DeviceTypeFromJSON(object: any): DeviceInfo_DeviceTyp
103102 case 3 :
104103 case "desktop" :
105104 return DeviceInfo_DeviceType . desktop ;
106- case 4 :
107- case "selfHostedServer" :
108- return DeviceInfo_DeviceType . selfHostedServer ;
109105 case - 1 :
110106 case "UNRECOGNIZED" :
111107 default :
@@ -123,8 +119,6 @@ export function deviceInfo_DeviceTypeToNumber(object: DeviceInfo_DeviceType): nu
123119 return 2 ;
124120 case DeviceInfo_DeviceType . desktop :
125121 return 3 ;
126- case DeviceInfo_DeviceType . selfHostedServer :
127- return 4 ;
128122 case DeviceInfo_DeviceType . UNRECOGNIZED :
129123 default :
130124 return - 1 ;
Original file line number Diff line number Diff line change @@ -699,7 +699,14 @@ export class MapeoManager extends TypedEmitter {
699699 }
700700
701701 /**
702- * @template {import('type-fest').Exact<import('./schema/client.js').DeviceInfoParam, T>} T
702+ * @typedef {Exclude<
703+ * import('./schema/client.js').DeviceInfoParam['deviceType'],
704+ * 'selfHostedServer'>} RPCDeviceType
705+ */
706+
707+ /**
708+ * @template {import('type-fest').Exact<
709+ * import('./schema/client.js').DeviceInfoParam & {deviceType?: RPCDeviceType}, T> } T
703710 * @param {T } deviceInfo
704711 */
705712 async setDeviceInfo ( deviceInfo ) {
You can’t perform that action at this time.
0 commit comments