@substrat-run/vertical-host 0.219.0 → 0.220.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/dist/connect-link.d.ts +42 -1
- package/dist/connect-link.d.ts.map +1 -1
- package/dist/connect-link.js +27 -1
- package/dist/connect-link.js.map +1 -1
- package/dist/connect-url.d.ts +18 -1
- package/dist/connect-url.d.ts.map +1 -1
- package/dist/connect-url.js +15 -1
- package/dist/connect-url.js.map +1 -1
- package/dist/connections.d.ts +65 -4
- package/dist/connections.d.ts.map +1 -1
- package/dist/connections.js +39 -4
- package/dist/connections.js.map +1 -1
- package/dist/connectors.d.ts +87 -1
- package/dist/connectors.d.ts.map +1 -1
- package/dist/connectors.js +121 -3
- package/dist/connectors.js.map +1 -1
- package/dist/docs-renderer.generated.d.ts.map +1 -1
- package/dist/docs-renderer.generated.js +1 -1
- package/dist/docs-renderer.generated.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -21
- package/dist/index.js.map +1 -1
- package/dist/mail-in.d.ts +14 -2
- package/dist/mail-in.d.ts.map +1 -1
- package/dist/mail-in.js +12 -2
- package/dist/mail-in.js.map +1 -1
- package/dist/mcp-images.d.ts +32 -0
- package/dist/mcp-images.d.ts.map +1 -0
- package/dist/mcp-images.js +64 -0
- package/dist/mcp-images.js.map +1 -0
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +24 -3
- package/dist/mcp.js.map +1 -1
- package/dist/worker-door.d.ts +190 -5
- package/dist/worker-door.d.ts.map +1 -1
- package/dist/worker-door.js +196 -16
- package/dist/worker-door.js.map +1 -1
- package/package.json +11 -11
package/dist/connect-link.d.ts
CHANGED
|
@@ -59,6 +59,9 @@ import type { ConnectLinkListRelayResult, ConnectLinkRelayResult, ConnectLinkRev
|
|
|
59
59
|
* return there, carrying `link=<id>` and your `subjectRef`. List and revoke reach only this
|
|
60
60
|
* scope's links: a list omits another scope's id exactly as an unknown one, and a revoke
|
|
61
61
|
* answers both with a `404`.
|
|
62
|
+
*
|
|
63
|
+
* @deprecated Goes with `mintConnectLink`, `listConnectLinks` and `revokeConnectLink` in the next major of
|
|
64
|
+
* `@substrat-run/vertical-host` (#3374).
|
|
62
65
|
*/
|
|
63
66
|
export interface ConnectLinkRelayAccess {
|
|
64
67
|
/** The control plane's origin, injected into the vertical as `CONTROL_PLANE_URL`. */
|
|
@@ -72,6 +75,10 @@ export interface ConnectLinkRelayAccess {
|
|
|
72
75
|
/** `fetch` seam for tests; defaults to the runtime's, bound (see `lint:bound-fetch`). */
|
|
73
76
|
fetchImpl?: typeof fetch;
|
|
74
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated Goes with `mintConnectLink` in the next major of `@substrat-run/vertical-host`
|
|
80
|
+
* (#3374).
|
|
81
|
+
*/
|
|
75
82
|
export interface ConnectLinkRequest extends ConnectLinkRelayAccess {
|
|
76
83
|
/** Provider slug (`fortnox`). One with no platform consent round is refused, naming the paste door. */
|
|
77
84
|
provider: string;
|
|
@@ -84,6 +91,10 @@ export interface ConnectLinkRequest extends ConnectLinkRelayAccess {
|
|
|
84
91
|
/** Seconds the link stays openable. Default 7 days; more than 30 days is refused. */
|
|
85
92
|
ttlSeconds?: number;
|
|
86
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated Goes with `listConnectLinks` in the next major of `@substrat-run/vertical-host`
|
|
96
|
+
* (#3374).
|
|
97
|
+
*/
|
|
87
98
|
export interface ConnectLinkListRequest extends ConnectLinkRelayAccess {
|
|
88
99
|
/** The links to read — ids your mints returned, 1 to 100. One not in this scope is omitted. */
|
|
89
100
|
linkIds: readonly string[];
|
|
@@ -91,10 +102,19 @@ export interface ConnectLinkListRequest extends ConnectLinkRelayAccess {
|
|
|
91
102
|
/** Only the links that can still be opened. Omitted: every named link, newest first. */
|
|
92
103
|
outstanding?: boolean;
|
|
93
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Goes with `revokeConnectLink` in the next major of `@substrat-run/vertical-host`
|
|
107
|
+
* (#3374).
|
|
108
|
+
*/
|
|
94
109
|
export interface ConnectLinkRevokeRequest extends ConnectLinkRelayAccess {
|
|
95
110
|
linkId: string;
|
|
96
111
|
}
|
|
97
|
-
/**
|
|
112
|
+
/**
|
|
113
|
+
* The relay refused, or could not be reached. Carries the status so a caller can map it.
|
|
114
|
+
*
|
|
115
|
+
* @deprecated Goes with `mintConnectLink`, `listConnectLinks` and `revokeConnectLink` in the next major of
|
|
116
|
+
* `@substrat-run/vertical-host` (#3374).
|
|
117
|
+
*/
|
|
98
118
|
export declare class ConnectLinkRequestError extends Error {
|
|
99
119
|
readonly status: number;
|
|
100
120
|
/**
|
|
@@ -115,7 +135,28 @@ export declare class ConnectLinkRequestError extends Error {
|
|
|
115
135
|
*/
|
|
116
136
|
problemCode?: ErrorCode | undefined);
|
|
117
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
140
|
+
* Replaced by a consent round the platform mints and owns (#3374, decision (b)): the vertical
|
|
141
|
+
* writes a request, the platform mints the link and owns the callback, and the person is sent to a
|
|
142
|
+
* page the platform owns. Not built yet. Removed in the next major of `@substrat-run/vertical-
|
|
143
|
+
* host`.
|
|
144
|
+
*/
|
|
118
145
|
export declare function mintConnectLink(request: ConnectLinkRequest): Promise<ConnectLinkRelayResult>;
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
148
|
+
* Replaced by a consent round the platform mints and owns (#3374, decision (b)): the vertical
|
|
149
|
+
* writes a request, the platform mints the link and owns the callback, and the person is sent to a
|
|
150
|
+
* page the platform owns. Not built yet. Removed in the next major of `@substrat-run/vertical-
|
|
151
|
+
* host`.
|
|
152
|
+
*/
|
|
119
153
|
export declare function listConnectLinks(request: ConnectLinkListRequest): Promise<ConnectLinkListRelayResult>;
|
|
154
|
+
/**
|
|
155
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
156
|
+
* Replaced by a consent round the platform mints and owns (#3374, decision (b)): the vertical
|
|
157
|
+
* writes a request, the platform mints the link and owns the callback, and the person is sent to a
|
|
158
|
+
* page the platform owns. Not built yet. Removed in the next major of `@substrat-run/vertical-
|
|
159
|
+
* host`.
|
|
160
|
+
*/
|
|
120
161
|
export declare function revokeConnectLink(request: ConnectLinkRevokeRequest): Promise<ConnectLinkRevokeRelayResult>;
|
|
121
162
|
//# sourceMappingURL=connect-link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-link.d.ts","sourceRoot":"","sources":["../src/connect-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwD,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/G,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,yBAAyB,CAAC;AAEjC
|
|
1
|
+
{"version":3,"file":"connect-link.d.ts","sourceRoot":"","sources":["../src/connect-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwD,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/G,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAM,WAAW,sBAAsB;IACrC,qFAAqF;IACrF,eAAe,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,cAAc,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAC;IAChB,yFAAyF;IACzF,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1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|
|
|
1
1
|
import { PLATFORM_SECRET_HEADER, problemCodeOf, problemDetail } from '@substrat-run/contracts';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The relay refused, or could not be reached. Carries the status so a caller can map it.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Goes with `mintConnectLink`, `listConnectLinks` and `revokeConnectLink` in the next major of
|
|
6
|
+
* `@substrat-run/vertical-host` (#3374).
|
|
7
|
+
*/
|
|
3
8
|
export class ConnectLinkRequestError extends Error {
|
|
4
9
|
status;
|
|
5
10
|
problemCode;
|
|
@@ -35,6 +40,13 @@ async function relay(access, path, body, ok, what) {
|
|
|
35
40
|
}
|
|
36
41
|
return answer;
|
|
37
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
45
|
+
* Replaced by a consent round the platform mints and owns (#3374, decision (b)): the vertical
|
|
46
|
+
* writes a request, the platform mints the link and owns the callback, and the person is sent to a
|
|
47
|
+
* page the platform owns. Not built yet. Removed in the next major of `@substrat-run/vertical-
|
|
48
|
+
* host`.
|
|
49
|
+
*/
|
|
38
50
|
export function mintConnectLink(request) {
|
|
39
51
|
return relay(request, '/internal/connections/connect-links', {
|
|
40
52
|
provider: request.provider,
|
|
@@ -44,6 +56,13 @@ export function mintConnectLink(request) {
|
|
|
44
56
|
...(request.ttlSeconds ? { ttlSeconds: request.ttlSeconds } : {}),
|
|
45
57
|
}, (b) => typeof b.url === 'string' && !!b.link, `mint a ${request.provider} connect link`);
|
|
46
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
61
|
+
* Replaced by a consent round the platform mints and owns (#3374, decision (b)): the vertical
|
|
62
|
+
* writes a request, the platform mints the link and owns the callback, and the person is sent to a
|
|
63
|
+
* page the platform owns. Not built yet. Removed in the next major of `@substrat-run/vertical-
|
|
64
|
+
* host`.
|
|
65
|
+
*/
|
|
47
66
|
export function listConnectLinks(request) {
|
|
48
67
|
return relay(request, '/internal/connections/connect-links/list', {
|
|
49
68
|
linkIds: request.linkIds,
|
|
@@ -51,6 +70,13 @@ export function listConnectLinks(request) {
|
|
|
51
70
|
...(request.outstanding ? { outstanding: true } : {}),
|
|
52
71
|
}, (b) => Array.isArray(b.links), 'list connect links');
|
|
53
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
75
|
+
* Replaced by a consent round the platform mints and owns (#3374, decision (b)): the vertical
|
|
76
|
+
* writes a request, the platform mints the link and owns the callback, and the person is sent to a
|
|
77
|
+
* page the platform owns. Not built yet. Removed in the next major of `@substrat-run/vertical-
|
|
78
|
+
* host`.
|
|
79
|
+
*/
|
|
54
80
|
export function revokeConnectLink(request) {
|
|
55
81
|
return relay(request, '/internal/connections/connect-links/revoke', { linkId: request.linkId }, (b) => !!b.link, `revoke connect link ${request.linkId}`);
|
|
56
82
|
}
|
package/dist/connect-link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-link.js","sourceRoot":"","sources":["../src/connect-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,aAAa,EAAkB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"connect-link.js","sourceRoot":"","sources":["../src/connect-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,aAAa,EAAkB,MAAM,yBAAyB,CAAC;AAwH/G;;;;;GAKG;AACH,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAGrC,MAAM;IAQN,WAAW;IAVtB,YACE,OAAe,EACN,MAAc;IACvB;;;;;;OAMG;IACM,WAAuB;QAEhC,KAAK,CAAC,OAAO,CAAC,CAAC;sBAVN,MAAM;2BAQN,WAAW;QAGpB,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAA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,EAC5C,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,EAC1B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EACf,uBAAuB,OAAO,CAAC,MAAM,EAAE,CACxC,CAAC;AACJ,CAAC"}
|
package/dist/connect-url.d.ts
CHANGED
|
@@ -53,6 +53,9 @@ import type { ConnectUrlRelayResult, ErrorCode } from '@substrat-run/contracts';
|
|
|
53
53
|
* callback — naming someone else's scope does not borrow their vertical, it fails.
|
|
54
54
|
* `returnUrl` is likewise checked against the hostname map: it must be a surface this
|
|
55
55
|
* scope actually answers on, or the call is refused.
|
|
56
|
+
*
|
|
57
|
+
* @deprecated Goes with `requestConnectUrl` in the next major of `@substrat-run/vertical-host`
|
|
58
|
+
* (#3374).
|
|
56
59
|
*/
|
|
57
60
|
export interface ConnectUrlRequest {
|
|
58
61
|
/** The control plane's origin, injected into the vertical as `CONTROL_PLANE_URL`. */
|
|
@@ -84,7 +87,12 @@ export interface ConnectUrlRequest {
|
|
|
84
87
|
/** `fetch` seam for tests; defaults to the runtime's, bound (see `lint:bound-fetch`). */
|
|
85
88
|
fetchImpl?: typeof fetch;
|
|
86
89
|
}
|
|
87
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* The relay refused, or could not be reached. Carries the status so a caller can map it.
|
|
92
|
+
*
|
|
93
|
+
* @deprecated Goes with `requestConnectUrl` in the next major of `@substrat-run/vertical-host`
|
|
94
|
+
* (#3374).
|
|
95
|
+
*/
|
|
88
96
|
export declare class ConnectUrlRequestError extends Error {
|
|
89
97
|
readonly status: number;
|
|
90
98
|
/**
|
|
@@ -105,5 +113,14 @@ export declare class ConnectUrlRequestError extends Error {
|
|
|
105
113
|
*/
|
|
106
114
|
problemCode?: ErrorCode | undefined);
|
|
107
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated K-58 step 6 (#3374): this is an up-call with the shared platform credential, and it
|
|
118
|
+
* goes. Write the request from the operation instead, with `requestConnect(ctx, …)` from
|
|
119
|
+
* `@substrat-run/kernel`, and redirect the browser to `connectRequestUrl(env.CONTROL_PLANE_URL,
|
|
120
|
+
* { tenantId, scopeId, requestId })`: the platform's own page reads the request out of the scope,
|
|
121
|
+
* mints the round and owns the callback, and the principal on the connection is the kernel's stamp
|
|
122
|
+
* rather than a value the harness passes. The route this calls stays accepted until K-58 step 7, so
|
|
123
|
+
* a version built with it keeps working until then; it is removed in vertical-host's next major.
|
|
124
|
+
*/
|
|
108
125
|
export declare function requestConnectUrl(request: ConnectUrlRequest): Promise<ConnectUrlRelayResult>;
|
|
109
126
|
//# sourceMappingURL=connect-url.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-url.d.ts","sourceRoot":"","sources":["../src/connect-url.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEhF
|
|
1
|
+
{"version":3,"file":"connect-url.d.ts","sourceRoot":"","sources":["../src/connect-url.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAM,WAAW,iBAAiB;IAChC,qFAAqF;IACrF,eAAe,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,cAAc,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,uGAAuG;IACvG,QAAQ,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,SAAS,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qGAAqG;IACrG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC3B,yFAAyF;IACzF,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AAED;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;IAG7C,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS;IAVlC,YACE,OAAO,EAAE,MAAM,EACN,MAAM,EAAE,MAAM;IACvB;;;;;;OAMG;IACM,WAAW,CAAC,EAAE,SAAS,YAAA,EAIjC;CACF;AAED;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA6BlG"}
|
package/dist/connect-url.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PLATFORM_SECRET_HEADER, problemCodeOf, problemDetail } from '@substrat-run/contracts';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The relay refused, or could not be reached. Carries the status so a caller can map it.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Goes with `requestConnectUrl` in the next major of `@substrat-run/vertical-host`
|
|
6
|
+
* (#3374).
|
|
7
|
+
*/
|
|
3
8
|
export class ConnectUrlRequestError extends Error {
|
|
4
9
|
status;
|
|
5
10
|
problemCode;
|
|
@@ -18,6 +23,15 @@ export class ConnectUrlRequestError extends Error {
|
|
|
18
23
|
this.name = 'ConnectUrlRequestError';
|
|
19
24
|
}
|
|
20
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated K-58 step 6 (#3374): this is an up-call with the shared platform credential, and it
|
|
28
|
+
* goes. Write the request from the operation instead, with `requestConnect(ctx, …)` from
|
|
29
|
+
* `@substrat-run/kernel`, and redirect the browser to `connectRequestUrl(env.CONTROL_PLANE_URL,
|
|
30
|
+
* { tenantId, scopeId, requestId })`: the platform's own page reads the request out of the scope,
|
|
31
|
+
* mints the round and owns the callback, and the principal on the connection is the kernel's stamp
|
|
32
|
+
* rather than a value the harness passes. The route this calls stays accepted until K-58 step 7, so
|
|
33
|
+
* a version built with it keeps working until then; it is removed in vertical-host's next major.
|
|
34
|
+
*/
|
|
21
35
|
export async function requestConnectUrl(request) {
|
|
22
36
|
const fetchImpl = request.fetchImpl ?? globalThis.fetch.bind(globalThis);
|
|
23
37
|
const base = request.controlPlaneUrl.replace(/\/+$/, '');
|
package/dist/connect-url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-url.js","sourceRoot":"","sources":["../src/connect-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"connect-url.js","sourceRoot":"","sources":["../src/connect-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA4F/F;;;;;GAKG;AACH,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAGpC,MAAM;IAQN,WAAW;IAVtB,YACE,OAAe,EACN,MAAc;IACvB;;;;;;OAMG;IACM,WAAuB;QAEhC,KAAK,CAAC,OAAO,CAAC,CAAC;sBAVN,MAAM;2BAQN,WAAW;QAGpB,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,OAA0B;IAChE,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACzE,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,MA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I,CAAC,IAAI,eAAe,EAAE,EAC9H,GAAG,CAAC,MAAM,EACV,aAAa,CAAC,IAAI,CAAC,CACpB,CAAC;IACJ,CAAC;IACD,OAAO,IAA6B,CAAC;AACvC,CAAC"}
|
package/dist/connections.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ import type { ConnectionBindingsRequest, ConnectionBindingsResult, ConnectionBin
|
|
|
27
27
|
* and the connector validates the options. Bind and unbind, and an `owner: 'scope'` upsert, need a
|
|
28
28
|
* PROVEN caller: call them from the worker, on the request it is serving, never from inside a
|
|
29
29
|
* Durable Object.
|
|
30
|
+
*
|
|
31
|
+
* @deprecated Goes with `upsertConnection`, `bindConnection`, `unbindConnection`, `listBindings`, `syncConnections` and `requestCheckout` in the next major of
|
|
32
|
+
* `@substrat-run/vertical-host` (#3374).
|
|
30
33
|
*/
|
|
31
34
|
export interface ConnectionRelayAccess {
|
|
32
35
|
/** The control plane's origin, injected into the vertical as `CONTROL_PLANE_URL`. */
|
|
@@ -36,13 +39,41 @@ export interface ConnectionRelayAccess {
|
|
|
36
39
|
/** `fetch` seam for tests; defaults to the runtime's, bound (see `lint:bound-fetch`). */
|
|
37
40
|
fetchImpl?: typeof fetch;
|
|
38
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Goes with `upsertConnection` in the next major of `@substrat-run/vertical-host`
|
|
44
|
+
* (#3374).
|
|
45
|
+
*/
|
|
39
46
|
export type UpsertConnectionRequest = ConnectionRelayAccess & z.input<typeof connectionRelayRequest>;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated Goes with `bindConnection` in the next major of `@substrat-run/vertical-host`
|
|
49
|
+
* (#3374).
|
|
50
|
+
*/
|
|
40
51
|
export type BindConnectionRequest = ConnectionRelayAccess & ConnectionBindRequest;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Goes with `unbindConnection` in the next major of `@substrat-run/vertical-host`
|
|
54
|
+
* (#3374).
|
|
55
|
+
*/
|
|
41
56
|
export type UnbindConnectionRequest = ConnectionRelayAccess & ConnectionUnbindRequest;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Goes with `listBindings` in the next major of `@substrat-run/vertical-host` (#3374).
|
|
59
|
+
*/
|
|
42
60
|
export type ListBindingsRequest = ConnectionRelayAccess & ConnectionBindingsRequest;
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated Goes with `syncConnections` in the next major of `@substrat-run/vertical-host`
|
|
63
|
+
* (#3374).
|
|
64
|
+
*/
|
|
43
65
|
export type SyncConnectionsRequest = ConnectionRelayAccess & ConnectionSyncRequest;
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated Goes with `requestCheckout` in the next major of `@substrat-run/vertical-host`
|
|
68
|
+
* (#3374).
|
|
69
|
+
*/
|
|
44
70
|
export type CheckoutRequest = ConnectionRelayAccess & z.input<typeof connectionCheckoutRequest>;
|
|
45
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* The relay refused, or answered something other than its result. Carries the status so a caller can map it.
|
|
73
|
+
*
|
|
74
|
+
* @deprecated Goes with `upsertConnection`, `bindConnection`, `unbindConnection`, `listBindings`, `syncConnections` and `requestCheckout` in the next major of
|
|
75
|
+
* `@substrat-run/vertical-host` (#3374).
|
|
76
|
+
*/
|
|
46
77
|
export declare class ConnectionRequestError extends Error {
|
|
47
78
|
readonly status: number;
|
|
48
79
|
/**
|
|
@@ -63,11 +94,29 @@ export declare class ConnectionRequestError extends Error {
|
|
|
63
94
|
*/
|
|
64
95
|
problemCode?: ErrorCode | undefined);
|
|
65
96
|
}
|
|
66
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Create the connection, or rotate the live one's secret in place. The answer never echoes the secret.
|
|
99
|
+
*
|
|
100
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
101
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
102
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
103
|
+
*/
|
|
67
104
|
export declare function upsertConnection(request: UpsertConnectionRequest): Promise<ConnectionRelayResult>;
|
|
68
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* Bind the scope's own connection to that scope with these options; a rebind keeps options it does not name.
|
|
107
|
+
*
|
|
108
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
109
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
110
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
111
|
+
*/
|
|
69
112
|
export declare function bindConnection(request: BindConnectionRequest): Promise<ConnectionBindResult>;
|
|
70
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* Drop the binding and take its landing key back on this scope; what the scope landed stays. Idempotent.
|
|
115
|
+
*
|
|
116
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
117
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
118
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
119
|
+
*/
|
|
71
120
|
export declare function unbindConnection(request: UnbindConnectionRequest): Promise<ConnectionUnbindResult>;
|
|
72
121
|
/**
|
|
73
122
|
* The scope's own connections bound to it, each with its last successful sweep (`lastSyncedAt`) and
|
|
@@ -80,12 +129,20 @@ export declare function unbindConnection(request: UnbindConnectionRequest): Prom
|
|
|
80
129
|
* up — and for the tenant's connections bound to the scope as well, each marked `owner: 'tenant'`.
|
|
81
130
|
* A sweep that moved past a record it could not land still completes `ok`, so `health` is what
|
|
82
131
|
* tells a stalled binding from a caught-up one.
|
|
132
|
+
*
|
|
133
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
134
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
135
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
83
136
|
*/
|
|
84
137
|
export declare function listBindings(request: ListBindingsRequest): Promise<ConnectionBindingsResult>;
|
|
85
138
|
/**
|
|
86
139
|
* Poll the scope's bindings of `provider` now (#2672), the tenant's connections bound to it as well
|
|
87
140
|
* as its own, and answer what each poll did. A binding polled in the last minute refuses the call
|
|
88
141
|
* with 429; nothing is queued. A provider whose bindings cannot be polled on request answers 501.
|
|
142
|
+
*
|
|
143
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
144
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
145
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
89
146
|
*/
|
|
90
147
|
export declare function syncConnections(request: SyncConnectionsRequest): Promise<ConnectionSyncResult>;
|
|
91
148
|
/**
|
|
@@ -104,6 +161,10 @@ export declare function syncConnections(request: SyncConnectionsRequest): Promis
|
|
|
104
161
|
* `paymentChange`, keyed by `reference`. Asking again for a reference while its checkout is open
|
|
105
162
|
* answers the same page; a reference already paid is refused with 409, and so is a scope with no
|
|
106
163
|
* payment connection bound. A preview or fork is refused with 403: it never charges anyone.
|
|
164
|
+
*
|
|
165
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
166
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
167
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
107
168
|
*/
|
|
108
169
|
export declare function requestCheckout(request: CheckoutRequest): Promise<ConnectionCheckoutResult>;
|
|
109
170
|
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,SAAS,EACT,yBAAyB,EACzB,sBAAsB,EACtB,CAAC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,SAAS;IAVlC,YACE,OAAO,EAAE,MAAM,EACN,MAAM,EAAE,MAAM;IACvB;;;;;;OAMG;IACM,WAAW,CAAC,EAAE,SAAS,YAAA,EAIjC;CACF;AAyBD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAEjG;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAE5F;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAElG;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAE5F;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAE9F;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAE3F"}
|
package/dist/connections.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PLATFORM_SECRET_HEADER, problemCodeOf, problemDetail, connectionBindResult, connectionBindingsResult, connectionCheckoutResult, connectionRelayResult, connectionSyncResult, connectionUnbindResult } from '@substrat-run/contracts';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The relay refused, or answered something other than its result. Carries the status so a caller can map it.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Goes with `upsertConnection`, `bindConnection`, `unbindConnection`, `listBindings`, `syncConnections` and `requestCheckout` in the next major of
|
|
6
|
+
* `@substrat-run/vertical-host` (#3374).
|
|
7
|
+
*/
|
|
3
8
|
export class ConnectionRequestError extends Error {
|
|
4
9
|
status;
|
|
5
10
|
problemCode;
|
|
@@ -31,15 +36,33 @@ async function relay({ controlPlaneUrl, platformSecret, fetchImpl, ...body }, pa
|
|
|
31
36
|
}
|
|
32
37
|
return parsed.data;
|
|
33
38
|
}
|
|
34
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Create the connection, or rotate the live one's secret in place. The answer never echoes the secret.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
43
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
44
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
45
|
+
*/
|
|
35
46
|
export function upsertConnection(request) {
|
|
36
47
|
return relay(request, '/internal/connections/upsert', connectionRelayResult, `store a ${request.provider} connection`);
|
|
37
48
|
}
|
|
38
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Bind the scope's own connection to that scope with these options; a rebind keeps options it does not name.
|
|
51
|
+
*
|
|
52
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
53
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
54
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
55
|
+
*/
|
|
39
56
|
export function bindConnection(request) {
|
|
40
57
|
return relay(request, '/internal/connections/bind', connectionBindResult, `bind connection ${request.connectionId}`);
|
|
41
58
|
}
|
|
42
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Drop the binding and take its landing key back on this scope; what the scope landed stays. Idempotent.
|
|
61
|
+
*
|
|
62
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
63
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
64
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
65
|
+
*/
|
|
43
66
|
export function unbindConnection(request) {
|
|
44
67
|
return relay(request, '/internal/connections/unbind', connectionUnbindResult, `unbind connection ${request.connectionId}`);
|
|
45
68
|
}
|
|
@@ -54,6 +77,10 @@ export function unbindConnection(request) {
|
|
|
54
77
|
* up — and for the tenant's connections bound to the scope as well, each marked `owner: 'tenant'`.
|
|
55
78
|
* A sweep that moved past a record it could not land still completes `ok`, so `health` is what
|
|
56
79
|
* tells a stalled binding from a caught-up one.
|
|
80
|
+
*
|
|
81
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
82
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
83
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
57
84
|
*/
|
|
58
85
|
export function listBindings(request) {
|
|
59
86
|
return relay(request, '/internal/connections/bindings', connectionBindingsResult, 'list connection bindings');
|
|
@@ -62,6 +89,10 @@ export function listBindings(request) {
|
|
|
62
89
|
* Poll the scope's bindings of `provider` now (#2672), the tenant's connections bound to it as well
|
|
63
90
|
* as its own, and answer what each poll did. A binding polled in the last minute refuses the call
|
|
64
91
|
* with 429; nothing is queued. A provider whose bindings cannot be polled on request answers 501.
|
|
92
|
+
*
|
|
93
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
94
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
95
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
65
96
|
*/
|
|
66
97
|
export function syncConnections(request) {
|
|
67
98
|
return relay(request, '/internal/connections/sync', connectionSyncResult, `poll ${request.provider} bindings`);
|
|
@@ -82,6 +113,10 @@ export function syncConnections(request) {
|
|
|
82
113
|
* `paymentChange`, keyed by `reference`. Asking again for a reference while its checkout is open
|
|
83
114
|
* answers the same page; a reference already paid is refused with 409, and so is a scope with no
|
|
84
115
|
* payment connection bound. A preview or fork is refused with 403: it never charges anyone.
|
|
116
|
+
*
|
|
117
|
+
* @deprecated An up-call with the platform credential, which K-58 retires (rollout step 6, #3374).
|
|
118
|
+
* Nothing in this repository calls it, so no transport replaces it (#3374, decision (d)(3)), and it
|
|
119
|
+
* is removed in the next major of `@substrat-run/vertical-host`.
|
|
85
120
|
*/
|
|
86
121
|
export function requestCheckout(request) {
|
|
87
122
|
return relay(request, '/internal/connections/checkout', connectionCheckoutResult, `open a ${request.provider} checkout`);
|
package/dist/connections.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAyF9O;;;;;GAKG;AACH,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAGpC,MAAM;IAQN,WAAW;IAVtB,YACE,OAAe,EACN,MAAc;IACvB;;;;;;OAMG;IACM,WAAuB;QAEhC,KAAK,CAAC,OAAO,CAAC,CAAC;sBAVN,MAAM;2BAQN,WAAW;QAGpB,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF;AAED,KAAK,UAAU,KAAK,CAClB,EAAE,eAAe,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAI,EAAkC,EACvF,IAAY,EACZ,MAAS,EACT,IAAY;IAEZ,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,eA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B,EAAE,qBAAqB,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;AAC7H,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,YAAY,CAAC,OAA4B;IACvD,OAAO,KAAK,CAAC,OAAO,EAAE,gCAAgC,EAAE,wBAAwB,EAAE,0BAA0B,CAAC,CAAC;AAChH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,eAAe,CAAC,OAA+B;IAC7D,OAAO,KAAK,CAAC,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,QAAQ,OAAO,CAAC,QAAQ,WAAW,CAAC,CAAC;AACjH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,eAAe,CAAC,OAAwB;IACtD,OAAO,KAAK,CAAC,OAAO,EAAE,gCAAgC,EAAE,wBAAwB,EAAE,UAAU,OAAO,CAAC,QAAQ,WAAW,CAAC,CAAC;AAC3H,CAAC"}
|
package/dist/connectors.d.ts
CHANGED
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* invokes as the connection principal and nothing else. State writes leave in the response and
|
|
11
11
|
* the platform applies them only when the call succeeded.
|
|
12
12
|
*/
|
|
13
|
+
import { Hono } from 'hono';
|
|
13
14
|
import { connectionProbe, type ConnectorCallRequest, type ConnectorCallResponse, type DomainEvent, type VerticalConnectorDeclaration, type VerticalConnectorField, type z } from '@substrat-run/contracts';
|
|
14
|
-
import { type ConnectionContext, type ConnectorOptions, type FetchLike, type ScopeHost, type ScopedConnectionContext } from '@substrat-run/kernel';
|
|
15
|
+
import { type ConnectionContext, type ConnectionSweepContext, type ConnectionSweepOutput, type ConnectorOptions, type FetchLike, type ScopeHost, type ScopedConnectionContext } from '@substrat-run/kernel';
|
|
15
16
|
import type { VerticalScopeHost } from './index.js';
|
|
16
17
|
type ProbeNullables = 'accountRef' | 'accountLabel' | 'error';
|
|
17
18
|
/** What a probe answers: `{ ok: true }` alone is enough; the three nullables default to null. */
|
|
@@ -40,6 +41,13 @@ export interface ConnectorDefinition {
|
|
|
40
41
|
landed?: number;
|
|
41
42
|
more?: boolean;
|
|
42
43
|
} | void>;
|
|
44
|
+
/**
|
|
45
|
+
* The poll floor for the whole connection in one call (#3376): read the provider once and answer
|
|
46
|
+
* what each bound scope lands; the platform lands it in each scope. Used when the platform sweeps
|
|
47
|
+
* each connection from its own alarm, and `sweep` otherwise, so a connector defining this one
|
|
48
|
+
* defines `sweep` too.
|
|
49
|
+
*/
|
|
50
|
+
sweepConnection?(ctx: ConnectionSweepContext): Promise<ConnectionSweepOutput>;
|
|
43
51
|
/** One routed event. */
|
|
44
52
|
dispatch?(ctx: ScopedConnectionContext, event: DomainEvent): Promise<void>;
|
|
45
53
|
}
|
|
@@ -82,5 +90,83 @@ export interface ConnectorCallDeps {
|
|
|
82
90
|
* is an `ok: false` answer, and only a success carries state writes.
|
|
83
91
|
*/
|
|
84
92
|
export declare function runConnectorCall(request: unknown, deps: ConnectorCallDeps): Promise<ConnectorCallResponse>;
|
|
93
|
+
/** What {@link mountConnectorCalls} serves the two routes with. */
|
|
94
|
+
export interface ConnectorCallsMount<Env> {
|
|
95
|
+
/** Absent: both routes answer 501, as a deployment that mounted no connectors does. */
|
|
96
|
+
connectors: VerticalConnectors | undefined;
|
|
97
|
+
hostFor: (env: Env) => ConnectorCallDeps['host'];
|
|
98
|
+
/**
|
|
99
|
+
* The `fetch` a call's connector is handed. Default `globalFetch`: hosted, the egress worker
|
|
100
|
+
* the router dispatched the call under holds it to the version's declared `outbound`. A local
|
|
101
|
+
* run has no egress worker, so {@link localConnectorCalls} passes one held here instead.
|
|
102
|
+
*/
|
|
103
|
+
fetchFor?: (env: Env) => FetchLike;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The two routes the platform calls a vertical-defined connector through (§6.3): the
|
|
107
|
+
* connection-level roles (the probes and a whole connection's sweep, #3376) on
|
|
108
|
+
* `/internal/connector-probe`, the scoped roles on `/internal/connector-call`, each serving only
|
|
109
|
+
* its own. `mountPlatformSurface` mounts them behind its platform gate; {@link localConnectorCalls}
|
|
110
|
+
* mounts the same routes for a local run, so a call made on a laptop meets the code a hosted one
|
|
111
|
+
* meets.
|
|
112
|
+
*/
|
|
113
|
+
export declare function mountConnectorCalls<Env extends object>(app: Hono<{
|
|
114
|
+
Bindings: Env;
|
|
115
|
+
}>, deps: ConnectorCallsMount<Env>): void;
|
|
116
|
+
/** The header the egress worker marks its own refusal with, so it reads apart from a destination's 403 (#2192). */
|
|
117
|
+
export declare const EGRESS_HEADER = "x-substrat-egress";
|
|
118
|
+
/** The outbound policy a call is dispatched under: the hosts the version declares, and whose they are. */
|
|
119
|
+
export interface OutboundHold {
|
|
120
|
+
/** The version's declared `outbound` (package.json `substrat.outbound`). Empty: every host is refused. */
|
|
121
|
+
hosts: readonly string[];
|
|
122
|
+
/** The vertical's slug, named in the refusal as the egress worker names it. */
|
|
123
|
+
slug: string | null;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* `fetch`, held to a declared outbound surface the way the egress worker holds a dispatched
|
|
127
|
+
* vertical (`apps/vertical-egress`, D-46): a host `matchesOutboundHost` admits is sent; any other
|
|
128
|
+
* is answered, without being sent, with the egress worker's own refusal — a 403 `forbidden`
|
|
129
|
+
* problem marked `x-substrat-egress: refused`, carrying `error`, `host` and `vertical`. The
|
|
130
|
+
* matcher is the one the egress worker enforces with, so allowed means the same thing here.
|
|
131
|
+
*
|
|
132
|
+
* What it does not hold: the platform's own hosts, the relay and peer calls, which the egress
|
|
133
|
+
* worker passes before it reads the policy. A connector calls a provider, so none is reached.
|
|
134
|
+
*/
|
|
135
|
+
export declare function heldToOutbound(fetch: FetchLike, hold: OutboundHold): FetchLike;
|
|
136
|
+
/** The connection doors of a node scope host, as the kernel names them. */
|
|
137
|
+
export type ConnectorDoorHost = Pick<ScopeHost, 'getConnectorScope' | 'getConnectorAttachments'>;
|
|
138
|
+
/**
|
|
139
|
+
* The far end of a connector call on a host that is not a Durable Object (the SQLite host a dev
|
|
140
|
+
* server runs on): the three doors a call reaches back through, over the kernel's connection
|
|
141
|
+
* doors. `getConnectorScope` and `getConnectorAttachments` admit only a scope of the connection's
|
|
142
|
+
* tenant running its vertical, and check every operation and attachment against the
|
|
143
|
+
* `connection:<id>` grants, as the Durable Object's `connectorInvokeLocal` does.
|
|
144
|
+
*/
|
|
145
|
+
export declare function connectorDoorOf(host: ConnectorDoorHost): ConnectorCallDeps['host'];
|
|
146
|
+
/** Where a call goes and the policy it runs under: the fields of the platform's call target a local run reads. */
|
|
147
|
+
export interface LocalConnectorTarget {
|
|
148
|
+
slug: string;
|
|
149
|
+
hosts: readonly string[];
|
|
150
|
+
}
|
|
151
|
+
export interface LocalConnectorCallsOptions {
|
|
152
|
+
connectors: VerticalConnectors;
|
|
153
|
+
/** The doors the call reaches back through: {@link connectorDoorOf} over the dev server's host. */
|
|
154
|
+
host: ConnectorCallDeps['host'];
|
|
155
|
+
/** What an admitted request is sent on. Default `globalFetch`. */
|
|
156
|
+
fetch?: FetchLike;
|
|
157
|
+
}
|
|
158
|
+
/** One call, as the platform's transport makes it: the target, the request, and the HTTP answer. */
|
|
159
|
+
export type LocalConnectorCall = (target: LocalConnectorTarget, request: ConnectorCallRequest) => Promise<{
|
|
160
|
+
status: number;
|
|
161
|
+
body: unknown;
|
|
162
|
+
}>;
|
|
163
|
+
/**
|
|
164
|
+
* The transport a local run calls a vertical's connector with (#3379): the platform's
|
|
165
|
+
* `VerticalConnectorDeps.call`, made without a router. The request is serialised and posted to the
|
|
166
|
+
* routes {@link mountConnectorCalls} mounts — the role picks the path as the router picks it — and
|
|
167
|
+
* the connector's `fetch` is held to the target's declared hosts ({@link heldToOutbound}), as the
|
|
168
|
+
* egress worker the router dispatches under would hold it. The answer is read back off the wire.
|
|
169
|
+
*/
|
|
170
|
+
export declare function localConnectorCalls(options: LocalConnectorCallsOptions): LocalConnectorCall;
|
|
85
171
|
export {};
|
|
86
172
|
//# sourceMappingURL=connectors.d.ts.map
|
package/dist/connectors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../src/connectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAEL,eAAe,
|
|
1
|
+
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../src/connectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAEL,eAAe,EAkBf,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,CAAC,EACP,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAML,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EAErB,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAIpD,KAAK,cAAc,GAAG,YAAY,GAAG,cAAc,GAAG,OAAO,CAAC;AAC9D,iGAAiG;AACjG,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,EAAE,cAAc,CAAC,GACtF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC;AAKjE,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAE7D,2FAA2F;AAC3F,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,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