@oddington/sdk 0.1.72 → 0.1.74

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.
@@ -279,3 +279,19 @@ export type RoutinePublicationClient = {
279
279
  check(body: PublicationRequest): Promise<void>;
280
280
  };
281
281
  export declare function routinePublicationClient(options?: RoutinePublicationClientOptions): RoutinePublicationClient;
282
+ export type ApiClientOptions = {
283
+ workspace: string;
284
+ token: string;
285
+ };
286
+ export type ApiClient = {
287
+ inbox: {
288
+ checkDigest(value: DigestInput, options: {
289
+ requestKey: string;
290
+ }): Promise<void>;
291
+ publishDigest(value: DigestInput, options: {
292
+ requestKey: string;
293
+ }): Promise<PublishedDigest>;
294
+ };
295
+ };
296
+ /** Explicit API-client credentials for trusted server-side Digest publication. */
297
+ export declare function createClient(options: ApiClientOptions): ApiClient;
@@ -84,16 +84,19 @@ export type InboxBlock = {
84
84
  kind: 'record';
85
85
  label: string;
86
86
  record: QualifiedRecordRef;
87
+ fields?: string[];
87
88
  initiallyExpanded?: boolean;
88
89
  } | {
89
90
  kind: 'records';
90
91
  label: string;
91
92
  records: QualifiedRecordRef[];
93
+ previewCount?: number;
92
94
  initiallyExpanded?: boolean;
93
95
  } | {
94
96
  kind: 'files';
95
97
  label: string;
96
98
  files: InboxFile[];
99
+ previewCount?: number;
97
100
  initiallyExpanded?: boolean;
98
101
  } | {
99
102
  kind: 'asks';
@@ -310,6 +313,10 @@ export interface InboxPublicationTransport {
310
313
  resolution: ResolutionInput;
311
314
  }): Promise<void>;
312
315
  }
316
+ /** Shared Digest serialization for publication and its effect-free check. */
317
+ export declare function digestPublicationRequest(value: DigestInput, options: {
318
+ requestKey: string;
319
+ }): PublicationRequest;
313
320
  export declare function createInboxPublisher(transport: InboxPublicationTransport): {
314
321
  publishAsk(value: AskInput, options: {
315
322
  requestKey: string;
@@ -96,6 +96,7 @@ interface InboxItemSnapshot {
96
96
  title: string;
97
97
  description: string;
98
98
  author: string;
99
+ apiClientId?: string | null;
99
100
  revision: number;
100
101
  publishedAt: string;
101
102
  outcome: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oddington/sdk",
3
- "version": "0.1.72",
3
+ "version": "0.1.74",
4
4
  "description": "OS routine and response-handler SDK",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",