@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;
|