@lansweeper/multitenant-api-grpc 0.4.78 → 0.4.80
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 +17 -0
- package/gen-proto/multitenant_grpc_pb.js +33 -0
- package/gen-proto/multitenant_pb.d.ts +46 -0
- package/gen-proto/multitenant_pb.js +365 -1
- package/generated-go/multitenant.pb.go +1207 -1047
- package/generated-go/multitenant_grpc.pb.go +38 -0
- package/package.json +2 -2
- package/proto/multitenant.proto +11 -0
|
@@ -71,6 +71,7 @@ const (
|
|
|
71
71
|
Multitenant_GetSites_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSites"
|
|
72
72
|
Multitenant_CreateOwnerPersonalAccessToken_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CreateOwnerPersonalAccessToken"
|
|
73
73
|
Multitenant_GetInstallationSettings_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetInstallationSettings"
|
|
74
|
+
Multitenant_CreateFlowBuilderBotAccount_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CreateFlowBuilderBotAccount"
|
|
74
75
|
)
|
|
75
76
|
|
|
76
77
|
// MultitenantClient is the client API for Multitenant service.
|
|
@@ -129,6 +130,7 @@ type MultitenantClient interface {
|
|
|
129
130
|
GetSites(ctx context.Context, in *GetSitesRequest, opts ...grpc.CallOption) (*GetSitesResponse, error)
|
|
130
131
|
CreateOwnerPersonalAccessToken(ctx context.Context, in *CreateOwnerPersonalAccessTokenRequest, opts ...grpc.CallOption) (*CreateOwnerPersonalAccessTokenResponse, error)
|
|
131
132
|
GetInstallationSettings(ctx context.Context, in *GetInstallationSettingsRequest, opts ...grpc.CallOption) (*GetInstallationSettingsResponse, error)
|
|
133
|
+
CreateFlowBuilderBotAccount(ctx context.Context, in *CreateFlowBuilderBotAccountRequest, opts ...grpc.CallOption) (*CreateFlowBuilderBotAccountResponse, error)
|
|
132
134
|
}
|
|
133
135
|
|
|
134
136
|
type multitenantClient struct {
|
|
@@ -650,6 +652,16 @@ func (c *multitenantClient) GetInstallationSettings(ctx context.Context, in *Get
|
|
|
650
652
|
return out, nil
|
|
651
653
|
}
|
|
652
654
|
|
|
655
|
+
func (c *multitenantClient) CreateFlowBuilderBotAccount(ctx context.Context, in *CreateFlowBuilderBotAccountRequest, opts ...grpc.CallOption) (*CreateFlowBuilderBotAccountResponse, error) {
|
|
656
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
657
|
+
out := new(CreateFlowBuilderBotAccountResponse)
|
|
658
|
+
err := c.cc.Invoke(ctx, Multitenant_CreateFlowBuilderBotAccount_FullMethodName, in, out, cOpts...)
|
|
659
|
+
if err != nil {
|
|
660
|
+
return nil, err
|
|
661
|
+
}
|
|
662
|
+
return out, nil
|
|
663
|
+
}
|
|
664
|
+
|
|
653
665
|
// MultitenantServer is the server API for Multitenant service.
|
|
654
666
|
// All implementations must embed UnimplementedMultitenantServer
|
|
655
667
|
// for forward compatibility
|
|
@@ -706,6 +718,7 @@ type MultitenantServer interface {
|
|
|
706
718
|
GetSites(context.Context, *GetSitesRequest) (*GetSitesResponse, error)
|
|
707
719
|
CreateOwnerPersonalAccessToken(context.Context, *CreateOwnerPersonalAccessTokenRequest) (*CreateOwnerPersonalAccessTokenResponse, error)
|
|
708
720
|
GetInstallationSettings(context.Context, *GetInstallationSettingsRequest) (*GetInstallationSettingsResponse, error)
|
|
721
|
+
CreateFlowBuilderBotAccount(context.Context, *CreateFlowBuilderBotAccountRequest) (*CreateFlowBuilderBotAccountResponse, error)
|
|
709
722
|
mustEmbedUnimplementedMultitenantServer()
|
|
710
723
|
}
|
|
711
724
|
|
|
@@ -866,6 +879,9 @@ func (UnimplementedMultitenantServer) CreateOwnerPersonalAccessToken(context.Con
|
|
|
866
879
|
func (UnimplementedMultitenantServer) GetInstallationSettings(context.Context, *GetInstallationSettingsRequest) (*GetInstallationSettingsResponse, error) {
|
|
867
880
|
return nil, status.Errorf(codes.Unimplemented, "method GetInstallationSettings not implemented")
|
|
868
881
|
}
|
|
882
|
+
func (UnimplementedMultitenantServer) CreateFlowBuilderBotAccount(context.Context, *CreateFlowBuilderBotAccountRequest) (*CreateFlowBuilderBotAccountResponse, error) {
|
|
883
|
+
return nil, status.Errorf(codes.Unimplemented, "method CreateFlowBuilderBotAccount not implemented")
|
|
884
|
+
}
|
|
869
885
|
func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
|
|
870
886
|
|
|
871
887
|
// UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -1797,6 +1813,24 @@ func _Multitenant_GetInstallationSettings_Handler(srv interface{}, ctx context.C
|
|
|
1797
1813
|
return interceptor(ctx, in, info, handler)
|
|
1798
1814
|
}
|
|
1799
1815
|
|
|
1816
|
+
func _Multitenant_CreateFlowBuilderBotAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1817
|
+
in := new(CreateFlowBuilderBotAccountRequest)
|
|
1818
|
+
if err := dec(in); err != nil {
|
|
1819
|
+
return nil, err
|
|
1820
|
+
}
|
|
1821
|
+
if interceptor == nil {
|
|
1822
|
+
return srv.(MultitenantServer).CreateFlowBuilderBotAccount(ctx, in)
|
|
1823
|
+
}
|
|
1824
|
+
info := &grpc.UnaryServerInfo{
|
|
1825
|
+
Server: srv,
|
|
1826
|
+
FullMethod: Multitenant_CreateFlowBuilderBotAccount_FullMethodName,
|
|
1827
|
+
}
|
|
1828
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1829
|
+
return srv.(MultitenantServer).CreateFlowBuilderBotAccount(ctx, req.(*CreateFlowBuilderBotAccountRequest))
|
|
1830
|
+
}
|
|
1831
|
+
return interceptor(ctx, in, info, handler)
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1800
1834
|
// Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
|
|
1801
1835
|
// It's only intended for direct use with grpc.RegisterService,
|
|
1802
1836
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -2008,6 +2042,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
|
|
|
2008
2042
|
MethodName: "GetInstallationSettings",
|
|
2009
2043
|
Handler: _Multitenant_GetInstallationSettings_Handler,
|
|
2010
2044
|
},
|
|
2045
|
+
{
|
|
2046
|
+
MethodName: "CreateFlowBuilderBotAccount",
|
|
2047
|
+
Handler: _Multitenant_CreateFlowBuilderBotAccount_Handler,
|
|
2048
|
+
},
|
|
2011
2049
|
},
|
|
2012
2050
|
Streams: []grpc.StreamDesc{},
|
|
2013
2051
|
Metadata: "multitenant.proto",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/multitenant-api-grpc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.80",
|
|
4
4
|
"description": "Multitenant grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"prepublishOnly": "cp -r ../../shared/limits ./proto"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "d213da810d32618ac418f273585f36e63d981c0d"
|
|
22
22
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -309,6 +309,7 @@ message GetUserPermissionsResponse {
|
|
|
309
309
|
}
|
|
310
310
|
message ValidateApplicationPersonalAccessTokenRequest {
|
|
311
311
|
string personal_access_token = 1;
|
|
312
|
+
string trace_id = 2;
|
|
312
313
|
}
|
|
313
314
|
message ValidateApplicationPersonalAccessTokenResponse {
|
|
314
315
|
string user_id = 1;
|
|
@@ -636,6 +637,15 @@ message GetInstallationSettingsResponse {
|
|
|
636
637
|
string digitalLicenseToken = 1;
|
|
637
638
|
}
|
|
638
639
|
|
|
640
|
+
message CreateFlowBuilderBotAccountRequest {
|
|
641
|
+
string trace_id = 1;
|
|
642
|
+
string site_id = 2;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
message CreateFlowBuilderBotAccountResponse {
|
|
646
|
+
string account_id = 1;
|
|
647
|
+
}
|
|
648
|
+
|
|
639
649
|
service Multitenant {
|
|
640
650
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
641
651
|
rpc CheckAccessToSiteByClientId(CheckAccessToSiteByClientIdRequest) returns (CheckAccessToSiteByClientIdResponse) {}
|
|
@@ -691,4 +701,5 @@ service Multitenant {
|
|
|
691
701
|
rpc GetSites(GetSitesRequest) returns (GetSitesResponse) {}
|
|
692
702
|
rpc CreateOwnerPersonalAccessToken(CreateOwnerPersonalAccessTokenRequest) returns (CreateOwnerPersonalAccessTokenResponse) {}
|
|
693
703
|
rpc GetInstallationSettings(GetInstallationSettingsRequest) returns (GetInstallationSettingsResponse) {}
|
|
704
|
+
rpc CreateFlowBuilderBotAccount(CreateFlowBuilderBotAccountRequest) returns (CreateFlowBuilderBotAccountResponse) {}
|
|
694
705
|
}
|