@vekil/app-sdk 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +232 -0
- package/dist/cli.cjs +5343 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +5341 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +6288 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +5712 -0
- package/dist/index.d.ts +5712 -0
- package/dist/index.js +6054 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime.cjs +5299 -0
- package/dist/runtime.cjs.map +1 -0
- package/dist/runtime.d.cts +188 -0
- package/dist/runtime.d.ts +188 -0
- package/dist/runtime.js +5284 -0
- package/dist/runtime.js.map +1 -0
- package/dist/signature-envelope-DzT4yjFP.d.cts +5877 -0
- package/dist/signature-envelope-DzT4yjFP.d.ts +5877 -0
- package/docs/app-definition.md +223 -0
- package/docs/cli.md +163 -0
- package/docs/runtime.md +256 -0
- package/docs/security-and-versioning.md +147 -0
- package/package.json +86 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
+
import { A as AppSignatureAlgorithm, a as AppPublicSigningJwk, b as AppCompleteInstallationRequest, c as AppCompleteInstallationResponse, d as AppDisconnectInstallationRequest, e as AppDisconnectInstallationResponse, f as AppExecuteActionRequest, g as AppExecuteActionResponse, h as AppRuntimeHealthResponse, i as AppPlanActionRequest, j as AppPlanActionResponse, k as AppPrepareInstallationRequest, l as AppPrepareInstallationResponse, m as AppManifest, n as AppJwks, o as AppRuntimeHealthStatus } from './signature-envelope-DzT4yjFP.cjs';
|
|
3
|
+
import { webcrypto } from 'node:crypto';
|
|
4
|
+
import 'zod';
|
|
5
|
+
|
|
6
|
+
interface AppPrivateSigningJwk extends webcrypto.JsonWebKey {
|
|
7
|
+
alg: typeof AppSignatureAlgorithm.ED25519;
|
|
8
|
+
crv: "Ed25519";
|
|
9
|
+
d: string;
|
|
10
|
+
kid: string;
|
|
11
|
+
kty: "OKP";
|
|
12
|
+
use: "sig";
|
|
13
|
+
x: string;
|
|
14
|
+
}
|
|
15
|
+
interface AppProtocolSigningIdentity {
|
|
16
|
+
issuer: string;
|
|
17
|
+
keyId: string;
|
|
18
|
+
privateKeyJwk: AppPrivateSigningJwk;
|
|
19
|
+
}
|
|
20
|
+
declare function readAppProtocolSigningIdentity({ issuer, keyId, privateJwkBase64url }: {
|
|
21
|
+
issuer: string;
|
|
22
|
+
keyId?: string;
|
|
23
|
+
privateJwkBase64url?: string;
|
|
24
|
+
}): AppProtocolSigningIdentity | null;
|
|
25
|
+
declare function deriveAppPublicSigningJwk(identity: AppProtocolSigningIdentity): AppPublicSigningJwk;
|
|
26
|
+
|
|
27
|
+
interface AppJwksResolver {
|
|
28
|
+
resolve(jwksUrl: string, keyId: string): Promise<AppPublicSigningJwk | null>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface AppSignatureReplayClaim {
|
|
32
|
+
audience: string;
|
|
33
|
+
expiresAt: Date;
|
|
34
|
+
issuer: string;
|
|
35
|
+
keyId: string;
|
|
36
|
+
nonce: string;
|
|
37
|
+
}
|
|
38
|
+
interface AppSignatureReplayStore {
|
|
39
|
+
claim(input: AppSignatureReplayClaim): Promise<boolean>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
type RuntimeMethod = "GET" | "POST";
|
|
43
|
+
type RuntimeHeaders = Headers | Record<string, string | string[] | undefined>;
|
|
44
|
+
interface AppRuntimeV1ServerRequest {
|
|
45
|
+
body: string;
|
|
46
|
+
headers: RuntimeHeaders;
|
|
47
|
+
method: RuntimeMethod;
|
|
48
|
+
path: string;
|
|
49
|
+
}
|
|
50
|
+
interface AppRuntimeV1ServerResponse {
|
|
51
|
+
body: string;
|
|
52
|
+
headers: Record<string, string>;
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
interface AppRuntimeV1Handlers {
|
|
56
|
+
completeInstallation(request: AppCompleteInstallationRequest): Promise<AppCompleteInstallationResponse>;
|
|
57
|
+
disconnectInstallation(request: AppDisconnectInstallationRequest): Promise<AppDisconnectInstallationResponse>;
|
|
58
|
+
executeAction(request: AppExecuteActionRequest): Promise<AppExecuteActionResponse>;
|
|
59
|
+
health(): Promise<AppRuntimeHealthResponse>;
|
|
60
|
+
planAction(request: AppPlanActionRequest): Promise<AppPlanActionResponse>;
|
|
61
|
+
prepareInstallation(request: AppPrepareInstallationRequest): Promise<AppPrepareInstallationResponse>;
|
|
62
|
+
}
|
|
63
|
+
interface AppRuntimeV1ServerConfig {
|
|
64
|
+
appId: string;
|
|
65
|
+
appVersion: string;
|
|
66
|
+
handlers: AppRuntimeV1Handlers;
|
|
67
|
+
manifest: AppManifest;
|
|
68
|
+
jwksResolver?: AppJwksResolver;
|
|
69
|
+
nonceFactory?: () => string;
|
|
70
|
+
now?: () => Date;
|
|
71
|
+
platformIssuer: string;
|
|
72
|
+
platformJwksUrl: string;
|
|
73
|
+
replayStore: AppSignatureReplayStore;
|
|
74
|
+
signatureLifetimeMs?: number;
|
|
75
|
+
signingIdentity: AppProtocolSigningIdentity;
|
|
76
|
+
}
|
|
77
|
+
declare enum AppRuntimeV1ServerErrorCode {
|
|
78
|
+
ROUTE_NOT_FOUND = "APP_RUNTIME_V1_ROUTE_NOT_FOUND",
|
|
79
|
+
REQUEST_TOO_LARGE = "APP_RUNTIME_V1_REQUEST_TOO_LARGE",
|
|
80
|
+
REQUEST_JSON_INVALID = "APP_RUNTIME_V1_REQUEST_JSON_INVALID",
|
|
81
|
+
REQUEST_SCHEMA_INVALID = "APP_RUNTIME_V1_REQUEST_SCHEMA_INVALID",
|
|
82
|
+
REQUEST_IDENTITY_INVALID = "APP_RUNTIME_V1_REQUEST_IDENTITY_INVALID",
|
|
83
|
+
REQUEST_SIGNATURE_INVALID = "APP_RUNTIME_V1_REQUEST_SIGNATURE_INVALID"
|
|
84
|
+
}
|
|
85
|
+
declare class AppRuntimeV1ServerError extends Error {
|
|
86
|
+
readonly code: AppRuntimeV1ServerErrorCode;
|
|
87
|
+
readonly statusCode: number;
|
|
88
|
+
constructor({ code, message, statusCode }: {
|
|
89
|
+
code: AppRuntimeV1ServerErrorCode;
|
|
90
|
+
message: string;
|
|
91
|
+
statusCode: number;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
declare class AppRuntimeV1Server {
|
|
95
|
+
private readonly appId;
|
|
96
|
+
private readonly appVersion;
|
|
97
|
+
private readonly handlers;
|
|
98
|
+
private readonly manifest;
|
|
99
|
+
private readonly jwksResolver;
|
|
100
|
+
private readonly nonceFactory;
|
|
101
|
+
private readonly now;
|
|
102
|
+
private readonly platformIssuer;
|
|
103
|
+
private readonly platformJwksUrl;
|
|
104
|
+
private readonly replayStore;
|
|
105
|
+
private readonly signatureLifetimeMs;
|
|
106
|
+
private readonly signingIdentity;
|
|
107
|
+
constructor(config: AppRuntimeV1ServerConfig);
|
|
108
|
+
handle(request: AppRuntimeV1ServerRequest): Promise<AppRuntimeV1ServerResponse>;
|
|
109
|
+
private handleSignedRoute;
|
|
110
|
+
private verifyRequest;
|
|
111
|
+
private invokeAndSign;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare class DevelopmentAppSignatureReplayStore implements AppSignatureReplayStore {
|
|
115
|
+
private readonly claims;
|
|
116
|
+
private readonly now;
|
|
117
|
+
constructor({ now }?: {
|
|
118
|
+
now?: () => number;
|
|
119
|
+
});
|
|
120
|
+
claim(input: AppSignatureReplayClaim): Promise<boolean>;
|
|
121
|
+
clear(): void;
|
|
122
|
+
private removeExpiredClaims;
|
|
123
|
+
}
|
|
124
|
+
declare function createDevelopmentReplayStore(input?: {
|
|
125
|
+
now?: () => number;
|
|
126
|
+
}): DevelopmentAppSignatureReplayStore;
|
|
127
|
+
|
|
128
|
+
interface RemoteAppRuntimeConfig {
|
|
129
|
+
handlers: AppRuntimeV1Handlers;
|
|
130
|
+
jwksResolver?: AppJwksResolver;
|
|
131
|
+
manifest: unknown;
|
|
132
|
+
platformIssuer?: string;
|
|
133
|
+
platformJwksUrl: string;
|
|
134
|
+
replayStore: AppSignatureReplayStore;
|
|
135
|
+
signingIdentity: AppProtocolSigningIdentity;
|
|
136
|
+
}
|
|
137
|
+
declare class RemoteAppRuntime {
|
|
138
|
+
readonly manifest: AppManifest;
|
|
139
|
+
private readonly jwks;
|
|
140
|
+
private readonly jwksPath;
|
|
141
|
+
private readonly server;
|
|
142
|
+
constructor(config: RemoteAppRuntimeConfig);
|
|
143
|
+
getJwks(): AppJwks;
|
|
144
|
+
handle(request: Request): Promise<Response>;
|
|
145
|
+
handleNodeRequest(request: IncomingMessage, response: ServerResponse): Promise<void>;
|
|
146
|
+
}
|
|
147
|
+
declare function createRemoteAppRuntime(config: RemoteAppRuntimeConfig): RemoteAppRuntime;
|
|
148
|
+
declare function readRemoteAppFetchRequestBody(request: Request): Promise<string>;
|
|
149
|
+
|
|
150
|
+
interface AppRuntimeBindings {
|
|
151
|
+
readonly appId: string;
|
|
152
|
+
readonly appVersion: string;
|
|
153
|
+
actionId(key: string): string;
|
|
154
|
+
artifactId(key: string): string;
|
|
155
|
+
capabilityId(key: string): string;
|
|
156
|
+
intentId(key: string): string;
|
|
157
|
+
knowledgeId(key: string): string;
|
|
158
|
+
outcomeId(key: string): string;
|
|
159
|
+
publicActionId(key: string): string;
|
|
160
|
+
resourceId(key: string): string;
|
|
161
|
+
triggerId(key: string): string;
|
|
162
|
+
}
|
|
163
|
+
declare function createAppRuntimeBindings(manifestInput: unknown): AppRuntimeBindings;
|
|
164
|
+
|
|
165
|
+
declare function createAppRuntimeHealthResponse({ manifest: manifestInput, status, checkedAt, message }: {
|
|
166
|
+
manifest: unknown;
|
|
167
|
+
status: AppRuntimeHealthStatus;
|
|
168
|
+
checkedAt?: Date;
|
|
169
|
+
message?: string;
|
|
170
|
+
}): AppRuntimeHealthResponse;
|
|
171
|
+
|
|
172
|
+
interface AppRuntimeKeyMaterial {
|
|
173
|
+
jwks: AppJwks;
|
|
174
|
+
keyId: string;
|
|
175
|
+
privateJwkBase64url: string;
|
|
176
|
+
signingIdentity: AppProtocolSigningIdentity;
|
|
177
|
+
}
|
|
178
|
+
declare function generateAppRuntimeKeyMaterial({ manifest: manifestInput, keyId }: {
|
|
179
|
+
manifest: unknown;
|
|
180
|
+
keyId?: string;
|
|
181
|
+
}): AppRuntimeKeyMaterial;
|
|
182
|
+
declare function readAppRuntimeSigningIdentity({ manifest: manifestInput, keyId, privateJwkBase64url }: {
|
|
183
|
+
manifest: unknown;
|
|
184
|
+
keyId?: string;
|
|
185
|
+
privateJwkBase64url?: string;
|
|
186
|
+
}): AppProtocolSigningIdentity | null;
|
|
187
|
+
|
|
188
|
+
export { type AppJwksResolver, type AppPrivateSigningJwk, type AppProtocolSigningIdentity, type AppRuntimeBindings, type AppRuntimeKeyMaterial, type AppRuntimeV1Handlers, AppRuntimeV1Server, type AppRuntimeV1ServerConfig, AppRuntimeV1ServerError, AppRuntimeV1ServerErrorCode, type AppRuntimeV1ServerRequest, type AppRuntimeV1ServerResponse, type AppSignatureReplayClaim, type AppSignatureReplayStore, DevelopmentAppSignatureReplayStore, RemoteAppRuntime, type RemoteAppRuntimeConfig, createAppRuntimeBindings, createAppRuntimeHealthResponse, createDevelopmentReplayStore, createRemoteAppRuntime, deriveAppPublicSigningJwk, generateAppRuntimeKeyMaterial, readAppProtocolSigningIdentity, readAppRuntimeSigningIdentity, readRemoteAppFetchRequestBody };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
+
import { A as AppSignatureAlgorithm, a as AppPublicSigningJwk, b as AppCompleteInstallationRequest, c as AppCompleteInstallationResponse, d as AppDisconnectInstallationRequest, e as AppDisconnectInstallationResponse, f as AppExecuteActionRequest, g as AppExecuteActionResponse, h as AppRuntimeHealthResponse, i as AppPlanActionRequest, j as AppPlanActionResponse, k as AppPrepareInstallationRequest, l as AppPrepareInstallationResponse, m as AppManifest, n as AppJwks, o as AppRuntimeHealthStatus } from './signature-envelope-DzT4yjFP.js';
|
|
3
|
+
import { webcrypto } from 'node:crypto';
|
|
4
|
+
import 'zod';
|
|
5
|
+
|
|
6
|
+
interface AppPrivateSigningJwk extends webcrypto.JsonWebKey {
|
|
7
|
+
alg: typeof AppSignatureAlgorithm.ED25519;
|
|
8
|
+
crv: "Ed25519";
|
|
9
|
+
d: string;
|
|
10
|
+
kid: string;
|
|
11
|
+
kty: "OKP";
|
|
12
|
+
use: "sig";
|
|
13
|
+
x: string;
|
|
14
|
+
}
|
|
15
|
+
interface AppProtocolSigningIdentity {
|
|
16
|
+
issuer: string;
|
|
17
|
+
keyId: string;
|
|
18
|
+
privateKeyJwk: AppPrivateSigningJwk;
|
|
19
|
+
}
|
|
20
|
+
declare function readAppProtocolSigningIdentity({ issuer, keyId, privateJwkBase64url }: {
|
|
21
|
+
issuer: string;
|
|
22
|
+
keyId?: string;
|
|
23
|
+
privateJwkBase64url?: string;
|
|
24
|
+
}): AppProtocolSigningIdentity | null;
|
|
25
|
+
declare function deriveAppPublicSigningJwk(identity: AppProtocolSigningIdentity): AppPublicSigningJwk;
|
|
26
|
+
|
|
27
|
+
interface AppJwksResolver {
|
|
28
|
+
resolve(jwksUrl: string, keyId: string): Promise<AppPublicSigningJwk | null>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface AppSignatureReplayClaim {
|
|
32
|
+
audience: string;
|
|
33
|
+
expiresAt: Date;
|
|
34
|
+
issuer: string;
|
|
35
|
+
keyId: string;
|
|
36
|
+
nonce: string;
|
|
37
|
+
}
|
|
38
|
+
interface AppSignatureReplayStore {
|
|
39
|
+
claim(input: AppSignatureReplayClaim): Promise<boolean>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
type RuntimeMethod = "GET" | "POST";
|
|
43
|
+
type RuntimeHeaders = Headers | Record<string, string | string[] | undefined>;
|
|
44
|
+
interface AppRuntimeV1ServerRequest {
|
|
45
|
+
body: string;
|
|
46
|
+
headers: RuntimeHeaders;
|
|
47
|
+
method: RuntimeMethod;
|
|
48
|
+
path: string;
|
|
49
|
+
}
|
|
50
|
+
interface AppRuntimeV1ServerResponse {
|
|
51
|
+
body: string;
|
|
52
|
+
headers: Record<string, string>;
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
interface AppRuntimeV1Handlers {
|
|
56
|
+
completeInstallation(request: AppCompleteInstallationRequest): Promise<AppCompleteInstallationResponse>;
|
|
57
|
+
disconnectInstallation(request: AppDisconnectInstallationRequest): Promise<AppDisconnectInstallationResponse>;
|
|
58
|
+
executeAction(request: AppExecuteActionRequest): Promise<AppExecuteActionResponse>;
|
|
59
|
+
health(): Promise<AppRuntimeHealthResponse>;
|
|
60
|
+
planAction(request: AppPlanActionRequest): Promise<AppPlanActionResponse>;
|
|
61
|
+
prepareInstallation(request: AppPrepareInstallationRequest): Promise<AppPrepareInstallationResponse>;
|
|
62
|
+
}
|
|
63
|
+
interface AppRuntimeV1ServerConfig {
|
|
64
|
+
appId: string;
|
|
65
|
+
appVersion: string;
|
|
66
|
+
handlers: AppRuntimeV1Handlers;
|
|
67
|
+
manifest: AppManifest;
|
|
68
|
+
jwksResolver?: AppJwksResolver;
|
|
69
|
+
nonceFactory?: () => string;
|
|
70
|
+
now?: () => Date;
|
|
71
|
+
platformIssuer: string;
|
|
72
|
+
platformJwksUrl: string;
|
|
73
|
+
replayStore: AppSignatureReplayStore;
|
|
74
|
+
signatureLifetimeMs?: number;
|
|
75
|
+
signingIdentity: AppProtocolSigningIdentity;
|
|
76
|
+
}
|
|
77
|
+
declare enum AppRuntimeV1ServerErrorCode {
|
|
78
|
+
ROUTE_NOT_FOUND = "APP_RUNTIME_V1_ROUTE_NOT_FOUND",
|
|
79
|
+
REQUEST_TOO_LARGE = "APP_RUNTIME_V1_REQUEST_TOO_LARGE",
|
|
80
|
+
REQUEST_JSON_INVALID = "APP_RUNTIME_V1_REQUEST_JSON_INVALID",
|
|
81
|
+
REQUEST_SCHEMA_INVALID = "APP_RUNTIME_V1_REQUEST_SCHEMA_INVALID",
|
|
82
|
+
REQUEST_IDENTITY_INVALID = "APP_RUNTIME_V1_REQUEST_IDENTITY_INVALID",
|
|
83
|
+
REQUEST_SIGNATURE_INVALID = "APP_RUNTIME_V1_REQUEST_SIGNATURE_INVALID"
|
|
84
|
+
}
|
|
85
|
+
declare class AppRuntimeV1ServerError extends Error {
|
|
86
|
+
readonly code: AppRuntimeV1ServerErrorCode;
|
|
87
|
+
readonly statusCode: number;
|
|
88
|
+
constructor({ code, message, statusCode }: {
|
|
89
|
+
code: AppRuntimeV1ServerErrorCode;
|
|
90
|
+
message: string;
|
|
91
|
+
statusCode: number;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
declare class AppRuntimeV1Server {
|
|
95
|
+
private readonly appId;
|
|
96
|
+
private readonly appVersion;
|
|
97
|
+
private readonly handlers;
|
|
98
|
+
private readonly manifest;
|
|
99
|
+
private readonly jwksResolver;
|
|
100
|
+
private readonly nonceFactory;
|
|
101
|
+
private readonly now;
|
|
102
|
+
private readonly platformIssuer;
|
|
103
|
+
private readonly platformJwksUrl;
|
|
104
|
+
private readonly replayStore;
|
|
105
|
+
private readonly signatureLifetimeMs;
|
|
106
|
+
private readonly signingIdentity;
|
|
107
|
+
constructor(config: AppRuntimeV1ServerConfig);
|
|
108
|
+
handle(request: AppRuntimeV1ServerRequest): Promise<AppRuntimeV1ServerResponse>;
|
|
109
|
+
private handleSignedRoute;
|
|
110
|
+
private verifyRequest;
|
|
111
|
+
private invokeAndSign;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare class DevelopmentAppSignatureReplayStore implements AppSignatureReplayStore {
|
|
115
|
+
private readonly claims;
|
|
116
|
+
private readonly now;
|
|
117
|
+
constructor({ now }?: {
|
|
118
|
+
now?: () => number;
|
|
119
|
+
});
|
|
120
|
+
claim(input: AppSignatureReplayClaim): Promise<boolean>;
|
|
121
|
+
clear(): void;
|
|
122
|
+
private removeExpiredClaims;
|
|
123
|
+
}
|
|
124
|
+
declare function createDevelopmentReplayStore(input?: {
|
|
125
|
+
now?: () => number;
|
|
126
|
+
}): DevelopmentAppSignatureReplayStore;
|
|
127
|
+
|
|
128
|
+
interface RemoteAppRuntimeConfig {
|
|
129
|
+
handlers: AppRuntimeV1Handlers;
|
|
130
|
+
jwksResolver?: AppJwksResolver;
|
|
131
|
+
manifest: unknown;
|
|
132
|
+
platformIssuer?: string;
|
|
133
|
+
platformJwksUrl: string;
|
|
134
|
+
replayStore: AppSignatureReplayStore;
|
|
135
|
+
signingIdentity: AppProtocolSigningIdentity;
|
|
136
|
+
}
|
|
137
|
+
declare class RemoteAppRuntime {
|
|
138
|
+
readonly manifest: AppManifest;
|
|
139
|
+
private readonly jwks;
|
|
140
|
+
private readonly jwksPath;
|
|
141
|
+
private readonly server;
|
|
142
|
+
constructor(config: RemoteAppRuntimeConfig);
|
|
143
|
+
getJwks(): AppJwks;
|
|
144
|
+
handle(request: Request): Promise<Response>;
|
|
145
|
+
handleNodeRequest(request: IncomingMessage, response: ServerResponse): Promise<void>;
|
|
146
|
+
}
|
|
147
|
+
declare function createRemoteAppRuntime(config: RemoteAppRuntimeConfig): RemoteAppRuntime;
|
|
148
|
+
declare function readRemoteAppFetchRequestBody(request: Request): Promise<string>;
|
|
149
|
+
|
|
150
|
+
interface AppRuntimeBindings {
|
|
151
|
+
readonly appId: string;
|
|
152
|
+
readonly appVersion: string;
|
|
153
|
+
actionId(key: string): string;
|
|
154
|
+
artifactId(key: string): string;
|
|
155
|
+
capabilityId(key: string): string;
|
|
156
|
+
intentId(key: string): string;
|
|
157
|
+
knowledgeId(key: string): string;
|
|
158
|
+
outcomeId(key: string): string;
|
|
159
|
+
publicActionId(key: string): string;
|
|
160
|
+
resourceId(key: string): string;
|
|
161
|
+
triggerId(key: string): string;
|
|
162
|
+
}
|
|
163
|
+
declare function createAppRuntimeBindings(manifestInput: unknown): AppRuntimeBindings;
|
|
164
|
+
|
|
165
|
+
declare function createAppRuntimeHealthResponse({ manifest: manifestInput, status, checkedAt, message }: {
|
|
166
|
+
manifest: unknown;
|
|
167
|
+
status: AppRuntimeHealthStatus;
|
|
168
|
+
checkedAt?: Date;
|
|
169
|
+
message?: string;
|
|
170
|
+
}): AppRuntimeHealthResponse;
|
|
171
|
+
|
|
172
|
+
interface AppRuntimeKeyMaterial {
|
|
173
|
+
jwks: AppJwks;
|
|
174
|
+
keyId: string;
|
|
175
|
+
privateJwkBase64url: string;
|
|
176
|
+
signingIdentity: AppProtocolSigningIdentity;
|
|
177
|
+
}
|
|
178
|
+
declare function generateAppRuntimeKeyMaterial({ manifest: manifestInput, keyId }: {
|
|
179
|
+
manifest: unknown;
|
|
180
|
+
keyId?: string;
|
|
181
|
+
}): AppRuntimeKeyMaterial;
|
|
182
|
+
declare function readAppRuntimeSigningIdentity({ manifest: manifestInput, keyId, privateJwkBase64url }: {
|
|
183
|
+
manifest: unknown;
|
|
184
|
+
keyId?: string;
|
|
185
|
+
privateJwkBase64url?: string;
|
|
186
|
+
}): AppProtocolSigningIdentity | null;
|
|
187
|
+
|
|
188
|
+
export { type AppJwksResolver, type AppPrivateSigningJwk, type AppProtocolSigningIdentity, type AppRuntimeBindings, type AppRuntimeKeyMaterial, type AppRuntimeV1Handlers, AppRuntimeV1Server, type AppRuntimeV1ServerConfig, AppRuntimeV1ServerError, AppRuntimeV1ServerErrorCode, type AppRuntimeV1ServerRequest, type AppRuntimeV1ServerResponse, type AppSignatureReplayClaim, type AppSignatureReplayStore, DevelopmentAppSignatureReplayStore, RemoteAppRuntime, type RemoteAppRuntimeConfig, createAppRuntimeBindings, createAppRuntimeHealthResponse, createDevelopmentReplayStore, createRemoteAppRuntime, deriveAppPublicSigningJwk, generateAppRuntimeKeyMaterial, readAppProtocolSigningIdentity, readAppRuntimeSigningIdentity, readRemoteAppFetchRequestBody };
|