@meistrari/tela-sdk-js 2.13.2 → 2.15.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/dist/index.cjs +8 -1
- package/dist/index.d.cts +15 -3
- package/dist/index.d.mts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.mjs +8 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ const changeCase__namespace = /*#__PURE__*/_interopNamespaceCompat(changeCase);
|
|
|
24
24
|
const z__default = /*#__PURE__*/_interopDefaultCompat(z);
|
|
25
25
|
const Emittery__default = /*#__PURE__*/_interopDefaultCompat(Emittery);
|
|
26
26
|
|
|
27
|
-
const version = "2.
|
|
27
|
+
const version = "2.15.0";
|
|
28
28
|
|
|
29
29
|
var __defProp$b = Object.defineProperty;
|
|
30
30
|
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -2390,6 +2390,7 @@ class CanvasExecution extends Emittery__default {
|
|
|
2390
2390
|
versionId: this._params.versionId,
|
|
2391
2391
|
messages: this._params.messages,
|
|
2392
2392
|
tags: this._params.tags,
|
|
2393
|
+
environmentName: this._params.environmentName,
|
|
2393
2394
|
label: this._params.label,
|
|
2394
2395
|
webhook_url: this._params.webhookUrl
|
|
2395
2396
|
};
|
|
@@ -4746,6 +4747,11 @@ class Agents {
|
|
|
4746
4747
|
* (`GET /v4/sessions/:id/timeline`).
|
|
4747
4748
|
*/
|
|
4748
4749
|
__publicField$1(this, "fetchTimeline");
|
|
4750
|
+
/**
|
|
4751
|
+
* Fetches the session's cross-turn message history. Pass-through to the
|
|
4752
|
+
* agent-sdk client (`GET /v4/sessions/:id/thread`).
|
|
4753
|
+
*/
|
|
4754
|
+
__publicField$1(this, "fetchThread");
|
|
4749
4755
|
/**
|
|
4750
4756
|
* Cancels a running session. Pass-through to the agent-sdk client
|
|
4751
4757
|
* (`POST /v4/sessions/:id/cancel`).
|
|
@@ -4764,6 +4770,7 @@ class Agents {
|
|
|
4764
4770
|
});
|
|
4765
4771
|
this.streamSession = this.client.streamSession;
|
|
4766
4772
|
this.fetchTimeline = this.client.fetchTimeline;
|
|
4773
|
+
this.fetchThread = this.client.fetchThread;
|
|
4767
4774
|
this.cancelSession = this.client.cancelSession;
|
|
4768
4775
|
this.resolveReference = this.client.resolveReference;
|
|
4769
4776
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import z, { z as z$1 } from 'zod';
|
|
|
2
2
|
import Emittery from 'emittery';
|
|
3
3
|
import { JSONSchema } from 'zod/v4/core';
|
|
4
4
|
import { SessionStreamEvent, ExecuteAgentRequest, ExecuteAgentResponse, UpdateAgentModelRequest, AgentClient, AuthStrategy, UpdateAgentModelResponse } from '@meistrari/agent-sdk';
|
|
5
|
-
export { CancelSessionResponse, FetchTimelineOptions, ResolveReferenceOptions, SessionStatus, SessionStreamEvent, SessionTimelineResponse, SessionWebhookConfig, SessionWebhookEventPayload, SessionWebhookEventType, SessionWebhookSubagent, SessionWebhookUsage, StreamSessionOptions, UpdateAgentModelResponse, parseSessionStream, verifyWebhookSignature } from '@meistrari/agent-sdk';
|
|
5
|
+
export { CancelSessionResponse, FetchTimelineOptions, ResolveReferenceOptions, SessionStatus, SessionStreamEvent, SessionThreadResponse, SessionThreadTurn, SessionTimelineResponse, SessionWebhookConfig, SessionWebhookEventPayload, SessionWebhookEventType, SessionWebhookSubagent, SessionWebhookUsage, StreamSessionOptions, UpdateAgentModelResponse, parseSessionStream, verifyWebhookSignature } from '@meistrari/agent-sdk';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Base HTTP client with retry logic, request/response transformation, and streaming support.
|
|
@@ -928,6 +928,7 @@ type SchemaFunction<T> = (schema: SchemaBuilder) => T;
|
|
|
928
928
|
type Output<T> = T extends z$1.ZodType ? z$1.infer<T> : T;
|
|
929
929
|
type ZodTypeOrRecord = z$1.ZodType | Record<string, unknown>;
|
|
930
930
|
|
|
931
|
+
type EnvironmentName = 'production' | (string & {});
|
|
931
932
|
interface BaseExecutionParams {
|
|
932
933
|
/**
|
|
933
934
|
* The version ID of the canvas to use for this chat completion.
|
|
@@ -1003,6 +1004,12 @@ interface BaseExecutionParams {
|
|
|
1003
1004
|
* Tags can be used for filtering, categorization, and analytics.
|
|
1004
1005
|
*/
|
|
1005
1006
|
tags?: string[];
|
|
1007
|
+
/**
|
|
1008
|
+
* Optional environment name to use for this execution.
|
|
1009
|
+
* The default production environment is always available, and custom
|
|
1010
|
+
* environment names can be configured in Tela.
|
|
1011
|
+
*/
|
|
1012
|
+
environmentName?: EnvironmentName;
|
|
1006
1013
|
/**
|
|
1007
1014
|
* Custom HTTP headers to include in the request.
|
|
1008
1015
|
* Useful for passing canvas event IDs.
|
|
@@ -1960,7 +1967,7 @@ interface BatchItem<TInput> {
|
|
|
1960
1967
|
/**
|
|
1961
1968
|
* Parameters excluded from batch execution (managed internally).
|
|
1962
1969
|
*/
|
|
1963
|
-
type ExcludedParams = 'versionId' | 'canvasId' | 'applicationId' | 'async' | 'stream' | 'webhookUrl' | 'skipResultValidation';
|
|
1970
|
+
type ExcludedParams = 'versionId' | 'canvasId' | 'applicationId' | 'async' | 'stream' | 'webhookUrl' | 'environmentName' | 'skipResultValidation';
|
|
1964
1971
|
/**
|
|
1965
1972
|
* Webhook configuration for batch completion notifications.
|
|
1966
1973
|
*
|
|
@@ -4407,6 +4414,11 @@ declare class Agents {
|
|
|
4407
4414
|
* (`GET /v4/sessions/:id/timeline`).
|
|
4408
4415
|
*/
|
|
4409
4416
|
readonly fetchTimeline: AgentClient['fetchTimeline'];
|
|
4417
|
+
/**
|
|
4418
|
+
* Fetches the session's cross-turn message history. Pass-through to the
|
|
4419
|
+
* agent-sdk client (`GET /v4/sessions/:id/thread`).
|
|
4420
|
+
*/
|
|
4421
|
+
readonly fetchThread: AgentClient['fetchThread'];
|
|
4410
4422
|
/**
|
|
4411
4423
|
* Cancels a running session. Pass-through to the agent-sdk client
|
|
4412
4424
|
* (`POST /v4/sessions/:id/cancel`).
|
|
@@ -4680,4 +4692,4 @@ declare class TelaSDK extends BaseClient {
|
|
|
4680
4692
|
*/
|
|
4681
4693
|
declare function createTelaClient(opts: TelaSDKOptions): TelaSDK;
|
|
4682
4694
|
|
|
4683
|
-
export { APIError, AgentExecutionFailedError, type AgentFileEntry, type AgentInputVariable, type AgentRecord, type AgentRunInputEntry, type AgentRunInputItem, type AgentRunInputs, type AgentRunWebhooks, type AgentTextEntry, type AgentUploadEntry, Agents, type AgentsConfig, AuthenticationError, AuthorizationError, BadRequestError, BaseClient, type BaseClientOptions, type BaseTelaFileOptions, BatchExecutionFailedError, type BatchParams, type BatchQueueConfig, type BatchQueueType, type BatchWebhookConfig, ConflictApiKeyAndJWTError, ConflictAuthMethodsError, ConflictError, ConnectionError, ConnectionTimeout, EmptyFileError, ExecutionFailedError, ExecutionNotStartedError, FileUploadError, type HTTPMethods, InternalServerError, InvalidExecutionModeError, InvalidFileURL, type ListAgentsQuery, MissingApiKeyOrJWTError, MissingAuthError, type NormalizedTaskStatus, NotFoundError, RateLimitError, type RequestOptions, type RunAgentParams, type RunAgentResponse, type SchemaBuilder, type SessionErrorEvent, type SessionResultEvent, type SessionStatusEvent, type SessionStepsEvent, type SessionTimelineFinalizeEvent, type Task, type TaskDeleteBulkResult, type TaskDeleteResult, TaskFailedError, type TaskInputContent, type TaskInputFile, type TaskListItem, type TaskListQuery, type TaskListResult, type TaskOrderBy, type TaskOutputContent, type TaskRerunResult, type TaskStatus, type TaskUndoApprovalBulkResult, type TaskUpdatePayload, Tasks, TelaError, TelaFile, type TelaFileInput, type TelaFileOptions, type TelaFileOptionsWithMimeType, TelaFileSchema, TelaSDK, type TelaSDKOptions, UnprocessableEntityError, type UpdateAgentModelParams, UserAbortError, Vault, createTelaClient, extractTaskOutput, isTelaFile, isTelaFileArray, normalizeTaskStatus, toError };
|
|
4695
|
+
export { APIError, AgentExecutionFailedError, type AgentFileEntry, type AgentInputVariable, type AgentRecord, type AgentRunInputEntry, type AgentRunInputItem, type AgentRunInputs, type AgentRunWebhooks, type AgentTextEntry, type AgentUploadEntry, Agents, type AgentsConfig, AuthenticationError, AuthorizationError, BadRequestError, BaseClient, type BaseClientOptions, type BaseTelaFileOptions, BatchExecutionFailedError, type BatchParams, type BatchQueueConfig, type BatchQueueType, type BatchWebhookConfig, ConflictApiKeyAndJWTError, ConflictAuthMethodsError, ConflictError, ConnectionError, ConnectionTimeout, EmptyFileError, type EnvironmentName, ExecutionFailedError, ExecutionNotStartedError, FileUploadError, type HTTPMethods, InternalServerError, InvalidExecutionModeError, InvalidFileURL, type ListAgentsQuery, MissingApiKeyOrJWTError, MissingAuthError, type NormalizedTaskStatus, NotFoundError, RateLimitError, type RequestOptions, type RunAgentParams, type RunAgentResponse, type SchemaBuilder, type SessionErrorEvent, type SessionResultEvent, type SessionStatusEvent, type SessionStepsEvent, type SessionTimelineFinalizeEvent, type Task, type TaskDeleteBulkResult, type TaskDeleteResult, TaskFailedError, type TaskInputContent, type TaskInputFile, type TaskListItem, type TaskListQuery, type TaskListResult, type TaskOrderBy, type TaskOutputContent, type TaskRerunResult, type TaskStatus, type TaskUndoApprovalBulkResult, type TaskUpdatePayload, Tasks, TelaError, TelaFile, type TelaFileInput, type TelaFileOptions, type TelaFileOptionsWithMimeType, TelaFileSchema, TelaSDK, type TelaSDKOptions, UnprocessableEntityError, type UpdateAgentModelParams, UserAbortError, Vault, createTelaClient, extractTaskOutput, isTelaFile, isTelaFileArray, normalizeTaskStatus, toError };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import z, { z as z$1 } from 'zod';
|
|
|
2
2
|
import Emittery from 'emittery';
|
|
3
3
|
import { JSONSchema } from 'zod/v4/core';
|
|
4
4
|
import { SessionStreamEvent, ExecuteAgentRequest, ExecuteAgentResponse, UpdateAgentModelRequest, AgentClient, AuthStrategy, UpdateAgentModelResponse } from '@meistrari/agent-sdk';
|
|
5
|
-
export { CancelSessionResponse, FetchTimelineOptions, ResolveReferenceOptions, SessionStatus, SessionStreamEvent, SessionTimelineResponse, SessionWebhookConfig, SessionWebhookEventPayload, SessionWebhookEventType, SessionWebhookSubagent, SessionWebhookUsage, StreamSessionOptions, UpdateAgentModelResponse, parseSessionStream, verifyWebhookSignature } from '@meistrari/agent-sdk';
|
|
5
|
+
export { CancelSessionResponse, FetchTimelineOptions, ResolveReferenceOptions, SessionStatus, SessionStreamEvent, SessionThreadResponse, SessionThreadTurn, SessionTimelineResponse, SessionWebhookConfig, SessionWebhookEventPayload, SessionWebhookEventType, SessionWebhookSubagent, SessionWebhookUsage, StreamSessionOptions, UpdateAgentModelResponse, parseSessionStream, verifyWebhookSignature } from '@meistrari/agent-sdk';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Base HTTP client with retry logic, request/response transformation, and streaming support.
|
|
@@ -928,6 +928,7 @@ type SchemaFunction<T> = (schema: SchemaBuilder) => T;
|
|
|
928
928
|
type Output<T> = T extends z$1.ZodType ? z$1.infer<T> : T;
|
|
929
929
|
type ZodTypeOrRecord = z$1.ZodType | Record<string, unknown>;
|
|
930
930
|
|
|
931
|
+
type EnvironmentName = 'production' | (string & {});
|
|
931
932
|
interface BaseExecutionParams {
|
|
932
933
|
/**
|
|
933
934
|
* The version ID of the canvas to use for this chat completion.
|
|
@@ -1003,6 +1004,12 @@ interface BaseExecutionParams {
|
|
|
1003
1004
|
* Tags can be used for filtering, categorization, and analytics.
|
|
1004
1005
|
*/
|
|
1005
1006
|
tags?: string[];
|
|
1007
|
+
/**
|
|
1008
|
+
* Optional environment name to use for this execution.
|
|
1009
|
+
* The default production environment is always available, and custom
|
|
1010
|
+
* environment names can be configured in Tela.
|
|
1011
|
+
*/
|
|
1012
|
+
environmentName?: EnvironmentName;
|
|
1006
1013
|
/**
|
|
1007
1014
|
* Custom HTTP headers to include in the request.
|
|
1008
1015
|
* Useful for passing canvas event IDs.
|
|
@@ -1960,7 +1967,7 @@ interface BatchItem<TInput> {
|
|
|
1960
1967
|
/**
|
|
1961
1968
|
* Parameters excluded from batch execution (managed internally).
|
|
1962
1969
|
*/
|
|
1963
|
-
type ExcludedParams = 'versionId' | 'canvasId' | 'applicationId' | 'async' | 'stream' | 'webhookUrl' | 'skipResultValidation';
|
|
1970
|
+
type ExcludedParams = 'versionId' | 'canvasId' | 'applicationId' | 'async' | 'stream' | 'webhookUrl' | 'environmentName' | 'skipResultValidation';
|
|
1964
1971
|
/**
|
|
1965
1972
|
* Webhook configuration for batch completion notifications.
|
|
1966
1973
|
*
|
|
@@ -4407,6 +4414,11 @@ declare class Agents {
|
|
|
4407
4414
|
* (`GET /v4/sessions/:id/timeline`).
|
|
4408
4415
|
*/
|
|
4409
4416
|
readonly fetchTimeline: AgentClient['fetchTimeline'];
|
|
4417
|
+
/**
|
|
4418
|
+
* Fetches the session's cross-turn message history. Pass-through to the
|
|
4419
|
+
* agent-sdk client (`GET /v4/sessions/:id/thread`).
|
|
4420
|
+
*/
|
|
4421
|
+
readonly fetchThread: AgentClient['fetchThread'];
|
|
4410
4422
|
/**
|
|
4411
4423
|
* Cancels a running session. Pass-through to the agent-sdk client
|
|
4412
4424
|
* (`POST /v4/sessions/:id/cancel`).
|
|
@@ -4680,4 +4692,4 @@ declare class TelaSDK extends BaseClient {
|
|
|
4680
4692
|
*/
|
|
4681
4693
|
declare function createTelaClient(opts: TelaSDKOptions): TelaSDK;
|
|
4682
4694
|
|
|
4683
|
-
export { APIError, AgentExecutionFailedError, type AgentFileEntry, type AgentInputVariable, type AgentRecord, type AgentRunInputEntry, type AgentRunInputItem, type AgentRunInputs, type AgentRunWebhooks, type AgentTextEntry, type AgentUploadEntry, Agents, type AgentsConfig, AuthenticationError, AuthorizationError, BadRequestError, BaseClient, type BaseClientOptions, type BaseTelaFileOptions, BatchExecutionFailedError, type BatchParams, type BatchQueueConfig, type BatchQueueType, type BatchWebhookConfig, ConflictApiKeyAndJWTError, ConflictAuthMethodsError, ConflictError, ConnectionError, ConnectionTimeout, EmptyFileError, ExecutionFailedError, ExecutionNotStartedError, FileUploadError, type HTTPMethods, InternalServerError, InvalidExecutionModeError, InvalidFileURL, type ListAgentsQuery, MissingApiKeyOrJWTError, MissingAuthError, type NormalizedTaskStatus, NotFoundError, RateLimitError, type RequestOptions, type RunAgentParams, type RunAgentResponse, type SchemaBuilder, type SessionErrorEvent, type SessionResultEvent, type SessionStatusEvent, type SessionStepsEvent, type SessionTimelineFinalizeEvent, type Task, type TaskDeleteBulkResult, type TaskDeleteResult, TaskFailedError, type TaskInputContent, type TaskInputFile, type TaskListItem, type TaskListQuery, type TaskListResult, type TaskOrderBy, type TaskOutputContent, type TaskRerunResult, type TaskStatus, type TaskUndoApprovalBulkResult, type TaskUpdatePayload, Tasks, TelaError, TelaFile, type TelaFileInput, type TelaFileOptions, type TelaFileOptionsWithMimeType, TelaFileSchema, TelaSDK, type TelaSDKOptions, UnprocessableEntityError, type UpdateAgentModelParams, UserAbortError, Vault, createTelaClient, extractTaskOutput, isTelaFile, isTelaFileArray, normalizeTaskStatus, toError };
|
|
4695
|
+
export { APIError, AgentExecutionFailedError, type AgentFileEntry, type AgentInputVariable, type AgentRecord, type AgentRunInputEntry, type AgentRunInputItem, type AgentRunInputs, type AgentRunWebhooks, type AgentTextEntry, type AgentUploadEntry, Agents, type AgentsConfig, AuthenticationError, AuthorizationError, BadRequestError, BaseClient, type BaseClientOptions, type BaseTelaFileOptions, BatchExecutionFailedError, type BatchParams, type BatchQueueConfig, type BatchQueueType, type BatchWebhookConfig, ConflictApiKeyAndJWTError, ConflictAuthMethodsError, ConflictError, ConnectionError, ConnectionTimeout, EmptyFileError, type EnvironmentName, ExecutionFailedError, ExecutionNotStartedError, FileUploadError, type HTTPMethods, InternalServerError, InvalidExecutionModeError, InvalidFileURL, type ListAgentsQuery, MissingApiKeyOrJWTError, MissingAuthError, type NormalizedTaskStatus, NotFoundError, RateLimitError, type RequestOptions, type RunAgentParams, type RunAgentResponse, type SchemaBuilder, type SessionErrorEvent, type SessionResultEvent, type SessionStatusEvent, type SessionStepsEvent, type SessionTimelineFinalizeEvent, type Task, type TaskDeleteBulkResult, type TaskDeleteResult, TaskFailedError, type TaskInputContent, type TaskInputFile, type TaskListItem, type TaskListQuery, type TaskListResult, type TaskOrderBy, type TaskOutputContent, type TaskRerunResult, type TaskStatus, type TaskUndoApprovalBulkResult, type TaskUpdatePayload, Tasks, TelaError, TelaFile, type TelaFileInput, type TelaFileOptions, type TelaFileOptionsWithMimeType, TelaFileSchema, TelaSDK, type TelaSDKOptions, UnprocessableEntityError, type UpdateAgentModelParams, UserAbortError, Vault, createTelaClient, extractTaskOutput, isTelaFile, isTelaFileArray, normalizeTaskStatus, toError };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import z, { z as z$1 } from 'zod';
|
|
|
2
2
|
import Emittery from 'emittery';
|
|
3
3
|
import { JSONSchema } from 'zod/v4/core';
|
|
4
4
|
import { SessionStreamEvent, ExecuteAgentRequest, ExecuteAgentResponse, UpdateAgentModelRequest, AgentClient, AuthStrategy, UpdateAgentModelResponse } from '@meistrari/agent-sdk';
|
|
5
|
-
export { CancelSessionResponse, FetchTimelineOptions, ResolveReferenceOptions, SessionStatus, SessionStreamEvent, SessionTimelineResponse, SessionWebhookConfig, SessionWebhookEventPayload, SessionWebhookEventType, SessionWebhookSubagent, SessionWebhookUsage, StreamSessionOptions, UpdateAgentModelResponse, parseSessionStream, verifyWebhookSignature } from '@meistrari/agent-sdk';
|
|
5
|
+
export { CancelSessionResponse, FetchTimelineOptions, ResolveReferenceOptions, SessionStatus, SessionStreamEvent, SessionThreadResponse, SessionThreadTurn, SessionTimelineResponse, SessionWebhookConfig, SessionWebhookEventPayload, SessionWebhookEventType, SessionWebhookSubagent, SessionWebhookUsage, StreamSessionOptions, UpdateAgentModelResponse, parseSessionStream, verifyWebhookSignature } from '@meistrari/agent-sdk';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Base HTTP client with retry logic, request/response transformation, and streaming support.
|
|
@@ -928,6 +928,7 @@ type SchemaFunction<T> = (schema: SchemaBuilder) => T;
|
|
|
928
928
|
type Output<T> = T extends z$1.ZodType ? z$1.infer<T> : T;
|
|
929
929
|
type ZodTypeOrRecord = z$1.ZodType | Record<string, unknown>;
|
|
930
930
|
|
|
931
|
+
type EnvironmentName = 'production' | (string & {});
|
|
931
932
|
interface BaseExecutionParams {
|
|
932
933
|
/**
|
|
933
934
|
* The version ID of the canvas to use for this chat completion.
|
|
@@ -1003,6 +1004,12 @@ interface BaseExecutionParams {
|
|
|
1003
1004
|
* Tags can be used for filtering, categorization, and analytics.
|
|
1004
1005
|
*/
|
|
1005
1006
|
tags?: string[];
|
|
1007
|
+
/**
|
|
1008
|
+
* Optional environment name to use for this execution.
|
|
1009
|
+
* The default production environment is always available, and custom
|
|
1010
|
+
* environment names can be configured in Tela.
|
|
1011
|
+
*/
|
|
1012
|
+
environmentName?: EnvironmentName;
|
|
1006
1013
|
/**
|
|
1007
1014
|
* Custom HTTP headers to include in the request.
|
|
1008
1015
|
* Useful for passing canvas event IDs.
|
|
@@ -1960,7 +1967,7 @@ interface BatchItem<TInput> {
|
|
|
1960
1967
|
/**
|
|
1961
1968
|
* Parameters excluded from batch execution (managed internally).
|
|
1962
1969
|
*/
|
|
1963
|
-
type ExcludedParams = 'versionId' | 'canvasId' | 'applicationId' | 'async' | 'stream' | 'webhookUrl' | 'skipResultValidation';
|
|
1970
|
+
type ExcludedParams = 'versionId' | 'canvasId' | 'applicationId' | 'async' | 'stream' | 'webhookUrl' | 'environmentName' | 'skipResultValidation';
|
|
1964
1971
|
/**
|
|
1965
1972
|
* Webhook configuration for batch completion notifications.
|
|
1966
1973
|
*
|
|
@@ -4407,6 +4414,11 @@ declare class Agents {
|
|
|
4407
4414
|
* (`GET /v4/sessions/:id/timeline`).
|
|
4408
4415
|
*/
|
|
4409
4416
|
readonly fetchTimeline: AgentClient['fetchTimeline'];
|
|
4417
|
+
/**
|
|
4418
|
+
* Fetches the session's cross-turn message history. Pass-through to the
|
|
4419
|
+
* agent-sdk client (`GET /v4/sessions/:id/thread`).
|
|
4420
|
+
*/
|
|
4421
|
+
readonly fetchThread: AgentClient['fetchThread'];
|
|
4410
4422
|
/**
|
|
4411
4423
|
* Cancels a running session. Pass-through to the agent-sdk client
|
|
4412
4424
|
* (`POST /v4/sessions/:id/cancel`).
|
|
@@ -4680,4 +4692,4 @@ declare class TelaSDK extends BaseClient {
|
|
|
4680
4692
|
*/
|
|
4681
4693
|
declare function createTelaClient(opts: TelaSDKOptions): TelaSDK;
|
|
4682
4694
|
|
|
4683
|
-
export { APIError, AgentExecutionFailedError, type AgentFileEntry, type AgentInputVariable, type AgentRecord, type AgentRunInputEntry, type AgentRunInputItem, type AgentRunInputs, type AgentRunWebhooks, type AgentTextEntry, type AgentUploadEntry, Agents, type AgentsConfig, AuthenticationError, AuthorizationError, BadRequestError, BaseClient, type BaseClientOptions, type BaseTelaFileOptions, BatchExecutionFailedError, type BatchParams, type BatchQueueConfig, type BatchQueueType, type BatchWebhookConfig, ConflictApiKeyAndJWTError, ConflictAuthMethodsError, ConflictError, ConnectionError, ConnectionTimeout, EmptyFileError, ExecutionFailedError, ExecutionNotStartedError, FileUploadError, type HTTPMethods, InternalServerError, InvalidExecutionModeError, InvalidFileURL, type ListAgentsQuery, MissingApiKeyOrJWTError, MissingAuthError, type NormalizedTaskStatus, NotFoundError, RateLimitError, type RequestOptions, type RunAgentParams, type RunAgentResponse, type SchemaBuilder, type SessionErrorEvent, type SessionResultEvent, type SessionStatusEvent, type SessionStepsEvent, type SessionTimelineFinalizeEvent, type Task, type TaskDeleteBulkResult, type TaskDeleteResult, TaskFailedError, type TaskInputContent, type TaskInputFile, type TaskListItem, type TaskListQuery, type TaskListResult, type TaskOrderBy, type TaskOutputContent, type TaskRerunResult, type TaskStatus, type TaskUndoApprovalBulkResult, type TaskUpdatePayload, Tasks, TelaError, TelaFile, type TelaFileInput, type TelaFileOptions, type TelaFileOptionsWithMimeType, TelaFileSchema, TelaSDK, type TelaSDKOptions, UnprocessableEntityError, type UpdateAgentModelParams, UserAbortError, Vault, createTelaClient, extractTaskOutput, isTelaFile, isTelaFileArray, normalizeTaskStatus, toError };
|
|
4695
|
+
export { APIError, AgentExecutionFailedError, type AgentFileEntry, type AgentInputVariable, type AgentRecord, type AgentRunInputEntry, type AgentRunInputItem, type AgentRunInputs, type AgentRunWebhooks, type AgentTextEntry, type AgentUploadEntry, Agents, type AgentsConfig, AuthenticationError, AuthorizationError, BadRequestError, BaseClient, type BaseClientOptions, type BaseTelaFileOptions, BatchExecutionFailedError, type BatchParams, type BatchQueueConfig, type BatchQueueType, type BatchWebhookConfig, ConflictApiKeyAndJWTError, ConflictAuthMethodsError, ConflictError, ConnectionError, ConnectionTimeout, EmptyFileError, type EnvironmentName, ExecutionFailedError, ExecutionNotStartedError, FileUploadError, type HTTPMethods, InternalServerError, InvalidExecutionModeError, InvalidFileURL, type ListAgentsQuery, MissingApiKeyOrJWTError, MissingAuthError, type NormalizedTaskStatus, NotFoundError, RateLimitError, type RequestOptions, type RunAgentParams, type RunAgentResponse, type SchemaBuilder, type SessionErrorEvent, type SessionResultEvent, type SessionStatusEvent, type SessionStepsEvent, type SessionTimelineFinalizeEvent, type Task, type TaskDeleteBulkResult, type TaskDeleteResult, TaskFailedError, type TaskInputContent, type TaskInputFile, type TaskListItem, type TaskListQuery, type TaskListResult, type TaskOrderBy, type TaskOutputContent, type TaskRerunResult, type TaskStatus, type TaskUndoApprovalBulkResult, type TaskUpdatePayload, Tasks, TelaError, TelaFile, type TelaFileInput, type TelaFileOptions, type TelaFileOptionsWithMimeType, TelaFileSchema, TelaSDK, type TelaSDKOptions, UnprocessableEntityError, type UpdateAgentModelParams, UserAbortError, Vault, createTelaClient, extractTaskOutput, isTelaFile, isTelaFileArray, normalizeTaskStatus, toError };
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import Emittery from 'emittery';
|
|
|
5
5
|
import { agentClient, DataTokenAuthStrategy, APIKeyAuthStrategy } from '@meistrari/agent-sdk';
|
|
6
6
|
export { parseSessionStream, verifyWebhookSignature } from '@meistrari/agent-sdk';
|
|
7
7
|
|
|
8
|
-
const version = "2.
|
|
8
|
+
const version = "2.15.0";
|
|
9
9
|
|
|
10
10
|
var __defProp$b = Object.defineProperty;
|
|
11
11
|
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -2371,6 +2371,7 @@ class CanvasExecution extends Emittery {
|
|
|
2371
2371
|
versionId: this._params.versionId,
|
|
2372
2372
|
messages: this._params.messages,
|
|
2373
2373
|
tags: this._params.tags,
|
|
2374
|
+
environmentName: this._params.environmentName,
|
|
2374
2375
|
label: this._params.label,
|
|
2375
2376
|
webhook_url: this._params.webhookUrl
|
|
2376
2377
|
};
|
|
@@ -4727,6 +4728,11 @@ class Agents {
|
|
|
4727
4728
|
* (`GET /v4/sessions/:id/timeline`).
|
|
4728
4729
|
*/
|
|
4729
4730
|
__publicField$1(this, "fetchTimeline");
|
|
4731
|
+
/**
|
|
4732
|
+
* Fetches the session's cross-turn message history. Pass-through to the
|
|
4733
|
+
* agent-sdk client (`GET /v4/sessions/:id/thread`).
|
|
4734
|
+
*/
|
|
4735
|
+
__publicField$1(this, "fetchThread");
|
|
4730
4736
|
/**
|
|
4731
4737
|
* Cancels a running session. Pass-through to the agent-sdk client
|
|
4732
4738
|
* (`POST /v4/sessions/:id/cancel`).
|
|
@@ -4745,6 +4751,7 @@ class Agents {
|
|
|
4745
4751
|
});
|
|
4746
4752
|
this.streamSession = this.client.streamSession;
|
|
4747
4753
|
this.fetchTimeline = this.client.fetchTimeline;
|
|
4754
|
+
this.fetchThread = this.client.fetchThread;
|
|
4748
4755
|
this.cancelSession = this.client.cancelSession;
|
|
4749
4756
|
this.resolveReference = this.client.resolveReference;
|
|
4750
4757
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/tela-sdk-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/meistrari/tela-sdk-js.git"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"main": "dist/index.mjs",
|
|
9
9
|
"module": "dist/index.mjs",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@meistrari/agent-sdk": "^0.
|
|
11
|
+
"@meistrari/agent-sdk": "^0.7.0",
|
|
12
12
|
"change-case": "5.4.4",
|
|
13
13
|
"emittery": "^1.2.0",
|
|
14
14
|
"minimatch": "10.0.1",
|