@sequenceholdings/managed-functions 0.4.5 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +147 -12
- package/dist/abrigo-contract.d.ts +2 -92
- package/dist/abrigo-contract.js +12 -53
- package/dist/abrigo-response.d.ts +1 -6
- package/dist/abrigo-response.js +3 -25
- package/dist/abrigo.d.ts +5 -5
- package/dist/abrigo.js +66 -92
- package/dist/agent-evidence.d.ts +5 -5
- package/dist/agent-evidence.js +58 -48
- package/dist/agent-source-evidence-contract.d.ts +2 -1197
- package/dist/agent-source-evidence-contract.js +24 -94
- package/dist/agents-contract.d.ts +2 -99
- package/dist/agents-contract.js +13 -67
- package/dist/agents.d.ts +5 -5
- package/dist/agents.js +79 -44
- package/dist/capabilities.d.ts +1 -1
- package/dist/capabilities.js +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.js +4 -1
- package/dist/directory-config.d.ts +1 -23
- package/dist/directory-config.js +8 -20
- package/dist/directory-contract.d.ts +2 -68
- package/dist/directory-contract.js +13 -55
- package/dist/directory-roster-contract.d.ts +2 -22
- package/dist/directory-roster-contract.js +7 -22
- package/dist/directory.d.ts +4 -8
- package/dist/directory.js +15 -33
- package/dist/group-roster-access.d.ts +7 -0
- package/dist/group-roster-access.js +8 -0
- package/dist/index.d.ts +49 -46
- package/dist/index.js +8 -1
- package/dist/invocation-client.d.ts +4 -4
- package/dist/invocation-client.js +32 -60
- package/dist/invocation-contract.d.ts +2 -59
- package/dist/invocation-contract.js +10 -61
- package/dist/invocation.d.ts +4 -4
- package/dist/invocation.js +42 -63
- package/dist/lattice-provenance-contract.d.ts +2 -607
- package/dist/lattice-provenance-contract.js +14 -154
- package/dist/lattice-provenance.d.ts +3 -3
- package/dist/lattice-provenance.js +46 -97
- package/dist/monitoring-annotations.d.ts +2 -53
- package/dist/monitoring-annotations.js +2 -51
- package/dist/monitoring-contract.d.ts +5 -460
- package/dist/monitoring-contract.js +37 -77
- package/dist/monitoring-events.d.ts +2 -252
- package/dist/monitoring-events.js +15 -125
- package/dist/monitoring.d.ts +3 -3
- package/dist/monitoring.js +41 -41
- package/dist/orm.d.ts +10 -1
- package/dist/orm.js +27 -7
- package/dist/platform-client.d.ts +27 -0
- package/dist/platform-client.js +79 -0
- package/dist/platform-domains.d.ts +1671 -0
- package/dist/platform-domains.js +77 -0
- package/dist/processes-contract.d.ts +2 -149
- package/dist/processes-contract.js +17 -100
- package/dist/processes.d.ts +3 -3
- package/dist/processes.js +64 -49
- package/dist/runtime.cjs +4251 -1666
- package/dist/service-directory-roster.d.ts +12 -3
- package/dist/service-directory-roster.js +11 -17
- package/dist/service-directory.d.ts +4 -8
- package/dist/service-directory.js +16 -67
- package/dist/storage.d.ts +36 -35
- package/dist/storage.js +12 -5
- package/dist/workflow-source-contract.d.ts +2 -524
- package/dist/workflow-source-contract.js +16 -56
- package/dist/workflow-source.d.ts +3 -3
- package/dist/workflow-source.js +106 -43
- package/package.json +4 -3
package/dist/directory-config.js
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.directoryMembersResponse = exports.directoryMembersInput = exports.directoryScopesSchema = exports.directoryGroupIdSchema = exports.DIRECTORY_TOKEN_HEADER = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.
|
|
7
|
-
exports
|
|
8
|
-
exports
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const identity = zod_1.z.string().min(1).max(256).regex(/^[^\x00-\x1f\x7f]+$/);
|
|
12
|
-
exports.directoryMembersInput = zod_1.z.union([
|
|
13
|
-
zod_1.z.object({ groupId: exports.directoryGroupIdSchema, userIds: zod_1.z.array(identity).min(1).max(50) }).strict(),
|
|
14
|
-
zod_1.z.object({ groupId: exports.directoryGroupIdSchema, subs: zod_1.z.array(identity).min(1).max(50) }).strict(),
|
|
15
|
-
]);
|
|
16
|
-
exports.directoryMembersResponse = zod_1.z.object({ members: zod_1.z.array(zod_1.z.object({
|
|
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
|
-
}).strict()).max(50) }).strict();
|
|
19
|
-
function readDirectoryGroups(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
|
-
return parsed.success ? parsed.data.capabilities?.directory?.groups ?? [] : [];
|
|
22
|
-
}
|
|
3
|
+
exports.readDirectoryGroups = exports.directoryMembersResponse = exports.directoryMembersInput = exports.directoryScopesSchema = exports.directoryGroupIdSchema = exports.DIRECTORY_TOKEN_HEADER = void 0;
|
|
4
|
+
var contracts_1 = require("@sequenceholdings/platform/contracts");
|
|
5
|
+
Object.defineProperty(exports, "DIRECTORY_TOKEN_HEADER", { enumerable: true, get: function () { return contracts_1.DIRECTORY_TOKEN_HEADER; } });
|
|
6
|
+
Object.defineProperty(exports, "directoryGroupIdSchema", { enumerable: true, get: function () { return contracts_1.directoryGroupIdSchema; } });
|
|
7
|
+
Object.defineProperty(exports, "directoryScopesSchema", { enumerable: true, get: function () { return contracts_1.directoryScopesSchema; } });
|
|
8
|
+
Object.defineProperty(exports, "directoryMembersInput", { enumerable: true, get: function () { return contracts_1.directoryMembersInput; } });
|
|
9
|
+
Object.defineProperty(exports, "directoryMembersResponse", { enumerable: true, get: function () { return contracts_1.directoryMembersResponse; } });
|
|
10
|
+
Object.defineProperty(exports, "readDirectoryGroups", { enumerable: true, get: function () { return contracts_1.readDirectoryGroups; } });
|
|
@@ -1,68 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
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
|
-
}
|
|
1
|
+
export { FUNCTION_DIRECTORY_TOKEN_HEADER, FUNCTION_DIRECTORY_RESOLVE_PATH, DIRECTORY_PRINCIPALS_PER_REQUEST, directoryTenantSchema, directoryPrincipalLookupSchema, directoryPrincipalResolveRequestSchema, directoryResolvedPrincipalSchema, directoryPrincipalResolutionSchema, functionDirectoryScopesSchema, readFunctionDirectoryScopes, DirectoryPrincipalResolveError, } from "@sequenceholdings/platform/contracts";
|
|
2
|
+
export type { DirectoryPrincipalLookup, DirectoryPrincipalResolveRequest, DirectoryPrincipalResolution, } from "@sequenceholdings/platform/contracts";
|
|
@@ -1,57 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
-
|
|
5
|
-
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports
|
|
13
|
-
|
|
14
|
-
|
|
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;
|
|
3
|
+
exports.DirectoryPrincipalResolveError = exports.readFunctionDirectoryScopes = 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
|
+
var contracts_1 = require("@sequenceholdings/platform/contracts");
|
|
5
|
+
Object.defineProperty(exports, "FUNCTION_DIRECTORY_TOKEN_HEADER", { enumerable: true, get: function () { return contracts_1.FUNCTION_DIRECTORY_TOKEN_HEADER; } });
|
|
6
|
+
Object.defineProperty(exports, "FUNCTION_DIRECTORY_RESOLVE_PATH", { enumerable: true, get: function () { return contracts_1.FUNCTION_DIRECTORY_RESOLVE_PATH; } });
|
|
7
|
+
Object.defineProperty(exports, "DIRECTORY_PRINCIPALS_PER_REQUEST", { enumerable: true, get: function () { return contracts_1.DIRECTORY_PRINCIPALS_PER_REQUEST; } });
|
|
8
|
+
Object.defineProperty(exports, "directoryTenantSchema", { enumerable: true, get: function () { return contracts_1.directoryTenantSchema; } });
|
|
9
|
+
Object.defineProperty(exports, "directoryPrincipalLookupSchema", { enumerable: true, get: function () { return contracts_1.directoryPrincipalLookupSchema; } });
|
|
10
|
+
Object.defineProperty(exports, "directoryPrincipalResolveRequestSchema", { enumerable: true, get: function () { return contracts_1.directoryPrincipalResolveRequestSchema; } });
|
|
11
|
+
Object.defineProperty(exports, "directoryResolvedPrincipalSchema", { enumerable: true, get: function () { return contracts_1.directoryResolvedPrincipalSchema; } });
|
|
12
|
+
Object.defineProperty(exports, "directoryPrincipalResolutionSchema", { enumerable: true, get: function () { return contracts_1.directoryPrincipalResolutionSchema; } });
|
|
13
|
+
Object.defineProperty(exports, "functionDirectoryScopesSchema", { enumerable: true, get: function () { return contracts_1.functionDirectoryScopesSchema; } });
|
|
14
|
+
Object.defineProperty(exports, "readFunctionDirectoryScopes", { enumerable: true, get: function () { return contracts_1.readFunctionDirectoryScopes; } });
|
|
15
|
+
Object.defineProperty(exports, "DirectoryPrincipalResolveError", { enumerable: true, get: function () { return contracts_1.DirectoryPrincipalResolveError; } });
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export declare const functionDirectoryRostersSchema: z.ZodArray<z.ZodString>;
|
|
4
|
-
export declare const directoryRosterQuerySchema: z.ZodObject<{
|
|
5
|
-
tenant: z.ZodString;
|
|
6
|
-
groupId: z.ZodString;
|
|
7
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
8
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, z.core.$strict>;
|
|
10
|
-
export declare const directoryRosterPageSchema: z.ZodObject<{
|
|
11
|
-
members: z.ZodArray<z.ZodObject<{
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
sub: z.ZodString;
|
|
14
|
-
name: z.ZodString;
|
|
15
|
-
email: z.ZodString;
|
|
16
|
-
deactivated: z.ZodLiteral<false>;
|
|
17
|
-
}, z.core.$strict>>;
|
|
18
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$strict>;
|
|
20
|
-
export type DirectoryRosterQuery = z.input<typeof directoryRosterQuerySchema>;
|
|
21
|
-
export type DirectoryRosterPage = z.infer<typeof directoryRosterPageSchema>;
|
|
22
|
-
export declare function readFunctionDirectoryRosterGroups(manifest: unknown): string[];
|
|
1
|
+
export { FUNCTION_DIRECTORY_ROSTER_PATH, functionDirectoryRostersSchema, directoryRosterQuerySchema, directoryRosterPageSchema, readFunctionDirectoryRosterGroups, } from "@sequenceholdings/platform/contracts";
|
|
2
|
+
export type { DirectoryRosterQuery, DirectoryRosterPage, } from "@sequenceholdings/platform/contracts";
|
|
@@ -1,24 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.directoryRosterPageSchema = exports.directoryRosterQuerySchema = exports.functionDirectoryRostersSchema = exports.FUNCTION_DIRECTORY_ROSTER_PATH = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.
|
|
9
|
-
exports
|
|
10
|
-
.refine(groups => new Set(groups).size === groups.length, 'Roster groups must be distinct');
|
|
11
|
-
exports.directoryRosterQuerySchema = zod_1.z.object({
|
|
12
|
-
tenant: directory_contract_1.directoryTenantSchema,
|
|
13
|
-
groupId: directory_config_1.directoryGroupIdSchema,
|
|
14
|
-
limit: zod_1.z.number().int().min(1).max(50).default(50),
|
|
15
|
-
cursor: zod_1.z.string().max(2048).optional(),
|
|
16
|
-
}).strict();
|
|
17
|
-
exports.directoryRosterPageSchema = zod_1.z.object({
|
|
18
|
-
members: zod_1.z.array(zod_1.z.object({ id: zod_1.z.string(), sub: zod_1.z.string(), name: zod_1.z.string(), email: zod_1.z.string(), deactivated: zod_1.z.literal(false) }).strict()).max(50),
|
|
19
|
-
nextCursor: zod_1.z.string().nullable(),
|
|
20
|
-
}).strict();
|
|
21
|
-
function readFunctionDirectoryRosterGroups(manifest) {
|
|
22
|
-
const parsed = zod_1.z.object({ capabilities: zod_1.z.object({ directory: zod_1.z.object({ rosters: exports.functionDirectoryRostersSchema.optional() }).optional() }).optional() }).safeParse(manifest);
|
|
23
|
-
return parsed.success ? parsed.data.capabilities?.directory?.rosters ?? [] : [];
|
|
24
|
-
}
|
|
3
|
+
exports.readFunctionDirectoryRosterGroups = exports.directoryRosterPageSchema = exports.directoryRosterQuerySchema = exports.functionDirectoryRostersSchema = exports.FUNCTION_DIRECTORY_ROSTER_PATH = void 0;
|
|
4
|
+
var contracts_1 = require("@sequenceholdings/platform/contracts");
|
|
5
|
+
Object.defineProperty(exports, "FUNCTION_DIRECTORY_ROSTER_PATH", { enumerable: true, get: function () { return contracts_1.FUNCTION_DIRECTORY_ROSTER_PATH; } });
|
|
6
|
+
Object.defineProperty(exports, "functionDirectoryRostersSchema", { enumerable: true, get: function () { return contracts_1.functionDirectoryRostersSchema; } });
|
|
7
|
+
Object.defineProperty(exports, "directoryRosterQuerySchema", { enumerable: true, get: function () { return contracts_1.directoryRosterQuerySchema; } });
|
|
8
|
+
Object.defineProperty(exports, "directoryRosterPageSchema", { enumerable: true, get: function () { return contracts_1.directoryRosterPageSchema; } });
|
|
9
|
+
Object.defineProperty(exports, "readFunctionDirectoryRosterGroups", { enumerable: true, get: function () { return contracts_1.readFunctionDirectoryRosterGroups; } });
|
package/dist/directory.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { directoryMembersInput, directoryMembersResponse } from
|
|
3
|
-
import { type FunctionInvocationClientOptions } from
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { directoryMembersInput, directoryMembersResponse } from "./directory-config";
|
|
3
|
+
import { type FunctionInvocationClientOptions } from "./invocation-client";
|
|
4
4
|
export type FunctionDirectoryOptions = FunctionInvocationClientOptions;
|
|
5
5
|
export type FunctionDirectoryMembersQuery = z.infer<typeof directoryMembersInput>;
|
|
6
6
|
export type FunctionDirectoryMembers = z.infer<typeof directoryMembersResponse>;
|
|
7
7
|
export interface FunctionDirectoryClient {
|
|
8
8
|
resolveMembers(input: FunctionDirectoryMembersQuery): Promise<FunctionDirectoryMembers>;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
11
|
-
readonly status: number;
|
|
12
|
-
readonly code: string;
|
|
13
|
-
constructor(status: number, code: string, message: string);
|
|
14
|
-
}
|
|
10
|
+
export { FunctionDirectoryReadError } from "@sequenceholdings/platform/adapters";
|
|
15
11
|
export declare function createFunctionDirectoryClient({ request, baseUrl, fetchImpl, }: FunctionDirectoryOptions): FunctionDirectoryClient;
|
package/dist/directory.js
CHANGED
|
@@ -2,35 +2,27 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FunctionDirectoryReadError = void 0;
|
|
4
4
|
exports.createFunctionDirectoryClient = createFunctionDirectoryClient;
|
|
5
|
+
const adapters_1 = require("@sequenceholdings/platform/adapters");
|
|
5
6
|
const zod_1 = require("zod");
|
|
6
7
|
const directory_config_1 = require("./directory-config");
|
|
7
8
|
const invocation_client_1 = require("./invocation-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
code;
|
|
11
|
-
constructor(status, code, message) {
|
|
12
|
-
super(message);
|
|
13
|
-
this.status = status;
|
|
14
|
-
this.code = code;
|
|
15
|
-
this.name = 'FunctionDirectoryReadError';
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.FunctionDirectoryReadError = FunctionDirectoryReadError;
|
|
9
|
+
var adapters_2 = require("@sequenceholdings/platform/adapters");
|
|
10
|
+
Object.defineProperty(exports, "FunctionDirectoryReadError", { enumerable: true, get: function () { return adapters_2.FunctionDirectoryReadError; } });
|
|
19
11
|
function createFunctionDirectoryClient({ request, baseUrl, fetchImpl, }) {
|
|
20
12
|
const credential = (0, invocation_client_1.readInvocationCredential)({
|
|
21
13
|
request,
|
|
22
14
|
header: directory_config_1.DIRECTORY_TOKEN_HEADER,
|
|
23
15
|
maxBytes: 8192,
|
|
24
|
-
invalidContext: () => new FunctionDirectoryReadError(401,
|
|
16
|
+
invalidContext: () => new adapters_1.FunctionDirectoryReadError(401, "invalid_context", "This invocation has no valid directory-read credential"),
|
|
25
17
|
claimsSchema: zod_1.z.object({
|
|
26
|
-
audience: zod_1.z.literal(
|
|
18
|
+
audience: zod_1.z.literal("atlas-function-group-directory-v1"),
|
|
27
19
|
sub: zod_1.z
|
|
28
20
|
.string()
|
|
29
21
|
.min(1)
|
|
30
22
|
.max(256)
|
|
31
|
-
.refine((sub) => sub.includes(
|
|
32
|
-
!sub.startsWith(
|
|
33
|
-
!sub.endsWith(
|
|
23
|
+
.refine((sub) => sub.includes("|") &&
|
|
24
|
+
!sub.startsWith("service-account|") &&
|
|
25
|
+
!sub.endsWith("@clients")),
|
|
34
26
|
functionId: zod_1.z.string().min(1),
|
|
35
27
|
invocationId: zod_1.z.string().min(1),
|
|
36
28
|
exp: zod_1.z.number().int(),
|
|
@@ -39,27 +31,17 @@ function createFunctionDirectoryClient({ request, baseUrl, fetchImpl, }) {
|
|
|
39
31
|
const read = (0, invocation_client_1.createInvocationReadTransport)({
|
|
40
32
|
baseUrl,
|
|
41
33
|
fetchImpl,
|
|
42
|
-
path:
|
|
34
|
+
path: "/api/managed-functions/directory/members",
|
|
43
35
|
header: directory_config_1.DIRECTORY_TOKEN_HEADER,
|
|
44
36
|
credential,
|
|
45
37
|
timeoutMs: 10_000,
|
|
46
|
-
error: (status, code, message) => new FunctionDirectoryReadError(status, code, message),
|
|
38
|
+
error: (status, code, message) => new adapters_1.FunctionDirectoryReadError(status, code, message),
|
|
47
39
|
failure: {
|
|
48
|
-
code:
|
|
49
|
-
message:
|
|
40
|
+
code: "directory_read_failed",
|
|
41
|
+
message: "Directory read failed",
|
|
50
42
|
},
|
|
51
43
|
});
|
|
52
|
-
return {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const result = await read({ body, schema: directory_config_1.directoryMembersResponse });
|
|
56
|
-
const selectors = new Set('userIds' in body ? body.userIds : body.subs);
|
|
57
|
-
const returned = result.members.map((member) => 'userIds' in body ? member.id : member.sub);
|
|
58
|
-
if (new Set(returned).size !== returned.length ||
|
|
59
|
-
returned.some((value) => !selectors.has(value))) {
|
|
60
|
-
throw new FunctionDirectoryReadError(502, 'malformed_response', 'Atlas returned duplicate or unrequested directory members');
|
|
61
|
-
}
|
|
62
|
-
return result;
|
|
63
|
-
},
|
|
64
|
-
};
|
|
44
|
+
return (0, adapters_1.createCallerDirectoryClient)({
|
|
45
|
+
send: (body) => read({ body, schema: zod_1.z.unknown() }),
|
|
46
|
+
});
|
|
65
47
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createGroupRosterAccessClient } from "@sequenceholdings/platform/server";
|
|
2
|
+
export type { GroupRosterAccessClient } from "@sequenceholdings/platform/server";
|
|
3
|
+
export { groupRosterAccessTargetSchema, groupRosterAccessResultSchema, } from "@sequenceholdings/platform/contracts";
|
|
4
|
+
export type { GroupRosterAccessTarget, GroupRosterAccessResult, } from "@sequenceholdings/platform/contracts";
|
|
5
|
+
export type GroupRosterAccessOptions = {
|
|
6
|
+
transport: import("@sequenceholdings/platform/browser").PlatformTransport<"operator">;
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.groupRosterAccessResultSchema = exports.groupRosterAccessTargetSchema = exports.createGroupRosterAccessClient = void 0;
|
|
4
|
+
var server_1 = require("@sequenceholdings/platform/server");
|
|
5
|
+
Object.defineProperty(exports, "createGroupRosterAccessClient", { enumerable: true, get: function () { return server_1.createGroupRosterAccessClient; } });
|
|
6
|
+
var contracts_1 = require("@sequenceholdings/platform/contracts");
|
|
7
|
+
Object.defineProperty(exports, "groupRosterAccessTargetSchema", { enumerable: true, get: function () { return contracts_1.groupRosterAccessTargetSchema; } });
|
|
8
|
+
Object.defineProperty(exports, "groupRosterAccessResultSchema", { enumerable: true, get: function () { return contracts_1.groupRosterAccessResultSchema; } });
|
package/dist/index.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export { createFunctionDirectoryClient, FunctionDirectoryReadError } from
|
|
2
|
-
export type { FunctionDirectoryClient, FunctionDirectoryOptions, FunctionDirectoryMembers, FunctionDirectoryMembersQuery } from
|
|
3
|
-
export type { FunctionInvocationClientOptions } from
|
|
4
|
-
export { functionLatticeContextCapabilitySchema, readFunctionLatticeContextCapability } from
|
|
5
|
-
export { createFunctionLatticeClient } from
|
|
6
|
-
export { functionLatticeParallelSnapshotSchema, functionLatticeParallelSnapshotQuerySchema } from
|
|
7
|
-
export type { FunctionLatticeParallelSnapshot, FunctionLatticeParallelSnapshotQuery } from
|
|
8
|
-
export { functionLatticeStartProvenanceSchema } from
|
|
9
|
-
export type { FunctionLatticeStartProvenance } from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export { createFunctionInvocationClient } from
|
|
13
|
-
export type { FunctionInvocationClient } from
|
|
14
|
-
export { FUNCTION_LATTICE_CONTEXT_PATH, FUNCTION_LATTICE_EXECUTION_TOKEN_HEADER, FunctionLatticeContextError, functionLatticeContextRequestSchema, functionLatticeExecutionContextSchema, functionLatticeHumanCompletionQuerySchema, functionLatticeHumanCompletionSchema } from
|
|
15
|
-
export type { FunctionLatticeClient, FunctionLatticeClientOptions } from
|
|
16
|
-
export { functionLatticeHumanCompletionsQuerySchema, functionLatticeHumanCompletionsPageSchema } from
|
|
17
|
-
export type { FunctionLatticeHumanCompletionsQuery, FunctionLatticeHumanCompletionsPage } from
|
|
18
|
-
export type { FunctionLatticeContextRequest, FunctionLatticeExecutionContext, FunctionLatticeHumanCompletion, FunctionLatticeHumanCompletionQuery } from
|
|
19
|
-
export { createFunctionServiceProcessesClient, FunctionProcessReadError } from
|
|
20
|
-
export { createFunctionServiceAgentsClient, FunctionAgentReadError } from
|
|
21
|
-
export { createFunctionAgentEvidenceClient } from
|
|
22
|
-
export { createFunctionServiceWorkflowsClient, createFunctionWorkflowEvidenceClient } from
|
|
23
|
-
export type { FunctionServiceWorkflowsClient, FunctionServiceWorkflowsOptions, FunctionWorkflowEvidenceClient, FunctionWorkflowSourceEvidenceInput } from
|
|
24
|
-
export * from
|
|
25
|
-
export type { FunctionAgentEvidenceClient, FunctionAgentSourceEvidenceInput, FunctionAgentConversationEvidenceInput } from
|
|
26
|
-
export type { FunctionAgentSourceEvidenceCapture, FunctionAgentSourceEvidenceClaims, FunctionAgentSourceEvidenceVerification, FunctionAgentConversationResponse, FunctionAgentConversationEvidenceResponse, FunctionAgentConversationEvidenceCapture, FunctionAgentSourceExecution } from
|
|
27
|
-
export { functionAgentSourceResponseSchema, functionAgentSourceEvidenceRequestSchema, functionAgentSourceEvidenceCaptureSchema, functionAgentConversationEvidenceResponseSchema, functionAgentConversationEvidenceCaptureSchema, functionAgentConversationEvidenceRequestSchema, functionAgentSourceExecutionSchema } from
|
|
28
|
-
export { functionSourceJobAdmissionSchema } from
|
|
29
|
-
export type { FunctionSourceJobAdmission } from
|
|
30
|
-
export type { FunctionServiceAgentsClient, FunctionServiceAgentsOptions, FunctionAgentCompletedRunQuery, FunctionAgentCompletedRun } from
|
|
31
|
-
export { createFunctionServiceMonitoringClient } from
|
|
32
|
-
export { FunctionMonitoringError, monitoringPayloadHash } from
|
|
33
|
-
export { monitoringEventsSchema, monitoringPublishSchema } from
|
|
34
|
-
export { functionMonitoringAnnotationSchema } from
|
|
35
|
-
export type { MonitoringDeltaEvent, MonitoringPublish, MonitoringDeliveryKey, MonitoringDeliveryReceipt } from
|
|
36
|
-
export type { MonitoringCatalogQuery, MonitoringBucketCatalog } from
|
|
37
|
-
export type { FunctionMonitoringAnnotation, MonitoringJson } from
|
|
38
|
-
export type { FunctionServiceMonitoringClient, FunctionServiceMonitoringOptions } from
|
|
39
|
-
export type { FunctionServiceProcessesClient, FunctionServiceProcessesOptions, FunctionProcessRunQuery, FunctionProcessRunSummary, FunctionProcessRunStatus, FunctionProcessRunsPage, FunctionProcessRunsPageQuery, FunctionProcessReadRequest, FunctionProcessCompletedAgentReferenceQuery, FunctionProcessCompletedAgentReference, FunctionProcessCompletedNode, FunctionProcessCompletedNodeQuery } from
|
|
40
|
-
export { installFunctionTracing, runWithFunctionTracing } from
|
|
41
|
-
export { createFunctionStorageClient } from
|
|
1
|
+
export { createFunctionDirectoryClient, FunctionDirectoryReadError, } from "./directory";
|
|
2
|
+
export type { FunctionDirectoryClient, FunctionDirectoryOptions, FunctionDirectoryMembers, FunctionDirectoryMembersQuery, } from "./directory";
|
|
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";
|
|
19
|
+
export { createFunctionServiceProcessesClient, FunctionProcessReadError, } 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, FunctionProcessCompletedNode, FunctionProcessCompletedNodeQuery, } from "./processes";
|
|
40
|
+
export { installFunctionTracing, runWithFunctionTracing } from "./tracing";
|
|
41
|
+
export { createFunctionStorageClient } from "./storage";
|
|
42
42
|
import { type CacheManager } from "./cache";
|
|
43
43
|
export { CacheError, createCacheManager } from "./cache";
|
|
44
44
|
export type { CacheManager, CacheOptions, CacheErrorCode, JsonValue, } from "./cache";
|
|
@@ -50,8 +50,11 @@ export interface ManagedFunctionContext {
|
|
|
50
50
|
export declare function createManagedFunctionContext({ env, }?: {
|
|
51
51
|
env?: NodeJS.ProcessEnv;
|
|
52
52
|
}): ManagedFunctionContext;
|
|
53
|
-
export * from
|
|
54
|
-
export { createFunctionServiceDirectoryClient, type FunctionServiceDirectoryOptions, type FunctionServiceDirectoryClient } from
|
|
55
|
-
export * from
|
|
56
|
-
export { functionLatticeRunCreatorAccessSchema } from
|
|
57
|
-
export type { FunctionLatticeRunCreatorAccess } from
|
|
53
|
+
export * from "./directory-contract";
|
|
54
|
+
export { createFunctionServiceDirectoryClient, type FunctionServiceDirectoryOptions, type FunctionServiceDirectoryClient, } from "./service-directory";
|
|
55
|
+
export * from "./directory-roster-contract";
|
|
56
|
+
export { functionLatticeRunCreatorAccessSchema } from "./lattice-provenance-contract";
|
|
57
|
+
export type { FunctionLatticeRunCreatorAccess } from "./lattice-provenance-contract";
|
|
58
|
+
export { createGroupRosterAccessClient, groupRosterAccessTargetSchema, groupRosterAccessResultSchema, } from "./group-roster-access";
|
|
59
|
+
export type { GroupRosterAccessClient, GroupRosterAccessOptions, GroupRosterAccessTarget, GroupRosterAccessResult, } from "./group-roster-access";
|
|
60
|
+
export { createFunctionPlatformClient, type FunctionPlatformClient, type FunctionPlatformClientOptions, } from "./platform-client";
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.functionLatticeRunCreatorAccessSchema = exports.createFunctionServiceDirectoryClient = exports.readCacheConfiguration = exports.cacheManifestSchema = exports.createCacheManager = exports.CacheError = exports.createFunctionStorageClient = exports.runWithFunctionTracing = exports.installFunctionTracing = exports.functionMonitoringAnnotationSchema = exports.monitoringPublishSchema = exports.monitoringEventsSchema = exports.monitoringPayloadHash = exports.FunctionMonitoringError = exports.createFunctionServiceMonitoringClient = exports.functionSourceJobAdmissionSchema = exports.functionAgentSourceExecutionSchema = exports.functionAgentConversationEvidenceRequestSchema = exports.functionAgentConversationEvidenceCaptureSchema = exports.functionAgentConversationEvidenceResponseSchema = exports.functionAgentSourceEvidenceCaptureSchema = exports.functionAgentSourceEvidenceRequestSchema = exports.functionAgentSourceResponseSchema = exports.createFunctionWorkflowEvidenceClient = exports.createFunctionServiceWorkflowsClient = exports.createFunctionAgentEvidenceClient = exports.FunctionAgentReadError = exports.createFunctionServiceAgentsClient = exports.FunctionProcessReadError = exports.createFunctionServiceProcessesClient = exports.functionLatticeHumanCompletionsPageSchema = exports.functionLatticeHumanCompletionsQuerySchema = exports.functionLatticeHumanCompletionSchema = exports.functionLatticeHumanCompletionQuerySchema = exports.functionLatticeExecutionContextSchema = exports.functionLatticeContextRequestSchema = exports.FunctionLatticeContextError = exports.FUNCTION_LATTICE_EXECUTION_TOKEN_HEADER = exports.FUNCTION_LATTICE_CONTEXT_PATH = exports.createFunctionInvocationClient = exports.functionLatticeStartProvenanceSchema = exports.functionLatticeParallelSnapshotQuerySchema = exports.functionLatticeParallelSnapshotSchema = exports.createFunctionLatticeClient = exports.readFunctionLatticeContextCapability = exports.functionLatticeContextCapabilitySchema = exports.FunctionDirectoryReadError = exports.createFunctionDirectoryClient = void 0;
|
|
17
|
+
exports.groupRosterAccessTargetSchema = exports.createGroupRosterAccessClient = exports.functionLatticeRunCreatorAccessSchema = exports.createFunctionServiceDirectoryClient = exports.readCacheConfiguration = exports.cacheManifestSchema = exports.createCacheManager = exports.CacheError = exports.createFunctionStorageClient = exports.runWithFunctionTracing = exports.installFunctionTracing = exports.functionMonitoringAnnotationSchema = exports.monitoringPublishSchema = exports.monitoringEventsSchema = exports.monitoringPayloadHash = exports.FunctionMonitoringError = exports.createFunctionServiceMonitoringClient = exports.functionSourceJobAdmissionSchema = exports.functionAgentSourceExecutionSchema = exports.functionAgentConversationEvidenceRequestSchema = exports.functionAgentConversationEvidenceCaptureSchema = exports.functionAgentConversationEvidenceResponseSchema = exports.functionAgentSourceEvidenceCaptureSchema = exports.functionAgentSourceEvidenceRequestSchema = exports.functionAgentSourceResponseSchema = exports.createFunctionWorkflowEvidenceClient = exports.createFunctionServiceWorkflowsClient = exports.createFunctionAgentEvidenceClient = exports.FunctionAgentReadError = exports.createFunctionServiceAgentsClient = exports.FunctionProcessReadError = exports.createFunctionServiceProcessesClient = exports.functionLatticeHumanCompletionsPageSchema = exports.functionLatticeHumanCompletionsQuerySchema = exports.functionLatticeHumanCompletionSchema = exports.functionLatticeHumanCompletionQuerySchema = exports.functionLatticeExecutionContextSchema = exports.functionLatticeContextRequestSchema = exports.FunctionLatticeContextError = exports.FUNCTION_LATTICE_EXECUTION_TOKEN_HEADER = exports.FUNCTION_LATTICE_CONTEXT_PATH = exports.createFunctionInvocationClient = exports.functionLatticeStartProvenanceSchema = exports.functionLatticeParallelSnapshotQuerySchema = exports.functionLatticeParallelSnapshotSchema = exports.createFunctionLatticeClient = exports.readFunctionLatticeContextCapability = exports.functionLatticeContextCapabilitySchema = exports.FunctionDirectoryReadError = exports.createFunctionDirectoryClient = void 0;
|
|
18
|
+
exports.createFunctionPlatformClient = exports.groupRosterAccessResultSchema = void 0;
|
|
18
19
|
exports.createManagedFunctionContext = createManagedFunctionContext;
|
|
19
20
|
var directory_1 = require("./directory");
|
|
20
21
|
Object.defineProperty(exports, "createFunctionDirectoryClient", { enumerable: true, get: function () { return directory_1.createFunctionDirectoryClient; } });
|
|
@@ -142,3 +143,9 @@ Object.defineProperty(exports, "createFunctionServiceDirectoryClient", { enumera
|
|
|
142
143
|
__exportStar(require("./directory-roster-contract"), exports);
|
|
143
144
|
var lattice_provenance_contract_5 = require("./lattice-provenance-contract");
|
|
144
145
|
Object.defineProperty(exports, "functionLatticeRunCreatorAccessSchema", { enumerable: true, get: function () { return lattice_provenance_contract_5.functionLatticeRunCreatorAccessSchema; } });
|
|
146
|
+
var group_roster_access_1 = require("./group-roster-access");
|
|
147
|
+
Object.defineProperty(exports, "createGroupRosterAccessClient", { enumerable: true, get: function () { return group_roster_access_1.createGroupRosterAccessClient; } });
|
|
148
|
+
Object.defineProperty(exports, "groupRosterAccessTargetSchema", { enumerable: true, get: function () { return group_roster_access_1.groupRosterAccessTargetSchema; } });
|
|
149
|
+
Object.defineProperty(exports, "groupRosterAccessResultSchema", { enumerable: true, get: function () { return group_roster_access_1.groupRosterAccessResultSchema; } });
|
|
150
|
+
var platform_client_1 = require("./platform-client");
|
|
151
|
+
Object.defineProperty(exports, "createFunctionPlatformClient", { enumerable: true, get: function () { return platform_client_1.createFunctionPlatformClient; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export interface FunctionInvocationClientOptions {
|
|
3
3
|
request: {
|
|
4
|
-
headers: Pick<Headers,
|
|
4
|
+
headers: Pick<Headers, "get"> | Readonly<Record<string, string | readonly string[] | undefined>>;
|
|
5
5
|
};
|
|
6
6
|
baseUrl: string;
|
|
7
7
|
fetchImpl?: typeof globalThis.fetch;
|
|
@@ -9,7 +9,7 @@ export interface FunctionInvocationClientOptions {
|
|
|
9
9
|
type ClientErrorFactory = (status: number, code: string, message: string) => Error;
|
|
10
10
|
export declare function readInvocationCredential<T extends {
|
|
11
11
|
exp: number;
|
|
12
|
-
}>({ request, header, maxBytes, claimsSchema, invalidContext, }: Pick<FunctionInvocationClientOptions,
|
|
12
|
+
}>({ request, header, maxBytes, claimsSchema, invalidContext, }: Pick<FunctionInvocationClientOptions, "request"> & {
|
|
13
13
|
header: string;
|
|
14
14
|
maxBytes: number;
|
|
15
15
|
claimsSchema: z.ZodType<T>;
|
|
@@ -18,7 +18,7 @@ export declare function readInvocationCredential<T extends {
|
|
|
18
18
|
token: string;
|
|
19
19
|
expiresAt: number;
|
|
20
20
|
};
|
|
21
|
-
export declare function createInvocationReadTransport({ baseUrl, fetchImpl, path, header, credential, additionalCredentials, timeoutMs, error, failure, }: Pick<FunctionInvocationClientOptions,
|
|
21
|
+
export declare function createInvocationReadTransport({ baseUrl, fetchImpl, path, header, credential, additionalCredentials, timeoutMs, error, failure, }: Pick<FunctionInvocationClientOptions, "baseUrl" | "fetchImpl"> & {
|
|
22
22
|
path: string;
|
|
23
23
|
header: string;
|
|
24
24
|
credential: {
|