@lansweeper/multitenant-api-grpc 0.4.37 → 0.4.39

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.
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2
2
  // versions:
3
3
  // - protoc-gen-go-grpc v1.3.0
4
- // - protoc v3.15.6
4
+ // - protoc v3.19.1
5
5
  // source: multitenant.proto
6
6
 
7
7
  package generated_go
@@ -54,6 +54,7 @@ const (
54
54
  Multitenant_GetSiteIdsWithIntegrationBySiteId_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteIdsWithIntegrationBySiteId"
55
55
  Multitenant_CheckStandardizedSoftwareEnabled_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/CheckStandardizedSoftwareEnabled"
56
56
  Multitenant_UpdateSiteMetadata_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/UpdateSiteMetadata"
57
+ Multitenant_GetSiteLimits_FullMethodName = "/lansweeper.multitenant.v1.Multitenant/GetSiteLimits"
57
58
  )
58
59
 
59
60
  // MultitenantClient is the client API for Multitenant service.
@@ -96,6 +97,7 @@ type MultitenantClient interface {
96
97
  GetSiteIdsWithIntegrationBySiteId(ctx context.Context, in *GetSiteIdsWithIntegrationData, opts ...grpc.CallOption) (*GetSiteIdsWithIntegrationData, error)
97
98
  CheckStandardizedSoftwareEnabled(ctx context.Context, in *CheckStandardizedSoftwareEnabledRequest, opts ...grpc.CallOption) (*CheckStandardizedSoftwareEnabledResponse, error)
98
99
  UpdateSiteMetadata(ctx context.Context, in *UpdateSiteMetadataRequest, opts ...grpc.CallOption) (*UpdateSiteMetadataResponse, error)
100
+ GetSiteLimits(ctx context.Context, in *GetSiteLimitsRequest, opts ...grpc.CallOption) (*GetSiteLimitsResponse, error)
99
101
  }
100
102
 
101
103
  type multitenantClient struct {
@@ -422,6 +424,15 @@ func (c *multitenantClient) UpdateSiteMetadata(ctx context.Context, in *UpdateSi
422
424
  return out, nil
423
425
  }
424
426
 
427
+ func (c *multitenantClient) GetSiteLimits(ctx context.Context, in *GetSiteLimitsRequest, opts ...grpc.CallOption) (*GetSiteLimitsResponse, error) {
428
+ out := new(GetSiteLimitsResponse)
429
+ err := c.cc.Invoke(ctx, Multitenant_GetSiteLimits_FullMethodName, in, out, opts...)
430
+ if err != nil {
431
+ return nil, err
432
+ }
433
+ return out, nil
434
+ }
435
+
425
436
  // MultitenantServer is the server API for Multitenant service.
426
437
  // All implementations must embed UnimplementedMultitenantServer
427
438
  // for forward compatibility
@@ -462,6 +473,7 @@ type MultitenantServer interface {
462
473
  GetSiteIdsWithIntegrationBySiteId(context.Context, *GetSiteIdsWithIntegrationData) (*GetSiteIdsWithIntegrationData, error)
463
474
  CheckStandardizedSoftwareEnabled(context.Context, *CheckStandardizedSoftwareEnabledRequest) (*CheckStandardizedSoftwareEnabledResponse, error)
464
475
  UpdateSiteMetadata(context.Context, *UpdateSiteMetadataRequest) (*UpdateSiteMetadataResponse, error)
476
+ GetSiteLimits(context.Context, *GetSiteLimitsRequest) (*GetSiteLimitsResponse, error)
465
477
  mustEmbedUnimplementedMultitenantServer()
466
478
  }
467
479
 
@@ -574,6 +586,9 @@ func (UnimplementedMultitenantServer) CheckStandardizedSoftwareEnabled(context.C
574
586
  func (UnimplementedMultitenantServer) UpdateSiteMetadata(context.Context, *UpdateSiteMetadataRequest) (*UpdateSiteMetadataResponse, error) {
575
587
  return nil, status.Errorf(codes.Unimplemented, "method UpdateSiteMetadata not implemented")
576
588
  }
589
+ func (UnimplementedMultitenantServer) GetSiteLimits(context.Context, *GetSiteLimitsRequest) (*GetSiteLimitsResponse, error) {
590
+ return nil, status.Errorf(codes.Unimplemented, "method GetSiteLimits not implemented")
591
+ }
577
592
  func (UnimplementedMultitenantServer) mustEmbedUnimplementedMultitenantServer() {}
578
593
 
579
594
  // UnsafeMultitenantServer may be embedded to opt out of forward compatibility for this service.
@@ -1217,6 +1232,24 @@ func _Multitenant_UpdateSiteMetadata_Handler(srv interface{}, ctx context.Contex
1217
1232
  return interceptor(ctx, in, info, handler)
1218
1233
  }
1219
1234
 
1235
+ func _Multitenant_GetSiteLimits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1236
+ in := new(GetSiteLimitsRequest)
1237
+ if err := dec(in); err != nil {
1238
+ return nil, err
1239
+ }
1240
+ if interceptor == nil {
1241
+ return srv.(MultitenantServer).GetSiteLimits(ctx, in)
1242
+ }
1243
+ info := &grpc.UnaryServerInfo{
1244
+ Server: srv,
1245
+ FullMethod: Multitenant_GetSiteLimits_FullMethodName,
1246
+ }
1247
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1248
+ return srv.(MultitenantServer).GetSiteLimits(ctx, req.(*GetSiteLimitsRequest))
1249
+ }
1250
+ return interceptor(ctx, in, info, handler)
1251
+ }
1252
+
1220
1253
  // Multitenant_ServiceDesc is the grpc.ServiceDesc for Multitenant service.
1221
1254
  // It's only intended for direct use with grpc.RegisterService,
1222
1255
  // and not to be introspected or modified (even as a copy)
@@ -1364,6 +1397,10 @@ var Multitenant_ServiceDesc = grpc.ServiceDesc{
1364
1397
  MethodName: "UpdateSiteMetadata",
1365
1398
  Handler: _Multitenant_UpdateSiteMetadata_Handler,
1366
1399
  },
1400
+ {
1401
+ MethodName: "GetSiteLimits",
1402
+ Handler: _Multitenant_GetSiteLimits_Handler,
1403
+ },
1367
1404
  },
1368
1405
  Streams: []grpc.StreamDesc{},
1369
1406
  Metadata: "multitenant.proto",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/multitenant-api-grpc",
3
- "version": "0.4.37",
3
+ "version": "0.4.39",
4
4
  "description": "Multitenant grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -15,5 +15,8 @@
15
15
  "peerDependencies": {
16
16
  "@grpc/grpc-js": "^1.6.2"
17
17
  },
18
- "gitHead": "9f9d656adfeb3e1733e3c516a6fbd233df9dfaa9"
18
+ "scripts": {
19
+ "prepublishOnly": "cp -r ../../shared/limits ./proto"
20
+ },
21
+ "gitHead": "e636ecdcfb704f7130cfa3e75bd763e055b6b4a5"
19
22
  }
@@ -0,0 +1,29 @@
1
+ syntax = "proto3";
2
+
3
+ package lansweeper.shared.limits.v1;
4
+ option go_package = "github.com/Lansweeper/lansweeperapis/packages/shared/generated-go;limits";
5
+
6
+
7
+ enum SiteLimitsTiers {
8
+ SUBSCRIPTION_TYPE_VALUE_STARTER = 0;
9
+ SUBSCRIPTION_TYPE_VALUE_PRO = 1;
10
+ SUBSCRIPTION_TYPE_VALUE_ENTERPRISE = 2;
11
+ }
12
+
13
+ enum RiskInsightsSeverity {
14
+ RISK_INSIGHT_SEVERITY_LOW = 0;
15
+ RISK_INSIGHT_SEVERITY_MEDIUM = 1;
16
+ RISK_INSIGHT_SEVERITY_HIGH = 2;
17
+ RISK_INSIGHT_SEVERITY_CRITICAL = 3;
18
+ }
19
+
20
+ message CalculateRiskInsights {
21
+ optional string from_year = 1;
22
+ optional RiskInsightsSeverity from_severity = 2;
23
+ optional int32 max = 3;
24
+ }
25
+
26
+ message SiteLimits {
27
+ SiteLimitsTiers tier = 1;
28
+ optional CalculateRiskInsights calculate_risk_insights = 2;
29
+ }
@@ -1,9 +1,9 @@
1
1
  syntax = "proto3";
2
-
3
2
  package lansweeper.multitenant.v1;
4
-
5
3
  option go_package = "./generated-go";
6
4
 
5
+ import "limits/limits.proto";
6
+
7
7
  message PreviewAccount {
8
8
  string id = 1;
9
9
  string username = 2;
@@ -12,16 +12,12 @@ message PreviewAccount {
12
12
  string email = 5;
13
13
  string image_url = 6;
14
14
  }
15
-
16
15
  message GetPreviewAccountByIdRequest {
17
16
  string id = 1;
18
17
  }
19
-
20
18
  message GetPreviewAccountByIdResponse {
21
19
  PreviewAccount account = 1;
22
20
  }
23
-
24
-
25
21
  enum SiteMode {
26
22
  UNESPECIFIED = 0;
27
23
  CLOUD_NATIVE = 1;
@@ -29,7 +25,6 @@ enum SiteMode {
29
25
  HYBRID = 3;
30
26
  DUAL = 4;
31
27
  }
32
-
33
28
  message PreviewSite {
34
29
  string id = 1;
35
30
  string name = 2;
@@ -38,42 +33,33 @@ message PreviewSite {
38
33
  SiteMode mode = 5;
39
34
  PreviewAccount created_by = 6;
40
35
  }
41
-
42
-
43
36
  message PatchSiteModeRequest {
44
37
  string id = 1;
45
38
  SiteMode mode = 2;
46
39
  }
47
-
48
40
  message PatchSiteModeResponse {
49
41
  bool success = 1;
50
42
  }
51
-
52
43
  message Profile {
53
44
  string id = 1;
54
45
  string site_id = 2;
55
46
  PreviewSite site = 3;
56
47
  bool is_owner = 4;
57
48
  }
58
-
59
49
  message ListProfilesByAccountIdRequest{
60
50
  string account_id = 1;
61
51
  bool include_blocks = 2;
62
52
  }
63
-
64
53
  message ListProfilesByAccountIdResponse {
65
54
  repeated Profile profile = 1;
66
55
  }
67
-
68
56
  message ListAuthorizedLinkProfilesRequest {
69
57
  string account_id = 1;
70
58
  bool include_blocks = 2 [deprecated = true];
71
59
  }
72
-
73
60
  message ListAuthorizedLinkProfilesResponse {
74
61
  repeated Profile profile = 1;
75
62
  }
76
-
77
63
  message CheckAccessToSiteByAccountIdRequest {
78
64
  string account_id = 1;
79
65
  string site_id = 2;
@@ -84,26 +70,21 @@ message CheckAccessToSiteByAccountIdRequest {
84
70
  }
85
71
  UserInfo user_info = 4;
86
72
  }
87
-
88
73
  message CheckAccessToSiteByAccountIdResponse {
89
74
  bool access = 1;
90
75
  }
91
-
92
76
  message CheckAccessToSiteByClientIdRequest {
93
77
  string client_id = 1;
94
78
  string site_id = 2;
95
79
  }
96
-
97
80
  message CheckAccessToSiteByClientIdResponse {
98
81
  bool access = 1;
99
82
  }
100
-
101
83
  enum InstallStateValue {
102
84
  INSTALL_STATE_VALUE_UNESPECIFIED = 0;
103
85
  INSTALL_STATE_VALUE_SYNC = 1;
104
86
  INSTALL_STATE_VALUE_UNSYNC = 2;
105
87
  }
106
-
107
88
  message Install {
108
89
  string id = 1;
109
90
  string site_id = 2;
@@ -113,7 +94,6 @@ message Install {
113
94
  string fqdn = 6;
114
95
  string created_by_id = 7;
115
96
  string global_id = 8;
116
-
117
97
  message InstallState {
118
98
  InstallStateValue value = 1;
119
99
  }
@@ -123,34 +103,27 @@ message Install {
123
103
  string type = 12 [deprecated = true];
124
104
  InstallType install_type = 13;
125
105
  }
126
-
127
106
  message InstallCredentials {
128
107
  string client_id = 1;
129
108
  string client_secret = 2;
130
109
  }
131
-
132
110
  message GetInstallsCountBySiteRequest {
133
111
  string site_id = 1;
134
112
  }
135
-
136
113
  message GetInstallsCountResponse {
137
114
  int64 count = 1;
138
115
  }
139
-
140
116
  message GetInstallsByIdRequest {
141
117
  repeated string install_ids = 1;
142
118
  }
143
-
144
119
  message GetInstallsByIdResponse {
145
120
  repeated Install install = 1;
146
121
  }
147
-
148
122
  message NullableInstallType {
149
123
  oneof kind {
150
124
  InstallType data = 1;
151
125
  }
152
126
  }
153
-
154
127
  message GetInstallsBySiteRequest {
155
128
  string site_id = 1;
156
129
  message Filter {
@@ -160,19 +133,15 @@ message GetInstallsBySiteRequest {
160
133
  }
161
134
  Filter filter = 2;
162
135
  }
163
-
164
136
  message GetInstallsBySiteResponse {
165
137
  repeated Install install = 1;
166
138
  }
167
-
168
139
  message GetInstallbyClientIdRequest {
169
140
  string client_id = 1;
170
141
  }
171
-
172
142
  message GetInstallbyClientIdResponse {
173
143
  Install install = 1;
174
144
  }
175
-
176
145
  message CreateInstallRequest{
177
146
  reserved 2;
178
147
  string site_id = 1;
@@ -186,21 +155,17 @@ message CreateInstallRequest{
186
155
  string global_id = 9;
187
156
  InstallType type = 10;
188
157
  string client_id = 11;
189
-
190
158
  }
191
-
192
159
  enum InstallType {
193
160
  IT=0;
194
161
  OT=1;
195
162
  IT_AGENT=2;
196
163
  CLOUD=3;
197
164
  }
198
-
199
165
  message CreateInstallResponse{
200
166
  Install install = 1;
201
167
  InstallCredentials credentials = 2;
202
168
  }
203
-
204
169
  message CreateAndLinkInstallRequest{
205
170
  string site_id = 1;
206
171
  string display_name = 2;
@@ -211,57 +176,47 @@ message CreateAndLinkInstallRequest{
211
176
  string client_id = 7;
212
177
  string external_id = 8;
213
178
  }
214
-
215
179
  message CreateAndLinkInstallResponse{
216
180
  Install install = 1;
217
181
  InstallCredentials credentials = 2;
218
182
  string license = 3;
219
183
  }
220
-
221
184
  message UpdateInstallByClientIdRequest{
222
185
  string client_id = 1;
223
186
  string display_name = 2;
224
187
  string description = 3;
225
188
  string status = 4;
226
189
  string fqdn = 5;
227
-
228
190
  message SyncerSettings {
229
191
  string send_changed_data_timeout = 1;
230
192
  string send_fast_changing_data_timeout = 2;
231
193
  string send_non_changed_data_timeout = 3;
232
194
  string sync_interval_in_seconds = 4;
233
195
  }
234
-
235
196
  SyncerSettings syncer_settings = 6;
236
197
  }
237
-
238
198
  message UpdateInstallByClientIdResponse{
239
199
  Install install = 1;
240
200
  }
241
-
242
201
  message RotateInstallByClientIdRequest{
243
202
  string client_id = 1;
244
203
  string track_id = 2;
245
204
  }
246
-
247
205
  message RotateInstallByClientIdResponse {
248
206
  bool success = 1;
249
207
  string site_id = 2;
250
208
  string old_install_id = 3;
251
209
  string new_install_id = 4;
252
210
  }
253
-
254
211
  message UnlinkInstallByClientIdRequest {
255
212
  string client_id = 1;
256
213
  string track_id = 2;
257
214
  bool remove_data = 3;
258
215
  bool from_onprem = 4;
259
216
  }
260
-
261
217
  message UnlinkInstallByClientIdResponse {
262
218
  bool success = 1;
263
219
  }
264
-
265
220
  message LinkTrialInstallByClientIdRequest {
266
221
  string client_id = 1;
267
222
  string display_name = 2;
@@ -269,20 +224,17 @@ message LinkTrialInstallByClientIdRequest {
269
224
  string global_id = 4;
270
225
  InstallType type = 5;
271
226
  }
272
-
273
227
  message LinkTrialInstallByClientIdResponse {
274
228
  Install install = 1;
275
229
  InstallCredentials credentials = 2;
276
230
  PreviewSite site = 3;
277
231
  string license = 4;
278
232
  }
279
-
280
233
  message RemoveInstallDataBySiteIdRequest {
281
234
  string site_id = 1;
282
235
  repeated string install_ids = 2;
283
236
  string user_id = 3;
284
237
  }
285
-
286
238
  message RemoveInstallDataBySiteIdResponse {
287
239
  message Result {
288
240
  string install_id = 1;
@@ -290,50 +242,40 @@ message RemoveInstallDataBySiteIdResponse {
290
242
  }
291
243
  repeated Result result = 1;
292
244
  }
293
-
294
245
  message GetDuplicatedInstallsByGlobalIdRequest {
295
246
  string site_id = 1;
296
247
  string global_id = 2;
297
248
  }
298
-
299
249
  message GetDuplicatedInstallsByGlobalIdResponse {
300
250
  repeated Install install = 1;
301
251
  }
302
-
303
252
  message GetUserPermissionsRequest {
304
253
  string site_id = 1;
305
254
  string account_id = 2;
306
255
  }
307
-
308
256
  message GetUserPermissionsResponse {
309
257
  message AuthorizationAction {
310
258
  string key = 1;
311
259
  bytes derived_permissions = 2;
312
260
  }
313
-
314
261
  message Scope {
315
262
  string id = 1;
316
263
  }
317
-
318
264
  message Role {
319
265
  string id = 1;
320
266
  repeated AuthorizationAction actions = 2;
321
267
  repeated Install installations = 3;
322
268
  repeated Scope scopes = 4;
323
269
  }
324
-
325
270
  repeated Role roles = 1;
326
271
  }
327
-
328
272
  message ValidateApplicationPersonalAccessTokenRequest {
329
273
  string personal_access_token = 1;
330
274
  }
331
-
332
275
  message ValidateApplicationPersonalAccessTokenResponse {
333
276
  string user_id = 1;
334
277
  string application_id = 2;
335
278
  }
336
-
337
279
  message DisableWebhookEmailRequest {
338
280
  string application_name = 1;
339
281
  string email = 2 [deprecated = true];
@@ -352,41 +294,32 @@ message DisableWebhookEmailRequest {
352
294
  string webhook_id = 7;
353
295
  string application_id = 8;
354
296
  }
355
-
356
297
  message DisableWebhookEmailResponse {
357
298
  bool mail_sent = 1;
358
299
  }
359
-
360
300
  message Site {
361
301
  string id = 1;
362
302
  }
363
-
364
303
  message AuthorizedSitesRequest {
365
304
  string application_id = 1;
366
305
  string trace_id = 2;
367
306
  }
368
-
369
307
  message AuthorizedSitesResponse {
370
308
  repeated Site site = 1;
371
309
  }
372
-
373
310
  message GetAccountIdsBySiteIdRequest {
374
311
  string site_id = 1;
375
312
  }
376
-
377
313
  message GetAccountIdsBySiteIdResponse {
378
314
  repeated string account_ids = 1;
379
315
  }
380
-
381
316
  message CheckManagerInApplicationRequest {
382
317
  string application_id = 1;
383
318
  string manager_id = 2;
384
319
  }
385
-
386
320
  message CheckManagerInApplicationResponse {
387
321
  bool is_manager = 1;
388
322
  }
389
-
390
323
  enum SubscriptionType {
391
324
  SUBSCRIPTION_TYPE_VALUE_UNESPECIFIED = 0;
392
325
  SUBSCRIPTION_TYPE_VALUE_TRIAL = 1;
@@ -395,7 +328,6 @@ enum SubscriptionType {
395
328
  SUBSCRIPTION_TYPE_VALUE_PRO = 4;
396
329
  SUBSCRIPTION_TYPE_VALUE_ENTERPRISE = 5;
397
330
  }
398
-
399
331
  message Subscription {
400
332
  string id = 1;
401
333
  string site_id = 2;
@@ -405,7 +337,6 @@ message Subscription {
405
337
  string created_at = 6;
406
338
  string created_by = 7;
407
339
  }
408
-
409
340
  message UpdateSiteSubscriptionRequest {
410
341
  string site_id = 1;
411
342
  SubscriptionType type = 2;
@@ -413,167 +344,125 @@ message UpdateSiteSubscriptionRequest {
413
344
  string expiration_date = 4;
414
345
  string updated_by = 5;
415
346
  }
416
-
417
347
  message UpdateSiteSubscriptionResponse {
418
348
  Subscription subscription = 1;
419
349
  }
420
-
421
350
  message CreateTrialSiteAndInstallerRequest {
422
351
  string user_id = 1;
423
352
  }
424
-
425
353
  message CreateTrialSiteAndInstallerResponse {
426
354
  string installer_credentials = 1;
427
355
  }
428
-
429
356
  message GetInstallationLicenseByClientIdRequest {
430
357
  string client_id = 1;
431
358
  }
432
-
433
359
  message GetInstallationLicenseByClientIdResponse {
434
360
  string license = 1;
435
361
  }
436
-
437
362
  message AllProfileExistsRequest{
438
363
  option deprecated = true;
439
364
  string site_id = 1;
440
365
  repeated string emails = 2;
441
366
  }
442
-
443
367
  message AllProfileExistsResponse{
444
368
  option deprecated = true;
445
369
  bool all = 1;
446
370
  }
447
-
448
371
  message AllProfilesExistRequest{
449
372
  string site_id = 1;
450
373
  repeated string emails = 2;
451
374
  }
452
-
453
375
  message AllProfilesExistResponse{
454
376
  bool all = 1;
455
377
  repeated Profile profiles = 2;
456
378
  PreviewAccount createdBy = 3;
457
379
  }
458
-
459
-
460
380
  message SendInviteLocalUsersMailRequest{
461
381
  string site_id = 1;
462
382
  }
463
-
464
383
  message SendInviteLocalUsersMailResponse{
465
384
  bool sent = 1;
466
385
  }
467
-
468
386
  message GetSiteSubscriptionRequest {
469
387
  string site_id = 1;
470
388
  }
471
-
472
389
  message GetSiteSubscriptionResponse {
473
390
  SubscriptionType type = 1;
474
391
  }
475
-
476
392
  message CreateLinkingCodeRequest {
477
393
  string site_id = 1;
478
394
  string account_id = 2;
479
395
  }
480
-
481
396
  message CreateLinkingCodeResponse {
482
397
  string code = 1;
483
398
  }
484
-
485
399
  message GetSiteIdsWithIntegrationData {
486
- repeated string site_ids = 1;
400
+ repeated string site_ids = 1;
487
401
  }
488
-
489
402
  message CheckStandardizedSoftwareEnabledRequest {
490
403
  string site_id = 1;
491
404
  }
492
-
493
405
  message CheckStandardizedSoftwareEnabledResponse {
494
406
  bool is_enabled = 1;
495
407
  }
496
-
497
408
  message UpdateSiteMetadataRequest {
498
409
  string site_id = 1;
499
410
  string key = 2;
500
411
  string value = 3;
501
412
  }
502
-
503
413
  message UpdateSiteMetadataResponse {
504
414
  bool success = 1;
505
415
  }
506
416
 
417
+ message GetSiteLimitsRequest {
418
+ repeated string site_ids = 1;
419
+ }
420
+
421
+
422
+ message GetSiteLimitsResponse {
423
+ map<string, lansweeper.shared.limits.v1.SiteLimits> site_limits = 1;
424
+ }
425
+
507
426
  service Multitenant {
508
427
  rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
509
-
510
428
  rpc CheckAccessToSiteByClientId(CheckAccessToSiteByClientIdRequest) returns (CheckAccessToSiteByClientIdResponse) {}
511
-
512
429
  rpc GetPreviewAccountById(GetPreviewAccountByIdRequest) returns (GetPreviewAccountByIdResponse) {}
513
-
514
430
  rpc ListProfilesByAccountId(ListProfilesByAccountIdRequest) returns (ListProfilesByAccountIdResponse) {}
515
431
 
516
432
  rpc ListAuthorizedLinkProfiles(ListAuthorizedLinkProfilesRequest) returns (ListAuthorizedLinkProfilesResponse) {}
517
-
518
433
  rpc PatchSiteMode(PatchSiteModeRequest) returns (PatchSiteModeResponse) {}
519
-
520
434
  rpc CreateInstall(CreateInstallRequest) returns (CreateInstallResponse) {}
521
-
522
435
  rpc CreateAndLinkInstall(CreateAndLinkInstallRequest) returns (CreateAndLinkInstallResponse) {}
523
-
524
436
  rpc GetInstallsBySite(GetInstallsBySiteRequest) returns (GetInstallsBySiteResponse) {}
525
-
526
437
  rpc GetInstallsById(GetInstallsByIdRequest) returns (GetInstallsByIdResponse) {}
527
-
528
438
  rpc GetInstallsCountBySite(GetInstallsCountBySiteRequest) returns (GetInstallsCountResponse) {}
529
-
530
439
  rpc GetInstallbyClientId(GetInstallbyClientIdRequest) returns (GetInstallbyClientIdResponse) {}
531
-
532
440
  rpc UpdateInstallByClientId(UpdateInstallByClientIdRequest) returns (UpdateInstallByClientIdResponse) {}
533
-
534
441
  rpc RotateInstallByClientId(RotateInstallByClientIdRequest) returns (RotateInstallByClientIdResponse) {}
535
-
536
442
  rpc LinkTrialInstallByClientId(LinkTrialInstallByClientIdRequest) returns (LinkTrialInstallByClientIdResponse) {}
537
-
538
443
  rpc UnlinkInstallByClientId(UnlinkInstallByClientIdRequest) returns (UnlinkInstallByClientIdResponse) {}
539
-
540
444
  rpc RemoveInstallDataBySiteId(RemoveInstallDataBySiteIdRequest) returns (RemoveInstallDataBySiteIdResponse) {}
541
-
542
445
  rpc GetDuplicatedInstallsByGlobalId(GetDuplicatedInstallsByGlobalIdRequest) returns (GetDuplicatedInstallsByGlobalIdResponse) {}
543
-
544
446
  rpc GetUserPermissions(GetUserPermissionsRequest) returns (GetUserPermissionsResponse) {}
545
-
546
447
  rpc ValidateApplicationPersonalAccessToken(ValidateApplicationPersonalAccessTokenRequest) returns (ValidateApplicationPersonalAccessTokenResponse) {}
547
-
548
448
  rpc SendDisabledWebhookEmail(DisableWebhookEmailRequest) returns (DisableWebhookEmailResponse) {}
549
-
550
449
  rpc GetAuthorizedSitesByApplicationId(AuthorizedSitesRequest) returns (AuthorizedSitesResponse) {}
551
-
552
450
  rpc GetAccountIdsBySiteId(GetAccountIdsBySiteIdRequest) returns (GetAccountIdsBySiteIdResponse) {}
553
-
554
451
  rpc CheckManagerInApplication(CheckManagerInApplicationRequest) returns (CheckManagerInApplicationResponse) {}
555
-
556
452
  rpc UpdateSiteSubscription(UpdateSiteSubscriptionRequest) returns (UpdateSiteSubscriptionResponse) {}
557
-
558
453
  rpc CreateTrialSiteAndInstaller(CreateTrialSiteAndInstallerRequest) returns (CreateTrialSiteAndInstallerResponse) {}
559
-
560
454
  rpc GetInstallationLicenseByClientId(GetInstallationLicenseByClientIdRequest) returns (GetInstallationLicenseByClientIdResponse) {}
561
-
562
455
  rpc AllProfilesExist(AllProfilesExistRequest) returns (AllProfilesExistResponse) {}
563
456
 
564
457
  rpc SendInviteLocalUsersMail(SendInviteLocalUsersMailRequest) returns (SendInviteLocalUsersMailResponse) {}
565
-
566
458
  rpc AllProfileExists(AllProfileExistsRequest) returns (AllProfileExistsResponse) {
567
459
  option deprecated = true;
568
460
  }
569
-
570
461
  rpc GetSiteSubscription(GetSiteSubscriptionRequest) returns (GetSiteSubscriptionResponse) {}
571
-
572
462
  rpc CreateLinkingCode(CreateLinkingCodeRequest) returns (CreateLinkingCodeResponse) {}
573
-
574
463
  rpc GetSiteIdsWithIntegrationBySiteId(GetSiteIdsWithIntegrationData) returns (GetSiteIdsWithIntegrationData) {}
575
-
576
464
  rpc CheckStandardizedSoftwareEnabled(CheckStandardizedSoftwareEnabledRequest) returns (CheckStandardizedSoftwareEnabledResponse) {}
577
465
 
578
466
  rpc UpdateSiteMetadata(UpdateSiteMetadataRequest) returns (UpdateSiteMetadataResponse) {}
467
+ rpc GetSiteLimits(GetSiteLimitsRequest) returns (GetSiteLimitsResponse) {}
579
468
  }
package/protodeps.yaml ADDED
@@ -0,0 +1,4 @@
1
+ dependencies:
2
+ - root: packages/shared
3
+ importPaths:
4
+ - limits