@shakibdshy/signet-auth-client 1.0.0-beta.3 → 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 +24 -30
- 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
|
@@ -1144,29 +1144,25 @@ export interface components {
|
|
|
1144
1144
|
};
|
|
1145
1145
|
AddOrganizationMemberInput: {
|
|
1146
1146
|
email?: string;
|
|
1147
|
-
|
|
1147
|
+
organization_id: string;
|
|
1148
1148
|
role: string;
|
|
1149
1149
|
user_id?: string;
|
|
1150
1150
|
};
|
|
1151
1151
|
AdminListUsersResult: {
|
|
1152
|
-
|
|
1152
|
+
users: components["schemas"]["UserInfo"][];
|
|
1153
1153
|
};
|
|
1154
1154
|
AdminSetUserRoleInput: {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
SessionToken: string;
|
|
1158
|
-
UserID: string;
|
|
1155
|
+
roles: string[];
|
|
1156
|
+
user_id: string;
|
|
1159
1157
|
};
|
|
1160
1158
|
ApiError: {
|
|
1161
1159
|
/** @enum {string} */
|
|
1162
|
-
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" | "user_not_found" | "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";
|
|
1163
1161
|
message: string;
|
|
1164
1162
|
};
|
|
1165
1163
|
BanUserInput: {
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
SessionToken: string;
|
|
1169
|
-
UserID: string;
|
|
1164
|
+
reason: string;
|
|
1165
|
+
user_id: string;
|
|
1170
1166
|
};
|
|
1171
1167
|
ChangeEmailInput: {
|
|
1172
1168
|
current_password: string;
|
|
@@ -1196,7 +1192,7 @@ export interface components {
|
|
|
1196
1192
|
owner_id: string;
|
|
1197
1193
|
};
|
|
1198
1194
|
CreateOrganizationResult: {
|
|
1199
|
-
|
|
1195
|
+
organization: components["schemas"]["Organization"];
|
|
1200
1196
|
};
|
|
1201
1197
|
CreateSSOConnectionInput: {
|
|
1202
1198
|
client_id: string;
|
|
@@ -1232,29 +1228,29 @@ export interface components {
|
|
|
1232
1228
|
password: string;
|
|
1233
1229
|
};
|
|
1234
1230
|
ImpersonateUserInput: {
|
|
1235
|
-
|
|
1236
|
-
SessionToken: string;
|
|
1237
|
-
UserID: string;
|
|
1231
|
+
user_id: string;
|
|
1238
1232
|
};
|
|
1239
1233
|
ImpersonationResult: {
|
|
1240
|
-
|
|
1241
|
-
|
|
1234
|
+
admin_id: string;
|
|
1235
|
+
token: string;
|
|
1242
1236
|
};
|
|
1243
1237
|
ListAPIKeysResult: {
|
|
1244
1238
|
keys: components["schemas"]["APIKey"][];
|
|
1245
1239
|
};
|
|
1246
1240
|
ListOrganizationMembersResult: {
|
|
1247
|
-
|
|
1241
|
+
members: components["schemas"]["MemberInfo"][];
|
|
1248
1242
|
};
|
|
1249
1243
|
ListOrganizationsResult: {
|
|
1250
|
-
|
|
1244
|
+
organizations: components["schemas"]["Organization"][];
|
|
1251
1245
|
};
|
|
1252
1246
|
ListSessionsResult: {
|
|
1253
1247
|
sessions: components["schemas"]["SessionInfo"][];
|
|
1254
1248
|
};
|
|
1255
1249
|
MemberInfo: {
|
|
1256
|
-
|
|
1257
|
-
|
|
1250
|
+
email: string;
|
|
1251
|
+
name: string;
|
|
1252
|
+
role: string;
|
|
1253
|
+
user_id: string;
|
|
1258
1254
|
};
|
|
1259
1255
|
OAuthAuthorizeInput: {
|
|
1260
1256
|
audience: string;
|
|
@@ -1294,10 +1290,10 @@ export interface components {
|
|
|
1294
1290
|
};
|
|
1295
1291
|
Organization: {
|
|
1296
1292
|
/** Format: date-time */
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1293
|
+
created_at: string;
|
|
1294
|
+
id: string;
|
|
1295
|
+
name: string;
|
|
1296
|
+
owner_id: string;
|
|
1301
1297
|
};
|
|
1302
1298
|
PasskeyCeremonyResult: {
|
|
1303
1299
|
options: number[];
|
|
@@ -1341,7 +1337,7 @@ export interface components {
|
|
|
1341
1337
|
owner_user_id: string;
|
|
1342
1338
|
};
|
|
1343
1339
|
RevokeSessionInput: {
|
|
1344
|
-
|
|
1340
|
+
session_id: string;
|
|
1345
1341
|
};
|
|
1346
1342
|
SAMLACSResult: {
|
|
1347
1343
|
last_sign_in_method: string;
|
|
@@ -1419,7 +1415,7 @@ export interface components {
|
|
|
1419
1415
|
username: string;
|
|
1420
1416
|
};
|
|
1421
1417
|
SetActiveOrganizationInput: {
|
|
1422
|
-
|
|
1418
|
+
organization_id: string;
|
|
1423
1419
|
};
|
|
1424
1420
|
SignInInput: {
|
|
1425
1421
|
email?: string;
|
|
@@ -1464,9 +1460,7 @@ export interface components {
|
|
|
1464
1460
|
two_factor_challenge?: string;
|
|
1465
1461
|
};
|
|
1466
1462
|
UnbanUserInput: {
|
|
1467
|
-
|
|
1468
|
-
SessionToken: string;
|
|
1469
|
-
UserID: string;
|
|
1463
|
+
user_id: string;
|
|
1470
1464
|
};
|
|
1471
1465
|
UnlinkAccountInput: {
|
|
1472
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",
|