@conduitplatform/grpc-sdk 0.16.13 → 0.16.15
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 +366 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +363 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/modules/authentication/index.d.ts +3 -1
- package/dist/modules/email/index.d.ts +7 -0
- package/dist/protoUtils/authentication.d.ts +80 -0
- package/dist/protoUtils/email.d.ts +38 -0
- package/package.json +5 -5
|
@@ -1,11 +1,12 @@
|
|
|
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
3
|
export declare class Authentication extends ConduitModule<typeof AuthenticationDefinition> {
|
|
4
4
|
private readonly moduleName;
|
|
5
5
|
constructor(moduleName: string, url: string, grpcToken?: string);
|
|
6
6
|
userLogin(userId: string, clientId: string): Promise<UserLoginResponse>;
|
|
7
7
|
userDelete(userId: string): Promise<UserDeleteResponse>;
|
|
8
8
|
userCreate(email: string, verify?: boolean, password?: string, anonymousId?: string): Promise<UserCreateResponse>;
|
|
9
|
+
userCreateByUsername(username: string, password?: string, anonymousId?: string): Promise<UserCreateResponse>;
|
|
9
10
|
anonymousUserCreate(clientId: string): Promise<UserLoginResponse>;
|
|
10
11
|
changePass(email: string, password?: string): Promise<UserCreateResponse>;
|
|
11
12
|
getTeam(teamId: string): Promise<Team>;
|
|
@@ -15,4 +16,5 @@ export declare class Authentication extends ConduitModule<typeof AuthenticationD
|
|
|
15
16
|
removeTeamMembers(teamId: string, memberIds: string[]): Promise<import("../../protoUtils/google/protobuf/empty.js").Empty>;
|
|
16
17
|
validateAccessToken(accessToken: string, path?: string): Promise<ValidateAccessTokenResponse>;
|
|
17
18
|
userModifyStatus(userId: string, active: boolean): Promise<UserModifyStatusResponse>;
|
|
19
|
+
invitationDelete(teamId: string, email: string): Promise<InvitationDeleteResponse>;
|
|
18
20
|
}
|
|
@@ -10,6 +10,13 @@ export declare class Email extends ConduitModule<typeof EmailDefinition> {
|
|
|
10
10
|
variables: string[];
|
|
11
11
|
sender?: string;
|
|
12
12
|
}): Promise<any>;
|
|
13
|
+
updateTemplate(templateId: string, params: {
|
|
14
|
+
name?: string;
|
|
15
|
+
subject?: string;
|
|
16
|
+
body?: string;
|
|
17
|
+
variables?: string[];
|
|
18
|
+
sender?: string;
|
|
19
|
+
}): Promise<any>;
|
|
13
20
|
sendEmail(templateName: string, params: {
|
|
14
21
|
email: string;
|
|
15
22
|
variables: any;
|
|
@@ -10,6 +10,11 @@ export interface UserCreateRequest {
|
|
|
10
10
|
verify: boolean;
|
|
11
11
|
anonymousId?: string | undefined;
|
|
12
12
|
}
|
|
13
|
+
export interface UserCreateByUsernameRequest {
|
|
14
|
+
username: string;
|
|
15
|
+
password?: string | undefined;
|
|
16
|
+
anonymousId?: string | undefined;
|
|
17
|
+
}
|
|
13
18
|
export interface UserChangePass {
|
|
14
19
|
email: string;
|
|
15
20
|
password?: string | undefined;
|
|
@@ -78,6 +83,13 @@ export interface UserModifyStatusRequest {
|
|
|
78
83
|
export interface UserModifyStatusResponse {
|
|
79
84
|
message: string;
|
|
80
85
|
}
|
|
86
|
+
export interface InvitationDeleteRequest {
|
|
87
|
+
teamId: string;
|
|
88
|
+
email: string;
|
|
89
|
+
}
|
|
90
|
+
export interface InvitationDeleteResponse {
|
|
91
|
+
message: string;
|
|
92
|
+
}
|
|
81
93
|
export declare const UserLoginRequest: {
|
|
82
94
|
encode(message: UserLoginRequest, writer?: _m0.Writer): _m0.Writer;
|
|
83
95
|
decode(input: _m0.Reader | Uint8Array, length?: number): UserLoginRequest;
|
|
@@ -94,6 +106,14 @@ export declare const UserCreateRequest: {
|
|
|
94
106
|
create(base?: DeepPartial<UserCreateRequest>): UserCreateRequest;
|
|
95
107
|
fromPartial(object: DeepPartial<UserCreateRequest>): UserCreateRequest;
|
|
96
108
|
};
|
|
109
|
+
export declare const UserCreateByUsernameRequest: {
|
|
110
|
+
encode(message: UserCreateByUsernameRequest, writer?: _m0.Writer): _m0.Writer;
|
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserCreateByUsernameRequest;
|
|
112
|
+
fromJSON(object: any): UserCreateByUsernameRequest;
|
|
113
|
+
toJSON(message: UserCreateByUsernameRequest): unknown;
|
|
114
|
+
create(base?: DeepPartial<UserCreateByUsernameRequest>): UserCreateByUsernameRequest;
|
|
115
|
+
fromPartial(object: DeepPartial<UserCreateByUsernameRequest>): UserCreateByUsernameRequest;
|
|
116
|
+
};
|
|
97
117
|
export declare const UserChangePass: {
|
|
98
118
|
encode(message: UserChangePass, writer?: _m0.Writer): _m0.Writer;
|
|
99
119
|
decode(input: _m0.Reader | Uint8Array, length?: number): UserChangePass;
|
|
@@ -222,6 +242,22 @@ export declare const UserModifyStatusResponse: {
|
|
|
222
242
|
create(base?: DeepPartial<UserModifyStatusResponse>): UserModifyStatusResponse;
|
|
223
243
|
fromPartial(object: DeepPartial<UserModifyStatusResponse>): UserModifyStatusResponse;
|
|
224
244
|
};
|
|
245
|
+
export declare const InvitationDeleteRequest: {
|
|
246
|
+
encode(message: InvitationDeleteRequest, writer?: _m0.Writer): _m0.Writer;
|
|
247
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InvitationDeleteRequest;
|
|
248
|
+
fromJSON(object: any): InvitationDeleteRequest;
|
|
249
|
+
toJSON(message: InvitationDeleteRequest): unknown;
|
|
250
|
+
create(base?: DeepPartial<InvitationDeleteRequest>): InvitationDeleteRequest;
|
|
251
|
+
fromPartial(object: DeepPartial<InvitationDeleteRequest>): InvitationDeleteRequest;
|
|
252
|
+
};
|
|
253
|
+
export declare const InvitationDeleteResponse: {
|
|
254
|
+
encode(message: InvitationDeleteResponse, writer?: _m0.Writer): _m0.Writer;
|
|
255
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InvitationDeleteResponse;
|
|
256
|
+
fromJSON(object: any): InvitationDeleteResponse;
|
|
257
|
+
toJSON(message: InvitationDeleteResponse): unknown;
|
|
258
|
+
create(base?: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
259
|
+
fromPartial(object: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
260
|
+
};
|
|
225
261
|
export type AuthenticationDefinition = typeof AuthenticationDefinition;
|
|
226
262
|
export declare const AuthenticationDefinition: {
|
|
227
263
|
readonly name: "Authentication";
|
|
@@ -271,6 +307,28 @@ export declare const AuthenticationDefinition: {
|
|
|
271
307
|
readonly responseStream: false;
|
|
272
308
|
readonly options: {};
|
|
273
309
|
};
|
|
310
|
+
readonly userCreateByUsername: {
|
|
311
|
+
readonly name: "UserCreateByUsername";
|
|
312
|
+
readonly requestType: {
|
|
313
|
+
encode(message: UserCreateByUsernameRequest, writer?: _m0.Writer): _m0.Writer;
|
|
314
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserCreateByUsernameRequest;
|
|
315
|
+
fromJSON(object: any): UserCreateByUsernameRequest;
|
|
316
|
+
toJSON(message: UserCreateByUsernameRequest): unknown;
|
|
317
|
+
create(base?: DeepPartial<UserCreateByUsernameRequest>): UserCreateByUsernameRequest;
|
|
318
|
+
fromPartial(object: DeepPartial<UserCreateByUsernameRequest>): UserCreateByUsernameRequest;
|
|
319
|
+
};
|
|
320
|
+
readonly requestStream: false;
|
|
321
|
+
readonly responseType: {
|
|
322
|
+
encode(message: UserCreateResponse, writer?: _m0.Writer): _m0.Writer;
|
|
323
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserCreateResponse;
|
|
324
|
+
fromJSON(object: any): UserCreateResponse;
|
|
325
|
+
toJSON(message: UserCreateResponse): unknown;
|
|
326
|
+
create(base?: DeepPartial<UserCreateResponse>): UserCreateResponse;
|
|
327
|
+
fromPartial(object: DeepPartial<UserCreateResponse>): UserCreateResponse;
|
|
328
|
+
};
|
|
329
|
+
readonly responseStream: false;
|
|
330
|
+
readonly options: {};
|
|
331
|
+
};
|
|
274
332
|
readonly userModifyStatus: {
|
|
275
333
|
readonly name: "UserModifyStatus";
|
|
276
334
|
readonly requestType: {
|
|
@@ -491,6 +549,28 @@ export declare const AuthenticationDefinition: {
|
|
|
491
549
|
readonly responseStream: false;
|
|
492
550
|
readonly options: {};
|
|
493
551
|
};
|
|
552
|
+
readonly invitationDelete: {
|
|
553
|
+
readonly name: "InvitationDelete";
|
|
554
|
+
readonly requestType: {
|
|
555
|
+
encode(message: InvitationDeleteRequest, writer?: _m0.Writer): _m0.Writer;
|
|
556
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InvitationDeleteRequest;
|
|
557
|
+
fromJSON(object: any): InvitationDeleteRequest;
|
|
558
|
+
toJSON(message: InvitationDeleteRequest): unknown;
|
|
559
|
+
create(base?: DeepPartial<InvitationDeleteRequest>): InvitationDeleteRequest;
|
|
560
|
+
fromPartial(object: DeepPartial<InvitationDeleteRequest>): InvitationDeleteRequest;
|
|
561
|
+
};
|
|
562
|
+
readonly requestStream: false;
|
|
563
|
+
readonly responseType: {
|
|
564
|
+
encode(message: InvitationDeleteResponse, writer?: _m0.Writer): _m0.Writer;
|
|
565
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InvitationDeleteResponse;
|
|
566
|
+
fromJSON(object: any): InvitationDeleteResponse;
|
|
567
|
+
toJSON(message: InvitationDeleteResponse): unknown;
|
|
568
|
+
create(base?: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
569
|
+
fromPartial(object: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
570
|
+
};
|
|
571
|
+
readonly responseStream: false;
|
|
572
|
+
readonly options: {};
|
|
573
|
+
};
|
|
494
574
|
};
|
|
495
575
|
};
|
|
496
576
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
@@ -6,6 +6,14 @@ export interface RegisterTemplateRequest {
|
|
|
6
6
|
variables: string[];
|
|
7
7
|
sender?: string | undefined;
|
|
8
8
|
}
|
|
9
|
+
export interface UpdateTemplateRequest {
|
|
10
|
+
id: string;
|
|
11
|
+
name?: string | undefined;
|
|
12
|
+
subject?: string | undefined;
|
|
13
|
+
body?: string | undefined;
|
|
14
|
+
variables: string[];
|
|
15
|
+
sender?: string | undefined;
|
|
16
|
+
}
|
|
9
17
|
export interface RegisterTemplateResponse {
|
|
10
18
|
template: string;
|
|
11
19
|
}
|
|
@@ -44,6 +52,14 @@ export declare const RegisterTemplateRequest: {
|
|
|
44
52
|
create(base?: DeepPartial<RegisterTemplateRequest>): RegisterTemplateRequest;
|
|
45
53
|
fromPartial(object: DeepPartial<RegisterTemplateRequest>): RegisterTemplateRequest;
|
|
46
54
|
};
|
|
55
|
+
export declare const UpdateTemplateRequest: {
|
|
56
|
+
encode(message: UpdateTemplateRequest, writer?: _m0.Writer): _m0.Writer;
|
|
57
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateTemplateRequest;
|
|
58
|
+
fromJSON(object: any): UpdateTemplateRequest;
|
|
59
|
+
toJSON(message: UpdateTemplateRequest): unknown;
|
|
60
|
+
create(base?: DeepPartial<UpdateTemplateRequest>): UpdateTemplateRequest;
|
|
61
|
+
fromPartial(object: DeepPartial<UpdateTemplateRequest>): UpdateTemplateRequest;
|
|
62
|
+
};
|
|
47
63
|
export declare const RegisterTemplateResponse: {
|
|
48
64
|
encode(message: RegisterTemplateResponse, writer?: _m0.Writer): _m0.Writer;
|
|
49
65
|
decode(input: _m0.Reader | Uint8Array, length?: number): RegisterTemplateResponse;
|
|
@@ -135,6 +151,28 @@ export declare const EmailDefinition: {
|
|
|
135
151
|
readonly responseStream: false;
|
|
136
152
|
readonly options: {};
|
|
137
153
|
};
|
|
154
|
+
readonly updateTemplate: {
|
|
155
|
+
readonly name: "UpdateTemplate";
|
|
156
|
+
readonly requestType: {
|
|
157
|
+
encode(message: UpdateTemplateRequest, writer?: _m0.Writer): _m0.Writer;
|
|
158
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateTemplateRequest;
|
|
159
|
+
fromJSON(object: any): UpdateTemplateRequest;
|
|
160
|
+
toJSON(message: UpdateTemplateRequest): unknown;
|
|
161
|
+
create(base?: DeepPartial<UpdateTemplateRequest>): UpdateTemplateRequest;
|
|
162
|
+
fromPartial(object: DeepPartial<UpdateTemplateRequest>): UpdateTemplateRequest;
|
|
163
|
+
};
|
|
164
|
+
readonly requestStream: false;
|
|
165
|
+
readonly responseType: {
|
|
166
|
+
encode(message: RegisterTemplateResponse, writer?: _m0.Writer): _m0.Writer;
|
|
167
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RegisterTemplateResponse;
|
|
168
|
+
fromJSON(object: any): RegisterTemplateResponse;
|
|
169
|
+
toJSON(message: RegisterTemplateResponse): unknown;
|
|
170
|
+
create(base?: DeepPartial<RegisterTemplateResponse>): RegisterTemplateResponse;
|
|
171
|
+
fromPartial(object: DeepPartial<RegisterTemplateResponse>): RegisterTemplateResponse;
|
|
172
|
+
};
|
|
173
|
+
readonly responseStream: false;
|
|
174
|
+
readonly options: {};
|
|
175
|
+
};
|
|
138
176
|
readonly sendEmail: {
|
|
139
177
|
readonly name: "SendEmail";
|
|
140
178
|
readonly requestType: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conduitplatform/grpc-sdk",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.15",
|
|
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
|
}
|