@collective-intelligence/extensions-sdk 0.1.9 → 0.1.11

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.
@@ -48,6 +48,7 @@ export declare const localized: ReadValue<Readonly<{
48
48
  export declare const catalogTags: ReadValue<Readonly<Record<string, readonly string[]>> | undefined>;
49
49
  export declare const connectionRefs: ReadValue<readonly (Readonly<{
50
50
  catalogCollection?: string;
51
+ connectionInstanceFqn?: string;
51
52
  connectionTemplateFqn: string;
52
53
  label: string;
53
54
  required?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { PackageDefinition } from "./definition.js";
2
- import type { PackageDependencyPin } from "./manifest.js";
3
- /** Validates exact immutable release references and orders them by package identity. */
4
- export declare const parsePackageDependencyPins: (value: unknown) => readonly PackageDependencyPin[];
2
+ import type { PackageDependency } from "./manifest.js";
3
+ /** Validates FQN requirements and orders them by package identity. */
4
+ export declare const parsePackageDependencies: (value: unknown) => readonly PackageDependency[];
5
5
  /**
6
6
  * Validates package-to-package references and returns a dependency-first
7
7
  * order. Discovery uses this once, rather than repeatedly walking imports or
@@ -2,6 +2,58 @@ import type * as K from "../components/knowledge.js";
2
2
  import type { ReadValue } from "./readers.js";
3
3
  export declare const overviewInputMaxChars: ReadValue<number | null | undefined>;
4
4
  export declare const richEnrichment: ReadValue<boolean | null | undefined>;
5
+ export declare const relation: ReadValue<(Readonly<{
6
+ inverseOf: Readonly<{
7
+ schemaFqn: string;
8
+ field: string;
9
+ }>;
10
+ display?: Readonly<{
11
+ fields: readonly K.KnowledgeAutocompleteFieldReference[];
12
+ }>;
13
+ autocomplete?: never;
14
+ cardinality?: never;
15
+ maxItems?: never;
16
+ onDelete?: never;
17
+ targetSchemaFqn?: never;
18
+ }> & import("../index.js").JsonObject) | (Readonly<{
19
+ autocomplete?: Readonly<{
20
+ baseFilters?: readonly Readonly<{
21
+ caseSensitive?: boolean;
22
+ field: string;
23
+ operator: "contains" | "ends_with" | "eq" | "exists" | "gt" | "gte" | "in" | "is_empty" | "is_not_empty" | "lt" | "lte" | "ne" | "nin" | "not_contains" | "starts_with";
24
+ value: import("../index.js").JsonValue;
25
+ }>[];
26
+ fields?: readonly K.KnowledgeAutocompleteFieldReference[];
27
+ }>;
28
+ display?: Readonly<{
29
+ fields: readonly K.KnowledgeAutocompleteFieldReference[];
30
+ }>;
31
+ onDelete?: "clear" | "restrict";
32
+ targetSchemaFqn: string;
33
+ inverseOf?: never;
34
+ }> & Readonly<{
35
+ cardinality: "one_to_one" | "many_to_one";
36
+ maxItems?: never;
37
+ }> & import("../index.js").JsonObject) | (Readonly<{
38
+ autocomplete?: Readonly<{
39
+ baseFilters?: readonly Readonly<{
40
+ caseSensitive?: boolean;
41
+ field: string;
42
+ operator: "contains" | "ends_with" | "eq" | "exists" | "gt" | "gte" | "in" | "is_empty" | "is_not_empty" | "lt" | "lte" | "ne" | "nin" | "not_contains" | "starts_with";
43
+ value: import("../index.js").JsonValue;
44
+ }>[];
45
+ fields?: readonly K.KnowledgeAutocompleteFieldReference[];
46
+ }>;
47
+ display?: Readonly<{
48
+ fields: readonly K.KnowledgeAutocompleteFieldReference[];
49
+ }>;
50
+ onDelete?: "clear" | "restrict";
51
+ targetSchemaFqn: string;
52
+ inverseOf?: never;
53
+ }> & Readonly<{
54
+ cardinality: "one_to_many" | "many_to_many";
55
+ maxItems?: number;
56
+ }> & import("../index.js").JsonObject)>;
5
57
  export declare const fieldSemantics: ReadValue<Readonly<{
6
58
  overviewInputMaxChars?: number | null;
7
59
  richEnrichment?: boolean | null;
@@ -16,6 +68,7 @@ export declare const fieldSemantics: ReadValue<Readonly<{
16
68
  managedProjectionSource?: "organization_group" | "organization_user";
17
69
  mediaVisibility?: "private" | "protected" | "public";
18
70
  queryGuidance?: string;
71
+ relation?: K.KnowledgeEntityRelationField;
19
72
  unique?: boolean;
20
73
  }> & import("../index.js").JsonObject>;
21
74
  export declare const managedProjection: ReadValue<Readonly<{
@@ -133,6 +186,7 @@ export declare const knowledgeSchema: {
133
186
  managedProjectionSource?: "organization_group" | "organization_user";
134
187
  mediaVisibility?: "private" | "protected" | "public";
135
188
  queryGuidance?: string;
189
+ relation?: K.KnowledgeEntityRelationField;
136
190
  unique?: boolean;
137
191
  }> & import("../index.js").JsonObject>> | undefined>;
138
192
  localMutationPolicy: ReadValue<"always" | "connector_backed" | "never" | undefined>;
@@ -14,10 +14,8 @@ export type InstallationWizardStep = Readonly<{
14
14
  ref: string;
15
15
  title?: string;
16
16
  }>;
17
- export type PackageDependencyPin = Readonly<{
17
+ export type PackageDependency = Readonly<{
18
18
  fqn: string;
19
- releaseId: string;
20
- releaseDigest: string;
21
19
  }>;
22
20
  export type PackageManifest = Readonly<{
23
21
  apiVersion: typeof PackageManifestVersion;
@@ -25,7 +23,7 @@ export type PackageManifest = Readonly<{
25
23
  autoInstallable?: boolean;
26
24
  bindingScopes?: readonly ("organization" | "tenant")[];
27
25
  category?: string;
28
- dependencies?: readonly PackageDependencyPin[];
26
+ dependencies?: readonly PackageDependency[];
29
27
  description?: string;
30
28
  documentation?: string;
31
29
  fqn: string;
@@ -1,12 +1,14 @@
1
1
  import type * as Ag from "../components/agents.js";
2
2
  import type * as B from "../components/base.js";
3
3
  import type * as Cat from "../components/catalog.js";
4
+ import type { ConnectionInstanceDeclaration } from "../components/connection-instances.js";
4
5
  import type * as C from "../components/connectors.js";
5
6
  import type * as D from "../components/declaration.js";
6
7
  import type * as Ext from "../components/external-application.js";
7
8
  import type * as K from "../components/knowledge.js";
8
9
  import type * as Og from "../components/organization-group.js";
9
10
  import type * as Os from "../components/organization-settings.js";
11
+ import type * as Sp from "../components/service-principal.js";
10
12
  import type * as S from "../components/studio.js";
11
13
  import type * as T from "../components/tools.js";
12
14
  import type * as W from "../components/workflows.js";
@@ -21,6 +23,7 @@ export declare const primitives: {
21
23
  tags?: readonly string[];
22
24
  version: string;
23
25
  }> & Readonly<{
26
+ dataAccess?: import("../index.js").DataAccess<"agent">;
24
27
  activity?: Ag.AgentActivityPolicy;
25
28
  audience?: Ag.AgentAudienceDeclaration;
26
29
  behavioralBoundaries: readonly string[];
@@ -66,6 +69,7 @@ export declare const primitives: {
66
69
  label: string;
67
70
  }>;
68
71
  }> & import("../index.js").JsonObject>;
72
+ connectionInstance: ReadValue<ConnectionInstanceDeclaration>;
69
73
  datasetBlueprint: ReadValue<Readonly<{
70
74
  description?: string;
71
75
  displayName: string;
@@ -168,7 +172,7 @@ export declare const primitives: {
168
172
  version: string;
169
173
  }> & Readonly<{
170
174
  connectionTemplateFqn: string;
171
- deploymentIdentity?: "aws";
175
+ deploymentIdentity?: "aws" | "azure";
172
176
  senderKind: "address" | "mailbox";
173
177
  }> & import("../index.js").JsonObject>;
174
178
  eventListener: ReadValue<Readonly<{
@@ -302,42 +306,7 @@ export declare const primitives: {
302
306
  normalizesFieldMapValues?: boolean;
303
307
  normalizesImportedData?: boolean;
304
308
  }> & import("../index.js").JsonObject>;
305
- knowledgeEntitySchema: ReadValue<Readonly<{
306
- description?: string;
307
- displayName: string;
308
- fqn: string;
309
- icon?: string;
310
- kind: "knowledgeEntitySchema";
311
- tags?: readonly string[];
312
- version: string;
313
- }> & Readonly<{
314
- autocompleteConfiguration: K.KnowledgeAutocompleteConfiguration;
315
- catalogTags?: Cat.CatalogTags;
316
- defaultSyncDirection?: string;
317
- deletionMode?: string;
318
- displayDefaults?: K.KnowledgeDisplayDefaults;
319
- displayNameExpression: string | null;
320
- domainFqn: string;
321
- embedEntities?: boolean;
322
- overviewInputMaxChars?: number | null;
323
- richEnrichment?: boolean | null;
324
- embeddingConfig: import("../index.js").JsonObject | null;
325
- extendsSchemaFqn?: string;
326
- fieldLocalization?: Readonly<Record<string, K.KnowledgeFieldLocalization>>;
327
- fieldPresentation?: Readonly<Record<string, K.KnowledgeFieldPresentation>>;
328
- fieldSemantics?: Readonly<Record<string, K.KnowledgeFieldSemantics>>;
329
- lifecycle: import("../index.js").LifecycleOptions;
330
- localMutationPolicy?: "always" | "connector_backed" | "never";
331
- managedProjection?: K.KnowledgeManagedProjection;
332
- maxVersionsExpirationDays?: number | null;
333
- persistFullFieldContributions: boolean;
334
- relationFields?: readonly K.EntityRelationField[];
335
- schema: import("../index.js").PackageSchemaProjection;
336
- syncable?: boolean;
337
- usableAsDocumentScope: boolean;
338
- versioned?: boolean;
339
- versioningEnabled: boolean | null;
340
- }> & import("../index.js").JsonObject>;
309
+ knowledgeEntitySchema: ReadValue<K.KnowledgeEntitySchemaDeclaration>;
341
310
  knowledgePolicy: ReadValue<Readonly<{
342
311
  description?: string;
343
312
  displayName: string;
@@ -499,6 +468,18 @@ export declare const primitives: {
499
468
  gatewayRef: string;
500
469
  operationReferences: readonly string[];
501
470
  }> & import("../index.js").JsonObject>;
471
+ servicePrincipal: ReadValue<Readonly<{
472
+ description?: string;
473
+ displayName: string;
474
+ fqn: string;
475
+ icon?: string;
476
+ kind: "servicePrincipal";
477
+ tags?: readonly string[];
478
+ version: string;
479
+ }> & Readonly<{
480
+ groups: readonly string[];
481
+ organizationRole: Sp.ServicePrincipalOrganizationRole;
482
+ }> & import("../index.js").JsonObject>;
502
483
  skill: ReadValue<Readonly<{
503
484
  description?: string;
504
485
  displayName: string;
@@ -508,6 +489,7 @@ export declare const primitives: {
508
489
  tags?: readonly string[];
509
490
  version: string;
510
491
  }> & Readonly<{
492
+ dataAccess?: import("../index.js").DataAccess<"skill">;
511
493
  instructions: string;
512
494
  lifecycle: import("../index.js").LifecycleOptions;
513
495
  tools: Ag.DeclaredToolBindings;
@@ -643,6 +625,7 @@ export declare const primitives: {
643
625
  tags?: readonly string[];
644
626
  version: string;
645
627
  }> & Readonly<{
628
+ dataAccess?: import("../index.js").DataAccess<"workflow">;
646
629
  definition: W.WorkflowAuthoringDefinition;
647
630
  lifecycle: import("../index.js").LifecycleOptions;
648
631
  name: string;
@@ -149,6 +149,7 @@ export declare const uiLayout: ReadValue<Readonly<{
149
149
  }> | null;
150
150
  }> & JsonObject>;
151
151
  export declare const authoringDefinition: ReadValue<Readonly<{
152
+ dataAccess?: import("../index.js").DataAccess<"workflow">;
152
153
  edges: readonly W.WorkflowAuthoringEdge[];
153
154
  inputBoundary: W.WorkflowAuthoringTemplateRef;
154
155
  inputContract: W.WorkflowAuthoringInputContract;
@@ -11,8 +11,9 @@ export declare const storedPrimitiveKind: (stored: unknown) => string | undefine
11
11
  * the current spelling: current kind names, a Studio App Template in place of
12
12
  * a `studioApp` without the Declared Studio App lifecycle, an Agent `audience` in place of
13
13
  * `invokingApplicationFqns`, and Organization Group names in place of
14
- * Organization Team names. The mapping is a one-to-one rename of
15
- * retired spellings; every other value is returned as is. A reader that
14
+ * Organization Team names. Historical Entity Relation Field cardinalities map
15
+ * one/many to many_to_one/many_to_many; valid redundant scalar maxItems is
16
+ * removed. Every other relation setting is retained. A reader that
16
17
  * executes the release archive compares the verbatim stored JSON with the
17
18
  * archive before it calls this function.
18
19
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collective-intelligence/extensions-sdk",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Framework-neutral authoring contracts for Collective Intelligence extension packages.",
5
5
  "type": "module",
6
6
  "sideEffects": false,