@scalekit-sdk/node 2.1.6 → 2.1.8
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/buf.gen.yaml +1 -0
- package/lib/auth.d.ts +41 -9
- package/lib/auth.js +44 -12
- package/lib/auth.js.map +1 -1
- package/lib/connection.d.ts +195 -21
- package/lib/connection.js +197 -23
- package/lib/connection.js.map +1 -1
- package/lib/core.d.ts +2 -2
- package/lib/core.js +13 -12
- package/lib/core.js.map +1 -1
- package/lib/directory.d.ts +293 -40
- package/lib/directory.js +308 -44
- package/lib/directory.js.map +1 -1
- package/lib/domain.d.ts +166 -18
- package/lib/domain.js +178 -29
- package/lib/domain.js.map +1 -1
- package/lib/organization.d.ts +407 -40
- package/lib/organization.js +433 -49
- package/lib/organization.js.map +1 -1
- package/lib/permission.d.ts +179 -35
- package/lib/permission.js +190 -38
- package/lib/permission.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +3 -3
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +2 -2
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +16 -16
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +21 -21
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.d.ts +82 -0
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +90 -0
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.d.ts +647 -0
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +993 -0
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +142 -0
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +165 -1
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +1 -10
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +0 -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 +28 -63
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +9 -90
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +6 -6
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +5 -5
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +19 -30
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +22 -31
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +2 -2
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
- package/lib/role.d.ts +252 -56
- package/lib/role.js +262 -62
- package/lib/role.js.map +1 -1
- package/lib/scalekit.d.ts +323 -54
- package/lib/scalekit.js +354 -76
- package/lib/scalekit.js.map +1 -1
- package/lib/session.d.ts +235 -22
- package/lib/session.js +237 -24
- package/lib/session.js.map +1 -1
- package/lib/types/organization.d.ts +3 -0
- package/lib/user.d.ts +571 -53
- package/lib/user.js +598 -89
- package/lib/user.js.map +1 -1
- package/lib/webauthn.d.ts +33 -0
- package/lib/webauthn.js +80 -0
- package/lib/webauthn.js.map +1 -0
- package/package.json +2 -2
- package/src/auth.ts +53 -19
- package/src/connection.ts +237 -62
- package/src/core.ts +39 -33
- package/src/directory.ts +356 -98
- package/src/domain.ts +215 -68
- package/src/organization.ts +506 -105
- package/src/permission.ts +234 -88
- package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +3 -3
- package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +24 -24
- package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +89 -0
- package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +1263 -0
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +217 -0
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +1 -10
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +42 -129
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +6 -6
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +28 -43
- package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +3 -3
- package/src/role.ts +336 -136
- package/src/scalekit.ts +478 -149
- package/src/session.ts +266 -63
- package/src/types/organization.ts +4 -0
- package/src/user.ts +675 -168
- package/src/webauthn.ts +98 -0
- package/tests/organization.test.ts +16 -0
|
@@ -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,
|
|
7
|
+
import { BoolValue, FieldMask, Int32Value, Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
8
8
|
import { RegionCode } from "../commons/commons_pb.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1216,22 +1216,9 @@ export class UpdateOrganizationSessionSettingsResponse extends Message<UpdateOrg
|
|
|
1216
1216
|
*/
|
|
1217
1217
|
export class OrganizationUserManagementSettings extends Message<OrganizationUserManagementSettings> {
|
|
1218
1218
|
/**
|
|
1219
|
-
* @generated from field: google.protobuf.
|
|
1219
|
+
* @generated from field: google.protobuf.Int32Value max_allowed_users = 1;
|
|
1220
1220
|
*/
|
|
1221
|
-
|
|
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;
|
|
1221
|
+
maxAllowedUsers?: number;
|
|
1235
1222
|
|
|
1236
1223
|
constructor(data?: PartialMessage<OrganizationUserManagementSettings>) {
|
|
1237
1224
|
super();
|
|
@@ -1241,9 +1228,7 @@ export class OrganizationUserManagementSettings extends Message<OrganizationUser
|
|
|
1241
1228
|
static readonly runtime: typeof proto3 = proto3;
|
|
1242
1229
|
static readonly typeName = "scalekit.v1.organizations.OrganizationUserManagementSettings";
|
|
1243
1230
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1244
|
-
{ no: 1, name: "
|
|
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) },
|
|
1231
|
+
{ no: 1, name: "max_allowed_users", kind: "message", T: Int32Value },
|
|
1247
1232
|
]);
|
|
1248
1233
|
|
|
1249
1234
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationUserManagementSettings {
|
|
@@ -1626,9 +1611,9 @@ export class OrganizationSettingsFeature extends Message<OrganizationSettingsFea
|
|
|
1626
1611
|
}
|
|
1627
1612
|
|
|
1628
1613
|
/**
|
|
1629
|
-
* @generated from message scalekit.v1.organizations.
|
|
1614
|
+
* @generated from message scalekit.v1.organizations.UpsertUserManagementSettingsRequest
|
|
1630
1615
|
*/
|
|
1631
|
-
export class
|
|
1616
|
+
export class UpsertUserManagementSettingsRequest extends Message<UpsertUserManagementSettingsRequest> {
|
|
1632
1617
|
/**
|
|
1633
1618
|
* @generated from field: string organization_id = 1;
|
|
1634
1619
|
*/
|
|
@@ -1639,69 +1624,69 @@ export class UpdateUserManagementSettingsRequest extends Message<UpdateUserManag
|
|
|
1639
1624
|
*/
|
|
1640
1625
|
settings?: OrganizationUserManagementSettings;
|
|
1641
1626
|
|
|
1642
|
-
constructor(data?: PartialMessage<
|
|
1627
|
+
constructor(data?: PartialMessage<UpsertUserManagementSettingsRequest>) {
|
|
1643
1628
|
super();
|
|
1644
1629
|
proto3.util.initPartial(data, this);
|
|
1645
1630
|
}
|
|
1646
1631
|
|
|
1647
1632
|
static readonly runtime: typeof proto3 = proto3;
|
|
1648
|
-
static readonly typeName = "scalekit.v1.organizations.
|
|
1633
|
+
static readonly typeName = "scalekit.v1.organizations.UpsertUserManagementSettingsRequest";
|
|
1649
1634
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1650
1635
|
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1651
1636
|
{ no: 2, name: "settings", kind: "message", T: OrganizationUserManagementSettings },
|
|
1652
1637
|
]);
|
|
1653
1638
|
|
|
1654
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
1655
|
-
return new
|
|
1639
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpsertUserManagementSettingsRequest {
|
|
1640
|
+
return new UpsertUserManagementSettingsRequest().fromBinary(bytes, options);
|
|
1656
1641
|
}
|
|
1657
1642
|
|
|
1658
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
1659
|
-
return new
|
|
1643
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpsertUserManagementSettingsRequest {
|
|
1644
|
+
return new UpsertUserManagementSettingsRequest().fromJson(jsonValue, options);
|
|
1660
1645
|
}
|
|
1661
1646
|
|
|
1662
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
1663
|
-
return new
|
|
1647
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpsertUserManagementSettingsRequest {
|
|
1648
|
+
return new UpsertUserManagementSettingsRequest().fromJsonString(jsonString, options);
|
|
1664
1649
|
}
|
|
1665
1650
|
|
|
1666
|
-
static equals(a:
|
|
1667
|
-
return proto3.util.equals(
|
|
1651
|
+
static equals(a: UpsertUserManagementSettingsRequest | PlainMessage<UpsertUserManagementSettingsRequest> | undefined, b: UpsertUserManagementSettingsRequest | PlainMessage<UpsertUserManagementSettingsRequest> | undefined): boolean {
|
|
1652
|
+
return proto3.util.equals(UpsertUserManagementSettingsRequest, a, b);
|
|
1668
1653
|
}
|
|
1669
1654
|
}
|
|
1670
1655
|
|
|
1671
1656
|
/**
|
|
1672
|
-
* @generated from message scalekit.v1.organizations.
|
|
1657
|
+
* @generated from message scalekit.v1.organizations.UpsertUserManagementSettingsResponse
|
|
1673
1658
|
*/
|
|
1674
|
-
export class
|
|
1659
|
+
export class UpsertUserManagementSettingsResponse extends Message<UpsertUserManagementSettingsResponse> {
|
|
1675
1660
|
/**
|
|
1676
1661
|
* @generated from field: scalekit.v1.organizations.OrganizationUserManagementSettings settings = 1;
|
|
1677
1662
|
*/
|
|
1678
1663
|
settings?: OrganizationUserManagementSettings;
|
|
1679
1664
|
|
|
1680
|
-
constructor(data?: PartialMessage<
|
|
1665
|
+
constructor(data?: PartialMessage<UpsertUserManagementSettingsResponse>) {
|
|
1681
1666
|
super();
|
|
1682
1667
|
proto3.util.initPartial(data, this);
|
|
1683
1668
|
}
|
|
1684
1669
|
|
|
1685
1670
|
static readonly runtime: typeof proto3 = proto3;
|
|
1686
|
-
static readonly typeName = "scalekit.v1.organizations.
|
|
1671
|
+
static readonly typeName = "scalekit.v1.organizations.UpsertUserManagementSettingsResponse";
|
|
1687
1672
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1688
1673
|
{ no: 1, name: "settings", kind: "message", T: OrganizationUserManagementSettings },
|
|
1689
1674
|
]);
|
|
1690
1675
|
|
|
1691
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
1692
|
-
return new
|
|
1676
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpsertUserManagementSettingsResponse {
|
|
1677
|
+
return new UpsertUserManagementSettingsResponse().fromBinary(bytes, options);
|
|
1693
1678
|
}
|
|
1694
1679
|
|
|
1695
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
1696
|
-
return new
|
|
1680
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpsertUserManagementSettingsResponse {
|
|
1681
|
+
return new UpsertUserManagementSettingsResponse().fromJson(jsonValue, options);
|
|
1697
1682
|
}
|
|
1698
1683
|
|
|
1699
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
1700
|
-
return new
|
|
1684
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpsertUserManagementSettingsResponse {
|
|
1685
|
+
return new UpsertUserManagementSettingsResponse().fromJsonString(jsonString, options);
|
|
1701
1686
|
}
|
|
1702
1687
|
|
|
1703
|
-
static equals(a:
|
|
1704
|
-
return proto3.util.equals(
|
|
1688
|
+
static equals(a: UpsertUserManagementSettingsResponse | PlainMessage<UpsertUserManagementSettingsResponse> | undefined, b: UpsertUserManagementSettingsResponse | PlainMessage<UpsertUserManagementSettingsResponse> | undefined): boolean {
|
|
1689
|
+
return proto3.util.equals(UpsertUserManagementSettingsResponse, a, b);
|
|
1705
1690
|
}
|
|
1706
1691
|
}
|
|
1707
1692
|
|
|
@@ -57,9 +57,9 @@ export class User extends Message<User> {
|
|
|
57
57
|
metadata: { [key: string]: string } = {};
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* @generated from field: google.protobuf.Timestamp
|
|
60
|
+
* @generated from field: google.protobuf.Timestamp last_login_time = 10;
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
lastLoginTime?: Timestamp;
|
|
63
63
|
|
|
64
64
|
constructor(data?: PartialMessage<User>) {
|
|
65
65
|
super();
|
|
@@ -78,7 +78,7 @@ export class User extends Message<User> {
|
|
|
78
78
|
{ no: 7, name: "memberships", kind: "message", T: OrganizationMembership, repeated: true },
|
|
79
79
|
{ no: 8, name: "user_profile", kind: "message", T: UserProfile },
|
|
80
80
|
{ no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
81
|
-
{ no: 10, name: "
|
|
81
|
+
{ no: 10, name: "last_login_time", kind: "message", T: Timestamp },
|
|
82
82
|
]);
|
|
83
83
|
|
|
84
84
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {
|