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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/types/UserEvent.d.ts +27 -0
- package/dist/cjs/api/types/UserEvent.js +5 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/messages/Client.d.ts +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/types/UserEvent.d.mts +27 -0
- package/dist/esm/api/types/UserEvent.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/messages/Client.d.mts +1 -1
- package/package.json +2 -2
package/dist/cjs/Client.js
CHANGED
|
@@ -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.
|
|
58
|
-
"User-Agent": "rcs-js/2.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
|
+
}
|
|
@@ -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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.1";
|
package/dist/cjs/version.js
CHANGED
|
@@ -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/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
22
|
-
"User-Agent": "rcs-js/2.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
|
+
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.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