@constal/sdk 2.1.0 → 2.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constal/sdk",
3
- "version": "2.1.0",
3
+ "version": "2.2.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@constal/sdk",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "exports": [
5
5
  "Action",
6
6
  "ActionPattern",
@@ -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>;