@mochabug/adapt-sdk 0.1.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/LICENSE +201 -0
- package/README.md +873 -0
- package/dist/api.d.ts +1605 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.spec.d.ts +2 -0
- package/dist/api.spec.d.ts.map +1 -0
- package/dist/cjs/api.cjs +2 -0
- package/dist/cjs/api.cjs.map +7 -0
- package/dist/cjs/frontend.cjs +2 -0
- package/dist/cjs/frontend.cjs.map +7 -0
- package/dist/cjs/mime.cjs +2 -0
- package/dist/cjs/mime.cjs.map +7 -0
- package/dist/cjs/router.cjs +2 -0
- package/dist/cjs/router.cjs.map +7 -0
- package/dist/cjs/types.cjs +2 -0
- package/dist/cjs/types.cjs.map +7 -0
- package/dist/esm/api.mjs +2 -0
- package/dist/esm/api.mjs.map +7 -0
- package/dist/esm/frontend.mjs +2 -0
- package/dist/esm/frontend.mjs.map +7 -0
- package/dist/esm/mime.mjs +2 -0
- package/dist/esm/mime.mjs.map +7 -0
- package/dist/esm/router.mjs +2 -0
- package/dist/esm/router.mjs.map +7 -0
- package/dist/esm/types.mjs +1 -0
- package/dist/esm/types.mjs.map +7 -0
- package/dist/frontend.d.ts +10 -0
- package/dist/frontend.d.ts.map +1 -0
- package/dist/genproto/buf/validate/validate_pb.d.ts +8491 -0
- package/dist/genproto/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/annotations_pb.d.ts +14 -0
- package/dist/genproto/google/api/annotations_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/client_pb.d.ts +1432 -0
- package/dist/genproto/google/api/client_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/http_pb.d.ts +843 -0
- package/dist/genproto/google/api/http_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/launch_stage_pb.d.ts +94 -0
- package/dist/genproto/google/api/launch_stage_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +1006 -0
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +77 -0
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +401 -0
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +69 -0
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +430 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +198 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +161 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +305 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +77 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +120 -0
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts +99 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +347 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +64 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +388 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +805 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +238 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +241 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +190 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +269 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +339 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +2721 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts +872 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts.map +1 -0
- package/dist/grpcweb.d.ts +8 -0
- package/dist/grpcweb.d.ts.map +1 -0
- package/dist/mime.d.ts +11 -0
- package/dist/mime.d.ts.map +1 -0
- package/dist/router.d.ts +503 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.spec.d.ts +2 -0
- package/dist/router.spec.d.ts.map +1 -0
- package/dist/signal-api.spec.d.ts +17 -0
- package/dist/signal-api.spec.d.ts.map +1 -0
- package/dist/types.d.ts +149 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/runtime/v1/store_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,OACo+I,CAAC;AAE5hJ;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IACzE;;;;OAIG;IACH,KAAK,EAAE,UAAU,CAAC;IAElB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,Q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IAEb;;;;OAIG;IACH,YAAY,CAAC,EAAE,oCAAoC,CAAC;CACrD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,mBAAmB,EAAE;IAAC,QAAQ,EAAE,uBAAuB,CAAA;CAAC,CAChD,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM,gCAAgC,GAAG,OAAO,CAAC,gEAAgE,CAAC,GAAG;IACzH;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,kBAAkB,EAAE;QAClB;;;;WAIG;QACH,KAAK,EAAE,SAAS,CAAC;QACjB,IAAI,EAAE,oBAAoB,CAAC;KAC5B,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,cAAc,CAAC;QACtB,IAAI,EAAE,mBAAmB,CAAC;KAC3B,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;IAE3C;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,aAAa,CAAC;IAEnC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IAEvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,EAAE,UAAU,CAAC,gCAAgC,EAAE;IAAC,QAAQ,EAAE,oCAAoC,CAAA;CAAC,CACpF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Interceptor, Transport } from '@connectrpc/connect';
|
|
2
|
+
import { Fetcher } from './types';
|
|
3
|
+
export interface GrpcWebTransportOptions {
|
|
4
|
+
fetcher: Fetcher;
|
|
5
|
+
interceptors?: Interceptor[];
|
|
6
|
+
}
|
|
7
|
+
export declare function createGrpcWebTransport(options: GrpcWebTransportOptions): Transport;
|
|
8
|
+
//# sourceMappingURL=grpcweb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grpcweb.d.ts","sourceRoot":"","sources":["../src/grpcweb.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,WAAW,EAEX,SAAS,EAGV,MAAM,qBAAqB,CAAC;AAmB7B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,SAAS,CAoPX"}
|
package/dist/mime.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves MIME type details for a given file path.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} path - The file path.
|
|
5
|
+
* @returns {{ mime: string, gzip: boolean } | undefined} - Object with MIME type and whether it's compressible or not. Undefined if no match is found.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getMimeType(path: string): {
|
|
8
|
+
mime: string;
|
|
9
|
+
gzip: boolean;
|
|
10
|
+
} | undefined;
|
|
11
|
+
//# sourceMappingURL=mime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mime.d.ts","sourceRoot":"","sources":["../src/mime.ts"],"names":[],"mappings":"AAiCA;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAU7C"}
|
package/dist/router.d.ts
ADDED
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
import { ConfiguratorApi, ExecutorApi, SessionExecutorApi, StopExecutorApi } from './api';
|
|
2
|
+
import { SignalData } from './genproto/mochabugapis/adapt/graph/signal_data_pb';
|
|
3
|
+
import { CronTriggerRequest, ExchangeResultRequest, StartExecutionRequest, StopExecutionRequest } from './genproto/mochabugapis/adapt/runtime/v1/incoming_pb';
|
|
4
|
+
import { ConfiguratorEnvironment, ExecutionContext, ExecutorEnvironment } from './types';
|
|
5
|
+
export interface ExchangeResultWrapper extends ExchangeResultRequest {
|
|
6
|
+
getSignal<T>(key: string): T;
|
|
7
|
+
getSignalBinary(key: string): SignalData;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Takes a sequence of path segments and joins them together into a single path.
|
|
11
|
+
* This function follows Linux-style path semantics, and behaves similarly to the `path.join()` method in Node.js.
|
|
12
|
+
*
|
|
13
|
+
* It can handle relative path components (e.g., '..') and will correctly ascend directories when they are encountered.
|
|
14
|
+
* Note that it will not resolve '..' that ascend beyond the root directory.
|
|
15
|
+
* Leading and trailing slashes on individual path segments are ignored.
|
|
16
|
+
* However, if the original first path starts with a slash, the final result will also start with a slash.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* joinPaths('/foo', 'bar', 'baz/asdf', 'quux', '..'); // Returns: "/foo/bar/baz"
|
|
20
|
+
*
|
|
21
|
+
* @param {...string[]} paths - The path segments to join. Each entry should be a string representing a path segment.
|
|
22
|
+
* These can include both directories and filenames, and can be absolute or relative paths.
|
|
23
|
+
* Each argument can also include multiple path segments separated by slashes.
|
|
24
|
+
* @returns {string} A string representing the joined path. The resulting path is normalized
|
|
25
|
+
* (i.e., '..' and '.' path segments are resolved), and any redundant slashes are removed.
|
|
26
|
+
* If the original first path starts with a slash, the final result will also start with a slash.
|
|
27
|
+
*/
|
|
28
|
+
export declare function joinPaths(...paths: string[]): string;
|
|
29
|
+
/**
|
|
30
|
+
* Represents a middleware function in the routing system.
|
|
31
|
+
*
|
|
32
|
+
* Middleware functions are designed to:
|
|
33
|
+
* - Perform operations on the incoming request.
|
|
34
|
+
* - Modify the execution context with additional data.
|
|
35
|
+
* - Short-circuit the request handling by directly returning a response.
|
|
36
|
+
* They are executed in the order they are added to the router.
|
|
37
|
+
*
|
|
38
|
+
* Common use cases for middleware include:
|
|
39
|
+
* - Logging incoming requests.
|
|
40
|
+
* - Authentication and authorization checks.
|
|
41
|
+
* - Request validation.
|
|
42
|
+
* - Error handling.
|
|
43
|
+
* - Modifying the execution context.
|
|
44
|
+
*
|
|
45
|
+
* @template T
|
|
46
|
+
* The type of the API that this middleware can handle. This can be:
|
|
47
|
+
* - `ConfiguratorApi`: An API tailored for configuration tasks.
|
|
48
|
+
* - `ExecutorApi`: An API tailored for execution tasks.
|
|
49
|
+
*
|
|
50
|
+
* @template C
|
|
51
|
+
* The type of the execution context passed through the middleware during the request's lifecycle.
|
|
52
|
+
* This context can be used to share data or state across different parts of the request processing pipeline.
|
|
53
|
+
*
|
|
54
|
+
* @template R
|
|
55
|
+
* The return type of the middleware. By default, it can be `void` or `Response`, but can be constrained
|
|
56
|
+
* to just `void` if needed.
|
|
57
|
+
*
|
|
58
|
+
* @param req
|
|
59
|
+
* The incoming web request, providing details such as headers, body content, method, URL, etc.
|
|
60
|
+
* Middleware can inspect or modify the request before it reaches the route handler.
|
|
61
|
+
*
|
|
62
|
+
* @param api
|
|
63
|
+
* The API-specific functionalities, which could be an instance of `ConfiguratorApi` or `ExecutorApi`.
|
|
64
|
+
* Middleware can utilize this API for tasks or checks related to the API's capabilities.
|
|
65
|
+
*
|
|
66
|
+
* @param ctx
|
|
67
|
+
* The execution context for the current request. Middleware can read or modify this context to share
|
|
68
|
+
* data with subsequent middleware or route handlers. For instance, an authentication middleware might
|
|
69
|
+
* add a user object to the context after verifying a user's credentials.
|
|
70
|
+
*
|
|
71
|
+
* @param next
|
|
72
|
+
* A function that passes control to the next middleware in the chain. If the current middleware is the
|
|
73
|
+
* last in the chain, calling `next` will pass control to the route handler. Unless returning a response,
|
|
74
|
+
* middleware should call this function to continue the request handling process.
|
|
75
|
+
*
|
|
76
|
+
* @returns
|
|
77
|
+
* A promise that resolves to either `void` or a `Response` object. If the middleware returns `void`, the
|
|
78
|
+
* next middleware or route handler is executed. If it returns a `Response`, the middleware chain is
|
|
79
|
+
* short-circuited, and the response is sent to the client, bypassing subsequent middleware or route handlers.
|
|
80
|
+
*/
|
|
81
|
+
export type Middleware<T extends ConfiguratorApi | ExecutorApi, C extends ExecutionContext = ExecutionContext, R = void | Response> = (req: Request, api: T, ctx: C, next: () => Promise<R>) => Promise<R>;
|
|
82
|
+
/**
|
|
83
|
+
* Represents an HTTP request method.
|
|
84
|
+
*/
|
|
85
|
+
export type RequestMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
86
|
+
/**
|
|
87
|
+
* Represent the method HTTP request options
|
|
88
|
+
*/
|
|
89
|
+
export type RequestMethodOption = RequestMethod | RequestMethod[] | '*';
|
|
90
|
+
/**
|
|
91
|
+
* Represents a set of key-value pairs for parameters.
|
|
92
|
+
*/
|
|
93
|
+
export type Params = Record<string, string>;
|
|
94
|
+
/**
|
|
95
|
+
* Represents the structure of the route information for a request in a server environment.
|
|
96
|
+
* This is similar to the routing structure used in frameworks like Express.js.
|
|
97
|
+
*
|
|
98
|
+
* It provides a comprehensive view of the route which a request is being handled by,
|
|
99
|
+
* encompassing the actual path, URL path parameters, and search (query) parameters.
|
|
100
|
+
*
|
|
101
|
+
* - `path`: Holds the route path string that the server listens on. This defines the endpoint
|
|
102
|
+
* of your API and is used to match incoming requests.
|
|
103
|
+
*
|
|
104
|
+
* - `params`: Represents dynamic parameters within the request path. Useful for routes
|
|
105
|
+
* with path parameters, e.g., `/users/:userId`, where `:userId` is a dynamic segment
|
|
106
|
+
* and its actual value is captured as a parameter.
|
|
107
|
+
*
|
|
108
|
+
* - `searchParams`: Reflects the search (query) parameters from the request's URL.
|
|
109
|
+
* Useful for filtering or altering the server's response based on these parameters.
|
|
110
|
+
*
|
|
111
|
+
* @property path - The path of the route to match incoming requests.
|
|
112
|
+
* @property params - An object representing the path parameters.
|
|
113
|
+
* @property searchParams - An object representing search (query) parameters.
|
|
114
|
+
*/
|
|
115
|
+
export type RouteInfo = {
|
|
116
|
+
path: string;
|
|
117
|
+
params: Params;
|
|
118
|
+
searchParams: Params;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Represents a route handler function for processing web requests.
|
|
122
|
+
*
|
|
123
|
+
* The handler receives the incoming request and the associated route information.
|
|
124
|
+
* It's expected to return a Promise that resolves to the appropriate response.
|
|
125
|
+
*
|
|
126
|
+
* - `req`: Contains detailed information about the incoming request, including headers,
|
|
127
|
+
* body content, method, etc.
|
|
128
|
+
*
|
|
129
|
+
* - `route`: Provides structured information about the matched route, including the path,
|
|
130
|
+
* any dynamic path parameters, and search (query) parameters.
|
|
131
|
+
*
|
|
132
|
+
* @typedef RouteHandler
|
|
133
|
+
* @param req - The incoming web request.
|
|
134
|
+
* @param route - Information about the matched route.
|
|
135
|
+
* @returns A Promise that resolves to the appropriate server response.
|
|
136
|
+
*/
|
|
137
|
+
export type RouteHandler = (req: Request, route: RouteInfo) => Promise<Response>;
|
|
138
|
+
/**
|
|
139
|
+
* Represents a route handler function tailored for APIs of type `ConfiguratorApi`
|
|
140
|
+
* or `ExecutorApi`. This handler processes incoming requests by leveraging specific
|
|
141
|
+
* API functionalities and returns an appropriate response.
|
|
142
|
+
*
|
|
143
|
+
* @template T
|
|
144
|
+
* The type of the API being used in the handler. This can be either `ConfiguratorApi` or `ExecutorApi`.
|
|
145
|
+
* @template C
|
|
146
|
+
* The type of the execution context that provides additional information about the ongoing process or operation.
|
|
147
|
+
*
|
|
148
|
+
* @param req
|
|
149
|
+
* The incoming web request, containing details like headers, body content, and method.
|
|
150
|
+
* @param api
|
|
151
|
+
* The specific API instance, representing either `ConfiguratorApi` or `ExecutorApi` functionalities.
|
|
152
|
+
* @param route
|
|
153
|
+
* Structured information about the matched route, including path, dynamic path parameters, and query parameters.
|
|
154
|
+
* @param ctx
|
|
155
|
+
* The execution context providing additional data or state for the route handler.
|
|
156
|
+
*
|
|
157
|
+
* @returns {Promise<Response>}
|
|
158
|
+
* A Promise that resolves to the appropriate server response. Errors during processing should be caught and
|
|
159
|
+
* reflected in the resulting `Response`.
|
|
160
|
+
*/
|
|
161
|
+
export type ApiRouteHandler<T extends ConfiguratorApi | ExecutorApi, C extends ExecutionContext = ExecutionContext> = (req: Request, api: T, route: RouteInfo, ctx: C) => Promise<Response>;
|
|
162
|
+
/**
|
|
163
|
+
* Represents a route handler function designed for APIs of type `StopExecutorApi`
|
|
164
|
+
* or `SessionExecutorApi`. This handler processes incoming requests using specific
|
|
165
|
+
* API functionalities.
|
|
166
|
+
*
|
|
167
|
+
* @template T
|
|
168
|
+
* The type of the API being used in the handler, either `StopExecutorApi` or `SessionExecutorApi`.
|
|
169
|
+
* @template C
|
|
170
|
+
* The type of the execution context providing additional information about the ongoing process or operation.
|
|
171
|
+
*
|
|
172
|
+
* @param req
|
|
173
|
+
* The incoming web request.
|
|
174
|
+
* @param api
|
|
175
|
+
* The specific API instance, representing functionalities of either `StopExecutorApi` or `SessionExecutorApi`.
|
|
176
|
+
* @param ctx
|
|
177
|
+
* The execution context providing additional data or state for the route handler.
|
|
178
|
+
*
|
|
179
|
+
* @returns {Promise<void>}
|
|
180
|
+
* A Promise that resolves once the handler has processed the request. Errors should be caught and handled appropriately.
|
|
181
|
+
*/
|
|
182
|
+
export type InternalRouteHandler<R extends StartExecutionRequest | StopExecutionRequest | CronTriggerRequest, T extends StopExecutorApi | SessionExecutorApi, C extends ExecutionContext = ExecutionContext> = (req: R, api: T, ctx: C) => Promise<void>;
|
|
183
|
+
/**
|
|
184
|
+
* Represents a route handler function tailored for the `SessionExecutorApi`. This handler
|
|
185
|
+
* processes incoming requests using the functionalities of `SessionExecutorApi` and responds
|
|
186
|
+
* based on the specific exchange that triggered the handler.
|
|
187
|
+
*
|
|
188
|
+
* @template T
|
|
189
|
+
* The type of the API being used in the handler, specifically `SessionExecutorApi`.
|
|
190
|
+
* @template C
|
|
191
|
+
* The type of the execution context providing additional information about the ongoing process or operation.
|
|
192
|
+
*
|
|
193
|
+
* @param req
|
|
194
|
+
* The incoming web request.
|
|
195
|
+
* @param api
|
|
196
|
+
* The specific API instance, representing `SessionExecutorApi` functionalities.
|
|
197
|
+
* @param name
|
|
198
|
+
* The name of the exchange that triggered the handler.
|
|
199
|
+
* @param ctx
|
|
200
|
+
* The execution context providing additional data or state for the route handler.
|
|
201
|
+
*
|
|
202
|
+
* @returns
|
|
203
|
+
* A Promise that resolves once the handler has processed the request. Errors should be caught and handled appropriately.
|
|
204
|
+
*/
|
|
205
|
+
export type ExchangeRouteHandler<R extends ExchangeResultWrapper, T extends SessionExecutorApi, C extends ExecutionContext = ExecutionContext> = (req: R, api: T, name: string, ctx: C) => Promise<void>;
|
|
206
|
+
/**
|
|
207
|
+
* Represents an individual route, providing functionalities to match HTTP methods
|
|
208
|
+
* and URL paths against pre-defined templates.
|
|
209
|
+
*/
|
|
210
|
+
export declare class Route {
|
|
211
|
+
private method;
|
|
212
|
+
private matcher;
|
|
213
|
+
/**
|
|
214
|
+
* Constructs a new `Route` instance.
|
|
215
|
+
*
|
|
216
|
+
* @param {RequestMethodOption} method - The HTTP method or methods the route responds to.
|
|
217
|
+
* @param {string} template - The URL path template, which may include parameters, that the route matches against.
|
|
218
|
+
*
|
|
219
|
+
* @throws {Error} Throws an error if the provided template is invalid.
|
|
220
|
+
*/
|
|
221
|
+
constructor(method: RequestMethodOption, template: string);
|
|
222
|
+
/**
|
|
223
|
+
* Determines if the provided HTTP method and URL path match the route.
|
|
224
|
+
*
|
|
225
|
+
* If a match is found, it returns the dynamic parameters extracted from the URL.
|
|
226
|
+
* If no match is found, it returns null.
|
|
227
|
+
*
|
|
228
|
+
* @param {RequestMethod} method - The HTTP method to check against the route's method.
|
|
229
|
+
* @param {string} path - The URL path to check against the route's template.
|
|
230
|
+
*
|
|
231
|
+
* @return {Params | null} Returns an object with matching parameters if a match is found, otherwise null.
|
|
232
|
+
*/
|
|
233
|
+
match(method: RequestMethod, path: string): Params | null;
|
|
234
|
+
}
|
|
235
|
+
interface RouterEntrypoint<T extends ConfiguratorEnvironment | ExecutorEnvironment, C extends ExecutionContext = ExecutionContext> {
|
|
236
|
+
entrypoint: (req: Request, env: T, ctx: C) => Promise<Response>;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* `BaseRouter` serves as an abstract foundation for building routers that can process
|
|
240
|
+
* web requests by matching them to predefined routes and subsequently delegating the
|
|
241
|
+
* request handling to the appropriate handler.
|
|
242
|
+
*
|
|
243
|
+
* This base class provides core functionalities such as:
|
|
244
|
+
* - Storing a collection of routes and their associated handlers.
|
|
245
|
+
* - Mechanisms to add new routes.
|
|
246
|
+
* - Logic to match incoming requests to the correct route.
|
|
247
|
+
* - Delegating the request to the matched route's handler.
|
|
248
|
+
* - Registering and executing middleware functions.
|
|
249
|
+
*
|
|
250
|
+
* Derived classes can extend this base class to introduce more specific behaviors or
|
|
251
|
+
* to support additional types of route handlers.
|
|
252
|
+
*
|
|
253
|
+
* @template T
|
|
254
|
+
* Represents the type of route handler that this router can handle. This can be:
|
|
255
|
+
* - A basic route handler (`RouteHandler`), which processes the request and returns a response.
|
|
256
|
+
* - An API-specific route handler (`ApiRouteHandler`), tailored for specific API types like
|
|
257
|
+
* `ConfiguratorApi` or `ExecutorApi`.
|
|
258
|
+
*
|
|
259
|
+
* @template C extends ExecutionContext
|
|
260
|
+
* Represents the type of the execution context that will be passed through the middleware
|
|
261
|
+
* and route handlers during the request's lifecycle. This context can be used to share
|
|
262
|
+
* data or state across different parts of the request processing pipeline.
|
|
263
|
+
* By default, it uses the base `ExecutionContext`, but users can extend this to add
|
|
264
|
+
* custom properties that are relevant to their application's logic.
|
|
265
|
+
*
|
|
266
|
+
* @template A
|
|
267
|
+
* Represents the type of the API that the middleware and route handlers can handle. This ensures
|
|
268
|
+
* that the middleware's API type matches the route handler's API type. Depending on the context,
|
|
269
|
+
* this could be an instance of `ConfiguratorApi` or `ExecutorApi`.
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
* // Creating a new router that handles basic route handlers and uses a custom execution context.
|
|
273
|
+
* class MyRouter extends BaseRouter<RouteHandler, MyExecutionContext> { ... }
|
|
274
|
+
*
|
|
275
|
+
* // Creating a new router that handles API-specific route handlers for `ConfiguratorApi`.
|
|
276
|
+
* class ConfiguratorRouter extends BaseRouter<ApiRouteHandler<ConfiguratorApi>, MyExecutionContext> { ... }
|
|
277
|
+
*/
|
|
278
|
+
declare abstract class BaseRouter<T extends RouteHandler | ApiRouteHandler<any, C>, C extends ExecutionContext = ExecutionContext, A extends ConfiguratorApi | ExecutorApi = T extends ApiRouteHandler<infer U, C> ? U : never> {
|
|
279
|
+
protected routes: {
|
|
280
|
+
route: Route;
|
|
281
|
+
handler: T;
|
|
282
|
+
}[];
|
|
283
|
+
protected middlewares: Middleware<A, C, Response>[];
|
|
284
|
+
constructor();
|
|
285
|
+
/**
|
|
286
|
+
* Registers a middleware function to log details of incoming requests.
|
|
287
|
+
*
|
|
288
|
+
* This middleware captures and logs essential details about the incoming request,
|
|
289
|
+
* including the URL, time of the request, and certain headers that provide information
|
|
290
|
+
* about the request's origin and protocol. The logged headers include `X-Forwarded-Host`,
|
|
291
|
+
* `X-Forwarded-Proto`, and `X-Forwarded-For`, which are commonly used in scenarios where
|
|
292
|
+
* the application is behind a proxy or load balancer.
|
|
293
|
+
*
|
|
294
|
+
* The log is structured for easy reading, with separators to distinguish between individual
|
|
295
|
+
* log entries. This middleware is particularly useful for monitoring and debugging purposes.
|
|
296
|
+
*
|
|
297
|
+
* @returns
|
|
298
|
+
* Returns the current router instance, allowing for method chaining.
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* const router = new MyRouter();
|
|
302
|
+
*
|
|
303
|
+
* // Add request logging middleware to the router
|
|
304
|
+
* router.useRequestLogging();
|
|
305
|
+
*/
|
|
306
|
+
useRequestLogging(): this;
|
|
307
|
+
useErrorHandling(handler: (e: unknown) => Promise<Response>): this;
|
|
308
|
+
/**
|
|
309
|
+
* Registers a middleware function to handle Bearer token authorization for specific paths.
|
|
310
|
+
*
|
|
311
|
+
* This middleware checks the incoming request's `Authorization` header for a Bearer token.
|
|
312
|
+
* If the token is present, it attempts to authorize the token using the provided API.
|
|
313
|
+
* If the token is invalid or missing, the middleware returns a 401 Unauthorized response.
|
|
314
|
+
*
|
|
315
|
+
* The middleware can be configured to protect specific paths (those that require authorization)
|
|
316
|
+
* and to exclude certain paths (those that should skip authorization).
|
|
317
|
+
*
|
|
318
|
+
* @param protectedPaths
|
|
319
|
+
* An optional array of path prefixes that should be protected by Bearer token authorization.
|
|
320
|
+
* If a request's path starts with any of the prefixes in this array, it will be subject to
|
|
321
|
+
* authorization checks. If this parameter is omitted or empty, all paths will be protected by default.
|
|
322
|
+
*
|
|
323
|
+
* @param unprotectedPaths
|
|
324
|
+
* An optional array of path prefixes that should be excluded from Bearer token authorization.
|
|
325
|
+
* If a request's path starts with any of the prefixes in this array, it will skip the authorization checks.
|
|
326
|
+
*
|
|
327
|
+
* @returns
|
|
328
|
+
* Returns the current router instance, allowing for method chaining.
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* const router = new MyRouter();
|
|
332
|
+
*
|
|
333
|
+
* // Protect all paths under '/api' and exclude paths under '/public'
|
|
334
|
+
* router.useBearerAuthorization(['/api'], ['/public']);
|
|
335
|
+
*
|
|
336
|
+
* // Protect all paths under '/api' without any exclusions
|
|
337
|
+
* router.useBearerAuthorization(['/api']);
|
|
338
|
+
*
|
|
339
|
+
* // Protect all paths by default, excluding paths under '/public'
|
|
340
|
+
* router.useBearerAuthorization([], ['/public']);
|
|
341
|
+
*/
|
|
342
|
+
useBearerAuthorization(protectedPaths?: string[], unprotectedPaths?: string[]): this;
|
|
343
|
+
/**
|
|
344
|
+
* Registers a middleware function to be executed before reaching the route handlers.
|
|
345
|
+
*
|
|
346
|
+
* Middleware functions are designed to perform operations on the incoming request,
|
|
347
|
+
* potentially modify the execution context, or even short-circuit the request handling
|
|
348
|
+
* by directly returning a response. They are executed in the order they are added to the router.
|
|
349
|
+
*
|
|
350
|
+
* This method allows for the chaining of middleware additions, enabling a fluent API style.
|
|
351
|
+
*
|
|
352
|
+
* @param middleware
|
|
353
|
+
* The middleware function to be added. This function will have access to the request,
|
|
354
|
+
* the execution context, and a `next` function. It can either modify the request or context
|
|
355
|
+
* and call `next` to continue the middleware chain, or return a `Response` to short-circuit
|
|
356
|
+
* the request handling.
|
|
357
|
+
*
|
|
358
|
+
* @returns
|
|
359
|
+
* Returns the current router instance, allowing for method chaining.
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* // Creating a new router instance
|
|
363
|
+
* const router = new MyRouter();
|
|
364
|
+
*
|
|
365
|
+
* // Using middleware for Bearer token authentication
|
|
366
|
+
* router.use(async (req, ctx, next) => {
|
|
367
|
+
* const authHeader = req.headers['authorization'];
|
|
368
|
+
* if (authHeader && authHeader.startsWith('Bearer ')) {
|
|
369
|
+
* const token = authHeader.split(' ')[1];
|
|
370
|
+
* // Validate the token and set user in context (pseudo-code)
|
|
371
|
+
* ctx.user = await validateToken(token);
|
|
372
|
+
* await next();
|
|
373
|
+
* } else {
|
|
374
|
+
* return new Response('Unauthorized', { status: 401 });
|
|
375
|
+
* }
|
|
376
|
+
* });
|
|
377
|
+
*
|
|
378
|
+
* // Using middleware to check for a specific query parameter
|
|
379
|
+
* router.use((req, ctx, next) => {
|
|
380
|
+
* if (req.searchParams.has('myParam')) {
|
|
381
|
+
* await next();
|
|
382
|
+
* } else {
|
|
383
|
+
* return new Response('Bad Request', { status: 400 });
|
|
384
|
+
* }
|
|
385
|
+
* });
|
|
386
|
+
*
|
|
387
|
+
* // Using middleware to check for a specific cookie
|
|
388
|
+
* router.use((req, ctx, next) => {
|
|
389
|
+
* const cookies = parseCookies(req.headers.cookie); // Assuming a function to parse cookies
|
|
390
|
+
* if (cookies['myCookie']) {
|
|
391
|
+
* ctx.myCookieValue = cookies['myCookie'];
|
|
392
|
+
* await next();
|
|
393
|
+
* } else {
|
|
394
|
+
* return new Response('Cookie not found', { status: 400 });
|
|
395
|
+
* }
|
|
396
|
+
* });
|
|
397
|
+
*/
|
|
398
|
+
use(middleware: Middleware<A, C, Response>): this;
|
|
399
|
+
/**
|
|
400
|
+
* Adds a new route to the router.
|
|
401
|
+
*
|
|
402
|
+
* @param method - The HTTP method(s) for the route.
|
|
403
|
+
* @param template - The URL template for the route.
|
|
404
|
+
* @param handler - The handler that should be invoked when the route is matched.
|
|
405
|
+
* @returns - Returns the router instance for chaining.
|
|
406
|
+
*/
|
|
407
|
+
add(method: RequestMethodOption, template: string, handler: T): this;
|
|
408
|
+
/**
|
|
409
|
+
* Matches an incoming request to a route and invokes the appropriate handler.
|
|
410
|
+
*
|
|
411
|
+
* @param req - The incoming request.
|
|
412
|
+
* @param handlerCallback - The callback function that
|
|
413
|
+
* handles the request once a matching route is found.
|
|
414
|
+
* @returns - Returns the response from the handler or appropriate error response.
|
|
415
|
+
*/
|
|
416
|
+
protected routeRequest(req: Request, handlerCallback: (handler: T, routeInfo: RouteInfo) => Promise<Response>): Promise<Response>;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Router specialized in handling routes for the `ExecutorApi`.
|
|
420
|
+
*/
|
|
421
|
+
export declare class ExternalExecutorRouter<C extends ExecutionContext = ExecutionContext> extends BaseRouter<ApiRouteHandler<ExecutorApi, C>, C> implements RouterEntrypoint<ExecutorEnvironment, C> {
|
|
422
|
+
constructor();
|
|
423
|
+
entrypoint(req: Request, env: ExecutorEnvironment, ctx: C): Promise<Response>;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* `InternalExecutorRouter` is a specialized router designed to handle routes specifically for the `SessionExecutorApi`.
|
|
427
|
+
*
|
|
428
|
+
* This router provides functionalities to:
|
|
429
|
+
* - Register routes with associated handlers.
|
|
430
|
+
* - Register exchange routes with associated handlers.
|
|
431
|
+
* - Add middleware functions that can process and potentially modify incoming requests before they reach the route handlers.
|
|
432
|
+
*
|
|
433
|
+
* @template C
|
|
434
|
+
* Represents the type of the execution context that will be passed through the middleware and route handlers during the request's lifecycle.
|
|
435
|
+
* This context can be used to share data or state across different parts of the request processing pipeline.
|
|
436
|
+
* By default, it uses the base `ExecutionContext`, but users can extend this to add custom properties that are relevant to their application's logic.
|
|
437
|
+
*/
|
|
438
|
+
export declare class InternalExecutorRouter<C extends ExecutionContext = ExecutionContext> implements RouterEntrypoint<ExecutorEnvironment, C> {
|
|
439
|
+
private startRoute?;
|
|
440
|
+
private stopRoute?;
|
|
441
|
+
private exchangeRoutes;
|
|
442
|
+
protected cronRoute?: {
|
|
443
|
+
route: Route;
|
|
444
|
+
handler: InternalRouteHandler<CronTriggerRequest, any, C>;
|
|
445
|
+
};
|
|
446
|
+
/**
|
|
447
|
+
* Creates a new instance of InternalExecutorRouter.
|
|
448
|
+
*/
|
|
449
|
+
constructor();
|
|
450
|
+
entrypoint(req: Request, env: ExecutorEnvironment, ctx: C): Promise<Response>;
|
|
451
|
+
/**
|
|
452
|
+
* Registers a start handler for the vertex start endpoint
|
|
453
|
+
*
|
|
454
|
+
* @public
|
|
455
|
+
* @param handle - The route handler for the start event.
|
|
456
|
+
* @returns - Returns the instance of the router for method chaining.
|
|
457
|
+
*/
|
|
458
|
+
onStart(handle: InternalRouteHandler<StartExecutionRequest, SessionExecutorApi, C>): this;
|
|
459
|
+
/**
|
|
460
|
+
* Registers a stop handler in case the vertex execution is stopped. Typically used for triggers and
|
|
461
|
+
* vertices that requires cleanup
|
|
462
|
+
*
|
|
463
|
+
* @public
|
|
464
|
+
* @param handle - The route handler for the stop event.
|
|
465
|
+
* @returns - Returns the instance of the router for method chaining.
|
|
466
|
+
*/
|
|
467
|
+
onStop(handle: InternalRouteHandler<StopExecutionRequest, StopExecutorApi, C>): this;
|
|
468
|
+
/**
|
|
469
|
+
* Registers a stream handler for a stream callback.
|
|
470
|
+
*
|
|
471
|
+
* @public
|
|
472
|
+
* @param handle - The route handler for the stream event.
|
|
473
|
+
* @returns - Returns the instance of the router for method chaining.
|
|
474
|
+
*/
|
|
475
|
+
onExchange(handle: ExchangeRouteHandler<ExchangeResultWrapper, SessionExecutorApi, C>): this;
|
|
476
|
+
}
|
|
477
|
+
export declare class CronExecutorRouter<C extends ExecutionContext = ExecutionContext> extends InternalExecutorRouter<C> {
|
|
478
|
+
constructor();
|
|
479
|
+
/**
|
|
480
|
+
* Registers a cron handler for the cron events.
|
|
481
|
+
*
|
|
482
|
+
* @public
|
|
483
|
+
* @param handle - The route handler for the stop event.
|
|
484
|
+
* @returns - Returns the instance of the router for method chaining.
|
|
485
|
+
*/
|
|
486
|
+
onCron(handle: InternalRouteHandler<CronTriggerRequest, SessionExecutorApi, C>): this;
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Router specialized in handling routes for the `ConfiguratorApi`.
|
|
490
|
+
*/
|
|
491
|
+
export declare class ExternalConfiguratorRouter<C extends ExecutionContext = ExecutionContext> extends BaseRouter<ApiRouteHandler<ConfiguratorApi, C>, C> implements RouterEntrypoint<ConfiguratorEnvironment, C> {
|
|
492
|
+
constructor();
|
|
493
|
+
entrypoint(req: Request, env: ConfiguratorEnvironment, ctx: C): Promise<Response>;
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Router specialized in handling routes for the `ConfiguratorApi`.
|
|
497
|
+
*/
|
|
498
|
+
export declare class InternalConfiguratorRouter implements RouterEntrypoint<ConfiguratorEnvironment, ExecutionContext> {
|
|
499
|
+
constructor();
|
|
500
|
+
entrypoint(_req: Request, _env: ConfiguratorEnvironment, _ctx: ExecutionContext): Promise<Response>;
|
|
501
|
+
}
|
|
502
|
+
export {};
|
|
503
|
+
//# sourceMappingURL=router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceR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CAAC;;IAIzD,UAAU,CACrB,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,uBAAuB,EAC7B,IAAI,EAAE,gBAAgB,GACrB,OAAO,CAAC,QAAQ,CAAC;CAGrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.spec.d.ts","sourceRoot":"","sources":["../src/router.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025 Mochabug Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=signal-api.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal-api.spec.d.ts","sourceRoot":"","sources":["../src/signal-api.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|