@papr/memory 1.9.0 → 1.13.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 +45 -0
- package/README.md +11 -9
- package/client.d.mts +23 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -11
- package/client.d.ts.map +1 -1
- package/client.js +41 -21
- package/client.js.map +1 -1
- package/client.mjs +41 -21
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +42 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +42 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +4 -3
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +4 -3
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +26 -5
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +26 -5
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/feedback.d.mts +333 -0
- package/resources/feedback.d.mts.map +1 -0
- package/resources/feedback.d.ts +333 -0
- package/resources/feedback.d.ts.map +1 -0
- package/resources/feedback.js +108 -0
- package/resources/feedback.js.map +1 -0
- package/resources/feedback.mjs +104 -0
- package/resources/feedback.mjs.map +1 -0
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/memory.d.mts +48 -11
- package/resources/memory.d.mts.map +1 -1
- package/resources/memory.d.ts +48 -11
- package/resources/memory.d.ts.map +1 -1
- package/resources/memory.js +11 -0
- package/resources/memory.js.map +1 -1
- package/resources/memory.mjs +11 -0
- package/resources/memory.mjs.map +1 -1
- package/resources/user.d.mts +24 -88
- package/resources/user.d.mts.map +1 -1
- package/resources/user.d.ts +24 -88
- package/resources/user.d.ts.map +1 -1
- package/resources/user.js +17 -56
- package/resources/user.js.map +1 -1
- package/resources/user.mjs +17 -56
- package/resources/user.mjs.map +1 -1
- package/src/client.ts +74 -28
- package/src/internal/request-options.ts +53 -0
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +3 -2
- package/src/internal/utils/path.ts +32 -7
- package/src/resources/feedback.ts +424 -0
- package/src/resources/index.ts +9 -1
- package/src/resources/memory.ts +44 -11
- package/src/resources/user.ts +29 -130
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Feedback extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve feedback by ID.
|
|
7
|
+
*
|
|
8
|
+
* This endpoint allows developers to fetch feedback details by feedback ID.
|
|
9
|
+
* Only the user who created the feedback or users with appropriate permissions can access it.
|
|
10
|
+
*
|
|
11
|
+
* **Authentication Required**:
|
|
12
|
+
* One of the following authentication methods must be used:
|
|
13
|
+
* - Bearer token in `Authorization` header
|
|
14
|
+
* - API Key in `X-API-Key` header
|
|
15
|
+
* - Session token in `X-Session-Token` header
|
|
16
|
+
*
|
|
17
|
+
* **Required Headers**:
|
|
18
|
+
* - X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const feedbackResponse = await client.feedback.getByID(
|
|
23
|
+
* 'feedback_id',
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
getByID(feedbackID: string, options?: RequestOptions): APIPromise<FeedbackResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Submit feedback on search results to help improve model performance.
|
|
30
|
+
*
|
|
31
|
+
* This endpoint allows developers to provide feedback on:
|
|
32
|
+
* - Overall answer quality (thumbs up/down, ratings)
|
|
33
|
+
* - Specific memory relevance and accuracy
|
|
34
|
+
* - User engagement signals (copy, save, create document actions)
|
|
35
|
+
* - Corrections and improvements
|
|
36
|
+
*
|
|
37
|
+
* The feedback is used to train and improve:
|
|
38
|
+
* - Router model tier predictions
|
|
39
|
+
* - Memory retrieval ranking
|
|
40
|
+
* - Answer generation quality
|
|
41
|
+
* - Agentic graph search performance
|
|
42
|
+
*
|
|
43
|
+
* **Authentication Required**:
|
|
44
|
+
* One of the following authentication methods must be used:
|
|
45
|
+
* - Bearer token in `Authorization` header
|
|
46
|
+
* - API Key in `X-API-Key` header
|
|
47
|
+
* - Session token in `X-Session-Token` header
|
|
48
|
+
*
|
|
49
|
+
* **Required Headers**:
|
|
50
|
+
* - Content-Type: application/json
|
|
51
|
+
* - X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const feedbackResponse = await client.feedback.submit({
|
|
56
|
+
* feedbackData: {
|
|
57
|
+
* feedbackSource: 'inline',
|
|
58
|
+
* feedbackType: 'thumbs_up',
|
|
59
|
+
* },
|
|
60
|
+
* search_id: 'abc123def456',
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
submit(body: FeedbackSubmitParams, options?: RequestOptions): APIPromise<FeedbackResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Submit multiple feedback items in a single request.
|
|
67
|
+
*
|
|
68
|
+
* Useful for submitting session-end feedback or bulk feedback collection.
|
|
69
|
+
* Each feedback item is processed independently, so partial success is possible.
|
|
70
|
+
*
|
|
71
|
+
* **Authentication Required**:
|
|
72
|
+
* One of the following authentication methods must be used:
|
|
73
|
+
* - Bearer token in `Authorization` header
|
|
74
|
+
* - API Key in `X-API-Key` header
|
|
75
|
+
* - Session token in `X-Session-Token` header
|
|
76
|
+
*
|
|
77
|
+
* **Required Headers**:
|
|
78
|
+
* - Content-Type: application/json
|
|
79
|
+
* - X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const batchResponse = await client.feedback.submitBatch({
|
|
84
|
+
* feedback_items: [
|
|
85
|
+
* {
|
|
86
|
+
* feedbackData: {
|
|
87
|
+
* feedbackSource: 'inline',
|
|
88
|
+
* feedbackType: 'thumbs_up',
|
|
89
|
+
* },
|
|
90
|
+
* search_id: 'abc123def456',
|
|
91
|
+
* },
|
|
92
|
+
* ],
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
submitBatch(body: FeedbackSubmitBatchParams, options?: RequestOptions): APIPromise<BatchResponse>;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Request model for submitting multiple feedback items
|
|
100
|
+
*/
|
|
101
|
+
export interface BatchRequest {
|
|
102
|
+
/**
|
|
103
|
+
* List of feedback items to submit
|
|
104
|
+
*/
|
|
105
|
+
feedback_items: Array<FeedbackRequest>;
|
|
106
|
+
/**
|
|
107
|
+
* Session-level context for batch feedback
|
|
108
|
+
*/
|
|
109
|
+
session_context?: {
|
|
110
|
+
[key: string]: unknown;
|
|
111
|
+
} | null;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Response model for batch feedback submission
|
|
115
|
+
*/
|
|
116
|
+
export interface BatchResponse {
|
|
117
|
+
/**
|
|
118
|
+
* HTTP status code
|
|
119
|
+
*/
|
|
120
|
+
code: number;
|
|
121
|
+
/**
|
|
122
|
+
* Human-readable message
|
|
123
|
+
*/
|
|
124
|
+
message: string;
|
|
125
|
+
/**
|
|
126
|
+
* 'success' or 'error'
|
|
127
|
+
*/
|
|
128
|
+
status: string;
|
|
129
|
+
/**
|
|
130
|
+
* Error message if status is 'error'
|
|
131
|
+
*/
|
|
132
|
+
error?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* List of error details
|
|
135
|
+
*/
|
|
136
|
+
errors?: Array<{
|
|
137
|
+
[key: string]: unknown;
|
|
138
|
+
}>;
|
|
139
|
+
/**
|
|
140
|
+
* Number of failed feedback items
|
|
141
|
+
*/
|
|
142
|
+
failed_count?: number;
|
|
143
|
+
/**
|
|
144
|
+
* List of feedback IDs
|
|
145
|
+
*/
|
|
146
|
+
feedback_ids?: Array<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Number of successfully processed feedback items
|
|
149
|
+
*/
|
|
150
|
+
successful_count?: number;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Request model for submitting feedback on search results
|
|
154
|
+
*/
|
|
155
|
+
export interface FeedbackRequest {
|
|
156
|
+
/**
|
|
157
|
+
* The feedback data containing all feedback information
|
|
158
|
+
*/
|
|
159
|
+
feedbackData: FeedbackRequest.FeedbackData;
|
|
160
|
+
/**
|
|
161
|
+
* The search_id from SearchResponse that this feedback relates to
|
|
162
|
+
*/
|
|
163
|
+
search_id: string;
|
|
164
|
+
/**
|
|
165
|
+
* External user ID for developer API keys acting on behalf of end users
|
|
166
|
+
*/
|
|
167
|
+
external_user_id?: string | null;
|
|
168
|
+
/**
|
|
169
|
+
* Internal user ID (if not provided, will be resolved from authentication)
|
|
170
|
+
*/
|
|
171
|
+
user_id?: string | null;
|
|
172
|
+
}
|
|
173
|
+
export declare namespace FeedbackRequest {
|
|
174
|
+
/**
|
|
175
|
+
* The feedback data containing all feedback information
|
|
176
|
+
*/
|
|
177
|
+
interface FeedbackData {
|
|
178
|
+
/**
|
|
179
|
+
* Where the feedback was provided from
|
|
180
|
+
*/
|
|
181
|
+
feedbackSource: 'inline' | 'post_query' | 'session_end' | 'memory_citation' | 'answer_panel';
|
|
182
|
+
/**
|
|
183
|
+
* Types of feedback that can be provided
|
|
184
|
+
*/
|
|
185
|
+
feedbackType: 'thumbs_up' | 'thumbs_down' | 'rating' | 'correction' | 'report' | 'copy_action' | 'save_action' | 'create_document' | 'memory_relevance' | 'answer_quality';
|
|
186
|
+
/**
|
|
187
|
+
* A pointer to a Parse object
|
|
188
|
+
*/
|
|
189
|
+
assistantMessage?: FeedbackData.AssistantMessage | null;
|
|
190
|
+
citedMemoryIds?: Array<string> | null;
|
|
191
|
+
citedNodeIds?: Array<string> | null;
|
|
192
|
+
feedbackImpact?: string | null;
|
|
193
|
+
feedbackProcessed?: boolean | null;
|
|
194
|
+
feedbackScore?: number | null;
|
|
195
|
+
feedbackText?: string | null;
|
|
196
|
+
feedbackValue?: string | null;
|
|
197
|
+
/**
|
|
198
|
+
* A pointer to a Parse object
|
|
199
|
+
*/
|
|
200
|
+
userMessage?: FeedbackData.UserMessage | null;
|
|
201
|
+
}
|
|
202
|
+
namespace FeedbackData {
|
|
203
|
+
/**
|
|
204
|
+
* A pointer to a Parse object
|
|
205
|
+
*/
|
|
206
|
+
interface AssistantMessage {
|
|
207
|
+
className: string;
|
|
208
|
+
objectId: string;
|
|
209
|
+
__type?: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* A pointer to a Parse object
|
|
213
|
+
*/
|
|
214
|
+
interface UserMessage {
|
|
215
|
+
className: string;
|
|
216
|
+
objectId: string;
|
|
217
|
+
__type?: string;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Response model for feedback submission
|
|
223
|
+
*/
|
|
224
|
+
export interface FeedbackResponse {
|
|
225
|
+
/**
|
|
226
|
+
* HTTP status code
|
|
227
|
+
*/
|
|
228
|
+
code: number;
|
|
229
|
+
/**
|
|
230
|
+
* Human-readable message
|
|
231
|
+
*/
|
|
232
|
+
message: string;
|
|
233
|
+
/**
|
|
234
|
+
* 'success' or 'error'
|
|
235
|
+
*/
|
|
236
|
+
status: string;
|
|
237
|
+
/**
|
|
238
|
+
* Additional error details
|
|
239
|
+
*/
|
|
240
|
+
details?: {
|
|
241
|
+
[key: string]: unknown;
|
|
242
|
+
} | null;
|
|
243
|
+
/**
|
|
244
|
+
* Error message if status is 'error'
|
|
245
|
+
*/
|
|
246
|
+
error?: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* Unique feedback ID
|
|
249
|
+
*/
|
|
250
|
+
feedback_id?: string | null;
|
|
251
|
+
}
|
|
252
|
+
export interface FeedbackSubmitParams {
|
|
253
|
+
/**
|
|
254
|
+
* The feedback data containing all feedback information
|
|
255
|
+
*/
|
|
256
|
+
feedbackData: FeedbackSubmitParams.FeedbackData;
|
|
257
|
+
/**
|
|
258
|
+
* The search_id from SearchResponse that this feedback relates to
|
|
259
|
+
*/
|
|
260
|
+
search_id: string;
|
|
261
|
+
/**
|
|
262
|
+
* External user ID for developer API keys acting on behalf of end users
|
|
263
|
+
*/
|
|
264
|
+
external_user_id?: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* Internal user ID (if not provided, will be resolved from authentication)
|
|
267
|
+
*/
|
|
268
|
+
user_id?: string | null;
|
|
269
|
+
}
|
|
270
|
+
export declare namespace FeedbackSubmitParams {
|
|
271
|
+
/**
|
|
272
|
+
* The feedback data containing all feedback information
|
|
273
|
+
*/
|
|
274
|
+
interface FeedbackData {
|
|
275
|
+
/**
|
|
276
|
+
* Where the feedback was provided from
|
|
277
|
+
*/
|
|
278
|
+
feedbackSource: 'inline' | 'post_query' | 'session_end' | 'memory_citation' | 'answer_panel';
|
|
279
|
+
/**
|
|
280
|
+
* Types of feedback that can be provided
|
|
281
|
+
*/
|
|
282
|
+
feedbackType: 'thumbs_up' | 'thumbs_down' | 'rating' | 'correction' | 'report' | 'copy_action' | 'save_action' | 'create_document' | 'memory_relevance' | 'answer_quality';
|
|
283
|
+
/**
|
|
284
|
+
* A pointer to a Parse object
|
|
285
|
+
*/
|
|
286
|
+
assistantMessage?: FeedbackData.AssistantMessage | null;
|
|
287
|
+
citedMemoryIds?: Array<string> | null;
|
|
288
|
+
citedNodeIds?: Array<string> | null;
|
|
289
|
+
feedbackImpact?: string | null;
|
|
290
|
+
feedbackProcessed?: boolean | null;
|
|
291
|
+
feedbackScore?: number | null;
|
|
292
|
+
feedbackText?: string | null;
|
|
293
|
+
feedbackValue?: string | null;
|
|
294
|
+
/**
|
|
295
|
+
* A pointer to a Parse object
|
|
296
|
+
*/
|
|
297
|
+
userMessage?: FeedbackData.UserMessage | null;
|
|
298
|
+
}
|
|
299
|
+
namespace FeedbackData {
|
|
300
|
+
/**
|
|
301
|
+
* A pointer to a Parse object
|
|
302
|
+
*/
|
|
303
|
+
interface AssistantMessage {
|
|
304
|
+
className: string;
|
|
305
|
+
objectId: string;
|
|
306
|
+
__type?: string;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* A pointer to a Parse object
|
|
310
|
+
*/
|
|
311
|
+
interface UserMessage {
|
|
312
|
+
className: string;
|
|
313
|
+
objectId: string;
|
|
314
|
+
__type?: string;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
export interface FeedbackSubmitBatchParams {
|
|
319
|
+
/**
|
|
320
|
+
* List of feedback items to submit
|
|
321
|
+
*/
|
|
322
|
+
feedback_items: Array<FeedbackRequest>;
|
|
323
|
+
/**
|
|
324
|
+
* Session-level context for batch feedback
|
|
325
|
+
*/
|
|
326
|
+
session_context?: {
|
|
327
|
+
[key: string]: unknown;
|
|
328
|
+
} | null;
|
|
329
|
+
}
|
|
330
|
+
export declare namespace Feedback {
|
|
331
|
+
export { type BatchRequest as BatchRequest, type BatchResponse as BatchResponse, type FeedbackRequest as FeedbackRequest, type FeedbackResponse as FeedbackResponse, type FeedbackSubmitParams as FeedbackSubmitParams, type FeedbackSubmitBatchParams as FeedbackSubmitBatchParams, };
|
|
332
|
+
}
|
|
333
|
+
//# sourceMappingURL=feedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../src/resources/feedback.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI1F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,WAAW,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;CAGlG;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAEvC;;OAEG;IACH,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAE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AE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CACrD;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Feedback = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class Feedback extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve feedback by ID.
|
|
10
|
+
*
|
|
11
|
+
* This endpoint allows developers to fetch feedback details by feedback ID.
|
|
12
|
+
* Only the user who created the feedback or users with appropriate permissions can access it.
|
|
13
|
+
*
|
|
14
|
+
* **Authentication Required**:
|
|
15
|
+
* One of the following authentication methods must be used:
|
|
16
|
+
* - Bearer token in `Authorization` header
|
|
17
|
+
* - API Key in `X-API-Key` header
|
|
18
|
+
* - Session token in `X-Session-Token` header
|
|
19
|
+
*
|
|
20
|
+
* **Required Headers**:
|
|
21
|
+
* - X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const feedbackResponse = await client.feedback.getByID(
|
|
26
|
+
* 'feedback_id',
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
getByID(feedbackID, options) {
|
|
31
|
+
return this._client.get((0, path_1.path) `/v1/feedback/${feedbackID}`, options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Submit feedback on search results to help improve model performance.
|
|
35
|
+
*
|
|
36
|
+
* This endpoint allows developers to provide feedback on:
|
|
37
|
+
* - Overall answer quality (thumbs up/down, ratings)
|
|
38
|
+
* - Specific memory relevance and accuracy
|
|
39
|
+
* - User engagement signals (copy, save, create document actions)
|
|
40
|
+
* - Corrections and improvements
|
|
41
|
+
*
|
|
42
|
+
* The feedback is used to train and improve:
|
|
43
|
+
* - Router model tier predictions
|
|
44
|
+
* - Memory retrieval ranking
|
|
45
|
+
* - Answer generation quality
|
|
46
|
+
* - Agentic graph search performance
|
|
47
|
+
*
|
|
48
|
+
* **Authentication Required**:
|
|
49
|
+
* One of the following authentication methods must be used:
|
|
50
|
+
* - Bearer token in `Authorization` header
|
|
51
|
+
* - API Key in `X-API-Key` header
|
|
52
|
+
* - Session token in `X-Session-Token` header
|
|
53
|
+
*
|
|
54
|
+
* **Required Headers**:
|
|
55
|
+
* - Content-Type: application/json
|
|
56
|
+
* - X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const feedbackResponse = await client.feedback.submit({
|
|
61
|
+
* feedbackData: {
|
|
62
|
+
* feedbackSource: 'inline',
|
|
63
|
+
* feedbackType: 'thumbs_up',
|
|
64
|
+
* },
|
|
65
|
+
* search_id: 'abc123def456',
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
submit(body, options) {
|
|
70
|
+
return this._client.post('/v1/feedback', { body, ...options });
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Submit multiple feedback items in a single request.
|
|
74
|
+
*
|
|
75
|
+
* Useful for submitting session-end feedback or bulk feedback collection.
|
|
76
|
+
* Each feedback item is processed independently, so partial success is possible.
|
|
77
|
+
*
|
|
78
|
+
* **Authentication Required**:
|
|
79
|
+
* One of the following authentication methods must be used:
|
|
80
|
+
* - Bearer token in `Authorization` header
|
|
81
|
+
* - API Key in `X-API-Key` header
|
|
82
|
+
* - Session token in `X-Session-Token` header
|
|
83
|
+
*
|
|
84
|
+
* **Required Headers**:
|
|
85
|
+
* - Content-Type: application/json
|
|
86
|
+
* - X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* const batchResponse = await client.feedback.submitBatch({
|
|
91
|
+
* feedback_items: [
|
|
92
|
+
* {
|
|
93
|
+
* feedbackData: {
|
|
94
|
+
* feedbackSource: 'inline',
|
|
95
|
+
* feedbackType: 'thumbs_up',
|
|
96
|
+
* },
|
|
97
|
+
* search_id: 'abc123def456',
|
|
98
|
+
* },
|
|
99
|
+
* ],
|
|
100
|
+
* });
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
submitBatch(body, options) {
|
|
104
|
+
return this._client.post('/v1/feedback/batch', { body, ...options });
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.Feedback = Feedback;
|
|
108
|
+
//# sourceMappingURL=feedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.js","sourceRoot":"","sources":["../src/resources/feedback.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,WAAW,CAAC,IAA+B,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AArGD,4BAqGC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class Feedback extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve feedback by ID.
|
|
7
|
+
*
|
|
8
|
+
* This endpoint allows developers to fetch feedback details by feedback ID.
|
|
9
|
+
* Only the user who created the feedback or users with appropriate permissions can access it.
|
|
10
|
+
*
|
|
11
|
+
* **Authentication Required**:
|
|
12
|
+
* One of the following authentication methods must be used:
|
|
13
|
+
* - Bearer token in `Authorization` header
|
|
14
|
+
* - API Key in `X-API-Key` header
|
|
15
|
+
* - Session token in `X-Session-Token` header
|
|
16
|
+
*
|
|
17
|
+
* **Required Headers**:
|
|
18
|
+
* - X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const feedbackResponse = await client.feedback.getByID(
|
|
23
|
+
* 'feedback_id',
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
getByID(feedbackID, options) {
|
|
28
|
+
return this._client.get(path `/v1/feedback/${feedbackID}`, options);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Submit feedback on search results to help improve model performance.
|
|
32
|
+
*
|
|
33
|
+
* This endpoint allows developers to provide feedback on:
|
|
34
|
+
* - Overall answer quality (thumbs up/down, ratings)
|
|
35
|
+
* - Specific memory relevance and accuracy
|
|
36
|
+
* - User engagement signals (copy, save, create document actions)
|
|
37
|
+
* - Corrections and improvements
|
|
38
|
+
*
|
|
39
|
+
* The feedback is used to train and improve:
|
|
40
|
+
* - Router model tier predictions
|
|
41
|
+
* - Memory retrieval ranking
|
|
42
|
+
* - Answer generation quality
|
|
43
|
+
* - Agentic graph search performance
|
|
44
|
+
*
|
|
45
|
+
* **Authentication Required**:
|
|
46
|
+
* One of the following authentication methods must be used:
|
|
47
|
+
* - Bearer token in `Authorization` header
|
|
48
|
+
* - API Key in `X-API-Key` header
|
|
49
|
+
* - Session token in `X-Session-Token` header
|
|
50
|
+
*
|
|
51
|
+
* **Required Headers**:
|
|
52
|
+
* - Content-Type: application/json
|
|
53
|
+
* - X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const feedbackResponse = await client.feedback.submit({
|
|
58
|
+
* feedbackData: {
|
|
59
|
+
* feedbackSource: 'inline',
|
|
60
|
+
* feedbackType: 'thumbs_up',
|
|
61
|
+
* },
|
|
62
|
+
* search_id: 'abc123def456',
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
submit(body, options) {
|
|
67
|
+
return this._client.post('/v1/feedback', { body, ...options });
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Submit multiple feedback items in a single request.
|
|
71
|
+
*
|
|
72
|
+
* Useful for submitting session-end feedback or bulk feedback collection.
|
|
73
|
+
* Each feedback item is processed independently, so partial success is possible.
|
|
74
|
+
*
|
|
75
|
+
* **Authentication Required**:
|
|
76
|
+
* One of the following authentication methods must be used:
|
|
77
|
+
* - Bearer token in `Authorization` header
|
|
78
|
+
* - API Key in `X-API-Key` header
|
|
79
|
+
* - Session token in `X-Session-Token` header
|
|
80
|
+
*
|
|
81
|
+
* **Required Headers**:
|
|
82
|
+
* - Content-Type: application/json
|
|
83
|
+
* - X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const batchResponse = await client.feedback.submitBatch({
|
|
88
|
+
* feedback_items: [
|
|
89
|
+
* {
|
|
90
|
+
* feedbackData: {
|
|
91
|
+
* feedbackSource: 'inline',
|
|
92
|
+
* feedbackType: 'thumbs_up',
|
|
93
|
+
* },
|
|
94
|
+
* search_id: 'abc123def456',
|
|
95
|
+
* },
|
|
96
|
+
* ],
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
submitBatch(body, options) {
|
|
101
|
+
return this._client.post('/v1/feedback/batch', { body, ...options });
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=feedback.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.mjs","sourceRoot":"","sources":["../src/resources/feedback.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,WAAW,CAAC,IAA+B,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Feedback, type BatchRequest, type BatchResponse, type FeedbackRequest, type FeedbackResponse, type FeedbackSubmitParams, type FeedbackSubmitBatchParams, } from "./feedback.mjs";
|
|
1
2
|
export { Memory, type AddMemory, type AddMemoryResponse, type ContextItem, type MemoryMetadata, type MemoryType, type RelationshipItem, type SearchResponse, type MemoryUpdateResponse, type MemoryDeleteResponse, type MemoryAddBatchResponse, type MemoryUpdateParams, type MemoryDeleteParams, type MemoryAddParams, type MemoryAddBatchParams, type MemorySearchParams, } from "./memory.mjs";
|
|
2
|
-
export { User, type UserResponse, type UserType, type UserListResponse, type UserDeleteResponse, type UserCreateBatchResponse, type UserCreateParams, type UserUpdateParams, type UserListParams, type UserDeleteParams, type UserCreateBatchParams,
|
|
3
|
+
export { User, type UserResponse, type UserType, type UserListResponse, type UserDeleteResponse, type UserCreateBatchResponse, type UserCreateParams, type UserUpdateParams, type UserListParams, type UserDeleteParams, type UserCreateBatchParams, } from "./user.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,IAAI,EACJ,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B;OACM,EACL,MAAM,EACN,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,IAAI,EACJ,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Feedback, type BatchRequest, type BatchResponse, type FeedbackRequest, type FeedbackResponse, type FeedbackSubmitParams, type FeedbackSubmitBatchParams, } from "./feedback.js";
|
|
1
2
|
export { Memory, type AddMemory, type AddMemoryResponse, type ContextItem, type MemoryMetadata, type MemoryType, type RelationshipItem, type SearchResponse, type MemoryUpdateResponse, type MemoryDeleteResponse, type MemoryAddBatchResponse, type MemoryUpdateParams, type MemoryDeleteParams, type MemoryAddParams, type MemoryAddBatchParams, type MemorySearchParams, } from "./memory.js";
|
|
2
|
-
export { User, type UserResponse, type UserType, type UserListResponse, type UserDeleteResponse, type UserCreateBatchResponse, type UserCreateParams, type UserUpdateParams, type UserListParams, type UserDeleteParams, type UserCreateBatchParams,
|
|
3
|
+
export { User, type UserResponse, type UserType, type UserListResponse, type UserDeleteResponse, type UserCreateBatchResponse, type UserCreateParams, type UserUpdateParams, type UserListParams, type UserDeleteParams, type UserCreateBatchParams, } from "./user.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,IAAI,EACJ,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B;OACM,EACL,MAAM,EACN,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,IAAI,EACJ,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.User = exports.Memory = void 0;
|
|
4
|
+
exports.User = exports.Memory = exports.Feedback = void 0;
|
|
5
|
+
var feedback_1 = require("./feedback.js");
|
|
6
|
+
Object.defineProperty(exports, "Feedback", { enumerable: true, get: function () { return feedback_1.Feedback; } });
|
|
5
7
|
var memory_1 = require("./memory.js");
|
|
6
8
|
Object.defineProperty(exports, "Memory", { enumerable: true, get: function () { return memory_1.Memory; } });
|
|
7
9
|
var user_1 = require("./user.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAiBkB;AAhBhB,gGAAA,MAAM,OAAA;AAiBR,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,sCAiBkB;AAhBhB,gGAAA,MAAM,OAAA;AAiBR,kCAYgB;AAXd,4FAAA,IAAI,OAAA"}
|
package/resources/index.mjs
CHANGED
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAgBP;OACM,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAOT;OACM,EACL,MAAM,GAgBP;OACM,EACL,IAAI,GAWL"}
|