@ziggs-ai/contracts 0.10.0 → 0.11.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.
@@ -98,6 +98,18 @@ export type AgreementRead = {
98
98
  listingPausedAt?: string | null;
99
99
  metadata: Record<string, unknown>;
100
100
  connectionRequest?: AgreementConnectionRequest;
101
+ grantRequest?: {
102
+ primitive?: "context";
103
+ kind?: "access-request" | "author-share";
104
+ holderId?: string;
105
+ scope?: {
106
+ kind: string;
107
+ id: string;
108
+ };
109
+ durationHours?: number;
110
+ reason?: string;
111
+ expiresAt?: string | null;
112
+ };
101
113
  createdAt: string;
102
114
  updatedAt: string;
103
115
  partyPresentations?: Record<string, unknown>;
@@ -21,6 +21,10 @@ export type ArtifactLinks = {
21
21
  agreementIds: Array<string>;
22
22
  taskIds: Array<string>;
23
23
  };
24
+ export type ArtifactExternalRef = {
25
+ provider: string;
26
+ url: string;
27
+ };
24
28
  export type ReachableArtifactEntry = {
25
29
  canManage?: boolean;
26
30
  artifactId: string;
@@ -43,6 +47,7 @@ export type ReachableArtifactEntry = {
43
47
  extractionError?: string | null;
44
48
  truncated?: boolean | null;
45
49
  extractedArtifactId?: string | null;
50
+ externalRef?: ArtifactExternalRef;
46
51
  };
47
52
  export type ListReachableArtifactsResult = {
48
53
  artifacts: Array<ReachableArtifactEntry>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/contracts",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "description": "Wire contracts for the Ziggs API — response shapes, error body, and socket events, shared by every client.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",