@oddington/sdk 0.1.19 → 0.1.20

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.
@@ -44,6 +44,7 @@ export declare class AppRoutineContractError extends Error {
44
44
  readonly code: 'invalid_contract' | 'invalid_value';
45
45
  constructor(code: 'invalid_contract' | 'invalid_value');
46
46
  }
47
+ export declare function isAppRoutineName(value: unknown): value is string;
47
48
  /** One operation owns the property budget across input, result and all summaries. */
48
49
  export declare function parseAppRoutineContract(value: unknown): AppRoutineContract;
49
50
  export declare function validateRoutineSchemaValue(schema: AppValueSchema, value: unknown): void;
@@ -11,8 +11,8 @@ export declare const INBOX_LOCAL_INPUT_BYTES: number;
11
11
  export declare const INBOX_UUID: RegExp;
12
12
  export type InboxOperation = 'current' | 'items.list' | 'items.read' | 'items.see' | 'items.markDigestRead' | 'items.rename' | 'items.setLifecycle' | 'items.listRecipientCandidates' | 'items.addRecipient' | 'questions.list' | 'questions.answer' | 'questions.searchRecords' | 'files.read';
13
13
  export declare function isAppQuestionOperation(operation: InboxOperation): boolean;
14
- /** Closed wire vocabulary, shared by the SDK and its owning Worker. */
15
- export declare function parseInboxRequest(value: unknown): {
14
+ /** Closed wire vocabulary. Hosts select the listing mode; input cannot select it. */
15
+ export declare function parseInboxRequest(value: unknown, questionListContext?: 'local' | 'hosted'): {
16
16
  operation: InboxOperation;
17
17
  input: Record<string, unknown>;
18
18
  };
@@ -161,6 +161,10 @@ export type InboxSearchInput = ItemRevision & {
161
161
  query: string;
162
162
  selected?: RecordReference;
163
163
  };
164
+ /** Hosted listing relevance only; local listing uses its bound declaration. */
165
+ export type InboxQuestionListInput = {
166
+ routines: readonly string[];
167
+ };
164
168
  export interface InboxMember {
165
169
  current(): Promise<InboxCurrent>;
166
170
  items: {
@@ -181,7 +185,7 @@ export interface InboxMember {
181
185
  }): Promise<RecipientAddition>;
182
186
  };
183
187
  questions: {
184
- list(): Promise<AnswerableQuestion[]>;
188
+ list(input?: InboxQuestionListInput): Promise<AnswerableQuestion[]>;
185
189
  answer(input: InboxAnswerInput): Promise<ResponseAcceptance>;
186
190
  searchRecords(input: InboxSearchInput): Promise<RecordSelectionResult>;
187
191
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oddington/sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Oddington routine and response-handler SDK",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",