@conduitplatform/grpc-sdk 0.16.17 → 0.16.18
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 +230 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +229 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/interfaces/Route.d.ts +6 -1
- package/dist/modules/authentication/index.d.ts +2 -1
- package/dist/protoUtils/authentication.d.ts +49 -0
- package/dist/protoUtils/email.d.ts +1 -0
- package/dist/protoUtils/google/protobuf/empty.d.ts +0 -2
- package/dist/protoUtils/storage.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { allowedTypes, ConduitModel, TYPE } from './Model.js';
|
|
2
2
|
import { Indexable } from './Indexable.js';
|
|
3
|
-
|
|
3
|
+
export interface ModuleErrorDefinition {
|
|
4
|
+
grpcCode: number;
|
|
5
|
+
conduitCode: string;
|
|
6
|
+
message: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
4
9
|
export interface ConduitRouteParameters {
|
|
5
10
|
params?: Indexable;
|
|
6
11
|
path?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConduitModule } from '../../classes/index.js';
|
|
2
|
-
import { AuthenticationDefinition, TeamDeleteResponse, UserCreateResponse, UserDeleteResponse, UserLoginResponse, Team, ValidateAccessTokenResponse, UserModifyStatusResponse, InvitationDeleteResponse } from '../../protoUtils/index.js';
|
|
2
|
+
import { AuthenticationDefinition, TeamDeleteResponse, UserCreateResponse, UserDeleteResponse, UserLoginResponse, Team, ValidateAccessTokenResponse, UserModifyStatusResponse, InvitationDeleteResponse, InviteUserToTeamResponse } from '../../protoUtils/index.js';
|
|
3
3
|
import { Indexable } from '../../interfaces';
|
|
4
4
|
export declare class Authentication extends ConduitModule<typeof AuthenticationDefinition> {
|
|
5
5
|
private readonly moduleName;
|
|
@@ -18,4 +18,5 @@ export declare class Authentication extends ConduitModule<typeof AuthenticationD
|
|
|
18
18
|
validateAccessToken(accessToken: string, path?: string): Promise<ValidateAccessTokenResponse>;
|
|
19
19
|
userModifyStatus(userId: string, active: boolean): Promise<UserModifyStatusResponse>;
|
|
20
20
|
invitationDelete(teamId: string, email: string): Promise<InvitationDeleteResponse>;
|
|
21
|
+
inviteUserToTeam(teamId: string, email: string, role: string, inviterUserId: string, redirectUri?: string, userData?: Indexable): Promise<InviteUserToTeamResponse>;
|
|
21
22
|
}
|
|
@@ -91,6 +91,17 @@ export interface InvitationDeleteRequest {
|
|
|
91
91
|
export interface InvitationDeleteResponse {
|
|
92
92
|
message: string;
|
|
93
93
|
}
|
|
94
|
+
export interface InviteUserToTeamRequest {
|
|
95
|
+
teamId: string;
|
|
96
|
+
email: string;
|
|
97
|
+
role: string;
|
|
98
|
+
inviterUserId: string;
|
|
99
|
+
redirectUri?: string | undefined;
|
|
100
|
+
userData?: string | undefined;
|
|
101
|
+
}
|
|
102
|
+
export interface InviteUserToTeamResponse {
|
|
103
|
+
invitationToken: string;
|
|
104
|
+
}
|
|
94
105
|
export declare const UserLoginRequest: {
|
|
95
106
|
encode(message: UserLoginRequest, writer?: _m0.Writer): _m0.Writer;
|
|
96
107
|
decode(input: _m0.Reader | Uint8Array, length?: number): UserLoginRequest;
|
|
@@ -259,6 +270,22 @@ export declare const InvitationDeleteResponse: {
|
|
|
259
270
|
create(base?: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
260
271
|
fromPartial(object: DeepPartial<InvitationDeleteResponse>): InvitationDeleteResponse;
|
|
261
272
|
};
|
|
273
|
+
export declare const InviteUserToTeamRequest: {
|
|
274
|
+
encode(message: InviteUserToTeamRequest, writer?: _m0.Writer): _m0.Writer;
|
|
275
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InviteUserToTeamRequest;
|
|
276
|
+
fromJSON(object: any): InviteUserToTeamRequest;
|
|
277
|
+
toJSON(message: InviteUserToTeamRequest): unknown;
|
|
278
|
+
create(base?: DeepPartial<InviteUserToTeamRequest>): InviteUserToTeamRequest;
|
|
279
|
+
fromPartial(object: DeepPartial<InviteUserToTeamRequest>): InviteUserToTeamRequest;
|
|
280
|
+
};
|
|
281
|
+
export declare const InviteUserToTeamResponse: {
|
|
282
|
+
encode(message: InviteUserToTeamResponse, writer?: _m0.Writer): _m0.Writer;
|
|
283
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InviteUserToTeamResponse;
|
|
284
|
+
fromJSON(object: any): InviteUserToTeamResponse;
|
|
285
|
+
toJSON(message: InviteUserToTeamResponse): unknown;
|
|
286
|
+
create(base?: DeepPartial<InviteUserToTeamResponse>): InviteUserToTeamResponse;
|
|
287
|
+
fromPartial(object: DeepPartial<InviteUserToTeamResponse>): InviteUserToTeamResponse;
|
|
288
|
+
};
|
|
262
289
|
export type AuthenticationDefinition = typeof AuthenticationDefinition;
|
|
263
290
|
export declare const AuthenticationDefinition: {
|
|
264
291
|
readonly name: "Authentication";
|
|
@@ -572,6 +599,28 @@ export declare const AuthenticationDefinition: {
|
|
|
572
599
|
readonly responseStream: false;
|
|
573
600
|
readonly options: {};
|
|
574
601
|
};
|
|
602
|
+
readonly inviteUserToTeam: {
|
|
603
|
+
readonly name: "InviteUserToTeam";
|
|
604
|
+
readonly requestType: {
|
|
605
|
+
encode(message: InviteUserToTeamRequest, writer?: _m0.Writer): _m0.Writer;
|
|
606
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InviteUserToTeamRequest;
|
|
607
|
+
fromJSON(object: any): InviteUserToTeamRequest;
|
|
608
|
+
toJSON(message: InviteUserToTeamRequest): unknown;
|
|
609
|
+
create(base?: DeepPartial<InviteUserToTeamRequest>): InviteUserToTeamRequest;
|
|
610
|
+
fromPartial(object: DeepPartial<InviteUserToTeamRequest>): InviteUserToTeamRequest;
|
|
611
|
+
};
|
|
612
|
+
readonly requestStream: false;
|
|
613
|
+
readonly responseType: {
|
|
614
|
+
encode(message: InviteUserToTeamResponse, writer?: _m0.Writer): _m0.Writer;
|
|
615
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InviteUserToTeamResponse;
|
|
616
|
+
fromJSON(object: any): InviteUserToTeamResponse;
|
|
617
|
+
toJSON(message: InviteUserToTeamResponse): unknown;
|
|
618
|
+
create(base?: DeepPartial<InviteUserToTeamResponse>): InviteUserToTeamResponse;
|
|
619
|
+
fromPartial(object: DeepPartial<InviteUserToTeamResponse>): InviteUserToTeamResponse;
|
|
620
|
+
};
|
|
621
|
+
readonly responseStream: false;
|
|
622
|
+
readonly options: {};
|
|
623
|
+
};
|
|
575
624
|
};
|
|
576
625
|
};
|
|
577
626
|
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.18",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"abort-controller-x": "^0.4.3",
|
|
37
37
|
"convict": "^6.2.4",
|
|
38
38
|
"express": "^4.21.1",
|
|
39
|
-
"fast-jwt": "^
|
|
39
|
+
"fast-jwt": "^6.0.2",
|
|
40
40
|
"fs-extra": "^11.2.0",
|
|
41
41
|
"ioredis": "^5.3.2",
|
|
42
42
|
"lodash": "^4.17.21",
|