@anchrd/colab-sdk 0.1.4 → 0.1.5

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.
@@ -108,6 +108,9 @@ export declare const RunItem: z.ZodObject<{
108
108
  values: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodNull]>>>;
109
109
  summaries: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
110
110
  reports: z.ZodNullable<z.ZodNumber>;
111
+ rights: z.ZodObject<{
112
+ complete: z.ZodBoolean;
113
+ }, z.core.$strict>;
111
114
  }, z.core.$strict>;
112
115
  export type RunItem = z.infer<typeof RunItem>;
113
116
  export declare const RunList: z.ZodObject<{
@@ -148,6 +151,9 @@ export declare const RunList: z.ZodObject<{
148
151
  values: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodNull]>>>;
149
152
  summaries: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
150
153
  reports: z.ZodNullable<z.ZodNumber>;
154
+ rights: z.ZodObject<{
155
+ complete: z.ZodBoolean;
156
+ }, z.core.$strict>;
151
157
  }, z.core.$strict>>;
152
158
  nextCursor: z.ZodNullable<z.ZodString>;
153
159
  }, z.core.$strict>;
@@ -240,5 +246,8 @@ export declare const RunDetail: z.ZodObject<{
240
246
  values: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodNull]>>>;
241
247
  summaries: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
242
248
  reports: z.ZodNullable<z.ZodNumber>;
249
+ rights: z.ZodObject<{
250
+ complete: z.ZodBoolean;
251
+ }, z.core.$strict>;
243
252
  }, z.core.$strict>;
244
253
  export type RunDetail = z.infer<typeof RunDetail>;
package/dist/runs/runs.js CHANGED
@@ -105,6 +105,10 @@ export const RunItem = z.strictObject({
105
105
  summaries: z.record(z.string(), z.string().nullable()).nullable(),
106
106
  // A dashboard's count of values and summaries that carry a report; null for a process (#164).
107
107
  reports: z.number().int().nullable(),
108
+ // `complete`: whether the caller may close this run with intelligence_run_complete, by the same
109
+ // check the tool makes (E107): write on a process board or dashboard; on the validation the holder
110
+ // of validator or an admin in admin mode. The UI shows "Lauf beenden" by it.
111
+ rights: z.strictObject({ complete: z.boolean() }),
108
112
  });
109
113
  export const RunList = z.strictObject({
110
114
  items: z.array(RunItem),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchrd/colab-sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Types, Zod schemas and the service client of Colab, the contract between its UI, backends and outside services.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",