@aceplus/smartace-api 2.13.0-alpha.1 → 2.13.0-alpha.6
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/auth.account_pb.d.ts +0 -106
- package/auth.account_pb.js +2 -832
- package/auth.account_pb_service.d.ts +0 -133
- package/auth.account_pb_service.js +0 -280
- package/meta.client_pb.d.ts +167 -0
- package/meta.client_pb.js +1266 -0
- package/meta.client_pb_service.d.ts +122 -0
- package/meta.client_pb_service.js +183 -0
- package/meta.spic_config_pb.d.ts +72 -5
- package/meta.spic_config_pb.js +459 -21
- package/meta.spic_config_pb_service.d.ts +19 -0
- package/meta.spic_config_pb_service.js +40 -0
- package/package.json +1 -1
- package/platform.client_pb.d.ts +4 -0
- package/platform.client_pb.js +31 -1
- package/platform.local_account_internal_pb.d.ts +151 -0
- package/platform.local_account_internal_pb.js +1136 -0
- package/platform.local_account_internal_pb_service.d.ts +121 -0
- package/platform.local_account_internal_pb_service.js +182 -0
- package/platform.local_account_pb.d.ts +4 -50
- package/platform.local_account_pb.js +31 -386
- package/platform.local_account_pb_service.d.ts +0 -57
- package/platform.local_account_pb_service.js +0 -120
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// package: Platform
|
|
2
|
+
// file: platform.local_account_internal.proto
|
|
3
|
+
|
|
4
|
+
import * as platform_local_account_internal_pb from "./platform.local_account_internal_pb";
|
|
5
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
7
|
+
|
|
8
|
+
type LocalAccountInternalGRPCRetrieve = {
|
|
9
|
+
readonly methodName: string;
|
|
10
|
+
readonly service: typeof LocalAccountInternalGRPC;
|
|
11
|
+
readonly requestStream: false;
|
|
12
|
+
readonly responseStream: false;
|
|
13
|
+
readonly requestType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto.RetrieveRequest;
|
|
14
|
+
readonly responseType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type LocalAccountInternalGRPCDelete = {
|
|
18
|
+
readonly methodName: string;
|
|
19
|
+
readonly service: typeof LocalAccountInternalGRPC;
|
|
20
|
+
readonly requestStream: false;
|
|
21
|
+
readonly responseStream: false;
|
|
22
|
+
readonly requestType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto.DeleteRequest;
|
|
23
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
type LocalAccountInternalGRPCAddClient = {
|
|
27
|
+
readonly methodName: string;
|
|
28
|
+
readonly service: typeof LocalAccountInternalGRPC;
|
|
29
|
+
readonly requestStream: false;
|
|
30
|
+
readonly responseStream: false;
|
|
31
|
+
readonly requestType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto.AddClientRequest;
|
|
32
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
type LocalAccountInternalGRPCRemoveClient = {
|
|
36
|
+
readonly methodName: string;
|
|
37
|
+
readonly service: typeof LocalAccountInternalGRPC;
|
|
38
|
+
readonly requestStream: false;
|
|
39
|
+
readonly responseStream: false;
|
|
40
|
+
readonly requestType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto.RemoveClientRequest;
|
|
41
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export class LocalAccountInternalGRPC {
|
|
45
|
+
static readonly serviceName: string;
|
|
46
|
+
static readonly Retrieve: LocalAccountInternalGRPCRetrieve;
|
|
47
|
+
static readonly Delete: LocalAccountInternalGRPCDelete;
|
|
48
|
+
static readonly AddClient: LocalAccountInternalGRPCAddClient;
|
|
49
|
+
static readonly RemoveClient: LocalAccountInternalGRPCRemoveClient;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
53
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
54
|
+
|
|
55
|
+
interface UnaryResponse {
|
|
56
|
+
cancel(): void;
|
|
57
|
+
}
|
|
58
|
+
interface ResponseStream<T> {
|
|
59
|
+
cancel(): void;
|
|
60
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
61
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
62
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
63
|
+
}
|
|
64
|
+
interface RequestStream<T> {
|
|
65
|
+
write(message: T): RequestStream<T>;
|
|
66
|
+
end(): void;
|
|
67
|
+
cancel(): void;
|
|
68
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
69
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
70
|
+
}
|
|
71
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
72
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
73
|
+
end(): void;
|
|
74
|
+
cancel(): void;
|
|
75
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
76
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
77
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export class LocalAccountInternalGRPCClient {
|
|
81
|
+
readonly serviceHost: string;
|
|
82
|
+
|
|
83
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
84
|
+
retrieve(
|
|
85
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.RetrieveRequest,
|
|
86
|
+
metadata: grpc.Metadata,
|
|
87
|
+
callback: (error: ServiceError|null, responseMessage: platform_local_account_internal_pb.LocalAccountExtendedProto|null) => void
|
|
88
|
+
): UnaryResponse;
|
|
89
|
+
retrieve(
|
|
90
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.RetrieveRequest,
|
|
91
|
+
callback: (error: ServiceError|null, responseMessage: platform_local_account_internal_pb.LocalAccountExtendedProto|null) => void
|
|
92
|
+
): UnaryResponse;
|
|
93
|
+
delete(
|
|
94
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.DeleteRequest,
|
|
95
|
+
metadata: grpc.Metadata,
|
|
96
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
97
|
+
): UnaryResponse;
|
|
98
|
+
delete(
|
|
99
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.DeleteRequest,
|
|
100
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
101
|
+
): UnaryResponse;
|
|
102
|
+
addClient(
|
|
103
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.AddClientRequest,
|
|
104
|
+
metadata: grpc.Metadata,
|
|
105
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
106
|
+
): UnaryResponse;
|
|
107
|
+
addClient(
|
|
108
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.AddClientRequest,
|
|
109
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
110
|
+
): UnaryResponse;
|
|
111
|
+
removeClient(
|
|
112
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.RemoveClientRequest,
|
|
113
|
+
metadata: grpc.Metadata,
|
|
114
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
115
|
+
): UnaryResponse;
|
|
116
|
+
removeClient(
|
|
117
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.RemoveClientRequest,
|
|
118
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
119
|
+
): UnaryResponse;
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
// package: Platform
|
|
2
|
+
// file: platform.local_account_internal.proto
|
|
3
|
+
|
|
4
|
+
var platform_local_account_internal_pb = require("./platform.local_account_internal_pb");
|
|
5
|
+
var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
|
|
6
|
+
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
7
|
+
|
|
8
|
+
var LocalAccountInternalGRPC = (function () {
|
|
9
|
+
function LocalAccountInternalGRPC() {}
|
|
10
|
+
LocalAccountInternalGRPC.serviceName = "Platform.LocalAccountInternalGRPC";
|
|
11
|
+
return LocalAccountInternalGRPC;
|
|
12
|
+
}());
|
|
13
|
+
|
|
14
|
+
LocalAccountInternalGRPC.Retrieve = {
|
|
15
|
+
methodName: "Retrieve",
|
|
16
|
+
service: LocalAccountInternalGRPC,
|
|
17
|
+
requestStream: false,
|
|
18
|
+
responseStream: false,
|
|
19
|
+
requestType: platform_local_account_internal_pb.LocalAccountExtendedProto.RetrieveRequest,
|
|
20
|
+
responseType: platform_local_account_internal_pb.LocalAccountExtendedProto
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
LocalAccountInternalGRPC.Delete = {
|
|
24
|
+
methodName: "Delete",
|
|
25
|
+
service: LocalAccountInternalGRPC,
|
|
26
|
+
requestStream: false,
|
|
27
|
+
responseStream: false,
|
|
28
|
+
requestType: platform_local_account_internal_pb.LocalAccountExtendedProto.DeleteRequest,
|
|
29
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
LocalAccountInternalGRPC.AddClient = {
|
|
33
|
+
methodName: "AddClient",
|
|
34
|
+
service: LocalAccountInternalGRPC,
|
|
35
|
+
requestStream: false,
|
|
36
|
+
responseStream: false,
|
|
37
|
+
requestType: platform_local_account_internal_pb.LocalAccountExtendedProto.AddClientRequest,
|
|
38
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
LocalAccountInternalGRPC.RemoveClient = {
|
|
42
|
+
methodName: "RemoveClient",
|
|
43
|
+
service: LocalAccountInternalGRPC,
|
|
44
|
+
requestStream: false,
|
|
45
|
+
responseStream: false,
|
|
46
|
+
requestType: platform_local_account_internal_pb.LocalAccountExtendedProto.RemoveClientRequest,
|
|
47
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.LocalAccountInternalGRPC = LocalAccountInternalGRPC;
|
|
51
|
+
|
|
52
|
+
function LocalAccountInternalGRPCClient(serviceHost, options) {
|
|
53
|
+
this.serviceHost = serviceHost;
|
|
54
|
+
this.options = options || {};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
LocalAccountInternalGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
58
|
+
if (arguments.length === 2) {
|
|
59
|
+
callback = arguments[1];
|
|
60
|
+
}
|
|
61
|
+
var client = grpc.unary(LocalAccountInternalGRPC.Retrieve, {
|
|
62
|
+
request: requestMessage,
|
|
63
|
+
host: this.serviceHost,
|
|
64
|
+
metadata: metadata,
|
|
65
|
+
transport: this.options.transport,
|
|
66
|
+
debug: this.options.debug,
|
|
67
|
+
onEnd: function (response) {
|
|
68
|
+
if (callback) {
|
|
69
|
+
if (response.status !== grpc.Code.OK) {
|
|
70
|
+
var err = new Error(response.statusMessage);
|
|
71
|
+
err.code = response.status;
|
|
72
|
+
err.metadata = response.trailers;
|
|
73
|
+
callback(err, null);
|
|
74
|
+
} else {
|
|
75
|
+
callback(null, response.message);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
return {
|
|
81
|
+
cancel: function () {
|
|
82
|
+
callback = null;
|
|
83
|
+
client.close();
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
LocalAccountInternalGRPCClient.prototype.delete = function pb_delete(requestMessage, metadata, callback) {
|
|
89
|
+
if (arguments.length === 2) {
|
|
90
|
+
callback = arguments[1];
|
|
91
|
+
}
|
|
92
|
+
var client = grpc.unary(LocalAccountInternalGRPC.Delete, {
|
|
93
|
+
request: requestMessage,
|
|
94
|
+
host: this.serviceHost,
|
|
95
|
+
metadata: metadata,
|
|
96
|
+
transport: this.options.transport,
|
|
97
|
+
debug: this.options.debug,
|
|
98
|
+
onEnd: function (response) {
|
|
99
|
+
if (callback) {
|
|
100
|
+
if (response.status !== grpc.Code.OK) {
|
|
101
|
+
var err = new Error(response.statusMessage);
|
|
102
|
+
err.code = response.status;
|
|
103
|
+
err.metadata = response.trailers;
|
|
104
|
+
callback(err, null);
|
|
105
|
+
} else {
|
|
106
|
+
callback(null, response.message);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
return {
|
|
112
|
+
cancel: function () {
|
|
113
|
+
callback = null;
|
|
114
|
+
client.close();
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
LocalAccountInternalGRPCClient.prototype.addClient = function addClient(requestMessage, metadata, callback) {
|
|
120
|
+
if (arguments.length === 2) {
|
|
121
|
+
callback = arguments[1];
|
|
122
|
+
}
|
|
123
|
+
var client = grpc.unary(LocalAccountInternalGRPC.AddClient, {
|
|
124
|
+
request: requestMessage,
|
|
125
|
+
host: this.serviceHost,
|
|
126
|
+
metadata: metadata,
|
|
127
|
+
transport: this.options.transport,
|
|
128
|
+
debug: this.options.debug,
|
|
129
|
+
onEnd: function (response) {
|
|
130
|
+
if (callback) {
|
|
131
|
+
if (response.status !== grpc.Code.OK) {
|
|
132
|
+
var err = new Error(response.statusMessage);
|
|
133
|
+
err.code = response.status;
|
|
134
|
+
err.metadata = response.trailers;
|
|
135
|
+
callback(err, null);
|
|
136
|
+
} else {
|
|
137
|
+
callback(null, response.message);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return {
|
|
143
|
+
cancel: function () {
|
|
144
|
+
callback = null;
|
|
145
|
+
client.close();
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
LocalAccountInternalGRPCClient.prototype.removeClient = function removeClient(requestMessage, metadata, callback) {
|
|
151
|
+
if (arguments.length === 2) {
|
|
152
|
+
callback = arguments[1];
|
|
153
|
+
}
|
|
154
|
+
var client = grpc.unary(LocalAccountInternalGRPC.RemoveClient, {
|
|
155
|
+
request: requestMessage,
|
|
156
|
+
host: this.serviceHost,
|
|
157
|
+
metadata: metadata,
|
|
158
|
+
transport: this.options.transport,
|
|
159
|
+
debug: this.options.debug,
|
|
160
|
+
onEnd: function (response) {
|
|
161
|
+
if (callback) {
|
|
162
|
+
if (response.status !== grpc.Code.OK) {
|
|
163
|
+
var err = new Error(response.statusMessage);
|
|
164
|
+
err.code = response.status;
|
|
165
|
+
err.metadata = response.trailers;
|
|
166
|
+
callback(err, null);
|
|
167
|
+
} else {
|
|
168
|
+
callback(null, response.message);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
return {
|
|
174
|
+
cancel: function () {
|
|
175
|
+
callback = null;
|
|
176
|
+
client.close();
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
exports.LocalAccountInternalGRPCClient = LocalAccountInternalGRPCClient;
|
|
182
|
+
|
|
@@ -49,6 +49,9 @@ export class LocalAccountProto extends jspb.Message {
|
|
|
49
49
|
getStatus(): auth_account_pb.AccountProto.ActivationStatusesMap[keyof auth_account_pb.AccountProto.ActivationStatusesMap];
|
|
50
50
|
setStatus(value: auth_account_pb.AccountProto.ActivationStatusesMap[keyof auth_account_pb.AccountProto.ActivationStatusesMap]): void;
|
|
51
51
|
|
|
52
|
+
getDeleted(): boolean;
|
|
53
|
+
setDeleted(value: boolean): void;
|
|
54
|
+
|
|
52
55
|
serializeBinary(): Uint8Array;
|
|
53
56
|
toObject(includeInstance?: boolean): LocalAccountProto.AsObject;
|
|
54
57
|
static toObject(includeInstance: boolean, msg: LocalAccountProto): LocalAccountProto.AsObject;
|
|
@@ -73,6 +76,7 @@ export namespace LocalAccountProto {
|
|
|
73
76
|
expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
74
77
|
assignedRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
|
|
75
78
|
status: auth_account_pb.AccountProto.ActivationStatusesMap[keyof auth_account_pb.AccountProto.ActivationStatusesMap],
|
|
79
|
+
deleted: boolean,
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
export class CreateAdminRequest extends jspb.Message {
|
|
@@ -295,56 +299,6 @@ export namespace LocalAccountProto {
|
|
|
295
299
|
}
|
|
296
300
|
}
|
|
297
301
|
|
|
298
|
-
export class AddClientRequest extends jspb.Message {
|
|
299
|
-
hasAccount(): boolean;
|
|
300
|
-
clearAccount(): void;
|
|
301
|
-
getAccount(): auth_account_pb.AccountProto | undefined;
|
|
302
|
-
setAccount(value?: auth_account_pb.AccountProto): void;
|
|
303
|
-
|
|
304
|
-
getClientId(): number;
|
|
305
|
-
setClientId(value: number): void;
|
|
306
|
-
|
|
307
|
-
serializeBinary(): Uint8Array;
|
|
308
|
-
toObject(includeInstance?: boolean): AddClientRequest.AsObject;
|
|
309
|
-
static toObject(includeInstance: boolean, msg: AddClientRequest): AddClientRequest.AsObject;
|
|
310
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
311
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
312
|
-
static serializeBinaryToWriter(message: AddClientRequest, writer: jspb.BinaryWriter): void;
|
|
313
|
-
static deserializeBinary(bytes: Uint8Array): AddClientRequest;
|
|
314
|
-
static deserializeBinaryFromReader(message: AddClientRequest, reader: jspb.BinaryReader): AddClientRequest;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
export namespace AddClientRequest {
|
|
318
|
-
export type AsObject = {
|
|
319
|
-
account?: auth_account_pb.AccountProto.AsObject,
|
|
320
|
-
clientId: number,
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export class RemoveClientRequest extends jspb.Message {
|
|
325
|
-
getId(): number;
|
|
326
|
-
setId(value: number): void;
|
|
327
|
-
|
|
328
|
-
getClientId(): number;
|
|
329
|
-
setClientId(value: number): void;
|
|
330
|
-
|
|
331
|
-
serializeBinary(): Uint8Array;
|
|
332
|
-
toObject(includeInstance?: boolean): RemoveClientRequest.AsObject;
|
|
333
|
-
static toObject(includeInstance: boolean, msg: RemoveClientRequest): RemoveClientRequest.AsObject;
|
|
334
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
335
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
336
|
-
static serializeBinaryToWriter(message: RemoveClientRequest, writer: jspb.BinaryWriter): void;
|
|
337
|
-
static deserializeBinary(bytes: Uint8Array): RemoveClientRequest;
|
|
338
|
-
static deserializeBinaryFromReader(message: RemoveClientRequest, reader: jspb.BinaryReader): RemoveClientRequest;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
export namespace RemoveClientRequest {
|
|
342
|
-
export type AsObject = {
|
|
343
|
-
id: number,
|
|
344
|
-
clientId: number,
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
302
|
export class EnableAccount extends jspb.Message {
|
|
349
303
|
getId(): number;
|
|
350
304
|
setId(value: number): void;
|