@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,120 @@
|
|
|
1
|
+
// package: Auth
|
|
2
|
+
// file: auth.app_distribution.proto
|
|
3
|
+
|
|
4
|
+
import * as auth_app_distribution_pb from "./auth.app_distribution_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type AppDistributionGRPCGetPhonePrefixes = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof AppDistributionGRPC;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.PhonePrefixesRequest;
|
|
13
|
+
readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.PhonePrefixesResponse;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type AppDistributionGRPCGetClientsList = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof AppDistributionGRPC;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.GetClientsRequest;
|
|
22
|
+
readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.GetClientsResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type AppDistributionGRPCGetClientsListForAutoInvite = {
|
|
26
|
+
readonly methodName: string;
|
|
27
|
+
readonly service: typeof AppDistributionGRPC;
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.GetClientsRequest;
|
|
31
|
+
readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.GetClientsResponse;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type AppDistributionGRPCCheckQr = {
|
|
35
|
+
readonly methodName: string;
|
|
36
|
+
readonly service: typeof AppDistributionGRPC;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.CheckQrRequest;
|
|
40
|
+
readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.CheckQrResponse;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export class AppDistributionGRPC {
|
|
44
|
+
static readonly serviceName: string;
|
|
45
|
+
static readonly GetPhonePrefixes: AppDistributionGRPCGetPhonePrefixes;
|
|
46
|
+
static readonly GetClientsList: AppDistributionGRPCGetClientsList;
|
|
47
|
+
static readonly GetClientsListForAutoInvite: AppDistributionGRPCGetClientsListForAutoInvite;
|
|
48
|
+
static readonly CheckQr: AppDistributionGRPCCheckQr;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
52
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
53
|
+
|
|
54
|
+
interface UnaryResponse {
|
|
55
|
+
cancel(): void;
|
|
56
|
+
}
|
|
57
|
+
interface ResponseStream<T> {
|
|
58
|
+
cancel(): void;
|
|
59
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
60
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
61
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
62
|
+
}
|
|
63
|
+
interface RequestStream<T> {
|
|
64
|
+
write(message: T): RequestStream<T>;
|
|
65
|
+
end(): void;
|
|
66
|
+
cancel(): void;
|
|
67
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
68
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
69
|
+
}
|
|
70
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
71
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
72
|
+
end(): void;
|
|
73
|
+
cancel(): void;
|
|
74
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
75
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
76
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class AppDistributionGRPCClient {
|
|
80
|
+
readonly serviceHost: string;
|
|
81
|
+
|
|
82
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
83
|
+
getPhonePrefixes(
|
|
84
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesRequest,
|
|
85
|
+
metadata: grpc.Metadata,
|
|
86
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesResponse|null) => void
|
|
87
|
+
): UnaryResponse;
|
|
88
|
+
getPhonePrefixes(
|
|
89
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesRequest,
|
|
90
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesResponse|null) => void
|
|
91
|
+
): UnaryResponse;
|
|
92
|
+
getClientsList(
|
|
93
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
|
|
94
|
+
metadata: grpc.Metadata,
|
|
95
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse|null) => void
|
|
96
|
+
): UnaryResponse;
|
|
97
|
+
getClientsList(
|
|
98
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
|
|
99
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse|null) => void
|
|
100
|
+
): UnaryResponse;
|
|
101
|
+
getClientsListForAutoInvite(
|
|
102
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
|
|
103
|
+
metadata: grpc.Metadata,
|
|
104
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse|null) => void
|
|
105
|
+
): UnaryResponse;
|
|
106
|
+
getClientsListForAutoInvite(
|
|
107
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
|
|
108
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse|null) => void
|
|
109
|
+
): UnaryResponse;
|
|
110
|
+
checkQr(
|
|
111
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
|
|
112
|
+
metadata: grpc.Metadata,
|
|
113
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrResponse|null) => void
|
|
114
|
+
): UnaryResponse;
|
|
115
|
+
checkQr(
|
|
116
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
|
|
117
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrResponse|null) => void
|
|
118
|
+
): UnaryResponse;
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// package: Auth
|
|
2
|
+
// file: auth.app_distribution.proto
|
|
3
|
+
|
|
4
|
+
var auth_app_distribution_pb = require("./auth.app_distribution_pb");
|
|
5
|
+
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
6
|
+
|
|
7
|
+
var AppDistributionGRPC = (function () {
|
|
8
|
+
function AppDistributionGRPC() {}
|
|
9
|
+
AppDistributionGRPC.serviceName = "Auth.AppDistributionGRPC";
|
|
10
|
+
return AppDistributionGRPC;
|
|
11
|
+
}());
|
|
12
|
+
|
|
13
|
+
AppDistributionGRPC.GetPhonePrefixes = {
|
|
14
|
+
methodName: "GetPhonePrefixes",
|
|
15
|
+
service: AppDistributionGRPC,
|
|
16
|
+
requestStream: false,
|
|
17
|
+
responseStream: false,
|
|
18
|
+
requestType: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesRequest,
|
|
19
|
+
responseType: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesResponse
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
AppDistributionGRPC.GetClientsList = {
|
|
23
|
+
methodName: "GetClientsList",
|
|
24
|
+
service: AppDistributionGRPC,
|
|
25
|
+
requestStream: false,
|
|
26
|
+
responseStream: false,
|
|
27
|
+
requestType: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
|
|
28
|
+
responseType: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
AppDistributionGRPC.GetClientsListForAutoInvite = {
|
|
32
|
+
methodName: "GetClientsListForAutoInvite",
|
|
33
|
+
service: AppDistributionGRPC,
|
|
34
|
+
requestStream: false,
|
|
35
|
+
responseStream: false,
|
|
36
|
+
requestType: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
|
|
37
|
+
responseType: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
AppDistributionGRPC.CheckQr = {
|
|
41
|
+
methodName: "CheckQr",
|
|
42
|
+
service: AppDistributionGRPC,
|
|
43
|
+
requestStream: false,
|
|
44
|
+
responseStream: false,
|
|
45
|
+
requestType: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
|
|
46
|
+
responseType: auth_app_distribution_pb.AppDistributionProto.CheckQrResponse
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.AppDistributionGRPC = AppDistributionGRPC;
|
|
50
|
+
|
|
51
|
+
function AppDistributionGRPCClient(serviceHost, options) {
|
|
52
|
+
this.serviceHost = serviceHost;
|
|
53
|
+
this.options = options || {};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
AppDistributionGRPCClient.prototype.getPhonePrefixes = function getPhonePrefixes(requestMessage, metadata, callback) {
|
|
57
|
+
if (arguments.length === 2) {
|
|
58
|
+
callback = arguments[1];
|
|
59
|
+
}
|
|
60
|
+
var client = grpc.unary(AppDistributionGRPC.GetPhonePrefixes, {
|
|
61
|
+
request: requestMessage,
|
|
62
|
+
host: this.serviceHost,
|
|
63
|
+
metadata: metadata,
|
|
64
|
+
transport: this.options.transport,
|
|
65
|
+
debug: this.options.debug,
|
|
66
|
+
onEnd: function (response) {
|
|
67
|
+
if (callback) {
|
|
68
|
+
if (response.status !== grpc.Code.OK) {
|
|
69
|
+
var err = new Error(response.statusMessage);
|
|
70
|
+
err.code = response.status;
|
|
71
|
+
err.metadata = response.trailers;
|
|
72
|
+
callback(err, null);
|
|
73
|
+
} else {
|
|
74
|
+
callback(null, response.message);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
return {
|
|
80
|
+
cancel: function () {
|
|
81
|
+
callback = null;
|
|
82
|
+
client.close();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
AppDistributionGRPCClient.prototype.getClientsList = function getClientsList(requestMessage, metadata, callback) {
|
|
88
|
+
if (arguments.length === 2) {
|
|
89
|
+
callback = arguments[1];
|
|
90
|
+
}
|
|
91
|
+
var client = grpc.unary(AppDistributionGRPC.GetClientsList, {
|
|
92
|
+
request: requestMessage,
|
|
93
|
+
host: this.serviceHost,
|
|
94
|
+
metadata: metadata,
|
|
95
|
+
transport: this.options.transport,
|
|
96
|
+
debug: this.options.debug,
|
|
97
|
+
onEnd: function (response) {
|
|
98
|
+
if (callback) {
|
|
99
|
+
if (response.status !== grpc.Code.OK) {
|
|
100
|
+
var err = new Error(response.statusMessage);
|
|
101
|
+
err.code = response.status;
|
|
102
|
+
err.metadata = response.trailers;
|
|
103
|
+
callback(err, null);
|
|
104
|
+
} else {
|
|
105
|
+
callback(null, response.message);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
return {
|
|
111
|
+
cancel: function () {
|
|
112
|
+
callback = null;
|
|
113
|
+
client.close();
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
AppDistributionGRPCClient.prototype.getClientsListForAutoInvite = function getClientsListForAutoInvite(requestMessage, metadata, callback) {
|
|
119
|
+
if (arguments.length === 2) {
|
|
120
|
+
callback = arguments[1];
|
|
121
|
+
}
|
|
122
|
+
var client = grpc.unary(AppDistributionGRPC.GetClientsListForAutoInvite, {
|
|
123
|
+
request: requestMessage,
|
|
124
|
+
host: this.serviceHost,
|
|
125
|
+
metadata: metadata,
|
|
126
|
+
transport: this.options.transport,
|
|
127
|
+
debug: this.options.debug,
|
|
128
|
+
onEnd: function (response) {
|
|
129
|
+
if (callback) {
|
|
130
|
+
if (response.status !== grpc.Code.OK) {
|
|
131
|
+
var err = new Error(response.statusMessage);
|
|
132
|
+
err.code = response.status;
|
|
133
|
+
err.metadata = response.trailers;
|
|
134
|
+
callback(err, null);
|
|
135
|
+
} else {
|
|
136
|
+
callback(null, response.message);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
return {
|
|
142
|
+
cancel: function () {
|
|
143
|
+
callback = null;
|
|
144
|
+
client.close();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
AppDistributionGRPCClient.prototype.checkQr = function checkQr(requestMessage, metadata, callback) {
|
|
150
|
+
if (arguments.length === 2) {
|
|
151
|
+
callback = arguments[1];
|
|
152
|
+
}
|
|
153
|
+
var client = grpc.unary(AppDistributionGRPC.CheckQr, {
|
|
154
|
+
request: requestMessage,
|
|
155
|
+
host: this.serviceHost,
|
|
156
|
+
metadata: metadata,
|
|
157
|
+
transport: this.options.transport,
|
|
158
|
+
debug: this.options.debug,
|
|
159
|
+
onEnd: function (response) {
|
|
160
|
+
if (callback) {
|
|
161
|
+
if (response.status !== grpc.Code.OK) {
|
|
162
|
+
var err = new Error(response.statusMessage);
|
|
163
|
+
err.code = response.status;
|
|
164
|
+
err.metadata = response.trailers;
|
|
165
|
+
callback(err, null);
|
|
166
|
+
} else {
|
|
167
|
+
callback(null, response.message);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
return {
|
|
173
|
+
cancel: function () {
|
|
174
|
+
callback = null;
|
|
175
|
+
client.close();
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
exports.AppDistributionGRPCClient = AppDistributionGRPCClient;
|
|
181
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// package: Auth
|
|
2
|
+
// file: auth.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_api_annotations_pb from "./google/api/annotations_pb";
|
|
7
|
+
|
|
8
|
+
export class AuthnProto extends jspb.Message {
|
|
9
|
+
getAccessToken(): string;
|
|
10
|
+
setAccessToken(value: string): void;
|
|
11
|
+
|
|
12
|
+
getRefreshToken(): string;
|
|
13
|
+
setRefreshToken(value: string): void;
|
|
14
|
+
|
|
15
|
+
hasExpiresIn(): boolean;
|
|
16
|
+
clearExpiresIn(): void;
|
|
17
|
+
getExpiresIn(): google_protobuf_duration_pb.Duration | undefined;
|
|
18
|
+
setExpiresIn(value?: google_protobuf_duration_pb.Duration): void;
|
|
19
|
+
|
|
20
|
+
serializeBinary(): Uint8Array;
|
|
21
|
+
toObject(includeInstance?: boolean): AuthnProto.AsObject;
|
|
22
|
+
static toObject(includeInstance: boolean, msg: AuthnProto): AuthnProto.AsObject;
|
|
23
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
24
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
25
|
+
static serializeBinaryToWriter(message: AuthnProto, writer: jspb.BinaryWriter): void;
|
|
26
|
+
static deserializeBinary(bytes: Uint8Array): AuthnProto;
|
|
27
|
+
static deserializeBinaryFromReader(message: AuthnProto, reader: jspb.BinaryReader): AuthnProto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export namespace AuthnProto {
|
|
31
|
+
export type AsObject = {
|
|
32
|
+
accessToken: string,
|
|
33
|
+
refreshToken: string,
|
|
34
|
+
expiresIn?: google_protobuf_duration_pb.Duration.AsObject,
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class LoginRequest extends jspb.Message {
|
|
38
|
+
getUsername(): string;
|
|
39
|
+
setUsername(value: string): void;
|
|
40
|
+
|
|
41
|
+
getPassword(): string;
|
|
42
|
+
setPassword(value: string): void;
|
|
43
|
+
|
|
44
|
+
serializeBinary(): Uint8Array;
|
|
45
|
+
toObject(includeInstance?: boolean): LoginRequest.AsObject;
|
|
46
|
+
static toObject(includeInstance: boolean, msg: LoginRequest): LoginRequest.AsObject;
|
|
47
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
48
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
49
|
+
static serializeBinaryToWriter(message: LoginRequest, writer: jspb.BinaryWriter): void;
|
|
50
|
+
static deserializeBinary(bytes: Uint8Array): LoginRequest;
|
|
51
|
+
static deserializeBinaryFromReader(message: LoginRequest, reader: jspb.BinaryReader): LoginRequest;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export namespace LoginRequest {
|
|
55
|
+
export type AsObject = {
|
|
56
|
+
username: string,
|
|
57
|
+
password: string,
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export class RefreshRequest extends jspb.Message {
|
|
62
|
+
getAccessToken(): string;
|
|
63
|
+
setAccessToken(value: string): void;
|
|
64
|
+
|
|
65
|
+
getRefreshToken(): string;
|
|
66
|
+
setRefreshToken(value: string): void;
|
|
67
|
+
|
|
68
|
+
serializeBinary(): Uint8Array;
|
|
69
|
+
toObject(includeInstance?: boolean): RefreshRequest.AsObject;
|
|
70
|
+
static toObject(includeInstance: boolean, msg: RefreshRequest): RefreshRequest.AsObject;
|
|
71
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
72
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
73
|
+
static serializeBinaryToWriter(message: RefreshRequest, writer: jspb.BinaryWriter): void;
|
|
74
|
+
static deserializeBinary(bytes: Uint8Array): RefreshRequest;
|
|
75
|
+
static deserializeBinaryFromReader(message: RefreshRequest, reader: jspb.BinaryReader): RefreshRequest;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export namespace RefreshRequest {
|
|
79
|
+
export type AsObject = {
|
|
80
|
+
accessToken: string,
|
|
81
|
+
refreshToken: string,
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface AuthnErrorMap {
|
|
86
|
+
ACCOUNT_DISABLED: 0;
|
|
87
|
+
ACCOUNT_EXPIRED: 1;
|
|
88
|
+
MFA_REGISTRATION_REQUIRED: 2;
|
|
89
|
+
MFA_VERIFICATION_FAILED: 3;
|
|
90
|
+
INVALID_CLIENT_HEADER: 4;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const AuthnError: AuthnErrorMap;
|
|
94
|
+
}
|
|
95
|
+
|