@bubblelab/bubble-core 0.1.217 → 0.1.219
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 +173 -126
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +4 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/agi-inc.d.ts +20 -20
- package/dist/bubbles/service-bubble/ai-agent.d.ts +74 -74
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +23 -2
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/airtable.d.ts +76 -76
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +22 -22
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +38 -38
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +126 -126
- package/dist/bubbles/service-bubble/apify/apify.d.ts +18 -18
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +2 -2
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +2 -2
- package/dist/bubbles/service-bubble/assembled/assembled.d.ts +6 -6
- package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +6 -6
- package/dist/bubbles/service-bubble/attio/attio.d.ts +6 -6
- package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +6 -6
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +1 -1
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +1 -1
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +4 -4
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +8 -8
- package/dist/bubbles/service-bubble/firecrawl.d.ts +334 -334
- package/dist/bubbles/service-bubble/followupboss.d.ts +4 -4
- package/dist/bubbles/service-bubble/github.d.ts +60 -60
- package/dist/bubbles/service-bubble/gmail.d.ts +164 -164
- package/dist/bubbles/service-bubble/google-calendar.d.ts +6 -6
- package/dist/bubbles/service-bubble/google-drive.d.ts +4 -4
- package/dist/bubbles/service-bubble/http.d.ts +2 -2
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +30 -30
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
- package/dist/bubbles/service-bubble/notion/notion.d.ts +168 -168
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts +10 -10
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +14 -14
- package/dist/bubbles/service-bubble/ramp/index.d.ts +5 -0
- package/dist/bubbles/service-bubble/ramp/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/ramp/index.js +5 -0
- package/dist/bubbles/service-bubble/ramp/index.js.map +1 -0
- package/dist/bubbles/service-bubble/ramp/ramp.d.ts +1128 -0
- package/dist/bubbles/service-bubble/ramp/ramp.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/ramp/ramp.integration.flow.d.ts +15 -0
- package/dist/bubbles/service-bubble/ramp/ramp.integration.flow.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/ramp/ramp.integration.flow.js +169 -0
- package/dist/bubbles/service-bubble/ramp/ramp.integration.flow.js.map +1 -0
- package/dist/bubbles/service-bubble/ramp/ramp.js +183 -0
- package/dist/bubbles/service-bubble/ramp/ramp.js.map +1 -0
- package/dist/bubbles/service-bubble/ramp/ramp.schema.d.ts +1373 -0
- package/dist/bubbles/service-bubble/ramp/ramp.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/ramp/ramp.schema.js +536 -0
- package/dist/bubbles/service-bubble/ramp/ramp.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/ramp/ramp.utils.d.ts +13 -0
- package/dist/bubbles/service-bubble/ramp/ramp.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/ramp/ramp.utils.js +36 -0
- package/dist/bubbles/service-bubble/ramp/ramp.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/resend.d.ts +4 -4
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts +1 -0
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.js +1 -0
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.js.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack.d.ts +388 -388
- package/dist/bubbles/service-bubble/slack/slack.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack.js +7 -3
- package/dist/bubbles/service-bubble/slack/slack.js.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack.utils.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack.utils.js +63 -17
- package/dist/bubbles/service-bubble/slack/slack.utils.js.map +1 -1
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +28 -28
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +34 -34
- package/dist/bubbles/service-bubble/xero/xero.d.ts +2 -2
- package/dist/bubbles/service-bubble/xero/xero.schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +6 -6
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +8 -8
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +20 -20
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +380 -380
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +44 -44
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +134 -134
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +20 -20
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +12 -12
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +2 -2
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +26 -26
- package/dist/bubbles.json +1413 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ramp.schema.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/ramp/ramp.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAY3D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA6CH,CAAC;AAEhC,eAAO,MAAM,cAAc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+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
3
|
+
// Credentials field (common across all operations)
|
|
4
|
+
const credentialsField = z
|
|
5
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
6
|
+
.optional()
|
|
7
|
+
.describe('Credentials (injected at runtime)');
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// RESULT DATA SCHEMAS
|
|
10
|
+
// ============================================================================
|
|
11
|
+
export const RampTransactionSchema = z
|
|
12
|
+
.object({
|
|
13
|
+
id: z.string().optional().describe('Transaction ID'),
|
|
14
|
+
amount: z.number().optional().describe('Transaction amount in cents'),
|
|
15
|
+
currency_code: z.string().optional().describe('Currency code (e.g., USD)'),
|
|
16
|
+
merchant_name: z.string().nullable().optional().describe('Merchant name'),
|
|
17
|
+
merchant_descriptor: z
|
|
18
|
+
.string()
|
|
19
|
+
.nullable()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('Merchant descriptor'),
|
|
22
|
+
card_holder: z
|
|
23
|
+
.object({
|
|
24
|
+
user_id: z.string().optional().describe('Card holder user ID'),
|
|
25
|
+
first_name: z.string().optional().describe('Card holder first name'),
|
|
26
|
+
last_name: z.string().optional().describe('Card holder last name'),
|
|
27
|
+
department_name: z
|
|
28
|
+
.string()
|
|
29
|
+
.nullable()
|
|
30
|
+
.optional()
|
|
31
|
+
.describe('Card holder department'),
|
|
32
|
+
})
|
|
33
|
+
.passthrough()
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('Card holder information'),
|
|
36
|
+
card_id: z.string().nullable().optional().describe('Card ID'),
|
|
37
|
+
state: z.string().optional().describe('Transaction state (e.g., CLEARED)'),
|
|
38
|
+
user_transaction_time: z
|
|
39
|
+
.string()
|
|
40
|
+
.nullable()
|
|
41
|
+
.optional()
|
|
42
|
+
.describe('Transaction time'),
|
|
43
|
+
settlement_date: z
|
|
44
|
+
.string()
|
|
45
|
+
.nullable()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe('Settlement date'),
|
|
48
|
+
memo: z.string().nullable().optional().describe('Transaction memo'),
|
|
49
|
+
sk_category_name: z
|
|
50
|
+
.string()
|
|
51
|
+
.nullable()
|
|
52
|
+
.optional()
|
|
53
|
+
.describe('Spending category name'),
|
|
54
|
+
})
|
|
55
|
+
.passthrough()
|
|
56
|
+
.describe('Ramp transaction');
|
|
57
|
+
export const RampUserSchema = z
|
|
58
|
+
.object({
|
|
59
|
+
id: z.string().optional().describe('User ID'),
|
|
60
|
+
first_name: z.string().optional().describe('First name'),
|
|
61
|
+
last_name: z.string().optional().describe('Last name'),
|
|
62
|
+
email: z.string().optional().describe('Email address'),
|
|
63
|
+
role: z.string().optional().describe('User role'),
|
|
64
|
+
department_id: z.string().nullable().optional().describe('Department ID'),
|
|
65
|
+
location_id: z.string().nullable().optional().describe('Location ID'),
|
|
66
|
+
status: z.string().optional().describe('User status'),
|
|
67
|
+
})
|
|
68
|
+
.passthrough()
|
|
69
|
+
.describe('Ramp user');
|
|
70
|
+
export const RampCardSchema = z
|
|
71
|
+
.object({
|
|
72
|
+
id: z.string().optional().describe('Card ID'),
|
|
73
|
+
display_name: z.string().optional().describe('Card display name'),
|
|
74
|
+
last_four: z.string().optional().describe('Last four digits'),
|
|
75
|
+
card_program_id: z
|
|
76
|
+
.string()
|
|
77
|
+
.nullable()
|
|
78
|
+
.optional()
|
|
79
|
+
.describe('Card program ID'),
|
|
80
|
+
state: z.string().optional().describe('Card state'),
|
|
81
|
+
is_physical: z.boolean().optional().describe('Whether card is physical'),
|
|
82
|
+
cardholder_id: z.string().optional().describe('Cardholder user ID'),
|
|
83
|
+
cardholder_name: z.string().optional().describe('Cardholder name'),
|
|
84
|
+
spending_restrictions: z
|
|
85
|
+
.record(z.unknown())
|
|
86
|
+
.optional()
|
|
87
|
+
.describe('Spending restrictions'),
|
|
88
|
+
})
|
|
89
|
+
.passthrough()
|
|
90
|
+
.describe('Ramp card');
|
|
91
|
+
export const RampDepartmentSchema = z
|
|
92
|
+
.object({
|
|
93
|
+
id: z.string().optional().describe('Department ID'),
|
|
94
|
+
name: z.string().optional().describe('Department name'),
|
|
95
|
+
})
|
|
96
|
+
.passthrough()
|
|
97
|
+
.describe('Ramp department');
|
|
98
|
+
export const RampLocationSchema = z
|
|
99
|
+
.object({
|
|
100
|
+
id: z.string().optional().describe('Location ID'),
|
|
101
|
+
name: z.string().optional().describe('Location name'),
|
|
102
|
+
})
|
|
103
|
+
.passthrough()
|
|
104
|
+
.describe('Ramp location');
|
|
105
|
+
export const RampSpendProgramSchema = z
|
|
106
|
+
.object({
|
|
107
|
+
id: z.string().optional().describe('Spend program ID'),
|
|
108
|
+
display_name: z.string().optional().describe('Spend program display name'),
|
|
109
|
+
description: z.string().nullable().optional().describe('Description'),
|
|
110
|
+
})
|
|
111
|
+
.passthrough()
|
|
112
|
+
.describe('Ramp spend program');
|
|
113
|
+
export const RampLimitSchema = z
|
|
114
|
+
.object({
|
|
115
|
+
id: z.string().optional().describe('Limit/fund ID'),
|
|
116
|
+
display_name: z.string().optional().describe('Limit display name'),
|
|
117
|
+
state: z.string().optional().describe('Limit state'),
|
|
118
|
+
})
|
|
119
|
+
.passthrough()
|
|
120
|
+
.describe('Ramp limit/fund');
|
|
121
|
+
export const RampReimbursementSchema = z
|
|
122
|
+
.object({
|
|
123
|
+
id: z.string().optional().describe('Reimbursement ID'),
|
|
124
|
+
amount: z.number().optional().describe('Reimbursement amount in cents'),
|
|
125
|
+
currency: z.string().optional().describe('Currency code'),
|
|
126
|
+
merchant: z.string().nullable().optional().describe('Merchant name'),
|
|
127
|
+
user_id: z.string().optional().describe('User who submitted'),
|
|
128
|
+
})
|
|
129
|
+
.passthrough()
|
|
130
|
+
.describe('Ramp reimbursement');
|
|
131
|
+
export const RampBillSchema = z
|
|
132
|
+
.object({
|
|
133
|
+
id: z.string().optional().describe('Bill ID'),
|
|
134
|
+
amount: z.number().optional().describe('Bill amount'),
|
|
135
|
+
vendor_name: z.string().nullable().optional().describe('Vendor name'),
|
|
136
|
+
status: z.string().optional().describe('Bill status'),
|
|
137
|
+
})
|
|
138
|
+
.passthrough()
|
|
139
|
+
.describe('Ramp bill');
|
|
140
|
+
export const RampVendorSchema = z
|
|
141
|
+
.object({
|
|
142
|
+
id: z.string().optional().describe('Vendor ID'),
|
|
143
|
+
name: z.string().optional().describe('Vendor name'),
|
|
144
|
+
})
|
|
145
|
+
.passthrough()
|
|
146
|
+
.describe('Ramp vendor');
|
|
147
|
+
export const RampBusinessSchema = z
|
|
148
|
+
.object({
|
|
149
|
+
id: z.string().optional().describe('Business ID'),
|
|
150
|
+
name: z.string().optional().describe('Business name'),
|
|
151
|
+
})
|
|
152
|
+
.passthrough()
|
|
153
|
+
.describe('Ramp business info');
|
|
154
|
+
// ============================================================================
|
|
155
|
+
// PARAMETERS SCHEMA (discriminated union)
|
|
156
|
+
// ============================================================================
|
|
157
|
+
export const RampParamsSchema = z.discriminatedUnion('operation', [
|
|
158
|
+
// -------------------------------------------------------------------------
|
|
159
|
+
// list_transactions
|
|
160
|
+
// -------------------------------------------------------------------------
|
|
161
|
+
z.object({
|
|
162
|
+
operation: z
|
|
163
|
+
.literal('list_transactions')
|
|
164
|
+
.describe('List transactions with optional filters'),
|
|
165
|
+
page_size: z
|
|
166
|
+
.number()
|
|
167
|
+
.min(2)
|
|
168
|
+
.max(100)
|
|
169
|
+
.optional()
|
|
170
|
+
.default(20)
|
|
171
|
+
.describe('Number of results per page (2-100)'),
|
|
172
|
+
start: z
|
|
173
|
+
.string()
|
|
174
|
+
.optional()
|
|
175
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
176
|
+
from_date: z
|
|
177
|
+
.string()
|
|
178
|
+
.optional()
|
|
179
|
+
.describe('Filter transactions from this date (ISO 8601 format, e.g. 2024-01-01T00:00:00Z)'),
|
|
180
|
+
to_date: z
|
|
181
|
+
.string()
|
|
182
|
+
.optional()
|
|
183
|
+
.describe('Filter transactions up to this date (ISO 8601 format, e.g. 2024-12-31T23:59:59Z)'),
|
|
184
|
+
credentials: credentialsField,
|
|
185
|
+
}),
|
|
186
|
+
// -------------------------------------------------------------------------
|
|
187
|
+
// get_transaction
|
|
188
|
+
// -------------------------------------------------------------------------
|
|
189
|
+
z.object({
|
|
190
|
+
operation: z
|
|
191
|
+
.literal('get_transaction')
|
|
192
|
+
.describe('Get a specific transaction by ID'),
|
|
193
|
+
transaction_id: z
|
|
194
|
+
.string()
|
|
195
|
+
.min(1, 'Transaction ID is required')
|
|
196
|
+
.describe('Transaction ID'),
|
|
197
|
+
credentials: credentialsField,
|
|
198
|
+
}),
|
|
199
|
+
// -------------------------------------------------------------------------
|
|
200
|
+
// list_users
|
|
201
|
+
// -------------------------------------------------------------------------
|
|
202
|
+
z.object({
|
|
203
|
+
operation: z.literal('list_users').describe('List users in the business'),
|
|
204
|
+
page_size: z
|
|
205
|
+
.number()
|
|
206
|
+
.min(2)
|
|
207
|
+
.max(100)
|
|
208
|
+
.optional()
|
|
209
|
+
.default(20)
|
|
210
|
+
.describe('Number of results per page (2-100)'),
|
|
211
|
+
start: z
|
|
212
|
+
.string()
|
|
213
|
+
.optional()
|
|
214
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
215
|
+
credentials: credentialsField,
|
|
216
|
+
}),
|
|
217
|
+
// -------------------------------------------------------------------------
|
|
218
|
+
// get_user
|
|
219
|
+
// -------------------------------------------------------------------------
|
|
220
|
+
z.object({
|
|
221
|
+
operation: z.literal('get_user').describe('Get a specific user by ID'),
|
|
222
|
+
user_id: z.string().min(1, 'User ID is required').describe('User ID'),
|
|
223
|
+
credentials: credentialsField,
|
|
224
|
+
}),
|
|
225
|
+
// -------------------------------------------------------------------------
|
|
226
|
+
// list_cards
|
|
227
|
+
// -------------------------------------------------------------------------
|
|
228
|
+
z.object({
|
|
229
|
+
operation: z.literal('list_cards').describe('List cards'),
|
|
230
|
+
page_size: z
|
|
231
|
+
.number()
|
|
232
|
+
.min(2)
|
|
233
|
+
.max(100)
|
|
234
|
+
.optional()
|
|
235
|
+
.default(20)
|
|
236
|
+
.describe('Number of results per page (2-100)'),
|
|
237
|
+
start: z
|
|
238
|
+
.string()
|
|
239
|
+
.optional()
|
|
240
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
241
|
+
credentials: credentialsField,
|
|
242
|
+
}),
|
|
243
|
+
// -------------------------------------------------------------------------
|
|
244
|
+
// get_card
|
|
245
|
+
// -------------------------------------------------------------------------
|
|
246
|
+
z.object({
|
|
247
|
+
operation: z.literal('get_card').describe('Get a specific card by ID'),
|
|
248
|
+
card_id: z.string().min(1, 'Card ID is required').describe('Card ID'),
|
|
249
|
+
credentials: credentialsField,
|
|
250
|
+
}),
|
|
251
|
+
// -------------------------------------------------------------------------
|
|
252
|
+
// list_departments
|
|
253
|
+
// -------------------------------------------------------------------------
|
|
254
|
+
z.object({
|
|
255
|
+
operation: z
|
|
256
|
+
.literal('list_departments')
|
|
257
|
+
.describe('List departments in the business'),
|
|
258
|
+
page_size: z
|
|
259
|
+
.number()
|
|
260
|
+
.min(2)
|
|
261
|
+
.max(100)
|
|
262
|
+
.optional()
|
|
263
|
+
.default(20)
|
|
264
|
+
.describe('Number of results per page (2-100)'),
|
|
265
|
+
start: z
|
|
266
|
+
.string()
|
|
267
|
+
.optional()
|
|
268
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
269
|
+
credentials: credentialsField,
|
|
270
|
+
}),
|
|
271
|
+
// -------------------------------------------------------------------------
|
|
272
|
+
// list_locations
|
|
273
|
+
// -------------------------------------------------------------------------
|
|
274
|
+
z.object({
|
|
275
|
+
operation: z
|
|
276
|
+
.literal('list_locations')
|
|
277
|
+
.describe('List locations in the business'),
|
|
278
|
+
page_size: z
|
|
279
|
+
.number()
|
|
280
|
+
.min(2)
|
|
281
|
+
.max(100)
|
|
282
|
+
.optional()
|
|
283
|
+
.default(20)
|
|
284
|
+
.describe('Number of results per page (2-100)'),
|
|
285
|
+
start: z
|
|
286
|
+
.string()
|
|
287
|
+
.optional()
|
|
288
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
289
|
+
credentials: credentialsField,
|
|
290
|
+
}),
|
|
291
|
+
// -------------------------------------------------------------------------
|
|
292
|
+
// list_spend_programs
|
|
293
|
+
// -------------------------------------------------------------------------
|
|
294
|
+
z.object({
|
|
295
|
+
operation: z.literal('list_spend_programs').describe('List spend programs'),
|
|
296
|
+
page_size: z
|
|
297
|
+
.number()
|
|
298
|
+
.min(2)
|
|
299
|
+
.max(100)
|
|
300
|
+
.optional()
|
|
301
|
+
.default(20)
|
|
302
|
+
.describe('Number of results per page (2-100)'),
|
|
303
|
+
start: z
|
|
304
|
+
.string()
|
|
305
|
+
.optional()
|
|
306
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
307
|
+
credentials: credentialsField,
|
|
308
|
+
}),
|
|
309
|
+
// -------------------------------------------------------------------------
|
|
310
|
+
// list_limits
|
|
311
|
+
// -------------------------------------------------------------------------
|
|
312
|
+
z.object({
|
|
313
|
+
operation: z.literal('list_limits').describe('List spend limits/funds'),
|
|
314
|
+
page_size: z
|
|
315
|
+
.number()
|
|
316
|
+
.min(2)
|
|
317
|
+
.max(100)
|
|
318
|
+
.optional()
|
|
319
|
+
.default(20)
|
|
320
|
+
.describe('Number of results per page (2-100)'),
|
|
321
|
+
start: z
|
|
322
|
+
.string()
|
|
323
|
+
.optional()
|
|
324
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
325
|
+
credentials: credentialsField,
|
|
326
|
+
}),
|
|
327
|
+
// -------------------------------------------------------------------------
|
|
328
|
+
// list_reimbursements
|
|
329
|
+
// -------------------------------------------------------------------------
|
|
330
|
+
z.object({
|
|
331
|
+
operation: z.literal('list_reimbursements').describe('List reimbursements'),
|
|
332
|
+
page_size: z
|
|
333
|
+
.number()
|
|
334
|
+
.min(2)
|
|
335
|
+
.max(100)
|
|
336
|
+
.optional()
|
|
337
|
+
.default(20)
|
|
338
|
+
.describe('Number of results per page (2-100)'),
|
|
339
|
+
start: z
|
|
340
|
+
.string()
|
|
341
|
+
.optional()
|
|
342
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
343
|
+
from_date: z
|
|
344
|
+
.string()
|
|
345
|
+
.optional()
|
|
346
|
+
.describe('Filter reimbursements from this date (ISO 8601 format)'),
|
|
347
|
+
to_date: z
|
|
348
|
+
.string()
|
|
349
|
+
.optional()
|
|
350
|
+
.describe('Filter reimbursements up to this date (ISO 8601 format)'),
|
|
351
|
+
credentials: credentialsField,
|
|
352
|
+
}),
|
|
353
|
+
// -------------------------------------------------------------------------
|
|
354
|
+
// list_bills
|
|
355
|
+
// -------------------------------------------------------------------------
|
|
356
|
+
z.object({
|
|
357
|
+
operation: z.literal('list_bills').describe('List bills'),
|
|
358
|
+
page_size: z
|
|
359
|
+
.number()
|
|
360
|
+
.min(2)
|
|
361
|
+
.max(100)
|
|
362
|
+
.optional()
|
|
363
|
+
.default(20)
|
|
364
|
+
.describe('Number of results per page (2-100)'),
|
|
365
|
+
start: z
|
|
366
|
+
.string()
|
|
367
|
+
.optional()
|
|
368
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
369
|
+
from_date: z
|
|
370
|
+
.string()
|
|
371
|
+
.optional()
|
|
372
|
+
.describe('Filter bills from this date (ISO 8601 format)'),
|
|
373
|
+
to_date: z
|
|
374
|
+
.string()
|
|
375
|
+
.optional()
|
|
376
|
+
.describe('Filter bills up to this date (ISO 8601 format)'),
|
|
377
|
+
credentials: credentialsField,
|
|
378
|
+
}),
|
|
379
|
+
// -------------------------------------------------------------------------
|
|
380
|
+
// list_vendors
|
|
381
|
+
// -------------------------------------------------------------------------
|
|
382
|
+
z.object({
|
|
383
|
+
operation: z.literal('list_vendors').describe('List vendors'),
|
|
384
|
+
page_size: z
|
|
385
|
+
.number()
|
|
386
|
+
.min(2)
|
|
387
|
+
.max(100)
|
|
388
|
+
.optional()
|
|
389
|
+
.default(20)
|
|
390
|
+
.describe('Number of results per page (2-100)'),
|
|
391
|
+
start: z
|
|
392
|
+
.string()
|
|
393
|
+
.optional()
|
|
394
|
+
.describe('Cursor ID from previous page for pagination'),
|
|
395
|
+
credentials: credentialsField,
|
|
396
|
+
}),
|
|
397
|
+
// -------------------------------------------------------------------------
|
|
398
|
+
// get_business
|
|
399
|
+
// -------------------------------------------------------------------------
|
|
400
|
+
z.object({
|
|
401
|
+
operation: z.literal('get_business').describe('Get business information'),
|
|
402
|
+
credentials: credentialsField,
|
|
403
|
+
}),
|
|
404
|
+
]);
|
|
405
|
+
// ============================================================================
|
|
406
|
+
// RESULT SCHEMAS
|
|
407
|
+
// ============================================================================
|
|
408
|
+
export const RampResultSchema = z.discriminatedUnion('operation', [
|
|
409
|
+
// list_transactions result
|
|
410
|
+
z.object({
|
|
411
|
+
operation: z.literal('list_transactions'),
|
|
412
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
413
|
+
transactions: z
|
|
414
|
+
.array(RampTransactionSchema)
|
|
415
|
+
.optional()
|
|
416
|
+
.describe('List of transactions'),
|
|
417
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
418
|
+
error: z.string().describe('Error message if operation failed'),
|
|
419
|
+
}),
|
|
420
|
+
// get_transaction result
|
|
421
|
+
z.object({
|
|
422
|
+
operation: z.literal('get_transaction'),
|
|
423
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
424
|
+
transaction: RampTransactionSchema.optional().describe('Transaction details'),
|
|
425
|
+
error: z.string().describe('Error message if operation failed'),
|
|
426
|
+
}),
|
|
427
|
+
// list_users result
|
|
428
|
+
z.object({
|
|
429
|
+
operation: z.literal('list_users'),
|
|
430
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
431
|
+
users: z.array(RampUserSchema).optional().describe('List of users'),
|
|
432
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
433
|
+
error: z.string().describe('Error message if operation failed'),
|
|
434
|
+
}),
|
|
435
|
+
// get_user result
|
|
436
|
+
z.object({
|
|
437
|
+
operation: z.literal('get_user'),
|
|
438
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
439
|
+
user: RampUserSchema.optional().describe('User details'),
|
|
440
|
+
error: z.string().describe('Error message if operation failed'),
|
|
441
|
+
}),
|
|
442
|
+
// list_cards result
|
|
443
|
+
z.object({
|
|
444
|
+
operation: z.literal('list_cards'),
|
|
445
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
446
|
+
cards: z.array(RampCardSchema).optional().describe('List of cards'),
|
|
447
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
448
|
+
error: z.string().describe('Error message if operation failed'),
|
|
449
|
+
}),
|
|
450
|
+
// get_card result
|
|
451
|
+
z.object({
|
|
452
|
+
operation: z.literal('get_card'),
|
|
453
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
454
|
+
card: RampCardSchema.optional().describe('Card details'),
|
|
455
|
+
error: z.string().describe('Error message if operation failed'),
|
|
456
|
+
}),
|
|
457
|
+
// list_departments result
|
|
458
|
+
z.object({
|
|
459
|
+
operation: z.literal('list_departments'),
|
|
460
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
461
|
+
departments: z
|
|
462
|
+
.array(RampDepartmentSchema)
|
|
463
|
+
.optional()
|
|
464
|
+
.describe('List of departments'),
|
|
465
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
466
|
+
error: z.string().describe('Error message if operation failed'),
|
|
467
|
+
}),
|
|
468
|
+
// list_locations result
|
|
469
|
+
z.object({
|
|
470
|
+
operation: z.literal('list_locations'),
|
|
471
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
472
|
+
locations: z
|
|
473
|
+
.array(RampLocationSchema)
|
|
474
|
+
.optional()
|
|
475
|
+
.describe('List of locations'),
|
|
476
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
477
|
+
error: z.string().describe('Error message if operation failed'),
|
|
478
|
+
}),
|
|
479
|
+
// list_spend_programs result
|
|
480
|
+
z.object({
|
|
481
|
+
operation: z.literal('list_spend_programs'),
|
|
482
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
483
|
+
spend_programs: z
|
|
484
|
+
.array(RampSpendProgramSchema)
|
|
485
|
+
.optional()
|
|
486
|
+
.describe('List of spend programs'),
|
|
487
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
488
|
+
error: z.string().describe('Error message if operation failed'),
|
|
489
|
+
}),
|
|
490
|
+
// list_limits result
|
|
491
|
+
z.object({
|
|
492
|
+
operation: z.literal('list_limits'),
|
|
493
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
494
|
+
limits: z
|
|
495
|
+
.array(RampLimitSchema)
|
|
496
|
+
.optional()
|
|
497
|
+
.describe('List of spend limits/funds'),
|
|
498
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
499
|
+
error: z.string().describe('Error message if operation failed'),
|
|
500
|
+
}),
|
|
501
|
+
// list_reimbursements result
|
|
502
|
+
z.object({
|
|
503
|
+
operation: z.literal('list_reimbursements'),
|
|
504
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
505
|
+
reimbursements: z
|
|
506
|
+
.array(RampReimbursementSchema)
|
|
507
|
+
.optional()
|
|
508
|
+
.describe('List of reimbursements'),
|
|
509
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
510
|
+
error: z.string().describe('Error message if operation failed'),
|
|
511
|
+
}),
|
|
512
|
+
// list_bills result
|
|
513
|
+
z.object({
|
|
514
|
+
operation: z.literal('list_bills'),
|
|
515
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
516
|
+
bills: z.array(RampBillSchema).optional().describe('List of bills'),
|
|
517
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
518
|
+
error: z.string().describe('Error message if operation failed'),
|
|
519
|
+
}),
|
|
520
|
+
// list_vendors result
|
|
521
|
+
z.object({
|
|
522
|
+
operation: z.literal('list_vendors'),
|
|
523
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
524
|
+
vendors: z.array(RampVendorSchema).optional().describe('List of vendors'),
|
|
525
|
+
has_more: z.boolean().optional().describe('Whether there are more results'),
|
|
526
|
+
error: z.string().describe('Error message if operation failed'),
|
|
527
|
+
}),
|
|
528
|
+
// get_business result
|
|
529
|
+
z.object({
|
|
530
|
+
operation: z.literal('get_business'),
|
|
531
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
532
|
+
business: RampBusinessSchema.optional().describe('Business information'),
|
|
533
|
+
error: z.string().describe('Error message if operation failed'),
|
|
534
|
+
}),
|
|
535
|
+
]);
|
|
536
|
+
//# sourceMappingURL=ramp.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ramp.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/ramp/ramp.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,mDAAmD;AACnD,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;KAChD,QAAQ,EAAE;KACV,QAAQ,CAAC,mCAAmC,CAAC,CAAC;AAEjD,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACpD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACrE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC1E,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,eAAe,CA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AAC;QACP,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QACpC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACrE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QACzE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QAC3E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAChE,CAAC;IAEF,sBAAsB;IACtB,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QACpC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACrE,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;QACxE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAChE,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface RampApiResponse {
|
|
2
|
+
data?: unknown[];
|
|
3
|
+
page?: {
|
|
4
|
+
next?: string | null;
|
|
5
|
+
};
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare function makeRampRequest(accessToken: string, endpoint: string, options?: {
|
|
9
|
+
method?: string;
|
|
10
|
+
params?: Record<string, string | number | undefined>;
|
|
11
|
+
body?: Record<string, unknown>;
|
|
12
|
+
}): Promise<RampApiResponse>;
|
|
13
|
+
//# sourceMappingURL=ramp.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ramp.utils.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/ramp/ramp.utils.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,wBAAsB,eAAe,CACnC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3B,GACL,OAAO,CAAC,eAAe,CAAC,CAyC1B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const RAMP_BASE_URL = 'https://api.ramp.com/developer/v1';
|
|
2
|
+
export async function makeRampRequest(accessToken, endpoint, options = {}) {
|
|
3
|
+
const { method = 'GET', params, body } = options;
|
|
4
|
+
let url = `${RAMP_BASE_URL}${endpoint}`;
|
|
5
|
+
if (params) {
|
|
6
|
+
const searchParams = new URLSearchParams();
|
|
7
|
+
for (const [key, value] of Object.entries(params)) {
|
|
8
|
+
if (value !== undefined && value !== null) {
|
|
9
|
+
searchParams.set(key, String(value));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const qs = searchParams.toString();
|
|
13
|
+
if (qs) {
|
|
14
|
+
url += `?${qs}`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const headers = {
|
|
18
|
+
Authorization: `Bearer ${accessToken}`,
|
|
19
|
+
Accept: 'application/json',
|
|
20
|
+
};
|
|
21
|
+
const fetchOptions = {
|
|
22
|
+
method,
|
|
23
|
+
headers,
|
|
24
|
+
};
|
|
25
|
+
if (body) {
|
|
26
|
+
headers['Content-Type'] = 'application/json';
|
|
27
|
+
fetchOptions.body = JSON.stringify(body);
|
|
28
|
+
}
|
|
29
|
+
const response = await fetch(url, fetchOptions);
|
|
30
|
+
if (!response.ok) {
|
|
31
|
+
const errorText = await response.text().catch(() => 'Unknown error');
|
|
32
|
+
throw new Error(`Ramp API error (${response.status}): ${errorText}`);
|
|
33
|
+
}
|
|
34
|
+
return (await response.json());
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=ramp.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ramp.utils.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/ramp/ramp.utils.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,mCAAmC,CAAC;AAQ1D,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,WAAmB,EACnB,QAAgB,EAChB,UAII,EAAE;IAEN,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAEjD,IAAI,GAAG,GAAG,GAAG,aAAa,GAAG,QAAQ,EAAE,CAAC;IAExC,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,YAAY,GAAG,IAAI,eAAe,EAAE,CAAC;QAC3C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAClD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBAC1C,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;QACD,MAAM,EAAE,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC;QACnC,IAAI,EAAE,EAAE,CAAC;YACP,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;QAClB,CAAC;IACH,CAAC;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