featurebase-node 0.15.0 → 0.15.2
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 +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audit-logs.d.mts +2 -2
- package/resources/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs.d.ts +2 -2
- package/resources/audit-logs.d.ts.map +1 -1
- 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/conversation-attributes.d.mts +5 -0
- package/resources/conversation-attributes.d.mts.map +1 -1
- package/resources/conversation-attributes.d.ts +5 -0
- package/resources/conversation-attributes.d.ts.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/posts/index.d.mts +1 -0
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +1 -0
- 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 +647 -20
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +647 -20
- 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 +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/reports.d.mts +101 -19
- package/resources/reports.d.mts.map +1 -1
- package/resources/reports.d.ts +101 -19
- package/resources/reports.d.ts.map +1 -1
- package/resources/reports.js +15 -8
- package/resources/reports.js.map +1 -1
- package/resources/reports.mjs +15 -8
- package/resources/reports.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +22 -1
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +22 -1
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.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/files.d.mts +292 -0
- package/resources/training-data/files.d.mts.map +1 -0
- package/resources/training-data/files.d.ts +292 -0
- package/resources/training-data/files.d.ts.map +1 -0
- package/resources/training-data/files.js +171 -0
- package/resources/training-data/files.js.map +1 -0
- package/resources/training-data/files.mjs +167 -0
- package/resources/training-data/files.mjs.map +1 -0
- package/resources/training-data/index.d.mts +4 -0
- package/resources/training-data/index.d.mts.map +1 -0
- package/resources/training-data/index.d.ts +4 -0
- package/resources/training-data/index.d.ts.map +1 -0
- package/resources/training-data/index.js +11 -0
- package/resources/training-data/index.js.map +1 -0
- package/resources/training-data/index.mjs +5 -0
- package/resources/training-data/index.mjs.map +1 -0
- package/resources/training-data/qna.d.mts +370 -0
- package/resources/training-data/qna.d.mts.map +1 -0
- package/resources/training-data/qna.d.ts +370 -0
- package/resources/training-data/qna.d.ts.map +1 -0
- package/resources/training-data/qna.js +177 -0
- package/resources/training-data/qna.js.map +1 -0
- package/resources/training-data/qna.mjs +173 -0
- package/resources/training-data/qna.mjs.map +1 -0
- package/resources/training-data/training-data.d.mts +442 -0
- package/resources/training-data/training-data.d.mts.map +1 -0
- package/resources/training-data/training-data.d.ts +442 -0
- package/resources/training-data/training-data.d.ts.map +1 -0
- package/resources/training-data/training-data.js +105 -0
- package/resources/training-data/training-data.js.map +1 -0
- package/resources/training-data/training-data.mjs +100 -0
- package/resources/training-data/training-data.mjs.map +1 -0
- package/resources/training-data.d.mts +2 -0
- package/resources/training-data.d.mts.map +1 -0
- package/resources/training-data.d.ts +2 -0
- package/resources/training-data.d.ts.map +1 -0
- package/resources/training-data.js +6 -0
- package/resources/training-data.js.map +1 -0
- package/resources/training-data.mjs +3 -0
- package/resources/training-data.mjs.map +1 -0
- package/src/client.ts +22 -0
- package/src/resources/audit-logs.ts +12 -0
- package/src/resources/changelogs/changelogs.ts +2003 -51
- package/src/resources/changelogs/index.ts +1 -0
- package/src/resources/conversation-attributes.ts +6 -0
- package/src/resources/feedback/comments.ts +4 -2
- package/src/resources/feedback/custom-fields.ts +15 -0
- package/src/resources/feedback/posts/index.ts +7 -0
- package/src/resources/feedback/posts/insights.ts +340 -0
- package/src/resources/feedback/posts/posts.ts +764 -20
- package/src/resources/index.ts +8 -0
- package/src/resources/reports.ts +160 -19
- package/src/resources/support/conversations/conversations.ts +27 -1
- package/src/resources/support/tickets/tickets.ts +9 -5
- package/src/resources/training-data/files.ts +431 -0
- package/src/resources/training-data/index.ts +31 -0
- package/src/resources/training-data/qna.ts +514 -0
- package/src/resources/training-data/training-data.ts +603 -0
- package/src/resources/training-data.ts +3 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"training-data.d.ts","sourceRoot":"","sources":["../src/resources/training-data.ts"],"names":[],"mappings":"AAEA,yCAAsC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./training-data/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=training-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"training-data.js","sourceRoot":"","sources":["../src/resources/training-data.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"training-data.mjs","sourceRoot":"","sources":["../src/resources/training-data.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,0CAAsC"}
|
package/src/client.ts
CHANGED
|
@@ -91,6 +91,7 @@ import {
|
|
|
91
91
|
ChangelogListParams,
|
|
92
92
|
ChangelogPublishParams,
|
|
93
93
|
ChangelogRetrieveParams,
|
|
94
|
+
ChangelogRetrieveResponse,
|
|
94
95
|
ChangelogUnpublishParams,
|
|
95
96
|
ChangelogUpdateParams,
|
|
96
97
|
Changelogs,
|
|
@@ -101,6 +102,13 @@ import { Feedback } from './resources/feedback/feedback';
|
|
|
101
102
|
import { HelpCenter } from './resources/help-center/help-center';
|
|
102
103
|
import { Organization } from './resources/organization/organization';
|
|
103
104
|
import { Support } from './resources/support/support';
|
|
105
|
+
import {
|
|
106
|
+
KnowledgeSearch,
|
|
107
|
+
Oracle,
|
|
108
|
+
TrainingData,
|
|
109
|
+
TrainingDataOracleParams,
|
|
110
|
+
TrainingDataSearchParams,
|
|
111
|
+
} from './resources/training-data/training-data';
|
|
104
112
|
import { Users } from './resources/users/users';
|
|
105
113
|
import { type Fetch } from './internal/builtin-types';
|
|
106
114
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
@@ -872,6 +880,10 @@ export class Featurebase {
|
|
|
872
880
|
* Query your workspace analytics: conversation volume, response times, CSAT, SLA compliance, teammate performance, AI agent resolutions and more. Start with the datasets catalog to discover metrics and attributes, then run queries with filters, grouping and period comparison.
|
|
873
881
|
*/
|
|
874
882
|
reports: API.Reports = new API.Reports(this);
|
|
883
|
+
/**
|
|
884
|
+
* Training data teaches the AI agent about your product beyond your public Help Center: training files (documents, policies, internal notes) and Q&A entries (question variants with the exact answer to give). Use these endpoints to keep that knowledge in sync from your own systems — for example, pushing resolved support conversations, internal runbooks, or SOP documents automatically.
|
|
885
|
+
*/
|
|
886
|
+
trainingData: API.TrainingData = new API.TrainingData(this);
|
|
875
887
|
}
|
|
876
888
|
|
|
877
889
|
Featurebase.Support = Support;
|
|
@@ -885,6 +897,7 @@ Featurebase.Webhooks = Webhooks;
|
|
|
885
897
|
Featurebase.ConversationAttributes = ConversationAttributes;
|
|
886
898
|
Featurebase.AuditLogs = AuditLogs;
|
|
887
899
|
Featurebase.Reports = Reports;
|
|
900
|
+
Featurebase.TrainingData = TrainingData;
|
|
888
901
|
|
|
889
902
|
export declare namespace Featurebase {
|
|
890
903
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -906,6 +919,7 @@ export declare namespace Featurebase {
|
|
|
906
919
|
Changelogs as Changelogs,
|
|
907
920
|
type Changelog as Changelog,
|
|
908
921
|
type PublishUnpublishSuccess as PublishUnpublishSuccess,
|
|
922
|
+
type ChangelogRetrieveResponse as ChangelogRetrieveResponse,
|
|
909
923
|
type ChangelogDeleteResponse as ChangelogDeleteResponse,
|
|
910
924
|
type ChangelogsCursorPage as ChangelogsCursorPage,
|
|
911
925
|
type ChangelogCreateParams as ChangelogCreateParams,
|
|
@@ -985,4 +999,12 @@ export declare namespace Featurebase {
|
|
|
985
999
|
type ReportLookupFilterValuesParams as ReportLookupFilterValuesParams,
|
|
986
1000
|
type ReportQueryParams as ReportQueryParams,
|
|
987
1001
|
};
|
|
1002
|
+
|
|
1003
|
+
export {
|
|
1004
|
+
TrainingData as TrainingData,
|
|
1005
|
+
type KnowledgeSearch as KnowledgeSearch,
|
|
1006
|
+
type Oracle as Oracle,
|
|
1007
|
+
type TrainingDataOracleParams as TrainingDataOracleParams,
|
|
1008
|
+
type TrainingDataSearchParams as TrainingDataSearchParams,
|
|
1009
|
+
};
|
|
988
1010
|
}
|
|
@@ -276,6 +276,12 @@ export interface AuditLogListResponse {
|
|
|
276
276
|
| 'ai_agent.guidance_changed'
|
|
277
277
|
| 'ai_agent.multilingual_changed'
|
|
278
278
|
| 'ai_agent.data_context_changed'
|
|
279
|
+
| 'ai_agent.training_file_created'
|
|
280
|
+
| 'ai_agent.training_file_updated'
|
|
281
|
+
| 'ai_agent.training_file_deleted'
|
|
282
|
+
| 'ai_agent.qna_created'
|
|
283
|
+
| 'ai_agent.qna_updated'
|
|
284
|
+
| 'ai_agent.qna_deleted'
|
|
279
285
|
| 'email.sending_address_created'
|
|
280
286
|
| 'email.sending_address_updated'
|
|
281
287
|
| 'email.sending_address_deleted'
|
|
@@ -560,6 +566,12 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
560
566
|
| 'ai_agent.guidance_changed'
|
|
561
567
|
| 'ai_agent.multilingual_changed'
|
|
562
568
|
| 'ai_agent.data_context_changed'
|
|
569
|
+
| 'ai_agent.training_file_created'
|
|
570
|
+
| 'ai_agent.training_file_updated'
|
|
571
|
+
| 'ai_agent.training_file_deleted'
|
|
572
|
+
| 'ai_agent.qna_created'
|
|
573
|
+
| 'ai_agent.qna_updated'
|
|
574
|
+
| 'ai_agent.qna_deleted'
|
|
563
575
|
| 'email.sending_address_created'
|
|
564
576
|
| 'email.sending_address_updated'
|
|
565
577
|
| 'email.sending_address_deleted'
|