@conduitplatform/grpc-sdk 0.16.14 → 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.
@@ -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,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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduitplatform/grpc-sdk",
3
- "version": "0.16.14",
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.10.9",
34
- "@grpc/proto-loader": "^0.7.6",
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.7",
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.10.9"
84
+ "@grpc/grpc-js": "^1.13.3"
85
85
  }
86
86
  }