@conduitplatform/grpc-sdk 0.16.7 → 0.16.9
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/classes/ConduitAuthorizedResource.d.ts +2 -1
- package/dist/classes/ConduitModule.d.ts +0 -1
- package/dist/index.cjs +591 -136
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +587 -137
- package/dist/index.esm.js.map +1 -1
- package/dist/interceptors/grpcSignedToken.d.ts +1 -1
- package/dist/interceptors/moduleName.d.ts +1 -1
- package/dist/modules/authentication/index.d.ts +2 -1
- package/dist/modules/config/index.d.ts +0 -1
- package/dist/modules/database/index.d.ts +14 -0
- package/dist/modules/database/types.d.ts +17 -0
- package/dist/modules/email/index.d.ts +2 -0
- package/dist/modules/pushNotifications/index.d.ts +7 -4
- package/dist/modules/pushNotifications/types.d.ts +5 -0
- package/dist/modules/storage/index.d.ts +15 -5
- package/dist/modules/storage/types.d.ts +24 -0
- package/dist/protoUtils/authentication.d.ts +38 -4
- package/dist/protoUtils/authorization.d.ts +14 -14
- package/dist/protoUtils/chat.d.ts +2 -2
- package/dist/protoUtils/core.d.ts +14 -14
- package/dist/protoUtils/database.d.ts +8 -8
- package/dist/protoUtils/email.d.ts +88 -0
- package/dist/protoUtils/router.d.ts +6 -6
- package/dist/protoUtils/storage.d.ts +6 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/options.d.ts +7 -0
- package/dist/utilities/normalizeOptions.d.ts +3 -0
- package/package.json +9 -8
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CallOptions, ClientMiddlewareCall } from 'nice-grpc';
|
|
2
|
-
export declare function getGrpcSignedTokenInterceptor(grpcToken: string): <
|
|
2
|
+
export declare function getGrpcSignedTokenInterceptor(grpcToken: string): <Request, Response>(call: ClientMiddlewareCall<Request, Response>, options: CallOptions) => AsyncGenerator<Awaited<Response>, void | Awaited<Response>, undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CallOptions, ClientMiddlewareCall } from 'nice-grpc';
|
|
2
|
-
export declare function getModuleNameInterceptor(moduleName: string): <
|
|
2
|
+
export declare function getModuleNameInterceptor(moduleName: string): <Request, Response>(call: ClientMiddlewareCall<Request, Response>, options: CallOptions) => AsyncGenerator<Awaited<Response>, void | Awaited<Response>, undefined>;
|
|
@@ -5,7 +5,8 @@ export declare class Authentication extends ConduitModule<typeof AuthenticationD
|
|
|
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
|
-
userCreate(email: string, verify?: boolean, password?: string): Promise<UserCreateResponse>;
|
|
8
|
+
userCreate(email: string, verify?: boolean, password?: string, anonymousId?: string): Promise<UserCreateResponse>;
|
|
9
|
+
anonymousUserCreate(clientId: string): Promise<UserLoginResponse>;
|
|
9
10
|
changePass(email: string, password?: string): Promise<UserCreateResponse>;
|
|
10
11
|
getTeam(teamId: string): Promise<Team>;
|
|
11
12
|
createTeam(name: string, parentTeam?: string, isDefault?: boolean): Promise<Team>;
|
|
@@ -2,6 +2,8 @@ import { ConduitModule, ConduitSchema } from '../../classes/index.js';
|
|
|
2
2
|
import { DatabaseProviderDefinition, DropCollectionResponse, Schema } from '../../protoUtils/database.js';
|
|
3
3
|
import { ConduitSchemaExtension, Indexable, RawQuery, UntypedArray } from '../../interfaces/index.js';
|
|
4
4
|
import { Query } from '../../types/db.js';
|
|
5
|
+
import { FindOneOptions, FindManyOptions } from './types.js';
|
|
6
|
+
import { AuthzOptions, PopulateAuthzOptions } from '../../types/options.js';
|
|
5
7
|
export declare class DatabaseProvider extends ConduitModule<typeof DatabaseProviderDefinition> {
|
|
6
8
|
private readonly moduleName;
|
|
7
9
|
constructor(moduleName: string, url: string, grpcToken?: string);
|
|
@@ -23,19 +25,31 @@ export declare class DatabaseProvider extends ConduitModule<typeof DatabaseProvi
|
|
|
23
25
|
setSchemaExtension(extension: ConduitSchemaExtension): Promise<Schema>;
|
|
24
26
|
processQuery<T>(query: Query<T>): string;
|
|
25
27
|
findOne<T>(schemaName: string, query: Query<T>, select?: string, populate?: string | string[], userId?: string, scope?: string): Promise<T>;
|
|
28
|
+
findOne<T>(schemaName: string, query: Query<T>, options?: FindOneOptions): Promise<T>;
|
|
26
29
|
findMany<T>(schemaName: string, query: Query<T>, select?: string, skip?: number, limit?: number, sort?: {
|
|
27
30
|
[field: string]: -1 | 1;
|
|
28
31
|
} | string[] | string, populate?: string | string[], userId?: string, scope?: string): Promise<T[]>;
|
|
32
|
+
findMany<T>(schemaName: string, query: Query<T>, options?: FindManyOptions): Promise<T[]>;
|
|
29
33
|
create<T>(schemaName: string, query: Query<T>, userId?: string, scope?: string): Promise<T>;
|
|
34
|
+
create<T>(schemaName: string, query: Query<T>, options?: AuthzOptions): Promise<T>;
|
|
30
35
|
createMany<T>(schemaName: string, query: Query<T>[], userId?: string, scope?: string): Promise<T[] | UntypedArray>;
|
|
36
|
+
createMany<T>(schemaName: string, query: Query<T>[], options?: AuthzOptions): Promise<T[] | UntypedArray>;
|
|
31
37
|
findByIdAndUpdate<T>(schemaName: string, id: string, document: Query<T>, populate?: string | string[], userId?: string, scope?: string): Promise<T | any>;
|
|
38
|
+
findByIdAndUpdate<T>(schemaName: string, id: string, document: Query<T>, options?: PopulateAuthzOptions): Promise<T | any>;
|
|
32
39
|
findByIdAndReplace<T>(schemaName: string, id: string, document: Query<T>, populate?: string | string[], userId?: string, scope?: string): Promise<T | any>;
|
|
40
|
+
findByIdAndReplace<T>(schemaName: string, id: string, document: Query<T>, options?: PopulateAuthzOptions): Promise<T | any>;
|
|
33
41
|
updateMany<T>(schemaName: string, filterQuery: Query<T>, query: Query<T>, populate?: string | string[], userId?: string, scope?: string): Promise<any>;
|
|
42
|
+
updateMany<T>(schemaName: string, filterQuery: Query<T>, query: Query<T>, options?: PopulateAuthzOptions): Promise<any>;
|
|
34
43
|
updateOne<T>(schemaName: string, filterQuery: Query<T>, query: Query<T>, populate?: string | string[], userId?: string, scope?: string): Promise<any>;
|
|
44
|
+
updateOne<T>(schemaName: string, filterQuery: Query<T>, query: Query<T>, options?: PopulateAuthzOptions): Promise<any>;
|
|
35
45
|
replaceOne<T>(schemaName: string, filterQuery: Query<T>, query: Query<T>, populate?: string | string[], userId?: string, scope?: string): Promise<any>;
|
|
46
|
+
replaceOne<T>(schemaName: string, filterQuery: Query<T>, query: Query<T>, options?: PopulateAuthzOptions): Promise<any>;
|
|
36
47
|
deleteOne<T>(schemaName: string, query: Query<T>, userId?: string, scope?: string): Promise<any>;
|
|
48
|
+
deleteOne<T>(schemaName: string, query: Query<T>, options?: AuthzOptions): Promise<any>;
|
|
37
49
|
deleteMany<T>(schemaName: string, query: Query<T>, userId?: string, scope?: string): Promise<any>;
|
|
50
|
+
deleteMany<T>(schemaName: string, query: Query<T>, options?: AuthzOptions): Promise<any>;
|
|
38
51
|
countDocuments<T>(schemaName: string, query: Query<T>, userId?: string, scope?: string): Promise<number>;
|
|
52
|
+
countDocuments<T>(schemaName: string, query: Query<T>, options?: AuthzOptions): Promise<number>;
|
|
39
53
|
rawQuery(schemaName: string, query: RawQuery): Promise<any>;
|
|
40
54
|
createView(schemaName: string, viewName: string, joinedSchemas: string[], query: {
|
|
41
55
|
mongoQuery?: Indexable;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type FindOneOptions = {
|
|
2
|
+
select?: string;
|
|
3
|
+
populate?: string | string[];
|
|
4
|
+
userId?: string;
|
|
5
|
+
scope?: string;
|
|
6
|
+
};
|
|
7
|
+
export type FindManyOptions = {
|
|
8
|
+
select?: string;
|
|
9
|
+
skip?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
sort?: {
|
|
12
|
+
[field: string]: -1 | 1;
|
|
13
|
+
} | string[] | string;
|
|
14
|
+
populate?: string | string[];
|
|
15
|
+
userId?: string;
|
|
16
|
+
scope?: string;
|
|
17
|
+
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ConduitModule } from '../../classes/index.js';
|
|
2
|
-
import { PushNotificationsDefinition } from '../../protoUtils/index.js';
|
|
2
|
+
import { PushNotificationsDefinition, SendNotificationResponse } from '../../protoUtils/index.js';
|
|
3
|
+
import { SendNotificationOptions } from './types';
|
|
3
4
|
export declare class PushNotifications extends ConduitModule<typeof PushNotificationsDefinition> {
|
|
4
5
|
private readonly moduleName;
|
|
5
6
|
constructor(moduleName: string, url: string, grpcToken?: string);
|
|
6
7
|
sendNotificationToken(token: string, platform: string, userId: string): Promise<any>;
|
|
7
8
|
getNotificationTokens(userId: string): Promise<any[]>;
|
|
8
|
-
sendNotification(sendTo: string, title: string, body?: string, data?: string, platform?: string): Promise<
|
|
9
|
+
sendNotification(sendTo: string, title: string, body?: string, data?: string, platform?: string): Promise<SendNotificationResponse>;
|
|
10
|
+
sendNotification(sendTo: string, title: string, options?: SendNotificationOptions): Promise<SendNotificationResponse>;
|
|
9
11
|
sendManyNotifications(notifications: [
|
|
10
12
|
{
|
|
11
13
|
sendTo: string;
|
|
@@ -14,6 +16,7 @@ export declare class PushNotifications extends ConduitModule<typeof PushNotifica
|
|
|
14
16
|
data?: string;
|
|
15
17
|
platform?: string;
|
|
16
18
|
}
|
|
17
|
-
]): Promise<
|
|
18
|
-
sendNotificationToManyDevices(sendTo: string[], title: string, body?: string, data?: string, platform?: string): Promise<
|
|
19
|
+
]): Promise<SendNotificationResponse>;
|
|
20
|
+
sendNotificationToManyDevices(sendTo: string[], title: string, body?: string, data?: string, platform?: string): Promise<SendNotificationResponse>;
|
|
21
|
+
sendNotificationToManyDevices(sendTo: string[], title: string, options?: SendNotificationOptions): Promise<SendNotificationResponse>;
|
|
19
22
|
}
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import { ConduitModule } from '../../classes/index.js';
|
|
2
|
-
import { DeleteFileResponse, FileResponse, GetFileDataResponse, GetFileUrlResponse, StorageDefinition } from '../../protoUtils/storage.js';
|
|
2
|
+
import { DeleteFileResponse, FileByUrlResponse, FileResponse, GetFileDataResponse, GetFileUrlResponse, StorageDefinition } from '../../protoUtils/storage.js';
|
|
3
|
+
import { AuthzOptions } from '../../types';
|
|
4
|
+
import { CreateFileByURLOptions, CreateFileOptions, UpdateFileByURLOptions, UpdateFileOptions } from './types';
|
|
3
5
|
export declare class Storage extends ConduitModule<typeof StorageDefinition> {
|
|
4
6
|
private readonly moduleName;
|
|
5
7
|
constructor(moduleName: string, url: string, grpcToken?: string);
|
|
6
8
|
getFile(id: string, userId?: string, scope?: string): Promise<FileResponse>;
|
|
9
|
+
getFile(id: string, options?: AuthzOptions): Promise<FileResponse>;
|
|
7
10
|
getFileUrl(id: string, userId?: string, scope?: string): Promise<GetFileUrlResponse>;
|
|
11
|
+
getFileUrl(id: string, options?: AuthzOptions): Promise<GetFileUrlResponse>;
|
|
8
12
|
getFileData(id: string, userId?: string, scope?: string): Promise<GetFileDataResponse>;
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
getFileData(id: string, options?: AuthzOptions): Promise<GetFileDataResponse>;
|
|
14
|
+
createFile(name: string | undefined, data: string, folder?: string, container?: string, mimeType?: string, isPublic?: boolean, userId?: string, scope?: string, alias?: string): Promise<FileResponse>;
|
|
15
|
+
createFile(name: string | undefined, data: string, options?: CreateFileOptions): Promise<FileResponse>;
|
|
16
|
+
updateFile(id: string, data: string, name?: string, folder?: string, container?: string, mimeType?: string, userId?: string, scope?: string, alias?: string): Promise<FileResponse>;
|
|
17
|
+
updateFile(id: string, data: string, options?: UpdateFileOptions): Promise<FileResponse>;
|
|
11
18
|
deleteFile(id: string, userId?: string, scope?: string): Promise<DeleteFileResponse>;
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
deleteFile(id: string, options?: AuthzOptions): Promise<DeleteFileResponse>;
|
|
20
|
+
createFileByUrl(name: string | undefined, folder?: string, container?: string, mimeType?: string, size?: number, isPublic?: boolean, userId?: string, scope?: string, alias?: string): Promise<FileByUrlResponse>;
|
|
21
|
+
createFileByUrl(name: string | undefined, options?: CreateFileByURLOptions): Promise<FileByUrlResponse>;
|
|
22
|
+
updateFileByUrl(id: string, name?: string, folder?: string, container?: string, mimeType?: string, size?: number, userId?: string, scope?: string, alias?: string): Promise<FileByUrlResponse>;
|
|
23
|
+
updateFileByUrl(id: string, options?: UpdateFileByURLOptions): Promise<FileByUrlResponse>;
|
|
14
24
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type CreateFileOptions = {
|
|
2
|
+
folder?: string;
|
|
3
|
+
container?: string;
|
|
4
|
+
mimeType?: string;
|
|
5
|
+
isPublic?: boolean;
|
|
6
|
+
userId?: string;
|
|
7
|
+
scope?: string;
|
|
8
|
+
alias?: string;
|
|
9
|
+
};
|
|
10
|
+
export type UpdateFileOptions = {
|
|
11
|
+
name?: string;
|
|
12
|
+
folder?: string;
|
|
13
|
+
container?: string;
|
|
14
|
+
mimeType?: string;
|
|
15
|
+
userId?: string;
|
|
16
|
+
scope?: string;
|
|
17
|
+
alias?: string;
|
|
18
|
+
};
|
|
19
|
+
export type CreateFileByURLOptions = {
|
|
20
|
+
size?: number;
|
|
21
|
+
} & CreateFileOptions;
|
|
22
|
+
export type UpdateFileByURLOptions = {
|
|
23
|
+
size?: number;
|
|
24
|
+
} & UpdateFileOptions;
|
|
@@ -8,6 +8,7 @@ export interface UserCreateRequest {
|
|
|
8
8
|
email: string;
|
|
9
9
|
password?: string | undefined;
|
|
10
10
|
verify: boolean;
|
|
11
|
+
anonymousId?: string | undefined;
|
|
11
12
|
}
|
|
12
13
|
export interface UserChangePass {
|
|
13
14
|
email: string;
|
|
@@ -67,6 +68,9 @@ export declare enum ValidateAccessTokenResponse_Status {
|
|
|
67
68
|
}
|
|
68
69
|
export declare function validateAccessTokenResponse_StatusFromJSON(object: any): ValidateAccessTokenResponse_Status;
|
|
69
70
|
export declare function validateAccessTokenResponse_StatusToJSON(object: ValidateAccessTokenResponse_Status): string;
|
|
71
|
+
export interface AnonymousUserCreateRequest {
|
|
72
|
+
clientId: string;
|
|
73
|
+
}
|
|
70
74
|
export declare const UserLoginRequest: {
|
|
71
75
|
encode(message: UserLoginRequest, writer?: _m0.Writer): _m0.Writer;
|
|
72
76
|
decode(input: _m0.Reader | Uint8Array, length?: number): UserLoginRequest;
|
|
@@ -187,6 +191,14 @@ export declare const ValidateAccessTokenResponse: {
|
|
|
187
191
|
create(base?: DeepPartial<ValidateAccessTokenResponse>): ValidateAccessTokenResponse;
|
|
188
192
|
fromPartial(object: DeepPartial<ValidateAccessTokenResponse>): ValidateAccessTokenResponse;
|
|
189
193
|
};
|
|
194
|
+
export declare const AnonymousUserCreateRequest: {
|
|
195
|
+
encode(message: AnonymousUserCreateRequest, writer?: _m0.Writer): _m0.Writer;
|
|
196
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AnonymousUserCreateRequest;
|
|
197
|
+
fromJSON(object: any): AnonymousUserCreateRequest;
|
|
198
|
+
toJSON(message: AnonymousUserCreateRequest): unknown;
|
|
199
|
+
create(base?: DeepPartial<AnonymousUserCreateRequest>): AnonymousUserCreateRequest;
|
|
200
|
+
fromPartial(object: DeepPartial<AnonymousUserCreateRequest>): AnonymousUserCreateRequest;
|
|
201
|
+
};
|
|
190
202
|
export type AuthenticationDefinition = typeof AuthenticationDefinition;
|
|
191
203
|
export declare const AuthenticationDefinition: {
|
|
192
204
|
readonly name: "Authentication";
|
|
@@ -236,6 +248,28 @@ export declare const AuthenticationDefinition: {
|
|
|
236
248
|
readonly responseStream: false;
|
|
237
249
|
readonly options: {};
|
|
238
250
|
};
|
|
251
|
+
readonly anonymousUserCreate: {
|
|
252
|
+
readonly name: "AnonymousUserCreate";
|
|
253
|
+
readonly requestType: {
|
|
254
|
+
encode(message: AnonymousUserCreateRequest, writer?: _m0.Writer): _m0.Writer;
|
|
255
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AnonymousUserCreateRequest;
|
|
256
|
+
fromJSON(object: any): AnonymousUserCreateRequest;
|
|
257
|
+
toJSON(message: AnonymousUserCreateRequest): unknown;
|
|
258
|
+
create(base?: DeepPartial<AnonymousUserCreateRequest>): AnonymousUserCreateRequest;
|
|
259
|
+
fromPartial(object: DeepPartial<AnonymousUserCreateRequest>): AnonymousUserCreateRequest;
|
|
260
|
+
};
|
|
261
|
+
readonly requestStream: false;
|
|
262
|
+
readonly responseType: {
|
|
263
|
+
encode(message: UserLoginResponse, writer?: _m0.Writer): _m0.Writer;
|
|
264
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserLoginResponse;
|
|
265
|
+
fromJSON(object: any): UserLoginResponse;
|
|
266
|
+
toJSON(message: UserLoginResponse): unknown;
|
|
267
|
+
create(base?: DeepPartial<UserLoginResponse>): UserLoginResponse;
|
|
268
|
+
fromPartial(object: DeepPartial<UserLoginResponse>): UserLoginResponse;
|
|
269
|
+
};
|
|
270
|
+
readonly responseStream: false;
|
|
271
|
+
readonly options: {};
|
|
272
|
+
};
|
|
239
273
|
readonly changePass: {
|
|
240
274
|
readonly name: "ChangePass";
|
|
241
275
|
readonly requestType: {
|
|
@@ -359,10 +393,10 @@ export declare const AuthenticationDefinition: {
|
|
|
359
393
|
readonly requestStream: false;
|
|
360
394
|
readonly responseType: {
|
|
361
395
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
362
|
-
decode(input:
|
|
396
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
363
397
|
fromJSON(_: any): Empty;
|
|
364
398
|
toJSON(_: Empty): unknown;
|
|
365
|
-
create(base?: {}
|
|
399
|
+
create(base?: {}): Empty;
|
|
366
400
|
fromPartial(_: {}): Empty;
|
|
367
401
|
};
|
|
368
402
|
readonly responseStream: false;
|
|
@@ -381,10 +415,10 @@ export declare const AuthenticationDefinition: {
|
|
|
381
415
|
readonly requestStream: false;
|
|
382
416
|
readonly responseType: {
|
|
383
417
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
384
|
-
decode(input:
|
|
418
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
385
419
|
fromJSON(_: any): Empty;
|
|
386
420
|
toJSON(_: Empty): unknown;
|
|
387
|
-
create(base?: {}
|
|
421
|
+
create(base?: {}): Empty;
|
|
388
422
|
fromPartial(_: {}): Empty;
|
|
389
423
|
};
|
|
390
424
|
readonly responseStream: false;
|
|
@@ -264,10 +264,10 @@ export declare const AuthorizationDefinition: {
|
|
|
264
264
|
readonly requestStream: false;
|
|
265
265
|
readonly responseType: {
|
|
266
266
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
267
|
-
decode(input:
|
|
267
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
268
268
|
fromJSON(_: any): Empty;
|
|
269
269
|
toJSON(_: Empty): unknown;
|
|
270
|
-
create(base?: {}
|
|
270
|
+
create(base?: {}): Empty;
|
|
271
271
|
fromPartial(_: {}): Empty;
|
|
272
272
|
};
|
|
273
273
|
readonly responseStream: false;
|
|
@@ -308,10 +308,10 @@ export declare const AuthorizationDefinition: {
|
|
|
308
308
|
readonly requestStream: false;
|
|
309
309
|
readonly responseType: {
|
|
310
310
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
311
|
-
decode(input:
|
|
311
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
312
312
|
fromJSON(_: any): Empty;
|
|
313
313
|
toJSON(_: Empty): unknown;
|
|
314
|
-
create(base?: {}
|
|
314
|
+
create(base?: {}): Empty;
|
|
315
315
|
fromPartial(_: {}): Empty;
|
|
316
316
|
};
|
|
317
317
|
readonly responseStream: false;
|
|
@@ -330,10 +330,10 @@ export declare const AuthorizationDefinition: {
|
|
|
330
330
|
readonly requestStream: false;
|
|
331
331
|
readonly responseType: {
|
|
332
332
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
333
|
-
decode(input:
|
|
333
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
334
334
|
fromJSON(_: any): Empty;
|
|
335
335
|
toJSON(_: Empty): unknown;
|
|
336
|
-
create(base?: {}
|
|
336
|
+
create(base?: {}): Empty;
|
|
337
337
|
fromPartial(_: {}): Empty;
|
|
338
338
|
};
|
|
339
339
|
readonly responseStream: false;
|
|
@@ -352,10 +352,10 @@ export declare const AuthorizationDefinition: {
|
|
|
352
352
|
readonly requestStream: false;
|
|
353
353
|
readonly responseType: {
|
|
354
354
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
355
|
-
decode(input:
|
|
355
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
356
356
|
fromJSON(_: any): Empty;
|
|
357
357
|
toJSON(_: Empty): unknown;
|
|
358
|
-
create(base?: {}
|
|
358
|
+
create(base?: {}): Empty;
|
|
359
359
|
fromPartial(_: {}): Empty;
|
|
360
360
|
};
|
|
361
361
|
readonly responseStream: false;
|
|
@@ -374,10 +374,10 @@ export declare const AuthorizationDefinition: {
|
|
|
374
374
|
readonly requestStream: false;
|
|
375
375
|
readonly responseType: {
|
|
376
376
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
377
|
-
decode(input:
|
|
377
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
378
378
|
fromJSON(_: any): Empty;
|
|
379
379
|
toJSON(_: Empty): unknown;
|
|
380
|
-
create(base?: {}
|
|
380
|
+
create(base?: {}): Empty;
|
|
381
381
|
fromPartial(_: {}): Empty;
|
|
382
382
|
};
|
|
383
383
|
readonly responseStream: false;
|
|
@@ -396,10 +396,10 @@ export declare const AuthorizationDefinition: {
|
|
|
396
396
|
readonly requestStream: false;
|
|
397
397
|
readonly responseType: {
|
|
398
398
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
399
|
-
decode(input:
|
|
399
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
400
400
|
fromJSON(_: any): Empty;
|
|
401
401
|
toJSON(_: Empty): unknown;
|
|
402
|
-
create(base?: {}
|
|
402
|
+
create(base?: {}): Empty;
|
|
403
403
|
fromPartial(_: {}): Empty;
|
|
404
404
|
};
|
|
405
405
|
readonly responseStream: false;
|
|
@@ -418,10 +418,10 @@ export declare const AuthorizationDefinition: {
|
|
|
418
418
|
readonly requestStream: false;
|
|
419
419
|
readonly responseType: {
|
|
420
420
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
421
|
-
decode(input:
|
|
421
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
422
422
|
fromJSON(_: any): Empty;
|
|
423
423
|
toJSON(_: Empty): unknown;
|
|
424
|
-
create(base?: {}
|
|
424
|
+
create(base?: {}): Empty;
|
|
425
425
|
fromPartial(_: {}): Empty;
|
|
426
426
|
};
|
|
427
427
|
readonly responseStream: false;
|
|
@@ -122,10 +122,10 @@ export declare const ChatDefinition: {
|
|
|
122
122
|
readonly requestStream: false;
|
|
123
123
|
readonly responseType: {
|
|
124
124
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
125
|
-
decode(input:
|
|
125
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
126
126
|
fromJSON(_: any): Empty;
|
|
127
127
|
toJSON(_: Empty): unknown;
|
|
128
|
-
create(base?: {}
|
|
128
|
+
create(base?: {}): Empty;
|
|
129
129
|
fromPartial(_: {}): Empty;
|
|
130
130
|
};
|
|
131
131
|
readonly responseStream: false;
|
|
@@ -359,10 +359,10 @@ export declare const ConfigDefinition: {
|
|
|
359
359
|
readonly name: "ModuleList";
|
|
360
360
|
readonly requestType: {
|
|
361
361
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
362
|
-
decode(input:
|
|
362
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
363
363
|
fromJSON(_: any): Empty;
|
|
364
364
|
toJSON(_: Empty): unknown;
|
|
365
|
-
create(base?: {}
|
|
365
|
+
create(base?: {}): Empty;
|
|
366
366
|
fromPartial(_: {}): Empty;
|
|
367
367
|
};
|
|
368
368
|
readonly requestStream: false;
|
|
@@ -381,10 +381,10 @@ export declare const ConfigDefinition: {
|
|
|
381
381
|
readonly name: "WatchModules";
|
|
382
382
|
readonly requestType: {
|
|
383
383
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
384
|
-
decode(input:
|
|
384
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
385
385
|
fromJSON(_: any): Empty;
|
|
386
386
|
toJSON(_: Empty): unknown;
|
|
387
|
-
create(base?: {}
|
|
387
|
+
create(base?: {}): Empty;
|
|
388
388
|
fromPartial(_: {}): Empty;
|
|
389
389
|
};
|
|
390
390
|
readonly requestStream: false;
|
|
@@ -434,10 +434,10 @@ export declare const ConfigDefinition: {
|
|
|
434
434
|
readonly requestStream: false;
|
|
435
435
|
readonly responseType: {
|
|
436
436
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
437
|
-
decode(input:
|
|
437
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
438
438
|
fromJSON(_: any): Empty;
|
|
439
439
|
toJSON(_: Empty): unknown;
|
|
440
|
-
create(base?: {}
|
|
440
|
+
create(base?: {}): Empty;
|
|
441
441
|
fromPartial(_: {}): Empty;
|
|
442
442
|
};
|
|
443
443
|
readonly responseStream: false;
|
|
@@ -447,10 +447,10 @@ export declare const ConfigDefinition: {
|
|
|
447
447
|
readonly name: "GetServerConfig";
|
|
448
448
|
readonly requestType: {
|
|
449
449
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
450
|
-
decode(input:
|
|
450
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
451
451
|
fromJSON(_: any): Empty;
|
|
452
452
|
toJSON(_: Empty): unknown;
|
|
453
|
-
create(base?: {}
|
|
453
|
+
create(base?: {}): Empty;
|
|
454
454
|
fromPartial(_: {}): Empty;
|
|
455
455
|
};
|
|
456
456
|
readonly requestStream: false;
|
|
@@ -469,10 +469,10 @@ export declare const ConfigDefinition: {
|
|
|
469
469
|
readonly name: "GetRedisDetails";
|
|
470
470
|
readonly requestType: {
|
|
471
471
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
472
|
-
decode(input:
|
|
472
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
473
473
|
fromJSON(_: any): Empty;
|
|
474
474
|
toJSON(_: Empty): unknown;
|
|
475
|
-
create(base?: {}
|
|
475
|
+
create(base?: {}): Empty;
|
|
476
476
|
fromPartial(_: {}): Empty;
|
|
477
477
|
};
|
|
478
478
|
readonly requestStream: false;
|
|
@@ -529,10 +529,10 @@ export declare const AdminDefinition: {
|
|
|
529
529
|
readonly requestStream: false;
|
|
530
530
|
readonly responseType: {
|
|
531
531
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
532
|
-
decode(input:
|
|
532
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
533
533
|
fromJSON(_: any): Empty;
|
|
534
534
|
toJSON(_: Empty): unknown;
|
|
535
|
-
create(base?: {}
|
|
535
|
+
create(base?: {}): Empty;
|
|
536
536
|
fromPartial(_: {}): Empty;
|
|
537
537
|
};
|
|
538
538
|
readonly responseStream: false;
|
|
@@ -551,10 +551,10 @@ export declare const AdminDefinition: {
|
|
|
551
551
|
readonly requestStream: false;
|
|
552
552
|
readonly responseType: {
|
|
553
553
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
554
|
-
decode(input:
|
|
554
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
555
555
|
fromJSON(_: any): Empty;
|
|
556
556
|
toJSON(_: Empty): unknown;
|
|
557
|
-
create(base?: {}
|
|
557
|
+
create(base?: {}): Empty;
|
|
558
558
|
fromPartial(_: {}): Empty;
|
|
559
559
|
};
|
|
560
560
|
readonly responseStream: false;
|
|
@@ -471,10 +471,10 @@ export declare const DatabaseProviderDefinition: {
|
|
|
471
471
|
readonly requestStream: false;
|
|
472
472
|
readonly responseType: {
|
|
473
473
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
474
|
-
decode(input:
|
|
474
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
475
475
|
fromJSON(_: any): Empty;
|
|
476
476
|
toJSON(_: Empty): unknown;
|
|
477
|
-
create(base?: {}
|
|
477
|
+
create(base?: {}): Empty;
|
|
478
478
|
fromPartial(_: {}): Empty;
|
|
479
479
|
};
|
|
480
480
|
readonly responseStream: false;
|
|
@@ -484,10 +484,10 @@ export declare const DatabaseProviderDefinition: {
|
|
|
484
484
|
readonly name: "GetDatabaseType";
|
|
485
485
|
readonly requestType: {
|
|
486
486
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
487
|
-
decode(input:
|
|
487
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
488
488
|
fromJSON(_: any): Empty;
|
|
489
489
|
toJSON(_: Empty): unknown;
|
|
490
|
-
create(base?: {}
|
|
490
|
+
create(base?: {}): Empty;
|
|
491
491
|
fromPartial(_: {}): Empty;
|
|
492
492
|
};
|
|
493
493
|
readonly requestStream: false;
|
|
@@ -802,10 +802,10 @@ export declare const DatabaseProviderDefinition: {
|
|
|
802
802
|
readonly requestStream: false;
|
|
803
803
|
readonly responseType: {
|
|
804
804
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
805
|
-
decode(input:
|
|
805
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
806
806
|
fromJSON(_: any): Empty;
|
|
807
807
|
toJSON(_: Empty): unknown;
|
|
808
|
-
create(base?: {}
|
|
808
|
+
create(base?: {}): Empty;
|
|
809
809
|
fromPartial(_: {}): Empty;
|
|
810
810
|
};
|
|
811
811
|
readonly responseStream: false;
|
|
@@ -824,10 +824,10 @@ export declare const DatabaseProviderDefinition: {
|
|
|
824
824
|
readonly requestStream: false;
|
|
825
825
|
readonly responseType: {
|
|
826
826
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
827
|
-
decode(input:
|
|
827
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
828
828
|
fromJSON(_: any): Empty;
|
|
829
829
|
toJSON(_: Empty): unknown;
|
|
830
|
-
create(base?: {}
|
|
830
|
+
create(base?: {}): Empty;
|
|
831
831
|
fromPartial(_: {}): Empty;
|
|
832
832
|
};
|
|
833
833
|
readonly responseStream: false;
|
|
@@ -24,6 +24,18 @@ export interface SendEmailRequest_SendEmailParams {
|
|
|
24
24
|
export interface SendEmailResponse {
|
|
25
25
|
sentMessageInfo: string;
|
|
26
26
|
}
|
|
27
|
+
export interface ResendEmailRequest {
|
|
28
|
+
emailRecordId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ResendEmailResponse {
|
|
31
|
+
sentMessageInfo: string;
|
|
32
|
+
}
|
|
33
|
+
export interface GetEmailStatusRequest {
|
|
34
|
+
messageId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface GetEmailStatusResponse {
|
|
37
|
+
statusInfo: string;
|
|
38
|
+
}
|
|
27
39
|
export declare const RegisterTemplateRequest: {
|
|
28
40
|
encode(message: RegisterTemplateRequest, writer?: _m0.Writer): _m0.Writer;
|
|
29
41
|
decode(input: _m0.Reader | Uint8Array, length?: number): RegisterTemplateRequest;
|
|
@@ -64,6 +76,38 @@ export declare const SendEmailResponse: {
|
|
|
64
76
|
create(base?: DeepPartial<SendEmailResponse>): SendEmailResponse;
|
|
65
77
|
fromPartial(object: DeepPartial<SendEmailResponse>): SendEmailResponse;
|
|
66
78
|
};
|
|
79
|
+
export declare const ResendEmailRequest: {
|
|
80
|
+
encode(message: ResendEmailRequest, writer?: _m0.Writer): _m0.Writer;
|
|
81
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ResendEmailRequest;
|
|
82
|
+
fromJSON(object: any): ResendEmailRequest;
|
|
83
|
+
toJSON(message: ResendEmailRequest): unknown;
|
|
84
|
+
create(base?: DeepPartial<ResendEmailRequest>): ResendEmailRequest;
|
|
85
|
+
fromPartial(object: DeepPartial<ResendEmailRequest>): ResendEmailRequest;
|
|
86
|
+
};
|
|
87
|
+
export declare const ResendEmailResponse: {
|
|
88
|
+
encode(message: ResendEmailResponse, writer?: _m0.Writer): _m0.Writer;
|
|
89
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ResendEmailResponse;
|
|
90
|
+
fromJSON(object: any): ResendEmailResponse;
|
|
91
|
+
toJSON(message: ResendEmailResponse): unknown;
|
|
92
|
+
create(base?: DeepPartial<ResendEmailResponse>): ResendEmailResponse;
|
|
93
|
+
fromPartial(object: DeepPartial<ResendEmailResponse>): ResendEmailResponse;
|
|
94
|
+
};
|
|
95
|
+
export declare const GetEmailStatusRequest: {
|
|
96
|
+
encode(message: GetEmailStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
97
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetEmailStatusRequest;
|
|
98
|
+
fromJSON(object: any): GetEmailStatusRequest;
|
|
99
|
+
toJSON(message: GetEmailStatusRequest): unknown;
|
|
100
|
+
create(base?: DeepPartial<GetEmailStatusRequest>): GetEmailStatusRequest;
|
|
101
|
+
fromPartial(object: DeepPartial<GetEmailStatusRequest>): GetEmailStatusRequest;
|
|
102
|
+
};
|
|
103
|
+
export declare const GetEmailStatusResponse: {
|
|
104
|
+
encode(message: GetEmailStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
105
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetEmailStatusResponse;
|
|
106
|
+
fromJSON(object: any): GetEmailStatusResponse;
|
|
107
|
+
toJSON(message: GetEmailStatusResponse): unknown;
|
|
108
|
+
create(base?: DeepPartial<GetEmailStatusResponse>): GetEmailStatusResponse;
|
|
109
|
+
fromPartial(object: DeepPartial<GetEmailStatusResponse>): GetEmailStatusResponse;
|
|
110
|
+
};
|
|
67
111
|
export type EmailDefinition = typeof EmailDefinition;
|
|
68
112
|
export declare const EmailDefinition: {
|
|
69
113
|
readonly name: "Email";
|
|
@@ -113,6 +157,50 @@ export declare const EmailDefinition: {
|
|
|
113
157
|
readonly responseStream: false;
|
|
114
158
|
readonly options: {};
|
|
115
159
|
};
|
|
160
|
+
readonly resendEmail: {
|
|
161
|
+
readonly name: "ResendEmail";
|
|
162
|
+
readonly requestType: {
|
|
163
|
+
encode(message: ResendEmailRequest, writer?: _m0.Writer): _m0.Writer;
|
|
164
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ResendEmailRequest;
|
|
165
|
+
fromJSON(object: any): ResendEmailRequest;
|
|
166
|
+
toJSON(message: ResendEmailRequest): unknown;
|
|
167
|
+
create(base?: DeepPartial<ResendEmailRequest>): ResendEmailRequest;
|
|
168
|
+
fromPartial(object: DeepPartial<ResendEmailRequest>): ResendEmailRequest;
|
|
169
|
+
};
|
|
170
|
+
readonly requestStream: false;
|
|
171
|
+
readonly responseType: {
|
|
172
|
+
encode(message: ResendEmailResponse, writer?: _m0.Writer): _m0.Writer;
|
|
173
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ResendEmailResponse;
|
|
174
|
+
fromJSON(object: any): ResendEmailResponse;
|
|
175
|
+
toJSON(message: ResendEmailResponse): unknown;
|
|
176
|
+
create(base?: DeepPartial<ResendEmailResponse>): ResendEmailResponse;
|
|
177
|
+
fromPartial(object: DeepPartial<ResendEmailResponse>): ResendEmailResponse;
|
|
178
|
+
};
|
|
179
|
+
readonly responseStream: false;
|
|
180
|
+
readonly options: {};
|
|
181
|
+
};
|
|
182
|
+
readonly getEmailStatus: {
|
|
183
|
+
readonly name: "GetEmailStatus";
|
|
184
|
+
readonly requestType: {
|
|
185
|
+
encode(message: GetEmailStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
186
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetEmailStatusRequest;
|
|
187
|
+
fromJSON(object: any): GetEmailStatusRequest;
|
|
188
|
+
toJSON(message: GetEmailStatusRequest): unknown;
|
|
189
|
+
create(base?: DeepPartial<GetEmailStatusRequest>): GetEmailStatusRequest;
|
|
190
|
+
fromPartial(object: DeepPartial<GetEmailStatusRequest>): GetEmailStatusRequest;
|
|
191
|
+
};
|
|
192
|
+
readonly requestStream: false;
|
|
193
|
+
readonly responseType: {
|
|
194
|
+
encode(message: GetEmailStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
195
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetEmailStatusResponse;
|
|
196
|
+
fromJSON(object: any): GetEmailStatusResponse;
|
|
197
|
+
toJSON(message: GetEmailStatusResponse): unknown;
|
|
198
|
+
create(base?: DeepPartial<GetEmailStatusResponse>): GetEmailStatusResponse;
|
|
199
|
+
fromPartial(object: DeepPartial<GetEmailStatusResponse>): GetEmailStatusResponse;
|
|
200
|
+
};
|
|
201
|
+
readonly responseStream: false;
|
|
202
|
+
readonly options: {};
|
|
203
|
+
};
|
|
116
204
|
};
|
|
117
205
|
};
|
|
118
206
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|