@segmentstream/ontology 0.125.0 → 0.127.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/CHANGELOG.md +20 -0
- package/dist/analyze.js +4 -17
- package/dist/app-feedback.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/manifest.d.ts +405 -9
- package/dist/manifest.js +29 -2
- package/dist/migrate/model.d.ts +230 -6
- package/dist/service/caller-where.d.ts +19 -0
- package/dist/service/caller-where.js +126 -0
- package/dist/service/mcp/find-input.js +2 -1
- package/dist/service/mcp/server.js +11 -4
- package/dist/service/schemas.d.ts +56 -0
- package/dist/service/webhooks.d.ts +22 -6
- package/dist/service/webhooks.js +131 -50
- package/dist/service/workflows.js +8 -6
- package/dist/webhooks.d.ts +105 -2
- package/dist/webhooks.js +293 -2
- package/dist/workflow.d.ts +10 -5
- package/dist/workflows.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.127.0
|
|
4
|
+
|
|
5
|
+
A `find` MCP tool's `where` takes `{ "$me": [] }`, as a role scope writes `me`, for the caller's
|
|
6
|
+
user ID. Compared with a to-one relationship, bare or with `eq`, `ne` or `in`, it reads the
|
|
7
|
+
relationship's `<relationship>_id` key, so `{ "reporter": { "$me": [] } }` needs no `user:read`;
|
|
8
|
+
anywhere else it is the ID itself, as in `{ "created_by": { "$me": [] } }`. A path from it stays a
|
|
9
|
+
role scope's and is refused. The feedback guidance now finds the member's own items with it in one
|
|
10
|
+
call instead of reading their ID from `me` first, in the ontology's MCP guidance and the agent's
|
|
11
|
+
platform instructions.
|
|
12
|
+
|
|
13
|
+
## 0.126.0
|
|
14
|
+
|
|
15
|
+
A webhook trigger checks any provider's HMAC signature: `signature: { scheme: "hmac", secret,
|
|
16
|
+
algorithm, encoding, signatures, ... }` declares where the provider's signatures travel, how they
|
|
17
|
+
are written, which bytes it signs and an optional signed timestamp, so BTCPay Server, GitHub,
|
|
18
|
+
Shopify, Svix (Resend, Clerk), Paddle, Slack and others need no token URL. `algorithm` is `sha1`,
|
|
19
|
+
`sha256` or `sha512`; `encoding` is `hex` or `base64`; `key: { decode: "base64", prefix: "whsec_" }`
|
|
20
|
+
decodes a secret such as Svix's. The workspace secret still never leaves SegmentStream. `stripe`
|
|
21
|
+
and `meta` keep working as before.
|
|
22
|
+
|
|
3
23
|
## 0.125.0
|
|
4
24
|
|
|
5
25
|
The agent hands a person's private chat over to staff. `agent_chat` gains `handoffAt` and
|
package/dist/analyze.js
CHANGED
|
@@ -29,7 +29,7 @@ import { entityQuerySchemas, findEntityManifest, queryFields, queryLinks, } from
|
|
|
29
29
|
import { EARLIER_QUERY_METRICS_ROUTE, earlierNamesOf } from "./legacy.js";
|
|
30
30
|
import { resolveModelMetrics } from "./model-metrics.js";
|
|
31
31
|
import { cronNeverFires, cronProblem, isAsyncFunction, isWorkflow, isWorkflowTrigger, MAX_ACTION_TRIGGERS, MAX_WORKFLOWS, } from "./workflow.js";
|
|
32
|
-
import { MAX_WEBHOOK_HEADERS, MAX_WEBHOOKS,
|
|
32
|
+
import { MAX_WEBHOOK_HEADERS, MAX_WEBHOOKS, webhookDelivery, webhookHeaderProblem, webhookSignatureManifest, webhookSignatureProblems, WORKSPACE_SECRET_NAME, } from "./webhooks.js";
|
|
33
33
|
import { actionInputToWire } from "./authoring-input.js";
|
|
34
34
|
import { validate } from "./runtime/validation.js";
|
|
35
35
|
import { fixedArgumentsConflict, isToolset, MAXIMUM_TOOLSET_TOOLS, MCP_TOOL_NAME, toolHints, ToolsetLock, withoutFixedArguments, } from "./toolset.js";
|
|
@@ -774,21 +774,8 @@ function resolveWebhookTrigger(trigger, at, scope) {
|
|
|
774
774
|
let valid = true;
|
|
775
775
|
const signature = trigger.signature;
|
|
776
776
|
if (signature !== undefined) {
|
|
777
|
-
const
|
|
778
|
-
? signature.
|
|
779
|
-
: undefined;
|
|
780
|
-
const secret = typeof signature === "object" && signature !== null
|
|
781
|
-
? signature.secret
|
|
782
|
-
: undefined;
|
|
783
|
-
if (!WEBHOOK_SIGNATURE_SCHEMES.includes(scheme)) {
|
|
784
|
-
report("workflow_webhook_signature_invalid", `${at}.signature.scheme`, `${JSON.stringify(scheme) ?? "undefined"} is not a signature scheme; use one of ` +
|
|
785
|
-
`${WEBHOOK_SIGNATURE_SCHEMES.join(", ")}, or omit signature for a provider that signs ` +
|
|
786
|
-
"nothing.");
|
|
787
|
-
valid = false;
|
|
788
|
-
}
|
|
789
|
-
if (typeof secret !== "string" || !WORKSPACE_SECRET_NAME.test(secret)) {
|
|
790
|
-
report("workflow_webhook_signature_invalid", `${at}.signature.secret`, `${JSON.stringify(secret) ?? "undefined"} is not a workspace secret name; name the ` +
|
|
791
|
-
"secret that holds the provider's signing secret, such as stripe-webhook-signing-secret.");
|
|
777
|
+
for (const problem of webhookSignatureProblems(signature)) {
|
|
778
|
+
report("workflow_webhook_signature_invalid", problem.path === "" ? `${at}.signature` : `${at}.signature.${problem.path}`, problem.message);
|
|
792
779
|
valid = false;
|
|
793
780
|
}
|
|
794
781
|
}
|
|
@@ -848,7 +835,7 @@ function resolveWebhookTrigger(trigger, at, scope) {
|
|
|
848
835
|
description: trigger.description,
|
|
849
836
|
...(trigger.signature === undefined
|
|
850
837
|
? {}
|
|
851
|
-
: { signature:
|
|
838
|
+
: { signature: webhookSignatureManifest(trigger.signature) }),
|
|
852
839
|
...(trigger.verification === undefined ? {} : { verification: { ...trigger.verification } }),
|
|
853
840
|
...(listed.length === 0 ? {} : { headers: [...listed] }),
|
|
854
841
|
...(trigger.connection === undefined ? {} : { connection: trigger.connection.key }),
|
package/dist/app-feedback.js
CHANGED
|
@@ -118,7 +118,7 @@ export const AppFeedback = entity("app_feedback", {
|
|
|
118
118
|
acknowledge: action({
|
|
119
119
|
description: "Record that the member has been told the builders' response to their own feedback, passing " +
|
|
120
120
|
"the responded_at of the response you reported. When they ask about their feedback, find " +
|
|
121
|
-
|
|
121
|
+
'their own items (where {"reporter": {"$me": []}}), tell them what was done, then call ' +
|
|
122
122
|
"this. " +
|
|
123
123
|
"acknowledged is false when there is no such response, as when the builders answered again " +
|
|
124
124
|
"meanwhile: read the item again and report the newer response.",
|
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export type { Role, RoleOptions, RolePermission } from "./role.js";
|
|
|
46
46
|
export type { FeedbackOptions, ResolvedFeedback } from "./feedback-config.js";
|
|
47
47
|
export { after, changed, cron, cronNeverFires, cronProblem, isWorkflow, isWorkflowTrigger, MAX_ACTION_TRIGGERS, MAX_WORKFLOWS, nextCronTime, webhook, workflow, } from "./workflow.js";
|
|
48
48
|
export { MAX_WEBHOOK_BODY_BYTES, MAX_META_WEBHOOK_BODY_BYTES, MAX_WEBHOOK_HEADERS, MAX_WEBHOOKS, WEBHOOK_BASE_PATH, WEBHOOK_SIGNATURE_SCHEMES, webhookDelivery, webhookHeaderProblem, webhookPath, } from "./webhooks.js";
|
|
49
|
-
export type { WebhookDelivery, WebhookSignatureScheme } from "./webhooks.js";
|
|
49
|
+
export type { WebhookDelivery, WebhookHmacFormat, WebhookSignatureScheme, WebhookSignedPart, } from "./webhooks.js";
|
|
50
50
|
export type { ActionEvent, ActionTrigger, AfterOptions, AnyActionHandle, AnyWorkflow, ChangedBounds, CronOptions, CronProblem, CronTrigger, TriggerFunction, TriggerRecord, WebhookOptions, WebhookSignature, WebhookVerification, WebhookTrigger, Workflow, WorkflowFunction, WorkflowOptions, WorkflowRunContext, WorkflowTrigger, } from "./workflow.js";
|
|
51
51
|
export { CHANNEL_PROVIDERS, DEFAULT_SIGN_IN_POLICY, SIGN_IN_METHODS, SIGN_IN_POLICIES, SIGN_UP_CHANNELS, GUEST_BOT_CHECK_SCHEMES, GUEST_CHANNELS, matchesWebsite, signUpOrigin, websiteOrigin, } from "./sign-in.js";
|
|
52
52
|
export type { ChannelProvider, GuestBotCheck, GuestBotCheckScheme, GuestChannel, GuestOptions, ResolvedGuest, ResolvedSignInOptions, ResolvedSignUp, SignInCheck, SignInMethod, SignInOptions, SignInPolicy, SignUpChannel, SignUpOptions, } from "./sign-in.js";
|
package/dist/manifest.d.ts
CHANGED
|
@@ -93,6 +93,9 @@ import { type ResolvedGuest, type ResolvedSignInOptions, type SignInPolicy } fro
|
|
|
93
93
|
* `roles` whose people's private chats the agent registers as `agent_chat` records of kind
|
|
94
94
|
* `private`, and in `takeover.channels` the channels whose chats staff may take over from the
|
|
95
95
|
* agent. Older readers ignore it, register none and let none be taken over.
|
|
96
|
+
* Within version 15, a webhook trigger's `signature` may have scheme `hmac` and carry the provider's
|
|
97
|
+
* format, written only when declared. Older readers present the scheme and ignore the format; an
|
|
98
|
+
* older publication check refuses the scheme.
|
|
96
99
|
*/
|
|
97
100
|
export declare const MANIFEST_VERSION = 15;
|
|
98
101
|
/** The phrase used for a direction the author did not phrase. */
|
|
@@ -467,7 +470,8 @@ export type ActionTriggerManifest = typeof ActionTriggerManifest.Type;
|
|
|
467
470
|
* scheme against the named workspace secret; without it, the URL ends in a derived token.
|
|
468
471
|
* `verification` opts into a registration handshake; `headers` lists the request headers the
|
|
469
472
|
* delivery carries; `connection` names the connection whose provider sends to it. Optional
|
|
470
|
-
* settings are written only when declared.
|
|
473
|
+
* settings are written only when declared. A signature of scheme `hmac` carries its format:
|
|
474
|
+
* `algorithm`, `encoding`, `key`, `signatures`, `timestamp` and `message`.
|
|
471
475
|
*/
|
|
472
476
|
export declare const WebhookTriggerManifest: Schema.Struct<{
|
|
473
477
|
readonly kind: Schema.Literal<"webhook">;
|
|
@@ -476,6 +480,34 @@ export declare const WebhookTriggerManifest: Schema.Struct<{
|
|
|
476
480
|
readonly signature: Schema.optionalKey<Schema.Struct<{
|
|
477
481
|
readonly scheme: Schema.String;
|
|
478
482
|
readonly secret: Schema.String;
|
|
483
|
+
readonly algorithm: Schema.optionalKey<Schema.String>;
|
|
484
|
+
readonly encoding: Schema.optionalKey<Schema.String>;
|
|
485
|
+
readonly key: Schema.optionalKey<Schema.Struct<{
|
|
486
|
+
readonly decode: Schema.String;
|
|
487
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
488
|
+
}>>;
|
|
489
|
+
readonly signatures: Schema.optionalKey<Schema.Struct<{
|
|
490
|
+
readonly header: Schema.String;
|
|
491
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
492
|
+
readonly entries: Schema.optionalKey<Schema.Struct<{
|
|
493
|
+
readonly separator: Schema.String;
|
|
494
|
+
readonly assign: Schema.String;
|
|
495
|
+
readonly name: Schema.String;
|
|
496
|
+
}>>;
|
|
497
|
+
}>>;
|
|
498
|
+
readonly timestamp: Schema.optionalKey<Schema.Struct<{
|
|
499
|
+
readonly header: Schema.optionalKey<Schema.String>;
|
|
500
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
501
|
+
readonly unit: Schema.optionalKey<Schema.String>;
|
|
502
|
+
readonly tolerance: Schema.optionalKey<Schema.Number>;
|
|
503
|
+
}>>;
|
|
504
|
+
readonly message: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
505
|
+
readonly body: Schema.Literal<true>;
|
|
506
|
+
}>, Schema.Struct<{
|
|
507
|
+
readonly header: Schema.String;
|
|
508
|
+
}>, Schema.Struct<{
|
|
509
|
+
readonly timestamp: Schema.Literal<true>;
|
|
510
|
+
}>]>>>;
|
|
479
511
|
}>>;
|
|
480
512
|
readonly verification: Schema.optionalKey<Schema.Struct<{
|
|
481
513
|
readonly scheme: Schema.String;
|
|
@@ -516,6 +548,34 @@ export declare const WorkflowTriggerManifest: Schema.Union<readonly [Schema.Stru
|
|
|
516
548
|
readonly signature: Schema.optionalKey<Schema.Struct<{
|
|
517
549
|
readonly scheme: Schema.String;
|
|
518
550
|
readonly secret: Schema.String;
|
|
551
|
+
readonly algorithm: Schema.optionalKey<Schema.String>;
|
|
552
|
+
readonly encoding: Schema.optionalKey<Schema.String>;
|
|
553
|
+
readonly key: Schema.optionalKey<Schema.Struct<{
|
|
554
|
+
readonly decode: Schema.String;
|
|
555
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
556
|
+
}>>;
|
|
557
|
+
readonly signatures: Schema.optionalKey<Schema.Struct<{
|
|
558
|
+
readonly header: Schema.String;
|
|
559
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
560
|
+
readonly entries: Schema.optionalKey<Schema.Struct<{
|
|
561
|
+
readonly separator: Schema.String;
|
|
562
|
+
readonly assign: Schema.String;
|
|
563
|
+
readonly name: Schema.String;
|
|
564
|
+
}>>;
|
|
565
|
+
}>>;
|
|
566
|
+
readonly timestamp: Schema.optionalKey<Schema.Struct<{
|
|
567
|
+
readonly header: Schema.optionalKey<Schema.String>;
|
|
568
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
569
|
+
readonly unit: Schema.optionalKey<Schema.String>;
|
|
570
|
+
readonly tolerance: Schema.optionalKey<Schema.Number>;
|
|
571
|
+
}>>;
|
|
572
|
+
readonly message: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
573
|
+
readonly body: Schema.Literal<true>;
|
|
574
|
+
}>, Schema.Struct<{
|
|
575
|
+
readonly header: Schema.String;
|
|
576
|
+
}>, Schema.Struct<{
|
|
577
|
+
readonly timestamp: Schema.Literal<true>;
|
|
578
|
+
}>]>>>;
|
|
519
579
|
}>>;
|
|
520
580
|
readonly verification: Schema.optionalKey<Schema.Struct<{
|
|
521
581
|
readonly scheme: Schema.String;
|
|
@@ -563,6 +623,34 @@ export declare const WorkflowManifest: Schema.Struct<{
|
|
|
563
623
|
readonly signature: Schema.optionalKey<Schema.Struct<{
|
|
564
624
|
readonly scheme: Schema.String;
|
|
565
625
|
readonly secret: Schema.String;
|
|
626
|
+
readonly algorithm: Schema.optionalKey<Schema.String>;
|
|
627
|
+
readonly encoding: Schema.optionalKey<Schema.String>;
|
|
628
|
+
readonly key: Schema.optionalKey<Schema.Struct<{
|
|
629
|
+
readonly decode: Schema.String;
|
|
630
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
631
|
+
}>>;
|
|
632
|
+
readonly signatures: Schema.optionalKey<Schema.Struct<{
|
|
633
|
+
readonly header: Schema.String;
|
|
634
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
635
|
+
readonly entries: Schema.optionalKey<Schema.Struct<{
|
|
636
|
+
readonly separator: Schema.String;
|
|
637
|
+
readonly assign: Schema.String;
|
|
638
|
+
readonly name: Schema.String;
|
|
639
|
+
}>>;
|
|
640
|
+
}>>;
|
|
641
|
+
readonly timestamp: Schema.optionalKey<Schema.Struct<{
|
|
642
|
+
readonly header: Schema.optionalKey<Schema.String>;
|
|
643
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
644
|
+
readonly unit: Schema.optionalKey<Schema.String>;
|
|
645
|
+
readonly tolerance: Schema.optionalKey<Schema.Number>;
|
|
646
|
+
}>>;
|
|
647
|
+
readonly message: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
648
|
+
readonly body: Schema.Literal<true>;
|
|
649
|
+
}>, Schema.Struct<{
|
|
650
|
+
readonly header: Schema.String;
|
|
651
|
+
}>, Schema.Struct<{
|
|
652
|
+
readonly timestamp: Schema.Literal<true>;
|
|
653
|
+
}>]>>>;
|
|
566
654
|
}>>;
|
|
567
655
|
readonly verification: Schema.optionalKey<Schema.Struct<{
|
|
568
656
|
readonly scheme: Schema.String;
|
|
@@ -1239,6 +1327,34 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
|
|
|
1239
1327
|
readonly signature: Schema.optionalKey<Schema.Struct<{
|
|
1240
1328
|
readonly scheme: Schema.String;
|
|
1241
1329
|
readonly secret: Schema.String;
|
|
1330
|
+
readonly algorithm: Schema.optionalKey<Schema.String>;
|
|
1331
|
+
readonly encoding: Schema.optionalKey<Schema.String>;
|
|
1332
|
+
readonly key: Schema.optionalKey<Schema.Struct<{
|
|
1333
|
+
readonly decode: Schema.String;
|
|
1334
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
1335
|
+
}>>;
|
|
1336
|
+
readonly signatures: Schema.optionalKey<Schema.Struct<{
|
|
1337
|
+
readonly header: Schema.String;
|
|
1338
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
1339
|
+
readonly entries: Schema.optionalKey<Schema.Struct<{
|
|
1340
|
+
readonly separator: Schema.String;
|
|
1341
|
+
readonly assign: Schema.String;
|
|
1342
|
+
readonly name: Schema.String;
|
|
1343
|
+
}>>;
|
|
1344
|
+
}>>;
|
|
1345
|
+
readonly timestamp: Schema.optionalKey<Schema.Struct<{
|
|
1346
|
+
readonly header: Schema.optionalKey<Schema.String>;
|
|
1347
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
1348
|
+
readonly unit: Schema.optionalKey<Schema.String>;
|
|
1349
|
+
readonly tolerance: Schema.optionalKey<Schema.Number>;
|
|
1350
|
+
}>>;
|
|
1351
|
+
readonly message: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1352
|
+
readonly body: Schema.Literal<true>;
|
|
1353
|
+
}>, Schema.Struct<{
|
|
1354
|
+
readonly header: Schema.String;
|
|
1355
|
+
}>, Schema.Struct<{
|
|
1356
|
+
readonly timestamp: Schema.Literal<true>;
|
|
1357
|
+
}>]>>>;
|
|
1242
1358
|
}>>;
|
|
1243
1359
|
readonly verification: Schema.optionalKey<Schema.Struct<{
|
|
1244
1360
|
readonly scheme: Schema.String;
|
|
@@ -1455,8 +1571,8 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1455
1571
|
};
|
|
1456
1572
|
} | undefined;
|
|
1457
1573
|
readonly attribution?: {
|
|
1458
|
-
readonly template?: string | undefined;
|
|
1459
1574
|
readonly separator?: string | undefined;
|
|
1575
|
+
readonly template?: string | undefined;
|
|
1460
1576
|
} | undefined;
|
|
1461
1577
|
} | undefined;
|
|
1462
1578
|
readonly workflows?: readonly {
|
|
@@ -1488,6 +1604,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1488
1604
|
readonly signature?: {
|
|
1489
1605
|
readonly scheme: string;
|
|
1490
1606
|
readonly secret: string;
|
|
1607
|
+
readonly message?: readonly (string | {
|
|
1608
|
+
readonly body: true;
|
|
1609
|
+
} | {
|
|
1610
|
+
readonly header: string;
|
|
1611
|
+
} | {
|
|
1612
|
+
readonly timestamp: true;
|
|
1613
|
+
})[] | undefined;
|
|
1614
|
+
readonly key?: {
|
|
1615
|
+
readonly decode: string;
|
|
1616
|
+
readonly prefix?: string | undefined;
|
|
1617
|
+
} | undefined;
|
|
1618
|
+
readonly timestamp?: {
|
|
1619
|
+
readonly unit?: string | undefined;
|
|
1620
|
+
readonly entry?: string | undefined;
|
|
1621
|
+
readonly tolerance?: number | undefined;
|
|
1622
|
+
readonly header?: string | undefined;
|
|
1623
|
+
} | undefined;
|
|
1624
|
+
readonly algorithm?: string | undefined;
|
|
1625
|
+
readonly encoding?: string | undefined;
|
|
1626
|
+
readonly signatures?: {
|
|
1627
|
+
readonly header: string;
|
|
1628
|
+
readonly entries?: {
|
|
1629
|
+
readonly separator: string;
|
|
1630
|
+
readonly assign: string;
|
|
1631
|
+
readonly name: string;
|
|
1632
|
+
} | undefined;
|
|
1633
|
+
readonly prefix?: string | undefined;
|
|
1634
|
+
} | undefined;
|
|
1491
1635
|
} | undefined;
|
|
1492
1636
|
readonly verification?: {
|
|
1493
1637
|
readonly scheme: string;
|
|
@@ -1775,8 +1919,8 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1775
1919
|
};
|
|
1776
1920
|
} | undefined;
|
|
1777
1921
|
readonly attribution?: {
|
|
1778
|
-
readonly template?: string | undefined;
|
|
1779
1922
|
readonly separator?: string | undefined;
|
|
1923
|
+
readonly template?: string | undefined;
|
|
1780
1924
|
} | undefined;
|
|
1781
1925
|
} | undefined;
|
|
1782
1926
|
readonly workflows?: readonly {
|
|
@@ -1808,6 +1952,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1808
1952
|
readonly signature?: {
|
|
1809
1953
|
readonly scheme: string;
|
|
1810
1954
|
readonly secret: string;
|
|
1955
|
+
readonly message?: readonly (string | {
|
|
1956
|
+
readonly body: true;
|
|
1957
|
+
} | {
|
|
1958
|
+
readonly header: string;
|
|
1959
|
+
} | {
|
|
1960
|
+
readonly timestamp: true;
|
|
1961
|
+
})[] | undefined;
|
|
1962
|
+
readonly key?: {
|
|
1963
|
+
readonly decode: string;
|
|
1964
|
+
readonly prefix?: string | undefined;
|
|
1965
|
+
} | undefined;
|
|
1966
|
+
readonly timestamp?: {
|
|
1967
|
+
readonly unit?: string | undefined;
|
|
1968
|
+
readonly entry?: string | undefined;
|
|
1969
|
+
readonly tolerance?: number | undefined;
|
|
1970
|
+
readonly header?: string | undefined;
|
|
1971
|
+
} | undefined;
|
|
1972
|
+
readonly algorithm?: string | undefined;
|
|
1973
|
+
readonly encoding?: string | undefined;
|
|
1974
|
+
readonly signatures?: {
|
|
1975
|
+
readonly header: string;
|
|
1976
|
+
readonly entries?: {
|
|
1977
|
+
readonly separator: string;
|
|
1978
|
+
readonly assign: string;
|
|
1979
|
+
readonly name: string;
|
|
1980
|
+
} | undefined;
|
|
1981
|
+
readonly prefix?: string | undefined;
|
|
1982
|
+
} | undefined;
|
|
1811
1983
|
} | undefined;
|
|
1812
1984
|
readonly verification?: {
|
|
1813
1985
|
readonly scheme: string;
|
|
@@ -2095,8 +2267,8 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2095
2267
|
};
|
|
2096
2268
|
} | undefined;
|
|
2097
2269
|
readonly attribution?: {
|
|
2098
|
-
readonly template?: string | undefined;
|
|
2099
2270
|
readonly separator?: string | undefined;
|
|
2271
|
+
readonly template?: string | undefined;
|
|
2100
2272
|
} | undefined;
|
|
2101
2273
|
} | undefined;
|
|
2102
2274
|
readonly workflows?: readonly {
|
|
@@ -2130,6 +2302,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2130
2302
|
readonly signature?: {
|
|
2131
2303
|
readonly scheme: string;
|
|
2132
2304
|
readonly secret: string;
|
|
2305
|
+
readonly message?: readonly (string | {
|
|
2306
|
+
readonly body: true;
|
|
2307
|
+
} | {
|
|
2308
|
+
readonly header: string;
|
|
2309
|
+
} | {
|
|
2310
|
+
readonly timestamp: true;
|
|
2311
|
+
})[] | undefined;
|
|
2312
|
+
readonly key?: {
|
|
2313
|
+
readonly decode: string;
|
|
2314
|
+
readonly prefix?: string | undefined;
|
|
2315
|
+
} | undefined;
|
|
2316
|
+
readonly timestamp?: {
|
|
2317
|
+
readonly unit?: string | undefined;
|
|
2318
|
+
readonly entry?: string | undefined;
|
|
2319
|
+
readonly tolerance?: number | undefined;
|
|
2320
|
+
readonly header?: string | undefined;
|
|
2321
|
+
} | undefined;
|
|
2322
|
+
readonly algorithm?: string | undefined;
|
|
2323
|
+
readonly encoding?: string | undefined;
|
|
2324
|
+
readonly signatures?: {
|
|
2325
|
+
readonly header: string;
|
|
2326
|
+
readonly entries?: {
|
|
2327
|
+
readonly separator: string;
|
|
2328
|
+
readonly assign: string;
|
|
2329
|
+
readonly name: string;
|
|
2330
|
+
} | undefined;
|
|
2331
|
+
readonly prefix?: string | undefined;
|
|
2332
|
+
} | undefined;
|
|
2133
2333
|
} | undefined;
|
|
2134
2334
|
readonly verification?: {
|
|
2135
2335
|
readonly scheme: string;
|
|
@@ -2415,8 +2615,8 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2415
2615
|
};
|
|
2416
2616
|
} | undefined;
|
|
2417
2617
|
readonly attribution?: {
|
|
2418
|
-
readonly template?: string | undefined;
|
|
2419
2618
|
readonly separator?: string | undefined;
|
|
2619
|
+
readonly template?: string | undefined;
|
|
2420
2620
|
} | undefined;
|
|
2421
2621
|
} | undefined;
|
|
2422
2622
|
readonly workflows?: readonly {
|
|
@@ -2450,6 +2650,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2450
2650
|
readonly signature?: {
|
|
2451
2651
|
readonly scheme: string;
|
|
2452
2652
|
readonly secret: string;
|
|
2653
|
+
readonly message?: readonly (string | {
|
|
2654
|
+
readonly body: true;
|
|
2655
|
+
} | {
|
|
2656
|
+
readonly header: string;
|
|
2657
|
+
} | {
|
|
2658
|
+
readonly timestamp: true;
|
|
2659
|
+
})[] | undefined;
|
|
2660
|
+
readonly key?: {
|
|
2661
|
+
readonly decode: string;
|
|
2662
|
+
readonly prefix?: string | undefined;
|
|
2663
|
+
} | undefined;
|
|
2664
|
+
readonly timestamp?: {
|
|
2665
|
+
readonly unit?: string | undefined;
|
|
2666
|
+
readonly entry?: string | undefined;
|
|
2667
|
+
readonly tolerance?: number | undefined;
|
|
2668
|
+
readonly header?: string | undefined;
|
|
2669
|
+
} | undefined;
|
|
2670
|
+
readonly algorithm?: string | undefined;
|
|
2671
|
+
readonly encoding?: string | undefined;
|
|
2672
|
+
readonly signatures?: {
|
|
2673
|
+
readonly header: string;
|
|
2674
|
+
readonly entries?: {
|
|
2675
|
+
readonly separator: string;
|
|
2676
|
+
readonly assign: string;
|
|
2677
|
+
readonly name: string;
|
|
2678
|
+
} | undefined;
|
|
2679
|
+
readonly prefix?: string | undefined;
|
|
2680
|
+
} | undefined;
|
|
2453
2681
|
} | undefined;
|
|
2454
2682
|
readonly verification?: {
|
|
2455
2683
|
readonly scheme: string;
|
|
@@ -2968,6 +3196,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2968
3196
|
readonly signature: Schema.optionalKey<Schema.Struct<{
|
|
2969
3197
|
readonly scheme: Schema.String;
|
|
2970
3198
|
readonly secret: Schema.String;
|
|
3199
|
+
readonly algorithm: Schema.optionalKey<Schema.String>;
|
|
3200
|
+
readonly encoding: Schema.optionalKey<Schema.String>;
|
|
3201
|
+
readonly key: Schema.optionalKey<Schema.Struct<{
|
|
3202
|
+
readonly decode: Schema.String;
|
|
3203
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
3204
|
+
}>>;
|
|
3205
|
+
readonly signatures: Schema.optionalKey<Schema.Struct<{
|
|
3206
|
+
readonly header: Schema.String;
|
|
3207
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
3208
|
+
readonly entries: Schema.optionalKey<Schema.Struct<{
|
|
3209
|
+
readonly separator: Schema.String;
|
|
3210
|
+
readonly assign: Schema.String;
|
|
3211
|
+
readonly name: Schema.String;
|
|
3212
|
+
}>>;
|
|
3213
|
+
}>>;
|
|
3214
|
+
readonly timestamp: Schema.optionalKey<Schema.Struct<{
|
|
3215
|
+
readonly header: Schema.optionalKey<Schema.String>;
|
|
3216
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
3217
|
+
readonly unit: Schema.optionalKey<Schema.String>;
|
|
3218
|
+
readonly tolerance: Schema.optionalKey<Schema.Number>;
|
|
3219
|
+
}>>;
|
|
3220
|
+
readonly message: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3221
|
+
readonly body: Schema.Literal<true>;
|
|
3222
|
+
}>, Schema.Struct<{
|
|
3223
|
+
readonly header: Schema.String;
|
|
3224
|
+
}>, Schema.Struct<{
|
|
3225
|
+
readonly timestamp: Schema.Literal<true>;
|
|
3226
|
+
}>]>>>;
|
|
2971
3227
|
}>>;
|
|
2972
3228
|
readonly verification: Schema.optionalKey<Schema.Struct<{
|
|
2973
3229
|
readonly scheme: Schema.String;
|
|
@@ -3404,6 +3660,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3404
3660
|
readonly signature: Schema.optionalKey<Schema.Struct<{
|
|
3405
3661
|
readonly scheme: Schema.String;
|
|
3406
3662
|
readonly secret: Schema.String;
|
|
3663
|
+
readonly algorithm: Schema.optionalKey<Schema.String>;
|
|
3664
|
+
readonly encoding: Schema.optionalKey<Schema.String>;
|
|
3665
|
+
readonly key: Schema.optionalKey<Schema.Struct<{
|
|
3666
|
+
readonly decode: Schema.String;
|
|
3667
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
3668
|
+
}>>;
|
|
3669
|
+
readonly signatures: Schema.optionalKey<Schema.Struct<{
|
|
3670
|
+
readonly header: Schema.String;
|
|
3671
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
3672
|
+
readonly entries: Schema.optionalKey<Schema.Struct<{
|
|
3673
|
+
readonly separator: Schema.String;
|
|
3674
|
+
readonly assign: Schema.String;
|
|
3675
|
+
readonly name: Schema.String;
|
|
3676
|
+
}>>;
|
|
3677
|
+
}>>;
|
|
3678
|
+
readonly timestamp: Schema.optionalKey<Schema.Struct<{
|
|
3679
|
+
readonly header: Schema.optionalKey<Schema.String>;
|
|
3680
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
3681
|
+
readonly unit: Schema.optionalKey<Schema.String>;
|
|
3682
|
+
readonly tolerance: Schema.optionalKey<Schema.Number>;
|
|
3683
|
+
}>>;
|
|
3684
|
+
readonly message: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3685
|
+
readonly body: Schema.Literal<true>;
|
|
3686
|
+
}>, Schema.Struct<{
|
|
3687
|
+
readonly header: Schema.String;
|
|
3688
|
+
}>, Schema.Struct<{
|
|
3689
|
+
readonly timestamp: Schema.Literal<true>;
|
|
3690
|
+
}>]>>>;
|
|
3407
3691
|
}>>;
|
|
3408
3692
|
readonly verification: Schema.optionalKey<Schema.Struct<{
|
|
3409
3693
|
readonly scheme: Schema.String;
|
|
@@ -3612,8 +3896,8 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3612
3896
|
};
|
|
3613
3897
|
} | undefined;
|
|
3614
3898
|
readonly attribution?: {
|
|
3615
|
-
readonly template?: string | undefined;
|
|
3616
3899
|
readonly separator?: string | undefined;
|
|
3900
|
+
readonly template?: string | undefined;
|
|
3617
3901
|
} | undefined;
|
|
3618
3902
|
} | undefined;
|
|
3619
3903
|
readonly workflows?: readonly {
|
|
@@ -3645,6 +3929,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3645
3929
|
readonly signature?: {
|
|
3646
3930
|
readonly scheme: string;
|
|
3647
3931
|
readonly secret: string;
|
|
3932
|
+
readonly message?: readonly (string | {
|
|
3933
|
+
readonly body: true;
|
|
3934
|
+
} | {
|
|
3935
|
+
readonly header: string;
|
|
3936
|
+
} | {
|
|
3937
|
+
readonly timestamp: true;
|
|
3938
|
+
})[] | undefined;
|
|
3939
|
+
readonly key?: {
|
|
3940
|
+
readonly decode: string;
|
|
3941
|
+
readonly prefix?: string | undefined;
|
|
3942
|
+
} | undefined;
|
|
3943
|
+
readonly timestamp?: {
|
|
3944
|
+
readonly unit?: string | undefined;
|
|
3945
|
+
readonly entry?: string | undefined;
|
|
3946
|
+
readonly tolerance?: number | undefined;
|
|
3947
|
+
readonly header?: string | undefined;
|
|
3948
|
+
} | undefined;
|
|
3949
|
+
readonly algorithm?: string | undefined;
|
|
3950
|
+
readonly encoding?: string | undefined;
|
|
3951
|
+
readonly signatures?: {
|
|
3952
|
+
readonly header: string;
|
|
3953
|
+
readonly entries?: {
|
|
3954
|
+
readonly separator: string;
|
|
3955
|
+
readonly assign: string;
|
|
3956
|
+
readonly name: string;
|
|
3957
|
+
} | undefined;
|
|
3958
|
+
readonly prefix?: string | undefined;
|
|
3959
|
+
} | undefined;
|
|
3648
3960
|
} | undefined;
|
|
3649
3961
|
readonly verification?: {
|
|
3650
3962
|
readonly scheme: string;
|
|
@@ -3932,8 +4244,8 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3932
4244
|
};
|
|
3933
4245
|
} | undefined;
|
|
3934
4246
|
readonly attribution?: {
|
|
3935
|
-
readonly template?: string | undefined;
|
|
3936
4247
|
readonly separator?: string | undefined;
|
|
4248
|
+
readonly template?: string | undefined;
|
|
3937
4249
|
} | undefined;
|
|
3938
4250
|
} | undefined;
|
|
3939
4251
|
readonly workflows?: readonly {
|
|
@@ -3965,6 +4277,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3965
4277
|
readonly signature?: {
|
|
3966
4278
|
readonly scheme: string;
|
|
3967
4279
|
readonly secret: string;
|
|
4280
|
+
readonly message?: readonly (string | {
|
|
4281
|
+
readonly body: true;
|
|
4282
|
+
} | {
|
|
4283
|
+
readonly header: string;
|
|
4284
|
+
} | {
|
|
4285
|
+
readonly timestamp: true;
|
|
4286
|
+
})[] | undefined;
|
|
4287
|
+
readonly key?: {
|
|
4288
|
+
readonly decode: string;
|
|
4289
|
+
readonly prefix?: string | undefined;
|
|
4290
|
+
} | undefined;
|
|
4291
|
+
readonly timestamp?: {
|
|
4292
|
+
readonly unit?: string | undefined;
|
|
4293
|
+
readonly entry?: string | undefined;
|
|
4294
|
+
readonly tolerance?: number | undefined;
|
|
4295
|
+
readonly header?: string | undefined;
|
|
4296
|
+
} | undefined;
|
|
4297
|
+
readonly algorithm?: string | undefined;
|
|
4298
|
+
readonly encoding?: string | undefined;
|
|
4299
|
+
readonly signatures?: {
|
|
4300
|
+
readonly header: string;
|
|
4301
|
+
readonly entries?: {
|
|
4302
|
+
readonly separator: string;
|
|
4303
|
+
readonly assign: string;
|
|
4304
|
+
readonly name: string;
|
|
4305
|
+
} | undefined;
|
|
4306
|
+
readonly prefix?: string | undefined;
|
|
4307
|
+
} | undefined;
|
|
3968
4308
|
} | undefined;
|
|
3969
4309
|
readonly verification?: {
|
|
3970
4310
|
readonly scheme: string;
|
|
@@ -4258,8 +4598,8 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4258
4598
|
};
|
|
4259
4599
|
} | undefined;
|
|
4260
4600
|
readonly attribution?: {
|
|
4261
|
-
readonly template?: string | undefined;
|
|
4262
4601
|
readonly separator?: string | undefined;
|
|
4602
|
+
readonly template?: string | undefined;
|
|
4263
4603
|
} | undefined;
|
|
4264
4604
|
} | undefined;
|
|
4265
4605
|
readonly workflows?: readonly {
|
|
@@ -4291,6 +4631,34 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4291
4631
|
readonly signature?: {
|
|
4292
4632
|
readonly scheme: string;
|
|
4293
4633
|
readonly secret: string;
|
|
4634
|
+
readonly message?: readonly (string | {
|
|
4635
|
+
readonly body: true;
|
|
4636
|
+
} | {
|
|
4637
|
+
readonly header: string;
|
|
4638
|
+
} | {
|
|
4639
|
+
readonly timestamp: true;
|
|
4640
|
+
})[] | undefined;
|
|
4641
|
+
readonly key?: {
|
|
4642
|
+
readonly decode: string;
|
|
4643
|
+
readonly prefix?: string | undefined;
|
|
4644
|
+
} | undefined;
|
|
4645
|
+
readonly timestamp?: {
|
|
4646
|
+
readonly unit?: string | undefined;
|
|
4647
|
+
readonly entry?: string | undefined;
|
|
4648
|
+
readonly tolerance?: number | undefined;
|
|
4649
|
+
readonly header?: string | undefined;
|
|
4650
|
+
} | undefined;
|
|
4651
|
+
readonly algorithm?: string | undefined;
|
|
4652
|
+
readonly encoding?: string | undefined;
|
|
4653
|
+
readonly signatures?: {
|
|
4654
|
+
readonly header: string;
|
|
4655
|
+
readonly entries?: {
|
|
4656
|
+
readonly separator: string;
|
|
4657
|
+
readonly assign: string;
|
|
4658
|
+
readonly name: string;
|
|
4659
|
+
} | undefined;
|
|
4660
|
+
readonly prefix?: string | undefined;
|
|
4661
|
+
} | undefined;
|
|
4294
4662
|
} | undefined;
|
|
4295
4663
|
readonly verification?: {
|
|
4296
4664
|
readonly scheme: string;
|
|
@@ -4578,8 +4946,8 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4578
4946
|
};
|
|
4579
4947
|
} | undefined;
|
|
4580
4948
|
readonly attribution?: {
|
|
4581
|
-
readonly template?: string | undefined;
|
|
4582
4949
|
readonly separator?: string | undefined;
|
|
4950
|
+
readonly template?: string | undefined;
|
|
4583
4951
|
} | undefined;
|
|
4584
4952
|
} | undefined;
|
|
4585
4953
|
readonly workflows?: readonly {
|
|
@@ -4611,6 +4979,34 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4611
4979
|
readonly signature?: {
|
|
4612
4980
|
readonly scheme: string;
|
|
4613
4981
|
readonly secret: string;
|
|
4982
|
+
readonly message?: readonly (string | {
|
|
4983
|
+
readonly body: true;
|
|
4984
|
+
} | {
|
|
4985
|
+
readonly header: string;
|
|
4986
|
+
} | {
|
|
4987
|
+
readonly timestamp: true;
|
|
4988
|
+
})[] | undefined;
|
|
4989
|
+
readonly key?: {
|
|
4990
|
+
readonly decode: string;
|
|
4991
|
+
readonly prefix?: string | undefined;
|
|
4992
|
+
} | undefined;
|
|
4993
|
+
readonly timestamp?: {
|
|
4994
|
+
readonly unit?: string | undefined;
|
|
4995
|
+
readonly entry?: string | undefined;
|
|
4996
|
+
readonly tolerance?: number | undefined;
|
|
4997
|
+
readonly header?: string | undefined;
|
|
4998
|
+
} | undefined;
|
|
4999
|
+
readonly algorithm?: string | undefined;
|
|
5000
|
+
readonly encoding?: string | undefined;
|
|
5001
|
+
readonly signatures?: {
|
|
5002
|
+
readonly header: string;
|
|
5003
|
+
readonly entries?: {
|
|
5004
|
+
readonly separator: string;
|
|
5005
|
+
readonly assign: string;
|
|
5006
|
+
readonly name: string;
|
|
5007
|
+
} | undefined;
|
|
5008
|
+
readonly prefix?: string | undefined;
|
|
5009
|
+
} | undefined;
|
|
4614
5010
|
} | undefined;
|
|
4615
5011
|
readonly verification?: {
|
|
4616
5012
|
readonly scheme: string;
|