@keystrokehq/ramp 0.0.7 → 0.0.8
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/accounting-fields.mjs +7 -7
- package/dist/accounting-gl-accounts.mjs +3 -3
- package/dist/accounting-subsidiaries.mjs +3 -3
- package/dist/accounting-sync.mjs +3 -3
- package/dist/accounting-tracking-categories.mjs +2 -2
- package/dist/accounting-vendors.mjs +3 -3
- package/dist/applications.d.mts +6 -6
- package/dist/applications.mjs +2 -2
- package/dist/bills.d.mts +24 -24
- package/dist/bills.mjs +7 -7
- package/dist/business.mjs +1 -1
- package/dist/card-programs.mjs +3 -3
- package/dist/cards.mjs +9 -9
- package/dist/cashbacks.mjs +2 -2
- package/dist/client.d.mts +1 -1
- package/dist/departments.mjs +5 -5
- package/dist/entities.mjs +2 -2
- package/dist/{errors-Dm2DruuS.d.mts → errors-CIJf9-v0.d.mts} +1 -1
- package/dist/limits.d.mts +6 -6
- package/dist/limits.mjs +5 -5
- package/dist/locations.mjs +5 -5
- package/dist/memos.mjs +2 -2
- package/dist/purchase-orders.d.mts +6 -6
- package/dist/purchase-orders.mjs +2 -2
- package/dist/receipt-integrations.mjs +2 -2
- package/dist/receipts.mjs +3 -3
- package/dist/reimbursements.d.mts +6 -6
- package/dist/reimbursements.mjs +2 -2
- package/dist/schemas/index.d.mts +7 -7
- package/dist/spend-programs.mjs +2 -2
- package/dist/spend-requests.d.mts +3 -3
- package/dist/spend-requests.mjs +3 -3
- package/dist/statements.mjs +2 -2
- package/dist/transactions.d.mts +10 -10
- package/dist/transactions.mjs +3 -3
- package/dist/transfers.d.mts +6 -6
- package/dist/transfers.mjs +2 -2
- package/dist/triggers/index.d.mts +1 -1
- package/dist/unified-requests.d.mts +3 -3
- package/dist/unified-requests.mjs +2 -2
- package/dist/users.mjs +6 -6
- package/dist/vendor-bank-accounts.mjs +5 -5
- package/dist/{vendors-gH-w9b_R.d.mts → vendors-oZvKUHvt.d.mts} +60 -60
- package/dist/vendors.mjs +5 -5
- package/dist/webhooks.mjs +5 -5
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ import { z } from "zod";
|
|
|
6
6
|
|
|
7
7
|
//#region src/accounting-fields.ts
|
|
8
8
|
const listAccountingFields = rampOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "ramp.list-accounting-fields",
|
|
10
10
|
name: "List Accounting Fields",
|
|
11
11
|
description: "List custom accounting fields defined on the Ramp business.",
|
|
12
12
|
input: rampAccountingFieldListInputSchema,
|
|
@@ -20,7 +20,7 @@ const listAccountingFields = rampOperation({
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const getAccountingField = rampOperation({
|
|
23
|
-
id: "
|
|
23
|
+
id: "ramp.get-accounting-field",
|
|
24
24
|
name: "Get Accounting Field",
|
|
25
25
|
description: "Fetch a Ramp accounting field by id.",
|
|
26
26
|
input: rampAccountingFieldGetInputSchema,
|
|
@@ -31,7 +31,7 @@ const getAccountingField = rampOperation({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const createAccountingField = rampOperation({
|
|
34
|
-
id: "
|
|
34
|
+
id: "ramp.create-accounting-field",
|
|
35
35
|
name: "Create Accounting Field",
|
|
36
36
|
description: "Create a new custom accounting field.",
|
|
37
37
|
input: rampAccountingFieldCreateInputSchema,
|
|
@@ -46,7 +46,7 @@ const createAccountingField = rampOperation({
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
const updateAccountingField = rampOperation({
|
|
49
|
-
id: "
|
|
49
|
+
id: "ramp.update-accounting-field",
|
|
50
50
|
name: "Update Accounting Field",
|
|
51
51
|
description: "Update an existing custom accounting field.",
|
|
52
52
|
input: rampAccountingFieldUpdateInputSchema,
|
|
@@ -63,7 +63,7 @@ const updateAccountingField = rampOperation({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
const deleteAccountingField = rampOperation({
|
|
66
|
-
id: "
|
|
66
|
+
id: "ramp.delete-accounting-field",
|
|
67
67
|
name: "Delete Accounting Field",
|
|
68
68
|
description: "Delete a custom accounting field by id.",
|
|
69
69
|
input: rampAccountingFieldDeleteInputSchema,
|
|
@@ -75,7 +75,7 @@ const deleteAccountingField = rampOperation({
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
const listAccountingFieldOptions = rampOperation({
|
|
78
|
-
id: "
|
|
78
|
+
id: "ramp.list-accounting-field-options",
|
|
79
79
|
name: "List Accounting Field Options",
|
|
80
80
|
description: "List options configured on a custom accounting field.",
|
|
81
81
|
input: rampAccountingFieldOptionListInputSchema,
|
|
@@ -89,7 +89,7 @@ const listAccountingFieldOptions = rampOperation({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
const uploadAccountingFieldOptions = rampOperation({
|
|
92
|
-
id: "
|
|
92
|
+
id: "ramp.upload-accounting-field-options",
|
|
93
93
|
name: "Upload Accounting Field Options",
|
|
94
94
|
description: "Bulk upload options for a custom accounting field.",
|
|
95
95
|
input: rampAccountingFieldOptionUploadInputSchema,
|
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/accounting-gl-accounts.ts
|
|
7
7
|
const listGlAccounts = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-gl-accounts",
|
|
9
9
|
name: "List GL Accounts",
|
|
10
10
|
description: "List general-ledger accounts synced from the connected accounting system.",
|
|
11
11
|
input: rampGlAccountListInputSchema,
|
|
@@ -19,7 +19,7 @@ const listGlAccounts = rampOperation({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const getGlAccount = rampOperation({
|
|
22
|
-
id: "
|
|
22
|
+
id: "ramp.get-gl-account",
|
|
23
23
|
name: "Get GL Account",
|
|
24
24
|
description: "Fetch a GL account by id.",
|
|
25
25
|
input: rampGlAccountGetInputSchema,
|
|
@@ -30,7 +30,7 @@ const getGlAccount = rampOperation({
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
const uploadGlAccounts = rampOperation({
|
|
33
|
-
id: "
|
|
33
|
+
id: "ramp.upload-gl-accounts",
|
|
34
34
|
name: "Upload GL Accounts",
|
|
35
35
|
description: "Bulk-upload GL accounts from the connected accounting system.",
|
|
36
36
|
input: rampGlAccountUploadInputSchema,
|
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/accounting-subsidiaries.ts
|
|
7
7
|
const listAccountingSubsidiaries = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-accounting-subsidiaries",
|
|
9
9
|
name: "List Accounting Subsidiaries",
|
|
10
10
|
description: "List subsidiaries synced from the connected accounting system.",
|
|
11
11
|
input: rampAccountingSubsidiaryListInputSchema,
|
|
@@ -19,7 +19,7 @@ const listAccountingSubsidiaries = rampOperation({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const getAccountingSubsidiary = rampOperation({
|
|
22
|
-
id: "
|
|
22
|
+
id: "ramp.get-accounting-subsidiary",
|
|
23
23
|
name: "Get Accounting Subsidiary",
|
|
24
24
|
description: "Fetch a subsidiary by id.",
|
|
25
25
|
input: rampAccountingSubsidiaryGetInputSchema,
|
|
@@ -30,7 +30,7 @@ const getAccountingSubsidiary = rampOperation({
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
const uploadAccountingSubsidiaries = rampOperation({
|
|
33
|
-
id: "
|
|
33
|
+
id: "ramp.upload-accounting-subsidiaries",
|
|
34
34
|
name: "Upload Accounting Subsidiaries",
|
|
35
35
|
description: "Bulk-upload subsidiaries from the connected accounting system.",
|
|
36
36
|
input: rampAccountingSubsidiaryUploadInputSchema,
|
package/dist/accounting-sync.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/accounting-sync.ts
|
|
7
7
|
const listAccountingSyncs = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-accounting-syncs",
|
|
9
9
|
name: "List Accounting Syncs",
|
|
10
10
|
description: "List recent accounting sync attempts.",
|
|
11
11
|
input: rampAccountingSyncListInputSchema,
|
|
@@ -19,7 +19,7 @@ const listAccountingSyncs = rampOperation({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const getAccountingSync = rampOperation({
|
|
22
|
-
id: "
|
|
22
|
+
id: "ramp.get-accounting-sync",
|
|
23
23
|
name: "Get Accounting Sync",
|
|
24
24
|
description: "Fetch an accounting sync record by id.",
|
|
25
25
|
input: rampAccountingSyncGetInputSchema,
|
|
@@ -30,7 +30,7 @@ const getAccountingSync = rampOperation({
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
const createAccountingSync = rampOperation({
|
|
33
|
-
id: "
|
|
33
|
+
id: "ramp.create-accounting-sync",
|
|
34
34
|
name: "Create Accounting Sync",
|
|
35
35
|
description: "Kick off a new accounting sync for a given sync type (BILL, CARD_TRANSACTION, REIMBURSEMENT, TRANSFER, STATEMENT_CREDIT).",
|
|
36
36
|
input: rampAccountingSyncCreateInputSchema,
|
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/accounting-tracking-categories.ts
|
|
7
7
|
const listAccountingTrackingCategories = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-accounting-tracking-categories",
|
|
9
9
|
name: "List Accounting Tracking Categories",
|
|
10
10
|
description: "List tracking categories synced from the connected accounting system (e.g. QuickBooks classes).",
|
|
11
11
|
input: rampAccountingTrackingCategoryListInputSchema,
|
|
@@ -19,7 +19,7 @@ const listAccountingTrackingCategories = rampOperation({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const getAccountingTrackingCategory = rampOperation({
|
|
22
|
-
id: "
|
|
22
|
+
id: "ramp.get-accounting-tracking-category",
|
|
23
23
|
name: "Get Accounting Tracking Category",
|
|
24
24
|
description: "Fetch a tracking category by id.",
|
|
25
25
|
input: rampAccountingTrackingCategoryGetInputSchema,
|
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/accounting-vendors.ts
|
|
7
7
|
const listAccountingVendors = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-accounting-vendors",
|
|
9
9
|
name: "List Accounting Vendors",
|
|
10
10
|
description: "List vendors synced from the connected accounting system.",
|
|
11
11
|
input: rampAccountingVendorListInputSchema,
|
|
@@ -19,7 +19,7 @@ const listAccountingVendors = rampOperation({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const getAccountingVendor = rampOperation({
|
|
22
|
-
id: "
|
|
22
|
+
id: "ramp.get-accounting-vendor",
|
|
23
23
|
name: "Get Accounting Vendor",
|
|
24
24
|
description: "Fetch an accounting-system vendor by id.",
|
|
25
25
|
input: rampAccountingVendorGetInputSchema,
|
|
@@ -30,7 +30,7 @@ const getAccountingVendor = rampOperation({
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
const uploadAccountingVendors = rampOperation({
|
|
33
|
-
id: "
|
|
33
|
+
id: "ramp.upload-accounting-vendors",
|
|
34
34
|
name: "Upload Accounting Vendors",
|
|
35
35
|
description: "Bulk-upload vendors from the connected accounting system.",
|
|
36
36
|
input: rampAccountingVendorUploadInputSchema,
|
package/dist/applications.d.mts
CHANGED
|
@@ -7,10 +7,10 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
7
7
|
declare const listApplications: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
8
8
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
9
9
|
PENDING: "PENDING";
|
|
10
|
-
DRAFT: "DRAFT";
|
|
11
10
|
APPROVED: "APPROVED";
|
|
12
|
-
CANCELED: "CANCELED";
|
|
13
11
|
DENIED: "DENIED";
|
|
12
|
+
CANCELED: "CANCELED";
|
|
13
|
+
DRAFT: "DRAFT";
|
|
14
14
|
}>>;
|
|
15
15
|
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
16
16
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
@@ -20,10 +20,10 @@ declare const listApplications: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
20
20
|
applicant_user_id: zod.ZodOptional<zod.ZodString>;
|
|
21
21
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
22
22
|
PENDING: "PENDING";
|
|
23
|
-
DRAFT: "DRAFT";
|
|
24
23
|
APPROVED: "APPROVED";
|
|
25
|
-
CANCELED: "CANCELED";
|
|
26
24
|
DENIED: "DENIED";
|
|
25
|
+
CANCELED: "CANCELED";
|
|
26
|
+
DRAFT: "DRAFT";
|
|
27
27
|
}>>;
|
|
28
28
|
created_at: zod.ZodOptional<zod.ZodString>;
|
|
29
29
|
application_type: zod.ZodOptional<zod.ZodString>;
|
|
@@ -43,10 +43,10 @@ declare const getApplication: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
43
43
|
applicant_user_id: zod.ZodOptional<zod.ZodString>;
|
|
44
44
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
45
45
|
PENDING: "PENDING";
|
|
46
|
-
DRAFT: "DRAFT";
|
|
47
46
|
APPROVED: "APPROVED";
|
|
48
|
-
CANCELED: "CANCELED";
|
|
49
47
|
DENIED: "DENIED";
|
|
48
|
+
CANCELED: "CANCELED";
|
|
49
|
+
DRAFT: "DRAFT";
|
|
50
50
|
}>>;
|
|
51
51
|
created_at: zod.ZodOptional<zod.ZodString>;
|
|
52
52
|
application_type: zod.ZodOptional<zod.ZodString>;
|
package/dist/applications.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/applications.ts
|
|
7
7
|
const listApplications = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-applications",
|
|
9
9
|
name: "List Applications",
|
|
10
10
|
description: "List Ramp user applications (access/role requests). Supports status filter.",
|
|
11
11
|
input: rampApplicationListInputSchema,
|
|
@@ -20,7 +20,7 @@ const listApplications = rampOperation({
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const getApplication = rampOperation({
|
|
23
|
-
id: "
|
|
23
|
+
id: "ramp.get-application",
|
|
24
24
|
name: "Get Application",
|
|
25
25
|
description: "Fetch an application by id.",
|
|
26
26
|
input: rampApplicationGetInputSchema,
|
package/dist/bills.d.mts
CHANGED
|
@@ -8,13 +8,13 @@ declare const listBills: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
8
8
|
vendor_id: zod.ZodOptional<zod.ZodString>;
|
|
9
9
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
10
10
|
PENDING: "PENDING";
|
|
11
|
-
OPEN: "OPEN";
|
|
12
|
-
DRAFT: "DRAFT";
|
|
13
11
|
APPROVED: "APPROVED";
|
|
12
|
+
CANCELED: "CANCELED";
|
|
14
13
|
REJECTED: "REJECTED";
|
|
15
14
|
PAID: "PAID";
|
|
16
|
-
|
|
15
|
+
DRAFT: "DRAFT";
|
|
17
16
|
FAILED: "FAILED";
|
|
17
|
+
OPEN: "OPEN";
|
|
18
18
|
SCHEDULED: "SCHEDULED";
|
|
19
19
|
}>>;
|
|
20
20
|
entity_id: zod.ZodOptional<zod.ZodString>;
|
|
@@ -33,13 +33,13 @@ declare const listBills: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
33
33
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
35
35
|
PENDING: "PENDING";
|
|
36
|
-
OPEN: "OPEN";
|
|
37
|
-
DRAFT: "DRAFT";
|
|
38
36
|
APPROVED: "APPROVED";
|
|
37
|
+
CANCELED: "CANCELED";
|
|
39
38
|
REJECTED: "REJECTED";
|
|
40
39
|
PAID: "PAID";
|
|
41
|
-
|
|
40
|
+
DRAFT: "DRAFT";
|
|
42
41
|
FAILED: "FAILED";
|
|
42
|
+
OPEN: "OPEN";
|
|
43
43
|
SCHEDULED: "SCHEDULED";
|
|
44
44
|
}>>;
|
|
45
45
|
amount: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -84,13 +84,13 @@ declare const getBill: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
84
84
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
85
85
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
86
86
|
PENDING: "PENDING";
|
|
87
|
-
OPEN: "OPEN";
|
|
88
|
-
DRAFT: "DRAFT";
|
|
89
87
|
APPROVED: "APPROVED";
|
|
88
|
+
CANCELED: "CANCELED";
|
|
90
89
|
REJECTED: "REJECTED";
|
|
91
90
|
PAID: "PAID";
|
|
92
|
-
|
|
91
|
+
DRAFT: "DRAFT";
|
|
93
92
|
FAILED: "FAILED";
|
|
93
|
+
OPEN: "OPEN";
|
|
94
94
|
SCHEDULED: "SCHEDULED";
|
|
95
95
|
}>>;
|
|
96
96
|
amount: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -147,13 +147,13 @@ declare const createBill: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
147
147
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
148
148
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
149
149
|
PENDING: "PENDING";
|
|
150
|
-
OPEN: "OPEN";
|
|
151
|
-
DRAFT: "DRAFT";
|
|
152
150
|
APPROVED: "APPROVED";
|
|
151
|
+
CANCELED: "CANCELED";
|
|
153
152
|
REJECTED: "REJECTED";
|
|
154
153
|
PAID: "PAID";
|
|
155
|
-
|
|
154
|
+
DRAFT: "DRAFT";
|
|
156
155
|
FAILED: "FAILED";
|
|
156
|
+
OPEN: "OPEN";
|
|
157
157
|
SCHEDULED: "SCHEDULED";
|
|
158
158
|
}>>;
|
|
159
159
|
amount: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -198,13 +198,13 @@ declare const updateBill: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
198
198
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
199
199
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
200
200
|
PENDING: "PENDING";
|
|
201
|
-
OPEN: "OPEN";
|
|
202
|
-
DRAFT: "DRAFT";
|
|
203
201
|
APPROVED: "APPROVED";
|
|
202
|
+
CANCELED: "CANCELED";
|
|
204
203
|
REJECTED: "REJECTED";
|
|
205
204
|
PAID: "PAID";
|
|
206
|
-
|
|
205
|
+
DRAFT: "DRAFT";
|
|
207
206
|
FAILED: "FAILED";
|
|
207
|
+
OPEN: "OPEN";
|
|
208
208
|
SCHEDULED: "SCHEDULED";
|
|
209
209
|
}>>;
|
|
210
210
|
amount: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -246,13 +246,13 @@ declare const approveBill: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
246
246
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
247
247
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
248
248
|
PENDING: "PENDING";
|
|
249
|
-
OPEN: "OPEN";
|
|
250
|
-
DRAFT: "DRAFT";
|
|
251
249
|
APPROVED: "APPROVED";
|
|
250
|
+
CANCELED: "CANCELED";
|
|
252
251
|
REJECTED: "REJECTED";
|
|
253
252
|
PAID: "PAID";
|
|
254
|
-
|
|
253
|
+
DRAFT: "DRAFT";
|
|
255
254
|
FAILED: "FAILED";
|
|
255
|
+
OPEN: "OPEN";
|
|
256
256
|
SCHEDULED: "SCHEDULED";
|
|
257
257
|
}>>;
|
|
258
258
|
amount: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -294,13 +294,13 @@ declare const rejectBill: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
294
294
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
295
295
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
296
296
|
PENDING: "PENDING";
|
|
297
|
-
OPEN: "OPEN";
|
|
298
|
-
DRAFT: "DRAFT";
|
|
299
297
|
APPROVED: "APPROVED";
|
|
298
|
+
CANCELED: "CANCELED";
|
|
300
299
|
REJECTED: "REJECTED";
|
|
301
300
|
PAID: "PAID";
|
|
302
|
-
|
|
301
|
+
DRAFT: "DRAFT";
|
|
303
302
|
FAILED: "FAILED";
|
|
303
|
+
OPEN: "OPEN";
|
|
304
304
|
SCHEDULED: "SCHEDULED";
|
|
305
305
|
}>>;
|
|
306
306
|
amount: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -342,13 +342,13 @@ declare const cancelBill: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
342
342
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
343
343
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
344
344
|
PENDING: "PENDING";
|
|
345
|
-
OPEN: "OPEN";
|
|
346
|
-
DRAFT: "DRAFT";
|
|
347
345
|
APPROVED: "APPROVED";
|
|
346
|
+
CANCELED: "CANCELED";
|
|
348
347
|
REJECTED: "REJECTED";
|
|
349
348
|
PAID: "PAID";
|
|
350
|
-
|
|
349
|
+
DRAFT: "DRAFT";
|
|
351
350
|
FAILED: "FAILED";
|
|
351
|
+
OPEN: "OPEN";
|
|
352
352
|
SCHEDULED: "SCHEDULED";
|
|
353
353
|
}>>;
|
|
354
354
|
amount: zod.ZodOptional<zod.ZodObject<{
|
package/dist/bills.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { n as unmapRampMoney, t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/bills.ts
|
|
7
7
|
const listBills = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-bills",
|
|
9
9
|
name: "List Bills",
|
|
10
10
|
description: "List Ramp bills (bill-pay invoices). Supports filtering by vendor, status, entity, and date range.",
|
|
11
11
|
input: rampBillListInputSchema,
|
|
@@ -25,7 +25,7 @@ const listBills = rampOperation({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
const getBill = rampOperation({
|
|
28
|
-
id: "
|
|
28
|
+
id: "ramp.get-bill",
|
|
29
29
|
name: "Get Bill",
|
|
30
30
|
description: "Fetch a single Ramp bill by id.",
|
|
31
31
|
input: rampBillGetInputSchema,
|
|
@@ -36,7 +36,7 @@ const getBill = rampOperation({
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
const createBill = rampOperation({
|
|
39
|
-
id: "
|
|
39
|
+
id: "ramp.create-bill",
|
|
40
40
|
name: "Create Bill",
|
|
41
41
|
description: "Create a new Ramp bill for a vendor.",
|
|
42
42
|
input: rampBillCreateInputSchema,
|
|
@@ -65,7 +65,7 @@ const createBill = rampOperation({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
const updateBill = rampOperation({
|
|
68
|
-
id: "
|
|
68
|
+
id: "ramp.update-bill",
|
|
69
69
|
name: "Update Bill",
|
|
70
70
|
description: "Update memo or date fields on an existing Ramp bill.",
|
|
71
71
|
input: rampBillUpdateInputSchema,
|
|
@@ -82,7 +82,7 @@ const updateBill = rampOperation({
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
const approveBill = rampOperation({
|
|
85
|
-
id: "
|
|
85
|
+
id: "ramp.approve-bill",
|
|
86
86
|
name: "Approve Bill",
|
|
87
87
|
description: "Approve a pending Ramp bill for payment.",
|
|
88
88
|
input: rampBillApproveInputSchema,
|
|
@@ -98,7 +98,7 @@ const approveBill = rampOperation({
|
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
const rejectBill = rampOperation({
|
|
101
|
-
id: "
|
|
101
|
+
id: "ramp.reject-bill",
|
|
102
102
|
name: "Reject Bill",
|
|
103
103
|
description: "Reject a pending Ramp bill.",
|
|
104
104
|
input: rampBillRejectInputSchema,
|
|
@@ -114,7 +114,7 @@ const rejectBill = rampOperation({
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
const cancelBill = rampOperation({
|
|
117
|
-
id: "
|
|
117
|
+
id: "ramp.cancel-bill",
|
|
118
118
|
name: "Cancel Bill",
|
|
119
119
|
description: "Cancel a Ramp bill before it has been paid.",
|
|
120
120
|
input: rampBillCancelInputSchema,
|
package/dist/business.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { z } from "zod";
|
|
|
5
5
|
|
|
6
6
|
//#region src/business.ts
|
|
7
7
|
const getBusiness = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.get-business",
|
|
9
9
|
name: "Get Business",
|
|
10
10
|
description: "Fetch the business record associated with the connected Ramp credential.",
|
|
11
11
|
input: z.object({}),
|
package/dist/card-programs.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/card-programs.ts
|
|
7
7
|
const listCardPrograms = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-card-programs",
|
|
9
9
|
name: "List Card Programs",
|
|
10
10
|
description: "List all Ramp card programs configured for the connected business.",
|
|
11
11
|
input: rampCardProgramListInputSchema,
|
|
@@ -20,7 +20,7 @@ const listCardPrograms = rampOperation({
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const getCardProgram = rampOperation({
|
|
23
|
-
id: "
|
|
23
|
+
id: "ramp.get-card-program",
|
|
24
24
|
name: "Get Card Program",
|
|
25
25
|
description: "Fetch a Ramp card program by id.",
|
|
26
26
|
input: rampCardProgramGetInputSchema,
|
|
@@ -31,7 +31,7 @@ const getCardProgram = rampOperation({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const createCardProgram = rampOperation({
|
|
34
|
-
id: "
|
|
34
|
+
id: "ramp.create-card-program",
|
|
35
35
|
name: "Create Card Program",
|
|
36
36
|
description: "Create a new Ramp card program with default spending controls.",
|
|
37
37
|
input: rampCardProgramCreateInputSchema,
|
package/dist/cards.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { z } from "zod";
|
|
|
7
7
|
|
|
8
8
|
//#region src/cards.ts
|
|
9
9
|
const listCards = rampOperation({
|
|
10
|
-
id: "
|
|
10
|
+
id: "ramp.list-cards",
|
|
11
11
|
name: "List Cards",
|
|
12
12
|
description: "List Ramp cards, optionally filtered by cardholder, entity, card program, or state.",
|
|
13
13
|
input: rampCardListInputSchema,
|
|
@@ -26,7 +26,7 @@ const listCards = rampOperation({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
const getCard = rampOperation({
|
|
29
|
-
id: "
|
|
29
|
+
id: "ramp.get-card",
|
|
30
30
|
name: "Get Card",
|
|
31
31
|
description: "Fetch a Ramp card by id.",
|
|
32
32
|
input: rampCardGetInputSchema,
|
|
@@ -37,7 +37,7 @@ const getCard = rampOperation({
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
const createVirtualCard = rampOperation({
|
|
40
|
-
id: "
|
|
40
|
+
id: "ramp.create-virtual-card",
|
|
41
41
|
name: "Create Virtual Card",
|
|
42
42
|
description: "Create a new virtual Ramp card for an existing user.",
|
|
43
43
|
input: rampCreateVirtualCardInputSchema,
|
|
@@ -54,7 +54,7 @@ const createVirtualCard = rampOperation({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const createPhysicalCard = rampOperation({
|
|
57
|
-
id: "
|
|
57
|
+
id: "ramp.create-physical-card",
|
|
58
58
|
name: "Create Physical Card",
|
|
59
59
|
description: "Order a physical Ramp card for an existing user.",
|
|
60
60
|
input: rampCreatePhysicalCardInputSchema,
|
|
@@ -71,7 +71,7 @@ const createPhysicalCard = rampOperation({
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
const updateCard = rampOperation({
|
|
74
|
-
id: "
|
|
74
|
+
id: "ramp.update-card",
|
|
75
75
|
name: "Update Card",
|
|
76
76
|
description: "Update display name or spending restrictions on an existing Ramp card.",
|
|
77
77
|
input: rampCardUpdateInputSchema,
|
|
@@ -88,7 +88,7 @@ const updateCard = rampOperation({
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
const suspendCard = rampOperation({
|
|
91
|
-
id: "
|
|
91
|
+
id: "ramp.suspend-card",
|
|
92
92
|
name: "Suspend Card",
|
|
93
93
|
description: "Temporarily suspend a Ramp card. Issues a deferred task.",
|
|
94
94
|
input: rampSuspendCardInputSchema,
|
|
@@ -103,7 +103,7 @@ const suspendCard = rampOperation({
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
const unsuspendCard = rampOperation({
|
|
106
|
-
id: "
|
|
106
|
+
id: "ramp.unsuspend-card",
|
|
107
107
|
name: "Unsuspend Card",
|
|
108
108
|
description: "Restore a previously suspended Ramp card. Issues a deferred task.",
|
|
109
109
|
input: rampUnsuspendCardInputSchema,
|
|
@@ -118,7 +118,7 @@ const unsuspendCard = rampOperation({
|
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
const terminateCard = rampOperation({
|
|
121
|
-
id: "
|
|
121
|
+
id: "ramp.terminate-card",
|
|
122
122
|
name: "Terminate Card",
|
|
123
123
|
description: "Permanently terminate a Ramp card. This is irreversible.",
|
|
124
124
|
input: rampTerminateCardInputSchema,
|
|
@@ -135,7 +135,7 @@ const terminateCard = rampOperation({
|
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
const listCardFundTransfers = rampOperation({
|
|
138
|
-
id: "
|
|
138
|
+
id: "ramp.list-card-fund-transfers",
|
|
139
139
|
name: "List Card Fund Transfers",
|
|
140
140
|
description: "List fund transfers associated with Ramp cards.",
|
|
141
141
|
input: z.object({
|
package/dist/cashbacks.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/cashbacks.ts
|
|
7
7
|
const listCashbacks = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-cashbacks",
|
|
9
9
|
name: "List Cashbacks",
|
|
10
10
|
description: "List cashback credits granted to the connected Ramp business.",
|
|
11
11
|
input: rampCashbackListInputSchema,
|
|
@@ -19,7 +19,7 @@ const listCashbacks = rampOperation({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const getCashback = rampOperation({
|
|
22
|
-
id: "
|
|
22
|
+
id: "ramp.get-cashback",
|
|
23
23
|
name: "Get Cashback",
|
|
24
24
|
description: "Fetch a cashback credit by id.",
|
|
25
25
|
input: rampCashbackGetInputSchema,
|
package/dist/client.d.mts
CHANGED
package/dist/departments.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { z } from "zod";
|
|
|
6
6
|
|
|
7
7
|
//#region src/departments.ts
|
|
8
8
|
const listDepartments = rampOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "ramp.list-departments",
|
|
10
10
|
name: "List Departments",
|
|
11
11
|
description: "List all departments configured for the connected Ramp business.",
|
|
12
12
|
input: rampDepartmentListInputSchema,
|
|
@@ -20,7 +20,7 @@ const listDepartments = rampOperation({
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const getDepartment = rampOperation({
|
|
23
|
-
id: "
|
|
23
|
+
id: "ramp.get-department",
|
|
24
24
|
name: "Get Department",
|
|
25
25
|
description: "Fetch a Ramp department by id.",
|
|
26
26
|
input: rampDepartmentGetInputSchema,
|
|
@@ -31,7 +31,7 @@ const getDepartment = rampOperation({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const createDepartment = rampOperation({
|
|
34
|
-
id: "
|
|
34
|
+
id: "ramp.create-department",
|
|
35
35
|
name: "Create Department",
|
|
36
36
|
description: "Create a new department in the Ramp org hierarchy.",
|
|
37
37
|
input: rampDepartmentCreateInputSchema,
|
|
@@ -46,7 +46,7 @@ const createDepartment = rampOperation({
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
const updateDepartment = rampOperation({
|
|
49
|
-
id: "
|
|
49
|
+
id: "ramp.update-department",
|
|
50
50
|
name: "Update Department",
|
|
51
51
|
description: "Rename an existing Ramp department.",
|
|
52
52
|
input: rampDepartmentUpdateInputSchema,
|
|
@@ -63,7 +63,7 @@ const updateDepartment = rampOperation({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
const deleteDepartment = rampOperation({
|
|
66
|
-
id: "
|
|
66
|
+
id: "ramp.delete-department",
|
|
67
67
|
name: "Delete Department",
|
|
68
68
|
description: "Delete a Ramp department by id.",
|
|
69
69
|
input: rampDepartmentDeleteInputSchema,
|
package/dist/entities.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
|
5
5
|
|
|
6
6
|
//#region src/entities.ts
|
|
7
7
|
const listEntities = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-entities",
|
|
9
9
|
name: "List Entities",
|
|
10
10
|
description: "List legal entities configured under the connected Ramp business.",
|
|
11
11
|
input: rampEntityListInputSchema,
|
|
@@ -19,7 +19,7 @@ const listEntities = rampOperation({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const getEntity = rampOperation({
|
|
22
|
-
id: "
|
|
22
|
+
id: "ramp.get-entity",
|
|
23
23
|
name: "Get Entity",
|
|
24
24
|
description: "Fetch a Ramp legal entity by id.",
|
|
25
25
|
input: rampEntityGetInputSchema,
|
|
@@ -27,8 +27,8 @@ type RampErrorPayload = z.infer<typeof rampErrorPayloadSchema>;
|
|
|
27
27
|
*/
|
|
28
28
|
declare const rampErrorKindSchema: z.ZodEnum<{
|
|
29
29
|
unknown: "unknown";
|
|
30
|
-
network: "network";
|
|
31
30
|
timeout: "timeout";
|
|
31
|
+
network: "network";
|
|
32
32
|
auth_revoked: "auth_revoked";
|
|
33
33
|
missing_scope: "missing_scope";
|
|
34
34
|
rate_limited: "rate_limited";
|