@oddington/sdk 0.1.68 → 0.1.69
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.
|
@@ -67,8 +67,9 @@ export { InboxOperationError } from '../../../shared/inbox-member-contract.js';
|
|
|
67
67
|
export type { InboxMember, InboxCurrent, InboxItem, QuestionWork, QuestionStatus, ActionStatus, QuestionSnapshot, QuestionAvailability, QuestionUnavailableReason, ResponseConsequence, LinkedAskSnapshot, AskUpdate, DigestReadConfirmation, RecipientCandidate, RecipientAddition, ResponseAcceptance, InboxAnswerInput, InboxSearchInput } from '../../../shared/inbox-member-types.js';
|
|
68
68
|
export type { RecordSelectionResult } from '../../../shared/record-selection.js';
|
|
69
69
|
export declare const inbox: import('../../../shared/inbox-member-types.js').InboxMember;
|
|
70
|
-
export type { File, FileInput, FileStorage, FileCreateInput, FileCreateOptions, FileEnrichment, FileEnrichOptions, FileEnrichResult, FileErrorCode, FileErrorDetail } from '../../../shared/files-contract.js';
|
|
70
|
+
export type { File, FileInput, FileStorage, FileCreateInput, FileCreateOptions, FileUpdate, FileEnrichment, FileEnrichOptions, FileEnrichResult, FileErrorCode, FileErrorDetail } from '../../../shared/files-contract.js';
|
|
71
71
|
export declare const files: {
|
|
72
|
+
update(id: string, changes: import('../../../shared/files-contract.js').FileUpdate): Promise<import('../../../shared/files-contract.js').File>;
|
|
72
73
|
create(input: import('../../../shared/files-contract.js').FileCreateInput, options?: import('../../../shared/files-contract.js').FileCreateOptions): Promise<import('../../../shared/files-contract.js').File>;
|
|
73
74
|
get(id: string): Promise<import('../../../shared/files-contract.js').File>;
|
|
74
75
|
upload(id: string): Promise<import('../../../shared/files-contract.js').File>;
|
|
@@ -12,6 +12,11 @@ export type FileCreateInput = {
|
|
|
12
12
|
export type FileCreateOptions = {
|
|
13
13
|
requestKey?: string;
|
|
14
14
|
};
|
|
15
|
+
export type FileUpdate = {
|
|
16
|
+
name?: string;
|
|
17
|
+
path?: string;
|
|
18
|
+
mediaType?: string;
|
|
19
|
+
};
|
|
15
20
|
export type FileEnrichment = {
|
|
16
21
|
mediaType: string;
|
|
17
22
|
size: number;
|
|
@@ -109,6 +114,8 @@ export declare function safeManagedFilePath(value: unknown): value is string;
|
|
|
109
114
|
export type OriginalMediaType = string;
|
|
110
115
|
export declare function declaredOriginalMediaType(value: unknown): string;
|
|
111
116
|
export declare function isCanonicalOriginalMediaType(value: unknown): value is string;
|
|
117
|
+
/** Updates admit only supplied mutable original metadata, using creation rules. */
|
|
118
|
+
export declare function parseFileUpdate(value: unknown): FileUpdate;
|
|
112
119
|
/** Private transport metadata: normalized material options exclude the request key and size declaration. */
|
|
113
120
|
export type FileCreateMetadata = {
|
|
114
121
|
name: string;
|