@lazycatcloud/sdk 0.1.489 → 0.1.491
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/common/apk_shell.d.ts +126 -0
- package/dist/common/box.d.ts +2061 -0
- package/dist/common/browseronly.d.ts +159 -0
- package/dist/common/end_device.d.ts +358 -0
- package/dist/common/file_handler.d.ts +3398 -0
- package/dist/common/filetrans.d.ts +8541 -0
- package/dist/common/gateway.d.ts +249 -0
- package/dist/common/iscsi.d.ts +1841 -0
- package/dist/common/media_meta.d.ts +342 -0
- package/dist/common/message.d.ts +1435 -0
- package/dist/common/peripheral_device.d.ts +1768 -0
- package/dist/common/security_context.d.ts +241 -0
- package/dist/common/users.d.ts +367 -0
- package/dist/dlna/dlna.d.ts +344 -0
- package/dist/extentions/app_common.d.ts +130 -0
- package/dist/extentions/base.d.ts +136 -0
- package/dist/extentions/client_authorization.d.ts +19 -0
- package/dist/extentions/index.d.ts +24 -0
- package/dist/extentions/mediasession/definitions.d.ts +54 -0
- package/dist/extentions/mediasession/index.d.ts +8 -0
- package/dist/extentions/mediasession/web.d.ts +7 -0
- package/dist/extentions/safe_app.d.ts +35 -0
- package/dist/extentions/unsafe_app.d.ts +4 -0
- package/dist/extentions/vibrate_type.d.ts +10 -0
- package/dist/extentions/webview-bridge.d.ts +1 -0
- package/dist/google/protobuf/empty.d.ts +20 -0
- package/dist/google/protobuf/timestamp.d.ts +274 -0
- package/dist/grpcweb.d.ts +27 -0
- package/dist/index.d.ts +87 -0
- package/dist/localdevice/ble.d.ts +566 -0
- package/dist/localdevice/client.d.ts +218 -0
- package/dist/localdevice/cloud-driver.d.ts +152 -0
- package/dist/localdevice/config.d.ts +150 -0
- package/dist/localdevice/contacts.d.ts +556 -0
- package/dist/localdevice/device.d.ts +86 -0
- package/dist/localdevice/dialog.d.ts +239 -0
- package/dist/localdevice/local-launch.d.ts +303 -0
- package/dist/localdevice/network.d.ts +84 -0
- package/dist/localdevice/oneway-sync.d.ts +274 -0
- package/dist/localdevice/permission.d.ts +233 -0
- package/dist/localdevice/photo.d.ts +1408 -0
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/localdevice/remote-control.d.ts +1941 -0
- package/dist/localdevice/remote-input-method.d.ts +128 -0
- package/dist/package.json +1 -1
- package/dist/sys/btled.d.ts +197 -0
- package/dist/sys/btrfs.d.ts +642 -0
- package/dist/sys/devopt.d.ts +101 -0
- package/dist/sys/dirmon.d.ts +136 -0
- package/dist/sys/event.d.ts +143 -0
- package/dist/sys/hal.d.ts +1021 -0
- package/dist/sys/ingress.d.ts +347 -0
- package/dist/sys/network_manager.d.ts +1179 -0
- package/dist/sys/package_manager.d.ts +25666 -0
- package/dist/sys/stats/cgroup_metrics.d.ts +22045 -0
- package/dist/sys/tvos.d.ts +490 -0
- package/dist/sys/version.d.ts +65 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Empty } from "../google/protobuf/empty";
|
|
5
|
+
export interface SshdEnableRequest {
|
|
6
|
+
/** 是否开启 sshd 服务 */
|
|
7
|
+
enable: boolean;
|
|
8
|
+
/** root 密码(该字段仅当 Enable 为 true 时有效) */
|
|
9
|
+
password: string;
|
|
10
|
+
/** 若为true,则password字段的内容为对应公钥 */
|
|
11
|
+
passwordIsPublicKey: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface EnableSshdResponse {
|
|
14
|
+
/** 是否开启了 sshd 服务 */
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const SshdEnableRequest: {
|
|
18
|
+
encode(message: SshdEnableRequest, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SshdEnableRequest;
|
|
20
|
+
fromJSON(object: any): SshdEnableRequest;
|
|
21
|
+
toJSON(message: SshdEnableRequest): unknown;
|
|
22
|
+
create<I extends {
|
|
23
|
+
enable?: boolean;
|
|
24
|
+
password?: string;
|
|
25
|
+
passwordIsPublicKey?: boolean;
|
|
26
|
+
} & {
|
|
27
|
+
enable?: boolean;
|
|
28
|
+
password?: string;
|
|
29
|
+
passwordIsPublicKey?: boolean;
|
|
30
|
+
} & { [K in Exclude<keyof I, keyof SshdEnableRequest>]: never; }>(base?: I): SshdEnableRequest;
|
|
31
|
+
fromPartial<I_1 extends {
|
|
32
|
+
enable?: boolean;
|
|
33
|
+
password?: string;
|
|
34
|
+
passwordIsPublicKey?: boolean;
|
|
35
|
+
} & {
|
|
36
|
+
enable?: boolean;
|
|
37
|
+
password?: string;
|
|
38
|
+
passwordIsPublicKey?: boolean;
|
|
39
|
+
} & { [K_1 in Exclude<keyof I_1, keyof SshdEnableRequest>]: never; }>(object: I_1): SshdEnableRequest;
|
|
40
|
+
};
|
|
41
|
+
export declare const EnableSshdResponse: {
|
|
42
|
+
encode(message: EnableSshdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
43
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EnableSshdResponse;
|
|
44
|
+
fromJSON(object: any): EnableSshdResponse;
|
|
45
|
+
toJSON(message: EnableSshdResponse): unknown;
|
|
46
|
+
create<I extends {
|
|
47
|
+
enabled?: boolean;
|
|
48
|
+
} & {
|
|
49
|
+
enabled?: boolean;
|
|
50
|
+
} & { [K in Exclude<keyof I, "enabled">]: never; }>(base?: I): EnableSshdResponse;
|
|
51
|
+
fromPartial<I_1 extends {
|
|
52
|
+
enabled?: boolean;
|
|
53
|
+
} & {
|
|
54
|
+
enabled?: boolean;
|
|
55
|
+
} & { [K_1 in Exclude<keyof I_1, "enabled">]: never; }>(object: I_1): EnableSshdResponse;
|
|
56
|
+
};
|
|
57
|
+
export interface DevOptService {
|
|
58
|
+
SshdEnable(request: DeepPartial<SshdEnableRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
59
|
+
SshdEnabled(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<EnableSshdResponse>;
|
|
60
|
+
}
|
|
61
|
+
export declare class DevOptServiceClientImpl implements DevOptService {
|
|
62
|
+
private readonly rpc;
|
|
63
|
+
constructor(rpc: Rpc);
|
|
64
|
+
SshdEnable(request: DeepPartial<SshdEnableRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
65
|
+
SshdEnabled(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<EnableSshdResponse>;
|
|
66
|
+
}
|
|
67
|
+
export declare const DevOptServiceDesc: {
|
|
68
|
+
serviceName: string;
|
|
69
|
+
};
|
|
70
|
+
export declare const DevOptServiceSshdEnableDesc: UnaryMethodDefinitionish;
|
|
71
|
+
export declare const DevOptServiceSshdEnabledDesc: UnaryMethodDefinitionish;
|
|
72
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
73
|
+
requestStream: any;
|
|
74
|
+
responseStream: any;
|
|
75
|
+
}
|
|
76
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
77
|
+
interface Rpc {
|
|
78
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
79
|
+
}
|
|
80
|
+
export declare class GrpcWebImpl {
|
|
81
|
+
private host;
|
|
82
|
+
private options;
|
|
83
|
+
constructor(host: string, options: {
|
|
84
|
+
transport?: grpc.TransportFactory;
|
|
85
|
+
debug?: boolean;
|
|
86
|
+
metadata?: grpc.Metadata;
|
|
87
|
+
upStreamRetryCodes?: number[];
|
|
88
|
+
});
|
|
89
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
90
|
+
}
|
|
91
|
+
declare const tsProtoGlobalThis: any;
|
|
92
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
93
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
94
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
95
|
+
} : Partial<T>;
|
|
96
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
97
|
+
code: grpc.Code;
|
|
98
|
+
metadata: grpc.Metadata;
|
|
99
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
export interface DirMonitorFindNewRequest {
|
|
6
|
+
/** 要查询的目标路径,必须在用户 home 下 */
|
|
7
|
+
path: string;
|
|
8
|
+
/** 上次调用返回的 token,首次调用传空即可 */
|
|
9
|
+
token: Uint8Array;
|
|
10
|
+
}
|
|
11
|
+
export interface DirMonitorFindNewResponse {
|
|
12
|
+
/**
|
|
13
|
+
* 自从上次调用,指定目录下新增的文件
|
|
14
|
+
* 若传入 token 无效,则为所有文件
|
|
15
|
+
*/
|
|
16
|
+
files: string[];
|
|
17
|
+
/** 返回的 token 仅对请求时传入的路径有效 */
|
|
18
|
+
token: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
export interface StreamDirMonitorFindNewResp {
|
|
21
|
+
/**
|
|
22
|
+
* 与DirMonitorFindNewResponse相同
|
|
23
|
+
* 但是为了应对过多文件传输超出grpc传输
|
|
24
|
+
* 上限, 因此改为stream传输
|
|
25
|
+
*/
|
|
26
|
+
files: string[];
|
|
27
|
+
token: Uint8Array;
|
|
28
|
+
}
|
|
29
|
+
export declare const DirMonitorFindNewRequest: {
|
|
30
|
+
encode(message: DirMonitorFindNewRequest, writer?: _m0.Writer): _m0.Writer;
|
|
31
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DirMonitorFindNewRequest;
|
|
32
|
+
fromJSON(object: any): DirMonitorFindNewRequest;
|
|
33
|
+
toJSON(message: DirMonitorFindNewRequest): unknown;
|
|
34
|
+
create<I extends {
|
|
35
|
+
path?: string;
|
|
36
|
+
token?: Uint8Array;
|
|
37
|
+
} & {
|
|
38
|
+
path?: string;
|
|
39
|
+
token?: Uint8Array;
|
|
40
|
+
} & { [K in Exclude<keyof I, keyof DirMonitorFindNewRequest>]: never; }>(base?: I): DirMonitorFindNewRequest;
|
|
41
|
+
fromPartial<I_1 extends {
|
|
42
|
+
path?: string;
|
|
43
|
+
token?: Uint8Array;
|
|
44
|
+
} & {
|
|
45
|
+
path?: string;
|
|
46
|
+
token?: Uint8Array;
|
|
47
|
+
} & { [K_1 in Exclude<keyof I_1, keyof DirMonitorFindNewRequest>]: never; }>(object: I_1): DirMonitorFindNewRequest;
|
|
48
|
+
};
|
|
49
|
+
export declare const DirMonitorFindNewResponse: {
|
|
50
|
+
encode(message: DirMonitorFindNewResponse, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DirMonitorFindNewResponse;
|
|
52
|
+
fromJSON(object: any): DirMonitorFindNewResponse;
|
|
53
|
+
toJSON(message: DirMonitorFindNewResponse): unknown;
|
|
54
|
+
create<I extends {
|
|
55
|
+
files?: string[];
|
|
56
|
+
token?: Uint8Array;
|
|
57
|
+
} & {
|
|
58
|
+
files?: string[] & string[] & { [K in Exclude<keyof I["files"], keyof string[]>]: never; };
|
|
59
|
+
token?: Uint8Array;
|
|
60
|
+
} & { [K_1 in Exclude<keyof I, keyof DirMonitorFindNewResponse>]: never; }>(base?: I): DirMonitorFindNewResponse;
|
|
61
|
+
fromPartial<I_1 extends {
|
|
62
|
+
files?: string[];
|
|
63
|
+
token?: Uint8Array;
|
|
64
|
+
} & {
|
|
65
|
+
files?: string[] & string[] & { [K_2 in Exclude<keyof I_1["files"], keyof string[]>]: never; };
|
|
66
|
+
token?: Uint8Array;
|
|
67
|
+
} & { [K_3 in Exclude<keyof I_1, keyof DirMonitorFindNewResponse>]: never; }>(object: I_1): DirMonitorFindNewResponse;
|
|
68
|
+
};
|
|
69
|
+
export declare const StreamDirMonitorFindNewResp: {
|
|
70
|
+
encode(message: StreamDirMonitorFindNewResp, writer?: _m0.Writer): _m0.Writer;
|
|
71
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamDirMonitorFindNewResp;
|
|
72
|
+
fromJSON(object: any): StreamDirMonitorFindNewResp;
|
|
73
|
+
toJSON(message: StreamDirMonitorFindNewResp): unknown;
|
|
74
|
+
create<I extends {
|
|
75
|
+
files?: string[];
|
|
76
|
+
token?: Uint8Array;
|
|
77
|
+
} & {
|
|
78
|
+
files?: string[] & string[] & { [K in Exclude<keyof I["files"], keyof string[]>]: never; };
|
|
79
|
+
token?: Uint8Array;
|
|
80
|
+
} & { [K_1 in Exclude<keyof I, keyof StreamDirMonitorFindNewResp>]: never; }>(base?: I): StreamDirMonitorFindNewResp;
|
|
81
|
+
fromPartial<I_1 extends {
|
|
82
|
+
files?: string[];
|
|
83
|
+
token?: Uint8Array;
|
|
84
|
+
} & {
|
|
85
|
+
files?: string[] & string[] & { [K_2 in Exclude<keyof I_1["files"], keyof string[]>]: never; };
|
|
86
|
+
token?: Uint8Array;
|
|
87
|
+
} & { [K_3 in Exclude<keyof I_1, keyof StreamDirMonitorFindNewResp>]: never; }>(object: I_1): StreamDirMonitorFindNewResp;
|
|
88
|
+
};
|
|
89
|
+
export interface DirMonitor {
|
|
90
|
+
FindNew(request: DeepPartial<DirMonitorFindNewRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<DirMonitorFindNewResponse>;
|
|
91
|
+
FindNewStream(request: DeepPartial<DirMonitorFindNewRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<StreamDirMonitorFindNewResp>;
|
|
92
|
+
}
|
|
93
|
+
export declare class DirMonitorClientImpl implements DirMonitor {
|
|
94
|
+
private readonly rpc;
|
|
95
|
+
constructor(rpc: Rpc);
|
|
96
|
+
FindNew(request: DeepPartial<DirMonitorFindNewRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<DirMonitorFindNewResponse>;
|
|
97
|
+
FindNewStream(request: DeepPartial<DirMonitorFindNewRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<StreamDirMonitorFindNewResp>;
|
|
98
|
+
}
|
|
99
|
+
export declare const DirMonitorDesc: {
|
|
100
|
+
serviceName: string;
|
|
101
|
+
};
|
|
102
|
+
export declare const DirMonitorFindNewDesc: UnaryMethodDefinitionish;
|
|
103
|
+
export declare const DirMonitorFindNewStreamDesc: UnaryMethodDefinitionish;
|
|
104
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
105
|
+
requestStream: any;
|
|
106
|
+
responseStream: any;
|
|
107
|
+
}
|
|
108
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
109
|
+
interface Rpc {
|
|
110
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
111
|
+
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
|
|
112
|
+
}
|
|
113
|
+
export declare class GrpcWebImpl {
|
|
114
|
+
private host;
|
|
115
|
+
private options;
|
|
116
|
+
constructor(host: string, options: {
|
|
117
|
+
transport?: grpc.TransportFactory;
|
|
118
|
+
streamingTransport?: grpc.TransportFactory;
|
|
119
|
+
debug?: boolean;
|
|
120
|
+
metadata?: grpc.Metadata;
|
|
121
|
+
upStreamRetryCodes?: number[];
|
|
122
|
+
});
|
|
123
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
124
|
+
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
|
|
125
|
+
}
|
|
126
|
+
declare const tsProtoGlobalThis: any;
|
|
127
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
128
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
129
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
130
|
+
} : Partial<T>;
|
|
131
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
132
|
+
code: grpc.Code;
|
|
133
|
+
metadata: grpc.Metadata;
|
|
134
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
135
|
+
}
|
|
136
|
+
export {};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
import { Empty } from "../google/protobuf/empty";
|
|
6
|
+
export interface SubscribeRequest {
|
|
7
|
+
sender: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Event {
|
|
11
|
+
/** 发送者的appid, 由EventService填充 */
|
|
12
|
+
sender: string;
|
|
13
|
+
/** 接受者的appid */
|
|
14
|
+
target: string;
|
|
15
|
+
type: string;
|
|
16
|
+
payload: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SendRequest {
|
|
19
|
+
target: string;
|
|
20
|
+
type: string;
|
|
21
|
+
payload: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const SubscribeRequest: {
|
|
24
|
+
encode(message: SubscribeRequest, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeRequest;
|
|
26
|
+
fromJSON(object: any): SubscribeRequest;
|
|
27
|
+
toJSON(message: SubscribeRequest): unknown;
|
|
28
|
+
create<I extends {
|
|
29
|
+
sender?: string;
|
|
30
|
+
type?: string;
|
|
31
|
+
} & {
|
|
32
|
+
sender?: string;
|
|
33
|
+
type?: string;
|
|
34
|
+
} & { [K in Exclude<keyof I, keyof SubscribeRequest>]: never; }>(base?: I): SubscribeRequest;
|
|
35
|
+
fromPartial<I_1 extends {
|
|
36
|
+
sender?: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
} & {
|
|
39
|
+
sender?: string;
|
|
40
|
+
type?: string;
|
|
41
|
+
} & { [K_1 in Exclude<keyof I_1, keyof SubscribeRequest>]: never; }>(object: I_1): SubscribeRequest;
|
|
42
|
+
};
|
|
43
|
+
export declare const Event: {
|
|
44
|
+
encode(message: Event, writer?: _m0.Writer): _m0.Writer;
|
|
45
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Event;
|
|
46
|
+
fromJSON(object: any): Event;
|
|
47
|
+
toJSON(message: Event): unknown;
|
|
48
|
+
create<I extends {
|
|
49
|
+
sender?: string;
|
|
50
|
+
target?: string;
|
|
51
|
+
type?: string;
|
|
52
|
+
payload?: string;
|
|
53
|
+
} & {
|
|
54
|
+
sender?: string;
|
|
55
|
+
target?: string;
|
|
56
|
+
type?: string;
|
|
57
|
+
payload?: string;
|
|
58
|
+
} & { [K in Exclude<keyof I, keyof Event>]: never; }>(base?: I): Event;
|
|
59
|
+
fromPartial<I_1 extends {
|
|
60
|
+
sender?: string;
|
|
61
|
+
target?: string;
|
|
62
|
+
type?: string;
|
|
63
|
+
payload?: string;
|
|
64
|
+
} & {
|
|
65
|
+
sender?: string;
|
|
66
|
+
target?: string;
|
|
67
|
+
type?: string;
|
|
68
|
+
payload?: string;
|
|
69
|
+
} & { [K_1 in Exclude<keyof I_1, keyof Event>]: never; }>(object: I_1): Event;
|
|
70
|
+
};
|
|
71
|
+
export declare const SendRequest: {
|
|
72
|
+
encode(message: SendRequest, writer?: _m0.Writer): _m0.Writer;
|
|
73
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SendRequest;
|
|
74
|
+
fromJSON(object: any): SendRequest;
|
|
75
|
+
toJSON(message: SendRequest): unknown;
|
|
76
|
+
create<I extends {
|
|
77
|
+
target?: string;
|
|
78
|
+
type?: string;
|
|
79
|
+
payload?: string;
|
|
80
|
+
} & {
|
|
81
|
+
target?: string;
|
|
82
|
+
type?: string;
|
|
83
|
+
payload?: string;
|
|
84
|
+
} & { [K in Exclude<keyof I, keyof SendRequest>]: never; }>(base?: I): SendRequest;
|
|
85
|
+
fromPartial<I_1 extends {
|
|
86
|
+
target?: string;
|
|
87
|
+
type?: string;
|
|
88
|
+
payload?: string;
|
|
89
|
+
} & {
|
|
90
|
+
target?: string;
|
|
91
|
+
type?: string;
|
|
92
|
+
payload?: string;
|
|
93
|
+
} & { [K_1 in Exclude<keyof I_1, keyof SendRequest>]: never; }>(object: I_1): SendRequest;
|
|
94
|
+
};
|
|
95
|
+
export interface EventService {
|
|
96
|
+
/** 正常的事件订阅发送接口 */
|
|
97
|
+
Subscribe(request: DeepPartial<SubscribeRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<Event>;
|
|
98
|
+
Send(request: DeepPartial<SendRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
99
|
+
}
|
|
100
|
+
export declare class EventServiceClientImpl implements EventService {
|
|
101
|
+
private readonly rpc;
|
|
102
|
+
constructor(rpc: Rpc);
|
|
103
|
+
Subscribe(request: DeepPartial<SubscribeRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<Event>;
|
|
104
|
+
Send(request: DeepPartial<SendRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
105
|
+
}
|
|
106
|
+
export declare const EventServiceDesc: {
|
|
107
|
+
serviceName: string;
|
|
108
|
+
};
|
|
109
|
+
export declare const EventServiceSubscribeDesc: UnaryMethodDefinitionish;
|
|
110
|
+
export declare const EventServiceSendDesc: UnaryMethodDefinitionish;
|
|
111
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
112
|
+
requestStream: any;
|
|
113
|
+
responseStream: any;
|
|
114
|
+
}
|
|
115
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
116
|
+
interface Rpc {
|
|
117
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
118
|
+
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
|
|
119
|
+
}
|
|
120
|
+
export declare class GrpcWebImpl {
|
|
121
|
+
private host;
|
|
122
|
+
private options;
|
|
123
|
+
constructor(host: string, options: {
|
|
124
|
+
transport?: grpc.TransportFactory;
|
|
125
|
+
streamingTransport?: grpc.TransportFactory;
|
|
126
|
+
debug?: boolean;
|
|
127
|
+
metadata?: grpc.Metadata;
|
|
128
|
+
upStreamRetryCodes?: number[];
|
|
129
|
+
});
|
|
130
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
131
|
+
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
|
|
132
|
+
}
|
|
133
|
+
declare const tsProtoGlobalThis: any;
|
|
134
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
135
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
136
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
137
|
+
} : Partial<T>;
|
|
138
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
139
|
+
code: grpc.Code;
|
|
140
|
+
metadata: grpc.Metadata;
|
|
141
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
142
|
+
}
|
|
143
|
+
export {};
|