xquik-convex 0.0.0-stage → 0.2.0

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 (105) hide show
  1. package/LICENSE +192 -0
  2. package/README.md +182 -2
  3. package/dist/client/index.d.ts +85 -0
  4. package/dist/client/index.d.ts.map +1 -0
  5. package/dist/client/index.js +50 -0
  6. package/dist/client/index.js.map +1 -0
  7. package/dist/component/_generated/api.d.ts +56 -0
  8. package/dist/component/_generated/api.d.ts.map +1 -0
  9. package/dist/component/_generated/api.js +31 -0
  10. package/dist/component/_generated/api.js.map +1 -0
  11. package/dist/component/_generated/component.d.ts +196608 -0
  12. package/dist/component/_generated/component.d.ts.map +1 -0
  13. package/dist/component/_generated/component.js +11 -0
  14. package/dist/component/_generated/component.js.map +1 -0
  15. package/dist/component/_generated/dataModel.d.ts +46 -0
  16. package/dist/component/_generated/dataModel.d.ts.map +1 -0
  17. package/dist/component/_generated/dataModel.js +11 -0
  18. package/dist/component/_generated/dataModel.js.map +1 -0
  19. package/dist/component/_generated/server.d.ts +134 -0
  20. package/dist/component/_generated/server.d.ts.map +1 -0
  21. package/dist/component/_generated/server.js +80 -0
  22. package/dist/component/_generated/server.js.map +1 -0
  23. package/dist/component/access.d.ts +2 -0
  24. package/dist/component/access.d.ts.map +1 -0
  25. package/dist/component/access.js +12 -0
  26. package/dist/component/access.js.map +1 -0
  27. package/dist/component/convex.config.d.ts +5 -0
  28. package/dist/component/convex.config.d.ts.map +1 -0
  29. package/dist/component/convex.config.js +6 -0
  30. package/dist/component/convex.config.js.map +1 -0
  31. package/dist/component/crons.d.ts +3 -0
  32. package/dist/component/crons.d.ts.map +1 -0
  33. package/dist/component/crons.js +6 -0
  34. package/dist/component/crons.js.map +1 -0
  35. package/dist/component/delivery.d.ts +25 -0
  36. package/dist/component/delivery.d.ts.map +1 -0
  37. package/dist/component/delivery.js +56 -0
  38. package/dist/component/delivery.js.map +1 -0
  39. package/dist/component/events.d.ts +52 -0
  40. package/dist/component/events.d.ts.map +1 -0
  41. package/dist/component/events.js +38 -0
  42. package/dist/component/events.js.map +1 -0
  43. package/dist/component/http.d.ts +4 -0
  44. package/dist/component/http.d.ts.map +1 -0
  45. package/dist/component/http.js +30 -0
  46. package/dist/component/http.js.map +1 -0
  47. package/dist/component/jobs.d.ts +155 -0
  48. package/dist/component/jobs.d.ts.map +1 -0
  49. package/dist/component/jobs.js +169 -0
  50. package/dist/component/jobs.js.map +1 -0
  51. package/dist/component/operation.d.ts +6 -0
  52. package/dist/component/operation.d.ts.map +1 -0
  53. package/dist/component/operation.js +12 -0
  54. package/dist/component/operation.js.map +1 -0
  55. package/dist/component/operations.d.ts +191 -0
  56. package/dist/component/operations.d.ts.map +1 -0
  57. package/dist/component/operations.js +192 -0
  58. package/dist/component/operations.js.map +1 -0
  59. package/dist/component/registry.json +48614 -0
  60. package/dist/component/request.d.ts +22 -0
  61. package/dist/component/request.d.ts.map +1 -0
  62. package/dist/component/request.js +212 -0
  63. package/dist/component/request.js.map +1 -0
  64. package/dist/component/schema.d.ts +85 -0
  65. package/dist/component/schema.d.ts.map +1 -0
  66. package/dist/component/schema.js +44 -0
  67. package/dist/component/schema.js.map +1 -0
  68. package/dist/component/shape.d.ts +42 -0
  69. package/dist/component/shape.d.ts.map +1 -0
  70. package/dist/component/shape.js +70 -0
  71. package/dist/component/shape.js.map +1 -0
  72. package/dist/component/values.d.ts +18 -0
  73. package/dist/component/values.d.ts.map +1 -0
  74. package/dist/component/values.js +19 -0
  75. package/dist/component/values.js.map +1 -0
  76. package/dist/component/webhooks.d.ts +80 -0
  77. package/dist/component/webhooks.d.ts.map +1 -0
  78. package/dist/component/webhooks.js +190 -0
  79. package/dist/component/webhooks.js.map +1 -0
  80. package/dist/test.d.ts +92 -0
  81. package/dist/test.d.ts.map +1 -0
  82. package/dist/test.js +15 -0
  83. package/dist/test.js.map +1 -0
  84. package/package.json +99 -4
  85. package/src/client/index.ts +97 -0
  86. package/src/component/_generated/api.ts +72 -0
  87. package/src/component/_generated/component.ts +190361 -0
  88. package/src/component/_generated/dataModel.ts +60 -0
  89. package/src/component/_generated/server.ts +170 -0
  90. package/src/component/access.ts +12 -0
  91. package/src/component/convex.config.ts +6 -0
  92. package/src/component/crons.ts +8 -0
  93. package/src/component/delivery.ts +66 -0
  94. package/src/component/events.ts +41 -0
  95. package/src/component/http.ts +31 -0
  96. package/src/component/jobs.ts +194 -0
  97. package/src/component/operation.ts +15 -0
  98. package/src/component/operations.ts +192 -0
  99. package/src/component/registry.json +48614 -0
  100. package/src/component/request.ts +217 -0
  101. package/src/component/schema.ts +50 -0
  102. package/src/component/shape.ts +124 -0
  103. package/src/component/values.ts +22 -0
  104. package/src/component/webhooks.ts +208 -0
  105. package/src/test.ts +23 -0
package/LICENSE ADDED
@@ -0,0 +1,192 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ https://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ Copyright 2026 Xquik
181
+
182
+ Licensed under the Apache License, Version 2.0 (the "License");
183
+ you may not use this file except in compliance with the License.
184
+ You may obtain a copy of the License at
185
+
186
+ https://www.apache.org/licenses/LICENSE-2.0
187
+
188
+ Unless required by applicable law or agreed to in writing, software
189
+ distributed under the License is distributed on an "AS IS" BASIS,
190
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
191
+ See the License for the specific language governing permissions and
192
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,183 @@
1
- # Temporary Holding Version
1
+ # Twitter API & X data in Convex with Xquik
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![Convex Component](https://www.convex.dev/components/badge/xquik-convex)](https://www.convex.dev/components/xquik-convex)
4
+
5
+ A Convex component for every public Xquik X API operation, signed webhooks & live event queries.
6
+
7
+ Xquik is the world's fastest and cheapest X Twitter scraper service with the most complete X data.
8
+ Xquik charges only for delivered, unique, filter-matching results and never pads rows.
9
+
10
+ <!-- trust:start -->
11
+
12
+ ## Trust & usage
13
+
14
+ [![Twitter API package downloads](https://img.shields.io/endpoint?url=https%3A%2F%2Fxquik.com%2Fbadges%2Fdownloads.json)](https://xquik.com/trust#downloads)
15
+ [![Twitter scraper users on Apify](https://img.shields.io/endpoint?url=https%3A%2F%2Fxquik.com%2Fbadges%2Fapify-users.json)](https://apify.com/xquik)
16
+ [![Twitter scraper runs on Apify](https://img.shields.io/endpoint?url=https%3A%2F%2Fxquik.com%2Fbadges%2Fapify-runs.json)](https://apify.com/xquik)
17
+ [![Tweet scraper rating on Apify](https://img.shields.io/endpoint?url=https%3A%2F%2Fxquik.com%2Fbadges%2Fapify-rating.json)](https://apify.com/xquik/x-tweet-scraper/reviews)
18
+ [![Xquik Twitter API accounts](https://img.shields.io/endpoint?url=https%3A%2F%2Fxquik.com%2Fbadges%2Faccounts.json)](https://xquik.com/trust#accounts)
19
+ [![Twitter Skill installs](https://img.shields.io/endpoint?url=https%3A%2F%2Fxquik.com%2Fbadges%2Fskill-installs.json)](https://xquik.com/trust#skill-installs)
20
+ [![Xquik verified revenue on TrustMRR](https://img.shields.io/endpoint?url=https%3A%2F%2Fxquik.com%2Fbadges%2Frevenue.json)](https://trustmrr.com/startup/xquik)
21
+ [![Twitter API p99 server read time](https://img.shields.io/endpoint?url=https%3A%2F%2Fxquik.com%2Fbadges%2Frest-p99.json)](https://xquik.com/trust#speed)
22
+ [![Xquik GitHub stars](https://img.shields.io/endpoint?url=https%3A%2F%2Fxquik.com%2Fbadges%2Fgithub-stars.json)](https://github.com/Xquik-dev)
23
+
24
+ - 54,000+ downloads of Xquik's Twitter API packages on npm, PyPI, RubyGems, NuGet, Packagist & Terraform ([source](https://xquik.com/trust#downloads)) <!-- trust:downloads 54576 -->
25
+ - 10,000+ users of Xquik's Twitter scraper Actors on Apify ([source](https://apify.com/xquik)) <!-- trust:apify-users 10119 -->
26
+ - 7,000,000+ runs of Xquik's Twitter scraper Actors on Apify ([source](https://apify.com/xquik)) <!-- trust:apify-runs 7076266 -->
27
+ - 4.66 of 5 for the X Tweet Scraper from 16 Apify reviews ([source](https://apify.com/xquik/x-tweet-scraper/reviews)) <!-- trust:apify-rating 4.66 16 -->
28
+ - 4,100+ accounts on xquik.com ([source](https://xquik.com/trust#accounts)) <!-- trust:accounts 4126 -->
29
+ - 1,600+ installs of Xquik's Twitter Skills on skills.sh ([source](https://xquik.com/trust#skill-installs)) <!-- trust:skill-installs 1619 -->
30
+ - $40,000+ in revenue verified by TrustMRR ([source](https://trustmrr.com/startup/xquik)) <!-- trust:revenue 40329 -->
31
+ - 13.8 s p99 REST API server read time over 7 days, failed reads included ([source](https://xquik.com/trust#speed)) <!-- trust:rest-p99 13778 -->
32
+ - 380+ GitHub stars across Xquik's repos ([source](https://github.com/Xquik-dev)) <!-- trust:github-stars 386 -->
33
+
34
+ Checked on 2026-10-28. See each number with its date & source on [xquik.com/trust](https://xquik.com/trust) or as [JSON](https://xquik.com/trust.json).
35
+
36
+ <!-- trust:end -->
37
+
38
+ <!-- START: Include on https://convex.dev/components -->
39
+
40
+ Read the full guide at [docs.xquik.com/guides/convex](https://docs.xquik.com/guides/convex).
41
+
42
+ ## What you get
43
+
44
+ - 190 typed Convex actions, 1 for each public operation in the [Xquik API reference](https://docs.xquik.com/api-reference/overview). Convex checks the arguments & the result of each call.
45
+ - A webhook receiver that checks each delivery's signature & stores each event once.
46
+ - Live queries over stored events, so your UI updates as events arrive.
47
+ - Durable jobs that retry safe calls & repeat on a schedule.
48
+ - No X developer account & no X bearer token.
49
+
50
+ ## Install
51
+
52
+ ```bash
53
+ npm install xquik-convex
54
+ ```
55
+
56
+ Add the component in `convex/convex.config.ts`.
57
+
58
+ ```ts
59
+ import { defineApp } from "convex/server";
60
+ import { v } from "convex/values";
61
+ import xquik from "xquik-convex/convex.config.js";
62
+
63
+ const app = defineApp({ env: { XQUIK_API_KEY: v.optional(v.string()) } });
64
+ app.use(xquik, { httpPrefix: "/xquik/", env: { XQUIK_API_KEY: app.env.XQUIK_API_KEY } });
65
+ export default app;
66
+ ```
67
+
68
+ Set your key from the [Xquik dashboard](https://xquik.com/dashboard). Every component function answers `missing_api_key` until you set it.
69
+
70
+ ```bash
71
+ npx convex env set XQUIK_API_KEY xq_your_key
72
+ ```
73
+
74
+ ## Call any operation
75
+
76
+ Each action takes the operation's path, query, header & body fields side by side. Convex checks them before the call.
77
+
78
+ ```ts
79
+ import { v } from "convex/values";
80
+ import { components } from "./_generated/api";
81
+ import { internalAction } from "./_generated/server";
82
+
83
+ export const latest = internalAction({
84
+ args: { username: v.string() },
85
+ handler: async (ctx, { username }) =>
86
+ await ctx.runAction(components.xquik.operations.searchTweets, { q: `from:${username}`, limit: 20 }),
87
+ });
88
+ ```
89
+
90
+ Call `components.xquik.operations.getUser` with `{ id: "elonmusk" }` for a profile. A failed call throws a `ConvexError`. Its data has `status`, `error`, `message` & `retryAfter` in seconds for a 429.
91
+
92
+ Each result has the type & the validator of its schema in the API reference, so the `name` of a `getUser` result is a `string`. The result holds only the fields that schema lists. A JSON-LD key such as `@id` arrives as `id`. Import `OperationResult<"getUser">` from `xquik-convex` to name a result type.
93
+
94
+ ## Receive webhook events
95
+
96
+ ```ts
97
+ import { Xquik, eventFields } from "xquik-convex";
98
+ import { v } from "convex/values";
99
+ import { components, internal } from "./_generated/api";
100
+ import { internalAction, internalMutation } from "./_generated/server";
101
+
102
+ const xquik = new Xquik(components.xquik);
103
+
104
+ export const watch = internalAction({
105
+ args: {},
106
+ handler: async (ctx) =>
107
+ await xquik.createWebhook(ctx, { eventTypes: ["tweet.new", "tweet.reply"], onEvent: internal.x.onEvent }),
108
+ });
109
+
110
+ export const onEvent = internalMutation({
111
+ args: { event: eventFields },
112
+ handler: async (ctx, { event }) => {
113
+ console.info(event.eventType, event.streamEventId);
114
+ },
115
+ });
116
+ ```
117
+
118
+ The component creates the Xquik webhook at `https://<deployment>.convex.site/xquik/webhooks/<token>`. It keeps the signing secret in its own table. Each delivery must carry a valid `X-Xquik-Signature` & a timestamp within 5 minutes. A replayed nonce gets a 401. A retry with the same `streamEventId` is stored once, and your handler runs once per endpoint. The `webhook.test` alert gets a 200 & sets `testedAt` on the endpoint.
119
+
120
+ For a webhook made elsewhere, call `xquik.addWebhook(ctx, { secret })` from a mutation & paste the URL it returns.
121
+
122
+ ## Show events live
123
+
124
+ ```ts
125
+ import { paginationOptsValidator } from "convex/server";
126
+ import { components } from "./_generated/api";
127
+ import { query } from "./_generated/server";
128
+
129
+ export const events = query({
130
+ args: { paginationOpts: paginationOptsValidator },
131
+ handler: async (ctx, { paginationOpts }) => {
132
+ if ((await ctx.auth.getUserIdentity()) === null) throw new Error("Sign in first.");
133
+ return await ctx.runQuery(components.xquik.events.list, { paginationOpts });
134
+ },
135
+ });
136
+ ```
137
+
138
+ Use it with `usePaginatedQuery(api.x.events, {}, { initialNumItems: 20 })`. Pass `filter: { eventType }` or `filter: { monitorId }` to narrow the list.
139
+
140
+ ## Schedule calls
141
+
142
+ ```ts
143
+ await xquik.schedule(ctx, "listEvents", { limit: 100 }, { key: "events", everyMs: 5 * 60 * 1000 });
144
+ ```
145
+
146
+ While a job with the same `key` is scheduled or running, the call returns that job's ID. A read, or a write that takes an `Idempotency-Key`, makes up to 5 attempts on a 429, a 5xx or a network error. The component fills the key for you. A result that breaks its schema fails the job without a retry. Scheduled `listEvents` jobs store their events with the webhook events. Read a job with `components.xquik.jobs.get` & stop it with `components.xquik.jobs.cancel`.
147
+
148
+ ## Keep credits safe
149
+
150
+ Component functions run only from your backend. Wrap them in internal functions, or check the caller's identity & rate limit in each public function that spends credits. The [example app](https://github.com/Xquik-dev/xquik-convex/tree/main/example) keeps every credit-spending function internal.
151
+
152
+ ## Test your app
153
+
154
+ ```ts
155
+ import { convexTest } from "convex-test";
156
+ import xquikTest from "xquik-convex/test";
157
+
158
+ const t = convexTest(schema, modules);
159
+ xquikTest.register(t);
160
+ ```
161
+
162
+ <!-- END: Include on https://convex.dev/components -->
163
+
164
+ ## Develop
165
+
166
+ ```bash
167
+ npm ci
168
+ npm run generate
169
+ bin/check-local
170
+ ```
171
+
172
+ `example/` holds a runnable Convex app that uses the component. `npm run generate` rebuilds the operation registry from `openapi.json`. The tests prove that every public operation in `openapi.json` is an action, & that every event type gets a receiver test. See [CONTRIBUTING.md](CONTRIBUTING.md) for each check.
173
+
174
+ ## Documentation
175
+
176
+ - [Xquik Convex guide](https://docs.xquik.com/guides/convex)
177
+ - [Xquik API reference](https://docs.xquik.com/api-reference/overview)
178
+ - [Webhook signature verification](https://docs.xquik.com/webhooks/verification)
179
+ - [Organization support policy](https://github.com/Xquik-dev/.github/blob/main/SUPPORT.md)
180
+ - [Security policy](SECURITY.md)
181
+ - [Contributing](CONTRIBUTING.md)
182
+
183
+ Xquik is an independent third-party service. Not affiliated with X Corp. "Twitter" and "X" are trademarks of X Corp.
@@ -0,0 +1,85 @@
1
+ import { type FunctionArgs, type FunctionReference, type FunctionReturnType, type GenericActionCtx, type GenericDataModel, type GenericMutationCtx } from "convex/server";
2
+ import { type Infer } from "convex/values";
3
+ import type { ComponentApi } from "../component/_generated/component.js";
4
+ import { eventFields, type EventFields } from "../component/values.js";
5
+ export { eventFields, type EventFields };
6
+ export declare const eventDoc: import("convex/values").VObject<{
7
+ monitorId?: string;
8
+ data: import("convex/values").Value;
9
+ streamEventId: string;
10
+ eventType: string;
11
+ occurredAt: number;
12
+ _creationTime: number;
13
+ _id: string;
14
+ }, {
15
+ streamEventId: import("convex/values").VString<string, "required">;
16
+ eventType: import("convex/values").VString<string, "required">;
17
+ occurredAt: import("convex/values").VFloat64<number, "required">;
18
+ monitorId: import("convex/values").VString<string | undefined, "optional">;
19
+ data: import("convex/values").VAny<import("convex/values").Value, "required", string>;
20
+ _id: import("convex/values").VString<string, "required">;
21
+ _creationTime: import("convex/values").VFloat64<number, "required">;
22
+ }, "required", "data" | "_creationTime" | "_id" | "streamEventId" | "eventType" | "monitorId" | "occurredAt" | `data.${string}`>;
23
+ export type EventDoc = Infer<typeof eventDoc>;
24
+ export type OperationName = keyof ComponentApi["operations"];
25
+ export type OperationArgs<Name extends OperationName> = FunctionArgs<ComponentApi["operations"][Name]>;
26
+ export type OperationResult<Name extends OperationName> = FunctionReturnType<ComponentApi["operations"][Name]>;
27
+ type ActionCtx = Pick<GenericActionCtx<GenericDataModel>, "runAction">;
28
+ type MutationCtx = Pick<GenericMutationCtx<GenericDataModel>, "runMutation">;
29
+ export type EventHandler = FunctionReference<"mutation", "internal" | "public", {
30
+ event: EventFields;
31
+ }>;
32
+ export type EventTypes = FunctionArgs<ComponentApi["webhooks"]["create"]>["eventTypes"];
33
+ export interface Schedule {
34
+ readonly key?: string;
35
+ readonly everyMs?: number;
36
+ readonly delayMs?: number;
37
+ }
38
+ /** Calls the Xquik component from your app's mutations and actions. */
39
+ export declare class Xquik {
40
+ readonly component: ComponentApi;
41
+ /**
42
+ * @param component The mounted component, `components.xquik` from `./_generated/api`.
43
+ */
44
+ constructor(component: ComponentApi);
45
+ /**
46
+ * Schedules an operation as a durable job and returns its job ID.
47
+ *
48
+ * While a job with the same `key` is scheduled or running, the call returns that job's ID.
49
+ * Reads and writes that take an `Idempotency-Key` retry on a 429, a 5xx or a network error.
50
+ *
51
+ * @param operation The operation name, such as `"getUser"`.
52
+ * @param args The operation's arguments, typed from its schema.
53
+ * @param options `key` keeps 1 scheduled job per key. `everyMs` repeats the job, at 60,000 ms or more.
54
+ * `delayMs` starts it later.
55
+ */
56
+ schedule<Name extends OperationName>(ctx: MutationCtx, operation: Name, args: OperationArgs<Name>, options?: Schedule): Promise<string>;
57
+ /**
58
+ * Creates an Xquik webhook for the event types and an endpoint in the component that receives it.
59
+ *
60
+ * @param args `eventTypes` to deliver, and `onEvent`, a mutation that runs once for each `streamEventId` this endpoint receives. A retry or the `webhook.test` alert does not run it.
61
+ * @returns The endpoint ID, its URL and the Xquik webhook ID.
62
+ */
63
+ createWebhook(ctx: ActionCtx, args: {
64
+ readonly eventTypes: EventTypes;
65
+ readonly onEvent?: EventHandler;
66
+ }): Promise<{
67
+ endpointId: string;
68
+ url: string;
69
+ webhookId: string;
70
+ }>;
71
+ /**
72
+ * Adds an endpoint for a webhook you created elsewhere, with its signing secret.
73
+ *
74
+ * @param args The webhook's `secret`, and `onEvent`, a mutation that runs once for each `streamEventId` this endpoint receives. A retry or the `webhook.test` alert does not run it.
75
+ * @returns The endpoint ID and the URL to give Xquik.
76
+ */
77
+ addWebhook(ctx: MutationCtx, args: {
78
+ readonly secret: string;
79
+ readonly onEvent?: EventHandler;
80
+ }): Promise<{
81
+ endpointId: string;
82
+ url: string;
83
+ }>;
84
+ }
85
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAK,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC;AAEzC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;gIAAqE,CAAC;AAE3F,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE9C,MAAM,MAAM,aAAa,GAAG,MAAM,YAAY,CAAC,YAAY,CAAC,CAAC;AAE7D,MAAM,MAAM,aAAa,CAAC,IAAI,SAAS,aAAa,IAAI,YAAY,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAEvG,MAAM,MAAM,eAAe,CAAC,IAAI,SAAS,aAAa,IAAI,kBAAkB,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAE/G,KAAK,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC,CAAC;AACvE,KAAK,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,CAAC;AAE7E,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,QAAQ,EAAE;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,CAAC,CAAC;AAExG,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;AAExF,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,uEAAuE;AACvE,qBAAa,KAAK;IAChB,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;IAEjC;;OAEG;gBACS,SAAS,EAAE,YAAY;IAInC;;;;;;;;;;OAUG;IACG,QAAQ,CAAC,IAAI,SAAS,aAAa,EACvC,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,EACzB,OAAO,GAAE,QAAa,GACrB,OAAO,CAAC,MAAM,CAAC;IAIlB;;;;;OAKG;IACG,aAAa,CACjB,GAAG,EAAE,SAAS,EACd,IAAI,EAAE;QAAE,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;QAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;KAAE,GACzE,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAKlE;;;;;OAKG;IACG,UAAU,CACd,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;KAAE,GACjE,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAIhD"}
@@ -0,0 +1,50 @@
1
+ import { createFunctionHandle, } from "convex/server";
2
+ import { v } from "convex/values";
3
+ import { eventFields } from "../component/values.js";
4
+ export { eventFields };
5
+ export const eventDoc = eventFields.extend({ _id: v.string(), _creationTime: v.number() });
6
+ /** Calls the Xquik component from your app's mutations and actions. */
7
+ export class Xquik {
8
+ component;
9
+ /**
10
+ * @param component The mounted component, `components.xquik` from `./_generated/api`.
11
+ */
12
+ constructor(component) {
13
+ this.component = component;
14
+ }
15
+ /**
16
+ * Schedules an operation as a durable job and returns its job ID.
17
+ *
18
+ * While a job with the same `key` is scheduled or running, the call returns that job's ID.
19
+ * Reads and writes that take an `Idempotency-Key` retry on a 429, a 5xx or a network error.
20
+ *
21
+ * @param operation The operation name, such as `"getUser"`.
22
+ * @param args The operation's arguments, typed from its schema.
23
+ * @param options `key` keeps 1 scheduled job per key. `everyMs` repeats the job, at 60,000 ms or more.
24
+ * `delayMs` starts it later.
25
+ */
26
+ async schedule(ctx, operation, args, options = {}) {
27
+ return await ctx.runMutation(this.component.jobs.enqueue, { operation, args, ...options });
28
+ }
29
+ /**
30
+ * Creates an Xquik webhook for the event types and an endpoint in the component that receives it.
31
+ *
32
+ * @param args `eventTypes` to deliver, and `onEvent`, a mutation that runs once for each `streamEventId` this endpoint receives. A retry or the `webhook.test` alert does not run it.
33
+ * @returns The endpoint ID, its URL and the Xquik webhook ID.
34
+ */
35
+ async createWebhook(ctx, args) {
36
+ const onEvent = args.onEvent === undefined ? {} : { onEvent: await createFunctionHandle(args.onEvent) };
37
+ return await ctx.runAction(this.component.webhooks.create, { eventTypes: args.eventTypes, ...onEvent });
38
+ }
39
+ /**
40
+ * Adds an endpoint for a webhook you created elsewhere, with its signing secret.
41
+ *
42
+ * @param args The webhook's `secret`, and `onEvent`, a mutation that runs once for each `streamEventId` this endpoint receives. A retry or the `webhook.test` alert does not run it.
43
+ * @returns The endpoint ID and the URL to give Xquik.
44
+ */
45
+ async addWebhook(ctx, args) {
46
+ const onEvent = args.onEvent === undefined ? {} : { onEvent: await createFunctionHandle(args.onEvent) };
47
+ return await ctx.runMutation(this.component.webhooks.add, { secret: args.secret, ...onEvent });
48
+ }
49
+ }
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,GAOrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,CAAC,EAAc,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAoB,MAAM,wBAAwB,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAoB,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAuB3F,uEAAuE;AACvE,MAAM,OAAO,KAAK;IACP,SAAS,CAAe;IAEjC;;OAEG;IACH,YAAY,SAAuB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,QAAQ,CACZ,GAAgB,EAChB,SAAe,EACf,IAAyB,EACzB,UAAoB,EAAE;QAEtB,OAAO,MAAM,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,GAAc,EACd,IAA0E;QAE1E,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACxG,OAAO,MAAM,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,GAAgB,EAChB,IAAkE;QAElE,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACxG,OAAO,MAAM,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Generated `api` utility.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type * as access from "../access.js";
10
+ import type * as crons from "../crons.js";
11
+ import type * as delivery from "../delivery.js";
12
+ import type * as events from "../events.js";
13
+ import type * as http from "../http.js";
14
+ import type * as jobs from "../jobs.js";
15
+ import type * as operation from "../operation.js";
16
+ import type * as operations from "../operations.js";
17
+ import type * as request from "../request.js";
18
+ import type * as shape from "../shape.js";
19
+ import type * as values from "../values.js";
20
+ import type * as webhooks from "../webhooks.js";
21
+ import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
22
+ declare const fullApi: ApiFromModules<{
23
+ access: typeof access;
24
+ crons: typeof crons;
25
+ delivery: typeof delivery;
26
+ events: typeof events;
27
+ http: typeof http;
28
+ jobs: typeof jobs;
29
+ operation: typeof operation;
30
+ operations: typeof operations;
31
+ request: typeof request;
32
+ shape: typeof shape;
33
+ values: typeof values;
34
+ webhooks: typeof webhooks;
35
+ }>;
36
+ /**
37
+ * A utility for referencing Convex functions in your app's public API.
38
+ *
39
+ * Usage:
40
+ * ```js
41
+ * const myFunctionReference = api.myModule.myFunction;
42
+ * ```
43
+ */
44
+ export declare const api: FilterApi<typeof fullApi, FunctionReference<any, "public">>;
45
+ /**
46
+ * A utility for referencing Convex functions in your app's internal API.
47
+ *
48
+ * Usage:
49
+ * ```js
50
+ * const myFunctionReference = internal.myModule.myFunction;
51
+ * ```
52
+ */
53
+ export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, "internal">>;
54
+ export declare const components: {};
55
+ export {};
56
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,KAAK,IAAI,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,KAAK,IAAI,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,KAAK,UAAU,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,iBAAiB,EAClB,MAAM,eAAe,CAAC;AAGvB,QAAA,MAAM,OAAO,EAAE,cAAc,CAAC;IAC5B,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,SAAS,EAAE,OAAO,SAAS,CAAC;IAC5B,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,QAAQ,CAAC;CAC3B,CAAiB,CAAC;AAEnB;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,EAAE,SAAS,CACzB,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,QAAQ,CAAC,CACjB,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,CAC9B,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,CACnB,CAAC;AAElB,eAAO,MAAM,UAAU,EAAqC,EAAE,CAAC"}
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `api` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+ import { anyApi, componentsGeneric } from "convex/server";
11
+ const fullApi = anyApi;
12
+ /**
13
+ * A utility for referencing Convex functions in your app's public API.
14
+ *
15
+ * Usage:
16
+ * ```js
17
+ * const myFunctionReference = api.myModule.myFunction;
18
+ * ```
19
+ */
20
+ export const api = anyApi;
21
+ /**
22
+ * A utility for referencing Convex functions in your app's internal API.
23
+ *
24
+ * Usage:
25
+ * ```js
26
+ * const myFunctionReference = internal.myModule.myFunction;
27
+ * ```
28
+ */
29
+ export const internal = anyApi;
30
+ export const components = componentsGeneric();
31
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAoBH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,OAAO,GAaR,MAAa,CAAC;AAEnB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAGZ,MAAa,CAAC;AAElB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAGjB,MAAa,CAAC;AAElB,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,EAAmB,CAAC"}