featurebase-node 0.15.1 → 0.15.3
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 +8 -0
- package/client.d.mts +18 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -6
- package/client.d.ts.map +1 -1
- package/client.js +12 -0
- package/client.js.map +1 -1
- package/client.mjs +12 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/away-reasons.d.mts +37 -0
- package/resources/away-reasons.d.mts.map +1 -0
- package/resources/away-reasons.d.ts +37 -0
- package/resources/away-reasons.d.ts.map +1 -0
- package/resources/away-reasons.js +31 -0
- package/resources/away-reasons.js.map +1 -0
- package/resources/away-reasons.mjs +27 -0
- package/resources/away-reasons.mjs.map +1 -0
- package/resources/changelogs/changelogs.d.mts +1166 -6
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +1166 -6
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +53 -3
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +53 -3
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/changelogs/index.js.map +1 -1
- package/resources/changelogs/index.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +4 -2
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +4 -2
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/custom-fields.d.mts +12 -0
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +12 -0
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/feedback.d.mts +2 -2
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +2 -2
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.js.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +1 -1
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +1 -1
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/index.js.map +1 -1
- package/resources/feedback/index.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +2 -1
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +2 -1
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.js +3 -1
- package/resources/feedback/posts/index.js.map +1 -1
- package/resources/feedback/posts/index.mjs +1 -0
- package/resources/feedback/posts/index.mjs.map +1 -1
- package/resources/feedback/posts/insights.d.mts +254 -0
- package/resources/feedback/posts/insights.d.mts.map +1 -0
- package/resources/feedback/posts/insights.d.ts +254 -0
- package/resources/feedback/posts/insights.d.ts.map +1 -0
- package/resources/feedback/posts/insights.js +269 -0
- package/resources/feedback/posts/insights.js.map +1 -0
- package/resources/feedback/posts/insights.mjs +265 -0
- package/resources/feedback/posts/insights.mjs.map +1 -0
- package/resources/feedback/posts/posts.d.mts +610 -21
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +610 -21
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +199 -7
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +199 -7
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +151 -4
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +151 -4
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +58 -3
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +58 -3
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/index.d.mts +2 -2
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +2 -2
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.js.map +1 -1
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +4 -4
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +4 -4
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/teams.d.mts +34 -4
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +34 -4
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +18 -3
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +18 -3
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/reports.d.mts +45 -1
- package/resources/reports.d.mts.map +1 -1
- package/resources/reports.d.ts +45 -1
- package/resources/reports.d.ts.map +1 -1
- package/resources/reports.js +35 -0
- package/resources/reports.js.map +1 -1
- package/resources/reports.mjs +35 -0
- package/resources/reports.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +9 -5
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +9 -5
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/training-data/index.d.mts +1 -1
- package/resources/training-data/index.d.mts.map +1 -1
- package/resources/training-data/index.d.ts +1 -1
- package/resources/training-data/index.d.ts.map +1 -1
- package/resources/training-data/index.js.map +1 -1
- package/resources/training-data/index.mjs.map +1 -1
- package/resources/training-data/training-data.d.mts +66 -161
- package/resources/training-data/training-data.d.mts.map +1 -1
- package/resources/training-data/training-data.d.ts +66 -161
- package/resources/training-data/training-data.d.ts.map +1 -1
- package/resources/training-data/training-data.js.map +1 -1
- package/resources/training-data/training-data.mjs.map +1 -1
- package/resources/workload.d.mts +103 -0
- package/resources/workload.d.mts.map +1 -0
- package/resources/workload.d.ts +103 -0
- package/resources/workload.d.ts.map +1 -0
- package/resources/workload.js +32 -0
- package/resources/workload.js.map +1 -0
- package/resources/workload.mjs +28 -0
- package/resources/workload.mjs.map +1 -0
- package/src/client.ts +36 -0
- package/src/resources/away-reasons.ts +68 -0
- package/src/resources/changelogs/changelogs.ts +2003 -51
- package/src/resources/changelogs/index.ts +1 -0
- package/src/resources/feedback/comments.ts +4 -2
- package/src/resources/feedback/custom-fields.ts +15 -0
- package/src/resources/feedback/feedback.ts +4 -0
- package/src/resources/feedback/index.ts +2 -0
- package/src/resources/feedback/posts/index.ts +9 -0
- package/src/resources/feedback/posts/insights.ts +340 -0
- package/src/resources/feedback/posts/posts.ts +714 -20
- package/src/resources/index.ts +10 -0
- package/src/resources/organization/admins.ts +254 -3
- package/src/resources/organization/index.ts +8 -0
- package/src/resources/organization/organization.ts +23 -1
- package/src/resources/organization/teams.ts +69 -3
- package/src/resources/reports.ts +70 -0
- package/src/resources/support/tickets/tickets.ts +9 -5
- package/src/resources/training-data/index.ts +1 -0
- package/src/resources/training-data/training-data.ts +77 -193
- package/src/resources/workload.ts +179 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as TrainingDataAPI from "./training-data.mjs";
|
|
2
3
|
import * as FilesAPI from "./files.mjs";
|
|
3
4
|
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileUpdateParams, Files, TrainingFile, TrainingFilesCursorPage } from "./files.mjs";
|
|
4
5
|
import * as QnaAPI from "./qna.mjs";
|
|
@@ -64,13 +65,66 @@ export declare class TrainingData extends APIResource {
|
|
|
64
65
|
*/
|
|
65
66
|
search(params: TrainingDataSearchParams, options?: RequestOptions): APIPromise<KnowledgeSearch>;
|
|
66
67
|
}
|
|
68
|
+
export interface KnowledgeMatchCandidate {
|
|
69
|
+
/**
|
|
70
|
+
* ID of the existing item
|
|
71
|
+
*/
|
|
72
|
+
id: string;
|
|
73
|
+
/**
|
|
74
|
+
* The item's source identity, for training files and Q&A
|
|
75
|
+
*/
|
|
76
|
+
externalId: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* What kind of knowledge item matched: a Q&A entry, a training file / crawled
|
|
79
|
+
* page, or a live help-center article.
|
|
80
|
+
*/
|
|
81
|
+
kind: 'qna' | 'training_file' | 'help_center_article';
|
|
82
|
+
/**
|
|
83
|
+
* Question variants, for Q&A entries
|
|
84
|
+
*/
|
|
85
|
+
questions: Array<string> | null;
|
|
86
|
+
/**
|
|
87
|
+
* Q&A revision compared by the judge; null for other kinds. Use with PATCH
|
|
88
|
+
* expectedRevision.
|
|
89
|
+
*/
|
|
90
|
+
revision: number | null;
|
|
91
|
+
/**
|
|
92
|
+
* Heading breadcrumb of the matching section, for training files
|
|
93
|
+
*/
|
|
94
|
+
section: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Cosine similarity between the query and item. Calibrate any threshold using
|
|
97
|
+
* representative examples; it is not a correctness or contradiction score. `null`
|
|
98
|
+
* when the item was found by keywords only. Arrays are already ordered closest
|
|
99
|
+
* first.
|
|
100
|
+
*/
|
|
101
|
+
similarity: number | null;
|
|
102
|
+
/**
|
|
103
|
+
* The item's `source` label, for Q&A entries and training files
|
|
104
|
+
*/
|
|
105
|
+
source: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Excerpt of the existing content the judge compared against (Q&A answer, matching
|
|
108
|
+
* document section, or article body), up to 1200 characters plus an ellipsis when
|
|
109
|
+
* cut.
|
|
110
|
+
*/
|
|
111
|
+
text: string;
|
|
112
|
+
/**
|
|
113
|
+
* Title of the existing item
|
|
114
|
+
*/
|
|
115
|
+
title: string;
|
|
116
|
+
/**
|
|
117
|
+
* Public URL of the item when it has one
|
|
118
|
+
*/
|
|
119
|
+
url: string | null;
|
|
120
|
+
}
|
|
67
121
|
export interface KnowledgeSearch {
|
|
68
122
|
/**
|
|
69
123
|
* Existing items closest to the query, best first, at most `topK`. `text` is an
|
|
70
124
|
* excerpt focused on the query; `section` is the heading path inside a file when
|
|
71
125
|
* known.
|
|
72
126
|
*/
|
|
73
|
-
candidates: Array<
|
|
127
|
+
candidates: Array<KnowledgeMatchCandidate>;
|
|
74
128
|
/**
|
|
75
129
|
* Object type identifier
|
|
76
130
|
*/
|
|
@@ -85,59 +139,6 @@ export interface KnowledgeSearch {
|
|
|
85
139
|
timings: KnowledgeSearch.Timings;
|
|
86
140
|
}
|
|
87
141
|
export declare namespace KnowledgeSearch {
|
|
88
|
-
interface Candidate {
|
|
89
|
-
/**
|
|
90
|
-
* ID of the existing item
|
|
91
|
-
*/
|
|
92
|
-
id: string;
|
|
93
|
-
/**
|
|
94
|
-
* The item's source identity, for training files and Q&A
|
|
95
|
-
*/
|
|
96
|
-
externalId: string | null;
|
|
97
|
-
/**
|
|
98
|
-
* What kind of knowledge item matched: a Q&A entry, a training file / crawled
|
|
99
|
-
* page, or a live help-center article.
|
|
100
|
-
*/
|
|
101
|
-
kind: 'qna' | 'training_file' | 'help_center_article';
|
|
102
|
-
/**
|
|
103
|
-
* Question variants, for Q&A entries
|
|
104
|
-
*/
|
|
105
|
-
questions: Array<string> | null;
|
|
106
|
-
/**
|
|
107
|
-
* Q&A revision compared by the judge; null for other kinds. Use with PATCH
|
|
108
|
-
* expectedRevision.
|
|
109
|
-
*/
|
|
110
|
-
revision: number | null;
|
|
111
|
-
/**
|
|
112
|
-
* Heading breadcrumb of the matching section, for training files
|
|
113
|
-
*/
|
|
114
|
-
section: string | null;
|
|
115
|
-
/**
|
|
116
|
-
* Cosine similarity between the query and item. Calibrate any threshold using
|
|
117
|
-
* representative examples; it is not a correctness or contradiction score. `null`
|
|
118
|
-
* when the item was found by keywords only. Arrays are already ordered closest
|
|
119
|
-
* first.
|
|
120
|
-
*/
|
|
121
|
-
similarity: number | null;
|
|
122
|
-
/**
|
|
123
|
-
* The item's `source` label, for Q&A entries and training files
|
|
124
|
-
*/
|
|
125
|
-
source: string | null;
|
|
126
|
-
/**
|
|
127
|
-
* Excerpt of the existing content the judge compared against (Q&A answer, matching
|
|
128
|
-
* document section, or article body), up to 1200 characters plus an ellipsis when
|
|
129
|
-
* cut.
|
|
130
|
-
*/
|
|
131
|
-
text: string;
|
|
132
|
-
/**
|
|
133
|
-
* Title of the existing item
|
|
134
|
-
*/
|
|
135
|
-
title: string;
|
|
136
|
-
/**
|
|
137
|
-
* Public URL of the item when it has one
|
|
138
|
-
*/
|
|
139
|
-
url: string | null;
|
|
140
|
-
}
|
|
141
142
|
/**
|
|
142
143
|
* Where the time went
|
|
143
144
|
*/
|
|
@@ -167,7 +168,7 @@ export interface Oracle {
|
|
|
167
168
|
* Retrieved items and the addressed entry (first when present), at most 10.
|
|
168
169
|
* Excerpts are partial evidence.
|
|
169
170
|
*/
|
|
170
|
-
candidates: Array<
|
|
171
|
+
candidates: Array<KnowledgeMatchCandidate>;
|
|
171
172
|
/**
|
|
172
173
|
* A candidate or text budget limited verification (including clipped proposed
|
|
173
174
|
* answers or Q&A answers). This yields unclear unless a contradiction was already
|
|
@@ -194,6 +195,10 @@ export interface Oracle {
|
|
|
194
195
|
* One or two sentences explaining the action, from the judge when it ran
|
|
195
196
|
*/
|
|
196
197
|
reason: string;
|
|
198
|
+
/**
|
|
199
|
+
* The existing item the action refers to, with its excerpt; `null` for `create` /
|
|
200
|
+
* `update_target`. For a `different` verdict the closest miss is `candidates[0]`.
|
|
201
|
+
*/
|
|
197
202
|
target: Oracle.Target;
|
|
198
203
|
/**
|
|
199
204
|
* Where the time went
|
|
@@ -209,59 +214,6 @@ export interface Oracle {
|
|
|
209
214
|
verdict: 'same_topic' | 'contradicts' | 'different' | 'unclear' | 'no_match';
|
|
210
215
|
}
|
|
211
216
|
export declare namespace Oracle {
|
|
212
|
-
interface Candidate {
|
|
213
|
-
/**
|
|
214
|
-
* ID of the existing item
|
|
215
|
-
*/
|
|
216
|
-
id: string;
|
|
217
|
-
/**
|
|
218
|
-
* The item's source identity, for training files and Q&A
|
|
219
|
-
*/
|
|
220
|
-
externalId: string | null;
|
|
221
|
-
/**
|
|
222
|
-
* What kind of knowledge item matched: a Q&A entry, a training file / crawled
|
|
223
|
-
* page, or a live help-center article.
|
|
224
|
-
*/
|
|
225
|
-
kind: 'qna' | 'training_file' | 'help_center_article';
|
|
226
|
-
/**
|
|
227
|
-
* Question variants, for Q&A entries
|
|
228
|
-
*/
|
|
229
|
-
questions: Array<string> | null;
|
|
230
|
-
/**
|
|
231
|
-
* Q&A revision compared by the judge; null for other kinds. Use with PATCH
|
|
232
|
-
* expectedRevision.
|
|
233
|
-
*/
|
|
234
|
-
revision: number | null;
|
|
235
|
-
/**
|
|
236
|
-
* Heading breadcrumb of the matching section, for training files
|
|
237
|
-
*/
|
|
238
|
-
section: string | null;
|
|
239
|
-
/**
|
|
240
|
-
* Cosine similarity between the query and item. Calibrate any threshold using
|
|
241
|
-
* representative examples; it is not a correctness or contradiction score. `null`
|
|
242
|
-
* when the item was found by keywords only. Arrays are already ordered closest
|
|
243
|
-
* first.
|
|
244
|
-
*/
|
|
245
|
-
similarity: number | null;
|
|
246
|
-
/**
|
|
247
|
-
* The item's `source` label, for Q&A entries and training files
|
|
248
|
-
*/
|
|
249
|
-
source: string | null;
|
|
250
|
-
/**
|
|
251
|
-
* Excerpt of the existing content the judge compared against (Q&A answer, matching
|
|
252
|
-
* document section, or article body), up to 1200 characters plus an ellipsis when
|
|
253
|
-
* cut.
|
|
254
|
-
*/
|
|
255
|
-
text: string;
|
|
256
|
-
/**
|
|
257
|
-
* Title of the existing item
|
|
258
|
-
*/
|
|
259
|
-
title: string;
|
|
260
|
-
/**
|
|
261
|
-
* Public URL of the item when it has one
|
|
262
|
-
*/
|
|
263
|
-
url: string | null;
|
|
264
|
-
}
|
|
265
217
|
/**
|
|
266
218
|
* The Q&A entry addressed by externalId or a normalized question, including its
|
|
267
219
|
* checked revision, or null
|
|
@@ -300,58 +252,11 @@ export declare namespace Oracle {
|
|
|
300
252
|
*/
|
|
301
253
|
verdict: 'same_topic' | 'contradicts' | 'different' | 'unclear';
|
|
302
254
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* The item's source identity, for training files and Q&A
|
|
310
|
-
*/
|
|
311
|
-
externalId: string | null;
|
|
312
|
-
/**
|
|
313
|
-
* What kind of knowledge item matched: a Q&A entry, a training file / crawled
|
|
314
|
-
* page, or a live help-center article.
|
|
315
|
-
*/
|
|
316
|
-
kind: 'qna' | 'training_file' | 'help_center_article';
|
|
317
|
-
/**
|
|
318
|
-
* Question variants, for Q&A entries
|
|
319
|
-
*/
|
|
320
|
-
questions: Array<string> | null;
|
|
321
|
-
/**
|
|
322
|
-
* Q&A revision compared by the judge; null for other kinds. Use with PATCH
|
|
323
|
-
* expectedRevision.
|
|
324
|
-
*/
|
|
325
|
-
revision: number | null;
|
|
326
|
-
/**
|
|
327
|
-
* Heading breadcrumb of the matching section, for training files
|
|
328
|
-
*/
|
|
329
|
-
section: string | null;
|
|
330
|
-
/**
|
|
331
|
-
* Cosine similarity between the query and item. Calibrate any threshold using
|
|
332
|
-
* representative examples; it is not a correctness or contradiction score. `null`
|
|
333
|
-
* when the item was found by keywords only. Arrays are already ordered closest
|
|
334
|
-
* first.
|
|
335
|
-
*/
|
|
336
|
-
similarity: number | null;
|
|
337
|
-
/**
|
|
338
|
-
* The item's `source` label, for Q&A entries and training files
|
|
339
|
-
*/
|
|
340
|
-
source: string | null;
|
|
341
|
-
/**
|
|
342
|
-
* Excerpt of the existing content the judge compared against (Q&A answer, matching
|
|
343
|
-
* document section, or article body), up to 1200 characters plus an ellipsis when
|
|
344
|
-
* cut.
|
|
345
|
-
*/
|
|
346
|
-
text: string;
|
|
347
|
-
/**
|
|
348
|
-
* Title of the existing item
|
|
349
|
-
*/
|
|
350
|
-
title: string;
|
|
351
|
-
/**
|
|
352
|
-
* Public URL of the item when it has one
|
|
353
|
-
*/
|
|
354
|
-
url: string | null;
|
|
255
|
+
/**
|
|
256
|
+
* The existing item the action refers to, with its excerpt; `null` for `create` /
|
|
257
|
+
* `update_target`. For a `different` verdict the closest miss is `candidates[0]`.
|
|
258
|
+
*/
|
|
259
|
+
interface Target extends TrainingDataAPI.KnowledgeMatchCandidate {
|
|
355
260
|
}
|
|
356
261
|
/**
|
|
357
262
|
* Where the time went
|
|
@@ -435,7 +340,7 @@ export interface TrainingDataSearchParams {
|
|
|
435
340
|
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
436
341
|
}
|
|
437
342
|
export declare namespace TrainingData {
|
|
438
|
-
export { type KnowledgeSearch as KnowledgeSearch, type Oracle as Oracle, type TrainingDataOracleParams as TrainingDataOracleParams, type TrainingDataSearchParams as TrainingDataSearchParams, };
|
|
343
|
+
export { type KnowledgeMatchCandidate as KnowledgeMatchCandidate, type KnowledgeSearch as KnowledgeSearch, type Oracle as Oracle, type TrainingDataOracleParams as TrainingDataOracleParams, type TrainingDataSearchParams as TrainingDataSearchParams, };
|
|
439
344
|
export { Files as Files, type TrainingFile as TrainingFile, type FileDeleteResponse as FileDeleteResponse, type TrainingFilesCursorPage as TrainingFilesCursorPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, };
|
|
440
345
|
export { QnaResource as QnaResource, type Qna as Qna, type QnaDeleteResponse as QnaDeleteResponse, type QnasCursorPage as QnasCursorPage, type QnaCreateParams as QnaCreateParams, type QnaRetrieveParams as QnaRetrieveParams, type QnaUpdateParams as QnaUpdateParams, type QnaListParams as QnaListParams, type QnaDeleteParams as QnaDeleteParams, };
|
|
441
346
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"training-data.d.mts","sourceRoot":"","sources":["../../src/resources/training-data/training-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,uBAAuB,EACxB,oBAAgB;AACjB,OAAO,KAAK,MAAM,kBAAc;AAChC,OAAO,EACL,GAAG,EACH,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,cAAc,EACf,kBAAc;AACf,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,GAAG,EAAE,MAAM,CAAC,WAAW,CAAwC;IAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAgBtF;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAehG;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"training-data.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AK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as TrainingDataAPI from "./training-data.js";
|
|
2
3
|
import * as FilesAPI from "./files.js";
|
|
3
4
|
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileUpdateParams, Files, TrainingFile, TrainingFilesCursorPage } from "./files.js";
|
|
4
5
|
import * as QnaAPI from "./qna.js";
|
|
@@ -64,13 +65,66 @@ export declare class TrainingData extends APIResource {
|
|
|
64
65
|
*/
|
|
65
66
|
search(params: TrainingDataSearchParams, options?: RequestOptions): APIPromise<KnowledgeSearch>;
|
|
66
67
|
}
|
|
68
|
+
export interface KnowledgeMatchCandidate {
|
|
69
|
+
/**
|
|
70
|
+
* ID of the existing item
|
|
71
|
+
*/
|
|
72
|
+
id: string;
|
|
73
|
+
/**
|
|
74
|
+
* The item's source identity, for training files and Q&A
|
|
75
|
+
*/
|
|
76
|
+
externalId: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* What kind of knowledge item matched: a Q&A entry, a training file / crawled
|
|
79
|
+
* page, or a live help-center article.
|
|
80
|
+
*/
|
|
81
|
+
kind: 'qna' | 'training_file' | 'help_center_article';
|
|
82
|
+
/**
|
|
83
|
+
* Question variants, for Q&A entries
|
|
84
|
+
*/
|
|
85
|
+
questions: Array<string> | null;
|
|
86
|
+
/**
|
|
87
|
+
* Q&A revision compared by the judge; null for other kinds. Use with PATCH
|
|
88
|
+
* expectedRevision.
|
|
89
|
+
*/
|
|
90
|
+
revision: number | null;
|
|
91
|
+
/**
|
|
92
|
+
* Heading breadcrumb of the matching section, for training files
|
|
93
|
+
*/
|
|
94
|
+
section: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Cosine similarity between the query and item. Calibrate any threshold using
|
|
97
|
+
* representative examples; it is not a correctness or contradiction score. `null`
|
|
98
|
+
* when the item was found by keywords only. Arrays are already ordered closest
|
|
99
|
+
* first.
|
|
100
|
+
*/
|
|
101
|
+
similarity: number | null;
|
|
102
|
+
/**
|
|
103
|
+
* The item's `source` label, for Q&A entries and training files
|
|
104
|
+
*/
|
|
105
|
+
source: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Excerpt of the existing content the judge compared against (Q&A answer, matching
|
|
108
|
+
* document section, or article body), up to 1200 characters plus an ellipsis when
|
|
109
|
+
* cut.
|
|
110
|
+
*/
|
|
111
|
+
text: string;
|
|
112
|
+
/**
|
|
113
|
+
* Title of the existing item
|
|
114
|
+
*/
|
|
115
|
+
title: string;
|
|
116
|
+
/**
|
|
117
|
+
* Public URL of the item when it has one
|
|
118
|
+
*/
|
|
119
|
+
url: string | null;
|
|
120
|
+
}
|
|
67
121
|
export interface KnowledgeSearch {
|
|
68
122
|
/**
|
|
69
123
|
* Existing items closest to the query, best first, at most `topK`. `text` is an
|
|
70
124
|
* excerpt focused on the query; `section` is the heading path inside a file when
|
|
71
125
|
* known.
|
|
72
126
|
*/
|
|
73
|
-
candidates: Array<
|
|
127
|
+
candidates: Array<KnowledgeMatchCandidate>;
|
|
74
128
|
/**
|
|
75
129
|
* Object type identifier
|
|
76
130
|
*/
|
|
@@ -85,59 +139,6 @@ export interface KnowledgeSearch {
|
|
|
85
139
|
timings: KnowledgeSearch.Timings;
|
|
86
140
|
}
|
|
87
141
|
export declare namespace KnowledgeSearch {
|
|
88
|
-
interface Candidate {
|
|
89
|
-
/**
|
|
90
|
-
* ID of the existing item
|
|
91
|
-
*/
|
|
92
|
-
id: string;
|
|
93
|
-
/**
|
|
94
|
-
* The item's source identity, for training files and Q&A
|
|
95
|
-
*/
|
|
96
|
-
externalId: string | null;
|
|
97
|
-
/**
|
|
98
|
-
* What kind of knowledge item matched: a Q&A entry, a training file / crawled
|
|
99
|
-
* page, or a live help-center article.
|
|
100
|
-
*/
|
|
101
|
-
kind: 'qna' | 'training_file' | 'help_center_article';
|
|
102
|
-
/**
|
|
103
|
-
* Question variants, for Q&A entries
|
|
104
|
-
*/
|
|
105
|
-
questions: Array<string> | null;
|
|
106
|
-
/**
|
|
107
|
-
* Q&A revision compared by the judge; null for other kinds. Use with PATCH
|
|
108
|
-
* expectedRevision.
|
|
109
|
-
*/
|
|
110
|
-
revision: number | null;
|
|
111
|
-
/**
|
|
112
|
-
* Heading breadcrumb of the matching section, for training files
|
|
113
|
-
*/
|
|
114
|
-
section: string | null;
|
|
115
|
-
/**
|
|
116
|
-
* Cosine similarity between the query and item. Calibrate any threshold using
|
|
117
|
-
* representative examples; it is not a correctness or contradiction score. `null`
|
|
118
|
-
* when the item was found by keywords only. Arrays are already ordered closest
|
|
119
|
-
* first.
|
|
120
|
-
*/
|
|
121
|
-
similarity: number | null;
|
|
122
|
-
/**
|
|
123
|
-
* The item's `source` label, for Q&A entries and training files
|
|
124
|
-
*/
|
|
125
|
-
source: string | null;
|
|
126
|
-
/**
|
|
127
|
-
* Excerpt of the existing content the judge compared against (Q&A answer, matching
|
|
128
|
-
* document section, or article body), up to 1200 characters plus an ellipsis when
|
|
129
|
-
* cut.
|
|
130
|
-
*/
|
|
131
|
-
text: string;
|
|
132
|
-
/**
|
|
133
|
-
* Title of the existing item
|
|
134
|
-
*/
|
|
135
|
-
title: string;
|
|
136
|
-
/**
|
|
137
|
-
* Public URL of the item when it has one
|
|
138
|
-
*/
|
|
139
|
-
url: string | null;
|
|
140
|
-
}
|
|
141
142
|
/**
|
|
142
143
|
* Where the time went
|
|
143
144
|
*/
|
|
@@ -167,7 +168,7 @@ export interface Oracle {
|
|
|
167
168
|
* Retrieved items and the addressed entry (first when present), at most 10.
|
|
168
169
|
* Excerpts are partial evidence.
|
|
169
170
|
*/
|
|
170
|
-
candidates: Array<
|
|
171
|
+
candidates: Array<KnowledgeMatchCandidate>;
|
|
171
172
|
/**
|
|
172
173
|
* A candidate or text budget limited verification (including clipped proposed
|
|
173
174
|
* answers or Q&A answers). This yields unclear unless a contradiction was already
|
|
@@ -194,6 +195,10 @@ export interface Oracle {
|
|
|
194
195
|
* One or two sentences explaining the action, from the judge when it ran
|
|
195
196
|
*/
|
|
196
197
|
reason: string;
|
|
198
|
+
/**
|
|
199
|
+
* The existing item the action refers to, with its excerpt; `null` for `create` /
|
|
200
|
+
* `update_target`. For a `different` verdict the closest miss is `candidates[0]`.
|
|
201
|
+
*/
|
|
197
202
|
target: Oracle.Target;
|
|
198
203
|
/**
|
|
199
204
|
* Where the time went
|
|
@@ -209,59 +214,6 @@ export interface Oracle {
|
|
|
209
214
|
verdict: 'same_topic' | 'contradicts' | 'different' | 'unclear' | 'no_match';
|
|
210
215
|
}
|
|
211
216
|
export declare namespace Oracle {
|
|
212
|
-
interface Candidate {
|
|
213
|
-
/**
|
|
214
|
-
* ID of the existing item
|
|
215
|
-
*/
|
|
216
|
-
id: string;
|
|
217
|
-
/**
|
|
218
|
-
* The item's source identity, for training files and Q&A
|
|
219
|
-
*/
|
|
220
|
-
externalId: string | null;
|
|
221
|
-
/**
|
|
222
|
-
* What kind of knowledge item matched: a Q&A entry, a training file / crawled
|
|
223
|
-
* page, or a live help-center article.
|
|
224
|
-
*/
|
|
225
|
-
kind: 'qna' | 'training_file' | 'help_center_article';
|
|
226
|
-
/**
|
|
227
|
-
* Question variants, for Q&A entries
|
|
228
|
-
*/
|
|
229
|
-
questions: Array<string> | null;
|
|
230
|
-
/**
|
|
231
|
-
* Q&A revision compared by the judge; null for other kinds. Use with PATCH
|
|
232
|
-
* expectedRevision.
|
|
233
|
-
*/
|
|
234
|
-
revision: number | null;
|
|
235
|
-
/**
|
|
236
|
-
* Heading breadcrumb of the matching section, for training files
|
|
237
|
-
*/
|
|
238
|
-
section: string | null;
|
|
239
|
-
/**
|
|
240
|
-
* Cosine similarity between the query and item. Calibrate any threshold using
|
|
241
|
-
* representative examples; it is not a correctness or contradiction score. `null`
|
|
242
|
-
* when the item was found by keywords only. Arrays are already ordered closest
|
|
243
|
-
* first.
|
|
244
|
-
*/
|
|
245
|
-
similarity: number | null;
|
|
246
|
-
/**
|
|
247
|
-
* The item's `source` label, for Q&A entries and training files
|
|
248
|
-
*/
|
|
249
|
-
source: string | null;
|
|
250
|
-
/**
|
|
251
|
-
* Excerpt of the existing content the judge compared against (Q&A answer, matching
|
|
252
|
-
* document section, or article body), up to 1200 characters plus an ellipsis when
|
|
253
|
-
* cut.
|
|
254
|
-
*/
|
|
255
|
-
text: string;
|
|
256
|
-
/**
|
|
257
|
-
* Title of the existing item
|
|
258
|
-
*/
|
|
259
|
-
title: string;
|
|
260
|
-
/**
|
|
261
|
-
* Public URL of the item when it has one
|
|
262
|
-
*/
|
|
263
|
-
url: string | null;
|
|
264
|
-
}
|
|
265
217
|
/**
|
|
266
218
|
* The Q&A entry addressed by externalId or a normalized question, including its
|
|
267
219
|
* checked revision, or null
|
|
@@ -300,58 +252,11 @@ export declare namespace Oracle {
|
|
|
300
252
|
*/
|
|
301
253
|
verdict: 'same_topic' | 'contradicts' | 'different' | 'unclear';
|
|
302
254
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* The item's source identity, for training files and Q&A
|
|
310
|
-
*/
|
|
311
|
-
externalId: string | null;
|
|
312
|
-
/**
|
|
313
|
-
* What kind of knowledge item matched: a Q&A entry, a training file / crawled
|
|
314
|
-
* page, or a live help-center article.
|
|
315
|
-
*/
|
|
316
|
-
kind: 'qna' | 'training_file' | 'help_center_article';
|
|
317
|
-
/**
|
|
318
|
-
* Question variants, for Q&A entries
|
|
319
|
-
*/
|
|
320
|
-
questions: Array<string> | null;
|
|
321
|
-
/**
|
|
322
|
-
* Q&A revision compared by the judge; null for other kinds. Use with PATCH
|
|
323
|
-
* expectedRevision.
|
|
324
|
-
*/
|
|
325
|
-
revision: number | null;
|
|
326
|
-
/**
|
|
327
|
-
* Heading breadcrumb of the matching section, for training files
|
|
328
|
-
*/
|
|
329
|
-
section: string | null;
|
|
330
|
-
/**
|
|
331
|
-
* Cosine similarity between the query and item. Calibrate any threshold using
|
|
332
|
-
* representative examples; it is not a correctness or contradiction score. `null`
|
|
333
|
-
* when the item was found by keywords only. Arrays are already ordered closest
|
|
334
|
-
* first.
|
|
335
|
-
*/
|
|
336
|
-
similarity: number | null;
|
|
337
|
-
/**
|
|
338
|
-
* The item's `source` label, for Q&A entries and training files
|
|
339
|
-
*/
|
|
340
|
-
source: string | null;
|
|
341
|
-
/**
|
|
342
|
-
* Excerpt of the existing content the judge compared against (Q&A answer, matching
|
|
343
|
-
* document section, or article body), up to 1200 characters plus an ellipsis when
|
|
344
|
-
* cut.
|
|
345
|
-
*/
|
|
346
|
-
text: string;
|
|
347
|
-
/**
|
|
348
|
-
* Title of the existing item
|
|
349
|
-
*/
|
|
350
|
-
title: string;
|
|
351
|
-
/**
|
|
352
|
-
* Public URL of the item when it has one
|
|
353
|
-
*/
|
|
354
|
-
url: string | null;
|
|
255
|
+
/**
|
|
256
|
+
* The existing item the action refers to, with its excerpt; `null` for `create` /
|
|
257
|
+
* `update_target`. For a `different` verdict the closest miss is `candidates[0]`.
|
|
258
|
+
*/
|
|
259
|
+
interface Target extends TrainingDataAPI.KnowledgeMatchCandidate {
|
|
355
260
|
}
|
|
356
261
|
/**
|
|
357
262
|
* Where the time went
|
|
@@ -435,7 +340,7 @@ export interface TrainingDataSearchParams {
|
|
|
435
340
|
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
436
341
|
}
|
|
437
342
|
export declare namespace TrainingData {
|
|
438
|
-
export { type KnowledgeSearch as KnowledgeSearch, type Oracle as Oracle, type TrainingDataOracleParams as TrainingDataOracleParams, type TrainingDataSearchParams as TrainingDataSearchParams, };
|
|
343
|
+
export { type KnowledgeMatchCandidate as KnowledgeMatchCandidate, type KnowledgeSearch as KnowledgeSearch, type Oracle as Oracle, type TrainingDataOracleParams as TrainingDataOracleParams, type TrainingDataSearchParams as TrainingDataSearchParams, };
|
|
439
344
|
export { Files as Files, type TrainingFile as TrainingFile, type FileDeleteResponse as FileDeleteResponse, type TrainingFilesCursorPage as TrainingFilesCursorPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, };
|
|
440
345
|
export { QnaResource as QnaResource, type Qna as Qna, type QnaDeleteResponse as QnaDeleteResponse, type QnasCursorPage as QnasCursorPage, type QnaCreateParams as QnaCreateParams, type QnaRetrieveParams as QnaRetrieveParams, type QnaUpdateParams as QnaUpdateParams, type QnaListParams as QnaListParams, type QnaDeleteParams as QnaDeleteParams, };
|
|
441
346
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"training-data.d.ts","sourceRoot":"","sources":["../../src/resources/training-data/training-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,uBAAuB,EACxB,mBAAgB;AACjB,OAAO,KAAK,MAAM,iBAAc;AAChC,OAAO,EACL,GAAG,EACH,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,cAAc,EACf,iBAAc;AACf,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,GAAG,EAAE,MAAM,CAAC,WAAW,CAAwC;IAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAgBtF;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAehG;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"training-data.d.ts","sourceRoot":"","sources":["../../src/resources/training-data/training-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,eAAe,2BAAwB;AACnD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,uBAAuB,EACxB,mBAAgB;AACjB,OAAO,KAAK,MAAM,iBAAc;AAChC,OAAO,EACL,GAAG,EACH,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,cAAc,EACf,iBAAc;AACf,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,GAAG,EAAE,MAAM,CAAC,WAAW,CAAwC;IAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAgBtF;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CA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Ac,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,GAAG,IAAI,GAAG,EACf,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"training-data.js","sourceRoot":"","sources":["../../src/resources/training-data/training-data.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"training-data.js","sourceRoot":"","sources":["../../src/resources/training-data/training-data.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6DAAoC;AACpC,sCAUiB;AACjB,yDAAgC;AAChC,kCAUe;AAEf,uDAAsD;AAGtD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,QAAG,GAAuB,IAAI,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmFjE,CAAC;IAjFC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CAAC,MAAgC,EAAE,OAAwB;QAC/D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAgC,EAAE,OAAwB;QAC/D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AArFD,oCAqFC;AA2UD,YAAY,CAAC,KAAK,GAAG,aAAK,CAAC;AAC3B,YAAY,CAAC,WAAW,GAAG,iBAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"training-data.mjs","sourceRoot":"","sources":["../../src/resources/training-data/training-data.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;
|
|
1
|
+
{"version":3,"file":"training-data.mjs","sourceRoot":"","sources":["../../src/resources/training-data/training-data.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAOL,KAAK,GAG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