@lorikeetai/node-sdk 1.2.0 → 1.4.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.
- package/CHANGELOG.md +32 -0
- package/core.js +3 -3
- package/core.js.map +1 -1
- package/core.mjs +3 -3
- package/core.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/conversation/chat.d.ts +6 -3
- package/resources/conversation/chat.d.ts.map +1 -1
- package/resources/conversation/conversation.d.ts +2 -2
- package/resources/conversation/conversation.d.ts.map +1 -1
- package/resources/conversation/conversation.js +1 -1
- package/resources/conversation/conversation.mjs +1 -1
- package/resources/conversation/email.d.ts +6 -3
- package/resources/conversation/email.d.ts.map +1 -1
- package/resources/conversation/voice.d.ts +14 -9
- package/resources/conversation/voice.d.ts.map +1 -1
- package/resources/conversation/voice.js +0 -2
- package/resources/conversation/voice.js.map +1 -1
- package/resources/conversation/voice.mjs +0 -2
- package/resources/conversation/voice.mjs.map +1 -1
- package/resources/customer/customer.d.ts +4 -0
- package/resources/customer/customer.d.ts.map +1 -1
- package/resources/customer/customer.js +4 -0
- package/resources/customer/customer.js.map +1 -1
- package/resources/customer/customer.mjs +4 -0
- package/resources/customer/customer.mjs.map +1 -1
- package/resources/customer/index.d.ts +1 -0
- package/resources/customer/index.d.ts.map +1 -1
- package/resources/customer/index.js +3 -1
- package/resources/customer/index.js.map +1 -1
- package/resources/customer/index.mjs +1 -0
- package/resources/customer/index.mjs.map +1 -1
- package/resources/customer/remote.d.ts +151 -0
- package/resources/customer/remote.d.ts.map +1 -0
- package/resources/customer/remote.js +29 -0
- package/resources/customer/remote.js.map +1 -0
- package/resources/customer/remote.mjs +25 -0
- package/resources/customer/remote.mjs.map +1 -0
- package/src/core.ts +3 -3
- package/src/resources/conversation/chat.ts +6 -3
- package/src/resources/conversation/conversation.ts +2 -2
- package/src/resources/conversation/email.ts +6 -3
- package/src/resources/conversation/voice.ts +15 -9
- package/src/resources/customer/customer.ts +11 -0
- package/src/resources/customer/index.ts +1 -0
- package/src/resources/customer/remote.ts +195 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
|
|
6
|
+
export class Remote extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const remote = await client.customer.remote.update(
|
|
11
|
+
* 'remoteId',
|
|
12
|
+
* );
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
update(
|
|
16
|
+
pathRemoteId: string,
|
|
17
|
+
body: RemoteUpdateParams,
|
|
18
|
+
options?: Core.RequestOptions,
|
|
19
|
+
): Core.APIPromise<RemoteUpdateResponse> {
|
|
20
|
+
return this._client.patch(`/v1/customer/remote/${pathRemoteId}`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const remote = await client.customer.remote.get('remoteId');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
get(remoteId: string, options?: Core.RequestOptions): Core.APIPromise<RemoteGetResponse> {
|
|
30
|
+
return this._client.get(`/v1/customer/remote/${remoteId}`, options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface RemoteUpdateResponse {
|
|
35
|
+
/**
|
|
36
|
+
* The id of the customer in the subscriber system
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The timestamp of the when the customer was created in our system
|
|
42
|
+
*/
|
|
43
|
+
createdAt: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The URL of the customer avatar
|
|
47
|
+
*/
|
|
48
|
+
avatarUrl?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The display name of the customer
|
|
52
|
+
*/
|
|
53
|
+
displayName?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The email of the customer
|
|
57
|
+
*/
|
|
58
|
+
email?: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The first name of the customer
|
|
62
|
+
*/
|
|
63
|
+
firstName?: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The last name of the customer
|
|
67
|
+
*/
|
|
68
|
+
lastName?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
72
|
+
* stable and unique
|
|
73
|
+
*/
|
|
74
|
+
remoteId?: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
78
|
+
* example a cookie
|
|
79
|
+
*/
|
|
80
|
+
subscriberCustomerId?: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A token that can be used to authenticate the customer in the your system, like a
|
|
84
|
+
* JWT
|
|
85
|
+
*/
|
|
86
|
+
subscriberToken?: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface RemoteGetResponse {
|
|
90
|
+
/**
|
|
91
|
+
* The id of the customer in the subscriber system
|
|
92
|
+
*/
|
|
93
|
+
id: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The timestamp of the when the customer was created in our system
|
|
97
|
+
*/
|
|
98
|
+
createdAt: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The URL of the customer avatar
|
|
102
|
+
*/
|
|
103
|
+
avatarUrl?: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The display name of the customer
|
|
107
|
+
*/
|
|
108
|
+
displayName?: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The email of the customer
|
|
112
|
+
*/
|
|
113
|
+
email?: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The first name of the customer
|
|
117
|
+
*/
|
|
118
|
+
firstName?: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The last name of the customer
|
|
122
|
+
*/
|
|
123
|
+
lastName?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
127
|
+
* stable and unique
|
|
128
|
+
*/
|
|
129
|
+
remoteId?: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
133
|
+
* example a cookie
|
|
134
|
+
*/
|
|
135
|
+
subscriberCustomerId?: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* A token that can be used to authenticate the customer in the your system, like a
|
|
139
|
+
* JWT
|
|
140
|
+
*/
|
|
141
|
+
subscriberToken?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface RemoteUpdateParams {
|
|
145
|
+
/**
|
|
146
|
+
* The URL of the customer avatar
|
|
147
|
+
*/
|
|
148
|
+
avatarUrl?: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The display name of the customer
|
|
152
|
+
*/
|
|
153
|
+
displayName?: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The email of the customer
|
|
157
|
+
*/
|
|
158
|
+
email?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The first name of the customer
|
|
162
|
+
*/
|
|
163
|
+
firstName?: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The last name of the customer
|
|
167
|
+
*/
|
|
168
|
+
lastName?: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
172
|
+
* stable and unique
|
|
173
|
+
*/
|
|
174
|
+
body_remoteId?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
178
|
+
* example a cookie
|
|
179
|
+
*/
|
|
180
|
+
subscriberCustomerId?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* A token that can be used to authenticate the customer in the your system, like a
|
|
184
|
+
* JWT
|
|
185
|
+
*/
|
|
186
|
+
subscriberToken?: string;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export declare namespace Remote {
|
|
190
|
+
export {
|
|
191
|
+
type RemoteUpdateResponse as RemoteUpdateResponse,
|
|
192
|
+
type RemoteGetResponse as RemoteGetResponse,
|
|
193
|
+
type RemoteUpdateParams as RemoteUpdateParams,
|
|
194
|
+
};
|
|
195
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.4.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|