mcp-scraper 0.88.2 → 0.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -15
- package/README.md +6 -5
- package/THIRD_PARTY_NOTICES.html +203 -0
- package/dist/analytics-repository-2BMT5JNE.js +1 -0
- package/dist/bin/api-server.js +2 -41
- package/dist/bin/mcp-scraper-cli.js +39 -756
- package/dist/bin/mcp-scraper-core.js +1 -60
- package/dist/bin/mcp-scraper-install.js +2 -25
- package/dist/bin/mcp-stdio-server.js +1 -19
- package/dist/bin/paa-harvest.js +1 -41
- package/dist/chunk-3GP5CYZX.js +1 -0
- package/dist/chunk-4AI7DOS7.js +59 -0
- package/dist/chunk-4FROKQJN.js +1 -0
- package/dist/chunk-7YGVI5J4.js +21710 -0
- package/dist/chunk-CCYWSJNG.js +16 -0
- package/dist/chunk-CFI6CXIV.js +182 -0
- package/dist/chunk-E2WRWV3A.js +1 -0
- package/dist/chunk-GMWKPIYX.js +1172 -0
- package/dist/chunk-HDPYG3XV.js +102 -0
- package/dist/chunk-HE45FFBU.js +1 -0
- package/dist/chunk-HUV2WTRW.js +1 -0
- package/dist/chunk-KJQXUZ4Y.js +4 -0
- package/dist/chunk-L4CGLFPU.js +4 -0
- package/dist/chunk-M22MM4N4.js +84 -0
- package/dist/chunk-MASR22K4.js +73 -0
- package/dist/chunk-MZN4U5BL.js +1 -0
- package/dist/chunk-PUHFVA7P.js +1280 -0
- package/dist/chunk-QPWPR5XG.js +10 -0
- package/dist/chunk-TMB56NCA.js +1 -0
- package/dist/chunk-TXENITMS.js +20 -0
- package/dist/chunk-W2BVJ7S2.js +13 -0
- package/dist/chunk-WO3N5FH2.js +5 -0
- package/dist/chunk-WSCGYRWA.js +2595 -0
- package/dist/chunk-X54CQLK2.js +1 -0
- package/dist/chunk-XLWNEVUZ.js +27 -0
- package/dist/chunk-XPZVJIZ2.js +100 -0
- package/dist/chunk-YQZGZBB4.js +1 -0
- package/dist/chunk-Z2QGQJS2.js +1 -0
- package/dist/db-F2MX63GI.js +1 -0
- package/dist/extract-bundle-SNUIHM3J.js +26 -0
- package/dist/gmail-service-BZ3H75XC.js +1 -0
- package/dist/index.cjs +21750 -6045
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +18 -315
- package/dist/lead-list-enrichment-repository-S2H3U7T7.js +1 -0
- package/dist/location-data-repository-OTWHWMV6.js +1 -0
- package/dist/server-RFR2A5UJ.js +7303 -0
- package/dist/site-extract-repository-SE776XDC.js +1 -0
- package/dist/worker-XUDSM3AL.js +1 -0
- package/package.json +17 -124
- package/dist/analytics-repository-GGJJCVVP.js +0 -194
- package/dist/chunk-4QMUF6XM.js +0 -1013
- package/dist/chunk-6HAV7LCE.js +0 -265
- package/dist/chunk-ABF2CGOZ.js +0 -113
- package/dist/chunk-C5Z4OFKW.js +0 -404
- package/dist/chunk-DNM65UCK.js +0 -299
- package/dist/chunk-EQGTEHLZ.js +0 -592
- package/dist/chunk-F5GQJWZU.js +0 -732
- package/dist/chunk-GGZEC22A.js +0 -215
- package/dist/chunk-GXBZXWXB.js +0 -184
- package/dist/chunk-IHXAXYIS.js +0 -843
- package/dist/chunk-K3Z5AQYE.js +0 -683
- package/dist/chunk-K45K75OF.js +0 -6
- package/dist/chunk-LFW2FRPJ.js +0 -224
- package/dist/chunk-MZDNZQWT.js +0 -2078
- package/dist/chunk-NVUKO5NN.js +0 -256
- package/dist/chunk-OM7HVEJ3.js +0 -26
- package/dist/chunk-OPQIGAFB.js +0 -286
- package/dist/chunk-OZJMVCDK.js +0 -16
- package/dist/chunk-P7FWOMU7.js +0 -505
- package/dist/chunk-PGJQDMC2.js +0 -383
- package/dist/chunk-PKZS6SHW.js +0 -33139
- package/dist/chunk-RJ7JVYKU.js +0 -68
- package/dist/chunk-S24LFPL7.js +0 -5262
- package/dist/chunk-T3MZISOF.js +0 -240
- package/dist/chunk-UZPTGUDV.js +0 -1915
- package/dist/chunk-X623GTBV.js +0 -8290
- package/dist/chunk-YXNDOQXN.js +0 -4018
- package/dist/db-Z34LPZNR.js +0 -284
- package/dist/extract-bundle-565SBZCR.js +0 -1003
- package/dist/gmail-service-E6ALS7JG.js +0 -25
- package/dist/lead-list-enrichment-repository-36RPVV6N.js +0 -67
- package/dist/location-data-repository-WPRG62GE.js +0 -34
- package/dist/server-SQZ3A7SY.js +0 -86606
- package/dist/site-extract-repository-VYFZASPU.js +0 -69
- package/dist/worker-LDCAULWL.js +0 -146
package/dist/chunk-4QMUF6XM.js
DELETED
|
@@ -1,1013 +0,0 @@
|
|
|
1
|
-
// src/product-contract.generated.ts
|
|
2
|
-
var PUBLIC_PRODUCT_CONTRACT = {
|
|
3
|
-
"schemaVersion": 1,
|
|
4
|
-
"ratePolicy": {
|
|
5
|
-
"version": "serp-paa-2026-08-11",
|
|
6
|
-
"effectiveDate": "2026-08-11T00:00:00.000Z"
|
|
7
|
-
},
|
|
8
|
-
"costEvidence": {
|
|
9
|
-
"id": "serp-paa-rate-basis-2026-08",
|
|
10
|
-
"status": "provisional",
|
|
11
|
-
"minimumRevenueCostRatio": 2.5,
|
|
12
|
-
"observedRevenueCostRatio": 2.5160607750756583
|
|
13
|
-
},
|
|
14
|
-
"operationCosts": {
|
|
15
|
-
"serp": {
|
|
16
|
-
"credits": 60,
|
|
17
|
-
"unit": "per search",
|
|
18
|
-
"label": "SERP search",
|
|
19
|
-
"notes": "Returns organic results and Google entity IDs by default; optional same-page local pack, forums, videos, AI surfaces, and What People Are Saying are enabled with flags at the same product price. search_serp and the base capture_serp_snapshot search are billed 60 credits per search. Optional SERP Intelligence page snapshots add 1 credit per attempted URL."
|
|
20
|
-
},
|
|
21
|
-
"paa": {
|
|
22
|
-
"credits": 10,
|
|
23
|
-
"unit": "per question (+400 credit base)",
|
|
24
|
-
"label": "PAA harvest",
|
|
25
|
-
"notes": "Returns original-query PAA questions with answers and sources plus organic results and Google entity IDs. Optional same-page SERP modules are flag-controlled. Billed 400 credit base + 10 per question actually returned (unused estimate refunded)."
|
|
26
|
-
},
|
|
27
|
-
"page_scrape": {
|
|
28
|
-
"credits": 1,
|
|
29
|
-
"unit": "per page",
|
|
30
|
-
"label": "Page crawl / extract",
|
|
31
|
-
"notes": "Applies to both single-URL extraction and per-page site crawls."
|
|
32
|
-
},
|
|
33
|
-
"listing_create": {
|
|
34
|
-
"credits": 10,
|
|
35
|
-
"unit": "per new listing",
|
|
36
|
-
"label": "Directory or wiki listing creation",
|
|
37
|
-
"notes": "Fixed total price for a new Local Sourcebook directory listing or Transparent Commons wiki entity. Sourcebook acquisition is included."
|
|
38
|
-
},
|
|
39
|
-
"listing_edit": {
|
|
40
|
-
"credits": 2,
|
|
41
|
-
"unit": "per existing listing revision",
|
|
42
|
-
"label": "Directory or wiki listing edit",
|
|
43
|
-
"notes": "Fixed total price for refreshing an existing Local Sourcebook listing or revising an existing Transparent Commons entity."
|
|
44
|
-
},
|
|
45
|
-
"url_map": {
|
|
46
|
-
"credits": 5,
|
|
47
|
-
"unit": "per mapping operation",
|
|
48
|
-
"label": "Site URL mapping",
|
|
49
|
-
"notes": "Flat rate for the full /map-urls call regardless of URL count discovered."
|
|
50
|
-
},
|
|
51
|
-
"yt_channel": {
|
|
52
|
-
"credits": 2,
|
|
53
|
-
"unit": "per call",
|
|
54
|
-
"label": "YouTube search / channel harvest"
|
|
55
|
-
},
|
|
56
|
-
"yt_transcription": {
|
|
57
|
-
"credits": 200,
|
|
58
|
-
"unit": "base + 2/min of video",
|
|
59
|
-
"label": "YouTube transcription",
|
|
60
|
-
"notes": "Flat 200-credit base plus 2 credits per minute of video, reconciled to the real video length after transcription (e.g. a 10-minute video is about 220 credits)."
|
|
61
|
-
},
|
|
62
|
-
"fb_ad": {
|
|
63
|
-
"credits": 7,
|
|
64
|
-
"unit": "per call",
|
|
65
|
-
"label": "Facebook search / ad lookup"
|
|
66
|
-
},
|
|
67
|
-
"maps_search": {
|
|
68
|
-
"credits": 5,
|
|
69
|
-
"unit": "per search",
|
|
70
|
-
"label": "Maps business search",
|
|
71
|
-
"notes": "Returns up to 50 Google Maps business/profile candidates. Use maps_place_intel to hydrate selected businesses."
|
|
72
|
-
},
|
|
73
|
-
"maps_place": {
|
|
74
|
-
"credits": 60,
|
|
75
|
-
"unit": "per business",
|
|
76
|
-
"label": "Maps business lookup",
|
|
77
|
-
"notes": "Base lookup. Reviews billed separately per card at maps_review rate."
|
|
78
|
-
},
|
|
79
|
-
"maps_review": {
|
|
80
|
-
"credits": 1,
|
|
81
|
-
"unit": "per review card",
|
|
82
|
-
"label": "Maps review",
|
|
83
|
-
"notes": "Charged after extraction when includeReviews is true."
|
|
84
|
-
},
|
|
85
|
-
"fb_search": {
|
|
86
|
-
"credits": 8,
|
|
87
|
-
"unit": "per search",
|
|
88
|
-
"label": "Facebook ad library search",
|
|
89
|
-
"notes": "Browser automation to search Facebook Ads Library by keyword."
|
|
90
|
-
},
|
|
91
|
-
"google_ads_search": {
|
|
92
|
-
"credits": 6,
|
|
93
|
-
"unit": "per search",
|
|
94
|
-
"label": "Google Ads Transparency search",
|
|
95
|
-
"notes": "Browser automation to find advertisers in Google Ads Transparency Center by domain or name."
|
|
96
|
-
},
|
|
97
|
-
"google_ads_intel": {
|
|
98
|
-
"credits": 2,
|
|
99
|
-
"unit": "per call",
|
|
100
|
-
"label": "Google Ads Transparency advertiser intel",
|
|
101
|
-
"notes": "Lists and hydrates an advertiser's creatives with image URLs and video references."
|
|
102
|
-
},
|
|
103
|
-
"google_ads_transcribe": {
|
|
104
|
-
"credits": 200,
|
|
105
|
-
"unit": "base + 2/min of video",
|
|
106
|
-
"label": "Google ad video transcription",
|
|
107
|
-
"notes": "Flat 200-credit base plus 2 credits per minute of video, reconciled to the real video length after transcription (e.g. a 10-minute video is about 220 credits)."
|
|
108
|
-
},
|
|
109
|
-
"fb_transcribe": {
|
|
110
|
-
"credits": 200,
|
|
111
|
-
"unit": "base + 2/min of video",
|
|
112
|
-
"label": "Facebook video / ad transcription",
|
|
113
|
-
"notes": "Flat 200-credit base plus 2 credits per minute of video, reconciled to the real video length after transcription (e.g. a 10-minute video is about 220 credits)."
|
|
114
|
-
},
|
|
115
|
-
"instagram_profile": {
|
|
116
|
-
"credits": 4,
|
|
117
|
-
"unit": "per profile scan",
|
|
118
|
-
"label": "Instagram profile content discovery",
|
|
119
|
-
"notes": "Browser extraction of public Instagram profile grid links. Complete history may require a logged-in profile."
|
|
120
|
-
},
|
|
121
|
-
"instagram_media": {
|
|
122
|
-
"credits": 4,
|
|
123
|
-
"unit": "per post or reel",
|
|
124
|
-
"label": "Instagram media download",
|
|
125
|
-
"notes": "Extracts post text, image URLs, and reel audio/video tracks, with local downloads when the server can write files."
|
|
126
|
-
},
|
|
127
|
-
"instagram_transcribe": {
|
|
128
|
-
"credits": 200,
|
|
129
|
-
"unit": "base + 2/min of video",
|
|
130
|
-
"label": "Instagram media transcription",
|
|
131
|
-
"notes": "Whisper transcription of selected Instagram audio/video media. Flat 200-credit base plus 2 credits per minute of video, reconciled to the real video length after transcription (e.g. a 10-minute video is about 220 credits)."
|
|
132
|
-
},
|
|
133
|
-
"browser_minute": {
|
|
134
|
-
"credits": 120,
|
|
135
|
-
"unit": "per minute of use",
|
|
136
|
-
"label": "Interactive browser session",
|
|
137
|
-
"notes": "Metered per minute of use for the whole time the browser session is open. Close the session to stop the meter; abandoned sessions are auto-closed after a short idle window."
|
|
138
|
-
},
|
|
139
|
-
"reddit_thread": {
|
|
140
|
-
"credits": 30,
|
|
141
|
-
"unit": "per thread",
|
|
142
|
-
"label": "Reddit thread base lookup",
|
|
143
|
-
"notes": "Base lookup for the post itself. Comments billed separately per comment at reddit_comment rate. Refunded if the thread cannot be retrieved."
|
|
144
|
-
},
|
|
145
|
-
"reddit_comment": {
|
|
146
|
-
"credits": 2,
|
|
147
|
-
"unit": "per comment",
|
|
148
|
-
"label": "Reddit comment",
|
|
149
|
-
"notes": "Charged per comment actually extracted, billed down automatically if the balance runs out mid-thread."
|
|
150
|
-
},
|
|
151
|
-
"video_analysis": {
|
|
152
|
-
"credits": 6667,
|
|
153
|
-
"unit": "per 120 frames (max 480)",
|
|
154
|
-
"label": "Video breakdown (frame-by-frame + transcript)",
|
|
155
|
-
"notes": "Full multi-lens video breakdown: samples frames across a video (up to 30 minutes), analyzes each with vision AI, transcribes the audio, then produces summary, pacing/energy, words-per-minute, topic outline, key points, hook analysis, visual style, and a how-to-replicate recipe with a quality-control pass. $1 per 120 frames requested (max 480 = $4); billed down automatically if the video cannot use the requested frames, and refunded fully if the run fails."
|
|
156
|
-
},
|
|
157
|
-
"trustpilot_reviews": {
|
|
158
|
-
"credits": 5,
|
|
159
|
-
"unit": "per call",
|
|
160
|
-
"label": "Trustpilot review harvest",
|
|
161
|
-
"notes": "Base lookup. Reviews billed separately per card at trustpilot_review rate. Refunded if no reviews are found."
|
|
162
|
-
},
|
|
163
|
-
"trustpilot_review": {
|
|
164
|
-
"credits": 1,
|
|
165
|
-
"unit": "per review card",
|
|
166
|
-
"label": "Trustpilot review card",
|
|
167
|
-
"notes": "Charged per review actually extracted, billed down automatically if the balance runs out mid-page."
|
|
168
|
-
},
|
|
169
|
-
"g2_reviews": {
|
|
170
|
-
"credits": 5,
|
|
171
|
-
"unit": "per call",
|
|
172
|
-
"label": "G2 review harvest",
|
|
173
|
-
"notes": "Base lookup. Reviews billed separately per card at g2_review rate. Refunded if no reviews are found."
|
|
174
|
-
},
|
|
175
|
-
"g2_review": {
|
|
176
|
-
"credits": 2,
|
|
177
|
-
"unit": "per review card",
|
|
178
|
-
"label": "G2 review card",
|
|
179
|
-
"notes": "Charged per review actually extracted (each card carries up to 3 Q&A sections), billed down automatically if the balance runs out mid-page."
|
|
180
|
-
},
|
|
181
|
-
"diff_page": {
|
|
182
|
-
"credits": 1,
|
|
183
|
-
"unit": "per check",
|
|
184
|
-
"label": "Page change check",
|
|
185
|
-
"notes": "Same cost as a single page extract \u2014 one scrape is performed per check, then compared against your last stored snapshot for that URL."
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"publicTiers": [
|
|
189
|
-
{
|
|
190
|
-
"tier": "starter",
|
|
191
|
-
"label": "Starter",
|
|
192
|
-
"monthlyUsd": 12,
|
|
193
|
-
"credits": 8e4,
|
|
194
|
-
"concurrency": 3
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"tier": "growth",
|
|
198
|
-
"label": "Growth",
|
|
199
|
-
"monthlyUsd": 40,
|
|
200
|
-
"credits": 266667,
|
|
201
|
-
"concurrency": 10
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"tier": "scale",
|
|
205
|
-
"label": "Scale",
|
|
206
|
-
"monthlyUsd": 100,
|
|
207
|
-
"credits": 8e5,
|
|
208
|
-
"concurrency": 20
|
|
209
|
-
}
|
|
210
|
-
],
|
|
211
|
-
"credits": {
|
|
212
|
-
"mcPerCredit": 100,
|
|
213
|
-
"freeSignupCredits": 0
|
|
214
|
-
},
|
|
215
|
-
"inventory": {
|
|
216
|
-
"totalTools": 375,
|
|
217
|
-
"scraperTools": 249,
|
|
218
|
-
"memoryTools": 126
|
|
219
|
-
},
|
|
220
|
-
"concurrencyPack": {
|
|
221
|
-
"ratePolicyVersion": "2026-08-14.concurrency-pack-v1",
|
|
222
|
-
"monthlyUsd": 5,
|
|
223
|
-
"currency": "usd",
|
|
224
|
-
"interval": "month",
|
|
225
|
-
"billingUnit": "pack",
|
|
226
|
-
"slotsPerPack": 2
|
|
227
|
-
},
|
|
228
|
-
"addons": {
|
|
229
|
-
"memory": {
|
|
230
|
-
"monthlyUsd": 19,
|
|
231
|
-
"quotaGb": 5,
|
|
232
|
-
"freeQuotaGb": 0.01
|
|
233
|
-
},
|
|
234
|
-
"scheduling": {
|
|
235
|
-
"billingMode": "credits",
|
|
236
|
-
"entitlement": "paid_plan_included",
|
|
237
|
-
"separateSubscriptionRequired": false,
|
|
238
|
-
"chargeEvent": "started_occurrence",
|
|
239
|
-
"runBaseCredits": 75,
|
|
240
|
-
"runBaseMc": 7500,
|
|
241
|
-
"llmCostMultiplier": 1.5,
|
|
242
|
-
"llmCostMultiplierBps": 15e3,
|
|
243
|
-
"modes": {
|
|
244
|
-
"connection_sync": {
|
|
245
|
-
"runBaseCredits": 75,
|
|
246
|
-
"modelCostBilling": "none",
|
|
247
|
-
"modelCostMultiplier": 0
|
|
248
|
-
},
|
|
249
|
-
"agent": {
|
|
250
|
-
"runBaseCredits": 75,
|
|
251
|
-
"modelCostBilling": "actual_reported_cost",
|
|
252
|
-
"modelCostMultiplier": 1.5,
|
|
253
|
-
"modelCostMultiplierBps": 15e3
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
"connectedAccounts": {
|
|
258
|
-
"schemaVersion": 2,
|
|
259
|
-
"ratePolicyVersion": "2026-08-03.connected-usage-v3",
|
|
260
|
-
"effectiveAt": "2026-08-03T00:00:00.000Z",
|
|
261
|
-
"entitlement": "paid_plan_add_on",
|
|
262
|
-
"connection": {
|
|
263
|
-
"billingMode": "flat_recurring_credits",
|
|
264
|
-
"amountCredits": 15e3,
|
|
265
|
-
"interval": "month",
|
|
266
|
-
"unit": "active_connection",
|
|
267
|
-
"proration": "none"
|
|
268
|
-
},
|
|
269
|
-
"usage": {
|
|
270
|
-
"billingMode": "credits",
|
|
271
|
-
"settlementMode": "authoritative_receipt",
|
|
272
|
-
"rounding": "aggregate_then_ceil_to_mc",
|
|
273
|
-
"functionRun": {
|
|
274
|
-
"credits": 2,
|
|
275
|
-
"mc": 200,
|
|
276
|
-
"unit": "per_function_run"
|
|
277
|
-
},
|
|
278
|
-
"proxyRequest": {
|
|
279
|
-
"credits": 2,
|
|
280
|
-
"mc": 200,
|
|
281
|
-
"unit": "per_proxy_request"
|
|
282
|
-
},
|
|
283
|
-
"compute": {
|
|
284
|
-
"creditsPerSecond": 5,
|
|
285
|
-
"mcPerSecond": 500,
|
|
286
|
-
"sourceUnit": "millisecond",
|
|
287
|
-
"unit": "per_compute_second",
|
|
288
|
-
"formula": "ceil(computeMilliseconds * mcPerSecond / 1000)"
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
// src/api/rates.ts
|
|
296
|
-
var MC_COSTS = {
|
|
297
|
-
serp: 6e3,
|
|
298
|
-
serp_headless: 6e3,
|
|
299
|
-
serp_headful: 6e3,
|
|
300
|
-
paa: 1e3,
|
|
301
|
-
paa_base: 4e4,
|
|
302
|
-
page_scrape: 100,
|
|
303
|
-
url_map: 500,
|
|
304
|
-
yt_channel: 200,
|
|
305
|
-
yt_transcription: 200,
|
|
306
|
-
fb_ad: 700,
|
|
307
|
-
maps_search: 500,
|
|
308
|
-
maps_place: 6e3,
|
|
309
|
-
maps_review: 100,
|
|
310
|
-
fb_search: 800,
|
|
311
|
-
fb_search_result: 100,
|
|
312
|
-
fb_page_intel: 700,
|
|
313
|
-
fb_page_intel_ad: 50,
|
|
314
|
-
fb_transcribe: 33300,
|
|
315
|
-
google_ads_search: 600,
|
|
316
|
-
google_ads_intel: 200,
|
|
317
|
-
google_ads_transcribe: 33300,
|
|
318
|
-
instagram_profile: 400,
|
|
319
|
-
instagram_media: 400,
|
|
320
|
-
instagram_transcribe: 33300,
|
|
321
|
-
browser_minute: 12e3,
|
|
322
|
-
reddit_thread: 3e3,
|
|
323
|
-
reddit_comment: 200,
|
|
324
|
-
video_analysis: 666700,
|
|
325
|
-
trustpilot_reviews: 500,
|
|
326
|
-
trustpilot_review: 100,
|
|
327
|
-
g2_reviews: 500,
|
|
328
|
-
g2_review: 200,
|
|
329
|
-
diff_page: 100,
|
|
330
|
-
listing_create: 1e3,
|
|
331
|
-
listing_edit: 200
|
|
332
|
-
};
|
|
333
|
-
function serpActualCostMc(headlessSent) {
|
|
334
|
-
return headlessSent === true ? MC_COSTS.serp_headless : MC_COSTS.serp_headful;
|
|
335
|
-
}
|
|
336
|
-
var MC_PER_BROWSER_MS = MC_COSTS.browser_minute / 6e4;
|
|
337
|
-
function browserActiveCostMc(activeMs) {
|
|
338
|
-
return Math.round(activeMs * MC_PER_BROWSER_MS);
|
|
339
|
-
}
|
|
340
|
-
var BROWSER_OPEN_MIN_BALANCE_MC = 1e3;
|
|
341
|
-
var MC_PER_CREDIT = 100;
|
|
342
|
-
var SERP_SEARCH_CREDITS = MC_COSTS.serp_headful / MC_PER_CREDIT;
|
|
343
|
-
var PAA_BASE_CREDITS = MC_COSTS.paa_base / MC_PER_CREDIT;
|
|
344
|
-
var PAA_QUESTION_CREDITS = MC_COSTS.paa / MC_PER_CREDIT;
|
|
345
|
-
var PAGE_SCRAPE_CREDITS = MC_COSTS.page_scrape / MC_PER_CREDIT;
|
|
346
|
-
var LISTING_WRITE_RATE_POLICY = {
|
|
347
|
-
billingMode: "credits",
|
|
348
|
-
chargeEvent: "accepted_write",
|
|
349
|
-
validationCredits: 0,
|
|
350
|
-
create: {
|
|
351
|
-
credits: MC_COSTS.listing_create / MC_PER_CREDIT,
|
|
352
|
-
mc: MC_COSTS.listing_create
|
|
353
|
-
},
|
|
354
|
-
edit: {
|
|
355
|
-
credits: MC_COSTS.listing_edit / MC_PER_CREDIT,
|
|
356
|
-
mc: MC_COSTS.listing_edit
|
|
357
|
-
},
|
|
358
|
-
surfaces: ["local_sourcebook", "transparent_commons"],
|
|
359
|
-
sourcebookAcquisitionIncluded: true
|
|
360
|
-
};
|
|
361
|
-
var BILLING_MC_PER_USD_NUMERATOR = 2e6;
|
|
362
|
-
var BILLING_MC_PER_USD_DENOMINATOR = 3;
|
|
363
|
-
var BILLING_BASIS_POINTS = 1e4;
|
|
364
|
-
var USD_NANOS = 1e9;
|
|
365
|
-
var SCHEDULED_RUN_BASE_CREDITS = 75;
|
|
366
|
-
var SCHEDULED_RUN_BASE_MC = SCHEDULED_RUN_BASE_CREDITS * MC_PER_CREDIT;
|
|
367
|
-
var SCHEDULED_AGENT_LLM_MARKUP_BPS = 15e3;
|
|
368
|
-
var SCHEDULED_AGENT_LLM_MARKUP = SCHEDULED_AGENT_LLM_MARKUP_BPS / BILLING_BASIS_POINTS;
|
|
369
|
-
var SCHEDULED_RUN_DEFAULT_MAX_CREDITS = 5e3;
|
|
370
|
-
var CONNECTED_USAGE_RATE_POLICY_VERSION = "2026-08-03.connected-usage-v3";
|
|
371
|
-
var CONNECTED_ACTIVE_CONNECTION_MONTHLY_CREDITS = 15e3;
|
|
372
|
-
var CONNECTED_ACTIVE_CONNECTION_MONTHLY_MC = CONNECTED_ACTIVE_CONNECTION_MONTHLY_CREDITS * MC_PER_CREDIT;
|
|
373
|
-
var CONNECTED_FUNCTION_RUN_CREDITS = 2;
|
|
374
|
-
var CONNECTED_PROXY_REQUEST_CREDITS = 2;
|
|
375
|
-
var CONNECTED_COMPUTE_CREDITS_PER_SECOND = 5;
|
|
376
|
-
var CONNECTED_FUNCTION_RUN_MC = CONNECTED_FUNCTION_RUN_CREDITS * MC_PER_CREDIT;
|
|
377
|
-
var CONNECTED_PROXY_REQUEST_MC = CONNECTED_PROXY_REQUEST_CREDITS * MC_PER_CREDIT;
|
|
378
|
-
var CONNECTED_COMPUTE_MC_PER_SECOND = CONNECTED_COMPUTE_CREDITS_PER_SECOND * MC_PER_CREDIT;
|
|
379
|
-
var CONNECTED_USAGE_RATE_POLICY = {
|
|
380
|
-
schemaVersion: 2,
|
|
381
|
-
ratePolicyVersion: CONNECTED_USAGE_RATE_POLICY_VERSION,
|
|
382
|
-
effectiveAt: "2026-08-03T00:00:00.000Z",
|
|
383
|
-
provider: "nango",
|
|
384
|
-
entitlement: "paid_plan_add_on",
|
|
385
|
-
connection: {
|
|
386
|
-
billingMode: "flat_recurring_credits",
|
|
387
|
-
amountCredits: CONNECTED_ACTIVE_CONNECTION_MONTHLY_CREDITS,
|
|
388
|
-
interval: "month",
|
|
389
|
-
unit: "active_connection",
|
|
390
|
-
proration: "none"
|
|
391
|
-
},
|
|
392
|
-
usage: {
|
|
393
|
-
billingMode: "credits",
|
|
394
|
-
settlementMode: "authoritative_receipt",
|
|
395
|
-
rounding: "aggregate_then_ceil_to_mc",
|
|
396
|
-
functionRun: {
|
|
397
|
-
credits: CONNECTED_FUNCTION_RUN_CREDITS,
|
|
398
|
-
mc: CONNECTED_FUNCTION_RUN_MC,
|
|
399
|
-
unit: "per_function_run"
|
|
400
|
-
},
|
|
401
|
-
proxyRequest: {
|
|
402
|
-
credits: CONNECTED_PROXY_REQUEST_CREDITS,
|
|
403
|
-
mc: CONNECTED_PROXY_REQUEST_MC,
|
|
404
|
-
unit: "per_proxy_request"
|
|
405
|
-
},
|
|
406
|
-
compute: {
|
|
407
|
-
creditsPerSecond: CONNECTED_COMPUTE_CREDITS_PER_SECOND,
|
|
408
|
-
mcPerSecond: CONNECTED_COMPUTE_MC_PER_SECOND,
|
|
409
|
-
sourceUnit: "millisecond",
|
|
410
|
-
unit: "per_compute_second",
|
|
411
|
-
formula: "ceil(computeMilliseconds * mcPerSecond / 1000)"
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
function nonNegativeSafeInteger(value, field) {
|
|
416
|
-
if (!Number.isSafeInteger(value) || value < 0) {
|
|
417
|
-
throw new Error(`${field} must be a non-negative safe integer`);
|
|
418
|
-
}
|
|
419
|
-
return BigInt(value);
|
|
420
|
-
}
|
|
421
|
-
function safeMc(value) {
|
|
422
|
-
if (value > BigInt(Number.MAX_SAFE_INTEGER)) throw new Error("connected usage charge exceeds the safe integer range");
|
|
423
|
-
return Number(value);
|
|
424
|
-
}
|
|
425
|
-
function calculateConnectedUsageCharge(usage) {
|
|
426
|
-
const functionRuns = nonNegativeSafeInteger(usage.functionRuns, "functionRuns");
|
|
427
|
-
const proxyRequests = nonNegativeSafeInteger(usage.proxyRequests, "proxyRequests");
|
|
428
|
-
const computeMilliseconds = nonNegativeSafeInteger(usage.computeMilliseconds, "computeMilliseconds");
|
|
429
|
-
const functionRunMc = functionRuns * BigInt(CONNECTED_FUNCTION_RUN_MC);
|
|
430
|
-
const proxyRequestMc = proxyRequests * BigInt(CONNECTED_PROXY_REQUEST_MC);
|
|
431
|
-
const computeNumerator = computeMilliseconds * BigInt(CONNECTED_COMPUTE_MC_PER_SECOND);
|
|
432
|
-
const computeMc = computeNumerator === 0n ? 0n : (computeNumerator + 999n) / 1000n;
|
|
433
|
-
const amountMc = functionRunMc + proxyRequestMc + computeMc;
|
|
434
|
-
return {
|
|
435
|
-
functionRunMc: safeMc(functionRunMc),
|
|
436
|
-
proxyRequestMc: safeMc(proxyRequestMc),
|
|
437
|
-
computeMc: safeMc(computeMc),
|
|
438
|
-
amountMc: safeMc(amountMc),
|
|
439
|
-
credits: safeMc(amountMc) / MC_PER_CREDIT
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
function vendorCostUsdToMc(costUsd, markupBps) {
|
|
443
|
-
if (!Number.isFinite(costUsd) || costUsd < 0) throw new Error("costUsd must be a finite non-negative number");
|
|
444
|
-
if (!Number.isInteger(markupBps) || markupBps < 0) throw new Error("markupBps must be a non-negative integer");
|
|
445
|
-
const rawCostNanos = BigInt(Math.round(costUsd * USD_NANOS));
|
|
446
|
-
const numerator = rawCostNanos * BigInt(markupBps) * BigInt(BILLING_MC_PER_USD_NUMERATOR);
|
|
447
|
-
const denominator = BigInt(USD_NANOS) * BigInt(BILLING_BASIS_POINTS) * BigInt(BILLING_MC_PER_USD_DENOMINATOR);
|
|
448
|
-
const mc = numerator === 0n ? 0n : (numerator + denominator - 1n) / denominator;
|
|
449
|
-
if (mc > BigInt(Number.MAX_SAFE_INTEGER)) throw new Error("calculated mc exceeds the safe integer range");
|
|
450
|
-
return Number(mc);
|
|
451
|
-
}
|
|
452
|
-
var CREDIT_COST_CATALOG = [
|
|
453
|
-
{
|
|
454
|
-
key: "serp",
|
|
455
|
-
label: "SERP search",
|
|
456
|
-
aliases: ["search_serp", "serp", "google search", "organic results"],
|
|
457
|
-
credits: mcToCredits(MC_COSTS.serp_headful),
|
|
458
|
-
unit: "per search",
|
|
459
|
-
notes: `Returns organic results and Google entity IDs by default; optional same-page local pack, forums, videos, AI surfaces, and What People Are Saying are enabled with flags at the same product price. search_serp and the base capture_serp_snapshot search are billed ${mcToCredits(MC_COSTS.serp_headful)} credits per search. Optional SERP Intelligence page snapshots add ${mcToCredits(MC_COSTS.page_scrape)} credit per attempted URL.`
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
key: "paa",
|
|
463
|
-
label: "PAA harvest",
|
|
464
|
-
aliases: ["harvest_paa", "paa", "people also ask", "questions"],
|
|
465
|
-
credits: mcToCredits(MC_COSTS.paa),
|
|
466
|
-
unit: `per question (+${mcToCredits(MC_COSTS.paa_base)} credit base)`,
|
|
467
|
-
notes: `Returns original-query PAA questions with answers and sources plus organic results and Google entity IDs. Optional same-page SERP modules are flag-controlled. Billed ${mcToCredits(MC_COSTS.paa_base)} credit base + ${mcToCredits(MC_COSTS.paa)} per question actually returned (unused estimate refunded).`
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
key: "page_scrape",
|
|
471
|
-
label: "Page crawl / extract",
|
|
472
|
-
aliases: ["extract_url", "extract_site", "page scrape", "url scrape", "single page", "site crawl"],
|
|
473
|
-
credits: mcToCredits(MC_COSTS.page_scrape),
|
|
474
|
-
unit: "per page",
|
|
475
|
-
notes: "Applies to both single-URL extraction and per-page site crawls."
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
key: "listing_create",
|
|
479
|
-
label: "Directory or wiki listing creation",
|
|
480
|
-
aliases: ["local-sourcebook-capture", "commons_submit_entity", "directory listing", "wiki listing"],
|
|
481
|
-
credits: mcToCredits(MC_COSTS.listing_create),
|
|
482
|
-
unit: "per new listing",
|
|
483
|
-
notes: "Fixed total price for a new Local Sourcebook directory listing or Transparent Commons wiki entity. Sourcebook acquisition is included."
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
key: "listing_edit",
|
|
487
|
-
label: "Directory or wiki listing edit",
|
|
488
|
-
aliases: ["local_sourcebook_refresh", "commons_submit_entity", "listing refresh", "wiki edit"],
|
|
489
|
-
credits: mcToCredits(MC_COSTS.listing_edit),
|
|
490
|
-
unit: "per existing listing revision",
|
|
491
|
-
notes: "Fixed total price for refreshing an existing Local Sourcebook listing or revising an existing Transparent Commons entity."
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
key: "url_map",
|
|
495
|
-
label: "Site URL mapping",
|
|
496
|
-
aliases: ["map_site_urls", "url map", "site map", "crawl urls"],
|
|
497
|
-
credits: mcToCredits(MC_COSTS.url_map),
|
|
498
|
-
unit: "per mapping operation",
|
|
499
|
-
notes: "Flat rate for the full /map-urls call regardless of URL count discovered."
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
key: "yt_channel",
|
|
503
|
-
label: "YouTube search / channel harvest",
|
|
504
|
-
aliases: ["youtube_harvest", "youtube search", "youtube channel", "yt_channel"],
|
|
505
|
-
credits: mcToCredits(MC_COSTS.yt_channel),
|
|
506
|
-
unit: "per call"
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
key: "yt_transcription",
|
|
510
|
-
label: "YouTube transcription",
|
|
511
|
-
aliases: ["youtube_transcribe", "youtube transcript", "transcription", "yt_transcription"],
|
|
512
|
-
credits: mcToCredits(2e4),
|
|
513
|
-
unit: "base + 2/min of video",
|
|
514
|
-
notes: "Flat 200-credit base plus 2 credits per minute of video, reconciled to the real video length after transcription (e.g. a 10-minute video is about 220 credits)."
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
key: "fb_ad",
|
|
518
|
-
label: "Facebook search / ad lookup",
|
|
519
|
-
aliases: ["facebook_page_intel", "facebook_ad_search", "facebook_ad", "facebook ads", "fb ads"],
|
|
520
|
-
credits: mcToCredits(MC_COSTS.fb_ad),
|
|
521
|
-
unit: "per call"
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
key: "maps_search",
|
|
525
|
-
label: "Maps business search",
|
|
526
|
-
aliases: ["maps_search", "google maps search", "gmb search", "gbp search", "business profiles"],
|
|
527
|
-
credits: mcToCredits(MC_COSTS.maps_search),
|
|
528
|
-
unit: "per search",
|
|
529
|
-
notes: "Returns up to 50 Google Maps business/profile candidates. Use maps_place_intel to hydrate selected businesses."
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
key: "maps_place",
|
|
533
|
-
label: "Maps business lookup",
|
|
534
|
-
aliases: ["maps_place_intel", "google maps", "maps place", "place intel"],
|
|
535
|
-
credits: mcToCredits(MC_COSTS.maps_place),
|
|
536
|
-
unit: "per business",
|
|
537
|
-
notes: "Base lookup. Reviews billed separately per card at maps_review rate."
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
key: "maps_review",
|
|
541
|
-
label: "Maps review",
|
|
542
|
-
aliases: ["maps_reviews", "google reviews", "review cards", "reviews"],
|
|
543
|
-
credits: mcToCredits(MC_COSTS.maps_review),
|
|
544
|
-
unit: "per review card",
|
|
545
|
-
notes: "Charged after extraction when includeReviews is true."
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
key: "fb_search",
|
|
549
|
-
label: "Facebook ad library search",
|
|
550
|
-
aliases: ["facebook_search", "fb_search", "fb ad search"],
|
|
551
|
-
credits: mcToCredits(MC_COSTS.fb_search),
|
|
552
|
-
unit: "per search",
|
|
553
|
-
notes: "Browser automation to search Facebook Ads Library by keyword."
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
key: "google_ads_search",
|
|
557
|
-
label: "Google Ads Transparency search",
|
|
558
|
-
aliases: ["google_ads_search", "google ads search", "ads transparency search"],
|
|
559
|
-
credits: mcToCredits(MC_COSTS.google_ads_search),
|
|
560
|
-
unit: "per search",
|
|
561
|
-
notes: "Browser automation to find advertisers in Google Ads Transparency Center by domain or name."
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
key: "google_ads_intel",
|
|
565
|
-
label: "Google Ads Transparency advertiser intel",
|
|
566
|
-
aliases: ["google_ads_page_intel", "google ads intel", "ads transparency intel"],
|
|
567
|
-
credits: mcToCredits(MC_COSTS.google_ads_intel),
|
|
568
|
-
unit: "per call",
|
|
569
|
-
notes: "Lists and hydrates an advertiser's creatives with image URLs and video references."
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
key: "google_ads_transcribe",
|
|
573
|
-
label: "Google ad video transcription",
|
|
574
|
-
aliases: ["google_ads_transcribe", "google ad transcript"],
|
|
575
|
-
credits: mcToCredits(2e4),
|
|
576
|
-
unit: "base + 2/min of video",
|
|
577
|
-
notes: "Flat 200-credit base plus 2 credits per minute of video, reconciled to the real video length after transcription (e.g. a 10-minute video is about 220 credits)."
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
key: "fb_transcribe",
|
|
581
|
-
label: "Facebook video / ad transcription",
|
|
582
|
-
aliases: ["facebook_transcribe", "facebook_video_transcribe", "fb_transcribe", "fb ad transcript"],
|
|
583
|
-
credits: mcToCredits(2e4),
|
|
584
|
-
unit: "base + 2/min of video",
|
|
585
|
-
notes: "Flat 200-credit base plus 2 credits per minute of video, reconciled to the real video length after transcription (e.g. a 10-minute video is about 220 credits)."
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
key: "instagram_profile",
|
|
589
|
-
label: "Instagram profile content discovery",
|
|
590
|
-
aliases: ["instagram_profile_content", "instagram profile", "instagram content list", "ig profile"],
|
|
591
|
-
credits: mcToCredits(MC_COSTS.instagram_profile),
|
|
592
|
-
unit: "per profile scan",
|
|
593
|
-
notes: "Browser extraction of public Instagram profile grid links. Complete history may require a logged-in profile."
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
key: "instagram_media",
|
|
597
|
-
label: "Instagram media download",
|
|
598
|
-
aliases: ["instagram_media_download", "instagram reel download", "instagram post download", "ig media"],
|
|
599
|
-
credits: mcToCredits(MC_COSTS.instagram_media),
|
|
600
|
-
unit: "per post or reel",
|
|
601
|
-
notes: "Extracts post text, image URLs, and reel audio/video tracks, with local downloads when the server can write files."
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
key: "instagram_transcribe",
|
|
605
|
-
label: "Instagram media transcription",
|
|
606
|
-
aliases: ["instagram transcript", "instagram reel transcript", "ig transcribe"],
|
|
607
|
-
credits: mcToCredits(2e4),
|
|
608
|
-
unit: "base + 2/min of video",
|
|
609
|
-
notes: "Whisper transcription of selected Instagram audio/video media. Flat 200-credit base plus 2 credits per minute of video, reconciled to the real video length after transcription (e.g. a 10-minute video is about 220 credits)."
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
key: "browser_minute",
|
|
613
|
-
label: "Interactive browser session",
|
|
614
|
-
aliases: ["browser_open", "browser agent", "browser_agent", "live browser", "browse", "browser control", "interactive browser"],
|
|
615
|
-
credits: mcToCredits(MC_COSTS.browser_minute),
|
|
616
|
-
unit: "per minute of use",
|
|
617
|
-
notes: "Metered per minute of use for the whole time the browser session is open. Close the session to stop the meter; abandoned sessions are auto-closed after a short idle window."
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
key: "reddit_thread",
|
|
621
|
-
label: "Reddit thread base lookup",
|
|
622
|
-
aliases: ["reddit", "reddit_thread", "reddit comments", "subreddit", "reddit post"],
|
|
623
|
-
credits: mcToCredits(MC_COSTS.reddit_thread),
|
|
624
|
-
unit: "per thread",
|
|
625
|
-
notes: "Base lookup for the post itself. Comments billed separately per comment at reddit_comment rate. Refunded if the thread cannot be retrieved."
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
key: "reddit_comment",
|
|
629
|
-
label: "Reddit comment",
|
|
630
|
-
aliases: ["reddit_comment", "reddit comments"],
|
|
631
|
-
credits: mcToCredits(MC_COSTS.reddit_comment),
|
|
632
|
-
unit: "per comment",
|
|
633
|
-
notes: "Charged per comment actually extracted, billed down automatically if the balance runs out mid-thread."
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
key: "video_analysis",
|
|
637
|
-
label: "Video breakdown (frame-by-frame + transcript)",
|
|
638
|
-
aliases: ["video_frame_analysis", "video breakdown", "video analysis", "analyze video"],
|
|
639
|
-
credits: mcToCredits(MC_COSTS.video_analysis),
|
|
640
|
-
unit: "per 120 frames (max 480)",
|
|
641
|
-
notes: "Full multi-lens video breakdown: samples frames across a video (up to 30 minutes), analyzes each with vision AI, transcribes the audio, then produces summary, pacing/energy, words-per-minute, topic outline, key points, hook analysis, visual style, and a how-to-replicate recipe with a quality-control pass. $1 per 120 frames requested (max 480 = $4); billed down automatically if the video cannot use the requested frames, and refunded fully if the run fails."
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
key: "trustpilot_reviews",
|
|
645
|
-
label: "Trustpilot review harvest",
|
|
646
|
-
aliases: ["trustpilot_reviews", "trustpilot", "trustpilot reviews"],
|
|
647
|
-
credits: mcToCredits(MC_COSTS.trustpilot_reviews),
|
|
648
|
-
unit: "per call",
|
|
649
|
-
notes: "Base lookup. Reviews billed separately per card at trustpilot_review rate. Refunded if no reviews are found."
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
key: "trustpilot_review",
|
|
653
|
-
label: "Trustpilot review card",
|
|
654
|
-
aliases: ["trustpilot_review", "trustpilot card"],
|
|
655
|
-
credits: mcToCredits(MC_COSTS.trustpilot_review),
|
|
656
|
-
unit: "per review card",
|
|
657
|
-
notes: "Charged per review actually extracted, billed down automatically if the balance runs out mid-page."
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
key: "g2_reviews",
|
|
661
|
-
label: "G2 review harvest",
|
|
662
|
-
aliases: ["g2_reviews", "g2", "g2 reviews"],
|
|
663
|
-
credits: mcToCredits(MC_COSTS.g2_reviews),
|
|
664
|
-
unit: "per call",
|
|
665
|
-
notes: "Base lookup. Reviews billed separately per card at g2_review rate. Refunded if no reviews are found."
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
key: "g2_review",
|
|
669
|
-
label: "G2 review card",
|
|
670
|
-
aliases: ["g2_review", "g2 card"],
|
|
671
|
-
credits: mcToCredits(MC_COSTS.g2_review),
|
|
672
|
-
unit: "per review card",
|
|
673
|
-
notes: "Charged per review actually extracted (each card carries up to 3 Q&A sections), billed down automatically if the balance runs out mid-page."
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
key: "diff_page",
|
|
677
|
-
label: "Page change check",
|
|
678
|
-
aliases: ["diff_page", "page diff", "change detection"],
|
|
679
|
-
credits: mcToCredits(MC_COSTS.diff_page),
|
|
680
|
-
unit: "per check",
|
|
681
|
-
notes: "Same cost as a single page extract \u2014 one scrape is performed per check, then compared against your last stored snapshot for that URL."
|
|
682
|
-
}
|
|
683
|
-
];
|
|
684
|
-
var CONCURRENCY_PRICE_ID = "price_1Ta1NRS8aAcsk3TGwsRnYbix";
|
|
685
|
-
function tierBillingInterval(tier) {
|
|
686
|
-
return tier.billing_interval ?? "month";
|
|
687
|
-
}
|
|
688
|
-
function tierAmountChargedUsd(tier) {
|
|
689
|
-
return tier.billed_usd ?? tier.monthly_usd;
|
|
690
|
-
}
|
|
691
|
-
function tierCreditsPerInterval(tier) {
|
|
692
|
-
return tier.credits_mc / MC_PER_CREDIT;
|
|
693
|
-
}
|
|
694
|
-
var SUBSCRIPTION_TIERS = {
|
|
695
|
-
"price_1TmiHRS8aAcsk3TGwmSNfNIa": { tier: "starter", label: "Starter", price_id: "price_1TmiHRS8aAcsk3TGwmSNfNIa", monthly_usd: 12, credits_mc: 8e6, concurrency: 3, intro_coupon: "mcp-starter-1dollar-intro-12" },
|
|
696
|
-
"price_1TrgihS8aAcsk3TG5cglrq4D": { tier: "growth", label: "Growth", price_id: "price_1TrgihS8aAcsk3TG5cglrq4D", monthly_usd: 40, credits_mc: 26666700, concurrency: 10, intro_coupon: null },
|
|
697
|
-
"price_1TrgihS8aAcsk3TG4HnG4gbY": { tier: "scale", label: "Scale", price_id: "price_1TrgihS8aAcsk3TG4HnG4gbY", monthly_usd: 100, credits_mc: 8e7, concurrency: 20, intro_coupon: null },
|
|
698
|
-
"price_1TwqIVS8aAcsk3TG0FE3ddDM": { tier: "sonic", label: "Sonic Annual", price_id: "price_1TwqIVS8aAcsk3TG0FE3ddDM", monthly_usd: 25, billed_usd: 300, credits_mc: 25e7, concurrency: 3, intro_coupon: null, billing_interval: "year", credits_never_expire: true, private_offer: true },
|
|
699
|
-
"price_1TwqIWS8aAcsk3TGbGbtlLak": { tier: "sonic-memory", label: "Sonic Annual + Memory Pro", price_id: "price_1TwqIWS8aAcsk3TGbGbtlLak", monthly_usd: 34.5, billed_usd: 414, credits_mc: 25e7, concurrency: 3, intro_coupon: null, billing_interval: "year", credits_never_expire: true, includes_memory: true, private_offer: true }
|
|
700
|
-
};
|
|
701
|
-
var SUBSCRIPTION_TIER_BY_KEY = Object.fromEntries(
|
|
702
|
-
Object.values(SUBSCRIPTION_TIERS).map((t) => [t.tier, t])
|
|
703
|
-
);
|
|
704
|
-
var PRIVATE_OFFERS = {
|
|
705
|
-
sonic: {
|
|
706
|
-
slug: "sonic",
|
|
707
|
-
label: "Sonic annual partner offer",
|
|
708
|
-
headline: "A full year of MCP Scraper, with Credits that never expire.",
|
|
709
|
-
tier_keys: ["sonic", "sonic-memory"]
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
function offerClaimPathForTier(tierKey) {
|
|
713
|
-
const offer = Object.values(PRIVATE_OFFERS).find((o) => o.tier_keys.includes(tierKey));
|
|
714
|
-
return offer ? `/${offer.slug}/claim` : null;
|
|
715
|
-
}
|
|
716
|
-
function offerForTier(tierKey) {
|
|
717
|
-
if (!tierKey) return null;
|
|
718
|
-
return Object.values(PRIVATE_OFFERS).find((o) => o.tier_keys.includes(tierKey)) ?? null;
|
|
719
|
-
}
|
|
720
|
-
function tierChangeLeavesPrivateOffer(fromTier, toTier) {
|
|
721
|
-
const from = offerForTier(fromTier);
|
|
722
|
-
if (!from) return false;
|
|
723
|
-
return !from.tier_keys.includes(toTier);
|
|
724
|
-
}
|
|
725
|
-
function getSubscriptionPlanView(tierKey) {
|
|
726
|
-
if (!tierKey) return null;
|
|
727
|
-
const tier = SUBSCRIPTION_TIER_BY_KEY[tierKey];
|
|
728
|
-
if (!tier) return null;
|
|
729
|
-
return {
|
|
730
|
-
tier: tier.tier,
|
|
731
|
-
label: tier.label,
|
|
732
|
-
amount_usd: tierAmountChargedUsd(tier),
|
|
733
|
-
interval: tierBillingInterval(tier),
|
|
734
|
-
monthly_equivalent_usd: tier.monthly_usd,
|
|
735
|
-
credits_per_interval: tierCreditsPerInterval(tier),
|
|
736
|
-
concurrency: tier.concurrency,
|
|
737
|
-
credits_never_expire: !!tier.credits_never_expire,
|
|
738
|
-
includes_memory: !!tier.includes_memory,
|
|
739
|
-
private_offer: !!tier.private_offer,
|
|
740
|
-
offer_claim_path: offerClaimPathForTier(tier.tier)
|
|
741
|
-
};
|
|
742
|
-
}
|
|
743
|
-
function getPrivateOfferPayload(slug) {
|
|
744
|
-
const offer = PRIVATE_OFFERS[slug];
|
|
745
|
-
if (!offer) return null;
|
|
746
|
-
const options = offer.tier_keys.map((key) => SUBSCRIPTION_TIER_BY_KEY[key]).filter((t) => !!t).map((t) => ({
|
|
747
|
-
tier: t.tier,
|
|
748
|
-
label: t.label,
|
|
749
|
-
amount_usd: tierAmountChargedUsd(t),
|
|
750
|
-
interval: tierBillingInterval(t),
|
|
751
|
-
monthly_equivalent_usd: t.monthly_usd,
|
|
752
|
-
credits: tierCreditsPerInterval(t),
|
|
753
|
-
credits_never_expire: !!t.credits_never_expire,
|
|
754
|
-
includes_memory: !!t.includes_memory,
|
|
755
|
-
concurrency: t.concurrency
|
|
756
|
-
}));
|
|
757
|
-
if (!options.length) return null;
|
|
758
|
-
return { slug: offer.slug, label: offer.label, headline: offer.headline, options };
|
|
759
|
-
}
|
|
760
|
-
function getPublicRatesPayload() {
|
|
761
|
-
const starter = SUBSCRIPTION_TIER_BY_KEY.starter;
|
|
762
|
-
const costs = CREDIT_COST_CATALOG.map(({ aliases, ...cost }) => ({
|
|
763
|
-
...cost,
|
|
764
|
-
...cost.notes ? { notes: cost.notes.replace(/ via fal\.ai/g, "") } : {}
|
|
765
|
-
}));
|
|
766
|
-
const operationCosts = Object.fromEntries(costs.map((cost) => [cost.key, {
|
|
767
|
-
credits: cost.credits,
|
|
768
|
-
unit: cost.unit,
|
|
769
|
-
label: cost.label,
|
|
770
|
-
...cost.notes ? { notes: cost.notes } : {}
|
|
771
|
-
}]));
|
|
772
|
-
const publicTiers = Object.values(SUBSCRIPTION_TIERS).filter((tier) => !tier.private_offer).map((tier) => ({
|
|
773
|
-
tier: tier.tier,
|
|
774
|
-
label: tier.label,
|
|
775
|
-
monthlyUsd: tier.monthly_usd,
|
|
776
|
-
credits: tier.credits_mc / MC_PER_CREDIT,
|
|
777
|
-
concurrency: tier.concurrency
|
|
778
|
-
}));
|
|
779
|
-
return {
|
|
780
|
-
...PUBLIC_PRODUCT_CONTRACT,
|
|
781
|
-
operationCosts,
|
|
782
|
-
publicTiers,
|
|
783
|
-
concurrencyPack: {
|
|
784
|
-
ratePolicyVersion: CONCURRENCY_PACK_RATE_POLICY_VERSION,
|
|
785
|
-
monthlyUsd: CONCURRENCY_PACK_PRICE_USD,
|
|
786
|
-
currency: CONCURRENCY_PACK_PRICE_CURRENCY,
|
|
787
|
-
interval: CONCURRENCY_PACK_PRICE_INTERVAL,
|
|
788
|
-
billingUnit: "pack",
|
|
789
|
-
slotsPerPack: CONCURRENCY_SLOTS_PER_PACK
|
|
790
|
-
},
|
|
791
|
-
creditsPerDollarStarter: Math.round(mcToCredits(starter.credits_mc) / starter.monthly_usd),
|
|
792
|
-
costs,
|
|
793
|
-
scheduling: PUBLIC_PRODUCT_CONTRACT.addons.scheduling,
|
|
794
|
-
connectedAccounts: PUBLIC_PRODUCT_CONTRACT.addons.connectedAccounts,
|
|
795
|
-
listingWrites: LISTING_WRITE_RATE_POLICY
|
|
796
|
-
};
|
|
797
|
-
}
|
|
798
|
-
var CONCURRENCY_PACK_PRICE_USD = 5;
|
|
799
|
-
var CONCURRENCY_PACK_PRICE_CURRENCY = "usd";
|
|
800
|
-
var CONCURRENCY_PACK_PRICE_INTERVAL = "month";
|
|
801
|
-
var CONCURRENCY_SLOTS_PER_PACK = 2;
|
|
802
|
-
var CONCURRENCY_PACK_RATE_POLICY_VERSION = "2026-08-14.concurrency-pack-v1";
|
|
803
|
-
var CONCURRENCY_PACK_PRICE_LABEL = "$5/month for 2 extra browsers";
|
|
804
|
-
var CONCURRENCY_PACK_INVOICE_DESCRIPTION = "MCP Scraper browser concurrency pack \u2014 each $5 monthly pack adds 2 browsers.";
|
|
805
|
-
var CONCURRENCY_PACK_INVOICE_FOOTER = "Billed monthly until canceled. A receipt is emailed after each successful payment.";
|
|
806
|
-
var CONCURRENCY_PACK_TERMINAL_COMMAND = "npx -y -p mcp-scraper@latest mcp-scraper-cli billing concurrency checkout";
|
|
807
|
-
function concurrencyPackBillingInfo() {
|
|
808
|
-
const billingUrl = process.env.CONCURRENCY_BILLING_URL ?? "https://mcpscraper.dev/billing";
|
|
809
|
-
return {
|
|
810
|
-
product: "Extra browser concurrency pack",
|
|
811
|
-
rate_policy_version: CONCURRENCY_PACK_RATE_POLICY_VERSION,
|
|
812
|
-
price_label: CONCURRENCY_PACK_PRICE_LABEL,
|
|
813
|
-
unit_amount_usd: CONCURRENCY_PACK_PRICE_USD,
|
|
814
|
-
currency: CONCURRENCY_PACK_PRICE_CURRENCY,
|
|
815
|
-
interval: CONCURRENCY_PACK_PRICE_INTERVAL,
|
|
816
|
-
billing_unit: "pack",
|
|
817
|
-
pack_quantity: 1,
|
|
818
|
-
slots_per_pack: CONCURRENCY_SLOTS_PER_PACK,
|
|
819
|
-
extra_slots: CONCURRENCY_SLOTS_PER_PACK,
|
|
820
|
-
billing_url: billingUrl,
|
|
821
|
-
terminal_command: CONCURRENCY_PACK_TERMINAL_COMMAND,
|
|
822
|
-
terminal_command_with_api_key_env: `MCP_SCRAPER_API_KEY=sk_live_your_key ${CONCURRENCY_PACK_TERMINAL_COMMAND}`
|
|
823
|
-
};
|
|
824
|
-
}
|
|
825
|
-
function mcToCredits(mc) {
|
|
826
|
-
return mc / MC_PER_CREDIT;
|
|
827
|
-
}
|
|
828
|
-
var SUBSCRIPTION_TERMINAL_COMMAND = "npx -y -p mcp-scraper@latest mcp-scraper-cli billing subscribe";
|
|
829
|
-
function purchasablePlanTiers() {
|
|
830
|
-
return Object.values(SUBSCRIPTION_TIERS).filter((tier) => !tier.private_offer).sort((a, b) => a.credits_mc - b.credits_mc);
|
|
831
|
-
}
|
|
832
|
-
function insufficientBalanceResponse(balanceMc, requiredMc) {
|
|
833
|
-
const billingUrl = process.env.TOPUP_URL ?? "https://mcpscraper.dev/billing";
|
|
834
|
-
const balanceCredits = mcToCredits(balanceMc);
|
|
835
|
-
const requiredCredits = mcToCredits(requiredMc);
|
|
836
|
-
const planKeys = purchasablePlanTiers().map((tier) => tier.tier).join("|");
|
|
837
|
-
const upgradeCommand = `${SUBSCRIPTION_TERMINAL_COMMAND} <${planKeys}>`;
|
|
838
|
-
return {
|
|
839
|
-
error: "insufficient_balance",
|
|
840
|
-
error_code: "insufficient_balance",
|
|
841
|
-
message: `Insufficient credits. Balance: ${balanceCredits} credits. This call requires ${requiredCredits} credits. Credits refresh when your plan renews; for more now, move to a larger plan at ${billingUrl} (terminal: ${upgradeCommand})`,
|
|
842
|
-
balance_credits: balanceCredits,
|
|
843
|
-
required_credits: requiredCredits,
|
|
844
|
-
topup_url: billingUrl,
|
|
845
|
-
upgrade_command: upgradeCommand
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
var MEMORY_FREE_QUOTA_BYTES = 1e7 * 1;
|
|
849
|
-
var MEMORY_PLANS = {
|
|
850
|
-
"price_1TnMSTS8aAcsk3TGBgiwuvqL": { plan: "pro", label: "Pro", price_id: "price_1TnMSTS8aAcsk3TGBgiwuvqL", interval: "month", monthly_usd: 19, quota_bytes: 5e9 },
|
|
851
|
-
"price_1TnMSTS8aAcsk3TGWBVU2agY": { plan: "pro", label: "Pro", price_id: "price_1TnMSTS8aAcsk3TGWBVU2agY", interval: "year", monthly_usd: 19, quota_bytes: 5e9 }
|
|
852
|
-
};
|
|
853
|
-
var MEMORY_PLAN_QUOTA = { free: MEMORY_FREE_QUOTA_BYTES, pro: 5e9, team: 5e10 };
|
|
854
|
-
var MEMORY_MARGIN_MULTIPLE = 3;
|
|
855
|
-
var MEMORY_PRO_COST_BUDGET_USD = 19 / MEMORY_MARGIN_MULTIPLE;
|
|
856
|
-
var LedgerOperation = {
|
|
857
|
-
TOPUP: "topup",
|
|
858
|
-
SUBSCRIPTION: "subscription",
|
|
859
|
-
SIGNUP_GRANT: "signup_grant",
|
|
860
|
-
MONTHLY_REFRESH: "monthly_free_refresh",
|
|
861
|
-
PAA: "paa",
|
|
862
|
-
PAA_REFUND: "paa_refund",
|
|
863
|
-
SERP: "serp",
|
|
864
|
-
SERP_REFUND: "serp_refund",
|
|
865
|
-
REFUND: "refund",
|
|
866
|
-
TRANSCRIPTION: "transcription",
|
|
867
|
-
TRANSCRIPTION_HOLD: "transcription_hold",
|
|
868
|
-
TRANSCRIPTION_REFUND: "transcription_refund",
|
|
869
|
-
YT_CHANNEL: "yt_channel",
|
|
870
|
-
FB_AD: "fb_ad",
|
|
871
|
-
MAPS_SEARCH: "maps_search",
|
|
872
|
-
DIRECTORY_WORKFLOW_HOLD: "directory_workflow_hold",
|
|
873
|
-
DIRECTORY_WORKFLOW_REFUND: "directory_workflow_refund",
|
|
874
|
-
LEAD_LIST_ENRICHMENT_HOLD: "lead_list_enrichment_hold",
|
|
875
|
-
LEAD_LIST_ENRICHMENT_REFUND: "lead_list_enrichment_refund",
|
|
876
|
-
MAPS_PLACE: "maps_place",
|
|
877
|
-
MAPS_REVIEW: "maps_review",
|
|
878
|
-
MAPS_REVIEW_REFUND: "maps_review_refund",
|
|
879
|
-
EXTRACT_SITE: "extract_site",
|
|
880
|
-
EXTRACT_SITE_REFUND: "extract_site_refund",
|
|
881
|
-
EXTRACT_URL: "page_scrape",
|
|
882
|
-
URL_MAP: "url_map",
|
|
883
|
-
EXTRACT_SITE_HOLD: "extract_site_hold",
|
|
884
|
-
YT_CHANNEL_REFUND: "yt_channel_refund",
|
|
885
|
-
FB_AD_REFUND: "fb_ad_refund",
|
|
886
|
-
URL_MAP_REFUND: "url_map_refund",
|
|
887
|
-
FB_SEARCH: "fb_search",
|
|
888
|
-
FB_TRANSCRIBE: "fb_transcribe",
|
|
889
|
-
FB_SEARCH_REFUND: "fb_search_refund",
|
|
890
|
-
FB_SEARCH_RESULT: "fb_search_result",
|
|
891
|
-
FB_SEARCH_RESULT_REFUND: "fb_search_result_refund",
|
|
892
|
-
FB_PAGE_INTEL: "fb_page_intel",
|
|
893
|
-
FB_PAGE_INTEL_REFUND: "fb_page_intel_refund",
|
|
894
|
-
FB_PAGE_INTEL_AD: "fb_page_intel_ad",
|
|
895
|
-
FB_PAGE_INTEL_AD_REFUND: "fb_page_intel_ad_refund",
|
|
896
|
-
FB_TRANSCRIBE_REFUND: "fb_transcribe_refund",
|
|
897
|
-
GOOGLE_ADS_SEARCH: "google_ads_search",
|
|
898
|
-
GOOGLE_ADS_SEARCH_REFUND: "google_ads_search_refund",
|
|
899
|
-
GOOGLE_ADS_INTEL: "google_ads_intel",
|
|
900
|
-
GOOGLE_ADS_INTEL_REFUND: "google_ads_intel_refund",
|
|
901
|
-
GOOGLE_ADS_TRANSCRIBE: "google_ads_transcribe",
|
|
902
|
-
GOOGLE_ADS_TRANSCRIBE_REFUND: "google_ads_transcribe_refund",
|
|
903
|
-
INSTAGRAM_PROFILE: "instagram_profile",
|
|
904
|
-
INSTAGRAM_PROFILE_REFUND: "instagram_profile_refund",
|
|
905
|
-
INSTAGRAM_MEDIA: "instagram_media",
|
|
906
|
-
INSTAGRAM_MEDIA_REFUND: "instagram_media_refund",
|
|
907
|
-
INSTAGRAM_TRANSCRIBE: "instagram_transcribe",
|
|
908
|
-
INSTAGRAM_TRANSCRIBE_REFUND: "instagram_transcribe_refund",
|
|
909
|
-
BROWSER_SESSION: "browser_session",
|
|
910
|
-
REDDIT_THREAD: "reddit_thread",
|
|
911
|
-
REDDIT_THREAD_REFUND: "reddit_thread_refund",
|
|
912
|
-
REDDIT_COMMENT: "reddit_comment",
|
|
913
|
-
REDDIT_COMMENT_REFUND: "reddit_comment_refund",
|
|
914
|
-
VIDEO_ANALYSIS: "video_analysis",
|
|
915
|
-
VIDEO_ANALYSIS_REFUND: "video_analysis_refund",
|
|
916
|
-
VIDEO_ANALYSIS_ADJUST: "video_analysis_adjust",
|
|
917
|
-
VIDEO_ANALYSIS_LLM: "video_analysis_llm",
|
|
918
|
-
MEMORY_AI: "memory_ai",
|
|
919
|
-
MEMORY_AI_REFUND: "memory_ai_refund",
|
|
920
|
-
TRUSTPILOT_REVIEWS: "trustpilot_reviews",
|
|
921
|
-
TRUSTPILOT_REVIEWS_REFUND: "trustpilot_reviews_refund",
|
|
922
|
-
TRUSTPILOT_REVIEW: "trustpilot_review",
|
|
923
|
-
TRUSTPILOT_REVIEW_REFUND: "trustpilot_review_refund",
|
|
924
|
-
G2_REVIEWS: "g2_reviews",
|
|
925
|
-
G2_REVIEWS_REFUND: "g2_reviews_refund",
|
|
926
|
-
G2_REVIEW: "g2_review",
|
|
927
|
-
G2_REVIEW_REFUND: "g2_review_refund",
|
|
928
|
-
DIFF_PAGE: "diff_page",
|
|
929
|
-
DIFF_PAGE_REFUND: "diff_page_refund",
|
|
930
|
-
LOCAL_SOURCEBOOK_CREATE: "local_sourcebook_create",
|
|
931
|
-
LOCAL_SOURCEBOOK_CREATE_REFUND: "local_sourcebook_create_refund",
|
|
932
|
-
LOCAL_SOURCEBOOK_EDIT: "local_sourcebook_edit",
|
|
933
|
-
LOCAL_SOURCEBOOK_EDIT_REFUND: "local_sourcebook_edit_refund",
|
|
934
|
-
COMMONS_CREATE: "commons_create",
|
|
935
|
-
COMMONS_CREATE_REFUND: "commons_create_refund",
|
|
936
|
-
COMMONS_EDIT: "commons_edit",
|
|
937
|
-
COMMONS_EDIT_REFUND: "commons_edit_refund",
|
|
938
|
-
SITE_AUDIT_LLM: "site_audit_llm",
|
|
939
|
-
SCHEDULED_RUN: "scheduled_run",
|
|
940
|
-
CONNECTED_USAGE: "connected_usage",
|
|
941
|
-
CONNECTED_ACCOUNT_FEE: "connected_account_fee",
|
|
942
|
-
ADMIN_GRANT: "admin_grant",
|
|
943
|
-
ADMIN_REVOKE: "admin_revoke"
|
|
944
|
-
};
|
|
945
|
-
var MEMORY_AI_MARGIN_MULTIPLE = 3;
|
|
946
|
-
var SITE_AUDIT_LLM_MARGIN_MULTIPLE = 1.5;
|
|
947
|
-
var VIDEO_ANALYSIS_LLM_MARGIN_MULTIPLE = 1.5;
|
|
948
|
-
var MEDIA_TRANSCRIBE_FLAT_MC = 2e4;
|
|
949
|
-
var MEDIA_TRANSCRIBE_PER_MIN_MC = 200;
|
|
950
|
-
function mediaTranscribeChargeMc(durationSecs) {
|
|
951
|
-
const mins = Math.max(1, Math.ceil((durationSecs || 60) / 60));
|
|
952
|
-
return MEDIA_TRANSCRIBE_FLAT_MC + MEDIA_TRANSCRIBE_PER_MIN_MC * mins;
|
|
953
|
-
}
|
|
954
|
-
var MEDIA_TRANSCRIBE_HOLD_MC = MEDIA_TRANSCRIBE_FLAT_MC + MEDIA_TRANSCRIBE_PER_MIN_MC * 30;
|
|
955
|
-
var MC_PER_USD = SUBSCRIPTION_TIERS["price_1TmiHRS8aAcsk3TGwmSNfNIa"].credits_mc / SUBSCRIPTION_TIERS["price_1TmiHRS8aAcsk3TGwmSNfNIa"].monthly_usd;
|
|
956
|
-
|
|
957
|
-
export {
|
|
958
|
-
MC_COSTS,
|
|
959
|
-
serpActualCostMc,
|
|
960
|
-
browserActiveCostMc,
|
|
961
|
-
BROWSER_OPEN_MIN_BALANCE_MC,
|
|
962
|
-
MC_PER_CREDIT,
|
|
963
|
-
SERP_SEARCH_CREDITS,
|
|
964
|
-
PAA_BASE_CREDITS,
|
|
965
|
-
PAA_QUESTION_CREDITS,
|
|
966
|
-
PAGE_SCRAPE_CREDITS,
|
|
967
|
-
LISTING_WRITE_RATE_POLICY,
|
|
968
|
-
USD_NANOS,
|
|
969
|
-
SCHEDULED_RUN_BASE_CREDITS,
|
|
970
|
-
SCHEDULED_RUN_BASE_MC,
|
|
971
|
-
SCHEDULED_AGENT_LLM_MARKUP_BPS,
|
|
972
|
-
SCHEDULED_AGENT_LLM_MARKUP,
|
|
973
|
-
SCHEDULED_RUN_DEFAULT_MAX_CREDITS,
|
|
974
|
-
CONNECTED_USAGE_RATE_POLICY_VERSION,
|
|
975
|
-
CONNECTED_ACTIVE_CONNECTION_MONTHLY_CREDITS,
|
|
976
|
-
CONNECTED_ACTIVE_CONNECTION_MONTHLY_MC,
|
|
977
|
-
CONNECTED_FUNCTION_RUN_CREDITS,
|
|
978
|
-
CONNECTED_PROXY_REQUEST_CREDITS,
|
|
979
|
-
CONNECTED_COMPUTE_CREDITS_PER_SECOND,
|
|
980
|
-
CONNECTED_FUNCTION_RUN_MC,
|
|
981
|
-
CONNECTED_USAGE_RATE_POLICY,
|
|
982
|
-
calculateConnectedUsageCharge,
|
|
983
|
-
vendorCostUsdToMc,
|
|
984
|
-
CREDIT_COST_CATALOG,
|
|
985
|
-
CONCURRENCY_PRICE_ID,
|
|
986
|
-
tierBillingInterval,
|
|
987
|
-
tierAmountChargedUsd,
|
|
988
|
-
tierCreditsPerInterval,
|
|
989
|
-
SUBSCRIPTION_TIERS,
|
|
990
|
-
SUBSCRIPTION_TIER_BY_KEY,
|
|
991
|
-
offerClaimPathForTier,
|
|
992
|
-
offerForTier,
|
|
993
|
-
tierChangeLeavesPrivateOffer,
|
|
994
|
-
getSubscriptionPlanView,
|
|
995
|
-
getPrivateOfferPayload,
|
|
996
|
-
getPublicRatesPayload,
|
|
997
|
-
CONCURRENCY_PACK_PRICE_USD,
|
|
998
|
-
CONCURRENCY_SLOTS_PER_PACK,
|
|
999
|
-
CONCURRENCY_PACK_INVOICE_DESCRIPTION,
|
|
1000
|
-
CONCURRENCY_PACK_INVOICE_FOOTER,
|
|
1001
|
-
concurrencyPackBillingInfo,
|
|
1002
|
-
mcToCredits,
|
|
1003
|
-
insufficientBalanceResponse,
|
|
1004
|
-
MEMORY_PLANS,
|
|
1005
|
-
MEMORY_PLAN_QUOTA,
|
|
1006
|
-
LedgerOperation,
|
|
1007
|
-
MEMORY_AI_MARGIN_MULTIPLE,
|
|
1008
|
-
SITE_AUDIT_LLM_MARGIN_MULTIPLE,
|
|
1009
|
-
VIDEO_ANALYSIS_LLM_MARGIN_MULTIPLE,
|
|
1010
|
-
mediaTranscribeChargeMc,
|
|
1011
|
-
MEDIA_TRANSCRIBE_HOLD_MC,
|
|
1012
|
-
MC_PER_USD
|
|
1013
|
-
};
|