@opengeni/contracts 2.11.1-canary.0 → 2.13.0-canary.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.
@@ -1,5 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare const WORKSPACE_ARTIFACT_HTML_MAX_UTF8_BYTES: number;
3
+ export declare const WORKSPACE_ARTIFACT_SOURCE_MAX_UTF8_BYTES: number;
4
+ export declare const WORKSPACE_ARTIFACT_SOURCE_MAX_FILES = 128;
5
+ export declare const WORKSPACE_ARTIFACT_REQUESTED_TOOLS_MAX = 128;
3
6
  export declare const WORKSPACE_ARTIFACT_TITLE_MAX_CHARS = 120;
4
7
  export declare const WORKSPACE_ARTIFACT_DESCRIPTION_MAX_CHARS = 2000;
5
8
  export declare const WORKSPACE_ARTIFACT_LIST_MAX = 100;
@@ -12,6 +15,27 @@ export declare const WorkspaceArtifactStatus: z.ZodEnum<{
12
15
  archived: "archived";
13
16
  }>;
14
17
  export type WorkspaceArtifactStatus = z.infer<typeof WorkspaceArtifactStatus>;
18
+ export declare const WorkspaceArtifactSourcePath: z.ZodString;
19
+ export type WorkspaceArtifactSourcePath = z.infer<typeof WorkspaceArtifactSourcePath>;
20
+ export declare const WorkspaceArtifactSourceFile: z.ZodObject<{
21
+ path: z.ZodString;
22
+ content: z.ZodString;
23
+ }, z.core.$strict>;
24
+ export type WorkspaceArtifactSourceFile = z.infer<typeof WorkspaceArtifactSourceFile>;
25
+ /** Retained editable source; the published runtime remains one exact HTML document. */
26
+ export declare const WorkspaceArtifactSourceBundle: z.ZodObject<{
27
+ entrypoint: z.ZodString;
28
+ files: z.ZodArray<z.ZodObject<{
29
+ path: z.ZodString;
30
+ content: z.ZodString;
31
+ }, z.core.$strict>>;
32
+ }, z.core.$strict>;
33
+ export type WorkspaceArtifactSourceBundle = z.infer<typeof WorkspaceArtifactSourceBundle>;
34
+ export declare const WorkspaceArtifactRequestedTools: z.ZodArray<z.ZodObject<{
35
+ serverId: z.ZodString;
36
+ toolName: z.ZodString;
37
+ }, z.core.$strict>>;
38
+ export type WorkspaceArtifactRequestedTools = z.infer<typeof WorkspaceArtifactRequestedTools>;
15
39
  export declare const WorkspaceArtifactVersion: z.ZodObject<{
16
40
  id: z.ZodString;
17
41
  accountId: z.ZodString;
@@ -21,6 +45,12 @@ export declare const WorkspaceArtifactVersion: z.ZodObject<{
21
45
  contentType: z.ZodLiteral<"text/html">;
22
46
  contentSha256: z.ZodString;
23
47
  sizeBytes: z.ZodNumber;
48
+ sourceSha256: z.ZodNullable<z.ZodString>;
49
+ sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
50
+ requestedTools: z.ZodArray<z.ZodObject<{
51
+ serverId: z.ZodString;
52
+ toolName: z.ZodString;
53
+ }, z.core.$strict>>;
24
54
  sourceSessionId: z.ZodNullable<z.ZodString>;
25
55
  sourceTurnId: z.ZodNullable<z.ZodString>;
26
56
  sourceAttemptId: z.ZodNullable<z.ZodString>;
@@ -49,6 +79,12 @@ export declare const WorkspaceArtifact: z.ZodObject<{
49
79
  contentType: z.ZodLiteral<"text/html">;
50
80
  contentSha256: z.ZodString;
51
81
  sizeBytes: z.ZodNumber;
82
+ sourceSha256: z.ZodNullable<z.ZodString>;
83
+ sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
84
+ requestedTools: z.ZodArray<z.ZodObject<{
85
+ serverId: z.ZodString;
86
+ toolName: z.ZodString;
87
+ }, z.core.$strict>>;
52
88
  sourceSessionId: z.ZodNullable<z.ZodString>;
53
89
  sourceTurnId: z.ZodNullable<z.ZodString>;
54
90
  sourceAttemptId: z.ZodNullable<z.ZodString>;
@@ -62,7 +98,9 @@ export declare const WorkspaceArtifact: z.ZodObject<{
62
98
  }, z.core.$strip>;
63
99
  export type WorkspaceArtifact = z.infer<typeof WorkspaceArtifact>;
64
100
  export declare const WorkspaceArtifactEventType: z.ZodEnum<{
101
+ archived: "archived";
65
102
  published: "published";
103
+ restored: "restored";
66
104
  rolled_back: "rolled_back";
67
105
  }>;
68
106
  export type WorkspaceArtifactEventType = z.infer<typeof WorkspaceArtifactEventType>;
@@ -72,7 +110,9 @@ export declare const WorkspaceArtifactEvent: z.ZodObject<{
72
110
  workspaceId: z.ZodString;
73
111
  artifactId: z.ZodString;
74
112
  type: z.ZodEnum<{
113
+ archived: "archived";
75
114
  published: "published";
115
+ restored: "restored";
76
116
  rolled_back: "rolled_back";
77
117
  }>;
78
118
  fromVersionId: z.ZodNullable<z.ZodString>;
@@ -89,6 +129,10 @@ export type WorkspaceArtifactEvent = z.infer<typeof WorkspaceArtifactEvent>;
89
129
  export declare const WorkspaceArtifactListQuery: z.ZodObject<{
90
130
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
91
131
  cursor: z.ZodOptional<z.ZodString>;
132
+ status: z.ZodOptional<z.ZodEnum<{
133
+ active: "active";
134
+ archived: "archived";
135
+ }>>;
92
136
  }, z.core.$strip>;
93
137
  export type WorkspaceArtifactListQuery = z.infer<typeof WorkspaceArtifactListQuery>;
94
138
  export declare const WorkspaceArtifactListResponse: z.ZodObject<{
@@ -112,6 +156,12 @@ export declare const WorkspaceArtifactListResponse: z.ZodObject<{
112
156
  contentType: z.ZodLiteral<"text/html">;
113
157
  contentSha256: z.ZodString;
114
158
  sizeBytes: z.ZodNumber;
159
+ sourceSha256: z.ZodNullable<z.ZodString>;
160
+ sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
161
+ requestedTools: z.ZodArray<z.ZodObject<{
162
+ serverId: z.ZodString;
163
+ toolName: z.ZodString;
164
+ }, z.core.$strict>>;
115
165
  sourceSessionId: z.ZodNullable<z.ZodString>;
116
166
  sourceTurnId: z.ZodNullable<z.ZodString>;
117
167
  sourceAttemptId: z.ZodNullable<z.ZodString>;
@@ -148,6 +198,12 @@ export declare const WorkspaceArtifactDetailResponse: z.ZodObject<{
148
198
  contentType: z.ZodLiteral<"text/html">;
149
199
  contentSha256: z.ZodString;
150
200
  sizeBytes: z.ZodNumber;
201
+ sourceSha256: z.ZodNullable<z.ZodString>;
202
+ sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
203
+ requestedTools: z.ZodArray<z.ZodObject<{
204
+ serverId: z.ZodString;
205
+ toolName: z.ZodString;
206
+ }, z.core.$strict>>;
151
207
  sourceSessionId: z.ZodNullable<z.ZodString>;
152
208
  sourceTurnId: z.ZodNullable<z.ZodString>;
153
209
  sourceAttemptId: z.ZodNullable<z.ZodString>;
@@ -168,6 +224,12 @@ export declare const WorkspaceArtifactDetailResponse: z.ZodObject<{
168
224
  contentType: z.ZodLiteral<"text/html">;
169
225
  contentSha256: z.ZodString;
170
226
  sizeBytes: z.ZodNumber;
227
+ sourceSha256: z.ZodNullable<z.ZodString>;
228
+ sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
229
+ requestedTools: z.ZodArray<z.ZodObject<{
230
+ serverId: z.ZodString;
231
+ toolName: z.ZodString;
232
+ }, z.core.$strict>>;
171
233
  sourceSessionId: z.ZodNullable<z.ZodString>;
172
234
  sourceTurnId: z.ZodNullable<z.ZodString>;
173
235
  sourceAttemptId: z.ZodNullable<z.ZodString>;
@@ -181,7 +243,9 @@ export declare const WorkspaceArtifactDetailResponse: z.ZodObject<{
181
243
  workspaceId: z.ZodString;
182
244
  artifactId: z.ZodString;
183
245
  type: z.ZodEnum<{
246
+ archived: "archived";
184
247
  published: "published";
248
+ restored: "restored";
185
249
  rolled_back: "rolled_back";
186
250
  }>;
187
251
  fromVersionId: z.ZodNullable<z.ZodString>;
@@ -204,6 +268,17 @@ export declare const CreateWorkspaceArtifactRequest: z.ZodObject<{
204
268
  title: z.ZodString;
205
269
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
206
270
  html: z.ZodString;
271
+ source: z.ZodOptional<z.ZodObject<{
272
+ entrypoint: z.ZodString;
273
+ files: z.ZodArray<z.ZodObject<{
274
+ path: z.ZodString;
275
+ content: z.ZodString;
276
+ }, z.core.$strict>>;
277
+ }, z.core.$strict>>;
278
+ requestedTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
279
+ serverId: z.ZodString;
280
+ toolName: z.ZodString;
281
+ }, z.core.$strict>>>;
207
282
  idempotencyKey: z.ZodString;
208
283
  }, z.core.$strip>;
209
284
  export type CreateWorkspaceArtifactRequest = z.infer<typeof CreateWorkspaceArtifactRequest>;
@@ -211,6 +286,17 @@ export declare const PublishWorkspaceArtifactVersionRequest: z.ZodObject<{
211
286
  title: z.ZodOptional<z.ZodString>;
212
287
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
288
  html: z.ZodString;
289
+ source: z.ZodOptional<z.ZodObject<{
290
+ entrypoint: z.ZodString;
291
+ files: z.ZodArray<z.ZodObject<{
292
+ path: z.ZodString;
293
+ content: z.ZodString;
294
+ }, z.core.$strict>>;
295
+ }, z.core.$strict>>;
296
+ requestedTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
297
+ serverId: z.ZodString;
298
+ toolName: z.ZodString;
299
+ }, z.core.$strict>>>;
214
300
  expectedCurrentVersionId: z.ZodString;
215
301
  idempotencyKey: z.ZodString;
216
302
  }, z.core.$strip>;
@@ -222,6 +308,16 @@ export declare const RollbackWorkspaceArtifactRequest: z.ZodObject<{
222
308
  idempotencyKey: z.ZodString;
223
309
  }, z.core.$strip>;
224
310
  export type RollbackWorkspaceArtifactRequest = z.infer<typeof RollbackWorkspaceArtifactRequest>;
311
+ export declare const SetWorkspaceArtifactStatusRequest: z.ZodObject<{
312
+ status: z.ZodEnum<{
313
+ active: "active";
314
+ archived: "archived";
315
+ }>;
316
+ expectedCurrentVersionId: z.ZodString;
317
+ reason: z.ZodString;
318
+ idempotencyKey: z.ZodString;
319
+ }, z.core.$strip>;
320
+ export type SetWorkspaceArtifactStatusRequest = z.infer<typeof SetWorkspaceArtifactStatusRequest>;
225
321
  export declare const WorkspaceArtifactMutationResponse: z.ZodObject<{
226
322
  artifact: z.ZodObject<{
227
323
  id: z.ZodString;
@@ -243,6 +339,12 @@ export declare const WorkspaceArtifactMutationResponse: z.ZodObject<{
243
339
  contentType: z.ZodLiteral<"text/html">;
244
340
  contentSha256: z.ZodString;
245
341
  sizeBytes: z.ZodNumber;
342
+ sourceSha256: z.ZodNullable<z.ZodString>;
343
+ sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
344
+ requestedTools: z.ZodArray<z.ZodObject<{
345
+ serverId: z.ZodString;
346
+ toolName: z.ZodString;
347
+ }, z.core.$strict>>;
246
348
  sourceSessionId: z.ZodNullable<z.ZodString>;
247
349
  sourceTurnId: z.ZodNullable<z.ZodString>;
248
350
  sourceAttemptId: z.ZodNullable<z.ZodString>;
@@ -263,6 +365,12 @@ export declare const WorkspaceArtifactMutationResponse: z.ZodObject<{
263
365
  contentType: z.ZodLiteral<"text/html">;
264
366
  contentSha256: z.ZodString;
265
367
  sizeBytes: z.ZodNumber;
368
+ sourceSha256: z.ZodNullable<z.ZodString>;
369
+ sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
370
+ requestedTools: z.ZodArray<z.ZodObject<{
371
+ serverId: z.ZodString;
372
+ toolName: z.ZodString;
373
+ }, z.core.$strict>>;
266
374
  sourceSessionId: z.ZodNullable<z.ZodString>;
267
375
  sourceTurnId: z.ZodNullable<z.ZodString>;
268
376
  sourceAttemptId: z.ZodNullable<z.ZodString>;
@@ -276,7 +384,9 @@ export declare const WorkspaceArtifactMutationResponse: z.ZodObject<{
276
384
  workspaceId: z.ZodString;
277
385
  artifactId: z.ZodString;
278
386
  type: z.ZodEnum<{
387
+ archived: "archived";
279
388
  published: "published";
389
+ restored: "restored";
280
390
  rolled_back: "rolled_back";
281
391
  }>;
282
392
  fromVersionId: z.ZodNullable<z.ZodString>;
@@ -298,6 +408,17 @@ export declare const WorkspaceArtifactContentResponse: z.ZodObject<{
298
408
  contentType: z.ZodLiteral<"text/html">;
299
409
  contentSha256: z.ZodString;
300
410
  html: z.ZodString;
411
+ source: z.ZodObject<{
412
+ entrypoint: z.ZodString;
413
+ files: z.ZodArray<z.ZodObject<{
414
+ path: z.ZodString;
415
+ content: z.ZodString;
416
+ }, z.core.$strict>>;
417
+ }, z.core.$strict>;
418
+ requestedTools: z.ZodArray<z.ZodObject<{
419
+ serverId: z.ZodString;
420
+ toolName: z.ZodString;
421
+ }, z.core.$strict>>;
301
422
  }, z.core.$strip>;
302
423
  export type WorkspaceArtifactContentResponse = z.infer<typeof WorkspaceArtifactContentResponse>;
303
424
  export declare function normalizeWorkspaceArtifactSlug(value: string): string;
package/dist/atlassian.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  AtlassianSyncCadence,
18
18
  SaveAtlassianSourcesRequest,
19
19
  atlassianScopesAllowRead
20
- } from "./chunk-6HOHS44G.js";
20
+ } from "./chunk-DPCCW6U7.js";
21
21
  import "./chunk-YBW5JSA3.js";
22
22
  import "./chunk-NPBM4QSK.js";
23
23
  import "./chunk-CM6BMECR.js";