@superblocksteam/sabs-types-js 0.127.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.
@@ -0,0 +1,42 @@
1
+ // package: health.v1
2
+ // file: health/v1/service.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as grpc from "@grpc/grpc-js";
8
+ import * as health_v1_service_pb from "../../health/v1/service_pb";
9
+ import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-openapiv2/options/annotations_pb";
10
+
11
+ interface IHealthServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
12
+ health: IHealthServiceService_IHealth;
13
+ }
14
+
15
+ interface IHealthServiceService_IHealth extends grpc.MethodDefinition<health_v1_service_pb.HealthRequest, health_v1_service_pb.HealthResponse> {
16
+ path: "/health.v1.HealthService/Health";
17
+ requestStream: false;
18
+ responseStream: false;
19
+ requestSerialize: grpc.serialize<health_v1_service_pb.HealthRequest>;
20
+ requestDeserialize: grpc.deserialize<health_v1_service_pb.HealthRequest>;
21
+ responseSerialize: grpc.serialize<health_v1_service_pb.HealthResponse>;
22
+ responseDeserialize: grpc.deserialize<health_v1_service_pb.HealthResponse>;
23
+ }
24
+
25
+ export const HealthServiceService: IHealthServiceService;
26
+
27
+ export interface IHealthServiceServer extends grpc.UntypedServiceImplementation {
28
+ health: grpc.handleUnaryCall<health_v1_service_pb.HealthRequest, health_v1_service_pb.HealthResponse>;
29
+ }
30
+
31
+ export interface IHealthServiceClient {
32
+ health(request: health_v1_service_pb.HealthRequest, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
33
+ health(request: health_v1_service_pb.HealthRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
34
+ health(request: health_v1_service_pb.HealthRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
35
+ }
36
+
37
+ export class HealthServiceClient extends grpc.Client implements IHealthServiceClient {
38
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
39
+ public health(request: health_v1_service_pb.HealthRequest, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
40
+ public health(request: health_v1_service_pb.HealthRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
41
+ public health(request: health_v1_service_pb.HealthRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: health_v1_service_pb.HealthResponse) => void): grpc.ClientUnaryCall;
42
+ }
@@ -0,0 +1,46 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var health_v1_service_pb = require('../../health/v1/service_pb');
6
+ var google_api_annotations_pb = require('../../google/api/annotations_pb');
7
+ var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
8
+
9
+ function serialize_health_v1_HealthRequest(arg) {
10
+ if (!(arg instanceof health_v1_service_pb.HealthRequest)) {
11
+ throw new Error('Expected argument of type health.v1.HealthRequest');
12
+ }
13
+ return Buffer.from(arg.serializeBinary());
14
+ }
15
+
16
+ function deserialize_health_v1_HealthRequest(buffer_arg) {
17
+ return health_v1_service_pb.HealthRequest.deserializeBinary(new Uint8Array(buffer_arg));
18
+ }
19
+
20
+ function serialize_health_v1_HealthResponse(arg) {
21
+ if (!(arg instanceof health_v1_service_pb.HealthResponse)) {
22
+ throw new Error('Expected argument of type health.v1.HealthResponse');
23
+ }
24
+ return Buffer.from(arg.serializeBinary());
25
+ }
26
+
27
+ function deserialize_health_v1_HealthResponse(buffer_arg) {
28
+ return health_v1_service_pb.HealthResponse.deserializeBinary(new Uint8Array(buffer_arg));
29
+ }
30
+
31
+
32
+ var HealthServiceService = exports.HealthServiceService = {
33
+ health: {
34
+ path: '/health.v1.HealthService/Health',
35
+ requestStream: false,
36
+ responseStream: false,
37
+ requestType: health_v1_service_pb.HealthRequest,
38
+ responseType: health_v1_service_pb.HealthResponse,
39
+ requestSerialize: serialize_health_v1_HealthRequest,
40
+ requestDeserialize: deserialize_health_v1_HealthRequest,
41
+ responseSerialize: serialize_health_v1_HealthResponse,
42
+ responseDeserialize: deserialize_health_v1_HealthResponse,
43
+ },
44
+ };
45
+
46
+ exports.HealthServiceClient = grpc.makeGenericClientConstructor(HealthServiceService);
@@ -0,0 +1,51 @@
1
+ // package: health.v1
2
+ // file: health/v1/service.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+ import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-openapiv2/options/annotations_pb";
9
+
10
+ export class HealthRequest extends jspb.Message {
11
+
12
+ serializeBinary(): Uint8Array;
13
+ toObject(includeInstance?: boolean): HealthRequest.AsObject;
14
+ static toObject(includeInstance: boolean, msg: HealthRequest): HealthRequest.AsObject;
15
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
16
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
17
+ static serializeBinaryToWriter(message: HealthRequest, writer: jspb.BinaryWriter): void;
18
+ static deserializeBinary(bytes: Uint8Array): HealthRequest;
19
+ static deserializeBinaryFromReader(message: HealthRequest, reader: jspb.BinaryReader): HealthRequest;
20
+ }
21
+
22
+ export namespace HealthRequest {
23
+ export type AsObject = {
24
+ }
25
+ }
26
+
27
+ export class HealthResponse extends jspb.Message {
28
+ getMessage(): string;
29
+ setMessage(value: string): HealthResponse;
30
+ getUptime(): number;
31
+ setUptime(value: number): HealthResponse;
32
+ getVersion(): string;
33
+ setVersion(value: string): HealthResponse;
34
+
35
+ serializeBinary(): Uint8Array;
36
+ toObject(includeInstance?: boolean): HealthResponse.AsObject;
37
+ static toObject(includeInstance: boolean, msg: HealthResponse): HealthResponse.AsObject;
38
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
39
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
40
+ static serializeBinaryToWriter(message: HealthResponse, writer: jspb.BinaryWriter): void;
41
+ static deserializeBinary(bytes: Uint8Array): HealthResponse;
42
+ static deserializeBinaryFromReader(message: HealthResponse, reader: jspb.BinaryReader): HealthResponse;
43
+ }
44
+
45
+ export namespace HealthResponse {
46
+ export type AsObject = {
47
+ message: string,
48
+ uptime: number,
49
+ version: string,
50
+ }
51
+ }
@@ -0,0 +1,363 @@
1
+ // source: health/v1/service.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_annotations_pb = require('../../google/api/annotations_pb');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
27
+ goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
28
+ goog.exportSymbol('proto.health.v1.HealthRequest', null, global);
29
+ goog.exportSymbol('proto.health.v1.HealthResponse', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.health.v1.HealthRequest = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.health.v1.HealthRequest, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.health.v1.HealthRequest.displayName = 'proto.health.v1.HealthRequest';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.health.v1.HealthResponse = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.health.v1.HealthResponse, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.health.v1.HealthResponse.displayName = 'proto.health.v1.HealthResponse';
71
+ }
72
+
73
+
74
+
75
+ if (jspb.Message.GENERATE_TO_OBJECT) {
76
+ /**
77
+ * Creates an object representation of this proto.
78
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
79
+ * Optional fields that are not set will be set to undefined.
80
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
81
+ * For the list of reserved names please see:
82
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
83
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
84
+ * JSPB instance for transitional soy proto support:
85
+ * http://goto/soy-param-migration
86
+ * @return {!Object}
87
+ */
88
+ proto.health.v1.HealthRequest.prototype.toObject = function(opt_includeInstance) {
89
+ return proto.health.v1.HealthRequest.toObject(opt_includeInstance, this);
90
+ };
91
+
92
+
93
+ /**
94
+ * Static version of the {@see toObject} method.
95
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
96
+ * the JSPB instance for transitional soy proto support:
97
+ * http://goto/soy-param-migration
98
+ * @param {!proto.health.v1.HealthRequest} msg The msg instance to transform.
99
+ * @return {!Object}
100
+ * @suppress {unusedLocalVariables} f is only used for nested messages
101
+ */
102
+ proto.health.v1.HealthRequest.toObject = function(includeInstance, msg) {
103
+ var f, obj = {
104
+
105
+ };
106
+
107
+ if (includeInstance) {
108
+ obj.$jspbMessageInstance = msg;
109
+ }
110
+ return obj;
111
+ };
112
+ }
113
+
114
+
115
+ /**
116
+ * Deserializes binary data (in protobuf wire format).
117
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
118
+ * @return {!proto.health.v1.HealthRequest}
119
+ */
120
+ proto.health.v1.HealthRequest.deserializeBinary = function(bytes) {
121
+ var reader = new jspb.BinaryReader(bytes);
122
+ var msg = new proto.health.v1.HealthRequest;
123
+ return proto.health.v1.HealthRequest.deserializeBinaryFromReader(msg, reader);
124
+ };
125
+
126
+
127
+ /**
128
+ * Deserializes binary data (in protobuf wire format) from the
129
+ * given reader into the given message object.
130
+ * @param {!proto.health.v1.HealthRequest} msg The message object to deserialize into.
131
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
132
+ * @return {!proto.health.v1.HealthRequest}
133
+ */
134
+ proto.health.v1.HealthRequest.deserializeBinaryFromReader = function(msg, reader) {
135
+ while (reader.nextField()) {
136
+ if (reader.isEndGroup()) {
137
+ break;
138
+ }
139
+ var field = reader.getFieldNumber();
140
+ switch (field) {
141
+ default:
142
+ reader.skipField();
143
+ break;
144
+ }
145
+ }
146
+ return msg;
147
+ };
148
+
149
+
150
+ /**
151
+ * Serializes the message to binary data (in protobuf wire format).
152
+ * @return {!Uint8Array}
153
+ */
154
+ proto.health.v1.HealthRequest.prototype.serializeBinary = function() {
155
+ var writer = new jspb.BinaryWriter();
156
+ proto.health.v1.HealthRequest.serializeBinaryToWriter(this, writer);
157
+ return writer.getResultBuffer();
158
+ };
159
+
160
+
161
+ /**
162
+ * Serializes the given message to binary data (in protobuf wire
163
+ * format), writing to the given BinaryWriter.
164
+ * @param {!proto.health.v1.HealthRequest} message
165
+ * @param {!jspb.BinaryWriter} writer
166
+ * @suppress {unusedLocalVariables} f is only used for nested messages
167
+ */
168
+ proto.health.v1.HealthRequest.serializeBinaryToWriter = function(message, writer) {
169
+ var f = undefined;
170
+ };
171
+
172
+
173
+
174
+
175
+
176
+ if (jspb.Message.GENERATE_TO_OBJECT) {
177
+ /**
178
+ * Creates an object representation of this proto.
179
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
180
+ * Optional fields that are not set will be set to undefined.
181
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
182
+ * For the list of reserved names please see:
183
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
184
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
185
+ * JSPB instance for transitional soy proto support:
186
+ * http://goto/soy-param-migration
187
+ * @return {!Object}
188
+ */
189
+ proto.health.v1.HealthResponse.prototype.toObject = function(opt_includeInstance) {
190
+ return proto.health.v1.HealthResponse.toObject(opt_includeInstance, this);
191
+ };
192
+
193
+
194
+ /**
195
+ * Static version of the {@see toObject} method.
196
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
197
+ * the JSPB instance for transitional soy proto support:
198
+ * http://goto/soy-param-migration
199
+ * @param {!proto.health.v1.HealthResponse} msg The msg instance to transform.
200
+ * @return {!Object}
201
+ * @suppress {unusedLocalVariables} f is only used for nested messages
202
+ */
203
+ proto.health.v1.HealthResponse.toObject = function(includeInstance, msg) {
204
+ var f, obj = {
205
+ message: jspb.Message.getFieldWithDefault(msg, 1, ""),
206
+ uptime: jspb.Message.getFieldWithDefault(msg, 2, 0),
207
+ version: jspb.Message.getFieldWithDefault(msg, 3, "")
208
+ };
209
+
210
+ if (includeInstance) {
211
+ obj.$jspbMessageInstance = msg;
212
+ }
213
+ return obj;
214
+ };
215
+ }
216
+
217
+
218
+ /**
219
+ * Deserializes binary data (in protobuf wire format).
220
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
221
+ * @return {!proto.health.v1.HealthResponse}
222
+ */
223
+ proto.health.v1.HealthResponse.deserializeBinary = function(bytes) {
224
+ var reader = new jspb.BinaryReader(bytes);
225
+ var msg = new proto.health.v1.HealthResponse;
226
+ return proto.health.v1.HealthResponse.deserializeBinaryFromReader(msg, reader);
227
+ };
228
+
229
+
230
+ /**
231
+ * Deserializes binary data (in protobuf wire format) from the
232
+ * given reader into the given message object.
233
+ * @param {!proto.health.v1.HealthResponse} msg The message object to deserialize into.
234
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
235
+ * @return {!proto.health.v1.HealthResponse}
236
+ */
237
+ proto.health.v1.HealthResponse.deserializeBinaryFromReader = function(msg, reader) {
238
+ while (reader.nextField()) {
239
+ if (reader.isEndGroup()) {
240
+ break;
241
+ }
242
+ var field = reader.getFieldNumber();
243
+ switch (field) {
244
+ case 1:
245
+ var value = /** @type {string} */ (reader.readString());
246
+ msg.setMessage(value);
247
+ break;
248
+ case 2:
249
+ var value = /** @type {number} */ (reader.readInt64());
250
+ msg.setUptime(value);
251
+ break;
252
+ case 3:
253
+ var value = /** @type {string} */ (reader.readString());
254
+ msg.setVersion(value);
255
+ break;
256
+ default:
257
+ reader.skipField();
258
+ break;
259
+ }
260
+ }
261
+ return msg;
262
+ };
263
+
264
+
265
+ /**
266
+ * Serializes the message to binary data (in protobuf wire format).
267
+ * @return {!Uint8Array}
268
+ */
269
+ proto.health.v1.HealthResponse.prototype.serializeBinary = function() {
270
+ var writer = new jspb.BinaryWriter();
271
+ proto.health.v1.HealthResponse.serializeBinaryToWriter(this, writer);
272
+ return writer.getResultBuffer();
273
+ };
274
+
275
+
276
+ /**
277
+ * Serializes the given message to binary data (in protobuf wire
278
+ * format), writing to the given BinaryWriter.
279
+ * @param {!proto.health.v1.HealthResponse} message
280
+ * @param {!jspb.BinaryWriter} writer
281
+ * @suppress {unusedLocalVariables} f is only used for nested messages
282
+ */
283
+ proto.health.v1.HealthResponse.serializeBinaryToWriter = function(message, writer) {
284
+ var f = undefined;
285
+ f = message.getMessage();
286
+ if (f.length > 0) {
287
+ writer.writeString(
288
+ 1,
289
+ f
290
+ );
291
+ }
292
+ f = message.getUptime();
293
+ if (f !== 0) {
294
+ writer.writeInt64(
295
+ 2,
296
+ f
297
+ );
298
+ }
299
+ f = message.getVersion();
300
+ if (f.length > 0) {
301
+ writer.writeString(
302
+ 3,
303
+ f
304
+ );
305
+ }
306
+ };
307
+
308
+
309
+ /**
310
+ * optional string message = 1;
311
+ * @return {string}
312
+ */
313
+ proto.health.v1.HealthResponse.prototype.getMessage = function() {
314
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
315
+ };
316
+
317
+
318
+ /**
319
+ * @param {string} value
320
+ * @return {!proto.health.v1.HealthResponse} returns this
321
+ */
322
+ proto.health.v1.HealthResponse.prototype.setMessage = function(value) {
323
+ return jspb.Message.setProto3StringField(this, 1, value);
324
+ };
325
+
326
+
327
+ /**
328
+ * optional int64 uptime = 2;
329
+ * @return {number}
330
+ */
331
+ proto.health.v1.HealthResponse.prototype.getUptime = function() {
332
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
333
+ };
334
+
335
+
336
+ /**
337
+ * @param {number} value
338
+ * @return {!proto.health.v1.HealthResponse} returns this
339
+ */
340
+ proto.health.v1.HealthResponse.prototype.setUptime = function(value) {
341
+ return jspb.Message.setProto3IntField(this, 2, value);
342
+ };
343
+
344
+
345
+ /**
346
+ * optional string version = 3;
347
+ * @return {string}
348
+ */
349
+ proto.health.v1.HealthResponse.prototype.getVersion = function() {
350
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
351
+ };
352
+
353
+
354
+ /**
355
+ * @param {string} value
356
+ * @return {!proto.health.v1.HealthResponse} returns this
357
+ */
358
+ proto.health.v1.HealthResponse.prototype.setVersion = function(value) {
359
+ return jspb.Message.setProto3StringField(this, 3, value);
360
+ };
361
+
362
+
363
+ goog.object.extend(exports, proto.health.v1);
@@ -0,0 +1,42 @@
1
+ // package: liveedit.v1
2
+ // file: liveedit/v1/service.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as grpc from "@grpc/grpc-js";
8
+ import * as liveedit_v1_service_pb from "../../liveedit/v1/service_pb";
9
+ import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-openapiv2/options/annotations_pb";
10
+
11
+ interface ILiveEditServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
12
+ createLiveEdit: ILiveEditServiceService_ICreateLiveEdit;
13
+ }
14
+
15
+ interface ILiveEditServiceService_ICreateLiveEdit extends grpc.MethodDefinition<liveedit_v1_service_pb.CreateLiveEditRequest, liveedit_v1_service_pb.CreateLiveEditResponse> {
16
+ path: "/liveedit.v1.LiveEditService/CreateLiveEdit";
17
+ requestStream: false;
18
+ responseStream: false;
19
+ requestSerialize: grpc.serialize<liveedit_v1_service_pb.CreateLiveEditRequest>;
20
+ requestDeserialize: grpc.deserialize<liveedit_v1_service_pb.CreateLiveEditRequest>;
21
+ responseSerialize: grpc.serialize<liveedit_v1_service_pb.CreateLiveEditResponse>;
22
+ responseDeserialize: grpc.deserialize<liveedit_v1_service_pb.CreateLiveEditResponse>;
23
+ }
24
+
25
+ export const LiveEditServiceService: ILiveEditServiceService;
26
+
27
+ export interface ILiveEditServiceServer extends grpc.UntypedServiceImplementation {
28
+ createLiveEdit: grpc.handleUnaryCall<liveedit_v1_service_pb.CreateLiveEditRequest, liveedit_v1_service_pb.CreateLiveEditResponse>;
29
+ }
30
+
31
+ export interface ILiveEditServiceClient {
32
+ createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
33
+ createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
34
+ createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
35
+ }
36
+
37
+ export class LiveEditServiceClient extends grpc.Client implements ILiveEditServiceClient {
38
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
39
+ public createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
40
+ public createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
41
+ public createLiveEdit(request: liveedit_v1_service_pb.CreateLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.CreateLiveEditResponse) => void): grpc.ClientUnaryCall;
42
+ }
@@ -0,0 +1,46 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var liveedit_v1_service_pb = require('../../liveedit/v1/service_pb');
6
+ var google_api_annotations_pb = require('../../google/api/annotations_pb');
7
+ var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
8
+
9
+ function serialize_liveedit_v1_CreateLiveEditRequest(arg) {
10
+ if (!(arg instanceof liveedit_v1_service_pb.CreateLiveEditRequest)) {
11
+ throw new Error('Expected argument of type liveedit.v1.CreateLiveEditRequest');
12
+ }
13
+ return Buffer.from(arg.serializeBinary());
14
+ }
15
+
16
+ function deserialize_liveedit_v1_CreateLiveEditRequest(buffer_arg) {
17
+ return liveedit_v1_service_pb.CreateLiveEditRequest.deserializeBinary(new Uint8Array(buffer_arg));
18
+ }
19
+
20
+ function serialize_liveedit_v1_CreateLiveEditResponse(arg) {
21
+ if (!(arg instanceof liveedit_v1_service_pb.CreateLiveEditResponse)) {
22
+ throw new Error('Expected argument of type liveedit.v1.CreateLiveEditResponse');
23
+ }
24
+ return Buffer.from(arg.serializeBinary());
25
+ }
26
+
27
+ function deserialize_liveedit_v1_CreateLiveEditResponse(buffer_arg) {
28
+ return liveedit_v1_service_pb.CreateLiveEditResponse.deserializeBinary(new Uint8Array(buffer_arg));
29
+ }
30
+
31
+
32
+ var LiveEditServiceService = exports.LiveEditServiceService = {
33
+ createLiveEdit: {
34
+ path: '/liveedit.v1.LiveEditService/CreateLiveEdit',
35
+ requestStream: false,
36
+ responseStream: false,
37
+ requestType: liveedit_v1_service_pb.CreateLiveEditRequest,
38
+ responseType: liveedit_v1_service_pb.CreateLiveEditResponse,
39
+ requestSerialize: serialize_liveedit_v1_CreateLiveEditRequest,
40
+ requestDeserialize: deserialize_liveedit_v1_CreateLiveEditRequest,
41
+ responseSerialize: serialize_liveedit_v1_CreateLiveEditResponse,
42
+ responseDeserialize: deserialize_liveedit_v1_CreateLiveEditResponse,
43
+ },
44
+ };
45
+
46
+ exports.LiveEditServiceClient = grpc.makeGenericClientConstructor(LiveEditServiceService);
@@ -0,0 +1,100 @@
1
+ // package: liveedit.v1
2
+ // file: liveedit/v1/service.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+ import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-openapiv2/options/annotations_pb";
9
+
10
+ export class CreateLiveEditRequest extends jspb.Message {
11
+
12
+ hasApplication(): boolean;
13
+ clearApplication(): void;
14
+ getApplication(): Application | undefined;
15
+ setApplication(value?: Application): CreateLiveEditRequest;
16
+ getSessionJwt(): string;
17
+ setSessionJwt(value: string): CreateLiveEditRequest;
18
+ getExpiresIn(): number;
19
+ setExpiresIn(value: number): CreateLiveEditRequest;
20
+
21
+ serializeBinary(): Uint8Array;
22
+ toObject(includeInstance?: boolean): CreateLiveEditRequest.AsObject;
23
+ static toObject(includeInstance: boolean, msg: CreateLiveEditRequest): CreateLiveEditRequest.AsObject;
24
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
25
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
26
+ static serializeBinaryToWriter(message: CreateLiveEditRequest, writer: jspb.BinaryWriter): void;
27
+ static deserializeBinary(bytes: Uint8Array): CreateLiveEditRequest;
28
+ static deserializeBinaryFromReader(message: CreateLiveEditRequest, reader: jspb.BinaryReader): CreateLiveEditRequest;
29
+ }
30
+
31
+ export namespace CreateLiveEditRequest {
32
+ export type AsObject = {
33
+ application?: Application.AsObject,
34
+ sessionJwt: string,
35
+ expiresIn: number,
36
+ }
37
+ }
38
+
39
+ export class Application extends jspb.Message {
40
+ getApplicationId(): string;
41
+ setApplicationId(value: string): Application;
42
+ getOrganizationId(): string;
43
+ setOrganizationId(value: string): Application;
44
+ getBranch(): string;
45
+ setBranch(value: string): Application;
46
+
47
+ serializeBinary(): Uint8Array;
48
+ toObject(includeInstance?: boolean): Application.AsObject;
49
+ static toObject(includeInstance: boolean, msg: Application): Application.AsObject;
50
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
51
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
52
+ static serializeBinaryToWriter(message: Application, writer: jspb.BinaryWriter): void;
53
+ static deserializeBinary(bytes: Uint8Array): Application;
54
+ static deserializeBinaryFromReader(message: Application, reader: jspb.BinaryReader): Application;
55
+ }
56
+
57
+ export namespace Application {
58
+ export type AsObject = {
59
+ applicationId: string,
60
+ organizationId: string,
61
+ branch: string,
62
+ }
63
+ }
64
+
65
+ export class CreateLiveEditResponse extends jspb.Message {
66
+ getLiveEditUrl(): string;
67
+ setLiveEditUrl(value: string): CreateLiveEditResponse;
68
+
69
+ hasApplication(): boolean;
70
+ clearApplication(): void;
71
+ getApplication(): Application | undefined;
72
+ setApplication(value?: Application): CreateLiveEditResponse;
73
+ getExpiresAt(): number;
74
+ setExpiresAt(value: number): CreateLiveEditResponse;
75
+
76
+ serializeBinary(): Uint8Array;
77
+ toObject(includeInstance?: boolean): CreateLiveEditResponse.AsObject;
78
+ static toObject(includeInstance: boolean, msg: CreateLiveEditResponse): CreateLiveEditResponse.AsObject;
79
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
80
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
81
+ static serializeBinaryToWriter(message: CreateLiveEditResponse, writer: jspb.BinaryWriter): void;
82
+ static deserializeBinary(bytes: Uint8Array): CreateLiveEditResponse;
83
+ static deserializeBinaryFromReader(message: CreateLiveEditResponse, reader: jspb.BinaryReader): CreateLiveEditResponse;
84
+ }
85
+
86
+ export namespace CreateLiveEditResponse {
87
+ export type AsObject = {
88
+ liveEditUrl: string,
89
+ application?: Application.AsObject,
90
+ expiresAt: number,
91
+ }
92
+ }
93
+
94
+ export enum LiveEditStatus {
95
+ LIVE_EDIT_STATUS_UNSPECIFIED = 0,
96
+ LIVE_EDIT_STATUS_STARTING = 1,
97
+ LIVE_EDIT_STATUS_ACTIVE = 2,
98
+ LIVE_EDIT_STATUS_TERMINATED = 3,
99
+ LIVE_EDIT_STATUS_UNKNOWN = 4,
100
+ }