@sequenceholdings/managed-functions 0.4.1 → 0.4.2

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 (87) hide show
  1. package/README.md +374 -2
  2. package/dist/abrigo-contract.d.ts +92 -0
  3. package/dist/abrigo-contract.js +55 -0
  4. package/dist/abrigo-response.d.ts +6 -0
  5. package/dist/abrigo-response.js +27 -0
  6. package/dist/abrigo.d.ts +14 -0
  7. package/dist/abrigo.js +150 -0
  8. package/dist/agent-evidence.d.ts +9 -0
  9. package/dist/agent-evidence.js +84 -0
  10. package/dist/agent-source-evidence-contract.d.ts +1197 -0
  11. package/dist/agent-source-evidence-contract.js +96 -0
  12. package/dist/agents-contract.d.ts +99 -0
  13. package/dist/agents-contract.js +69 -0
  14. package/dist/agents.d.ts +15 -0
  15. package/dist/agents.js +121 -0
  16. package/dist/capabilities.d.ts +150 -0
  17. package/dist/capabilities.js +58 -5
  18. package/dist/config.d.ts +17 -2
  19. package/dist/config.js +55 -1
  20. package/dist/deployed-policy.js +90 -2
  21. package/dist/directory-config.js +1 -1
  22. package/dist/directory-contract.d.ts +68 -0
  23. package/dist/directory-contract.js +57 -0
  24. package/dist/directory-manifest.d.ts +5 -0
  25. package/dist/directory-manifest.js +10 -0
  26. package/dist/http-tracing.js +3 -0
  27. package/dist/immutable-release-contract.d.ts +3 -0
  28. package/dist/immutable-release-contract.js +12 -0
  29. package/dist/index.d.ts +37 -1
  30. package/dist/index.js +72 -1
  31. package/dist/invocation-client.d.ts +8 -1
  32. package/dist/invocation-client.js +8 -3
  33. package/dist/invocation-contract.d.ts +36 -0
  34. package/dist/invocation-contract.js +48 -0
  35. package/dist/invocation.d.ts +8 -0
  36. package/dist/invocation.js +134 -0
  37. package/dist/lattice-capability.d.ts +5 -0
  38. package/dist/lattice-capability.js +16 -0
  39. package/dist/lattice-provenance-contract.d.ts +519 -0
  40. package/dist/lattice-provenance-contract.js +148 -0
  41. package/dist/lattice-provenance.d.ts +16 -0
  42. package/dist/lattice-provenance.js +167 -0
  43. package/dist/monitoring-annotations.d.ts +53 -0
  44. package/dist/monitoring-annotations.js +54 -0
  45. package/dist/monitoring-contract.d.ts +463 -0
  46. package/dist/monitoring-contract.js +89 -0
  47. package/dist/monitoring-events.d.ts +257 -0
  48. package/dist/monitoring-events.js +136 -0
  49. package/dist/monitoring.d.ts +14 -0
  50. package/dist/monitoring.js +78 -0
  51. package/dist/orm-contract.d.ts +1 -0
  52. package/dist/orm-contract.js +4 -0
  53. package/dist/orm.d.ts +19 -3
  54. package/dist/orm.js +93 -13
  55. package/dist/preflight-abrigo.d.ts +10 -0
  56. package/dist/preflight-abrigo.js +26 -0
  57. package/dist/preflight-agents.d.ts +10 -0
  58. package/dist/preflight-agents.js +51 -0
  59. package/dist/preflight-immutable-release.d.ts +10 -0
  60. package/dist/preflight-immutable-release.js +34 -0
  61. package/dist/preflight-invocation.d.ts +10 -0
  62. package/dist/preflight-invocation.js +40 -0
  63. package/dist/preflight-lattice.d.ts +10 -0
  64. package/dist/preflight-lattice.js +40 -0
  65. package/dist/preflight-monitoring.d.ts +10 -0
  66. package/dist/preflight-monitoring.js +46 -0
  67. package/dist/preflight-service-directory.d.ts +10 -0
  68. package/dist/preflight-service-directory.js +26 -0
  69. package/dist/preflight-workflows.d.ts +10 -0
  70. package/dist/preflight-workflows.js +38 -0
  71. package/dist/preflight.js +49 -5
  72. package/dist/processes-contract.d.ts +20 -0
  73. package/dist/processes-contract.js +8 -1
  74. package/dist/processes.d.ts +2 -1
  75. package/dist/processes.js +34 -0
  76. package/dist/runtime.cjs +3111 -214
  77. package/dist/sdk-range.d.ts +1 -0
  78. package/dist/sdk-range.js +25 -0
  79. package/dist/service-directory.d.ts +12 -0
  80. package/dist/service-directory.js +72 -0
  81. package/dist/workflow-scopes-contract.d.ts +8 -0
  82. package/dist/workflow-scopes-contract.js +29 -0
  83. package/dist/workflow-source-contract.d.ts +524 -0
  84. package/dist/workflow-source-contract.js +59 -0
  85. package/dist/workflow-source.d.ts +12 -0
  86. package/dist/workflow-source.js +93 -0
  87. package/package.json +2 -2
@@ -4,6 +4,7 @@ exports.MANAGED_FUNCTION_CAPABILITIES = exports.MANAGED_FUNCTION_SDK_PACKAGE = e
4
4
  exports.versionIsOlder = versionIsOlder;
5
5
  exports.sdkVersionLowerBound = sdkVersionLowerBound;
6
6
  exports.sdkVersionFromPackageJson = sdkVersionFromPackageJson;
7
+ exports.sdkSpecFromPackageJson = sdkSpecFromPackageJson;
7
8
  exports.isPostgresEgress = isPostgresEgress;
8
9
  exports.formatValidationDetail = formatValidationDetail;
9
10
  const sdk_range_1 = require("./sdk-range");
@@ -16,11 +17,59 @@ exports.MANAGED_FUNCTION_CAPABILITIES = {
16
17
  },
17
18
  features: {
18
19
  directory_members: {
19
- field: 'capabilities.directory.groups',
20
- supported: true,
20
+ field: 'capabilities.directory.groups', supported: true,
21
21
  limit: '1 to 16 concrete groups; resolve 1 to 50 selected active members per call',
22
- min_cli: '0.5.2',
23
- min_sdk: '0.4.1',
22
+ min_cli: '0.5.2', min_sdk: '0.4.1',
23
+ },
24
+ abrigo_read: {
25
+ field: 'capabilities.abrigo.read', supported: true,
26
+ limit: 'eleven fixed human reads: eight integration reads and three workflow-scoped document-review reads; pages 1 to 100 with 1 to 500 rows; 1 MiB JSON responses',
27
+ min_cli: '0.5.5', min_sdk: '0.4.2',
28
+ },
29
+ immutable_release: {
30
+ field: 'function.immutable_release', supported: true,
31
+ limit: 'a fresh function identity whose runtime cannot be redeployed after first activation',
32
+ min_cli: '0.5.5', min_sdk: '0.4.2',
33
+ },
34
+ invocation_identity: {
35
+ field: 'capabilities.invocation.identity', supported: true,
36
+ limit: 'verified receiver and actual caller for this exact active invocation only',
37
+ min_cli: '0.5.5', min_sdk: '0.4.2',
38
+ },
39
+ directory_resolve: {
40
+ field: 'capabilities.directory.resolve', supported: true,
41
+ limit: '1 to 16 exact tenant scopes; at most 50 exact active human principal lookups',
42
+ min_cli: '0.5.5', min_sdk: '0.4.2',
43
+ },
44
+ lattice_context: {
45
+ field: 'capabilities.lattice.context', supported: true,
46
+ limit: 'verified context and causal human completion for the receiving Lattice step only',
47
+ min_cli: '0.5.5', min_sdk: '0.4.2',
48
+ },
49
+ agents_read: {
50
+ field: 'capabilities.agents.read', supported: true,
51
+ limit: '1 to 64 exact agent ids; completed owned or verified upstream responses only',
52
+ min_cli: '0.5.5', min_sdk: '0.4.2',
53
+ },
54
+ agents_evidence_verify: {
55
+ field: 'capabilities.agents.evidence', supported: true,
56
+ limit: '1 to 64 exact agent ids; verify bounded supplied historical source evidence only',
57
+ min_cli: '0.5.5', min_sdk: '0.4.2',
58
+ },
59
+ workflows_read: {
60
+ field: 'capabilities.workflows.read', supported: true,
61
+ limit: '1 to 64 exact workflow ids; completed owned root outputs only',
62
+ min_cli: '0.5.5', min_sdk: '0.4.2',
63
+ },
64
+ workflows_evidence_verify: {
65
+ field: 'capabilities.workflows.evidence', supported: true,
66
+ limit: '1 to 64 exact workflow ids; verify bounded supplied historical root-output evidence only',
67
+ min_cli: '0.5.5', min_sdk: '0.4.2',
68
+ },
69
+ monitoring_deliveries: {
70
+ field: 'capabilities.monitoring.producers', supported: true,
71
+ limit: '1 to 16 producer namespaces; immutable publish and receipt lookup',
72
+ min_cli: '0.5.5', min_sdk: '0.4.2',
24
73
  },
25
74
  processes_read: {
26
75
  field: 'capabilities.processes.read',
@@ -76,6 +125,9 @@ function sdkVersionLowerBound(spec) {
76
125
  return (0, sdk_range_1.concreteOrStaleSdkSpec)(spec, minimum);
77
126
  }
78
127
  function sdkVersionFromPackageJson(raw) {
128
+ return sdkVersionLowerBound(sdkSpecFromPackageJson(raw) ?? undefined);
129
+ }
130
+ function sdkSpecFromPackageJson(raw) {
79
131
  let parsed;
80
132
  try {
81
133
  parsed = JSON.parse(raw);
@@ -87,7 +139,8 @@ function sdkVersionFromPackageJson(raw) {
87
139
  return null;
88
140
  const dependencies = Reflect.get(parsed, 'dependencies');
89
141
  const devDependencies = Reflect.get(parsed, 'devDependencies');
90
- return sdkVersionLowerBound(dependencySpec(dependencies) ?? dependencySpec(devDependencies));
142
+ const spec = dependencySpec(dependencies) ?? dependencySpec(devDependencies);
143
+ return spec?.trim() || null;
91
144
  }
92
145
  function dependencySpec(block) {
93
146
  if (!block || typeof block !== 'object')
package/dist/config.d.ts CHANGED
@@ -1,10 +1,25 @@
1
1
  export { DIRECTORY_TOKEN_HEADER, directoryGroupIdSchema, directoryScopesSchema, directoryMembersInput, directoryMembersResponse, readDirectoryGroups } from './directory-config';
2
- export { FUNCTION_PROCESS_TOKEN_HEADER, FUNCTION_PROCESS_READ_PATH, functionProcessReadScopesSchema, readFunctionProcessScopes, functionProcessReadRequestSchema, functionProcessRunSummarySchema } from './processes-contract';
2
+ export { functionDirectoryManifestSchema } from './directory-manifest';
3
+ export { functionLatticeContextCapabilitySchema, readFunctionLatticeContextCapability } from './lattice-capability';
4
+ export * from './invocation-contract';
5
+ export { FUNCTION_PROCESS_TOKEN_HEADER, FUNCTION_PROCESS_READ_PATH, functionProcessReadScopesSchema, readFunctionProcessScopes, functionProcessReadRequestSchema, functionProcessRunSummarySchema, functionProcessCompletedAgentReferenceSchema, functionProcessCompletedAgentReferenceQuerySchema } from './processes-contract';
6
+ export { FUNCTION_AGENT_TOKEN_HEADER, FUNCTION_AGENT_READ_PATH, functionAgentReadScopesSchema, readFunctionAgentScopes, functionAgentReadRequestSchema, functionAgentCompletedRunQuerySchema, functionAgentCompletedRunSchema } from './agents-contract';
7
+ export * from './agent-source-evidence-contract';
8
+ export * from './workflow-source-contract';
9
+ export { functionWorkflowScopesSchema, readFunctionWorkflowScopes, readFunctionWorkflowEvidenceScopes } from './workflow-scopes-contract';
10
+ export type { FunctionWorkflowScopes } from './workflow-scopes-contract';
11
+ export * from './monitoring-events';
12
+ export * from './monitoring-contract';
13
+ export * from './monitoring-annotations';
14
+ export { FUNCTION_CALLER_DATA_TOKEN_HEADER } from './orm-contract';
15
+ export { FUNCTION_DIRECTORY_TOKEN_HEADER, FUNCTION_DIRECTORY_RESOLVE_PATH, functionDirectoryScopesSchema, readFunctionDirectoryScopes, directoryPrincipalResolveRequestSchema, directoryPrincipalResolutionSchema } from './directory-contract';
16
+ export * from './abrigo-contract';
3
17
  export { shouldReportAtlasHttp } from './http-tracing';
18
+ export { functionImmutableReleaseSchema, readFunctionImmutableRelease } from './immutable-release-contract';
4
19
  import { z } from 'zod';
5
20
  export { MANAGED_FUNCTION_LIMITS, MF_LIMITS_CAPS, MF_LIMITS_DEFAULTS, managedFunctionWorkloadLimitsSchema } from './limits';
6
21
  export type { ManagedFunctionLimitCatalog } from './limits';
7
- export { MANAGED_FUNCTION_CAPABILITIES, MANAGED_FUNCTION_CLI_PACKAGE, MANAGED_FUNCTION_SDK_PACKAGE, formatValidationDetail, isPostgresEgress, sdkVersionFromPackageJson, sdkVersionLowerBound, versionIsOlder, } from './capabilities';
22
+ export { MANAGED_FUNCTION_CAPABILITIES, MANAGED_FUNCTION_CLI_PACKAGE, MANAGED_FUNCTION_SDK_PACKAGE, formatValidationDetail, isPostgresEgress, sdkVersionFromPackageJson, sdkSpecFromPackageJson, sdkVersionLowerBound, versionIsOlder, } from './capabilities';
8
23
  export type { DeployedPolicy, ManagedFunctionCapabilities, PreflightIssue, PreflightManifest, } from './capabilities';
9
24
  export { parseDeployedPolicy } from './deployed-policy';
10
25
  export { preflightManagedFunction } from './preflight';
package/dist/config.js CHANGED
@@ -1,6 +1,21 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cacheManifestSchema = exports.CACHE_MAX_TTL_SECONDS = exports.preflightManagedFunction = exports.parseDeployedPolicy = exports.versionIsOlder = exports.sdkVersionLowerBound = exports.sdkVersionFromPackageJson = exports.isPostgresEgress = exports.formatValidationDetail = exports.MANAGED_FUNCTION_SDK_PACKAGE = exports.MANAGED_FUNCTION_CLI_PACKAGE = exports.MANAGED_FUNCTION_CAPABILITIES = exports.managedFunctionWorkloadLimitsSchema = exports.MF_LIMITS_DEFAULTS = exports.MF_LIMITS_CAPS = exports.MANAGED_FUNCTION_LIMITS = exports.shouldReportAtlasHttp = exports.functionProcessRunSummarySchema = exports.functionProcessReadRequestSchema = exports.readFunctionProcessScopes = exports.functionProcessReadScopesSchema = exports.FUNCTION_PROCESS_READ_PATH = exports.FUNCTION_PROCESS_TOKEN_HEADER = exports.readDirectoryGroups = exports.directoryMembersResponse = exports.directoryMembersInput = exports.directoryScopesSchema = exports.directoryGroupIdSchema = exports.DIRECTORY_TOKEN_HEADER = void 0;
17
+ exports.versionIsOlder = exports.sdkVersionLowerBound = exports.sdkSpecFromPackageJson = exports.sdkVersionFromPackageJson = exports.isPostgresEgress = exports.formatValidationDetail = exports.MANAGED_FUNCTION_SDK_PACKAGE = exports.MANAGED_FUNCTION_CLI_PACKAGE = exports.MANAGED_FUNCTION_CAPABILITIES = exports.managedFunctionWorkloadLimitsSchema = exports.MF_LIMITS_DEFAULTS = exports.MF_LIMITS_CAPS = exports.MANAGED_FUNCTION_LIMITS = exports.readFunctionImmutableRelease = exports.functionImmutableReleaseSchema = exports.shouldReportAtlasHttp = exports.directoryPrincipalResolutionSchema = exports.directoryPrincipalResolveRequestSchema = exports.readFunctionDirectoryScopes = exports.functionDirectoryScopesSchema = exports.FUNCTION_DIRECTORY_RESOLVE_PATH = exports.FUNCTION_DIRECTORY_TOKEN_HEADER = exports.FUNCTION_CALLER_DATA_TOKEN_HEADER = exports.readFunctionWorkflowEvidenceScopes = exports.readFunctionWorkflowScopes = exports.functionWorkflowScopesSchema = exports.functionAgentCompletedRunSchema = exports.functionAgentCompletedRunQuerySchema = exports.functionAgentReadRequestSchema = exports.readFunctionAgentScopes = exports.functionAgentReadScopesSchema = exports.FUNCTION_AGENT_READ_PATH = exports.FUNCTION_AGENT_TOKEN_HEADER = exports.functionProcessCompletedAgentReferenceQuerySchema = exports.functionProcessCompletedAgentReferenceSchema = exports.functionProcessRunSummarySchema = exports.functionProcessReadRequestSchema = exports.readFunctionProcessScopes = exports.functionProcessReadScopesSchema = exports.FUNCTION_PROCESS_READ_PATH = exports.FUNCTION_PROCESS_TOKEN_HEADER = exports.readFunctionLatticeContextCapability = exports.functionLatticeContextCapabilitySchema = exports.functionDirectoryManifestSchema = exports.readDirectoryGroups = exports.directoryMembersResponse = exports.directoryMembersInput = exports.directoryScopesSchema = exports.directoryGroupIdSchema = exports.DIRECTORY_TOKEN_HEADER = void 0;
18
+ exports.cacheManifestSchema = exports.CACHE_MAX_TTL_SECONDS = exports.preflightManagedFunction = exports.parseDeployedPolicy = void 0;
4
19
  exports.readCacheConfiguration = readCacheConfiguration;
5
20
  var directory_config_1 = require("./directory-config");
6
21
  Object.defineProperty(exports, "DIRECTORY_TOKEN_HEADER", { enumerable: true, get: function () { return directory_config_1.DIRECTORY_TOKEN_HEADER; } });
@@ -9,6 +24,12 @@ Object.defineProperty(exports, "directoryScopesSchema", { enumerable: true, get:
9
24
  Object.defineProperty(exports, "directoryMembersInput", { enumerable: true, get: function () { return directory_config_1.directoryMembersInput; } });
10
25
  Object.defineProperty(exports, "directoryMembersResponse", { enumerable: true, get: function () { return directory_config_1.directoryMembersResponse; } });
11
26
  Object.defineProperty(exports, "readDirectoryGroups", { enumerable: true, get: function () { return directory_config_1.readDirectoryGroups; } });
27
+ var directory_manifest_1 = require("./directory-manifest");
28
+ Object.defineProperty(exports, "functionDirectoryManifestSchema", { enumerable: true, get: function () { return directory_manifest_1.functionDirectoryManifestSchema; } });
29
+ var lattice_capability_1 = require("./lattice-capability");
30
+ Object.defineProperty(exports, "functionLatticeContextCapabilitySchema", { enumerable: true, get: function () { return lattice_capability_1.functionLatticeContextCapabilitySchema; } });
31
+ Object.defineProperty(exports, "readFunctionLatticeContextCapability", { enumerable: true, get: function () { return lattice_capability_1.readFunctionLatticeContextCapability; } });
32
+ __exportStar(require("./invocation-contract"), exports);
12
33
  var processes_contract_1 = require("./processes-contract");
13
34
  Object.defineProperty(exports, "FUNCTION_PROCESS_TOKEN_HEADER", { enumerable: true, get: function () { return processes_contract_1.FUNCTION_PROCESS_TOKEN_HEADER; } });
14
35
  Object.defineProperty(exports, "FUNCTION_PROCESS_READ_PATH", { enumerable: true, get: function () { return processes_contract_1.FUNCTION_PROCESS_READ_PATH; } });
@@ -16,8 +37,40 @@ Object.defineProperty(exports, "functionProcessReadScopesSchema", { enumerable:
16
37
  Object.defineProperty(exports, "readFunctionProcessScopes", { enumerable: true, get: function () { return processes_contract_1.readFunctionProcessScopes; } });
17
38
  Object.defineProperty(exports, "functionProcessReadRequestSchema", { enumerable: true, get: function () { return processes_contract_1.functionProcessReadRequestSchema; } });
18
39
  Object.defineProperty(exports, "functionProcessRunSummarySchema", { enumerable: true, get: function () { return processes_contract_1.functionProcessRunSummarySchema; } });
40
+ Object.defineProperty(exports, "functionProcessCompletedAgentReferenceSchema", { enumerable: true, get: function () { return processes_contract_1.functionProcessCompletedAgentReferenceSchema; } });
41
+ Object.defineProperty(exports, "functionProcessCompletedAgentReferenceQuerySchema", { enumerable: true, get: function () { return processes_contract_1.functionProcessCompletedAgentReferenceQuerySchema; } });
42
+ var agents_contract_1 = require("./agents-contract");
43
+ Object.defineProperty(exports, "FUNCTION_AGENT_TOKEN_HEADER", { enumerable: true, get: function () { return agents_contract_1.FUNCTION_AGENT_TOKEN_HEADER; } });
44
+ Object.defineProperty(exports, "FUNCTION_AGENT_READ_PATH", { enumerable: true, get: function () { return agents_contract_1.FUNCTION_AGENT_READ_PATH; } });
45
+ Object.defineProperty(exports, "functionAgentReadScopesSchema", { enumerable: true, get: function () { return agents_contract_1.functionAgentReadScopesSchema; } });
46
+ Object.defineProperty(exports, "readFunctionAgentScopes", { enumerable: true, get: function () { return agents_contract_1.readFunctionAgentScopes; } });
47
+ Object.defineProperty(exports, "functionAgentReadRequestSchema", { enumerable: true, get: function () { return agents_contract_1.functionAgentReadRequestSchema; } });
48
+ Object.defineProperty(exports, "functionAgentCompletedRunQuerySchema", { enumerable: true, get: function () { return agents_contract_1.functionAgentCompletedRunQuerySchema; } });
49
+ Object.defineProperty(exports, "functionAgentCompletedRunSchema", { enumerable: true, get: function () { return agents_contract_1.functionAgentCompletedRunSchema; } });
50
+ __exportStar(require("./agent-source-evidence-contract"), exports);
51
+ __exportStar(require("./workflow-source-contract"), exports);
52
+ var workflow_scopes_contract_1 = require("./workflow-scopes-contract");
53
+ Object.defineProperty(exports, "functionWorkflowScopesSchema", { enumerable: true, get: function () { return workflow_scopes_contract_1.functionWorkflowScopesSchema; } });
54
+ Object.defineProperty(exports, "readFunctionWorkflowScopes", { enumerable: true, get: function () { return workflow_scopes_contract_1.readFunctionWorkflowScopes; } });
55
+ Object.defineProperty(exports, "readFunctionWorkflowEvidenceScopes", { enumerable: true, get: function () { return workflow_scopes_contract_1.readFunctionWorkflowEvidenceScopes; } });
56
+ __exportStar(require("./monitoring-events"), exports);
57
+ __exportStar(require("./monitoring-contract"), exports);
58
+ __exportStar(require("./monitoring-annotations"), exports);
59
+ var orm_contract_1 = require("./orm-contract");
60
+ Object.defineProperty(exports, "FUNCTION_CALLER_DATA_TOKEN_HEADER", { enumerable: true, get: function () { return orm_contract_1.FUNCTION_CALLER_DATA_TOKEN_HEADER; } });
61
+ var directory_contract_1 = require("./directory-contract");
62
+ Object.defineProperty(exports, "FUNCTION_DIRECTORY_TOKEN_HEADER", { enumerable: true, get: function () { return directory_contract_1.FUNCTION_DIRECTORY_TOKEN_HEADER; } });
63
+ Object.defineProperty(exports, "FUNCTION_DIRECTORY_RESOLVE_PATH", { enumerable: true, get: function () { return directory_contract_1.FUNCTION_DIRECTORY_RESOLVE_PATH; } });
64
+ Object.defineProperty(exports, "functionDirectoryScopesSchema", { enumerable: true, get: function () { return directory_contract_1.functionDirectoryScopesSchema; } });
65
+ Object.defineProperty(exports, "readFunctionDirectoryScopes", { enumerable: true, get: function () { return directory_contract_1.readFunctionDirectoryScopes; } });
66
+ Object.defineProperty(exports, "directoryPrincipalResolveRequestSchema", { enumerable: true, get: function () { return directory_contract_1.directoryPrincipalResolveRequestSchema; } });
67
+ Object.defineProperty(exports, "directoryPrincipalResolutionSchema", { enumerable: true, get: function () { return directory_contract_1.directoryPrincipalResolutionSchema; } });
68
+ __exportStar(require("./abrigo-contract"), exports);
19
69
  var http_tracing_1 = require("./http-tracing");
20
70
  Object.defineProperty(exports, "shouldReportAtlasHttp", { enumerable: true, get: function () { return http_tracing_1.shouldReportAtlasHttp; } });
71
+ var immutable_release_contract_1 = require("./immutable-release-contract");
72
+ Object.defineProperty(exports, "functionImmutableReleaseSchema", { enumerable: true, get: function () { return immutable_release_contract_1.functionImmutableReleaseSchema; } });
73
+ Object.defineProperty(exports, "readFunctionImmutableRelease", { enumerable: true, get: function () { return immutable_release_contract_1.readFunctionImmutableRelease; } });
21
74
  const zod_1 = require("zod");
22
75
  const limits_1 = require("./limits");
23
76
  var limits_2 = require("./limits");
@@ -32,6 +85,7 @@ Object.defineProperty(exports, "MANAGED_FUNCTION_SDK_PACKAGE", { enumerable: tru
32
85
  Object.defineProperty(exports, "formatValidationDetail", { enumerable: true, get: function () { return capabilities_1.formatValidationDetail; } });
33
86
  Object.defineProperty(exports, "isPostgresEgress", { enumerable: true, get: function () { return capabilities_1.isPostgresEgress; } });
34
87
  Object.defineProperty(exports, "sdkVersionFromPackageJson", { enumerable: true, get: function () { return capabilities_1.sdkVersionFromPackageJson; } });
88
+ Object.defineProperty(exports, "sdkSpecFromPackageJson", { enumerable: true, get: function () { return capabilities_1.sdkSpecFromPackageJson; } });
35
89
  Object.defineProperty(exports, "sdkVersionLowerBound", { enumerable: true, get: function () { return capabilities_1.sdkVersionLowerBound; } });
36
90
  Object.defineProperty(exports, "versionIsOlder", { enumerable: true, get: function () { return capabilities_1.versionIsOlder; } });
37
91
  var deployed_policy_1 = require("./deployed-policy");
@@ -38,15 +38,35 @@ function normalizeCapabilities(value) {
38
38
  return {
39
39
  tooling: value.tooling,
40
40
  features: {
41
+ immutable_release: normalizeImmutableRelease(features.immutable_release),
42
+ invocation_identity: normalizeInvocationIdentity(features.invocation_identity),
43
+ directory_members: normalizeDirectoryMembers(features.directory_members),
44
+ directory_resolve: normalizeDirectory(features.directory_resolve),
45
+ abrigo_read: normalizeAbrigo(features.abrigo_read),
46
+ lattice_context: normalizeLatticeContext(features.lattice_context),
41
47
  postgres_egress: normalizePostgres(features.postgres_egress),
42
48
  http_headers: normalizeHeaders(features.http_headers),
43
49
  invoke_timeout: normalizeTimeout(features.invoke_timeout),
44
50
  processes_read: normalizeProcesses(features.processes_read),
45
- directory_members: normalizeDirectory(features.directory_members),
51
+ agents_read: normalizeAgents(features.agents_read),
52
+ agents_evidence_verify: normalizeAgentEvidence(features.agents_evidence_verify),
53
+ workflows_read: normalizeWorkflowRead(features.workflows_read),
54
+ workflows_evidence_verify: normalizeWorkflowEvidence(features.workflows_evidence_verify),
55
+ monitoring_deliveries: normalizeMonitoring(features.monitoring_deliveries),
46
56
  },
47
57
  };
48
58
  }
49
- function normalizeDirectory(value) {
59
+ function normalizeImmutableRelease(value) {
60
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
61
+ return undefined;
62
+ if (typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
63
+ return undefined;
64
+ return {
65
+ field: typeof value.field === 'string' ? value.field : 'function.immutable_release',
66
+ supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk,
67
+ };
68
+ }
69
+ function normalizeDirectoryMembers(value) {
50
70
  if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
51
71
  return undefined;
52
72
  if (typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
@@ -59,6 +79,46 @@ function normalizeDirectory(value) {
59
79
  min_sdk: value.min_sdk,
60
80
  };
61
81
  }
82
+ function normalizeDirectory(value) {
83
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string' || typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
84
+ return undefined;
85
+ return { field: typeof value.field === 'string' ? value.field : 'capabilities.directory.resolve', supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk };
86
+ }
87
+ function normalizeAbrigo(value) {
88
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string' || typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
89
+ return undefined;
90
+ return { field: typeof value.field === 'string' ? value.field : 'capabilities.abrigo.read', supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk };
91
+ }
92
+ function normalizeInvocationIdentity(value) {
93
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
94
+ return undefined;
95
+ if (typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
96
+ return undefined;
97
+ return {
98
+ field: typeof value.field === 'string' ? value.field : 'capabilities.invocation.identity',
99
+ supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk,
100
+ };
101
+ }
102
+ function normalizeLatticeContext(value) {
103
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
104
+ return undefined;
105
+ if (typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
106
+ return undefined;
107
+ return {
108
+ field: typeof value.field === 'string' ? value.field : 'capabilities.lattice.context',
109
+ supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk,
110
+ };
111
+ }
112
+ function normalizeMonitoring(value) {
113
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
114
+ return undefined;
115
+ if (typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
116
+ return undefined;
117
+ return {
118
+ field: typeof value.field === 'string' ? value.field : 'capabilities.monitoring.producers',
119
+ supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk,
120
+ };
121
+ }
62
122
  function normalizeProcesses(value) {
63
123
  if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
64
124
  return undefined;
@@ -72,6 +132,34 @@ function normalizeProcesses(value) {
72
132
  min_sdk: value.min_sdk,
73
133
  };
74
134
  }
135
+ function normalizeAgents(value) {
136
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
137
+ return undefined;
138
+ if (typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
139
+ return undefined;
140
+ return { field: typeof value.field === 'string' ? value.field : 'capabilities.agents.read', supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk };
141
+ }
142
+ function normalizeAgentEvidence(value) {
143
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
144
+ return undefined;
145
+ if (typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
146
+ return undefined;
147
+ return { field: typeof value.field === 'string' ? value.field : 'capabilities.agents.evidence', supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk };
148
+ }
149
+ function normalizeWorkflowRead(value) {
150
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
151
+ return undefined;
152
+ if (typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
153
+ return undefined;
154
+ return { field: typeof value.field === 'string' ? value.field : 'capabilities.workflows.read', supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk };
155
+ }
156
+ function normalizeWorkflowEvidence(value) {
157
+ if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
158
+ return undefined;
159
+ if (typeof value.min_cli !== 'string' || typeof value.min_sdk !== 'string')
160
+ return undefined;
161
+ return { field: typeof value.field === 'string' ? value.field : 'capabilities.workflows.evidence', supported: value.supported, limit: value.limit, min_cli: value.min_cli, min_sdk: value.min_sdk };
162
+ }
75
163
  function normalizePostgres(value) {
76
164
  if (!value || typeof value.supported !== 'boolean' || typeof value.limit !== 'string')
77
165
  return undefined;
@@ -17,6 +17,6 @@ exports.directoryMembersResponse = zod_1.z.object({ members: zod_1.z.array(zod_1
17
17
  id: zod_1.z.string(), sub: identity, name: zod_1.z.string(), email: zod_1.z.string(), deactivated: zod_1.z.literal(false),
18
18
  }).strict()).max(50) }).strict();
19
19
  function readDirectoryGroups(manifest) {
20
- const parsed = zod_1.z.object({ capabilities: zod_1.z.object({ directory: exports.directoryScopesSchema.optional() }).optional() }).safeParse(manifest);
20
+ const parsed = zod_1.z.object({ capabilities: zod_1.z.object({ directory: zod_1.z.object({ groups: exports.directoryScopesSchema.shape.groups.optional() }).optional() }).optional() }).safeParse(manifest);
21
21
  return parsed.success ? parsed.data.capabilities?.directory?.groups ?? [] : [];
22
22
  }
@@ -0,0 +1,68 @@
1
+ import { z } from 'zod';
2
+ export declare const FUNCTION_DIRECTORY_TOKEN_HEADER = "x-sequence-directory-service-token";
3
+ export declare const FUNCTION_DIRECTORY_RESOLVE_PATH = "/api/managed-functions/directory/resolve";
4
+ export declare const DIRECTORY_PRINCIPALS_PER_REQUEST = 50;
5
+ export declare const directoryTenantSchema: z.ZodString;
6
+ export declare const directoryPrincipalLookupSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ type: z.ZodLiteral<"email">;
8
+ value: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
9
+ }, z.core.$strict>, z.ZodObject<{
10
+ type: z.ZodLiteral<"sub">;
11
+ value: z.ZodString;
12
+ }, z.core.$strict>], "type">;
13
+ export type DirectoryPrincipalLookup = z.infer<typeof directoryPrincipalLookupSchema>;
14
+ export declare const directoryPrincipalResolveRequestSchema: z.ZodObject<{
15
+ tenant: z.ZodString;
16
+ lookups: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
17
+ type: z.ZodLiteral<"email">;
18
+ value: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
19
+ }, z.core.$strict>, z.ZodObject<{
20
+ type: z.ZodLiteral<"sub">;
21
+ value: z.ZodString;
22
+ }, z.core.$strict>], "type">>;
23
+ }, z.core.$strict>;
24
+ export type DirectoryPrincipalResolveRequest = z.infer<typeof directoryPrincipalResolveRequestSchema>;
25
+ export declare const directoryResolvedPrincipalSchema: z.ZodObject<{
26
+ lookup: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
+ type: z.ZodLiteral<"email">;
28
+ value: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
29
+ }, z.core.$strict>, z.ZodObject<{
30
+ type: z.ZodLiteral<"sub">;
31
+ value: z.ZodString;
32
+ }, z.core.$strict>], "type">;
33
+ sub: z.ZodString;
34
+ email: z.ZodUnion<readonly [z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>, z.ZodLiteral<"">]>;
35
+ name: z.ZodString;
36
+ }, z.core.$strict>;
37
+ export declare const directoryPrincipalResolutionSchema: z.ZodObject<{
38
+ resolved: z.ZodArray<z.ZodObject<{
39
+ lookup: z.ZodDiscriminatedUnion<[z.ZodObject<{
40
+ type: z.ZodLiteral<"email">;
41
+ value: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
42
+ }, z.core.$strict>, z.ZodObject<{
43
+ type: z.ZodLiteral<"sub">;
44
+ value: z.ZodString;
45
+ }, z.core.$strict>], "type">;
46
+ sub: z.ZodString;
47
+ email: z.ZodUnion<readonly [z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>, z.ZodLiteral<"">]>;
48
+ name: z.ZodString;
49
+ }, z.core.$strict>>;
50
+ unresolved: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
51
+ type: z.ZodLiteral<"email">;
52
+ value: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
53
+ }, z.core.$strict>, z.ZodObject<{
54
+ type: z.ZodLiteral<"sub">;
55
+ value: z.ZodString;
56
+ }, z.core.$strict>], "type">>;
57
+ }, z.core.$strict>;
58
+ export type DirectoryPrincipalResolution = z.infer<typeof directoryPrincipalResolutionSchema>;
59
+ export declare const functionDirectoryScopesSchema: z.ZodObject<{
60
+ resolve: z.ZodArray<z.ZodString>;
61
+ }, z.core.$strict>;
62
+ export declare function readFunctionDirectoryScopes(manifest: unknown): string[];
63
+ export declare class DirectoryPrincipalResolveError extends Error {
64
+ readonly status: number;
65
+ readonly code: string;
66
+ readonly name = "DirectoryPrincipalResolveError";
67
+ constructor(status: number, code: string, message: string);
68
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DirectoryPrincipalResolveError = exports.functionDirectoryScopesSchema = exports.directoryPrincipalResolutionSchema = exports.directoryResolvedPrincipalSchema = exports.directoryPrincipalResolveRequestSchema = exports.directoryPrincipalLookupSchema = exports.directoryTenantSchema = exports.DIRECTORY_PRINCIPALS_PER_REQUEST = exports.FUNCTION_DIRECTORY_RESOLVE_PATH = exports.FUNCTION_DIRECTORY_TOKEN_HEADER = void 0;
4
+ exports.readFunctionDirectoryScopes = readFunctionDirectoryScopes;
5
+ const zod_1 = require("zod");
6
+ exports.FUNCTION_DIRECTORY_TOKEN_HEADER = 'x-sequence-directory-service-token';
7
+ exports.FUNCTION_DIRECTORY_RESOLVE_PATH = '/api/managed-functions/directory/resolve';
8
+ exports.DIRECTORY_PRINCIPALS_PER_REQUEST = 50;
9
+ exports.directoryTenantSchema = zod_1.z.string().min(1).max(32).regex(/^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/);
10
+ const subject = zod_1.z.string().min(3).max(255).regex(/^[^\s:#]+\|[^\s:#]+$/);
11
+ const email = zod_1.z.email().max(255).transform((value) => value.trim().toLowerCase());
12
+ exports.directoryPrincipalLookupSchema = zod_1.z.discriminatedUnion('type', [
13
+ zod_1.z.strictObject({ type: zod_1.z.literal('email'), value: email }),
14
+ zod_1.z.strictObject({ type: zod_1.z.literal('sub'), value: subject }),
15
+ ]);
16
+ exports.directoryPrincipalResolveRequestSchema = zod_1.z.strictObject({
17
+ tenant: exports.directoryTenantSchema,
18
+ lookups: zod_1.z.array(exports.directoryPrincipalLookupSchema).min(1).max(exports.DIRECTORY_PRINCIPALS_PER_REQUEST)
19
+ .refine((values) => new Set(values.map((value) => `${value.type}:${value.value}`)).size === values.length, 'Lookups must be distinct'),
20
+ });
21
+ exports.directoryResolvedPrincipalSchema = zod_1.z.strictObject({
22
+ lookup: exports.directoryPrincipalLookupSchema,
23
+ sub: subject.refine((value) => !value.startsWith('service-account|') && !value.startsWith('managed-function|') && !value.endsWith('@clients') && value !== 'google-apps|sequence.agent@seqholdings.com', 'Only human directory principals can resolve'),
24
+ email: zod_1.z.union([email, zod_1.z.literal('')]),
25
+ name: zod_1.z.string().max(255),
26
+ });
27
+ exports.directoryPrincipalResolutionSchema = zod_1.z.strictObject({
28
+ resolved: zod_1.z.array(exports.directoryResolvedPrincipalSchema).max(exports.DIRECTORY_PRINCIPALS_PER_REQUEST),
29
+ unresolved: zod_1.z.array(exports.directoryPrincipalLookupSchema).max(exports.DIRECTORY_PRINCIPALS_PER_REQUEST),
30
+ });
31
+ exports.functionDirectoryScopesSchema = zod_1.z.strictObject({
32
+ resolve: zod_1.z.array(exports.directoryTenantSchema).min(1).max(16)
33
+ .refine((values) => new Set(values).size === values.length, 'Tenant scopes must be distinct'),
34
+ });
35
+ function readFunctionDirectoryScopes(manifest) {
36
+ if (typeof manifest !== 'object' || manifest === null)
37
+ return [];
38
+ const capabilities = Reflect.get(manifest, 'capabilities');
39
+ if (typeof capabilities !== 'object' || capabilities === null)
40
+ return [];
41
+ const directory = Reflect.get(capabilities, 'directory');
42
+ if (typeof directory !== 'object' || directory === null)
43
+ return [];
44
+ const resolve = Reflect.get(directory, 'resolve');
45
+ return resolve === undefined ? [] : exports.functionDirectoryScopesSchema.parse({ resolve }).resolve;
46
+ }
47
+ class DirectoryPrincipalResolveError extends Error {
48
+ status;
49
+ code;
50
+ name = 'DirectoryPrincipalResolveError';
51
+ constructor(status, code, message) {
52
+ super(message);
53
+ this.status = status;
54
+ this.code = code;
55
+ }
56
+ }
57
+ exports.DirectoryPrincipalResolveError = DirectoryPrincipalResolveError;
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const functionDirectoryManifestSchema: z.ZodObject<{
3
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
4
+ resolve: z.ZodOptional<z.ZodArray<z.ZodString>>;
5
+ }, z.core.$strict>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.functionDirectoryManifestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const directory_config_1 = require("./directory-config");
6
+ const directory_contract_1 = require("./directory-contract");
7
+ exports.functionDirectoryManifestSchema = zod_1.z.strictObject({
8
+ groups: directory_config_1.directoryScopesSchema.shape.groups.optional(),
9
+ resolve: directory_contract_1.functionDirectoryScopesSchema.shape.resolve.optional(),
10
+ }).refine((value) => value.groups !== undefined || value.resolve !== undefined, 'Declare directory groups, tenant resolution scopes, or both');
@@ -20,5 +20,8 @@ function shouldReportAtlasHttp(pathname, method) {
20
20
  if (method === 'POST' &&
21
21
  /^\/api\/lattice\/(runs|processes\/[^/]+\/runs)\/?$/.test(pathname))
22
22
  return false;
23
+ if (method === 'POST' &&
24
+ /^\/api\/external-systems\/call\/?$/.test(pathname))
25
+ return false;
23
26
  return true;
24
27
  }
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const functionImmutableReleaseSchema: z.ZodBoolean;
3
+ export declare function readFunctionImmutableRelease(manifest: unknown): boolean;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.functionImmutableReleaseSchema = void 0;
4
+ exports.readFunctionImmutableRelease = readFunctionImmutableRelease;
5
+ const zod_1 = require("zod");
6
+ exports.functionImmutableReleaseSchema = zod_1.z.boolean();
7
+ function readFunctionImmutableRelease(manifest) {
8
+ if (typeof manifest !== 'object' || manifest === null)
9
+ return false;
10
+ const fn = Reflect.get(manifest, 'function');
11
+ return typeof fn === 'object' && fn !== null && Reflect.get(fn, 'immutable_release') === true;
12
+ }
package/dist/index.d.ts CHANGED
@@ -1,8 +1,42 @@
1
1
  export { createFunctionDirectoryClient, FunctionDirectoryReadError } from './directory';
2
2
  export type { FunctionDirectoryClient, FunctionDirectoryOptions, FunctionDirectoryMembers, FunctionDirectoryMembersQuery } from './directory';
3
3
  export type { FunctionInvocationClientOptions } from './invocation-client';
4
+ export { functionLatticeContextCapabilitySchema, readFunctionLatticeContextCapability } from './lattice-capability';
5
+ export { createFunctionLatticeClient } from './lattice-provenance';
6
+ export { functionLatticeParallelSnapshotSchema, functionLatticeParallelSnapshotQuerySchema } from './lattice-provenance-contract';
7
+ export type { FunctionLatticeParallelSnapshot, FunctionLatticeParallelSnapshotQuery } from './lattice-provenance-contract';
8
+ export { functionLatticeStartProvenanceSchema } from './lattice-provenance-contract';
9
+ export type { FunctionLatticeStartProvenance } from './lattice-provenance-contract';
10
+ export * from './invocation-contract';
11
+ export * from './abrigo';
12
+ export { createFunctionInvocationClient } from './invocation';
13
+ export type { FunctionInvocationClient } from './invocation';
14
+ export { FUNCTION_LATTICE_CONTEXT_PATH, FUNCTION_LATTICE_EXECUTION_TOKEN_HEADER, FunctionLatticeContextError, functionLatticeContextRequestSchema, functionLatticeExecutionContextSchema, functionLatticeHumanCompletionQuerySchema, functionLatticeHumanCompletionSchema } from './lattice-provenance-contract';
15
+ export type { FunctionLatticeClient, FunctionLatticeClientOptions } from './lattice-provenance';
16
+ export { functionLatticeHumanCompletionsQuerySchema, functionLatticeHumanCompletionsPageSchema } from './lattice-provenance-contract';
17
+ export type { FunctionLatticeHumanCompletionsQuery, FunctionLatticeHumanCompletionsPage } from './lattice-provenance-contract';
18
+ export type { FunctionLatticeContextRequest, FunctionLatticeExecutionContext, FunctionLatticeHumanCompletion, FunctionLatticeHumanCompletionQuery } from './lattice-provenance-contract';
4
19
  export { createFunctionServiceProcessesClient, FunctionProcessReadError } from './processes';
5
- export type { FunctionServiceProcessesClient, FunctionServiceProcessesOptions, FunctionProcessRunQuery, FunctionProcessRunSummary, FunctionProcessRunStatus, FunctionProcessRunsPage, FunctionProcessRunsPageQuery, FunctionProcessReadRequest } from './processes';
20
+ export { createFunctionServiceAgentsClient, FunctionAgentReadError } from './agents';
21
+ export { createFunctionAgentEvidenceClient } from './agent-evidence';
22
+ export { createFunctionServiceWorkflowsClient, createFunctionWorkflowEvidenceClient } from './workflow-source';
23
+ export type { FunctionServiceWorkflowsClient, FunctionServiceWorkflowsOptions, FunctionWorkflowEvidenceClient, FunctionWorkflowSourceEvidenceInput } from './workflow-source';
24
+ export * from './workflow-source-contract';
25
+ export type { FunctionAgentEvidenceClient, FunctionAgentSourceEvidenceInput, FunctionAgentConversationEvidenceInput } from './agent-evidence';
26
+ export type { FunctionAgentSourceEvidenceCapture, FunctionAgentSourceEvidenceClaims, FunctionAgentSourceEvidenceVerification, FunctionAgentConversationResponse, FunctionAgentConversationEvidenceResponse, FunctionAgentConversationEvidenceCapture, FunctionAgentSourceExecution } from './agent-source-evidence-contract';
27
+ export { functionAgentSourceResponseSchema, functionAgentSourceEvidenceRequestSchema, functionAgentSourceEvidenceCaptureSchema, functionAgentConversationEvidenceResponseSchema, functionAgentConversationEvidenceCaptureSchema, functionAgentConversationEvidenceRequestSchema, functionAgentSourceExecutionSchema } from './agent-source-evidence-contract';
28
+ export { functionSourceJobAdmissionSchema } from './agent-source-evidence-contract';
29
+ export type { FunctionSourceJobAdmission } from './agent-source-evidence-contract';
30
+ export type { FunctionServiceAgentsClient, FunctionServiceAgentsOptions, FunctionAgentCompletedRunQuery, FunctionAgentCompletedRun } from './agents';
31
+ export { createFunctionServiceMonitoringClient } from './monitoring';
32
+ export { FunctionMonitoringError, monitoringPayloadHash } from './monitoring-contract';
33
+ export { monitoringEventsSchema, monitoringPublishSchema } from './monitoring-contract';
34
+ export { functionMonitoringAnnotationSchema } from './monitoring-annotations';
35
+ export type { MonitoringDeltaEvent, MonitoringPublish, MonitoringDeliveryKey, MonitoringDeliveryReceipt } from './monitoring-contract';
36
+ export type { MonitoringCatalogQuery, MonitoringBucketCatalog } from './monitoring-contract';
37
+ export type { FunctionMonitoringAnnotation, MonitoringJson } from './monitoring-annotations';
38
+ export type { FunctionServiceMonitoringClient, FunctionServiceMonitoringOptions } from './monitoring';
39
+ export type { FunctionServiceProcessesClient, FunctionServiceProcessesOptions, FunctionProcessRunQuery, FunctionProcessRunSummary, FunctionProcessRunStatus, FunctionProcessRunsPage, FunctionProcessRunsPageQuery, FunctionProcessReadRequest, FunctionProcessCompletedAgentReferenceQuery, FunctionProcessCompletedAgentReference } from './processes';
6
40
  export { installFunctionTracing, runWithFunctionTracing } from './tracing';
7
41
  export { createFunctionStorageClient } from './storage';
8
42
  import { type CacheManager } from "./cache";
@@ -16,3 +50,5 @@ export interface ManagedFunctionContext {
16
50
  export declare function createManagedFunctionContext({ env, }?: {
17
51
  env?: NodeJS.ProcessEnv;
18
52
  }): ManagedFunctionContext;
53
+ export * from './directory-contract';
54
+ export { createFunctionServiceDirectoryClient, type FunctionServiceDirectoryOptions, type FunctionServiceDirectoryClient } from './service-directory';