@collective-intelligence/extensions-sdk 0.1.7 → 0.1.9
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/README.md +126 -1
- package/dist/components/agents.d.ts +2 -0
- package/dist/components/base.d.ts +1 -1
- package/dist/components/declaration.d.ts +2 -2
- package/dist/components/knowledge.d.ts +34 -0
- package/dist/components/metadata-authoring.d.ts +18 -5
- package/dist/components/studio-agent-form.d.ts +25 -0
- package/dist/components/studio.d.ts +292 -5
- package/dist/components/workflow-results.d.ts +6 -0
- package/dist/index.d.ts +7 -4
- package/dist/index.js +2 -1
- package/dist/package/knowledge-readers.d.ts +27 -14
- package/dist/package/presentation-readers.d.ts +2 -20
- package/dist/package/primitive-readers.d.ts +18 -0
- package/dist/release/stored-manifest.d.ts +8 -1
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ export type PackageWorkflowPauseResumeContract = Readonly<{
|
|
|
8
8
|
decisions?: readonly string[];
|
|
9
9
|
/** Approval only: the authored summary is safe to show Approvers. */
|
|
10
10
|
discloseSummary?: boolean;
|
|
11
|
+
/** Approval only: `explicit` keeps the Request pending for the Invoker. */
|
|
12
|
+
invokerDecision?: "automatic" | "explicit";
|
|
11
13
|
mode: string;
|
|
12
14
|
payloadSchema?: JsonObject;
|
|
13
15
|
resumePorts: readonly string[];
|
|
@@ -78,6 +80,10 @@ export type PackageWorkflowNodeDirective = Readonly<{
|
|
|
78
80
|
headers: Readonly<Record<string, string>>;
|
|
79
81
|
maxBytes: number;
|
|
80
82
|
method: "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT";
|
|
83
|
+
/** `json` makes the engine parse the response body into `json`. */
|
|
84
|
+
responseType?: "json" | "text";
|
|
85
|
+
/** Header name to organization secret name; the engine sends the value. */
|
|
86
|
+
secretHeaders?: Readonly<Record<string, string>>;
|
|
81
87
|
timeoutSeconds: number;
|
|
82
88
|
url: string;
|
|
83
89
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { resolveWorkflowNodePorts, WorkflowPortIssueCodes } from "./components/w
|
|
|
18
18
|
export type { WorkflowNodePortsContract, WorkflowPortIssue, WorkflowPortIssueCode, WorkflowResolvedPorts } from "./components/workflow-ports.js";
|
|
19
19
|
export { workflowSchemaAt } from "./components/workflow-schema.js";
|
|
20
20
|
export type { WorkflowSchemaLocation } from "./components/workflow-schema.js";
|
|
21
|
-
export { declareDatasetParser, declareDomain, declareDomainTemplate, declareExternalApplication, declareExternalAppGateway, declareExternalDatasetProvider, declareKnowledgeEntitySchema, declareKnowledgePolicy, declareKnowledgeRelationSchema, declareManagedDatasetProvider, declareOrganizationGroup, declareOrganizationSettings, declareRemoteToolCollection, declareSkillTemplate, declareStudioApp, declareStudioComponent, declareToolCollection, declareWorkflow, declareWorkflowFieldCollection, declareWorkflowNodeCollection, declareWorkflowTemplate } from "./components/metadata-authoring.js";
|
|
21
|
+
export { declareDatasetParser, declareDomain, declareDomainTemplate, declareExternalApplication, declareExternalAppGateway, declareExternalDatasetProvider, declareKnowledgeEntitySchema, declareKnowledgePolicy, declareKnowledgeRelationSchema, declareManagedDatasetProvider, declareOrganizationGroup, declareOrganizationSettings, declareRemoteToolCollection, declareSkillTemplate, declareStudioApp, declareStudioAppTemplate, declareStudioComponent, declareToolCollection, declareWorkflow, declareWorkflowFieldCollection, declareWorkflowNodeCollection, declareWorkflowTemplate } from "./components/metadata-authoring.js";
|
|
22
22
|
export { DATASET_TABLE_TEMPLATE_PHYSICAL_CODES, DATASET_TABLE_TEMPLATE_SEMANTIC_ROLES, declareDatasetBlueprint, declareDatasetTableTemplate, rejectUnsupportedDatasetTableTemplate } from "./components/templates.js";
|
|
23
23
|
export { declarePackage } from "./package/definition.js";
|
|
24
24
|
export { isVariableReference, packageVariables, packageVariableTypes, packageVariableViolation, variableReference } from "./package/variables.js";
|
|
@@ -29,7 +29,10 @@ export { BACKEND_EXECUTION_LANES, declareHostedContribution, FRONTEND_CATALOG_CO
|
|
|
29
29
|
export type { BackendExecutionLane, BackendHostedContributionManifest, ExtensionHost, FrontendCatalogContract, FrontendCatalogContributionManifest, FrontendCatalogExportName, FrontendExtensionHost, HostedContributionDeclaration, HostedContributionInput, HostedContributionManifest, HostedContributionSourceIdentity } from "./hosted/contributions.js";
|
|
30
30
|
export type { ComponentManifest, ComponentPresentation, DeclarationHandle, DeclarationReference, DeclaredComponent, DocumentsConnectorImplementation, PackageSchemaRuntimeSidecar, MetadataComponentManifest, ToolClassDeclaration, WorkflowFieldClassDeclaration, KnowledgeEntityAdapterClassDeclaration, ConnectionClassDeclaration, KnowledgeConnectorClassDeclaration, KnowledgeConnectorOAuthClassDeclaration, EventListenerClassDeclaration, FieldTransformerClassDeclaration, NotificationChannelClassDeclaration, KnowledgeRelationAdapterClassDeclaration, ToolSettingsOptionsClassDeclaration, WorkflowNodeClassDeclaration, WorkflowNodePortInput } from "./components/authoring-core.js";
|
|
31
31
|
export type { DeclaredPackageComponent, DeclaredPackageManifest, PackageDefinition, PackageManifestInput, NormalizedPackageDefinition, PackageComponent } from "./package/definition.js";
|
|
32
|
-
export type { StudioAppDeclaration, StudioAppDefinition, StudioAppPageDefinition, StudioAppSectionDefinition, StudioComponentDeclaration } from "./components/studio.js";
|
|
32
|
+
export type { StudioAppDeclaration, StudioAppDeclarationInput, StudioAppDefinition, StudioAppDefinitionInput, StudioAppGrant, StudioAppLayoutDefinition, StudioAppLifecycle, StudioAppPageDefinition, StudioAppPageInput, StudioAppRole, StudioAppSectionDefinition, StudioAppSectionInput, StudioAppTemplateDeclaration, StudioAppTemplateDefinition, StudioAppTemplatePageDefinition, StudioAppTemplateSectionDefinition, StudioAppViewDataBinding, StudioAppViewDefinition, StudioAppViewInput, StudioAppViewPropsInput, StudioNodeAccess, StudioNodeAccessInput, StudioTriggerReference, StudioComponentDeclaration, StudioTriggerFormDeclaration, StudioTriggerFormEntitiesField, StudioTriggerFormEnumField, StudioTriggerFormField, StudioTriggerFormFileField, StudioTriggerFormInput, StudioTriggerFormJsonField, StudioTriggerFormOption, StudioTriggerFormValueField } from "./components/studio.js";
|
|
33
|
+
export type { StudioAgentFormDeclaration } from "./components/studio-agent-form.js";
|
|
34
|
+
export { readStudioAgentForm, withStudioAgentForm } from "./components/studio-agent-form.js";
|
|
35
|
+
export { defaultStudioTriggerFormFileAccept, maxStudioTriggerFormFileBytes, readStudioTriggerForm, studioViewKey, withStudioTriggerForm } from "./components/studio.js";
|
|
33
36
|
export type { FieldUiSchema, FieldValidationRule, FieldVisibilityRule, FormMarkdownBlock, FormDefinition, FormMetadata, FormSchemaSource, FormLayout, FormSection, FormSectionItem, FormStep, FormWidget, PlainFormWidget, PortableFormDefinition, SelectFormWidget, SelectOption as FormSelectOption, SelectOptions, StructuredFileBrowserOptions, StructuredFileUploadOptions, DynamicFormAiFillConfig, VisibilityCondition } from "./schema/forms.js";
|
|
34
37
|
export { plainFormWidgets, selectFormWidgets } from "./schema/forms.js";
|
|
35
38
|
export type { FieldOption, FieldOptionGroup, FieldOptionPage, FieldOptionsInput, FieldPart } from "./components/fields.js";
|
|
@@ -41,7 +44,7 @@ export { PackageManifestVersion } from "./package/manifest.js";
|
|
|
41
44
|
export type { InstallationWizard, InstallationWizardStep, PackageDependencyPin, PackageManifest } from "./package/manifest.js";
|
|
42
45
|
export { canonicalExtensionReleaseManifest, ExtensionReleaseManifestVersion, PACKAGE_MEDIA_SIZE_LIMIT_BYTES, PackageMediaArchivePrefix, parseExtensionReleaseManifest } from "./release/manifest.js";
|
|
43
46
|
export { parseExtensionReleaseArchive, validateExtensionReleaseArchiveMetadata } from "./release/archive.js";
|
|
44
|
-
export { parseStoredExtensionReleaseManifest, withCurrentPrimitiveKinds } from "./release/stored-manifest.js";
|
|
47
|
+
export { parseStoredExtensionReleaseManifest, storedPrimitiveKind, withCurrentPrimitiveKinds } from "./release/stored-manifest.js";
|
|
45
48
|
export type { BuildAttemptResult, ExtensionReleaseArchiveEntry, ExtensionReleaseAsset, ExtensionReleaseContribution, ExtensionReleaseManifest, ExtensionReleaseMedia, ExtensionReleasePrivateSourceMap } from "./release/manifest.js";
|
|
46
49
|
export type { BindingScope, ConnectionReference, PackagePrimitiveBase, PackagePrimitiveKind } from "./components/base.js";
|
|
47
50
|
export type { LifecycleDeployMode, LifecycleOptions } from "./components/lifecycle.js";
|
|
@@ -57,7 +60,7 @@ export type { AgentActivityPolicy, AgentAudience, AgentAudienceDeclaration, Agen
|
|
|
57
60
|
export type { DocumentsDeltaCursorExpired, DocumentsDeltaItem, DocumentsDeltaPage, DocumentsDeltaRequest, DocumentsDrive, DocumentsDrivesPage, DocumentsFolder, DocumentsFoldersPage, DocumentsFetchedContent, DocumentsRootAncestry, DocumentsSource, KnowledgeEntityAdapterDeclaration, ConnectionDeclaration, DatasetParserDeclaration, ExternalDatasetProviderDeclaration, KnowledgeConnectorContribution, KnowledgeConnectorBindingExtraConfig, KnowledgeConnectorDeclaration, KnowledgeConnectorFieldMapRule, KnowledgeEntitySchemaCapability, KnowledgeConnectorOAuthDeclaration, KnowledgeConnectorOAuthTokens, KnowledgeConnectorRemoteReference, EventListenerDeclaration, EventListenerInternalOccurrence, EventListenerPollRequest, EventListenerPollResult, EventListenerWebhookRequest, KnowledgePredefinedSchedule, ManagedDatasetProviderDeclaration, KnowledgeRelationAdapterDeclaration, KnowledgeRelationSchemaCapability } from "./components/connectors.js";
|
|
58
61
|
export type { PackagePrimitiveDeclaration } from "./components/declaration.js";
|
|
59
62
|
export type { DatasetBlueprintClassDeclaration, DatasetBlueprintDeclaration, DatasetTableTemplateClassDeclaration, DatasetTableTemplateDeclaration, DatasetTableTemplateHint, DatasetTableTemplatePhysicalCode, DatasetTableTemplateSemanticRole, DatasetTableTemplateUniqueness } from "./components/templates.js";
|
|
60
|
-
export type { EntityRelationField, KnowledgeAutocompleteConfiguration, KnowledgeAutocompleteFieldReference, KnowledgeEntitySchemaDeclaration, KnowledgeDisplayDefaults, KnowledgeFieldLocalization, KnowledgeFieldPresentation, KnowledgeFieldSemantics, KnowledgeManagedProjection, LocalizedFieldText, KnowledgePolicyDeclaration, KnowledgeRelationSchemaDeclaration } from "./components/knowledge.js";
|
|
63
|
+
export type { EntityRelationField, KnowledgeAutocompleteConfiguration, KnowledgeAutocompleteFieldReference, KnowledgeEntitySchemaDeclaration, KnowledgeDisplayDefaults, KnowledgeFieldLocalization, KnowledgeFieldPresentation, KnowledgeFieldSemantics, KnowledgeFileField, KnowledgeFileFieldDeclaration, KnowledgeManagedProjection, LocalizedFieldText, KnowledgePolicyDeclaration, KnowledgeRelationSchemaDeclaration } from "./components/knowledge.js";
|
|
61
64
|
export type { FieldTransformerDeclaration, NotificationChannelDeclaration, RemoteToolCollectionDeclaration, RemoteToolCollectionDefinition, SetupInstructions, ToolCollectionDeclaration, ToolCollectionVisibilityGrant, ToolDeclaration, ToolExtraLoader, ToolGuidance, ToolHealthCheck, ToolSettingsOption, ToolSettingsOptionPage, ToolSettingsOptionsContext, ToolSettingsOptionsDeclaration } from "./components/tools.js";
|
|
62
65
|
export type { WorkflowAuthoringActionEndpoint, WorkflowAuthoringDefinition, WorkflowAuthoringEdge, WorkflowAuthoringEdgeSource, WorkflowAuthoringEdgeTarget, WorkflowAuthoringFieldProjection, WorkflowAuthoringInputContract, WorkflowAuthoringInputEndpoint, WorkflowAuthoringNode, WorkflowAuthoringOutputBinding, WorkflowAuthoringOutputContract, WorkflowAuthoringOutputEndpoint, WorkflowAuthoringTemplateRef, WorkflowAuthoringTrigger, WorkflowAuthoringTriggerBinding, WorkflowAuthoringTriggerEndpoint, WorkflowAuthoredValue, WorkflowBindingExpression, WorkflowBindingSource, WorkflowBindingSpan, WorkflowDeclaration, WorkflowFieldCollectionDeclaration, WorkflowFieldContract, WorkflowFieldDeclaration, WorkflowConnectionRequirementDeclaration, WorkflowEditorDeclaration, WorkflowEditorFieldDeclaration, WorkflowEditorFieldOverride, WorkflowEditorOption, WorkflowEditorOptionSource, WorkflowEditorOverrides, WorkflowEditorSectionDeclaration, WorkflowEditorSectionOverride, WorkflowEditorValueSource, WorkflowEditorVisibilityRule, WorkflowEditorWidget, WorkflowEventIngressDeclaration, WorkflowEventSelectorProjection, WorkflowFieldBindingDeclaration, WorkflowDynamicPortDeclaration, WorkflowNodeContract, WorkflowNodeCollectionDeclaration, WorkflowNodeDeclaration, WorkflowNodeExecutionContract, WorkflowNodeExecutionSettings, WorkflowNodeInstancePolicy, WorkflowNodePortDeclaration, WorkflowOutputChannelDeclaration, WorkflowPortSchemaInjection, WorkflowPortSchemaResolution, WorkflowReusableDependencyDeclaration, WorkflowTemplateKind, WorkflowTriggerActivationDeclaration, WorkflowTemplateDeclaration, WorkflowTemplateGraphDefinition, WorkflowTemplateGraphSchemaContract, WorkflowTemplateUiLayout, WorkflowTriggerInvocation } from "./components/workflows.js";
|
|
63
66
|
export type { JsonObject, JsonPrimitive, JsonValue } from "./foundation/json.js";
|