@bubblelab/bubble-core 0.1.97 → 0.1.99
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 +112 -112
- package/dist/bubbles/service-bubble/agi-inc.d.ts +140 -140
- package/dist/bubbles/service-bubble/ai-agent.d.ts +72 -72
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +11 -6
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/airtable.d.ts +154 -154
- package/dist/bubbles/service-bubble/apify/apify.d.ts +30 -30
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +88 -88
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +18 -18
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +53 -53
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +22 -22
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +134 -134
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +16 -16
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +56 -56
- package/dist/bubbles/service-bubble/firecrawl.d.ts +760 -760
- package/dist/bubbles/service-bubble/followupboss.d.ts +282 -282
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +84 -84
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +12 -12
- package/dist/bubbles/service-bubble/github.d.ts +196 -196
- package/dist/bubbles/service-bubble/gmail.d.ts +344 -344
- package/dist/bubbles/service-bubble/google-calendar.d.ts +164 -164
- package/dist/bubbles/service-bubble/google-drive.d.ts +152 -152
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +62 -62
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +22 -22
- package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
- package/dist/bubbles/service-bubble/http.d.ts +14 -14
- package/dist/bubbles/service-bubble/insforge-db.d.ts +16 -16
- package/dist/bubbles/service-bubble/jira/jira.d.ts +78 -78
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
- package/dist/bubbles/service-bubble/notion/notion.d.ts +999 -999
- package/dist/bubbles/service-bubble/postgresql.d.ts +20 -20
- package/dist/bubbles/service-bubble/resend.d.ts +70 -70
- package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/resend.js +9 -7
- package/dist/bubbles/service-bubble/resend.js.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack.d.ts +592 -592
- package/dist/bubbles/service-bubble/storage.d.ts +60 -60
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +326 -119
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/stripe/stripe.js +87 -2
- package/dist/bubbles/service-bubble/stripe/stripe.js.map +1 -1
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +276 -37
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/stripe/stripe.schema.js +118 -0
- package/dist/bubbles/service-bubble/stripe/stripe.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/telegram.d.ts +1591 -1591
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +29 -29
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +14 -14
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +24 -24
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +22 -22
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +62 -62
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +18 -18
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +349 -349
- package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +122 -122
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +28 -28
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +80 -80
- package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +164 -164
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +22 -22
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +28 -28
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +40 -40
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +12 -12
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +98 -98
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +32 -32
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +92 -92
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +8 -8
- package/dist/bubbles.json +306 -14
- package/package.json +4 -4
package/dist/bubbles.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2.0.0",
|
|
3
|
-
"generatedAt": "2026-02-
|
|
3
|
+
"generatedAt": "2026-02-04T16:19:09.859Z",
|
|
4
4
|
"totalCount": 58,
|
|
5
5
|
"bubbles": [
|
|
6
6
|
{
|
|
@@ -7946,26 +7946,20 @@
|
|
|
7946
7946
|
"description": "Name of the attached file"
|
|
7947
7947
|
},
|
|
7948
7948
|
"content": {
|
|
7949
|
-
"
|
|
7950
|
-
|
|
7951
|
-
"type": "string"
|
|
7952
|
-
},
|
|
7953
|
-
{}
|
|
7954
|
-
],
|
|
7955
|
-
"description": "File content as string or Buffer"
|
|
7949
|
+
"type": "string",
|
|
7950
|
+
"description": "Base64 encoded file content"
|
|
7956
7951
|
},
|
|
7957
|
-
"
|
|
7952
|
+
"contentType": {
|
|
7958
7953
|
"type": "string",
|
|
7959
7954
|
"description": "MIME type of the file"
|
|
7960
7955
|
},
|
|
7961
7956
|
"path": {
|
|
7962
7957
|
"type": "string",
|
|
7963
|
-
"description": "
|
|
7958
|
+
"description": "URL where the attachment file is hosted"
|
|
7964
7959
|
}
|
|
7965
7960
|
},
|
|
7966
7961
|
"required": [
|
|
7967
|
-
"filename"
|
|
7968
|
-
"content"
|
|
7962
|
+
"filename"
|
|
7969
7963
|
],
|
|
7970
7964
|
"additionalProperties": false
|
|
7971
7965
|
},
|
|
@@ -8118,7 +8112,7 @@
|
|
|
8118
8112
|
}
|
|
8119
8113
|
]
|
|
8120
8114
|
},
|
|
8121
|
-
"usageExample": "// Send Email example\nconst resend_send_email = new ResendBubble({\n operation: \"send_email\", // Send an email via Resend\n from: \"Bubble Lab Team <welcome@hello.bubblelab.ai>\" // default, // Sender email address, should not be changed from <welcome@hello.bubblelab.ai> if resend account has not been setup with domain verification\n to: [\"example string\"], // Recipient email address(es). For multiple addresses, send as an array of strings. Max 50.\n cc: [\"example string\"], // CC email address(es). For multiple addresses, send as an array of strings.\n bcc: [\"example string\"], // BCC email address(es). For multiple addresses, send as an array of strings.\n subject: \"example string\", // Email subject line\n text: \"example string\", // Plain text email content\n html: \"example string\", // HTML email content\n reply_to: [\"example string\"], // Reply-to email address(es). For multiple addresses, send as an array of strings.\n scheduled_at: \"example string\", // Schedule email to be sent later (ISO 8601 format or natural language like \"in 1 hour\")\n attachments: [{ filename: \"example string\" // Name of the attached file, content: \"example string\" //
|
|
8115
|
+
"usageExample": "// Send Email example\nconst resend_send_email = new ResendBubble({\n operation: \"send_email\", // Send an email via Resend\n from: \"Bubble Lab Team <welcome@hello.bubblelab.ai>\" // default, // Sender email address, should not be changed from <welcome@hello.bubblelab.ai> if resend account has not been setup with domain verification\n to: [\"example string\"], // Recipient email address(es). For multiple addresses, send as an array of strings. Max 50.\n cc: [\"example string\"], // CC email address(es). For multiple addresses, send as an array of strings.\n bcc: [\"example string\"], // BCC email address(es). For multiple addresses, send as an array of strings.\n subject: \"example string\", // Email subject line\n text: \"example string\", // Plain text email content\n html: \"example string\", // HTML email content\n reply_to: [\"example string\"], // Reply-to email address(es). For multiple addresses, send as an array of strings.\n scheduled_at: \"example string\", // Schedule email to be sent later (ISO 8601 format or natural language like \"in 1 hour\")\n attachments: [{ filename: \"example string\" // Name of the attached file, content: \"example string\" // Base64 encoded file content, contentType: \"example string\" // MIME type of the file, path: \"example string\" // URL where the attachment file is hosted }], // Array of email attachments (max 40MB total per email)\n tags: [{ name: \"example string\" // Tag name (ASCII letters, numbers, underscores, dashes only, max 256 chars), value: \"example string\" // Tag value (ASCII letters, numbers, underscores, dashes only, max 256 chars) }], // Array of email tags for tracking and analytics\n headers: { \"example_key\": \"example string\" }, // Custom email headers (e.g., X-Custom-Header)\n});\n\nconst result = await resend_send_email.action();\n// outputSchema for result.data when operation === 'send_email':\n// {\n// operation: \"send_email\" // Send an email via Resend,\n// success: boolean // Whether the email was sent successfully,\n// email_id: string | undefined // Resend email ID if successful,\n// error: string // Error message if email sending failed\n// }\n\n\n// Get Email Status example\nconst resend_get_email_status = new ResendBubble({\n operation: \"get_email_status\", // Get the status of a sent email\n email_id: \"example string\", // Resend email ID to check status for\n});\n\nconst result = await resend_get_email_status.action();\n// outputSchema for result.data when operation === 'get_email_status':\n// {\n// operation: \"get_email_status\" // Get the status of a sent email,\n// success: boolean // Whether the status request was successful,\n// status: string | undefined // Current status of the email,\n// created_at: string | undefined // Timestamp when the email was created,\n// last_event: string | undefined // Last event that occurred with the email,\n// error: string // Error message if status request failed\n// }\n\n\n// Always check success status before using data\nif (!result.success) {\n throw new Error(`resend failed: ${result.error}`);\n}\n\n// Access the actual data\nconst actualData = result.data;\nconsole.log(actualData);",
|
|
8122
8116
|
"requiredCredentials": [
|
|
8123
8117
|
"RESEND_CRED"
|
|
8124
8118
|
]
|
|
@@ -58914,6 +58908,34 @@
|
|
|
58914
58908
|
"minimum": 1,
|
|
58915
58909
|
"description": "Days until invoice is due (for send_invoice collection)"
|
|
58916
58910
|
},
|
|
58911
|
+
"items": {
|
|
58912
|
+
"type": "array",
|
|
58913
|
+
"items": {
|
|
58914
|
+
"type": "object",
|
|
58915
|
+
"properties": {
|
|
58916
|
+
"unit_amount": {
|
|
58917
|
+
"type": "integer",
|
|
58918
|
+
"minimum": 1,
|
|
58919
|
+
"description": "Unit price in smallest currency unit (e.g., cents). Total = unit_amount * quantity"
|
|
58920
|
+
},
|
|
58921
|
+
"description": {
|
|
58922
|
+
"type": "string",
|
|
58923
|
+
"description": "Description of the line item"
|
|
58924
|
+
},
|
|
58925
|
+
"quantity": {
|
|
58926
|
+
"type": "integer",
|
|
58927
|
+
"minimum": 1,
|
|
58928
|
+
"default": 1,
|
|
58929
|
+
"description": "Quantity of items (default: 1)"
|
|
58930
|
+
}
|
|
58931
|
+
},
|
|
58932
|
+
"required": [
|
|
58933
|
+
"unit_amount"
|
|
58934
|
+
],
|
|
58935
|
+
"additionalProperties": false
|
|
58936
|
+
},
|
|
58937
|
+
"description": "Line items to add to the invoice after creation. Each item will be created as an invoice item."
|
|
58938
|
+
},
|
|
58917
58939
|
"metadata": {
|
|
58918
58940
|
"type": "object",
|
|
58919
58941
|
"additionalProperties": {
|
|
@@ -59042,6 +59064,98 @@
|
|
|
59042
59064
|
],
|
|
59043
59065
|
"additionalProperties": false
|
|
59044
59066
|
},
|
|
59067
|
+
{
|
|
59068
|
+
"type": "object",
|
|
59069
|
+
"properties": {
|
|
59070
|
+
"operation": {
|
|
59071
|
+
"type": "string",
|
|
59072
|
+
"enum": [
|
|
59073
|
+
"create_invoice_item"
|
|
59074
|
+
],
|
|
59075
|
+
"description": "Add a line item to an existing invoice or as a pending item for a customer"
|
|
59076
|
+
},
|
|
59077
|
+
"customer": {
|
|
59078
|
+
"type": "string",
|
|
59079
|
+
"minLength": 1,
|
|
59080
|
+
"description": "ID of the customer to add the item to"
|
|
59081
|
+
},
|
|
59082
|
+
"invoice": {
|
|
59083
|
+
"type": "string",
|
|
59084
|
+
"description": "ID of the invoice to attach this item to (must be a draft invoice)"
|
|
59085
|
+
},
|
|
59086
|
+
"unit_amount": {
|
|
59087
|
+
"type": "integer",
|
|
59088
|
+
"minimum": 1,
|
|
59089
|
+
"description": "Unit price in smallest currency unit (e.g., cents). Total = unit_amount * quantity"
|
|
59090
|
+
},
|
|
59091
|
+
"currency": {
|
|
59092
|
+
"type": "string",
|
|
59093
|
+
"minLength": 3,
|
|
59094
|
+
"maxLength": 3,
|
|
59095
|
+
"default": "usd",
|
|
59096
|
+
"description": "Three-letter ISO currency code (e.g., \"usd\")"
|
|
59097
|
+
},
|
|
59098
|
+
"description": {
|
|
59099
|
+
"type": "string",
|
|
59100
|
+
"description": "Description of the line item"
|
|
59101
|
+
},
|
|
59102
|
+
"quantity": {
|
|
59103
|
+
"type": "integer",
|
|
59104
|
+
"minimum": 1,
|
|
59105
|
+
"default": 1,
|
|
59106
|
+
"description": "Quantity of items (default: 1)"
|
|
59107
|
+
},
|
|
59108
|
+
"metadata": {
|
|
59109
|
+
"type": "object",
|
|
59110
|
+
"additionalProperties": {
|
|
59111
|
+
"type": "string"
|
|
59112
|
+
},
|
|
59113
|
+
"description": "Arbitrary metadata to attach to the invoice item"
|
|
59114
|
+
},
|
|
59115
|
+
"credentials": {
|
|
59116
|
+
"type": "object",
|
|
59117
|
+
"additionalProperties": {
|
|
59118
|
+
"type": "string"
|
|
59119
|
+
},
|
|
59120
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
59121
|
+
}
|
|
59122
|
+
},
|
|
59123
|
+
"required": [
|
|
59124
|
+
"operation",
|
|
59125
|
+
"customer",
|
|
59126
|
+
"unit_amount"
|
|
59127
|
+
],
|
|
59128
|
+
"additionalProperties": false
|
|
59129
|
+
},
|
|
59130
|
+
{
|
|
59131
|
+
"type": "object",
|
|
59132
|
+
"properties": {
|
|
59133
|
+
"operation": {
|
|
59134
|
+
"type": "string",
|
|
59135
|
+
"enum": [
|
|
59136
|
+
"send_invoice"
|
|
59137
|
+
],
|
|
59138
|
+
"description": "Send a finalized invoice to the customer via Stripe's built-in email service"
|
|
59139
|
+
},
|
|
59140
|
+
"invoice_id": {
|
|
59141
|
+
"type": "string",
|
|
59142
|
+
"minLength": 1,
|
|
59143
|
+
"description": "ID of the invoice to send (must be finalized/open status)"
|
|
59144
|
+
},
|
|
59145
|
+
"credentials": {
|
|
59146
|
+
"type": "object",
|
|
59147
|
+
"additionalProperties": {
|
|
59148
|
+
"type": "string"
|
|
59149
|
+
},
|
|
59150
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
59151
|
+
}
|
|
59152
|
+
},
|
|
59153
|
+
"required": [
|
|
59154
|
+
"operation",
|
|
59155
|
+
"invoice_id"
|
|
59156
|
+
],
|
|
59157
|
+
"additionalProperties": false
|
|
59158
|
+
},
|
|
59045
59159
|
{
|
|
59046
59160
|
"type": "object",
|
|
59047
59161
|
"properties": {
|
|
@@ -60145,6 +60259,184 @@
|
|
|
60145
60259
|
],
|
|
60146
60260
|
"additionalProperties": false
|
|
60147
60261
|
},
|
|
60262
|
+
{
|
|
60263
|
+
"type": "object",
|
|
60264
|
+
"properties": {
|
|
60265
|
+
"operation": {
|
|
60266
|
+
"type": "string",
|
|
60267
|
+
"enum": [
|
|
60268
|
+
"create_invoice_item"
|
|
60269
|
+
]
|
|
60270
|
+
},
|
|
60271
|
+
"success": {
|
|
60272
|
+
"type": "boolean",
|
|
60273
|
+
"description": "Whether the operation succeeded"
|
|
60274
|
+
},
|
|
60275
|
+
"invoice_item": {
|
|
60276
|
+
"type": "object",
|
|
60277
|
+
"properties": {
|
|
60278
|
+
"id": {
|
|
60279
|
+
"type": "string",
|
|
60280
|
+
"description": "Unique Stripe invoice item identifier (ii_xxx)"
|
|
60281
|
+
},
|
|
60282
|
+
"invoice": {
|
|
60283
|
+
"type": "string",
|
|
60284
|
+
"nullable": true,
|
|
60285
|
+
"description": "ID of the invoice this item belongs to"
|
|
60286
|
+
},
|
|
60287
|
+
"customer": {
|
|
60288
|
+
"type": "string",
|
|
60289
|
+
"description": "ID of the customer"
|
|
60290
|
+
},
|
|
60291
|
+
"amount": {
|
|
60292
|
+
"type": "number",
|
|
60293
|
+
"description": "Total amount in smallest currency unit (unit_amount * quantity)"
|
|
60294
|
+
},
|
|
60295
|
+
"unit_amount": {
|
|
60296
|
+
"type": "number",
|
|
60297
|
+
"nullable": true,
|
|
60298
|
+
"description": "Unit price in smallest currency unit"
|
|
60299
|
+
},
|
|
60300
|
+
"currency": {
|
|
60301
|
+
"type": "string",
|
|
60302
|
+
"description": "Three-letter ISO currency code"
|
|
60303
|
+
},
|
|
60304
|
+
"description": {
|
|
60305
|
+
"type": "string",
|
|
60306
|
+
"nullable": true,
|
|
60307
|
+
"description": "Description of the invoice item"
|
|
60308
|
+
},
|
|
60309
|
+
"quantity": {
|
|
60310
|
+
"type": "number",
|
|
60311
|
+
"description": "Quantity of the item"
|
|
60312
|
+
},
|
|
60313
|
+
"date": {
|
|
60314
|
+
"type": "number",
|
|
60315
|
+
"description": "Unix timestamp when the item was created"
|
|
60316
|
+
},
|
|
60317
|
+
"metadata": {
|
|
60318
|
+
"type": "object",
|
|
60319
|
+
"additionalProperties": {
|
|
60320
|
+
"type": "string"
|
|
60321
|
+
},
|
|
60322
|
+
"description": "Arbitrary metadata attached to the invoice item"
|
|
60323
|
+
}
|
|
60324
|
+
},
|
|
60325
|
+
"required": [
|
|
60326
|
+
"id",
|
|
60327
|
+
"customer",
|
|
60328
|
+
"amount",
|
|
60329
|
+
"currency"
|
|
60330
|
+
],
|
|
60331
|
+
"additionalProperties": false,
|
|
60332
|
+
"description": "Created invoice item object"
|
|
60333
|
+
},
|
|
60334
|
+
"error": {
|
|
60335
|
+
"type": "string",
|
|
60336
|
+
"description": "Error message if operation failed"
|
|
60337
|
+
}
|
|
60338
|
+
},
|
|
60339
|
+
"required": [
|
|
60340
|
+
"operation",
|
|
60341
|
+
"success",
|
|
60342
|
+
"error"
|
|
60343
|
+
],
|
|
60344
|
+
"additionalProperties": false
|
|
60345
|
+
},
|
|
60346
|
+
{
|
|
60347
|
+
"type": "object",
|
|
60348
|
+
"properties": {
|
|
60349
|
+
"operation": {
|
|
60350
|
+
"type": "string",
|
|
60351
|
+
"enum": [
|
|
60352
|
+
"send_invoice"
|
|
60353
|
+
]
|
|
60354
|
+
},
|
|
60355
|
+
"success": {
|
|
60356
|
+
"type": "boolean",
|
|
60357
|
+
"description": "Whether the operation succeeded"
|
|
60358
|
+
},
|
|
60359
|
+
"invoice": {
|
|
60360
|
+
"type": "object",
|
|
60361
|
+
"properties": {
|
|
60362
|
+
"id": {
|
|
60363
|
+
"type": "string",
|
|
60364
|
+
"description": "Unique Stripe invoice identifier (in_xxx)"
|
|
60365
|
+
},
|
|
60366
|
+
"customer": {
|
|
60367
|
+
"type": "string",
|
|
60368
|
+
"nullable": true,
|
|
60369
|
+
"description": "ID of the customer"
|
|
60370
|
+
},
|
|
60371
|
+
"status": {
|
|
60372
|
+
"type": "string",
|
|
60373
|
+
"enum": [
|
|
60374
|
+
"draft",
|
|
60375
|
+
"open",
|
|
60376
|
+
"paid",
|
|
60377
|
+
"uncollectible",
|
|
60378
|
+
"void"
|
|
60379
|
+
],
|
|
60380
|
+
"nullable": true,
|
|
60381
|
+
"description": "Invoice status"
|
|
60382
|
+
},
|
|
60383
|
+
"total": {
|
|
60384
|
+
"type": "number",
|
|
60385
|
+
"description": "Total amount in smallest currency unit"
|
|
60386
|
+
},
|
|
60387
|
+
"currency": {
|
|
60388
|
+
"type": "string",
|
|
60389
|
+
"description": "Three-letter ISO currency code"
|
|
60390
|
+
},
|
|
60391
|
+
"created": {
|
|
60392
|
+
"type": "number",
|
|
60393
|
+
"description": "Unix timestamp of creation"
|
|
60394
|
+
},
|
|
60395
|
+
"due_date": {
|
|
60396
|
+
"type": "string",
|
|
60397
|
+
"nullable": true,
|
|
60398
|
+
"description": "ISO date string when the invoice is due"
|
|
60399
|
+
},
|
|
60400
|
+
"hosted_invoice_url": {
|
|
60401
|
+
"type": "string",
|
|
60402
|
+
"nullable": true,
|
|
60403
|
+
"description": "URL for the hosted invoice page"
|
|
60404
|
+
},
|
|
60405
|
+
"invoice_pdf": {
|
|
60406
|
+
"type": "string",
|
|
60407
|
+
"nullable": true,
|
|
60408
|
+
"description": "URL for the invoice PDF (only available after finalization)"
|
|
60409
|
+
},
|
|
60410
|
+
"metadata": {
|
|
60411
|
+
"type": "object",
|
|
60412
|
+
"additionalProperties": {
|
|
60413
|
+
"type": "string"
|
|
60414
|
+
},
|
|
60415
|
+
"description": "Arbitrary metadata attached to the invoice"
|
|
60416
|
+
}
|
|
60417
|
+
},
|
|
60418
|
+
"required": [
|
|
60419
|
+
"id",
|
|
60420
|
+
"customer",
|
|
60421
|
+
"status",
|
|
60422
|
+
"total",
|
|
60423
|
+
"currency"
|
|
60424
|
+
],
|
|
60425
|
+
"additionalProperties": false,
|
|
60426
|
+
"description": "Invoice object after sending"
|
|
60427
|
+
},
|
|
60428
|
+
"error": {
|
|
60429
|
+
"type": "string",
|
|
60430
|
+
"description": "Error message if operation failed"
|
|
60431
|
+
}
|
|
60432
|
+
},
|
|
60433
|
+
"required": [
|
|
60434
|
+
"operation",
|
|
60435
|
+
"success",
|
|
60436
|
+
"error"
|
|
60437
|
+
],
|
|
60438
|
+
"additionalProperties": false
|
|
60439
|
+
},
|
|
60148
60440
|
{
|
|
60149
60441
|
"type": "object",
|
|
60150
60442
|
"properties": {
|
|
@@ -60631,7 +60923,7 @@
|
|
|
60631
60923
|
}
|
|
60632
60924
|
]
|
|
60633
60925
|
},
|
|
60634
|
-
"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, due_date: string | null | undefined // ISO date string when the invoice is due, 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, due_date: string | null | undefined // ISO date string when the invoice is due, 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, due_date: string | null | undefined // ISO date string when the invoice is due, 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, due_date: string | null | undefined // ISO date string when the invoice is due, 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);",
|
|
60926
|
+
"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 items: [{ unit_amount: 42 // Unit price in smallest currency unit (e.g., cents). Total = unit_amount * quantity, description: \"example string\" // Description of the line item, quantity: 1 // default // Quantity of items (default: 1) }], // Line items to add to the invoice after creation. Each item will be created as an invoice item.\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, due_date: string | null | undefined // ISO date string when the invoice is due, 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, due_date: string | null | undefined // ISO date string when the invoice is due, 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, due_date: string | null | undefined // ISO date string when the invoice is due, 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, due_date: string | null | undefined // ISO date string when the invoice is due, 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// Create Invoice Item example\nconst stripe_create_invoice_item = new StripeBubble({\n operation: \"create_invoice_item\", // Add a line item to an existing invoice or as a pending item for a customer\n customer: \"example string\", // ID of the customer to add the item to\n invoice: \"example string\", // ID of the invoice to attach this item to (must be a draft invoice)\n unit_amount: 42, // Unit price in smallest currency unit (e.g., cents). Total = unit_amount * quantity\n currency: \"usd\" // default, // Three-letter ISO currency code (e.g., \"usd\")\n description: \"example string\", // Description of the line item\n quantity: 1 // default, // Quantity of items (default: 1)\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the invoice item\n});\n\nconst result = await stripe_create_invoice_item.action();\n// outputSchema for result.data when operation === 'create_invoice_item':\n// {\n// operation: \"create_invoice_item\",\n// success: boolean // Whether the operation succeeded,\n// invoice_item: { id: string // Unique Stripe invoice item identifier (ii_xxx), invoice: string | null | undefined // ID of the invoice this item belongs to, customer: string // ID of the customer, amount: number // Total amount in smallest currency unit (unit_amount * quantity), unit_amount: number | null | undefined // Unit price in smallest currency unit, currency: string // Three-letter ISO currency code, description: string | null | undefined // Description of the invoice item, quantity: number | undefined // Quantity of the item, date: number | undefined // Unix timestamp when the item was created, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the invoice item } | undefined // Created invoice item object,\n// error: string // Error message if operation failed\n// }\n\n\n// Send Invoice example\nconst stripe_send_invoice = new StripeBubble({\n operation: \"send_invoice\", // Send a finalized invoice to the customer via Stripe's built-in email service\n invoice_id: \"example string\", // ID of the invoice to send (must be finalized/open status)\n});\n\nconst result = await stripe_send_invoice.action();\n// outputSchema for result.data when operation === 'send_invoice':\n// {\n// operation: \"send_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, due_date: string | null | undefined // ISO date string when the invoice is due, 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 // Invoice object after sending,\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);",
|
|
60635
60927
|
"requiredCredentials": [
|
|
60636
60928
|
"STRIPE_CRED"
|
|
60637
60929
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubblelab/bubble-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.99",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,15 +40,15 @@
|
|
|
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.99"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"zod-to-json-schema": "^3.24.6",
|
|
47
46
|
"@types/node": "^20.12.12",
|
|
48
47
|
"@vitest/ui": "^3.2.4",
|
|
49
48
|
"tsx": "^4.20.3",
|
|
50
49
|
"typescript": "^5.8.3",
|
|
51
|
-
"vitest": "^3.2.4"
|
|
50
|
+
"vitest": "^3.2.4",
|
|
51
|
+
"zod-to-json-schema": "^3.24.6"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsc && tsx scripts/bubble-bundler.ts && tsx scripts/bubble-metadata-bundler.ts",
|