@relaymessenger/sdk 0.3.6-staging.3 → 0.3.6-staging.31

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.
Files changed (76) hide show
  1. package/README.md +490 -20
  2. package/dist/a2ui.d.ts +79 -0
  3. package/dist/a2ui.d.ts.map +1 -0
  4. package/dist/a2ui.js +99 -0
  5. package/dist/a2ui.js.map +1 -0
  6. package/dist/buttons.d.ts +69 -0
  7. package/dist/buttons.d.ts.map +1 -0
  8. package/dist/buttons.js +141 -0
  9. package/dist/buttons.js.map +1 -0
  10. package/dist/calls/call-room.d.ts +110 -0
  11. package/dist/calls/call-room.d.ts.map +1 -0
  12. package/dist/calls/call-room.js +616 -0
  13. package/dist/calls/call-room.js.map +1 -0
  14. package/dist/calls/engine-werift-video.d.ts +70 -0
  15. package/dist/calls/engine-werift-video.d.ts.map +1 -0
  16. package/dist/calls/engine-werift-video.js +594 -0
  17. package/dist/calls/engine-werift-video.js.map +1 -0
  18. package/dist/calls/engine-werift.d.ts +48 -0
  19. package/dist/calls/engine-werift.d.ts.map +1 -0
  20. package/dist/calls/engine-werift.js +457 -0
  21. package/dist/calls/engine-werift.js.map +1 -0
  22. package/dist/calls/index.d.ts +11 -0
  23. package/dist/calls/index.d.ts.map +1 -0
  24. package/dist/calls/index.js +11 -0
  25. package/dist/calls/index.js.map +1 -0
  26. package/dist/calls/transport.d.ts +466 -0
  27. package/dist/calls/transport.d.ts.map +1 -0
  28. package/dist/calls/transport.js +1409 -0
  29. package/dist/calls/transport.js.map +1 -0
  30. package/dist/calls/video-frame.d.ts +56 -0
  31. package/dist/calls/video-frame.d.ts.map +1 -0
  32. package/dist/calls/video-frame.js +245 -0
  33. package/dist/calls/video-frame.js.map +1 -0
  34. package/dist/calls/video-rtp.d.ts +51 -0
  35. package/dist/calls/video-rtp.d.ts.map +1 -0
  36. package/dist/calls/video-rtp.js +294 -0
  37. package/dist/calls/video-rtp.js.map +1 -0
  38. package/dist/calls/video.d.ts +188 -0
  39. package/dist/calls/video.d.ts.map +1 -0
  40. package/dist/calls/video.js +228 -0
  41. package/dist/calls/video.js.map +1 -0
  42. package/dist/client.d.ts +134 -24
  43. package/dist/client.d.ts.map +1 -1
  44. package/dist/client.js +321 -33
  45. package/dist/client.js.map +1 -1
  46. package/dist/errors.d.ts +11 -0
  47. package/dist/errors.d.ts.map +1 -1
  48. package/dist/errors.js +16 -0
  49. package/dist/errors.js.map +1 -1
  50. package/dist/index.d.ts +8 -2
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +8 -2
  53. package/dist/index.js.map +1 -1
  54. package/dist/links.d.ts +57 -0
  55. package/dist/links.d.ts.map +1 -0
  56. package/dist/links.js +126 -0
  57. package/dist/links.js.map +1 -0
  58. package/dist/operations.d.ts +69 -25
  59. package/dist/operations.d.ts.map +1 -1
  60. package/dist/operations.js +94 -30
  61. package/dist/operations.js.map +1 -1
  62. package/dist/payment.d.ts +67 -0
  63. package/dist/payment.d.ts.map +1 -0
  64. package/dist/payment.js +147 -0
  65. package/dist/payment.js.map +1 -0
  66. package/dist/selection.d.ts +38 -0
  67. package/dist/selection.d.ts.map +1 -0
  68. package/dist/selection.js +132 -0
  69. package/dist/selection.js.map +1 -0
  70. package/dist/types.d.ts +960 -56
  71. package/dist/types.d.ts.map +1 -1
  72. package/dist/websocket.d.ts +8 -2
  73. package/dist/websocket.d.ts.map +1 -1
  74. package/dist/websocket.js +29 -10
  75. package/dist/websocket.js.map +1 -1
  76. package/package.json +38 -3
package/dist/index.d.ts CHANGED
@@ -1,9 +1,15 @@
1
- export { Agents, Attachments, BlockedHandles, Chats, Calls, CallConnections, ContactCard, Messages, Relay, WebSocket, WebhookEvents, WebhookSubscriptions, type RelayOptions, } from "./client.js";
2
- export { RelayAPIError, RelayWebhookConfiguredError, type RelayAPIErrorOptions, type RelayWebhookConfiguredErrorOptions, } from "./errors.js";
1
+ export { Agents, Attachments, BlockedHandles, Chats, Calls, Communities, CommunityMembers, ContactCard, Contacts, Me, Messages, PaymentRequests, Relay, Tasks, WebSocket, WebhookEvents, WebhookSubscriptions, type RelayOptions, } from "./client.js";
2
+ export { CallRoom, parseCallRoomServerFrame, type CallRoomCloseEvent, type CallRoomConnectionState, type CallRoomEventMap, type CallRoomOptions, type CallRoomReconnectingEvent, } from "./calls/call-room.js";
3
+ export { RelayAPIError, RelayUnknownEventTypeError, RelayWebhookConfiguredError, type RelayAPIErrorOptions, type RelayWebhookConfiguredErrorOptions, } from "./errors.js";
3
4
  export { RELAY_V1_OPERATIONS, RELAY_WEBHOOK_EVENT_TYPES, type RelayV1Operation, } from "./operations.js";
4
5
  export { ChatsPage, MessagesPage, RelayPage, type PageBody, } from "./pagination.js";
5
6
  export { Webhooks, WebhookVerificationError, signWebhookHeaders, verifyWebhookSignature, type WebhookHeaders, } from "./webhooks.js";
6
7
  export { runWebSocket, type WebSocketEventContext, type WebSocketFullSyncContext, type WebSocketRunOptions, type WebSocketConstructor, type WebSocketLike, } from "./websocket.js";
7
8
  export type * from "./types.js";
9
+ export { BUTTONS_BLOCK_INSTRUCTION, BUTTONS_FENCE, BUTTONS_GUIDANCE, BUTTONS_MAX_ITEMS, BUTTON_LABEL_MAX_LENGTH, BUTTON_URL_MAX_LENGTH, buttonsPart, parseButtonsBlock, partsWithButtons, splitButtons, type SplitButtons, } from "./buttons.js";
10
+ export { IDEMPOTENCY_KEY_MAX_LENGTH, LINK_LINE_INSTRUCTION, LINK_URL_MAX_LENGTH, answerMessages, indexedIdempotencyKey, splitLinks, standaloneLink, type AnswerMessages, type AnswerSegment, } from "./links.js";
11
+ export { PAYMENT_BLOCK_INSTRUCTION, PAYMENT_CATEGORIES, PAYMENT_DESCRIPTION_MAX_LENGTH, PAYMENT_FENCE, PAYMENT_GUIDANCE, PAYMENT_IMAGE_URL_MAX_LENGTH, createPaymentPart, parsePaymentBlock, paymentRequestFields, splitPayment, type SplitPayment, } from "./payment.js";
8
12
  export { Relay as default } from "./client.js";
13
+ export { SELECTION_BLOCK_INSTRUCTION, SELECTION_FENCE, SELECTION_GUIDANCE, SELECTION_MAX_OPTIONS, SELECTION_LABEL_MAX_LENGTH, SELECTION_VALUE_MAX_LENGTH, SELECTION_CONTEXT_MAX_LENGTH, componentParts, selectionPart, parseSelectionBlock, partsWithSelection, splitSelection, selectionReply, selectionReplyContext, type SelectionReply, type SplitSelection, } from "./selection.js";
14
+ export { A2UI_BASIC_CATALOG_ID, A2UI_MEDIA_TYPE, A2UI_VERSION, RELAY_A2UI_CATALOG_ID, a2uiPart, deleteA2uiSurface, readA2uiAction, sendA2uiSurface, updateA2uiSurface, type A2uiSendOptions, type A2uiSurface, type A2uiSurfaceUpdate, type A2uiTap, } from "./a2ui.js";
9
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,KAAK,EACL,KAAK,EACL,eAAe,EACf,WAAW,EACX,QAAQ,EACR,KAAK,EACL,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,2BAA2B,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,GACxC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,SAAS,EACT,YAAY,EACZ,SAAS,EACT,KAAK,QAAQ,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AACxB,mBAAmB,YAAY,CAAC;AAEhC,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,KAAK,EACL,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,EAAE,EACF,QAAQ,EACR,eAAe,EACf,KAAK,EACL,KAAK,EACL,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,yBAAyB,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EACb,0BAA0B,EAC1B,2BAA2B,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,GACxC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,SAAS,EACT,YAAY,EACZ,SAAS,EACT,KAAK,QAAQ,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AACxB,mBAAmB,YAAY,CAAC;AAChC,OAAO,EACL,yBAAyB,EACzB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,4BAA4B,EAC5B,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,2BAA2B,EAC3B,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,GACb,MAAM,WAAW,CAAC"}
package/dist/index.js CHANGED
@@ -1,8 +1,14 @@
1
- export { Agents, Attachments, BlockedHandles, Chats, Calls, CallConnections, ContactCard, Messages, Relay, WebSocket, WebhookEvents, WebhookSubscriptions, } from "./client.js";
2
- export { RelayAPIError, RelayWebhookConfiguredError, } from "./errors.js";
1
+ export { Agents, Attachments, BlockedHandles, Chats, Calls, Communities, CommunityMembers, ContactCard, Contacts, Me, Messages, PaymentRequests, Relay, Tasks, WebSocket, WebhookEvents, WebhookSubscriptions, } from "./client.js";
2
+ export { CallRoom, parseCallRoomServerFrame, } from "./calls/call-room.js";
3
+ export { RelayAPIError, RelayUnknownEventTypeError, RelayWebhookConfiguredError, } from "./errors.js";
3
4
  export { RELAY_V1_OPERATIONS, RELAY_WEBHOOK_EVENT_TYPES, } from "./operations.js";
4
5
  export { ChatsPage, MessagesPage, RelayPage, } from "./pagination.js";
5
6
  export { Webhooks, WebhookVerificationError, signWebhookHeaders, verifyWebhookSignature, } from "./webhooks.js";
6
7
  export { runWebSocket, } from "./websocket.js";
8
+ export { BUTTONS_BLOCK_INSTRUCTION, BUTTONS_FENCE, BUTTONS_GUIDANCE, BUTTONS_MAX_ITEMS, BUTTON_LABEL_MAX_LENGTH, BUTTON_URL_MAX_LENGTH, buttonsPart, parseButtonsBlock, partsWithButtons, splitButtons, } from "./buttons.js";
9
+ export { IDEMPOTENCY_KEY_MAX_LENGTH, LINK_LINE_INSTRUCTION, LINK_URL_MAX_LENGTH, answerMessages, indexedIdempotencyKey, splitLinks, standaloneLink, } from "./links.js";
10
+ export { PAYMENT_BLOCK_INSTRUCTION, PAYMENT_CATEGORIES, PAYMENT_DESCRIPTION_MAX_LENGTH, PAYMENT_FENCE, PAYMENT_GUIDANCE, PAYMENT_IMAGE_URL_MAX_LENGTH, createPaymentPart, parsePaymentBlock, paymentRequestFields, splitPayment, } from "./payment.js";
7
11
  export { Relay as default } from "./client.js";
12
+ export { SELECTION_BLOCK_INSTRUCTION, SELECTION_FENCE, SELECTION_GUIDANCE, SELECTION_MAX_OPTIONS, SELECTION_LABEL_MAX_LENGTH, SELECTION_VALUE_MAX_LENGTH, SELECTION_CONTEXT_MAX_LENGTH, componentParts, selectionPart, parseSelectionBlock, partsWithSelection, splitSelection, selectionReply, selectionReplyContext, } from "./selection.js";
13
+ export { A2UI_BASIC_CATALOG_ID, A2UI_MEDIA_TYPE, A2UI_VERSION, RELAY_A2UI_CATALOG_ID, a2uiPart, deleteA2uiSurface, readA2uiAction, sendA2uiSurface, updateA2uiSurface, } from "./a2ui.js";
8
14
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,KAAK,EACL,KAAK,EACL,eAAe,EACf,WAAW,EACX,QAAQ,EACR,KAAK,EACL,SAAS,EACT,aAAa,EACb,oBAAoB,GAErB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,2BAA2B,GAG5B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAE1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,SAAS,EACT,YAAY,EACZ,SAAS,GAEV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,kBAAkB,EAClB,sBAAsB,GAEvB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,GAMb,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,KAAK,EACL,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,EAAE,EACF,QAAQ,EACR,eAAe,EACf,KAAK,EACL,KAAK,EACL,SAAS,EACT,aAAa,EACb,oBAAoB,GAErB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,QAAQ,EACR,wBAAwB,GAMzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa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AAM,WAAW,CAAC"}
@@ -0,0 +1,57 @@
1
+ import type { LinkPart, MessagePart, PaymentRequestCreateParams, TextPart } from "./types.js";
2
+ /**
3
+ * How a text-only agent sends a link: the URL alone on its own line, the way
4
+ * a person pastes one into Messages and the way Linq's iMessage guide asks for
5
+ * it ("put a single URL on its own line"). The line leaves the words and goes
6
+ * out as a `link` part in its own Message, which the server requires and the
7
+ * app draws as a card. The same words for every bridge that sends the agent's
8
+ * final text for it.
9
+ */
10
+ export declare const LINK_LINE_INSTRUCTION = "To send a link, put its URL alone on its own line. That line leaves your text and is sent as its own Message, in order with your words, and drawn as a card with the page's title and image.";
11
+ /** The server's limit for a link part's URL (contracts/relay-v1-openapi.yaml). */
12
+ export declare const LINK_URL_MAX_LENGTH = 2048;
13
+ /** Relay takes 1 to 255 characters for an idempotency key. */
14
+ export declare const IDEMPOTENCY_KEY_MAX_LENGTH = 255;
15
+ /**
16
+ * The URL a line carries when the line is nothing but one absolute HTTP or
17
+ * HTTPS URL; otherwise undefined. A URL inside a sentence stays words.
18
+ */
19
+ export declare const standaloneLink: (line: string) => string | undefined;
20
+ export type AnswerSegment = TextPart | LinkPart;
21
+ /**
22
+ * Splits an answer into its words and the links written alone on a line, in
23
+ * order. Text on either side of a link keeps its own line breaks, trimmed at
24
+ * the edges; an answer with no such line comes back as one text segment,
25
+ * untouched.
26
+ */
27
+ export declare const splitLinks: (text: string) => AnswerSegment[];
28
+ export interface AnswerMessages {
29
+ /** The Messages the answer becomes, in order; each is one parts array. */
30
+ messages: MessagePart[][];
31
+ /**
32
+ * A payment request the answer asked for. The bridge creates it with its
33
+ * own token (`createPaymentPart`) and sends the card as its own, final
34
+ * Message after `messages`.
35
+ */
36
+ payment?: PaymentRequestCreateParams;
37
+ /** Why a component block could not be used. The text then keeps it. */
38
+ error?: string;
39
+ }
40
+ /**
41
+ * The Messages a text-only agent's answer becomes: a payment, buttons or
42
+ * selection block is lifted out, then each link on its own line becomes its
43
+ * own Message. Buttons and selection accompany the last Message of words; a
44
+ * payment never does — it must be the only part of its Message, so the words
45
+ * around it are sent first, and the payment request it describes is returned
46
+ * beside them for the bridge to create and send as its own, final Message.
47
+ * Selection requires a nonblank question; conflicting components remain text
48
+ * with an error.
49
+ */
50
+ export declare const answerMessages: (answer: string) => AnswerMessages;
51
+ /**
52
+ * The idempotency key for the `index`th Message of one answer: the answer's
53
+ * own key for the first, and that key with the index for the rest, kept
54
+ * within Relay's 255 characters.
55
+ */
56
+ export declare const indexedIdempotencyKey: (key: string, index: number) => string;
57
+ //# sourceMappingURL=links.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../src/links.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAe,QAAQ,EAAE,WAAW,EAAE,0BAA0B,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3G;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,iMAC8J,CAAC;AAEjM,kFAAkF;AAClF,eAAO,MAAM,mBAAmB,OAAQ,CAAC;AAEzC,8DAA8D;AAC9D,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAAM,GAAG,SAUtD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,aAAa,EAsBtD,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,0EAA0E;IAC1E,QAAQ,EAAE,WAAW,EAAE,EAAE,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,KAAG,cA6B/C,CAAC;AAYF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,KAAG,MAIlE,CAAC"}
package/dist/links.js ADDED
@@ -0,0 +1,126 @@
1
+ import { splitButtons } from "./buttons.js";
2
+ import { splitPayment } from "./payment.js";
3
+ import { splitSelection } from "./selection.js";
4
+ /**
5
+ * How a text-only agent sends a link: the URL alone on its own line, the way
6
+ * a person pastes one into Messages and the way Linq's iMessage guide asks for
7
+ * it ("put a single URL on its own line"). The line leaves the words and goes
8
+ * out as a `link` part in its own Message, which the server requires and the
9
+ * app draws as a card. The same words for every bridge that sends the agent's
10
+ * final text for it.
11
+ */
12
+ export const LINK_LINE_INSTRUCTION = "To send a link, put its URL alone on its own line. That line leaves your text and is sent as its own Message, in order with your words, and drawn as a card with the page's title and image.";
13
+ /** The server's limit for a link part's URL (contracts/relay-v1-openapi.yaml). */
14
+ export const LINK_URL_MAX_LENGTH = 2_048;
15
+ /** Relay takes 1 to 255 characters for an idempotency key. */
16
+ export const IDEMPOTENCY_KEY_MAX_LENGTH = 255;
17
+ /**
18
+ * The URL a line carries when the line is nothing but one absolute HTTP or
19
+ * HTTPS URL; otherwise undefined. A URL inside a sentence stays words.
20
+ */
21
+ export const standaloneLink = (line) => {
22
+ const value = line.trim();
23
+ if (!/^https?:\/\/\S+$/iu.test(value) || value.length > LINK_URL_MAX_LENGTH)
24
+ return undefined;
25
+ try {
26
+ const url = new URL(value);
27
+ if ((url.protocol !== "http:" && url.protocol !== "https:") || !url.hostname)
28
+ return undefined;
29
+ }
30
+ catch {
31
+ return undefined;
32
+ }
33
+ return value;
34
+ };
35
+ /**
36
+ * Splits an answer into its words and the links written alone on a line, in
37
+ * order. Text on either side of a link keeps its own line breaks, trimmed at
38
+ * the edges; an answer with no such line comes back as one text segment,
39
+ * untouched.
40
+ */
41
+ export const splitLinks = (text) => {
42
+ const segments = [];
43
+ let words = [];
44
+ const flush = () => {
45
+ const value = words.join("\n").trim();
46
+ if (value)
47
+ segments.push({ type: "text", value });
48
+ words = [];
49
+ };
50
+ for (const line of text.split(/\r?\n/u)) {
51
+ const link = standaloneLink(line);
52
+ if (link === undefined) {
53
+ words.push(line);
54
+ continue;
55
+ }
56
+ flush();
57
+ segments.push({ type: "link", value: link });
58
+ }
59
+ if (!segments.some((segment) => segment.type === "link")) {
60
+ return text.length > 0 ? [{ type: "text", value: text }] : [];
61
+ }
62
+ flush();
63
+ return segments;
64
+ };
65
+ /**
66
+ * The Messages a text-only agent's answer becomes: a payment, buttons or
67
+ * selection block is lifted out, then each link on its own line becomes its
68
+ * own Message. Buttons and selection accompany the last Message of words; a
69
+ * payment never does — it must be the only part of its Message, so the words
70
+ * around it are sent first, and the payment request it describes is returned
71
+ * beside them for the bridge to create and send as its own, final Message.
72
+ * Selection requires a nonblank question; conflicting components remain text
73
+ * with an error.
74
+ */
75
+ export const answerMessages = (answer) => {
76
+ const paid = splitPayment(answer);
77
+ if (paid.error) {
78
+ // The block stays in the words, but a link still travels alone; a bad
79
+ // component must not also take the person's link cards away.
80
+ return { messages: splitLinks(answer).map((segment) => [segment]), error: paid.error };
81
+ }
82
+ if (paid.payment) {
83
+ return { messages: splitLinks(paid.text).map((segment) => [segment]), payment: paid.payment };
84
+ }
85
+ const selected = splitSelection(answer);
86
+ if (selected.error) {
87
+ // The block stays in the words, but a link still travels alone; a bad
88
+ // component must not also take the person's link cards away.
89
+ return { messages: splitLinks(answer).map((segment) => [segment]), error: selected.error };
90
+ }
91
+ if (selected.selection) {
92
+ const messages = splitLinks(selected.text).map((segment) => [segment]);
93
+ const prompt = messages.findLast((parts) => parts[0]?.type === "text" && parts[0].value.trim());
94
+ if (!prompt) {
95
+ return { messages: [[{ type: "text", value: answer }]], error: "selection needs a nonblank text prompt" };
96
+ }
97
+ prompt.push(selected.selection);
98
+ return { messages };
99
+ }
100
+ const { text, buttons, error } = splitButtons(answer);
101
+ const messages = splitLinks(text).map((segment) => [segment]);
102
+ if (buttons)
103
+ attachButtons(messages, buttons);
104
+ return error ? { messages, error } : { messages };
105
+ };
106
+ const attachButtons = (messages, buttons) => {
107
+ for (let index = messages.length - 1; index >= 0; index -= 1) {
108
+ if (messages[index]?.[0]?.type === "text") {
109
+ messages[index].push(buttons);
110
+ return;
111
+ }
112
+ }
113
+ messages.push([buttons]);
114
+ };
115
+ /**
116
+ * The idempotency key for the `index`th Message of one answer: the answer's
117
+ * own key for the first, and that key with the index for the rest, kept
118
+ * within Relay's 255 characters.
119
+ */
120
+ export const indexedIdempotencyKey = (key, index) => {
121
+ if (index === 0)
122
+ return key;
123
+ const suffix = `-${index}`;
124
+ return `${key.slice(0, IDEMPOTENCY_KEY_MAX_LENGTH - suffix.length)}${suffix}`;
125
+ };
126
+ //# sourceMappingURL=links.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.js","sourceRoot":"","sources":["../src/links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAChC,8LAA8L,CAAC;AAEjM,kFAAkF;AAClF,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAEzC,8DAA8D;AAC9D,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC;AAE9C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAsB,EAAE;IACjE,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC1B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,mBAAmB;QAAE,OAAO,SAAS,CAAC;IAC9F,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,CA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C,CAAC,EAAE,IAAI,KAAK,MAAM,EAAE,CAAC;YAC1C,QAAQ,CAAC,KAAK,CAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC/B,OAAO;QACT,CAAC;IACH,CAAC;IACD,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAC3B,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAW,EAAE,KAAa,EAAU,EAAE;IAC1E,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC;IAC5B,MAAM,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC;IAC3B,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CAAC;AAChF,CAAC,CAAC"}
@@ -7,6 +7,10 @@ export declare const RELAY_V1_OPERATIONS: readonly [{
7
7
  readonly method: "DELETE";
8
8
  readonly path: "/v1/agents/{handle}";
9
9
  readonly operationId: "deleteAgent";
10
+ }, {
11
+ readonly method: "PATCH";
12
+ readonly path: "/v1/me";
13
+ readonly operationId: "updateAgentMe";
10
14
  }, {
11
15
  readonly method: "POST";
12
16
  readonly path: "/v1/chats";
@@ -35,6 +39,26 @@ export declare const RELAY_V1_OPERATIONS: readonly [{
35
39
  readonly method: "POST";
36
40
  readonly path: "/v1/chats/{chatId}/leave";
37
41
  readonly operationId: "leaveChat";
42
+ }, {
43
+ readonly method: "GET";
44
+ readonly path: "/v1/chats/{chatId}/activity";
45
+ readonly operationId: "getActivity";
46
+ }, {
47
+ readonly method: "PUT";
48
+ readonly path: "/v1/chats/{chatId}/activity";
49
+ readonly operationId: "setActivity";
50
+ }, {
51
+ readonly method: "DELETE";
52
+ readonly path: "/v1/chats/{chatId}/activity";
53
+ readonly operationId: "clearActivity";
54
+ }, {
55
+ readonly method: "POST";
56
+ readonly path: "/v1/chats/{chatId}/location/request";
57
+ readonly operationId: "requestLocation";
58
+ }, {
59
+ readonly method: "GET";
60
+ readonly path: "/v1/chats/{chatId}/location";
61
+ readonly operationId: "getLocation";
38
62
  }, {
39
63
  readonly method: "POST";
40
64
  readonly path: "/v1/chats/{chatId}/typing";
@@ -79,6 +103,22 @@ export declare const RELAY_V1_OPERATIONS: readonly [{
79
103
  readonly method: "POST";
80
104
  readonly path: "/v1/messages/{messageId}/reactions";
81
105
  readonly operationId: "sendReaction";
106
+ }, {
107
+ readonly method: "POST";
108
+ readonly path: "/v1/payment_requests";
109
+ readonly operationId: "createPaymentRequest";
110
+ }, {
111
+ readonly method: "GET";
112
+ readonly path: "/v1/payment_requests";
113
+ readonly operationId: "listPaymentRequests";
114
+ }, {
115
+ readonly method: "GET";
116
+ readonly path: "/v1/payment_requests/{paymentRequestId}";
117
+ readonly operationId: "getPaymentRequest";
118
+ }, {
119
+ readonly method: "POST";
120
+ readonly path: "/v1/payment_requests/{paymentRequestId}/cancel";
121
+ readonly operationId: "cancelPaymentRequest";
82
122
  }, {
83
123
  readonly method: "POST";
84
124
  readonly path: "/v1/attachments";
@@ -103,6 +143,30 @@ export declare const RELAY_V1_OPERATIONS: readonly [{
103
143
  readonly method: "DELETE";
104
144
  readonly path: "/v1/blocked_handles";
105
145
  readonly operationId: "unblockHandle";
146
+ }, {
147
+ readonly method: "GET";
148
+ readonly path: "/v1/tasks";
149
+ readonly operationId: "listTasks";
150
+ }, {
151
+ readonly method: "POST";
152
+ readonly path: "/v1/tasks/{taskId}/status";
153
+ readonly operationId: "updateTaskStatus";
154
+ }, {
155
+ readonly method: "POST";
156
+ readonly path: "/v1/tasks/{taskId}/artifacts";
157
+ readonly operationId: "addTaskArtifact";
158
+ }, {
159
+ readonly method: "GET";
160
+ readonly path: "/v1/communities";
161
+ readonly operationId: "listCommunities";
162
+ }, {
163
+ readonly method: "GET";
164
+ readonly path: "/v1/communities/{handle}";
165
+ readonly operationId: "getCommunity";
166
+ }, {
167
+ readonly method: "GET";
168
+ readonly path: "/v1/communities/{handle}/members";
169
+ readonly operationId: "listCommunityMembers";
106
170
  }, {
107
171
  readonly method: "GET";
108
172
  readonly path: "/v1/webhook-events";
@@ -127,6 +191,10 @@ export declare const RELAY_V1_OPERATIONS: readonly [{
127
191
  readonly method: "DELETE";
128
192
  readonly path: "/v1/webhook-subscriptions/{subscriptionId}";
129
193
  readonly operationId: "deleteWebhookSubscription";
194
+ }, {
195
+ readonly method: "POST";
196
+ readonly path: "/v1/contacts/lookup";
197
+ readonly operationId: "lookupContact";
130
198
  }, {
131
199
  readonly method: "GET";
132
200
  readonly path: "/v1/contact_card";
@@ -151,34 +219,10 @@ export declare const RELAY_V1_OPERATIONS: readonly [{
151
219
  readonly method: "GET";
152
220
  readonly path: "/v1/calls/{callId}";
153
221
  readonly operationId: "getCall";
154
- }, {
155
- readonly method: "POST";
156
- readonly path: "/v1/calls/{callId}/accept";
157
- readonly operationId: "acceptCall";
158
- }, {
159
- readonly method: "POST";
160
- readonly path: "/v1/calls/{callId}/decline";
161
- readonly operationId: "declineCall";
162
222
  }, {
163
223
  readonly method: "POST";
164
224
  readonly path: "/v1/calls/{callId}/end";
165
225
  readonly operationId: "endCall";
166
- }, {
167
- readonly method: "POST";
168
- readonly path: "/v1/calls/{callId}/connected";
169
- readonly operationId: "markCallConnected";
170
- }, {
171
- readonly method: "POST";
172
- readonly path: "/v1/calls/{callId}/connections";
173
- readonly operationId: "createCallConnection";
174
- }, {
175
- readonly method: "POST";
176
- readonly path: "/v1/calls/{callId}/connections/{connectionId}/subscribe";
177
- readonly operationId: "subscribeCallAudio";
178
- }, {
179
- readonly method: "POST";
180
- readonly path: "/v1/calls/{callId}/connections/{connectionId}/renegotiate";
181
- readonly operationId: "renegotiateCallAudio";
182
226
  }];
183
- export declare const RELAY_WEBHOOK_EVENT_TYPES: readonly ["message.sent", "message.received", "message.read", "message.delivered", "message.failed", "reaction.added", "reaction.removed", "participant.added", "participant.removed", "chat.created", "chat.group_name_updated", "chat.group_icon_updated", "chat.typing_indicator.started", "chat.typing_indicator.stopped", "contact.added", "contact.removed", "call.created", "call.updated", "call.ended"];
227
+ export declare const RELAY_WEBHOOK_EVENT_TYPES: readonly ["message.sent", "message.received", "message.read", "message.delivered", "message.failed", "reaction.added", "reaction.removed", "participant.added", "participant.removed", "chat.created", "chat.group_name_updated", "chat.group_icon_updated", "chat.typing_indicator.started", "chat.typing_indicator.stopped", "contact.added", "contact.removed", "call.created", "call.updated", "call.ended", "payment.succeeded", "payment.canceled", "payment.expired", "location.sharing.started", "location.sharing.stopped", "task.created", "task.message", "task.canceled", "task.updated"];
184
228
  //# sourceMappingURL=operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC7D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6NgB,CAAC;AAEjD,eAAO,MAAM,yBAAyB,kZAoB5B,CAAC"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC7D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoRgB,CAAC;AAEjD,eAAO,MAAM,yBAAyB,ukBA6B5B,CAAC"}
@@ -4,6 +4,11 @@ export const RELAY_V1_OPERATIONS = [
4
4
  "path": "/v1/agents/{handle}",
5
5
  "operationId": "deleteAgent"
6
6
  },
7
+ {
8
+ "method": "PATCH",
9
+ "path": "/v1/me",
10
+ "operationId": "updateAgentMe"
11
+ },
7
12
  {
8
13
  "method": "POST",
9
14
  "path": "/v1/chats",
@@ -39,6 +44,31 @@ export const RELAY_V1_OPERATIONS = [
39
44
  "path": "/v1/chats/{chatId}/leave",
40
45
  "operationId": "leaveChat"
41
46
  },
47
+ {
48
+ "method": "GET",
49
+ "path": "/v1/chats/{chatId}/activity",
50
+ "operationId": "getActivity"
51
+ },
52
+ {
53
+ "method": "PUT",
54
+ "path": "/v1/chats/{chatId}/activity",
55
+ "operationId": "setActivity"
56
+ },
57
+ {
58
+ "method": "DELETE",
59
+ "path": "/v1/chats/{chatId}/activity",
60
+ "operationId": "clearActivity"
61
+ },
62
+ {
63
+ "method": "POST",
64
+ "path": "/v1/chats/{chatId}/location/request",
65
+ "operationId": "requestLocation"
66
+ },
67
+ {
68
+ "method": "GET",
69
+ "path": "/v1/chats/{chatId}/location",
70
+ "operationId": "getLocation"
71
+ },
42
72
  {
43
73
  "method": "POST",
44
74
  "path": "/v1/chats/{chatId}/typing",
@@ -94,6 +124,26 @@ export const RELAY_V1_OPERATIONS = [
94
124
  "path": "/v1/messages/{messageId}/reactions",
95
125
  "operationId": "sendReaction"
96
126
  },
127
+ {
128
+ "method": "POST",
129
+ "path": "/v1/payment_requests",
130
+ "operationId": "createPaymentRequest"
131
+ },
132
+ {
133
+ "method": "GET",
134
+ "path": "/v1/payment_requests",
135
+ "operationId": "listPaymentRequests"
136
+ },
137
+ {
138
+ "method": "GET",
139
+ "path": "/v1/payment_requests/{paymentRequestId}",
140
+ "operationId": "getPaymentRequest"
141
+ },
142
+ {
143
+ "method": "POST",
144
+ "path": "/v1/payment_requests/{paymentRequestId}/cancel",
145
+ "operationId": "cancelPaymentRequest"
146
+ },
97
147
  {
98
148
  "method": "POST",
99
149
  "path": "/v1/attachments",
@@ -124,6 +174,36 @@ export const RELAY_V1_OPERATIONS = [
124
174
  "path": "/v1/blocked_handles",
125
175
  "operationId": "unblockHandle"
126
176
  },
177
+ {
178
+ "method": "GET",
179
+ "path": "/v1/tasks",
180
+ "operationId": "listTasks"
181
+ },
182
+ {
183
+ "method": "POST",
184
+ "path": "/v1/tasks/{taskId}/status",
185
+ "operationId": "updateTaskStatus"
186
+ },
187
+ {
188
+ "method": "POST",
189
+ "path": "/v1/tasks/{taskId}/artifacts",
190
+ "operationId": "addTaskArtifact"
191
+ },
192
+ {
193
+ "method": "GET",
194
+ "path": "/v1/communities",
195
+ "operationId": "listCommunities"
196
+ },
197
+ {
198
+ "method": "GET",
199
+ "path": "/v1/communities/{handle}",
200
+ "operationId": "getCommunity"
201
+ },
202
+ {
203
+ "method": "GET",
204
+ "path": "/v1/communities/{handle}/members",
205
+ "operationId": "listCommunityMembers"
206
+ },
127
207
  {
128
208
  "method": "GET",
129
209
  "path": "/v1/webhook-events",
@@ -154,6 +234,11 @@ export const RELAY_V1_OPERATIONS = [
154
234
  "path": "/v1/webhook-subscriptions/{subscriptionId}",
155
235
  "operationId": "deleteWebhookSubscription"
156
236
  },
237
+ {
238
+ "method": "POST",
239
+ "path": "/v1/contacts/lookup",
240
+ "operationId": "lookupContact"
241
+ },
157
242
  {
158
243
  "method": "GET",
159
244
  "path": "/v1/contact_card",
@@ -184,40 +269,10 @@ export const RELAY_V1_OPERATIONS = [
184
269
  "path": "/v1/calls/{callId}",
185
270
  "operationId": "getCall"
186
271
  },
187
- {
188
- "method": "POST",
189
- "path": "/v1/calls/{callId}/accept",
190
- "operationId": "acceptCall"
191
- },
192
- {
193
- "method": "POST",
194
- "path": "/v1/calls/{callId}/decline",
195
- "operationId": "declineCall"
196
- },
197
272
  {
198
273
  "method": "POST",
199
274
  "path": "/v1/calls/{callId}/end",
200
275
  "operationId": "endCall"
201
- },
202
- {
203
- "method": "POST",
204
- "path": "/v1/calls/{callId}/connected",
205
- "operationId": "markCallConnected"
206
- },
207
- {
208
- "method": "POST",
209
- "path": "/v1/calls/{callId}/connections",
210
- "operationId": "createCallConnection"
211
- },
212
- {
213
- "method": "POST",
214
- "path": "/v1/calls/{callId}/connections/{connectionId}/subscribe",
215
- "operationId": "subscribeCallAudio"
216
- },
217
- {
218
- "method": "POST",
219
- "path": "/v1/calls/{callId}/connections/{connectionId}/renegotiate",
220
- "operationId": "renegotiateCallAudio"
221
276
  }
222
277
  ];
223
278
  export const RELAY_WEBHOOK_EVENT_TYPES = [
@@ -240,5 +295,14 @@ export const RELAY_WEBHOOK_EVENT_TYPES = [
240
295
  "call.created",
241
296
  "call.updated",
242
297
  "call.ended",
298
+ "payment.succeeded",
299
+ "payment.canceled",
300
+ "payment.expired",
301
+ "location.sharing.started",
302
+ "location.sharing.stopped",
303
+ "task.created",
304
+ "task.message",
305
+ "task.canceled",
306
+ "task.updated",
243
307
  ];
244
308
  //# sourceMappingURL=operations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC;QACE,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,aAAa;KA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ChB,MAAM,EAAE,2DAA2D;QACnE,aAAa,EAAE,sBAAsB;KACtC;CAC6C,CAAC;AAEjD,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,mBAAmB;IACnB,gBAAgB;IAChB,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,qBAAqB;IACrB,cAAc;IACd,yBAAyB;IACzB,yBAAyB;IACzB,+BAA+B;IAC/B,+BAA+B;IAC/B,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,YAAY;CACJ,CAAC"}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC;QACE,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,aAAa;KAC7B;IACD;QACE,QAAQ,EAAE,OAAO;QACjB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE,eAAe;KAC/B;IACD;QACE,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,YAAY;KAC5B;IACD;QACE,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,WAAW;KAC3B;IACD;QACE,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,oBAAoB;QAC5B,aAAa,EAAE,SAAS;KACzB;IACD;QACE,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,oBAAoB;QAC5B,aAAa,EAAE,YAAY;KAC5B;IACD;QACE,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,gBAAgB;KAChC;IACD;QACE,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,mBAAmB;KACnC;IACD;QACE,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,0BAA0B;QAClC,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