@scalekit-sdk/node 2.0.0 → 2.1.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/jest.config.js +15 -0
- package/lib/core.d.ts +1 -1
- package/lib/core.js +31 -31
- package/lib/core.js.map +1 -1
- package/lib/errors/base-exception.d.ts +32 -0
- package/lib/errors/base-exception.js +238 -0
- package/lib/errors/base-exception.js.map +1 -0
- package/lib/errors/index.d.ts +2 -0
- package/lib/errors/index.js +20 -0
- package/lib/errors/index.js.map +1 -0
- package/lib/errors/specific-exceptions.d.ts +39 -0
- package/lib/errors/specific-exceptions.js +90 -0
- package/lib/errors/specific-exceptions.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +34 -87
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +31 -120
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +19 -10
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +18 -9
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +209 -6
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +272 -5
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +29 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +40 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +25 -0
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +38 -1
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +21 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +20 -0
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +110 -5
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +164 -5
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +48 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +47 -0
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +280 -4
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +449 -11
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
- package/lib/scalekit.d.ts +29 -8
- package/lib/scalekit.js +78 -28
- package/lib/scalekit.js.map +1 -1
- package/lib/types/scalekit.d.ts +5 -0
- package/lib/types/user.d.ts +1 -1
- package/lib/user.d.ts +10 -3
- package/lib/user.js +26 -5
- package/lib/user.js.map +1 -1
- package/package.json +6 -2
- package/src/core.ts +31 -32
- package/src/errors/base-exception.ts +262 -0
- package/src/errors/index.ts +3 -0
- package/src/errors/specific-exceptions.ts +88 -0
- package/src/index.ts +3 -1
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +49 -129
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +19 -10
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +377 -8
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +44 -0
- package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +49 -0
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +21 -1
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +218 -5
- package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +48 -1
- package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +558 -6
- package/src/scalekit.ts +95 -30
- package/src/types/scalekit.ts +6 -0
- package/src/types/user.ts +1 -1
- package/src/user.ts +34 -7
- package/tests/README.md +25 -0
- package/tests/connection.test.ts +42 -0
- package/tests/directory.test.ts +46 -0
- package/tests/organization.test.ts +65 -0
- package/tests/passwordless.test.ts +108 -0
- package/tests/scalekit.test.ts +104 -0
- package/tests/setup.ts +34 -0
- package/tests/users.test.ts +168 -0
- package/tests/utils/test-data.ts +248 -0
|
@@ -45,6 +45,11 @@ export class ErrorInfo extends Message<ErrorInfo> {
|
|
|
45
45
|
*/
|
|
46
46
|
validationErrorInfo?: ValidationErrorInfo;
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: optional scalekit.v1.errdetails.ToolErrorInfo tool_error_info = 9;
|
|
50
|
+
*/
|
|
51
|
+
toolErrorInfo?: ToolErrorInfo;
|
|
52
|
+
|
|
48
53
|
constructor(data?: PartialMessage<ErrorInfo>) {
|
|
49
54
|
super();
|
|
50
55
|
proto3.util.initPartial(data, this);
|
|
@@ -60,6 +65,7 @@ export class ErrorInfo extends Message<ErrorInfo> {
|
|
|
60
65
|
{ no: 5, name: "resource_info", kind: "message", T: ResourceInfo, opt: true },
|
|
61
66
|
{ no: 6, name: "request_info", kind: "message", T: RequestInfo, opt: true },
|
|
62
67
|
{ no: 8, name: "validation_error_info", kind: "message", T: ValidationErrorInfo, opt: true },
|
|
68
|
+
{ no: 9, name: "tool_error_info", kind: "message", T: ToolErrorInfo, opt: true },
|
|
63
69
|
]);
|
|
64
70
|
|
|
65
71
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ErrorInfo {
|
|
@@ -459,3 +465,46 @@ export class LocalizedMessageInfo extends Message<LocalizedMessageInfo> {
|
|
|
459
465
|
}
|
|
460
466
|
}
|
|
461
467
|
|
|
468
|
+
/**
|
|
469
|
+
* @generated from message scalekit.v1.errdetails.ToolErrorInfo
|
|
470
|
+
*/
|
|
471
|
+
export class ToolErrorInfo extends Message<ToolErrorInfo> {
|
|
472
|
+
/**
|
|
473
|
+
* @generated from field: string execution_id = 1;
|
|
474
|
+
*/
|
|
475
|
+
executionId = "";
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @generated from field: string tool_message = 2;
|
|
479
|
+
*/
|
|
480
|
+
toolMessage = "";
|
|
481
|
+
|
|
482
|
+
constructor(data?: PartialMessage<ToolErrorInfo>) {
|
|
483
|
+
super();
|
|
484
|
+
proto3.util.initPartial(data, this);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
488
|
+
static readonly typeName = "scalekit.v1.errdetails.ToolErrorInfo";
|
|
489
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
490
|
+
{ no: 1, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
491
|
+
{ no: 2, name: "tool_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
492
|
+
]);
|
|
493
|
+
|
|
494
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ToolErrorInfo {
|
|
495
|
+
return new ToolErrorInfo().fromBinary(bytes, options);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ToolErrorInfo {
|
|
499
|
+
return new ToolErrorInfo().fromJson(jsonValue, options);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ToolErrorInfo {
|
|
503
|
+
return new ToolErrorInfo().fromJsonString(jsonString, options);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
static equals(a: ToolErrorInfo | PlainMessage<ToolErrorInfo> | undefined, b: ToolErrorInfo | PlainMessage<ToolErrorInfo> | undefined): boolean {
|
|
507
|
+
return proto3.util.equals(ToolErrorInfo, a, b);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { CreateOrganizationRequest, CreateOrganizationResponse, CreateOrganizationSessionSettingsRequest, CreateOrganizationSessionSettingsResponse, DeleteOrganizationRequest, DeleteOrganizationSessionSettingsRequest, DeletePortalLinkByIdRequest, DeletePortalLinkRequest, GeneratePortalLinkRequest, GeneratePortalLinkResponse, GetOrganizationRequest, GetOrganizationResponse, GetOrganizationSessionSettingsRequest, GetOrganizationSessionSettingsResponse, GetPortalLinkRequest, GetPortalLinksResponse, ListOrganizationsRequest, ListOrganizationsResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateOrganizationSessionSettingsRequest, UpdateOrganizationSessionSettingsResponse, UpdateOrganizationSettingsRequest } from "./organizations_pb.js";
|
|
6
|
+
import { CreateOrganizationRequest, CreateOrganizationResponse, CreateOrganizationSessionSettingsRequest, CreateOrganizationSessionSettingsResponse, DeleteOrganizationRequest, DeleteOrganizationSessionSettingsRequest, DeletePortalLinkByIdRequest, DeletePortalLinkRequest, GeneratePortalLinkRequest, GeneratePortalLinkResponse, GetOrganizationRequest, GetOrganizationResponse, GetOrganizationSessionSettingsRequest, GetOrganizationSessionSettingsResponse, GetOrganizationUserManagementSettingsRequest, GetOrganizationUserManagementSettingsResponse, GetPortalLinkRequest, GetPortalLinksResponse, ListOrganizationsRequest, ListOrganizationsResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateOrganizationSessionSettingsRequest, UpdateOrganizationSessionSettingsResponse, UpdateOrganizationSettingsRequest, UpdateUserManagementSettingsRequest, UpdateUserManagementSettingsResponse } from "./organizations_pb.js";
|
|
7
7
|
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -153,6 +153,26 @@ export const OrganizationService = {
|
|
|
153
153
|
O: Empty,
|
|
154
154
|
kind: MethodKind.Unary,
|
|
155
155
|
},
|
|
156
|
+
/**
|
|
157
|
+
* Update user management setting for an organization
|
|
158
|
+
*
|
|
159
|
+
* @generated from rpc scalekit.v1.organizations.OrganizationService.UpdateUserManagementSettings
|
|
160
|
+
*/
|
|
161
|
+
updateUserManagementSettings: {
|
|
162
|
+
name: "UpdateUserManagementSettings",
|
|
163
|
+
I: UpdateUserManagementSettingsRequest,
|
|
164
|
+
O: UpdateUserManagementSettingsResponse,
|
|
165
|
+
kind: MethodKind.Unary,
|
|
166
|
+
},
|
|
167
|
+
/**
|
|
168
|
+
* @generated from rpc scalekit.v1.organizations.OrganizationService.GetOrganizationUserManagementSetting
|
|
169
|
+
*/
|
|
170
|
+
getOrganizationUserManagementSetting: {
|
|
171
|
+
name: "GetOrganizationUserManagementSetting",
|
|
172
|
+
I: GetOrganizationUserManagementSettingsRequest,
|
|
173
|
+
O: GetOrganizationUserManagementSettingsResponse,
|
|
174
|
+
kind: MethodKind.Unary,
|
|
175
|
+
},
|
|
156
176
|
}
|
|
157
177
|
} as const;
|
|
158
178
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
-
import { BoolValue, FieldMask, Int32Value, Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
7
|
+
import { BoolValue, FieldMask, Int32Value, Message, NullValue, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
8
8
|
import { RegionCode } from "../commons/commons_pb.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -14,21 +14,27 @@ import { RegionCode } from "../commons/commons_pb.js";
|
|
|
14
14
|
*/
|
|
15
15
|
export enum Feature {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* An unspecified or invalid feature value
|
|
18
18
|
*
|
|
19
|
-
* @generated from enum value:
|
|
19
|
+
* @generated from enum value: FEATURE_UNSPECIFIED = 0;
|
|
20
|
+
*/
|
|
21
|
+
FEATURE_UNSPECIFIED = 0,
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: UNSPECIFIED = 0 [deprecated = true];
|
|
25
|
+
* @deprecated
|
|
20
26
|
*/
|
|
21
27
|
UNSPECIFIED = 0,
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
|
-
*
|
|
30
|
+
* Enables directory synchronization configuration in the portal
|
|
25
31
|
*
|
|
26
32
|
* @generated from enum value: dir_sync = 1;
|
|
27
33
|
*/
|
|
28
34
|
dir_sync = 1,
|
|
29
35
|
|
|
30
36
|
/**
|
|
31
|
-
*
|
|
37
|
+
* Enables Single Sign-On (SSO) configuration in the portal
|
|
32
38
|
*
|
|
33
39
|
* @generated from enum value: sso = 2;
|
|
34
40
|
*/
|
|
@@ -36,6 +42,7 @@ export enum Feature {
|
|
|
36
42
|
}
|
|
37
43
|
// Retrieve enum metadata with: proto3.getEnumType(Feature)
|
|
38
44
|
proto3.util.setEnumType(Feature, "scalekit.v1.organizations.Feature", [
|
|
45
|
+
{ no: 0, name: "FEATURE_UNSPECIFIED" },
|
|
39
46
|
{ no: 0, name: "UNSPECIFIED" },
|
|
40
47
|
{ no: 1, name: "dir_sync" },
|
|
41
48
|
{ no: 2, name: "sso" },
|
|
@@ -1204,6 +1211,58 @@ export class UpdateOrganizationSessionSettingsResponse extends Message<UpdateOrg
|
|
|
1204
1211
|
}
|
|
1205
1212
|
}
|
|
1206
1213
|
|
|
1214
|
+
/**
|
|
1215
|
+
* @generated from message scalekit.v1.organizations.OrganizationUserManagementSettings
|
|
1216
|
+
*/
|
|
1217
|
+
export class OrganizationUserManagementSettings extends Message<OrganizationUserManagementSettings> {
|
|
1218
|
+
/**
|
|
1219
|
+
* @generated from field: google.protobuf.BoolValue jit_provisioning_with_sso_enabled = 1;
|
|
1220
|
+
*/
|
|
1221
|
+
jitProvisioningWithSsoEnabled?: boolean;
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* @generated from field: google.protobuf.BoolValue sync_user_profile_on_signin = 2;
|
|
1225
|
+
*/
|
|
1226
|
+
syncUserProfileOnSignin?: boolean;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Deprecated placeholder to ensure google.protobuf.NullValue is referenced in the schema, preventing unused-definition warnings.
|
|
1230
|
+
*
|
|
1231
|
+
* @generated from field: google.protobuf.NullValue deprecated_placeholder = 99 [deprecated = true];
|
|
1232
|
+
* @deprecated
|
|
1233
|
+
*/
|
|
1234
|
+
deprecatedPlaceholder = NullValue.NULL_VALUE;
|
|
1235
|
+
|
|
1236
|
+
constructor(data?: PartialMessage<OrganizationUserManagementSettings>) {
|
|
1237
|
+
super();
|
|
1238
|
+
proto3.util.initPartial(data, this);
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1242
|
+
static readonly typeName = "scalekit.v1.organizations.OrganizationUserManagementSettings";
|
|
1243
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1244
|
+
{ no: 1, name: "jit_provisioning_with_sso_enabled", kind: "message", T: BoolValue },
|
|
1245
|
+
{ no: 2, name: "sync_user_profile_on_signin", kind: "message", T: BoolValue },
|
|
1246
|
+
{ no: 99, name: "deprecated_placeholder", kind: "enum", T: proto3.getEnumType(NullValue) },
|
|
1247
|
+
]);
|
|
1248
|
+
|
|
1249
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationUserManagementSettings {
|
|
1250
|
+
return new OrganizationUserManagementSettings().fromBinary(bytes, options);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrganizationUserManagementSettings {
|
|
1254
|
+
return new OrganizationUserManagementSettings().fromJson(jsonValue, options);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrganizationUserManagementSettings {
|
|
1258
|
+
return new OrganizationUserManagementSettings().fromJsonString(jsonString, options);
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
static equals(a: OrganizationUserManagementSettings | PlainMessage<OrganizationUserManagementSettings> | undefined, b: OrganizationUserManagementSettings | PlainMessage<OrganizationUserManagementSettings> | undefined): boolean {
|
|
1262
|
+
return proto3.util.equals(OrganizationUserManagementSettings, a, b);
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1207
1266
|
/**
|
|
1208
1267
|
* @generated from message scalekit.v1.organizations.OrganizationSessionSettings
|
|
1209
1268
|
*/
|
|
@@ -1566,3 +1625,157 @@ export class OrganizationSettingsFeature extends Message<OrganizationSettingsFea
|
|
|
1566
1625
|
}
|
|
1567
1626
|
}
|
|
1568
1627
|
|
|
1628
|
+
/**
|
|
1629
|
+
* @generated from message scalekit.v1.organizations.UpdateUserManagementSettingsRequest
|
|
1630
|
+
*/
|
|
1631
|
+
export class UpdateUserManagementSettingsRequest extends Message<UpdateUserManagementSettingsRequest> {
|
|
1632
|
+
/**
|
|
1633
|
+
* @generated from field: string organization_id = 1;
|
|
1634
|
+
*/
|
|
1635
|
+
organizationId = "";
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* @generated from field: scalekit.v1.organizations.OrganizationUserManagementSettings settings = 2;
|
|
1639
|
+
*/
|
|
1640
|
+
settings?: OrganizationUserManagementSettings;
|
|
1641
|
+
|
|
1642
|
+
constructor(data?: PartialMessage<UpdateUserManagementSettingsRequest>) {
|
|
1643
|
+
super();
|
|
1644
|
+
proto3.util.initPartial(data, this);
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1648
|
+
static readonly typeName = "scalekit.v1.organizations.UpdateUserManagementSettingsRequest";
|
|
1649
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1650
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1651
|
+
{ no: 2, name: "settings", kind: "message", T: OrganizationUserManagementSettings },
|
|
1652
|
+
]);
|
|
1653
|
+
|
|
1654
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserManagementSettingsRequest {
|
|
1655
|
+
return new UpdateUserManagementSettingsRequest().fromBinary(bytes, options);
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserManagementSettingsRequest {
|
|
1659
|
+
return new UpdateUserManagementSettingsRequest().fromJson(jsonValue, options);
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserManagementSettingsRequest {
|
|
1663
|
+
return new UpdateUserManagementSettingsRequest().fromJsonString(jsonString, options);
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
static equals(a: UpdateUserManagementSettingsRequest | PlainMessage<UpdateUserManagementSettingsRequest> | undefined, b: UpdateUserManagementSettingsRequest | PlainMessage<UpdateUserManagementSettingsRequest> | undefined): boolean {
|
|
1667
|
+
return proto3.util.equals(UpdateUserManagementSettingsRequest, a, b);
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* @generated from message scalekit.v1.organizations.UpdateUserManagementSettingsResponse
|
|
1673
|
+
*/
|
|
1674
|
+
export class UpdateUserManagementSettingsResponse extends Message<UpdateUserManagementSettingsResponse> {
|
|
1675
|
+
/**
|
|
1676
|
+
* @generated from field: scalekit.v1.organizations.OrganizationUserManagementSettings settings = 1;
|
|
1677
|
+
*/
|
|
1678
|
+
settings?: OrganizationUserManagementSettings;
|
|
1679
|
+
|
|
1680
|
+
constructor(data?: PartialMessage<UpdateUserManagementSettingsResponse>) {
|
|
1681
|
+
super();
|
|
1682
|
+
proto3.util.initPartial(data, this);
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1686
|
+
static readonly typeName = "scalekit.v1.organizations.UpdateUserManagementSettingsResponse";
|
|
1687
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1688
|
+
{ no: 1, name: "settings", kind: "message", T: OrganizationUserManagementSettings },
|
|
1689
|
+
]);
|
|
1690
|
+
|
|
1691
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserManagementSettingsResponse {
|
|
1692
|
+
return new UpdateUserManagementSettingsResponse().fromBinary(bytes, options);
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserManagementSettingsResponse {
|
|
1696
|
+
return new UpdateUserManagementSettingsResponse().fromJson(jsonValue, options);
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserManagementSettingsResponse {
|
|
1700
|
+
return new UpdateUserManagementSettingsResponse().fromJsonString(jsonString, options);
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
static equals(a: UpdateUserManagementSettingsResponse | PlainMessage<UpdateUserManagementSettingsResponse> | undefined, b: UpdateUserManagementSettingsResponse | PlainMessage<UpdateUserManagementSettingsResponse> | undefined): boolean {
|
|
1704
|
+
return proto3.util.equals(UpdateUserManagementSettingsResponse, a, b);
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* @generated from message scalekit.v1.organizations.GetOrganizationUserManagementSettingsRequest
|
|
1710
|
+
*/
|
|
1711
|
+
export class GetOrganizationUserManagementSettingsRequest extends Message<GetOrganizationUserManagementSettingsRequest> {
|
|
1712
|
+
/**
|
|
1713
|
+
* @generated from field: string organization_id = 1;
|
|
1714
|
+
*/
|
|
1715
|
+
organizationId = "";
|
|
1716
|
+
|
|
1717
|
+
constructor(data?: PartialMessage<GetOrganizationUserManagementSettingsRequest>) {
|
|
1718
|
+
super();
|
|
1719
|
+
proto3.util.initPartial(data, this);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1723
|
+
static readonly typeName = "scalekit.v1.organizations.GetOrganizationUserManagementSettingsRequest";
|
|
1724
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1725
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1726
|
+
]);
|
|
1727
|
+
|
|
1728
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationUserManagementSettingsRequest {
|
|
1729
|
+
return new GetOrganizationUserManagementSettingsRequest().fromBinary(bytes, options);
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationUserManagementSettingsRequest {
|
|
1733
|
+
return new GetOrganizationUserManagementSettingsRequest().fromJson(jsonValue, options);
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationUserManagementSettingsRequest {
|
|
1737
|
+
return new GetOrganizationUserManagementSettingsRequest().fromJsonString(jsonString, options);
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
static equals(a: GetOrganizationUserManagementSettingsRequest | PlainMessage<GetOrganizationUserManagementSettingsRequest> | undefined, b: GetOrganizationUserManagementSettingsRequest | PlainMessage<GetOrganizationUserManagementSettingsRequest> | undefined): boolean {
|
|
1741
|
+
return proto3.util.equals(GetOrganizationUserManagementSettingsRequest, a, b);
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
/**
|
|
1746
|
+
* @generated from message scalekit.v1.organizations.GetOrganizationUserManagementSettingsResponse
|
|
1747
|
+
*/
|
|
1748
|
+
export class GetOrganizationUserManagementSettingsResponse extends Message<GetOrganizationUserManagementSettingsResponse> {
|
|
1749
|
+
/**
|
|
1750
|
+
* @generated from field: scalekit.v1.organizations.OrganizationUserManagementSettings settings = 1;
|
|
1751
|
+
*/
|
|
1752
|
+
settings?: OrganizationUserManagementSettings;
|
|
1753
|
+
|
|
1754
|
+
constructor(data?: PartialMessage<GetOrganizationUserManagementSettingsResponse>) {
|
|
1755
|
+
super();
|
|
1756
|
+
proto3.util.initPartial(data, this);
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1760
|
+
static readonly typeName = "scalekit.v1.organizations.GetOrganizationUserManagementSettingsResponse";
|
|
1761
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1762
|
+
{ no: 1, name: "settings", kind: "message", T: OrganizationUserManagementSettings },
|
|
1763
|
+
]);
|
|
1764
|
+
|
|
1765
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationUserManagementSettingsResponse {
|
|
1766
|
+
return new GetOrganizationUserManagementSettingsResponse().fromBinary(bytes, options);
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationUserManagementSettingsResponse {
|
|
1770
|
+
return new GetOrganizationUserManagementSettingsResponse().fromJson(jsonValue, options);
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationUserManagementSettingsResponse {
|
|
1774
|
+
return new GetOrganizationUserManagementSettingsResponse().fromJsonString(jsonString, options);
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
static equals(a: GetOrganizationUserManagementSettingsResponse | PlainMessage<GetOrganizationUserManagementSettingsResponse> | undefined, b: GetOrganizationUserManagementSettingsResponse | PlainMessage<GetOrganizationUserManagementSettingsResponse> | undefined): boolean {
|
|
1778
|
+
return proto3.util.equals(GetOrganizationUserManagementSettingsResponse, a, b);
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { CreateMembershipRequest, CreateMembershipResponse, CreateUserAndMembershipRequest, CreateUserAndMembershipResponse, DeleteMembershipRequest, DeleteUserRequest, GetUserRequest, GetUserResponse, ListOrganizationUsersRequest, ListOrganizationUsersResponse, ListUsersRequest, ListUsersResponse, SearchOrganizationUsersRequest, SearchOrganizationUsersResponse, SearchUsersRequest, SearchUsersResponse, UpdateMembershipRequest, UpdateMembershipResponse, UpdateUserRequest, UpdateUserResponse } from "./users_pb.js";
|
|
6
|
+
import { AssignUserRolesRequest, AssignUserRolesResponse, CreateMembershipRequest, CreateMembershipResponse, CreateUserAndMembershipRequest, CreateUserAndMembershipResponse, DeleteMembershipRequest, DeleteUserRequest, GetUserRequest, GetUserResponse, ListOrganizationUsersRequest, ListOrganizationUsersResponse, ListUserPermissionsRequest, ListUserPermissionsResponse, ListUserRolesRequest, ListUserRolesResponse, ListUsersRequest, ListUsersResponse, RemoveUserRoleRequest, ResendInviteRequest, ResendInviteResponse, SearchOrganizationUsersRequest, SearchOrganizationUsersResponse, SearchUsersRequest, SearchUsersResponse, UpdateMembershipRequest, UpdateMembershipResponse, UpdateUserRequest, UpdateUserResponse } from "./users_pb.js";
|
|
7
7
|
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -119,6 +119,53 @@ export const UserService = {
|
|
|
119
119
|
O: ListOrganizationUsersResponse,
|
|
120
120
|
kind: MethodKind.Unary,
|
|
121
121
|
},
|
|
122
|
+
/**
|
|
123
|
+
* @generated from rpc scalekit.v1.users.UserService.ResendInvite
|
|
124
|
+
*/
|
|
125
|
+
resendInvite: {
|
|
126
|
+
name: "ResendInvite",
|
|
127
|
+
I: ResendInviteRequest,
|
|
128
|
+
O: ResendInviteResponse,
|
|
129
|
+
kind: MethodKind.Unary,
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* User Role Management
|
|
133
|
+
*
|
|
134
|
+
* @generated from rpc scalekit.v1.users.UserService.ListUserRoles
|
|
135
|
+
*/
|
|
136
|
+
listUserRoles: {
|
|
137
|
+
name: "ListUserRoles",
|
|
138
|
+
I: ListUserRolesRequest,
|
|
139
|
+
O: ListUserRolesResponse,
|
|
140
|
+
kind: MethodKind.Unary,
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
* @generated from rpc scalekit.v1.users.UserService.AssignUserRoles
|
|
144
|
+
*/
|
|
145
|
+
assignUserRoles: {
|
|
146
|
+
name: "AssignUserRoles",
|
|
147
|
+
I: AssignUserRolesRequest,
|
|
148
|
+
O: AssignUserRolesResponse,
|
|
149
|
+
kind: MethodKind.Unary,
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
* @generated from rpc scalekit.v1.users.UserService.RemoveUserRole
|
|
153
|
+
*/
|
|
154
|
+
removeUserRole: {
|
|
155
|
+
name: "RemoveUserRole",
|
|
156
|
+
I: RemoveUserRoleRequest,
|
|
157
|
+
O: Empty,
|
|
158
|
+
kind: MethodKind.Unary,
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* @generated from rpc scalekit.v1.users.UserService.ListUserPermissions
|
|
162
|
+
*/
|
|
163
|
+
listUserPermissions: {
|
|
164
|
+
name: "ListUserPermissions",
|
|
165
|
+
I: ListUserPermissionsRequest,
|
|
166
|
+
O: ListUserPermissionsResponse,
|
|
167
|
+
kind: MethodKind.Unary,
|
|
168
|
+
},
|
|
122
169
|
}
|
|
123
170
|
} as const;
|
|
124
171
|
|