@alis-build/alis-open-notifications-v1 1.3.0 → 1.5.0

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,14 +1,14 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts"
1
+ // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/open/notifications/v1/devices.proto (package alis.open.notifications.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
5
  import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { Message } from "@bufbuild/protobuf";
7
- import type { EmptySchema, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
8
- import type { RetrieveRulesRequestSchema, RetrieveRulesResponseSchema, ValidateMessageRequestSchema, ValidateMessageResponseSchema } from "@alis-build/alis-open-validation-v1/alis/open/validation/v1/validation_pb";
9
- import type { GetIamPolicyRequestSchema, SetIamPolicyRequestSchema, TestIamPermissionsRequestSchema, TestIamPermissionsResponseSchema } from "@alis-build/google-iam-v1/google/iam/v1/iam_policy_pb";
10
- import type { PolicySchema } from "@alis-build/google-iam-v1/google/iam/v1/policy_pb";
11
- import type { AddIamBindingsRequestSchema, RemoveIamBindingsRequestSchema } from "@alis-build/alis-open-iam-v1/alis/open/iam/v1/iam_pb";
7
+ import type { EmptySchema, FieldMask, FieldMaskJson, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
8
+ import type { RetrieveRulesRequestSchema, RetrieveRulesResponseSchema, ValidateMessageRequestSchema, ValidateMessageResponseSchema } from "@alis-build/alis-open-validation-v1/alis/open/validation/v1/validation_pb.js";
9
+ import type { GetIamPolicyRequestSchema, SetIamPolicyRequestSchema, TestIamPermissionsRequestSchema, TestIamPermissionsResponseSchema } from "@alis-build/google-iam-v1/google/iam/v1/iam_policy_pb.js";
10
+ import type { PolicySchema } from "@alis-build/google-iam-v1/google/iam/v1/policy_pb.js";
11
+ import type { AddIamBindingsRequestSchema, RemoveIamBindingsRequestSchema } from "@alis-build/alis-open-iam-v1/alis/open/iam/v1/iam_pb.js";
12
12
 
13
13
  /**
14
14
  * Describes the file alis/open/notifications/v1/devices.proto.
@@ -45,11 +45,41 @@ export declare type Device = Message<"alis.open.notifications.v1.Device"> & {
45
45
  updateTime?: Timestamp | undefined;
46
46
  };
47
47
 
48
+ /**
49
+ * @generated from message alis.open.notifications.v1.Device
50
+ */
51
+ export declare type DeviceJson = {
52
+ /**
53
+ * @generated from field: string name = 1;
54
+ */
55
+ name?: string;
56
+
57
+ /**
58
+ * @generated from field: string token = 2;
59
+ */
60
+ token?: string;
61
+
62
+ /**
63
+ * @generated from field: string etag = 97;
64
+ */
65
+ etag?: string;
66
+
67
+ /**
68
+ * @generated from field: google.protobuf.Timestamp create_time = 98;
69
+ */
70
+ createTime?: TimestampJson;
71
+
72
+ /**
73
+ * @generated from field: google.protobuf.Timestamp update_time = 99;
74
+ */
75
+ updateTime?: TimestampJson;
76
+ };
77
+
48
78
  /**
49
79
  * Describes the message alis.open.notifications.v1.Device.
50
80
  * Use `create(DeviceSchema)` to create a new message.
51
81
  */
52
- export declare const DeviceSchema: GenMessage<Device>;
82
+ export declare const DeviceSchema: GenMessage<Device, {jsonType: DeviceJson}>;
53
83
 
54
84
  /**
55
85
  * @generated from message alis.open.notifications.v1.GetDeviceRequest
@@ -61,11 +91,21 @@ export declare type GetDeviceRequest = Message<"alis.open.notifications.v1.GetDe
61
91
  name: string;
62
92
  };
63
93
 
94
+ /**
95
+ * @generated from message alis.open.notifications.v1.GetDeviceRequest
96
+ */
97
+ export declare type GetDeviceRequestJson = {
98
+ /**
99
+ * @generated from field: string name = 1;
100
+ */
101
+ name?: string;
102
+ };
103
+
64
104
  /**
65
105
  * Describes the message alis.open.notifications.v1.GetDeviceRequest.
66
106
  * Use `create(GetDeviceRequestSchema)` to create a new message.
67
107
  */
68
- export declare const GetDeviceRequestSchema: GenMessage<GetDeviceRequest>;
108
+ export declare const GetDeviceRequestSchema: GenMessage<GetDeviceRequest, {jsonType: GetDeviceRequestJson}>;
69
109
 
70
110
  /**
71
111
  * @generated from message alis.open.notifications.v1.ListDevicesRequest
@@ -97,11 +137,41 @@ export declare type ListDevicesRequest = Message<"alis.open.notifications.v1.Lis
97
137
  filter: string;
98
138
  };
99
139
 
140
+ /**
141
+ * @generated from message alis.open.notifications.v1.ListDevicesRequest
142
+ */
143
+ export declare type ListDevicesRequestJson = {
144
+ /**
145
+ * @generated from field: string parent = 1;
146
+ */
147
+ parent?: string;
148
+
149
+ /**
150
+ * @generated from field: int32 page_size = 2;
151
+ */
152
+ pageSize?: number;
153
+
154
+ /**
155
+ * @generated from field: string page_token = 3;
156
+ */
157
+ pageToken?: string;
158
+
159
+ /**
160
+ * @generated from field: google.protobuf.FieldMask read_mask = 4;
161
+ */
162
+ readMask?: FieldMaskJson;
163
+
164
+ /**
165
+ * @generated from field: string filter = 5;
166
+ */
167
+ filter?: string;
168
+ };
169
+
100
170
  /**
101
171
  * Describes the message alis.open.notifications.v1.ListDevicesRequest.
102
172
  * Use `create(ListDevicesRequestSchema)` to create a new message.
103
173
  */
104
- export declare const ListDevicesRequestSchema: GenMessage<ListDevicesRequest>;
174
+ export declare const ListDevicesRequestSchema: GenMessage<ListDevicesRequest, {jsonType: ListDevicesRequestJson}>;
105
175
 
106
176
  /**
107
177
  * @generated from message alis.open.notifications.v1.ListDevicesResponse
@@ -118,11 +188,26 @@ export declare type ListDevicesResponse = Message<"alis.open.notifications.v1.Li
118
188
  nextPageToken: string;
119
189
  };
120
190
 
191
+ /**
192
+ * @generated from message alis.open.notifications.v1.ListDevicesResponse
193
+ */
194
+ export declare type ListDevicesResponseJson = {
195
+ /**
196
+ * @generated from field: repeated alis.open.notifications.v1.Device devices = 1;
197
+ */
198
+ devices?: DeviceJson[];
199
+
200
+ /**
201
+ * @generated from field: string next_page_token = 2;
202
+ */
203
+ nextPageToken?: string;
204
+ };
205
+
121
206
  /**
122
207
  * Describes the message alis.open.notifications.v1.ListDevicesResponse.
123
208
  * Use `create(ListDevicesResponseSchema)` to create a new message.
124
209
  */
125
- export declare const ListDevicesResponseSchema: GenMessage<ListDevicesResponse>;
210
+ export declare const ListDevicesResponseSchema: GenMessage<ListDevicesResponse, {jsonType: ListDevicesResponseJson}>;
126
211
 
127
212
  /**
128
213
  * @generated from message alis.open.notifications.v1.DeleteDeviceRequest
@@ -134,11 +219,21 @@ export declare type DeleteDeviceRequest = Message<"alis.open.notifications.v1.De
134
219
  name: string;
135
220
  };
136
221
 
222
+ /**
223
+ * @generated from message alis.open.notifications.v1.DeleteDeviceRequest
224
+ */
225
+ export declare type DeleteDeviceRequestJson = {
226
+ /**
227
+ * @generated from field: string name = 1;
228
+ */
229
+ name?: string;
230
+ };
231
+
137
232
  /**
138
233
  * Describes the message alis.open.notifications.v1.DeleteDeviceRequest.
139
234
  * Use `create(DeleteDeviceRequestSchema)` to create a new message.
140
235
  */
141
- export declare const DeleteDeviceRequestSchema: GenMessage<DeleteDeviceRequest>;
236
+ export declare const DeleteDeviceRequestSchema: GenMessage<DeleteDeviceRequest, {jsonType: DeleteDeviceRequestJson}>;
142
237
 
143
238
  /**
144
239
  * @generated from message alis.open.notifications.v1.RegisterDeviceRequest
@@ -155,11 +250,26 @@ export declare type RegisterDeviceRequest = Message<"alis.open.notifications.v1.
155
250
  deviceToken: string;
156
251
  };
157
252
 
253
+ /**
254
+ * @generated from message alis.open.notifications.v1.RegisterDeviceRequest
255
+ */
256
+ export declare type RegisterDeviceRequestJson = {
257
+ /**
258
+ * @generated from field: string device_id = 1;
259
+ */
260
+ deviceId?: string;
261
+
262
+ /**
263
+ * @generated from field: string device_token = 2;
264
+ */
265
+ deviceToken?: string;
266
+ };
267
+
158
268
  /**
159
269
  * Describes the message alis.open.notifications.v1.RegisterDeviceRequest.
160
270
  * Use `create(RegisterDeviceRequestSchema)` to create a new message.
161
271
  */
162
- export declare const RegisterDeviceRequestSchema: GenMessage<RegisterDeviceRequest>;
272
+ export declare const RegisterDeviceRequestSchema: GenMessage<RegisterDeviceRequest, {jsonType: RegisterDeviceRequestJson}>;
163
273
 
164
274
  /**
165
275
  * @generated from message alis.open.notifications.v1.RegisterDeviceResponse
@@ -167,11 +277,17 @@ export declare const RegisterDeviceRequestSchema: GenMessage<RegisterDeviceReque
167
277
  export declare type RegisterDeviceResponse = Message<"alis.open.notifications.v1.RegisterDeviceResponse"> & {
168
278
  };
169
279
 
280
+ /**
281
+ * @generated from message alis.open.notifications.v1.RegisterDeviceResponse
282
+ */
283
+ export declare type RegisterDeviceResponseJson = {
284
+ };
285
+
170
286
  /**
171
287
  * Describes the message alis.open.notifications.v1.RegisterDeviceResponse.
172
288
  * Use `create(RegisterDeviceResponseSchema)` to create a new message.
173
289
  */
174
- export declare const RegisterDeviceResponseSchema: GenMessage<RegisterDeviceResponse>;
290
+ export declare const RegisterDeviceResponseSchema: GenMessage<RegisterDeviceResponse, {jsonType: RegisterDeviceResponseJson}>;
175
291
 
176
292
  /**
177
293
  * @generated from service alis.open.notifications.v1.DevicesService
@@ -1,12 +1,12 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts"
1
+ // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/open/notifications/v1/devices.proto (package alis.open.notifications.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
5
  import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
6
- import { file_alis_open_iam_v1_iam } from "@alis-build/alis-open-iam-v1/alis/open/iam/v1/iam_pb";
7
- import { file_alis_open_validation_v1_validation } from "@alis-build/alis-open-validation-v1/alis/open/validation/v1/validation_pb";
8
- import { file_google_iam_v1_iam_policy } from "@alis-build/google-iam-v1/google/iam/v1/iam_policy_pb";
9
- import { file_google_iam_v1_policy } from "@alis-build/google-iam-v1/google/iam/v1/policy_pb";
6
+ import { file_alis_open_iam_v1_iam } from "@alis-build/alis-open-iam-v1/alis/open/iam/v1/iam_pb.js";
7
+ import { file_alis_open_validation_v1_validation } from "@alis-build/alis-open-validation-v1/alis/open/validation/v1/validation_pb.js";
8
+ import { file_google_iam_v1_iam_policy } from "@alis-build/google-iam-v1/google/iam/v1/iam_policy_pb.js";
9
+ import { file_google_iam_v1_policy } from "@alis-build/google-iam-v1/google/iam/v1/policy_pb.js";
10
10
  import { file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
11
11
 
12
12
  /**
@@ -1,11 +1,11 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts"
1
+ // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/open/notifications/v1/notifications.proto (package alis.open.notifications.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
5
  import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { Message } from "@bufbuild/protobuf";
7
- import type { RetrieveRulesRequestSchema, RetrieveRulesResponseSchema, ValidateMessageRequestSchema, ValidateMessageResponseSchema } from "@alis-build/alis-open-validation-v1/alis/open/validation/v1/validation_pb";
8
- import type { TestIamPermissionsRequestSchema, TestIamPermissionsResponseSchema } from "@alis-build/google-iam-v1/google/iam/v1/iam_policy_pb";
7
+ import type { RetrieveRulesRequestSchema, RetrieveRulesResponseSchema, ValidateMessageRequestSchema, ValidateMessageResponseSchema } from "@alis-build/alis-open-validation-v1/alis/open/validation/v1/validation_pb.js";
8
+ import type { TestIamPermissionsRequestSchema, TestIamPermissionsResponseSchema } from "@alis-build/google-iam-v1/google/iam/v1/iam_policy_pb.js";
9
9
 
10
10
  /**
11
11
  * Describes the file alis/open/notifications/v1/notifications.proto.
@@ -53,11 +53,46 @@ export declare type SendFcmMessageRequest = Message<"alis.open.notifications.v1.
53
53
  uri: string;
54
54
  };
55
55
 
56
+ /**
57
+ * @generated from message alis.open.notifications.v1.SendFcmMessageRequest
58
+ */
59
+ export declare type SendFcmMessageRequestJson = {
60
+ /**
61
+ * @generated from field: string user = 1;
62
+ */
63
+ user?: string;
64
+
65
+ /**
66
+ * @generated from field: string title = 3;
67
+ */
68
+ title?: string;
69
+
70
+ /**
71
+ * @generated from field: string body = 4;
72
+ */
73
+ body?: string;
74
+
75
+ /**
76
+ * @generated from field: string image = 5;
77
+ */
78
+ image?: string;
79
+
80
+ /**
81
+ * @generated from field: map<string, string> data = 6;
82
+ */
83
+ data?: { [key: string]: string };
84
+
85
+ /**
86
+ * @generated from field: string uri = 7;
87
+ */
88
+ uri?: string;
89
+ };
90
+
56
91
  /**
57
92
  * Describes the message alis.open.notifications.v1.SendFcmMessageRequest.
58
93
  * Use `create(SendFcmMessageRequestSchema)` to create a new message.
59
94
  */
60
- export declare const SendFcmMessageRequestSchema: GenMessage<SendFcmMessageRequest>;
95
+ export declare const SendFcmMessageRequestSchema: GenMessage<SendFcmMessageRequest, {jsonType: SendFcmMessageRequestJson}>;
61
96
 
62
97
  /**
63
98
  * @generated from message alis.open.notifications.v1.SendFcmMessageResponse
@@ -69,11 +104,21 @@ export declare type SendFcmMessageResponse = Message<"alis.open.notifications.v1
69
104
  messageIds: string[];
70
105
  };
71
106
 
107
+ /**
108
+ * @generated from message alis.open.notifications.v1.SendFcmMessageResponse
109
+ */
110
+ export declare type SendFcmMessageResponseJson = {
111
+ /**
112
+ * @generated from field: repeated string message_ids = 1;
113
+ */
114
+ messageIds?: string[];
115
+ };
116
+
72
117
  /**
73
118
  * Describes the message alis.open.notifications.v1.SendFcmMessageResponse.
74
119
  * Use `create(SendFcmMessageResponseSchema)` to create a new message.
75
120
  */
76
- export declare const SendFcmMessageResponseSchema: GenMessage<SendFcmMessageResponse>;
121
+ export declare const SendFcmMessageResponseSchema: GenMessage<SendFcmMessageResponse, {jsonType: SendFcmMessageResponseJson}>;
77
122
 
78
123
  /**
79
124
  * @generated from message alis.open.notifications.v1.BatchSendFcmMessagesRequest
@@ -85,11 +130,21 @@ export declare type BatchSendFcmMessagesRequest = Message<"alis.open.notificatio
85
130
  requests: SendFcmMessageRequest[];
86
131
  };
87
132
 
133
+ /**
134
+ * @generated from message alis.open.notifications.v1.BatchSendFcmMessagesRequest
135
+ */
136
+ export declare type BatchSendFcmMessagesRequestJson = {
137
+ /**
138
+ * @generated from field: repeated alis.open.notifications.v1.SendFcmMessageRequest requests = 1;
139
+ */
140
+ requests?: SendFcmMessageRequestJson[];
141
+ };
142
+
88
143
  /**
89
144
  * Describes the message alis.open.notifications.v1.BatchSendFcmMessagesRequest.
90
145
  * Use `create(BatchSendFcmMessagesRequestSchema)` to create a new message.
91
146
  */
92
- export declare const BatchSendFcmMessagesRequestSchema: GenMessage<BatchSendFcmMessagesRequest>;
147
+ export declare const BatchSendFcmMessagesRequestSchema: GenMessage<BatchSendFcmMessagesRequest, {jsonType: BatchSendFcmMessagesRequestJson}>;
93
148
 
94
149
  /**
95
150
  * @generated from message alis.open.notifications.v1.BatchSendFcmMessagesResponse
@@ -101,11 +156,21 @@ export declare type BatchSendFcmMessagesResponse = Message<"alis.open.notificati
101
156
  messageIds: string[];
102
157
  };
103
158
 
159
+ /**
160
+ * @generated from message alis.open.notifications.v1.BatchSendFcmMessagesResponse
161
+ */
162
+ export declare type BatchSendFcmMessagesResponseJson = {
163
+ /**
164
+ * @generated from field: repeated string message_ids = 1;
165
+ */
166
+ messageIds?: string[];
167
+ };
168
+
104
169
  /**
105
170
  * Describes the message alis.open.notifications.v1.BatchSendFcmMessagesResponse.
106
171
  * Use `create(BatchSendFcmMessagesResponseSchema)` to create a new message.
107
172
  */
108
- export declare const BatchSendFcmMessagesResponseSchema: GenMessage<BatchSendFcmMessagesResponse>;
173
+ export declare const BatchSendFcmMessagesResponseSchema: GenMessage<BatchSendFcmMessagesResponse, {jsonType: BatchSendFcmMessagesResponseJson}>;
109
174
 
110
175
  /**
111
176
  * @generated from service alis.open.notifications.v1.NotificationsService
@@ -1,10 +1,10 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts"
1
+ // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/open/notifications/v1/notifications.proto (package alis.open.notifications.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
5
  import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
6
- import { file_alis_open_validation_v1_validation } from "@alis-build/alis-open-validation-v1/alis/open/validation/v1/validation_pb";
7
- import { file_google_iam_v1_iam_policy } from "@alis-build/google-iam-v1/google/iam/v1/iam_policy_pb";
6
+ import { file_alis_open_validation_v1_validation } from "@alis-build/alis-open-validation-v1/alis/open/validation/v1/validation_pb.js";
7
+ import { file_google_iam_v1_iam_policy } from "@alis-build/google-iam-v1/google/iam/v1/iam_policy_pb.js";
8
8
 
9
9
  /**
10
10
  * Describes the file alis/open/notifications/v1/notifications.proto.
package/package.json CHANGED
@@ -2,15 +2,26 @@
2
2
  "dependencies": {
3
3
  "@alis-build/alis-open-iam-v1": "*",
4
4
  "@alis-build/alis-open-validation-v1": "*",
5
- "@alis-build/google-iam-v1": "*",
6
- "@bufbuild/protobuf": "^2.11.0",
7
- "@connectrpc/connect": "^2.1.1",
8
- "@connectrpc/connect-web": "^2.1.1"
5
+ "@alis-build/google-iam-v1": "*"
9
6
  },
10
- "description": "Ecmascript and Connect-Web stubs generated by Alis Build",
7
+ "description": "Ecmascript and Connect-Web stubs generated by Alis Build for alis.open.notifications.v1",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "import": "./index.js"
12
+ },
13
+ "./*": "./*",
14
+ "./package.json": "./package.json"
15
+ },
16
+ "license": "Apache-2.0",
11
17
  "main": "./index.js",
12
18
  "name": "@alis-build/alis-open-notifications-v1",
19
+ "peerDependencies": {
20
+ "@bufbuild/protobuf": "^2.13.0",
21
+ "@connectrpc/connect": "^2.1.2",
22
+ "@connectrpc/connect-web": "^2.1.2"
23
+ },
13
24
  "type": "module",
14
25
  "types": "./index.d.ts",
15
- "version": "1.3.0"
26
+ "version": "1.5.0"
16
27
  }