@conduitplatform/grpc-sdk 0.16.26 → 0.17.0-alpha.2

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.
Files changed (78) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.cjs +18094 -14824
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +3388 -0
  5. package/dist/index.d.ts +3308 -21
  6. package/dist/index.esm.js +17839 -14629
  7. package/dist/index.esm.js.map +1 -1
  8. package/dist/module.proto +25 -0
  9. package/package.json +32 -36
  10. package/dist/classes/ConduitAuthorizedResource.d.ts +0 -12
  11. package/dist/classes/ConduitModule.d.ts +0 -28
  12. package/dist/classes/ConduitSchema.d.ts +0 -10
  13. package/dist/classes/Error.d.ts +0 -11
  14. package/dist/classes/HealthCheck.d.ts +0 -1
  15. package/dist/classes/index.d.ts +0 -5
  16. package/dist/constants/enums/PlatformTypesEnum.d.ts +0 -10
  17. package/dist/constants/enums/index.d.ts +0 -1
  18. package/dist/constants/index.d.ts +0 -1
  19. package/dist/interceptors/grpcSignedToken.d.ts +0 -2
  20. package/dist/interceptors/index.d.ts +0 -2
  21. package/dist/interceptors/moduleName.d.ts +0 -2
  22. package/dist/interfaces/ConduitMiddleware.d.ts +0 -7
  23. package/dist/interfaces/ConduitRoute.d.ts +0 -7
  24. package/dist/interfaces/ConduitRouteReturn.d.ts +0 -48
  25. package/dist/interfaces/ConduitSchemaExtension.d.ts +0 -5
  26. package/dist/interfaces/GrpcCallback.d.ts +0 -4
  27. package/dist/interfaces/IConduitLogger.d.ts +0 -13
  28. package/dist/interfaces/IConduitMetrics.d.ts +0 -16
  29. package/dist/interfaces/Indexable.d.ts +0 -9
  30. package/dist/interfaces/Model.d.ts +0 -170
  31. package/dist/interfaces/Params.d.ts +0 -8
  32. package/dist/interfaces/ProxyRoute.d.ts +0 -42
  33. package/dist/interfaces/RawQuery.d.ts +0 -22
  34. package/dist/interfaces/Route.d.ts +0 -71
  35. package/dist/interfaces/Socket.d.ts +0 -22
  36. package/dist/interfaces/UntypedArray.d.ts +0 -1
  37. package/dist/interfaces/index.d.ts +0 -16
  38. package/dist/interfaces/types.d.ts +0 -38
  39. package/dist/modules/admin/index.d.ts +0 -9
  40. package/dist/modules/authentication/index.d.ts +0 -23
  41. package/dist/modules/authorization/index.d.ts +0 -20
  42. package/dist/modules/chat/index.d.ts +0 -9
  43. package/dist/modules/config/index.d.ts +0 -33
  44. package/dist/modules/core/index.d.ts +0 -6
  45. package/dist/modules/database/index.d.ts +0 -64
  46. package/dist/modules/database/types.d.ts +0 -17
  47. package/dist/modules/email/index.d.ts +0 -36
  48. package/dist/modules/index.d.ts +0 -12
  49. package/dist/modules/pushNotifications/index.d.ts +0 -24
  50. package/dist/modules/pushNotifications/types.d.ts +0 -7
  51. package/dist/modules/router/index.d.ts +0 -10
  52. package/dist/modules/sms/index.d.ts +0 -9
  53. package/dist/modules/storage/index.d.ts +0 -24
  54. package/dist/modules/storage/types.d.ts +0 -24
  55. package/dist/protoUtils/authentication.d.ts +0 -665
  56. package/dist/protoUtils/authorization.d.ts +0 -524
  57. package/dist/protoUtils/chat.d.ts +0 -142
  58. package/dist/protoUtils/core.d.ts +0 -569
  59. package/dist/protoUtils/database.d.ts +0 -886
  60. package/dist/protoUtils/email.d.ts +0 -266
  61. package/dist/protoUtils/google/protobuf/empty.d.ts +0 -25
  62. package/dist/protoUtils/grpc_health_check.d.ts +0 -88
  63. package/dist/protoUtils/index.d.ts +0 -12
  64. package/dist/protoUtils/module.d.ts +0 -251
  65. package/dist/protoUtils/push-notifications.d.ts +0 -225
  66. package/dist/protoUtils/router.d.ts +0 -205
  67. package/dist/protoUtils/sms.d.ts +0 -147
  68. package/dist/protoUtils/storage.d.ts +0 -354
  69. package/dist/types/db.d.ts +0 -26
  70. package/dist/types/index.d.ts +0 -28
  71. package/dist/types/options.d.ts +0 -7
  72. package/dist/utilities/EventBus.d.ts +0 -12
  73. package/dist/utilities/RedisManager.d.ts +0 -24
  74. package/dist/utilities/StateManager.d.ts +0 -19
  75. package/dist/utilities/env.d.ts +0 -1
  76. package/dist/utilities/index.d.ts +0 -5
  77. package/dist/utilities/normalizeOptions.d.ts +0 -3
  78. package/dist/utilities/sleep.d.ts +0 -1
@@ -1,225 +0,0 @@
1
- import _m0 from "protobufjs/minimal.js";
2
- export interface SetNotificationTokenRequest {
3
- token: string;
4
- platform: string;
5
- userId: string;
6
- }
7
- export interface SetNotificationTokenResponse {
8
- newTokenDocument: string;
9
- }
10
- export interface GetNotificationTokensRequest {
11
- userId: string;
12
- }
13
- export interface GetNotificationTokensResponse {
14
- tokenDocuments: string[];
15
- }
16
- export interface SendNotificationRequest {
17
- sendTo: string;
18
- title?: string | undefined;
19
- platform?: string | undefined;
20
- body?: string | undefined;
21
- data?: string | undefined;
22
- doNotStore?: boolean | undefined;
23
- isSilent?: boolean | undefined;
24
- }
25
- export interface SendNotificationToManyDevicesRequest {
26
- sendTo: string[];
27
- title?: string | undefined;
28
- body?: string | undefined;
29
- data?: string | undefined;
30
- platform?: string | undefined;
31
- doNotStore?: boolean | undefined;
32
- isSilent?: boolean | undefined;
33
- }
34
- export interface SendManyNotificationsRequest {
35
- notifications: SendNotificationRequest[];
36
- }
37
- export interface SendNotificationResponse {
38
- message: string;
39
- }
40
- export declare const SetNotificationTokenRequest: {
41
- encode(message: SetNotificationTokenRequest, writer?: _m0.Writer): _m0.Writer;
42
- decode(input: _m0.Reader | Uint8Array, length?: number): SetNotificationTokenRequest;
43
- fromJSON(object: any): SetNotificationTokenRequest;
44
- toJSON(message: SetNotificationTokenRequest): unknown;
45
- create(base?: DeepPartial<SetNotificationTokenRequest>): SetNotificationTokenRequest;
46
- fromPartial(object: DeepPartial<SetNotificationTokenRequest>): SetNotificationTokenRequest;
47
- };
48
- export declare const SetNotificationTokenResponse: {
49
- encode(message: SetNotificationTokenResponse, writer?: _m0.Writer): _m0.Writer;
50
- decode(input: _m0.Reader | Uint8Array, length?: number): SetNotificationTokenResponse;
51
- fromJSON(object: any): SetNotificationTokenResponse;
52
- toJSON(message: SetNotificationTokenResponse): unknown;
53
- create(base?: DeepPartial<SetNotificationTokenResponse>): SetNotificationTokenResponse;
54
- fromPartial(object: DeepPartial<SetNotificationTokenResponse>): SetNotificationTokenResponse;
55
- };
56
- export declare const GetNotificationTokensRequest: {
57
- encode(message: GetNotificationTokensRequest, writer?: _m0.Writer): _m0.Writer;
58
- decode(input: _m0.Reader | Uint8Array, length?: number): GetNotificationTokensRequest;
59
- fromJSON(object: any): GetNotificationTokensRequest;
60
- toJSON(message: GetNotificationTokensRequest): unknown;
61
- create(base?: DeepPartial<GetNotificationTokensRequest>): GetNotificationTokensRequest;
62
- fromPartial(object: DeepPartial<GetNotificationTokensRequest>): GetNotificationTokensRequest;
63
- };
64
- export declare const GetNotificationTokensResponse: {
65
- encode(message: GetNotificationTokensResponse, writer?: _m0.Writer): _m0.Writer;
66
- decode(input: _m0.Reader | Uint8Array, length?: number): GetNotificationTokensResponse;
67
- fromJSON(object: any): GetNotificationTokensResponse;
68
- toJSON(message: GetNotificationTokensResponse): unknown;
69
- create(base?: DeepPartial<GetNotificationTokensResponse>): GetNotificationTokensResponse;
70
- fromPartial(object: DeepPartial<GetNotificationTokensResponse>): GetNotificationTokensResponse;
71
- };
72
- export declare const SendNotificationRequest: {
73
- encode(message: SendNotificationRequest, writer?: _m0.Writer): _m0.Writer;
74
- decode(input: _m0.Reader | Uint8Array, length?: number): SendNotificationRequest;
75
- fromJSON(object: any): SendNotificationRequest;
76
- toJSON(message: SendNotificationRequest): unknown;
77
- create(base?: DeepPartial<SendNotificationRequest>): SendNotificationRequest;
78
- fromPartial(object: DeepPartial<SendNotificationRequest>): SendNotificationRequest;
79
- };
80
- export declare const SendNotificationToManyDevicesRequest: {
81
- encode(message: SendNotificationToManyDevicesRequest, writer?: _m0.Writer): _m0.Writer;
82
- decode(input: _m0.Reader | Uint8Array, length?: number): SendNotificationToManyDevicesRequest;
83
- fromJSON(object: any): SendNotificationToManyDevicesRequest;
84
- toJSON(message: SendNotificationToManyDevicesRequest): unknown;
85
- create(base?: DeepPartial<SendNotificationToManyDevicesRequest>): SendNotificationToManyDevicesRequest;
86
- fromPartial(object: DeepPartial<SendNotificationToManyDevicesRequest>): SendNotificationToManyDevicesRequest;
87
- };
88
- export declare const SendManyNotificationsRequest: {
89
- encode(message: SendManyNotificationsRequest, writer?: _m0.Writer): _m0.Writer;
90
- decode(input: _m0.Reader | Uint8Array, length?: number): SendManyNotificationsRequest;
91
- fromJSON(object: any): SendManyNotificationsRequest;
92
- toJSON(message: SendManyNotificationsRequest): unknown;
93
- create(base?: DeepPartial<SendManyNotificationsRequest>): SendManyNotificationsRequest;
94
- fromPartial(object: DeepPartial<SendManyNotificationsRequest>): SendManyNotificationsRequest;
95
- };
96
- export declare const SendNotificationResponse: {
97
- encode(message: SendNotificationResponse, writer?: _m0.Writer): _m0.Writer;
98
- decode(input: _m0.Reader | Uint8Array, length?: number): SendNotificationResponse;
99
- fromJSON(object: any): SendNotificationResponse;
100
- toJSON(message: SendNotificationResponse): unknown;
101
- create(base?: DeepPartial<SendNotificationResponse>): SendNotificationResponse;
102
- fromPartial(object: DeepPartial<SendNotificationResponse>): SendNotificationResponse;
103
- };
104
- export type PushNotificationsDefinition = typeof PushNotificationsDefinition;
105
- export declare const PushNotificationsDefinition: {
106
- readonly name: "PushNotifications";
107
- readonly fullName: "pushnotifications.PushNotifications";
108
- readonly methods: {
109
- readonly setNotificationToken: {
110
- readonly name: "SetNotificationToken";
111
- readonly requestType: {
112
- encode(message: SetNotificationTokenRequest, writer?: _m0.Writer): _m0.Writer;
113
- decode(input: _m0.Reader | Uint8Array, length?: number): SetNotificationTokenRequest;
114
- fromJSON(object: any): SetNotificationTokenRequest;
115
- toJSON(message: SetNotificationTokenRequest): unknown;
116
- create(base?: DeepPartial<SetNotificationTokenRequest>): SetNotificationTokenRequest;
117
- fromPartial(object: DeepPartial<SetNotificationTokenRequest>): SetNotificationTokenRequest;
118
- };
119
- readonly requestStream: false;
120
- readonly responseType: {
121
- encode(message: SetNotificationTokenResponse, writer?: _m0.Writer): _m0.Writer;
122
- decode(input: _m0.Reader | Uint8Array, length?: number): SetNotificationTokenResponse;
123
- fromJSON(object: any): SetNotificationTokenResponse;
124
- toJSON(message: SetNotificationTokenResponse): unknown;
125
- create(base?: DeepPartial<SetNotificationTokenResponse>): SetNotificationTokenResponse;
126
- fromPartial(object: DeepPartial<SetNotificationTokenResponse>): SetNotificationTokenResponse;
127
- };
128
- readonly responseStream: false;
129
- readonly options: {};
130
- };
131
- readonly getNotificationTokens: {
132
- readonly name: "GetNotificationTokens";
133
- readonly requestType: {
134
- encode(message: GetNotificationTokensRequest, writer?: _m0.Writer): _m0.Writer;
135
- decode(input: _m0.Reader | Uint8Array, length?: number): GetNotificationTokensRequest;
136
- fromJSON(object: any): GetNotificationTokensRequest;
137
- toJSON(message: GetNotificationTokensRequest): unknown;
138
- create(base?: DeepPartial<GetNotificationTokensRequest>): GetNotificationTokensRequest;
139
- fromPartial(object: DeepPartial<GetNotificationTokensRequest>): GetNotificationTokensRequest;
140
- };
141
- readonly requestStream: false;
142
- readonly responseType: {
143
- encode(message: GetNotificationTokensResponse, writer?: _m0.Writer): _m0.Writer;
144
- decode(input: _m0.Reader | Uint8Array, length?: number): GetNotificationTokensResponse;
145
- fromJSON(object: any): GetNotificationTokensResponse;
146
- toJSON(message: GetNotificationTokensResponse): unknown;
147
- create(base?: DeepPartial<GetNotificationTokensResponse>): GetNotificationTokensResponse;
148
- fromPartial(object: DeepPartial<GetNotificationTokensResponse>): GetNotificationTokensResponse;
149
- };
150
- readonly responseStream: false;
151
- readonly options: {};
152
- };
153
- readonly sendNotification: {
154
- readonly name: "SendNotification";
155
- readonly requestType: {
156
- encode(message: SendNotificationRequest, writer?: _m0.Writer): _m0.Writer;
157
- decode(input: _m0.Reader | Uint8Array, length?: number): SendNotificationRequest;
158
- fromJSON(object: any): SendNotificationRequest;
159
- toJSON(message: SendNotificationRequest): unknown;
160
- create(base?: DeepPartial<SendNotificationRequest>): SendNotificationRequest;
161
- fromPartial(object: DeepPartial<SendNotificationRequest>): SendNotificationRequest;
162
- };
163
- readonly requestStream: false;
164
- readonly responseType: {
165
- encode(message: SendNotificationResponse, writer?: _m0.Writer): _m0.Writer;
166
- decode(input: _m0.Reader | Uint8Array, length?: number): SendNotificationResponse;
167
- fromJSON(object: any): SendNotificationResponse;
168
- toJSON(message: SendNotificationResponse): unknown;
169
- create(base?: DeepPartial<SendNotificationResponse>): SendNotificationResponse;
170
- fromPartial(object: DeepPartial<SendNotificationResponse>): SendNotificationResponse;
171
- };
172
- readonly responseStream: false;
173
- readonly options: {};
174
- };
175
- readonly sendNotificationToManyDevices: {
176
- readonly name: "SendNotificationToManyDevices";
177
- readonly requestType: {
178
- encode(message: SendNotificationToManyDevicesRequest, writer?: _m0.Writer): _m0.Writer;
179
- decode(input: _m0.Reader | Uint8Array, length?: number): SendNotificationToManyDevicesRequest;
180
- fromJSON(object: any): SendNotificationToManyDevicesRequest;
181
- toJSON(message: SendNotificationToManyDevicesRequest): unknown;
182
- create(base?: DeepPartial<SendNotificationToManyDevicesRequest>): SendNotificationToManyDevicesRequest;
183
- fromPartial(object: DeepPartial<SendNotificationToManyDevicesRequest>): SendNotificationToManyDevicesRequest;
184
- };
185
- readonly requestStream: false;
186
- readonly responseType: {
187
- encode(message: SendNotificationResponse, writer?: _m0.Writer): _m0.Writer;
188
- decode(input: _m0.Reader | Uint8Array, length?: number): SendNotificationResponse;
189
- fromJSON(object: any): SendNotificationResponse;
190
- toJSON(message: SendNotificationResponse): unknown;
191
- create(base?: DeepPartial<SendNotificationResponse>): SendNotificationResponse;
192
- fromPartial(object: DeepPartial<SendNotificationResponse>): SendNotificationResponse;
193
- };
194
- readonly responseStream: false;
195
- readonly options: {};
196
- };
197
- readonly sendManyNotifications: {
198
- readonly name: "SendManyNotifications";
199
- readonly requestType: {
200
- encode(message: SendManyNotificationsRequest, writer?: _m0.Writer): _m0.Writer;
201
- decode(input: _m0.Reader | Uint8Array, length?: number): SendManyNotificationsRequest;
202
- fromJSON(object: any): SendManyNotificationsRequest;
203
- toJSON(message: SendManyNotificationsRequest): unknown;
204
- create(base?: DeepPartial<SendManyNotificationsRequest>): SendManyNotificationsRequest;
205
- fromPartial(object: DeepPartial<SendManyNotificationsRequest>): SendManyNotificationsRequest;
206
- };
207
- readonly requestStream: false;
208
- readonly responseType: {
209
- encode(message: SendNotificationResponse, writer?: _m0.Writer): _m0.Writer;
210
- decode(input: _m0.Reader | Uint8Array, length?: number): SendNotificationResponse;
211
- fromJSON(object: any): SendNotificationResponse;
212
- toJSON(message: SendNotificationResponse): unknown;
213
- create(base?: DeepPartial<SendNotificationResponse>): SendNotificationResponse;
214
- fromPartial(object: DeepPartial<SendNotificationResponse>): SendNotificationResponse;
215
- };
216
- readonly responseStream: false;
217
- readonly options: {};
218
- };
219
- };
220
- };
221
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
222
- type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
223
- [K in keyof T]?: DeepPartial<T[K]>;
224
- } : Partial<T>;
225
- export {};
@@ -1,205 +0,0 @@
1
- import _m0 from "protobufjs/minimal.js";
2
- import { Empty } from "./google/protobuf/empty.js";
3
- export interface SocketData {
4
- event: string;
5
- data?: string | undefined;
6
- receivers: string[];
7
- rooms: string[];
8
- }
9
- export interface PatchAppRouteMiddlewaresRequest {
10
- path: string;
11
- action: string;
12
- middlewares: string[];
13
- }
14
- export interface RegisterConduitRouteRequest {
15
- routes: RegisterConduitRouteRequest_PathDefinition[];
16
- routerUrl?: string | undefined;
17
- }
18
- export interface RegisterConduitRouteRequest_PathDefinition {
19
- options: RegisterConduitRouteRequest_ConduitRouteOptions | undefined;
20
- returns?: RegisterConduitRouteRequest_ConduitRouteReturnDefinition | undefined;
21
- grpcFunction?: string | undefined;
22
- isMiddleware?: boolean | undefined;
23
- events?: string | undefined;
24
- proxy?: RegisterConduitRouteRequest_ProxyRouteOptions | undefined;
25
- }
26
- export interface RegisterConduitRouteRequest_ErrorDefinition {
27
- conduitCode: string;
28
- grpcCode: number;
29
- message: string;
30
- description: string;
31
- }
32
- export interface RegisterConduitRouteRequest_ConduitRouteOptions {
33
- queryParams?: string | undefined;
34
- bodyParams?: string | undefined;
35
- urlParams?: string | undefined;
36
- action?: string | undefined;
37
- path: string;
38
- name?: string | undefined;
39
- description?: string | undefined;
40
- middlewares: string[];
41
- cacheControl?: string | undefined;
42
- errors: RegisterConduitRouteRequest_ErrorDefinition[];
43
- }
44
- export interface RegisterConduitRouteRequest_ProxyRouteOptions {
45
- target?: string | undefined;
46
- changeOrigin?: boolean | undefined;
47
- secure?: boolean | undefined;
48
- context?: string | undefined;
49
- pathRewrite?: string | undefined;
50
- headers?: string | undefined;
51
- proxyTimeout?: number | undefined;
52
- cookieDomainRewrite?: string | undefined;
53
- autoRewrite?: boolean | undefined;
54
- followRedirects?: boolean | undefined;
55
- xfwd?: boolean | undefined;
56
- ws?: boolean | undefined;
57
- router?: string | undefined;
58
- preserveHeaderKeyCase?: boolean | undefined;
59
- }
60
- export interface RegisterConduitRouteRequest_ConduitRouteReturnDefinition {
61
- name: string;
62
- fields: string;
63
- }
64
- export declare const SocketData: {
65
- encode(message: SocketData, writer?: _m0.Writer): _m0.Writer;
66
- decode(input: _m0.Reader | Uint8Array, length?: number): SocketData;
67
- fromJSON(object: any): SocketData;
68
- toJSON(message: SocketData): unknown;
69
- create(base?: DeepPartial<SocketData>): SocketData;
70
- fromPartial(object: DeepPartial<SocketData>): SocketData;
71
- };
72
- export declare const PatchAppRouteMiddlewaresRequest: {
73
- encode(message: PatchAppRouteMiddlewaresRequest, writer?: _m0.Writer): _m0.Writer;
74
- decode(input: _m0.Reader | Uint8Array, length?: number): PatchAppRouteMiddlewaresRequest;
75
- fromJSON(object: any): PatchAppRouteMiddlewaresRequest;
76
- toJSON(message: PatchAppRouteMiddlewaresRequest): unknown;
77
- create(base?: DeepPartial<PatchAppRouteMiddlewaresRequest>): PatchAppRouteMiddlewaresRequest;
78
- fromPartial(object: DeepPartial<PatchAppRouteMiddlewaresRequest>): PatchAppRouteMiddlewaresRequest;
79
- };
80
- export declare const RegisterConduitRouteRequest: {
81
- encode(message: RegisterConduitRouteRequest, writer?: _m0.Writer): _m0.Writer;
82
- decode(input: _m0.Reader | Uint8Array, length?: number): RegisterConduitRouteRequest;
83
- fromJSON(object: any): RegisterConduitRouteRequest;
84
- toJSON(message: RegisterConduitRouteRequest): unknown;
85
- create(base?: DeepPartial<RegisterConduitRouteRequest>): RegisterConduitRouteRequest;
86
- fromPartial(object: DeepPartial<RegisterConduitRouteRequest>): RegisterConduitRouteRequest;
87
- };
88
- export declare const RegisterConduitRouteRequest_PathDefinition: {
89
- encode(message: RegisterConduitRouteRequest_PathDefinition, writer?: _m0.Writer): _m0.Writer;
90
- decode(input: _m0.Reader | Uint8Array, length?: number): RegisterConduitRouteRequest_PathDefinition;
91
- fromJSON(object: any): RegisterConduitRouteRequest_PathDefinition;
92
- toJSON(message: RegisterConduitRouteRequest_PathDefinition): unknown;
93
- create(base?: DeepPartial<RegisterConduitRouteRequest_PathDefinition>): RegisterConduitRouteRequest_PathDefinition;
94
- fromPartial(object: DeepPartial<RegisterConduitRouteRequest_PathDefinition>): RegisterConduitRouteRequest_PathDefinition;
95
- };
96
- export declare const RegisterConduitRouteRequest_ErrorDefinition: {
97
- encode(message: RegisterConduitRouteRequest_ErrorDefinition, writer?: _m0.Writer): _m0.Writer;
98
- decode(input: _m0.Reader | Uint8Array, length?: number): RegisterConduitRouteRequest_ErrorDefinition;
99
- fromJSON(object: any): RegisterConduitRouteRequest_ErrorDefinition;
100
- toJSON(message: RegisterConduitRouteRequest_ErrorDefinition): unknown;
101
- create(base?: DeepPartial<RegisterConduitRouteRequest_ErrorDefinition>): RegisterConduitRouteRequest_ErrorDefinition;
102
- fromPartial(object: DeepPartial<RegisterConduitRouteRequest_ErrorDefinition>): RegisterConduitRouteRequest_ErrorDefinition;
103
- };
104
- export declare const RegisterConduitRouteRequest_ConduitRouteOptions: {
105
- encode(message: RegisterConduitRouteRequest_ConduitRouteOptions, writer?: _m0.Writer): _m0.Writer;
106
- decode(input: _m0.Reader | Uint8Array, length?: number): RegisterConduitRouteRequest_ConduitRouteOptions;
107
- fromJSON(object: any): RegisterConduitRouteRequest_ConduitRouteOptions;
108
- toJSON(message: RegisterConduitRouteRequest_ConduitRouteOptions): unknown;
109
- create(base?: DeepPartial<RegisterConduitRouteRequest_ConduitRouteOptions>): RegisterConduitRouteRequest_ConduitRouteOptions;
110
- fromPartial(object: DeepPartial<RegisterConduitRouteRequest_ConduitRouteOptions>): RegisterConduitRouteRequest_ConduitRouteOptions;
111
- };
112
- export declare const RegisterConduitRouteRequest_ProxyRouteOptions: {
113
- encode(message: RegisterConduitRouteRequest_ProxyRouteOptions, writer?: _m0.Writer): _m0.Writer;
114
- decode(input: _m0.Reader | Uint8Array, length?: number): RegisterConduitRouteRequest_ProxyRouteOptions;
115
- fromJSON(object: any): RegisterConduitRouteRequest_ProxyRouteOptions;
116
- toJSON(message: RegisterConduitRouteRequest_ProxyRouteOptions): unknown;
117
- create(base?: DeepPartial<RegisterConduitRouteRequest_ProxyRouteOptions>): RegisterConduitRouteRequest_ProxyRouteOptions;
118
- fromPartial(object: DeepPartial<RegisterConduitRouteRequest_ProxyRouteOptions>): RegisterConduitRouteRequest_ProxyRouteOptions;
119
- };
120
- export declare const RegisterConduitRouteRequest_ConduitRouteReturnDefinition: {
121
- encode(message: RegisterConduitRouteRequest_ConduitRouteReturnDefinition, writer?: _m0.Writer): _m0.Writer;
122
- decode(input: _m0.Reader | Uint8Array, length?: number): RegisterConduitRouteRequest_ConduitRouteReturnDefinition;
123
- fromJSON(object: any): RegisterConduitRouteRequest_ConduitRouteReturnDefinition;
124
- toJSON(message: RegisterConduitRouteRequest_ConduitRouteReturnDefinition): unknown;
125
- create(base?: DeepPartial<RegisterConduitRouteRequest_ConduitRouteReturnDefinition>): RegisterConduitRouteRequest_ConduitRouteReturnDefinition;
126
- fromPartial(object: DeepPartial<RegisterConduitRouteRequest_ConduitRouteReturnDefinition>): RegisterConduitRouteRequest_ConduitRouteReturnDefinition;
127
- };
128
- export type RouterDefinition = typeof RouterDefinition;
129
- export declare const RouterDefinition: {
130
- readonly name: "Router";
131
- readonly fullName: "router.Router";
132
- readonly methods: {
133
- readonly registerConduitRoute: {
134
- readonly name: "RegisterConduitRoute";
135
- readonly requestType: {
136
- encode(message: RegisterConduitRouteRequest, writer?: _m0.Writer): _m0.Writer;
137
- decode(input: _m0.Reader | Uint8Array, length?: number): RegisterConduitRouteRequest;
138
- fromJSON(object: any): RegisterConduitRouteRequest;
139
- toJSON(message: RegisterConduitRouteRequest): unknown;
140
- create(base?: DeepPartial<RegisterConduitRouteRequest>): RegisterConduitRouteRequest;
141
- fromPartial(object: DeepPartial<RegisterConduitRouteRequest>): RegisterConduitRouteRequest;
142
- };
143
- readonly requestStream: false;
144
- readonly responseType: {
145
- encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
146
- decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
147
- fromJSON(_: any): Empty;
148
- toJSON(_: Empty): unknown;
149
- create(base?: {}): Empty;
150
- fromPartial(_: {}): Empty;
151
- };
152
- readonly responseStream: false;
153
- readonly options: {};
154
- };
155
- readonly socketPush: {
156
- readonly name: "SocketPush";
157
- readonly requestType: {
158
- encode(message: SocketData, writer?: _m0.Writer): _m0.Writer;
159
- decode(input: _m0.Reader | Uint8Array, length?: number): SocketData;
160
- fromJSON(object: any): SocketData;
161
- toJSON(message: SocketData): unknown;
162
- create(base?: DeepPartial<SocketData>): SocketData;
163
- fromPartial(object: DeepPartial<SocketData>): SocketData;
164
- };
165
- readonly requestStream: false;
166
- readonly responseType: {
167
- encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
168
- decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
169
- fromJSON(_: any): Empty;
170
- toJSON(_: Empty): unknown;
171
- create(base?: {}): Empty;
172
- fromPartial(_: {}): Empty;
173
- };
174
- readonly responseStream: false;
175
- readonly options: {};
176
- };
177
- readonly patchRouteMiddlewares: {
178
- readonly name: "PatchRouteMiddlewares";
179
- readonly requestType: {
180
- encode(message: PatchAppRouteMiddlewaresRequest, writer?: _m0.Writer): _m0.Writer;
181
- decode(input: _m0.Reader | Uint8Array, length?: number): PatchAppRouteMiddlewaresRequest;
182
- fromJSON(object: any): PatchAppRouteMiddlewaresRequest;
183
- toJSON(message: PatchAppRouteMiddlewaresRequest): unknown;
184
- create(base?: DeepPartial<PatchAppRouteMiddlewaresRequest>): PatchAppRouteMiddlewaresRequest;
185
- fromPartial(object: DeepPartial<PatchAppRouteMiddlewaresRequest>): PatchAppRouteMiddlewaresRequest;
186
- };
187
- readonly requestStream: false;
188
- readonly responseType: {
189
- encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
190
- decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
191
- fromJSON(_: any): Empty;
192
- toJSON(_: Empty): unknown;
193
- create(base?: {}): Empty;
194
- fromPartial(_: {}): Empty;
195
- };
196
- readonly responseStream: false;
197
- readonly options: {};
198
- };
199
- };
200
- };
201
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
202
- type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
203
- [K in keyof T]?: DeepPartial<T[K]>;
204
- } : Partial<T>;
205
- export {};
@@ -1,147 +0,0 @@
1
- import _m0 from "protobufjs/minimal.js";
2
- export interface SendSmsRequest {
3
- to: string;
4
- message: string;
5
- }
6
- export interface SendSmsResponse {
7
- message: string;
8
- }
9
- export interface SendVerificationCodeRequest {
10
- to: string;
11
- }
12
- export interface SendVerificationCodeResponse {
13
- verificationSid: string;
14
- }
15
- export interface VerifyRequest {
16
- verificationSid: string;
17
- code: string;
18
- }
19
- export interface VerifyResponse {
20
- verified: boolean;
21
- }
22
- export declare const SendSmsRequest: {
23
- encode(message: SendSmsRequest, writer?: _m0.Writer): _m0.Writer;
24
- decode(input: _m0.Reader | Uint8Array, length?: number): SendSmsRequest;
25
- fromJSON(object: any): SendSmsRequest;
26
- toJSON(message: SendSmsRequest): unknown;
27
- create(base?: DeepPartial<SendSmsRequest>): SendSmsRequest;
28
- fromPartial(object: DeepPartial<SendSmsRequest>): SendSmsRequest;
29
- };
30
- export declare const SendSmsResponse: {
31
- encode(message: SendSmsResponse, writer?: _m0.Writer): _m0.Writer;
32
- decode(input: _m0.Reader | Uint8Array, length?: number): SendSmsResponse;
33
- fromJSON(object: any): SendSmsResponse;
34
- toJSON(message: SendSmsResponse): unknown;
35
- create(base?: DeepPartial<SendSmsResponse>): SendSmsResponse;
36
- fromPartial(object: DeepPartial<SendSmsResponse>): SendSmsResponse;
37
- };
38
- export declare const SendVerificationCodeRequest: {
39
- encode(message: SendVerificationCodeRequest, writer?: _m0.Writer): _m0.Writer;
40
- decode(input: _m0.Reader | Uint8Array, length?: number): SendVerificationCodeRequest;
41
- fromJSON(object: any): SendVerificationCodeRequest;
42
- toJSON(message: SendVerificationCodeRequest): unknown;
43
- create(base?: DeepPartial<SendVerificationCodeRequest>): SendVerificationCodeRequest;
44
- fromPartial(object: DeepPartial<SendVerificationCodeRequest>): SendVerificationCodeRequest;
45
- };
46
- export declare const SendVerificationCodeResponse: {
47
- encode(message: SendVerificationCodeResponse, writer?: _m0.Writer): _m0.Writer;
48
- decode(input: _m0.Reader | Uint8Array, length?: number): SendVerificationCodeResponse;
49
- fromJSON(object: any): SendVerificationCodeResponse;
50
- toJSON(message: SendVerificationCodeResponse): unknown;
51
- create(base?: DeepPartial<SendVerificationCodeResponse>): SendVerificationCodeResponse;
52
- fromPartial(object: DeepPartial<SendVerificationCodeResponse>): SendVerificationCodeResponse;
53
- };
54
- export declare const VerifyRequest: {
55
- encode(message: VerifyRequest, writer?: _m0.Writer): _m0.Writer;
56
- decode(input: _m0.Reader | Uint8Array, length?: number): VerifyRequest;
57
- fromJSON(object: any): VerifyRequest;
58
- toJSON(message: VerifyRequest): unknown;
59
- create(base?: DeepPartial<VerifyRequest>): VerifyRequest;
60
- fromPartial(object: DeepPartial<VerifyRequest>): VerifyRequest;
61
- };
62
- export declare const VerifyResponse: {
63
- encode(message: VerifyResponse, writer?: _m0.Writer): _m0.Writer;
64
- decode(input: _m0.Reader | Uint8Array, length?: number): VerifyResponse;
65
- fromJSON(object: any): VerifyResponse;
66
- toJSON(message: VerifyResponse): unknown;
67
- create(base?: DeepPartial<VerifyResponse>): VerifyResponse;
68
- fromPartial(object: DeepPartial<VerifyResponse>): VerifyResponse;
69
- };
70
- export type SmsDefinition = typeof SmsDefinition;
71
- export declare const SmsDefinition: {
72
- readonly name: "Sms";
73
- readonly fullName: "sms.Sms";
74
- readonly methods: {
75
- readonly sendSms: {
76
- readonly name: "SendSms";
77
- readonly requestType: {
78
- encode(message: SendSmsRequest, writer?: _m0.Writer): _m0.Writer;
79
- decode(input: _m0.Reader | Uint8Array, length?: number): SendSmsRequest;
80
- fromJSON(object: any): SendSmsRequest;
81
- toJSON(message: SendSmsRequest): unknown;
82
- create(base?: DeepPartial<SendSmsRequest>): SendSmsRequest;
83
- fromPartial(object: DeepPartial<SendSmsRequest>): SendSmsRequest;
84
- };
85
- readonly requestStream: false;
86
- readonly responseType: {
87
- encode(message: SendSmsResponse, writer?: _m0.Writer): _m0.Writer;
88
- decode(input: _m0.Reader | Uint8Array, length?: number): SendSmsResponse;
89
- fromJSON(object: any): SendSmsResponse;
90
- toJSON(message: SendSmsResponse): unknown;
91
- create(base?: DeepPartial<SendSmsResponse>): SendSmsResponse;
92
- fromPartial(object: DeepPartial<SendSmsResponse>): SendSmsResponse;
93
- };
94
- readonly responseStream: false;
95
- readonly options: {};
96
- };
97
- readonly sendVerificationCode: {
98
- readonly name: "SendVerificationCode";
99
- readonly requestType: {
100
- encode(message: SendVerificationCodeRequest, writer?: _m0.Writer): _m0.Writer;
101
- decode(input: _m0.Reader | Uint8Array, length?: number): SendVerificationCodeRequest;
102
- fromJSON(object: any): SendVerificationCodeRequest;
103
- toJSON(message: SendVerificationCodeRequest): unknown;
104
- create(base?: DeepPartial<SendVerificationCodeRequest>): SendVerificationCodeRequest;
105
- fromPartial(object: DeepPartial<SendVerificationCodeRequest>): SendVerificationCodeRequest;
106
- };
107
- readonly requestStream: false;
108
- readonly responseType: {
109
- encode(message: SendVerificationCodeResponse, writer?: _m0.Writer): _m0.Writer;
110
- decode(input: _m0.Reader | Uint8Array, length?: number): SendVerificationCodeResponse;
111
- fromJSON(object: any): SendVerificationCodeResponse;
112
- toJSON(message: SendVerificationCodeResponse): unknown;
113
- create(base?: DeepPartial<SendVerificationCodeResponse>): SendVerificationCodeResponse;
114
- fromPartial(object: DeepPartial<SendVerificationCodeResponse>): SendVerificationCodeResponse;
115
- };
116
- readonly responseStream: false;
117
- readonly options: {};
118
- };
119
- readonly verify: {
120
- readonly name: "Verify";
121
- readonly requestType: {
122
- encode(message: VerifyRequest, writer?: _m0.Writer): _m0.Writer;
123
- decode(input: _m0.Reader | Uint8Array, length?: number): VerifyRequest;
124
- fromJSON(object: any): VerifyRequest;
125
- toJSON(message: VerifyRequest): unknown;
126
- create(base?: DeepPartial<VerifyRequest>): VerifyRequest;
127
- fromPartial(object: DeepPartial<VerifyRequest>): VerifyRequest;
128
- };
129
- readonly requestStream: false;
130
- readonly responseType: {
131
- encode(message: VerifyResponse, writer?: _m0.Writer): _m0.Writer;
132
- decode(input: _m0.Reader | Uint8Array, length?: number): VerifyResponse;
133
- fromJSON(object: any): VerifyResponse;
134
- toJSON(message: VerifyResponse): unknown;
135
- create(base?: DeepPartial<VerifyResponse>): VerifyResponse;
136
- fromPartial(object: DeepPartial<VerifyResponse>): VerifyResponse;
137
- };
138
- readonly responseStream: false;
139
- readonly options: {};
140
- };
141
- };
142
- };
143
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
144
- type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
145
- [K in keyof T]?: DeepPartial<T[K]>;
146
- } : Partial<T>;
147
- export {};