@proteos/sdk 0.54.0 → 0.55.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/{chunk-KMNEQP3G.cjs → chunk-3UBIL3WV.cjs} +38 -3
- package/dist/chunk-3UBIL3WV.cjs.map +1 -0
- package/dist/{chunk-OS4IQ5VH.js → chunk-WJYUQBEG.js} +35 -4
- package/dist/chunk-WJYUQBEG.js.map +1 -0
- package/dist/index.cjs +139 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +251 -39
- package/dist/index.d.ts +251 -39
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +91 -75
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/dist/{types-amvSTwJy.d.cts → types-CylP2A4p.d.cts} +48 -7
- package/dist/{types-amvSTwJy.d.ts → types-CylP2A4p.d.ts} +48 -7
- package/package.json +1 -1
- package/src/agent/index.ts +42 -6
- package/src/agent/model-types.ts +193 -0
- package/src/agent/models.ts +67 -0
- package/src/index.ts +20 -1
- package/src/meta/index.ts +6 -0
- package/src/meta/layout/elements.ts +2 -2
- package/src/meta/record-title.ts +50 -0
- package/src/meta/types.ts +25 -5
- package/src/workflow/types.ts +3 -1
- package/dist/chunk-KMNEQP3G.cjs.map +0 -1
- package/dist/chunk-OS4IQ5VH.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PrincipalRef, R as ResponseMeta$1, e as PublicAccessOperation } from './types-
|
|
2
|
-
export { f as App, g as AppConfiguration, h as AppConfigurationSchema, i as AppConfigurationService, j as AppHome, k as AppHomeSchema, l as AppHomeType, m as AppSchema, n as AppService, o as ArrayAttributeMeta, p as AttributeAccessRule, q as AttributeRestrictions, r as AttributeSchema, s as AttributeType, t as AuditFieldsSchema, C as CURRENT_USER_DEFAULT, u as ClientOptions, v as Column, w as ColumnSchema, x as ComparisonOperator, y as Component, z as ComponentSchema, B as ComponentService, D as ContactAddressAttributeKind, E as ContactAddressAttributeMeta, G as ContactAddressAttributeMetaSchema, H as ContactBindingDuplicatePolicy, I as CreateAppConfigurationRequest, J as CreateAppRequest, K as CreateComponentRequest, M as CreateDesignReferenceRequest, N as CreateEntityExtensionRequest, O as CreateEntityRequest, Q as CreateListExtensionRequest, S as CreateListRequest, T as CreateListViewRequest, V as CreateMenuConfigurationExtensionRequest, W as CreateMenuConfigurationRequest, X as CreatePageExtensionRequest, Y as CreatePageRequest, Z as CreateVariableRequest, _ as CurrencyAttributeMeta, $ as CurrencyAttributeMetaSchema, a0 as CurrencySymbolSide, a1 as CurrencyValue, a2 as CurrentUserDefault, a3 as DEFAULT_OPTIONS, a4 as DEFAULT_PAGE_SIZE, a5 as DONE, a6 as DeployModuleRequest, a7 as DesignReference, a8 as DesignReferenceContent, a9 as DesignReferenceSchema, aa as DesignReferenceService, ab as Done, ac as Entity, ad as EntityContactBinding, ae as EntityContactBindingSchema, af as EntityExtension, ag as EntityExtensionSchema, ah as EntityExtensionService, ai as EntitySchema, aj as EntityService, ak as EntityWithSchema, al as EntityWithSchemaSchema, am as EnumAttributeMeta, an as EnumValue, ao as ExtensionPosition, ap as ExtensionPositionSchema, aq as FileAttributeMeta, ar as FileRefSchema, as as FilterElement, at as FilterElementSchema, au as FilterGroup, av as FilterGroupSchema, aw as List, ax as ListAppConfigurationsOptions, ay as ListAppsOptions, az as ListComponentsOptions, aA as ListDesignReferencesOptions, aB as ListEntitiesOptions, aC as ListEntityExtensionsOptions, aD as ListExtension, aE as ListExtensionColumnPlacement, aF as ListExtensionColumnPlacementSchema, aG as ListExtensionSchema, aH as ListExtensionService, aI as ListFn, aJ as ListListExtensionsOptions, aK as ListListViewsOptions, aL as ListListsOptions, aM as ListMenuConfigurationExtensionsOptions, aN as ListMenuConfigurationsOptions, aO as ListModulesOptions, aP as ListPageExtensionsOptions, aQ as ListPagesOptions, aR as ListSchema, aS as ListService, aT as ListVariablesOptions, aU as ListView, aV as ListViewSchema, aW as ListViewService, aX as LogicalOperator, aY as MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, aZ as MenuConfiguration, a_ as MenuConfigurationExtension, a$ as MenuConfigurationExtensionPlacement, b0 as MenuConfigurationExtensionPlacementSchema, b1 as MenuConfigurationExtensionPosition, b2 as MenuConfigurationExtensionPositionSchema, b3 as MenuConfigurationExtensionSchema, b4 as MenuConfigurationExtensionService, b5 as MenuConfigurationSchema, b6 as MenuConfigurationService, b7 as MenuItem, b8 as MenuItemSchema, b9 as MenuItemType, ba as MetaClient, bb as MetaListOptions, bc as Module, bd as ModuleSchema, be as ModuleService, bf as ModuleStatus, bg as OnDeleteAction, bh as OnDeleteActionSchema, bi as PAGE_EXTENSION_ANCHOR_MAIN, bj as PAGE_EXTENSION_ANCHOR_SIDE_PANEL, bk as PLATFORM_ATTRIBUTE_NAMES, bl as PLATFORM_USER_ID, bm as Page, bn as PageAction, bo as PageActionKind, bp as PageActionSchema, bq as PageExtension, br as PageExtensionPlacement, bs as PageExtensionPlacementSchema, bt as PageExtensionSchema, bu as PageExtensionService, bv as PageLayout, bw as PageLayoutSchema, bx as PageSchema, by as PageService, bz as PageType, bA as PublicPageComponent, bB as PublicPageResponse, bC as RelationAttributeMeta, bD as RelationAttributeMetaSchema, bE as RequestOptions, bF as ResolvedClientOptions, bG as ResponseMetaSchema, bH as SortConfig, bI as SortConfigSchema, bJ as SortDirection, bK as Timestamps, bL as TokenProvider, bM as UpdateAppConfigurationRequest, bN as UpdateAppRequest, bO as UpdateComponentRequest, bP as UpdateDesignReferenceRequest, bQ as UpdateEntityExtensionRequest, bR as UpdateEntityRequest, bS as UpdateListExtensionRequest, bT as UpdateListRequest, bU as UpdateListViewRequest, bV as UpdateMenuConfigurationExtensionRequest, bW as UpdateMenuConfigurationRequest, bX as UpdatePageExtensionRequest, bY as UpdatePageRequest, bZ as UpdateVariableRequest, b_ as UserRefSchema, b$ as UserType, c0 as Variable, c1 as VariableSchema, c2 as VariableService, c3 as acceptsCurrentUserDefault, c4 as allCurrencyCodes, c5 as createIterator, c6 as createListResultSchema, c7 as currencyLabel, c8 as currencySymbol, c9 as currencySymbolSide, ca as formatAmount, cb as formatMoney, cc as isCurrentUserDefault, cd as isPlatformAttributeName, ce as localeNumberSeparators, cf as parseAmount, cg as parseContactAddressMeta, ch as parseCurrencyMeta, ci as parseFileMeta, cj as parseRelationMeta, ck as platformAttributes, cl as resolveOptions } from './types-
|
|
1
|
+
import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PrincipalRef, R as ResponseMeta$1, e as PublicAccessOperation } from './types-CylP2A4p.js';
|
|
2
|
+
export { f as App, g as AppConfiguration, h as AppConfigurationSchema, i as AppConfigurationService, j as AppHome, k as AppHomeSchema, l as AppHomeType, m as AppSchema, n as AppService, o as ArrayAttributeMeta, p as AttributeAccessRule, q as AttributeRestrictions, r as AttributeSchema, s as AttributeType, t as AuditFieldsSchema, C as CURRENT_USER_DEFAULT, u as ClientOptions, v as Column, w as ColumnSchema, x as ComparisonOperator, y as Component, z as ComponentSchema, B as ComponentService, D as ContactAddressAttributeKind, E as ContactAddressAttributeMeta, G as ContactAddressAttributeMetaSchema, H as ContactBindingDuplicatePolicy, I as CreateAppConfigurationRequest, J as CreateAppRequest, K as CreateComponentRequest, M as CreateDesignReferenceRequest, N as CreateEntityExtensionRequest, O as CreateEntityRequest, Q as CreateListExtensionRequest, S as CreateListRequest, T as CreateListViewRequest, V as CreateMenuConfigurationExtensionRequest, W as CreateMenuConfigurationRequest, X as CreatePageExtensionRequest, Y as CreatePageRequest, Z as CreateVariableRequest, _ as CurrencyAttributeMeta, $ as CurrencyAttributeMetaSchema, a0 as CurrencySymbolSide, a1 as CurrencyValue, a2 as CurrentUserDefault, a3 as DEFAULT_OPTIONS, a4 as DEFAULT_PAGE_SIZE, a5 as DONE, a6 as DeployModuleRequest, a7 as DesignReference, a8 as DesignReferenceContent, a9 as DesignReferenceSchema, aa as DesignReferenceService, ab as Done, ac as Entity, ad as EntityContactBinding, ae as EntityContactBindingSchema, af as EntityExtension, ag as EntityExtensionSchema, ah as EntityExtensionService, ai as EntitySchema, aj as EntityService, ak as EntityWithSchema, al as EntityWithSchemaSchema, am as EnumAttributeMeta, an as EnumValue, ao as ExtensionPosition, ap as ExtensionPositionSchema, aq as FileAttributeMeta, ar as FileRefSchema, as as FilterElement, at as FilterElementSchema, au as FilterGroup, av as FilterGroupSchema, aw as List, ax as ListAppConfigurationsOptions, ay as ListAppsOptions, az as ListComponentsOptions, aA as ListDesignReferencesOptions, aB as ListEntitiesOptions, aC as ListEntityExtensionsOptions, aD as ListExtension, aE as ListExtensionColumnPlacement, aF as ListExtensionColumnPlacementSchema, aG as ListExtensionSchema, aH as ListExtensionService, aI as ListFn, aJ as ListListExtensionsOptions, aK as ListListViewsOptions, aL as ListListsOptions, aM as ListMenuConfigurationExtensionsOptions, aN as ListMenuConfigurationsOptions, aO as ListModulesOptions, aP as ListPageExtensionsOptions, aQ as ListPagesOptions, aR as ListSchema, aS as ListService, aT as ListVariablesOptions, aU as ListView, aV as ListViewSchema, aW as ListViewService, aX as LogicalOperator, aY as MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, aZ as MenuConfiguration, a_ as MenuConfigurationExtension, a$ as MenuConfigurationExtensionPlacement, b0 as MenuConfigurationExtensionPlacementSchema, b1 as MenuConfigurationExtensionPosition, b2 as MenuConfigurationExtensionPositionSchema, b3 as MenuConfigurationExtensionSchema, b4 as MenuConfigurationExtensionService, b5 as MenuConfigurationSchema, b6 as MenuConfigurationService, b7 as MenuItem, b8 as MenuItemSchema, b9 as MenuItemType, ba as MetaClient, bb as MetaListOptions, bc as Module, bd as ModuleSchema, be as ModuleService, bf as ModuleStatus, bg as OnDeleteAction, bh as OnDeleteActionSchema, bi as PAGE_EXTENSION_ANCHOR_MAIN, bj as PAGE_EXTENSION_ANCHOR_SIDE_PANEL, bk as PLATFORM_ATTRIBUTE_NAMES, bl as PLATFORM_USER_ID, bm as Page, bn as PageAction, bo as PageActionKind, bp as PageActionSchema, bq as PageExtension, br as PageExtensionPlacement, bs as PageExtensionPlacementSchema, bt as PageExtensionSchema, bu as PageExtensionService, bv as PageLayout, bw as PageLayoutSchema, bx as PageSchema, by as PageService, bz as PageType, bA as PublicPageComponent, bB as PublicPageResponse, bC as RelationAttributeMeta, bD as RelationAttributeMetaSchema, bE as RequestOptions, bF as ResolvedClientOptions, bG as ResponseMetaSchema, bH as SortConfig, bI as SortConfigSchema, bJ as SortDirection, bK as Timestamps, bL as TokenProvider, bM as UpdateAppConfigurationRequest, bN as UpdateAppRequest, bO as UpdateComponentRequest, bP as UpdateDesignReferenceRequest, bQ as UpdateEntityExtensionRequest, bR as UpdateEntityRequest, bS as UpdateListExtensionRequest, bT as UpdateListRequest, bU as UpdateListViewRequest, bV as UpdateMenuConfigurationExtensionRequest, bW as UpdateMenuConfigurationRequest, bX as UpdatePageExtensionRequest, bY as UpdatePageRequest, bZ as UpdateVariableRequest, b_ as UserRefSchema, b$ as UserType, c0 as Variable, c1 as VariableSchema, c2 as VariableService, c3 as acceptsCurrentUserDefault, c4 as allCurrencyCodes, c5 as createIterator, c6 as createListResultSchema, c7 as currencyLabel, c8 as currencySymbol, c9 as currencySymbolSide, ca as formatAmount, cb as formatMoney, cc as isCurrentUserDefault, cd as isPlatformAttributeName, ce as localeNumberSeparators, cf as parseAmount, cg as parseContactAddressMeta, ch as parseCurrencyMeta, ci as parseFileMeta, cj as parseRelationMeta, ck as platformAttributes, cl as resolveOptions } from './types-CylP2A4p.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -456,40 +456,6 @@ interface McpServerService {
|
|
|
456
456
|
syncDependents(key: string): Promise<DependentSyncResult[]>;
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
-
/**
|
|
460
|
-
* Service for managing Prompts — reusable, Liquid-templated instruction texts,
|
|
461
|
-
* versioned like storage files. A `body` change on update forks a new immutable
|
|
462
|
-
* version; metadata-only updates do not.
|
|
463
|
-
*/
|
|
464
|
-
interface PromptService {
|
|
465
|
-
/** Lists prompts, auto-paginating. */
|
|
466
|
-
list(options?: ListPromptsOptions): PageIterator<Prompt, ListPromptsOptions>;
|
|
467
|
-
/** Fetches a single page of prompts with pagination metadata. */
|
|
468
|
-
listPage(options?: ListPromptsOptions): Promise<ListResult<Prompt>>;
|
|
469
|
-
/** Gets a prompt (with its current version) by key. @throws {ProteosError} 404. */
|
|
470
|
-
get(key: string): Promise<Prompt>;
|
|
471
|
-
/** Creates a new prompt with version 1. @throws {ProteosError} 400/409. */
|
|
472
|
-
create(request: CreatePromptRequest): Promise<Prompt>;
|
|
473
|
-
/** Patches a prompt; a new `body` forks a version. @throws {ProteosError} 404/400. */
|
|
474
|
-
update(key: string, request: UpdatePromptRequest): Promise<Prompt>;
|
|
475
|
-
/** Deletes a prompt and all its versions. @throws {ProteosError} 404. */
|
|
476
|
-
delete(key: string): Promise<void>;
|
|
477
|
-
/** Lists all immutable versions of a prompt, newest first. */
|
|
478
|
-
listVersions(key: string): Promise<PromptVersion[]>;
|
|
479
|
-
/** Gets a specific immutable version by number. @throws {ProteosError} 404. */
|
|
480
|
-
getVersion(key: string, number: number): Promise<PromptVersion>;
|
|
481
|
-
/**
|
|
482
|
-
* Lists the agents referencing this prompt, each stamped stale when the prompt
|
|
483
|
-
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
484
|
-
*/
|
|
485
|
-
listDependents(key: string): Promise<DependentAgent[]>;
|
|
486
|
-
/**
|
|
487
|
-
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
488
|
-
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
489
|
-
*/
|
|
490
|
-
syncDependents(key: string): Promise<DependentSyncResult[]>;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
459
|
/**
|
|
494
460
|
* Types for the agent-service Sessions API — a conversation with a configured
|
|
495
461
|
* Agent.
|
|
@@ -836,6 +802,239 @@ interface SessionStreamOptions {
|
|
|
836
802
|
signal?: AbortSignal;
|
|
837
803
|
}
|
|
838
804
|
|
|
805
|
+
/**
|
|
806
|
+
* Types for the stateless model endpoints of the Proteos Agent Service API —
|
|
807
|
+
* `POST /agents/v1/models/generate` and `POST /agents/v1/models/decide`.
|
|
808
|
+
*
|
|
809
|
+
* Hand-written mirror of the Go models in `go.proteos.ai/model/agent`
|
|
810
|
+
* (`generation.go`, `decision.go` + `api/generation-requests.go`,
|
|
811
|
+
* `api/decision-requests.go`). Field names match the snake_case wire format
|
|
812
|
+
* exactly, including enum values.
|
|
813
|
+
*/
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Why the model stopped generating. An open string so a new provider reason
|
|
817
|
+
* never breaks decoding; the key distinction is `end_turn` (complete) vs
|
|
818
|
+
* `max_tokens` (truncated).
|
|
819
|
+
*/
|
|
820
|
+
type ModelStopReason = 'end_turn' | 'max_tokens' | 'stop_sequence' | (string & {});
|
|
821
|
+
/**
|
|
822
|
+
* Body of `POST /agents/v1/models/generate` — a single, stateless model call:
|
|
823
|
+
* content blocks in, one assistant message out. No event log, no tools, no
|
|
824
|
+
* multi-turn state.
|
|
825
|
+
*/
|
|
826
|
+
interface GenerateRequest {
|
|
827
|
+
/** Model id + sampling knobs. Omitted (or an empty `model_id`) resolves to the service default. */
|
|
828
|
+
model?: Partial<ModelConfig>;
|
|
829
|
+
/** Optional system prompt steering the response. */
|
|
830
|
+
system?: string;
|
|
831
|
+
/** The message body the model answers — text and file blocks (a file-only body is valid). */
|
|
832
|
+
content: ContentBlock$1[];
|
|
833
|
+
/**
|
|
834
|
+
* JSON Schema of the structured reply. When set, generation is forced through a
|
|
835
|
+
* schema-constrained tool and the structured value comes back as `output`.
|
|
836
|
+
*/
|
|
837
|
+
output_schema?: Record<string, unknown>;
|
|
838
|
+
}
|
|
839
|
+
/** The assistant's reply to a {@link GenerateRequest}. */
|
|
840
|
+
interface GenerationResult {
|
|
841
|
+
/** The returned text blocks (usually empty on a schema-constrained call). */
|
|
842
|
+
content: TextBlock[];
|
|
843
|
+
stop_reason?: ModelStopReason;
|
|
844
|
+
/** The model that produced the reply (resolved id). */
|
|
845
|
+
model_id: string;
|
|
846
|
+
usage: ModelUsage;
|
|
847
|
+
/** The structured value of a schema-constrained generation; absent otherwise. */
|
|
848
|
+
output?: unknown;
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* The text shape a decision provider reads: a string, a JSON object, or an
|
|
852
|
+
* array — never `null`, a number, or a boolean. Carries the state under
|
|
853
|
+
* judgment, a question's instructions, every criteria description, and the
|
|
854
|
+
* legend echoed back on a score. Structure passes through verbatim, so
|
|
855
|
+
* instructions can be structured guidance (named fields such as `what` /
|
|
856
|
+
* `not_for` / `examples`, backtick paths into the state like
|
|
857
|
+
* `` `ticket.messages[0].text` ``).
|
|
858
|
+
*/
|
|
859
|
+
type StructuredText = string | Record<string, unknown> | unknown[];
|
|
860
|
+
/** Discriminates a {@link DecisionQuestion} and its {@link DecisionAnswer}. */
|
|
861
|
+
type DecisionQuestionType = 'boolean' | 'choice' | 'score';
|
|
862
|
+
/** Describes the two outcomes of a {@link BooleanQuestion}. */
|
|
863
|
+
interface BooleanCriteria {
|
|
864
|
+
true: StructuredText;
|
|
865
|
+
false: StructuredText;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* "Is this statement true?" — answered with the calibrated probability that it
|
|
869
|
+
* is. `criteria` optionally spells out what makes the statement hold (true) or
|
|
870
|
+
* not (false) when the boundary is subtle.
|
|
871
|
+
*/
|
|
872
|
+
interface BooleanQuestion {
|
|
873
|
+
type: 'boolean';
|
|
874
|
+
instructions: StructuredText;
|
|
875
|
+
criteria?: BooleanCriteria;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* "Which one of these?" — `criteria` maps each option name to its description;
|
|
879
|
+
* options are unordered. Option-count limits are the provider's.
|
|
880
|
+
*/
|
|
881
|
+
interface ChoiceQuestion<Option extends string = string> {
|
|
882
|
+
type: 'choice';
|
|
883
|
+
instructions: StructuredText;
|
|
884
|
+
criteria: Record<Option, StructuredText>;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* "Where on this scale?" — `criteria` is the ordered list of level
|
|
888
|
+
* descriptions; the level number is the position (0-based). Every level must
|
|
889
|
+
* be described. Level-count limits are the provider's.
|
|
890
|
+
*/
|
|
891
|
+
interface ScoreQuestion {
|
|
892
|
+
type: 'score';
|
|
893
|
+
instructions: StructuredText;
|
|
894
|
+
criteria: StructuredText[];
|
|
895
|
+
}
|
|
896
|
+
/** One atomic question over the shared state, discriminated by `type`. */
|
|
897
|
+
type DecisionQuestion = BooleanQuestion | ChoiceQuestion | ScoreQuestion;
|
|
898
|
+
/** Caller-keyed questions; answers come back under the same keys. */
|
|
899
|
+
type DecisionQuestions = Record<string, DecisionQuestion>;
|
|
900
|
+
/**
|
|
901
|
+
* Body of `POST /agents/v1/models/decide` — one text-only state and a map of
|
|
902
|
+
* atomic questions answered in parallel with calibrated probabilities.
|
|
903
|
+
*
|
|
904
|
+
* Only `model.model_id` is meaningful for a decision; the sampling knobs of
|
|
905
|
+
* {@link ModelConfig} are rejected with `invalid_decision_request`.
|
|
906
|
+
*/
|
|
907
|
+
interface DecideRequest<Questions extends DecisionQuestions = DecisionQuestions> {
|
|
908
|
+
model?: Partial<Pick<ModelConfig, 'model_id'>>;
|
|
909
|
+
state: StructuredText;
|
|
910
|
+
questions: Questions;
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Answer to a {@link BooleanQuestion}: `probability` is P(true); `boolean` is
|
|
914
|
+
* the argmax (probability > 0.5); `confidence` is |2p − 1|.
|
|
915
|
+
*/
|
|
916
|
+
interface BooleanAnswer {
|
|
917
|
+
type: 'boolean';
|
|
918
|
+
boolean: boolean;
|
|
919
|
+
probability: number;
|
|
920
|
+
confidence: number;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Answer to a {@link ChoiceQuestion}: `choice` is the highest-probability
|
|
924
|
+
* option; `probabilities` is the full distribution keyed by option name.
|
|
925
|
+
*/
|
|
926
|
+
interface ChoiceAnswer<Option extends string = string> {
|
|
927
|
+
type: 'choice';
|
|
928
|
+
choice: Option;
|
|
929
|
+
probabilities: Record<Option, number>;
|
|
930
|
+
confidence: number;
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Answer to a {@link ScoreQuestion}: `score` is the probability-weighted mean
|
|
934
|
+
* of the level numbers (so it can fall between levels); `legend` echoes the
|
|
935
|
+
* level descriptions and `probabilities` the distribution, both indexed by
|
|
936
|
+
* level.
|
|
937
|
+
*/
|
|
938
|
+
interface ScoreAnswer {
|
|
939
|
+
type: 'score';
|
|
940
|
+
score: number;
|
|
941
|
+
legend: StructuredText[];
|
|
942
|
+
probabilities: number[];
|
|
943
|
+
confidence: number;
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* The calibrated answer to one question, discriminated by `type`. Every
|
|
947
|
+
* variant carries `confidence` = (n·peak − 1)/(n − 1) over its distribution,
|
|
948
|
+
* so gating code can threshold without switching on the type.
|
|
949
|
+
*/
|
|
950
|
+
type DecisionAnswer = BooleanAnswer | ChoiceAnswer | ScoreAnswer;
|
|
951
|
+
/** The answer type a given question produces (drives typed `answers`). */
|
|
952
|
+
type DecisionAnswerFor<Question extends DecisionQuestion> = Question extends BooleanQuestion ? BooleanAnswer : Question extends ChoiceQuestion<infer Option> ? ChoiceAnswer<Option> : Question extends ScoreQuestion ? ScoreAnswer : never;
|
|
953
|
+
/**
|
|
954
|
+
* The provider's reply to a {@link DecideRequest}: one answer per question key
|
|
955
|
+
* (typed from the questions you sent), the model that produced them, and token
|
|
956
|
+
* usage.
|
|
957
|
+
*/
|
|
958
|
+
interface DecisionResult<Questions extends DecisionQuestions = DecisionQuestions> {
|
|
959
|
+
/** The model that produced the answers (resolved id, e.g. `jev-1.13.0`). */
|
|
960
|
+
model_id: string;
|
|
961
|
+
answers: {
|
|
962
|
+
[Key in keyof Questions]: DecisionAnswerFor<Questions[Key]>;
|
|
963
|
+
};
|
|
964
|
+
usage: ModelUsage;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Service for the stateless model calls — one request in, one reply out, no
|
|
969
|
+
* session, no event log:
|
|
970
|
+
*
|
|
971
|
+
* - `generate` — free text or schema-constrained structured output from an LLM.
|
|
972
|
+
* - `decide` — calibrated typed answers (boolean | choice | score) with
|
|
973
|
+
* probabilities and confidence, for snap judgments inside code paths
|
|
974
|
+
* (routing, triage, classification, gates). No prose comes back; compose the
|
|
975
|
+
* answers in code and threshold on `confidence`.
|
|
976
|
+
*
|
|
977
|
+
* Both need the `agent-sessions:write` permission.
|
|
978
|
+
*/
|
|
979
|
+
interface ModelService {
|
|
980
|
+
/**
|
|
981
|
+
* Runs a single model call and returns the assistant message.
|
|
982
|
+
* @throws {ProteosError} 400 `invalid_generation_request` / `unsupported_file_type` /
|
|
983
|
+
* `model_provider_rejected_request`; 429 `model_provider_rate_limited`;
|
|
984
|
+
* 502 `model_provider_failed`.
|
|
985
|
+
*/
|
|
986
|
+
generate(request: GenerateRequest): Promise<GenerationResult>;
|
|
987
|
+
/**
|
|
988
|
+
* Answers typed questions about a text state with calibrated probabilities.
|
|
989
|
+
* `answers` is typed from the `questions` you pass, so
|
|
990
|
+
* `result.answers.topic.choice` narrows to the option names you declared.
|
|
991
|
+
*
|
|
992
|
+
* Semantic limits (option / level counts, empty questions, unknown model ids)
|
|
993
|
+
* are the provider's and surface as `decision_provider_rejected_request` with
|
|
994
|
+
* its message.
|
|
995
|
+
* @throws {ProteosError} 400 `invalid_decision_request` (shape) /
|
|
996
|
+
* `decision_provider_rejected_request` (provider rule); 429
|
|
997
|
+
* `decision_provider_rate_limited`; 502 `decision_provider_failed` /
|
|
998
|
+
* `decision_provider_invalid_response`; 503 `decision_provider_unavailable`
|
|
999
|
+
* when the provider key is not configured.
|
|
1000
|
+
*/
|
|
1001
|
+
decide<Questions extends DecisionQuestions>(request: DecideRequest<Questions>): Promise<DecisionResult<Questions>>;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* Service for managing Prompts — reusable, Liquid-templated instruction texts,
|
|
1006
|
+
* versioned like storage files. A `body` change on update forks a new immutable
|
|
1007
|
+
* version; metadata-only updates do not.
|
|
1008
|
+
*/
|
|
1009
|
+
interface PromptService {
|
|
1010
|
+
/** Lists prompts, auto-paginating. */
|
|
1011
|
+
list(options?: ListPromptsOptions): PageIterator<Prompt, ListPromptsOptions>;
|
|
1012
|
+
/** Fetches a single page of prompts with pagination metadata. */
|
|
1013
|
+
listPage(options?: ListPromptsOptions): Promise<ListResult<Prompt>>;
|
|
1014
|
+
/** Gets a prompt (with its current version) by key. @throws {ProteosError} 404. */
|
|
1015
|
+
get(key: string): Promise<Prompt>;
|
|
1016
|
+
/** Creates a new prompt with version 1. @throws {ProteosError} 400/409. */
|
|
1017
|
+
create(request: CreatePromptRequest): Promise<Prompt>;
|
|
1018
|
+
/** Patches a prompt; a new `body` forks a version. @throws {ProteosError} 404/400. */
|
|
1019
|
+
update(key: string, request: UpdatePromptRequest): Promise<Prompt>;
|
|
1020
|
+
/** Deletes a prompt and all its versions. @throws {ProteosError} 404. */
|
|
1021
|
+
delete(key: string): Promise<void>;
|
|
1022
|
+
/** Lists all immutable versions of a prompt, newest first. */
|
|
1023
|
+
listVersions(key: string): Promise<PromptVersion[]>;
|
|
1024
|
+
/** Gets a specific immutable version by number. @throws {ProteosError} 404. */
|
|
1025
|
+
getVersion(key: string, number: number): Promise<PromptVersion>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Lists the agents referencing this prompt, each stamped stale when the prompt
|
|
1028
|
+
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
1029
|
+
*/
|
|
1030
|
+
listDependents(key: string): Promise<DependentAgent[]>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
1033
|
+
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
1034
|
+
*/
|
|
1035
|
+
syncDependents(key: string): Promise<DependentSyncResult[]>;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
839
1038
|
/**
|
|
840
1039
|
* Service for managing agent Sessions — a conversation with a configured Agent,
|
|
841
1040
|
* backed by an append-only event log. Covers the full agent-service session
|
|
@@ -1008,7 +1207,8 @@ interface ToolsetService {
|
|
|
1008
1207
|
*
|
|
1009
1208
|
* Manages the AI-agent configuration domain: Agents, Prompts (versioned),
|
|
1010
1209
|
* Skills (versioned bundles), Tools, and MCP Servers — all org-scoped and keyed
|
|
1011
|
-
* by an immutable kebab-case `key
|
|
1210
|
+
* by an immutable kebab-case `key` — plus the stateless model calls
|
|
1211
|
+
* (`models.generate`, `models.decide`) and chat sessions.
|
|
1012
1212
|
*
|
|
1013
1213
|
* @example
|
|
1014
1214
|
* ```ts
|
|
@@ -1019,6 +1219,15 @@ interface ToolsetService {
|
|
|
1019
1219
|
*
|
|
1020
1220
|
* const agents = await agent.agents.list().all();
|
|
1021
1221
|
* const prompt = await agent.prompts.get('revenue-brief');
|
|
1222
|
+
*
|
|
1223
|
+
* const { answers } = await agent.models.decide({
|
|
1224
|
+
* state: { message: 'My card was charged twice!' },
|
|
1225
|
+
* questions: {
|
|
1226
|
+
* refund_requested: { type: 'boolean', instructions: 'Does the customer ask for money back?' },
|
|
1227
|
+
* topic: { type: 'choice', instructions: 'Topic?', criteria: { billing: 'charges', other: 'else' } },
|
|
1228
|
+
* },
|
|
1229
|
+
* });
|
|
1230
|
+
* if (answers.topic.confidence > 0.8) route(answers.topic.choice);
|
|
1022
1231
|
* ```
|
|
1023
1232
|
*/
|
|
1024
1233
|
declare class AgentClient {
|
|
@@ -1034,6 +1243,8 @@ declare class AgentClient {
|
|
|
1034
1243
|
readonly toolsets: ToolsetService;
|
|
1035
1244
|
/** Service for managing MCP server registrations. */
|
|
1036
1245
|
readonly mcpServers: McpServerService;
|
|
1246
|
+
/** Service for stateless model calls: `generate` (one message out) and `decide` (calibrated typed answers). */
|
|
1247
|
+
readonly models: ModelService;
|
|
1037
1248
|
/** Service for managing chat sessions (conversations + event log + stream). */
|
|
1038
1249
|
readonly sessions: SessionService;
|
|
1039
1250
|
/**
|
|
@@ -8773,7 +8984,8 @@ type NodeGroup = 'trigger' | 'action' | 'transform' | 'flow';
|
|
|
8773
8984
|
/** Control type of one descriptor property (n8n INodeProperties paradigm). */
|
|
8774
8985
|
type PropertyType = 'string' | 'number' | 'boolean' | 'options' | 'multi_options' | 'json' | 'date_time' | 'color' | 'notice' | 'hidden' | 'collection' | 'fixed_collection' | 'credentials_select' | 'button'
|
|
8775
8986
|
/** Edits a platform attribute list (`Attribute[]`) via the shared attribute schema builder. */
|
|
8776
|
-
|
|
8987
|
+
/** Edits a decision-question map (model-decide `questions`) via the questions builder, with a raw-JSON mode. */
|
|
8988
|
+
| 'decision_questions' | 'attribute_schema' | 'resource_locator' | 'resource_mapper' | 'filter' | 'assignment_collection';
|
|
8777
8989
|
/**
|
|
8778
8990
|
* One named input or output port. Port keys are stable identifiers referenced
|
|
8779
8991
|
* by connections (never indexes).
|
|
@@ -9348,4 +9560,4 @@ declare class WorkflowClient {
|
|
|
9348
9560
|
constructor(client: ProteosClient);
|
|
9349
9561
|
}
|
|
9350
9562
|
|
|
9351
|
-
export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddTeamMemberRequest, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type ApiKey, type AppendEventRequest, type ApplySendingLimitPresetRequest, type AssignPermissionRequest, type AssignRoleRequest, type Assignment, type AttachContactAddressRequest, type AttachConversationBriefRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AuthoredTranscriptTurn, type AutomatedFilterConfig, type AutomatedSignal, type AvailabilityConstraint, type AvailabilityConstraintService, type AvailabilityKind, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type BookSchedulingLinkRequest, type BookSchedulingLinkResponse, type BookingContact, type BounceClassification, type BounceKind, type Calendar, type CalendarAttendee, type CalendarAttendeeRequest, type CalendarConnection, type CalendarConnectionService, type CalendarConnectionStatus, type CalendarEvent, type CalendarEventService, type CalendarEventType, type CalendarEventTypeService, type CalendarEventsResponse, type CalendarProvider, type CalendarService, type CalendarSync, type CalendarSyncStatus, type CalendarVisibility, type CalendarWatch, type CallStatus, type CallTokenResponse, type CancelPublicCalendarEventRequest, type Channel, type ChannelAction, type ChannelActionCapability, type ChannelActionParams, type ChannelActionResponse, type ChannelActionService, type ChannelActionStatus, type ChannelActionTargetKind, type ChannelActionType, type ChannelEvent, type ChannelEventService, type ChannelEventType, type ClientEventType, type ClientToolSchema, type ConferencingProvider, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, type ConnectorCatalogEntry, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKey, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactGroup, type ContactGroupService, type ContactGroupSource, type ContactMergeProposal, type ContactRecordLink, type ContactRecordLinkSource, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, type ConversationBrief, type ConversationBriefService, type ConversationBriefStatus, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateApiKeyRequest, type CreateAvailabilityConstraintRequest, type CreateCalendarConnectionRequest, type CreateCalendarEventRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateContactGroupRequest, type CreateContactRecordLinkRequest, type CreateContactRequest, type CreateConversationBriefRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSchedulingLinkRequest, type CreateSendingRuleRequest, type CreateSessionRequest, type CreateSpaceRequest, type CreateTeamRequest, type CreateToneProfileSetupRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateTranscriptionFromTextRequest, type CreateUserRequest, type CreateWorkflowRequest, type CreatedApiKey, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmailDnsRecord, type EmailDomainStatus, type EmailEngagementQuality, type EmailHealth, type EmailHealthWindow, type EmailIp, type EmailProviderHealth, type EmailProviderStats, type EmailSender, type EmailSenderStatus, type EmailSuppression, type EmailSuppressionCounts, type EmailSuppressionKind, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventLocation, type EventSource, type EventStatus, type EventTransparency, type EventTriggerParams, type EventType, type EventVerb, type EventVisibility, type EventWriteStatus, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, type FrequencyCapRuleConfig, FunctionsClient, type GetConnectionHealthQuery, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GetPublicSlotsQuery, type GetSlotsRequest, type GetSlotsResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type HostsRequest, type InlineLinkRequest, type InmailParams, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvitationParams, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type KnowledgeSpace, type LabelService, type LimitRuleConfig, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListAvailabilityConstraintsQuery, type ListCalendarConnectionsQuery, type ListCalendarEventTypesQuery, type ListCalendarEventsQuery, type ListCalendarsQuery, type ListChannelActionsQuery, type ListChannelEventsQuery, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactGroupsQuery, type ListContactMergeProposalsQuery, type ListContactRecordLinksQuery, type ListContactsQuery, type ListConversationBriefsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListProfilesOptions, type ListPromptsOptions, type ListRecordDuplicatesQuery, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse$1 as ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSchedulingLinksQuery, type ListSendingLimitPresetsQuery, type ListSendingRulesQuery, type ListSessionsOptions, type ListSkillsOptions, type ListSpacesOptions, type ListTeamMembersOptions, type ListTeamsOptions, type ListToneProfileSetupsQuery, type ListToneProfilesQuery, type ListToolsOptions, type ListToolsetsOptions, type ListUserProfileAssignmentsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type LocationKind, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDelivery, type MessageDeliveryStatus, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MintCallTokenRequest, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type NotifyMode, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type ParticipationStatus, type PerformChannelActionRequest, type Permission, type PermissionEventSource, type PermissionEventType, type PhoneNumber, type PhoneNumberRouting, type PhoneNumberStatus, type PlatformBinding, type PlatformEntity, type PlatformEvent, type PortSpec, type Profile, ProfileSchema, type ProfileService, type ProfileVisitParams, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublicBookSchedulingLinkResponse, type PublicCalendarEvent, type PublicCalendarEventType, type PublicEventLocation, type PublicHost, type PublicSchedulingLink, type PublicSchedulingService, type PublishContactObservationsResponse, type PublishEventRequest, type PutCalendarEventTypeRequest, type PutSchedulingProfileRequest, type QueryBinding, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordDuplicate, type RecordDuplicateService, type RecordDuplicateSource, type RecordDuplicateStatus, type RecordLinkService, type RecordPermissionEventRequest, type RecordRef, type RecordService, type RecurrenceScope, type RedriveResult, type RescheduleHost, type ReschedulePublicCalendarEventRequest, type ResolveToneProfileQuery, type RespondCalendarEventRequest, type RespondChannelActionRequest, ResponseMeta$1 as ResponseMeta, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RoutingTarget, type RunWorkflowRequest, SCOPED_PLATFORM_ENTITY_SLUGS, SchedulingClient, type SchedulingLink, type SchedulingLinkService, type ListResponse as SchedulingListResponse, type SchedulingProfile, type SchedulingProfileService, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendEligibility, type SendEligibilityRequest, type SendMessageRequest, type SendRecipient, type SendingLimitPreset, type SendingPeriod, type SendingRule, type SendingRuleConfig, type SendingRuleService, type SendingRuleType, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type Skill, type SkillBundle, type SkillService, type SkillVersion, type Slot, type SlotParameters, type SlotService, type SlotUnavailability, type SlotUnavailabilityReason, type SpaceService, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type SyncConnectionRequest, type SystemSource, type TailOptions, type Team, type TeamMember, type TeamService, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type ToneProfile, type ToneProfileScope, type ToneProfileService, type ToneProfileSetup, type ToneProfileSetupStatus, type ToneProfileSource, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Toolset, type ToolsetKind, type ToolsetService, type ToolsetToolSummary, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TranscriptTurn, type Transcription, type TranscriptionReviewStatus, type TranscriptionStatus, type TriggerKind, type Turn, UNASSIGNED_SPACE_SLUG, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateAvailabilityConstraintRequest, type UpdateCalendarConnectionRequest, type UpdateCalendarEventRequest, type UpdateCalendarEventTypeRequest, type UpdateCalendarRequest, type UpdateCalendarSyncRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactGroupRequest, type UpdateContactRequest, type UpdateConversationBriefRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateMeRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePhoneNumberRequest, type UpdateProfileRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateSchedulingLinkRequest, type UpdateSendingRuleRequest, type UpdateSpaceRequest, type UpdateTeamRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type UpsertToneProfileRequest, type User, type UserMessagePayload, type UserProfileAssignment, UserProfileAssignmentSchema, type UserProfileAssignmentService, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, type UserRoleAssignmentService, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WarmupRuleConfig, type WebhookTriggerParams, type Weekday, type WindowDay, type WindowRuleConfig, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isShareable, isUnauthorized, parseErrorResponse, shareRouteFor, toQueryParams, toQueryString };
|
|
9563
|
+
export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddTeamMemberRequest, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentService, type AllFilterConfig, type ApiErrorResponse, type ApiKey, type AppendEventRequest, type ApplySendingLimitPresetRequest, type AssignPermissionRequest, type AssignRoleRequest, type Assignment, type AttachContactAddressRequest, type AttachConversationBriefRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AuthoredTranscriptTurn, type AutomatedFilterConfig, type AutomatedSignal, type AvailabilityConstraint, type AvailabilityConstraintService, type AvailabilityKind, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type BookSchedulingLinkRequest, type BookSchedulingLinkResponse, type BookingContact, type BooleanAnswer, type BooleanCriteria, type BooleanQuestion, type BounceClassification, type BounceKind, type Calendar, type CalendarAttendee, type CalendarAttendeeRequest, type CalendarConnection, type CalendarConnectionService, type CalendarConnectionStatus, type CalendarEvent, type CalendarEventService, type CalendarEventType, type CalendarEventTypeService, type CalendarEventsResponse, type CalendarProvider, type CalendarService, type CalendarSync, type CalendarSyncStatus, type CalendarVisibility, type CalendarWatch, type CallStatus, type CallTokenResponse, type CancelPublicCalendarEventRequest, type Channel, type ChannelAction, type ChannelActionCapability, type ChannelActionParams, type ChannelActionResponse, type ChannelActionService, type ChannelActionStatus, type ChannelActionTargetKind, type ChannelActionType, type ChannelEvent, type ChannelEventService, type ChannelEventType, type ChoiceAnswer, type ChoiceQuestion, type ClientEventType, type ClientToolSchema, type ConferencingProvider, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, type ConnectorCatalogEntry, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKey, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactGroup, type ContactGroupService, type ContactGroupSource, type ContactMergeProposal, type ContactRecordLink, type ContactRecordLinkSource, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, type ConversationBrief, type ConversationBriefService, type ConversationBriefStatus, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateApiKeyRequest, type CreateAvailabilityConstraintRequest, type CreateCalendarConnectionRequest, type CreateCalendarEventRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateContactGroupRequest, type CreateContactRecordLinkRequest, type CreateContactRequest, type CreateConversationBriefRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSchedulingLinkRequest, type CreateSendingRuleRequest, type CreateSessionRequest, type CreateSpaceRequest, type CreateTeamRequest, type CreateToneProfileSetupRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateTranscriptionFromTextRequest, type CreateUserRequest, type CreateWorkflowRequest, type CreatedApiKey, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DecideRequest, type DecisionAnswer, type DecisionAnswerFor, type DecisionQuestion, type DecisionQuestionType, type DecisionQuestions, type DecisionResult, type DependentAgent, type DependentSyncResult, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmailDnsRecord, type EmailDomainStatus, type EmailEngagementQuality, type EmailHealth, type EmailHealthWindow, type EmailIp, type EmailProviderHealth, type EmailProviderStats, type EmailSender, type EmailSenderStatus, type EmailSuppression, type EmailSuppressionCounts, type EmailSuppressionKind, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventLocation, type EventSource, type EventStatus, type EventTransparency, type EventTriggerParams, type EventType, type EventVerb, type EventVisibility, type EventWriteStatus, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, type FrequencyCapRuleConfig, FunctionsClient, type GenerateRequest, type GenerationResult, type GetConnectionHealthQuery, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GetPublicSlotsQuery, type GetSlotsRequest, type GetSlotsResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type HostsRequest, type InlineLinkRequest, type InmailParams, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvitationParams, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type KnowledgeSpace, type LabelService, type LimitRuleConfig, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListAvailabilityConstraintsQuery, type ListCalendarConnectionsQuery, type ListCalendarEventTypesQuery, type ListCalendarEventsQuery, type ListCalendarsQuery, type ListChannelActionsQuery, type ListChannelEventsQuery, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactGroupsQuery, type ListContactMergeProposalsQuery, type ListContactRecordLinksQuery, type ListContactsQuery, type ListConversationBriefsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListProfilesOptions, type ListPromptsOptions, type ListRecordDuplicatesQuery, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse$1 as ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSchedulingLinksQuery, type ListSendingLimitPresetsQuery, type ListSendingRulesQuery, type ListSessionsOptions, type ListSkillsOptions, type ListSpacesOptions, type ListTeamMembersOptions, type ListTeamsOptions, type ListToneProfileSetupsQuery, type ListToneProfilesQuery, type ListToolsOptions, type ListToolsetsOptions, type ListUserProfileAssignmentsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type LocationKind, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDelivery, type MessageDeliveryStatus, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MintCallTokenRequest, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelService, type ModelStopReason, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type NotifyMode, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type ParticipationStatus, type PerformChannelActionRequest, type Permission, type PermissionEventSource, type PermissionEventType, type PhoneNumber, type PhoneNumberRouting, type PhoneNumberStatus, type PlatformBinding, type PlatformEntity, type PlatformEvent, type PortSpec, type Profile, ProfileSchema, type ProfileService, type ProfileVisitParams, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublicBookSchedulingLinkResponse, type PublicCalendarEvent, type PublicCalendarEventType, type PublicEventLocation, type PublicHost, type PublicSchedulingLink, type PublicSchedulingService, type PublishContactObservationsResponse, type PublishEventRequest, type PutCalendarEventTypeRequest, type PutSchedulingProfileRequest, type QueryBinding, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordDuplicate, type RecordDuplicateService, type RecordDuplicateSource, type RecordDuplicateStatus, type RecordLinkService, type RecordPermissionEventRequest, type RecordRef, type RecordService, type RecurrenceScope, type RedriveResult, type RescheduleHost, type ReschedulePublicCalendarEventRequest, type ResolveToneProfileQuery, type RespondCalendarEventRequest, type RespondChannelActionRequest, ResponseMeta$1 as ResponseMeta, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RoutingTarget, type RunWorkflowRequest, SCOPED_PLATFORM_ENTITY_SLUGS, SchedulingClient, type SchedulingLink, type SchedulingLinkService, type ListResponse as SchedulingListResponse, type SchedulingProfile, type SchedulingProfileService, type ScoreAnswer, type ScoreQuestion, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendEligibility, type SendEligibilityRequest, type SendMessageRequest, type SendRecipient, type SendingLimitPreset, type SendingPeriod, type SendingRule, type SendingRuleConfig, type SendingRuleService, type SendingRuleType, type Session, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type Skill, type SkillBundle, type SkillService, type SkillVersion, type Slot, type SlotParameters, type SlotService, type SlotUnavailability, type SlotUnavailabilityReason, type SpaceService, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type StructuredText, type SyncConnectionRequest, type SystemSource, type TailOptions, type Team, type TeamMember, type TeamService, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type ToneProfile, type ToneProfileScope, type ToneProfileService, type ToneProfileSetup, type ToneProfileSetupStatus, type ToneProfileSource, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, type Toolset, type ToolsetKind, type ToolsetService, type ToolsetToolSummary, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TranscriptTurn, type Transcription, type TranscriptionReviewStatus, type TranscriptionStatus, type TriggerKind, type Turn, UNASSIGNED_SPACE_SLUG, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateAvailabilityConstraintRequest, type UpdateCalendarConnectionRequest, type UpdateCalendarEventRequest, type UpdateCalendarEventTypeRequest, type UpdateCalendarRequest, type UpdateCalendarSyncRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactGroupRequest, type UpdateContactRequest, type UpdateConversationBriefRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateMeRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePhoneNumberRequest, type UpdateProfileRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateSchedulingLinkRequest, type UpdateSendingRuleRequest, type UpdateSpaceRequest, type UpdateTeamRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type UpsertToneProfileRequest, type User, type UserMessagePayload, type UserProfileAssignment, UserProfileAssignmentSchema, type UserProfileAssignmentService, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, type UserRoleAssignmentService, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WarmupRuleConfig, type WebhookTriggerParams, type Weekday, type WindowDay, type WindowRuleConfig, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isShareable, isUnauthorized, parseErrorResponse, shareRouteFor, toQueryParams, toQueryString };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-
|
|
2
|
-
export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, ContactAddressAttributeMetaSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntityContactBindingSchema, EntityExtensionSchema, EntitySchema, EntityWithSchemaSchema, ExtensionPositionSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListExtensionColumnPlacementSchema, ListExtensionSchema, ListSchema, ListViewSchema, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, MenuConfigurationExtensionPlacementSchema, MenuConfigurationExtensionPositionSchema, MenuConfigurationExtensionSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_EXTENSION_ANCHOR_MAIN, PAGE_EXTENSION_ANCHOR_SIDE_PANEL, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageExtensionPlacementSchema, PageExtensionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseContactAddressMeta, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-
|
|
1
|
+
import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-WJYUQBEG.js';
|
|
2
|
+
export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, ContactAddressAttributeMetaSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntityContactBindingSchema, EntityExtensionSchema, EntitySchema, EntityWithSchemaSchema, ExtensionPositionSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListExtensionColumnPlacementSchema, ListExtensionSchema, ListSchema, ListViewSchema, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, MenuConfigurationExtensionPlacementSchema, MenuConfigurationExtensionPositionSchema, MenuConfigurationExtensionSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_EXTENSION_ANCHOR_MAIN, PAGE_EXTENSION_ANCHOR_SIDE_PANEL, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageExtensionPlacementSchema, PageExtensionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseContactAddressMeta, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-WJYUQBEG.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { fetchEventSource } from '@microsoft/fetch-event-source';
|
|
5
5
|
|
|
@@ -98,6 +98,25 @@ var McpServerServiceImpl = class {
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
+
// src/agent/models.ts
|
|
102
|
+
var MODELS_BASE_PATH = "/agents/v1/models";
|
|
103
|
+
var ModelServiceImpl = class {
|
|
104
|
+
constructor(client) {
|
|
105
|
+
this.client = client;
|
|
106
|
+
}
|
|
107
|
+
client;
|
|
108
|
+
async generate(request) {
|
|
109
|
+
return this.client.request("POST", `${MODELS_BASE_PATH}/generate`, request);
|
|
110
|
+
}
|
|
111
|
+
async decide(request) {
|
|
112
|
+
return this.client.request(
|
|
113
|
+
"POST",
|
|
114
|
+
`${MODELS_BASE_PATH}/decide`,
|
|
115
|
+
request
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
|
|
101
120
|
// src/agent/prompts.ts
|
|
102
121
|
var PROMPTS_BASE_PATH = "/agents/v1/prompts";
|
|
103
122
|
var PromptServiceImpl = class {
|
|
@@ -391,6 +410,8 @@ var AgentClient = class {
|
|
|
391
410
|
toolsets;
|
|
392
411
|
/** Service for managing MCP server registrations. */
|
|
393
412
|
mcpServers;
|
|
413
|
+
/** Service for stateless model calls: `generate` (one message out) and `decide` (calibrated typed answers). */
|
|
414
|
+
models;
|
|
394
415
|
/** Service for managing chat sessions (conversations + event log + stream). */
|
|
395
416
|
sessions;
|
|
396
417
|
/**
|
|
@@ -405,6 +426,7 @@ var AgentClient = class {
|
|
|
405
426
|
this.tools = new ToolServiceImpl(client);
|
|
406
427
|
this.toolsets = new ToolsetServiceImpl(client);
|
|
407
428
|
this.mcpServers = new McpServerServiceImpl(client);
|
|
429
|
+
this.models = new ModelServiceImpl(client);
|
|
408
430
|
this.sessions = new SessionServiceImpl(client);
|
|
409
431
|
}
|
|
410
432
|
};
|