@formbricks/hub 0.2.0 → 0.4.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/README.md +2 -2
  3. package/client.d.mts +15 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +15 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +28 -18
  8. package/client.js.map +1 -1
  9. package/client.mjs +28 -18
  10. package/client.mjs.map +1 -1
  11. package/internal/tslib.js +17 -17
  12. package/internal/utils/query.d.mts +5 -0
  13. package/internal/utils/query.d.mts.map +1 -0
  14. package/internal/utils/query.d.ts +5 -0
  15. package/internal/utils/query.d.ts.map +1 -0
  16. package/internal/utils/query.js +23 -0
  17. package/internal/utils/query.js.map +1 -0
  18. package/internal/utils/query.mjs +20 -0
  19. package/internal/utils/query.mjs.map +1 -0
  20. package/internal/utils.d.mts +1 -0
  21. package/internal/utils.d.ts +1 -0
  22. package/internal/utils.js +1 -0
  23. package/internal/utils.js.map +1 -1
  24. package/internal/utils.mjs +1 -0
  25. package/package.json +7 -1
  26. package/resources/feedback-records/feedback-records.d.mts +473 -0
  27. package/resources/feedback-records/feedback-records.d.mts.map +1 -0
  28. package/resources/feedback-records/feedback-records.d.ts +473 -0
  29. package/resources/feedback-records/feedback-records.d.ts.map +1 -0
  30. package/resources/feedback-records/feedback-records.js +139 -0
  31. package/resources/feedback-records/feedback-records.js.map +1 -0
  32. package/resources/feedback-records/feedback-records.mjs +134 -0
  33. package/resources/feedback-records/feedback-records.mjs.map +1 -0
  34. package/resources/feedback-records/index.d.mts +3 -0
  35. package/resources/feedback-records/index.d.mts.map +1 -0
  36. package/resources/feedback-records/index.d.ts +3 -0
  37. package/resources/feedback-records/index.d.ts.map +1 -0
  38. package/resources/feedback-records/index.js +9 -0
  39. package/resources/feedback-records/index.js.map +1 -0
  40. package/resources/feedback-records/index.mjs +4 -0
  41. package/resources/feedback-records/index.mjs.map +1 -0
  42. package/resources/feedback-records/search.d.mts +98 -0
  43. package/resources/feedback-records/search.d.mts.map +1 -0
  44. package/resources/feedback-records/search.d.ts +98 -0
  45. package/resources/feedback-records/search.d.ts.map +1 -0
  46. package/resources/feedback-records/search.js +38 -0
  47. package/resources/feedback-records/search.js.map +1 -0
  48. package/resources/feedback-records/search.mjs +34 -0
  49. package/resources/feedback-records/search.mjs.map +1 -0
  50. package/resources/feedback-records.d.mts +1 -369
  51. package/resources/feedback-records.d.mts.map +1 -1
  52. package/resources/feedback-records.d.ts +1 -369
  53. package/resources/feedback-records.d.ts.map +1 -1
  54. package/resources/feedback-records.js +2 -102
  55. package/resources/feedback-records.js.map +1 -1
  56. package/resources/feedback-records.mjs +1 -100
  57. package/resources/feedback-records.mjs.map +1 -1
  58. package/resources/health.d.mts +3 -0
  59. package/resources/health.d.mts.map +1 -1
  60. package/resources/health.d.ts +3 -0
  61. package/resources/health.d.ts.map +1 -1
  62. package/resources/health.js +3 -0
  63. package/resources/health.js.map +1 -1
  64. package/resources/health.mjs +3 -0
  65. package/resources/health.mjs.map +1 -1
  66. package/resources/index.d.mts +2 -1
  67. package/resources/index.d.mts.map +1 -1
  68. package/resources/index.d.ts +2 -1
  69. package/resources/index.d.ts.map +1 -1
  70. package/resources/index.js +4 -2
  71. package/resources/index.js.map +1 -1
  72. package/resources/index.mjs +2 -1
  73. package/resources/index.mjs.map +1 -1
  74. package/resources/webhooks.d.mts +338 -0
  75. package/resources/webhooks.d.mts.map +1 -0
  76. package/resources/webhooks.d.ts +338 -0
  77. package/resources/webhooks.d.ts.map +1 -0
  78. package/resources/webhooks.js +91 -0
  79. package/resources/webhooks.js.map +1 -0
  80. package/resources/webhooks.mjs +87 -0
  81. package/resources/webhooks.mjs.map +1 -0
  82. package/src/client.ts +56 -23
  83. package/src/internal/utils/query.ts +23 -0
  84. package/src/internal/utils.ts +1 -0
  85. package/src/resources/feedback-records/feedback-records.ts +601 -0
  86. package/src/resources/feedback-records/index.ts +19 -0
  87. package/src/resources/feedback-records/search.ts +126 -0
  88. package/src/resources/feedback-records.ts +1 -469
  89. package/src/resources/health.ts +3 -0
  90. package/src/resources/index.ts +13 -1
  91. package/src/resources/webhooks.ts +469 -0
  92. package/src/version.ts +1 -1
  93. package/version.d.mts +1 -1
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
  96. package/version.mjs +1 -1
@@ -0,0 +1,23 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { FormbricksHubError } from '../../core/error';
4
+
5
+ /**
6
+ * Basic re-implementation of `qs.stringify` for primitive types.
7
+ */
8
+ export function stringifyQuery(query: object | Record<string, unknown>) {
9
+ return Object.entries(query)
10
+ .filter(([_, value]) => typeof value !== 'undefined')
11
+ .map(([key, value]) => {
12
+ if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
13
+ return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
14
+ }
15
+ if (value === null) {
16
+ return `${encodeURIComponent(key)}=`;
17
+ }
18
+ throw new FormbricksHubError(
19
+ `Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
20
+ );
21
+ })
22
+ .join('&');
23
+ }
@@ -6,3 +6,4 @@ export * from './utils/env';
6
6
  export * from './utils/log';
7
7
  export * from './utils/uuid';
8
8
  export * from './utils/sleep';
9
+ export * from './utils/query';
@@ -0,0 +1,601 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as SearchAPI from './search';
5
+ import { Search, SearchPerformSemanticSearchParams, SearchPerformSemanticSearchResponse } from './search';
6
+ import { APIPromise } from '../../core/api-promise';
7
+ import { buildHeaders } from '../../internal/headers';
8
+ import { RequestOptions } from '../../internal/request-options';
9
+ import { path } from '../../internal/utils/path';
10
+
11
+ /**
12
+ * Feedback record CRUD and search
13
+ */
14
+ export class FeedbackRecords extends APIResource {
15
+ search: SearchAPI.Search = new SearchAPI.Search(this._client);
16
+
17
+ /**
18
+ * Creates a new feedback record data point
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const feedbackRecordData =
23
+ * await client.feedbackRecords.create({
24
+ * field_id: 'q1',
25
+ * field_type: 'rating',
26
+ * source_type: 'survey',
27
+ * submission_id: '550e8400-e29b-41d4-a716-446655440000',
28
+ * tenant_id: 'org-123',
29
+ * field_label: 'How satisfied are you?',
30
+ * language: 'en',
31
+ * source_id: 'survey-123',
32
+ * source_name: 'Q1 NPS Survey',
33
+ * user_identifier: 'user-abc-123',
34
+ * value_number: 9,
35
+ * });
36
+ * ```
37
+ */
38
+ create(body: FeedbackRecordCreateParams, options?: RequestOptions): APIPromise<FeedbackRecordData> {
39
+ return this._client.post('/v1/feedback-records', { body, ...options });
40
+ }
41
+
42
+ /**
43
+ * Retrieves a single feedback record data point by its UUID
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const feedbackRecordData =
48
+ * await client.feedbackRecords.retrieve(
49
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
50
+ * );
51
+ * ```
52
+ */
53
+ retrieve(id: string, options?: RequestOptions): APIPromise<FeedbackRecordData> {
54
+ return this._client.get(path`/v1/feedback-records/${id}`, options);
55
+ }
56
+
57
+ /**
58
+ * Updates specific fields of a feedback record data point
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const feedbackRecordData =
63
+ * await client.feedbackRecords.update(
64
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
65
+ * { value_text: 'Updated feedback text' },
66
+ * );
67
+ * ```
68
+ */
69
+ update(
70
+ id: string,
71
+ body: FeedbackRecordUpdateParams,
72
+ options?: RequestOptions,
73
+ ): APIPromise<FeedbackRecordData> {
74
+ return this._client.patch(path`/v1/feedback-records/${id}`, { body, ...options });
75
+ }
76
+
77
+ /**
78
+ * Lists feedback records with optional filters and pagination
79
+ *
80
+ * @example
81
+ * ```ts
82
+ * const feedbackRecords = await client.feedbackRecords.list({
83
+ * tenant_id: 'org-123',
84
+ * });
85
+ * ```
86
+ */
87
+ list(query: FeedbackRecordListParams, options?: RequestOptions): APIPromise<FeedbackRecordListResponse> {
88
+ return this._client.get('/v1/feedback-records', { query, ...options });
89
+ }
90
+
91
+ /**
92
+ * Permanently deletes a feedback record data point
93
+ *
94
+ * @example
95
+ * ```ts
96
+ * await client.feedbackRecords.delete(
97
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
98
+ * );
99
+ * ```
100
+ */
101
+ delete(id: string, options?: RequestOptions): APIPromise<void> {
102
+ return this._client.delete(path`/v1/feedback-records/${id}`, {
103
+ ...options,
104
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
105
+ });
106
+ }
107
+
108
+ /**
109
+ * Permanently deletes all feedback record data points matching the specified
110
+ * user_identifier. This endpoint supports GDPR Article 17 (Right to Erasure)
111
+ * requests.
112
+ *
113
+ * @example
114
+ * ```ts
115
+ * const response = await client.feedbackRecords.bulkDelete({
116
+ * user_identifier: 'user-abc-123',
117
+ * });
118
+ * ```
119
+ */
120
+ bulkDelete(
121
+ params: FeedbackRecordBulkDeleteParams,
122
+ options?: RequestOptions,
123
+ ): APIPromise<FeedbackRecordBulkDeleteResponse> {
124
+ const { user_identifier, tenant_id } = params;
125
+ return this._client.delete('/v1/feedback-records', { query: { user_identifier, tenant_id }, ...options });
126
+ }
127
+
128
+ /**
129
+ * Returns feedback record IDs and similarity scores for records similar to the
130
+ * given one (by embedding). **Only available when embeddings are configured**
131
+ * (EMBEDDING_PROVIDER and EMBEDDING_MODEL set). When embeddings are disabled, this
132
+ * endpoint returns 503 Service Unavailable. The source feedback record must belong
133
+ * to the given tenant_id (enforced).
134
+ *
135
+ * @example
136
+ * ```ts
137
+ * const response =
138
+ * await client.feedbackRecords.retrieveSimilar(
139
+ * '018e1234-5678-9abc-def0-123456789abc',
140
+ * { tenant_id: 'org-123' },
141
+ * );
142
+ * ```
143
+ */
144
+ retrieveSimilar(
145
+ id: string,
146
+ query: FeedbackRecordRetrieveSimilarParams,
147
+ options?: RequestOptions,
148
+ ): APIPromise<FeedbackRecordRetrieveSimilarResponse> {
149
+ return this._client.get(path`/v1/feedback-records/${id}/similar`, { query, ...options });
150
+ }
151
+ }
152
+
153
+ export interface FeedbackRecordData {
154
+ /**
155
+ * UUIDv7 primary key
156
+ */
157
+ id: string;
158
+
159
+ /**
160
+ * When the feedback was collected
161
+ */
162
+ collected_at: string;
163
+
164
+ /**
165
+ * When this record was created
166
+ */
167
+ created_at: string;
168
+
169
+ /**
170
+ * Identifier for the question/field
171
+ */
172
+ field_id: string;
173
+
174
+ /**
175
+ * Type of field
176
+ */
177
+ field_type: 'text' | 'categorical' | 'nps' | 'csat' | 'ces' | 'rating' | 'number' | 'boolean' | 'date';
178
+
179
+ /**
180
+ * Type of feedback source
181
+ */
182
+ source_type: string;
183
+
184
+ /**
185
+ * Identifier for the logical submission this record belongs to (required).
186
+ */
187
+ submission_id: string;
188
+
189
+ /**
190
+ * Tenant/organization identifier. NULL bytes not allowed.
191
+ */
192
+ tenant_id: string;
193
+
194
+ /**
195
+ * When this record was last updated
196
+ */
197
+ updated_at: string;
198
+
199
+ /**
200
+ * Stable identifier grouping related fields (for ranking, matrix, grid questions)
201
+ */
202
+ field_group_id?: string;
203
+
204
+ /**
205
+ * Human-readable question text for the group
206
+ */
207
+ field_group_label?: string;
208
+
209
+ /**
210
+ * The actual question text
211
+ */
212
+ field_label?: string;
213
+
214
+ /**
215
+ * ISO language code. NULL bytes not allowed.
216
+ */
217
+ language?: string;
218
+
219
+ /**
220
+ * Additional context
221
+ */
222
+ metadata?: { [key: string]: unknown };
223
+
224
+ /**
225
+ * Reference to survey/form/ticket ID
226
+ */
227
+ source_id?: string;
228
+
229
+ /**
230
+ * Human-readable name
231
+ */
232
+ source_name?: string;
233
+
234
+ /**
235
+ * User identifier
236
+ */
237
+ user_identifier?: string;
238
+
239
+ /**
240
+ * Boolean response
241
+ */
242
+ value_boolean?: boolean;
243
+
244
+ /**
245
+ * Date response
246
+ */
247
+ value_date?: string;
248
+
249
+ /**
250
+ * Numeric response
251
+ */
252
+ value_number?: number;
253
+
254
+ /**
255
+ * Text response. NULL bytes not allowed.
256
+ */
257
+ value_text?: string;
258
+ }
259
+
260
+ export interface FeedbackRecordListResponse {
261
+ /**
262
+ * List of feedback records
263
+ */
264
+ data: Array<FeedbackRecordData>;
265
+
266
+ /**
267
+ * Limit used in query
268
+ */
269
+ limit: number;
270
+
271
+ /**
272
+ * Opaque cursor for the next page (keyset paging). Present only when there may be
273
+ * more results. Use as the cursor query param for the next page.
274
+ */
275
+ next_cursor?: string;
276
+ }
277
+
278
+ export interface FeedbackRecordBulkDeleteResponse {
279
+ /**
280
+ * Number of records deleted
281
+ */
282
+ deleted_count: number;
283
+
284
+ /**
285
+ * Human-readable status message
286
+ */
287
+ message: string;
288
+ }
289
+
290
+ export interface FeedbackRecordRetrieveSimilarResponse {
291
+ /**
292
+ * List of feedback record IDs with similarity scores (0 = unrelated, 1 =
293
+ * identical). Consistent with list endpoints.
294
+ */
295
+ data: Array<FeedbackRecordRetrieveSimilarResponse.Data>;
296
+
297
+ /**
298
+ * Limit used in query (echoed for consistency with list endpoints)
299
+ */
300
+ limit: number;
301
+
302
+ /**
303
+ * Opaque cursor for the next page (keyset paging). Present only when there may be
304
+ * more results (full page returned). Omit when no next page. Use this exact value
305
+ * as the cursor query param for the next page.
306
+ */
307
+ next_cursor?: string;
308
+ }
309
+
310
+ export namespace FeedbackRecordRetrieveSimilarResponse {
311
+ export interface Data {
312
+ /**
313
+ * Feedback record UUID
314
+ */
315
+ feedback_record_id: string;
316
+
317
+ /**
318
+ * Label of the feedback field (included in embedding for context). May be empty if
319
+ * the source record had no label.
320
+ */
321
+ field_label: string;
322
+
323
+ /**
324
+ * Similarity score (0..1)
325
+ */
326
+ score: number;
327
+
328
+ /**
329
+ * value_text of the feedback record (the text that was embedded). May be empty if
330
+ * the source had no text; embeddings are only created for records with non-empty
331
+ * value_text, but the field can be cleared after embedding creation.
332
+ */
333
+ value_text: string;
334
+ }
335
+ }
336
+
337
+ export interface FeedbackRecordCreateParams {
338
+ /**
339
+ * Identifier for the question/field. NULL bytes not allowed.
340
+ */
341
+ field_id: string;
342
+
343
+ /**
344
+ * Field type: text (enrichable), categorical, nps, csat, ces, rating, number,
345
+ * boolean, date
346
+ */
347
+ field_type: 'text' | 'categorical' | 'nps' | 'csat' | 'ces' | 'rating' | 'number' | 'boolean' | 'date';
348
+
349
+ /**
350
+ * Type of feedback source (e.g., survey, review, feedback_form). NULL bytes not
351
+ * allowed.
352
+ */
353
+ source_type: string;
354
+
355
+ /**
356
+ * Identifier for the logical submission this record belongs to (tenant-scoped).
357
+ * Required. Enables grouping multi-field submissions and idempotent ingestion.
358
+ * Unique per (tenant_id, submission_id, field_id). If a record has no logical
359
+ * submission, use e.g. field_id.
360
+ */
361
+ submission_id: string;
362
+
363
+ /**
364
+ * Tenant/organization identifier for multi-tenancy. Required.
365
+ */
366
+ tenant_id: string;
367
+
368
+ /**
369
+ * When the feedback was collected (defaults to now). Must be between 1970-01-01
370
+ * and 2080-12-31.
371
+ */
372
+ collected_at?: string;
373
+
374
+ /**
375
+ * Stable identifier grouping related fields (for ranking, matrix, grid questions).
376
+ * NULL bytes not allowed.
377
+ */
378
+ field_group_id?: string;
379
+
380
+ /**
381
+ * Human-readable question text for the group
382
+ */
383
+ field_group_label?: string | null;
384
+
385
+ /**
386
+ * The actual question text
387
+ */
388
+ field_label?: string | null;
389
+
390
+ /**
391
+ * ISO language code. NULL bytes not allowed.
392
+ */
393
+ language?: string;
394
+
395
+ /**
396
+ * User agent, device, location, referrer, tags, etc. NULL bytes (\x00 or \u0000)
397
+ * are not allowed in JSON keys or values.
398
+ */
399
+ metadata?: { [key: string]: unknown };
400
+
401
+ /**
402
+ * Reference to survey/form/ticket ID
403
+ */
404
+ source_id?: string | null;
405
+
406
+ /**
407
+ * Human-readable name
408
+ */
409
+ source_name?: string | null;
410
+
411
+ /**
412
+ * Anonymous ID or email hash
413
+ */
414
+ user_identifier?: string;
415
+
416
+ /**
417
+ * For yes/no questions
418
+ */
419
+ value_boolean?: boolean;
420
+
421
+ /**
422
+ * For date responses. Must be between 1970-01-01 and 2080-12-31.
423
+ */
424
+ value_date?: string;
425
+
426
+ /**
427
+ * For ratings, NPS scores, numeric responses. Must be between -1e15 and +1e15.
428
+ */
429
+ value_number?: number;
430
+
431
+ /**
432
+ * For open-ended text responses. Omit or null if not applicable. NULL bytes not
433
+ * allowed when present.
434
+ */
435
+ value_text?: string | null;
436
+ }
437
+
438
+ export interface FeedbackRecordUpdateParams {
439
+ /**
440
+ * Update language. NULL bytes not allowed.
441
+ */
442
+ language?: string;
443
+
444
+ /**
445
+ * Update metadata. NULL bytes (\x00 or \u0000) are not allowed in JSON keys or
446
+ * values.
447
+ */
448
+ metadata?: { [key: string]: unknown };
449
+
450
+ /**
451
+ * Update user identifier
452
+ */
453
+ user_identifier?: string;
454
+
455
+ /**
456
+ * Update boolean response
457
+ */
458
+ value_boolean?: boolean;
459
+
460
+ /**
461
+ * Update date response. Must be between 1970-01-01 and 2080-12-31.
462
+ */
463
+ value_date?: string;
464
+
465
+ /**
466
+ * Update numeric response. Must be between -1e15 and +1e15.
467
+ */
468
+ value_number?: number;
469
+
470
+ /**
471
+ * Update text response. NULL bytes not allowed.
472
+ */
473
+ value_text?: string;
474
+ }
475
+
476
+ export interface FeedbackRecordListParams {
477
+ /**
478
+ * Tenant ID (required for isolation). NULL bytes not allowed.
479
+ */
480
+ tenant_id: string;
481
+
482
+ /**
483
+ * Omit for the first page. For the next page, use the exact value from the
484
+ * previous response's next_cursor. Opaque (base64-encoded); keyset pagination.
485
+ */
486
+ cursor?: string;
487
+
488
+ /**
489
+ * Filter by field group ID (for ranking/matrix questions). NULL bytes not allowed.
490
+ */
491
+ field_group_id?: string;
492
+
493
+ /**
494
+ * Filter by field ID. NULL bytes not allowed.
495
+ */
496
+ field_id?: string;
497
+
498
+ /**
499
+ * Filter by field type. NULL bytes not allowed.
500
+ */
501
+ field_type?: 'text' | 'categorical' | 'nps' | 'csat' | 'ces' | 'rating' | 'number' | 'boolean' | 'date';
502
+
503
+ /**
504
+ * Number of results to return (max 1000)
505
+ */
506
+ limit?: number;
507
+
508
+ /**
509
+ * Filter by collected_at >= since (ISO 8601 format). Must be between 1970-01-01
510
+ * and 2080-12-31.
511
+ */
512
+ since?: string;
513
+
514
+ /**
515
+ * Filter by source ID (NULL bytes not allowed)
516
+ */
517
+ source_id?: string;
518
+
519
+ /**
520
+ * Filter by source type. NULL bytes not allowed.
521
+ */
522
+ source_type?: string;
523
+
524
+ /**
525
+ * Filter by submission ID to group records belonging to one logical submission.
526
+ * NULL bytes not allowed.
527
+ */
528
+ submission_id?: string;
529
+
530
+ /**
531
+ * Filter by collected_at <= until (ISO 8601 format). Must be between 1970-01-01
532
+ * and 2080-12-31.
533
+ */
534
+ until?: string;
535
+
536
+ /**
537
+ * Filter by user identifier. NULL bytes not allowed.
538
+ */
539
+ user_identifier?: string;
540
+ }
541
+
542
+ export interface FeedbackRecordBulkDeleteParams {
543
+ /**
544
+ * Delete all records matching this user identifier (required). NULL bytes not
545
+ * allowed.
546
+ */
547
+ user_identifier: string;
548
+
549
+ /**
550
+ * Filter by tenant ID (optional, for multi-tenant deployments). NULL bytes not
551
+ * allowed.
552
+ */
553
+ tenant_id?: string;
554
+ }
555
+
556
+ export interface FeedbackRecordRetrieveSimilarParams {
557
+ /**
558
+ * Tenant ID (required for isolation; must match feedback record tenant_id)
559
+ */
560
+ tenant_id: string;
561
+
562
+ /**
563
+ * Omit for the first page. For the next page, use the exact value from the
564
+ * previous response's next_cursor. Opaque (base64-encoded); keyset pagination.
565
+ */
566
+ cursor?: string;
567
+
568
+ /**
569
+ * Number of results to return (default 10, max 100). Consistent with list
570
+ * endpoints.
571
+ */
572
+ limit?: number;
573
+
574
+ /**
575
+ * Minimum similarity score (0..1); only results with score >= min_score are
576
+ * returned. Default 0.7 to reduce noise.
577
+ */
578
+ min_score?: number;
579
+ }
580
+
581
+ FeedbackRecords.Search = Search;
582
+
583
+ export declare namespace FeedbackRecords {
584
+ export {
585
+ type FeedbackRecordData as FeedbackRecordData,
586
+ type FeedbackRecordListResponse as FeedbackRecordListResponse,
587
+ type FeedbackRecordBulkDeleteResponse as FeedbackRecordBulkDeleteResponse,
588
+ type FeedbackRecordRetrieveSimilarResponse as FeedbackRecordRetrieveSimilarResponse,
589
+ type FeedbackRecordCreateParams as FeedbackRecordCreateParams,
590
+ type FeedbackRecordUpdateParams as FeedbackRecordUpdateParams,
591
+ type FeedbackRecordListParams as FeedbackRecordListParams,
592
+ type FeedbackRecordBulkDeleteParams as FeedbackRecordBulkDeleteParams,
593
+ type FeedbackRecordRetrieveSimilarParams as FeedbackRecordRetrieveSimilarParams,
594
+ };
595
+
596
+ export {
597
+ Search as Search,
598
+ type SearchPerformSemanticSearchResponse as SearchPerformSemanticSearchResponse,
599
+ type SearchPerformSemanticSearchParams as SearchPerformSemanticSearchParams,
600
+ };
601
+ }
@@ -0,0 +1,19 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ FeedbackRecords,
5
+ type FeedbackRecordData,
6
+ type FeedbackRecordListResponse,
7
+ type FeedbackRecordBulkDeleteResponse,
8
+ type FeedbackRecordRetrieveSimilarResponse,
9
+ type FeedbackRecordCreateParams,
10
+ type FeedbackRecordUpdateParams,
11
+ type FeedbackRecordListParams,
12
+ type FeedbackRecordBulkDeleteParams,
13
+ type FeedbackRecordRetrieveSimilarParams,
14
+ } from './feedback-records';
15
+ export {
16
+ Search,
17
+ type SearchPerformSemanticSearchResponse,
18
+ type SearchPerformSemanticSearchParams,
19
+ } from './search';