@segmentstream/ontology 0.106.3 → 0.108.0

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 (59) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/README.md +45 -11
  3. package/dist/analyze.d.ts +7 -1
  4. package/dist/analyze.js +271 -16
  5. package/dist/authoring.js +6 -0
  6. package/dist/diagnostics.d.ts +3 -3
  7. package/dist/diagnostics.js +1 -0
  8. package/dist/emails.d.ts +36 -5
  9. package/dist/emails.js +139 -2
  10. package/dist/index.d.ts +7 -7
  11. package/dist/index.js +5 -3
  12. package/dist/manifest.d.ts +262 -1
  13. package/dist/manifest.js +73 -4
  14. package/dist/migrate/apply.js +8 -1
  15. package/dist/migrate/model.d.ts +154 -0
  16. package/dist/migrate/storage.d.ts +2 -0
  17. package/dist/migrate/storage.js +8 -0
  18. package/dist/names.d.ts +5 -0
  19. package/dist/names.js +5 -0
  20. package/dist/ontology.d.ts +4 -1
  21. package/dist/permissions.d.ts +30 -2
  22. package/dist/permissions.js +51 -6
  23. package/dist/runtime/agent-counters.d.ts +5 -1
  24. package/dist/runtime/agent-counters.js +21 -6
  25. package/dist/runtime/agent-web.d.ts +9 -6
  26. package/dist/runtime/agent-web.js +101 -5
  27. package/dist/runtime/generated-actions.js +2 -3
  28. package/dist/runtime/guests.d.ts +32 -0
  29. package/dist/runtime/guests.js +64 -0
  30. package/dist/runtime/new-user-hook.js +2 -1
  31. package/dist/runtime/oauth.js +7 -1
  32. package/dist/runtime/pipeline.js +3 -2
  33. package/dist/runtime/principals.js +6 -4
  34. package/dist/runtime/sql-runtime.js +2 -1
  35. package/dist/runtime.d.ts +10 -2
  36. package/dist/service/agent/authentication.d.ts +6 -4
  37. package/dist/service/agent/authentication.js +20 -5
  38. package/dist/service/agent/protocol.d.ts +28 -2
  39. package/dist/service/agent/protocol.js +23 -10
  40. package/dist/service/agent/server.d.ts +9 -2
  41. package/dist/service/agent/server.js +12 -12
  42. package/dist/service/agent/tasks.d.ts +3 -0
  43. package/dist/service/agent/tasks.js +5 -3
  44. package/dist/service/agent/web-tokens.d.ts +28 -13
  45. package/dist/service/agent/web-tokens.js +91 -38
  46. package/dist/service/authentication.d.ts +6 -0
  47. package/dist/service/authentication.js +11 -2
  48. package/dist/service/chat/review-delivery.js +4 -0
  49. package/dist/service/mcp/server.js +3 -3
  50. package/dist/service/mcp/tools.d.ts +4 -2
  51. package/dist/service/mcp/tools.js +14 -2
  52. package/dist/service/oauth/protocol.js +8 -2
  53. package/dist/service/oauth/server.js +5 -1
  54. package/dist/service/runtime-contract.d.ts +58 -6
  55. package/dist/service/schemas.d.ts +40 -0
  56. package/dist/service/service.js +15 -4
  57. package/dist/sign-in.d.ts +66 -9
  58. package/dist/sign-in.js +87 -9
  59. package/package.json +1 -1
package/dist/emails.js CHANGED
@@ -1,6 +1,15 @@
1
1
  import { isRecord } from "./authoring-names.js";
2
- /** The values every email may use besides those the action passes. */
3
- export const BUILT_IN_EMAIL_VALUES = ["member.name", "member.firstName", "workspace.name"];
2
+ /**
3
+ * The values every email may use besides those the action passes: the recipient, the workspace,
4
+ * the app's production address and its MCP server's address, `/mcp` on the same domain.
5
+ */
6
+ export const BUILT_IN_EMAIL_VALUES = [
7
+ "member.name",
8
+ "member.firstName",
9
+ "workspace.name",
10
+ "app.url",
11
+ "app.mcpUrl",
12
+ ];
4
13
  /**
5
14
  * The query parameter of the callback a sign-in link is requested with, naming the queued email it
6
15
  * delivers. The platform reads it from Neon Auth's link and leaves it out of the path the person
@@ -19,6 +28,10 @@ export const MAX_EMAIL_PARAGRAPHS = 20;
19
28
  export const MAX_EMAIL_VALUES = 50;
20
29
  /** The longest path a sign-in link returns to. */
21
30
  export const MAX_RETURN_PATH = 1024;
31
+ /** The most sections of one email. */
32
+ export const MAX_EMAIL_SECTIONS = 5;
33
+ /** The most items of one section. */
34
+ export const MAX_EMAIL_SECTION_ITEMS = 10;
22
35
  const FIELDS = [
23
36
  "subject",
24
37
  "eyebrow",
@@ -27,9 +40,12 @@ const FIELDS = [
27
40
  "note",
28
41
  "paragraphs",
29
42
  "action",
43
+ "sections",
30
44
  "footer",
31
45
  "replyTo",
32
46
  ];
47
+ const SECTION_FIELDS = ["title", "text", "copy", "items", "note"];
48
+ const ITEM_FIELDS = ["label", "text", "code"];
33
49
  const REQUIRED = ["subject", "heading", "action"];
34
50
  const OPTIONAL_TEXT = ["eyebrow", "note", "footer"];
35
51
  const PLACEHOLDER = /\{\{\s*([^{}]*?)\s*\}\}/g;
@@ -51,9 +67,27 @@ function emailTexts(template) {
51
67
  ...(template.note === undefined ? [] : [["note", template.note]]),
52
68
  ...(template.paragraphs ?? []).map((text, index) => [`paragraphs.${index}`, text]),
53
69
  ["action", template.action],
70
+ ...(template.sections ?? []).flatMap((section, index) => sectionTexts(section, index)),
54
71
  ...(template.footer === undefined ? [] : [["footer", template.footer]]),
55
72
  ];
56
73
  }
74
+ /** Every text of one section, with the path of its field. */
75
+ function sectionTexts(section, index) {
76
+ const at = `sections.${index}`;
77
+ const optional = (path, text) => text === undefined ? [] : [[path, text]];
78
+ return [
79
+ [`${at}.title`, section.title],
80
+ ...optional(`${at}.text`, section.text),
81
+ ...optional(`${at}.copy.label`, section.copy?.label),
82
+ ...optional(`${at}.copy.value`, section.copy?.value),
83
+ ...(section.items ?? []).flatMap((item, itemIndex) => [
84
+ [`${at}.items.${itemIndex}.label`, item.label],
85
+ ...optional(`${at}.items.${itemIndex}.text`, item.text),
86
+ ...optional(`${at}.items.${itemIndex}.code`, item.code),
87
+ ]),
88
+ ...optional(`${at}.note`, section.note),
89
+ ];
90
+ }
57
91
  /** The placeholders of one text, in order. */
58
92
  function placeholders(text) {
59
93
  return [...text.matchAll(PLACEHOLDER)].map((match) => match[1]);
@@ -167,6 +201,9 @@ function emailTemplate(value, path, report) {
167
201
  });
168
202
  }
169
203
  }
204
+ if (value.sections !== undefined) {
205
+ valid = checkSections(value.sections, `${path}.sections`, report) && valid;
206
+ }
170
207
  if (!valid) {
171
208
  return undefined;
172
209
  }
@@ -188,10 +225,110 @@ function emailTemplate(value, path, report) {
188
225
  ? {}
189
226
  : { paragraphs: [...value.paragraphs] }),
190
227
  action: value.action,
228
+ ...(value.sections === undefined
229
+ ? {}
230
+ : { sections: value.sections.map(normalSection) }),
191
231
  ...(value.footer === undefined ? {} : { footer: value.footer }),
192
232
  ...(value.replyTo === undefined ? {} : { replyTo: value.replyTo }),
193
233
  };
194
234
  }
235
+ /** Whether every key of `value` is one of `fields`, reporting the others. */
236
+ function knownKeys(value, fields, path, report) {
237
+ let valid = true;
238
+ for (const key of Object.keys(value)) {
239
+ if (!fields.includes(key)) {
240
+ report("invalid-email", `${path}.${key}`, `Unknown field ${key}; use ${fields.join(", ")}.`);
241
+ valid = false;
242
+ }
243
+ }
244
+ return valid;
245
+ }
246
+ /** Checks `sections`: at most a few boxes, each with a title and its optional parts. */
247
+ function checkSections(value, path, report) {
248
+ if (!Array.isArray(value) || value.length > MAX_EMAIL_SECTIONS) {
249
+ report("invalid-email", path, `sections is a list of at most ${MAX_EMAIL_SECTIONS} { title, text?, copy?, items?, note? }.`);
250
+ return false;
251
+ }
252
+ let valid = true;
253
+ value.forEach((section, index) => {
254
+ const at = `${path}.${index}`;
255
+ if (!isRecord(section)) {
256
+ report("invalid-email", at, "A section is { title, text?, copy?, items?, note? }.");
257
+ valid = false;
258
+ return;
259
+ }
260
+ valid = knownKeys(section, SECTION_FIELDS, at, report) && valid;
261
+ valid = checkText(section.title, `${at}.title`, MAX_EMAIL_TEXT, report) && valid;
262
+ for (const key of ["text", "note"]) {
263
+ if (section[key] !== undefined) {
264
+ valid = checkText(section[key], `${at}.${key}`, MAX_EMAIL_TEXT, report) && valid;
265
+ }
266
+ }
267
+ if (section.copy !== undefined) {
268
+ const copy = section.copy;
269
+ if (!isRecord(copy)) {
270
+ report("invalid-email", `${at}.copy`, "copy is { label?, value }.");
271
+ valid = false;
272
+ }
273
+ else {
274
+ valid = knownKeys(copy, ["label", "value"], `${at}.copy`, report) && valid;
275
+ valid = checkText(copy.value, `${at}.copy.value`, MAX_EMAIL_TEXT, report) && valid;
276
+ if (copy.label !== undefined) {
277
+ valid = checkText(copy.label, `${at}.copy.label`, MAX_EMAIL_TEXT, report) && valid;
278
+ }
279
+ }
280
+ }
281
+ if (section.items !== undefined) {
282
+ if (!Array.isArray(section.items) || section.items.length > MAX_EMAIL_SECTION_ITEMS) {
283
+ report("invalid-email", `${at}.items`, `items is a list of at most ${MAX_EMAIL_SECTION_ITEMS} { label, text?, code? }.`);
284
+ valid = false;
285
+ }
286
+ else {
287
+ section.items.forEach((item, itemIndex) => {
288
+ const itemAt = `${at}.items.${itemIndex}`;
289
+ if (!isRecord(item)) {
290
+ report("invalid-email", itemAt, "An item is { label, text?, code? }.");
291
+ valid = false;
292
+ return;
293
+ }
294
+ valid = knownKeys(item, ITEM_FIELDS, itemAt, report) && valid;
295
+ valid = checkText(item.label, `${itemAt}.label`, MAX_EMAIL_TEXT, report) && valid;
296
+ for (const key of ["text", "code"]) {
297
+ if (item[key] !== undefined) {
298
+ valid = checkText(item[key], `${itemAt}.${key}`, MAX_EMAIL_TEXT, report) && valid;
299
+ }
300
+ }
301
+ });
302
+ }
303
+ }
304
+ });
305
+ return valid;
306
+ }
307
+ /** A checked section with only its declared fields, in order. */
308
+ function normalSection(section) {
309
+ return {
310
+ title: section.title,
311
+ ...(section.text === undefined ? {} : { text: section.text }),
312
+ ...(section.copy === undefined
313
+ ? {}
314
+ : {
315
+ copy: {
316
+ ...(section.copy.label === undefined ? {} : { label: section.copy.label }),
317
+ value: section.copy.value,
318
+ },
319
+ }),
320
+ ...(section.items === undefined
321
+ ? {}
322
+ : {
323
+ items: section.items.map((item) => ({
324
+ label: item.label,
325
+ ...(item.text === undefined ? {} : { text: item.text }),
326
+ ...(item.code === undefined ? {} : { code: item.code }),
327
+ })),
328
+ }),
329
+ ...(section.note === undefined ? {} : { note: section.note }),
330
+ };
331
+ }
195
332
  /**
196
333
  * The declared emails by wire name, each checked: its fields, their lengths and their
197
334
  * placeholders. `wireName` turns a camelCase name into its wire form, reporting one that cannot
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export type { ActionsBuilder, AnyEntity, ActionHandle, ActionInvoker, MetricQuer
24
24
  export { ActionRejected, BatchErrorDetails, Conflict, DeploymentInterrupted, DeploymentSwitching, LimitErrorDetails, NotFound, PermissionDenied, ScopeViolated, } from "./errors.js";
25
25
  export type { ActionError } from "./errors.js";
26
26
  export { browserAuthenticationCompatible } from "./manifest-compatibility.js";
27
- export { ActionManifest, actionConnectionKeys, canonicalJson, ConnectionManifest, EntityManifest, EntityPermissionsManifest, decodeManifestDocument, encodeManifest, formatManifest, IndexManifest, isValueMatched, MANIFEST_VERSION, manifestHash, ModelMetricManifest, OntologyManifest, OntologyManifestWire, PropertyManifest, RelationshipManifest, RoleManifest, ActionTriggerManifest, ScopeManifest, CronTriggerManifest, isActionTrigger, isCronTrigger, isWebhookTrigger, OtherTriggerManifest, WebhookTriggerManifest, WorkflowManifest, WorkflowTriggerManifest, SelectOptionManifest, SignInManifest, signInPolicyOf, channelPolicyOf, signUpOriginsOf, signUpRolesOf, } from "./manifest.js";
27
+ export { ActionManifest, actionConnectionKeys, canonicalJson, ConnectionManifest, EntityManifest, EntityPermissionsManifest, decodeManifestDocument, encodeManifest, formatManifest, IndexManifest, isValueMatched, MANIFEST_VERSION, manifestHash, ModelMetricManifest, OntologyManifest, OntologyManifestWire, PropertyManifest, RelationshipManifest, RoleManifest, ActionTriggerManifest, ScopeManifest, CronTriggerManifest, isActionTrigger, isCronTrigger, isWebhookTrigger, OtherTriggerManifest, WebhookTriggerManifest, WorkflowManifest, WorkflowTriggerManifest, SelectOptionManifest, SignInManifest, GuestManifest, guestOf, signInPolicyOf, channelPolicyOf, signUpOriginsOf, signUpRolesOf, } from "./manifest.js";
28
28
  export { SYSTEM_PROPERTIES } from "./names.js";
29
29
  export type { SystemProperty } from "./names.js";
30
30
  export { isMe, isMeMarker, MAX_ME_HOPS, me, ME_KEY, MeMarker, mePathOf, meToWire, MeTypeId, } from "./me.js";
@@ -33,8 +33,8 @@ export { check, defineOntology } from "./ontology.js";
33
33
  export { webhookDeliveryJsonSchema } from "./analyze.js";
34
34
  export { webhookToken, webhookTokenMatches, WEBHOOK_TOKEN_CONTEXT } from "./webhook-token.js";
35
35
  export type { Ontology } from "./ontology.js";
36
- export { DEFAULT_MEMBER_PERMISSIONS, effectiveScope, generatedActionPermissions, grants, isAllowed, parsePermission, permissionsOf, principalScopes, READ_VERB, readScope, rolesGranting, scopesOf, USER_IDENTITY_VERBS, USER_MEMBER_VERBS, WILDCARD, WILDCARD_ENTITY_VERBS, WORKSPACE_SOURCE_PERMISSION, } from "./permissions.js";
37
- export type { ParsedPermission, PermissionHolder, RolePermissions, ScopedPermission, ScopeFilter, ScopeValue, ScopeWhere, UserMemberVerb, } from "./permissions.js";
36
+ export { AGENT_TOOL_VERBS, agentToolPermission, agentToolsOf, DEFAULT_MEMBER_PERMISSIONS, effectiveScope, generatedActionPermissions, grants, isAllowed, parsePermission, permissionsOf, principalScopes, READ_VERB, readScope, rolesGranting, scopesOf, USER_IDENTITY_VERBS, USER_MEMBER_VERBS, WILDCARD, WILDCARD_ENTITY_VERBS, WORKSPACE_SOURCE_PERMISSION, } from "./permissions.js";
37
+ export type { AgentToolVerb, ParsedPermission, PermissionHolder, RolePermissions, ScopedPermission, ScopeFilter, ScopeValue, ScopeWhere, UserMemberVerb, } from "./permissions.js";
38
38
  export { p, PROPERTY_TYPES, propertyDefinition } from "./property.js";
39
39
  export type { AnyProperty, NumberOptions, Property, PropertyDefinition, PropertyOf, PropertyOptions, BlobOptions, ListOptions, PropertyType, ReferenceOptions, SelectOption, SelectOptionInput, TextOptions, } from "./property.js";
40
40
  export { ON_DELETE, rel } from "./relationship.js";
@@ -48,9 +48,9 @@ export { after, changed, cron, cronNeverFires, cronProblem, isWorkflow, isWorkfl
48
48
  export { MAX_WEBHOOK_BODY_BYTES, MAX_META_WEBHOOK_BODY_BYTES, MAX_WEBHOOK_HEADERS, MAX_WEBHOOKS, WEBHOOK_BASE_PATH, WEBHOOK_SIGNATURE_SCHEMES, webhookDelivery, webhookHeaderProblem, webhookPath, } from "./webhooks.js";
49
49
  export type { WebhookDelivery, WebhookSignatureScheme } from "./webhooks.js";
50
50
  export type { ActionEvent, ActionTrigger, AfterOptions, AnyActionHandle, AnyWorkflow, ChangedBounds, CronOptions, CronProblem, CronTrigger, TriggerFunction, TriggerRecord, WebhookOptions, WebhookSignature, WebhookVerification, WebhookTrigger, Workflow, WorkflowFunction, WorkflowOptions, WorkflowRunContext, WorkflowTrigger, } from "./workflow.js";
51
- export { CHANNEL_PROVIDERS, DEFAULT_SIGN_IN_POLICY, SIGN_IN_METHODS, SIGN_IN_POLICIES, SIGN_UP_CHANNELS, signUpOrigin, } from "./sign-in.js";
52
- export type { ChannelProvider, ResolvedSignInOptions, ResolvedSignUp, SignInCheck, SignInMethod, SignInOptions, SignInPolicy, SignUpChannel, SignUpOptions, } from "./sign-in.js";
53
- export type { EmailTemplate } from "./emails.js";
51
+ export { CHANNEL_PROVIDERS, DEFAULT_SIGN_IN_POLICY, SIGN_IN_METHODS, SIGN_IN_POLICIES, SIGN_UP_CHANNELS, GUEST_CHANNELS, matchesWebsite, signUpOrigin, websiteOrigin, } from "./sign-in.js";
52
+ export type { ChannelProvider, GuestChannel, GuestOptions, ResolvedGuest, ResolvedSignInOptions, ResolvedSignUp, SignInCheck, SignInMethod, SignInOptions, SignInPolicy, SignUpChannel, SignUpOptions, } from "./sign-in.js";
53
+ export type { EmailSection, EmailSectionItem, EmailTemplate } from "./emails.js";
54
54
  export { OntologyActions, OntologyReads, OntologyRuntime, OntologyWrites } from "./runtime.js";
55
55
  export type { ActionRunOptions } from "./runtime.js";
56
56
  export type { BatchOptions, BatchRecordResult, BatchResult, BatchReturning, BatchSummaryResult, CreateManyInput, FieldCondition, OntologyRuntimeService, FindOptions, FreshMetricQueryOptions, GetOptions, Principal, RecordWhere, StoredRecord, StoredValues, UpsertResult, UpdateManyInput, UpsertManyInput, } from "./runtime.js";
@@ -86,7 +86,7 @@ export { configFromEnv, ENVIRONMENT_VARIABLES, NEON_AUTH_ENVIRONMENT_VARIABLES,
86
86
  export type { ActionCommitted, AfterCommitHook, NeonAuthEnvironment, OntologyEnvironment, OntologyServiceConfig, } from "./service/config.js";
87
87
  export type { Decide, DecisionRequest } from "./service/decisions.js";
88
88
  export { IdentityInUse, NotInvited, OntologyBackend } from "./service/runtime-contract.js";
89
- export type { AgentIdentity, AgentMember, AgentLimits, AgentLimitScope, ChannelSignInInput, AgentResolution, ResolveIdentityInput, AgentPairing, AgentStore, AgentWebStore, VisitorSignUp, WebTurnLimit, SeenChat, HeldReplyInput, HeldReview, GeneratedActionsProvider, IdentityProvider, OAuthClient, OAuthClientAuthMethod, OAuthGrant, OAuthDevice, DevicePoll, OAuthRequest, OAuthStore, OAuthToken, OAuthTokenKind, OntologyServiceRuntime, RunActionInput, SignInIdentity, UsedOAuthToken, } from "./service/runtime-contract.js";
89
+ export type { AgentIdentity, AgentMember, AgentLimits, AgentLimitScope, ChannelSignInInput, AgentResolution, ResolveIdentityInput, AgentPairing, AgentStore, AgentWebStore, GuestIssue, VisitorSignUp, WebTurnLimit, SeenChat, HeldReplyInput, HeldReview, GeneratedActionsProvider, IdentityProvider, OAuthClient, OAuthClientAuthMethod, OAuthGrant, OAuthDevice, DevicePoll, OAuthRequest, OAuthStore, OAuthToken, OAuthTokenKind, OntologyServiceRuntime, RunActionInput, SignInIdentity, UsedOAuthToken, } from "./service/runtime-contract.js";
90
90
  export { createOntologyService, ONTOLOGY_HASH_HEADER, REQUEST_ID_HEADER, } from "./service/service.js";
91
91
  export { AGENT_PATH, AGENT_TOKEN_INTROSPECTION_PATH, AGENT_TOKENS_PATH, AGENT_VISITORS_PATH, } from "./service/agent/server.js";
92
92
  export { AGENT_TASK_PATH, AGENT_TASK_RESULT_PATH } from "./service/agent/tasks.js";
package/dist/index.js CHANGED
@@ -13,20 +13,22 @@ export { entity, isEntity } from "./entity.js";
13
13
  export { isToolset, MCP_TOOL_NAME, TOOLSET_LOCK_VERSION, toolset, ToolsetLock, ToolsetLockTool, } from "./toolset.js";
14
14
  export { ActionRejected, BatchErrorDetails, Conflict, DeploymentInterrupted, DeploymentSwitching, LimitErrorDetails, NotFound, PermissionDenied, ScopeViolated, } from "./errors.js";
15
15
  export { browserAuthenticationCompatible } from "./manifest-compatibility.js";
16
- export { ActionManifest, actionConnectionKeys, canonicalJson, ConnectionManifest, EntityManifest, EntityPermissionsManifest, decodeManifestDocument, encodeManifest, formatManifest, IndexManifest, isValueMatched, MANIFEST_VERSION, manifestHash, ModelMetricManifest, OntologyManifest, OntologyManifestWire, PropertyManifest, RelationshipManifest, RoleManifest, ActionTriggerManifest, ScopeManifest, CronTriggerManifest, isActionTrigger, isCronTrigger, isWebhookTrigger, OtherTriggerManifest, WebhookTriggerManifest, WorkflowManifest, WorkflowTriggerManifest, SelectOptionManifest, SignInManifest, signInPolicyOf, channelPolicyOf, signUpOriginsOf, signUpRolesOf, } from "./manifest.js";
16
+ export { ActionManifest, actionConnectionKeys, canonicalJson, ConnectionManifest, EntityManifest, EntityPermissionsManifest, decodeManifestDocument, encodeManifest, formatManifest, IndexManifest, isValueMatched, MANIFEST_VERSION, manifestHash, ModelMetricManifest, OntologyManifest, OntologyManifestWire, PropertyManifest, RelationshipManifest, RoleManifest, ActionTriggerManifest, ScopeManifest, CronTriggerManifest, isActionTrigger, isCronTrigger, isWebhookTrigger, OtherTriggerManifest, WebhookTriggerManifest, WorkflowManifest, WorkflowTriggerManifest, SelectOptionManifest, SignInManifest, GuestManifest, guestOf, signInPolicyOf, channelPolicyOf, signUpOriginsOf, signUpRolesOf, } from "./manifest.js";
17
17
  export { SYSTEM_PROPERTIES } from "./names.js";
18
18
  export { isMe, isMeMarker, MAX_ME_HOPS, me, ME_KEY, MeMarker, mePathOf, meToWire, MeTypeId, } from "./me.js";
19
19
  export { check, defineOntology } from "./ontology.js";
20
20
  export { webhookDeliveryJsonSchema } from "./analyze.js";
21
21
  export { webhookToken, webhookTokenMatches, WEBHOOK_TOKEN_CONTEXT } from "./webhook-token.js";
22
- export { DEFAULT_MEMBER_PERMISSIONS, effectiveScope, generatedActionPermissions, grants, isAllowed, parsePermission, permissionsOf, principalScopes, READ_VERB, readScope, rolesGranting, scopesOf, USER_IDENTITY_VERBS, USER_MEMBER_VERBS, WILDCARD, WILDCARD_ENTITY_VERBS, WORKSPACE_SOURCE_PERMISSION, } from "./permissions.js";
22
+ export { AGENT_TOOL_VERBS, agentToolPermission, agentToolsOf, DEFAULT_MEMBER_PERMISSIONS, effectiveScope, generatedActionPermissions, grants, isAllowed, parsePermission, permissionsOf, principalScopes, READ_VERB, readScope, rolesGranting, scopesOf, USER_IDENTITY_VERBS, USER_MEMBER_VERBS, WILDCARD, WILDCARD_ENTITY_VERBS, WORKSPACE_SOURCE_PERMISSION, } from "./permissions.js";
23
23
  export { p, PROPERTY_TYPES, propertyDefinition } from "./property.js";
24
24
  export { ON_DELETE, rel } from "./relationship.js";
25
25
  export { renderCatalog } from "./render.js";
26
26
  export { member, role, roleEntries, rolePermissions } from "./role.js";
27
27
  export { after, changed, cron, cronNeverFires, cronProblem, isWorkflow, isWorkflowTrigger, MAX_ACTION_TRIGGERS, MAX_WORKFLOWS, nextCronTime, webhook, workflow, } from "./workflow.js";
28
28
  export { MAX_WEBHOOK_BODY_BYTES, MAX_META_WEBHOOK_BODY_BYTES, MAX_WEBHOOK_HEADERS, MAX_WEBHOOKS, WEBHOOK_BASE_PATH, WEBHOOK_SIGNATURE_SCHEMES, webhookDelivery, webhookHeaderProblem, webhookPath, } from "./webhooks.js";
29
- export { CHANNEL_PROVIDERS, DEFAULT_SIGN_IN_POLICY, SIGN_IN_METHODS, SIGN_IN_POLICIES, SIGN_UP_CHANNELS, signUpOrigin, } from "./sign-in.js";
29
+ export { CHANNEL_PROVIDERS, DEFAULT_SIGN_IN_POLICY, SIGN_IN_METHODS, SIGN_IN_POLICIES, SIGN_UP_CHANNELS, GUEST_CHANNELS, matchesWebsite,
30
+ // @legacy ontology.sign-up-origin-name
31
+ signUpOrigin, websiteOrigin, } from "./sign-in.js";
30
32
  export { OntologyActions, OntologyReads, OntologyRuntime, OntologyWrites } from "./runtime.js";
31
33
  export { User } from "./user.js";
32
34
  export { AgentChat } from "./agent-chat.js";