@aceplus/smartace-api 3.6.0-alpha.17 → 3.6.0-alpha.19
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 +582 -0
- package/auth.account_pb.js +4287 -0
- package/auth.account_pb_service.d.ts +340 -0
- package/auth.account_pb_service.js +637 -0
- package/auth.account_two_factor_pb.d.ts +159 -0
- package/auth.account_two_factor_pb.js +1184 -0
- package/auth.account_two_factor_pb_service.d.ts +121 -0
- package/auth.account_two_factor_pb_service.js +182 -0
- package/auth.app_account_pb.d.ts +156 -0
- package/auth.app_account_pb.js +1153 -0
- package/auth.app_account_pb_service.d.ts +160 -0
- package/auth.app_account_pb_service.js +263 -0
- package/auth.app_authn_pb.d.ts +172 -0
- package/auth.app_authn_pb.js +1233 -0
- package/auth.app_authn_pb_service.d.ts +140 -0
- package/auth.app_authn_pb_service.js +222 -0
- package/auth.app_distribution_pb.d.ts +174 -0
- package/auth.app_distribution_pb.js +1338 -0
- package/auth.app_distribution_pb_service.d.ts +120 -0
- package/auth.app_distribution_pb_service.js +181 -0
- package/auth.authn_pb.d.ts +95 -0
- package/auth.authn_pb.js +637 -0
- package/auth.authn_pb_service.d.ts +82 -0
- package/auth.authn_pb_service.js +101 -0
- package/auth.cluster_pb.d.ts +142 -0
- package/auth.cluster_pb.js +1050 -0
- package/auth.cluster_pb_service.d.ts +82 -0
- package/auth.cluster_pb_service.js +101 -0
- package/auth.distribution_pb.d.ts +233 -0
- package/auth.distribution_pb.js +1785 -0
- package/auth.distribution_pb_service.d.ts +82 -0
- package/auth.distribution_pb_service.js +101 -0
- package/auth.email_pb.d.ts +217 -0
- package/auth.email_pb.js +1508 -0
- package/auth.email_pb_service.d.ts +102 -0
- package/auth.email_pb_service.js +142 -0
- package/auth.firmware_pb.d.ts +256 -0
- package/auth.firmware_pb.js +1997 -0
- package/auth.firmware_pb_service.d.ts +120 -0
- package/auth.firmware_pb_service.js +181 -0
- package/auth.push_notification_pb.d.ts +69 -0
- package/auth.push_notification_pb.js +411 -0
- package/auth.push_notification_pb_service.d.ts +64 -0
- package/auth.push_notification_pb_service.js +62 -0
- package/auth.sms_pb.d.ts +79 -0
- package/auth.sms_pb.js +575 -0
- package/auth.sms_pb_service.d.ts +83 -0
- package/auth.sms_pb_service.js +102 -0
- package/google/api/annotations_pb.d.ts +9 -0
- package/google/api/annotations_pb.js +54 -0
- package/google/api/annotations_pb_service.d.ts +3 -0
- package/google/api/annotations_pb_service.js +3 -0
- package/google/api/auth_pb.d.ts +150 -0
- package/google/api/auth_pb.js +1160 -0
- package/google/api/auth_pb_service.d.ts +3 -0
- package/google/api/auth_pb_service.js +3 -0
- package/google/api/backend_pb.d.ts +59 -0
- package/google/api/backend_pb.js +448 -0
- package/google/api/backend_pb_service.d.ts +3 -0
- package/google/api/backend_pb_service.js +3 -0
- package/google/api/billing_pb.d.ts +54 -0
- package/google/api/billing_pb.js +416 -0
- package/google/api/billing_pb_service.d.ts +3 -0
- package/google/api/billing_pb_service.js +3 -0
- package/google/api/client_pb.d.ts +12 -0
- package/google/api/client_pb.js +104 -0
- package/google/api/client_pb_service.d.ts +3 -0
- package/google/api/client_pb_service.js +3 -0
- package/google/api/config_change_pb.d.ts +72 -0
- package/google/api/config_change_pb.js +489 -0
- package/google/api/config_change_pb_service.d.ts +3 -0
- package/google/api/config_change_pb_service.js +3 -0
- package/google/api/consumer_pb.d.ts +65 -0
- package/google/api/consumer_pb.js +430 -0
- package/google/api/consumer_pb_service.d.ts +3 -0
- package/google/api/consumer_pb_service.js +3 -0
- package/google/api/context_pb.d.ts +59 -0
- package/google/api/context_pb.js +463 -0
- package/google/api/context_pb_service.d.ts +3 -0
- package/google/api/context_pb_service.js +3 -0
- package/google/api/control_pb.d.ts +25 -0
- package/google/api/control_pb.js +176 -0
- package/google/api/control_pb_service.d.ts +3 -0
- package/google/api/control_pb_service.js +3 -0
- package/google/api/distribution_pb.d.ts +235 -0
- package/google/api/distribution_pb.js +1805 -0
- package/google/api/distribution_pb_service.d.ts +3 -0
- package/google/api/distribution_pb_service.js +3 -0
- package/google/api/documentation_pb.d.ts +103 -0
- package/google/api/documentation_pb.js +803 -0
- package/google/api/documentation_pb_service.d.ts +3 -0
- package/google/api/documentation_pb_service.js +3 -0
- package/google/api/endpoint_pb.d.ts +46 -0
- package/google/api/endpoint_pb.js +343 -0
- package/google/api/endpoint_pb_service.d.ts +3 -0
- package/google/api/endpoint_pb_service.js +3 -0
- package/google/api/error_reason_pb.d.ts +40 -0
- package/google/api/error_reason_pb.js +61 -0
- package/google/api/error_reason_pb_service.d.ts +3 -0
- package/google/api/error_reason_pb_service.js +3 -0
- package/google/api/field_behavior_pb.d.ts +20 -0
- package/google/api/field_behavior_pb.js +66 -0
- package/google/api/field_behavior_pb_service.d.ts +3 -0
- package/google/api/field_behavior_pb_service.js +3 -0
- package/google/api/http_pb.d.ts +136 -0
- package/google/api/http_pb.js +1012 -0
- package/google/api/http_pb_service.d.ts +3 -0
- package/google/api/http_pb_service.js +3 -0
- package/google/api/httpbody_pb.d.ts +38 -0
- package/google/api/httpbody_pb.js +292 -0
- package/google/api/httpbody_pb_service.d.ts +3 -0
- package/google/api/httpbody_pb_service.js +3 -0
- package/google/api/label_pb.d.ts +41 -0
- package/google/api/label_pb.js +246 -0
- package/google/api/label_pb_service.d.ts +3 -0
- package/google/api/label_pb_service.js +3 -0
- package/google/api/launch_stage_pb.d.ts +16 -0
- package/google/api/launch_stage_pb.js +37 -0
- package/google/api/launch_stage_pb_service.d.ts +3 -0
- package/google/api/launch_stage_pb_service.js +3 -0
- package/google/api/log_pb.d.ts +40 -0
- package/google/api/log_pb.js +298 -0
- package/google/api/log_pb_service.d.ts +3 -0
- package/google/api/log_pb_service.js +3 -0
- package/google/api/logging_pb.d.ts +60 -0
- package/google/api/logging_pb.js +469 -0
- package/google/api/logging_pb_service.d.ts +3 -0
- package/google/api/logging_pb_service.js +3 -0
- package/google/api/metric_pb.d.ts +100 -0
- package/google/api/metric_pb.js +629 -0
- package/google/api/metric_pb_service.d.ts +3 -0
- package/google/api/metric_pb_service.js +3 -0
- package/google/api/monitored_resource_pb.d.ts +93 -0
- package/google/api/monitored_resource_pb.js +723 -0
- package/google/api/monitored_resource_pb_service.d.ts +3 -0
- package/google/api/monitored_resource_pb_service.js +3 -0
- package/google/api/monitoring_pb.d.ts +60 -0
- package/google/api/monitoring_pb.js +469 -0
- package/google/api/monitoring_pb_service.d.ts +3 -0
- package/google/api/monitoring_pb_service.js +3 -0
- package/google/api/policy_pb.d.ts +64 -0
- package/google/api/policy_pb.js +502 -0
- package/google/api/policy_pb_service.d.ts +3 -0
- package/google/api/policy_pb_service.js +3 -0
- package/google/api/quota_pb.d.ts +112 -0
- package/google/api/quota_pb.js +873 -0
- package/google/api/quota_pb_service.d.ts +3 -0
- package/google/api/quota_pb_service.js +3 -0
- package/google/api/resource_pb.d.ts +99 -0
- package/google/api/resource_pb.js +684 -0
- package/google/api/resource_pb_service.d.ts +3 -0
- package/google/api/resource_pb_service.js +3 -0
- package/google/api/routing_pb.d.ts +54 -0
- package/google/api/routing_pb.js +416 -0
- package/google/api/routing_pb_service.d.ts +3 -0
- package/google/api/routing_pb_service.js +3 -0
- package/google/api/service_pb.d.ts +184 -0
- package/google/api/service_pb.js +1400 -0
- package/google/api/service_pb_service.d.ts +3 -0
- package/google/api/service_pb_service.js +3 -0
- package/google/api/source_info_pb.d.ts +28 -0
- package/google/api/source_info_pb.js +208 -0
- package/google/api/source_info_pb_service.d.ts +3 -0
- package/google/api/source_info_pb_service.js +3 -0
- package/google/api/system_parameter_pb.d.ts +81 -0
- package/google/api/system_parameter_pb.js +630 -0
- package/google/api/system_parameter_pb_service.d.ts +3 -0
- package/google/api/system_parameter_pb_service.js +3 -0
- package/google/api/usage_pb.d.ts +66 -0
- package/google/api/usage_pb.js +499 -0
- package/google/api/usage_pb_service.d.ts +3 -0
- package/google/api/usage_pb_service.js +3 -0
- package/google/api/visibility_pb.d.ts +64 -0
- package/google/api/visibility_pb.js +546 -0
- package/google/api/visibility_pb_service.d.ts +3 -0
- package/google/api/visibility_pb_service.js +3 -0
- 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 +184 -0
- package/meta.spic_config_pb.js +1382 -0
- package/meta.spic_config_pb_service.d.ts +122 -0
- package/meta.spic_config_pb_service.js +183 -0
- package/package.json +1 -1
- package/platform.activity_log_pb.d.ts +177 -0
- package/platform.activity_log_pb.js +1294 -0
- package/platform.activity_log_pb_service.d.ts +82 -0
- package/platform.activity_log_pb_service.js +101 -0
- package/platform.client_pb.d.ts +350 -0
- package/platform.client_pb.js +2663 -0
- package/platform.client_pb_service.d.ts +158 -0
- package/platform.client_pb_service.js +261 -0
- package/platform.group_pb.d.ts +195 -0
- package/platform.group_pb.js +1476 -0
- package/platform.group_pb_service.d.ts +139 -0
- package/platform.group_pb_service.js +221 -0
- package/platform.local_account_internal_pb.d.ts +125 -0
- package/platform.local_account_internal_pb.js +933 -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 +446 -0
- package/platform.local_account_pb.js +3337 -0
- package/platform.local_account_pb_service.d.ts +331 -0
- package/platform.local_account_pb_service.js +623 -0
- package/platform.local_distribution_pb.d.ts +73 -0
- package/platform.local_distribution_pb.js +536 -0
- package/platform.local_distribution_pb_service.d.ts +63 -0
- package/platform.local_distribution_pb_service.js +61 -0
- package/platform.location_pb.d.ts +271 -0
- package/platform.location_pb.js +2046 -0
- package/platform.location_pb_service.d.ts +139 -0
- package/platform.location_pb_service.js +221 -0
- package/platform.pagination_pb.d.ts +45 -0
- package/platform.pagination_pb.js +276 -0
- package/platform.pagination_pb_service.d.ts +3 -0
- package/platform.pagination_pb_service.js +3 -0
- package/spic.admin_alert_pb.d.ts +91 -0
- package/spic.admin_alert_pb.js +666 -0
- package/spic.admin_alert_pb_service.d.ts +102 -0
- package/spic.admin_alert_pb_service.js +142 -0
- package/spic.alarm_pb.d.ts +344 -0
- package/spic.alarm_pb.js +2622 -0
- package/spic.alarm_pb_service.d.ts +101 -0
- package/spic.alarm_pb_service.js +141 -0
- package/spic.asset_pb.d.ts +652 -0
- package/spic.asset_pb.js +4669 -0
- package/spic.asset_pb_service.d.ts +197 -0
- package/spic.asset_pb_service.js +342 -0
- package/spic.cabinet_pb.d.ts +951 -0
- package/spic.cabinet_pb.js +6875 -0
- package/spic.cabinet_pb_service.d.ts +177 -0
- package/spic.cabinet_pb_service.js +301 -0
- package/spic.config_pb.d.ts +249 -0
- package/spic.config_pb.js +1891 -0
- package/spic.config_pb_service.d.ts +120 -0
- package/spic.config_pb_service.js +181 -0
- package/spic.contractor_pb.d.ts +195 -0
- package/spic.contractor_pb.js +1476 -0
- package/spic.contractor_pb_service.d.ts +139 -0
- package/spic.contractor_pb_service.js +221 -0
- package/spic.history_pb.d.ts +142 -0
- package/spic.history_pb.js +1130 -0
- package/spic.history_pb_service.d.ts +63 -0
- package/spic.history_pb_service.js +61 -0
- package/spic.open_request_pb.d.ts +237 -0
- package/spic.open_request_pb.js +1784 -0
- package/spic.open_request_pb_service.d.ts +101 -0
- package/spic.open_request_pb_service.js +141 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// package: Auth
|
|
2
|
+
// file: auth.app_account.proto
|
|
3
|
+
|
|
4
|
+
import * as auth_app_account_pb from "./auth.app_account_pb";
|
|
5
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
|
+
import * as auth_account_pb from "./auth.account_pb";
|
|
7
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
8
|
+
|
|
9
|
+
type AppAccountGRPCFinishRegisterMobile = {
|
|
10
|
+
readonly methodName: string;
|
|
11
|
+
readonly service: typeof AppAccountGRPC;
|
|
12
|
+
readonly requestStream: false;
|
|
13
|
+
readonly responseStream: false;
|
|
14
|
+
readonly requestType: typeof auth_app_account_pb.AppAccountProto.FinishRegisterMobileRequest;
|
|
15
|
+
readonly responseType: typeof auth_account_pb.AccountProto;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type AppAccountGRPCRemoveMobile = {
|
|
19
|
+
readonly methodName: string;
|
|
20
|
+
readonly service: typeof AppAccountGRPC;
|
|
21
|
+
readonly requestStream: false;
|
|
22
|
+
readonly responseStream: false;
|
|
23
|
+
readonly requestType: typeof auth_app_account_pb.AppAccountProto.RemoveMobileRequest;
|
|
24
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
type AppAccountGRPCChangeName = {
|
|
28
|
+
readonly methodName: string;
|
|
29
|
+
readonly service: typeof AppAccountGRPC;
|
|
30
|
+
readonly requestStream: false;
|
|
31
|
+
readonly responseStream: false;
|
|
32
|
+
readonly requestType: typeof auth_app_account_pb.AppAccountProto.ChangeNameRequest;
|
|
33
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
type AppAccountGRPCChangePsk = {
|
|
37
|
+
readonly methodName: string;
|
|
38
|
+
readonly service: typeof AppAccountGRPC;
|
|
39
|
+
readonly requestStream: false;
|
|
40
|
+
readonly responseStream: false;
|
|
41
|
+
readonly requestType: typeof auth_app_account_pb.AppAccountProto.ChangePskRequest;
|
|
42
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
type AppAccountGRPCRegisterClient = {
|
|
46
|
+
readonly methodName: string;
|
|
47
|
+
readonly service: typeof AppAccountGRPC;
|
|
48
|
+
readonly requestStream: false;
|
|
49
|
+
readonly responseStream: false;
|
|
50
|
+
readonly requestType: typeof auth_app_account_pb.AppAccountProto.ModifyClientRequest;
|
|
51
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
type AppAccountGRPCUnRegisterClient = {
|
|
55
|
+
readonly methodName: string;
|
|
56
|
+
readonly service: typeof AppAccountGRPC;
|
|
57
|
+
readonly requestStream: false;
|
|
58
|
+
readonly responseStream: false;
|
|
59
|
+
readonly requestType: typeof auth_app_account_pb.AppAccountProto.ModifyClientRequest;
|
|
60
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export class AppAccountGRPC {
|
|
64
|
+
static readonly serviceName: string;
|
|
65
|
+
static readonly FinishRegisterMobile: AppAccountGRPCFinishRegisterMobile;
|
|
66
|
+
static readonly RemoveMobile: AppAccountGRPCRemoveMobile;
|
|
67
|
+
static readonly ChangeName: AppAccountGRPCChangeName;
|
|
68
|
+
static readonly ChangePsk: AppAccountGRPCChangePsk;
|
|
69
|
+
static readonly RegisterClient: AppAccountGRPCRegisterClient;
|
|
70
|
+
static readonly UnRegisterClient: AppAccountGRPCUnRegisterClient;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
74
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
75
|
+
|
|
76
|
+
interface UnaryResponse {
|
|
77
|
+
cancel(): void;
|
|
78
|
+
}
|
|
79
|
+
interface ResponseStream<T> {
|
|
80
|
+
cancel(): void;
|
|
81
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
82
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
83
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
84
|
+
}
|
|
85
|
+
interface RequestStream<T> {
|
|
86
|
+
write(message: T): RequestStream<T>;
|
|
87
|
+
end(): void;
|
|
88
|
+
cancel(): void;
|
|
89
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
90
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
91
|
+
}
|
|
92
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
93
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
94
|
+
end(): void;
|
|
95
|
+
cancel(): void;
|
|
96
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
97
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
98
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export class AppAccountGRPCClient {
|
|
102
|
+
readonly serviceHost: string;
|
|
103
|
+
|
|
104
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
105
|
+
finishRegisterMobile(
|
|
106
|
+
requestMessage: auth_app_account_pb.AppAccountProto.FinishRegisterMobileRequest,
|
|
107
|
+
metadata: grpc.Metadata,
|
|
108
|
+
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
|
|
109
|
+
): UnaryResponse;
|
|
110
|
+
finishRegisterMobile(
|
|
111
|
+
requestMessage: auth_app_account_pb.AppAccountProto.FinishRegisterMobileRequest,
|
|
112
|
+
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
|
|
113
|
+
): UnaryResponse;
|
|
114
|
+
removeMobile(
|
|
115
|
+
requestMessage: auth_app_account_pb.AppAccountProto.RemoveMobileRequest,
|
|
116
|
+
metadata: grpc.Metadata,
|
|
117
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
118
|
+
): UnaryResponse;
|
|
119
|
+
removeMobile(
|
|
120
|
+
requestMessage: auth_app_account_pb.AppAccountProto.RemoveMobileRequest,
|
|
121
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
122
|
+
): UnaryResponse;
|
|
123
|
+
changeName(
|
|
124
|
+
requestMessage: auth_app_account_pb.AppAccountProto.ChangeNameRequest,
|
|
125
|
+
metadata: grpc.Metadata,
|
|
126
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
127
|
+
): UnaryResponse;
|
|
128
|
+
changeName(
|
|
129
|
+
requestMessage: auth_app_account_pb.AppAccountProto.ChangeNameRequest,
|
|
130
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
131
|
+
): UnaryResponse;
|
|
132
|
+
changePsk(
|
|
133
|
+
requestMessage: auth_app_account_pb.AppAccountProto.ChangePskRequest,
|
|
134
|
+
metadata: grpc.Metadata,
|
|
135
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
136
|
+
): UnaryResponse;
|
|
137
|
+
changePsk(
|
|
138
|
+
requestMessage: auth_app_account_pb.AppAccountProto.ChangePskRequest,
|
|
139
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
140
|
+
): UnaryResponse;
|
|
141
|
+
registerClient(
|
|
142
|
+
requestMessage: auth_app_account_pb.AppAccountProto.ModifyClientRequest,
|
|
143
|
+
metadata: grpc.Metadata,
|
|
144
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
145
|
+
): UnaryResponse;
|
|
146
|
+
registerClient(
|
|
147
|
+
requestMessage: auth_app_account_pb.AppAccountProto.ModifyClientRequest,
|
|
148
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
149
|
+
): UnaryResponse;
|
|
150
|
+
unRegisterClient(
|
|
151
|
+
requestMessage: auth_app_account_pb.AppAccountProto.ModifyClientRequest,
|
|
152
|
+
metadata: grpc.Metadata,
|
|
153
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
154
|
+
): UnaryResponse;
|
|
155
|
+
unRegisterClient(
|
|
156
|
+
requestMessage: auth_app_account_pb.AppAccountProto.ModifyClientRequest,
|
|
157
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
158
|
+
): UnaryResponse;
|
|
159
|
+
}
|
|
160
|
+
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
// package: Auth
|
|
2
|
+
// file: auth.app_account.proto
|
|
3
|
+
|
|
4
|
+
var auth_app_account_pb = require("./auth.app_account_pb");
|
|
5
|
+
var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
|
|
6
|
+
var auth_account_pb = require("./auth.account_pb");
|
|
7
|
+
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
8
|
+
|
|
9
|
+
var AppAccountGRPC = (function () {
|
|
10
|
+
function AppAccountGRPC() {}
|
|
11
|
+
AppAccountGRPC.serviceName = "Auth.AppAccountGRPC";
|
|
12
|
+
return AppAccountGRPC;
|
|
13
|
+
}());
|
|
14
|
+
|
|
15
|
+
AppAccountGRPC.FinishRegisterMobile = {
|
|
16
|
+
methodName: "FinishRegisterMobile",
|
|
17
|
+
service: AppAccountGRPC,
|
|
18
|
+
requestStream: false,
|
|
19
|
+
responseStream: false,
|
|
20
|
+
requestType: auth_app_account_pb.AppAccountProto.FinishRegisterMobileRequest,
|
|
21
|
+
responseType: auth_account_pb.AccountProto
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
AppAccountGRPC.RemoveMobile = {
|
|
25
|
+
methodName: "RemoveMobile",
|
|
26
|
+
service: AppAccountGRPC,
|
|
27
|
+
requestStream: false,
|
|
28
|
+
responseStream: false,
|
|
29
|
+
requestType: auth_app_account_pb.AppAccountProto.RemoveMobileRequest,
|
|
30
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
AppAccountGRPC.ChangeName = {
|
|
34
|
+
methodName: "ChangeName",
|
|
35
|
+
service: AppAccountGRPC,
|
|
36
|
+
requestStream: false,
|
|
37
|
+
responseStream: false,
|
|
38
|
+
requestType: auth_app_account_pb.AppAccountProto.ChangeNameRequest,
|
|
39
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
AppAccountGRPC.ChangePsk = {
|
|
43
|
+
methodName: "ChangePsk",
|
|
44
|
+
service: AppAccountGRPC,
|
|
45
|
+
requestStream: false,
|
|
46
|
+
responseStream: false,
|
|
47
|
+
requestType: auth_app_account_pb.AppAccountProto.ChangePskRequest,
|
|
48
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
AppAccountGRPC.RegisterClient = {
|
|
52
|
+
methodName: "RegisterClient",
|
|
53
|
+
service: AppAccountGRPC,
|
|
54
|
+
requestStream: false,
|
|
55
|
+
responseStream: false,
|
|
56
|
+
requestType: auth_app_account_pb.AppAccountProto.ModifyClientRequest,
|
|
57
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
AppAccountGRPC.UnRegisterClient = {
|
|
61
|
+
methodName: "UnRegisterClient",
|
|
62
|
+
service: AppAccountGRPC,
|
|
63
|
+
requestStream: false,
|
|
64
|
+
responseStream: false,
|
|
65
|
+
requestType: auth_app_account_pb.AppAccountProto.ModifyClientRequest,
|
|
66
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
exports.AppAccountGRPC = AppAccountGRPC;
|
|
70
|
+
|
|
71
|
+
function AppAccountGRPCClient(serviceHost, options) {
|
|
72
|
+
this.serviceHost = serviceHost;
|
|
73
|
+
this.options = options || {};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
AppAccountGRPCClient.prototype.finishRegisterMobile = function finishRegisterMobile(requestMessage, metadata, callback) {
|
|
77
|
+
if (arguments.length === 2) {
|
|
78
|
+
callback = arguments[1];
|
|
79
|
+
}
|
|
80
|
+
var client = grpc.unary(AppAccountGRPC.FinishRegisterMobile, {
|
|
81
|
+
request: requestMessage,
|
|
82
|
+
host: this.serviceHost,
|
|
83
|
+
metadata: metadata,
|
|
84
|
+
transport: this.options.transport,
|
|
85
|
+
debug: this.options.debug,
|
|
86
|
+
onEnd: function (response) {
|
|
87
|
+
if (callback) {
|
|
88
|
+
if (response.status !== grpc.Code.OK) {
|
|
89
|
+
var err = new Error(response.statusMessage);
|
|
90
|
+
err.code = response.status;
|
|
91
|
+
err.metadata = response.trailers;
|
|
92
|
+
callback(err, null);
|
|
93
|
+
} else {
|
|
94
|
+
callback(null, response.message);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
return {
|
|
100
|
+
cancel: function () {
|
|
101
|
+
callback = null;
|
|
102
|
+
client.close();
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
AppAccountGRPCClient.prototype.removeMobile = function removeMobile(requestMessage, metadata, callback) {
|
|
108
|
+
if (arguments.length === 2) {
|
|
109
|
+
callback = arguments[1];
|
|
110
|
+
}
|
|
111
|
+
var client = grpc.unary(AppAccountGRPC.RemoveMobile, {
|
|
112
|
+
request: requestMessage,
|
|
113
|
+
host: this.serviceHost,
|
|
114
|
+
metadata: metadata,
|
|
115
|
+
transport: this.options.transport,
|
|
116
|
+
debug: this.options.debug,
|
|
117
|
+
onEnd: function (response) {
|
|
118
|
+
if (callback) {
|
|
119
|
+
if (response.status !== grpc.Code.OK) {
|
|
120
|
+
var err = new Error(response.statusMessage);
|
|
121
|
+
err.code = response.status;
|
|
122
|
+
err.metadata = response.trailers;
|
|
123
|
+
callback(err, null);
|
|
124
|
+
} else {
|
|
125
|
+
callback(null, response.message);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
return {
|
|
131
|
+
cancel: function () {
|
|
132
|
+
callback = null;
|
|
133
|
+
client.close();
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
AppAccountGRPCClient.prototype.changeName = function changeName(requestMessage, metadata, callback) {
|
|
139
|
+
if (arguments.length === 2) {
|
|
140
|
+
callback = arguments[1];
|
|
141
|
+
}
|
|
142
|
+
var client = grpc.unary(AppAccountGRPC.ChangeName, {
|
|
143
|
+
request: requestMessage,
|
|
144
|
+
host: this.serviceHost,
|
|
145
|
+
metadata: metadata,
|
|
146
|
+
transport: this.options.transport,
|
|
147
|
+
debug: this.options.debug,
|
|
148
|
+
onEnd: function (response) {
|
|
149
|
+
if (callback) {
|
|
150
|
+
if (response.status !== grpc.Code.OK) {
|
|
151
|
+
var err = new Error(response.statusMessage);
|
|
152
|
+
err.code = response.status;
|
|
153
|
+
err.metadata = response.trailers;
|
|
154
|
+
callback(err, null);
|
|
155
|
+
} else {
|
|
156
|
+
callback(null, response.message);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
return {
|
|
162
|
+
cancel: function () {
|
|
163
|
+
callback = null;
|
|
164
|
+
client.close();
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
AppAccountGRPCClient.prototype.changePsk = function changePsk(requestMessage, metadata, callback) {
|
|
170
|
+
if (arguments.length === 2) {
|
|
171
|
+
callback = arguments[1];
|
|
172
|
+
}
|
|
173
|
+
var client = grpc.unary(AppAccountGRPC.ChangePsk, {
|
|
174
|
+
request: requestMessage,
|
|
175
|
+
host: this.serviceHost,
|
|
176
|
+
metadata: metadata,
|
|
177
|
+
transport: this.options.transport,
|
|
178
|
+
debug: this.options.debug,
|
|
179
|
+
onEnd: function (response) {
|
|
180
|
+
if (callback) {
|
|
181
|
+
if (response.status !== grpc.Code.OK) {
|
|
182
|
+
var err = new Error(response.statusMessage);
|
|
183
|
+
err.code = response.status;
|
|
184
|
+
err.metadata = response.trailers;
|
|
185
|
+
callback(err, null);
|
|
186
|
+
} else {
|
|
187
|
+
callback(null, response.message);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
return {
|
|
193
|
+
cancel: function () {
|
|
194
|
+
callback = null;
|
|
195
|
+
client.close();
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
AppAccountGRPCClient.prototype.registerClient = function registerClient(requestMessage, metadata, callback) {
|
|
201
|
+
if (arguments.length === 2) {
|
|
202
|
+
callback = arguments[1];
|
|
203
|
+
}
|
|
204
|
+
var client = grpc.unary(AppAccountGRPC.RegisterClient, {
|
|
205
|
+
request: requestMessage,
|
|
206
|
+
host: this.serviceHost,
|
|
207
|
+
metadata: metadata,
|
|
208
|
+
transport: this.options.transport,
|
|
209
|
+
debug: this.options.debug,
|
|
210
|
+
onEnd: function (response) {
|
|
211
|
+
if (callback) {
|
|
212
|
+
if (response.status !== grpc.Code.OK) {
|
|
213
|
+
var err = new Error(response.statusMessage);
|
|
214
|
+
err.code = response.status;
|
|
215
|
+
err.metadata = response.trailers;
|
|
216
|
+
callback(err, null);
|
|
217
|
+
} else {
|
|
218
|
+
callback(null, response.message);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
return {
|
|
224
|
+
cancel: function () {
|
|
225
|
+
callback = null;
|
|
226
|
+
client.close();
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
AppAccountGRPCClient.prototype.unRegisterClient = function unRegisterClient(requestMessage, metadata, callback) {
|
|
232
|
+
if (arguments.length === 2) {
|
|
233
|
+
callback = arguments[1];
|
|
234
|
+
}
|
|
235
|
+
var client = grpc.unary(AppAccountGRPC.UnRegisterClient, {
|
|
236
|
+
request: requestMessage,
|
|
237
|
+
host: this.serviceHost,
|
|
238
|
+
metadata: metadata,
|
|
239
|
+
transport: this.options.transport,
|
|
240
|
+
debug: this.options.debug,
|
|
241
|
+
onEnd: function (response) {
|
|
242
|
+
if (callback) {
|
|
243
|
+
if (response.status !== grpc.Code.OK) {
|
|
244
|
+
var err = new Error(response.statusMessage);
|
|
245
|
+
err.code = response.status;
|
|
246
|
+
err.metadata = response.trailers;
|
|
247
|
+
callback(err, null);
|
|
248
|
+
} else {
|
|
249
|
+
callback(null, response.message);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
return {
|
|
255
|
+
cancel: function () {
|
|
256
|
+
callback = null;
|
|
257
|
+
client.close();
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
exports.AppAccountGRPCClient = AppAccountGRPCClient;
|
|
263
|
+
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
// package: Auth
|
|
2
|
+
// file: auth.app_authn.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
|
|
6
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
7
|
+
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
8
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
9
|
+
|
|
10
|
+
export class AppAuthnProto extends jspb.Message {
|
|
11
|
+
getAccessToken(): string;
|
|
12
|
+
setAccessToken(value: string): void;
|
|
13
|
+
|
|
14
|
+
getRefreshToken(): string;
|
|
15
|
+
setRefreshToken(value: string): void;
|
|
16
|
+
|
|
17
|
+
hasExpiresIn(): boolean;
|
|
18
|
+
clearExpiresIn(): void;
|
|
19
|
+
getExpiresIn(): google_protobuf_duration_pb.Duration | undefined;
|
|
20
|
+
setExpiresIn(value?: google_protobuf_duration_pb.Duration): void;
|
|
21
|
+
|
|
22
|
+
serializeBinary(): Uint8Array;
|
|
23
|
+
toObject(includeInstance?: boolean): AppAuthnProto.AsObject;
|
|
24
|
+
static toObject(includeInstance: boolean, msg: AppAuthnProto): AppAuthnProto.AsObject;
|
|
25
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
26
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
27
|
+
static serializeBinaryToWriter(message: AppAuthnProto, writer: jspb.BinaryWriter): void;
|
|
28
|
+
static deserializeBinary(bytes: Uint8Array): AppAuthnProto;
|
|
29
|
+
static deserializeBinaryFromReader(message: AppAuthnProto, reader: jspb.BinaryReader): AppAuthnProto;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export namespace AppAuthnProto {
|
|
33
|
+
export type AsObject = {
|
|
34
|
+
accessToken: string,
|
|
35
|
+
refreshToken: string,
|
|
36
|
+
expiresIn?: google_protobuf_duration_pb.Duration.AsObject,
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class SmsLoginRequest extends jspb.Message {
|
|
40
|
+
getPhone(): string;
|
|
41
|
+
setPhone(value: string): void;
|
|
42
|
+
|
|
43
|
+
getLocale(): string;
|
|
44
|
+
setLocale(value: string): void;
|
|
45
|
+
|
|
46
|
+
serializeBinary(): Uint8Array;
|
|
47
|
+
toObject(includeInstance?: boolean): SmsLoginRequest.AsObject;
|
|
48
|
+
static toObject(includeInstance: boolean, msg: SmsLoginRequest): SmsLoginRequest.AsObject;
|
|
49
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
50
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
51
|
+
static serializeBinaryToWriter(message: SmsLoginRequest, writer: jspb.BinaryWriter): void;
|
|
52
|
+
static deserializeBinary(bytes: Uint8Array): SmsLoginRequest;
|
|
53
|
+
static deserializeBinaryFromReader(message: SmsLoginRequest, reader: jspb.BinaryReader): SmsLoginRequest;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export namespace SmsLoginRequest {
|
|
57
|
+
export type AsObject = {
|
|
58
|
+
phone: string,
|
|
59
|
+
locale: string,
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export class SmsRefreshRequest extends jspb.Message {
|
|
64
|
+
getPhone(): string;
|
|
65
|
+
setPhone(value: string): void;
|
|
66
|
+
|
|
67
|
+
getLocale(): string;
|
|
68
|
+
setLocale(value: string): void;
|
|
69
|
+
|
|
70
|
+
serializeBinary(): Uint8Array;
|
|
71
|
+
toObject(includeInstance?: boolean): SmsRefreshRequest.AsObject;
|
|
72
|
+
static toObject(includeInstance: boolean, msg: SmsRefreshRequest): SmsRefreshRequest.AsObject;
|
|
73
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
74
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
75
|
+
static serializeBinaryToWriter(message: SmsRefreshRequest, writer: jspb.BinaryWriter): void;
|
|
76
|
+
static deserializeBinary(bytes: Uint8Array): SmsRefreshRequest;
|
|
77
|
+
static deserializeBinaryFromReader(message: SmsRefreshRequest, reader: jspb.BinaryReader): SmsRefreshRequest;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export namespace SmsRefreshRequest {
|
|
81
|
+
export type AsObject = {
|
|
82
|
+
phone: string,
|
|
83
|
+
locale: string,
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class SmsVerifyTokenRequest extends jspb.Message {
|
|
88
|
+
getPhone(): string;
|
|
89
|
+
setPhone(value: string): void;
|
|
90
|
+
|
|
91
|
+
getToken(): string;
|
|
92
|
+
setToken(value: string): void;
|
|
93
|
+
|
|
94
|
+
getPushToken(): string;
|
|
95
|
+
setPushToken(value: string): void;
|
|
96
|
+
|
|
97
|
+
getUid(): string;
|
|
98
|
+
setUid(value: string): void;
|
|
99
|
+
|
|
100
|
+
getAppType(): AppAuthnProto.AppTypeMap[keyof AppAuthnProto.AppTypeMap];
|
|
101
|
+
setAppType(value: AppAuthnProto.AppTypeMap[keyof AppAuthnProto.AppTypeMap]): void;
|
|
102
|
+
|
|
103
|
+
serializeBinary(): Uint8Array;
|
|
104
|
+
toObject(includeInstance?: boolean): SmsVerifyTokenRequest.AsObject;
|
|
105
|
+
static toObject(includeInstance: boolean, msg: SmsVerifyTokenRequest): SmsVerifyTokenRequest.AsObject;
|
|
106
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
107
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
108
|
+
static serializeBinaryToWriter(message: SmsVerifyTokenRequest, writer: jspb.BinaryWriter): void;
|
|
109
|
+
static deserializeBinary(bytes: Uint8Array): SmsVerifyTokenRequest;
|
|
110
|
+
static deserializeBinaryFromReader(message: SmsVerifyTokenRequest, reader: jspb.BinaryReader): SmsVerifyTokenRequest;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export namespace SmsVerifyTokenRequest {
|
|
114
|
+
export type AsObject = {
|
|
115
|
+
phone: string,
|
|
116
|
+
token: string,
|
|
117
|
+
pushToken: string,
|
|
118
|
+
uid: string,
|
|
119
|
+
appType: AppAuthnProto.AppTypeMap[keyof AppAuthnProto.AppTypeMap],
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export class VerifySecretRequest extends jspb.Message {
|
|
124
|
+
getPhone(): string;
|
|
125
|
+
setPhone(value: string): void;
|
|
126
|
+
|
|
127
|
+
getSecret(): string;
|
|
128
|
+
setSecret(value: string): void;
|
|
129
|
+
|
|
130
|
+
getPushToken(): string;
|
|
131
|
+
setPushToken(value: string): void;
|
|
132
|
+
|
|
133
|
+
getUid(): string;
|
|
134
|
+
setUid(value: string): void;
|
|
135
|
+
|
|
136
|
+
hasTimestamp(): boolean;
|
|
137
|
+
clearTimestamp(): void;
|
|
138
|
+
getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
139
|
+
setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
140
|
+
|
|
141
|
+
getAppType(): AppAuthnProto.AppTypeMap[keyof AppAuthnProto.AppTypeMap];
|
|
142
|
+
setAppType(value: AppAuthnProto.AppTypeMap[keyof AppAuthnProto.AppTypeMap]): void;
|
|
143
|
+
|
|
144
|
+
serializeBinary(): Uint8Array;
|
|
145
|
+
toObject(includeInstance?: boolean): VerifySecretRequest.AsObject;
|
|
146
|
+
static toObject(includeInstance: boolean, msg: VerifySecretRequest): VerifySecretRequest.AsObject;
|
|
147
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
148
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
149
|
+
static serializeBinaryToWriter(message: VerifySecretRequest, writer: jspb.BinaryWriter): void;
|
|
150
|
+
static deserializeBinary(bytes: Uint8Array): VerifySecretRequest;
|
|
151
|
+
static deserializeBinaryFromReader(message: VerifySecretRequest, reader: jspb.BinaryReader): VerifySecretRequest;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export namespace VerifySecretRequest {
|
|
155
|
+
export type AsObject = {
|
|
156
|
+
phone: string,
|
|
157
|
+
secret: string,
|
|
158
|
+
pushToken: string,
|
|
159
|
+
uid: string,
|
|
160
|
+
timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
161
|
+
appType: AppAuthnProto.AppTypeMap[keyof AppAuthnProto.AppTypeMap],
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface AppTypeMap {
|
|
166
|
+
APP_TYPE_ACEPLUSKEY: 0;
|
|
167
|
+
APP_TYPE_ACEFIT: 1;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export const AppType: AppTypeMap;
|
|
171
|
+
}
|
|
172
|
+
|