@collective-intelligence/extensions-sdk 0.2.1 → 0.2.3

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.
Files changed (35) hide show
  1. package/README.md +332 -368
  2. package/dist/access/application-gate.d.ts +36 -0
  3. package/dist/access/audience.d.ts +43 -0
  4. package/dist/access/capabilities.d.ts +105 -0
  5. package/dist/access/conditions.d.ts +136 -0
  6. package/dist/access/core-catalog.d.ts +221 -0
  7. package/dist/access/declarations.d.ts +169 -0
  8. package/dist/access/document-policy.d.ts +31 -0
  9. package/dist/access/index.d.ts +62 -0
  10. package/dist/access/knowledge-policy.d.ts +87 -0
  11. package/dist/access/manifest.d.ts +161 -0
  12. package/dist/access/readers.d.ts +114 -0
  13. package/dist/access/requirement.d.ts +61 -0
  14. package/dist/components/agents.d.ts +12 -30
  15. package/dist/components/authoring-core.d.ts +3 -1
  16. package/dist/components/base.d.ts +1 -1
  17. package/dist/components/connector-instances.d.ts +0 -3
  18. package/dist/components/declaration.d.ts +3 -2
  19. package/dist/components/document-collections.d.ts +3 -32
  20. package/dist/components/external-application.d.ts +18 -90
  21. package/dist/components/knowledge.d.ts +1 -164
  22. package/dist/components/metadata-authoring.d.ts +24 -21
  23. package/dist/components/organization-settings.d.ts +7 -2
  24. package/dist/components/service-principal.d.ts +9 -4
  25. package/dist/components/studio.d.ts +22 -44
  26. package/dist/components/tools.d.ts +15 -8
  27. package/dist/components/workflows.d.ts +7 -0
  28. package/dist/index.d.ts +13 -11
  29. package/dist/index.js +2 -2
  30. package/dist/package/primitive-readers.d.ts +111 -24
  31. package/dist/package/readers.d.ts +2 -0
  32. package/dist/package/variables.d.ts +1 -2
  33. package/docs/effect.md +2 -2
  34. package/package.json +2 -2
  35. package/dist/package/policy-readers.d.ts +0 -23
@@ -1,3 +1,5 @@
1
+ import type { AccessApplicationCapabilities, ExternalApplicationHandle } from "../access/application-gate.js";
2
+ import type { AccessAudience } from "../access/audience.js";
1
3
  import type { VaryingDefinition, VaryingStructure } from "../package/variables.js";
2
4
  import type { PackageCodecSource, PackageDecoderSource } from "../schema/source.js";
3
5
  import type { ClassDeclaration, ClassDeclaredComponent, ComponentManifest, ComponentPresentation, DeclarationHandle, DeclarationReference, DeclaredComponent, DecoderSource, MetadataComponentManifest } from "./authoring-core.js";
@@ -9,8 +11,8 @@ import type { DatasetParserImplementation } from "./dataset-parser.js";
9
11
  import type { ExternalDatasetProviderImplementation, ManagedDatasetProviderImplementation } from "./datasets.js";
10
12
  import type { DocumentCollectionDeclaration } from "./document-collections.js";
11
13
  import type { ExternalAppGatewayDeclaration } from "./external-app-gateway.js";
12
- import type { ExternalApplicationAccessKey, ExternalApplicationDeclaration, ExternalApplicationGroupBinding, ExternalApplicationServerRole, ExternalApplicationUserRole } from "./external-application.js";
13
- import type { KnowledgeEntitySchemaDeclaration, KnowledgeFieldSemantics, KnowledgeFileFieldDeclaration, KnowledgeUserFieldDeclaration, KnowledgePolicyDeclaration } from "./knowledge.js";
14
+ import type { ExternalApplicationDeclaration } from "./external-application.js";
15
+ import type { KnowledgeEntitySchemaDeclaration, KnowledgeFieldSemantics, KnowledgeFileFieldDeclaration, KnowledgeUserFieldDeclaration } from "./knowledge.js";
14
16
  import type { OrganizationGroupDeclaration } from "./organization-group.js";
15
17
  import type { OrganizationInstructionsDeclaration } from "./organization-instructions.js";
16
18
  import type { OrganizationSettingsDeclaration, VaryingOrganizationSettingsAuthentication, VaryingOrganizationSettingsSso } from "./organization-settings.js";
@@ -37,22 +39,18 @@ export declare const declareExternalDatasetProvider: <Constructor extends new ()
37
39
  export type DatasetParserClassDeclaration<Constructor extends new () => DatasetParserImplementation = new () => DatasetParserImplementation> = ClassDeclaration<DatasetParserDeclaration, Constructor>;
38
40
  export declare const declareDatasetParser: <Constructor extends new () => DatasetParserImplementation>(input: DatasetParserClassDeclaration<Constructor>) => ClassDeclaredComponent<DatasetParserDeclaration, Constructor>;
39
41
  export declare const declareDomainTemplate: (input: MetadataClassDeclaration<DomainTemplateDeclaration>) => DeclaredComponent<DomainTemplateDeclaration>;
40
- type ExternalApplicationDefinitionInput<UserKey extends string, ServerKey extends string> = VaryingDefinition<Omit<MetadataDefinition<ExternalApplicationDeclaration>, ExternalApplicationAccessKey>> & Readonly<{
41
- defaultServerRole?: NoInfer<ServerKey>;
42
- groupBindings?: readonly (Omit<ExternalApplicationGroupBinding, "group" | "role"> & Readonly<{
43
- group: DeclarationReference<"organizationGroup">;
44
- role: NoInfer<UserKey>;
45
- }>)[];
46
- serverRoles?: readonly ExternalApplicationServerRole<ServerKey, UserKey>[];
47
- userRoles: readonly ExternalApplicationUserRole<UserKey>[];
42
+ /** The authored definition of an external application and its capability tree. */
43
+ type ExternalApplicationDefinitionInput<Capabilities extends AccessApplicationCapabilities> = Omit<VaryingMetadataDefinition<ExternalApplicationDeclaration>, "capabilities"> & Readonly<{
44
+ /** Capabilities below the app gate; a node without `kind` is a Switch. */
45
+ capabilities?: Capabilities;
48
46
  }>;
49
47
  /**
50
- * Declares an external application. `UserKey` and `ServerKey` are inferred
51
- * from the `key` of each declared User Role and Server Role, so `parent`,
52
- * `assignRoles`, `defaultServerRole` and the `role` of a Group Role Binding
53
- * accept only a declared role key.
48
+ * Declares an external application and its capability tree: the app gate,
49
+ * a Switch whose code is the FQN (`access.accessGate(app)`), and the
50
+ * capabilities below it. Its profiles and grants are Access Profile
51
+ * declarations; the application declares none of them.
54
52
  */
55
- export declare const declareExternalApplication: <UserKey extends string, ServerKey extends string = never>(input: MetadataClassDeclaration<ExternalApplicationDeclaration, ExternalApplicationDefinitionInput<UserKey, ServerKey>>) => DeclaredComponent<ExternalApplicationDeclaration>;
53
+ export declare const declareExternalApplication: <const Capabilities extends AccessApplicationCapabilities = Readonly<Record<never, never>>>(input: MetadataClassDeclaration<ExternalApplicationDeclaration, ExternalApplicationDefinitionInput<Capabilities>>) => ExternalApplicationHandle<Capabilities>;
56
54
  type OrganizationGroupDefinitionInput = Omit<MetadataDefinition<OrganizationGroupDeclaration>, "parent"> & Readonly<{
57
55
  parent?: DeclarationReference<"organizationGroup">;
58
56
  }>;
@@ -85,7 +83,6 @@ type KnowledgeEntityDefinitionInput<Schema> = Omit<MetadataDefinition<KnowledgeE
85
83
  schema: DecoderSource<Schema>;
86
84
  }>;
87
85
  export declare const declareKnowledgeEntitySchema: <Schema>(input: MetadataClassDeclaration<KnowledgeEntitySchemaDeclaration, KnowledgeEntityDefinitionInput<Schema>>) => DeclaredComponent<KnowledgeEntitySchemaDeclaration>;
88
- export declare const declareKnowledgePolicy: (input: MetadataClassDeclaration<KnowledgePolicyDeclaration>) => DeclaredComponent<KnowledgePolicyDeclaration>;
89
86
  type WorkflowTemplateGraphDefinitionInput = Omit<WorkflowTemplateGraphDefinition, "inputContract" | "outputContract"> & Readonly<{
90
87
  inputContract: Omit<WorkflowTemplateGraphDefinition["inputContract"], "schema"> & Readonly<{
91
88
  schema: PackageDecoderSource;
@@ -94,20 +91,27 @@ type WorkflowTemplateGraphDefinitionInput = Omit<WorkflowTemplateGraphDefinition
94
91
  schema: PackageCodecSource;
95
92
  }>;
96
93
  }>;
94
+ type WorkflowDefinitionInput = Omit<MetadataDefinition<WorkflowDeclaration>, "audience"> & Readonly<{
95
+ audience?: AccessAudience;
96
+ }>;
97
97
  type WorkflowTemplateDefinitionInput = Omit<MetadataDefinition<WorkflowTemplateDeclaration>, "definition"> & Readonly<{
98
98
  definition: WorkflowTemplateGraphDefinitionInput;
99
99
  }>;
100
- export declare const declareWorkflow: (input: MetadataClassDeclaration<WorkflowDeclaration>) => DeclaredComponent<WorkflowDeclaration>;
100
+ export declare const declareWorkflow: (input: MetadataClassDeclaration<WorkflowDeclaration, WorkflowDefinitionInput>) => DeclaredComponent<WorkflowDeclaration>;
101
101
  export declare const declareWorkflowTemplate: (input: MetadataClassDeclaration<WorkflowTemplateDeclaration, WorkflowTemplateDefinitionInput>) => DeclaredComponent<WorkflowTemplateDeclaration>;
102
- export declare const declareToolCollection: (input: MetadataClassDeclaration<ToolCollectionDeclaration>) => DeclaredComponent<ToolCollectionDeclaration>;
102
+ type ToolCollectionDefinitionInput = Omit<MetadataDefinition<ToolCollectionDeclaration>, "audience"> & Readonly<{
103
+ audience?: AccessAudience;
104
+ }>;
105
+ export declare const declareToolCollection: (input: MetadataClassDeclaration<ToolCollectionDeclaration, ToolCollectionDefinitionInput>) => DeclaredComponent<ToolCollectionDeclaration>;
103
106
  export declare const declareExternalAppGateway: (input: MetadataClassDeclaration<ExternalAppGatewayDeclaration>) => DeclaredComponent<ExternalAppGatewayDeclaration>;
104
107
  export declare const declareRemoteToolCollection: (input: MetadataClassDeclaration<RemoteToolCollectionDeclaration, RemoteToolCollectionDefinition>) => DeclaredComponent<RemoteToolCollectionDeclaration>;
105
108
  export declare const declareWorkflowFieldCollection: (input: MetadataClassDeclaration<WorkflowFieldCollectionDeclaration>) => DeclaredComponent<WorkflowFieldCollectionDeclaration>;
106
109
  export declare const declareWorkflowNodeCollection: (input: MetadataClassDeclaration<WorkflowNodeCollectionDeclaration>) => DeclaredComponent<WorkflowNodeCollectionDeclaration>;
107
110
  /**
108
111
  * Declares a Declared Studio App: CI creates and publishes it on install, and
109
- * the package owns it. References become FQNs; a view's `triggerRef` prop
110
- * also accepts the trigger handle.
112
+ * the package owns it. The app and each page take an `audience`; without one
113
+ * Studio offers it to nobody. References become FQNs; a view's `triggerRef`
114
+ * prop also accepts the trigger handle.
111
115
  */
112
116
  export declare const declareStudioApp: (input: StudioAppDeclarationInput) => DeclaredComponent<StudioAppDeclaration>;
113
117
  /** Declares a Studio App Template that the builder copies into a new app. */
@@ -125,7 +129,6 @@ export declare const servicePrincipal: (input: Readonly<{
125
129
  fqn: string;
126
130
  name: string;
127
131
  version: string;
128
- organizationRole: ServicePrincipalDeclaration["organizationRole"];
129
132
  groups: readonly DeclarationReference<"organizationGroup">[];
130
133
  }>) => DeclaredComponent<ServicePrincipalDeclaration>;
131
134
  export declare const declareConnectionInstance: (input: MetadataClassDeclaration<ConnectionInstanceDeclaration, VaryingMetadataDefinition<ConnectionInstanceDeclaration>>) => DeclaredComponent<ConnectionInstanceDeclaration>;
@@ -10,13 +10,17 @@ export type OrganizationSettingsLocalMethod = Readonly<{
10
10
  domains?: readonly string[];
11
11
  enabled: boolean;
12
12
  }>;
13
- export type OrganizationSettingsSsoRole = "organization_admin" | "organization_operator" | "organization_member";
14
13
  /** One SSO provider of the Organization; credentials arrive through the slot. */
15
14
  export type OrganizationSettingsSso = Readonly<{
16
15
  connection: Readonly<{
17
16
  setupKey: string;
18
17
  }>;
19
- defaultRole: OrganizationSettingsSsoRole;
18
+ /**
19
+ * The FQN of the Access Profile that each member SSO sign-in registers is
20
+ * granted; required when `provisionMembers` is true. The installer must be
21
+ * able to grant it.
22
+ */
23
+ defaultProfile?: string;
20
24
  domains: readonly string[];
21
25
  enabled: boolean;
22
26
  /** The FQN of a same-package SSO declaration or a pinned `providerId`. */
@@ -25,6 +29,7 @@ export type OrganizationSettingsSso = Readonly<{
25
29
  }> | Readonly<{
26
30
  providerId: string;
27
31
  }>;
32
+ /** Registers each verified identity of the domains as a member; needs `defaultProfile`. */
28
33
  provisionMembers: boolean;
29
34
  }>;
30
35
  export type OrganizationSettingsApplicationConsent = "ask" | "skip";
@@ -1,12 +1,17 @@
1
1
  import type { PackagePrimitiveBase } from "./base.js";
2
2
  import type { PackagePrimitiveDeclaration } from "./declaration.js";
3
- /** The Organization Role held by a declared service principal. */
4
- export declare const servicePrincipalOrganizationRoles: readonly ["organization_admin", "organization_operator", "organization_member"];
5
- export type ServicePrincipalOrganizationRole = (typeof servicePrincipalOrganizationRoles)[number];
3
+ /** A declared service principal; its authority comes from the Access Grants that name it. */
6
4
  export type ServicePrincipalDeclaration = PackagePrimitiveBase<"servicePrincipal"> & Readonly<{
7
5
  /** FQNs of Groups declared by this package, including nested subgroups. */
8
6
  groups: readonly string[];
9
- organizationRole: ServicePrincipalOrganizationRole;
10
7
  }>;
11
8
  /** Group membership is package-local, regardless of the spelling of an FQN. */
12
9
  export declare const assertServicePrincipalGroups: (primitives: readonly PackagePrimitiveDeclaration[]) => void;
10
+ /**
11
+ * The service principals that the package's declared grants make
12
+ * administrators: a grant of the built-in Organization admin profile, or of
13
+ * a package profile that holds an `admin` capability at manage, to the
14
+ * principal or to a Group it is a member of (with `inherited` coverage, a
15
+ * Group above it). A deploy asks for one confirmation per principal.
16
+ */
17
+ export declare const adminServicePrincipals: (primitives: readonly PackagePrimitiveDeclaration[]) => readonly string[];
@@ -1,3 +1,4 @@
1
+ import type { AccessAudience, AccessAudienceDeclaration } from "../access/audience.js";
1
2
  import type { JsonObject } from "../foundation/json.js";
2
3
  import type { ReadValue } from "../package/readers.js";
3
4
  import type { JsonSchemaDocument, PackageSchemaProjection } from "../schema/projection.js";
@@ -170,14 +171,6 @@ export type StudioAppTemplateDefinition = Readonly<{
170
171
  sections: readonly StudioAppTemplateSectionDefinition[];
171
172
  slug: string;
172
173
  }>;
173
- /** The Studio role a Declared Grant gives its Group on a Declared Studio App. */
174
- export type StudioAppRole = "manage" | "view";
175
- /** A Declared Grant: one Organization Group holds one Studio role. */
176
- export type StudioAppGrant = Readonly<{
177
- /** FQN of the Organization Group. */
178
- group: string;
179
- role: StudioAppRole;
180
- }>;
181
174
  /**
182
175
  * The only lifecycle of a Declared Studio App: each deploy upserts it, and
183
176
  * nobody edits it in the builder.
@@ -186,13 +179,6 @@ export type StudioAppLifecycle = Readonly<{
186
179
  deployMode: "upsert";
187
180
  readonly: true;
188
181
  }>;
189
- /**
190
- * Shows a Declared Studio Node only to users of `groups` (Organization Group
191
- * FQNs). A node without it shows to every user who can open the app.
192
- */
193
- export type StudioNodeAccess = Readonly<{
194
- groups: readonly string[];
195
- }>;
196
182
  /** The app shell: the built-in left sidebar, or a layout Studio Component. */
197
183
  export type StudioAppLayoutDefinition = Readonly<{
198
184
  componentRef: string;
@@ -213,7 +199,6 @@ export type StudioAppViewDataBinding = Readonly<{
213
199
  * `builtin:view.trigger-form@0.1.0`.
214
200
  */
215
201
  export type StudioAppViewDefinition = Readonly<{
216
- access?: StudioNodeAccess;
217
202
  componentRef: string;
218
203
  dataBinding?: StudioAppViewDataBinding;
219
204
  fqn: string;
@@ -222,7 +207,11 @@ export type StudioAppViewDefinition = Readonly<{
222
207
  slot: string;
223
208
  }>;
224
209
  type StudioAppPageBase = Readonly<{
225
- access?: StudioNodeAccess;
210
+ /**
211
+ * The page's Resource Audience (ARC-008): to whom Studio offers the page.
212
+ * A page without one is offered to nobody; its views follow the page.
213
+ */
214
+ audience?: AccessAudienceDeclaration;
226
215
  fqn: string;
227
216
  fullHeight?: boolean;
228
217
  fullWidth?: boolean;
@@ -241,8 +230,8 @@ export type StudioAppPageDefinition = StudioAppPageBase & (Readonly<{
241
230
  kind: "predefined";
242
231
  predefinedPageRef: string;
243
232
  }>);
233
+ /** A section shows while one of its pages is offered to the session. */
244
234
  export type StudioAppSectionDefinition = Readonly<{
245
- access?: StudioNodeAccess;
246
235
  description?: string;
247
236
  fqn: string;
248
237
  icon?: string;
@@ -262,37 +251,31 @@ export type StudioAppDefinition = Readonly<{
262
251
  slug: string;
263
252
  }>;
264
253
  /**
265
- * A Declared Studio App: CI creates and publishes it on install, the package
266
- * owns it, and Organization Groups open it through its Declared Grants.
254
+ * A Declared Studio App: CI creates and publishes it on install, and the
255
+ * package owns it. Its Resource Audience says to whom Studio offers it; an
256
+ * app without one is offered to nobody.
267
257
  */
268
258
  export type StudioAppDeclaration = PackagePrimitiveBase<"studioApp"> & Readonly<{
259
+ audience?: AccessAudienceDeclaration;
269
260
  definition: StudioAppDefinition;
270
- grants: Readonly<{
271
- groups: readonly StudioAppGrant[];
272
- }>;
273
261
  lifecycle: StudioAppLifecycle;
274
262
  }>;
275
- type GroupReference = DeclarationReference<"organizationGroup">;
276
263
  type ComponentReference = DeclarationReference<"studioComponent">;
277
264
  /** A trigger handle, or the `triggerRef` of a user-invoked trigger. */
278
265
  export type StudioTriggerReference = string | WorkflowAuthoringTrigger;
279
- export type StudioNodeAccessInput = Readonly<{
280
- groups: readonly GroupReference[];
281
- }>;
282
266
  /** View props; `triggerRef` also accepts the trigger handle. */
283
267
  export type StudioAppViewPropsInput = JsonObject & Readonly<{
284
268
  triggerRef?: StudioTriggerReference;
285
269
  }>;
286
- export type StudioAppViewInput = Omit<StudioAppViewDefinition, "access" | "componentRef" | "dataBinding" | "props"> & Readonly<{
287
- access?: StudioNodeAccessInput;
270
+ export type StudioAppViewInput = Omit<StudioAppViewDefinition, "componentRef" | "dataBinding" | "props"> & Readonly<{
288
271
  componentRef: ComponentReference;
289
272
  dataBinding?: Omit<StudioAppViewDataBinding, "schema"> & Readonly<{
290
273
  schema: DeclarationReference<"knowledgeEntitySchema">;
291
274
  }>;
292
275
  props?: StudioAppViewPropsInput;
293
276
  }>;
294
- export type StudioAppPageInput = Omit<StudioAppPageBase, "access"> & Readonly<{
295
- access?: StudioNodeAccessInput;
277
+ export type StudioAppPageInput = Omit<StudioAppPageBase, "audience"> & Readonly<{
278
+ audience?: AccessAudience;
296
279
  }> & (Readonly<{
297
280
  kind: "generic";
298
281
  views: readonly StudioAppViewInput[];
@@ -300,8 +283,7 @@ export type StudioAppPageInput = Omit<StudioAppPageBase, "access"> & Readonly<{
300
283
  kind: "predefined";
301
284
  predefinedPageRef: ComponentReference;
302
285
  }>);
303
- export type StudioAppSectionInput = Omit<StudioAppSectionDefinition, "access" | "pages"> & Readonly<{
304
- access?: StudioNodeAccessInput;
286
+ export type StudioAppSectionInput = Omit<StudioAppSectionDefinition, "pages"> & Readonly<{
305
287
  pages: readonly StudioAppPageInput[];
306
288
  }>;
307
289
  export type StudioAppDefinitionInput = Omit<StudioAppDefinition, "layout" | "sections"> & Readonly<{
@@ -317,20 +299,18 @@ export type StudioAppDefinitionInput = Omit<StudioAppDefinition, "layout" | "sec
317
299
  /** What `declareStudioApp` takes. */
318
300
  export type StudioAppDeclarationInput = Readonly<{
319
301
  definition: Readonly<{
302
+ audience?: AccessAudience;
320
303
  definition: StudioAppDefinitionInput;
321
- grants: Readonly<{
322
- groups: readonly Readonly<{
323
- group: GroupReference;
324
- role: StudioAppRole;
325
- }>[];
326
- }>;
327
304
  lifecycle: StudioAppLifecycle;
328
305
  }>;
329
306
  manifest: ComponentManifest;
330
307
  presentation: ComponentPresentation;
331
308
  }>;
332
- /** The manifest fields of a Declared Studio App, references as FQNs. */
333
- export declare const studioAppManifestFields: ({ definition: { layout, sections, ...definition }, grants, lifecycle }: StudioAppDeclarationInput["definition"]) => Pick<StudioAppDeclaration, "definition" | "grants" | "lifecycle">;
309
+ /**
310
+ * The manifest fields of a Declared Studio App, references as FQNs and each
311
+ * audience in its manifest form; `location` names the app in a refusal.
312
+ */
313
+ export declare const studioAppManifestFields: ({ audience, definition: { layout, sections, ...definition }, lifecycle }: StudioAppDeclarationInput["definition"], location: string) => Pick<StudioAppDeclaration, "audience" | "definition" | "lifecycle">;
334
314
  /**
335
315
  * The key of a declared view in its slot: the last segment of its FQN as a
336
316
  * kebab-case name. Two views of one page slot cannot share it.
@@ -346,10 +326,8 @@ export declare const studioAppDeclaration: ReadValue<Readonly<{
346
326
  tags?: readonly string[];
347
327
  version: string;
348
328
  }> & Readonly<{
329
+ audience?: AccessAudienceDeclaration;
349
330
  definition: StudioAppDefinition;
350
- grants: Readonly<{
351
- groups: readonly StudioAppGrant[];
352
- }>;
353
331
  lifecycle: StudioAppLifecycle;
354
332
  }> & JsonObject>;
355
333
  export {};
@@ -1,3 +1,4 @@
1
+ import type { AccessAudience, AccessAudienceDeclaration } from "../access/audience.js";
1
2
  import type { JsonObject, JsonValue } from "../foundation/json.js";
2
3
  import type { PortableFormDefinition } from "../schema/forms.js";
3
4
  import type { PackageSchemaProjection } from "../schema/projection.js";
@@ -40,6 +41,11 @@ export type ToolHealthCheck = Readonly<{
40
41
  }>;
41
42
  export type ToolDeclaration = PackagePrimitiveBase<"tool"> & Readonly<{
42
43
  allowMultipleSkillBindings?: boolean;
44
+ /**
45
+ * Who is offered the tool (Resource Audience), apart from any collection
46
+ * it is in; absent offers it to nobody.
47
+ */
48
+ audience?: AccessAudienceDeclaration;
43
49
  autoActivate?: boolean;
44
50
  autoInstantiate?: boolean;
45
51
  bindingScopes?: readonly BindingScope[];
@@ -59,23 +65,24 @@ export type ToolDeclaration = PackagePrimitiveBase<"tool"> & Readonly<{
59
65
  toolGuidance?: ToolGuidance;
60
66
  usageScopes?: readonly ("automation" | "chat" | "skill")[];
61
67
  }>;
62
- /** Seeded once, when the collection is first created for an organization. */
63
- export type ToolCollectionVisibilityGrant = Readonly<{
64
- effect: "allow" | "deny";
65
- subject: "organization";
66
- }>;
67
68
  export type ToolCollectionDeclaration = PackagePrimitiveBase<"toolCollection"> & Readonly<{
69
+ /**
70
+ * Who is offered the collection (Resource Audience); its tools keep their
71
+ * own. Written when the deploy creates the collection; absent offers it
72
+ * to nobody.
73
+ */
74
+ audience?: AccessAudienceDeclaration;
68
75
  category?: string;
69
- defaultVisibility?: readonly ToolCollectionVisibilityGrant[];
70
76
  tags?: readonly string[];
71
77
  toolFqns: readonly string[];
72
78
  }>;
73
79
  /** References approved Gateway Operations; execution and authority stay Host-owned. */
74
- export type RemoteToolCollectionDeclaration = PackagePrimitiveBase<"remoteToolCollection"> & Pick<ToolCollectionDeclaration, "category" | "defaultVisibility"> & Readonly<{
80
+ export type RemoteToolCollectionDeclaration = PackagePrimitiveBase<"remoteToolCollection"> & Pick<ToolCollectionDeclaration, "audience" | "category"> & Readonly<{
75
81
  gatewayRef: string;
76
82
  operationReferences: readonly string[];
77
83
  }>;
78
- export type RemoteToolCollectionDefinition = Omit<RemoteToolCollectionDeclaration, "description" | "displayName" | "fqn" | "icon" | "kind" | "tags" | "version" | "gatewayRef"> & Readonly<{
84
+ export type RemoteToolCollectionDefinition = Omit<RemoteToolCollectionDeclaration, "audience" | "description" | "displayName" | "fqn" | "icon" | "kind" | "tags" | "version" | "gatewayRef"> & Readonly<{
85
+ audience?: AccessAudience;
79
86
  gatewayRef: DeclarationReference<"externalAppGateway">;
80
87
  }>;
81
88
  export type FieldTransformerDeclaration = PackagePrimitiveBase<"fieldTransformer"> & Readonly<{
@@ -1,3 +1,4 @@
1
+ import type { AccessAudienceDeclaration } from "../access/audience.js";
1
2
  import type { JsonObject, JsonValue } from "../foundation/json.js";
2
3
  import type { PackageSchemaProjection } from "../schema/projection.js";
3
4
  import type { PackagePrimitiveBase } from "./base.js";
@@ -454,6 +455,12 @@ export type WorkflowAuthoringDefinition = Readonly<{
454
455
  /** Whether a finished run keeps its Run Details (`full`, the default) or only its Run Outcome. */
455
456
  export type WorkflowRunDetailsRetention = "full" | "outcome_only";
456
457
  export type WorkflowDeclaration = PackagePrimitiveBase<"workflow"> & Readonly<{
458
+ /**
459
+ * Who may start the Workflow by hand or is offered it (Resource
460
+ * Audience); absent offers it to nobody. Event and schedule triggers
461
+ * never ask.
462
+ */
463
+ audience?: AccessAudienceDeclaration;
457
464
  dataAccess?: DataAccess<"workflow">;
458
465
  definition: WorkflowAuthoringDefinition;
459
466
  lifecycle: LifecycleOptions;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export type { DataAccess } from "./components/data-access.js";
2
+ export { access, accessCapabilityMode, accessGrantAxisSlug, builtinGroups, capabilityCatalogNodes, coreCapabilities, coreSectionRequirements, declareAccessCapabilities, declareAccessDocumentDataPolicy, declareAccessGrantAxis, declareAccessKnowledgeDataCondition, declareAccessKnowledgeDataPolicy, declareAccessMaxPrivileges, declareAccessProfile, declareAccessProfileGrant, declareCoreAccessPolicy, evaluateAccessRequirement, knowledgeEntity, unreadConditionAxes } from "./access/index.js";
3
+ export type { AccessApplicationCapabilities, AccessAudience, AccessAudienceDeclaration, AccessAudienceGroup, AccessCanGrant, AccessCapabilitiesDeclaration, AccessCapabilitiesHandle, AccessCapabilityArea, AccessCapabilityCatalogNode, AccessCapabilityGrant, AccessCapabilityHandle, AccessCapabilityIdentity, AccessCapabilityKind, AccessCapabilityMode, AccessCapabilityNodeDeclaration, AccessCapabilityNodeInput, AccessCapabilityReference, AccessCapabilityRequirement, AccessCapabilityTree, AccessComponentManifest, AccessCondition, AccessConditionComparison, AccessConditionInput, AccessConditionLiteral, AccessConditionOperand, AccessConditionOperandInput, AccessConditionTest, AccessCorePolicy, AccessDataOperation, AccessDeclarationInput, AccessDocumentDataOperation, AccessDocumentDataPolicyDeclaration, AccessDocumentDataPolicyDefinition, AccessDocumentDataPolicyHandle, AccessDocumentFolder, AccessDocumentFolderInput, AccessEntryRequirement, AccessFieldSelection, AccessGate, AccessGrantableBy, AccessGrantAxisDeclaration, AccessGrantAxisHandle, AccessGrantAxisOperand, AccessGrantAxisSlug, AccessGrantAxisReference, AccessGrantee, AccessGranteeInput, AccessGroupCoverage, AccessGroupReference, AccessHeldCapability, AccessKnowledgeDataConditionDeclaration, AccessKnowledgeDataConditionHandle, AccessKnowledgeDataPolicyDeclaration, AccessKnowledgeDataPolicyDefinition, AccessKnowledgeDataPolicyHandle, AccessKnowledgeEntityIdentifier, AccessKnowledgeSchemaReference, AccessMaxPrivilegesDeclaration, AccessMaxPrivilegesHandle, AccessMaxPrivilegesTarget, AccessPolicyAxis, AccessPolicyPurpose, AccessPrimitiveDeclaration, AccessProfileAudience, AccessProfileAxisSlugs, AccessProfileDeclaration, AccessProfileDefinition, AccessProfileGrantDeclaration, AccessProfileGrantDefinition, AccessProfileGrantHandle, AccessProfileHandle, AccessProfileReference, AccessReadManageMode, AccessRequirement, AccessRequirementLeaf, AccessRequirementResult, AccessResourceOperand, AccessSectionRequirement, AccessSubjectOperand, AxisBinding, ExternalApplicationHandle } from "./access/index.js";
2
4
  export { buildOperationGatewayContract, readOperationGatewayContract } from "./gateway/operation-contract.js";
3
5
  export type { PortableOperationGatewayContract, OperationGatewayContractInput } from "./gateway/operation-contract.js";
4
6
  export type { ExternalAppGatewayDeclaration } from "./components/external-app-gateway.js";
@@ -20,7 +22,7 @@ export type { WorkflowNodePortsContract, WorkflowPortIssue, WorkflowPortIssueCod
20
22
  export { builtInCodeRuntimeIds } from "./components/workflow-code-runtimes.js";
21
23
  export { workflowSchemaAt } from "./components/workflow-schema.js";
22
24
  export type { WorkflowSchemaLocation } from "./components/workflow-schema.js";
23
- export { declareDatasetParser, declareDomain, declareDomainTemplate, declareExternalApplication, declareExternalAppGateway, declareExternalDatasetProvider, declareKnowledgeEntitySchema, declareKnowledgePolicy, declareManagedDatasetProvider, declareOrganizationGroup, declareOrganizationInstructions, servicePrincipal, declareOrganizationSettings, declareRemoteToolCollection, declareSkillTemplate, declareStudioApp, declareStudioAppTemplate, declareStudioComponent, declareToolCollection, declareWorkflow, declareWorkflowFieldCollection, declareWorkflowNodeCollection, declareWorkflowTemplate } from "./components/metadata-authoring.js";
25
+ export { declareDatasetParser, declareDomain, declareDomainTemplate, declareExternalApplication, declareExternalAppGateway, declareExternalDatasetProvider, declareKnowledgeEntitySchema, declareManagedDatasetProvider, declareOrganizationGroup, declareOrganizationInstructions, servicePrincipal, declareOrganizationSettings, declareRemoteToolCollection, declareSkillTemplate, declareStudioApp, declareStudioAppTemplate, declareStudioComponent, declareToolCollection, declareWorkflow, declareWorkflowFieldCollection, declareWorkflowNodeCollection, declareWorkflowTemplate } from "./components/metadata-authoring.js";
24
26
  export { DATASET_TABLE_TEMPLATE_PHYSICAL_CODES, DATASET_TABLE_TEMPLATE_SEMANTIC_ROLES, declareDatasetBlueprint, declareDatasetTableTemplate, rejectUnsupportedDatasetTableTemplate } from "./components/templates.js";
25
27
  export { declarePackage } from "./package/definition.js";
26
28
  export { isVariableReference, packageVariables, packageVariableTypes, packageVariableViolation, variableReference } from "./package/variables.js";
@@ -32,7 +34,7 @@ export { BACKEND_EXECUTION_LANES, declareHostedContribution, FRONTEND_CATALOG_CO
32
34
  export type { BackendExecutionLane, BackendHostedContributionManifest, ExtensionHost, FrontendCatalogContract, FrontendCatalogContributionManifest, FrontendCatalogExportName, FrontendExtensionHost, HostedContributionDeclaration, HostedContributionInput, HostedContributionManifest, HostedContributionSourceIdentity } from "./hosted/contributions.js";
33
35
  export type { ComponentManifest, ComponentPresentation, DeclarationHandle, DeclarationReference, DeclaredComponent, DocumentsConnectorImplementation, PackageSchemaRuntimeSidecar, MetadataComponentManifest, ToolClassDeclaration, WorkflowFieldClassDeclaration, KnowledgeEntityAdapterClassDeclaration, ConnectionClassDeclaration, KnowledgeConnectorClassDeclaration, KnowledgeConnectorOAuthClassDeclaration, EventListenerClassDeclaration, FieldTransformerClassDeclaration, NotificationChannelClassDeclaration, ToolSettingsOptionsClassDeclaration, WorkflowNodeClassDeclaration, WorkflowNodePortInput } from "./components/authoring-core.js";
34
36
  export type { DeclaredPackageComponent, DeclaredPackageManifest, PackageDefinition, PackageManifestInput, NormalizedPackageDefinition, PackageComponent } from "./package/definition.js";
35
- 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, StudioTriggerFormRichTextField, StudioTriggerFormUserField, StudioTriggerFormValueField } from "./components/studio.js";
37
+ export type { StudioAppDeclaration, StudioAppDeclarationInput, StudioAppDefinition, StudioAppDefinitionInput, StudioAppLayoutDefinition, StudioAppLifecycle, StudioAppPageDefinition, StudioAppPageInput, StudioAppSectionDefinition, StudioAppSectionInput, StudioAppTemplateDeclaration, StudioAppTemplateDefinition, StudioAppTemplatePageDefinition, StudioAppTemplateSectionDefinition, StudioAppViewDataBinding, StudioAppViewDefinition, StudioAppViewInput, StudioAppViewPropsInput, StudioTriggerReference, StudioComponentDeclaration, StudioTriggerFormDeclaration, StudioTriggerFormEntitiesField, StudioTriggerFormEnumField, StudioTriggerFormField, StudioTriggerFormFileField, StudioTriggerFormInput, StudioTriggerFormJsonField, StudioTriggerFormOption, StudioTriggerFormRichTextField, StudioTriggerFormUserField, StudioTriggerFormValueField } from "./components/studio.js";
36
38
  export type { StudioAgentFormDeclaration, StudioAgentFormField } from "./components/studio-agent-form.js";
37
39
  export { readStudioAgentForm, withStudioAgentForm } from "./components/studio-agent-form.js";
38
40
  export { defaultStudioTriggerFormFileAccept, maxStudioTriggerFormFileBytes, readStudioTriggerForm, studioViewKey, withStudioTriggerForm } from "./components/studio.js";
@@ -53,21 +55,21 @@ export type { BindingScope, ConnectionReference, PackagePrimitiveBase, PackagePr
53
55
  export type { LifecycleDeployMode, LifecycleOptions } from "./components/lifecycle.js";
54
56
  export type { CatalogTags, DomainDeclaration, DomainTemplateDeclaration, SkillTemplateDeclaration } from "./components/catalog.js";
55
57
  export { externalApplicationConsents, externalApplicationViolation } from "./components/external-application.js";
56
- export type { ExternalApplicationAccessKey, ExternalApplicationBindingTargets, ExternalApplicationConsent, ExternalApplicationDeclaration, ExternalApplicationDeclaredBindings, ExternalApplicationGroupBinding, ExternalApplicationKnowledgeTarget, ExternalApplicationRoleBase, ExternalApplicationServerRole, ExternalApplicationType, ExternalApplicationUserRole, VaryingExternalApplication } from "./components/external-application.js";
58
+ export type { ExternalApplicationConsent, ExternalApplicationDeclaration, ExternalApplicationType, VaryingExternalApplication } from "./components/external-application.js";
57
59
  export { organizationGroupFqnMaxLength, organizationGroupNodes, organizationGroupViolation } from "./components/organization-group.js";
58
60
  export type { OrganizationGroupDeclaration, OrganizationSubgroup } from "./components/organization-group.js";
59
61
  export { organizationInstructionsViolation } from "./components/organization-instructions.js";
60
62
  export type { OrganizationInstructionsDeclaration, VaryingOrganizationInstructions } from "./components/organization-instructions.js";
61
63
  export { organizationSettingsViolation } from "./components/organization-settings.js";
62
- export type { OrganizationSettingsApplicationConsent, OrganizationSettingsAuthentication, OrganizationSettingsDeclaration, OrganizationSettingsLocalMethod, OrganizationSettingsMedia, OrganizationSettingsSso, OrganizationSettingsSsoRole, VaryingOrganizationSettings } from "./components/organization-settings.js";
64
+ export type { OrganizationSettingsApplicationConsent, OrganizationSettingsAuthentication, OrganizationSettingsDeclaration, OrganizationSettingsLocalMethod, OrganizationSettingsMedia, OrganizationSettingsSso, VaryingOrganizationSettings } from "./components/organization-settings.js";
63
65
  export { declareAgent, declareSkill, duplicateToolBinding, toolBindingDeclaration } from "./components/agents.js";
64
- export type { AgentActivityPolicy, AgentAudience, AgentAudienceDeclaration, AgentDeclaration, AgentDefinitionInput, AgentMemberAudience, AgentModelTier, DeclaredToolBindings, KnowledgeScopeSelection, SkillDeclaration, SkillDefinitionInput, ToolBinding, ToolBindingApproval, ToolBindingDeclaration, ToolBindingKnowledgeScope } from "./components/agents.js";
66
+ export type { AgentActivityPolicy, AgentDeclaration, AgentDefinitionInput, AgentModelTier, DeclaredToolBindings, KnowledgeScopeSelection, SkillDeclaration, SkillDefinitionInput, ToolBinding, ToolBindingApproval, ToolBindingDeclaration, ToolBindingKnowledgeScope } from "./components/agents.js";
65
67
  export type { DocumentsDeltaCursorExpired, DocumentsDeltaItem, DocumentsDeltaPage, DocumentsDeltaRequest, DocumentsDrive, DocumentsDrivesPage, DocumentsFolder, DocumentsFoldersPage, DocumentsFetchedContent, DocumentsFileRevision, DocumentsRootAncestry, DocumentsSource, DocumentsSyncWarning, KnowledgeEntityAdapterDeclaration, ConnectionDeclaration, DatasetParserDeclaration, ExternalDatasetProviderDeclaration, KnowledgeConnectorContribution, KnowledgeConnectorBindingExtraConfig, KnowledgeConnectorDeclaration, KnowledgeConnectorRemoteDeletion, KnowledgeConnectorFieldMapRule, KnowledgeEntitySchemaCapability, KnowledgeConnectorOAuthDeclaration, KnowledgeConnectorOAuthTokens, KnowledgeConnectorRemoteReference, EventListenerDeclaration, EventListenerInternalOccurrence, EventListenerPollRequest, EventListenerPollResult, EventListenerWebhookRequest, KnowledgePredefinedSchedule, ManagedDatasetProviderDeclaration } from "./components/connectors.js";
66
68
  export type { PackagePrimitiveDeclaration } from "./components/declaration.js";
67
69
  export type { DatasetBlueprintClassDeclaration, DatasetBlueprintDeclaration, DatasetTableTemplateClassDeclaration, DatasetTableTemplateDeclaration, DatasetTableTemplateHint, DatasetTableTemplatePhysicalCode, DatasetTableTemplateSemanticRole, DatasetTableTemplateUniqueness } from "./components/templates.js";
68
- export type { KnowledgeAutocompleteConfiguration, KnowledgeAutocompleteFieldReference, KnowledgeEntityRelationField, KnowledgeEntitySchemaDeclaration, KnowledgeDisplayDefaults, KnowledgeFieldLocalization, KnowledgeFieldPresentation, KnowledgeFieldSemantics, KnowledgeFileField, KnowledgeFileFieldDeclaration, KnowledgeUserField, KnowledgeUserFieldDeclaration, KnowledgeManagedProjection, LocalizedFieldText, KnowledgePolicyDeclaration } from "./components/knowledge.js";
70
+ export type { KnowledgeAutocompleteConfiguration, KnowledgeAutocompleteFieldReference, KnowledgeEntityRelationField, KnowledgeEntitySchemaDeclaration, KnowledgeDisplayDefaults, KnowledgeFieldLocalization, KnowledgeFieldPresentation, KnowledgeFieldSemantics, KnowledgeFileField, KnowledgeFileFieldDeclaration, KnowledgeUserField, KnowledgeUserFieldDeclaration, KnowledgeManagedProjection, LocalizedFieldText } from "./components/knowledge.js";
69
71
  export { toolResultBrand } from "./components/tools.js";
70
- export type { FieldTransformerDeclaration, NotificationChannelDeclaration, RemoteToolCollectionDeclaration, RemoteToolCollectionDefinition, SetupInstructions, ToolCollectionDeclaration, ToolCollectionVisibilityGrant, ToolDeclaration, ToolDisplayPart, ToolExtraLoader, ToolGuidance, ToolHealthCheck, ToolResultWithDisplay, ToolSettingsOption, ToolSettingsOptionPage, ToolSettingsOptionsContext, ToolSettingsOptionsDeclaration } from "./components/tools.js";
72
+ export type { FieldTransformerDeclaration, NotificationChannelDeclaration, RemoteToolCollectionDeclaration, RemoteToolCollectionDefinition, SetupInstructions, ToolCollectionDeclaration, ToolDeclaration, ToolDisplayPart, ToolExtraLoader, ToolGuidance, ToolHealthCheck, ToolResultWithDisplay, ToolSettingsOption, ToolSettingsOptionPage, ToolSettingsOptionsContext, ToolSettingsOptionsDeclaration } from "./components/tools.js";
71
73
  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, WorkflowRunDetailsRetention, WorkflowTemplateKind, WorkflowTriggerActivationDeclaration, WorkflowTemplateDeclaration, WorkflowTemplateGraphDefinition, WorkflowTemplateGraphSchemaContract, WorkflowTemplateUiLayout, WorkflowTriggerInvocation } from "./components/workflows.js";
72
74
  export type { JsonObject, JsonPrimitive, JsonValue } from "./foundation/json.js";
73
75
  export type { Bounds, Compatibility, ConnectorContext, DatasetAggregateOperation, DatasetBindingMode, DatasetDefinition, DatasetDeleteInput, DatasetDeleteResult, DatasetHealth, DatasetIngestInput, DatasetIngestMode, DatasetIngestResult, DatasetInspectInput, DatasetInspectResult, DatasetFilter, DatasetOperation, DatasetOrder, DatasetPredicate, DatasetPredicateOperator, DatasetQueryIntent, DatasetTimeBucket, DatasetProviderCapabilities, DatasetProviderError, DatasetProviderResult, DatasetProvisionInput, DatasetProvisionResult, DatasetRecordPage, DatasetResultPage, DatasetScalarType, DatasetSourceItem, DatasetSourceLocation, DatasetValue, DefinitionProposal, DiscoverDefinitionInput, ExternalDatasetBinding, ListSourcesInput, QueryInput, Readiness, ReadinessInput, SafeDiagnostic, SourcePage } from "./components/datasets.js";
@@ -85,10 +87,10 @@ export { parseJsonSchemaProjection } from "./package/readers.js";
85
87
  export { deriveWorkflowEditor, WorkflowJsonSchemaFormat } from "./components/workflow-editor.js";
86
88
  export type { WorkflowEditorDerivationInput } from "./components/workflow-editor.js";
87
89
  export { declareKnowledgeConnectorInstance, declareDatasetConnectorInstance } from "./components/metadata-authoring.js";
88
- export type { ConnectorInstanceConnection, KnowledgeConnectorInstanceDeclaration, DatasetConnectorInstanceDeclaration, KnowledgeConnectorInstanceSettings, KnowledgeConnectorInstanceRemoteFilters, KnowledgeConnectorInstanceBindingOptions, KnowledgeConnectorInstanceEntityBinding, KnowledgeConnectorPushEntityMatch, KnowledgeConnectorRemoteDeletionPropagation, KnowledgeConnectorInstancePipeline, KnowledgeConnectorInstanceSchedule, KnowledgeConnectorInstanceDataPolicy, DatasetConnectorInstanceDataPolicy, DatasetConnectorInstanceSchedule } from "./components/connector-instances.js";
89
- export type { KnowledgePolicyBody, KnowledgePolicyPredicate, KnowledgePolicyRef } from "./components/knowledge.js";
90
- export type { ServicePrincipalDeclaration, ServicePrincipalOrganizationRole } from "./components/service-principal.js";
90
+ export type { ConnectorInstanceConnection, KnowledgeConnectorInstanceDeclaration, DatasetConnectorInstanceDeclaration, KnowledgeConnectorInstanceSettings, KnowledgeConnectorInstanceRemoteFilters, KnowledgeConnectorInstanceBindingOptions, KnowledgeConnectorInstanceEntityBinding, KnowledgeConnectorPushEntityMatch, KnowledgeConnectorRemoteDeletionPropagation, KnowledgeConnectorInstancePipeline, KnowledgeConnectorInstanceSchedule, DatasetConnectorInstanceDataPolicy, DatasetConnectorInstanceSchedule } from "./components/connector-instances.js";
91
+ export { adminServicePrincipals } from "./components/service-principal.js";
92
+ export type { ServicePrincipalDeclaration } from "./components/service-principal.js";
91
93
  export { declareDocumentCollection } from "./components/metadata-authoring.js";
92
- export type { DeclaredRule, DeclaredRuleGrantee, DeclaredRuleTarget, DocumentCollectionDeclaration, DocumentFolderTarget } from "./components/document-collections.js";
94
+ export type { DocumentCollectionDeclaration, DocumentFolderTarget } from "./components/document-collections.js";
93
95
  export { declareConnectionInstance } from "./components/metadata-authoring.js";
94
96
  export type { ConnectionInstanceDeclaration } from "./components/connection-instances.js";