@constal/sdk 2.1.0 → 2.3.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/package.json +1 -1
- package/publish/api.json +1 -1
- package/publish/index.d.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constal/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Public TypeScript SDK for authoring Constal agents, integrations, policies, channels, and credential providers",
|
|
5
5
|
"keywords": ["constal", "agents", "integrations", "typescript", "sdk"],
|
|
6
6
|
"license": "UNLICENSED",
|
package/publish/api.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ interface IntegrationContext {
|
|
|
32
32
|
readonly config: unknown;
|
|
33
33
|
secret(slot: string): Promise<IntegrationSecret>;
|
|
34
34
|
state: IntegrationState;
|
|
35
|
+
/** Load one content-addressed artifact already admitted to this Resource invocation. */
|
|
36
|
+
load(ref: Ref, maximumBytes: number): Promise<ArrayBuffer>;
|
|
35
37
|
store(bytes: ArrayBuffer | string): Promise<Ref>;
|
|
36
38
|
audit(record: unknown): void;
|
|
37
39
|
egress(request: IntegrationEgressRequest): Promise<IntegrationEgressResponse>;
|
|
@@ -1569,6 +1571,8 @@ interface CommitOpts {
|
|
|
1569
1571
|
};
|
|
1570
1572
|
expectedHead?: FactRef;
|
|
1571
1573
|
deliver?: DeliveryMode;
|
|
1574
|
+
/** Explicitly public presentation delivered by the originating Channel when this Run was admitted through one. */
|
|
1575
|
+
presentation?: AwaitPresentation;
|
|
1572
1576
|
}
|
|
1573
1577
|
interface Cost {
|
|
1574
1578
|
accounting: {
|
|
@@ -1982,6 +1986,12 @@ interface CanonicalEventDraft<T = unknown> {
|
|
|
1982
1986
|
data: T;
|
|
1983
1987
|
occurredAt?: number;
|
|
1984
1988
|
deliver?: DeliveryMode;
|
|
1989
|
+
/** Channel-owned reply address pinned at admission; Agent input cannot replace it. */
|
|
1990
|
+
reply?: {
|
|
1991
|
+
destination: string;
|
|
1992
|
+
replyTo?: string;
|
|
1993
|
+
metadata?: Record<string, string | number | boolean>;
|
|
1994
|
+
};
|
|
1985
1995
|
}
|
|
1986
1996
|
interface IgnoredChannelEvent {
|
|
1987
1997
|
ignored: true;
|