@scalekit-sdk/node 2.2.0-beta.0 → 2.2.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/.nvmrc +1 -1
- package/README.md +5 -5
- package/buf.gen.yaml +1 -5
- package/lib/auth.d.ts +9 -6
- package/lib/auth.js +4 -20
- package/lib/auth.js.map +1 -1
- package/lib/connect.d.ts +3 -3
- package/lib/connect.js +1 -2
- package/lib/connect.js.map +1 -1
- package/lib/connection.d.ts +2 -2
- package/lib/connection.js +4 -4
- package/lib/connection.js.map +1 -1
- package/lib/core.js +2 -2
- package/lib/core.js.map +1 -1
- package/lib/directory.d.ts +2 -2
- package/lib/directory.js +7 -7
- package/lib/directory.js.map +1 -1
- package/lib/domain.d.ts +6 -5
- package/lib/domain.js +4 -5
- package/lib/domain.js.map +1 -1
- package/lib/errors/base-exception.d.ts +1 -1
- package/lib/errors/base-exception.js +1 -1
- package/lib/errors/base-exception.js.map +1 -1
- package/lib/organization.d.ts +10 -9
- package/lib/organization.js +11 -9
- package/lib/organization.js.map +1 -1
- package/lib/passwordless.d.ts +2 -2
- package/lib/passwordless.js +8 -7
- package/lib/passwordless.js.map +1 -1
- package/lib/permission.d.ts +6 -5
- package/lib/permission.js +10 -11
- package/lib/permission.js.map +1 -1
- package/lib/pkg/grpc/buf/validate/validate_pb.d.ts +7 -0
- package/lib/pkg/grpc/buf/validate/validate_pb.js +25 -0
- package/lib/pkg/grpc/buf/validate/validate_pb.js.map +1 -0
- package/lib/pkg/grpc/google/api/annotations_pb.d.ts +7 -0
- package/lib/pkg/grpc/google/api/annotations_pb.js +25 -0
- package/lib/pkg/grpc/google/api/annotations_pb.js.map +1 -0
- package/lib/pkg/grpc/google/api/field_behavior_pb.d.ts +7 -0
- package/lib/pkg/grpc/google/api/field_behavior_pb.js +25 -0
- package/lib/pkg/grpc/google/api/field_behavior_pb.js.map +1 -0
- package/lib/pkg/grpc/google/api/visibility_pb.d.ts +7 -0
- package/lib/pkg/grpc/google/api/visibility_pb.js +25 -0
- package/lib/pkg/grpc/google/api/visibility_pb.js.map +1 -0
- package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.d.ts +7 -0
- package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js +25 -0
- package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +48 -42
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +27 -263
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +371 -325
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +132 -835
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.d.ts +113 -87
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js +45 -201
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.d.ts +262 -265
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +92 -938
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +162 -157
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +42 -313
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +1488 -1459
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +353 -2362
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.d.ts +520 -483
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +224 -1555
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +219 -191
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +96 -553
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +76 -102
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +37 -393
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +36 -26
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +20 -69
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +447 -400
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +163 -1238
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.d.ts +622 -556
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js +201 -1718
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +135 -132
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +55 -518
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +445 -413
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +142 -1490
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
- package/lib/role.d.ts +8 -7
- package/lib/role.js +14 -14
- package/lib/role.js.map +1 -1
- package/lib/scalekit.d.ts +0 -4
- package/lib/scalekit.js +0 -4
- package/lib/scalekit.js.map +1 -1
- package/lib/session.js +15 -24
- package/lib/session.js.map +1 -1
- package/lib/user.d.ts +6 -5
- package/lib/user.js +17 -20
- package/lib/user.js.map +1 -1
- package/lib/webauthn.js +6 -5
- package/lib/webauthn.js.map +1 -1
- package/package.json +6 -10
- package/reference.md +0 -671
- package/src/auth.ts +17 -17
- package/src/connect.ts +4 -5
- package/src/connection.ts +5 -5
- package/src/core.ts +2 -2
- package/src/directory.ts +8 -8
- package/src/domain.ts +9 -8
- package/src/errors/base-exception.ts +3 -2
- package/src/organization.ts +18 -15
- package/src/passwordless.ts +12 -11
- package/src/permission.ts +15 -15
- package/src/pkg/grpc/buf/validate/validate_pb.ts +28 -0
- package/src/pkg/grpc/google/api/annotations_pb.ts +28 -0
- package/src/pkg/grpc/google/api/field_behavior_pb.ts +28 -0
- package/src/pkg/grpc/google/api/visibility_pb.ts +28 -0
- package/src/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.ts +28 -0
- package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +97 -182
- package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +473 -850
- package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +153 -225
- package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +361 -830
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +237 -358
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +1625 -2826
- package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +687 -1413
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +286 -542
- package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +115 -328
- package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +50 -80
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +558 -1183
- package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +765 -1669
- package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +195 -447
- package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +592 -1339
- package/src/role.ts +21 -19
- package/src/scalekit.ts +0 -9
- package/src/session.ts +20 -34
- package/src/user.ts +30 -26
- package/src/webauthn.ts +10 -9
- package/tests/utils/test-data.ts +17 -8
- package/lib/connected-accounts.d.ts +0 -96
- package/lib/connected-accounts.js +0 -186
- package/lib/connected-accounts.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.d.ts +0 -19
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js +0 -27
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +0 -118
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +0 -126
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.d.ts +0 -37
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js +0 -45
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.d.ts +0 -82
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +0 -90
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.d.ts +0 -87
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js +0 -95
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.d.ts +0 -718
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js +0 -893
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +0 -172
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +0 -180
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.d.ts +0 -154
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js +0 -162
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +0 -73
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +0 -81
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +0 -171
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +0 -179
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.d.ts +0 -250
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js +0 -258
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.d.ts +0 -46
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js +0 -54
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.d.ts +0 -75
- package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js +0 -83
- package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.d.ts +0 -431
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js +0 -627
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +0 -173
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +0 -181
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +0 -1
- package/lib/tools.d.ts +0 -75
- package/lib/tools.js +0 -127
- package/lib/tools.js.map +0 -1
- package/src/connected-accounts.ts +0 -283
- package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.ts +0 -26
- package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +0 -125
- package/src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts +0 -44
- package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +0 -89
- package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.ts +0 -94
- package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.ts +0 -1294
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +0 -179
- package/src/pkg/grpc/scalekit/v1/directories/directories_connect.ts +0 -161
- package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +0 -80
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +0 -178
- package/src/pkg/grpc/scalekit/v1/roles/roles_connect.ts +0 -257
- package/src/pkg/grpc/scalekit/v1/sessions/sessions_connect.ts +0 -53
- package/src/pkg/grpc/scalekit/v1/tools/tools_connect.ts +0 -82
- package/src/pkg/grpc/scalekit/v1/tools/tools_pb.ts +0 -847
- package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +0 -180
- package/src/tools.ts +0 -166
- package/tests/connected-accounts.test.ts +0 -434
- package/tests/tools.test.ts +0 -239
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const connected_accounts_connect_1 = require("./pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect");
|
|
13
|
-
/**
|
|
14
|
-
* Client for managing connected accounts for third-party integrations.
|
|
15
|
-
*
|
|
16
|
-
* This mirrors the Python SDK `ConnectedAccountsClient` and exposes a typed,
|
|
17
|
-
* ergonomic API around the `ConnectedAccountService` to:
|
|
18
|
-
* - list connected accounts
|
|
19
|
-
* - create/update/delete connected accounts
|
|
20
|
-
* - generate magic links for authorization
|
|
21
|
-
* - fetch full authentication details for a connected account
|
|
22
|
-
*/
|
|
23
|
-
class ConnectedAccountsClient {
|
|
24
|
-
constructor(grpcConnect, coreClient) {
|
|
25
|
-
this.grpcConnect = grpcConnect;
|
|
26
|
-
this.coreClient = coreClient;
|
|
27
|
-
this.client = this.grpcConnect.createClient(connected_accounts_connect_1.ConnectedAccountService);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Lists connected accounts with optional filters and pagination.
|
|
31
|
-
*
|
|
32
|
-
* @param options Optional filtering and pagination parameters
|
|
33
|
-
*/
|
|
34
|
-
listConnectedAccounts(options) {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
const request = {};
|
|
37
|
-
if (options === null || options === void 0 ? void 0 : options.organizationId) {
|
|
38
|
-
request.organizationId = options.organizationId;
|
|
39
|
-
}
|
|
40
|
-
if (options === null || options === void 0 ? void 0 : options.userId) {
|
|
41
|
-
request.userId = options.userId;
|
|
42
|
-
}
|
|
43
|
-
if (options === null || options === void 0 ? void 0 : options.connector) {
|
|
44
|
-
request.connector = options.connector;
|
|
45
|
-
}
|
|
46
|
-
if (options === null || options === void 0 ? void 0 : options.identifier) {
|
|
47
|
-
request.identifier = options.identifier;
|
|
48
|
-
}
|
|
49
|
-
if (options === null || options === void 0 ? void 0 : options.provider) {
|
|
50
|
-
request.provider = options.provider;
|
|
51
|
-
}
|
|
52
|
-
if ((options === null || options === void 0 ? void 0 : options.pageSize) !== undefined) {
|
|
53
|
-
request.pageSize = options.pageSize;
|
|
54
|
-
}
|
|
55
|
-
if (options === null || options === void 0 ? void 0 : options.pageToken) {
|
|
56
|
-
request.pageToken = options.pageToken;
|
|
57
|
-
}
|
|
58
|
-
if (options === null || options === void 0 ? void 0 : options.query) {
|
|
59
|
-
request.query = options.query;
|
|
60
|
-
}
|
|
61
|
-
return this.coreClient.connectExec(this.client.listConnectedAccounts, request);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Creates a new connected account.
|
|
66
|
-
*
|
|
67
|
-
* @param params Connected account creation parameters
|
|
68
|
-
*/
|
|
69
|
-
createConnectedAccount(params) {
|
|
70
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
const { connector, identifier, connectedAccount, organizationId, userId, } = params;
|
|
72
|
-
const request = {
|
|
73
|
-
connector,
|
|
74
|
-
identifier,
|
|
75
|
-
connectedAccount,
|
|
76
|
-
};
|
|
77
|
-
if (organizationId) {
|
|
78
|
-
request.organizationId = organizationId;
|
|
79
|
-
}
|
|
80
|
-
if (userId) {
|
|
81
|
-
request.userId = userId;
|
|
82
|
-
}
|
|
83
|
-
return this.coreClient.connectExec(this.client.createConnectedAccount, request);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Updates an existing connected account.
|
|
88
|
-
*
|
|
89
|
-
* You can target the account either by `connectedAccountId` or by the combination
|
|
90
|
-
* of `organizationId`/`userId`, `connector`, and `identifier`.
|
|
91
|
-
*/
|
|
92
|
-
updateConnectedAccount(params) {
|
|
93
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
const { connector, identifier, connectedAccount, organizationId, userId, connectedAccountId, } = params;
|
|
95
|
-
const request = {
|
|
96
|
-
connector,
|
|
97
|
-
identifier,
|
|
98
|
-
connectedAccount,
|
|
99
|
-
};
|
|
100
|
-
if (organizationId) {
|
|
101
|
-
request.organizationId = organizationId;
|
|
102
|
-
}
|
|
103
|
-
if (userId) {
|
|
104
|
-
request.userId = userId;
|
|
105
|
-
}
|
|
106
|
-
if (connectedAccountId) {
|
|
107
|
-
request.id = connectedAccountId;
|
|
108
|
-
}
|
|
109
|
-
return this.coreClient.connectExec(this.client.updateConnectedAccount, request);
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Deletes a connected account and revokes its credentials.
|
|
114
|
-
*
|
|
115
|
-
* You can target the account either by `connectedAccountId` or by the combination
|
|
116
|
-
* of `organizationId`/`userId`, `connector`, and `identifier`.
|
|
117
|
-
*/
|
|
118
|
-
deleteConnectedAccount(params) {
|
|
119
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
const { connector, identifier, organizationId, userId, connectedAccountId } = params;
|
|
121
|
-
const request = {
|
|
122
|
-
connector,
|
|
123
|
-
identifier,
|
|
124
|
-
};
|
|
125
|
-
if (organizationId) {
|
|
126
|
-
request.organizationId = organizationId;
|
|
127
|
-
}
|
|
128
|
-
if (userId) {
|
|
129
|
-
request.userId = userId;
|
|
130
|
-
}
|
|
131
|
-
if (connectedAccountId) {
|
|
132
|
-
request.id = connectedAccountId;
|
|
133
|
-
}
|
|
134
|
-
return this.coreClient.connectExec(this.client.deleteConnectedAccount, request);
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Generates a time-limited magic link for connecting or re-authorizing a third-party account.
|
|
139
|
-
*/
|
|
140
|
-
getMagicLinkForConnectedAccount(params) {
|
|
141
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
-
const { connector, identifier, organizationId, userId, connectedAccountId } = params;
|
|
143
|
-
const request = {
|
|
144
|
-
connector,
|
|
145
|
-
identifier,
|
|
146
|
-
};
|
|
147
|
-
if (organizationId) {
|
|
148
|
-
request.organizationId = organizationId;
|
|
149
|
-
}
|
|
150
|
-
if (userId) {
|
|
151
|
-
request.userId = userId;
|
|
152
|
-
}
|
|
153
|
-
if (connectedAccountId) {
|
|
154
|
-
request.id = connectedAccountId;
|
|
155
|
-
}
|
|
156
|
-
return this.coreClient.connectExec(this.client.getMagicLinkForConnectedAccount, request);
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Retrieves complete authentication details for a connected account.
|
|
161
|
-
*
|
|
162
|
-
* This method returns sensitive credential information, so ensure you protect access
|
|
163
|
-
* to this in your application.
|
|
164
|
-
*/
|
|
165
|
-
getConnectedAccountByIdentifier(params) {
|
|
166
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
-
const { connector, identifier, organizationId, userId, connectedAccountId } = params;
|
|
168
|
-
const request = {
|
|
169
|
-
connector,
|
|
170
|
-
identifier,
|
|
171
|
-
};
|
|
172
|
-
if (organizationId) {
|
|
173
|
-
request.organizationId = organizationId;
|
|
174
|
-
}
|
|
175
|
-
if (userId) {
|
|
176
|
-
request.userId = userId;
|
|
177
|
-
}
|
|
178
|
-
if (connectedAccountId) {
|
|
179
|
-
request.id = connectedAccountId;
|
|
180
|
-
}
|
|
181
|
-
return this.coreClient.connectExec(this.client.getConnectedAccountAuth, request);
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
exports.default = ConnectedAccountsClient;
|
|
186
|
-
//# sourceMappingURL=connected-accounts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../src/connected-accounts.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,qHAA+G;AAkB/G;;;;;;;;;GASG;AACH,MAAqB,uBAAuB;IAG1C,YACmB,WAAwB,EACxB,UAAsB;QADtB,gBAAW,GAAX,WAAW,CAAa;QACxB,eAAU,GAAV,UAAU,CAAY;QAEvC,IAAI,CAAC,MAAM,GAAG,IAAI,C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S,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,kBAAkB,EAAE,GACzE,MAAM,CAAC;YAET,MAAM,OAAO,GAA2D;gBACtE,SAAS;gBACT,UAAU;aACX,CAAC;YAEF,IAAI,cAAc,EAAE,CAAC;gBACnB,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;YAC1C,CAAC;YACD,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;YAC1B,CAAC;YACD,IAAI,kBAAkB,EAAE,CAAC;gBACvB,OAAO,CAAC,EAAE,GAAG,kBAAkB,CAAC;YAClC,CAAC;YAED,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAChC,IAAI,CAAC,MAAM,CAAC,uBAAuB,EACnC,OAAO,CACR,CAAC;QACJ,CAAC;KAAA;CACF;AAzPD,0CAyPC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ListAuthLogRequest, ListAuthLogResponse } from "./auditlogs_pb.js";
|
|
2
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
-
/**
|
|
4
|
-
* @generated from service scalekit.v1.auditlogs.AuditLogsService
|
|
5
|
-
*/
|
|
6
|
-
export declare const AuditLogsService: {
|
|
7
|
-
readonly typeName: "scalekit.v1.auditlogs.AuditLogsService";
|
|
8
|
-
readonly methods: {
|
|
9
|
-
/**
|
|
10
|
-
* @generated from rpc scalekit.v1.auditlogs.AuditLogsService.ListAuthRequests
|
|
11
|
-
*/
|
|
12
|
-
readonly listAuthRequests: {
|
|
13
|
-
readonly name: "ListAuthRequests";
|
|
14
|
-
readonly I: typeof ListAuthLogRequest;
|
|
15
|
-
readonly O: typeof ListAuthLogResponse;
|
|
16
|
-
readonly kind: MethodKind.Unary;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
3
|
-
// @generated from file scalekit/v1/auditlogs/auditlogs.proto (package scalekit.v1.auditlogs, syntax proto3)
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
// @ts-nocheck
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.AuditLogsService = void 0;
|
|
8
|
-
const auditlogs_pb_js_1 = require("./auditlogs_pb.js");
|
|
9
|
-
const protobuf_1 = require("@bufbuild/protobuf");
|
|
10
|
-
/**
|
|
11
|
-
* @generated from service scalekit.v1.auditlogs.AuditLogsService
|
|
12
|
-
*/
|
|
13
|
-
exports.AuditLogsService = {
|
|
14
|
-
typeName: "scalekit.v1.auditlogs.AuditLogsService",
|
|
15
|
-
methods: {
|
|
16
|
-
/**
|
|
17
|
-
* @generated from rpc scalekit.v1.auditlogs.AuditLogsService.ListAuthRequests
|
|
18
|
-
*/
|
|
19
|
-
listAuthRequests: {
|
|
20
|
-
name: "ListAuthRequests",
|
|
21
|
-
I: auditlogs_pb_js_1.ListAuthLogRequest,
|
|
22
|
-
O: auditlogs_pb_js_1.ListAuthLogResponse,
|
|
23
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=auditlogs_connect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auditlogs_connect.js","sourceRoot":"","sources":["../../../../../../src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,4GAA4G;AAC5G,oBAAoB;AACpB,cAAc;;;AAEd,uDAA4E;AAC5E,iDAAgD;AAEhD;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,wCAAwC;IAClD,OAAO,EAAE;QACP;;WAEG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,oCAAkB;YACrB,CAAC,EAAE,qCAAmB;YACtB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { DiscoveryAuthMethodRequest, DiscoveryAuthMethodResponse, GetAuthCustomizationsRequest, GetAuthCustomizationsResponse, GetAuthErrorRequest, GetAuthErrorResponse, GetAuthFeaturesResponse, GetAuthStateResponse, ListAuthMethodsRequest, ListAuthMethodsResponse, ListUserOrganizationsResponse, SignupOrganizationRequest, SignupOrganizationResponse, UpdateLoginUserDetailsRequest, VerifyPasswordLessOtpRequest, VerifyPasswordLessOtpResponse } from "./auth_pb.js";
|
|
2
|
-
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
3
|
-
/**
|
|
4
|
-
* @generated from service scalekit.v1.auth.AuthService
|
|
5
|
-
*/
|
|
6
|
-
export declare const AuthService: {
|
|
7
|
-
readonly typeName: "scalekit.v1.auth.AuthService";
|
|
8
|
-
readonly methods: {
|
|
9
|
-
/**
|
|
10
|
-
* @generated from rpc scalekit.v1.auth.AuthService.ListAuthMethods
|
|
11
|
-
*/
|
|
12
|
-
readonly listAuthMethods: {
|
|
13
|
-
readonly name: "ListAuthMethods";
|
|
14
|
-
readonly I: typeof ListAuthMethodsRequest;
|
|
15
|
-
readonly O: typeof ListAuthMethodsResponse;
|
|
16
|
-
readonly kind: MethodKind.Unary;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @generated from rpc scalekit.v1.auth.AuthService.DiscoveryAuthMethod
|
|
20
|
-
*/
|
|
21
|
-
readonly discoveryAuthMethod: {
|
|
22
|
-
readonly name: "DiscoveryAuthMethod";
|
|
23
|
-
readonly I: typeof DiscoveryAuthMethodRequest;
|
|
24
|
-
readonly O: typeof DiscoveryAuthMethodResponse;
|
|
25
|
-
readonly kind: MethodKind.Unary;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @generated from rpc scalekit.v1.auth.AuthService.VerifyPasswordLessOtp
|
|
29
|
-
*/
|
|
30
|
-
readonly verifyPasswordLessOtp: {
|
|
31
|
-
readonly name: "VerifyPasswordLessOtp";
|
|
32
|
-
readonly I: typeof VerifyPasswordLessOtpRequest;
|
|
33
|
-
readonly O: typeof VerifyPasswordLessOtpResponse;
|
|
34
|
-
readonly kind: MethodKind.Unary;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* @generated from rpc scalekit.v1.auth.AuthService.ResendPasswordless
|
|
38
|
-
*/
|
|
39
|
-
readonly resendPasswordless: {
|
|
40
|
-
readonly name: "ResendPasswordless";
|
|
41
|
-
readonly I: typeof Empty;
|
|
42
|
-
readonly O: typeof Empty;
|
|
43
|
-
readonly kind: MethodKind.Unary;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* @generated from rpc scalekit.v1.auth.AuthService.ListUserOrganizations
|
|
47
|
-
*/
|
|
48
|
-
readonly listUserOrganizations: {
|
|
49
|
-
readonly name: "ListUserOrganizations";
|
|
50
|
-
readonly I: typeof Empty;
|
|
51
|
-
readonly O: typeof ListUserOrganizationsResponse;
|
|
52
|
-
readonly kind: MethodKind.Unary;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @generated from rpc scalekit.v1.auth.AuthService.SignupOrganization
|
|
56
|
-
*/
|
|
57
|
-
readonly signupOrganization: {
|
|
58
|
-
readonly name: "SignupOrganization";
|
|
59
|
-
readonly I: typeof SignupOrganizationRequest;
|
|
60
|
-
readonly O: typeof SignupOrganizationResponse;
|
|
61
|
-
readonly kind: MethodKind.Unary;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthState
|
|
65
|
-
*/
|
|
66
|
-
readonly getAuthState: {
|
|
67
|
-
readonly name: "GetAuthState";
|
|
68
|
-
readonly I: typeof Empty;
|
|
69
|
-
readonly O: typeof GetAuthStateResponse;
|
|
70
|
-
readonly kind: MethodKind.Unary;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthError
|
|
74
|
-
*/
|
|
75
|
-
readonly getAuthError: {
|
|
76
|
-
readonly name: "GetAuthError";
|
|
77
|
-
readonly I: typeof GetAuthErrorRequest;
|
|
78
|
-
readonly O: typeof GetAuthErrorResponse;
|
|
79
|
-
readonly kind: MethodKind.Unary;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @generated from rpc scalekit.v1.auth.AuthService.Logout
|
|
83
|
-
*/
|
|
84
|
-
readonly logout: {
|
|
85
|
-
readonly name: "Logout";
|
|
86
|
-
readonly I: typeof Empty;
|
|
87
|
-
readonly O: typeof Empty;
|
|
88
|
-
readonly kind: MethodKind.Unary;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthCustomizations
|
|
92
|
-
*/
|
|
93
|
-
readonly getAuthCustomizations: {
|
|
94
|
-
readonly name: "GetAuthCustomizations";
|
|
95
|
-
readonly I: typeof GetAuthCustomizationsRequest;
|
|
96
|
-
readonly O: typeof GetAuthCustomizationsResponse;
|
|
97
|
-
readonly kind: MethodKind.Unary;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthFeatures
|
|
101
|
-
*/
|
|
102
|
-
readonly getAuthFeatures: {
|
|
103
|
-
readonly name: "GetAuthFeatures";
|
|
104
|
-
readonly I: typeof Empty;
|
|
105
|
-
readonly O: typeof GetAuthFeaturesResponse;
|
|
106
|
-
readonly kind: MethodKind.Unary;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* @generated from rpc scalekit.v1.auth.AuthService.UpdateLoginUserDetails
|
|
110
|
-
*/
|
|
111
|
-
readonly updateLoginUserDetails: {
|
|
112
|
-
readonly name: "UpdateLoginUserDetails";
|
|
113
|
-
readonly I: typeof UpdateLoginUserDetailsRequest;
|
|
114
|
-
readonly O: typeof Empty;
|
|
115
|
-
readonly kind: MethodKind.Unary;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
3
|
-
// @generated from file scalekit/v1/auth/auth.proto (package scalekit.v1.auth, syntax proto3)
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
// @ts-nocheck
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.AuthService = void 0;
|
|
8
|
-
const auth_pb_js_1 = require("./auth_pb.js");
|
|
9
|
-
const protobuf_1 = require("@bufbuild/protobuf");
|
|
10
|
-
/**
|
|
11
|
-
* @generated from service scalekit.v1.auth.AuthService
|
|
12
|
-
*/
|
|
13
|
-
exports.AuthService = {
|
|
14
|
-
typeName: "scalekit.v1.auth.AuthService",
|
|
15
|
-
methods: {
|
|
16
|
-
/**
|
|
17
|
-
* @generated from rpc scalekit.v1.auth.AuthService.ListAuthMethods
|
|
18
|
-
*/
|
|
19
|
-
listAuthMethods: {
|
|
20
|
-
name: "ListAuthMethods",
|
|
21
|
-
I: auth_pb_js_1.ListAuthMethodsRequest,
|
|
22
|
-
O: auth_pb_js_1.ListAuthMethodsResponse,
|
|
23
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
24
|
-
},
|
|
25
|
-
/**
|
|
26
|
-
* @generated from rpc scalekit.v1.auth.AuthService.DiscoveryAuthMethod
|
|
27
|
-
*/
|
|
28
|
-
discoveryAuthMethod: {
|
|
29
|
-
name: "DiscoveryAuthMethod",
|
|
30
|
-
I: auth_pb_js_1.DiscoveryAuthMethodRequest,
|
|
31
|
-
O: auth_pb_js_1.DiscoveryAuthMethodResponse,
|
|
32
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* @generated from rpc scalekit.v1.auth.AuthService.VerifyPasswordLessOtp
|
|
36
|
-
*/
|
|
37
|
-
verifyPasswordLessOtp: {
|
|
38
|
-
name: "VerifyPasswordLessOtp",
|
|
39
|
-
I: auth_pb_js_1.VerifyPasswordLessOtpRequest,
|
|
40
|
-
O: auth_pb_js_1.VerifyPasswordLessOtpResponse,
|
|
41
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* @generated from rpc scalekit.v1.auth.AuthService.ResendPasswordless
|
|
45
|
-
*/
|
|
46
|
-
resendPasswordless: {
|
|
47
|
-
name: "ResendPasswordless",
|
|
48
|
-
I: protobuf_1.Empty,
|
|
49
|
-
O: protobuf_1.Empty,
|
|
50
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
51
|
-
},
|
|
52
|
-
/**
|
|
53
|
-
* @generated from rpc scalekit.v1.auth.AuthService.ListUserOrganizations
|
|
54
|
-
*/
|
|
55
|
-
listUserOrganizations: {
|
|
56
|
-
name: "ListUserOrganizations",
|
|
57
|
-
I: protobuf_1.Empty,
|
|
58
|
-
O: auth_pb_js_1.ListUserOrganizationsResponse,
|
|
59
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
60
|
-
},
|
|
61
|
-
/**
|
|
62
|
-
* @generated from rpc scalekit.v1.auth.AuthService.SignupOrganization
|
|
63
|
-
*/
|
|
64
|
-
signupOrganization: {
|
|
65
|
-
name: "SignupOrganization",
|
|
66
|
-
I: auth_pb_js_1.SignupOrganizationRequest,
|
|
67
|
-
O: auth_pb_js_1.SignupOrganizationResponse,
|
|
68
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
69
|
-
},
|
|
70
|
-
/**
|
|
71
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthState
|
|
72
|
-
*/
|
|
73
|
-
getAuthState: {
|
|
74
|
-
name: "GetAuthState",
|
|
75
|
-
I: protobuf_1.Empty,
|
|
76
|
-
O: auth_pb_js_1.GetAuthStateResponse,
|
|
77
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
78
|
-
},
|
|
79
|
-
/**
|
|
80
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthError
|
|
81
|
-
*/
|
|
82
|
-
getAuthError: {
|
|
83
|
-
name: "GetAuthError",
|
|
84
|
-
I: auth_pb_js_1.GetAuthErrorRequest,
|
|
85
|
-
O: auth_pb_js_1.GetAuthErrorResponse,
|
|
86
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
87
|
-
},
|
|
88
|
-
/**
|
|
89
|
-
* @generated from rpc scalekit.v1.auth.AuthService.Logout
|
|
90
|
-
*/
|
|
91
|
-
logout: {
|
|
92
|
-
name: "Logout",
|
|
93
|
-
I: protobuf_1.Empty,
|
|
94
|
-
O: protobuf_1.Empty,
|
|
95
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
96
|
-
},
|
|
97
|
-
/**
|
|
98
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthCustomizations
|
|
99
|
-
*/
|
|
100
|
-
getAuthCustomizations: {
|
|
101
|
-
name: "GetAuthCustomizations",
|
|
102
|
-
I: auth_pb_js_1.GetAuthCustomizationsRequest,
|
|
103
|
-
O: auth_pb_js_1.GetAuthCustomizationsResponse,
|
|
104
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
105
|
-
},
|
|
106
|
-
/**
|
|
107
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthFeatures
|
|
108
|
-
*/
|
|
109
|
-
getAuthFeatures: {
|
|
110
|
-
name: "GetAuthFeatures",
|
|
111
|
-
I: protobuf_1.Empty,
|
|
112
|
-
O: auth_pb_js_1.GetAuthFeaturesResponse,
|
|
113
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
114
|
-
},
|
|
115
|
-
/**
|
|
116
|
-
* @generated from rpc scalekit.v1.auth.AuthService.UpdateLoginUserDetails
|
|
117
|
-
*/
|
|
118
|
-
updateLoginUserDetails: {
|
|
119
|
-
name: "UpdateLoginUserDetails",
|
|
120
|
-
I: auth_pb_js_1.UpdateLoginUserDetailsRequest,
|
|
121
|
-
O: protobuf_1.Empty,
|
|
122
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
123
|
-
},
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
//# sourceMappingURL=auth_connect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth_connect.js","sourceRoot":"","sources":["../../../../../../src/pkg/grpc/scalekit/v1/auth/auth_connect.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,6FAA6F;AAC7F,oBAAoB;AACpB,cAAc;;;AAEd,6CAAid;AACjd,iDAAuD;AAEvD;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,QAAQ,EAAE,8BAA8B;IACxC,OAAO,EAAE;QACP;;WAEG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,mCAAsB;YACzB,CAAC,EAAE,oCAAuB;YAC1B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,mBAAmB,EAAE;YACnB,IAAI,EAAE,qBAAqB;YAC3B,CAAC,EAAE,uCAA0B;YAC7B,CAAC,EAAE,wCAA2B;YAC9B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,qBAAqB,EAAE;YACrB,IAAI,EAAE,uBAAuB;YAC7B,CAAC,EAAE,yCAA4B;YAC/B,CAAC,EAAE,0CAA6B;YAChC,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,kBAAkB,EAAE;YAClB,IAAI,EAAE,oBAAoB;YAC1B,CAAC,EAAE,gBAAK;YACR,CAAC,EAAE,gBAAK;YACR,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,qBAAqB,EAAE;YACrB,IAAI,EAAE,uBAAuB;YAC7B,CAAC,EAAE,gBAAK;YACR,CAAC,EAAE,0CAA6B;YAChC,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,kBAAkB,EAAE;YAClB,IAAI,EAAE,oBAAoB;YAC1B,CAAC,EAAE,sCAAyB;YAC5B,CAAC,EAAE,uCAA0B;YAC7B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,CAAC,EAAE,gBAAK;YACR,CAAC,EAAE,iCAAoB;YACvB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,CAAC,EAAE,gCAAmB;YACtB,CAAC,EAAE,iCAAoB;YACvB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,gBAAK;YACR,CAAC,EAAE,gBAAK;YACR,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,qBAAqB,EAAE;YACrB,IAAI,EAAE,uBAAuB;YAC7B,CAAC,EAAE,yCAA4B;YAC/B,CAAC,EAAE,0CAA6B;YAChC,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,gBAAK;YACR,CAAC,EAAE,oCAAuB;YAC1B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,sBAAsB,EAAE;YACtB,IAAI,EAAE,wBAAwB;YAC9B,CAAC,EAAE,0CAA6B;YAChC,CAAC,EAAE,gBAAK;YACR,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ResendPasswordlessRequest, SendPasswordlessRequest, SendPasswordlessResponse, VerifyPasswordLessRequest, VerifyPasswordLessResponse } from "./passwordless_pb.js";
|
|
2
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
-
/**
|
|
4
|
-
* @generated from service scalekit.v1.auth.passwordless.PasswordlessService
|
|
5
|
-
*/
|
|
6
|
-
export declare const PasswordlessService: {
|
|
7
|
-
readonly typeName: "scalekit.v1.auth.passwordless.PasswordlessService";
|
|
8
|
-
readonly methods: {
|
|
9
|
-
/**
|
|
10
|
-
* @generated from rpc scalekit.v1.auth.passwordless.PasswordlessService.SendPasswordlessEmail
|
|
11
|
-
*/
|
|
12
|
-
readonly sendPasswordlessEmail: {
|
|
13
|
-
readonly name: "SendPasswordlessEmail";
|
|
14
|
-
readonly I: typeof SendPasswordlessRequest;
|
|
15
|
-
readonly O: typeof SendPasswordlessResponse;
|
|
16
|
-
readonly kind: MethodKind.Unary;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @generated from rpc scalekit.v1.auth.passwordless.PasswordlessService.VerifyPasswordlessEmail
|
|
20
|
-
*/
|
|
21
|
-
readonly verifyPasswordlessEmail: {
|
|
22
|
-
readonly name: "VerifyPasswordlessEmail";
|
|
23
|
-
readonly I: typeof VerifyPasswordLessRequest;
|
|
24
|
-
readonly O: typeof VerifyPasswordLessResponse;
|
|
25
|
-
readonly kind: MethodKind.Unary;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @generated from rpc scalekit.v1.auth.passwordless.PasswordlessService.ResendPasswordlessEmail
|
|
29
|
-
*/
|
|
30
|
-
readonly resendPasswordlessEmail: {
|
|
31
|
-
readonly name: "ResendPasswordlessEmail";
|
|
32
|
-
readonly I: typeof ResendPasswordlessRequest;
|
|
33
|
-
readonly O: typeof SendPasswordlessResponse;
|
|
34
|
-
readonly kind: MethodKind.Unary;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
3
|
-
// @generated from file scalekit/v1/auth/passwordless.proto (package scalekit.v1.auth.passwordless, syntax proto3)
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
// @ts-nocheck
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.PasswordlessService = void 0;
|
|
8
|
-
const passwordless_pb_js_1 = require("./passwordless_pb.js");
|
|
9
|
-
const protobuf_1 = require("@bufbuild/protobuf");
|
|
10
|
-
/**
|
|
11
|
-
* @generated from service scalekit.v1.auth.passwordless.PasswordlessService
|
|
12
|
-
*/
|
|
13
|
-
exports.PasswordlessService = {
|
|
14
|
-
typeName: "scalekit.v1.auth.passwordless.PasswordlessService",
|
|
15
|
-
methods: {
|
|
16
|
-
/**
|
|
17
|
-
* @generated from rpc scalekit.v1.auth.passwordless.PasswordlessService.SendPasswordlessEmail
|
|
18
|
-
*/
|
|
19
|
-
sendPasswordlessEmail: {
|
|
20
|
-
name: "SendPasswordlessEmail",
|
|
21
|
-
I: passwordless_pb_js_1.SendPasswordlessRequest,
|
|
22
|
-
O: passwordless_pb_js_1.SendPasswordlessResponse,
|
|
23
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
24
|
-
},
|
|
25
|
-
/**
|
|
26
|
-
* @generated from rpc scalekit.v1.auth.passwordless.PasswordlessService.VerifyPasswordlessEmail
|
|
27
|
-
*/
|
|
28
|
-
verifyPasswordlessEmail: {
|
|
29
|
-
name: "VerifyPasswordlessEmail",
|
|
30
|
-
I: passwordless_pb_js_1.VerifyPasswordLessRequest,
|
|
31
|
-
O: passwordless_pb_js_1.VerifyPasswordLessResponse,
|
|
32
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* @generated from rpc scalekit.v1.auth.passwordless.PasswordlessService.ResendPasswordlessEmail
|
|
36
|
-
*/
|
|
37
|
-
resendPasswordlessEmail: {
|
|
38
|
-
name: "ResendPasswordlessEmail",
|
|
39
|
-
I: passwordless_pb_js_1.ResendPasswordlessRequest,
|
|
40
|
-
O: passwordless_pb_js_1.SendPasswordlessResponse,
|
|
41
|
-
kind: protobuf_1.MethodKind.Unary,
|
|
42
|
-
},
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=passwordless_connect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"passwordless_connect.js","sourceRoot":"","sources":["../../../../../../src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,kHAAkH;AAClH,oBAAoB;AACpB,cAAc;;;AAEd,6DAA2K;AAC3K,iDAAgD;AAEhD;;GAEG;AACU,QAAA,mBAAmB,GAAG;IACjC,QAAQ,EAAE,mDAAmD;IAC7D,OAAO,EAAE;QACP;;WAEG;QACH,qBAAqB,EAAE;YACrB,IAAI,EAAE,uBAAuB;YAC7B,CAAC,EAAE,4CAAuB;YAC1B,CAAC,EAAE,6CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,uBAAuB,EAAE;YACvB,IAAI,EAAE,yBAAyB;YAC/B,CAAC,EAAE,8CAAyB;YAC5B,CAAC,EAAE,+CAA0B;YAC7B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,uBAAuB,EAAE;YACvB,IAAI,EAAE,yBAAyB;YAC/B,CAAC,EAAE,8CAAyB;YAC5B,CAAC,EAAE,6CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { BeginAuthenticationRequest, BeginAuthenticationResponse, BeginRegistrationRequest, BeginRegistrationResponse, DeleteCredentialRequest, DeleteCredentialResponse, FinishAuthenticationRequest, FinishAuthenticationResponse, FinishRegistrationRequest, FinishRegistrationResponse, GetRelatedOriginsRequest, GetRelatedOriginsResponse, ListCredentialsRequest, ListCredentialsResponse, UpdateCredentialRequest, UpdateCredentialResponse } from "./webauthn_pb.js";
|
|
2
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
-
/**
|
|
4
|
-
* @generated from service scalekit.v1.auth.webauthn.WebAuthnService
|
|
5
|
-
*/
|
|
6
|
-
export declare const WebAuthnService: {
|
|
7
|
-
readonly typeName: "scalekit.v1.auth.webauthn.WebAuthnService";
|
|
8
|
-
readonly methods: {
|
|
9
|
-
/**
|
|
10
|
-
* @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.BeginRegistration
|
|
11
|
-
*/
|
|
12
|
-
readonly beginRegistration: {
|
|
13
|
-
readonly name: "BeginRegistration";
|
|
14
|
-
readonly I: typeof BeginRegistrationRequest;
|
|
15
|
-
readonly O: typeof BeginRegistrationResponse;
|
|
16
|
-
readonly kind: MethodKind.Unary;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.FinishRegistration
|
|
20
|
-
*/
|
|
21
|
-
readonly finishRegistration: {
|
|
22
|
-
readonly name: "FinishRegistration";
|
|
23
|
-
readonly I: typeof FinishRegistrationRequest;
|
|
24
|
-
readonly O: typeof FinishRegistrationResponse;
|
|
25
|
-
readonly kind: MethodKind.Unary;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.BeginAuthentication
|
|
29
|
-
*/
|
|
30
|
-
readonly beginAuthentication: {
|
|
31
|
-
readonly name: "BeginAuthentication";
|
|
32
|
-
readonly I: typeof BeginAuthenticationRequest;
|
|
33
|
-
readonly O: typeof BeginAuthenticationResponse;
|
|
34
|
-
readonly kind: MethodKind.Unary;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.FinishAuthentication
|
|
38
|
-
*/
|
|
39
|
-
readonly finishAuthentication: {
|
|
40
|
-
readonly name: "FinishAuthentication";
|
|
41
|
-
readonly I: typeof FinishAuthenticationRequest;
|
|
42
|
-
readonly O: typeof FinishAuthenticationResponse;
|
|
43
|
-
readonly kind: MethodKind.Unary;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.ListCredentials
|
|
47
|
-
*/
|
|
48
|
-
readonly listCredentials: {
|
|
49
|
-
readonly name: "ListCredentials";
|
|
50
|
-
readonly I: typeof ListCredentialsRequest;
|
|
51
|
-
readonly O: typeof ListCredentialsResponse;
|
|
52
|
-
readonly kind: MethodKind.Unary;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.DeleteCredential
|
|
56
|
-
*/
|
|
57
|
-
readonly deleteCredential: {
|
|
58
|
-
readonly name: "DeleteCredential";
|
|
59
|
-
readonly I: typeof DeleteCredentialRequest;
|
|
60
|
-
readonly O: typeof DeleteCredentialResponse;
|
|
61
|
-
readonly kind: MethodKind.Unary;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.UpdateCredential
|
|
65
|
-
*/
|
|
66
|
-
readonly updateCredential: {
|
|
67
|
-
readonly name: "UpdateCredential";
|
|
68
|
-
readonly I: typeof UpdateCredentialRequest;
|
|
69
|
-
readonly O: typeof UpdateCredentialResponse;
|
|
70
|
-
readonly kind: MethodKind.Unary;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* @generated from rpc scalekit.v1.auth.webauthn.WebAuthnService.GetRelatedOrigins
|
|
74
|
-
*/
|
|
75
|
-
readonly getRelatedOrigins: {
|
|
76
|
-
readonly name: "GetRelatedOrigins";
|
|
77
|
-
readonly I: typeof GetRelatedOriginsRequest;
|
|
78
|
-
readonly O: typeof GetRelatedOriginsResponse;
|
|
79
|
-
readonly kind: MethodKind.Unary;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|