@bubblelab/bubble-core 0.1.51 → 0.1.52
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.
- package/dist/bubble-bundle.d.ts +50 -50
- package/dist/bubbles/service-bubble/agi-inc.d.ts +8 -8
- package/dist/bubbles/service-bubble/ai-agent.d.ts +8 -8
- package/dist/bubbles/service-bubble/airtable.d.ts +72 -72
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +124 -124
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +16 -16
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +4 -4
- package/dist/bubbles/service-bubble/firecrawl.d.ts +48 -48
- package/dist/bubbles/service-bubble/followupboss.d.ts +4 -4
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +36 -36
- package/dist/bubbles/service-bubble/github.d.ts +56 -56
- package/dist/bubbles/service-bubble/gmail.d.ts +124 -124
- package/dist/bubbles/service-bubble/google-drive.d.ts +8 -8
- package/dist/bubbles/service-bubble/hello-world.d.ts +2 -2
- package/dist/bubbles/service-bubble/jira/jira.d.ts +24 -24
- package/dist/bubbles/service-bubble/notion/notion.d.ts +392 -392
- package/dist/bubbles/service-bubble/resend.d.ts +8 -8
- package/dist/bubbles/service-bubble/slack/slack.d.ts +28 -28
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +201 -32
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/stripe/stripe.js +51 -0
- package/dist/bubbles/service-bubble/stripe/stripe.js.map +1 -1
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +210 -40
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/stripe/stripe.schema.js +45 -0
- package/dist/bubbles/service-bubble/stripe/stripe.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/telegram.d.ts +140 -140
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +18 -18
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +18 -18
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +10 -10
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +48 -48
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +16 -16
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +8 -8
- package/dist/bubbles.json +252 -2
- package/package.json +2 -2
package/dist/bubbles.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2.0.0",
|
|
3
|
-
"generatedAt": "2026-01-
|
|
3
|
+
"generatedAt": "2026-01-28T20:30:06.271Z",
|
|
4
4
|
"totalCount": 58,
|
|
5
5
|
"bubbles": [
|
|
6
6
|
{
|
|
@@ -58083,6 +58083,68 @@
|
|
|
58083
58083
|
],
|
|
58084
58084
|
"additionalProperties": false
|
|
58085
58085
|
},
|
|
58086
|
+
{
|
|
58087
|
+
"type": "object",
|
|
58088
|
+
"properties": {
|
|
58089
|
+
"operation": {
|
|
58090
|
+
"type": "string",
|
|
58091
|
+
"enum": [
|
|
58092
|
+
"retrieve_invoice"
|
|
58093
|
+
],
|
|
58094
|
+
"description": "Retrieve a specific invoice by ID"
|
|
58095
|
+
},
|
|
58096
|
+
"invoice_id": {
|
|
58097
|
+
"type": "string",
|
|
58098
|
+
"minLength": 1,
|
|
58099
|
+
"description": "ID of the invoice to retrieve"
|
|
58100
|
+
},
|
|
58101
|
+
"credentials": {
|
|
58102
|
+
"type": "object",
|
|
58103
|
+
"additionalProperties": {
|
|
58104
|
+
"type": "string"
|
|
58105
|
+
},
|
|
58106
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58107
|
+
}
|
|
58108
|
+
},
|
|
58109
|
+
"required": [
|
|
58110
|
+
"operation",
|
|
58111
|
+
"invoice_id"
|
|
58112
|
+
],
|
|
58113
|
+
"additionalProperties": false
|
|
58114
|
+
},
|
|
58115
|
+
{
|
|
58116
|
+
"type": "object",
|
|
58117
|
+
"properties": {
|
|
58118
|
+
"operation": {
|
|
58119
|
+
"type": "string",
|
|
58120
|
+
"enum": [
|
|
58121
|
+
"finalize_invoice"
|
|
58122
|
+
],
|
|
58123
|
+
"description": "Finalize a draft invoice to make it ready for payment"
|
|
58124
|
+
},
|
|
58125
|
+
"invoice_id": {
|
|
58126
|
+
"type": "string",
|
|
58127
|
+
"minLength": 1,
|
|
58128
|
+
"description": "ID of the draft invoice to finalize"
|
|
58129
|
+
},
|
|
58130
|
+
"auto_advance": {
|
|
58131
|
+
"type": "boolean",
|
|
58132
|
+
"description": "Whether to automatically advance the invoice after finalizing"
|
|
58133
|
+
},
|
|
58134
|
+
"credentials": {
|
|
58135
|
+
"type": "object",
|
|
58136
|
+
"additionalProperties": {
|
|
58137
|
+
"type": "string"
|
|
58138
|
+
},
|
|
58139
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58140
|
+
}
|
|
58141
|
+
},
|
|
58142
|
+
"required": [
|
|
58143
|
+
"operation",
|
|
58144
|
+
"invoice_id"
|
|
58145
|
+
],
|
|
58146
|
+
"additionalProperties": false
|
|
58147
|
+
},
|
|
58086
58148
|
{
|
|
58087
58149
|
"type": "object",
|
|
58088
58150
|
"properties": {
|
|
@@ -58860,6 +58922,11 @@
|
|
|
58860
58922
|
"nullable": true,
|
|
58861
58923
|
"description": "URL for the hosted invoice page"
|
|
58862
58924
|
},
|
|
58925
|
+
"invoice_pdf": {
|
|
58926
|
+
"type": "string",
|
|
58927
|
+
"nullable": true,
|
|
58928
|
+
"description": "URL for the invoice PDF (only available after finalization)"
|
|
58929
|
+
},
|
|
58863
58930
|
"metadata": {
|
|
58864
58931
|
"type": "object",
|
|
58865
58932
|
"additionalProperties": {
|
|
@@ -58946,6 +59013,11 @@
|
|
|
58946
59013
|
"nullable": true,
|
|
58947
59014
|
"description": "URL for the hosted invoice page"
|
|
58948
59015
|
},
|
|
59016
|
+
"invoice_pdf": {
|
|
59017
|
+
"type": "string",
|
|
59018
|
+
"nullable": true,
|
|
59019
|
+
"description": "URL for the invoice PDF (only available after finalization)"
|
|
59020
|
+
},
|
|
58949
59021
|
"metadata": {
|
|
58950
59022
|
"type": "object",
|
|
58951
59023
|
"additionalProperties": {
|
|
@@ -58978,6 +59050,184 @@
|
|
|
58978
59050
|
],
|
|
58979
59051
|
"additionalProperties": false
|
|
58980
59052
|
},
|
|
59053
|
+
{
|
|
59054
|
+
"type": "object",
|
|
59055
|
+
"properties": {
|
|
59056
|
+
"operation": {
|
|
59057
|
+
"type": "string",
|
|
59058
|
+
"enum": [
|
|
59059
|
+
"retrieve_invoice"
|
|
59060
|
+
]
|
|
59061
|
+
},
|
|
59062
|
+
"success": {
|
|
59063
|
+
"type": "boolean",
|
|
59064
|
+
"description": "Whether the operation succeeded"
|
|
59065
|
+
},
|
|
59066
|
+
"invoice": {
|
|
59067
|
+
"type": "object",
|
|
59068
|
+
"properties": {
|
|
59069
|
+
"id": {
|
|
59070
|
+
"type": "string",
|
|
59071
|
+
"description": "Unique Stripe invoice identifier (in_xxx)"
|
|
59072
|
+
},
|
|
59073
|
+
"customer": {
|
|
59074
|
+
"type": "string",
|
|
59075
|
+
"nullable": true,
|
|
59076
|
+
"description": "ID of the customer"
|
|
59077
|
+
},
|
|
59078
|
+
"status": {
|
|
59079
|
+
"type": "string",
|
|
59080
|
+
"enum": [
|
|
59081
|
+
"draft",
|
|
59082
|
+
"open",
|
|
59083
|
+
"paid",
|
|
59084
|
+
"uncollectible",
|
|
59085
|
+
"void"
|
|
59086
|
+
],
|
|
59087
|
+
"nullable": true,
|
|
59088
|
+
"description": "Invoice status"
|
|
59089
|
+
},
|
|
59090
|
+
"total": {
|
|
59091
|
+
"type": "number",
|
|
59092
|
+
"description": "Total amount in smallest currency unit"
|
|
59093
|
+
},
|
|
59094
|
+
"currency": {
|
|
59095
|
+
"type": "string",
|
|
59096
|
+
"description": "Three-letter ISO currency code"
|
|
59097
|
+
},
|
|
59098
|
+
"created": {
|
|
59099
|
+
"type": "number",
|
|
59100
|
+
"description": "Unix timestamp of creation"
|
|
59101
|
+
},
|
|
59102
|
+
"hosted_invoice_url": {
|
|
59103
|
+
"type": "string",
|
|
59104
|
+
"nullable": true,
|
|
59105
|
+
"description": "URL for the hosted invoice page"
|
|
59106
|
+
},
|
|
59107
|
+
"invoice_pdf": {
|
|
59108
|
+
"type": "string",
|
|
59109
|
+
"nullable": true,
|
|
59110
|
+
"description": "URL for the invoice PDF (only available after finalization)"
|
|
59111
|
+
},
|
|
59112
|
+
"metadata": {
|
|
59113
|
+
"type": "object",
|
|
59114
|
+
"additionalProperties": {
|
|
59115
|
+
"type": "string"
|
|
59116
|
+
},
|
|
59117
|
+
"description": "Arbitrary metadata attached to the invoice"
|
|
59118
|
+
}
|
|
59119
|
+
},
|
|
59120
|
+
"required": [
|
|
59121
|
+
"id",
|
|
59122
|
+
"customer",
|
|
59123
|
+
"status",
|
|
59124
|
+
"total",
|
|
59125
|
+
"currency"
|
|
59126
|
+
],
|
|
59127
|
+
"additionalProperties": false,
|
|
59128
|
+
"description": "Retrieved invoice object"
|
|
59129
|
+
},
|
|
59130
|
+
"error": {
|
|
59131
|
+
"type": "string",
|
|
59132
|
+
"description": "Error message if operation failed"
|
|
59133
|
+
}
|
|
59134
|
+
},
|
|
59135
|
+
"required": [
|
|
59136
|
+
"operation",
|
|
59137
|
+
"success",
|
|
59138
|
+
"error"
|
|
59139
|
+
],
|
|
59140
|
+
"additionalProperties": false
|
|
59141
|
+
},
|
|
59142
|
+
{
|
|
59143
|
+
"type": "object",
|
|
59144
|
+
"properties": {
|
|
59145
|
+
"operation": {
|
|
59146
|
+
"type": "string",
|
|
59147
|
+
"enum": [
|
|
59148
|
+
"finalize_invoice"
|
|
59149
|
+
]
|
|
59150
|
+
},
|
|
59151
|
+
"success": {
|
|
59152
|
+
"type": "boolean",
|
|
59153
|
+
"description": "Whether the operation succeeded"
|
|
59154
|
+
},
|
|
59155
|
+
"invoice": {
|
|
59156
|
+
"type": "object",
|
|
59157
|
+
"properties": {
|
|
59158
|
+
"id": {
|
|
59159
|
+
"type": "string",
|
|
59160
|
+
"description": "Unique Stripe invoice identifier (in_xxx)"
|
|
59161
|
+
},
|
|
59162
|
+
"customer": {
|
|
59163
|
+
"type": "string",
|
|
59164
|
+
"nullable": true,
|
|
59165
|
+
"description": "ID of the customer"
|
|
59166
|
+
},
|
|
59167
|
+
"status": {
|
|
59168
|
+
"type": "string",
|
|
59169
|
+
"enum": [
|
|
59170
|
+
"draft",
|
|
59171
|
+
"open",
|
|
59172
|
+
"paid",
|
|
59173
|
+
"uncollectible",
|
|
59174
|
+
"void"
|
|
59175
|
+
],
|
|
59176
|
+
"nullable": true,
|
|
59177
|
+
"description": "Invoice status"
|
|
59178
|
+
},
|
|
59179
|
+
"total": {
|
|
59180
|
+
"type": "number",
|
|
59181
|
+
"description": "Total amount in smallest currency unit"
|
|
59182
|
+
},
|
|
59183
|
+
"currency": {
|
|
59184
|
+
"type": "string",
|
|
59185
|
+
"description": "Three-letter ISO currency code"
|
|
59186
|
+
},
|
|
59187
|
+
"created": {
|
|
59188
|
+
"type": "number",
|
|
59189
|
+
"description": "Unix timestamp of creation"
|
|
59190
|
+
},
|
|
59191
|
+
"hosted_invoice_url": {
|
|
59192
|
+
"type": "string",
|
|
59193
|
+
"nullable": true,
|
|
59194
|
+
"description": "URL for the hosted invoice page"
|
|
59195
|
+
},
|
|
59196
|
+
"invoice_pdf": {
|
|
59197
|
+
"type": "string",
|
|
59198
|
+
"nullable": true,
|
|
59199
|
+
"description": "URL for the invoice PDF (only available after finalization)"
|
|
59200
|
+
},
|
|
59201
|
+
"metadata": {
|
|
59202
|
+
"type": "object",
|
|
59203
|
+
"additionalProperties": {
|
|
59204
|
+
"type": "string"
|
|
59205
|
+
},
|
|
59206
|
+
"description": "Arbitrary metadata attached to the invoice"
|
|
59207
|
+
}
|
|
59208
|
+
},
|
|
59209
|
+
"required": [
|
|
59210
|
+
"id",
|
|
59211
|
+
"customer",
|
|
59212
|
+
"status",
|
|
59213
|
+
"total",
|
|
59214
|
+
"currency"
|
|
59215
|
+
],
|
|
59216
|
+
"additionalProperties": false,
|
|
59217
|
+
"description": "Finalized invoice object"
|
|
59218
|
+
},
|
|
59219
|
+
"error": {
|
|
59220
|
+
"type": "string",
|
|
59221
|
+
"description": "Error message if operation failed"
|
|
59222
|
+
}
|
|
59223
|
+
},
|
|
59224
|
+
"required": [
|
|
59225
|
+
"operation",
|
|
59226
|
+
"success",
|
|
59227
|
+
"error"
|
|
59228
|
+
],
|
|
59229
|
+
"additionalProperties": false
|
|
59230
|
+
},
|
|
58981
59231
|
{
|
|
58982
59232
|
"type": "object",
|
|
58983
59233
|
"properties": {
|
|
@@ -59464,7 +59714,7 @@
|
|
|
59464
59714
|
}
|
|
59465
59715
|
]
|
|
59466
59716
|
},
|
|
59467
|
-
"usageExample": "// Create Customer example\nconst stripe_create_customer = new StripeBubble({\n operation: \"create_customer\", // Create a new customer in Stripe\n name: \"example string\", // Customer name\n email: \"example string\", // Customer email address\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the customer\n});\n\nconst result = await stripe_create_customer.action();\n// outputSchema for result.data when operation === 'create_customer':\n// {\n// operation: \"create_customer\",\n// success: boolean // Whether the operation succeeded,\n// customer: { id: string // Unique Stripe customer identifier (cus_xxx), name: string | null | undefined // Customer name, email: string | null | undefined // Customer email address, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the customer } | undefined // Created customer object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Customers example\nconst stripe_list_customers = new StripeBubble({\n operation: \"list_customers\", // List customers from Stripe\n limit: 10 // default, // Maximum number of customers to return (1-100)\n email: \"example string\", // Filter customers by email address (case-sensitive)\n});\n\nconst result = await stripe_list_customers.action();\n// outputSchema for result.data when operation === 'list_customers':\n// {\n// operation: \"list_customers\",\n// success: boolean // Whether the operation succeeded,\n// customers: { id: string // Unique Stripe customer identifier (cus_xxx), name: string | null | undefined // Customer name, email: string | null | undefined // Customer email address, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the customer }[] | undefined // List of customer objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Product example\nconst stripe_create_product = new StripeBubble({\n operation: \"create_product\", // Create a new product in Stripe\n name: \"example string\", // Product name\n description: \"example string\", // Product description\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the product\n});\n\nconst result = await stripe_create_product.action();\n// outputSchema for result.data when operation === 'create_product':\n// {\n// operation: \"create_product\",\n// success: boolean // Whether the operation succeeded,\n// product: { id: string // Unique Stripe product identifier (prod_xxx), name: string // Product name, description: string | null | undefined // Product description, active: boolean // Whether the product is currently available, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the product } | undefined // Created product object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Products example\nconst stripe_list_products = new StripeBubble({\n operation: \"list_products\", // List products from Stripe\n limit: 10 // default, // Maximum number of products to return (1-100)\n active: true, // Filter by active status\n});\n\nconst result = await stripe_list_products.action();\n// outputSchema for result.data when operation === 'list_products':\n// {\n// operation: \"list_products\",\n// success: boolean // Whether the operation succeeded,\n// products: { id: string // Unique Stripe product identifier (prod_xxx), name: string // Product name, description: string | null | undefined // Product description, active: boolean // Whether the product is currently available, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the product }[] | undefined // List of product objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Price example\nconst stripe_create_price = new StripeBubble({\n operation: \"create_price\", // Create a new price for a product\n product: \"example string\", // ID of the product this price is for\n unit_amount: 42, // Price in smallest currency unit (e.g., cents for USD)\n currency: \"usd\" // default, // Three-letter ISO currency code (e.g., \"usd\")\n recurring: { interval: \"day\" // options: \"day\", \"week\", \"month\", \"year\" // Billing interval, interval_count: 1 // default // Number of intervals between billings }, // Recurring pricing details (omit for one-time prices)\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the price\n});\n\nconst result = await stripe_create_price.action();\n// outputSchema for result.data when operation === 'create_price':\n// {\n// operation: \"create_price\",\n// success: boolean // Whether the operation succeeded,\n// price: { id: string // Unique Stripe price identifier (price_xxx), product: string // ID of the product this price is for, unit_amount: number | null // Price in the smallest currency unit (e.g., cents), currency: string // Three-letter ISO currency code, type: \"one_time\" | \"recurring\" // Type of pricing (one-time or recurring), active: boolean // Whether the price is currently active, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the price } | undefined // Created price object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Prices example\nconst stripe_list_prices = new StripeBubble({\n operation: \"list_prices\", // List prices from Stripe\n limit: 10 // default, // Maximum number of prices to return (1-100)\n product: \"example string\", // Filter by product ID\n active: true, // Filter by active status\n});\n\nconst result = await stripe_list_prices.action();\n// outputSchema for result.data when operation === 'list_prices':\n// {\n// operation: \"list_prices\",\n// success: boolean // Whether the operation succeeded,\n// prices: { id: string // Unique Stripe price identifier (price_xxx), product: string // ID of the product this price is for, unit_amount: number | null // Price in the smallest currency unit (e.g., cents), currency: string // Three-letter ISO currency code, type: \"one_time\" | \"recurring\" // Type of pricing (one-time or recurring), active: boolean // Whether the price is currently active, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the price }[] | undefined // List of price objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Payment Link example\nconst stripe_create_payment_link = new StripeBubble({\n operation: \"create_payment_link\", // Create a payment link for a price\n price: \"example string\", // ID of the price to create payment link for\n quantity: 1 // default, // Quantity of items in the payment link\n redirect_url: \"example string\", // URL to redirect after successful payment\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the payment link\n});\n\nconst result = await stripe_create_payment_link.action();\n// outputSchema for result.data when operation === 'create_payment_link':\n// {\n// operation: \"create_payment_link\",\n// success: boolean // Whether the operation succeeded,\n// payment_link: { id: string // Unique Stripe payment link identifier (plink_xxx), url: string // The public URL of the payment link, active: boolean // Whether the payment link is active, created: number | undefined // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the payment link } | undefined // Created payment link object,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Invoice example\nconst stripe_create_invoice = new StripeBubble({\n operation: \"create_invoice\", // Create a new invoice for a customer\n customer: \"example string\", // ID of the customer to invoice\n auto_advance: true // default, // Whether to auto-finalize the invoice\n collection_method: \"charge_automatically\" // options: \"charge_automatically\", \"send_invoice\", // How to collect payment\n days_until_due: 42, // Days until invoice is due (for send_invoice collection)\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the invoice\n});\n\nconst result = await stripe_create_invoice.action();\n// outputSchema for result.data when operation === 'create_invoice':\n// {\n// operation: \"create_invoice\",\n// success: boolean // Whether the operation succeeded,\n// invoice: { id: string // Unique Stripe invoice identifier (in_xxx), customer: string | null // ID of the customer, status: \"draft\" | \"open\" | \"paid\" | \"uncollectible\" | \"void\" | null // Invoice status, total: number // Total amount in smallest currency unit, currency: string // Three-letter ISO currency code, created: number | undefined // Unix timestamp of creation, hosted_invoice_url: string | null | undefined // URL for the hosted invoice page, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the invoice } | undefined // Created invoice object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Invoices example\nconst stripe_list_invoices = new StripeBubble({\n operation: \"list_invoices\", // List invoices from Stripe\n limit: 10 // default, // Maximum number of invoices to return (1-100)\n customer: \"example string\", // Filter by customer ID\n status: \"draft\" // options: \"draft\", \"open\", \"paid\", \"uncollectible\", \"void\", // Filter by invoice status\n});\n\nconst result = await stripe_list_invoices.action();\n// outputSchema for result.data when operation === 'list_invoices':\n// {\n// operation: \"list_invoices\",\n// success: boolean // Whether the operation succeeded,\n// invoices: { id: string // Unique Stripe invoice identifier (in_xxx), customer: string | null // ID of the customer, status: \"draft\" | \"open\" | \"paid\" | \"uncollectible\" | \"void\" | null // Invoice status, total: number // Total amount in smallest currency unit, currency: string // Three-letter ISO currency code, created: number | undefined // Unix timestamp of creation, hosted_invoice_url: string | null | undefined // URL for the hosted invoice page, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the invoice }[] | undefined // List of invoice objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Get Balance example\nconst stripe_get_balance = new StripeBubble({\n operation: \"get_balance\", // Retrieve the current account balance\n});\n\nconst result = await stripe_get_balance.action();\n// outputSchema for result.data when operation === 'get_balance':\n// {\n// operation: \"get_balance\",\n// success: boolean // Whether the operation succeeded,\n// balance: { available: { amount: number // Amount available, currency: string // Currency code }[] // Funds available for payout, pending: { amount: number // Amount pending, currency: string // Currency code }[] // Funds not yet available } | undefined // Account balance,\n// error: string // Error message if operation failed\n// }\n\n\n// List Payment Intents example\nconst stripe_list_payment_intents = new StripeBubble({\n operation: \"list_payment_intents\", // List payment intents from Stripe\n limit: 10 // default, // Maximum number of payment intents to return (1-100)\n customer: \"example string\", // Filter by customer ID\n});\n\nconst result = await stripe_list_payment_intents.action();\n// outputSchema for result.data when operation === 'list_payment_intents':\n// {\n// operation: \"list_payment_intents\",\n// success: boolean // Whether the operation succeeded,\n// payment_intents: { id: string // Unique payment intent identifier (pi_xxx), amount: number // Amount in smallest currency unit, currency: string // Three-letter ISO currency code, status: \"requires_payment_method\" | \"requires_confirmation\" | \"requires_action\" | \"processing\" | \"requires_capture\" | \"canceled\" | \"succeeded\" // Payment intent status, customer: string | null | undefined // Customer ID if attached, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the payment intent }[] | undefined // List of payment intent objects,\n// error: string // Error message if operation failed\n// }\n\n\n// List Subscriptions example\nconst stripe_list_subscriptions = new StripeBubble({\n operation: \"list_subscriptions\", // List subscriptions from Stripe\n limit: 10 // default, // Maximum number of subscriptions to return (1-100)\n customer: \"example string\", // Filter by customer ID\n status: \"incomplete\" // options: \"incomplete\", \"incomplete_expired\", \"trialing\", \"active\", \"past_due\", \"canceled\", \"unpaid\", \"paused\", \"all\", // Filter by subscription status\n});\n\nconst result = await stripe_list_subscriptions.action();\n// outputSchema for result.data when operation === 'list_subscriptions':\n// {\n// operation: \"list_subscriptions\",\n// success: boolean // Whether the operation succeeded,\n// subscriptions: { id: string // Unique subscription identifier (sub_xxx), customer: string // Customer ID, status: \"incomplete\" | \"incomplete_expired\" | \"trialing\" | \"active\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"paused\" // Subscription status, current_period_start: number | undefined // Start of current billing period (may be absent for incomplete subscriptions), current_period_end: number | undefined // End of current billing period (may be absent for incomplete subscriptions), cancel_at_period_end: boolean // Whether subscription cancels at period end, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the subscription }[] | undefined // List of subscription objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Cancel Subscription example\nconst stripe_cancel_subscription = new StripeBubble({\n operation: \"cancel_subscription\", // Cancel a subscription\n subscription_id: \"example string\", // ID of the subscription to cancel\n cancel_at_period_end: false // default, // Whether to cancel at the end of the current period\n});\n\nconst result = await stripe_cancel_subscription.action();\n// outputSchema for result.data when operation === 'cancel_subscription':\n// {\n// operation: \"cancel_subscription\",\n// success: boolean // Whether the operation succeeded,\n// subscription: { id: string // Unique subscription identifier (sub_xxx), customer: string // Customer ID, status: \"incomplete\" | \"incomplete_expired\" | \"trialing\" | \"active\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"paused\" // Subscription status, current_period_start: number | undefined // Start of current billing period (may be absent for incomplete subscriptions), current_period_end: number | undefined // End of current billing period (may be absent for incomplete subscriptions), cancel_at_period_end: boolean // Whether subscription cancels at period end, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the subscription } | undefined // Canceled subscription object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Payment Links example\nconst stripe_list_payment_links = new StripeBubble({\n operation: \"list_payment_links\", // List payment links from Stripe\n limit: 10 // default, // Maximum number of payment links to return (1-100)\n active: true, // Filter by active status\n});\n\nconst result = await stripe_list_payment_links.action();\n// outputSchema for result.data when operation === 'list_payment_links':\n// {\n// operation: \"list_payment_links\",\n// success: boolean // Whether the operation succeeded,\n// payment_links: { id: string // Unique Stripe payment link identifier (plink_xxx), url: string // The public URL of the payment link, active: boolean // Whether the payment link is active, created: number | undefined // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the payment link }[] | undefined // List of payment link objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Subscription example\nconst stripe_create_subscription = new StripeBubble({\n operation: \"create_subscription\", // Create a new subscription for a customer\n customer: \"example string\", // ID of the customer to subscribe\n price: \"example string\", // ID of the recurring price to subscribe to\n trial_period_days: 42, // Number of trial period days before billing starts\n payment_behavior: \"default_incomplete\" // options: \"default_incomplete\", \"error_if_incomplete\", \"allow_incomplete\", // How to handle payment failures. Use default_incomplete to create without payment method\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the subscription\n});\n\nconst result = await stripe_create_subscription.action();\n// outputSchema for result.data when operation === 'create_subscription':\n// {\n// operation: \"create_subscription\",\n// success: boolean // Whether the operation succeeded,\n// subscription: { id: string // Unique subscription identifier (sub_xxx), customer: string // Customer ID, status: \"incomplete\" | \"incomplete_expired\" | \"trialing\" | \"active\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"paused\" // Subscription status, current_period_start: number | undefined // Start of current billing period (may be absent for incomplete subscriptions), current_period_end: number | undefined // End of current billing period (may be absent for incomplete subscriptions), cancel_at_period_end: boolean // Whether subscription cancels at period end, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the subscription } | undefined // Created subscription object,\n// error: string // Error message if operation failed\n// }\n\n\n// Always check success status before using data\nif (!result.success) {\n throw new Error(`stripe failed: ${result.error}`);\n}\n\n// Access the actual data\nconst actualData = result.data;\nconsole.log(actualData);",
|
|
59717
|
+
"usageExample": "// Create Customer example\nconst stripe_create_customer = new StripeBubble({\n operation: \"create_customer\", // Create a new customer in Stripe\n name: \"example string\", // Customer name\n email: \"example string\", // Customer email address\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the customer\n});\n\nconst result = await stripe_create_customer.action();\n// outputSchema for result.data when operation === 'create_customer':\n// {\n// operation: \"create_customer\",\n// success: boolean // Whether the operation succeeded,\n// customer: { id: string // Unique Stripe customer identifier (cus_xxx), name: string | null | undefined // Customer name, email: string | null | undefined // Customer email address, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the customer } | undefined // Created customer object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Customers example\nconst stripe_list_customers = new StripeBubble({\n operation: \"list_customers\", // List customers from Stripe\n limit: 10 // default, // Maximum number of customers to return (1-100)\n email: \"example string\", // Filter customers by email address (case-sensitive)\n});\n\nconst result = await stripe_list_customers.action();\n// outputSchema for result.data when operation === 'list_customers':\n// {\n// operation: \"list_customers\",\n// success: boolean // Whether the operation succeeded,\n// customers: { id: string // Unique Stripe customer identifier (cus_xxx), name: string | null | undefined // Customer name, email: string | null | undefined // Customer email address, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the customer }[] | undefined // List of customer objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Product example\nconst stripe_create_product = new StripeBubble({\n operation: \"create_product\", // Create a new product in Stripe\n name: \"example string\", // Product name\n description: \"example string\", // Product description\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the product\n});\n\nconst result = await stripe_create_product.action();\n// outputSchema for result.data when operation === 'create_product':\n// {\n// operation: \"create_product\",\n// success: boolean // Whether the operation succeeded,\n// product: { id: string // Unique Stripe product identifier (prod_xxx), name: string // Product name, description: string | null | undefined // Product description, active: boolean // Whether the product is currently available, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the product } | undefined // Created product object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Products example\nconst stripe_list_products = new StripeBubble({\n operation: \"list_products\", // List products from Stripe\n limit: 10 // default, // Maximum number of products to return (1-100)\n active: true, // Filter by active status\n});\n\nconst result = await stripe_list_products.action();\n// outputSchema for result.data when operation === 'list_products':\n// {\n// operation: \"list_products\",\n// success: boolean // Whether the operation succeeded,\n// products: { id: string // Unique Stripe product identifier (prod_xxx), name: string // Product name, description: string | null | undefined // Product description, active: boolean // Whether the product is currently available, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the product }[] | undefined // List of product objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Price example\nconst stripe_create_price = new StripeBubble({\n operation: \"create_price\", // Create a new price for a product\n product: \"example string\", // ID of the product this price is for\n unit_amount: 42, // Price in smallest currency unit (e.g., cents for USD)\n currency: \"usd\" // default, // Three-letter ISO currency code (e.g., \"usd\")\n recurring: { interval: \"day\" // options: \"day\", \"week\", \"month\", \"year\" // Billing interval, interval_count: 1 // default // Number of intervals between billings }, // Recurring pricing details (omit for one-time prices)\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the price\n});\n\nconst result = await stripe_create_price.action();\n// outputSchema for result.data when operation === 'create_price':\n// {\n// operation: \"create_price\",\n// success: boolean // Whether the operation succeeded,\n// price: { id: string // Unique Stripe price identifier (price_xxx), product: string // ID of the product this price is for, unit_amount: number | null // Price in the smallest currency unit (e.g., cents), currency: string // Three-letter ISO currency code, type: \"one_time\" | \"recurring\" // Type of pricing (one-time or recurring), active: boolean // Whether the price is currently active, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the price } | undefined // Created price object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Prices example\nconst stripe_list_prices = new StripeBubble({\n operation: \"list_prices\", // List prices from Stripe\n limit: 10 // default, // Maximum number of prices to return (1-100)\n product: \"example string\", // Filter by product ID\n active: true, // Filter by active status\n});\n\nconst result = await stripe_list_prices.action();\n// outputSchema for result.data when operation === 'list_prices':\n// {\n// operation: \"list_prices\",\n// success: boolean // Whether the operation succeeded,\n// prices: { id: string // Unique Stripe price identifier (price_xxx), product: string // ID of the product this price is for, unit_amount: number | null // Price in the smallest currency unit (e.g., cents), currency: string // Three-letter ISO currency code, type: \"one_time\" | \"recurring\" // Type of pricing (one-time or recurring), active: boolean // Whether the price is currently active, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the price }[] | undefined // List of price objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Payment Link example\nconst stripe_create_payment_link = new StripeBubble({\n operation: \"create_payment_link\", // Create a payment link for a price\n price: \"example string\", // ID of the price to create payment link for\n quantity: 1 // default, // Quantity of items in the payment link\n redirect_url: \"example string\", // URL to redirect after successful payment\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the payment link\n});\n\nconst result = await stripe_create_payment_link.action();\n// outputSchema for result.data when operation === 'create_payment_link':\n// {\n// operation: \"create_payment_link\",\n// success: boolean // Whether the operation succeeded,\n// payment_link: { id: string // Unique Stripe payment link identifier (plink_xxx), url: string // The public URL of the payment link, active: boolean // Whether the payment link is active, created: number | undefined // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the payment link } | undefined // Created payment link object,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Invoice example\nconst stripe_create_invoice = new StripeBubble({\n operation: \"create_invoice\", // Create a new invoice for a customer\n customer: \"example string\", // ID of the customer to invoice\n auto_advance: true // default, // Whether to auto-finalize the invoice\n collection_method: \"charge_automatically\" // options: \"charge_automatically\", \"send_invoice\", // How to collect payment\n days_until_due: 42, // Days until invoice is due (for send_invoice collection)\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the invoice\n});\n\nconst result = await stripe_create_invoice.action();\n// outputSchema for result.data when operation === 'create_invoice':\n// {\n// operation: \"create_invoice\",\n// success: boolean // Whether the operation succeeded,\n// invoice: { id: string // Unique Stripe invoice identifier (in_xxx), customer: string | null // ID of the customer, status: \"draft\" | \"open\" | \"paid\" | \"uncollectible\" | \"void\" | null // Invoice status, total: number // Total amount in smallest currency unit, currency: string // Three-letter ISO currency code, created: number | undefined // Unix timestamp of creation, hosted_invoice_url: string | null | undefined // URL for the hosted invoice page, invoice_pdf: string | null | undefined // URL for the invoice PDF (only available after finalization), metadata: Record<string, string> | undefined // Arbitrary metadata attached to the invoice } | undefined // Created invoice object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Invoices example\nconst stripe_list_invoices = new StripeBubble({\n operation: \"list_invoices\", // List invoices from Stripe\n limit: 10 // default, // Maximum number of invoices to return (1-100)\n customer: \"example string\", // Filter by customer ID\n status: \"draft\" // options: \"draft\", \"open\", \"paid\", \"uncollectible\", \"void\", // Filter by invoice status\n});\n\nconst result = await stripe_list_invoices.action();\n// outputSchema for result.data when operation === 'list_invoices':\n// {\n// operation: \"list_invoices\",\n// success: boolean // Whether the operation succeeded,\n// invoices: { id: string // Unique Stripe invoice identifier (in_xxx), customer: string | null // ID of the customer, status: \"draft\" | \"open\" | \"paid\" | \"uncollectible\" | \"void\" | null // Invoice status, total: number // Total amount in smallest currency unit, currency: string // Three-letter ISO currency code, created: number | undefined // Unix timestamp of creation, hosted_invoice_url: string | null | undefined // URL for the hosted invoice page, invoice_pdf: string | null | undefined // URL for the invoice PDF (only available after finalization), metadata: Record<string, string> | undefined // Arbitrary metadata attached to the invoice }[] | undefined // List of invoice objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Retrieve Invoice example\nconst stripe_retrieve_invoice = new StripeBubble({\n operation: \"retrieve_invoice\", // Retrieve a specific invoice by ID\n invoice_id: \"example string\", // ID of the invoice to retrieve\n});\n\nconst result = await stripe_retrieve_invoice.action();\n// outputSchema for result.data when operation === 'retrieve_invoice':\n// {\n// operation: \"retrieve_invoice\",\n// success: boolean // Whether the operation succeeded,\n// invoice: { id: string // Unique Stripe invoice identifier (in_xxx), customer: string | null // ID of the customer, status: \"draft\" | \"open\" | \"paid\" | \"uncollectible\" | \"void\" | null // Invoice status, total: number // Total amount in smallest currency unit, currency: string // Three-letter ISO currency code, created: number | undefined // Unix timestamp of creation, hosted_invoice_url: string | null | undefined // URL for the hosted invoice page, invoice_pdf: string | null | undefined // URL for the invoice PDF (only available after finalization), metadata: Record<string, string> | undefined // Arbitrary metadata attached to the invoice } | undefined // Retrieved invoice object,\n// error: string // Error message if operation failed\n// }\n\n\n// Finalize Invoice example\nconst stripe_finalize_invoice = new StripeBubble({\n operation: \"finalize_invoice\", // Finalize a draft invoice to make it ready for payment\n invoice_id: \"example string\", // ID of the draft invoice to finalize\n auto_advance: true, // Whether to automatically advance the invoice after finalizing\n});\n\nconst result = await stripe_finalize_invoice.action();\n// outputSchema for result.data when operation === 'finalize_invoice':\n// {\n// operation: \"finalize_invoice\",\n// success: boolean // Whether the operation succeeded,\n// invoice: { id: string // Unique Stripe invoice identifier (in_xxx), customer: string | null // ID of the customer, status: \"draft\" | \"open\" | \"paid\" | \"uncollectible\" | \"void\" | null // Invoice status, total: number // Total amount in smallest currency unit, currency: string // Three-letter ISO currency code, created: number | undefined // Unix timestamp of creation, hosted_invoice_url: string | null | undefined // URL for the hosted invoice page, invoice_pdf: string | null | undefined // URL for the invoice PDF (only available after finalization), metadata: Record<string, string> | undefined // Arbitrary metadata attached to the invoice } | undefined // Finalized invoice object,\n// error: string // Error message if operation failed\n// }\n\n\n// Get Balance example\nconst stripe_get_balance = new StripeBubble({\n operation: \"get_balance\", // Retrieve the current account balance\n});\n\nconst result = await stripe_get_balance.action();\n// outputSchema for result.data when operation === 'get_balance':\n// {\n// operation: \"get_balance\",\n// success: boolean // Whether the operation succeeded,\n// balance: { available: { amount: number // Amount available, currency: string // Currency code }[] // Funds available for payout, pending: { amount: number // Amount pending, currency: string // Currency code }[] // Funds not yet available } | undefined // Account balance,\n// error: string // Error message if operation failed\n// }\n\n\n// List Payment Intents example\nconst stripe_list_payment_intents = new StripeBubble({\n operation: \"list_payment_intents\", // List payment intents from Stripe\n limit: 10 // default, // Maximum number of payment intents to return (1-100)\n customer: \"example string\", // Filter by customer ID\n});\n\nconst result = await stripe_list_payment_intents.action();\n// outputSchema for result.data when operation === 'list_payment_intents':\n// {\n// operation: \"list_payment_intents\",\n// success: boolean // Whether the operation succeeded,\n// payment_intents: { id: string // Unique payment intent identifier (pi_xxx), amount: number // Amount in smallest currency unit, currency: string // Three-letter ISO currency code, status: \"requires_payment_method\" | \"requires_confirmation\" | \"requires_action\" | \"processing\" | \"requires_capture\" | \"canceled\" | \"succeeded\" // Payment intent status, customer: string | null | undefined // Customer ID if attached, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the payment intent }[] | undefined // List of payment intent objects,\n// error: string // Error message if operation failed\n// }\n\n\n// List Subscriptions example\nconst stripe_list_subscriptions = new StripeBubble({\n operation: \"list_subscriptions\", // List subscriptions from Stripe\n limit: 10 // default, // Maximum number of subscriptions to return (1-100)\n customer: \"example string\", // Filter by customer ID\n status: \"incomplete\" // options: \"incomplete\", \"incomplete_expired\", \"trialing\", \"active\", \"past_due\", \"canceled\", \"unpaid\", \"paused\", \"all\", // Filter by subscription status\n});\n\nconst result = await stripe_list_subscriptions.action();\n// outputSchema for result.data when operation === 'list_subscriptions':\n// {\n// operation: \"list_subscriptions\",\n// success: boolean // Whether the operation succeeded,\n// subscriptions: { id: string // Unique subscription identifier (sub_xxx), customer: string // Customer ID, status: \"incomplete\" | \"incomplete_expired\" | \"trialing\" | \"active\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"paused\" // Subscription status, current_period_start: number | undefined // Start of current billing period (may be absent for incomplete subscriptions), current_period_end: number | undefined // End of current billing period (may be absent for incomplete subscriptions), cancel_at_period_end: boolean // Whether subscription cancels at period end, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the subscription }[] | undefined // List of subscription objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Cancel Subscription example\nconst stripe_cancel_subscription = new StripeBubble({\n operation: \"cancel_subscription\", // Cancel a subscription\n subscription_id: \"example string\", // ID of the subscription to cancel\n cancel_at_period_end: false // default, // Whether to cancel at the end of the current period\n});\n\nconst result = await stripe_cancel_subscription.action();\n// outputSchema for result.data when operation === 'cancel_subscription':\n// {\n// operation: \"cancel_subscription\",\n// success: boolean // Whether the operation succeeded,\n// subscription: { id: string // Unique subscription identifier (sub_xxx), customer: string // Customer ID, status: \"incomplete\" | \"incomplete_expired\" | \"trialing\" | \"active\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"paused\" // Subscription status, current_period_start: number | undefined // Start of current billing period (may be absent for incomplete subscriptions), current_period_end: number | undefined // End of current billing period (may be absent for incomplete subscriptions), cancel_at_period_end: boolean // Whether subscription cancels at period end, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the subscription } | undefined // Canceled subscription object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Payment Links example\nconst stripe_list_payment_links = new StripeBubble({\n operation: \"list_payment_links\", // List payment links from Stripe\n limit: 10 // default, // Maximum number of payment links to return (1-100)\n active: true, // Filter by active status\n});\n\nconst result = await stripe_list_payment_links.action();\n// outputSchema for result.data when operation === 'list_payment_links':\n// {\n// operation: \"list_payment_links\",\n// success: boolean // Whether the operation succeeded,\n// payment_links: { id: string // Unique Stripe payment link identifier (plink_xxx), url: string // The public URL of the payment link, active: boolean // Whether the payment link is active, created: number | undefined // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the payment link }[] | undefined // List of payment link objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Subscription example\nconst stripe_create_subscription = new StripeBubble({\n operation: \"create_subscription\", // Create a new subscription for a customer\n customer: \"example string\", // ID of the customer to subscribe\n price: \"example string\", // ID of the recurring price to subscribe to\n trial_period_days: 42, // Number of trial period days before billing starts\n payment_behavior: \"default_incomplete\" // options: \"default_incomplete\", \"error_if_incomplete\", \"allow_incomplete\", // How to handle payment failures. Use default_incomplete to create without payment method\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the subscription\n});\n\nconst result = await stripe_create_subscription.action();\n// outputSchema for result.data when operation === 'create_subscription':\n// {\n// operation: \"create_subscription\",\n// success: boolean // Whether the operation succeeded,\n// subscription: { id: string // Unique subscription identifier (sub_xxx), customer: string // Customer ID, status: \"incomplete\" | \"incomplete_expired\" | \"trialing\" | \"active\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"paused\" // Subscription status, current_period_start: number | undefined // Start of current billing period (may be absent for incomplete subscriptions), current_period_end: number | undefined // End of current billing period (may be absent for incomplete subscriptions), cancel_at_period_end: boolean // Whether subscription cancels at period end, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the subscription } | undefined // Created subscription object,\n// error: string // Error message if operation failed\n// }\n\n\n// Always check success status before using data\nif (!result.success) {\n throw new Error(`stripe failed: ${result.error}`);\n}\n\n// Access the actual data\nconst actualData = result.data;\nconsole.log(actualData);",
|
|
59468
59718
|
"requiredCredentials": [
|
|
59469
59719
|
"STRIPE_CRED"
|
|
59470
59720
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubblelab/bubble-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"puppeteer-core": "^24.10.0",
|
|
41
41
|
"resend": "^4.8.0",
|
|
42
42
|
"zod": "^3.24.1",
|
|
43
|
-
"@bubblelab/shared-schemas": "0.1.
|
|
43
|
+
"@bubblelab/shared-schemas": "0.1.53"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"zod-to-json-schema": "^3.24.6",
|