rcs-js 2.0.0 → 2.0.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.
@@ -54,8 +54,8 @@ class PinnacleClient {
54
54
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
55
55
  "X-Fern-Language": "JavaScript",
56
56
  "X-Fern-SDK-Name": "rcs-js",
57
- "X-Fern-SDK-Version": "2.0.0",
58
- "User-Agent": "rcs-js/2.0.0",
57
+ "X-Fern-SDK-Version": "2.0.1",
58
+ "User-Agent": "rcs-js/2.0.1",
59
59
  "X-Fern-Runtime": core.RUNTIME.type,
60
60
  "X-Fern-Runtime-Version": core.RUNTIME.version,
61
61
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Represents an event triggered by a user such as when they start typing.
6
+ */
7
+ export interface UserEvent {
8
+ /** Type of user event. */
9
+ type: "USER.TYPING";
10
+ /** Timestamp when the user event started in ISO 8601 format. */
11
+ startedAt: string;
12
+ /** Conversation metadata containing the conversation ID, sender, and recipient information. */
13
+ conversation: UserEvent.Conversation;
14
+ }
15
+ export declare namespace UserEvent {
16
+ /**
17
+ * Conversation metadata containing the conversation ID, sender, and recipient information.
18
+ */
19
+ interface Conversation {
20
+ /** Unique identifier for the conversation. To get more conversation details, use the [POST /conversations/get](/api-reference/conversations/get) endpoint. */
21
+ id: number;
22
+ /** Phone number of the user who triggered the event. */
23
+ from: string;
24
+ /** Agent ID that the user is interacting with. */
25
+ to: string;
26
+ }
27
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -130,3 +130,4 @@ export * from "./VcardResource.js";
130
130
  export * from "./Webhooks.js";
131
131
  export * from "./WebhookResult.js";
132
132
  export * from "./MessageEvent.js";
133
+ export * from "./UserEvent.js";
@@ -146,3 +146,4 @@ __exportStar(require("./VcardResource.js"), exports);
146
146
  __exportStar(require("./Webhooks.js"), exports);
147
147
  __exportStar(require("./WebhookResult.js"), exports);
148
148
  __exportStar(require("./MessageEvent.js"), exports);
149
+ __exportStar(require("./UserEvent.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.0";
1
+ export declare const SDK_VERSION = "2.0.1";
@@ -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.0";
4
+ exports.SDK_VERSION = "2.0.1";
@@ -8,6 +8,6 @@ interface ExpressLikeRequest {
8
8
  originalUrl?: string;
9
9
  }
10
10
  export declare class EnhancedMessages extends Messages {
11
- process(req: Request | ExpressLikeRequest, secret?: string): Promise<Pinnacle.MessageEvent>;
11
+ process(req: Request | ExpressLikeRequest, secret?: string): Promise<Pinnacle.MessageEvent | Pinnacle.UserEvent>;
12
12
  }
13
13
  export {};
@@ -18,8 +18,8 @@ export class PinnacleClient {
18
18
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
19
19
  "X-Fern-Language": "JavaScript",
20
20
  "X-Fern-SDK-Name": "rcs-js",
21
- "X-Fern-SDK-Version": "2.0.0",
22
- "User-Agent": "rcs-js/2.0.0",
21
+ "X-Fern-SDK-Version": "2.0.1",
22
+ "User-Agent": "rcs-js/2.0.1",
23
23
  "X-Fern-Runtime": core.RUNTIME.type,
24
24
  "X-Fern-Runtime-Version": core.RUNTIME.version,
25
25
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Represents an event triggered by a user such as when they start typing.
6
+ */
7
+ export interface UserEvent {
8
+ /** Type of user event. */
9
+ type: "USER.TYPING";
10
+ /** Timestamp when the user event started in ISO 8601 format. */
11
+ startedAt: string;
12
+ /** Conversation metadata containing the conversation ID, sender, and recipient information. */
13
+ conversation: UserEvent.Conversation;
14
+ }
15
+ export declare namespace UserEvent {
16
+ /**
17
+ * Conversation metadata containing the conversation ID, sender, and recipient information.
18
+ */
19
+ interface Conversation {
20
+ /** Unique identifier for the conversation. To get more conversation details, use the [POST /conversations/get](/api-reference/conversations/get) endpoint. */
21
+ id: number;
22
+ /** Phone number of the user who triggered the event. */
23
+ from: string;
24
+ /** Agent ID that the user is interacting with. */
25
+ to: string;
26
+ }
27
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -130,3 +130,4 @@ export * from "./VcardResource.mjs";
130
130
  export * from "./Webhooks.mjs";
131
131
  export * from "./WebhookResult.mjs";
132
132
  export * from "./MessageEvent.mjs";
133
+ export * from "./UserEvent.mjs";
@@ -130,3 +130,4 @@ export * from "./VcardResource.mjs";
130
130
  export * from "./Webhooks.mjs";
131
131
  export * from "./WebhookResult.mjs";
132
132
  export * from "./MessageEvent.mjs";
133
+ export * from "./UserEvent.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.0";
1
+ export declare const SDK_VERSION = "2.0.1";
@@ -1 +1 @@
1
- export const SDK_VERSION = "2.0.0";
1
+ export const SDK_VERSION = "2.0.1";
@@ -8,6 +8,6 @@ interface ExpressLikeRequest {
8
8
  originalUrl?: string;
9
9
  }
10
10
  export declare class EnhancedMessages extends Messages {
11
- process(req: Request | ExpressLikeRequest, secret?: string): Promise<Pinnacle.MessageEvent>;
11
+ process(req: Request | ExpressLikeRequest, secret?: string): Promise<Pinnacle.MessageEvent | Pinnacle.UserEvent>;
12
12
  }
13
13
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rcs-js",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "private": false,
5
5
  "repository": "github:pinnacle-dev/rcs-js",
6
6
  "type": "commonjs",
@@ -66,4 +66,4 @@
66
66
  "node": ">=18.0.0"
67
67
  },
68
68
  "sideEffects": false
69
- }
69
+ }