mavenagi 0.0.0-alpha.11 → 0.0.0-alpha.12
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/Client.d.ts +9 -0
- package/README.md +41 -4
- package/api/resources/actions/client/Client.d.ts +9 -0
- package/api/resources/actions/client/Client.js +18 -15
- package/api/resources/commons/types/EntityType.d.ts +2 -1
- package/api/resources/commons/types/EntityType.js +1 -0
- package/api/resources/commons/types/FeedbackBase.d.ts +10 -0
- package/api/resources/commons/types/index.d.ts +1 -1
- package/api/resources/commons/types/index.js +1 -1
- package/api/resources/conversation/client/Client.d.ts +18 -3
- package/api/resources/conversation/client/Client.js +71 -58
- package/api/resources/conversation/types/FeedbackRequest.d.ts +8 -1
- package/api/resources/knowledge/client/Client.d.ts +9 -0
- package/api/resources/knowledge/client/Client.js +44 -37
- package/api/resources/triggers/client/Client.d.ts +9 -0
- package/api/resources/triggers/client/Client.js +18 -15
- package/api/resources/users/client/Client.d.ts +9 -0
- package/api/resources/users/client/Client.js +13 -11
- package/core/fetcher/Fetcher.d.ts +4 -1
- package/core/fetcher/Fetcher.js +18 -159
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +6 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +32 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +19 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +48 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +38 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +28 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +32 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +222 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +104 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +204 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +17 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +23 -0
- package/core/runtime/runtime.d.ts +1 -0
- package/core/runtime/runtime.js +1 -0
- package/core/schemas/Schema.d.ts +7 -4
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/Client.d.ts +9 -0
- package/dist/api/resources/actions/client/Client.d.ts +9 -0
- package/dist/api/resources/actions/client/Client.js +18 -15
- package/dist/api/resources/commons/types/EntityType.d.ts +2 -1
- package/dist/api/resources/commons/types/EntityType.js +1 -0
- package/dist/api/resources/commons/types/FeedbackBase.d.ts +10 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -1
- package/dist/api/resources/commons/types/index.js +1 -1
- package/dist/api/resources/conversation/client/Client.d.ts +18 -3
- package/dist/api/resources/conversation/client/Client.js +71 -58
- package/dist/api/resources/conversation/types/FeedbackRequest.d.ts +8 -1
- package/dist/api/resources/knowledge/client/Client.d.ts +9 -0
- package/dist/api/resources/knowledge/client/Client.js +44 -37
- package/dist/api/resources/triggers/client/Client.d.ts +9 -0
- package/dist/api/resources/triggers/client/Client.js +18 -15
- package/dist/api/resources/users/client/Client.d.ts +9 -0
- package/dist/api/resources/users/client/Client.js +13 -11
- package/dist/core/fetcher/Fetcher.d.ts +4 -1
- package/dist/core/fetcher/Fetcher.js +18 -159
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +6 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +32 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +19 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +48 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +38 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +28 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +32 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +222 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +104 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +204 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +17 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +23 -0
- package/dist/core/runtime/runtime.d.ts +1 -0
- package/dist/core/runtime/runtime.js +1 -0
- package/dist/core/schemas/Schema.d.ts +7 -4
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EntityType.js +1 -0
- package/{serialization/resources/commons/types/Feedback.d.ts → dist/serialization/resources/commons/types/FeedbackBase.d.ts} +2 -5
- package/{serialization/resources/commons/types/Feedback.js → dist/serialization/resources/commons/types/FeedbackBase.js} +1 -4
- package/dist/serialization/resources/commons/types/index.d.ts +1 -1
- package/dist/serialization/resources/commons/types/index.js +1 -1
- package/dist/serialization/resources/conversation/types/FeedbackRequest.d.ts +7 -2
- package/dist/serialization/resources/conversation/types/FeedbackRequest.js +10 -2
- package/package.json +7 -2
- package/reference.md +1723 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -0
- package/{dist/serialization/resources/commons/types/Feedback.d.ts → serialization/resources/commons/types/FeedbackBase.d.ts} +2 -5
- package/{dist/serialization/resources/commons/types/Feedback.js → serialization/resources/commons/types/FeedbackBase.js} +1 -4
- package/serialization/resources/commons/types/index.d.ts +1 -1
- package/serialization/resources/commons/types/index.js +1 -1
- package/serialization/resources/conversation/types/FeedbackRequest.d.ts +7 -2
- package/serialization/resources/conversation/types/FeedbackRequest.js +10 -2
- package/api/resources/commons/types/Feedback.d.ts +0 -16
- package/dist/api/resources/commons/types/Feedback.d.ts +0 -16
- /package/api/resources/commons/types/{Feedback.js → FeedbackBase.js} +0 -0
- /package/dist/api/resources/commons/types/{Feedback.js → FeedbackBase.js} +0 -0
|
@@ -6,5 +6,5 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
|
|
8
8
|
export declare namespace EntityType {
|
|
9
|
-
type Raw = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "USER_EVENT" | "EVENT_TRIGGER" | "USER_PROFILE";
|
|
9
|
+
type Raw = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "USER_EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
|
|
10
10
|
}
|
|
@@ -5,12 +5,9 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { FeedbackType } from "./FeedbackType";
|
|
8
|
-
export declare const
|
|
9
|
-
export declare namespace
|
|
8
|
+
export declare const FeedbackBase: core.serialization.ObjectSchema<serializers.FeedbackBase.Raw, MavenAGI.FeedbackBase>;
|
|
9
|
+
export declare namespace FeedbackBase {
|
|
10
10
|
interface Raw {
|
|
11
|
-
id: string;
|
|
12
|
-
conversationId: string;
|
|
13
|
-
conversationMessageId: string;
|
|
14
11
|
type: FeedbackType.Raw;
|
|
15
12
|
text?: string | null;
|
|
16
13
|
}
|
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { FeedbackType } from "./FeedbackType";
|
|
6
|
-
export const
|
|
7
|
-
id: core.serialization.string(),
|
|
8
|
-
conversationId: core.serialization.string(),
|
|
9
|
-
conversationMessageId: core.serialization.string(),
|
|
6
|
+
export const FeedbackBase = core.serialization.object({
|
|
10
7
|
type: FeedbackType,
|
|
11
8
|
text: core.serialization.string().optional(),
|
|
12
9
|
});
|
|
@@ -3,8 +3,8 @@ export * from "./EntityType";
|
|
|
3
3
|
export * from "./EntityIdBase";
|
|
4
4
|
export * from "./EntityId";
|
|
5
5
|
export * from "./User";
|
|
6
|
+
export * from "./FeedbackBase";
|
|
6
7
|
export * from "./FeedbackType";
|
|
7
|
-
export * from "./Feedback";
|
|
8
8
|
export * from "./AppUserIdentification";
|
|
9
9
|
export * from "./AppUserIdentifier";
|
|
10
10
|
export * from "./AppUserIdentifyingPropertyType";
|
|
@@ -3,8 +3,8 @@ export * from "./EntityType";
|
|
|
3
3
|
export * from "./EntityIdBase";
|
|
4
4
|
export * from "./EntityId";
|
|
5
5
|
export * from "./User";
|
|
6
|
+
export * from "./FeedbackBase";
|
|
6
7
|
export * from "./FeedbackType";
|
|
7
|
-
export * from "./Feedback";
|
|
8
8
|
export * from "./AppUserIdentification";
|
|
9
9
|
export * from "./AppUserIdentifier";
|
|
10
10
|
export * from "./AppUserIdentifyingPropertyType";
|
|
@@ -4,8 +4,13 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
8
|
+
import { FeedbackBase } from "../../commons/types/FeedbackBase";
|
|
8
9
|
export declare const FeedbackRequest: core.serialization.ObjectSchema<serializers.FeedbackRequest.Raw, MavenAGI.FeedbackRequest>;
|
|
9
10
|
export declare namespace FeedbackRequest {
|
|
10
|
-
|
|
11
|
+
interface Raw extends FeedbackBase.Raw {
|
|
12
|
+
feedbackId: EntityIdBase.Raw;
|
|
13
|
+
conversationId: EntityIdBase.Raw;
|
|
14
|
+
conversationMessageId: EntityIdBase.Raw;
|
|
15
|
+
}
|
|
11
16
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
6
|
+
import { FeedbackBase } from "../../commons/types/FeedbackBase";
|
|
7
|
+
export const FeedbackRequest = core.serialization
|
|
8
|
+
.object({
|
|
9
|
+
feedbackId: EntityIdBase,
|
|
10
|
+
conversationId: EntityIdBase,
|
|
11
|
+
conversationMessageId: EntityIdBase,
|
|
12
|
+
})
|
|
13
|
+
.extend(FeedbackBase);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as MavenAGI from "../../../index";
|
|
5
|
-
export interface Feedback {
|
|
6
|
-
/** The ID of the piece of feedback */
|
|
7
|
-
id: string;
|
|
8
|
-
/** The ID of the conversation the feedback is about */
|
|
9
|
-
conversationId: string;
|
|
10
|
-
/** The ID of the conversation message the feedback is about */
|
|
11
|
-
conversationMessageId: string;
|
|
12
|
-
/** The type of feedback */
|
|
13
|
-
type: MavenAGI.FeedbackType;
|
|
14
|
-
/** The feedback text */
|
|
15
|
-
text?: string;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as MavenAGI from "../../../index";
|
|
5
|
-
export interface Feedback {
|
|
6
|
-
/** The ID of the piece of feedback */
|
|
7
|
-
id: string;
|
|
8
|
-
/** The ID of the conversation the feedback is about */
|
|
9
|
-
conversationId: string;
|
|
10
|
-
/** The ID of the conversation message the feedback is about */
|
|
11
|
-
conversationMessageId: string;
|
|
12
|
-
/** The type of feedback */
|
|
13
|
-
type: MavenAGI.FeedbackType;
|
|
14
|
-
/** The feedback text */
|
|
15
|
-
text?: string;
|
|
16
|
-
}
|
|
File without changes
|
|
File without changes
|