@viamrobotics/sdk 0.3.3 → 0.4.0
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/app/data-client.d.ts +24 -0
- package/dist/app/viam-client.d.ts +11 -0
- package/dist/app/viam-transport.d.ts +10 -0
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +494 -0
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb_service.d.ts +177 -0
- package/dist/gen/app/data/v1/data_pb.d.ts +1342 -0
- package/dist/gen/app/data/v1/data_pb_service.d.ts +386 -0
- package/dist/gen/app/dataset/v1/dataset_pb.d.ts +246 -0
- package/dist/gen/app/dataset/v1/dataset_pb_service.d.ts +139 -0
- package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +425 -0
- package/dist/gen/app/datasync/v1/data_sync_pb_service.d.ts +85 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +270 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +120 -0
- package/dist/gen/app/packages/v1/packages_pb.d.ts +368 -0
- package/dist/gen/app/packages/v1/packages_pb_service.d.ts +112 -0
- package/dist/gen/app/v1/app_pb.d.ts +3801 -0
- package/dist/gen/app/v1/app_pb_service.d.ts +1225 -0
- package/dist/gen/app/v1/billing_pb.d.ts +753 -0
- package/dist/gen/app/v1/billing_pb_service.d.ts +207 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +81 -0
- package/dist/gen/app/v1/end_user_pb_service.d.ts +82 -0
- package/dist/gen/app/v1/robot_pb.d.ts +1245 -0
- package/dist/gen/app/v1/robot_pb_service.d.ts +120 -0
- package/dist/gen/component/board/v1/board_pb.d.ts +50 -0
- package/dist/gen/component/board/v1/board_pb_service.d.ts +19 -0
- package/dist/gen/service/motion/v1/motion_pb.d.ts +442 -0
- package/dist/gen/service/motion/v1/motion_pb_service.d.ts +76 -0
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +1 -0
- package/dist/main.d.ts +12 -0
- package/dist/main.es.js +35870 -25701
- package/dist/main.umd.js +20 -18
- package/dist/robot/dial.d.ts +9 -0
- package/dist/services/navigation/client.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
// package: viam.app.v1
|
|
2
|
+
// file: app/v1/billing.proto
|
|
3
|
+
|
|
4
|
+
import * as app_v1_billing_pb from "../../app/v1/billing_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type BillingServiceGetCurrentMonthUsageSummary = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof BillingService;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof app_v1_billing_pb.GetCurrentMonthUsageSummaryRequest;
|
|
13
|
+
readonly responseType: typeof app_v1_billing_pb.GetCurrentMonthUsageSummaryResponse;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type BillingServiceGetUnpaidBalance = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof BillingService;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof app_v1_billing_pb.GetUnpaidBalanceRequest;
|
|
22
|
+
readonly responseType: typeof app_v1_billing_pb.GetUnpaidBalanceResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type BillingServiceGetInvoiceHistory = {
|
|
26
|
+
readonly methodName: string;
|
|
27
|
+
readonly service: typeof BillingService;
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestType: typeof app_v1_billing_pb.GetInvoiceHistoryRequest;
|
|
31
|
+
readonly responseType: typeof app_v1_billing_pb.GetInvoiceHistoryResponse;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type BillingServiceGetItemizedInvoice = {
|
|
35
|
+
readonly methodName: string;
|
|
36
|
+
readonly service: typeof BillingService;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly requestType: typeof app_v1_billing_pb.GetItemizedInvoiceRequest;
|
|
40
|
+
readonly responseType: typeof app_v1_billing_pb.GetItemizedInvoiceResponse;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type BillingServiceGetBillingSummary = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof BillingService;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof app_v1_billing_pb.GetBillingSummaryRequest;
|
|
49
|
+
readonly responseType: typeof app_v1_billing_pb.GetBillingSummaryResponse;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type BillingServiceGetCurrentMonthUsage = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof BillingService;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof app_v1_billing_pb.GetCurrentMonthUsageRequest;
|
|
58
|
+
readonly responseType: typeof app_v1_billing_pb.GetCurrentMonthUsageResponse;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
type BillingServiceGetOrgBillingInformation = {
|
|
62
|
+
readonly methodName: string;
|
|
63
|
+
readonly service: typeof BillingService;
|
|
64
|
+
readonly requestStream: false;
|
|
65
|
+
readonly responseStream: false;
|
|
66
|
+
readonly requestType: typeof app_v1_billing_pb.GetOrgBillingInformationRequest;
|
|
67
|
+
readonly responseType: typeof app_v1_billing_pb.GetOrgBillingInformationResponse;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
type BillingServiceGetInvoicesSummary = {
|
|
71
|
+
readonly methodName: string;
|
|
72
|
+
readonly service: typeof BillingService;
|
|
73
|
+
readonly requestStream: false;
|
|
74
|
+
readonly responseStream: false;
|
|
75
|
+
readonly requestType: typeof app_v1_billing_pb.GetInvoicesSummaryRequest;
|
|
76
|
+
readonly responseType: typeof app_v1_billing_pb.GetInvoicesSummaryResponse;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
type BillingServiceGetInvoicePdf = {
|
|
80
|
+
readonly methodName: string;
|
|
81
|
+
readonly service: typeof BillingService;
|
|
82
|
+
readonly requestStream: false;
|
|
83
|
+
readonly responseStream: true;
|
|
84
|
+
readonly requestType: typeof app_v1_billing_pb.GetInvoicePdfRequest;
|
|
85
|
+
readonly responseType: typeof app_v1_billing_pb.GetInvoicePdfResponse;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export class BillingService {
|
|
89
|
+
static readonly serviceName: string;
|
|
90
|
+
static readonly GetCurrentMonthUsageSummary: BillingServiceGetCurrentMonthUsageSummary;
|
|
91
|
+
static readonly GetUnpaidBalance: BillingServiceGetUnpaidBalance;
|
|
92
|
+
static readonly GetInvoiceHistory: BillingServiceGetInvoiceHistory;
|
|
93
|
+
static readonly GetItemizedInvoice: BillingServiceGetItemizedInvoice;
|
|
94
|
+
static readonly GetBillingSummary: BillingServiceGetBillingSummary;
|
|
95
|
+
static readonly GetCurrentMonthUsage: BillingServiceGetCurrentMonthUsage;
|
|
96
|
+
static readonly GetOrgBillingInformation: BillingServiceGetOrgBillingInformation;
|
|
97
|
+
static readonly GetInvoicesSummary: BillingServiceGetInvoicesSummary;
|
|
98
|
+
static readonly GetInvoicePdf: BillingServiceGetInvoicePdf;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
102
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
103
|
+
|
|
104
|
+
interface UnaryResponse {
|
|
105
|
+
cancel(): void;
|
|
106
|
+
}
|
|
107
|
+
interface ResponseStream<T> {
|
|
108
|
+
cancel(): void;
|
|
109
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
110
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
111
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
112
|
+
}
|
|
113
|
+
interface RequestStream<T> {
|
|
114
|
+
write(message: T): RequestStream<T>;
|
|
115
|
+
end(): void;
|
|
116
|
+
cancel(): void;
|
|
117
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
118
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
119
|
+
}
|
|
120
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
121
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
122
|
+
end(): void;
|
|
123
|
+
cancel(): void;
|
|
124
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
125
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
126
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export class BillingServiceClient {
|
|
130
|
+
readonly serviceHost: string;
|
|
131
|
+
|
|
132
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
133
|
+
getCurrentMonthUsageSummary(
|
|
134
|
+
requestMessage: app_v1_billing_pb.GetCurrentMonthUsageSummaryRequest,
|
|
135
|
+
metadata: grpc.Metadata,
|
|
136
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetCurrentMonthUsageSummaryResponse|null) => void
|
|
137
|
+
): UnaryResponse;
|
|
138
|
+
getCurrentMonthUsageSummary(
|
|
139
|
+
requestMessage: app_v1_billing_pb.GetCurrentMonthUsageSummaryRequest,
|
|
140
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetCurrentMonthUsageSummaryResponse|null) => void
|
|
141
|
+
): UnaryResponse;
|
|
142
|
+
getUnpaidBalance(
|
|
143
|
+
requestMessage: app_v1_billing_pb.GetUnpaidBalanceRequest,
|
|
144
|
+
metadata: grpc.Metadata,
|
|
145
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetUnpaidBalanceResponse|null) => void
|
|
146
|
+
): UnaryResponse;
|
|
147
|
+
getUnpaidBalance(
|
|
148
|
+
requestMessage: app_v1_billing_pb.GetUnpaidBalanceRequest,
|
|
149
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetUnpaidBalanceResponse|null) => void
|
|
150
|
+
): UnaryResponse;
|
|
151
|
+
getInvoiceHistory(
|
|
152
|
+
requestMessage: app_v1_billing_pb.GetInvoiceHistoryRequest,
|
|
153
|
+
metadata: grpc.Metadata,
|
|
154
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetInvoiceHistoryResponse|null) => void
|
|
155
|
+
): UnaryResponse;
|
|
156
|
+
getInvoiceHistory(
|
|
157
|
+
requestMessage: app_v1_billing_pb.GetInvoiceHistoryRequest,
|
|
158
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetInvoiceHistoryResponse|null) => void
|
|
159
|
+
): UnaryResponse;
|
|
160
|
+
getItemizedInvoice(
|
|
161
|
+
requestMessage: app_v1_billing_pb.GetItemizedInvoiceRequest,
|
|
162
|
+
metadata: grpc.Metadata,
|
|
163
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetItemizedInvoiceResponse|null) => void
|
|
164
|
+
): UnaryResponse;
|
|
165
|
+
getItemizedInvoice(
|
|
166
|
+
requestMessage: app_v1_billing_pb.GetItemizedInvoiceRequest,
|
|
167
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetItemizedInvoiceResponse|null) => void
|
|
168
|
+
): UnaryResponse;
|
|
169
|
+
getBillingSummary(
|
|
170
|
+
requestMessage: app_v1_billing_pb.GetBillingSummaryRequest,
|
|
171
|
+
metadata: grpc.Metadata,
|
|
172
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetBillingSummaryResponse|null) => void
|
|
173
|
+
): UnaryResponse;
|
|
174
|
+
getBillingSummary(
|
|
175
|
+
requestMessage: app_v1_billing_pb.GetBillingSummaryRequest,
|
|
176
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetBillingSummaryResponse|null) => void
|
|
177
|
+
): UnaryResponse;
|
|
178
|
+
getCurrentMonthUsage(
|
|
179
|
+
requestMessage: app_v1_billing_pb.GetCurrentMonthUsageRequest,
|
|
180
|
+
metadata: grpc.Metadata,
|
|
181
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetCurrentMonthUsageResponse|null) => void
|
|
182
|
+
): UnaryResponse;
|
|
183
|
+
getCurrentMonthUsage(
|
|
184
|
+
requestMessage: app_v1_billing_pb.GetCurrentMonthUsageRequest,
|
|
185
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetCurrentMonthUsageResponse|null) => void
|
|
186
|
+
): UnaryResponse;
|
|
187
|
+
getOrgBillingInformation(
|
|
188
|
+
requestMessage: app_v1_billing_pb.GetOrgBillingInformationRequest,
|
|
189
|
+
metadata: grpc.Metadata,
|
|
190
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetOrgBillingInformationResponse|null) => void
|
|
191
|
+
): UnaryResponse;
|
|
192
|
+
getOrgBillingInformation(
|
|
193
|
+
requestMessage: app_v1_billing_pb.GetOrgBillingInformationRequest,
|
|
194
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetOrgBillingInformationResponse|null) => void
|
|
195
|
+
): UnaryResponse;
|
|
196
|
+
getInvoicesSummary(
|
|
197
|
+
requestMessage: app_v1_billing_pb.GetInvoicesSummaryRequest,
|
|
198
|
+
metadata: grpc.Metadata,
|
|
199
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetInvoicesSummaryResponse|null) => void
|
|
200
|
+
): UnaryResponse;
|
|
201
|
+
getInvoicesSummary(
|
|
202
|
+
requestMessage: app_v1_billing_pb.GetInvoicesSummaryRequest,
|
|
203
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetInvoicesSummaryResponse|null) => void
|
|
204
|
+
): UnaryResponse;
|
|
205
|
+
getInvoicePdf(requestMessage: app_v1_billing_pb.GetInvoicePdfRequest, metadata?: grpc.Metadata): ResponseStream<app_v1_billing_pb.GetInvoicePdfResponse>;
|
|
206
|
+
}
|
|
207
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// package: viam.app.v1
|
|
2
|
+
// file: app/v1/end_user.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export class IsLegalAcceptedRequest extends jspb.Message {
|
|
7
|
+
getUserId(): string;
|
|
8
|
+
setUserId(value: string): void;
|
|
9
|
+
|
|
10
|
+
serializeBinary(): Uint8Array;
|
|
11
|
+
toObject(includeInstance?: boolean): IsLegalAcceptedRequest.AsObject;
|
|
12
|
+
static toObject(includeInstance: boolean, msg: IsLegalAcceptedRequest): IsLegalAcceptedRequest.AsObject;
|
|
13
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
14
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
15
|
+
static serializeBinaryToWriter(message: IsLegalAcceptedRequest, writer: jspb.BinaryWriter): void;
|
|
16
|
+
static deserializeBinary(bytes: Uint8Array): IsLegalAcceptedRequest;
|
|
17
|
+
static deserializeBinaryFromReader(message: IsLegalAcceptedRequest, reader: jspb.BinaryReader): IsLegalAcceptedRequest;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export namespace IsLegalAcceptedRequest {
|
|
21
|
+
export type AsObject = {
|
|
22
|
+
userId: string,
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class IsLegalAcceptedResponse extends jspb.Message {
|
|
27
|
+
getAcceptedLegal(): boolean;
|
|
28
|
+
setAcceptedLegal(value: boolean): void;
|
|
29
|
+
|
|
30
|
+
serializeBinary(): Uint8Array;
|
|
31
|
+
toObject(includeInstance?: boolean): IsLegalAcceptedResponse.AsObject;
|
|
32
|
+
static toObject(includeInstance: boolean, msg: IsLegalAcceptedResponse): IsLegalAcceptedResponse.AsObject;
|
|
33
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
34
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
35
|
+
static serializeBinaryToWriter(message: IsLegalAcceptedResponse, writer: jspb.BinaryWriter): void;
|
|
36
|
+
static deserializeBinary(bytes: Uint8Array): IsLegalAcceptedResponse;
|
|
37
|
+
static deserializeBinaryFromReader(message: IsLegalAcceptedResponse, reader: jspb.BinaryReader): IsLegalAcceptedResponse;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export namespace IsLegalAcceptedResponse {
|
|
41
|
+
export type AsObject = {
|
|
42
|
+
acceptedLegal: boolean,
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class AcceptLegalRequest extends jspb.Message {
|
|
47
|
+
getUserId(): string;
|
|
48
|
+
setUserId(value: string): void;
|
|
49
|
+
|
|
50
|
+
serializeBinary(): Uint8Array;
|
|
51
|
+
toObject(includeInstance?: boolean): AcceptLegalRequest.AsObject;
|
|
52
|
+
static toObject(includeInstance: boolean, msg: AcceptLegalRequest): AcceptLegalRequest.AsObject;
|
|
53
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
54
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
55
|
+
static serializeBinaryToWriter(message: AcceptLegalRequest, writer: jspb.BinaryWriter): void;
|
|
56
|
+
static deserializeBinary(bytes: Uint8Array): AcceptLegalRequest;
|
|
57
|
+
static deserializeBinaryFromReader(message: AcceptLegalRequest, reader: jspb.BinaryReader): AcceptLegalRequest;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export namespace AcceptLegalRequest {
|
|
61
|
+
export type AsObject = {
|
|
62
|
+
userId: string,
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export class AcceptLegalResponse extends jspb.Message {
|
|
67
|
+
serializeBinary(): Uint8Array;
|
|
68
|
+
toObject(includeInstance?: boolean): AcceptLegalResponse.AsObject;
|
|
69
|
+
static toObject(includeInstance: boolean, msg: AcceptLegalResponse): AcceptLegalResponse.AsObject;
|
|
70
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
71
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
72
|
+
static serializeBinaryToWriter(message: AcceptLegalResponse, writer: jspb.BinaryWriter): void;
|
|
73
|
+
static deserializeBinary(bytes: Uint8Array): AcceptLegalResponse;
|
|
74
|
+
static deserializeBinaryFromReader(message: AcceptLegalResponse, reader: jspb.BinaryReader): AcceptLegalResponse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export namespace AcceptLegalResponse {
|
|
78
|
+
export type AsObject = {
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// package: viam.app.v1
|
|
2
|
+
// file: app/v1/end_user.proto
|
|
3
|
+
|
|
4
|
+
import * as app_v1_end_user_pb from "../../app/v1/end_user_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type EndUserServiceIsLegalAccepted = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof EndUserService;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof app_v1_end_user_pb.IsLegalAcceptedRequest;
|
|
13
|
+
readonly responseType: typeof app_v1_end_user_pb.IsLegalAcceptedResponse;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type EndUserServiceAcceptLegal = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof EndUserService;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof app_v1_end_user_pb.AcceptLegalRequest;
|
|
22
|
+
readonly responseType: typeof app_v1_end_user_pb.AcceptLegalResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export class EndUserService {
|
|
26
|
+
static readonly serviceName: string;
|
|
27
|
+
static readonly IsLegalAccepted: EndUserServiceIsLegalAccepted;
|
|
28
|
+
static readonly AcceptLegal: EndUserServiceAcceptLegal;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
32
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
33
|
+
|
|
34
|
+
interface UnaryResponse {
|
|
35
|
+
cancel(): void;
|
|
36
|
+
}
|
|
37
|
+
interface ResponseStream<T> {
|
|
38
|
+
cancel(): void;
|
|
39
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
40
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
41
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
42
|
+
}
|
|
43
|
+
interface RequestStream<T> {
|
|
44
|
+
write(message: T): RequestStream<T>;
|
|
45
|
+
end(): void;
|
|
46
|
+
cancel(): void;
|
|
47
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
48
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
49
|
+
}
|
|
50
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
51
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
52
|
+
end(): void;
|
|
53
|
+
cancel(): void;
|
|
54
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
55
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
56
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class EndUserServiceClient {
|
|
60
|
+
readonly serviceHost: string;
|
|
61
|
+
|
|
62
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
63
|
+
isLegalAccepted(
|
|
64
|
+
requestMessage: app_v1_end_user_pb.IsLegalAcceptedRequest,
|
|
65
|
+
metadata: grpc.Metadata,
|
|
66
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_end_user_pb.IsLegalAcceptedResponse|null) => void
|
|
67
|
+
): UnaryResponse;
|
|
68
|
+
isLegalAccepted(
|
|
69
|
+
requestMessage: app_v1_end_user_pb.IsLegalAcceptedRequest,
|
|
70
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_end_user_pb.IsLegalAcceptedResponse|null) => void
|
|
71
|
+
): UnaryResponse;
|
|
72
|
+
acceptLegal(
|
|
73
|
+
requestMessage: app_v1_end_user_pb.AcceptLegalRequest,
|
|
74
|
+
metadata: grpc.Metadata,
|
|
75
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_end_user_pb.AcceptLegalResponse|null) => void
|
|
76
|
+
): UnaryResponse;
|
|
77
|
+
acceptLegal(
|
|
78
|
+
requestMessage: app_v1_end_user_pb.AcceptLegalRequest,
|
|
79
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_end_user_pb.AcceptLegalResponse|null) => void
|
|
80
|
+
): UnaryResponse;
|
|
81
|
+
}
|
|
82
|
+
|