@oddington/sdk 0.1.25 → 0.1.27

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.
@@ -125,4 +125,5 @@ export type RoutineSchemaBuilders = {
125
125
  };
126
126
  export type RoutineFileSchema = (options?: {
127
127
  storage?: 'local' | 'remote';
128
+ path?: string;
128
129
  }) => RoutineSchema<File, false>;
@@ -30,6 +30,7 @@ export type AppValueSchema = {
30
30
  } | {
31
31
  type: 'file';
32
32
  storage?: 'local' | 'remote';
33
+ path?: string;
33
34
  };
34
35
  export type AppRoutineContract = {
35
36
  routine: string;
@@ -76,6 +76,7 @@ export type FileEnrichMetadata = {
76
76
  export declare function parseFileEnrichMetadata(value: unknown, maxBytes: number): FileEnrichMetadata;
77
77
  export declare function safeFileName(value: unknown): value is string;
78
78
  export declare function safeFilePath(value: unknown): value is string;
79
+ export declare function safeManagedFilePath(value: unknown): value is string;
79
80
  /** Private transport metadata: normalized material options exclude the request key and size declaration. */
80
81
  export declare const ORIGINAL_MEDIA_TYPES: readonly ['application/pdf', 'text/plain', 'text/markdown', 'application/json', 'image/png', 'image/jpeg'];
81
82
  export type OriginalMediaType = typeof ORIGINAL_MEDIA_TYPES[number];
@@ -1,5 +1,6 @@
1
1
  /** The bounded ask/digest contract. Authorization and durable effects belong to
2
2
  * the server; constructing a value here grants no publication authority. */
3
+ import { type File } from './files-contract.js';
3
4
  export type JsonValue = null | boolean | number | string | JsonValue[] | JsonObject;
4
5
  export type JsonObject = {
5
6
  [key: string]: JsonValue;
@@ -303,7 +304,9 @@ export declare function recordsBlock(value: Omit<Extract<InboxBlock, {
303
304
  }>;
304
305
  export declare function fileBlock(value: Omit<Extract<InboxBlock, {
305
306
  kind: 'files';
306
- }>, 'kind'>): Extract<InboxBlock, {
307
+ }>, 'kind' | 'files'> & {
308
+ files: Array<File | InboxFile>;
309
+ }): Extract<InboxBlock, {
307
310
  kind: 'files';
308
311
  }>;
309
312
  export declare function asksBlock(value: Omit<Extract<InboxBlock, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oddington/sdk",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "description": "OS routine and response-handler SDK",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",