@sudoplatform/sudo-user 12.2.0 → 12.2.1
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/cjs/core/auth-store.js +2 -2
- package/cjs/core/auth-store.js.map +1 -1
- package/cjs/core/key-manager.js +2 -2
- package/cjs/core/key-manager.js.map +1 -1
- package/cjs/user/auth-provider.js +3 -4
- package/cjs/user/auth-provider.js.map +1 -1
- package/cjs/user/auth.js +2 -3
- package/cjs/user/auth.js.map +1 -1
- package/cjs/user/user-client.js +4 -5
- package/cjs/user/user-client.js.map +1 -1
- package/docs/assets/main.js +2 -52
- package/docs/assets/style.css +23 -0
- package/docs/classes/AlreadyRegisteredError.html +7 -7
- package/docs/classes/DefaultSudoUserClient.html +1 -1
- package/docs/classes/IdentityServiceConfigNotFoundError.html +7 -7
- package/docs/classes/LocalAuthenticationProvider.html +1 -1
- package/docs/classes/TESTAuthenticationProvider.html +1 -1
- package/docs/functions/internal.getIdentityServiceConfig.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interfaces/AuthenticationProvider.html +1 -1
- package/docs/interfaces/AuthenticationTokens.html +1 -1
- package/docs/interfaces/SudoUserClient.html +1 -1
- package/docs/modules/internal.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/internal.Config.html +1 -1
- package/docs/types/internal.FederatedSignInConfig.html +1 -1
- package/docs/types/internal.IdentityServiceConfig.html +1 -1
- package/docs/variables/internal.Config-1.html +1 -1
- package/docs/variables/internal.FederatedSignInConfigCodec.html +1 -1
- package/docs/variables/internal.IdentityServiceConfigCodec.html +1 -1
- package/lib/core/auth-store.js +2 -2
- package/lib/core/auth-store.js.map +1 -1
- package/lib/core/key-manager.js +2 -2
- package/lib/core/key-manager.js.map +1 -1
- package/lib/user/auth-provider.js +3 -3
- package/lib/user/auth-provider.js.map +1 -1
- package/lib/user/auth.js +2 -2
- package/lib/user/auth.js.map +1 -1
- package/lib/user/user-client.js +4 -4
- package/lib/user/user-client.js.map +1 -1
- package/package.json +33 -31
- package/types/core/sdk-config.d.ts +3 -3
- package/types/gen/graphql-types.d.ts +20 -20
- package/types/utils/resolvable-promise.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudoplatform/sudo-user",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.1",
|
|
4
4
|
"author": "Anonyome Labs, Inc.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"./lib/runtimes/node/node-crypto.js": "./lib/runtimes/browser/browser-crypto.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/client-cognito-identity-provider": "^3.
|
|
48
|
+
"@aws-sdk/client-cognito-identity-provider": "^3.241.0",
|
|
49
49
|
"@graphql-typed-document-node/core": "^3.1.1",
|
|
50
|
-
"@sudoplatform/sudo-web-crypto-provider": "^
|
|
50
|
+
"@sudoplatform/sudo-web-crypto-provider": "^8.0.0",
|
|
51
51
|
"amazon-cognito-auth-js": "^1.3.3",
|
|
52
52
|
"apollo-cache-inmemory": "^1.6.6",
|
|
53
|
-
"aws-appsync": "^4.1.
|
|
53
|
+
"aws-appsync": "^4.1.9",
|
|
54
54
|
"fp-ts": "^2.13.1",
|
|
55
55
|
"graphql": "^15.8.0",
|
|
56
|
-
"io-ts": "^2.2.
|
|
57
|
-
"jsonwebtoken": "^
|
|
56
|
+
"io-ts": "^2.2.20",
|
|
57
|
+
"jsonwebtoken": "^9.0.0",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
59
59
|
"monocle-ts": "^2.3.13",
|
|
60
60
|
"newtype-ts": "^0.3.5",
|
|
61
|
-
"tslib": "^2.4.
|
|
61
|
+
"tslib": "^2.4.1",
|
|
62
62
|
"uuid": "^9.0.0"
|
|
63
63
|
},
|
|
64
64
|
"resolutions": {
|
|
@@ -70,43 +70,45 @@
|
|
|
70
70
|
"cross-fetch": "^3.1.5",
|
|
71
71
|
"node-fetch": "^2.6.7",
|
|
72
72
|
"undici": "^5.10.0",
|
|
73
|
-
"minimatch": "^3.0.5"
|
|
73
|
+
"minimatch": "^3.0.5",
|
|
74
|
+
"jsonwebtoken": "^9.0.0",
|
|
75
|
+
"json5": "^2.2.2"
|
|
74
76
|
},
|
|
75
77
|
"devDependencies": {
|
|
76
|
-
"@graphql-codegen/add": "^3.2.
|
|
77
|
-
"@graphql-codegen/cli": "^2.
|
|
78
|
-
"@graphql-codegen/plugin-helpers": "^2.7.
|
|
79
|
-
"@graphql-codegen/typed-document-node": "^2.3.
|
|
80
|
-
"@graphql-codegen/typescript": "^2.
|
|
81
|
-
"@graphql-codegen/typescript-operations": "^2.5.
|
|
78
|
+
"@graphql-codegen/add": "^3.2.3",
|
|
79
|
+
"@graphql-codegen/cli": "^2.16.2",
|
|
80
|
+
"@graphql-codegen/plugin-helpers": "^2.7.2",
|
|
81
|
+
"@graphql-codegen/typed-document-node": "^2.3.11",
|
|
82
|
+
"@graphql-codegen/typescript": "^2.8.6",
|
|
83
|
+
"@graphql-codegen/typescript-operations": "^2.5.11",
|
|
82
84
|
"@graphql-typed-document-node/apollo-client-2": "^1.0.0",
|
|
83
|
-
"@sudoplatform/sudo-common": "^8.
|
|
85
|
+
"@sudoplatform/sudo-common": "^8.3.0",
|
|
84
86
|
"@types/amazon-cognito-auth-js": "^1.3.0",
|
|
85
87
|
"@types/firefox-webext-browser": "^94.0.1",
|
|
86
|
-
"@types/jest": "^29.2.
|
|
87
|
-
"@types/jsonwebtoken": "^
|
|
88
|
-
"@types/lodash": "^4.14.
|
|
89
|
-
"@types/node": "^16.18.
|
|
90
|
-
"@types/uuid": "^
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
92
|
-
"@typescript-eslint/parser": "^5.
|
|
88
|
+
"@types/jest": "^29.2.5",
|
|
89
|
+
"@types/jsonwebtoken": "^9.0.0",
|
|
90
|
+
"@types/lodash": "^4.14.191",
|
|
91
|
+
"@types/node": "^16.18.11",
|
|
92
|
+
"@types/uuid": "^9.0.0",
|
|
93
|
+
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
|
94
|
+
"@typescript-eslint/parser": "^5.48.0",
|
|
93
95
|
"apollo-client": "^2.6.10",
|
|
94
|
-
"concurrently": "^7.
|
|
95
|
-
"eslint": "^8.
|
|
96
|
-
"eslint-config-prettier": "^8.
|
|
96
|
+
"concurrently": "^7.6.0",
|
|
97
|
+
"eslint": "^8.31.0",
|
|
98
|
+
"eslint-config-prettier": "^8.6.0",
|
|
97
99
|
"eslint-plugin-import": "^2.26.0",
|
|
98
100
|
"eslint-plugin-prettier": "^4.2.1",
|
|
99
101
|
"eslint-plugin-tree-shaking": "^1.10.0",
|
|
100
|
-
"husky": "^8.0.
|
|
102
|
+
"husky": "^8.0.2",
|
|
101
103
|
"isomorphic-fetch": "^3.0.0",
|
|
102
|
-
"jest": "^29.
|
|
103
|
-
"jest-environment-node": "^29.
|
|
104
|
-
"prettier": "^2.
|
|
104
|
+
"jest": "^29.3.1",
|
|
105
|
+
"jest-environment-node": "^29.3.1",
|
|
106
|
+
"prettier": "^2.8.1",
|
|
105
107
|
"subscriptions-transport-ws": "^0.11.0",
|
|
106
108
|
"ts-jest": "^29.0.3",
|
|
107
109
|
"ts-mockito": "^2.6.1",
|
|
108
|
-
"typedoc": "^0.23.
|
|
109
|
-
"typescript": "^4.
|
|
110
|
+
"typedoc": "^0.23.23",
|
|
111
|
+
"typescript": "^4.9.4",
|
|
110
112
|
"websocket": "^1.0.34"
|
|
111
113
|
},
|
|
112
114
|
"peerDependencies": {
|
|
@@ -46,7 +46,7 @@ export declare const Config: t.IntersectionC<[t.TypeC<{
|
|
|
46
46
|
refreshTokenLifetime: t.NumberC;
|
|
47
47
|
}>]>;
|
|
48
48
|
}>]>;
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
49
|
+
export type Config = t.TypeOf<typeof Config>;
|
|
50
|
+
export type IdentityServiceConfig = t.TypeOf<typeof IdentityServiceConfigCodec>;
|
|
51
|
+
export type FederatedSignInConfig = t.TypeOf<typeof FederatedSignInConfigCodec>;
|
|
52
52
|
export declare function getIdentityServiceConfig(): Config;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type Maybe<T> = T | undefined;
|
|
3
|
+
export type InputMaybe<T> = T | undefined;
|
|
4
|
+
export type Exact<T extends {
|
|
5
5
|
[key: string]: unknown;
|
|
6
6
|
}> = {
|
|
7
7
|
[K in keyof T]: T[K];
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
10
|
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
13
|
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
14
|
};
|
|
15
15
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
16
|
-
export
|
|
16
|
+
export type Scalars = {
|
|
17
17
|
ID: string;
|
|
18
18
|
String: string;
|
|
19
19
|
Boolean: boolean;
|
|
@@ -29,61 +29,61 @@ export declare type Scalars = {
|
|
|
29
29
|
AWSTimestamp: any;
|
|
30
30
|
AWSURL: any;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type Deregister = {
|
|
33
33
|
__typename?: 'Deregister';
|
|
34
34
|
success: Scalars['Boolean'];
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type FederatedId = {
|
|
37
37
|
__typename?: 'FederatedId';
|
|
38
38
|
identityId: Scalars['String'];
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type GlobalSignOut = {
|
|
41
41
|
__typename?: 'GlobalSignOut';
|
|
42
42
|
success: Scalars['Boolean'];
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type Mutation = {
|
|
45
45
|
__typename?: 'Mutation';
|
|
46
46
|
deregister?: Maybe<Deregister>;
|
|
47
47
|
globalSignOut?: Maybe<GlobalSignOut>;
|
|
48
48
|
registerFederatedId?: Maybe<FederatedId>;
|
|
49
49
|
};
|
|
50
|
-
export
|
|
50
|
+
export type MutationRegisterFederatedIdArgs = {
|
|
51
51
|
input?: InputMaybe<RegisterFederatedIdInput>;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type Query = {
|
|
54
54
|
__typename?: 'Query';
|
|
55
55
|
notImplemented?: Maybe<Scalars['Boolean']>;
|
|
56
56
|
};
|
|
57
|
-
export
|
|
57
|
+
export type QueryNotImplementedArgs = {
|
|
58
58
|
dummy: Scalars['String'];
|
|
59
59
|
};
|
|
60
|
-
export
|
|
60
|
+
export type RegisterFederatedIdInput = {
|
|
61
61
|
idToken: Scalars['String'];
|
|
62
62
|
};
|
|
63
|
-
export
|
|
63
|
+
export type DeregisterMutationVariables = Exact<{
|
|
64
64
|
[key: string]: never;
|
|
65
65
|
}>;
|
|
66
|
-
export
|
|
66
|
+
export type DeregisterMutation = {
|
|
67
67
|
__typename?: 'Mutation';
|
|
68
68
|
deregister?: {
|
|
69
69
|
__typename?: 'Deregister';
|
|
70
70
|
success: boolean;
|
|
71
71
|
} | undefined;
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type GlobalSignOutMutationVariables = Exact<{
|
|
74
74
|
[key: string]: never;
|
|
75
75
|
}>;
|
|
76
|
-
export
|
|
76
|
+
export type GlobalSignOutMutation = {
|
|
77
77
|
__typename?: 'Mutation';
|
|
78
78
|
globalSignOut?: {
|
|
79
79
|
__typename?: 'GlobalSignOut';
|
|
80
80
|
success: boolean;
|
|
81
81
|
} | undefined;
|
|
82
82
|
};
|
|
83
|
-
export
|
|
83
|
+
export type RegisterFederatedIdMutationVariables = Exact<{
|
|
84
84
|
input: RegisterFederatedIdInput;
|
|
85
85
|
}>;
|
|
86
|
-
export
|
|
86
|
+
export type RegisterFederatedIdMutation = {
|
|
87
87
|
__typename?: 'Mutation';
|
|
88
88
|
registerFederatedId?: {
|
|
89
89
|
__typename?: 'FederatedId';
|