@lansweeper/multitenant-api-grpc 0.4.25 → 0.4.27
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/CHANGELOG.md +16 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/multitenant_grpc_pb.d.ts +34 -0
- package/gen-proto/multitenant_grpc_pb.js +55 -0
- package/gen-proto/multitenant_pb.d.ts +65 -0
- package/gen-proto/multitenant_pb.js +512 -0
- package/generated-go/multitenant.pb.go +3681 -934
- package/generated-go/multitenant_grpc.pb.go +614 -36
- package/package.json +2 -2
- package/proto/multitenant.proto +17 -0
|
@@ -38,6 +38,8 @@ interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedService
|
|
|
38
38
|
sendInviteLocalUsersMail: IMultitenantService_ISendInviteLocalUsersMail;
|
|
39
39
|
allProfileExists: IMultitenantService_IAllProfileExists;
|
|
40
40
|
getSiteSubscription: IMultitenantService_IGetSiteSubscription;
|
|
41
|
+
createLinkingCode: IMultitenantService_ICreateLinkingCode;
|
|
42
|
+
getSiteIdsWithIntegrationBySiteId: IMultitenantService_IGetSiteIdsWithIntegrationBySiteId;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
interface IMultitenantService_ICheckAccessToSiteByAccountId extends grpc.MethodDefinition<multitenant_pb.CheckAccessToSiteByAccountIdRequest, multitenant_pb.CheckAccessToSiteByAccountIdResponse> {
|
|
@@ -310,6 +312,24 @@ interface IMultitenantService_IGetSiteSubscription extends grpc.MethodDefinition
|
|
|
310
312
|
responseSerialize: grpc.serialize<multitenant_pb.GetSiteSubscriptionResponse>;
|
|
311
313
|
responseDeserialize: grpc.deserialize<multitenant_pb.GetSiteSubscriptionResponse>;
|
|
312
314
|
}
|
|
315
|
+
interface IMultitenantService_ICreateLinkingCode extends grpc.MethodDefinition<multitenant_pb.CreateLinkingCodeRequest, multitenant_pb.CreateLinkingCodeResponse> {
|
|
316
|
+
path: "/lansweeper.multitenant.v1.Multitenant/CreateLinkingCode";
|
|
317
|
+
requestStream: false;
|
|
318
|
+
responseStream: false;
|
|
319
|
+
requestSerialize: grpc.serialize<multitenant_pb.CreateLinkingCodeRequest>;
|
|
320
|
+
requestDeserialize: grpc.deserialize<multitenant_pb.CreateLinkingCodeRequest>;
|
|
321
|
+
responseSerialize: grpc.serialize<multitenant_pb.CreateLinkingCodeResponse>;
|
|
322
|
+
responseDeserialize: grpc.deserialize<multitenant_pb.CreateLinkingCodeResponse>;
|
|
323
|
+
}
|
|
324
|
+
interface IMultitenantService_IGetSiteIdsWithIntegrationBySiteId extends grpc.MethodDefinition<multitenant_pb.GetSiteIdsWithIntegrationData, multitenant_pb.GetSiteIdsWithIntegrationData> {
|
|
325
|
+
path: "/lansweeper.multitenant.v1.Multitenant/GetSiteIdsWithIntegrationBySiteId";
|
|
326
|
+
requestStream: false;
|
|
327
|
+
responseStream: false;
|
|
328
|
+
requestSerialize: grpc.serialize<multitenant_pb.GetSiteIdsWithIntegrationData>;
|
|
329
|
+
requestDeserialize: grpc.deserialize<multitenant_pb.GetSiteIdsWithIntegrationData>;
|
|
330
|
+
responseSerialize: grpc.serialize<multitenant_pb.GetSiteIdsWithIntegrationData>;
|
|
331
|
+
responseDeserialize: grpc.deserialize<multitenant_pb.GetSiteIdsWithIntegrationData>;
|
|
332
|
+
}
|
|
313
333
|
|
|
314
334
|
export const MultitenantService: IMultitenantService;
|
|
315
335
|
|
|
@@ -344,6 +364,8 @@ export interface IMultitenantServer extends grpc.UntypedServiceImplementation {
|
|
|
344
364
|
sendInviteLocalUsersMail: grpc.handleUnaryCall<multitenant_pb.SendInviteLocalUsersMailRequest, multitenant_pb.SendInviteLocalUsersMailResponse>;
|
|
345
365
|
allProfileExists: grpc.handleUnaryCall<multitenant_pb.AllProfileExistsRequest, multitenant_pb.AllProfileExistsResponse>;
|
|
346
366
|
getSiteSubscription: grpc.handleUnaryCall<multitenant_pb.GetSiteSubscriptionRequest, multitenant_pb.GetSiteSubscriptionResponse>;
|
|
367
|
+
createLinkingCode: grpc.handleUnaryCall<multitenant_pb.CreateLinkingCodeRequest, multitenant_pb.CreateLinkingCodeResponse>;
|
|
368
|
+
getSiteIdsWithIntegrationBySiteId: grpc.handleUnaryCall<multitenant_pb.GetSiteIdsWithIntegrationData, multitenant_pb.GetSiteIdsWithIntegrationData>;
|
|
347
369
|
}
|
|
348
370
|
|
|
349
371
|
export interface IMultitenantClient {
|
|
@@ -437,6 +459,12 @@ export interface IMultitenantClient {
|
|
|
437
459
|
getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
438
460
|
getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
439
461
|
getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
462
|
+
createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
|
|
463
|
+
createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
|
|
464
|
+
createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
|
|
465
|
+
getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
|
|
466
|
+
getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
|
|
467
|
+
getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
|
|
440
468
|
}
|
|
441
469
|
|
|
442
470
|
export class MultitenantClient extends grpc.Client implements IMultitenantClient {
|
|
@@ -531,4 +559,10 @@ export class MultitenantClient extends grpc.Client implements IMultitenantClient
|
|
|
531
559
|
public getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
532
560
|
public getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
533
561
|
public getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
562
|
+
public createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
|
|
563
|
+
public createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
|
|
564
|
+
public createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
|
|
565
|
+
public getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
|
|
566
|
+
public getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
|
|
567
|
+
public getSiteIdsWithIntegrationBySiteId(request: multitenant_pb.GetSiteIdsWithIntegrationData, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteIdsWithIntegrationData) => void): grpc.ClientUnaryCall;
|
|
534
568
|
}
|
|
@@ -158,6 +158,28 @@ function deserialize_lansweeper_multitenant_v1_CreateInstallResponse(buffer_arg)
|
|
|
158
158
|
return multitenant_pb.CreateInstallResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
function serialize_lansweeper_multitenant_v1_CreateLinkingCodeRequest(arg) {
|
|
162
|
+
if (!(arg instanceof multitenant_pb.CreateLinkingCodeRequest)) {
|
|
163
|
+
throw new Error('Expected argument of type lansweeper.multitenant.v1.CreateLinkingCodeRequest');
|
|
164
|
+
}
|
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function deserialize_lansweeper_multitenant_v1_CreateLinkingCodeRequest(buffer_arg) {
|
|
169
|
+
return multitenant_pb.CreateLinkingCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function serialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse(arg) {
|
|
173
|
+
if (!(arg instanceof multitenant_pb.CreateLinkingCodeResponse)) {
|
|
174
|
+
throw new Error('Expected argument of type lansweeper.multitenant.v1.CreateLinkingCodeResponse');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse(buffer_arg) {
|
|
180
|
+
return multitenant_pb.CreateLinkingCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
161
183
|
function serialize_lansweeper_multitenant_v1_CreateTrialSiteAndInstallerRequest(arg) {
|
|
162
184
|
if (!(arg instanceof multitenant_pb.CreateTrialSiteAndInstallerRequest)) {
|
|
163
185
|
throw new Error('Expected argument of type lansweeper.multitenant.v1.CreateTrialSiteAndInstallerRequest');
|
|
@@ -378,6 +400,17 @@ function deserialize_lansweeper_multitenant_v1_GetPreviewAccountByIdResponse(buf
|
|
|
378
400
|
return multitenant_pb.GetPreviewAccountByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
379
401
|
}
|
|
380
402
|
|
|
403
|
+
function serialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData(arg) {
|
|
404
|
+
if (!(arg instanceof multitenant_pb.GetSiteIdsWithIntegrationData)) {
|
|
405
|
+
throw new Error('Expected argument of type lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData');
|
|
406
|
+
}
|
|
407
|
+
return Buffer.from(arg.serializeBinary());
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
function deserialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData(buffer_arg) {
|
|
411
|
+
return multitenant_pb.GetSiteIdsWithIntegrationData.deserializeBinary(new Uint8Array(buffer_arg));
|
|
412
|
+
}
|
|
413
|
+
|
|
381
414
|
function serialize_lansweeper_multitenant_v1_GetSiteSubscriptionRequest(arg) {
|
|
382
415
|
if (!(arg instanceof multitenant_pb.GetSiteSubscriptionRequest)) {
|
|
383
416
|
throw new Error('Expected argument of type lansweeper.multitenant.v1.GetSiteSubscriptionRequest');
|
|
@@ -996,6 +1029,28 @@ var MultitenantService = exports.MultitenantService = {
|
|
|
996
1029
|
responseSerialize: serialize_lansweeper_multitenant_v1_GetSiteSubscriptionResponse,
|
|
997
1030
|
responseDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteSubscriptionResponse,
|
|
998
1031
|
},
|
|
1032
|
+
createLinkingCode: {
|
|
1033
|
+
path: '/lansweeper.multitenant.v1.Multitenant/CreateLinkingCode',
|
|
1034
|
+
requestStream: false,
|
|
1035
|
+
responseStream: false,
|
|
1036
|
+
requestType: multitenant_pb.CreateLinkingCodeRequest,
|
|
1037
|
+
responseType: multitenant_pb.CreateLinkingCodeResponse,
|
|
1038
|
+
requestSerialize: serialize_lansweeper_multitenant_v1_CreateLinkingCodeRequest,
|
|
1039
|
+
requestDeserialize: deserialize_lansweeper_multitenant_v1_CreateLinkingCodeRequest,
|
|
1040
|
+
responseSerialize: serialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse,
|
|
1041
|
+
responseDeserialize: deserialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse,
|
|
1042
|
+
},
|
|
1043
|
+
getSiteIdsWithIntegrationBySiteId: {
|
|
1044
|
+
path: '/lansweeper.multitenant.v1.Multitenant/GetSiteIdsWithIntegrationBySiteId',
|
|
1045
|
+
requestStream: false,
|
|
1046
|
+
responseStream: false,
|
|
1047
|
+
requestType: multitenant_pb.GetSiteIdsWithIntegrationData,
|
|
1048
|
+
responseType: multitenant_pb.GetSiteIdsWithIntegrationData,
|
|
1049
|
+
requestSerialize: serialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData,
|
|
1050
|
+
requestDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData,
|
|
1051
|
+
responseSerialize: serialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData,
|
|
1052
|
+
responseDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData,
|
|
1053
|
+
},
|
|
999
1054
|
};
|
|
1000
1055
|
|
|
1001
1056
|
exports.MultitenantClient = grpc.makeGenericClientConstructor(MultitenantService);
|
|
@@ -1976,6 +1976,71 @@ export namespace GetSiteSubscriptionResponse {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
1978
|
|
|
1979
|
+
export class CreateLinkingCodeRequest extends jspb.Message {
|
|
1980
|
+
getSiteId(): string;
|
|
1981
|
+
setSiteId(value: string): CreateLinkingCodeRequest;
|
|
1982
|
+
getAccountId(): string;
|
|
1983
|
+
setAccountId(value: string): CreateLinkingCodeRequest;
|
|
1984
|
+
|
|
1985
|
+
serializeBinary(): Uint8Array;
|
|
1986
|
+
toObject(includeInstance?: boolean): CreateLinkingCodeRequest.AsObject;
|
|
1987
|
+
static toObject(includeInstance: boolean, msg: CreateLinkingCodeRequest): CreateLinkingCodeRequest.AsObject;
|
|
1988
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1989
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1990
|
+
static serializeBinaryToWriter(message: CreateLinkingCodeRequest, writer: jspb.BinaryWriter): void;
|
|
1991
|
+
static deserializeBinary(bytes: Uint8Array): CreateLinkingCodeRequest;
|
|
1992
|
+
static deserializeBinaryFromReader(message: CreateLinkingCodeRequest, reader: jspb.BinaryReader): CreateLinkingCodeRequest;
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
export namespace CreateLinkingCodeRequest {
|
|
1996
|
+
export type AsObject = {
|
|
1997
|
+
siteId: string,
|
|
1998
|
+
accountId: string,
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
export class CreateLinkingCodeResponse extends jspb.Message {
|
|
2003
|
+
getCode(): string;
|
|
2004
|
+
setCode(value: string): CreateLinkingCodeResponse;
|
|
2005
|
+
|
|
2006
|
+
serializeBinary(): Uint8Array;
|
|
2007
|
+
toObject(includeInstance?: boolean): CreateLinkingCodeResponse.AsObject;
|
|
2008
|
+
static toObject(includeInstance: boolean, msg: CreateLinkingCodeResponse): CreateLinkingCodeResponse.AsObject;
|
|
2009
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2010
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2011
|
+
static serializeBinaryToWriter(message: CreateLinkingCodeResponse, writer: jspb.BinaryWriter): void;
|
|
2012
|
+
static deserializeBinary(bytes: Uint8Array): CreateLinkingCodeResponse;
|
|
2013
|
+
static deserializeBinaryFromReader(message: CreateLinkingCodeResponse, reader: jspb.BinaryReader): CreateLinkingCodeResponse;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
export namespace CreateLinkingCodeResponse {
|
|
2017
|
+
export type AsObject = {
|
|
2018
|
+
code: string,
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
export class GetSiteIdsWithIntegrationData extends jspb.Message {
|
|
2023
|
+
clearSiteIdsList(): void;
|
|
2024
|
+
getSiteIdsList(): Array<string>;
|
|
2025
|
+
setSiteIdsList(value: Array<string>): GetSiteIdsWithIntegrationData;
|
|
2026
|
+
addSiteIds(value: string, index?: number): string;
|
|
2027
|
+
|
|
2028
|
+
serializeBinary(): Uint8Array;
|
|
2029
|
+
toObject(includeInstance?: boolean): GetSiteIdsWithIntegrationData.AsObject;
|
|
2030
|
+
static toObject(includeInstance: boolean, msg: GetSiteIdsWithIntegrationData): GetSiteIdsWithIntegrationData.AsObject;
|
|
2031
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2032
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2033
|
+
static serializeBinaryToWriter(message: GetSiteIdsWithIntegrationData, writer: jspb.BinaryWriter): void;
|
|
2034
|
+
static deserializeBinary(bytes: Uint8Array): GetSiteIdsWithIntegrationData;
|
|
2035
|
+
static deserializeBinaryFromReader(message: GetSiteIdsWithIntegrationData, reader: jspb.BinaryReader): GetSiteIdsWithIntegrationData;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
export namespace GetSiteIdsWithIntegrationData {
|
|
2039
|
+
export type AsObject = {
|
|
2040
|
+
siteIdsList: Array<string>,
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
|
|
1979
2044
|
export enum SiteMode {
|
|
1980
2045
|
UNESPECIFIED = 0,
|
|
1981
2046
|
CLOUD_NATIVE = 1,
|