@dxos/functions 0.8.4-main.1da679c → 0.8.4-main.21d9917
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/lib/browser/index.mjs +1022 -1123
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +1022 -1123
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/errors.d.ts +44 -60
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/{examples → example}/fib.d.ts +1 -1
- package/dist/types/src/example/fib.d.ts.map +1 -0
- package/dist/types/src/example/forex-effect.d.ts +3 -0
- package/dist/types/src/example/forex-effect.d.ts.map +1 -0
- package/dist/types/src/example/index.d.ts +12 -0
- package/dist/types/src/example/index.d.ts.map +1 -0
- package/dist/types/src/{examples → example}/reply.d.ts +1 -1
- package/dist/types/src/example/reply.d.ts.map +1 -0
- package/dist/types/src/{examples → example}/sleep.d.ts +1 -1
- package/dist/types/src/example/sleep.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -8
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operation-compatibility.test.d.ts +2 -0
- package/dist/types/src/operation-compatibility.test.d.ts.map +1 -0
- package/dist/types/src/protocol/functions-ai-http-client.d.ts +12 -0
- package/dist/types/src/protocol/functions-ai-http-client.d.ts.map +1 -0
- package/dist/types/src/protocol/index.d.ts +2 -0
- package/dist/types/src/protocol/index.d.ts.map +1 -0
- package/dist/types/src/protocol/protocol.d.ts +7 -0
- package/dist/types/src/protocol/protocol.d.ts.map +1 -0
- package/dist/types/src/protocol/protocol.test.d.ts +2 -0
- package/dist/types/src/protocol/protocol.test.d.ts.map +1 -0
- package/dist/types/src/sdk.d.ts +114 -0
- package/dist/types/src/sdk.d.ts.map +1 -0
- package/dist/types/src/services/credentials.d.ts +12 -6
- package/dist/types/src/services/credentials.d.ts.map +1 -1
- package/dist/types/src/services/event-logger.d.ts +37 -28
- package/dist/types/src/services/event-logger.d.ts.map +1 -1
- package/dist/types/src/services/function-invocation-service.d.ts +16 -0
- package/dist/types/src/services/function-invocation-service.d.ts.map +1 -0
- package/dist/types/src/services/index.d.ts +5 -6
- package/dist/types/src/services/index.d.ts.map +1 -1
- package/dist/types/src/services/queues.d.ts +7 -5
- package/dist/types/src/services/queues.d.ts.map +1 -1
- package/dist/types/src/services/tracing.d.ts +45 -14
- package/dist/types/src/services/tracing.d.ts.map +1 -1
- package/dist/types/src/types/Function.d.ts +52 -0
- package/dist/types/src/types/Function.d.ts.map +1 -0
- package/dist/types/src/types/Script.d.ts +21 -0
- package/dist/types/src/types/Script.d.ts.map +1 -0
- package/dist/types/src/types/Trigger.d.ts +121 -0
- package/dist/types/src/types/Trigger.d.ts.map +1 -0
- package/dist/types/src/types/TriggerEvent.d.ts +74 -0
- package/dist/types/src/types/TriggerEvent.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +6 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/types/url.d.ts +13 -0
- package/dist/types/src/types/url.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -70
- package/src/errors.ts +4 -4
- package/src/{examples → example}/fib.ts +5 -3
- package/src/example/forex-effect.ts +40 -0
- package/src/example/index.ts +13 -0
- package/src/{examples → example}/reply.ts +6 -3
- package/src/{examples → example}/sleep.ts +5 -3
- package/src/index.ts +4 -8
- package/src/operation-compatibility.test.ts +185 -0
- package/src/protocol/functions-ai-http-client.ts +67 -0
- package/src/{executor → protocol}/index.ts +1 -1
- package/src/protocol/protocol.test.ts +59 -0
- package/src/protocol/protocol.ts +262 -0
- package/src/sdk.ts +289 -0
- package/src/services/credentials.ts +41 -19
- package/src/services/event-logger.ts +14 -5
- package/src/services/function-invocation-service.ts +37 -0
- package/src/services/index.ts +5 -6
- package/src/services/queues.ts +8 -8
- package/src/services/tracing.ts +84 -57
- package/src/types/Function.ts +82 -0
- package/src/types/Script.ts +34 -0
- package/src/types/Trigger.ts +143 -0
- package/src/types/TriggerEvent.ts +68 -0
- package/src/types/index.ts +9 -0
- package/src/types/url.ts +32 -0
- package/dist/lib/browser/bundler/index.mjs +0 -265
- package/dist/lib/browser/bundler/index.mjs.map +0 -7
- package/dist/lib/browser/chunk-D2XO7XXY.mjs +0 -611
- package/dist/lib/browser/chunk-D2XO7XXY.mjs.map +0 -7
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +0 -10
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +0 -7
- package/dist/lib/browser/edge/index.mjs +0 -83
- package/dist/lib/browser/edge/index.mjs.map +0 -7
- package/dist/lib/browser/testing/index.mjs +0 -129
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/bundler/index.mjs +0 -266
- package/dist/lib/node-esm/bundler/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Z4CJ62WS.mjs +0 -613
- package/dist/lib/node-esm/chunk-Z4CJ62WS.mjs.map +0 -7
- package/dist/lib/node-esm/edge/index.mjs +0 -84
- package/dist/lib/node-esm/edge/index.mjs.map +0 -7
- package/dist/lib/node-esm/testing/index.mjs +0 -130
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/types/src/bundler/bundler.d.ts +0 -49
- package/dist/types/src/bundler/bundler.d.ts.map +0 -1
- package/dist/types/src/bundler/bundler.test.d.ts +0 -2
- package/dist/types/src/bundler/bundler.test.d.ts.map +0 -1
- package/dist/types/src/bundler/index.d.ts +0 -2
- package/dist/types/src/bundler/index.d.ts.map +0 -1
- package/dist/types/src/edge/functions.d.ts +0 -17
- package/dist/types/src/edge/functions.d.ts.map +0 -1
- package/dist/types/src/edge/index.d.ts +0 -2
- package/dist/types/src/edge/index.d.ts.map +0 -1
- package/dist/types/src/examples/fib.d.ts.map +0 -1
- package/dist/types/src/examples/index.d.ts +0 -4
- package/dist/types/src/examples/index.d.ts.map +0 -1
- package/dist/types/src/examples/reply.d.ts.map +0 -1
- package/dist/types/src/examples/sleep.d.ts.map +0 -1
- package/dist/types/src/executor/executor.d.ts +0 -11
- package/dist/types/src/executor/executor.d.ts.map +0 -1
- package/dist/types/src/executor/index.d.ts +0 -2
- package/dist/types/src/executor/index.d.ts.map +0 -1
- package/dist/types/src/handler.d.ts +0 -94
- package/dist/types/src/handler.d.ts.map +0 -1
- package/dist/types/src/schema.d.ts +0 -43
- package/dist/types/src/schema.d.ts.map +0 -1
- package/dist/types/src/services/database.d.ts +0 -63
- package/dist/types/src/services/database.d.ts.map +0 -1
- package/dist/types/src/services/local-function-execution.d.ts +0 -25
- package/dist/types/src/services/local-function-execution.d.ts.map +0 -1
- package/dist/types/src/services/remote-function-execution-service.d.ts +0 -15
- package/dist/types/src/services/remote-function-execution-service.d.ts.map +0 -1
- package/dist/types/src/services/service-container.d.ts +0 -56
- package/dist/types/src/services/service-container.d.ts.map +0 -1
- package/dist/types/src/services/service-registry.d.ts +0 -29
- package/dist/types/src/services/service-registry.d.ts.map +0 -1
- package/dist/types/src/services/service-registry.test.d.ts +0 -2
- package/dist/types/src/services/service-registry.test.d.ts.map +0 -1
- package/dist/types/src/testing/index.d.ts +0 -3
- package/dist/types/src/testing/index.d.ts.map +0 -1
- package/dist/types/src/testing/layer.d.ts +0 -15
- package/dist/types/src/testing/layer.d.ts.map +0 -1
- package/dist/types/src/testing/logger.d.ts +0 -5
- package/dist/types/src/testing/logger.d.ts.map +0 -1
- package/dist/types/src/testing/persist-database.test.d.ts +0 -2
- package/dist/types/src/testing/persist-database.test.d.ts.map +0 -1
- package/dist/types/src/testing/services.d.ts +0 -59
- package/dist/types/src/testing/services.d.ts.map +0 -1
- package/dist/types/src/trace.d.ts +0 -122
- package/dist/types/src/trace.d.ts.map +0 -1
- package/dist/types/src/translations.d.ts +0 -12
- package/dist/types/src/translations.d.ts.map +0 -1
- package/dist/types/src/triggers/index.d.ts +0 -4
- package/dist/types/src/triggers/index.d.ts.map +0 -1
- package/dist/types/src/triggers/input-builder.d.ts +0 -3
- package/dist/types/src/triggers/input-builder.d.ts.map +0 -1
- package/dist/types/src/triggers/invocation-tracer.d.ts +0 -35
- package/dist/types/src/triggers/invocation-tracer.d.ts.map +0 -1
- package/dist/types/src/triggers/trigger-dispatcher.d.ts +0 -75
- package/dist/types/src/triggers/trigger-dispatcher.d.ts.map +0 -1
- package/dist/types/src/triggers/trigger-dispatcher.test.d.ts +0 -2
- package/dist/types/src/triggers/trigger-dispatcher.test.d.ts.map +0 -1
- package/dist/types/src/triggers/trigger-state-store.d.ts +0 -27
- package/dist/types/src/triggers/trigger-state-store.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -221
- package/dist/types/src/types.d.ts.map +0 -1
- package/dist/types/src/url.d.ts +0 -21
- package/dist/types/src/url.d.ts.map +0 -1
- package/src/bundler/bundler.test.ts +0 -58
- package/src/bundler/bundler.ts +0 -291
- package/src/bundler/index.ts +0 -5
- package/src/edge/functions.ts +0 -67
- package/src/edge/index.ts +0 -9
- package/src/examples/index.ts +0 -7
- package/src/executor/executor.ts +0 -54
- package/src/handler.ts +0 -203
- package/src/schema.ts +0 -68
- package/src/services/database.ts +0 -171
- package/src/services/local-function-execution.ts +0 -127
- package/src/services/remote-function-execution-service.ts +0 -46
- package/src/services/service-container.ts +0 -114
- package/src/services/service-registry.test.ts +0 -42
- package/src/services/service-registry.ts +0 -59
- package/src/testing/index.ts +0 -6
- package/src/testing/layer.ts +0 -111
- package/src/testing/logger.ts +0 -16
- package/src/testing/persist-database.test.ts +0 -87
- package/src/testing/services.ts +0 -115
- package/src/trace.ts +0 -178
- package/src/translations.ts +0 -20
- package/src/triggers/index.ts +0 -7
- package/src/triggers/input-builder.ts +0 -35
- package/src/triggers/invocation-tracer.ts +0 -99
- package/src/triggers/trigger-dispatcher.test.ts +0 -652
- package/src/triggers/trigger-dispatcher.ts +0 -516
- package/src/triggers/trigger-state-store.ts +0 -60
- package/src/types.ts +0 -214
- package/src/url.ts +0 -55
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as HttpClient from '@effect/platform/HttpClient';
|
|
2
|
+
import type * as Config from 'effect/Config';
|
|
3
|
+
import * as Context from 'effect/Context';
|
|
4
|
+
import * as Effect from 'effect/Effect';
|
|
5
|
+
import * as Layer from 'effect/Layer';
|
|
6
|
+
import * as Redacted from 'effect/Redacted';
|
|
7
|
+
import { Database } from '@dxos/echo';
|
|
4
8
|
export type CredentialQuery = {
|
|
5
9
|
service?: string;
|
|
6
10
|
};
|
|
@@ -27,7 +31,9 @@ export declare class CredentialsService extends CredentialsService_base {
|
|
|
27
31
|
service: string;
|
|
28
32
|
apiKey: Config.Config<Redacted.Redacted<string>>;
|
|
29
33
|
}[]) => Layer.Layer<CredentialsService, import("effect/ConfigError").ConfigError, never>;
|
|
30
|
-
static layerFromDatabase: (
|
|
34
|
+
static layerFromDatabase: ({ caching }?: {
|
|
35
|
+
caching?: boolean;
|
|
36
|
+
}) => Layer.Layer<CredentialsService, never, Database.Service>;
|
|
31
37
|
}
|
|
32
38
|
export declare class ConfiguredCredentialsService implements Context.Tag.Service<CredentialsService> {
|
|
33
39
|
private readonly credentials;
|
|
@@ -37,8 +43,8 @@ export declare class ConfiguredCredentialsService implements Context.Tag.Service
|
|
|
37
43
|
getCredential(query: CredentialQuery): Promise<ServiceCredential>;
|
|
38
44
|
}
|
|
39
45
|
/**
|
|
40
|
-
* Maps the request to include the
|
|
46
|
+
* Maps the request to include the given token in the Authorization header.
|
|
41
47
|
*/
|
|
42
|
-
export declare const withAuthorization: (
|
|
48
|
+
export declare const withAuthorization: (token: string, kind?: "Bearer" | "Basic") => <E, R>(self: HttpClient.HttpClient.With<E, R>) => HttpClient.HttpClient.With<E, R>;
|
|
43
49
|
export {};
|
|
44
50
|
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../src/services/credentials.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../src/services/credentials.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;;IAKE;;OAEG;sBACe,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAE1E;;;OAGG;mBACY,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,iBAAiB,CAAC;;AAZzE,qBAAa,kBAAmB,SAAQ,uBAcrC;IACD,MAAM,CAAC,aAAa,GAAI,OAAO,eAAe,KAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAIvG;IAEL,MAAM,CAAC,SAAS,GAAI,OAAO,eAAe,KAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAO3G;IAEL,MAAM,CAAC,eAAe,GAAI,aAAa,iBAAiB,EAAE,mDACyB;IAEnF,MAAM,CAAC,WAAW,GAChB,aAAa;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;KAClD,EAAE,sFAgBD;IAEJ,MAAM,CAAC,iBAAiB,GAAI,cAAqB;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAO,8DA0CvE;CACL;AAED,qBAAa,4BAA6B,YAAW,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC9E,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,GAAE,iBAAiB,EAAO;IAElE,cAAc,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,4BAA4B;IAKxE,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAItE,aAAa,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAQxE;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,MAAM,EAAE,OAAO,QAAQ,GAAG,OAAO,uFAItE,CAAC"}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Context from 'effect/Context';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import * as Layer from 'effect/Layer';
|
|
4
|
+
import * as Schema from 'effect/Schema';
|
|
2
5
|
import { Type } from '@dxos/echo';
|
|
3
6
|
import { LogLevel } from '@dxos/log';
|
|
4
7
|
import { TracingService } from './tracing';
|
|
5
8
|
export declare const ComputeEventPayload: Schema.Union<[Schema.Struct<{
|
|
6
9
|
type: Schema.Literal<["begin-compute"]>;
|
|
7
10
|
nodeId: typeof Schema.String;
|
|
8
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Names of the inputs begin computed.
|
|
13
|
+
*/
|
|
14
|
+
inputs: Schema.Array$<typeof Schema.String>;
|
|
9
15
|
}>, Schema.Struct<{
|
|
10
16
|
type: Schema.Literal<["end-compute"]>;
|
|
11
17
|
nodeId: typeof Schema.String;
|
|
12
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Names of the outputs computed.
|
|
20
|
+
*/
|
|
21
|
+
outputs: Schema.Array$<typeof Schema.String>;
|
|
13
22
|
}>, Schema.Struct<{
|
|
14
23
|
type: Schema.Literal<["compute-input"]>;
|
|
15
24
|
nodeId: typeof Schema.String;
|
|
@@ -26,31 +35,31 @@ export declare const ComputeEventPayload: Schema.Union<[Schema.Struct<{
|
|
|
26
35
|
event: typeof Schema.Any;
|
|
27
36
|
}>]>;
|
|
28
37
|
export type ComputeEventPayload = Schema.Schema.Type<typeof ComputeEventPayload>;
|
|
29
|
-
export declare const ComputeEvent: Type.
|
|
30
|
-
payload:
|
|
31
|
-
type:
|
|
32
|
-
nodeId:
|
|
33
|
-
inputs:
|
|
34
|
-
}
|
|
35
|
-
type:
|
|
36
|
-
nodeId:
|
|
37
|
-
outputs:
|
|
38
|
-
}
|
|
39
|
-
type:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
type:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
type:
|
|
50
|
-
nodeId:
|
|
51
|
-
event:
|
|
52
|
-
}
|
|
53
|
-
}
|
|
38
|
+
export declare const ComputeEvent: Type.Obj<{
|
|
39
|
+
readonly payload: {
|
|
40
|
+
readonly type: "begin-compute";
|
|
41
|
+
readonly nodeId: string;
|
|
42
|
+
readonly inputs: readonly string[];
|
|
43
|
+
} | {
|
|
44
|
+
readonly type: "end-compute";
|
|
45
|
+
readonly nodeId: string;
|
|
46
|
+
readonly outputs: readonly string[];
|
|
47
|
+
} | {
|
|
48
|
+
readonly type: "compute-input";
|
|
49
|
+
readonly value: any;
|
|
50
|
+
readonly nodeId: string;
|
|
51
|
+
readonly property: string;
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "compute-output";
|
|
54
|
+
readonly value: any;
|
|
55
|
+
readonly nodeId: string;
|
|
56
|
+
readonly property: string;
|
|
57
|
+
} | {
|
|
58
|
+
readonly type: "custom";
|
|
59
|
+
readonly nodeId: string;
|
|
60
|
+
readonly event: any;
|
|
61
|
+
};
|
|
62
|
+
}, Schema.Struct.Fields>;
|
|
54
63
|
declare const ComputeEventLogger_base: Context.TagClass<ComputeEventLogger, "@dxos/functions/ComputeEventLogger", {
|
|
55
64
|
readonly log: (event: ComputeEventPayload) => void;
|
|
56
65
|
readonly nodeId: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-logger.d.ts","sourceRoot":"","sources":["../../../../src/services/event-logger.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"event-logger.d.ts","sourceRoot":"","sources":["../../../../src/services/event-logger.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAO,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,eAAO,MAAM,mBAAmB;;;IAI5B;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;IAoBN,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEjF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;wBAEyD,CAAC;;kBAOjE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;qBAAmB,MAAM,GAAG,SAAS;;AAL3F;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,uBAGrC;IACD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAGlD;IAEF;;OAEG;IACH,MAAM,CAAC,gBAAgB,yDAWrB;CACH;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,GAAG,mDAWpC,CAAC;AAEL,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAE,CAAC,EAAE,CAAC,OAAK,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAMrG,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAC5B,OAAO,QAAQ,EACf,UAAS,MAAgB,KACxB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAiBxC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Context from 'effect/Context';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import * as Layer from 'effect/Layer';
|
|
4
|
+
import type { FunctionNotFoundError } from '../errors';
|
|
5
|
+
import { type FunctionDefinition, type InvocationServices } from '../sdk';
|
|
6
|
+
declare const FunctionInvocationService_base: Context.TagClass<FunctionInvocationService, "@dxos/functions/FunctionInvocationService", {
|
|
7
|
+
invokeFunction<I, O>(functionDef: FunctionDefinition<I, O, any>, input: I): Effect.Effect<O, never, InvocationServices>;
|
|
8
|
+
resolveFunction(key: string): Effect.Effect<FunctionDefinition.Any, FunctionNotFoundError>;
|
|
9
|
+
}>;
|
|
10
|
+
export declare class FunctionInvocationService extends FunctionInvocationService_base {
|
|
11
|
+
static layerNotAvailable: Layer.Layer<FunctionInvocationService, never, never>;
|
|
12
|
+
static invokeFunction: <I, O>(functionDef: FunctionDefinition<I, O, any>, input: I) => Effect.Effect<O, never, FunctionInvocationService | InvocationServices>;
|
|
13
|
+
static resolveFunction: (key: string) => Effect.Effect<FunctionDefinition.Any, FunctionNotFoundError, FunctionInvocationService>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=function-invocation-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-invocation-service.d.ts","sourceRoot":"","sources":["../../../../src/services/function-invocation-service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;;mBAKvD,CAAC,EAAE,CAAC,eACJ,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,SACnC,CAAC,GACP,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC;yBAEzB,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,qBAAqB,CAAC;;AAR9F,qBAAa,yBAA0B,SAAQ,8BAU5C;IACD,MAAM,CAAC,iBAAiB,uDAGrB;IAEH,MAAM,CAAC,cAAc,GAAI,CAAC,EAAE,CAAC,EAC3B,aAAa,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAC1C,OAAO,CAAC,KACP,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,yBAAyB,GAAG,kBAAkB,CAAC,CACyC;IAEnH,MAAM,CAAC,eAAe,GACpB,KAAK,MAAM,KACV,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,qBAAqB,EAAE,yBAAyB,CAAC,CACW;CACtG"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export * from './database';
|
|
2
|
-
export * from './queues';
|
|
3
|
-
export * from './service-container';
|
|
4
1
|
export * from './credentials';
|
|
5
|
-
export
|
|
2
|
+
export { ConfiguredCredentialsService, type ServiceCredential } from './credentials';
|
|
6
3
|
export * from './event-logger';
|
|
7
|
-
export
|
|
8
|
-
export * from './
|
|
4
|
+
export { createEventLogger, createDefectLogger } from './event-logger';
|
|
5
|
+
export * from './function-invocation-service';
|
|
6
|
+
export * from './queues';
|
|
7
|
+
export * from './tracing';
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,4BAA4B,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrF,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACvE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as Context from 'effect/Context';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import * as Layer from 'effect/Layer';
|
|
4
|
+
import type { Entity } from '@dxos/echo';
|
|
3
5
|
import type { Queue, QueueAPI, QueueFactory } from '@dxos/echo-db';
|
|
4
6
|
import type { DXN, QueueSubspaceTag } from '@dxos/keys';
|
|
5
7
|
declare const QueueService_base: Context.TagClass<QueueService, "@dxos/functions/QueueService", {
|
|
@@ -23,14 +25,14 @@ export declare class QueueService extends QueueService_base {
|
|
|
23
25
|
/**
|
|
24
26
|
* Gets a queue by its DXN.
|
|
25
27
|
*/
|
|
26
|
-
static getQueue: <T extends
|
|
28
|
+
static getQueue: <T extends Entity.Unknown = Entity.Unknown>(dxn: DXN) => Effect.Effect<Queue<T>, never, QueueService>;
|
|
27
29
|
/**
|
|
28
30
|
* Creates a new queue.
|
|
29
31
|
*/
|
|
30
|
-
static createQueue: <T extends
|
|
32
|
+
static createQueue: <T extends Entity.Unknown = Entity.Unknown>(options?: {
|
|
31
33
|
subspaceTag?: QueueSubspaceTag;
|
|
32
34
|
}) => Effect.Effect<Queue<T>, never, QueueService>;
|
|
33
|
-
static append: <T extends
|
|
35
|
+
static append: <T extends Entity.Unknown = Entity.Unknown>(queue: Queue<T>, objects: T[]) => Effect.Effect<void>;
|
|
34
36
|
}
|
|
35
37
|
declare const ContextQueueService_base: Context.TagClass<ContextQueueService, "@dxos/functions/ContextQueueService", {
|
|
36
38
|
readonly queue: Queue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queues.d.ts","sourceRoot":"","sources":["../../../../src/services/queues.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"queues.d.ts","sourceRoot":"","sources":["../../../../src/services/queues.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,KAAK,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;;IAQpD;;OAEG;qBACc,QAAQ;IAEzB;;;OAGG;oBACa,KAAK,GAAG,SAAS;;AAfrC;;GAEG;AACH,qBAAa,YAAa,SAAQ,iBAc/B;IACD,MAAM,CAAC,YAAY,0CAUhB;IAEH,MAAM,CAAC,IAAI,GAAI,QAAQ,YAAY,EAAE,QAAQ,KAAK,KAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,CAKpF;IAEF,MAAM,CAAC,KAAK,GAAI,QAAQ,YAAY,EAAE,QAAQ,KAAK,KAAG,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CACf;IAEhE;;OAEG;IACH,MAAM,CAAC,QAAQ,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,EAC1D,KAAK,GAAG,KACP,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,CAAsE;IAErH;;OAEG;IACH,MAAM,CAAC,WAAW,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,UAAU;QACzE,WAAW,CAAC,EAAE,gBAAgB,CAAC;KAChC,KAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,CAC2B;IAE3E,MAAM,CAAC,MAAM,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,KAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CACjE;CAC/C;;oBAQmB,KAAK;;AANzB;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,wBAKtC;IACD,MAAM,CAAC,KAAK,GAAI,OAAO,KAAK,oDAAmD;CAChF"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Context from 'effect/Context';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import * as Layer from 'effect/Layer';
|
|
2
4
|
import { AgentStatus } from '@dxos/ai';
|
|
3
|
-
import { Obj } from '@dxos/echo';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
5
|
+
import { type DXN, Obj } from '@dxos/echo';
|
|
6
|
+
import { ObjectId } from '@dxos/keys';
|
|
7
|
+
import { Message } from '@dxos/types';
|
|
8
|
+
import type { Trigger } from '../types';
|
|
7
9
|
declare const TracingService_base: Context.TagClass<TracingService, "@dxos/functions/TracingService", {
|
|
8
10
|
/**
|
|
9
11
|
* Gets the parent message ID.
|
|
@@ -13,7 +15,15 @@ declare const TracingService_base: Context.TagClass<TracingService, "@dxos/funct
|
|
|
13
15
|
* Write an event to the tracing queue.
|
|
14
16
|
* @param event - The event to write. Must be an a typed object.
|
|
15
17
|
*/
|
|
16
|
-
write: (event: Obj.
|
|
18
|
+
write: (event: Obj.Unknown, traceContext: TracingService.TraceContext) => void;
|
|
19
|
+
traceInvocationStart({ payload, target, }: {
|
|
20
|
+
payload: TracingService.FunctionInvocationPayload;
|
|
21
|
+
target?: DXN;
|
|
22
|
+
}): Effect.Effect<TracingService.InvocationTraceData>;
|
|
23
|
+
traceInvocationEnd({ trace, exception, }: {
|
|
24
|
+
trace: TracingService.InvocationTraceData;
|
|
25
|
+
exception?: any;
|
|
26
|
+
}): Effect.Effect<void>;
|
|
17
27
|
}>;
|
|
18
28
|
/**
|
|
19
29
|
* Provides a way for compute primitives (functions, workflows, tools)
|
|
@@ -21,23 +31,26 @@ declare const TracingService_base: Context.TagClass<TracingService, "@dxos/funct
|
|
|
21
31
|
*/
|
|
22
32
|
export declare class TracingService extends TracingService_base {
|
|
23
33
|
static noop: Context.Tag.Service<TracingService>;
|
|
24
|
-
static layerNoop: Layer.Layer<TracingService
|
|
25
|
-
static console: Context.Tag.Service<TracingService>;
|
|
26
|
-
static layerConsole: Layer.Layer<TracingService, never, never>;
|
|
27
|
-
static layerLogInfo: () => Layer.Layer<TracingService, never, never>;
|
|
34
|
+
static layerNoop: Layer.Layer<TracingService>;
|
|
28
35
|
/**
|
|
29
36
|
* Creates a TracingService layer that emits events to the parent tracing service.
|
|
30
37
|
*/
|
|
31
38
|
static layerSubframe: (mapContext: (currentContext: TracingService.TraceContext) => TracingService.TraceContext) => Layer.Layer<TracingService, never, TracingService>;
|
|
32
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Create sublayer to trace an invocation.
|
|
41
|
+
* @param data
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
static layerInvocation: (data: TracingService.InvocationTraceData) => Layer.Layer<TracingService, never, TracingService>;
|
|
33
45
|
/**
|
|
34
46
|
* Emit the current human-readable execution status.
|
|
35
47
|
*/
|
|
36
|
-
static emitStatus: (data: Obj.MakeProps<typeof AgentStatus>) => Effect.Effect<void, never, TracingService>;
|
|
37
|
-
static emitConverationMessage: (data: Obj.MakeProps<typeof
|
|
48
|
+
static emitStatus: (data: Omit<Obj.MakeProps<typeof AgentStatus>, 'created'>) => Effect.Effect<void, never, TracingService>;
|
|
49
|
+
static emitConverationMessage: (data: Obj.MakeProps<typeof Message.Message>) => Effect.Effect<void, never, TracingService>;
|
|
38
50
|
}
|
|
39
51
|
export declare namespace TracingService {
|
|
40
52
|
interface TraceContext {
|
|
53
|
+
currentInvocation?: InvocationTraceData;
|
|
41
54
|
/**
|
|
42
55
|
* If this thread sprung from a tool call, this is the ID of the message containing the tool call.
|
|
43
56
|
*/
|
|
@@ -48,9 +61,27 @@ export declare namespace TracingService {
|
|
|
48
61
|
toolCallId?: string;
|
|
49
62
|
debugInfo?: unknown;
|
|
50
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Trace data for a function/trigger invocation.
|
|
66
|
+
*/
|
|
67
|
+
interface InvocationTraceData {
|
|
68
|
+
invocationId: ObjectId;
|
|
69
|
+
invocationTraceQueue?: DXN.String;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Payload for a function/trigger invocation.
|
|
73
|
+
*/
|
|
74
|
+
interface FunctionInvocationPayload {
|
|
75
|
+
data?: any;
|
|
76
|
+
inputNodeId?: string;
|
|
77
|
+
trigger?: {
|
|
78
|
+
id: string;
|
|
79
|
+
kind: Trigger.Kind;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
51
82
|
}
|
|
52
83
|
/**
|
|
53
|
-
* Goes into {@link
|
|
84
|
+
* Goes into {@link Message['properties']}
|
|
54
85
|
*/
|
|
55
86
|
export declare const MESSAGE_PROPERTY_TOOL_CALL_ID: "toolCallId";
|
|
56
87
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../../src/services/tracing.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../../src/services/tracing.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,GAAG,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;;IASpC;;OAEG;qBACc,MAAM,cAAc,CAAC,YAAY;IAElD;;;OAGG;WACI,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,cAAc,CAAC,YAAY,KAAK,IAAI;+CAK3E;QACD,OAAO,EAAE,cAAc,CAAC,yBAAyB,CAAC;QAClD,MAAM,CAAC,EAAE,GAAG,CAAC;KACd,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,mBAAmB,CAAC;8CAKlD;QACD,KAAK,EAAE,cAAc,CAAC,mBAAmB,CAAC;QAC1C,SAAS,CAAC,EAAE,GAAG,CAAC;KACjB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;;AAhC3B;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBA8BjC;IACD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAM9C;IAEF,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAsD;IAEnG;;OAEG;IACH,MAAM,CAAC,aAAa,GAAI,YAAY,CAAC,cAAc,EAAE,cAAc,CAAC,YAAY,KAAK,cAAc,CAAC,YAAY,wDAa5G;IAEJ;;;;OAIG;IACH,MAAM,CAAC,eAAe,GAAI,MAAM,cAAc,CAAC,mBAAmB,wDAI5D;IAEN;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,CACjB,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,WAAW,CAAC,EAAE,SAAS,CAAC,KACrD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,cAAc,CAAC,CAW5C;IAEH,MAAM,CAAC,sBAAsB,EAAE,CAC7B,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,OAAO,CAAC,OAAO,CAAC,KACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,cAAc,CAAC,CAa5C;CACJ;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,YAAY;QAC3B,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;QAExC;;WAEG;QACH,aAAa,CAAC,EAAE,QAAQ,CAAC;QAEzB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,mBAAmB;QAClC,YAAY,EAAE,QAAQ,CAAC;QACvB,oBAAoB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;KACnC;IAED;;OAEG;IACH,UAAiB,yBAAyB;QACxC,IAAI,CAAC,EAAE,GAAG,CAAC;QACX,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,OAAO,CAAC,EAAE;YACR,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;SACpB,CAAC;KACH;CACF;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAG,YAAqB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Obj, Type } from '@dxos/echo';
|
|
3
|
+
/**
|
|
4
|
+
* Function deployment.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Function: Type.Obj<{
|
|
7
|
+
readonly version: string;
|
|
8
|
+
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
9
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
10
|
+
readonly content: string;
|
|
11
|
+
}>;
|
|
12
|
+
readonly description?: string | undefined;
|
|
13
|
+
readonly name?: string | undefined;
|
|
14
|
+
readonly changed?: boolean | undefined;
|
|
15
|
+
}> | undefined;
|
|
16
|
+
readonly description?: string | undefined;
|
|
17
|
+
readonly name: string;
|
|
18
|
+
readonly key?: string | undefined;
|
|
19
|
+
readonly updated?: string | undefined;
|
|
20
|
+
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
21
|
+
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
22
|
+
readonly services?: readonly string[] | undefined;
|
|
23
|
+
readonly binding?: string | undefined;
|
|
24
|
+
}, Schema.Struct.Fields>;
|
|
25
|
+
export interface Function extends Schema.Schema.Type<typeof Function> {
|
|
26
|
+
}
|
|
27
|
+
export declare const make: (props: Obj.MakeProps<typeof Function>) => Obj.Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
28
|
+
readonly version: string;
|
|
29
|
+
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
30
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
31
|
+
readonly content: string;
|
|
32
|
+
}>;
|
|
33
|
+
readonly description?: string | undefined;
|
|
34
|
+
readonly name?: string | undefined;
|
|
35
|
+
readonly changed?: boolean | undefined;
|
|
36
|
+
}> | undefined;
|
|
37
|
+
readonly description?: string | undefined;
|
|
38
|
+
readonly name: string;
|
|
39
|
+
readonly key?: string | undefined;
|
|
40
|
+
readonly updated?: string | undefined;
|
|
41
|
+
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
42
|
+
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
43
|
+
readonly services?: readonly string[] | undefined;
|
|
44
|
+
readonly binding?: string | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* Copies properties from source to target.
|
|
48
|
+
* @param target - Target object to copy properties to.
|
|
49
|
+
* @param source - Source object to copy properties from.
|
|
50
|
+
*/
|
|
51
|
+
export declare const setFrom: (target: Function, source: Function) => void;
|
|
52
|
+
//# sourceMappingURL=Function.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/types/Function.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAA0B,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAK/D;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;wBA4CpB,CAAC;AAEF,MAAM,WAAW,QAAS,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC;CAAG;AAExE,eAAO,MAAM,IAAI,GAAI,OAAO,GAAG,CAAC,SAAS,CAAC,OAAO,QAAQ,CAAC;;;;;;;;;;;;;;;;;;EAA8B,CAAC;AAEzF;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,QAAQ,EAAE,QAAQ,QAAQ,SAYzD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Obj, Type } from '@dxos/echo';
|
|
3
|
+
/**
|
|
4
|
+
* Source script.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Script: Type.Obj<{
|
|
7
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
8
|
+
readonly content: string;
|
|
9
|
+
}>;
|
|
10
|
+
readonly description?: string | undefined;
|
|
11
|
+
readonly name?: string | undefined;
|
|
12
|
+
readonly changed?: boolean | undefined;
|
|
13
|
+
}, Schema.Struct.Fields>;
|
|
14
|
+
export interface Script extends Schema.Schema.Type<typeof Script> {
|
|
15
|
+
}
|
|
16
|
+
type Props = Omit<Obj.MakeProps<typeof Script>, 'source'> & {
|
|
17
|
+
source?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const make: ({ source, ...props }?: Props) => Script;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=Script.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Script.d.ts","sourceRoot":"","sources":["../../../../src/types/Script.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAc,GAAG,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAIxD;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;wBAalB,CAAC;AAEF,MAAM,WAAW,MAAO,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC;CAAG;AAEpE,KAAK,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhF,eAAO,MAAM,IAAI,GAAI,uBAA2B,KAAU,KAAG,MACQ,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Obj, QueryAST, Type } from '@dxos/echo';
|
|
3
|
+
/**
|
|
4
|
+
* Type discriminator for TriggerType.
|
|
5
|
+
* Every spec has a type field of type TriggerKind that we can use to understand which type we're working with.
|
|
6
|
+
* https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions
|
|
7
|
+
*/
|
|
8
|
+
export declare const Kinds: readonly ["email", "queue", "subscription", "timer", "webhook"];
|
|
9
|
+
export type Kind = (typeof Kinds)[number];
|
|
10
|
+
export declare const EmailSpec: Schema.mutable<Schema.Struct<{
|
|
11
|
+
kind: Schema.Literal<["email"]>;
|
|
12
|
+
}>>;
|
|
13
|
+
export type EmailSpec = Schema.Schema.Type<typeof EmailSpec>;
|
|
14
|
+
export declare const QueueSpec: Schema.mutable<Schema.Struct<{
|
|
15
|
+
kind: Schema.Literal<["queue"]>;
|
|
16
|
+
queue: Schema.refine<string, typeof Schema.NonEmptyString>;
|
|
17
|
+
}>>;
|
|
18
|
+
export type QueueSpec = Schema.Schema.Type<typeof QueueSpec>;
|
|
19
|
+
/**
|
|
20
|
+
* Subscription.
|
|
21
|
+
*/
|
|
22
|
+
export declare const SubscriptionSpec: Schema.mutable<Schema.Struct<{
|
|
23
|
+
kind: Schema.Literal<["subscription"]>;
|
|
24
|
+
query: Schema.mutable<Schema.Struct<{
|
|
25
|
+
raw: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
26
|
+
ast: Schema.Schema<QueryAST.QuerySelectClause | QueryAST.QueryFilterClause | QueryAST.QueryReferenceTraversalClause | QueryAST.QueryIncomingReferencesClause | QueryAST.QueryRelationClause | QueryAST.QueryRelationTraversalClause | QueryAST.QueryUnionClause | QueryAST.QuerySetDifferenceClause | QueryAST.QueryOrderClause | QueryAST.QueryOptionsClause | QueryAST.QueryLimitClause, QueryAST.QuerySelectClause | QueryAST.QueryFilterClause | QueryAST.QueryReferenceTraversalClause | QueryAST.QueryIncomingReferencesClause | QueryAST.QueryRelationClause | QueryAST.QueryRelationTraversalClause | QueryAST.QueryUnionClause | QueryAST.QuerySetDifferenceClause | QueryAST.QueryOrderClause | QueryAST.QueryOptionsClause | QueryAST.QueryLimitClause, never>;
|
|
27
|
+
}>>;
|
|
28
|
+
options: Schema.optional<Schema.Struct<{
|
|
29
|
+
deep: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
30
|
+
delay: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
31
|
+
}>>;
|
|
32
|
+
}>>;
|
|
33
|
+
export type SubscriptionSpec = Schema.Schema.Type<typeof SubscriptionSpec>;
|
|
34
|
+
/**
|
|
35
|
+
* Cron timer.
|
|
36
|
+
*/
|
|
37
|
+
export declare const TimerSpec: Schema.mutable<Schema.Struct<{
|
|
38
|
+
kind: Schema.Literal<["timer"]>;
|
|
39
|
+
cron: Schema.SchemaClass<string, string, never>;
|
|
40
|
+
}>>;
|
|
41
|
+
export type TimerSpec = Schema.Schema.Type<typeof TimerSpec>;
|
|
42
|
+
/**
|
|
43
|
+
* Webhook.
|
|
44
|
+
*/
|
|
45
|
+
export declare const WebhookSpec: Schema.mutable<Schema.Struct<{
|
|
46
|
+
kind: Schema.Literal<["webhook"]>;
|
|
47
|
+
method: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
48
|
+
port: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
49
|
+
}>>;
|
|
50
|
+
export type WebhookSpec = Schema.Schema.Type<typeof WebhookSpec>;
|
|
51
|
+
/**
|
|
52
|
+
* Trigger schema.
|
|
53
|
+
*/
|
|
54
|
+
export declare const Spec: Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
55
|
+
kind: Schema.Literal<["email"]>;
|
|
56
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
57
|
+
kind: Schema.Literal<["queue"]>;
|
|
58
|
+
queue: Schema.refine<string, typeof Schema.NonEmptyString>;
|
|
59
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
60
|
+
kind: Schema.Literal<["subscription"]>;
|
|
61
|
+
query: Schema.mutable<Schema.Struct<{
|
|
62
|
+
raw: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
63
|
+
ast: Schema.Schema<QueryAST.QuerySelectClause | QueryAST.QueryFilterClause | QueryAST.QueryReferenceTraversalClause | QueryAST.QueryIncomingReferencesClause | QueryAST.QueryRelationClause | QueryAST.QueryRelationTraversalClause | QueryAST.QueryUnionClause | QueryAST.QuerySetDifferenceClause | QueryAST.QueryOrderClause | QueryAST.QueryOptionsClause | QueryAST.QueryLimitClause, QueryAST.QuerySelectClause | QueryAST.QueryFilterClause | QueryAST.QueryReferenceTraversalClause | QueryAST.QueryIncomingReferencesClause | QueryAST.QueryRelationClause | QueryAST.QueryRelationTraversalClause | QueryAST.QueryUnionClause | QueryAST.QuerySetDifferenceClause | QueryAST.QueryOrderClause | QueryAST.QueryOptionsClause | QueryAST.QueryLimitClause, never>;
|
|
64
|
+
}>>;
|
|
65
|
+
options: Schema.optional<Schema.Struct<{
|
|
66
|
+
deep: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
67
|
+
delay: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
68
|
+
}>>;
|
|
69
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
70
|
+
kind: Schema.Literal<["timer"]>;
|
|
71
|
+
cron: Schema.SchemaClass<string, string, never>;
|
|
72
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
73
|
+
kind: Schema.Literal<["webhook"]>;
|
|
74
|
+
method: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
75
|
+
port: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
76
|
+
}>>]>;
|
|
77
|
+
export type Spec = Schema.Schema.Type<typeof Spec>;
|
|
78
|
+
/**
|
|
79
|
+
* Function trigger.
|
|
80
|
+
* Function is invoked with the `payload` passed as input data.
|
|
81
|
+
* The event that triggers the function is available in the function context.
|
|
82
|
+
*/
|
|
83
|
+
declare const TriggerSchema: Type.Obj<{
|
|
84
|
+
readonly function?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
85
|
+
readonly [x: string]: any;
|
|
86
|
+
}> | undefined;
|
|
87
|
+
readonly inputNodeId?: string | undefined;
|
|
88
|
+
readonly enabled?: boolean | undefined;
|
|
89
|
+
readonly spec?: {
|
|
90
|
+
kind: "email";
|
|
91
|
+
} | {
|
|
92
|
+
queue: string;
|
|
93
|
+
kind: "queue";
|
|
94
|
+
} | {
|
|
95
|
+
kind: "subscription";
|
|
96
|
+
query: {
|
|
97
|
+
raw?: string | undefined;
|
|
98
|
+
ast: QueryAST.QuerySelectClause | QueryAST.QueryFilterClause | QueryAST.QueryReferenceTraversalClause | QueryAST.QueryIncomingReferencesClause | QueryAST.QueryRelationClause | QueryAST.QueryRelationTraversalClause | QueryAST.QueryUnionClause | QueryAST.QuerySetDifferenceClause | QueryAST.QueryOrderClause | QueryAST.QueryOptionsClause | QueryAST.QueryLimitClause;
|
|
99
|
+
};
|
|
100
|
+
options?: {
|
|
101
|
+
readonly deep?: boolean | undefined;
|
|
102
|
+
readonly delay?: number | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
} | {
|
|
105
|
+
kind: "timer";
|
|
106
|
+
cron: string;
|
|
107
|
+
} | {
|
|
108
|
+
kind: "webhook";
|
|
109
|
+
method?: string | undefined;
|
|
110
|
+
port?: number | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
readonly input?: {
|
|
113
|
+
[x: string]: any;
|
|
114
|
+
} | undefined;
|
|
115
|
+
}, Schema.Struct.Fields>;
|
|
116
|
+
export interface Trigger extends Schema.Schema.Type<typeof TriggerSchema> {
|
|
117
|
+
}
|
|
118
|
+
export declare const Trigger: Type.Obj<Trigger>;
|
|
119
|
+
export declare const make: (props: Obj.MakeProps<typeof Trigger>) => Obj.Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Trigger>;
|
|
120
|
+
export {};
|
|
121
|
+
//# sourceMappingURL=Trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../../src/types/Trigger.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKjD;;;;GAIG;AACH,eAAO,MAAM,KAAK,iEAAkE,CAAC;AACrF,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAI1C,eAAO,MAAM,SAAS;;GAEC,CAAC;AACxB,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAE7D,eAAO,MAAM,SAAS;;;GAKC,CAAC;AACxB,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;GAcN,CAAC;AACxB,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,SAAS;;;GAMC,CAAC;AACxB,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,WAAW;;;;GAaD,CAAC;AACxB,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;KAEf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnD;;;;GAIG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsClB,CAAC;AAEF,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC;CAAG;AAC5E,eAAO,MAAM,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAwB,CAAC;AAE/D,eAAO,MAAM,IAAI,GAAI,OAAO,GAAG,CAAC,SAAS,CAAC,OAAO,OAAO,CAAC,2GAA6B,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
export declare const EmailEvent: Schema.mutable<Schema.Struct<{
|
|
3
|
+
from: typeof Schema.String;
|
|
4
|
+
to: typeof Schema.String;
|
|
5
|
+
subject: typeof Schema.String;
|
|
6
|
+
created: typeof Schema.String;
|
|
7
|
+
body: typeof Schema.String;
|
|
8
|
+
}>>;
|
|
9
|
+
export type EmailEvent = Schema.Schema.Type<typeof EmailEvent>;
|
|
10
|
+
export declare const QueueEvent: Schema.mutable<Schema.Struct<{
|
|
11
|
+
queue: Schema.refine<string, typeof Schema.NonEmptyString>;
|
|
12
|
+
item: typeof Schema.Any;
|
|
13
|
+
cursor: typeof Schema.String;
|
|
14
|
+
}>>;
|
|
15
|
+
export type QueueEvent = Schema.Schema.Type<typeof QueueEvent>;
|
|
16
|
+
export declare const SubscriptionEvent: Schema.mutable<Schema.Struct<{
|
|
17
|
+
/**
|
|
18
|
+
* Type of the mutation.
|
|
19
|
+
*/
|
|
20
|
+
type: typeof Schema.String;
|
|
21
|
+
/**
|
|
22
|
+
* Reference to the object that was changed or created.
|
|
23
|
+
*/
|
|
24
|
+
subject: import("@dxos/echo/internal").RefSchema<any>;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
28
|
+
changedObjectId: Schema.optional<typeof Schema.String>;
|
|
29
|
+
}>>;
|
|
30
|
+
export type SubscriptionEvent = Schema.Schema.Type<typeof SubscriptionEvent>;
|
|
31
|
+
export declare const TimerEvent: Schema.mutable<Schema.Struct<{
|
|
32
|
+
tick: typeof Schema.Number;
|
|
33
|
+
}>>;
|
|
34
|
+
export type TimerEvent = Schema.Schema.Type<typeof TimerEvent>;
|
|
35
|
+
export declare const WebhookEvent: Schema.mutable<Schema.Struct<{
|
|
36
|
+
url: typeof Schema.String;
|
|
37
|
+
method: Schema.Literal<["GET", "POST"]>;
|
|
38
|
+
headers: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
39
|
+
bodyText: typeof Schema.String;
|
|
40
|
+
}>>;
|
|
41
|
+
export type WebhookEvent = Schema.Schema.Type<typeof WebhookEvent>;
|
|
42
|
+
export declare const TriggerEvent: Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
43
|
+
from: typeof Schema.String;
|
|
44
|
+
to: typeof Schema.String;
|
|
45
|
+
subject: typeof Schema.String;
|
|
46
|
+
created: typeof Schema.String;
|
|
47
|
+
body: typeof Schema.String;
|
|
48
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
49
|
+
queue: Schema.refine<string, typeof Schema.NonEmptyString>;
|
|
50
|
+
item: typeof Schema.Any;
|
|
51
|
+
cursor: typeof Schema.String;
|
|
52
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
53
|
+
/**
|
|
54
|
+
* Type of the mutation.
|
|
55
|
+
*/
|
|
56
|
+
type: typeof Schema.String;
|
|
57
|
+
/**
|
|
58
|
+
* Reference to the object that was changed or created.
|
|
59
|
+
*/
|
|
60
|
+
subject: import("@dxos/echo/internal").RefSchema<any>;
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated
|
|
63
|
+
*/
|
|
64
|
+
changedObjectId: Schema.optional<typeof Schema.String>;
|
|
65
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
66
|
+
tick: typeof Schema.Number;
|
|
67
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
68
|
+
url: typeof Schema.String;
|
|
69
|
+
method: Schema.Literal<["GET", "POST"]>;
|
|
70
|
+
headers: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
71
|
+
bodyText: typeof Schema.String;
|
|
72
|
+
}>>]>;
|
|
73
|
+
export type TriggerEvent = Schema.Schema.Type<typeof TriggerEvent>;
|
|
74
|
+
//# sourceMappingURL=TriggerEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriggerEvent.d.ts","sourceRoot":"","sources":["../../../../src/types/TriggerEvent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAUxC,eAAO,MAAM,UAAU;;;;;;GAQtB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,UAAU;;;;GAMtB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAIH;;OAEG;;IAGH;;OAEG;;GAEkB,CAAC;AACxB,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7E,eAAO,MAAM,UAAU;;GAAyD,CAAC;AACjF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,YAAY;;;;;GAOxB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE,eAAO,MAAM,YAAY;;;;;;;;;;;IA/BvB;;OAEG;;IAIH;;OAEG;;IAGH;;OAEG;;;;;;;;;KAkBwG,CAAC;AAC9G,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC"}
|