@collective-intelligence/extensions-sdk 0.1.15 → 0.1.17
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 +91 -1
- package/dist/components/connector-instances.d.ts +12 -0
- package/dist/components/connectors.d.ts +24 -0
- package/dist/components/knowledge-remote-deletion.d.ts +84 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +2 -2
- package/dist/package/primitive-readers.d.ts +46 -44
- package/dist/package/schema-slots.d.ts +17 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ import type * as Sp from "../components/service-principal.js";
|
|
|
12
12
|
import type * as S from "../components/studio.js";
|
|
13
13
|
import type * as T from "../components/tools.js";
|
|
14
14
|
import type * as W from "../components/workflows.js";
|
|
15
|
+
import type { JsonObject } from "../foundation/json.js";
|
|
15
16
|
import type { ReadValue } from "./readers.js";
|
|
16
17
|
export declare const primitives: {
|
|
17
18
|
agent: ReadValue<Readonly<{
|
|
@@ -28,7 +29,7 @@ export declare const primitives: {
|
|
|
28
29
|
audience?: Ag.AgentAudienceDeclaration;
|
|
29
30
|
behavioralBoundaries: readonly string[];
|
|
30
31
|
lifecycle: import("../index.js").LifecycleOptions;
|
|
31
|
-
metadata?:
|
|
32
|
+
metadata?: JsonObject;
|
|
32
33
|
maxSteps?: number;
|
|
33
34
|
modelTier?: Ag.AgentModelTier;
|
|
34
35
|
objectives: readonly string[];
|
|
@@ -39,7 +40,7 @@ export declare const primitives: {
|
|
|
39
40
|
responsibility: string;
|
|
40
41
|
skills: readonly string[];
|
|
41
42
|
tools: Ag.DeclaredToolBindings;
|
|
42
|
-
}> &
|
|
43
|
+
}> & JsonObject>;
|
|
43
44
|
connection: ReadValue<Readonly<{
|
|
44
45
|
description?: string;
|
|
45
46
|
displayName: string;
|
|
@@ -52,7 +53,7 @@ export declare const primitives: {
|
|
|
52
53
|
compatibility?: Readonly<{
|
|
53
54
|
auth?: string;
|
|
54
55
|
dialect?: string;
|
|
55
|
-
extensions?:
|
|
56
|
+
extensions?: JsonObject;
|
|
56
57
|
provider?: string;
|
|
57
58
|
}>;
|
|
58
59
|
credential: import("../index.js").PortableFormDefinition;
|
|
@@ -68,7 +69,7 @@ export declare const primitives: {
|
|
|
68
69
|
available: boolean;
|
|
69
70
|
label: string;
|
|
70
71
|
}>;
|
|
71
|
-
}> &
|
|
72
|
+
}> & JsonObject>;
|
|
72
73
|
connectionInstance: ReadValue<ConnectionInstanceDeclaration>;
|
|
73
74
|
datasetBlueprint: ReadValue<Readonly<{
|
|
74
75
|
description?: string;
|
|
@@ -80,10 +81,10 @@ export declare const primitives: {
|
|
|
80
81
|
version: string;
|
|
81
82
|
}> & Readonly<{
|
|
82
83
|
blueprintVersion: number;
|
|
83
|
-
configuration?:
|
|
84
|
+
configuration?: JsonObject;
|
|
84
85
|
definition: import("../index.js").DatasetDefinition;
|
|
85
86
|
templateFqn: string;
|
|
86
|
-
}> &
|
|
87
|
+
}> & JsonObject>;
|
|
87
88
|
datasetConnectorInstance: ReadValue<import("../index.js").DatasetConnectorInstanceDeclaration>;
|
|
88
89
|
datasetParser: ReadValue<Readonly<{
|
|
89
90
|
description?: string;
|
|
@@ -98,7 +99,7 @@ export declare const primitives: {
|
|
|
98
99
|
extensions: readonly string[];
|
|
99
100
|
mediaTypes: readonly string[];
|
|
100
101
|
parserVersion: string;
|
|
101
|
-
}> &
|
|
102
|
+
}> & JsonObject>;
|
|
102
103
|
datasetTableTemplate: ReadValue<Readonly<{
|
|
103
104
|
description?: string;
|
|
104
105
|
displayName: string;
|
|
@@ -120,7 +121,7 @@ export declare const primitives: {
|
|
|
120
121
|
physicalCode: import("../index.js").DatasetTableTemplatePhysicalCode;
|
|
121
122
|
requirements: import("../index.js").PackageSchemaProjection;
|
|
122
123
|
semanticRoles: readonly import("../index.js").DatasetTableTemplateSemanticRole[];
|
|
123
|
-
}> &
|
|
124
|
+
}> & JsonObject>;
|
|
124
125
|
documentsConnector: ReadValue<Readonly<{
|
|
125
126
|
description?: string;
|
|
126
127
|
displayName: string;
|
|
@@ -133,7 +134,7 @@ export declare const primitives: {
|
|
|
133
134
|
connectionRefs?: readonly B.ConnectionReference[];
|
|
134
135
|
providerDisplayName?: string;
|
|
135
136
|
providerFamily: string;
|
|
136
|
-
}> &
|
|
137
|
+
}> & JsonObject>;
|
|
137
138
|
domain: ReadValue<Readonly<{
|
|
138
139
|
description?: string;
|
|
139
140
|
displayName: string;
|
|
@@ -146,7 +147,7 @@ export declare const primitives: {
|
|
|
146
147
|
lifecycle: import("../index.js").LifecycleOptions;
|
|
147
148
|
localMutationPolicy?: "always" | "connector_backed" | "never";
|
|
148
149
|
versioningEnabled: boolean | null;
|
|
149
|
-
}> &
|
|
150
|
+
}> & JsonObject>;
|
|
150
151
|
domainTemplate: ReadValue<Readonly<{
|
|
151
152
|
description?: string;
|
|
152
153
|
displayName: string;
|
|
@@ -161,7 +162,7 @@ export declare const primitives: {
|
|
|
161
162
|
domainName: string;
|
|
162
163
|
entitySchemaFqns: readonly string[];
|
|
163
164
|
relationSchemaFqns: readonly string[];
|
|
164
|
-
}> &
|
|
165
|
+
}> & JsonObject>;
|
|
165
166
|
emailProvider: ReadValue<Readonly<{
|
|
166
167
|
description?: string;
|
|
167
168
|
displayName: string;
|
|
@@ -174,7 +175,7 @@ export declare const primitives: {
|
|
|
174
175
|
connectionTemplateFqn: string;
|
|
175
176
|
deploymentIdentity?: "aws" | "azure";
|
|
176
177
|
senderKind: "address" | "mailbox";
|
|
177
|
-
}> &
|
|
178
|
+
}> & JsonObject>;
|
|
178
179
|
eventListener: ReadValue<Readonly<{
|
|
179
180
|
description?: string;
|
|
180
181
|
displayName: string;
|
|
@@ -222,7 +223,7 @@ export declare const primitives: {
|
|
|
222
223
|
}>;
|
|
223
224
|
}>;
|
|
224
225
|
webhookRegistration?: "listener";
|
|
225
|
-
}> &
|
|
226
|
+
}> & JsonObject>;
|
|
226
227
|
externalAppGateway: ReadValue<import("../index.js").ExternalAppGatewayDeclaration>;
|
|
227
228
|
externalApplication: ReadValue<Ext.ExternalApplicationDeclaration>;
|
|
228
229
|
externalDatasetProvider: ReadValue<Readonly<{
|
|
@@ -240,7 +241,7 @@ export declare const primitives: {
|
|
|
240
241
|
capabilities: import("../index.js").DatasetProviderCapabilities;
|
|
241
242
|
datasetOpaqueIdPrefix: string;
|
|
242
243
|
}>[];
|
|
243
|
-
}> &
|
|
244
|
+
}> & JsonObject>;
|
|
244
245
|
fieldTransformer: ReadValue<Readonly<{
|
|
245
246
|
description?: string;
|
|
246
247
|
displayName: string;
|
|
@@ -252,7 +253,7 @@ export declare const primitives: {
|
|
|
252
253
|
}> & Readonly<{
|
|
253
254
|
sourceFieldType: string;
|
|
254
255
|
targetFieldType: string;
|
|
255
|
-
}> &
|
|
256
|
+
}> & JsonObject>;
|
|
256
257
|
knowledgeConnector: ReadValue<Readonly<{
|
|
257
258
|
description?: string;
|
|
258
259
|
displayName: string;
|
|
@@ -274,12 +275,13 @@ export declare const primitives: {
|
|
|
274
275
|
entitySchemaCapabilities?: readonly C.KnowledgeEntitySchemaCapability[];
|
|
275
276
|
isSingleton?: boolean;
|
|
276
277
|
outboundCapability?: "declared_and_enablable" | "none";
|
|
278
|
+
remoteDeletion?: C.KnowledgeConnectorRemoteDeletion;
|
|
277
279
|
recommendedImportSchedules?: readonly C.KnowledgePredefinedSchedule[];
|
|
278
280
|
relationSchemaCapabilities?: readonly C.KnowledgeRelationSchemaCapability[];
|
|
279
281
|
remoteReference?: C.KnowledgeConnectorRemoteReference;
|
|
280
282
|
settings?: import("../index.js").PortableFormDefinition;
|
|
281
283
|
supportedBindingModes?: readonly ("external" | "managed")[];
|
|
282
|
-
}> &
|
|
284
|
+
}> & JsonObject>;
|
|
283
285
|
knowledgeConnectorInstance: ReadValue<import("../index.js").KnowledgeConnectorInstanceDeclaration>;
|
|
284
286
|
knowledgeConnectorOauth: ReadValue<Readonly<{
|
|
285
287
|
description?: string;
|
|
@@ -291,7 +293,7 @@ export declare const primitives: {
|
|
|
291
293
|
version: string;
|
|
292
294
|
}> & Readonly<{
|
|
293
295
|
connectorFqn: string;
|
|
294
|
-
}> &
|
|
296
|
+
}> & JsonObject>;
|
|
295
297
|
knowledgeEntityAdapter: ReadValue<Readonly<{
|
|
296
298
|
description?: string;
|
|
297
299
|
displayName: string;
|
|
@@ -305,7 +307,7 @@ export declare const primitives: {
|
|
|
305
307
|
entitySchemaFqn: string;
|
|
306
308
|
normalizesFieldMapValues?: boolean;
|
|
307
309
|
normalizesImportedData?: boolean;
|
|
308
|
-
}> &
|
|
310
|
+
}> & JsonObject>;
|
|
309
311
|
knowledgeEntitySchema: ReadValue<K.KnowledgeEntitySchemaDeclaration>;
|
|
310
312
|
knowledgePolicy: ReadValue<Readonly<{
|
|
311
313
|
description?: string;
|
|
@@ -322,7 +324,7 @@ export declare const primitives: {
|
|
|
322
324
|
policyType: "filter" | "gate";
|
|
323
325
|
priority?: number;
|
|
324
326
|
targetFqn: string;
|
|
325
|
-
}> &
|
|
327
|
+
}> & JsonObject>;
|
|
326
328
|
knowledgeRelationAdapter: ReadValue<Readonly<{
|
|
327
329
|
description?: string;
|
|
328
330
|
displayName: string;
|
|
@@ -334,7 +336,7 @@ export declare const primitives: {
|
|
|
334
336
|
}> & Readonly<{
|
|
335
337
|
connectorFqn: string;
|
|
336
338
|
relationSchemaFqn: string;
|
|
337
|
-
}> &
|
|
339
|
+
}> & JsonObject>;
|
|
338
340
|
knowledgeRelationSchema: ReadValue<Readonly<{
|
|
339
341
|
description?: string;
|
|
340
342
|
displayName: string;
|
|
@@ -355,7 +357,7 @@ export declare const primitives: {
|
|
|
355
357
|
schema: import("../index.js").PackageSchemaProjection;
|
|
356
358
|
sourceSchemaFqn: string;
|
|
357
359
|
targetSchemaFqn: string;
|
|
358
|
-
}> &
|
|
360
|
+
}> & JsonObject>;
|
|
359
361
|
managedDatasetProvider: ReadValue<Readonly<{
|
|
360
362
|
description?: string;
|
|
361
363
|
displayName: string;
|
|
@@ -367,7 +369,7 @@ export declare const primitives: {
|
|
|
367
369
|
}> & Readonly<{
|
|
368
370
|
connectionTemplateFqns: readonly string[];
|
|
369
371
|
capabilities: import("../index.js").DatasetProviderCapabilities;
|
|
370
|
-
}> &
|
|
372
|
+
}> & JsonObject>;
|
|
371
373
|
notificationChannel: ReadValue<Readonly<{
|
|
372
374
|
description?: string;
|
|
373
375
|
displayName: string;
|
|
@@ -411,7 +413,7 @@ export declare const primitives: {
|
|
|
411
413
|
setupForm: import("../index.js").PortableFormDefinition | null;
|
|
412
414
|
}>;
|
|
413
415
|
}>;
|
|
414
|
-
}> &
|
|
416
|
+
}> & JsonObject>;
|
|
415
417
|
organizationGroup: ReadValue<Readonly<{
|
|
416
418
|
description?: string;
|
|
417
419
|
displayName: string;
|
|
@@ -424,7 +426,7 @@ export declare const primitives: {
|
|
|
424
426
|
lifecycle: import("../index.js").LifecycleOptions;
|
|
425
427
|
parent?: string;
|
|
426
428
|
subgroups?: readonly Og.OrganizationSubgroup[];
|
|
427
|
-
}> &
|
|
429
|
+
}> & JsonObject>;
|
|
428
430
|
organizationSettings: ReadValue<Os.OrganizationSettingsDeclaration>;
|
|
429
431
|
organizationSso: ReadValue<Readonly<{
|
|
430
432
|
description?: string;
|
|
@@ -443,7 +445,7 @@ export declare const primitives: {
|
|
|
443
445
|
locale: string;
|
|
444
446
|
markdown: string;
|
|
445
447
|
}>[];
|
|
446
|
-
}> &
|
|
448
|
+
}> & JsonObject>;
|
|
447
449
|
outboundMessagingProvider: ReadValue<Readonly<{
|
|
448
450
|
description?: string;
|
|
449
451
|
displayName: string;
|
|
@@ -455,7 +457,7 @@ export declare const primitives: {
|
|
|
455
457
|
}> & Readonly<{
|
|
456
458
|
connectionTemplateFqn: string;
|
|
457
459
|
service: string;
|
|
458
|
-
}> &
|
|
460
|
+
}> & JsonObject>;
|
|
459
461
|
remoteToolCollection: ReadValue<Readonly<{
|
|
460
462
|
description?: string;
|
|
461
463
|
displayName: string;
|
|
@@ -467,7 +469,7 @@ export declare const primitives: {
|
|
|
467
469
|
}> & Pick<T.ToolCollectionDeclaration, "category" | "defaultVisibility"> & Readonly<{
|
|
468
470
|
gatewayRef: string;
|
|
469
471
|
operationReferences: readonly string[];
|
|
470
|
-
}> &
|
|
472
|
+
}> & JsonObject>;
|
|
471
473
|
servicePrincipal: ReadValue<Readonly<{
|
|
472
474
|
description?: string;
|
|
473
475
|
displayName: string;
|
|
@@ -479,7 +481,7 @@ export declare const primitives: {
|
|
|
479
481
|
}> & Readonly<{
|
|
480
482
|
groups: readonly string[];
|
|
481
483
|
organizationRole: Sp.ServicePrincipalOrganizationRole;
|
|
482
|
-
}> &
|
|
484
|
+
}> & JsonObject>;
|
|
483
485
|
skill: ReadValue<Readonly<{
|
|
484
486
|
description?: string;
|
|
485
487
|
displayName: string;
|
|
@@ -493,7 +495,7 @@ export declare const primitives: {
|
|
|
493
495
|
instructions: string;
|
|
494
496
|
lifecycle: import("../index.js").LifecycleOptions;
|
|
495
497
|
tools: Ag.DeclaredToolBindings;
|
|
496
|
-
}> &
|
|
498
|
+
}> & JsonObject>;
|
|
497
499
|
skillTemplate: ReadValue<Readonly<{
|
|
498
500
|
description?: string;
|
|
499
501
|
displayName: string;
|
|
@@ -506,7 +508,7 @@ export declare const primitives: {
|
|
|
506
508
|
catalogTags?: Cat.CatalogTags;
|
|
507
509
|
lifecycle?: import("../index.js").LifecycleOptions;
|
|
508
510
|
name: string;
|
|
509
|
-
}> &
|
|
511
|
+
}> & JsonObject>;
|
|
510
512
|
studioApp: ReadValue<Readonly<{
|
|
511
513
|
description?: string;
|
|
512
514
|
displayName: string;
|
|
@@ -521,7 +523,7 @@ export declare const primitives: {
|
|
|
521
523
|
groups: readonly S.StudioAppGrant[];
|
|
522
524
|
}>;
|
|
523
525
|
lifecycle: S.StudioAppLifecycle;
|
|
524
|
-
}> &
|
|
526
|
+
}> & JsonObject>;
|
|
525
527
|
studioAppTemplate: ReadValue<Readonly<{
|
|
526
528
|
description?: string;
|
|
527
529
|
displayName: string;
|
|
@@ -532,7 +534,7 @@ export declare const primitives: {
|
|
|
532
534
|
version: string;
|
|
533
535
|
}> & Readonly<{
|
|
534
536
|
definition: S.StudioAppTemplateDefinition;
|
|
535
|
-
}> &
|
|
537
|
+
}> & JsonObject>;
|
|
536
538
|
studioComponent: ReadValue<Readonly<{
|
|
537
539
|
description?: string;
|
|
538
540
|
displayName: string;
|
|
@@ -544,17 +546,17 @@ export declare const primitives: {
|
|
|
544
546
|
}> & Readonly<{
|
|
545
547
|
category: "layout" | "page" | "primitive" | "view" | "widget";
|
|
546
548
|
composition?: Readonly<{
|
|
547
|
-
extensions?:
|
|
549
|
+
extensions?: JsonObject;
|
|
548
550
|
slotSource: "props" | "static";
|
|
549
551
|
slots: readonly Readonly<{
|
|
550
|
-
extensions?:
|
|
552
|
+
extensions?: JsonObject;
|
|
551
553
|
key: string;
|
|
552
554
|
label?: K.LocalizedFieldText;
|
|
553
555
|
}>[];
|
|
554
556
|
}>;
|
|
555
557
|
propsSchema: import("../index.js").PackageSchemaProjection;
|
|
556
558
|
sourceRef: string;
|
|
557
|
-
}> &
|
|
559
|
+
}> & JsonObject>;
|
|
558
560
|
tool: ReadValue<Readonly<{
|
|
559
561
|
description?: string;
|
|
560
562
|
displayName: string;
|
|
@@ -583,7 +585,7 @@ export declare const primitives: {
|
|
|
583
585
|
toolCollectionFqns?: readonly string[];
|
|
584
586
|
toolGuidance?: T.ToolGuidance;
|
|
585
587
|
usageScopes?: readonly ("automation" | "chat" | "skill")[];
|
|
586
|
-
}> &
|
|
588
|
+
}> & JsonObject>;
|
|
587
589
|
toolCollection: ReadValue<Readonly<{
|
|
588
590
|
description?: string;
|
|
589
591
|
displayName: string;
|
|
@@ -597,7 +599,7 @@ export declare const primitives: {
|
|
|
597
599
|
defaultVisibility?: readonly T.ToolCollectionVisibilityGrant[];
|
|
598
600
|
tags?: readonly string[];
|
|
599
601
|
toolFqns: readonly string[];
|
|
600
|
-
}> &
|
|
602
|
+
}> & JsonObject>;
|
|
601
603
|
toolSettingsOptions: ReadValue<Readonly<{
|
|
602
604
|
description?: string;
|
|
603
605
|
displayName: string;
|
|
@@ -615,7 +617,7 @@ export declare const primitives: {
|
|
|
615
617
|
formTarget?: "binding" | "settings";
|
|
616
618
|
includeUnavailableSelectedOptions?: boolean;
|
|
617
619
|
toolFqn: string;
|
|
618
|
-
}> &
|
|
620
|
+
}> & JsonObject>;
|
|
619
621
|
workflow: ReadValue<Readonly<{
|
|
620
622
|
description?: string;
|
|
621
623
|
displayName: string;
|
|
@@ -631,7 +633,7 @@ export declare const primitives: {
|
|
|
631
633
|
name: string;
|
|
632
634
|
servicePrincipalFqn?: string;
|
|
633
635
|
slug: string;
|
|
634
|
-
}> &
|
|
636
|
+
}> & JsonObject>;
|
|
635
637
|
workflowField: ReadValue<Readonly<{
|
|
636
638
|
description?: string;
|
|
637
639
|
displayName: string;
|
|
@@ -648,7 +650,7 @@ export declare const primitives: {
|
|
|
648
650
|
placeholder?: string;
|
|
649
651
|
widget?: string;
|
|
650
652
|
}>;
|
|
651
|
-
}> &
|
|
653
|
+
}> & JsonObject>;
|
|
652
654
|
workflowFieldCollection: ReadValue<Readonly<{
|
|
653
655
|
description?: string;
|
|
654
656
|
displayName: string;
|
|
@@ -665,7 +667,7 @@ export declare const primitives: {
|
|
|
665
667
|
categoryPath: readonly string[];
|
|
666
668
|
label: K.LocalizedFieldText;
|
|
667
669
|
}>;
|
|
668
|
-
}> &
|
|
670
|
+
}> & JsonObject>;
|
|
669
671
|
workflowNode: ReadValue<Readonly<{
|
|
670
672
|
description?: string;
|
|
671
673
|
displayName: string;
|
|
@@ -681,7 +683,7 @@ export declare const primitives: {
|
|
|
681
683
|
tags?: readonly string[];
|
|
682
684
|
}>;
|
|
683
685
|
contract: W.WorkflowNodeContract;
|
|
684
|
-
}> &
|
|
686
|
+
}> & JsonObject>;
|
|
685
687
|
workflowNodeCollection: ReadValue<Readonly<{
|
|
686
688
|
description?: string;
|
|
687
689
|
displayName: string;
|
|
@@ -701,7 +703,7 @@ export declare const primitives: {
|
|
|
701
703
|
presentation?: Readonly<{
|
|
702
704
|
categoryPath: readonly string[];
|
|
703
705
|
}>;
|
|
704
|
-
}> &
|
|
706
|
+
}> & JsonObject>;
|
|
705
707
|
workflowTemplate: ReadValue<Readonly<{
|
|
706
708
|
description?: string;
|
|
707
709
|
displayName: string;
|
|
@@ -721,6 +723,6 @@ export declare const primitives: {
|
|
|
721
723
|
skillSlots: readonly string[];
|
|
722
724
|
slug: string;
|
|
723
725
|
uiLayout: W.WorkflowTemplateUiLayout | null;
|
|
724
|
-
}> &
|
|
726
|
+
}> & JsonObject>;
|
|
725
727
|
};
|
|
726
728
|
export declare const primitive: ReadValue<D.PackagePrimitiveDeclaration>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ConsumerProfileId } from "../schema/profiles.js";
|
|
2
|
+
import type { PackageSchemaProjection } from "../schema/projection.js";
|
|
3
|
+
import type { SchemaDirection } from "../schema/source.js";
|
|
4
|
+
import type { PackageDefinition } from "./definition.js";
|
|
5
|
+
/** One schema position of a package declaration and the profile that governs it. */
|
|
6
|
+
export type PackageSchemaSlot = Readonly<{
|
|
7
|
+
direction: SchemaDirection;
|
|
8
|
+
location: string;
|
|
9
|
+
profile: ConsumerProfileId;
|
|
10
|
+
projection: PackageSchemaProjection;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* Lists every schema position a package declares, in primitive order. The
|
|
14
|
+
* declaration position, never an adapter label, decides profile and direction.
|
|
15
|
+
* Adding a declaration kind without handling it here fails type-checking.
|
|
16
|
+
*/
|
|
17
|
+
export declare const packageSchemaSlots: (definition: Pick<PackageDefinition, "manifest">) => readonly PackageSchemaSlot[];
|
package/package.json
CHANGED