@signalhouse-sms/sdk 1.5.1 → 1.7.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.
@@ -66,14 +66,15 @@
66
66
  */
67
67
  /**
68
68
  * @typedef {Object} TollFreeBrandDetails
69
- * @property {string} businessRegistrationType - The business registration type (required, one of EIN, CBN, NEQ, PROVINCIAL_NUMBER, CRN, VAT, ACN, ABN, BRN, SIREN, SIRET, NZBN, UST_IDNR, CIF, NIF, CNPJ, UID, OTHER)
69
+ * @property {string} [businessRegistrationType] - The business registration type (required unless businessVerificationId is sent, one of EIN, CBN, NEQ, PROVINCIAL_NUMBER, CRN, VAT, ACN, ABN, BRN, SIREN, SIRET, NZBN, UST_IDNR, CIF, NIF, CNPJ, UID, OTHER)
70
70
  * @property {string} legalEntityType - The legal entity type (required, one of PRIVATE_COMPANY, PUBLIC_COMPANY, NON_PROFIT, GOVERNMENT, SOLE_PROPRIETOR)
71
- * @property {string} taxId - The business tax identifier (required, at most 50 characters)
72
- * @property {string} countryCode - The business country code (required, 2-letter ISO code)
71
+ * @property {string} [taxId] - The business tax identifier (required unless businessVerificationId is sent, at most 50 characters)
72
+ * @property {string} [countryCode] - The business country code (required unless businessVerificationId is sent, 2-letter ISO code)
73
73
  * @property {string} supportPhone - The customer-support phone number (required, E.164 with an optional leading "+" and no spaces, parentheses or hyphens, e.g. "17025550100")
74
74
  * @property {string} [taxIdIssuingCountry] - The country that issued the tax ID (optional, 2-letter ISO code)
75
75
  * @property {string} [businessDBA] - The business "doing business as" name (optional, at most 255 characters)
76
76
  * @property {string} [businessWebsite] - The customer's real website, sent to Infobip for brand verification (optional, valid URL, at most 255 characters; distinct from the top-level website / landing URL)
77
+ * @property {string} [businessVerificationId] - The ID of the business verification the brand uses (starts with BV). Required for a group whose toll-free brands need a business verification, and must name a VERIFIED one of the brand's group (in a group that verifies each subgroup's business separately, of the brand's subgroup); refused (400) for any other group. Set at creation only: it can't be changed
77
78
  */
78
79
  /**
79
80
  * @typedef {Object} BusinessVerificationDetails
@@ -97,6 +98,17 @@
97
98
  * @property {string} representative.jobTitle - The representative's job title (required, at most 100 characters)
98
99
  * @property {string} representative.jobLevel - The representative's job level (required, one of DIRECTOR, GM, VP, CEO, CFO, GENERAL_COUNSEL, OTHER)
99
100
  */
101
+ /**
102
+ * @typedef {Object} BusinessVerification
103
+ * @property {string} businessVerificationId - The business verification's ID (starts with BV)
104
+ * @property {string} groupId - The group it belongs to
105
+ * @property {string} [subgroupId] - The subgroup whose business it verifies; present only in a group that verifies each subgroup's business separately
106
+ * @property {string} status - SUBMITTING, IN_REVIEW, VERIFIED or NEEDS_CHANGES
107
+ * @property {BusinessVerificationDetails} details - The submitted details
108
+ * @property {string} submittedAt - When it was last submitted (ISO date)
109
+ * @property {string|null} reviewedAt - When it was last reviewed (ISO date), or null
110
+ * @property {string|null} rejectionReason - Why it needs changes, or null
111
+ */
100
112
  /**
101
113
  * @typedef {Object} TollFreeIsvAccount
102
114
  * @property {string} groupId - The group the account is registered to
@@ -107,17 +119,20 @@
107
119
  * @property {string} updatedAt - When the account or its API key was last saved (ISO date)
108
120
  */
109
121
  /**
122
+ * Toll-free brand data. When tollFree.businessVerificationId is sent, the legal fields (companyName, street, city, state,
123
+ * postalCode, country, firstName, lastName and tollFree's businessRegistrationType, taxId, countryCode and
124
+ * taxIdIssuingCountry) are optional: the business verification's values replace any that are sent.
110
125
  * @typedef {Object} CreateTollFreeBrandData
111
126
  * @property {string} subgroupId - The ID of the subgroup to create the brand under (required, exactly 8 characters)
112
127
  * @property {string} displayName - The display name for the brand (required, at most 255 characters)
113
- * @property {string} companyName - The company name for the brand (required, at most 255 characters)
114
- * @property {string} street - The street address of the primary contact for the brand (required, at most 255 characters)
115
- * @property {string} city - The city of the primary contact for the brand (required, at most 100 characters)
116
- * @property {string} state - The state of the primary contact for the brand (required, at most 20 characters; must be a valid 2-letter US state code when country is "US")
117
- * @property {string} postalCode - The postal code of the primary contact for the brand (required, at most 10 characters)
128
+ * @property {string} [companyName] - The company name for the brand (required unless tollFree.businessVerificationId is sent, at most 255 characters)
129
+ * @property {string} [street] - The street address of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 255 characters)
130
+ * @property {string} [city] - The city of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 100 characters)
131
+ * @property {string} [state] - The state of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 20 characters; must be a valid 2-letter US state code when country is "US")
132
+ * @property {string} [postalCode] - The postal code of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 10 characters)
118
133
  * @property {string} email - The email address of the primary contact for the brand (required, valid email, at most 100 characters)
119
- * @property {string} firstName - The first name of the primary contact for the brand (required, at most 100 characters)
120
- * @property {string} lastName - The last name of the primary contact for the brand (required, at most 100 characters)
134
+ * @property {string} [firstName] - The first name of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 100 characters)
135
+ * @property {string} [lastName] - The last name of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 100 characters)
121
136
  * @property {string} website - The website URL for the brand (required, valid URL, at most 255 characters)
122
137
  * @property {TollFreeBrandDetails} tollFree - The Toll-Free brand details (required)
123
138
  * @property {string} [referenceId] - A unique reference for the brand (optional, at most 50 characters)
@@ -150,6 +165,46 @@ export class Brands {
150
165
  client: any;
151
166
  multipartClient: any;
152
167
  enableAdmin: any;
168
+ admin: {
169
+ /**
170
+ * Get a group's toll-free ISV account: the group's own top-level account at the toll-free provider, used when its
171
+ * subgroups are separate businesses. Each subgroup gets an account and business verifications of its own under it.
172
+ * Staff only.
173
+ * @async
174
+ * @roles signalhouse_api, signalhouse_admin, signalhouse_user
175
+ * @param {Object} params - The parameters for getting the toll-free ISV account
176
+ * @param {string} params.groupId - The ID of the group whose toll-free ISV account to get
177
+ * @param {RequestOptions} [params.options] - Additional options for the request
178
+ * @throws {Error} Throws an error if the groupId parameter is missing
179
+ * @returns {Promise<SdkResponse<TollFreeIsvAccount|null>>} The group's toll-free ISV account, or null when it has none. The API key secret is never returned. The API returns 404 when the group does not exist or is not active.
180
+ */
181
+ getTollFreeIsvAccount: ({ groupId, options }: {
182
+ groupId: string;
183
+ options?: RequestOptions;
184
+ }) => Promise<SdkResponse<TollFreeIsvAccount | null>>;
185
+ /**
186
+ * Register a group's toll-free ISV account, or replace the API key of the account it already has. Staff only. The
187
+ * toll-free provider checks the account and key before they are stored. Register it before the group has any toll-free
188
+ * records at the provider; after that, only the API key of the same account can be replaced.
189
+ * @async
190
+ * @roles signalhouse_admin
191
+ * @param {Object} params - The parameters for setting the toll-free ISV account
192
+ * @param {string} params.groupId - The ID of the group whose toll-free ISV account to set
193
+ * @param {string} params.accountSid - The SID of the group's own top-level account at the toll-free provider (AC followed by 32 lowercase hexadecimal characters)
194
+ * @param {string} params.apiKeySid - The SID of a Main API key in that account, which can create subaccounts (SK followed by 32 lowercase hexadecimal characters)
195
+ * @param {string} params.apiKeySecret - The API key's secret (1 to 128 characters), stored encrypted and never returned
196
+ * @param {RequestOptions} [params.options] - Additional options for the request
197
+ * @throws {Error} Throws an error if the groupId, accountSid, apiKeySid or apiKeySecret parameter is missing
198
+ * @returns {Promise<SdkResponse<TollFreeIsvAccount>>} The stored toll-free ISV account, without the API key secret. The API returns 400 when the provider refuses the account or its key, and 404 when the group does not exist or is not active.
199
+ */
200
+ setTollFreeIsvAccount: ({ groupId, accountSid, apiKeySid, apiKeySecret, options }: {
201
+ groupId: string;
202
+ accountSid: string;
203
+ apiKeySid: string;
204
+ apiKeySecret: string;
205
+ options?: RequestOptions;
206
+ }) => Promise<SdkResponse<TollFreeIsvAccount>>;
207
+ };
153
208
  /**
154
209
  * Get a list of brands with optional filters
155
210
  * @async
@@ -176,7 +231,7 @@ export class Brands {
176
231
  * @param {boolean} [params.excludeDeleted] - Staff-only: hide DELETED brands when no status is given
177
232
  * @param {boolean} [params.includeTotal] - Staff-only: with page and limit, return `{ data, total, page, limit, totalPages }` instead of the array
178
233
  * @param {RequestOptions} [params.options] - Additional options for the request
179
- * @returns {Promise<SdkResponse<Array<{ _id: string, brandId: string|null, status: string, registrationType: string, tollFree?: { isBrandReady?: boolean, maxNumbersPerCampaign?: number, maxOptInMethods?: number, requiresPrivacyPolicy?: boolean, requiresTermsAndConditions?: boolean, maxAppealReasonLength?: number, labelsSamples?: boolean, supportsMms?: boolean, usesBusinessVerification?: boolean, [key: string]: any }, [key: string]: any }>|{ data: Array<Object>, total: number, page: number, limit: number, totalPages: number }>>} Brand records. For 10DLC brands in PENDING_CREATION (or rejected before carrier assignment), brandId is null — poll by _id until status advances and brandId is assigned. Toll-free brands carry `tollFree.isBrandReady` (whether the brand can host campaigns), `tollFree.maxNumbersPerCampaign` (the most numbers one of its campaigns can hold), `tollFree.maxOptInMethods` (the most opt-in methods one of its campaigns can declare), `tollFree.requiresPrivacyPolicy` (whether its campaigns need a privacy policy URL), `tollFree.requiresTermsAndConditions` (whether its campaigns need a terms and conditions URL), `tollFree.maxAppealReasonLength` (the longest appeal reason its campaigns may give), `tollFree.labelsSamples` (whether its campaigns' sample messages each start with their use case's name), `tollFree.supportsMms` (whether its numbers can send MMS and group messages) and `tollFree.usesBusinessVerification` (whether it waits on the business verification that applies to its subgroup). The staff-only list (no id/subgroupId/groupId) returns the `{ data, total, page, limit, totalPages }` envelope only when includeTotal is sent with page and limit.
234
+ * @returns {Promise<SdkResponse<Array<{ _id: string, brandId: string|null, status: string, registrationType: string, tollFree?: { isBrandReady?: boolean, maxNumbersPerCampaign?: number, maxOptInMethods?: number, requiresPrivacyPolicy?: boolean, requiresTermsAndConditions?: boolean, maxAppealReasonLength?: number, labelsSamples?: boolean, supportsMms?: boolean, usesBusinessVerification?: boolean, businessVerificationId?: string|null, [key: string]: any }, [key: string]: any }>|{ data: Array<Object>, total: number, page: number, limit: number, totalPages: number }>>} Brand records. For 10DLC brands in PENDING_CREATION (or rejected before carrier assignment), brandId is null — poll by _id until status advances and brandId is assigned. Toll-free brands carry `tollFree.isBrandReady` (whether the brand can host campaigns), `tollFree.maxNumbersPerCampaign` (the most numbers one of its campaigns can hold), `tollFree.maxOptInMethods` (the most opt-in methods one of its campaigns can declare), `tollFree.requiresPrivacyPolicy` (whether its campaigns need a privacy policy URL), `tollFree.requiresTermsAndConditions` (whether its campaigns need a terms and conditions URL), `tollFree.maxAppealReasonLength` (the longest appeal reason its campaigns may give), `tollFree.labelsSamples` (whether its campaigns' sample messages each start with their use case's name), `tollFree.supportsMms` (whether its numbers can send MMS and group messages), `tollFree.usesBusinessVerification` (whether it waits on its own business verification) and `tollFree.businessVerificationId` (the ID of the business verification it uses, or null when it uses none). The staff-only list (no id/subgroupId/groupId) returns the `{ data, total, page, limit, totalPages }` envelope only when includeTotal is sent with page and limit. Each brand carries `carrierSuspensions` (carrier brand suspension rules; active while liftedAt is null).
180
235
  */
181
236
  getBrands({ id, subgroupId, groupId, page, limit, status, registrationType, currentTollFreeCarrier, search, sortBy, sortOrder, entityType, ein, email, referenceId, groupIds, createdFrom, createdTo, excludeDeleted, includeTotal, options, }: {
182
237
  id?: string;
@@ -215,6 +270,7 @@ export class Brands {
215
270
  labelsSamples?: boolean;
216
271
  supportsMms?: boolean;
217
272
  usesBusinessVerification?: boolean;
273
+ businessVerificationId?: string | null;
218
274
  [key: string]: any;
219
275
  };
220
276
  [key: string]: any;
@@ -268,19 +324,19 @@ export class Brands {
268
324
  options?: RequestOptions;
269
325
  }): Promise<SdkResponse<any>>;
270
326
  /**
271
- * Get a group's business verification: whether its toll-free brands need one, its status and the submitted details.
272
- * Some groups verify each subgroup's business separately: a platform whose subgroups are separate businesses, set up by
273
- * Signal House. For those groups pass the subgroup whose business verification to get.
327
+ * List a group's business verifications, newest first, and whether its toll-free brands need one. Some groups verify
328
+ * each subgroup's business separately: a platform whose subgroups are separate businesses, set up by Signal House. For
329
+ * those groups pass the subgroup whose business verifications to list.
274
330
  * @async
275
331
  * @roles api, admin, developer, billing, user
276
- * @param {Object} params - The parameters for getting the business verification
277
- * @param {string} params.groupId - The ID of the group whose business verification to get
278
- * @param {string} [params.subgroupId] - The subgroup whose business verification to get, sent as a query parameter only when given. Required for a group that verifies each subgroup's business separately; for any other group it must be one of the group's subgroups and is otherwise ignored
332
+ * @param {Object} params - The parameters for listing the business verifications
333
+ * @param {string} params.groupId - The ID of the group whose business verifications to list
334
+ * @param {string} [params.subgroupId] - The subgroup whose business verifications to list, sent as a query parameter only when given. Required for a group that verifies each subgroup's business separately; for any other group it must be one of the group's subgroups and is otherwise ignored
279
335
  * @param {RequestOptions} [params.options] - Additional options for the request
280
336
  * @throws {Error} Throws an error if the groupId parameter is missing
281
- * @returns {Promise<SdkResponse<{ groupId: string, subgroupId?: string, required: boolean, status: string, details: BusinessVerificationDetails|null, submittedAt: string|null, reviewedAt: string|null, rejectionReason: string|null }>>} The business verification. `subgroupId` is present only when it belongs to one subgroup: the subgroup whose business it describes. `required` says whether the group's new toll-free brands need one; `status` is NOT_STARTED, SUBMITTING, IN_REVIEW, VERIFIED or NEEDS_CHANGES; `rejectionReason` says why it needs changes, or is null. When `required` is true and `status` is NOT_STARTED, submit it before creating the first toll-free brand it covers. The API returns 400 when the group verifies each subgroup's business separately and no subgroupId is given, and 404 when the subgroup is not in the group.
337
+ * @returns {Promise<SdkResponse<{ groupId: string, subgroupId?: string, required: boolean, businessVerifications: Array<BusinessVerification> }>>} The business verifications, newest first. `subgroupId` is present only when they belong to one subgroup. `required` says whether the group's new toll-free brands need a business verification: each one names a VERIFIED business verification as `tollFree.businessVerificationId`. The API returns 400 when the group verifies each subgroup's business separately and no subgroupId is given, and 404 when the subgroup is not in the group.
282
338
  */
283
- getBusinessVerification({ groupId, subgroupId, options }: {
339
+ getBusinessVerifications({ groupId, subgroupId, options }: {
284
340
  groupId: string;
285
341
  subgroupId?: string;
286
342
  options?: RequestOptions;
@@ -288,79 +344,65 @@ export class Brands {
288
344
  groupId: string;
289
345
  subgroupId?: string;
290
346
  required: boolean;
291
- status: string;
292
- details: BusinessVerificationDetails | null;
293
- submittedAt: string | null;
294
- reviewedAt: string | null;
295
- rejectionReason: string | null;
347
+ businessVerifications: Array<BusinessVerification>;
296
348
  }>>;
297
349
  /**
298
- * Submit or update a group's business verification, or one subgroup's in a group that verifies each subgroup's business
299
- * separately. Allowed when it is not started or needs changes. Review usually takes 1–2 business days; the toll-free
300
- * brands it covers stay pending until it is verified.
350
+ * Get one of a group's business verifications by its ID.
301
351
  * @async
302
352
  * @roles api, admin, developer, billing, user
303
- * @param {Object} params - The parameters for submitting the business verification
304
- * @param {string} params.groupId - The ID of the group whose business verification to submit (must be the caller's active group)
305
- * @param {string} [params.subgroupId] - The subgroup whose business verification to submit, sent as a query parameter only when given. Required for a group that verifies each subgroup's business separately; for any other group it must be one of the group's subgroups and is otherwise ignored. The subgroup must be active
306
- * @param {BusinessVerificationDetails} params.details - The business verification details (see BusinessVerificationDetails typedef for details)
353
+ * @param {Object} params - The parameters for getting the business verification
354
+ * @param {string} params.groupId - The ID of the group the business verification belongs to
355
+ * @param {string} params.businessVerificationId - The ID of the business verification to get (starts with BV)
307
356
  * @param {RequestOptions} [params.options] - Additional options for the request
308
- * @throws {Error} Throws an error if the groupId or details parameter is missing
309
- * @returns {Promise<SdkResponse<{ groupId: string, subgroupId?: string, required: boolean, status: string, details: BusinessVerificationDetails|null, submittedAt: string|null, reviewedAt: string|null, rejectionReason: string|null }>>} A 202 with the business verification, now SUBMITTING (the same shape as getBusinessVerification, with `subgroupId` only when it belongs to one subgroup). The API returns 400 when the group verifies each subgroup's business separately and no subgroupId is given, or when the subgroup is inactive, and 404 when the subgroup is not in the group.
357
+ * @throws {Error} Throws an error if the groupId or businessVerificationId parameter is missing
358
+ * @returns {Promise<SdkResponse<BusinessVerification & { required: boolean }>>} The business verification, plus `required` (whether the group's new toll-free brands need one). The API returns 404 when it isn't one of the group's.
310
359
  */
311
- submitBusinessVerification({ groupId, subgroupId, details, options }: {
360
+ getBusinessVerification({ groupId, businessVerificationId, options }: {
312
361
  groupId: string;
313
- subgroupId?: string;
314
- details: BusinessVerificationDetails;
362
+ businessVerificationId: string;
315
363
  options?: RequestOptions;
316
- }): Promise<SdkResponse<{
317
- groupId: string;
318
- subgroupId?: string;
364
+ }): Promise<SdkResponse<BusinessVerification & {
319
365
  required: boolean;
320
- status: string;
321
- details: BusinessVerificationDetails | null;
322
- submittedAt: string | null;
323
- reviewedAt: string | null;
324
- rejectionReason: string | null;
325
366
  }>>;
326
367
  /**
327
- * Get a group's toll-free ISV account: the group's own top-level account at the toll-free provider, used when its
328
- * subgroups are separate businesses. Each subgroup gets an account and a business verification of its own under it.
329
- * Staff only.
368
+ * Create and submit a new business verification for a group, or for one subgroup in a group that verifies each
369
+ * subgroup's business separately. Review usually takes 1–2 business days; once it is VERIFIED, new toll-free brands
370
+ * can use it by naming it as `tollFree.businessVerificationId`.
330
371
  * @async
331
- * @roles signalhouse_api, signalhouse_admin, signalhouse_user
332
- * @param {Object} params - The parameters for getting the toll-free ISV account
333
- * @param {string} params.groupId - The ID of the group whose toll-free ISV account to get
372
+ * @roles api, admin, developer, billing, user
373
+ * @param {Object} params - The parameters for creating the business verification
374
+ * @param {string} params.groupId - The ID of the group the business verification is for (must be the caller's active group)
375
+ * @param {string} [params.subgroupId] - The subgroup whose business it verifies, sent as a query parameter only when given. Required for a group that verifies each subgroup's business separately; for any other group it must be one of the group's subgroups and is otherwise ignored. The subgroup must be active
376
+ * @param {BusinessVerificationDetails} params.details - The business verification details (see BusinessVerificationDetails typedef for details)
334
377
  * @param {RequestOptions} [params.options] - Additional options for the request
335
- * @throws {Error} Throws an error if the groupId parameter is missing
336
- * @returns {Promise<SdkResponse<TollFreeIsvAccount|null>>} The group's toll-free ISV account, or null when it has none. The API key secret is never returned. The API returns 404 when the group does not exist or is not active.
378
+ * @throws {Error} Throws an error if the groupId or details parameter is missing
379
+ * @returns {Promise<SdkResponse<BusinessVerification>>} A 202 with the new business verification, now SUBMITTING. The API returns 400 when the group's toll-free brands don't need a business verification, when the group verifies each subgroup's business separately and no subgroupId is given, or when the subgroup is inactive, and 404 when the subgroup is not in the group.
337
380
  */
338
- getTollFreeIsvAccount({ groupId, options }: {
381
+ createBusinessVerification({ groupId, subgroupId, details, options }: {
339
382
  groupId: string;
383
+ subgroupId?: string;
384
+ details: BusinessVerificationDetails;
340
385
  options?: RequestOptions;
341
- }): Promise<SdkResponse<TollFreeIsvAccount | null>>;
386
+ }): Promise<SdkResponse<BusinessVerification>>;
342
387
  /**
343
- * Register a group's toll-free ISV account, or replace the API key of the account it already has. Staff only. The
344
- * toll-free provider checks the account and key before they are stored. Register it before the group has any toll-free
345
- * records at the provider; after that, only the API key of the same account can be replaced.
388
+ * Correct and resubmit a business verification that needs changes. Allowed only while its status is NEEDS_CHANGES.
389
+ * Review usually takes 1–2 business days; the toll-free brands that use it stay pending until it is verified.
346
390
  * @async
347
- * @roles signalhouse_admin
348
- * @param {Object} params - The parameters for setting the toll-free ISV account
349
- * @param {string} params.groupId - The ID of the group whose toll-free ISV account to set
350
- * @param {string} params.accountSid - The SID of the group's own top-level account at the toll-free provider (AC followed by 32 lowercase hexadecimal characters)
351
- * @param {string} params.apiKeySid - The SID of a Main API key in that account, which can create subaccounts (SK followed by 32 lowercase hexadecimal characters)
352
- * @param {string} params.apiKeySecret - The API key's secret (1 to 128 characters), stored encrypted and never returned
391
+ * @roles api, admin, developer, billing, user
392
+ * @param {Object} params - The parameters for updating the business verification
393
+ * @param {string} params.groupId - The ID of the group the business verification belongs to (must be the caller's active group)
394
+ * @param {string} params.businessVerificationId - The ID of the business verification to update (starts with BV)
395
+ * @param {BusinessVerificationDetails} params.details - The corrected business verification details (see BusinessVerificationDetails typedef for details)
353
396
  * @param {RequestOptions} [params.options] - Additional options for the request
354
- * @throws {Error} Throws an error if the groupId, accountSid, apiKeySid or apiKeySecret parameter is missing
355
- * @returns {Promise<SdkResponse<TollFreeIsvAccount>>} The stored toll-free ISV account, without the API key secret. The API returns 400 when the provider refuses the account or its key, and 404 when the group does not exist or is not active.
397
+ * @throws {Error} Throws an error if the groupId, businessVerificationId or details parameter is missing
398
+ * @returns {Promise<SdkResponse<BusinessVerification>>} A 202 with the business verification, now SUBMITTING. The API returns 400 when it doesn't need changes, and 404 when it isn't one of the group's.
356
399
  */
357
- setTollFreeIsvAccount({ groupId, accountSid, apiKeySid, apiKeySecret, options }: {
400
+ updateBusinessVerification({ groupId, businessVerificationId, details, options }: {
358
401
  groupId: string;
359
- accountSid: string;
360
- apiKeySid: string;
361
- apiKeySecret: string;
402
+ businessVerificationId: string;
403
+ details: BusinessVerificationDetails;
362
404
  options?: RequestOptions;
363
- }): Promise<SdkResponse<TollFreeIsvAccount>>;
405
+ }): Promise<SdkResponse<BusinessVerification>>;
364
406
  /**
365
407
  * Create a local Short Code brand for manual Signal House review.
366
408
  * @async
@@ -755,21 +797,21 @@ export type UpdateBrandData = {
755
797
  };
756
798
  export type TollFreeBrandDetails = {
757
799
  /**
758
- * - The business registration type (required, one of EIN, CBN, NEQ, PROVINCIAL_NUMBER, CRN, VAT, ACN, ABN, BRN, SIREN, SIRET, NZBN, UST_IDNR, CIF, NIF, CNPJ, UID, OTHER)
800
+ * - The business registration type (required unless businessVerificationId is sent, one of EIN, CBN, NEQ, PROVINCIAL_NUMBER, CRN, VAT, ACN, ABN, BRN, SIREN, SIRET, NZBN, UST_IDNR, CIF, NIF, CNPJ, UID, OTHER)
759
801
  */
760
- businessRegistrationType: string;
802
+ businessRegistrationType?: string;
761
803
  /**
762
804
  * - The legal entity type (required, one of PRIVATE_COMPANY, PUBLIC_COMPANY, NON_PROFIT, GOVERNMENT, SOLE_PROPRIETOR)
763
805
  */
764
806
  legalEntityType: string;
765
807
  /**
766
- * - The business tax identifier (required, at most 50 characters)
808
+ * - The business tax identifier (required unless businessVerificationId is sent, at most 50 characters)
767
809
  */
768
- taxId: string;
810
+ taxId?: string;
769
811
  /**
770
- * - The business country code (required, 2-letter ISO code)
812
+ * - The business country code (required unless businessVerificationId is sent, 2-letter ISO code)
771
813
  */
772
- countryCode: string;
814
+ countryCode?: string;
773
815
  /**
774
816
  * - The customer-support phone number (required, E.164 with an optional leading "+" and no spaces, parentheses or hyphens, e.g. "17025550100")
775
817
  */
@@ -786,6 +828,10 @@ export type TollFreeBrandDetails = {
786
828
  * - The customer's real website, sent to Infobip for brand verification (optional, valid URL, at most 255 characters; distinct from the top-level website / landing URL)
787
829
  */
788
830
  businessWebsite?: string;
831
+ /**
832
+ * - The ID of the business verification the brand uses (starts with BV). Required for a group whose toll-free brands need a business verification, and must name a VERIFIED one of the brand's group (in a group that verifies each subgroup's business separately, of the brand's subgroup); refused (400) for any other group. Set at creation only: it can't be changed
833
+ */
834
+ businessVerificationId?: string;
789
835
  };
790
836
  export type BusinessVerificationDetails = {
791
837
  /**
@@ -848,6 +894,40 @@ export type BusinessVerificationDetails = {
848
894
  jobLevel: string;
849
895
  };
850
896
  };
897
+ export type BusinessVerification = {
898
+ /**
899
+ * - The business verification's ID (starts with BV)
900
+ */
901
+ businessVerificationId: string;
902
+ /**
903
+ * - The group it belongs to
904
+ */
905
+ groupId: string;
906
+ /**
907
+ * - The subgroup whose business it verifies; present only in a group that verifies each subgroup's business separately
908
+ */
909
+ subgroupId?: string;
910
+ /**
911
+ * - SUBMITTING, IN_REVIEW, VERIFIED or NEEDS_CHANGES
912
+ */
913
+ status: string;
914
+ /**
915
+ * - The submitted details
916
+ */
917
+ details: BusinessVerificationDetails;
918
+ /**
919
+ * - When it was last submitted (ISO date)
920
+ */
921
+ submittedAt: string;
922
+ /**
923
+ * - When it was last reviewed (ISO date), or null
924
+ */
925
+ reviewedAt: string | null;
926
+ /**
927
+ * - Why it needs changes, or null
928
+ */
929
+ rejectionReason: string | null;
930
+ };
851
931
  export type TollFreeIsvAccount = {
852
932
  /**
853
933
  * - The group the account is registered to
@@ -874,6 +954,11 @@ export type TollFreeIsvAccount = {
874
954
  */
875
955
  updatedAt: string;
876
956
  };
957
+ /**
958
+ * Toll-free brand data. When tollFree.businessVerificationId is sent, the legal fields (companyName, street, city, state,
959
+ * postalCode, country, firstName, lastName and tollFree's businessRegistrationType, taxId, countryCode and
960
+ * taxIdIssuingCountry) are optional: the business verification's values replace any that are sent.
961
+ */
877
962
  export type CreateTollFreeBrandData = {
878
963
  /**
879
964
  * - The ID of the subgroup to create the brand under (required, exactly 8 characters)
@@ -884,37 +969,37 @@ export type CreateTollFreeBrandData = {
884
969
  */
885
970
  displayName: string;
886
971
  /**
887
- * - The company name for the brand (required, at most 255 characters)
972
+ * - The company name for the brand (required unless tollFree.businessVerificationId is sent, at most 255 characters)
888
973
  */
889
- companyName: string;
974
+ companyName?: string;
890
975
  /**
891
- * - The street address of the primary contact for the brand (required, at most 255 characters)
976
+ * - The street address of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 255 characters)
892
977
  */
893
- street: string;
978
+ street?: string;
894
979
  /**
895
- * - The city of the primary contact for the brand (required, at most 100 characters)
980
+ * - The city of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 100 characters)
896
981
  */
897
- city: string;
982
+ city?: string;
898
983
  /**
899
- * - The state of the primary contact for the brand (required, at most 20 characters; must be a valid 2-letter US state code when country is "US")
984
+ * - The state of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 20 characters; must be a valid 2-letter US state code when country is "US")
900
985
  */
901
- state: string;
986
+ state?: string;
902
987
  /**
903
- * - The postal code of the primary contact for the brand (required, at most 10 characters)
988
+ * - The postal code of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 10 characters)
904
989
  */
905
- postalCode: string;
990
+ postalCode?: string;
906
991
  /**
907
992
  * - The email address of the primary contact for the brand (required, valid email, at most 100 characters)
908
993
  */
909
994
  email: string;
910
995
  /**
911
- * - The first name of the primary contact for the brand (required, at most 100 characters)
996
+ * - The first name of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 100 characters)
912
997
  */
913
- firstName: string;
998
+ firstName?: string;
914
999
  /**
915
- * - The last name of the primary contact for the brand (required, at most 100 characters)
1000
+ * - The last name of the primary contact for the brand (required unless tollFree.businessVerificationId is sent, at most 100 characters)
916
1001
  */
917
- lastName: string;
1002
+ lastName?: string;
918
1003
  /**
919
1004
  * - The website URL for the brand (required, valid URL, at most 255 characters)
920
1005
  */
@@ -327,6 +327,13 @@ export class Campaigns {
327
327
  * in the window; the volumes say how much traffic sits behind it. A campaign's figure is scored from the
328
328
  * campaign's own summed counters, never averaged from its numbers. For a live figure use GET /number/health
329
329
  * or GET /campaign/health.
330
+ *
331
+ * Every record also carries a `carrierSuspensions` array -- one entry per carrier suspension of the
332
+ * campaign: `{ mnoId, mnoName, source, suspensionCategory, reason, tcrEventType, suspendedAt, liftedAt }`.
333
+ * An entry is active while `liftedAt` is null. `mnoId` is the TCR carrier network id (same ids as `mnoIds`);
334
+ * `source` is CARRIER, UPSTREAM or BRAND (the carrier suspended the whole brand). A suspension applies to one
335
+ * carrier, so `status` stays ACTIVE. Subscribe to the CAMPAIGN_SUSPENDED / CAMPAIGN_UNSUSPENDED webhook events
336
+ * to be told when an entry opens or is lifted.
330
337
  * @returns {Promise<SdkResponse<Array|Object>>} The response from the server - array when unpaginated, or { data, total, page, limit, totalPages } when paginated
331
338
  */
332
339
  getCampaigns({ id, brandId, subgroupId, groupId, page, limit, status, search, sortBy, sortOrder, registrationType, options, }: {
@@ -158,7 +158,7 @@ export class Groups {
158
158
  * @roles api, admin, developer, billing
159
159
  * @param {Object} params - The parameters for updating a group
160
160
  * @param {string} params.id - The ID of the group to update
161
- * @param {Object} params.groupData - The data for the group, including required fields such as groupName.
161
+ * @param {Object} params.groupData - The data for the group, including required fields such as groupName. A group admin can set requireTwoFactor (boolean) to require 2FA for every member.
162
162
  * Optional CNP fields: cspId (string|null), defaultCnpSubgroupId (string|null)
163
163
  * @param {RequestOptions} [params.options] - Additional options for the request
164
164
  * @throws {Error} Throws an error if the id or groupData parameter is missing
@@ -169,6 +169,102 @@ export class Groups {
169
169
  groupData: any;
170
170
  options?: RequestOptions;
171
171
  }): Promise<SdkResponse<any>>;
172
+ /**
173
+ * Get a group's Enterprise SSO configuration: whether SSO is available, the redirect URL to register at
174
+ * the identity provider, the saved provider (never its client secret), and each claimed domain with the
175
+ * DNS TXT record that verifies it
176
+ * @async
177
+ * @roles admin
178
+ * @param {Object} params
179
+ * @param {string} params.groupId - The group
180
+ * @param {RequestOptions} [params.options] - Additional options for the request
181
+ * @returns {Promise<SdkResponse<any>>} - { groupId, available, callbackUrl, connection, domains }
182
+ */
183
+ getSsoConfiguration({ groupId, options }: {
184
+ groupId: string;
185
+ options?: RequestOptions;
186
+ }): Promise<SdkResponse<any>>;
187
+ /**
188
+ * Create or update a group's OpenID Connect identity provider. Requires a fresh
189
+ * auth.confirmTwoFactorIdentity from the same session
190
+ * @async
191
+ * @roles admin
192
+ * @param {Object} params
193
+ * @param {string} params.groupId - The group
194
+ * @param {string} params.issuer - The provider's https issuer URL
195
+ * @param {string} params.clientId - The client ID registered at the provider
196
+ * @param {string} [params.clientSecret] - The client secret; required the first time, omit to keep the saved one
197
+ * @param {boolean} [params.enabled] - Whether sign-in through the provider is on (default true)
198
+ * @param {RequestOptions} [params.options] - Additional options for the request
199
+ * @returns {Promise<SdkResponse<any>>} - The SSO configuration
200
+ */
201
+ saveSsoConnection({ groupId, issuer, clientId, clientSecret, enabled, options }: {
202
+ groupId: string;
203
+ issuer: string;
204
+ clientId: string;
205
+ clientSecret?: string;
206
+ enabled?: boolean;
207
+ options?: RequestOptions;
208
+ }): Promise<SdkResponse<any>>;
209
+ /**
210
+ * Remove a group's identity provider and its domains, and unlink every account that signed in through it.
211
+ * Requires a fresh auth.confirmTwoFactorIdentity from the same session
212
+ * @async
213
+ * @roles admin
214
+ * @param {Object} params
215
+ * @param {string} params.groupId - The group
216
+ * @param {RequestOptions} [params.options] - Additional options for the request
217
+ * @returns {Promise<SdkResponse<any>>} - The (now empty) SSO configuration
218
+ */
219
+ deleteSsoConnection({ groupId, options }: {
220
+ groupId: string;
221
+ options?: RequestOptions;
222
+ }): Promise<SdkResponse<any>>;
223
+ /**
224
+ * Claim an email domain for a group's SSO; the response includes the DNS TXT record that verifies it
225
+ * @async
226
+ * @roles admin
227
+ * @param {Object} params
228
+ * @param {string} params.groupId - The group
229
+ * @param {string} params.domain - The domain, e.g. "acme.com"
230
+ * @param {RequestOptions} [params.options] - Additional options for the request
231
+ * @returns {Promise<SdkResponse<any>>} - The SSO configuration
232
+ */
233
+ addSsoDomain({ groupId, domain, options }: {
234
+ groupId: string;
235
+ domain: string;
236
+ options?: RequestOptions;
237
+ }): Promise<SdkResponse<any>>;
238
+ /**
239
+ * Verify a claimed domain by its DNS TXT record
240
+ * @async
241
+ * @roles admin
242
+ * @param {Object} params
243
+ * @param {string} params.groupId - The group
244
+ * @param {string} params.domain - The claimed domain
245
+ * @param {RequestOptions} [params.options] - Additional options for the request
246
+ * @returns {Promise<SdkResponse<any>>} - The SSO configuration
247
+ */
248
+ verifySsoDomain({ groupId, domain, options }: {
249
+ groupId: string;
250
+ domain: string;
251
+ options?: RequestOptions;
252
+ }): Promise<SdkResponse<any>>;
253
+ /**
254
+ * Remove a domain from a group's SSO
255
+ * @async
256
+ * @roles admin
257
+ * @param {Object} params
258
+ * @param {string} params.groupId - The group
259
+ * @param {string} params.domain - The domain
260
+ * @param {RequestOptions} [params.options] - Additional options for the request
261
+ * @returns {Promise<SdkResponse<any>>} - The SSO configuration
262
+ */
263
+ removeSsoDomain({ groupId, domain, options }: {
264
+ groupId: string;
265
+ domain: string;
266
+ options?: RequestOptions;
267
+ }): Promise<SdkResponse<any>>;
172
268
  }
173
269
  export type RequestOptions = import("../SignalHouseSDK.js").RequestOptions;
174
270
  export type SdkResponse<T> = import("../SignalHouseSDK.js").SdkResponse<T>;
@@ -108,7 +108,7 @@ export class Messages {
108
108
  * @param {string|string[]} [params.registrationId] - Filter to traffic attributed to these registrations (hourly analytics only; a 400 while hourly reads are off). A phoneNumber filter takes precedence. Accepts a single value or an array.
109
109
  * @param {string|string[]} [params.phoneNumber] - Filter analytics by the phone number involved in the messages. Accepts a single value, an array, or a comma-separated string.
110
110
  * @param {string|string[]} [params.carrier] - Filter analytics by the carrier used for sending. Accepts a single value, an array, or a comma-separated string.
111
- * @param {string|string[]} [params.carrierFamily] - Filter analytics by the recipient's resolved carrier family (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, P2P, Standard, IceWireless). Accepts a single value, an array, or a comma-separated string. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400 -- omit the parameter unless it is wanted.
111
+ * @param {string|string[]} [params.carrierFamily] - Filter analytics by the recipient's resolved carrier family (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, P2P, Standard, IceWireless, Bell, Rogers, Telus, Videotron, SaskTel, Eastlink, Fibernetics). Accepts a single value, an array, or a comma-separated string. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400 -- omit the parameter unless it is wanted.
112
112
  * @param {string} [params.startDate] - ISO-8601 date or timestamp; bound per dateBounds: a bare date is always that whole UTC day (inclusive); a timestamp is widened to its whole UTC day in "day" mode and bound as the instant it names, in whatever offset it was written, in "exact" mode
113
113
  * @param {string} [params.endDate] - ISO-8601 date or timestamp; bound per dateBounds: a bare date is always that whole UTC day (inclusive); a timestamp is widened to its whole UTC day in "day" mode and bound as the instant it names, in whatever offset it was written, in "exact" mode. In "exact" mode day buckets align to the UTC offset this bound carries, so a client that sends its own midnights gets its own calendar dates back
114
114
  * @param {boolean} [params.matchAny] - When true, the provided campaignId/brandId/phoneNumber filters are OR'd (match ANY) instead of the default most-specific-single behavior. subgroupId stays an AND scope. Opt-in/additive.
@@ -158,7 +158,7 @@ export class Messages {
158
158
  * @param {string|string[]} [params.registrationId] - Filter to traffic attributed to these registrations (hourly analytics only; a 400 while hourly reads are off). A phoneNumber filter takes precedence. Accepts a single value or an array.
159
159
  * @param {string|string[]} [params.phoneNumber] - Filter analytics by the phone number involved in the messages. Accepts a single value, an array, or a comma-separated string.
160
160
  * @param {string|string[]} [params.carrier] - Filter analytics by the carrier used for sending. Accepts a single value, an array, or a comma-separated string.
161
- * @param {string|string[]} [params.carrierFamily] - Filter analytics by the recipient's resolved carrier family (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, P2P, Standard, IceWireless). Accepts a single value, an array, or a comma-separated string. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400 -- omit the parameter unless it is wanted.
161
+ * @param {string|string[]} [params.carrierFamily] - Filter analytics by the recipient's resolved carrier family (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, P2P, Standard, IceWireless, Bell, Rogers, Telus, Videotron, SaskTel, Eastlink, Fibernetics). Accepts a single value, an array, or a comma-separated string. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400 -- omit the parameter unless it is wanted.
162
162
  * @param {string} [params.startDate] - ISO-8601 date or timestamp. It is bound per dateBounds: a bare date is always that whole UTC day (inclusive); a timestamp is widened to its whole UTC day in "day" mode and bound as the instant it names, in whatever offset it was written, in "exact" mode, then floored to the start of its hour at either granularity, because the hourly cube is keyed by hour and a mid-hour start would drop that hour's bucket.
163
163
  * @param {string} [params.endDate] - ISO-8601 date or timestamp. At day granularity it is bound per dateBounds: a bare date is always that whole UTC day (inclusive); a timestamp is widened to its whole UTC day in "day" mode and bound as the instant it names, in whatever offset it was written, in "exact" mode. In "exact" mode day buckets align to the UTC offset this bound carries, so a client that sends its own midnights gets its own calendar dates back; at hour granularity it is honoured as given.
164
164
  * @param {(string|string[])} [params.messageType] - Message type(s) the SENTIMENT figures are scoped to: SMS, MMS or P2P (single value, array, or comma-separated string). Omit for all scored types. Does NOT narrow the message counts, which are always returned split per type (smsInbound/mmsInbound/p2pInbound) and have no filterable type dimension.
@@ -261,7 +261,7 @@ export class Messages {
261
261
  * @param {string|string[]} [params.registrationId] - Filter to traffic attributed to these registrations (hourly analytics only; a 400 while hourly reads are off). A phoneNumber filter takes precedence. Accepts a single value or an array.
262
262
  * @param {string|string[]} [params.phoneNumber]
263
263
  * @param {string|string[]} [params.carrier]
264
- * @param {string|string[]} [params.carrierFamily] - Resolved carrier family of the recipient (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, P2P, Standard, IceWireless); single value, array, or comma-separated. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400 -- omit the parameter unless it is wanted.
264
+ * @param {string|string[]} [params.carrierFamily] - Resolved carrier family of the recipient (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, P2P, Standard, IceWireless, Bell, Rogers, Telus, Videotron, SaskTel, Eastlink, Fibernetics); single value, array, or comma-separated. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400 -- omit the parameter unless it is wanted.
265
265
  * @param {string} [params.startDate]
266
266
  * @param {string} [params.endDate]
267
267
  * @param {number} [params.page=1]
@@ -308,7 +308,7 @@ export class Messages {
308
308
  * @param {string|string[]} [params.registrationId] - Filter to traffic attributed to these registrations (hourly analytics only; a 400 while hourly reads are off). A phoneNumber filter takes precedence. Accepts a single value or an array.
309
309
  * @param {string|string[]} [params.phoneNumber]
310
310
  * @param {string|string[]} [params.carrier]
311
- * @param {string|string[]} [params.carrierFamily] - Resolved carrier family of the recipient (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, P2P, Standard, IceWireless); single value, array, or comma-separated. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400 -- omit the parameter unless it is wanted.
311
+ * @param {string|string[]} [params.carrierFamily] - Resolved carrier family of the recipient (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, P2P, Standard, IceWireless, Bell, Rogers, Telus, Videotron, SaskTel, Eastlink, Fibernetics); single value, array, or comma-separated. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400 -- omit the parameter unless it is wanted.
312
312
  * @param {string} [params.startDate]
313
313
  * @param {string} [params.endDate]
314
314
  * @param {number} [params.page=1]
@@ -401,7 +401,7 @@ export class Messages {
401
401
  * @param {string|string[]} [params.region] - ISO-2 country filter: US, GB or CA (any case of UK/GB/GBR/United Kingdom is accepted for GB); one value, an array, or a comma-separated string; omitted = every region. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400.
402
402
  * @param {Object[]|string} [params.regionScopes] - Array of OR-ed branches `{ region, channels, brandId?, campaignId?, phoneNumber? }` (channels among tenDLC, virtualLongCode, tollFree, shortCode, p2p); `[]` matches nothing. Sent as JSON unless already a string. Only accepted where the environment serves hourly analytics; elsewhere any value is rejected with a 400.
403
403
  * @param {RequestOptions} [params.options] - Additional options for the request
404
- * @returns {Promise<SdkResponse<any>>} - A promise that resolves to the paginated DNC records. Each record carries senderPhoneNumber — the first business number that received the opt-out (set once, never changed by a later STOP or a campaign move; the same value as phoneNumber) — optOutKeyword — the normalized keyword that revoked consent (e.g. "stop", "opt out"; a repeat opt-out records the most recent word), null for opt-outs recorded before keyword capture shipped — and carrierFamily, the resolved carrier family of the recipient number (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, Standard, IceWireless), copied from the inbound message that triggered the opt-out. campaignId is null on subgroup-scoped records (non-US recipients).
404
+ * @returns {Promise<SdkResponse<any>>} - A promise that resolves to the paginated DNC records. Each record carries senderPhoneNumber — the first business number that received the opt-out (set once, never changed by a later STOP or a campaign move; the same value as phoneNumber) — optOutKeyword — the normalized keyword that revoked consent (e.g. "stop", "opt out"; a repeat opt-out records the most recent word), null for opt-outs recorded before keyword capture shipped — and carrierFamily, the resolved carrier family of the recipient number (Default, ATT, TMobile, Verizon, USCellular, GoogleVoice, ClearSky, Interop, RogueMobile, Standard, IceWireless, Bell, Rogers, Telus, Videotron, SaskTel, Eastlink, Fibernetics), copied from the inbound message that triggered the opt-out. campaignId is null on subgroup-scoped records (non-US recipients).
405
405
  */
406
406
  getDncRecords({ groupId, subgroupId, brandId, campaignId, registrationId, phoneNumber, carrier, startDate, endDate, page, limit, sortField, sortOrder, channel, region, regionScopes, dateBounds, options }: {
407
407
  groupId?: string;