@tool-bridge/server 0.21.1 → 0.23.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 (178) hide show
  1. package/dist/admin.js +170 -0
  2. package/dist/airtable-VMQVXLHK.js +790 -0
  3. package/dist/{alt_text_generator_ai-W7O34SNG.js → alt_text_generator_ai-FTWY4RU4.js} +12 -11
  4. package/dist/{amap-VOX4T2AW.js → amap-OK5VBHYC.js} +221 -220
  5. package/dist/anthropic-S67AZFZ3.js +203 -0
  6. package/dist/apify-ZE6MYQI3.js +248 -0
  7. package/dist/brave_search-TG2M2KOD.js +302 -0
  8. package/dist/chunk-2JNAI4OC.js +161 -0
  9. package/dist/{chunk-KMTT3I6D.js → chunk-4XJPN3DY.js} +19392 -26136
  10. package/dist/chunk-5ICRY3VU.js +8432 -0
  11. package/dist/chunk-7CTWGTDU.js +302 -0
  12. package/dist/chunk-BADVCN6K.js +378 -0
  13. package/dist/{chunk-XYBU3WZH.js → chunk-TDAWLMDE.js} +3 -3
  14. package/dist/chunk-U7PTOA3U.js +7320 -0
  15. package/dist/{chunk-E6JCVKW6.js → chunk-VWRUGUSU.js} +3 -3
  16. package/dist/{chunk-ATK45BXV.js → chunk-WJHG6OK7.js} +4 -2
  17. package/dist/circleci-3L3WJVSK.js +389 -0
  18. package/dist/clerk-EZPF2V7T.js +1019 -0
  19. package/dist/cohere-U27DPO64.js +185 -0
  20. package/dist/{confluence-B3EWPZVE.js → confluence-G2KL6ERH.js} +105 -104
  21. package/dist/{convertapi-EUWSQYPF.js → convertapi-L4CLJ2M3.js} +32 -31
  22. package/dist/{currencyapi-KVTIK3GL.js → currencyapi-YPYXG7YY.js} +71 -71
  23. package/dist/deepseek-6HT6WF3M.js +210 -0
  24. package/dist/docker_hub-LPE3PCVB.js +933 -0
  25. package/dist/dropbox-V56ABHTA.js +1305 -0
  26. package/dist/dub-6OKQ7MHT.js +680 -0
  27. package/dist/e2b-JS2U2QFU.js +278 -0
  28. package/dist/exa-DPWVYXSP.js +332 -0
  29. package/dist/{fal_ai-23E7JPNT.js → fal_ai-DK6Y27ZF.js} +81 -80
  30. package/dist/{feishu-7QRIDUV6.js → feishu-K7EGSRF3.js} +528 -572
  31. package/dist/{feishu_custom_bot-TJ4K7QNJ.js → feishu_custom_bot-2JUGFYNG.js} +57 -53
  32. package/dist/figma-FT5I7ITD.js +777 -0
  33. package/dist/firehydrant-EIKLKHX2.js +563 -0
  34. package/dist/{fixer-BWON27UO.js → fixer-U5QXIAKD.js} +34 -33
  35. package/dist/fly-T3JYFZ2M.js +469 -0
  36. package/dist/{front-QCGXYEDJ.js → front-D72MGVOR.js} +104 -104
  37. package/dist/geocodio-BOTD5TI5.js +213 -0
  38. package/dist/ghost-KYP7SZGB.js +338 -0
  39. package/dist/github-AGMZT3VY.js +5421 -0
  40. package/dist/gmail-BLJNJOBG.js +1887 -0
  41. package/dist/googlecalendar-GTHWNCF6.js +2524 -0
  42. package/dist/{googledocs-BUHL4J2H.js → googledocs-6EEDMEBQ.js} +341 -340
  43. package/dist/{grafana-GLU2DWF2.js → grafana-GMW6EKSQ.js} +221 -220
  44. package/dist/graphhopper-6OLGBDGB.js +325 -0
  45. package/dist/index.d.ts +1132 -332
  46. package/dist/index.js +31 -14
  47. package/dist/{ip2proxy-EZ64Y4ZH.js → ip2proxy-4QN42E6T.js} +28 -27
  48. package/dist/ipgeolocation_io-SK4XKDA2.js +315 -0
  49. package/dist/ipqualityscore-6ANBPXKT.js +279 -0
  50. package/dist/{jina_ai-EFBHTBXL.js → jina_ai-IHPSVRM5.js} +23 -23
  51. package/dist/{jira-HQSHAA5K.js → jira-46KKM4LC.js} +118 -117
  52. package/dist/langsmith-JZA345I5.js +593 -0
  53. package/dist/lemlist-43IV7DK6.js +289 -0
  54. package/dist/{linear-K7RYFYAD.js → linear-5LFH7XNL.js} +327 -326
  55. package/dist/logsnag-5RMYAHIL.js +150 -0
  56. package/dist/main.js +57 -280
  57. package/dist/{mattermost-S2BRCWLQ.js → mattermost-XFL6SHGG.js} +59 -58
  58. package/dist/mem0-NYO4DTP6.js +544 -0
  59. package/dist/memos-37MPQOLV.js +744 -0
  60. package/dist/{metabase-MMSEPCOF.js → metabase-KYBKZFMG.js} +90 -89
  61. package/dist/mistral_ai-6PL3K4PM.js +1196 -0
  62. package/dist/{mother_duck-H7PCQNZ2.js → mother_duck-2NH7W5M5.js} +94 -93
  63. package/dist/ngrok-UO6CDYCA.js +356 -0
  64. package/dist/{notes-PFMKRO33.js → notes-I3P32WP4.js} +11 -9
  65. package/dist/notion-BEAJFUOE.js +940 -0
  66. package/dist/open_exchange_rates-CMF62JB4.js +215 -0
  67. package/dist/openai-IHOMKVND.js +800 -0
  68. package/dist/opengraph_io-ZQ2FGLHX.js +362 -0
  69. package/dist/openrouter-HXLW3NR5.js +441 -0
  70. package/dist/outline-ELCP4NEU.js +599 -0
  71. package/dist/paddle-O77LALVN.js +454 -0
  72. package/dist/perplexity-JCU654QV.js +220 -0
  73. package/dist/pinecone-W5W4LRKL.js +571 -0
  74. package/dist/{pipedrive-Y2O7QGFF.js → pipedrive-ITMJLLPZ.js} +99 -98
  75. package/dist/polar-R33XU4L3.js +395 -0
  76. package/dist/posthog-JVNTOLTV.js +3464 -0
  77. package/dist/postmark-6SBG7HWV.js +427 -0
  78. package/dist/{prerender-MENYM2TY.js → prerender-GPNKTNFC.js} +31 -30
  79. package/dist/{pubmed-GOXUVVH5.js → pubmed-UP6ZEEIH.js} +239 -238
  80. package/dist/{railway-V2SID4WV.js → railway-KWEWXHTY.js} +118 -117
  81. package/dist/readwise-BLATSMC3.js +470 -0
  82. package/dist/render-QYRVIXII.js +461 -0
  83. package/dist/{replicate-756MXPYX.js → replicate-JYTWH4NF.js} +81 -80
  84. package/dist/{resend-ZKH3BTBI.js → resend-L5N75SZM.js} +20 -16
  85. package/dist/rootly-MHCPEQ26.js +336 -0
  86. package/dist/{scrapfly-NSRHFDIQ.js → scrapfly-PTPGYSJM.js} +62 -61
  87. package/dist/{scrapingbee-OQHLAVEY.js → scrapingbee-JN6UH5PY.js} +56 -56
  88. package/dist/{screenshot_fyi-DVWG3AXC.js → screenshot_fyi-4QRVSV55.js} +16 -16
  89. package/dist/semantic_scholar-LRSWA2GE.js +611 -0
  90. package/dist/{sentry-546MNDJG.js → sentry-2G6PF5W6.js} +208 -207
  91. package/dist/{shodan-C3OON3Z3.js → shodan-WKKPP5C6.js} +62 -61
  92. package/dist/shopify-64YDK5T2.js +610 -0
  93. package/dist/stripe-QAIGGOTF.js +585 -0
  94. package/dist/{supabase-U2SL4D63.js → supabase-WHTGR6ND.js} +245 -244
  95. package/dist/tavily-QIXCDDWO.js +326 -0
  96. package/dist/telegram-E6G7CWI6.js +1767 -0
  97. package/dist/{telnyx-CXQ4EZUX.js → telnyx-ZDVVS7PK.js} +57 -56
  98. package/dist/todoist-DMYF3G7J.js +664 -0
  99. package/dist/trello-HY2RYIRP.js +1080 -0
  100. package/dist/turso-HAQWMGRP.js +416 -0
  101. package/dist/{twilio-4PDBJKWX.js → twilio-MLXYPHJE.js} +70 -69
  102. package/dist/umami-DZHBLPVG.js +389 -0
  103. package/dist/unsplash-GS2OPXKE.js +351 -0
  104. package/dist/{upstash_redis-G4LQBYHA.js → upstash_redis-XMXWTNAJ.js} +51 -50
  105. package/dist/uptimerobot-TF5WRZ4G.js +483 -0
  106. package/dist/v2ex-2BVXAPDF.js +667 -0
  107. package/dist/vercel-YMJGQYJE.js +1076 -0
  108. package/dist/{wolfram_alpha_api-3G4PUJWB.js → wolfram_alpha_api-I56SXWFZ.js} +36 -35
  109. package/dist/wordpress-R7TDFZ2P.js +812 -0
  110. package/dist/workos-HDNHWVMS.js +664 -0
  111. package/dist/zhihu-LX6AGGDS.js +254 -0
  112. package/package.json +18 -9
  113. package/dist/airtable-LLZDFN7M.js +0 -789
  114. package/dist/anthropic-G23NN3X5.js +0 -202
  115. package/dist/apify-Y3SS734K.js +0 -247
  116. package/dist/brave_search-ZC7OAPSZ.js +0 -301
  117. package/dist/chunk-R6P4XAE5.js +0 -248
  118. package/dist/chunk-U7B6DS2O.js +0 -977
  119. package/dist/chunk-UZM2RXZH.js +0 -23436
  120. package/dist/circleci-3BAX5FCG.js +0 -388
  121. package/dist/clerk-6LEM6TNU.js +0 -1019
  122. package/dist/cloudflare_dns-KINYTJUD.js +0 -588
  123. package/dist/cohere-XCJ5AJ6B.js +0 -185
  124. package/dist/deepseek-PC5YGNC5.js +0 -209
  125. package/dist/docker_hub-C3MA5FU6.js +0 -932
  126. package/dist/dropbox-XBV7Z2IR.js +0 -1304
  127. package/dist/dub-LDOFG3HC.js +0 -679
  128. package/dist/e2b-JMCPSVBW.js +0 -277
  129. package/dist/exa-RAK7O7RD.js +0 -331
  130. package/dist/figma-E6IX5DTH.js +0 -773
  131. package/dist/firehydrant-ZBLPQREE.js +0 -562
  132. package/dist/fly-ZH3HFCZJ.js +0 -468
  133. package/dist/geocodio-YGNI7DA4.js +0 -212
  134. package/dist/ghost-EVSGKH2Q.js +0 -337
  135. package/dist/github-MA2BGRCJ.js +0 -5420
  136. package/dist/gmail-E5E6AADE.js +0 -1886
  137. package/dist/googlecalendar-BTLFPXTD.js +0 -2523
  138. package/dist/graphhopper-WSMB3TCD.js +0 -324
  139. package/dist/ipgeolocation_io-AA7HAS22.js +0 -315
  140. package/dist/ipqualityscore-BHJXVTJT.js +0 -277
  141. package/dist/langsmith-5W6SCT6F.js +0 -592
  142. package/dist/lemlist-HJWH6UMK.js +0 -288
  143. package/dist/logsnag-4KFOHL37.js +0 -150
  144. package/dist/mem0-CAW43CIC.js +0 -543
  145. package/dist/memos-TWEGPKFM.js +0 -740
  146. package/dist/mistral_ai-64BGZQHP.js +0 -1195
  147. package/dist/ngrok-GQCUGZKJ.js +0 -356
  148. package/dist/notion-DQWZWP4N.js +0 -936
  149. package/dist/open_exchange_rates-QMMD735E.js +0 -214
  150. package/dist/openai-W6PX32NZ.js +0 -799
  151. package/dist/opengraph_io-HNDBXYNW.js +0 -361
  152. package/dist/openrouter-JJYMEAUL.js +0 -437
  153. package/dist/outline-MCBNQZYY.js +0 -595
  154. package/dist/paddle-D2SKLUDN.js +0 -453
  155. package/dist/perplexity-XIFMKUAE.js +0 -219
  156. package/dist/pinecone-HUFTALV2.js +0 -570
  157. package/dist/polar-TYTOMOSR.js +0 -394
  158. package/dist/posthog-43JAR3VW.js +0 -3463
  159. package/dist/postmark-KL2QJYSG.js +0 -426
  160. package/dist/readwise-CI4GIMMJ.js +0 -469
  161. package/dist/render-SUBJ6YRZ.js +0 -460
  162. package/dist/rootly-CD2LJHPI.js +0 -336
  163. package/dist/semantic_scholar-T4A252KW.js +0 -610
  164. package/dist/shopify-Y2HN2MCQ.js +0 -609
  165. package/dist/stripe-VE3CD3AY.js +0 -584
  166. package/dist/tavily-KCZHK6HE.js +0 -326
  167. package/dist/telegram-3URFBCMY.js +0 -1766
  168. package/dist/todoist-HNPWNYTD.js +0 -663
  169. package/dist/trello-3W2MIXRP.js +0 -1079
  170. package/dist/turso-2EQF7C2Z.js +0 -415
  171. package/dist/umami-5REN7TGP.js +0 -388
  172. package/dist/unsplash-EIXL424F.js +0 -350
  173. package/dist/uptimerobot-KNJ3EYLY.js +0 -482
  174. package/dist/v2ex-RHJ234PZ.js +0 -666
  175. package/dist/vercel-AS6NCIC7.js +0 -1075
  176. package/dist/wordpress-KNDAAUV7.js +0 -811
  177. package/dist/workos-R6UITSJ7.js +0 -663
  178. package/dist/zhihu-AGK4HILK.js +0 -253
@@ -1,584 +0,0 @@
1
- import {
2
- createProviderPlugin,
3
- requireApiKey,
4
- upstreamError
5
- } from "./chunk-ATK45BXV.js";
6
- import {
7
- guardedFetch
8
- } from "./chunk-U7B6DS2O.js";
9
- import {
10
- TBError,
11
- external_exports
12
- } from "./chunk-UZM2RXZH.js";
13
- import "./chunk-U67V476Y.js";
14
-
15
- // ../plugins/src/stripe/api.ts
16
- var SERVICE = "stripe";
17
- var API_BASE = "https://api.stripe.com";
18
- var API_VERSION = "2024-06-20";
19
- var ACCOUNT_PATH = "/v1/account";
20
- function appendParams(params, value, prefix) {
21
- if (value === void 0 || value === null || value === "") return;
22
- if (Array.isArray(value)) {
23
- for (const item of value) appendParams(params, item, prefix);
24
- return;
25
- }
26
- if (typeof value === "object") {
27
- for (const [key, child] of Object.entries(value)) {
28
- appendParams(params, child, prefix === void 0 ? key : `${prefix}[${key}]`);
29
- }
30
- return;
31
- }
32
- if (prefix === void 0) return;
33
- params.append(prefix, String(value));
34
- }
35
- function pathSegment(value, field) {
36
- if (typeof value !== "string" || value === "") {
37
- throw new TBError("invalid_argument", `${field} \u4E0D\u80FD\u4E3A\u7A7A`);
38
- }
39
- return encodeURIComponent(value);
40
- }
41
- async function errorMessage(response) {
42
- try {
43
- const payload = await response.clone().json();
44
- const message = payload.error?.message;
45
- if (typeof message === "string" && message !== "") return message;
46
- } catch {
47
- }
48
- const text = await response.text().catch(() => "");
49
- return text.trim() || `Stripe \u8FD4\u56DE HTTP ${response.status}`;
50
- }
51
- async function request(ctx, path, input) {
52
- const url = new URL(`${API_BASE}${path}`);
53
- appendParams(url.searchParams, input.query);
54
- const headers = {
55
- "authorization": `Bearer ${requireApiKey(ctx, SERVICE)}`,
56
- "stripe-version": API_VERSION
57
- };
58
- let body;
59
- if (input.body !== void 0) {
60
- const params = new URLSearchParams();
61
- appendParams(params, input.body);
62
- body = params.toString();
63
- headers["content-type"] = "application/x-www-form-urlencoded;charset=UTF-8";
64
- }
65
- const response = await guardedFetch(url.toString(), {
66
- method: input.method,
67
- headers,
68
- ...body === void 0 ? {} : { body }
69
- });
70
- if (!response.ok) throw upstreamError(response.status, await errorMessage(response));
71
- if (response.status === 204) return {};
72
- const payload = await response.json();
73
- if (payload === null || typeof payload !== "object" || Array.isArray(payload)) {
74
- throw new TBError("unavailable", "Stripe \u8FD4\u56DE\u4E86\u975E\u5BF9\u8C61\u54CD\u5E94", { retryable: true });
75
- }
76
- return payload;
77
- }
78
- function withoutKeys(input, keys) {
79
- const drop = new Set(keys);
80
- return Object.fromEntries(Object.entries(input).filter(([key]) => !drop.has(key)));
81
- }
82
- function deletionResult(payload) {
83
- return {
84
- deleted: payload.deleted === true,
85
- object: typeof payload.object === "string" ? payload.object : "unknown",
86
- id: typeof payload.id === "string" ? payload.id : "unknown",
87
- raw: payload
88
- };
89
- }
90
- async function identifyAccount(_input, ctx) {
91
- const account = await request(ctx, ACCOUNT_PATH, { method: "GET" });
92
- const text = (value) => typeof value === "string" ? value : null;
93
- return {
94
- account,
95
- accountId: text(account.id),
96
- email: text(account.email),
97
- country: text(account.country),
98
- defaultCurrency: text(account.default_currency)
99
- };
100
- }
101
- async function createCustomer(input, ctx) {
102
- return { customer: await request(ctx, "/v1/customers", { method: "POST", body: input }) };
103
- }
104
- async function updateCustomer(input, ctx) {
105
- const path = `/v1/customers/${pathSegment(input.customerId, "customerId")}`;
106
- return { customer: await request(ctx, path, { method: "POST", body: withoutKeys(input, ["customerId"]) }) };
107
- }
108
- async function getCustomer(input, ctx) {
109
- const path = `/v1/customers/${pathSegment(input.customerId, "customerId")}`;
110
- return { customer: await request(ctx, path, { method: "GET" }) };
111
- }
112
- async function listCustomers(input, ctx) {
113
- return { customers: await request(ctx, "/v1/customers", { method: "GET", query: input }) };
114
- }
115
- async function searchCustomers(input, ctx) {
116
- return { customers: await request(ctx, "/v1/customers/search", { method: "GET", query: input }) };
117
- }
118
- async function deleteCustomer(input, ctx) {
119
- const path = `/v1/customers/${pathSegment(input.customerId, "customerId")}`;
120
- return deletionResult(await request(ctx, path, { method: "DELETE" }));
121
- }
122
- async function createProduct(input, ctx) {
123
- return { product: await request(ctx, "/v1/products", { method: "POST", body: input }) };
124
- }
125
- async function updateProduct(input, ctx) {
126
- const path = `/v1/products/${pathSegment(input.productId, "productId")}`;
127
- return { product: await request(ctx, path, { method: "POST", body: withoutKeys(input, ["productId"]) }) };
128
- }
129
- async function getProduct(input, ctx) {
130
- const path = `/v1/products/${pathSegment(input.productId, "productId")}`;
131
- return { product: await request(ctx, path, { method: "GET" }) };
132
- }
133
- async function listProducts(input, ctx) {
134
- return { products: await request(ctx, "/v1/products", { method: "GET", query: input }) };
135
- }
136
- async function searchProducts(input, ctx) {
137
- return { products: await request(ctx, "/v1/products/search", { method: "GET", query: input }) };
138
- }
139
- async function deleteProduct(input, ctx) {
140
- const path = `/v1/products/${pathSegment(input.productId, "productId")}`;
141
- return deletionResult(await request(ctx, path, { method: "DELETE" }));
142
- }
143
- async function createPrice(input, ctx) {
144
- if (input.product === void 0 && input.product_data === void 0) {
145
- throw new TBError("invalid_argument", "create_price \u9700\u8981 product \u6216 product_data");
146
- }
147
- if (input.unit_amount === void 0 && input.unit_amount_decimal === void 0 && input.custom_unit_amount === void 0) {
148
- throw new TBError(
149
- "invalid_argument",
150
- "create_price \u9700\u8981 unit_amount\u3001unit_amount_decimal \u6216 custom_unit_amount \u4E4B\u4E00"
151
- );
152
- }
153
- if (input.custom_unit_amount !== void 0 && (input.unit_amount !== void 0 || input.unit_amount_decimal !== void 0)) {
154
- throw new TBError(
155
- "invalid_argument",
156
- "create_price \u7684 custom_unit_amount \u4E0D\u80FD\u4E0E unit_amount / unit_amount_decimal \u540C\u65F6\u7ED9\u51FA"
157
- );
158
- }
159
- return { price: await request(ctx, "/v1/prices", { method: "POST", body: input }) };
160
- }
161
- async function updatePrice(input, ctx) {
162
- const path = `/v1/prices/${pathSegment(input.priceId, "priceId")}`;
163
- return { price: await request(ctx, path, { method: "POST", body: withoutKeys(input, ["priceId"]) }) };
164
- }
165
- async function getPrice(input, ctx) {
166
- const path = `/v1/prices/${pathSegment(input.priceId, "priceId")}`;
167
- return { price: await request(ctx, path, { method: "GET" }) };
168
- }
169
- async function listPrices(input, ctx) {
170
- return { prices: await request(ctx, "/v1/prices", { method: "GET", query: input }) };
171
- }
172
- async function searchPrices(input, ctx) {
173
- return { prices: await request(ctx, "/v1/prices/search", { method: "GET", query: input }) };
174
- }
175
-
176
- // ../plugins/src/stripe/schema.ts
177
- var identifyAccountInput = external_exports.strictObject({}).describe("No input is required to identify a Stripe account.");
178
- var identifyAccountOutput = external_exports.strictObject({
179
- account: external_exports.looseObject({}).describe("A raw Stripe object returned by the API."),
180
- accountId: external_exports.string().describe("The Stripe account ID.").nullable(),
181
- email: external_exports.string().describe("The Stripe account email address.").nullable(),
182
- country: external_exports.string().describe("The Stripe account country.").nullable(),
183
- defaultCurrency: external_exports.string().describe("The Stripe account default currency.").nullable()
184
- }).describe("Stripe account metadata.");
185
- var createCustomerInput = external_exports.strictObject({
186
- name: external_exports.string().max(256).describe("The customer's full name or business name.").optional(),
187
- email: external_exports.email().describe("The customer's email address.").optional(),
188
- description: external_exports.string().describe("An arbitrary customer description displayed in the Stripe Dashboard.").optional(),
189
- phone: external_exports.string().max(20).describe("The customer's phone number.").optional(),
190
- balance: external_exports.int().describe("The customer balance in the smallest currency unit.").optional(),
191
- address: external_exports.strictObject({
192
- city: external_exports.string().describe("City, district, suburb, town, or village.").optional(),
193
- country: external_exports.string().describe("Two-letter country code, or a freeform country value where Stripe allows it.").optional(),
194
- line1: external_exports.string().describe("Address line 1, such as the street, PO Box, or company name.").optional(),
195
- line2: external_exports.string().describe("Address line 2, such as the apartment, suite, unit, or building.").optional(),
196
- postal_code: external_exports.string().describe("ZIP or postal code.").optional(),
197
- state: external_exports.string().describe("State, county, province, or region.").optional()
198
- }).describe("A Stripe address object.").optional(),
199
- metadata: external_exports.record(external_exports.string(), external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])).describe("Stripe metadata key-value pairs. Values are forwarded as strings, numbers, booleans, or empty strings.").optional(),
200
- tax_exempt: external_exports.enum(["none", "exempt", "reverse"]).describe("The customer's tax exemption status.").optional()
201
- }).describe("Input for creating a Stripe customer.");
202
- var createCustomerOutput = external_exports.strictObject({
203
- customer: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.").nullable()
204
- }).describe("A Stripe customer result.");
205
- var updateCustomerInput = external_exports.strictObject({
206
- customerId: external_exports.string().min(1).describe("The Stripe customer ID to update."),
207
- name: external_exports.string().max(256).describe("The customer's full name or business name.").optional(),
208
- email: external_exports.email().describe("The customer's email address.").optional(),
209
- description: external_exports.string().describe("An arbitrary customer description displayed in the Stripe Dashboard.").optional(),
210
- phone: external_exports.string().max(20).describe("The customer's phone number.").optional(),
211
- balance: external_exports.int().describe("The customer balance in the smallest currency unit.").optional(),
212
- address: external_exports.strictObject({
213
- city: external_exports.string().describe("City, district, suburb, town, or village.").optional(),
214
- country: external_exports.string().describe("Two-letter country code, or a freeform country value where Stripe allows it.").optional(),
215
- line1: external_exports.string().describe("Address line 1, such as the street, PO Box, or company name.").optional(),
216
- line2: external_exports.string().describe("Address line 2, such as the apartment, suite, unit, or building.").optional(),
217
- postal_code: external_exports.string().describe("ZIP or postal code.").optional(),
218
- state: external_exports.string().describe("State, county, province, or region.").optional()
219
- }).describe("A Stripe address object.").optional(),
220
- metadata: external_exports.record(external_exports.string(), external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])).describe("Stripe metadata key-value pairs. Values are forwarded as strings, numbers, booleans, or empty strings.").optional(),
221
- tax_exempt: external_exports.enum(["none", "exempt", "reverse"]).describe("The customer's tax exemption status.").optional()
222
- }).describe("Input for updating a Stripe customer.");
223
- var updateCustomerOutput = external_exports.strictObject({
224
- customer: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.").nullable()
225
- }).describe("A Stripe customer result.");
226
- var getCustomerInput = external_exports.strictObject({
227
- customerId: external_exports.string().min(1).describe("The Stripe customer ID to retrieve.")
228
- }).describe("Input for retrieving a Stripe customer.");
229
- var getCustomerOutput = external_exports.strictObject({
230
- customer: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.").nullable()
231
- }).describe("A Stripe customer result.");
232
- var listCustomersInput = external_exports.strictObject({
233
- limit: external_exports.int().min(1).max(100).describe("The maximum number of objects to return. Stripe accepts values from 1 to 100.").optional(),
234
- starting_after: external_exports.string().min(1).describe("A cursor object ID that fetches the next page after that object.").optional(),
235
- ending_before: external_exports.string().min(1).describe("A cursor object ID that fetches the previous page before that object.").optional(),
236
- email: external_exports.email().describe("Filter customers by an exact, case-sensitive email address.").optional(),
237
- created: external_exports.strictObject({
238
- gt: external_exports.int().describe("Return objects created after this Unix timestamp, exclusive.").optional(),
239
- gte: external_exports.int().describe("Return objects created after or at this Unix timestamp.").optional(),
240
- lt: external_exports.int().describe("Return objects created before this Unix timestamp, exclusive.").optional(),
241
- lte: external_exports.int().describe("Return objects created before or at this Unix timestamp.").optional()
242
- }).describe("A Stripe created timestamp interval filter.").optional()
243
- }).describe("Input for listing Stripe customers.");
244
- var listCustomersOutput = external_exports.strictObject({
245
- customers: external_exports.strictObject({
246
- object: external_exports.string().describe("The Stripe response object type."),
247
- url: external_exports.string().describe("The Stripe API URL for this list."),
248
- has_more: external_exports.boolean().describe("Whether more objects are available after this page."),
249
- data: external_exports.array(external_exports.looseObject({}).describe("A raw Stripe object returned by the API.")).describe("Stripe objects returned on this page.")
250
- }).describe("A Stripe list response.")
251
- }).describe("Stripe customers page.");
252
- var searchCustomersInput = external_exports.strictObject({
253
- query: external_exports.string().min(1).describe("A Stripe customer search query, such as email:'jenny@example.com'."),
254
- limit: external_exports.int().min(1).max(100).describe("The maximum number of objects to return. Stripe accepts values from 1 to 100.").optional(),
255
- page: external_exports.string().describe("A Stripe search pagination token returned by a previous search response.").optional()
256
- }).describe("Input for searching Stripe customers.");
257
- var searchCustomersOutput = external_exports.strictObject({
258
- customers: external_exports.strictObject({
259
- object: external_exports.string().describe("The Stripe response object type."),
260
- url: external_exports.string().describe("The Stripe API URL for this list."),
261
- has_more: external_exports.boolean().describe("Whether more objects are available after this page."),
262
- data: external_exports.array(external_exports.looseObject({}).describe("A raw Stripe object returned by the API.")).describe("Stripe objects returned on this page.")
263
- }).describe("A Stripe list response.")
264
- }).describe("Stripe customer search results.");
265
- var deleteCustomerInput = external_exports.strictObject({
266
- customerId: external_exports.string().min(1).describe("The Stripe customer ID to delete.")
267
- }).describe("Input for deleting a Stripe customer.");
268
- var deleteCustomerOutput = external_exports.strictObject({
269
- deleted: external_exports.boolean().describe("Whether Stripe deleted the object."),
270
- object: external_exports.string().describe("The deleted Stripe object type."),
271
- id: external_exports.string().describe("The deleted Stripe object ID."),
272
- raw: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.")
273
- }).describe("A Stripe delete result.");
274
- var createProductInput = external_exports.strictObject({
275
- name: external_exports.string().min(1).describe("The product's display name."),
276
- active: external_exports.boolean().describe("Whether the product is available for purchase.").optional(),
277
- description: external_exports.string().describe("The product description.").optional(),
278
- id: external_exports.string().describe("A caller-supplied product ID. Stripe normally generates this when omitted.").optional(),
279
- images: external_exports.array(external_exports.url().describe("One public product image URL.")).max(8).describe("Public image URLs for the product.").optional(),
280
- metadata: external_exports.record(external_exports.string(), external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])).describe("Stripe metadata key-value pairs. Values are forwarded as strings, numbers, booleans, or empty strings.").optional(),
281
- shippable: external_exports.boolean().describe("Whether this product is shipped as a physical good.").optional(),
282
- statement_descriptor: external_exports.string().max(22).describe("Statement descriptor for subscription payments.").optional(),
283
- tax_code: external_exports.string().describe("Stripe tax code ID for this product.").optional(),
284
- unit_label: external_exports.string().max(12).describe("A label that represents units of this product.").optional(),
285
- url: external_exports.url().describe("A publicly accessible product webpage URL.").optional()
286
- }).describe("Input for creating a Stripe product.");
287
- var createProductOutput = external_exports.strictObject({
288
- product: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.").nullable()
289
- }).describe("A Stripe product result.");
290
- var updateProductInput = external_exports.strictObject({
291
- productId: external_exports.string().min(1).describe("The Stripe product ID to update."),
292
- name: external_exports.string().min(1).describe("The product's display name.").optional(),
293
- active: external_exports.boolean().describe("Whether the product is available for purchase.").optional(),
294
- description: external_exports.string().describe("The product description.").optional(),
295
- id: external_exports.string().describe("A caller-supplied product ID. Stripe normally generates this when omitted.").optional(),
296
- images: external_exports.array(external_exports.url().describe("One public product image URL.")).max(8).describe("Public image URLs for the product.").optional(),
297
- metadata: external_exports.record(external_exports.string(), external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])).describe("Stripe metadata key-value pairs. Values are forwarded as strings, numbers, booleans, or empty strings.").optional(),
298
- shippable: external_exports.boolean().describe("Whether this product is shipped as a physical good.").optional(),
299
- statement_descriptor: external_exports.string().max(22).describe("Statement descriptor for subscription payments.").optional(),
300
- tax_code: external_exports.string().describe("Stripe tax code ID for this product.").optional(),
301
- unit_label: external_exports.string().max(12).describe("A label that represents units of this product.").optional(),
302
- url: external_exports.url().describe("A publicly accessible product webpage URL.").optional()
303
- }).describe("Input for updating a Stripe product.");
304
- var updateProductOutput = external_exports.strictObject({
305
- product: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.").nullable()
306
- }).describe("A Stripe product result.");
307
- var getProductInput = external_exports.strictObject({
308
- productId: external_exports.string().min(1).describe("The Stripe product ID to retrieve.")
309
- }).describe("Input for retrieving a Stripe product.");
310
- var getProductOutput = external_exports.strictObject({
311
- product: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.").nullable()
312
- }).describe("A Stripe product result.");
313
- var listProductsInput = external_exports.strictObject({
314
- limit: external_exports.int().min(1).max(100).describe("The maximum number of objects to return. Stripe accepts values from 1 to 100.").optional(),
315
- starting_after: external_exports.string().min(1).describe("A cursor object ID that fetches the next page after that object.").optional(),
316
- ending_before: external_exports.string().min(1).describe("A cursor object ID that fetches the previous page before that object.").optional(),
317
- active: external_exports.boolean().describe("Filter products by active status.").optional(),
318
- ids: external_exports.array(external_exports.string().min(1).describe("A Stripe product ID.")).describe("Filter products by Stripe product IDs.").optional(),
319
- created: external_exports.strictObject({
320
- gt: external_exports.int().describe("Return objects created after this Unix timestamp, exclusive.").optional(),
321
- gte: external_exports.int().describe("Return objects created after or at this Unix timestamp.").optional(),
322
- lt: external_exports.int().describe("Return objects created before this Unix timestamp, exclusive.").optional(),
323
- lte: external_exports.int().describe("Return objects created before or at this Unix timestamp.").optional()
324
- }).describe("A Stripe created timestamp interval filter.").optional()
325
- }).describe("Input for listing Stripe products.");
326
- var listProductsOutput = external_exports.strictObject({
327
- products: external_exports.strictObject({
328
- object: external_exports.string().describe("The Stripe response object type."),
329
- url: external_exports.string().describe("The Stripe API URL for this list."),
330
- has_more: external_exports.boolean().describe("Whether more objects are available after this page."),
331
- data: external_exports.array(external_exports.looseObject({}).describe("A raw Stripe object returned by the API.")).describe("Stripe objects returned on this page.")
332
- }).describe("A Stripe list response.")
333
- }).describe("Stripe products page.");
334
- var searchProductsInput = external_exports.strictObject({
335
- query: external_exports.string().min(1).describe("A Stripe product search query, such as active:'true'."),
336
- limit: external_exports.int().min(1).max(100).describe("The maximum number of objects to return. Stripe accepts values from 1 to 100.").optional(),
337
- page: external_exports.string().describe("A Stripe search pagination token returned by a previous search response.").optional()
338
- }).describe("Input for searching Stripe products.");
339
- var searchProductsOutput = external_exports.strictObject({
340
- products: external_exports.strictObject({
341
- object: external_exports.string().describe("The Stripe response object type."),
342
- url: external_exports.string().describe("The Stripe API URL for this list."),
343
- has_more: external_exports.boolean().describe("Whether more objects are available after this page."),
344
- data: external_exports.array(external_exports.looseObject({}).describe("A raw Stripe object returned by the API.")).describe("Stripe objects returned on this page.")
345
- }).describe("A Stripe list response.")
346
- }).describe("Stripe product search results.");
347
- var deleteProductInput = external_exports.strictObject({
348
- productId: external_exports.string().min(1).describe("The Stripe product ID to delete.")
349
- }).describe("Input for deleting a Stripe product.");
350
- var deleteProductOutput = external_exports.strictObject({
351
- deleted: external_exports.boolean().describe("Whether Stripe deleted the object."),
352
- object: external_exports.string().describe("The deleted Stripe object type."),
353
- id: external_exports.string().describe("The deleted Stripe object ID."),
354
- raw: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.")
355
- }).describe("A Stripe delete result.");
356
- var createPriceInput = external_exports.strictObject({
357
- currency: external_exports.string().min(3).max(3).describe("Three-letter ISO currency code in lowercase."),
358
- product: external_exports.string().min(1).describe("The Stripe product ID this price belongs to.").optional(),
359
- product_data: external_exports.strictObject({
360
- name: external_exports.string().min(1).describe("The product's display name."),
361
- active: external_exports.boolean().describe("Whether the product is available for purchase.").optional(),
362
- metadata: external_exports.record(external_exports.string(), external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])).describe("Stripe metadata key-value pairs. Values are forwarded as strings, numbers, booleans, or empty strings.").optional(),
363
- statement_descriptor: external_exports.string().max(22).describe("Statement descriptor for subscription payments.").optional(),
364
- tax_code: external_exports.string().describe("Stripe tax code ID for this product.").optional(),
365
- unit_label: external_exports.string().max(12).describe("A label that represents units of this product.").optional()
366
- }).describe("Inline product data for creating a product while creating a price.").optional(),
367
- unit_amount: external_exports.int().describe("Unit amount in the smallest currency unit.").optional(),
368
- unit_amount_decimal: external_exports.string().describe("Decimal unit amount in the smallest currency unit.").optional(),
369
- custom_unit_amount: external_exports.strictObject({
370
- enabled: external_exports.literal(true).describe("Whether customer-defined pricing is enabled for this price."),
371
- minimum: external_exports.int().describe("The minimum allowed amount in the smallest currency unit.").optional(),
372
- maximum: external_exports.int().describe("The maximum allowed amount in the smallest currency unit.").optional(),
373
- preset: external_exports.int().describe("The suggested amount in the smallest currency unit.").optional()
374
- }).describe("Custom unit amount configuration that lets the payer choose the price amount.").optional(),
375
- active: external_exports.boolean().describe("Whether the price can be used for new purchases.").optional(),
376
- lookup_key: external_exports.string().max(200).describe("A lookup key used to retrieve this price dynamically.").optional(),
377
- metadata: external_exports.record(external_exports.string(), external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])).describe("Stripe metadata key-value pairs. Values are forwarded as strings, numbers, booleans, or empty strings.").optional(),
378
- nickname: external_exports.string().describe("A brief internal description of the price.").optional(),
379
- recurring: external_exports.strictObject({
380
- interval: external_exports.enum(["day", "week", "month", "year"]).describe("The billing frequency interval."),
381
- interval_count: external_exports.int().describe("The number of intervals between subscription billings.").optional(),
382
- usage_type: external_exports.enum(["licensed", "metered"]).describe("How usage is billed for this price.").optional()
383
- }).describe("Recurring billing configuration for a Stripe price.").optional(),
384
- tax_behavior: external_exports.enum(["exclusive", "inclusive", "unspecified"]).describe("How Stripe should handle tax for this price.").optional()
385
- }).describe("Input for creating a Stripe price.");
386
- var createPriceOutput = external_exports.strictObject({
387
- price: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.").nullable()
388
- }).describe("A Stripe price result.");
389
- var updatePriceInput = external_exports.strictObject({
390
- priceId: external_exports.string().min(1).describe("The Stripe price ID to update."),
391
- active: external_exports.boolean().describe("Whether the price can be used for new purchases.").optional(),
392
- lookup_key: external_exports.string().max(200).describe("A lookup key used to retrieve this price dynamically.").optional(),
393
- metadata: external_exports.record(external_exports.string(), external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])).describe("Stripe metadata key-value pairs. Values are forwarded as strings, numbers, booleans, or empty strings.").optional(),
394
- nickname: external_exports.string().describe("A brief internal description of the price.").optional(),
395
- tax_behavior: external_exports.enum(["exclusive", "inclusive", "unspecified"]).describe("How Stripe should handle tax for this price.").optional()
396
- }).describe("Input for updating a Stripe price.");
397
- var updatePriceOutput = external_exports.strictObject({
398
- price: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.").nullable()
399
- }).describe("A Stripe price result.");
400
- var getPriceInput = external_exports.strictObject({
401
- priceId: external_exports.string().min(1).describe("The Stripe price ID to retrieve.")
402
- }).describe("Input for retrieving a Stripe price.");
403
- var getPriceOutput = external_exports.strictObject({
404
- price: external_exports.looseObject({}).describe("A raw Stripe object returned by the API.").nullable()
405
- }).describe("A Stripe price result.");
406
- var listPricesInput = external_exports.strictObject({
407
- limit: external_exports.int().min(1).max(100).describe("The maximum number of objects to return. Stripe accepts values from 1 to 100.").optional(),
408
- starting_after: external_exports.string().min(1).describe("A cursor object ID that fetches the next page after that object.").optional(),
409
- ending_before: external_exports.string().min(1).describe("A cursor object ID that fetches the previous page before that object.").optional(),
410
- active: external_exports.boolean().describe("Filter prices by active status.").optional(),
411
- currency: external_exports.string().min(3).max(3).describe("Filter prices by three-letter ISO currency code in lowercase.").optional(),
412
- product: external_exports.string().min(1).describe("Filter prices by Stripe product ID.").optional(),
413
- type: external_exports.enum(["one_time", "recurring"]).describe("Filter prices by one-time or recurring type.").optional(),
414
- created: external_exports.strictObject({
415
- gt: external_exports.int().describe("Return objects created after this Unix timestamp, exclusive.").optional(),
416
- gte: external_exports.int().describe("Return objects created after or at this Unix timestamp.").optional(),
417
- lt: external_exports.int().describe("Return objects created before this Unix timestamp, exclusive.").optional(),
418
- lte: external_exports.int().describe("Return objects created before or at this Unix timestamp.").optional()
419
- }).describe("A Stripe created timestamp interval filter.").optional()
420
- }).describe("Input for listing Stripe prices.");
421
- var listPricesOutput = external_exports.strictObject({
422
- prices: external_exports.strictObject({
423
- object: external_exports.string().describe("The Stripe response object type."),
424
- url: external_exports.string().describe("The Stripe API URL for this list."),
425
- has_more: external_exports.boolean().describe("Whether more objects are available after this page."),
426
- data: external_exports.array(external_exports.looseObject({}).describe("A raw Stripe object returned by the API.")).describe("Stripe objects returned on this page.")
427
- }).describe("A Stripe list response.")
428
- }).describe("Stripe prices page.");
429
- var searchPricesInput = external_exports.strictObject({
430
- query: external_exports.string().min(1).describe("A Stripe price search query, such as active:'true'."),
431
- limit: external_exports.int().min(1).max(100).describe("The maximum number of objects to return. Stripe accepts values from 1 to 100.").optional(),
432
- page: external_exports.string().describe("A Stripe search pagination token returned by a previous search response.").optional()
433
- }).describe("Input for searching Stripe prices.");
434
- var searchPricesOutput = external_exports.strictObject({
435
- prices: external_exports.strictObject({
436
- object: external_exports.string().describe("The Stripe response object type."),
437
- url: external_exports.string().describe("The Stripe API URL for this list."),
438
- has_more: external_exports.boolean().describe("Whether more objects are available after this page."),
439
- data: external_exports.array(external_exports.looseObject({}).describe("A raw Stripe object returned by the API.")).describe("Stripe objects returned on this page.")
440
- }).describe("A Stripe list response.")
441
- }).describe("Stripe price search results.");
442
- var stripeActions = {
443
- identify_account: {
444
- description: "Retrieve the Stripe account associated with the current secret API key.",
445
- effect: "read",
446
- inputSchema: identifyAccountInput,
447
- outputSchema: external_exports.toJSONSchema(identifyAccountOutput, { io: "output", unrepresentable: "any" })
448
- },
449
- create_customer: {
450
- description: "Create a Stripe customer with common profile and metadata fields.",
451
- effect: "write",
452
- inputSchema: createCustomerInput,
453
- outputSchema: external_exports.toJSONSchema(createCustomerOutput, { io: "output", unrepresentable: "any" })
454
- },
455
- update_customer: {
456
- description: "Update a Stripe customer with common profile and metadata fields.",
457
- effect: "write",
458
- inputSchema: updateCustomerInput,
459
- outputSchema: external_exports.toJSONSchema(updateCustomerOutput, { io: "output", unrepresentable: "any" })
460
- },
461
- get_customer: {
462
- description: "Retrieve a Stripe customer by ID.",
463
- effect: "read",
464
- inputSchema: getCustomerInput,
465
- outputSchema: external_exports.toJSONSchema(getCustomerOutput, { io: "output", unrepresentable: "any" })
466
- },
467
- list_customers: {
468
- description: "List Stripe customers with optional email, created timestamp, and cursor filters.",
469
- effect: "read",
470
- inputSchema: listCustomersInput,
471
- outputSchema: external_exports.toJSONSchema(listCustomersOutput, { io: "output", unrepresentable: "any" })
472
- },
473
- search_customers: {
474
- description: "Search Stripe customers with Stripe's search query syntax.",
475
- effect: "read",
476
- inputSchema: searchCustomersInput,
477
- outputSchema: external_exports.toJSONSchema(searchCustomersOutput, { io: "output", unrepresentable: "any" })
478
- },
479
- delete_customer: {
480
- description: "Delete a Stripe customer by ID.",
481
- effect: "destructive",
482
- inputSchema: deleteCustomerInput,
483
- outputSchema: external_exports.toJSONSchema(deleteCustomerOutput, { io: "output", unrepresentable: "any" })
484
- },
485
- create_product: {
486
- description: "Create a Stripe product with common catalog fields.",
487
- effect: "write",
488
- inputSchema: createProductInput,
489
- outputSchema: external_exports.toJSONSchema(createProductOutput, { io: "output", unrepresentable: "any" })
490
- },
491
- update_product: {
492
- description: "Update a Stripe product with common catalog fields.",
493
- effect: "write",
494
- inputSchema: updateProductInput,
495
- outputSchema: external_exports.toJSONSchema(updateProductOutput, { io: "output", unrepresentable: "any" })
496
- },
497
- get_product: {
498
- description: "Retrieve a Stripe product by ID.",
499
- effect: "read",
500
- inputSchema: getProductInput,
501
- outputSchema: external_exports.toJSONSchema(getProductOutput, { io: "output", unrepresentable: "any" })
502
- },
503
- list_products: {
504
- description: "List Stripe products with optional active and cursor filters.",
505
- effect: "read",
506
- inputSchema: listProductsInput,
507
- outputSchema: external_exports.toJSONSchema(listProductsOutput, { io: "output", unrepresentable: "any" })
508
- },
509
- search_products: {
510
- description: "Search Stripe products with Stripe's search query syntax.",
511
- effect: "read",
512
- inputSchema: searchProductsInput,
513
- outputSchema: external_exports.toJSONSchema(searchProductsOutput, { io: "output", unrepresentable: "any" })
514
- },
515
- delete_product: {
516
- description: "Delete a Stripe product by ID.",
517
- effect: "destructive",
518
- inputSchema: deleteProductInput,
519
- outputSchema: external_exports.toJSONSchema(deleteProductOutput, { io: "output", unrepresentable: "any" })
520
- },
521
- create_price: {
522
- description: "Create a Stripe one-time or recurring price for an existing or inline product.",
523
- effect: "write",
524
- inputSchema: createPriceInput,
525
- outputSchema: external_exports.toJSONSchema(createPriceOutput, { io: "output", unrepresentable: "any" })
526
- },
527
- update_price: {
528
- description: "Update mutable fields on a Stripe price.",
529
- effect: "write",
530
- inputSchema: updatePriceInput,
531
- outputSchema: external_exports.toJSONSchema(updatePriceOutput, { io: "output", unrepresentable: "any" })
532
- },
533
- get_price: {
534
- description: "Retrieve a Stripe price by ID.",
535
- effect: "read",
536
- inputSchema: getPriceInput,
537
- outputSchema: external_exports.toJSONSchema(getPriceOutput, { io: "output", unrepresentable: "any" })
538
- },
539
- list_prices: {
540
- description: "List Stripe prices with optional product, active, type, and cursor filters.",
541
- effect: "read",
542
- inputSchema: listPricesInput,
543
- outputSchema: external_exports.toJSONSchema(listPricesOutput, { io: "output", unrepresentable: "any" })
544
- },
545
- search_prices: {
546
- description: "Search Stripe prices with Stripe's search query syntax.",
547
- effect: "read",
548
- inputSchema: searchPricesInput,
549
- outputSchema: external_exports.toJSONSchema(searchPricesOutput, { io: "output", unrepresentable: "any" })
550
- }
551
- };
552
-
553
- // ../plugins/src/stripe/index.ts
554
- function createStripePlugin() {
555
- return createProviderPlugin({
556
- description: "Stripe",
557
- actions: stripeActions,
558
- handlers: {
559
- identify_account: identifyAccount,
560
- create_customer: createCustomer,
561
- update_customer: updateCustomer,
562
- get_customer: getCustomer,
563
- list_customers: listCustomers,
564
- search_customers: searchCustomers,
565
- delete_customer: deleteCustomer,
566
- create_product: createProduct,
567
- update_product: updateProduct,
568
- get_product: getProduct,
569
- list_products: listProducts,
570
- search_products: searchProducts,
571
- delete_product: deleteProduct,
572
- create_price: createPrice,
573
- update_price: updatePrice,
574
- get_price: getPrice,
575
- list_prices: listPrices,
576
- search_prices: searchPrices
577
- }
578
- });
579
- }
580
- var stripe_default = createStripePlugin();
581
- export {
582
- createStripePlugin,
583
- stripe_default as default
584
- };