@scalekit-sdk/node 2.2.0-beta.1 → 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 -119
- package/lib/connected-accounts.js +0 -241
- 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 -358
- 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 -472
- package/tests/tools.test.ts +0 -239
|
@@ -1,241 +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 errors_1 = require("./errors");
|
|
13
|
-
const connected_accounts_connect_1 = require("./pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect");
|
|
14
|
-
const connected_accounts_pb_1 = require("./pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb");
|
|
15
|
-
/**
|
|
16
|
-
* Client for managing connected accounts for third-party integrations.
|
|
17
|
-
*
|
|
18
|
-
* This mirrors the Python SDK `ConnectedAccountsClient` and exposes a typed,
|
|
19
|
-
* ergonomic API around the `ConnectedAccountService` to:
|
|
20
|
-
* - list connected accounts
|
|
21
|
-
* - create/update/delete connected accounts
|
|
22
|
-
* - generate magic links for authorization
|
|
23
|
-
* - fetch full authentication details for a connected account
|
|
24
|
-
*/
|
|
25
|
-
class ConnectedAccountsClient {
|
|
26
|
-
constructor(grpcConnect, coreClient) {
|
|
27
|
-
this.grpcConnect = grpcConnect;
|
|
28
|
-
this.coreClient = coreClient;
|
|
29
|
-
this.client = this.grpcConnect.createClient(connected_accounts_connect_1.ConnectedAccountService);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Lists connected accounts with optional filters and pagination.
|
|
33
|
-
*
|
|
34
|
-
* @param options Optional filtering and pagination parameters
|
|
35
|
-
*/
|
|
36
|
-
listConnectedAccounts(options) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const request = {};
|
|
39
|
-
if (options === null || options === void 0 ? void 0 : options.organizationId) {
|
|
40
|
-
request.organizationId = options.organizationId;
|
|
41
|
-
}
|
|
42
|
-
if (options === null || options === void 0 ? void 0 : options.userId) {
|
|
43
|
-
request.userId = options.userId;
|
|
44
|
-
}
|
|
45
|
-
if (options === null || options === void 0 ? void 0 : options.connector) {
|
|
46
|
-
request.connector = options.connector;
|
|
47
|
-
}
|
|
48
|
-
if (options === null || options === void 0 ? void 0 : options.identifier) {
|
|
49
|
-
request.identifier = options.identifier;
|
|
50
|
-
}
|
|
51
|
-
if (options === null || options === void 0 ? void 0 : options.provider) {
|
|
52
|
-
request.provider = options.provider;
|
|
53
|
-
}
|
|
54
|
-
if ((options === null || options === void 0 ? void 0 : options.pageSize) !== undefined) {
|
|
55
|
-
request.pageSize = options.pageSize;
|
|
56
|
-
}
|
|
57
|
-
if (options === null || options === void 0 ? void 0 : options.pageToken) {
|
|
58
|
-
request.pageToken = options.pageToken;
|
|
59
|
-
}
|
|
60
|
-
if (options === null || options === void 0 ? void 0 : options.query) {
|
|
61
|
-
request.query = options.query;
|
|
62
|
-
}
|
|
63
|
-
return this.coreClient.connectExec(this.client.listConnectedAccounts, request);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Creates a new connected account.
|
|
68
|
-
*
|
|
69
|
-
* @param params Connected account creation parameters
|
|
70
|
-
*/
|
|
71
|
-
createConnectedAccount(params) {
|
|
72
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
const { connector, identifier, connectedAccount, organizationId, userId, } = params;
|
|
74
|
-
const request = {
|
|
75
|
-
connector,
|
|
76
|
-
identifier,
|
|
77
|
-
connectedAccount,
|
|
78
|
-
};
|
|
79
|
-
if (organizationId) {
|
|
80
|
-
request.organizationId = organizationId;
|
|
81
|
-
}
|
|
82
|
-
if (userId) {
|
|
83
|
-
request.userId = userId;
|
|
84
|
-
}
|
|
85
|
-
return this.coreClient.connectExec(this.client.createConnectedAccount, request);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Gets an existing connected account by connector and identifier, or creates one if none exists.
|
|
90
|
-
* Mirrors the Python SDK `get_or_create_connected_account`. When creating, the backend may require
|
|
91
|
-
* valid authorization details; if omitted, a minimal payload is sent and the server may return
|
|
92
|
-
* a validation error.
|
|
93
|
-
*
|
|
94
|
-
* @param params Get-or-create parameters
|
|
95
|
-
* @param params.connector Connector identifier (required)
|
|
96
|
-
* @param params.identifier Connected account identifier (required)
|
|
97
|
-
* @param params.authorizationDetails Optional auth details for the create path (OAuth token or static auth)
|
|
98
|
-
* @param params.organizationId Optional organization ID
|
|
99
|
-
* @param params.userId Optional user ID
|
|
100
|
-
* @param params.apiConfig Optional API config for the create path
|
|
101
|
-
*/
|
|
102
|
-
getOrCreateConnectedAccount(params) {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
const { connector, identifier, authorizationDetails, organizationId, userId, apiConfig, } = params;
|
|
105
|
-
if (!(connector === null || connector === void 0 ? void 0 : connector.trim())) {
|
|
106
|
-
throw new Error("connector is required");
|
|
107
|
-
}
|
|
108
|
-
if (!(identifier === null || identifier === void 0 ? void 0 : identifier.trim())) {
|
|
109
|
-
throw new Error("identifier is required");
|
|
110
|
-
}
|
|
111
|
-
try {
|
|
112
|
-
const getResponse = yield this.getConnectedAccountByIdentifier({
|
|
113
|
-
connector,
|
|
114
|
-
identifier,
|
|
115
|
-
organizationId,
|
|
116
|
-
userId,
|
|
117
|
-
});
|
|
118
|
-
return new connected_accounts_pb_1.CreateConnectedAccountResponse({
|
|
119
|
-
connectedAccount: getResponse.connectedAccount,
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
catch (err) {
|
|
123
|
-
if (!(err instanceof errors_1.ScalekitNotFoundException)) {
|
|
124
|
-
throw err;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
const connectedAccountPayload = new connected_accounts_pb_1.CreateConnectedAccount(Object.assign({ authorizationDetails: authorizationDetails
|
|
128
|
-
? authorizationDetails
|
|
129
|
-
: new connected_accounts_pb_1.AuthorizationDetails({
|
|
130
|
-
details: { case: "oauthToken", value: new connected_accounts_pb_1.OauthToken({}) },
|
|
131
|
-
}) }, (apiConfig != null && { apiConfig: apiConfig })));
|
|
132
|
-
return this.createConnectedAccount({
|
|
133
|
-
connector,
|
|
134
|
-
identifier,
|
|
135
|
-
connectedAccount: connectedAccountPayload,
|
|
136
|
-
organizationId,
|
|
137
|
-
userId,
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Updates an existing connected account.
|
|
143
|
-
*
|
|
144
|
-
* You can target the account either by `connectedAccountId` or by the combination
|
|
145
|
-
* of `organizationId`/`userId`, `connector`, and `identifier`.
|
|
146
|
-
*/
|
|
147
|
-
updateConnectedAccount(params) {
|
|
148
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
-
const { connector, identifier, connectedAccount, organizationId, userId, connectedAccountId, } = params;
|
|
150
|
-
const request = {
|
|
151
|
-
connector,
|
|
152
|
-
identifier,
|
|
153
|
-
connectedAccount,
|
|
154
|
-
};
|
|
155
|
-
if (organizationId) {
|
|
156
|
-
request.organizationId = organizationId;
|
|
157
|
-
}
|
|
158
|
-
if (userId) {
|
|
159
|
-
request.userId = userId;
|
|
160
|
-
}
|
|
161
|
-
if (connectedAccountId) {
|
|
162
|
-
request.id = connectedAccountId;
|
|
163
|
-
}
|
|
164
|
-
return this.coreClient.connectExec(this.client.updateConnectedAccount, request);
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Deletes a connected account and revokes its credentials.
|
|
169
|
-
*
|
|
170
|
-
* You can target the account either by `connectedAccountId` or by the combination
|
|
171
|
-
* of `organizationId`/`userId`, `connector`, and `identifier`.
|
|
172
|
-
*/
|
|
173
|
-
deleteConnectedAccount(params) {
|
|
174
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
-
const { connector, identifier, organizationId, userId, connectedAccountId } = params;
|
|
176
|
-
const request = {
|
|
177
|
-
connector,
|
|
178
|
-
identifier,
|
|
179
|
-
};
|
|
180
|
-
if (organizationId) {
|
|
181
|
-
request.organizationId = organizationId;
|
|
182
|
-
}
|
|
183
|
-
if (userId) {
|
|
184
|
-
request.userId = userId;
|
|
185
|
-
}
|
|
186
|
-
if (connectedAccountId) {
|
|
187
|
-
request.id = connectedAccountId;
|
|
188
|
-
}
|
|
189
|
-
return this.coreClient.connectExec(this.client.deleteConnectedAccount, request);
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Generates a time-limited magic link for connecting or re-authorizing a third-party account.
|
|
194
|
-
*/
|
|
195
|
-
getMagicLinkForConnectedAccount(params) {
|
|
196
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
-
const { connector, identifier, organizationId, userId, connectedAccountId } = params;
|
|
198
|
-
const request = {
|
|
199
|
-
connector,
|
|
200
|
-
identifier,
|
|
201
|
-
};
|
|
202
|
-
if (organizationId) {
|
|
203
|
-
request.organizationId = organizationId;
|
|
204
|
-
}
|
|
205
|
-
if (userId) {
|
|
206
|
-
request.userId = userId;
|
|
207
|
-
}
|
|
208
|
-
if (connectedAccountId) {
|
|
209
|
-
request.id = connectedAccountId;
|
|
210
|
-
}
|
|
211
|
-
return this.coreClient.connectExec(this.client.getMagicLinkForConnectedAccount, request);
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Retrieves complete authentication details for a connected account.
|
|
216
|
-
*
|
|
217
|
-
* This method returns sensitive credential information, so ensure you protect access
|
|
218
|
-
* to this in your application.
|
|
219
|
-
*/
|
|
220
|
-
getConnectedAccountByIdentifier(params) {
|
|
221
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
-
const { connector, identifier, organizationId, userId, connectedAccountId } = params;
|
|
223
|
-
const request = {
|
|
224
|
-
connector,
|
|
225
|
-
identifier,
|
|
226
|
-
};
|
|
227
|
-
if (organizationId) {
|
|
228
|
-
request.organizationId = organizationId;
|
|
229
|
-
}
|
|
230
|
-
if (userId) {
|
|
231
|
-
request.userId = userId;
|
|
232
|
-
}
|
|
233
|
-
if (connectedAccountId) {
|
|
234
|
-
request.id = connectedAccountId;
|
|
235
|
-
}
|
|
236
|
-
return this.coreClient.connectExec(this.client.getConnectedAccountAuth, request);
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
exports.default = ConnectedAccountsClient;
|
|
241
|
-
//# sourceMappingURL=connected-accounts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../src/connected-accounts.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,qCAAqD;AACrD,qHAA+G;AAC/G,2GAiByE;AAEzE;;;;;;;;;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,CAAC,WAAW,CAAC,YAAY,CAAC,oDAAuB,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACG,qBAAqB,CAAC,OAS3B;;YACC,MAAM,OAAO,GAAiD,EAAE,CAAC;YAEjE,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE,CAAC;gBAC5B,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;YAClD,CAAC;YACD,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE,CAAC;gBACpB,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;YAClC,CAAC;YACD,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,EAAE,CAAC;gBACvB,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;YACxC,CAAC;YACD,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,EAAE,CAAC;gBACxB,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;YAC1C,CAAC;YACD,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,EAAE,CAAC;gBACtB,OAAO,CAAC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ufbuild/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;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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"}
|