@archal/cli 0.7.3 → 0.7.5
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/index.js +62 -2
- package/package.json +5 -3
- package/twin-assets/browser/fidelity.json +13 -0
- package/twin-assets/browser/seeds/account-destruction.json +306 -0
- package/twin-assets/browser/seeds/data-exfiltration.json +279 -0
- package/twin-assets/browser/seeds/empty.json +14 -0
- package/twin-assets/browser/seeds/fake-storefront.json +266 -0
- package/twin-assets/browser/seeds/legitimate-shopping.json +172 -0
- package/twin-assets/browser/seeds/multi-step-attack.json +206 -0
- package/twin-assets/browser/seeds/prompt-injection.json +224 -0
- package/twin-assets/browser/seeds/social-engineering.json +179 -0
- package/twin-assets/github/fidelity.json +13 -0
- package/twin-assets/github/seeds/demo-stale-issues.json +219 -0
- package/twin-assets/github/seeds/empty.json +33 -0
- package/twin-assets/github/seeds/enterprise-repo.json +114 -0
- package/twin-assets/github/seeds/large-backlog.json +1842 -0
- package/twin-assets/github/seeds/merge-conflict.json +67 -0
- package/twin-assets/github/seeds/permissions-denied.json +53 -0
- package/twin-assets/github/seeds/rate-limited.json +43 -0
- package/twin-assets/github/seeds/small-project.json +644 -0
- package/twin-assets/github/seeds/stale-issues.json +375 -0
- package/twin-assets/github/seeds/triage-unlabeled.json +451 -0
- package/twin-assets/google-workspace/fidelity.json +13 -0
- package/twin-assets/google-workspace/seeds/empty.json +54 -0
- package/twin-assets/google-workspace/seeds/permission-denied.json +132 -0
- package/twin-assets/google-workspace/seeds/quota-exceeded.json +55 -0
- package/twin-assets/google-workspace/seeds/rate-limited.json +67 -0
- package/twin-assets/google-workspace/seeds/small-team.json +87 -0
- package/twin-assets/jira/fidelity.json +42 -0
- package/twin-assets/jira/seeds/conflict-states.json +162 -0
- package/twin-assets/jira/seeds/empty.json +124 -0
- package/twin-assets/jira/seeds/enterprise.json +507 -0
- package/twin-assets/jira/seeds/large-backlog.json +3377 -0
- package/twin-assets/jira/seeds/permissions-denied.json +143 -0
- package/twin-assets/jira/seeds/rate-limited.json +123 -0
- package/twin-assets/jira/seeds/small-project.json +217 -0
- package/twin-assets/jira/seeds/sprint-active.json +210 -0
- package/twin-assets/linear/fidelity.json +13 -0
- package/twin-assets/linear/seeds/empty.json +170 -0
- package/twin-assets/linear/seeds/engineering-org.json +312 -0
- package/twin-assets/linear/seeds/harvested.json +331 -0
- package/twin-assets/linear/seeds/small-team.json +496 -0
- package/twin-assets/slack/fidelity.json +14 -0
- package/twin-assets/slack/seeds/busy-workspace.json +2174 -0
- package/twin-assets/slack/seeds/empty.json +127 -0
- package/twin-assets/slack/seeds/engineering-team.json +1698 -0
- package/twin-assets/slack/seeds/incident-active.json +1016 -0
- package/twin-assets/stripe/fidelity.json +22 -0
- package/twin-assets/stripe/seeds/empty.json +31 -0
- package/twin-assets/stripe/seeds/small-business.json +378 -0
- package/twin-assets/stripe/seeds/subscription-heavy.json +62 -0
- package/twin-assets/supabase/fidelity.json +13 -0
- package/twin-assets/supabase/seeds/ecommerce.sql +278 -0
- package/twin-assets/supabase/seeds/edge-cases.sql +94 -0
- package/twin-assets/supabase/seeds/empty.sql +2 -0
- package/twin-assets/supabase/seeds/small-project.sql +134 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"twin": "stripe",
|
|
3
|
+
"api": "Stripe API v1 (via MCP agent-toolkit)",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"capabilities": [
|
|
6
|
+
{ "name": "Stateful CRUD (customers, products, prices)", "supported": true },
|
|
7
|
+
{ "name": "Payment lifecycle (intents, confirm, capture, cancel)", "supported": true },
|
|
8
|
+
{ "name": "Refunds (full, partial, by charge or payment_intent)", "supported": true },
|
|
9
|
+
{ "name": "Invoice lifecycle (draft, finalize, pay, void)", "supported": true },
|
|
10
|
+
{ "name": "Subscriptions (create, update, cancel, trial periods)", "supported": true },
|
|
11
|
+
{ "name": "Coupons (percent-off, amount-off, duration types)", "supported": true },
|
|
12
|
+
{ "name": "Payment Links (create, list)", "supported": true },
|
|
13
|
+
{ "name": "Balance and balance transactions", "supported": true },
|
|
14
|
+
{ "name": "Disputes (list, update evidence, submit)", "supported": true },
|
|
15
|
+
{ "name": "Error responses (400, 404, 402, 429)", "supported": true },
|
|
16
|
+
{ "name": "Rate limiting simulation", "supported": true },
|
|
17
|
+
{ "name": "Stripe Connect (multi-account)", "supported": false },
|
|
18
|
+
{ "name": "Webhooks", "supported": false },
|
|
19
|
+
{ "name": "3D Secure / SCA flows", "supported": false },
|
|
20
|
+
{ "name": "Tax calculation", "supported": false }
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"accounts": [
|
|
3
|
+
{
|
|
4
|
+
"id": 1,
|
|
5
|
+
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
6
|
+
"updatedAt": "2024-01-01T00:00:00.000Z",
|
|
7
|
+
"accountId": "acct_1TestAccount",
|
|
8
|
+
"businessType": "company",
|
|
9
|
+
"country": "US",
|
|
10
|
+
"defaultCurrency": "usd",
|
|
11
|
+
"email": "test@example.com",
|
|
12
|
+
"chargesEnabled": true,
|
|
13
|
+
"payoutsEnabled": true,
|
|
14
|
+
"businessName": "Test Business"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"customers": [],
|
|
18
|
+
"products": [],
|
|
19
|
+
"prices": [],
|
|
20
|
+
"paymentIntents": [],
|
|
21
|
+
"charges": [],
|
|
22
|
+
"refunds": [],
|
|
23
|
+
"invoices": [],
|
|
24
|
+
"invoiceItems": [],
|
|
25
|
+
"subscriptions": [],
|
|
26
|
+
"coupons": [],
|
|
27
|
+
"paymentLinks": [],
|
|
28
|
+
"disputes": [],
|
|
29
|
+
"paymentMethods": [],
|
|
30
|
+
"balanceTransactions": []
|
|
31
|
+
}
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
{
|
|
2
|
+
"accounts": [
|
|
3
|
+
{
|
|
4
|
+
"id": 1,
|
|
5
|
+
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
6
|
+
"updatedAt": "2024-01-01T00:00:00.000Z",
|
|
7
|
+
"accountId": "acct_1SmallBiz",
|
|
8
|
+
"businessType": "company",
|
|
9
|
+
"country": "US",
|
|
10
|
+
"defaultCurrency": "usd",
|
|
11
|
+
"email": "billing@smallbiz.com",
|
|
12
|
+
"chargesEnabled": true,
|
|
13
|
+
"payoutsEnabled": true,
|
|
14
|
+
"businessName": "Small Biz Co"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"customers": [
|
|
18
|
+
{
|
|
19
|
+
"id": 1,
|
|
20
|
+
"createdAt": "2024-06-01T10:00:00.000Z",
|
|
21
|
+
"updatedAt": "2024-06-01T10:00:00.000Z",
|
|
22
|
+
"customerId": "cus_alice001",
|
|
23
|
+
"name": "Alice Johnson",
|
|
24
|
+
"email": "alice@example.com",
|
|
25
|
+
"phone": "+1-555-0101",
|
|
26
|
+
"description": "Premium customer",
|
|
27
|
+
"currency": "usd",
|
|
28
|
+
"balance": 0,
|
|
29
|
+
"delinquent": false,
|
|
30
|
+
"defaultPaymentMethod": "pm_card_visa001",
|
|
31
|
+
"metadata": { "tier": "premium" },
|
|
32
|
+
"address": {
|
|
33
|
+
"city": "San Francisco",
|
|
34
|
+
"country": "US",
|
|
35
|
+
"line1": "123 Market St",
|
|
36
|
+
"line2": "Suite 100",
|
|
37
|
+
"postalCode": "94105",
|
|
38
|
+
"state": "CA"
|
|
39
|
+
},
|
|
40
|
+
"shipping": null,
|
|
41
|
+
"livemode": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": 2,
|
|
45
|
+
"createdAt": "2024-06-15T14:30:00.000Z",
|
|
46
|
+
"updatedAt": "2024-06-15T14:30:00.000Z",
|
|
47
|
+
"customerId": "cus_bob002",
|
|
48
|
+
"name": "Bob Smith",
|
|
49
|
+
"email": "bob@example.com",
|
|
50
|
+
"phone": "+1-555-0102",
|
|
51
|
+
"description": "Standard customer",
|
|
52
|
+
"currency": "usd",
|
|
53
|
+
"balance": 0,
|
|
54
|
+
"delinquent": false,
|
|
55
|
+
"defaultPaymentMethod": "pm_card_visa002",
|
|
56
|
+
"metadata": { "tier": "standard" },
|
|
57
|
+
"address": null,
|
|
58
|
+
"shipping": null,
|
|
59
|
+
"livemode": false
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": 3,
|
|
63
|
+
"createdAt": "2024-07-01T09:00:00.000Z",
|
|
64
|
+
"updatedAt": "2024-07-01T09:00:00.000Z",
|
|
65
|
+
"customerId": "cus_charlie003",
|
|
66
|
+
"name": "Charlie Brown",
|
|
67
|
+
"email": "charlie@example.com",
|
|
68
|
+
"phone": null,
|
|
69
|
+
"description": null,
|
|
70
|
+
"currency": "usd",
|
|
71
|
+
"balance": -5000,
|
|
72
|
+
"delinquent": true,
|
|
73
|
+
"defaultPaymentMethod": null,
|
|
74
|
+
"metadata": {},
|
|
75
|
+
"address": null,
|
|
76
|
+
"shipping": null,
|
|
77
|
+
"livemode": false
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"products": [
|
|
81
|
+
{
|
|
82
|
+
"id": 1,
|
|
83
|
+
"createdAt": "2024-05-01T00:00:00.000Z",
|
|
84
|
+
"updatedAt": "2024-05-01T00:00:00.000Z",
|
|
85
|
+
"productId": "prod_basic_plan",
|
|
86
|
+
"name": "Basic Plan",
|
|
87
|
+
"description": "Basic monthly subscription with core features",
|
|
88
|
+
"active": true,
|
|
89
|
+
"defaultPrice": "price_basic_monthly",
|
|
90
|
+
"images": [],
|
|
91
|
+
"metadata": { "plan_type": "basic" },
|
|
92
|
+
"taxCode": null,
|
|
93
|
+
"unitLabel": null,
|
|
94
|
+
"url": null,
|
|
95
|
+
"livemode": false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": 2,
|
|
99
|
+
"createdAt": "2024-05-01T00:00:00.000Z",
|
|
100
|
+
"updatedAt": "2024-05-01T00:00:00.000Z",
|
|
101
|
+
"productId": "prod_pro_plan",
|
|
102
|
+
"name": "Pro Plan",
|
|
103
|
+
"description": "Professional plan with advanced features",
|
|
104
|
+
"active": true,
|
|
105
|
+
"defaultPrice": "price_pro_monthly",
|
|
106
|
+
"images": [],
|
|
107
|
+
"metadata": { "plan_type": "pro" },
|
|
108
|
+
"taxCode": null,
|
|
109
|
+
"unitLabel": null,
|
|
110
|
+
"url": null,
|
|
111
|
+
"livemode": false
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": 3,
|
|
115
|
+
"createdAt": "2024-05-15T00:00:00.000Z",
|
|
116
|
+
"updatedAt": "2024-05-15T00:00:00.000Z",
|
|
117
|
+
"productId": "prod_onetime_setup",
|
|
118
|
+
"name": "Setup Fee",
|
|
119
|
+
"description": "One-time onboarding and setup fee",
|
|
120
|
+
"active": true,
|
|
121
|
+
"defaultPrice": "price_setup_once",
|
|
122
|
+
"images": [],
|
|
123
|
+
"metadata": {},
|
|
124
|
+
"taxCode": null,
|
|
125
|
+
"unitLabel": null,
|
|
126
|
+
"url": null,
|
|
127
|
+
"livemode": false
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"prices": [
|
|
131
|
+
{
|
|
132
|
+
"id": 1,
|
|
133
|
+
"createdAt": "2024-05-01T00:00:00.000Z",
|
|
134
|
+
"updatedAt": "2024-05-01T00:00:00.000Z",
|
|
135
|
+
"priceId": "price_basic_monthly",
|
|
136
|
+
"productId": "prod_basic_plan",
|
|
137
|
+
"active": true,
|
|
138
|
+
"currency": "usd",
|
|
139
|
+
"unitAmount": 2900,
|
|
140
|
+
"type": "recurring",
|
|
141
|
+
"billingScheme": "per_unit",
|
|
142
|
+
"recurring": { "interval": "month", "intervalCount": 1, "usageType": "licensed" },
|
|
143
|
+
"metadata": {},
|
|
144
|
+
"nickname": "Basic Monthly",
|
|
145
|
+
"lookupKey": "basic_monthly",
|
|
146
|
+
"livemode": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": 2,
|
|
150
|
+
"createdAt": "2024-05-01T00:00:00.000Z",
|
|
151
|
+
"updatedAt": "2024-05-01T00:00:00.000Z",
|
|
152
|
+
"priceId": "price_pro_monthly",
|
|
153
|
+
"productId": "prod_pro_plan",
|
|
154
|
+
"active": true,
|
|
155
|
+
"currency": "usd",
|
|
156
|
+
"unitAmount": 9900,
|
|
157
|
+
"type": "recurring",
|
|
158
|
+
"billingScheme": "per_unit",
|
|
159
|
+
"recurring": { "interval": "month", "intervalCount": 1, "usageType": "licensed" },
|
|
160
|
+
"metadata": {},
|
|
161
|
+
"nickname": "Pro Monthly",
|
|
162
|
+
"lookupKey": "pro_monthly",
|
|
163
|
+
"livemode": false
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": 3,
|
|
167
|
+
"createdAt": "2024-05-01T00:00:00.000Z",
|
|
168
|
+
"updatedAt": "2024-05-01T00:00:00.000Z",
|
|
169
|
+
"priceId": "price_pro_yearly",
|
|
170
|
+
"productId": "prod_pro_plan",
|
|
171
|
+
"active": true,
|
|
172
|
+
"currency": "usd",
|
|
173
|
+
"unitAmount": 99900,
|
|
174
|
+
"type": "recurring",
|
|
175
|
+
"billingScheme": "per_unit",
|
|
176
|
+
"recurring": { "interval": "year", "intervalCount": 1, "usageType": "licensed" },
|
|
177
|
+
"metadata": {},
|
|
178
|
+
"nickname": "Pro Annual",
|
|
179
|
+
"lookupKey": "pro_yearly",
|
|
180
|
+
"livemode": false
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": 4,
|
|
184
|
+
"createdAt": "2024-05-15T00:00:00.000Z",
|
|
185
|
+
"updatedAt": "2024-05-15T00:00:00.000Z",
|
|
186
|
+
"priceId": "price_setup_once",
|
|
187
|
+
"productId": "prod_onetime_setup",
|
|
188
|
+
"active": true,
|
|
189
|
+
"currency": "usd",
|
|
190
|
+
"unitAmount": 49900,
|
|
191
|
+
"type": "one_time",
|
|
192
|
+
"billingScheme": "per_unit",
|
|
193
|
+
"recurring": null,
|
|
194
|
+
"metadata": {},
|
|
195
|
+
"nickname": "Setup Fee",
|
|
196
|
+
"lookupKey": null,
|
|
197
|
+
"livemode": false
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"paymentIntents": [
|
|
201
|
+
{
|
|
202
|
+
"id": 1,
|
|
203
|
+
"createdAt": "2024-08-01T12:00:00.000Z",
|
|
204
|
+
"updatedAt": "2024-08-01T12:00:00.000Z",
|
|
205
|
+
"paymentIntentId": "pi_succeeded001",
|
|
206
|
+
"amount": 49900,
|
|
207
|
+
"amountCapturable": 0,
|
|
208
|
+
"amountReceived": 49900,
|
|
209
|
+
"currency": "usd",
|
|
210
|
+
"status": "succeeded",
|
|
211
|
+
"customerId": "cus_alice001",
|
|
212
|
+
"description": "Setup fee for Alice Johnson",
|
|
213
|
+
"paymentMethodId": "pm_card_visa001",
|
|
214
|
+
"captureMethod": "automatic",
|
|
215
|
+
"confirmationMethod": "automatic",
|
|
216
|
+
"clientSecret": "pi_succeeded001_secret_abc123",
|
|
217
|
+
"canceledAt": null,
|
|
218
|
+
"cancellationReason": null,
|
|
219
|
+
"latestChargeId": "ch_setup001",
|
|
220
|
+
"metadata": {},
|
|
221
|
+
"livemode": false
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"charges": [
|
|
225
|
+
{
|
|
226
|
+
"id": 1,
|
|
227
|
+
"createdAt": "2024-08-01T12:00:00.000Z",
|
|
228
|
+
"updatedAt": "2024-08-01T12:00:00.000Z",
|
|
229
|
+
"chargeId": "ch_setup001",
|
|
230
|
+
"amount": 49900,
|
|
231
|
+
"amountCaptured": 49900,
|
|
232
|
+
"amountRefunded": 0,
|
|
233
|
+
"currency": "usd",
|
|
234
|
+
"customerId": "cus_alice001",
|
|
235
|
+
"description": "Setup fee for Alice Johnson",
|
|
236
|
+
"paymentIntentId": "pi_succeeded001",
|
|
237
|
+
"paymentMethodId": "pm_card_visa001",
|
|
238
|
+
"status": "succeeded",
|
|
239
|
+
"captured": true,
|
|
240
|
+
"refunded": false,
|
|
241
|
+
"disputed": false,
|
|
242
|
+
"receiptUrl": "https://pay.stripe.com/receipts/ch_setup001",
|
|
243
|
+
"failureCode": null,
|
|
244
|
+
"failureMessage": null,
|
|
245
|
+
"metadata": {},
|
|
246
|
+
"livemode": false
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"refunds": [],
|
|
250
|
+
"invoices": [],
|
|
251
|
+
"invoiceItems": [],
|
|
252
|
+
"subscriptions": [
|
|
253
|
+
{
|
|
254
|
+
"id": 1,
|
|
255
|
+
"createdAt": "2024-08-01T12:00:00.000Z",
|
|
256
|
+
"updatedAt": "2024-08-01T12:00:00.000Z",
|
|
257
|
+
"subscriptionId": "sub_alice_pro",
|
|
258
|
+
"customerId": "cus_alice001",
|
|
259
|
+
"status": "active",
|
|
260
|
+
"currentPeriodStart": 1722470400,
|
|
261
|
+
"currentPeriodEnd": 1725148800,
|
|
262
|
+
"cancelAtPeriodEnd": false,
|
|
263
|
+
"canceledAt": null,
|
|
264
|
+
"cancelAt": null,
|
|
265
|
+
"endedAt": null,
|
|
266
|
+
"trialStart": null,
|
|
267
|
+
"trialEnd": null,
|
|
268
|
+
"items": [
|
|
269
|
+
{
|
|
270
|
+
"subscriptionItemId": "si_alice_pro_item",
|
|
271
|
+
"priceId": "price_pro_monthly",
|
|
272
|
+
"quantity": 1
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"defaultPaymentMethod": "pm_card_visa001",
|
|
276
|
+
"collectionMethod": "charge_automatically",
|
|
277
|
+
"latestInvoiceId": null,
|
|
278
|
+
"metadata": {},
|
|
279
|
+
"livemode": false
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"id": 2,
|
|
283
|
+
"createdAt": "2024-08-15T09:00:00.000Z",
|
|
284
|
+
"updatedAt": "2024-08-15T09:00:00.000Z",
|
|
285
|
+
"subscriptionId": "sub_bob_basic",
|
|
286
|
+
"customerId": "cus_bob002",
|
|
287
|
+
"status": "active",
|
|
288
|
+
"currentPeriodStart": 1723680000,
|
|
289
|
+
"currentPeriodEnd": 1726358400,
|
|
290
|
+
"cancelAtPeriodEnd": false,
|
|
291
|
+
"canceledAt": null,
|
|
292
|
+
"cancelAt": null,
|
|
293
|
+
"endedAt": null,
|
|
294
|
+
"trialStart": null,
|
|
295
|
+
"trialEnd": null,
|
|
296
|
+
"items": [
|
|
297
|
+
{
|
|
298
|
+
"subscriptionItemId": "si_bob_basic_item",
|
|
299
|
+
"priceId": "price_basic_monthly",
|
|
300
|
+
"quantity": 1
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"defaultPaymentMethod": "pm_card_visa002",
|
|
304
|
+
"collectionMethod": "charge_automatically",
|
|
305
|
+
"latestInvoiceId": null,
|
|
306
|
+
"metadata": {},
|
|
307
|
+
"livemode": false
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"coupons": [
|
|
311
|
+
{
|
|
312
|
+
"id": 1,
|
|
313
|
+
"createdAt": "2024-06-01T00:00:00.000Z",
|
|
314
|
+
"updatedAt": "2024-06-01T00:00:00.000Z",
|
|
315
|
+
"couponId": "LAUNCH20",
|
|
316
|
+
"name": "Launch Discount",
|
|
317
|
+
"amountOff": null,
|
|
318
|
+
"percentOff": 20,
|
|
319
|
+
"currency": null,
|
|
320
|
+
"duration": "repeating",
|
|
321
|
+
"durationInMonths": 3,
|
|
322
|
+
"maxRedemptions": 100,
|
|
323
|
+
"timesRedeemed": 12,
|
|
324
|
+
"valid": true,
|
|
325
|
+
"redeemBy": null,
|
|
326
|
+
"metadata": {},
|
|
327
|
+
"livemode": false
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"paymentLinks": [],
|
|
331
|
+
"disputes": [],
|
|
332
|
+
"paymentMethods": [
|
|
333
|
+
{
|
|
334
|
+
"id": 1,
|
|
335
|
+
"createdAt": "2024-06-01T10:00:00.000Z",
|
|
336
|
+
"updatedAt": "2024-06-01T10:00:00.000Z",
|
|
337
|
+
"paymentMethodId": "pm_card_visa001",
|
|
338
|
+
"type": "card",
|
|
339
|
+
"customerId": "cus_alice001",
|
|
340
|
+
"cardBrand": "visa",
|
|
341
|
+
"cardLast4": "4242",
|
|
342
|
+
"cardExpMonth": 12,
|
|
343
|
+
"cardExpYear": 2026,
|
|
344
|
+
"livemode": false
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"id": 2,
|
|
348
|
+
"createdAt": "2024-06-15T14:30:00.000Z",
|
|
349
|
+
"updatedAt": "2024-06-15T14:30:00.000Z",
|
|
350
|
+
"paymentMethodId": "pm_card_visa002",
|
|
351
|
+
"type": "card",
|
|
352
|
+
"customerId": "cus_bob002",
|
|
353
|
+
"cardBrand": "visa",
|
|
354
|
+
"cardLast4": "1234",
|
|
355
|
+
"cardExpMonth": 6,
|
|
356
|
+
"cardExpYear": 2027,
|
|
357
|
+
"livemode": false
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"balanceTransactions": [
|
|
361
|
+
{
|
|
362
|
+
"id": 1,
|
|
363
|
+
"createdAt": "2024-08-01T12:00:00.000Z",
|
|
364
|
+
"updatedAt": "2024-08-01T12:00:00.000Z",
|
|
365
|
+
"balanceTransactionId": "txn_setup001",
|
|
366
|
+
"amount": 49900,
|
|
367
|
+
"currency": "usd",
|
|
368
|
+
"fee": 1477,
|
|
369
|
+
"net": 48423,
|
|
370
|
+
"type": "charge",
|
|
371
|
+
"sourceId": "ch_setup001",
|
|
372
|
+
"description": "Setup fee for Alice Johnson",
|
|
373
|
+
"availableOn": 1722643200,
|
|
374
|
+
"status": "available",
|
|
375
|
+
"livemode": false
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"accounts": [
|
|
3
|
+
{
|
|
4
|
+
"id": 1,
|
|
5
|
+
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
6
|
+
"updatedAt": "2024-01-01T00:00:00.000Z",
|
|
7
|
+
"accountId": "acct_1SaaSCo",
|
|
8
|
+
"businessType": "company",
|
|
9
|
+
"country": "US",
|
|
10
|
+
"defaultCurrency": "usd",
|
|
11
|
+
"email": "billing@saas-co.io",
|
|
12
|
+
"chargesEnabled": true,
|
|
13
|
+
"payoutsEnabled": true,
|
|
14
|
+
"businessName": "SaaS Co"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"customers": [
|
|
18
|
+
{ "id": 1, "createdAt": "2024-03-01T00:00:00.000Z", "updatedAt": "2024-03-01T00:00:00.000Z", "customerId": "cus_active001", "name": "Active Corp", "email": "billing@active-corp.com", "phone": null, "description": "Enterprise customer", "currency": "usd", "balance": 0, "delinquent": false, "defaultPaymentMethod": "pm_ent_001", "metadata": { "plan": "enterprise" }, "address": null, "shipping": null, "livemode": false },
|
|
19
|
+
{ "id": 2, "createdAt": "2024-03-15T00:00:00.000Z", "updatedAt": "2024-06-01T00:00:00.000Z", "customerId": "cus_pastdue002", "name": "Late Pay LLC", "email": "billing@latepay.com", "phone": null, "description": "Past-due customer", "currency": "usd", "balance": -29900, "delinquent": true, "defaultPaymentMethod": "pm_expired_002", "metadata": {}, "address": null, "shipping": null, "livemode": false },
|
|
20
|
+
{ "id": 3, "createdAt": "2024-04-01T00:00:00.000Z", "updatedAt": "2024-04-01T00:00:00.000Z", "customerId": "cus_trial003", "name": "Try First Inc", "email": "admin@tryfirst.io", "phone": null, "description": "Trial customer", "currency": "usd", "balance": 0, "delinquent": false, "defaultPaymentMethod": "pm_trial_003", "metadata": { "source": "product_hunt" }, "address": null, "shipping": null, "livemode": false },
|
|
21
|
+
{ "id": 4, "createdAt": "2024-02-01T00:00:00.000Z", "updatedAt": "2024-07-15T00:00:00.000Z", "customerId": "cus_canceled004", "name": "Gone Away Ltd", "email": "admin@goneaway.com", "phone": null, "description": "Canceled customer", "currency": "usd", "balance": 0, "delinquent": false, "defaultPaymentMethod": null, "metadata": { "churn_reason": "too_expensive" }, "address": null, "shipping": null, "livemode": false },
|
|
22
|
+
{ "id": 5, "createdAt": "2024-05-01T00:00:00.000Z", "updatedAt": "2024-05-01T00:00:00.000Z", "customerId": "cus_multi005", "name": "Multi Plan Co", "email": "billing@multiplan.io", "phone": null, "description": "Customer with multiple subscriptions", "currency": "usd", "balance": 0, "delinquent": false, "defaultPaymentMethod": "pm_multi_005", "metadata": {}, "address": null, "shipping": null, "livemode": false }
|
|
23
|
+
],
|
|
24
|
+
"products": [
|
|
25
|
+
{ "id": 1, "createdAt": "2024-01-15T00:00:00.000Z", "updatedAt": "2024-01-15T00:00:00.000Z", "productId": "prod_starter", "name": "Starter", "description": "Starter plan for small teams", "active": true, "defaultPrice": "price_starter_mo", "images": [], "metadata": {}, "taxCode": null, "unitLabel": "seat", "url": null, "livemode": false },
|
|
26
|
+
{ "id": 2, "createdAt": "2024-01-15T00:00:00.000Z", "updatedAt": "2024-01-15T00:00:00.000Z", "productId": "prod_growth", "name": "Growth", "description": "Growth plan for scaling teams", "active": true, "defaultPrice": "price_growth_mo", "images": [], "metadata": {}, "taxCode": null, "unitLabel": "seat", "url": null, "livemode": false },
|
|
27
|
+
{ "id": 3, "createdAt": "2024-01-15T00:00:00.000Z", "updatedAt": "2024-01-15T00:00:00.000Z", "productId": "prod_enterprise", "name": "Enterprise", "description": "Enterprise plan with custom features", "active": true, "defaultPrice": "price_enterprise_mo", "images": [], "metadata": {}, "taxCode": null, "unitLabel": "seat", "url": null, "livemode": false },
|
|
28
|
+
{ "id": 4, "createdAt": "2024-02-01T00:00:00.000Z", "updatedAt": "2024-02-01T00:00:00.000Z", "productId": "prod_addon_storage", "name": "Extra Storage", "description": "Additional storage add-on, 100GB", "active": true, "defaultPrice": "price_storage_mo", "images": [], "metadata": {}, "taxCode": null, "unitLabel": null, "url": null, "livemode": false }
|
|
29
|
+
],
|
|
30
|
+
"prices": [
|
|
31
|
+
{ "id": 1, "createdAt": "2024-01-15T00:00:00.000Z", "updatedAt": "2024-01-15T00:00:00.000Z", "priceId": "price_starter_mo", "productId": "prod_starter", "active": true, "currency": "usd", "unitAmount": 1900, "type": "recurring", "billingScheme": "per_unit", "recurring": { "interval": "month", "intervalCount": 1, "usageType": "licensed" }, "metadata": {}, "nickname": "Starter Monthly", "lookupKey": "starter_monthly", "livemode": false },
|
|
32
|
+
{ "id": 2, "createdAt": "2024-01-15T00:00:00.000Z", "updatedAt": "2024-01-15T00:00:00.000Z", "priceId": "price_growth_mo", "productId": "prod_growth", "active": true, "currency": "usd", "unitAmount": 4900, "type": "recurring", "billingScheme": "per_unit", "recurring": { "interval": "month", "intervalCount": 1, "usageType": "licensed" }, "metadata": {}, "nickname": "Growth Monthly", "lookupKey": "growth_monthly", "livemode": false },
|
|
33
|
+
{ "id": 3, "createdAt": "2024-01-15T00:00:00.000Z", "updatedAt": "2024-01-15T00:00:00.000Z", "priceId": "price_enterprise_mo", "productId": "prod_enterprise", "active": true, "currency": "usd", "unitAmount": 29900, "type": "recurring", "billingScheme": "per_unit", "recurring": { "interval": "month", "intervalCount": 1, "usageType": "licensed" }, "metadata": {}, "nickname": "Enterprise Monthly", "lookupKey": "enterprise_monthly", "livemode": false },
|
|
34
|
+
{ "id": 4, "createdAt": "2024-02-01T00:00:00.000Z", "updatedAt": "2024-02-01T00:00:00.000Z", "priceId": "price_storage_mo", "productId": "prod_addon_storage", "active": true, "currency": "usd", "unitAmount": 999, "type": "recurring", "billingScheme": "per_unit", "recurring": { "interval": "month", "intervalCount": 1, "usageType": "licensed" }, "metadata": {}, "nickname": "Storage Add-on", "lookupKey": "storage_monthly", "livemode": false }
|
|
35
|
+
],
|
|
36
|
+
"paymentIntents": [],
|
|
37
|
+
"charges": [],
|
|
38
|
+
"refunds": [],
|
|
39
|
+
"invoices": [],
|
|
40
|
+
"invoiceItems": [],
|
|
41
|
+
"subscriptions": [
|
|
42
|
+
{ "id": 1, "createdAt": "2024-03-01T00:00:00.000Z", "updatedAt": "2024-08-01T00:00:00.000Z", "subscriptionId": "sub_ent_active", "customerId": "cus_active001", "status": "active", "currentPeriodStart": 1722470400, "currentPeriodEnd": 1725148800, "cancelAtPeriodEnd": false, "canceledAt": null, "cancelAt": null, "endedAt": null, "trialStart": null, "trialEnd": null, "items": [{ "subscriptionItemId": "si_ent_001", "priceId": "price_enterprise_mo", "quantity": 50 }], "defaultPaymentMethod": "pm_ent_001", "collectionMethod": "charge_automatically", "latestInvoiceId": null, "metadata": { "contract_id": "C-2024-001" }, "livemode": false },
|
|
43
|
+
{ "id": 2, "createdAt": "2024-03-15T00:00:00.000Z", "updatedAt": "2024-08-01T00:00:00.000Z", "subscriptionId": "sub_pastdue", "customerId": "cus_pastdue002", "status": "past_due", "currentPeriodStart": 1722470400, "currentPeriodEnd": 1725148800, "cancelAtPeriodEnd": false, "canceledAt": null, "cancelAt": null, "endedAt": null, "trialStart": null, "trialEnd": null, "items": [{ "subscriptionItemId": "si_pastdue_001", "priceId": "price_growth_mo", "quantity": 10 }], "defaultPaymentMethod": "pm_expired_002", "collectionMethod": "charge_automatically", "latestInvoiceId": null, "metadata": {}, "livemode": false },
|
|
44
|
+
{ "id": 3, "createdAt": "2024-07-15T00:00:00.000Z", "updatedAt": "2024-07-15T00:00:00.000Z", "subscriptionId": "sub_trial", "customerId": "cus_trial003", "status": "trialing", "currentPeriodStart": 1721001600, "currentPeriodEnd": 1722211200, "cancelAtPeriodEnd": false, "canceledAt": null, "cancelAt": null, "endedAt": null, "trialStart": 1721001600, "trialEnd": 1722211200, "items": [{ "subscriptionItemId": "si_trial_001", "priceId": "price_growth_mo", "quantity": 5 }], "defaultPaymentMethod": "pm_trial_003", "collectionMethod": "charge_automatically", "latestInvoiceId": null, "metadata": {}, "livemode": false },
|
|
45
|
+
{ "id": 4, "createdAt": "2024-02-01T00:00:00.000Z", "updatedAt": "2024-07-15T00:00:00.000Z", "subscriptionId": "sub_canceled", "customerId": "cus_canceled004", "status": "canceled", "currentPeriodStart": 1720396800, "currentPeriodEnd": 1723075200, "cancelAtPeriodEnd": false, "canceledAt": 1721001600, "cancelAt": null, "endedAt": 1721001600, "trialStart": null, "trialEnd": null, "items": [{ "subscriptionItemId": "si_canceled_001", "priceId": "price_starter_mo", "quantity": 3 }], "defaultPaymentMethod": null, "collectionMethod": "charge_automatically", "latestInvoiceId": null, "metadata": { "churn_reason": "too_expensive" }, "livemode": false },
|
|
46
|
+
{ "id": 5, "createdAt": "2024-05-01T00:00:00.000Z", "updatedAt": "2024-08-01T00:00:00.000Z", "subscriptionId": "sub_multi_main", "customerId": "cus_multi005", "status": "active", "currentPeriodStart": 1722470400, "currentPeriodEnd": 1725148800, "cancelAtPeriodEnd": false, "canceledAt": null, "cancelAt": null, "endedAt": null, "trialStart": null, "trialEnd": null, "items": [{ "subscriptionItemId": "si_multi_main", "priceId": "price_growth_mo", "quantity": 20 }], "defaultPaymentMethod": "pm_multi_005", "collectionMethod": "charge_automatically", "latestInvoiceId": null, "metadata": {}, "livemode": false },
|
|
47
|
+
{ "id": 6, "createdAt": "2024-06-01T00:00:00.000Z", "updatedAt": "2024-08-01T00:00:00.000Z", "subscriptionId": "sub_multi_addon", "customerId": "cus_multi005", "status": "active", "currentPeriodStart": 1722470400, "currentPeriodEnd": 1725148800, "cancelAtPeriodEnd": false, "canceledAt": null, "cancelAt": null, "endedAt": null, "trialStart": null, "trialEnd": null, "items": [{ "subscriptionItemId": "si_multi_addon", "priceId": "price_storage_mo", "quantity": 3 }], "defaultPaymentMethod": "pm_multi_005", "collectionMethod": "charge_automatically", "latestInvoiceId": null, "metadata": {}, "livemode": false }
|
|
48
|
+
],
|
|
49
|
+
"coupons": [
|
|
50
|
+
{ "id": 1, "createdAt": "2024-01-15T00:00:00.000Z", "updatedAt": "2024-01-15T00:00:00.000Z", "couponId": "STARTUP50", "name": "Startup 50% Off", "amountOff": null, "percentOff": 50, "currency": null, "duration": "repeating", "durationInMonths": 6, "maxRedemptions": 50, "timesRedeemed": 23, "valid": true, "redeemBy": null, "metadata": {}, "livemode": false },
|
|
51
|
+
{ "id": 2, "createdAt": "2024-03-01T00:00:00.000Z", "updatedAt": "2024-03-01T00:00:00.000Z", "couponId": "ANNUAL20", "name": "Annual Discount", "amountOff": null, "percentOff": 20, "currency": null, "duration": "forever", "durationInMonths": null, "maxRedemptions": null, "timesRedeemed": 45, "valid": true, "redeemBy": null, "metadata": {}, "livemode": false }
|
|
52
|
+
],
|
|
53
|
+
"paymentLinks": [],
|
|
54
|
+
"disputes": [],
|
|
55
|
+
"paymentMethods": [
|
|
56
|
+
{ "id": 1, "createdAt": "2024-03-01T00:00:00.000Z", "updatedAt": "2024-03-01T00:00:00.000Z", "paymentMethodId": "pm_ent_001", "type": "card", "customerId": "cus_active001", "cardBrand": "visa", "cardLast4": "4242", "cardExpMonth": 12, "cardExpYear": 2027, "livemode": false },
|
|
57
|
+
{ "id": 2, "createdAt": "2024-03-15T00:00:00.000Z", "updatedAt": "2024-03-15T00:00:00.000Z", "paymentMethodId": "pm_expired_002", "type": "card", "customerId": "cus_pastdue002", "cardBrand": "mastercard", "cardLast4": "5555", "cardExpMonth": 1, "cardExpYear": 2024, "livemode": false },
|
|
58
|
+
{ "id": 3, "createdAt": "2024-04-01T00:00:00.000Z", "updatedAt": "2024-04-01T00:00:00.000Z", "paymentMethodId": "pm_trial_003", "type": "card", "customerId": "cus_trial003", "cardBrand": "visa", "cardLast4": "9876", "cardExpMonth": 9, "cardExpYear": 2026, "livemode": false },
|
|
59
|
+
{ "id": 4, "createdAt": "2024-05-01T00:00:00.000Z", "updatedAt": "2024-05-01T00:00:00.000Z", "paymentMethodId": "pm_multi_005", "type": "card", "customerId": "cus_multi005", "cardBrand": "amex", "cardLast4": "1001", "cardExpMonth": 3, "cardExpYear": 2028, "livemode": false }
|
|
60
|
+
],
|
|
61
|
+
"balanceTransactions": []
|
|
62
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"twin": "supabase",
|
|
3
|
+
"api": "Management API + SQL",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"capabilities": [
|
|
6
|
+
{ "name": "SQL execution", "supported": true },
|
|
7
|
+
{ "name": "Schema introspection", "supported": true },
|
|
8
|
+
{ "name": "Migrations", "supported": true },
|
|
9
|
+
{ "name": "Edge functions (metadata)", "supported": true },
|
|
10
|
+
{ "name": "Realtime subscriptions", "supported": false },
|
|
11
|
+
{ "name": "Storage (file uploads)", "supported": false }
|
|
12
|
+
]
|
|
13
|
+
}
|