@datalayer/agent-runtimes 1.5.24 → 1.5.25

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.
@@ -11,6 +11,7 @@
11
11
  * @module portable/views
12
12
  */
13
13
  import type { ConversationItem, ConversationQuestion, ConversationState } from './conversation';
14
+ import type { ProtocolDisplay } from './displays';
14
15
  import { type PresenceState } from './presence';
15
16
  export type MessageItem = Extract<ConversationItem, {
16
17
  kind: 'message';
@@ -58,6 +59,27 @@ export type QuestionCardProps = {
58
59
  /** A form, answered by a settings change. */
59
60
  onForm: (values: Record<string, unknown>) => void;
60
61
  };
62
+ /**
63
+ * A protocol display under its tool row (MOBILE M-037): what it shows is
64
+ * `displayLine`'s and the display's own; what the person does goes out
65
+ * through the host — a sign-in page opened outside the conversation, an
66
+ * operation answered where approvals are, *I have signed in* said as their
67
+ * next message. Nothing is answered from the card itself.
68
+ */
69
+ export type ProtocolDisplayProps = {
70
+ display: ProtocolDisplay;
71
+ /** Open a sign-in page, `https` only, outside the conversation. */
72
+ onOpenSignIn: (url: string) => void;
73
+ /** Open the approval an operation stands for. */
74
+ onOpenApproval: (approvalId: string) => void;
75
+ /** The person says they signed in (`PAP_SIGN_IN_WORDS.checkMessage`). */
76
+ onSignedIn: (words: string) => void;
77
+ /**
78
+ * Open a Direct Conversation under the conversation a company answered in
79
+ * (`portable/direct`, MOBILE M-038); absent where none can be opened.
80
+ */
81
+ onOpenDirect?: (company: string, conversationId: string) => void;
82
+ };
61
83
  /** The line beside the application's face. */
62
84
  export type PresenceLineProps = {
63
85
  state: PresenceState;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Accounting",
3
3
  "description": "Answers requests for financial reports, such as open invoices, aged balances, a trial balance or a customer's ledger, from the Odoo books, which it only reads.",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "supportedInterfaces": [
6
6
  {
7
7
  "protocolBinding": "JSONRPC",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/agent-runtimes",
3
- "version": "1.5.24",
3
+ "version": "1.5.25",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  ".",