@zavudev/sdk 0.14.0 → 0.15.1

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.
@@ -5,29 +5,113 @@ import { RequestOptions } from "../internal/request-options.mjs";
5
5
  export declare class Senders extends APIResource {
6
6
  /**
7
7
  * Create sender
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const sender = await client.senders.create({
12
+ * name: 'name',
13
+ * phoneNumber: 'phoneNumber',
14
+ * });
15
+ * ```
8
16
  */
9
17
  create(body: SenderCreateParams, options?: RequestOptions): APIPromise<Sender>;
10
18
  /**
11
19
  * Get sender
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const sender = await client.senders.retrieve('senderId');
24
+ * ```
12
25
  */
13
26
  retrieve(senderID: string, options?: RequestOptions): APIPromise<Sender>;
14
27
  /**
15
28
  * Update sender
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const sender = await client.senders.update('senderId');
33
+ * ```
16
34
  */
17
35
  update(senderID: string, body: SenderUpdateParams, options?: RequestOptions): APIPromise<Sender>;
18
36
  /**
19
37
  * List senders
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * // Automatically fetches more pages as needed.
42
+ * for await (const sender of client.senders.list()) {
43
+ * // ...
44
+ * }
45
+ * ```
20
46
  */
21
47
  list(query?: SenderListParams | null | undefined, options?: RequestOptions): PagePromise<SendersCursor, Sender>;
22
48
  /**
23
49
  * Delete sender
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * await client.senders.delete('senderId');
54
+ * ```
24
55
  */
25
56
  delete(senderID: string, options?: RequestOptions): APIPromise<void>;
57
+ /**
58
+ * Get the WhatsApp Business profile for a sender. The sender must have a WhatsApp
59
+ * Business Account connected.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const whatsappBusinessProfileResponse =
64
+ * await client.senders.getProfile('senderId');
65
+ * ```
66
+ */
67
+ getProfile(senderID: string, options?: RequestOptions): APIPromise<WhatsappBusinessProfileResponse>;
26
68
  /**
27
69
  * Regenerate the webhook secret for a sender. The old secret will be invalidated
28
70
  * immediately.
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * const webhookSecretResponse =
75
+ * await client.senders.regenerateWebhookSecret('senderId');
76
+ * ```
29
77
  */
30
78
  regenerateWebhookSecret(senderID: string, options?: RequestOptions): APIPromise<WebhookSecretResponse>;
79
+ /**
80
+ * Update the WhatsApp Business profile for a sender. The sender must have a
81
+ * WhatsApp Business Account connected.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const response = await client.senders.updateProfile(
86
+ * 'senderId',
87
+ * {
88
+ * about: 'Succulent specialists!',
89
+ * description:
90
+ * 'We specialize in providing high-quality succulents.',
91
+ * email: 'contact@example.com',
92
+ * vertical: 'RETAIL',
93
+ * websites: ['https://www.example.com'],
94
+ * },
95
+ * );
96
+ * ```
97
+ */
98
+ updateProfile(senderID: string, body: SenderUpdateProfileParams, options?: RequestOptions): APIPromise<SenderUpdateProfileResponse>;
99
+ /**
100
+ * Upload a new profile picture for the WhatsApp Business profile. The image will
101
+ * be uploaded to Meta and set as the profile picture.
102
+ *
103
+ * @example
104
+ * ```ts
105
+ * const response = await client.senders.uploadProfilePicture(
106
+ * 'senderId',
107
+ * {
108
+ * imageUrl: 'https://example.com/profile.jpg',
109
+ * mimeType: 'image/jpeg',
110
+ * },
111
+ * );
112
+ * ```
113
+ */
114
+ uploadProfilePicture(senderID: string, body: SenderUploadProfilePictureParams, options?: RequestOptions): APIPromise<SenderUploadProfilePictureResponse>;
31
115
  }
32
116
  export type SendersCursor = Cursor<Sender>;
33
117
  export interface Sender {
@@ -47,6 +131,49 @@ export interface Sender {
47
131
  * Webhook configuration for the sender.
48
132
  */
49
133
  webhook?: SenderWebhook;
134
+ /**
135
+ * WhatsApp Business Account information. Only present if a WABA is connected.
136
+ */
137
+ whatsapp?: Sender.Whatsapp;
138
+ }
139
+ export declare namespace Sender {
140
+ /**
141
+ * WhatsApp Business Account information. Only present if a WABA is connected.
142
+ */
143
+ interface Whatsapp {
144
+ /**
145
+ * Display phone number.
146
+ */
147
+ displayPhoneNumber?: string;
148
+ /**
149
+ * Payment configuration status from Meta.
150
+ */
151
+ paymentStatus?: Whatsapp.PaymentStatus;
152
+ /**
153
+ * WhatsApp phone number ID from Meta.
154
+ */
155
+ phoneNumberId?: string;
156
+ }
157
+ namespace Whatsapp {
158
+ /**
159
+ * Payment configuration status from Meta.
160
+ */
161
+ interface PaymentStatus {
162
+ /**
163
+ * Whether template messages can be sent. Requires setupStatus=COMPLETE and
164
+ * methodStatus=VALID.
165
+ */
166
+ canSendTemplates?: boolean;
167
+ /**
168
+ * Payment method status (VALID, NONE, etc.).
169
+ */
170
+ methodStatus?: string;
171
+ /**
172
+ * Payment setup status (COMPLETE, NOT_STARTED, etc.).
173
+ */
174
+ setupStatus?: string;
175
+ }
176
+ }
50
177
  }
51
178
  /**
52
179
  * Webhook configuration for the sender.
@@ -81,6 +208,63 @@ export interface WebhookSecretResponse {
81
208
  */
82
209
  secret: string;
83
210
  }
211
+ /**
212
+ * WhatsApp Business profile information.
213
+ */
214
+ export interface WhatsappBusinessProfile {
215
+ /**
216
+ * Short description of the business (max 139 characters).
217
+ */
218
+ about?: string;
219
+ /**
220
+ * Physical address of the business (max 256 characters).
221
+ */
222
+ address?: string;
223
+ /**
224
+ * Extended description of the business (max 512 characters).
225
+ */
226
+ description?: string;
227
+ /**
228
+ * Business email address.
229
+ */
230
+ email?: string;
231
+ /**
232
+ * URL of the business profile picture.
233
+ */
234
+ profilePictureUrl?: string;
235
+ /**
236
+ * Business category for WhatsApp Business profile.
237
+ */
238
+ vertical?: WhatsappBusinessProfileVertical;
239
+ /**
240
+ * Business website URLs (maximum 2).
241
+ */
242
+ websites?: Array<string>;
243
+ }
244
+ export interface WhatsappBusinessProfileResponse {
245
+ /**
246
+ * WhatsApp Business profile information.
247
+ */
248
+ profile: WhatsappBusinessProfile;
249
+ }
250
+ /**
251
+ * Business category for WhatsApp Business profile.
252
+ */
253
+ export type WhatsappBusinessProfileVertical = 'UNDEFINED' | 'OTHER' | 'AUTO' | 'BEAUTY' | 'APPAREL' | 'EDU' | 'ENTERTAIN' | 'EVENT_PLAN' | 'FINANCE' | 'GROCERY' | 'GOVT' | 'HOTEL' | 'HEALTH' | 'NONPROFIT' | 'PROF_SERVICES' | 'RETAIL' | 'TRAVEL' | 'RESTAURANT' | 'NOT_A_BIZ';
254
+ export interface SenderUpdateProfileResponse {
255
+ /**
256
+ * WhatsApp Business profile information.
257
+ */
258
+ profile: WhatsappBusinessProfile;
259
+ success: boolean;
260
+ }
261
+ export interface SenderUploadProfilePictureResponse {
262
+ /**
263
+ * WhatsApp Business profile information.
264
+ */
265
+ profile: WhatsappBusinessProfile;
266
+ success: boolean;
267
+ }
84
268
  export interface SenderCreateParams {
85
269
  name: string;
86
270
  phoneNumber: string;
@@ -112,7 +296,43 @@ export interface SenderUpdateParams {
112
296
  }
113
297
  export interface SenderListParams extends CursorParams {
114
298
  }
299
+ export interface SenderUpdateProfileParams {
300
+ /**
301
+ * Short description of the business (max 139 characters).
302
+ */
303
+ about?: string;
304
+ /**
305
+ * Physical address of the business (max 256 characters).
306
+ */
307
+ address?: string;
308
+ /**
309
+ * Extended description of the business (max 512 characters).
310
+ */
311
+ description?: string;
312
+ /**
313
+ * Business email address.
314
+ */
315
+ email?: string;
316
+ /**
317
+ * Business category for WhatsApp Business profile.
318
+ */
319
+ vertical?: WhatsappBusinessProfileVertical;
320
+ /**
321
+ * Business website URLs (maximum 2).
322
+ */
323
+ websites?: Array<string>;
324
+ }
325
+ export interface SenderUploadProfilePictureParams {
326
+ /**
327
+ * URL of the image to upload.
328
+ */
329
+ imageUrl: string;
330
+ /**
331
+ * MIME type of the image.
332
+ */
333
+ mimeType: 'image/jpeg' | 'image/png';
334
+ }
115
335
  export declare namespace Senders {
116
- export { type Sender as Sender, type SenderWebhook as SenderWebhook, type WebhookEvent as WebhookEvent, type WebhookSecretResponse as WebhookSecretResponse, type SendersCursor as SendersCursor, type SenderCreateParams as SenderCreateParams, type SenderUpdateParams as SenderUpdateParams, type SenderListParams as SenderListParams, };
336
+ export { type Sender as Sender, type SenderWebhook as SenderWebhook, type WebhookEvent as WebhookEvent, type WebhookSecretResponse as WebhookSecretResponse, type WhatsappBusinessProfile as WhatsappBusinessProfile, type WhatsappBusinessProfileResponse as WhatsappBusinessProfileResponse, type WhatsappBusinessProfileVertical as WhatsappBusinessProfileVertical, type SenderUpdateProfileResponse as SenderUpdateProfileResponse, type SenderUploadProfilePictureResponse as SenderUploadProfilePictureResponse, type SendersCursor as SendersCursor, type SenderCreateParams as SenderCreateParams, type SenderUpdateParams as SenderUpdateParams, type SenderListParams as SenderListParams, type SenderUpdateProfileParams as SenderUpdateProfileParams, type SenderUploadProfilePictureParams as SenderUploadProfilePictureParams, };
117
337
  }
118
338
  //# sourceMappingURL=senders.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"senders.d.mts","sourceRoot":"","sources":["../src/resources/senders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAE1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIxE;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIhG;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,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K,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -5,29 +5,113 @@ import { RequestOptions } from "../internal/request-options.js";
5
5
  export declare class Senders extends APIResource {
6
6
  /**
7
7
  * Create sender
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const sender = await client.senders.create({
12
+ * name: 'name',
13
+ * phoneNumber: 'phoneNumber',
14
+ * });
15
+ * ```
8
16
  */
9
17
  create(body: SenderCreateParams, options?: RequestOptions): APIPromise<Sender>;
10
18
  /**
11
19
  * Get sender
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const sender = await client.senders.retrieve('senderId');
24
+ * ```
12
25
  */
13
26
  retrieve(senderID: string, options?: RequestOptions): APIPromise<Sender>;
14
27
  /**
15
28
  * Update sender
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const sender = await client.senders.update('senderId');
33
+ * ```
16
34
  */
17
35
  update(senderID: string, body: SenderUpdateParams, options?: RequestOptions): APIPromise<Sender>;
18
36
  /**
19
37
  * List senders
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * // Automatically fetches more pages as needed.
42
+ * for await (const sender of client.senders.list()) {
43
+ * // ...
44
+ * }
45
+ * ```
20
46
  */
21
47
  list(query?: SenderListParams | null | undefined, options?: RequestOptions): PagePromise<SendersCursor, Sender>;
22
48
  /**
23
49
  * Delete sender
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * await client.senders.delete('senderId');
54
+ * ```
24
55
  */
25
56
  delete(senderID: string, options?: RequestOptions): APIPromise<void>;
57
+ /**
58
+ * Get the WhatsApp Business profile for a sender. The sender must have a WhatsApp
59
+ * Business Account connected.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const whatsappBusinessProfileResponse =
64
+ * await client.senders.getProfile('senderId');
65
+ * ```
66
+ */
67
+ getProfile(senderID: string, options?: RequestOptions): APIPromise<WhatsappBusinessProfileResponse>;
26
68
  /**
27
69
  * Regenerate the webhook secret for a sender. The old secret will be invalidated
28
70
  * immediately.
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * const webhookSecretResponse =
75
+ * await client.senders.regenerateWebhookSecret('senderId');
76
+ * ```
29
77
  */
30
78
  regenerateWebhookSecret(senderID: string, options?: RequestOptions): APIPromise<WebhookSecretResponse>;
79
+ /**
80
+ * Update the WhatsApp Business profile for a sender. The sender must have a
81
+ * WhatsApp Business Account connected.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const response = await client.senders.updateProfile(
86
+ * 'senderId',
87
+ * {
88
+ * about: 'Succulent specialists!',
89
+ * description:
90
+ * 'We specialize in providing high-quality succulents.',
91
+ * email: 'contact@example.com',
92
+ * vertical: 'RETAIL',
93
+ * websites: ['https://www.example.com'],
94
+ * },
95
+ * );
96
+ * ```
97
+ */
98
+ updateProfile(senderID: string, body: SenderUpdateProfileParams, options?: RequestOptions): APIPromise<SenderUpdateProfileResponse>;
99
+ /**
100
+ * Upload a new profile picture for the WhatsApp Business profile. The image will
101
+ * be uploaded to Meta and set as the profile picture.
102
+ *
103
+ * @example
104
+ * ```ts
105
+ * const response = await client.senders.uploadProfilePicture(
106
+ * 'senderId',
107
+ * {
108
+ * imageUrl: 'https://example.com/profile.jpg',
109
+ * mimeType: 'image/jpeg',
110
+ * },
111
+ * );
112
+ * ```
113
+ */
114
+ uploadProfilePicture(senderID: string, body: SenderUploadProfilePictureParams, options?: RequestOptions): APIPromise<SenderUploadProfilePictureResponse>;
31
115
  }
32
116
  export type SendersCursor = Cursor<Sender>;
33
117
  export interface Sender {
@@ -47,6 +131,49 @@ export interface Sender {
47
131
  * Webhook configuration for the sender.
48
132
  */
49
133
  webhook?: SenderWebhook;
134
+ /**
135
+ * WhatsApp Business Account information. Only present if a WABA is connected.
136
+ */
137
+ whatsapp?: Sender.Whatsapp;
138
+ }
139
+ export declare namespace Sender {
140
+ /**
141
+ * WhatsApp Business Account information. Only present if a WABA is connected.
142
+ */
143
+ interface Whatsapp {
144
+ /**
145
+ * Display phone number.
146
+ */
147
+ displayPhoneNumber?: string;
148
+ /**
149
+ * Payment configuration status from Meta.
150
+ */
151
+ paymentStatus?: Whatsapp.PaymentStatus;
152
+ /**
153
+ * WhatsApp phone number ID from Meta.
154
+ */
155
+ phoneNumberId?: string;
156
+ }
157
+ namespace Whatsapp {
158
+ /**
159
+ * Payment configuration status from Meta.
160
+ */
161
+ interface PaymentStatus {
162
+ /**
163
+ * Whether template messages can be sent. Requires setupStatus=COMPLETE and
164
+ * methodStatus=VALID.
165
+ */
166
+ canSendTemplates?: boolean;
167
+ /**
168
+ * Payment method status (VALID, NONE, etc.).
169
+ */
170
+ methodStatus?: string;
171
+ /**
172
+ * Payment setup status (COMPLETE, NOT_STARTED, etc.).
173
+ */
174
+ setupStatus?: string;
175
+ }
176
+ }
50
177
  }
51
178
  /**
52
179
  * Webhook configuration for the sender.
@@ -81,6 +208,63 @@ export interface WebhookSecretResponse {
81
208
  */
82
209
  secret: string;
83
210
  }
211
+ /**
212
+ * WhatsApp Business profile information.
213
+ */
214
+ export interface WhatsappBusinessProfile {
215
+ /**
216
+ * Short description of the business (max 139 characters).
217
+ */
218
+ about?: string;
219
+ /**
220
+ * Physical address of the business (max 256 characters).
221
+ */
222
+ address?: string;
223
+ /**
224
+ * Extended description of the business (max 512 characters).
225
+ */
226
+ description?: string;
227
+ /**
228
+ * Business email address.
229
+ */
230
+ email?: string;
231
+ /**
232
+ * URL of the business profile picture.
233
+ */
234
+ profilePictureUrl?: string;
235
+ /**
236
+ * Business category for WhatsApp Business profile.
237
+ */
238
+ vertical?: WhatsappBusinessProfileVertical;
239
+ /**
240
+ * Business website URLs (maximum 2).
241
+ */
242
+ websites?: Array<string>;
243
+ }
244
+ export interface WhatsappBusinessProfileResponse {
245
+ /**
246
+ * WhatsApp Business profile information.
247
+ */
248
+ profile: WhatsappBusinessProfile;
249
+ }
250
+ /**
251
+ * Business category for WhatsApp Business profile.
252
+ */
253
+ export type WhatsappBusinessProfileVertical = 'UNDEFINED' | 'OTHER' | 'AUTO' | 'BEAUTY' | 'APPAREL' | 'EDU' | 'ENTERTAIN' | 'EVENT_PLAN' | 'FINANCE' | 'GROCERY' | 'GOVT' | 'HOTEL' | 'HEALTH' | 'NONPROFIT' | 'PROF_SERVICES' | 'RETAIL' | 'TRAVEL' | 'RESTAURANT' | 'NOT_A_BIZ';
254
+ export interface SenderUpdateProfileResponse {
255
+ /**
256
+ * WhatsApp Business profile information.
257
+ */
258
+ profile: WhatsappBusinessProfile;
259
+ success: boolean;
260
+ }
261
+ export interface SenderUploadProfilePictureResponse {
262
+ /**
263
+ * WhatsApp Business profile information.
264
+ */
265
+ profile: WhatsappBusinessProfile;
266
+ success: boolean;
267
+ }
84
268
  export interface SenderCreateParams {
85
269
  name: string;
86
270
  phoneNumber: string;
@@ -112,7 +296,43 @@ export interface SenderUpdateParams {
112
296
  }
113
297
  export interface SenderListParams extends CursorParams {
114
298
  }
299
+ export interface SenderUpdateProfileParams {
300
+ /**
301
+ * Short description of the business (max 139 characters).
302
+ */
303
+ about?: string;
304
+ /**
305
+ * Physical address of the business (max 256 characters).
306
+ */
307
+ address?: string;
308
+ /**
309
+ * Extended description of the business (max 512 characters).
310
+ */
311
+ description?: string;
312
+ /**
313
+ * Business email address.
314
+ */
315
+ email?: string;
316
+ /**
317
+ * Business category for WhatsApp Business profile.
318
+ */
319
+ vertical?: WhatsappBusinessProfileVertical;
320
+ /**
321
+ * Business website URLs (maximum 2).
322
+ */
323
+ websites?: Array<string>;
324
+ }
325
+ export interface SenderUploadProfilePictureParams {
326
+ /**
327
+ * URL of the image to upload.
328
+ */
329
+ imageUrl: string;
330
+ /**
331
+ * MIME type of the image.
332
+ */
333
+ mimeType: 'image/jpeg' | 'image/png';
334
+ }
115
335
  export declare namespace Senders {
116
- export { type Sender as Sender, type SenderWebhook as SenderWebhook, type WebhookEvent as WebhookEvent, type WebhookSecretResponse as WebhookSecretResponse, type SendersCursor as SendersCursor, type SenderCreateParams as SenderCreateParams, type SenderUpdateParams as SenderUpdateParams, type SenderListParams as SenderListParams, };
336
+ export { type Sender as Sender, type SenderWebhook as SenderWebhook, type WebhookEvent as WebhookEvent, type WebhookSecretResponse as WebhookSecretResponse, type WhatsappBusinessProfile as WhatsappBusinessProfile, type WhatsappBusinessProfileResponse as WhatsappBusinessProfileResponse, type WhatsappBusinessProfileVertical as WhatsappBusinessProfileVertical, type SenderUpdateProfileResponse as SenderUpdateProfileResponse, type SenderUploadProfilePictureResponse as SenderUploadProfilePictureResponse, type SendersCursor as SendersCursor, type SenderCreateParams as SenderCreateParams, type SenderUpdateParams as SenderUpdateParams, type SenderListParams as SenderListParams, type SenderUpdateProfileParams as SenderUpdateProfileParams, type SenderUploadProfilePictureParams as SenderUploadProfilePictureParams, };
117
337
  }
118
338
  //# sourceMappingURL=senders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"senders.d.ts","sourceRoot":"","sources":["../src/resources/senders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAE1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIxE;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIhG;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC;IAIrC;;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