rcs-js 2.0.8 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.ts +4 -1
  3. package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.ts +4 -1
  4. package/dist/cjs/api/resources/brands/client/Client.d.ts +4 -21
  5. package/dist/cjs/api/resources/brands/client/Client.js +5 -22
  6. package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +58 -5
  7. package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.js +40 -0
  8. package/dist/cjs/api/resources/brands/client/requests/index.d.ts +0 -1
  9. package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +4 -1
  10. package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +16 -4
  11. package/dist/cjs/api/resources/messages/resources/blast/client/requests/BlastMms.d.ts +2 -0
  12. package/dist/cjs/api/resources/messages/resources/blast/client/requests/BlastRcs.d.ts +2 -0
  13. package/dist/cjs/api/resources/messages/resources/blast/client/requests/BlastSms.d.ts +2 -0
  14. package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +2 -2
  15. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +4 -1
  16. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.ts +4 -1
  17. package/dist/cjs/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.ts +4 -1
  18. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookParams.d.ts +4 -1
  19. package/dist/cjs/api/types/MessageEventRcsCardsContent.d.ts +12 -3
  20. package/dist/cjs/api/types/MessageEventRcsMediaContent.d.ts +4 -1
  21. package/dist/cjs/api/types/MessageEventRcsTextContent.d.ts +4 -1
  22. package/dist/cjs/api/types/RcsCardsContent.d.ts +12 -3
  23. package/dist/cjs/api/types/RcsMediaContent.d.ts +4 -1
  24. package/dist/cjs/api/types/RichCards.d.ts +12 -3
  25. package/dist/cjs/api/types/RichMediaMessage.d.ts +4 -1
  26. package/dist/cjs/api/types/RichText.d.ts +4 -1
  27. package/dist/cjs/api/types/index.d.ts +0 -1
  28. package/dist/cjs/api/types/index.js +0 -1
  29. package/dist/cjs/version.d.ts +1 -1
  30. package/dist/cjs/version.js +1 -1
  31. package/dist/esm/Client.mjs +2 -2
  32. package/dist/esm/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.mts +4 -1
  33. package/dist/esm/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.mts +4 -1
  34. package/dist/esm/api/resources/brands/client/Client.d.mts +4 -21
  35. package/dist/esm/api/resources/brands/client/Client.mjs +5 -22
  36. package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +58 -5
  37. package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.mjs +39 -1
  38. package/dist/esm/api/resources/brands/client/requests/index.d.mts +0 -1
  39. package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +4 -1
  40. package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +16 -4
  41. package/dist/esm/api/resources/messages/resources/blast/client/requests/BlastMms.d.mts +2 -0
  42. package/dist/esm/api/resources/messages/resources/blast/client/requests/BlastRcs.d.mts +2 -0
  43. package/dist/esm/api/resources/messages/resources/blast/client/requests/BlastSms.d.mts +2 -0
  44. package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +2 -2
  45. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +4 -1
  46. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/DetachCampaignParams.d.mts +4 -1
  47. package/dist/esm/api/resources/rcs/client/requests/RcsCapabilitiesQuery.d.mts +4 -1
  48. package/dist/esm/api/resources/webhooks/client/requests/GetWebhookParams.d.mts +4 -1
  49. package/dist/esm/api/types/MessageEventRcsCardsContent.d.mts +12 -3
  50. package/dist/esm/api/types/MessageEventRcsMediaContent.d.mts +4 -1
  51. package/dist/esm/api/types/MessageEventRcsTextContent.d.mts +4 -1
  52. package/dist/esm/api/types/RcsCardsContent.d.mts +12 -3
  53. package/dist/esm/api/types/RcsMediaContent.d.mts +4 -1
  54. package/dist/esm/api/types/RichCards.d.mts +12 -3
  55. package/dist/esm/api/types/RichMediaMessage.d.mts +4 -1
  56. package/dist/esm/api/types/RichText.d.mts +4 -1
  57. package/dist/esm/api/types/index.d.mts +0 -1
  58. package/dist/esm/api/types/index.mjs +0 -1
  59. package/dist/esm/version.d.mts +1 -1
  60. package/dist/esm/version.mjs +1 -1
  61. package/package.json +1 -1
  62. package/reference.md +2 -19
  63. package/dist/cjs/api/resources/brands/client/requests/ValidateBrandParams.d.ts +0 -59
  64. package/dist/cjs/api/resources/brands/client/requests/ValidateBrandParams.js +0 -3
  65. package/dist/cjs/api/types/UpsertContact.d.ts +0 -13
  66. package/dist/cjs/api/types/UpsertContact.js +0 -3
  67. package/dist/esm/api/resources/brands/client/requests/ValidateBrandParams.d.mts +0 -59
  68. package/dist/esm/api/resources/brands/client/requests/ValidateBrandParams.mjs +0 -2
  69. package/dist/esm/api/types/UpsertContact.d.mts +0 -13
  70. package/dist/esm/api/types/UpsertContact.mjs +0 -2
@@ -53,8 +53,8 @@ class PinnacleClient {
53
53
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
54
54
  "X-Fern-Language": "JavaScript",
55
55
  "X-Fern-SDK-Name": "rcs-js",
56
- "X-Fern-SDK-Version": "2.0.8",
57
- "User-Agent": "rcs-js/2.0.8",
56
+ "X-Fern-SDK-Version": "2.0.10",
57
+ "User-Agent": "rcs-js/2.0.10",
58
58
  "X-Fern-Runtime": core.RUNTIME.type,
59
59
  "X-Fern-Runtime-Version": core.RUNTIME.version,
60
60
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -8,6 +8,9 @@
8
8
  export interface AddContactsParams {
9
9
  /** Audience ID. This identifier is a string that always begins with the prefix `aud_`, for example: `aud_abc123`. */
10
10
  id: string;
11
- /** Array of phone numbers (E.164 format) or contact IDs (minimum 1 item). */
11
+ /**
12
+ * Array of phone numbers (E.164 format) or contact IDs. <br><br>
13
+ * **Limit:** 1 min
14
+ */
12
15
  contacts: string[];
13
16
  }
@@ -8,6 +8,9 @@
8
8
  export interface RemoveContactsParams {
9
9
  /** Audience ID. This identifier is a string that always begins with the prefix `aud_`, for example: `aud_abc123`. */
10
10
  id: string;
11
- /** Array of phone numbers (E.164 format) or contact IDs (minimum 1 item). */
11
+ /**
12
+ * Array of phone numbers (E.164 format) or contact IDs. <br><br>
13
+ * **Limit:** 1 min
14
+ */
12
15
  contacts: string[];
13
16
  }
@@ -63,7 +63,7 @@ export declare class Brands {
63
63
  * website: "https://www.pinnacle.sh"
64
64
  * })
65
65
  */
66
- upsert(request: Pinnacle.UpsertBrandParams, requestOptions?: Brands.RequestOptions): core.HttpResponsePromise<Pinnacle.ExtendedBrand>;
66
+ upsert(request?: Pinnacle.UpsertBrandParams, requestOptions?: Brands.RequestOptions): core.HttpResponsePromise<Pinnacle.ExtendedBrand>;
67
67
  private __upsert;
68
68
  /**
69
69
  * Retrieve detailed information for a specific brand in your account by ID.
@@ -105,7 +105,7 @@ export declare class Brands {
105
105
  /**
106
106
  * Validate your brand information for compliance and correctness before submission or storage.
107
107
  *
108
- * @param {Pinnacle.ValidateBrandParams} request
108
+ * @param {Pinnacle.OptionalBrandInfo} request
109
109
  * @param {Brands.RequestOptions} requestOptions - Request-specific configuration.
110
110
  *
111
111
  * @throws {@link Pinnacle.BadRequestError}
@@ -113,26 +113,9 @@ export declare class Brands {
113
113
  * @throws {@link Pinnacle.InternalServerError}
114
114
  *
115
115
  * @example
116
- * await client.brands.validate({
117
- * address: "500 Folsom St, San Francisco, CA 94105",
118
- * contact: {
119
- * email: "michael.chen@trypinnacle.app",
120
- * name: "Michael Chen",
121
- * phone: "+14155551234",
122
- * title: "Customer Support Representative"
123
- * },
124
- * dba: "Pinnacle Messaging",
125
- * description: "Pinnacle is an SMS, MMS, and RCS API for scaling conversations with customers you value.",
126
- * ein: "88-1234567",
127
- * email: "founders@trypinnacle.app",
128
- * name: "Pinnacle",
129
- * sector: "TECHNOLOGY",
130
- * type: "PRIVATE_PROFIT",
131
- * entityType: "LLC",
132
- * website: "https://www.pinnacle.sh"
133
- * })
116
+ * await client.brands.validate({})
134
117
  */
135
- validate(request: Pinnacle.ValidateBrandParams, requestOptions?: Brands.RequestOptions): core.HttpResponsePromise<Pinnacle.ValidationResults>;
118
+ validate(request: Pinnacle.OptionalBrandInfo, requestOptions?: Brands.RequestOptions): core.HttpResponsePromise<Pinnacle.ValidationResults>;
136
119
  private __validate;
137
120
  /**
138
121
  * Submit a brand for external vetting verification to enhance your brand's trust score and improved message delivery rates.
@@ -161,11 +161,11 @@ class Brands {
161
161
  * website: "https://www.pinnacle.sh"
162
162
  * })
163
163
  */
164
- upsert(request, requestOptions) {
164
+ upsert(request = {}, requestOptions) {
165
165
  return core.HttpResponsePromise.fromPromise(this.__upsert(request, requestOptions));
166
166
  }
167
- __upsert(request, requestOptions) {
168
- return __awaiter(this, void 0, void 0, function* () {
167
+ __upsert() {
168
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
169
169
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
170
170
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
171
171
  const _response = yield core.fetcher({
@@ -375,7 +375,7 @@ class Brands {
375
375
  /**
376
376
  * Validate your brand information for compliance and correctness before submission or storage.
377
377
  *
378
- * @param {Pinnacle.ValidateBrandParams} request
378
+ * @param {Pinnacle.OptionalBrandInfo} request
379
379
  * @param {Brands.RequestOptions} requestOptions - Request-specific configuration.
380
380
  *
381
381
  * @throws {@link Pinnacle.BadRequestError}
@@ -383,24 +383,7 @@ class Brands {
383
383
  * @throws {@link Pinnacle.InternalServerError}
384
384
  *
385
385
  * @example
386
- * await client.brands.validate({
387
- * address: "500 Folsom St, San Francisco, CA 94105",
388
- * contact: {
389
- * email: "michael.chen@trypinnacle.app",
390
- * name: "Michael Chen",
391
- * phone: "+14155551234",
392
- * title: "Customer Support Representative"
393
- * },
394
- * dba: "Pinnacle Messaging",
395
- * description: "Pinnacle is an SMS, MMS, and RCS API for scaling conversations with customers you value.",
396
- * ein: "88-1234567",
397
- * email: "founders@trypinnacle.app",
398
- * name: "Pinnacle",
399
- * sector: "TECHNOLOGY",
400
- * type: "PRIVATE_PROFIT",
401
- * entityType: "LLC",
402
- * website: "https://www.pinnacle.sh"
403
- * })
386
+ * await client.brands.validate({})
404
387
  */
405
388
  validate(request, requestOptions) {
406
389
  return core.HttpResponsePromise.fromPromise(this.__validate(request, requestOptions));
@@ -1,4 +1,3 @@
1
- import type * as Pinnacle from "../../../../index.js";
2
1
  /**
3
2
  * @example
4
3
  * {
@@ -25,7 +24,7 @@ export interface UpsertBrandParams {
25
24
  /** Primary brand address where the company is located. */
26
25
  address?: string | null;
27
26
  /** Contact information for the brand. */
28
- contact: Pinnacle.UpsertContact | null;
27
+ contact?: UpsertBrandParams.Contact | null;
29
28
  /** "Doing Business As" name - the public name the brand operates under. */
30
29
  dba?: string | null;
31
30
  /** Brief description of what the brand does. */
@@ -42,11 +41,65 @@ export interface UpsertBrandParams {
42
41
  /** Legal name of the brand as registered. */
43
42
  name?: string | null;
44
43
  /** Industry the brand operates in. */
45
- sector: Pinnacle.CompanySectorEnum | null;
44
+ sector?: UpsertBrandParams.Sector | null;
46
45
  /** Legal structure of the brand. */
47
- type: Pinnacle.CompanyTypeEnum | null;
46
+ type?: UpsertBrandParams.Type | null;
48
47
  /** Legal entity type of the brand. */
49
- entityType?: Pinnacle.CompanyEntityTypeEnum;
48
+ entityType?: UpsertBrandParams.EntityType | null;
50
49
  /** Brand website URL. */
51
50
  website?: string | null;
52
51
  }
52
+ export declare namespace UpsertBrandParams {
53
+ /**
54
+ * Contact information for the brand.
55
+ */
56
+ interface Contact {
57
+ /** Email address of the contact person. */
58
+ email?: string | null;
59
+ /** Full name of the contact person. */
60
+ name?: string | null;
61
+ /** Phone number of the contact person in E.164 format. */
62
+ phone?: string | null;
63
+ /** Job title of the contact person. */
64
+ title?: string | null;
65
+ }
66
+ /** Industry the brand operates in. */
67
+ const Sector: {
68
+ readonly Agriculture: "AGRICULTURE";
69
+ readonly Communication: "COMMUNICATION";
70
+ readonly Construction: "CONSTRUCTION";
71
+ readonly Education: "EDUCATION";
72
+ readonly Energy: "ENERGY";
73
+ readonly Entertainment: "ENTERTAINMENT";
74
+ readonly Financial: "FINANCIAL";
75
+ readonly Gambling: "GAMBLING";
76
+ readonly Government: "GOVERNMENT";
77
+ readonly Healthcare: "HEALTHCARE";
78
+ readonly Hospitality: "HOSPITALITY";
79
+ readonly Insurance: "INSURANCE";
80
+ readonly Manufacturing: "MANUFACTURING";
81
+ readonly Ngo: "NGO";
82
+ readonly RealEstate: "REAL_ESTATE";
83
+ readonly Retail: "RETAIL";
84
+ readonly Technology: "TECHNOLOGY";
85
+ };
86
+ type Sector = (typeof Sector)[keyof typeof Sector];
87
+ /** Legal structure of the brand. */
88
+ const Type: {
89
+ readonly Government: "GOVERNMENT";
90
+ readonly NonProfit: "NON_PROFIT";
91
+ readonly PrivateProfit: "PRIVATE_PROFIT";
92
+ readonly PublicProfit: "PUBLIC_PROFIT";
93
+ readonly SoleProprietor: "SOLE_PROPRIETOR";
94
+ };
95
+ type Type = (typeof Type)[keyof typeof Type];
96
+ /** Legal entity type of the brand. */
97
+ const EntityType: {
98
+ readonly Llc: "LLC";
99
+ readonly SoleProprietorship: "SOLE_PROPRIETORSHIP";
100
+ readonly Partnership: "PARTNERSHIP";
101
+ readonly Corp: "CORP";
102
+ readonly SCorp: "S_CORP";
103
+ };
104
+ type EntityType = (typeof EntityType)[keyof typeof EntityType];
105
+ }
@@ -1,3 +1,43 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.UpsertBrandParams = void 0;
5
+ var UpsertBrandParams;
6
+ (function (UpsertBrandParams) {
7
+ /** Industry the brand operates in. */
8
+ UpsertBrandParams.Sector = {
9
+ Agriculture: "AGRICULTURE",
10
+ Communication: "COMMUNICATION",
11
+ Construction: "CONSTRUCTION",
12
+ Education: "EDUCATION",
13
+ Energy: "ENERGY",
14
+ Entertainment: "ENTERTAINMENT",
15
+ Financial: "FINANCIAL",
16
+ Gambling: "GAMBLING",
17
+ Government: "GOVERNMENT",
18
+ Healthcare: "HEALTHCARE",
19
+ Hospitality: "HOSPITALITY",
20
+ Insurance: "INSURANCE",
21
+ Manufacturing: "MANUFACTURING",
22
+ Ngo: "NGO",
23
+ RealEstate: "REAL_ESTATE",
24
+ Retail: "RETAIL",
25
+ Technology: "TECHNOLOGY",
26
+ };
27
+ /** Legal structure of the brand. */
28
+ UpsertBrandParams.Type = {
29
+ Government: "GOVERNMENT",
30
+ NonProfit: "NON_PROFIT",
31
+ PrivateProfit: "PRIVATE_PROFIT",
32
+ PublicProfit: "PUBLIC_PROFIT",
33
+ SoleProprietor: "SOLE_PROPRIETOR",
34
+ };
35
+ /** Legal entity type of the brand. */
36
+ UpsertBrandParams.EntityType = {
37
+ Llc: "LLC",
38
+ SoleProprietorship: "SOLE_PROPRIETORSHIP",
39
+ Partnership: "PARTNERSHIP",
40
+ Corp: "CORP",
41
+ SCorp: "S_CORP",
42
+ };
43
+ })(UpsertBrandParams || (exports.UpsertBrandParams = UpsertBrandParams = {}));
@@ -1,5 +1,4 @@
1
1
  export type { AutofillBrandParams } from "./AutofillBrandParams.js";
2
2
  export type { BrandsGetRequest } from "./BrandsGetRequest.js";
3
3
  export type { UpsertBrandParams } from "./UpsertBrandParams.js";
4
- export type { ValidateBrandParams } from "./ValidateBrandParams.js";
5
4
  export type { VetBrandParams } from "./VetBrandParams.js";
@@ -59,7 +59,10 @@ export interface UpsertDlcCampaignParams {
59
59
  name?: string;
60
60
  /** Campaign configuration options. */
61
61
  options?: UpsertDlcCampaignParams.Options;
62
- /** Example messages for the campaign. */
62
+ /**
63
+ * Example messages for the campaign. <br><br>
64
+ * **Limit:** 1 to 5
65
+ */
63
66
  sampleMessages?: string[];
64
67
  /** Use case for the campaign. */
65
68
  useCase?: UpsertDlcCampaignParams.UseCase;
@@ -67,7 +67,10 @@ export interface UpsertRcsCampaignParams {
67
67
  brand?: string;
68
68
  /** Unique identifier for the campaign. */
69
69
  campaignId?: string;
70
- /** List of what the agent might say to users (1-5 required). */
70
+ /**
71
+ * List of what the agent might say to users. <br><br>
72
+ * **Limit:** 1 to 5
73
+ */
71
74
  expectedAgentResponses?: string[];
72
75
  /** Legal documentation links. */
73
76
  links?: UpsertRcsCampaignParams.Links;
@@ -113,7 +116,10 @@ export declare namespace UpsertRcsCampaignParams {
113
116
  * Be clear, concise, user-focused, and highlight what the agent does and the benefits it provides for the user.
114
117
  */
115
118
  description?: string;
116
- /** List of emails (1-3 required). */
119
+ /**
120
+ * List of emails. <br><br>
121
+ * **Limit:** 1 to 3
122
+ */
117
123
  emails?: Agent.Emails.Item[];
118
124
  /** Link to the agent's hero. Hero must be an image file with dimensions 1440x448px. */
119
125
  heroUrl?: string;
@@ -125,9 +131,15 @@ export declare namespace UpsertRcsCampaignParams {
125
131
  * Recommended format: [Brand Name] - [1-2 word description of purpose]
126
132
  */
127
133
  name?: string;
128
- /** List of phone numbers (1-3 required). */
134
+ /**
135
+ * List of phone numbers. <br><br>
136
+ * **Limit:** 1 to 3
137
+ */
129
138
  phones?: Agent.Phones.Item[];
130
- /** List of urls (1-3 required). */
139
+ /**
140
+ * List of urls. <br><br>
141
+ * **Limit:** 1 to 3
142
+ */
131
143
  websites?: Agent.Websites.Item[];
132
144
  }
133
145
  namespace Agent {
@@ -39,6 +39,8 @@ export interface BlastMms {
39
39
  * Messages will be distributed evenly across these senders.
40
40
  *
41
41
  * > **Note:** Sandbox numbers cannot be used for blasts.
42
+ *
43
+ * **Limit:** 1 min
42
44
  */
43
45
  senders: string[];
44
46
  message: Pinnacle.MmsContent;
@@ -49,6 +49,8 @@ export interface BlastRcs {
49
49
  * Messages will be evenly distributed across these agents.
50
50
  *
51
51
  * > **Note:** Test agents cannot be used for blasts.
52
+ *
53
+ * **Limit:** 1 min
52
54
  */
53
55
  senders: string[];
54
56
  message: Pinnacle.RcsValidateContent;
@@ -31,6 +31,8 @@ export interface BlastSms {
31
31
  * Messages will be distributed evenly across these senders.
32
32
  *
33
33
  * > **Note:** Sandbox numbers cannot be used for blasts.
34
+ *
35
+ * **Limit:** 1 min
34
36
  */
35
37
  senders: string[];
36
38
  message: Pinnacle.SmsContent;
@@ -185,7 +185,7 @@ class Rcs {
185
185
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
186
186
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
187
187
  const _response = yield core.fetcher({
188
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "messages/typing"),
188
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "messages/send/typing"),
189
189
  method: "POST",
190
190
  headers: _headers,
191
191
  contentType: "application/json",
@@ -229,7 +229,7 @@ class Rcs {
229
229
  rawResponse: _response.rawResponse,
230
230
  });
231
231
  case "timeout":
232
- throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /messages/typing.");
232
+ throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /messages/send/typing.");
233
233
  case "unknown":
234
234
  throw new errors.PinnacleError({
235
235
  message: _response.error.errorMessage,
@@ -8,7 +8,10 @@ import type * as Pinnacle from "../../../../../../index.js";
8
8
  * }
9
9
  */
10
10
  export interface AttachCampaignParams {
11
- /** List of phone number (E.164 format). */
11
+ /**
12
+ * List of phone number (E.164 format). <br><br>
13
+ * **Limit:** 1 to 10
14
+ */
12
15
  phones: string[];
13
16
  campaignType: Pinnacle.MessagingProfileEnum;
14
17
  /**
@@ -5,6 +5,9 @@
5
5
  * }
6
6
  */
7
7
  export interface DetachCampaignParams {
8
- /** List of phone numbers (E.164 format). */
8
+ /**
9
+ * List of phone numbers (E.164 format). <br><br>
10
+ * **Limit:** 1 to 10
11
+ */
9
12
  phones: string[];
10
13
  }
@@ -5,6 +5,9 @@
5
5
  * }
6
6
  */
7
7
  export interface RcsCapabilitiesQuery {
8
- /** List of phone numbers to check RCS capabilities for (E.164 format) */
8
+ /**
9
+ * List of phone numbers to check RCS capabilities for (E.164 format). <br><br>
10
+ * **Limit:** 1 min
11
+ */
9
12
  phoneNumbers: string[];
10
13
  }
@@ -5,6 +5,9 @@
5
5
  * }
6
6
  */
7
7
  export interface GetWebhookParams {
8
- /** List of URLs or phone numbers in E.164 format that the webhook is attached to. */
8
+ /**
9
+ * List of URLs or phone numbers in E.164 format that the webhook is attached to. <br><br>
10
+ * **Limit:** 1 min
11
+ */
9
12
  identifiers: string[];
10
13
  }
@@ -12,9 +12,15 @@ export interface MessageEventRcsCardsContent {
12
12
  * To get the message details, use the [GET /messages/{id}](/api-reference/messages/get) endpoint.
13
13
  */
14
14
  id: string;
15
- /** Collection of cards attached to the message. */
15
+ /**
16
+ * Collection of cards attached to the message. <br><br>
17
+ * **Limit:** 1 to 10
18
+ */
16
19
  cards: MessageEventRcsCardsContent.Cards.Item[];
17
- /** List of interactive quick reply buttons in the message. */
20
+ /**
21
+ * List of interactive quick reply buttons in the message. <br><br>
22
+ * **Limit:** 10 max
23
+ */
18
24
  quickReplies: Pinnacle.RichButton[];
19
25
  }
20
26
  export declare namespace MessageEventRcsCardsContent {
@@ -24,7 +30,10 @@ export declare namespace MessageEventRcsCardsContent {
24
30
  * Individual card containing title, optional media, and action buttons.
25
31
  */
26
32
  interface Item {
27
- /** Action buttons attached to the card. */
33
+ /**
34
+ * Action buttons attached to the card. <br><br>
35
+ * **Limit:** 4 max
36
+ */
28
37
  buttons: Pinnacle.RichButton[];
29
38
  media?: Pinnacle.RcsMediaDetailsContent;
30
39
  /** Secondary text displayed below the title for additional context. */
@@ -14,6 +14,9 @@ export interface MessageEventRcsMediaContent {
14
14
  id: string;
15
15
  /** URL of the media file. */
16
16
  media: string;
17
- /** List of interactive quick reply buttons in the message. */
17
+ /**
18
+ * List of interactive quick reply buttons in the message. <br><br>
19
+ * **Limit:** 10 max
20
+ */
18
21
  quickReplies: Pinnacle.RichButton[];
19
22
  }
@@ -10,7 +10,10 @@ export interface MessageEventRcsTextContent {
10
10
  * To get the message details, use the [GET /messages/{id}](/api-reference/messages/get) endpoint.
11
11
  */
12
12
  id: string;
13
- /** List of interactive quick reply buttons in the message. */
13
+ /**
14
+ * List of interactive quick reply buttons in the message. <br><br>
15
+ * **Limit:** 10 max
16
+ */
14
17
  quickReplies: Pinnacle.RichButton[];
15
18
  /** Text content of the RCS message. */
16
19
  text: string;
@@ -5,9 +5,15 @@ import type * as Pinnacle from "../index.js";
5
5
  * See (supported file types)[https://app.pinnacle.sh/supported-file-types?type=RCS-CARD].
6
6
  */
7
7
  export interface RcsCardsContent {
8
- /** Collection of cards attached to the message. */
8
+ /**
9
+ * Collection of cards attached to the message. <br><br>
10
+ * **Limit:** 1 to 10
11
+ */
9
12
  cards: RcsCardsContent.Cards.Item[];
10
- /** List of interactive quick reply buttons in the message. */
13
+ /**
14
+ * List of interactive quick reply buttons in the message. <br><br>
15
+ * **Limit:** 10 max
16
+ */
11
17
  quickReplies: Pinnacle.RichButton[];
12
18
  }
13
19
  export declare namespace RcsCardsContent {
@@ -17,7 +23,10 @@ export declare namespace RcsCardsContent {
17
23
  * Individual card containing title, optional media, and action buttons.
18
24
  */
19
25
  interface Item {
20
- /** While buttons resemble quick replies, they remain on screen after being clicked and are card-specific. */
26
+ /**
27
+ * While buttons resemble quick replies, they remain on screen after being clicked and are card-specific. <br><br>
28
+ * **Limit:** 4 max
29
+ */
21
30
  buttons: Pinnacle.RichButton[];
22
31
  media?: Pinnacle.RcsMediaDetailsContent;
23
32
  /** Secondary text displayed below the title for additional context. */
@@ -6,6 +6,9 @@ import type * as Pinnacle from "../index.js";
6
6
  */
7
7
  export interface RcsMediaContent {
8
8
  media: Pinnacle.RcsMediaDetailsContent;
9
- /** List of interactive quick reply buttons in the message. */
9
+ /**
10
+ * List of interactive quick reply buttons in the message. <br><br>
11
+ * **Limit:** 10 max
12
+ */
10
13
  quickReplies: Pinnacle.RichButton[];
11
14
  }
@@ -5,9 +5,15 @@ import type * as Pinnacle from "../index.js";
5
5
  * See (supported file types)[https://app.pinnacle.sh/supported-file-types?type=RCS-CARD].
6
6
  */
7
7
  export interface RichCards {
8
- /** Collection of cards attached to the message. */
8
+ /**
9
+ * Collection of cards attached to the message. <br><br>
10
+ * **Limit:** 1 to 10
11
+ */
9
12
  cards: RichCards.Cards.Item[];
10
- /** List of interactive quick reply buttons in the message. */
13
+ /**
14
+ * List of interactive quick reply buttons in the message. <br><br>
15
+ * **Limit:** 10 max
16
+ */
11
17
  quickReplies: Pinnacle.RichButton[];
12
18
  }
13
19
  export declare namespace RichCards {
@@ -17,7 +23,10 @@ export declare namespace RichCards {
17
23
  * Individual card containing title, optional media, and action buttons.
18
24
  */
19
25
  interface Item {
20
- /** While buttons resemble quick replies, they remain on screen after being clicked and are card-specific. */
26
+ /**
27
+ * While buttons resemble quick replies, they remain on screen after being clicked and are card-specific. <br><br>
28
+ * **Limit:** 4 max
29
+ */
21
30
  buttons: Pinnacle.RichButton[];
22
31
  /** Media file URLs to send. */
23
32
  media?: string;
@@ -6,6 +6,9 @@ export interface RichMediaMessage extends Pinnacle.BaseRichMessage {
6
6
  * See [supported media types](https://app.pinnacle.sh/supported-file-types?type=RCS-MEDIA).
7
7
  */
8
8
  media: string;
9
- /** List of interactive quick reply buttons in the message. */
9
+ /**
10
+ * List of interactive quick reply buttons in the message. <br>
11
+ * `≤10`
12
+ */
10
13
  quickReplies: Pinnacle.RichButton[];
11
14
  }
@@ -3,7 +3,10 @@ import type * as Pinnacle from "../index.js";
3
3
  * Message containing longer text content with optional quick reply buttons.
4
4
  */
5
5
  export interface RichText {
6
- /** List of interactive quick reply buttons in the message. */
6
+ /**
7
+ * List of interactive quick reply buttons in the message. <br><br>
8
+ * **Limit:** 10 max
9
+ */
7
10
  quickReplies: Pinnacle.RichButton[];
8
11
  /** Text content of the RCS message. */
9
12
  text: string;
@@ -133,7 +133,6 @@ export * from "./TollFreeStatusEnum.js";
133
133
  export * from "./Tracking.js";
134
134
  export * from "./UpdatedContactId.js";
135
135
  export * from "./UploadResults.js";
136
- export * from "./UpsertContact.js";
137
136
  export * from "./UserEvent.js";
138
137
  export * from "./ValidateCampaignParams.js";
139
138
  export * from "./ValidationErrorDetails.js";
@@ -149,7 +149,6 @@ __exportStar(require("./TollFreeStatusEnum.js"), exports);
149
149
  __exportStar(require("./Tracking.js"), exports);
150
150
  __exportStar(require("./UpdatedContactId.js"), exports);
151
151
  __exportStar(require("./UploadResults.js"), exports);
152
- __exportStar(require("./UpsertContact.js"), exports);
153
152
  __exportStar(require("./UserEvent.js"), exports);
154
153
  __exportStar(require("./ValidateCampaignParams.js"), exports);
155
154
  __exportStar(require("./ValidationErrorDetails.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.8";
1
+ export declare const SDK_VERSION = "2.0.10";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "2.0.8";
4
+ exports.SDK_VERSION = "2.0.10";
@@ -17,8 +17,8 @@ export class PinnacleClient {
17
17
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
18
18
  "X-Fern-Language": "JavaScript",
19
19
  "X-Fern-SDK-Name": "rcs-js",
20
- "X-Fern-SDK-Version": "2.0.8",
21
- "User-Agent": "rcs-js/2.0.8",
20
+ "X-Fern-SDK-Version": "2.0.10",
21
+ "User-Agent": "rcs-js/2.0.10",
22
22
  "X-Fern-Runtime": core.RUNTIME.type,
23
23
  "X-Fern-Runtime-Version": core.RUNTIME.version,
24
24
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -8,6 +8,9 @@
8
8
  export interface AddContactsParams {
9
9
  /** Audience ID. This identifier is a string that always begins with the prefix `aud_`, for example: `aud_abc123`. */
10
10
  id: string;
11
- /** Array of phone numbers (E.164 format) or contact IDs (minimum 1 item). */
11
+ /**
12
+ * Array of phone numbers (E.164 format) or contact IDs. <br><br>
13
+ * **Limit:** 1 min
14
+ */
12
15
  contacts: string[];
13
16
  }
@@ -8,6 +8,9 @@
8
8
  export interface RemoveContactsParams {
9
9
  /** Audience ID. This identifier is a string that always begins with the prefix `aud_`, for example: `aud_abc123`. */
10
10
  id: string;
11
- /** Array of phone numbers (E.164 format) or contact IDs (minimum 1 item). */
11
+ /**
12
+ * Array of phone numbers (E.164 format) or contact IDs. <br><br>
13
+ * **Limit:** 1 min
14
+ */
12
15
  contacts: string[];
13
16
  }