@collective-intelligence/extensions-sdk 0.1.4 → 0.1.6
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 +206 -5
- package/dist/components/authoring-core.d.ts +2 -2
- package/dist/components/base.d.ts +1 -1
- package/dist/components/connectors.d.ts +59 -0
- package/dist/components/declaration.d.ts +3 -2
- package/dist/components/executable-authoring.d.ts +13 -1
- package/dist/components/external-application.d.ts +37 -2
- package/dist/components/knowledge.d.ts +30 -0
- package/dist/components/messaging.d.ts +128 -0
- package/dist/components/metadata-authoring.d.ts +22 -3
- package/dist/components/organization-group.d.ts +38 -0
- package/dist/components/workflows.d.ts +7 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +1 -1
- package/dist/package/definition.d.ts +3 -3
- package/dist/package/primitive-readers.d.ts +51 -0
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ClassDeclaredComponent, ConnectionImplementation, DeclaredComponent, DocumentsConnectorImplementation, ErasedWorkflowFieldImplementation, EventListenerImplementation, FieldTransformerImplementation, KnowledgeConnectorImplementation, KnowledgeConnectorOAuthImplementation, KnowledgeEntityAdapterImplementation, KnowledgeRelationAdapterImplementation, MetadataComponentManifest, NotificationChannelImplementation, PackageSchemaRuntimeSidecar, ToolImplementationConstructor, ToolSettingsOptionsImplementation, WorkflowNodeImplementationConstructor } from "../components/authoring-core.js";
|
|
2
|
-
import type { ConnectionDeclaration, DocumentsConnectorDeclaration, DatasetParserDeclaration, ExternalDatasetProviderDeclaration, ManagedDatasetProviderDeclaration, EmailProviderDeclaration, EventListenerDeclaration, KnowledgeConnectorDeclaration, KnowledgeConnectorOAuthDeclaration, KnowledgeEntityAdapterDeclaration, KnowledgeRelationAdapterDeclaration, OrganizationSsoDeclaration } from "../components/connectors.js";
|
|
2
|
+
import type { ConnectionDeclaration, DocumentsConnectorDeclaration, DatasetParserDeclaration, ExternalDatasetProviderDeclaration, ManagedDatasetProviderDeclaration, EmailProviderDeclaration, EventListenerDeclaration, KnowledgeConnectorDeclaration, KnowledgeConnectorOAuthDeclaration, KnowledgeEntityAdapterDeclaration, KnowledgeRelationAdapterDeclaration, OrganizationSsoDeclaration, OutboundMessagingProviderDeclaration } from "../components/connectors.js";
|
|
3
3
|
import type { DatasetParserImplementation } from "../components/dataset-parser.js";
|
|
4
4
|
import type { ExternalDatasetProviderImplementation, ManagedDatasetProviderImplementation } from "../components/datasets.js";
|
|
5
|
-
import type { EmailProviderImplementation, OrganizationSsoImplementation } from "../components/executable-authoring.js";
|
|
5
|
+
import type { EmailProviderImplementation, OrganizationSsoImplementation, OutboundMessagingProviderImplementation } from "../components/executable-authoring.js";
|
|
6
6
|
import type { FieldTransformerDeclaration, NotificationChannelDeclaration, ToolDeclaration, ToolSettingsOptionsDeclaration } from "../components/tools.js";
|
|
7
7
|
import type { WorkflowFieldDeclaration, WorkflowNodeDeclaration } from "../components/workflows.js";
|
|
8
8
|
import type { HostedContributionDeclaration } from "../hosted/contributions.js";
|
|
9
9
|
import type { PackageManifest } from "./manifest.js";
|
|
10
|
-
export type DeclaredPackageComponent = ClassDeclaredComponent<DatasetParserDeclaration, new () => DatasetParserImplementation> | ClassDeclaredComponent<ExternalDatasetProviderDeclaration, new () => ExternalDatasetProviderImplementation> | ClassDeclaredComponent<ManagedDatasetProviderDeclaration, new () => ManagedDatasetProviderImplementation> | ClassDeclaredComponent<OrganizationSsoDeclaration, new () => OrganizationSsoImplementation> | ClassDeclaredComponent<EmailProviderDeclaration, new () => EmailProviderImplementation> | ClassDeclaredComponent<ToolDeclaration, ToolImplementationConstructor> | ClassDeclaredComponent<ConnectionDeclaration, new () => ConnectionImplementation<unknown>> | ClassDeclaredComponent<DocumentsConnectorDeclaration, new () => DocumentsConnectorImplementation> | ClassDeclaredComponent<KnowledgeConnectorDeclaration, new () => KnowledgeConnectorImplementation> | ClassDeclaredComponent<KnowledgeConnectorOAuthDeclaration, new () => KnowledgeConnectorOAuthImplementation> | ClassDeclaredComponent<WorkflowNodeDeclaration, WorkflowNodeImplementationConstructor> | ClassDeclaredComponent<WorkflowFieldDeclaration, new () => ErasedWorkflowFieldImplementation> | ClassDeclaredComponent<EventListenerDeclaration, new () => EventListenerImplementation> | ClassDeclaredComponent<KnowledgeEntityAdapterDeclaration, new () => KnowledgeEntityAdapterImplementation> | ClassDeclaredComponent<KnowledgeRelationAdapterDeclaration, new () => KnowledgeRelationAdapterImplementation> | ClassDeclaredComponent<FieldTransformerDeclaration, new () => FieldTransformerImplementation> | ClassDeclaredComponent<NotificationChannelDeclaration, new () => NotificationChannelImplementation> | ClassDeclaredComponent<ToolSettingsOptionsDeclaration, new () => ToolSettingsOptionsImplementation> | DeclaredComponent<MetadataComponentManifest>;
|
|
10
|
+
export type DeclaredPackageComponent = ClassDeclaredComponent<DatasetParserDeclaration, new () => DatasetParserImplementation> | ClassDeclaredComponent<ExternalDatasetProviderDeclaration, new () => ExternalDatasetProviderImplementation> | ClassDeclaredComponent<ManagedDatasetProviderDeclaration, new () => ManagedDatasetProviderImplementation> | ClassDeclaredComponent<OrganizationSsoDeclaration, new () => OrganizationSsoImplementation> | ClassDeclaredComponent<EmailProviderDeclaration, new () => EmailProviderImplementation> | ClassDeclaredComponent<OutboundMessagingProviderDeclaration, new () => OutboundMessagingProviderImplementation> | ClassDeclaredComponent<ToolDeclaration, ToolImplementationConstructor> | ClassDeclaredComponent<ConnectionDeclaration, new () => ConnectionImplementation<unknown>> | ClassDeclaredComponent<DocumentsConnectorDeclaration, new () => DocumentsConnectorImplementation> | ClassDeclaredComponent<KnowledgeConnectorDeclaration, new () => KnowledgeConnectorImplementation> | ClassDeclaredComponent<KnowledgeConnectorOAuthDeclaration, new () => KnowledgeConnectorOAuthImplementation> | ClassDeclaredComponent<WorkflowNodeDeclaration, WorkflowNodeImplementationConstructor> | ClassDeclaredComponent<WorkflowFieldDeclaration, new () => ErasedWorkflowFieldImplementation> | ClassDeclaredComponent<EventListenerDeclaration, new () => EventListenerImplementation> | ClassDeclaredComponent<KnowledgeEntityAdapterDeclaration, new () => KnowledgeEntityAdapterImplementation> | ClassDeclaredComponent<KnowledgeRelationAdapterDeclaration, new () => KnowledgeRelationAdapterImplementation> | ClassDeclaredComponent<FieldTransformerDeclaration, new () => FieldTransformerImplementation> | ClassDeclaredComponent<NotificationChannelDeclaration, new () => NotificationChannelImplementation> | ClassDeclaredComponent<ToolSettingsOptionsDeclaration, new () => ToolSettingsOptionsImplementation> | DeclaredComponent<MetadataComponentManifest>;
|
|
11
11
|
/** Backwards-compatible name for the discriminated package component union. */
|
|
12
12
|
export type PackageComponent = DeclaredPackageComponent;
|
|
13
13
|
export type DeclaredPackageManifest = PackageManifest;
|
|
@@ -5,6 +5,7 @@ import type * as C from "../components/connectors.js";
|
|
|
5
5
|
import type * as D from "../components/declaration.js";
|
|
6
6
|
import type * as Ext from "../components/external-application.js";
|
|
7
7
|
import type * as K from "../components/knowledge.js";
|
|
8
|
+
import type * as Og from "../components/organization-group.js";
|
|
8
9
|
import type * as S from "../components/studio.js";
|
|
9
10
|
import type * as T from "../components/tools.js";
|
|
10
11
|
import type * as W from "../components/workflows.js";
|
|
@@ -183,16 +184,38 @@ export declare const primitives: {
|
|
|
183
184
|
keyFamily: string;
|
|
184
185
|
stateKey: string;
|
|
185
186
|
}>;
|
|
187
|
+
messaging?: Readonly<{
|
|
188
|
+
connectionTemplateFqn: string;
|
|
189
|
+
contractVersion: 1;
|
|
190
|
+
service: string;
|
|
191
|
+
}>;
|
|
192
|
+
receiveModeField?: string;
|
|
186
193
|
runtimeState?: readonly Readonly<{
|
|
187
194
|
keyFamily: string;
|
|
188
195
|
stateKey: string;
|
|
189
196
|
}>[];
|
|
190
197
|
safeOccurrenceFields?: readonly string[];
|
|
191
198
|
safeSelectorFields?: readonly string[];
|
|
199
|
+
sourceScope?: "connection" | "selector";
|
|
200
|
+
webhookAcknowledgement?: Readonly<{
|
|
201
|
+
status: 200 | 204;
|
|
202
|
+
}>;
|
|
192
203
|
webhookHandshake?: Readonly<{
|
|
193
204
|
kind: "echo_query_parameter";
|
|
194
205
|
parameter: string;
|
|
206
|
+
} | {
|
|
207
|
+
kind: "echo_query_parameter_with_verify_token";
|
|
208
|
+
parameter: string;
|
|
209
|
+
tokenParameter: string;
|
|
210
|
+
} | {
|
|
211
|
+
field: string;
|
|
212
|
+
kind: "echo_json_body_field";
|
|
213
|
+
when: Readonly<{
|
|
214
|
+
equals: string;
|
|
215
|
+
field: string;
|
|
216
|
+
}>;
|
|
195
217
|
}>;
|
|
218
|
+
webhookRegistration?: "listener";
|
|
196
219
|
}> & import("../index.js").JsonObject>;
|
|
197
220
|
externalAppGateway: ReadValue<import("../index.js").ExternalAppGatewayDeclaration>;
|
|
198
221
|
externalApplication: ReadValue<Readonly<{
|
|
@@ -204,13 +227,16 @@ export declare const primitives: {
|
|
|
204
227
|
tags?: readonly string[];
|
|
205
228
|
version: string;
|
|
206
229
|
}> & Readonly<{
|
|
230
|
+
admits?: readonly Ext.ExternalApplicationUserClass[];
|
|
207
231
|
allowedOrigins: readonly string[];
|
|
208
232
|
applicationType: Ext.ExternalApplicationType;
|
|
209
233
|
audience: string;
|
|
234
|
+
grants?: readonly Ext.ExternalApplicationGrant[];
|
|
210
235
|
lifecycle: import("../index.js").LifecycleOptions;
|
|
211
236
|
postLogoutRedirectUris: readonly string[];
|
|
212
237
|
primaryRedirectUri?: string;
|
|
213
238
|
redirectUris: readonly string[];
|
|
239
|
+
roles?: readonly Ext.ExternalApplicationRole[];
|
|
214
240
|
scopes: readonly string[];
|
|
215
241
|
setupInstructions?: string;
|
|
216
242
|
}> & import("../index.js").JsonObject>;
|
|
@@ -434,6 +460,19 @@ export declare const primitives: {
|
|
|
434
460
|
}>;
|
|
435
461
|
}>;
|
|
436
462
|
}> & import("../index.js").JsonObject>;
|
|
463
|
+
organizationGroup: ReadValue<Readonly<{
|
|
464
|
+
description?: string;
|
|
465
|
+
displayName: string;
|
|
466
|
+
fqn: string;
|
|
467
|
+
icon?: string;
|
|
468
|
+
kind: "organizationGroup";
|
|
469
|
+
tags?: readonly string[];
|
|
470
|
+
version: string;
|
|
471
|
+
}> & Readonly<{
|
|
472
|
+
lifecycle: import("../index.js").LifecycleOptions;
|
|
473
|
+
parent?: string;
|
|
474
|
+
subgroups?: readonly Og.OrganizationSubgroup[];
|
|
475
|
+
}> & import("../index.js").JsonObject>;
|
|
437
476
|
organizationSso: ReadValue<Readonly<{
|
|
438
477
|
description?: string;
|
|
439
478
|
displayName: string;
|
|
@@ -452,6 +491,18 @@ export declare const primitives: {
|
|
|
452
491
|
markdown: string;
|
|
453
492
|
}>[];
|
|
454
493
|
}> & import("../index.js").JsonObject>;
|
|
494
|
+
outboundMessagingProvider: ReadValue<Readonly<{
|
|
495
|
+
description?: string;
|
|
496
|
+
displayName: string;
|
|
497
|
+
fqn: string;
|
|
498
|
+
icon?: string;
|
|
499
|
+
kind: "outboundMessagingProvider";
|
|
500
|
+
tags?: readonly string[];
|
|
501
|
+
version: string;
|
|
502
|
+
}> & Readonly<{
|
|
503
|
+
connectionTemplateFqn: string;
|
|
504
|
+
service: string;
|
|
505
|
+
}> & import("../index.js").JsonObject>;
|
|
455
506
|
remoteToolCollection: ReadValue<Readonly<{
|
|
456
507
|
description?: string;
|
|
457
508
|
displayName: string;
|
package/package.json
CHANGED