@oddington/sdk 0.1.73 → 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;
@@ -313,6 +313,10 @@ export interface InboxPublicationTransport {
313
313
  resolution: ResolutionInput;
314
314
  }): Promise<void>;
315
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;
316
320
  export declare function createInboxPublisher(transport: InboxPublicationTransport): {
317
321
  publishAsk(value: AskInput, options: {
318
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.73",
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",