@shakibdshy/signet-auth-client 1.0.0-beta.2 → 1.0.0-beta.4
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/README.md +3 -3
- package/dist/schema.d.ts +29 -34
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,8 +14,8 @@ It attaches cookies and the CSRF token, so your frontend never builds those requ
|
|
|
14
14
|
| **Calls that backend from a frontend** | Browser, Node.js | TypeScript, JavaScript | **`@shakibdshy/signet-auth-client`** (this package) |
|
|
15
15
|
| Shares the Session with React components and guards routes (optional) | Browser | TypeScript, React | `@shakibdshy/signet-auth-react` |
|
|
16
16
|
|
|
17
|
-
Current version: **`1.0.0-beta.
|
|
18
|
-
`v1.0.0`. The Go module (`v1.0.0-beta.
|
|
17
|
+
Current version: **`1.0.0-beta.4`**, a pre-1.0 release, so the API may still change before
|
|
18
|
+
`v1.0.0`. The Go module (`v1.0.0-beta.4`) and both npm packages (`1.0.0-beta.4`) are released
|
|
19
19
|
together at the same version.
|
|
20
20
|
|
|
21
21
|
> **This package does not implement authentication.** Every request goes to the Signet
|
|
@@ -46,7 +46,7 @@ no separate auth server to install.
|
|
|
46
46
|
## Install
|
|
47
47
|
|
|
48
48
|
```sh
|
|
49
|
-
npm install @shakibdshy/signet-auth-client@1.0.0-beta.
|
|
49
|
+
npm install @shakibdshy/signet-auth-client@1.0.0-beta.4
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
To use a change that is not published yet, install from a checkout of the repository:
|
package/dist/schema.d.ts
CHANGED
|
@@ -1143,29 +1143,26 @@ export interface components {
|
|
|
1143
1143
|
provider_user_id: string;
|
|
1144
1144
|
};
|
|
1145
1145
|
AddOrganizationMemberInput: {
|
|
1146
|
-
|
|
1146
|
+
email?: string;
|
|
1147
|
+
organization_id: string;
|
|
1147
1148
|
role: string;
|
|
1148
|
-
user_id
|
|
1149
|
+
user_id?: string;
|
|
1149
1150
|
};
|
|
1150
1151
|
AdminListUsersResult: {
|
|
1151
|
-
|
|
1152
|
+
users: components["schemas"]["UserInfo"][];
|
|
1152
1153
|
};
|
|
1153
1154
|
AdminSetUserRoleInput: {
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
SessionToken: string;
|
|
1157
|
-
UserID: string;
|
|
1155
|
+
roles: string[];
|
|
1156
|
+
user_id: string;
|
|
1158
1157
|
};
|
|
1159
1158
|
ApiError: {
|
|
1160
1159
|
/** @enum {string} */
|
|
1161
|
-
error: "captcha_unavailable" | "code_already_used" | "csrf" | "email_exists" | "email_not_verified" | "forbidden" | "internal_error" | "invalid_code" | "invalid_credentials" | "invalid_input" | "invalid_link" | "invalid_request" | "invalid_token" | "last_account" | "link_already_used" | "not_found" | "oauth_account_conflict" | "oauth_email_not_verified" | "password_compromised" | "rate_limited" | "saml_connection_not_found" | "saml_invalid_assertion" | "saml_replay" | "sso_connection_not_found" | "sso_domain_not_verified" | "sso_invalid_assertion" | "two_factor_not_enabled" | "two_factor_required" | "unauthorized" | "username_taken";
|
|
1160
|
+
error: "captcha_unavailable" | "code_already_used" | "csrf" | "email_exists" | "email_not_verified" | "forbidden" | "internal_error" | "invalid_code" | "invalid_credentials" | "invalid_input" | "invalid_link" | "invalid_request" | "invalid_token" | "last_account" | "link_already_used" | "not_found" | "oauth_account_conflict" | "oauth_email_not_verified" | "password_compromised" | "rate_limited" | "saml_connection_not_found" | "saml_invalid_assertion" | "saml_replay" | "session_not_fresh" | "sso_connection_not_found" | "sso_domain_not_verified" | "sso_invalid_assertion" | "two_factor_not_enabled" | "two_factor_required" | "unauthorized" | "user_not_found" | "username_taken";
|
|
1162
1161
|
message: string;
|
|
1163
1162
|
};
|
|
1164
1163
|
BanUserInput: {
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
SessionToken: string;
|
|
1168
|
-
UserID: string;
|
|
1164
|
+
reason: string;
|
|
1165
|
+
user_id: string;
|
|
1169
1166
|
};
|
|
1170
1167
|
ChangeEmailInput: {
|
|
1171
1168
|
current_password: string;
|
|
@@ -1195,7 +1192,7 @@ export interface components {
|
|
|
1195
1192
|
owner_id: string;
|
|
1196
1193
|
};
|
|
1197
1194
|
CreateOrganizationResult: {
|
|
1198
|
-
|
|
1195
|
+
organization: components["schemas"]["Organization"];
|
|
1199
1196
|
};
|
|
1200
1197
|
CreateSSOConnectionInput: {
|
|
1201
1198
|
client_id: string;
|
|
@@ -1231,29 +1228,29 @@ export interface components {
|
|
|
1231
1228
|
password: string;
|
|
1232
1229
|
};
|
|
1233
1230
|
ImpersonateUserInput: {
|
|
1234
|
-
|
|
1235
|
-
SessionToken: string;
|
|
1236
|
-
UserID: string;
|
|
1231
|
+
user_id: string;
|
|
1237
1232
|
};
|
|
1238
1233
|
ImpersonationResult: {
|
|
1239
|
-
|
|
1240
|
-
|
|
1234
|
+
admin_id: string;
|
|
1235
|
+
token: string;
|
|
1241
1236
|
};
|
|
1242
1237
|
ListAPIKeysResult: {
|
|
1243
1238
|
keys: components["schemas"]["APIKey"][];
|
|
1244
1239
|
};
|
|
1245
1240
|
ListOrganizationMembersResult: {
|
|
1246
|
-
|
|
1241
|
+
members: components["schemas"]["MemberInfo"][];
|
|
1247
1242
|
};
|
|
1248
1243
|
ListOrganizationsResult: {
|
|
1249
|
-
|
|
1244
|
+
organizations: components["schemas"]["Organization"][];
|
|
1250
1245
|
};
|
|
1251
1246
|
ListSessionsResult: {
|
|
1252
|
-
|
|
1247
|
+
sessions: components["schemas"]["SessionInfo"][];
|
|
1253
1248
|
};
|
|
1254
1249
|
MemberInfo: {
|
|
1255
|
-
|
|
1256
|
-
|
|
1250
|
+
email: string;
|
|
1251
|
+
name: string;
|
|
1252
|
+
role: string;
|
|
1253
|
+
user_id: string;
|
|
1257
1254
|
};
|
|
1258
1255
|
OAuthAuthorizeInput: {
|
|
1259
1256
|
audience: string;
|
|
@@ -1293,10 +1290,10 @@ export interface components {
|
|
|
1293
1290
|
};
|
|
1294
1291
|
Organization: {
|
|
1295
1292
|
/** Format: date-time */
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1293
|
+
created_at: string;
|
|
1294
|
+
id: string;
|
|
1295
|
+
name: string;
|
|
1296
|
+
owner_id: string;
|
|
1300
1297
|
};
|
|
1301
1298
|
PasskeyCeremonyResult: {
|
|
1302
1299
|
options: number[];
|
|
@@ -1340,7 +1337,7 @@ export interface components {
|
|
|
1340
1337
|
owner_user_id: string;
|
|
1341
1338
|
};
|
|
1342
1339
|
RevokeSessionInput: {
|
|
1343
|
-
|
|
1340
|
+
session_id: string;
|
|
1344
1341
|
};
|
|
1345
1342
|
SAMLACSResult: {
|
|
1346
1343
|
last_sign_in_method: string;
|
|
@@ -1418,7 +1415,7 @@ export interface components {
|
|
|
1418
1415
|
username: string;
|
|
1419
1416
|
};
|
|
1420
1417
|
SetActiveOrganizationInput: {
|
|
1421
|
-
|
|
1418
|
+
organization_id: string;
|
|
1422
1419
|
};
|
|
1423
1420
|
SignInInput: {
|
|
1424
1421
|
email?: string;
|
|
@@ -1426,10 +1423,10 @@ export interface components {
|
|
|
1426
1423
|
username?: string;
|
|
1427
1424
|
};
|
|
1428
1425
|
SignInResult: {
|
|
1429
|
-
SessionToken: string;
|
|
1430
|
-
User: components["schemas"]["User"];
|
|
1431
1426
|
last_sign_in_method?: string;
|
|
1427
|
+
session_token: string;
|
|
1432
1428
|
two_factor_challenge?: string;
|
|
1429
|
+
user: components["schemas"]["User"];
|
|
1433
1430
|
};
|
|
1434
1431
|
SignOutInput: {
|
|
1435
1432
|
session_token?: string;
|
|
@@ -1463,9 +1460,7 @@ export interface components {
|
|
|
1463
1460
|
two_factor_challenge?: string;
|
|
1464
1461
|
};
|
|
1465
1462
|
UnbanUserInput: {
|
|
1466
|
-
|
|
1467
|
-
SessionToken: string;
|
|
1468
|
-
UserID: string;
|
|
1463
|
+
user_id: string;
|
|
1469
1464
|
};
|
|
1470
1465
|
UnlinkAccountInput: {
|
|
1471
1466
|
account_id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shakibdshy/signet-auth-client",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.4",
|
|
4
4
|
"description": "Typed TypeScript client for Signet's HTTP API — the frontend half of Signet, an embeddable authentication library for Go",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|