@anchrd/colab-sdk 0.1.44 → 0.1.46

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.
@@ -62,6 +62,7 @@ export declare const ConnectorManifestTool: z.ZodObject<{
62
62
  description: z.ZodString;
63
63
  writes: z.ZodBoolean;
64
64
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
65
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
66
  }, z.core.$strict>;
66
67
  export type ConnectorManifestTool = z.infer<typeof ConnectorManifestTool>;
67
68
  export declare const ConnectorManifest: z.ZodObject<{
@@ -114,6 +115,7 @@ export declare const ConnectorManifest: z.ZodObject<{
114
115
  description: z.ZodString;
115
116
  writes: z.ZodBoolean;
116
117
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
118
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
119
  }, z.core.$strict>>>;
118
120
  }, z.core.$strict>;
119
121
  export type ConnectorManifest = z.infer<typeof ConnectorManifest>;
@@ -466,6 +468,7 @@ export declare const ConnectorDetail: z.ZodObject<{
466
468
  description: z.ZodString;
467
469
  writes: z.ZodBoolean;
468
470
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
471
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
469
472
  }, z.core.$strict>>>;
470
473
  }, z.core.$strict>>;
471
474
  files: z.ZodArray<z.ZodObject<{
@@ -82,6 +82,13 @@ export const ConnectorManifestTool = z.strictObject({
82
82
  writes: z.boolean(),
83
83
  // A JSON Schema of an object without further keys (`additionalProperties: false`).
84
84
  input: z.record(z.string(), z.unknown()),
85
+ // The fields of `input` that carry the id of a file in Colab (E248, #1158): Colab reads each with
86
+ // the caller's rights before the code runs and hands it over as `files.<field>`.
87
+ files: z
88
+ .array(z.string().regex(/^[A-Za-z][A-Za-z0-9]*$/))
89
+ .min(1)
90
+ .max(10)
91
+ .optional(),
85
92
  });
86
93
  // `connector.json`. Strict although it is a file: a misspelt key must be refused, not dropped.
87
94
  export const ConnectorManifest = z.strictObject({
@@ -46,6 +46,8 @@ export declare const resources: {
46
46
  readonly organisation: "organisations";
47
47
  readonly home: "homes";
48
48
  readonly job: "jobs";
49
+ readonly type: "types";
50
+ readonly relation: "relations";
49
51
  };
50
52
  export declare const actions: readonly ["list", "get", "create", "update", "archive", "restore", "purge"];
51
53
  export declare const verbs: readonly ["invite", "resend", "disable", "enable", "rotate", "share", "move", "start", "complete", "test", "revoke", "remove", "unlock", "publish", "schedule", "unpublish", "cancel", "describe"];
@@ -101,6 +101,13 @@ export const resources = {
101
101
  // how far it is, `_list` the person's jobs still running. Only a person in the browser starts or
102
102
  // reads one; no AI (D124). Decided by the orchestrator.
103
103
  job: "jobs",
104
+ // The ontology (#1124, E250): a type describes what something is (an object, a relation, an action
105
+ // or an actor), `intelligence_type_*`, and changing types is a right of its own
106
+ // (`intelligence / type / update`). A relation connects two things, computed from a rule or set by
107
+ // somebody, `intelligence_relation_*`; "Beziehung" in the UI. Not `link`, which is the public link.
108
+ // Both named by the ticket.
109
+ type: "types",
110
+ relation: "relations",
104
111
  };
105
112
  // The closed list of actions with a route of their own shape.
106
113
  export const actions = ["list", "get", "create", "update", "archive", "restore", "purge"];