@conduitplatform/grpc-sdk 0.16.14 → 0.16.16
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/dist/index.cjs +244 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +242 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/modules/authentication/index.d.ts +5 -2
- package/dist/protoUtils/authentication.d.ts +81 -0
- package/package.json +5 -5
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ConduitModule } from '../../classes/index.js';
|
|
2
|
-
import { AuthenticationDefinition, TeamDeleteResponse, UserCreateResponse, UserDeleteResponse, UserLoginResponse, Team, ValidateAccessTokenResponse, UserModifyStatusResponse } from '../../protoUtils/index.js';
|
|
2
|
+
import { AuthenticationDefinition, TeamDeleteResponse, UserCreateResponse, UserDeleteResponse, UserLoginResponse, Team, ValidateAccessTokenResponse, UserModifyStatusResponse, InvitationDeleteResponse } from '../../protoUtils/index.js';
|
|
3
|
+
import { Indexable } from '../../interfaces';
|
|
3
4
|
export declare class Authentication extends ConduitModule<typeof AuthenticationDefinition> {
|
|
4
5
|
private readonly moduleName;
|
|
5
6
|
constructor(moduleName: string, url: string, grpcToken?: string);
|
|
6
7
|
userLogin(userId: string, clientId: string): Promise<UserLoginResponse>;
|
|
7
8
|
userDelete(userId: string): Promise<UserDeleteResponse>;
|
|
8
|
-
userCreate(email: string, verify?: boolean, password?: string, anonymousId?: string): Promise<UserCreateResponse>;
|
|
9
|
+
userCreate(email: string, verify?: boolean, password?: string, anonymousId?: string, userData?: Indexable): Promise<UserCreateResponse>;
|
|
10
|
+
userCreateByUsername(username: string, password?: string, anonymousId?: string): Promise<UserCreateResponse>;
|
|
9
11
|
anonymousUserCreate(clientId: string): Promise<UserLoginResponse>;
|
|
10
12
|
changePass(email: string, password?: string): Promise<UserCreateResponse>;
|
|
11
13
|
getTeam(teamId: string): Promise<Team>;
|
|
@@ -15,4 +17,5 @@ export declare class Authentication extends ConduitModule<typeof AuthenticationD
|
|
|
15
17
|
removeTeamMembers(teamId: string, memberIds: string[]): Promise<import("../../protoUtils/google/protobuf/empty.js").Empty>;
|
|
16
18
|
validateAccessToken(accessToken: string, path?: string): Promise<ValidateAccessTokenResponse>;
|
|
17
19
|
userModifyStatus(userId: string, active: boolean): Promise<UserModifyStatusResponse>;
|
|
20
|
+
invitationDelete(teamId: string, email: string): Promise<InvitationDeleteResponse>;
|
|
18
21
|
}
|
|
@@ -9,6 +9,12 @@ export interface UserCreateRequest {
|
|
|
9
9
|
password?: string | undefined;
|
|
10
10
|
verify: boolean;
|
|
11
11
|
anonymousId?: string | undefined;
|
|
12
|
+
userData?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface UserCreateByUsernameRequest {
|
|
15
|
+
username: string;
|
|
16
|
+
password?: string | undefined;
|
|
17
|
+
anonymousId?: string | undefined;
|
|
12
18
|
}
|
|
13
19
|
export interface UserChangePass {
|
|
14
20
|
email: string;
|
|
@@ -78,6 +84,13 @@ export interface UserModifyStatusRequest {
|
|
|
78
84
|
export interface UserModifyStatusResponse {
|
|
79
85
|
message: string;
|
|
80
86
|
}
|
|
87
|
+
export interface InvitationDeleteRequest {
|
|
88
|
+
teamId: string;
|
|
89
|
+
email: string;
|
|
90
|
+
}
|
|
91
|
+
export interface InvitationDeleteResponse {
|
|
92
|
+
message: string;
|
|
93
|
+
}
|
|
81
94
|
export declare const UserLoginRequest: {
|
|
82
95
|
encode(message: UserLoginRequest, writer?: _m0.Writer): _m0.Writer;
|
|
83
96
|
decode(input: _m0.Reader | Uint8Array, length?: number): UserLoginRequest;
|
|
@@ -94,6 +107,14 @@ export declare const UserCreateRequest: {
|
|
|
94
107
|
create(base?: DeepPartial<UserCreateRequest>): UserCreateRequest;
|
|
95
108
|
fromPartial(object: DeepPartial<UserCreateRequest>): UserCreateRequest;
|
|
96
109
|
};
|
|
110
|
+
export declare const UserCreateByUsernameRequest: {
|
|
111
|
+
encode(message: UserCreateByUsernameRequest, writer?: _m0.Writer): _m0.Writer;
|
|
112
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserCreateByUsernameRequest;
|
|
113
|
+
fromJSON(object: any): UserCreateByUsernameRequest;
|
|
114
|
+
toJSON(message: UserCreateByUsernameRequest): unknown;
|
|
115
|
+
create(base?: DeepPartial<UserCreateByUsernameRequest>): UserCreateByUsernameRequest;
|
|
116
|
+
fromPartial(object: DeepPartial<UserCreateByUsernameRequest>): UserCreateByUsernameRequest;
|
|
117
|
+
};
|
|
97
118
|
export declare const UserChangePass: {
|
|
98
119
|
encode(message: UserChangePass, writer?: _m0.Writer): _m0.Writer;
|
|
99
120
|
decode(input: _m0.Reader | Uint8Array, length?: number): UserChangePass;
|
|
@@ -222,6 +243,22 @@ export declare const UserModifyStatusResponse: {
|
|
|
222
243
|
create(base?: DeepPartial<UserModifyStatusResponse>): UserModifyStatusResponse;
|
|
223
244
|
fromPartial(object: DeepPartial<UserModifyStatusResponse>): UserModifyStatusResponse;
|
|
224
245
|
};
|
|
246
|
+
export declare const InvitationDeleteRequest: {
|
|
247
|
+
encode(message: InvitationDeleteRequest, writer?: _m0.Writer): _m0.Writer;
|
|
248
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InvitationDeleteRequest;
|
|
249
|
+
fromJSON(object: any): InvitationDeleteRequest;
|
|
250
|
+
toJSON(message: InvitationDeleteRequest): unknown;
|
|
251
|
+
create(base?: DeepPartial<InvitationDeleteRequest>): InvitationDeleteRequest;
|
|
252
|
+
fromPartial(object: DeepPartial<InvitationDeleteRequest>): InvitationDeleteRequest;
|
|
253
|
+
};
|
|
254
|
+
export declare const InvitationDeleteResponse: {
|
|
255
|
+
encode(message: InvitationDeleteResponse, writer?: _m0.Writer): _m0.Writer;
|
|
256
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InvitationDeleteResponse;
|
|
257
|
+
fromJSON(object: any): InvitationDeleteResponse;
|
|
258
|
+
toJSON(message: InvitationDeleteResponse): unknown;
|
|
259
|
+
create(base?: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
260
|
+
fromPartial(object: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
261
|
+
};
|
|
225
262
|
export type AuthenticationDefinition = typeof AuthenticationDefinition;
|
|
226
263
|
export declare const AuthenticationDefinition: {
|
|
227
264
|
readonly name: "Authentication";
|
|
@@ -271,6 +308,28 @@ export declare const AuthenticationDefinition: {
|
|
|
271
308
|
readonly responseStream: false;
|
|
272
309
|
readonly options: {};
|
|
273
310
|
};
|
|
311
|
+
readonly userCreateByUsername: {
|
|
312
|
+
readonly name: "UserCreateByUsername";
|
|
313
|
+
readonly requestType: {
|
|
314
|
+
encode(message: UserCreateByUsernameRequest, writer?: _m0.Writer): _m0.Writer;
|
|
315
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserCreateByUsernameRequest;
|
|
316
|
+
fromJSON(object: any): UserCreateByUsernameRequest;
|
|
317
|
+
toJSON(message: UserCreateByUsernameRequest): unknown;
|
|
318
|
+
create(base?: DeepPartial<UserCreateByUsernameRequest>): UserCreateByUsernameRequest;
|
|
319
|
+
fromPartial(object: DeepPartial<UserCreateByUsernameRequest>): UserCreateByUsernameRequest;
|
|
320
|
+
};
|
|
321
|
+
readonly requestStream: false;
|
|
322
|
+
readonly responseType: {
|
|
323
|
+
encode(message: UserCreateResponse, writer?: _m0.Writer): _m0.Writer;
|
|
324
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserCreateResponse;
|
|
325
|
+
fromJSON(object: any): UserCreateResponse;
|
|
326
|
+
toJSON(message: UserCreateResponse): unknown;
|
|
327
|
+
create(base?: DeepPartial<UserCreateResponse>): UserCreateResponse;
|
|
328
|
+
fromPartial(object: DeepPartial<UserCreateResponse>): UserCreateResponse;
|
|
329
|
+
};
|
|
330
|
+
readonly responseStream: false;
|
|
331
|
+
readonly options: {};
|
|
332
|
+
};
|
|
274
333
|
readonly userModifyStatus: {
|
|
275
334
|
readonly name: "UserModifyStatus";
|
|
276
335
|
readonly requestType: {
|
|
@@ -491,6 +550,28 @@ export declare const AuthenticationDefinition: {
|
|
|
491
550
|
readonly responseStream: false;
|
|
492
551
|
readonly options: {};
|
|
493
552
|
};
|
|
553
|
+
readonly invitationDelete: {
|
|
554
|
+
readonly name: "InvitationDelete";
|
|
555
|
+
readonly requestType: {
|
|
556
|
+
encode(message: InvitationDeleteRequest, writer?: _m0.Writer): _m0.Writer;
|
|
557
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InvitationDeleteRequest;
|
|
558
|
+
fromJSON(object: any): InvitationDeleteRequest;
|
|
559
|
+
toJSON(message: InvitationDeleteRequest): unknown;
|
|
560
|
+
create(base?: DeepPartial<InvitationDeleteRequest>): InvitationDeleteRequest;
|
|
561
|
+
fromPartial(object: DeepPartial<InvitationDeleteRequest>): InvitationDeleteRequest;
|
|
562
|
+
};
|
|
563
|
+
readonly requestStream: false;
|
|
564
|
+
readonly responseType: {
|
|
565
|
+
encode(message: InvitationDeleteResponse, writer?: _m0.Writer): _m0.Writer;
|
|
566
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InvitationDeleteResponse;
|
|
567
|
+
fromJSON(object: any): InvitationDeleteResponse;
|
|
568
|
+
toJSON(message: InvitationDeleteResponse): unknown;
|
|
569
|
+
create(base?: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
570
|
+
fromPartial(object: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
571
|
+
};
|
|
572
|
+
readonly responseStream: false;
|
|
573
|
+
readonly options: {};
|
|
574
|
+
};
|
|
494
575
|
};
|
|
495
576
|
};
|
|
496
577
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conduitplatform/grpc-sdk",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.16",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@grpc/grpc-js": "^1.
|
|
34
|
-
"@grpc/proto-loader": "^0.7.
|
|
33
|
+
"@grpc/grpc-js": "^1.13.3",
|
|
34
|
+
"@grpc/proto-loader": "^0.7.13",
|
|
35
35
|
"@sesamecare-oss/redlock": "^1.2.0",
|
|
36
36
|
"abort-controller-x": "^0.4.3",
|
|
37
37
|
"convict": "^6.2.4",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"ioredis": "^5.3.2",
|
|
42
42
|
"lodash": "^4.17.21",
|
|
43
43
|
"lodash-es": "^4.17.21",
|
|
44
|
-
"nice-grpc": "^2.1.
|
|
44
|
+
"nice-grpc": "^2.1.12",
|
|
45
45
|
"nice-grpc-client-middleware-retry": "^3",
|
|
46
46
|
"prom-client": "^15.1.3",
|
|
47
47
|
"protobufjs": "^7.2.6",
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"typescript": "~5.6.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@grpc/grpc-js": "^1.
|
|
84
|
+
"@grpc/grpc-js": "^1.13.3"
|
|
85
85
|
}
|
|
86
86
|
}
|