@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.
- package/README.md +5 -3
- package/dist/browser.js +131 -110
- package/dist/index.js +4 -4
- package/dist/types/packages/sdk/src/routine-definition-types.d.ts +1 -0
- package/dist/types/shared/app-routine-contract.d.ts +1 -0
- package/dist/types/shared/files-contract.d.ts +1 -0
- package/dist/types/shared/inbox-contract.d.ts +4 -1
- package/package.json +1 -1
|
@@ -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'>
|
|
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, {
|