@keystrokehq/ramp 0.0.1 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/_official/index.d.mts +45 -2
- package/dist/_official/index.mjs +1 -1
- package/dist/accounting-fields.d.mts +7 -7
- package/dist/accounting-fields.mjs +1 -1
- package/dist/accounting-gl-accounts.d.mts +3 -3
- package/dist/accounting-gl-accounts.mjs +1 -1
- package/dist/accounting-subsidiaries.d.mts +3 -3
- package/dist/accounting-subsidiaries.mjs +1 -1
- package/dist/accounting-sync.d.mts +3 -3
- package/dist/accounting-sync.mjs +1 -1
- package/dist/accounting-tracking-categories.d.mts +2 -2
- package/dist/accounting-tracking-categories.mjs +1 -1
- package/dist/accounting-vendors.d.mts +3 -3
- package/dist/accounting-vendors.mjs +1 -1
- package/dist/applications.d.mts +5 -5
- package/dist/applications.mjs +1 -1
- package/dist/bills.d.mts +15 -15
- package/dist/bills.mjs +1 -1
- package/dist/business.d.mts +1 -1
- package/dist/business.mjs +1 -1
- package/dist/card-programs.d.mts +3 -3
- package/dist/card-programs.mjs +1 -1
- package/dist/cards.d.mts +9 -9
- package/dist/cards.mjs +1 -1
- package/dist/cashbacks.d.mts +2 -2
- package/dist/cashbacks.mjs +1 -1
- package/dist/client.d.mts +2 -2
- package/dist/client.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/departments.d.mts +5 -5
- package/dist/departments.mjs +1 -1
- package/dist/entities.d.mts +2 -2
- package/dist/entities.mjs +1 -1
- package/dist/events.d.mts +1 -1
- package/dist/{factory-Da6YVHdL.mjs → factory-sHitXBO_.mjs} +1 -1
- package/dist/{integration-Dd6tOtSy.d.mts → integration-D6jpX1pZ.d.mts} +1 -1
- package/dist/{integration-BGliAxAS.mjs → integration-DG56PIa4.mjs} +2 -2
- package/dist/limits.d.mts +11 -11
- package/dist/limits.mjs +1 -1
- package/dist/locations.d.mts +5 -5
- package/dist/locations.mjs +1 -1
- package/dist/memos.d.mts +2 -2
- package/dist/memos.mjs +1 -1
- package/dist/purchase-orders.d.mts +5 -5
- package/dist/purchase-orders.mjs +1 -1
- package/dist/receipt-integrations.d.mts +2 -2
- package/dist/receipt-integrations.mjs +1 -1
- package/dist/receipts.d.mts +3 -3
- package/dist/receipts.mjs +1 -1
- package/dist/reimbursements.d.mts +5 -5
- package/dist/reimbursements.mjs +1 -1
- package/dist/schemas/index.d.mts +8 -8
- package/dist/spend-programs.d.mts +2 -2
- package/dist/spend-programs.mjs +1 -1
- package/dist/spend-requests.d.mts +3 -3
- package/dist/spend-requests.mjs +1 -1
- package/dist/statements.d.mts +2 -2
- package/dist/statements.mjs +1 -1
- package/dist/transactions.d.mts +13 -13
- package/dist/transactions.mjs +1 -1
- package/dist/transfers.d.mts +5 -5
- package/dist/transfers.mjs +1 -1
- package/dist/triggers/index.d.mts +5 -63
- package/dist/triggers/index.mjs +14 -93
- package/dist/unified-requests.d.mts +2 -2
- package/dist/unified-requests.mjs +1 -1
- package/dist/users.d.mts +6 -6
- package/dist/users.mjs +1 -1
- package/dist/vendor-bank-accounts.d.mts +5 -5
- package/dist/vendor-bank-accounts.mjs +1 -1
- package/dist/{vendors-B7DQrlAn.d.mts → vendors-gH-w9b_R.d.mts} +28 -28
- package/dist/vendors.d.mts +5 -5
- package/dist/vendors.mjs +1 -1
- package/dist/webhooks.d.mts +5 -5
- package/dist/webhooks.mjs +1 -1
- package/package.json +21 -19
- package/dist/provider-app-JO525h-N.d.mts +0 -45
- /package/dist/{errors-Sm92tugz.d.mts → errors-Dm2DruuS.d.mts} +0 -0
- /package/dist/{webhook-sde3Ui2N.d.mts → webhook-Bp38YQE9.d.mts} +0 -0
package/dist/triggers/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as ramp } from "../integration-DG56PIa4.mjs";
|
|
2
2
|
import { createRampClient } from "../client.mjs";
|
|
3
3
|
import { l as rampBillSchema } from "../bills-B8W9et3K.mjs";
|
|
4
4
|
import { h as rampSpendRequestSchema } from "../business-CztnWUvt.mjs";
|
|
@@ -8,11 +8,8 @@ import { i as rampTransactionSchema } from "../transactions-Djd0oIGK.mjs";
|
|
|
8
8
|
import { c as rampTransferSchema } from "../transfers-WBQZVdGP.mjs";
|
|
9
9
|
import { c as rampUserSchema } from "../users-ufcXrfNK.mjs";
|
|
10
10
|
import { p as rampVendorSchema } from "../vendors-Bx1cgXwC.mjs";
|
|
11
|
-
import { a as rampWebhookEventEnvelopeSchema } from "../webhook-CsbvcgrC.mjs";
|
|
12
|
-
import { toRampWebhookEvent } from "../events.mjs";
|
|
13
|
-
import { verifyRampWebhookRequest } from "../verification.mjs";
|
|
14
11
|
import { z } from "zod";
|
|
15
|
-
import { createPollingTriggerBindingFactory
|
|
12
|
+
import { createPollingTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
|
16
13
|
|
|
17
14
|
//#region src/triggers/polling-bindings.ts
|
|
18
15
|
/**
|
|
@@ -26,14 +23,14 @@ function responseShape(item) {
|
|
|
26
23
|
}
|
|
27
24
|
function pollListEndpoint(path, itemSchema, queryBuilder) {
|
|
28
25
|
return async (ctx) => {
|
|
29
|
-
const client = createRampClient(ctx.credentials
|
|
26
|
+
const client = createRampClient(ctx.credentials["keystroke:ramp"]);
|
|
30
27
|
const query = queryBuilder ? queryBuilder(ctx.lastPolledAt) : {};
|
|
31
28
|
const filtered = Object.fromEntries(Object.entries(query).filter(([, v]) => v !== void 0));
|
|
32
29
|
return { data: ((await client.request(path, { query: filtered }))?.data ?? []).map((item) => itemSchema.parse(item)) };
|
|
33
30
|
};
|
|
34
31
|
}
|
|
35
32
|
const pollTransactions = createPollingTriggerBindingFactory({
|
|
36
|
-
|
|
33
|
+
defaultId: "ramp.poll-transactions",
|
|
37
34
|
defaultDescription: "Polls /transactions every 5 minutes and emits new rows.",
|
|
38
35
|
schedule: "*/5 * * * *",
|
|
39
36
|
response: responseShape(rampTransactionSchema),
|
|
@@ -44,7 +41,7 @@ const pollTransactions = createPollingTriggerBindingFactory({
|
|
|
44
41
|
}))
|
|
45
42
|
});
|
|
46
43
|
const pollUsers = createPollingTriggerBindingFactory({
|
|
47
|
-
|
|
44
|
+
defaultId: "ramp.poll-users",
|
|
48
45
|
defaultDescription: "Polls /users every hour to surface new or updated users.",
|
|
49
46
|
schedule: "0 * * * *",
|
|
50
47
|
response: responseShape(rampUserSchema),
|
|
@@ -52,7 +49,7 @@ const pollUsers = createPollingTriggerBindingFactory({
|
|
|
52
49
|
poll: pollListEndpoint("/users", rampUserSchema, () => ({ page_size: 100 }))
|
|
53
50
|
});
|
|
54
51
|
const pollBills = createPollingTriggerBindingFactory({
|
|
55
|
-
|
|
52
|
+
defaultId: "ramp.poll-bills",
|
|
56
53
|
defaultDescription: "Polls /bills every 5 minutes for newly-created or updated bills.",
|
|
57
54
|
schedule: "*/5 * * * *",
|
|
58
55
|
response: responseShape(rampBillSchema),
|
|
@@ -60,7 +57,7 @@ const pollBills = createPollingTriggerBindingFactory({
|
|
|
60
57
|
poll: pollListEndpoint("/bills", rampBillSchema, () => ({ page_size: 100 }))
|
|
61
58
|
});
|
|
62
59
|
const pollVendors = createPollingTriggerBindingFactory({
|
|
63
|
-
|
|
60
|
+
defaultId: "ramp.poll-vendors",
|
|
64
61
|
defaultDescription: "Polls /vendors hourly to surface new vendors.",
|
|
65
62
|
schedule: "0 * * * *",
|
|
66
63
|
response: responseShape(rampVendorSchema),
|
|
@@ -68,7 +65,7 @@ const pollVendors = createPollingTriggerBindingFactory({
|
|
|
68
65
|
poll: pollListEndpoint("/vendors", rampVendorSchema, () => ({ page_size: 100 }))
|
|
69
66
|
});
|
|
70
67
|
const pollReimbursements = createPollingTriggerBindingFactory({
|
|
71
|
-
|
|
68
|
+
defaultId: "ramp.poll-reimbursements",
|
|
72
69
|
defaultDescription: "Polls /reimbursements every 5 minutes.",
|
|
73
70
|
schedule: "*/5 * * * *",
|
|
74
71
|
response: responseShape(rampReimbursementSchema),
|
|
@@ -79,7 +76,7 @@ const pollReimbursements = createPollingTriggerBindingFactory({
|
|
|
79
76
|
}))
|
|
80
77
|
});
|
|
81
78
|
const pollSpendRequests = createPollingTriggerBindingFactory({
|
|
82
|
-
|
|
79
|
+
defaultId: "ramp.poll-spend-requests",
|
|
83
80
|
defaultDescription: "Polls /spend-requests every 5 minutes.",
|
|
84
81
|
schedule: "*/5 * * * *",
|
|
85
82
|
response: responseShape(rampSpendRequestSchema),
|
|
@@ -87,7 +84,7 @@ const pollSpendRequests = createPollingTriggerBindingFactory({
|
|
|
87
84
|
poll: pollListEndpoint("/spend-requests", rampSpendRequestSchema, () => ({ page_size: 100 }))
|
|
88
85
|
});
|
|
89
86
|
const pollPurchaseOrders = createPollingTriggerBindingFactory({
|
|
90
|
-
|
|
87
|
+
defaultId: "ramp.poll-purchase-orders",
|
|
91
88
|
defaultDescription: "Polls /purchase-orders every 5 minutes.",
|
|
92
89
|
schedule: "*/5 * * * *",
|
|
93
90
|
response: responseShape(rampPurchaseOrderSchema),
|
|
@@ -95,7 +92,7 @@ const pollPurchaseOrders = createPollingTriggerBindingFactory({
|
|
|
95
92
|
poll: pollListEndpoint("/purchase-orders", rampPurchaseOrderSchema, () => ({ page_size: 100 }))
|
|
96
93
|
});
|
|
97
94
|
const pollApplications = createPollingTriggerBindingFactory({
|
|
98
|
-
|
|
95
|
+
defaultId: "ramp.poll-applications",
|
|
99
96
|
defaultDescription: "Polls /applications every 10 minutes for workflow requests.",
|
|
100
97
|
schedule: "*/10 * * * *",
|
|
101
98
|
response: responseShape(rampApplicationSchema),
|
|
@@ -103,7 +100,7 @@ const pollApplications = createPollingTriggerBindingFactory({
|
|
|
103
100
|
poll: pollListEndpoint("/applications", rampApplicationSchema, () => ({ page_size: 100 }))
|
|
104
101
|
});
|
|
105
102
|
const pollUnifiedRequests = createPollingTriggerBindingFactory({
|
|
106
|
-
|
|
103
|
+
defaultId: "ramp.poll-unified-requests",
|
|
107
104
|
defaultDescription: "Polls /unified-requests every 10 minutes.",
|
|
108
105
|
schedule: "*/10 * * * *",
|
|
109
106
|
response: responseShape(rampUnifiedRequestSchema),
|
|
@@ -111,7 +108,7 @@ const pollUnifiedRequests = createPollingTriggerBindingFactory({
|
|
|
111
108
|
poll: pollListEndpoint("/unified-requests", rampUnifiedRequestSchema, () => ({ page_size: 100 }))
|
|
112
109
|
});
|
|
113
110
|
const pollTransfers = createPollingTriggerBindingFactory({
|
|
114
|
-
|
|
111
|
+
defaultId: "ramp.poll-transfers",
|
|
115
112
|
defaultDescription: "Polls /transfers every 15 minutes.",
|
|
116
113
|
schedule: "*/15 * * * *",
|
|
117
114
|
response: responseShape(rampTransferSchema),
|
|
@@ -120,80 +117,4 @@ const pollTransfers = createPollingTriggerBindingFactory({
|
|
|
120
117
|
});
|
|
121
118
|
|
|
122
119
|
//#endregion
|
|
123
|
-
|
|
124
|
-
function createRampWebhookBinding(defaultName, defaultDescription, eventTypeMatches) {
|
|
125
|
-
return createWebhookTriggerBindingFactory({
|
|
126
|
-
defaultName,
|
|
127
|
-
defaultDescription,
|
|
128
|
-
path: "/ramp",
|
|
129
|
-
method: "POST",
|
|
130
|
-
payload: rampWebhookEventEnvelopeSchema,
|
|
131
|
-
credentialSets: [ramp, rampAppCredentialSet],
|
|
132
|
-
verify: (request, ctx) => {
|
|
133
|
-
const { webhookSecret } = ctx.credentials["ramp-app"];
|
|
134
|
-
if (!webhookSecret) throw new Error("Ramp webhook secret is not configured. Set KEYSTROKE_PLATFORM_RAMP_WEBHOOK_SECRET after registering a webhook subscription.");
|
|
135
|
-
if (!verifyRampWebhookRequest(request, webhookSecret)) throw new Error("Invalid Ramp webhook signature.");
|
|
136
|
-
},
|
|
137
|
-
definitionFilter: (payload) => eventTypeMatches(payload.type),
|
|
138
|
-
mapPayload: (payload) => toRampWebhookEvent(payload),
|
|
139
|
-
idempotencyKey: (_payload, mappedPayload) => mappedPayload?.id,
|
|
140
|
-
response: { successStatus: 200 }
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
//#endregion
|
|
145
|
-
//#region src/triggers/webhook-bindings.ts
|
|
146
|
-
function exact(eventType) {
|
|
147
|
-
const bind = createRampWebhookBinding(`Ramp ${eventType}`, `Ramp ${eventType} event`, (type) => type === eventType);
|
|
148
|
-
return (options) => bind(options);
|
|
149
|
-
}
|
|
150
|
-
function prefix(name, description, prefixStr) {
|
|
151
|
-
const bind = createRampWebhookBinding(name, description, (type) => type.startsWith(prefixStr));
|
|
152
|
-
return (options) => bind(options);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Ramp webhook namespace.
|
|
156
|
-
*
|
|
157
|
-
* Contains only currently-documented webhook events (15 specific + 6 coarse
|
|
158
|
-
* `any*` helpers) as of 2026-04-17. See IMPLEMENTATION_NOTES.md § 7 Q2 for
|
|
159
|
-
* the rationale behind this catalog (PLAN.md mentioned many additional
|
|
160
|
-
* events that are not currently published by Ramp).
|
|
161
|
-
*/
|
|
162
|
-
const webhooks = Object.freeze({
|
|
163
|
-
transactions: Object.freeze({
|
|
164
|
-
authorized: exact("transactions.authorized"),
|
|
165
|
-
cleared: exact("transactions.cleared"),
|
|
166
|
-
declined: exact("transactions.declined"),
|
|
167
|
-
updated: exact("transactions.updated"),
|
|
168
|
-
any: prefix("Ramp Any Transaction Event", "Any transaction.* webhook (authorized/cleared/declined/updated)", "transactions.")
|
|
169
|
-
}),
|
|
170
|
-
bills: Object.freeze({
|
|
171
|
-
approved: exact("bills.approved"),
|
|
172
|
-
paid: exact("bills.paid"),
|
|
173
|
-
created: exact("bills.created"),
|
|
174
|
-
canceled: exact("bills.canceled"),
|
|
175
|
-
any: prefix("Ramp Any Bill Event", "Any bills.* webhook (approved/paid/created/canceled)", "bills.")
|
|
176
|
-
}),
|
|
177
|
-
purchaseOrders: Object.freeze({
|
|
178
|
-
created: exact("purchase_orders.created"),
|
|
179
|
-
approved: exact("purchase_orders.approved"),
|
|
180
|
-
denied: exact("purchase_orders.denied"),
|
|
181
|
-
any: prefix("Ramp Any Purchase Order Event", "Any purchase_orders.* webhook", "purchase_orders.")
|
|
182
|
-
}),
|
|
183
|
-
spendRequests: Object.freeze({
|
|
184
|
-
commentCreated: exact("spend_requests.comment_created"),
|
|
185
|
-
any: prefix("Ramp Any Spend Request Event", "Any spend_requests.* webhook", "spend_requests.")
|
|
186
|
-
}),
|
|
187
|
-
applications: Object.freeze({
|
|
188
|
-
approved: exact("applications.approved"),
|
|
189
|
-
denied: exact("applications.denied"),
|
|
190
|
-
any: prefix("Ramp Any Application Event", "Any applications.* webhook", "applications.")
|
|
191
|
-
}),
|
|
192
|
-
unifiedRequests: Object.freeze({
|
|
193
|
-
updated: exact("unified_requests.updated"),
|
|
194
|
-
any: prefix("Ramp Any Unified Request Event", "Any unified_requests.* webhook", "unified_requests.")
|
|
195
|
-
})
|
|
196
|
-
});
|
|
197
|
-
|
|
198
|
-
//#endregion
|
|
199
|
-
export { createRampWebhookBinding, pollApplications, pollBills, pollPurchaseOrders, pollReimbursements, pollSpendRequests, pollTransactions, pollTransfers, pollUnifiedRequests, pollUsers, pollVendors, webhooks };
|
|
120
|
+
export { pollApplications, pollBills, pollPurchaseOrders, pollReimbursements, pollSpendRequests, pollTransactions, pollTransfers, pollUnifiedRequests, pollUsers, pollVendors };
|
|
@@ -36,7 +36,7 @@ declare const listUnifiedRequests: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
36
36
|
page: zod.ZodOptional<zod.ZodObject<{
|
|
37
37
|
next: zod.ZodOptional<zod.ZodString>;
|
|
38
38
|
}, zod_v4_core0.$strip>>;
|
|
39
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
39
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
40
40
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
42
42
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -58,7 +58,7 @@ declare const getUnifiedRequest: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
58
58
|
updated_at: zod.ZodOptional<zod.ZodString>;
|
|
59
59
|
resource_id: zod.ZodOptional<zod.ZodString>;
|
|
60
60
|
resource_type: zod.ZodOptional<zod.ZodString>;
|
|
61
|
-
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
61
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
62
62
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
63
63
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
64
64
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { d as rampUnifiedRequestGetInputSchema, f as rampUnifiedRequestListInputSchema, m as rampUnifiedRequestSchema, p as rampUnifiedRequestListSchema } from "./new-resources-BBJsJEjT.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/unified-requests.ts
|
package/dist/users.d.mts
CHANGED
|
@@ -54,7 +54,7 @@ declare const listUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
54
54
|
page: z.ZodOptional<z.ZodObject<{
|
|
55
55
|
next: z.ZodOptional<z.ZodString>;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
57
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
58
58
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
59
59
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
60
60
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -90,7 +90,7 @@ declare const getUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
90
90
|
}>>;
|
|
91
91
|
is_manager: z.ZodOptional<z.ZodBoolean>;
|
|
92
92
|
phone: z.ZodOptional<z.ZodString>;
|
|
93
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
93
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
94
94
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
95
95
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
96
96
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -119,7 +119,7 @@ declare const inviteUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
119
119
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
120
120
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
121
121
|
created_at: z.ZodOptional<z.ZodString>;
|
|
122
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
122
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
123
123
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
124
124
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
125
125
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -169,7 +169,7 @@ declare const updateUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
169
169
|
}>>;
|
|
170
170
|
is_manager: z.ZodOptional<z.ZodBoolean>;
|
|
171
171
|
phone: z.ZodOptional<z.ZodString>;
|
|
172
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
172
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
173
173
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
174
174
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
175
175
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -182,7 +182,7 @@ declare const deactivateUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
182
182
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
183
183
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
184
184
|
created_at: z.ZodOptional<z.ZodString>;
|
|
185
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
185
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
186
186
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
187
187
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
188
188
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -195,7 +195,7 @@ declare const getDeferredTask: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
195
195
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
196
196
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
197
197
|
created_at: z.ZodOptional<z.ZodString>;
|
|
198
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
198
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
199
199
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
200
200
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
201
201
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
package/dist/users.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { a as rampUserListInputSchema, c as rampUserSchema, i as rampUserInviteInputSchema, n as rampUserDeactivateInputSchema, o as rampUserListSchema, r as rampUserGetInputSchema, t as rampDeferredTaskSchema, u as rampUserUpdateInputSchema } from "./users-ufcXrfNK.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ declare const listVendorBankAccounts: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
24
24
|
page: z.ZodOptional<z.ZodObject<{
|
|
25
25
|
next: z.ZodOptional<z.ZodString>;
|
|
26
26
|
}, z.core.$strip>>;
|
|
27
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
27
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
28
28
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
29
29
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
30
30
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -43,7 +43,7 @@ declare const getVendorBankAccount: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
43
43
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
44
44
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
created_at: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
46
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
47
47
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
48
48
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
49
49
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -71,7 +71,7 @@ declare const createVendorBankAccount: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
71
71
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
72
72
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
73
73
|
created_at: z.ZodOptional<z.ZodString>;
|
|
74
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
74
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
75
75
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
76
76
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
77
77
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -92,7 +92,7 @@ declare const updateVendorBankAccount: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
92
92
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
93
93
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
94
94
|
created_at: z.ZodOptional<z.ZodString>;
|
|
95
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
95
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
96
96
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
97
97
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
98
98
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -101,7 +101,7 @@ declare const deleteVendorBankAccount: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
101
101
|
vendorBankAccountId: z.ZodString;
|
|
102
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
103
103
|
success: z.ZodBoolean;
|
|
104
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
104
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
105
105
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
106
106
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
107
107
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { a as rampVendorBankAccountListSchema, i as rampVendorBankAccountListInputSchema, n as rampVendorBankAccountDeleteInputSchema, o as rampVendorBankAccountSchema, r as rampVendorBankAccountGetInputSchema, s as rampVendorBankAccountUpdateInputSchema, t as rampVendorBankAccountCreateInputSchema } from "./vendors-Bx1cgXwC.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -2,9 +2,9 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/bills.d.ts
|
|
4
4
|
declare const rampBillStatusSchema: z.ZodEnum<{
|
|
5
|
+
PENDING: "PENDING";
|
|
5
6
|
OPEN: "OPEN";
|
|
6
7
|
DRAFT: "DRAFT";
|
|
7
|
-
PENDING: "PENDING";
|
|
8
8
|
APPROVED: "APPROVED";
|
|
9
9
|
REJECTED: "REJECTED";
|
|
10
10
|
PAID: "PAID";
|
|
@@ -34,9 +34,9 @@ declare const rampBillSchema: z.ZodObject<{
|
|
|
34
34
|
scheduled_payment_date: z.ZodOptional<z.ZodString>;
|
|
35
35
|
memo: z.ZodOptional<z.ZodString>;
|
|
36
36
|
status: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
PENDING: "PENDING";
|
|
37
38
|
OPEN: "OPEN";
|
|
38
39
|
DRAFT: "DRAFT";
|
|
39
|
-
PENDING: "PENDING";
|
|
40
40
|
APPROVED: "APPROVED";
|
|
41
41
|
REJECTED: "REJECTED";
|
|
42
42
|
PAID: "PAID";
|
|
@@ -70,9 +70,9 @@ type RampBill = z.infer<typeof rampBillSchema>;
|
|
|
70
70
|
declare const rampBillListInputSchema: z.ZodObject<{
|
|
71
71
|
vendor_id: z.ZodOptional<z.ZodString>;
|
|
72
72
|
status: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
PENDING: "PENDING";
|
|
73
74
|
OPEN: "OPEN";
|
|
74
75
|
DRAFT: "DRAFT";
|
|
75
|
-
PENDING: "PENDING";
|
|
76
76
|
APPROVED: "APPROVED";
|
|
77
77
|
REJECTED: "REJECTED";
|
|
78
78
|
PAID: "PAID";
|
|
@@ -96,9 +96,9 @@ declare const rampBillListSchema: z.ZodObject<{
|
|
|
96
96
|
scheduled_payment_date: z.ZodOptional<z.ZodString>;
|
|
97
97
|
memo: z.ZodOptional<z.ZodString>;
|
|
98
98
|
status: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
PENDING: "PENDING";
|
|
99
100
|
OPEN: "OPEN";
|
|
100
101
|
DRAFT: "DRAFT";
|
|
101
|
-
PENDING: "PENDING";
|
|
102
102
|
APPROVED: "APPROVED";
|
|
103
103
|
REJECTED: "REJECTED";
|
|
104
104
|
PAID: "PAID";
|
|
@@ -348,8 +348,8 @@ type RampSpendRequestComment = z.infer<typeof rampSpendRequestCommentSchema>;
|
|
|
348
348
|
* unblocks the corresponding webhook triggers.
|
|
349
349
|
*/
|
|
350
350
|
declare const rampPurchaseOrderStatusSchema: z.ZodEnum<{
|
|
351
|
-
DRAFT: "DRAFT";
|
|
352
351
|
PENDING: "PENDING";
|
|
352
|
+
DRAFT: "DRAFT";
|
|
353
353
|
APPROVED: "APPROVED";
|
|
354
354
|
CANCELED: "CANCELED";
|
|
355
355
|
DENIED: "DENIED";
|
|
@@ -359,8 +359,8 @@ declare const rampPurchaseOrderSchema: z.ZodObject<{
|
|
|
359
359
|
id: z.ZodString;
|
|
360
360
|
number: z.ZodOptional<z.ZodString>;
|
|
361
361
|
status: z.ZodOptional<z.ZodEnum<{
|
|
362
|
-
DRAFT: "DRAFT";
|
|
363
362
|
PENDING: "PENDING";
|
|
363
|
+
DRAFT: "DRAFT";
|
|
364
364
|
APPROVED: "APPROVED";
|
|
365
365
|
CANCELED: "CANCELED";
|
|
366
366
|
DENIED: "DENIED";
|
|
@@ -378,8 +378,8 @@ declare const rampPurchaseOrderSchema: z.ZodObject<{
|
|
|
378
378
|
type RampPurchaseOrder = z.infer<typeof rampPurchaseOrderSchema>;
|
|
379
379
|
declare const rampPurchaseOrderListInputSchema: z.ZodObject<{
|
|
380
380
|
status: z.ZodOptional<z.ZodEnum<{
|
|
381
|
-
DRAFT: "DRAFT";
|
|
382
381
|
PENDING: "PENDING";
|
|
382
|
+
DRAFT: "DRAFT";
|
|
383
383
|
APPROVED: "APPROVED";
|
|
384
384
|
CANCELED: "CANCELED";
|
|
385
385
|
DENIED: "DENIED";
|
|
@@ -394,8 +394,8 @@ declare const rampPurchaseOrderListSchema: z.ZodObject<{
|
|
|
394
394
|
id: z.ZodString;
|
|
395
395
|
number: z.ZodOptional<z.ZodString>;
|
|
396
396
|
status: z.ZodOptional<z.ZodEnum<{
|
|
397
|
-
DRAFT: "DRAFT";
|
|
398
397
|
PENDING: "PENDING";
|
|
398
|
+
DRAFT: "DRAFT";
|
|
399
399
|
APPROVED: "APPROVED";
|
|
400
400
|
CANCELED: "CANCELED";
|
|
401
401
|
DENIED: "DENIED";
|
|
@@ -418,8 +418,8 @@ declare const rampPurchaseOrderGetInputSchema: z.ZodObject<{
|
|
|
418
418
|
purchaseOrderId: z.ZodString;
|
|
419
419
|
}, z.core.$strip>;
|
|
420
420
|
declare const rampApplicationStatusSchema: z.ZodEnum<{
|
|
421
|
-
DRAFT: "DRAFT";
|
|
422
421
|
PENDING: "PENDING";
|
|
422
|
+
DRAFT: "DRAFT";
|
|
423
423
|
APPROVED: "APPROVED";
|
|
424
424
|
CANCELED: "CANCELED";
|
|
425
425
|
DENIED: "DENIED";
|
|
@@ -428,8 +428,8 @@ declare const rampApplicationSchema: z.ZodObject<{
|
|
|
428
428
|
id: z.ZodString;
|
|
429
429
|
applicant_user_id: z.ZodOptional<z.ZodString>;
|
|
430
430
|
status: z.ZodOptional<z.ZodEnum<{
|
|
431
|
-
DRAFT: "DRAFT";
|
|
432
431
|
PENDING: "PENDING";
|
|
432
|
+
DRAFT: "DRAFT";
|
|
433
433
|
APPROVED: "APPROVED";
|
|
434
434
|
CANCELED: "CANCELED";
|
|
435
435
|
DENIED: "DENIED";
|
|
@@ -440,8 +440,8 @@ declare const rampApplicationSchema: z.ZodObject<{
|
|
|
440
440
|
type RampApplication = z.infer<typeof rampApplicationSchema>;
|
|
441
441
|
declare const rampApplicationListInputSchema: z.ZodObject<{
|
|
442
442
|
status: z.ZodOptional<z.ZodEnum<{
|
|
443
|
-
DRAFT: "DRAFT";
|
|
444
443
|
PENDING: "PENDING";
|
|
444
|
+
DRAFT: "DRAFT";
|
|
445
445
|
APPROVED: "APPROVED";
|
|
446
446
|
CANCELED: "CANCELED";
|
|
447
447
|
DENIED: "DENIED";
|
|
@@ -454,8 +454,8 @@ declare const rampApplicationListSchema: z.ZodObject<{
|
|
|
454
454
|
id: z.ZodString;
|
|
455
455
|
applicant_user_id: z.ZodOptional<z.ZodString>;
|
|
456
456
|
status: z.ZodOptional<z.ZodEnum<{
|
|
457
|
-
DRAFT: "DRAFT";
|
|
458
457
|
PENDING: "PENDING";
|
|
458
|
+
DRAFT: "DRAFT";
|
|
459
459
|
APPROVED: "APPROVED";
|
|
460
460
|
CANCELED: "CANCELED";
|
|
461
461
|
DENIED: "DENIED";
|
|
@@ -534,8 +534,8 @@ declare const rampUnifiedRequestGetInputSchema: z.ZodObject<{
|
|
|
534
534
|
//#endregion
|
|
535
535
|
//#region src/schemas/reimbursements.d.ts
|
|
536
536
|
declare const rampReimbursementStateSchema: z.ZodEnum<{
|
|
537
|
-
DRAFT: "DRAFT";
|
|
538
537
|
PENDING: "PENDING";
|
|
538
|
+
DRAFT: "DRAFT";
|
|
539
539
|
APPROVED: "APPROVED";
|
|
540
540
|
REJECTED: "REJECTED";
|
|
541
541
|
PAID: "PAID";
|
|
@@ -553,8 +553,8 @@ declare const rampReimbursementSchema: z.ZodObject<{
|
|
|
553
553
|
transaction_date: z.ZodOptional<z.ZodString>;
|
|
554
554
|
memo: z.ZodOptional<z.ZodString>;
|
|
555
555
|
state: z.ZodOptional<z.ZodEnum<{
|
|
556
|
-
DRAFT: "DRAFT";
|
|
557
556
|
PENDING: "PENDING";
|
|
557
|
+
DRAFT: "DRAFT";
|
|
558
558
|
APPROVED: "APPROVED";
|
|
559
559
|
REJECTED: "REJECTED";
|
|
560
560
|
PAID: "PAID";
|
|
@@ -571,8 +571,8 @@ type RampReimbursement = z.infer<typeof rampReimbursementSchema>;
|
|
|
571
571
|
declare const rampReimbursementListInputSchema: z.ZodObject<{
|
|
572
572
|
user_id: z.ZodOptional<z.ZodString>;
|
|
573
573
|
state: z.ZodOptional<z.ZodEnum<{
|
|
574
|
-
DRAFT: "DRAFT";
|
|
575
574
|
PENDING: "PENDING";
|
|
575
|
+
DRAFT: "DRAFT";
|
|
576
576
|
APPROVED: "APPROVED";
|
|
577
577
|
REJECTED: "REJECTED";
|
|
578
578
|
PAID: "PAID";
|
|
@@ -596,8 +596,8 @@ declare const rampReimbursementListSchema: z.ZodObject<{
|
|
|
596
596
|
transaction_date: z.ZodOptional<z.ZodString>;
|
|
597
597
|
memo: z.ZodOptional<z.ZodString>;
|
|
598
598
|
state: z.ZodOptional<z.ZodEnum<{
|
|
599
|
-
DRAFT: "DRAFT";
|
|
600
599
|
PENDING: "PENDING";
|
|
600
|
+
DRAFT: "DRAFT";
|
|
601
601
|
APPROVED: "APPROVED";
|
|
602
602
|
REJECTED: "REJECTED";
|
|
603
603
|
PAID: "PAID";
|
|
@@ -620,13 +620,13 @@ declare const rampReimbursementGetInputSchema: z.ZodObject<{
|
|
|
620
620
|
//#endregion
|
|
621
621
|
//#region src/schemas/transactions.d.ts
|
|
622
622
|
declare const rampTransactionStateSchema: z.ZodEnum<{
|
|
623
|
-
PENDING: "PENDING";
|
|
624
|
-
PROCESSING: "PROCESSING";
|
|
625
623
|
CLEARED: "CLEARED";
|
|
626
624
|
COMPLETION: "COMPLETION";
|
|
627
625
|
DECLINED: "DECLINED";
|
|
628
626
|
ERROR: "ERROR";
|
|
627
|
+
PENDING: "PENDING";
|
|
629
628
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
629
|
+
PROCESSING: "PROCESSING";
|
|
630
630
|
}>;
|
|
631
631
|
declare const rampTransactionSchema: z.ZodObject<{
|
|
632
632
|
id: z.ZodString;
|
|
@@ -646,13 +646,13 @@ declare const rampTransactionSchema: z.ZodObject<{
|
|
|
646
646
|
user_transaction_time: z.ZodOptional<z.ZodString>;
|
|
647
647
|
settlement_date: z.ZodOptional<z.ZodString>;
|
|
648
648
|
state: z.ZodOptional<z.ZodEnum<{
|
|
649
|
-
PENDING: "PENDING";
|
|
650
|
-
PROCESSING: "PROCESSING";
|
|
651
649
|
CLEARED: "CLEARED";
|
|
652
650
|
COMPLETION: "COMPLETION";
|
|
653
651
|
DECLINED: "DECLINED";
|
|
654
652
|
ERROR: "ERROR";
|
|
653
|
+
PENDING: "PENDING";
|
|
655
654
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
655
|
+
PROCESSING: "PROCESSING";
|
|
656
656
|
}>>;
|
|
657
657
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
658
658
|
sk_category_name: z.ZodOptional<z.ZodString>;
|
|
@@ -671,13 +671,13 @@ declare const rampTransactionListInputSchema: z.ZodObject<{
|
|
|
671
671
|
user_id: z.ZodOptional<z.ZodString>;
|
|
672
672
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
673
673
|
state: z.ZodOptional<z.ZodEnum<{
|
|
674
|
-
PENDING: "PENDING";
|
|
675
|
-
PROCESSING: "PROCESSING";
|
|
676
674
|
CLEARED: "CLEARED";
|
|
677
675
|
COMPLETION: "COMPLETION";
|
|
678
676
|
DECLINED: "DECLINED";
|
|
679
677
|
ERROR: "ERROR";
|
|
678
|
+
PENDING: "PENDING";
|
|
680
679
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
680
|
+
PROCESSING: "PROCESSING";
|
|
681
681
|
}>>;
|
|
682
682
|
minAmount: z.ZodOptional<z.ZodNumber>;
|
|
683
683
|
maxAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -709,13 +709,13 @@ declare const rampTransactionListSchema: z.ZodObject<{
|
|
|
709
709
|
user_transaction_time: z.ZodOptional<z.ZodString>;
|
|
710
710
|
settlement_date: z.ZodOptional<z.ZodString>;
|
|
711
711
|
state: z.ZodOptional<z.ZodEnum<{
|
|
712
|
-
PENDING: "PENDING";
|
|
713
|
-
PROCESSING: "PROCESSING";
|
|
714
712
|
CLEARED: "CLEARED";
|
|
715
713
|
COMPLETION: "COMPLETION";
|
|
716
714
|
DECLINED: "DECLINED";
|
|
717
715
|
ERROR: "ERROR";
|
|
716
|
+
PENDING: "PENDING";
|
|
718
717
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
718
|
+
PROCESSING: "PROCESSING";
|
|
719
719
|
}>>;
|
|
720
720
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
721
721
|
sk_category_name: z.ZodOptional<z.ZodString>;
|
|
@@ -735,9 +735,9 @@ declare const rampTransactionGetInputSchema: z.ZodObject<{
|
|
|
735
735
|
//#region src/schemas/transfers.d.ts
|
|
736
736
|
declare const rampTransferStatusSchema: z.ZodEnum<{
|
|
737
737
|
PENDING: "PENDING";
|
|
738
|
+
PROCESSING: "PROCESSING";
|
|
738
739
|
CANCELED: "CANCELED";
|
|
739
740
|
FAILED: "FAILED";
|
|
740
|
-
PROCESSING: "PROCESSING";
|
|
741
741
|
COMPLETED: "COMPLETED";
|
|
742
742
|
}>;
|
|
743
743
|
declare const rampTransferSchema: z.ZodObject<{
|
|
@@ -748,9 +748,9 @@ declare const rampTransferSchema: z.ZodObject<{
|
|
|
748
748
|
}, z.core.$strip>>;
|
|
749
749
|
status: z.ZodOptional<z.ZodEnum<{
|
|
750
750
|
PENDING: "PENDING";
|
|
751
|
+
PROCESSING: "PROCESSING";
|
|
751
752
|
CANCELED: "CANCELED";
|
|
752
753
|
FAILED: "FAILED";
|
|
753
|
-
PROCESSING: "PROCESSING";
|
|
754
754
|
COMPLETED: "COMPLETED";
|
|
755
755
|
}>>;
|
|
756
756
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -764,9 +764,9 @@ declare const rampTransferListInputSchema: z.ZodObject<{
|
|
|
764
764
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
765
765
|
status: z.ZodOptional<z.ZodEnum<{
|
|
766
766
|
PENDING: "PENDING";
|
|
767
|
+
PROCESSING: "PROCESSING";
|
|
767
768
|
CANCELED: "CANCELED";
|
|
768
769
|
FAILED: "FAILED";
|
|
769
|
-
PROCESSING: "PROCESSING";
|
|
770
770
|
COMPLETED: "COMPLETED";
|
|
771
771
|
}>>;
|
|
772
772
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -781,9 +781,9 @@ declare const rampTransferListSchema: z.ZodObject<{
|
|
|
781
781
|
}, z.core.$strip>>;
|
|
782
782
|
status: z.ZodOptional<z.ZodEnum<{
|
|
783
783
|
PENDING: "PENDING";
|
|
784
|
+
PROCESSING: "PROCESSING";
|
|
784
785
|
CANCELED: "CANCELED";
|
|
785
786
|
FAILED: "FAILED";
|
|
786
|
-
PROCESSING: "PROCESSING";
|
|
787
787
|
COMPLETED: "COMPLETED";
|
|
788
788
|
}>>;
|
|
789
789
|
created_at: z.ZodOptional<z.ZodString>;
|
package/dist/vendors.d.mts
CHANGED
|
@@ -25,7 +25,7 @@ declare const listVendors: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
25
25
|
page: z.ZodOptional<z.ZodObject<{
|
|
26
26
|
next: z.ZodOptional<z.ZodString>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
28
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
29
29
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
30
30
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
31
31
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -44,7 +44,7 @@ declare const getVendor: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
44
44
|
address: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
45
45
|
created_at: z.ZodOptional<z.ZodString>;
|
|
46
46
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
47
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
47
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
48
48
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
49
49
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
50
50
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -71,7 +71,7 @@ declare const createVendor: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
71
71
|
address: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
72
72
|
created_at: z.ZodOptional<z.ZodString>;
|
|
73
73
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
74
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
74
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
75
75
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
76
76
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
77
77
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -98,7 +98,7 @@ declare const updateVendor: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
98
98
|
address: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
99
|
created_at: z.ZodOptional<z.ZodString>;
|
|
100
100
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
101
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
101
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
102
102
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
103
103
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
104
104
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -107,7 +107,7 @@ declare const deleteVendor: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
107
107
|
vendorId: z.ZodString;
|
|
108
108
|
}, z.core.$strip>, z.ZodObject<{
|
|
109
109
|
success: z.ZodBoolean;
|
|
110
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
110
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
111
111
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
112
112
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
113
113
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
package/dist/vendors.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { c as rampVendorCreateInputSchema, d as rampVendorListInputSchema, f as rampVendorListSchema, l as rampVendorDeleteInputSchema, m as rampVendorUpdateInputSchema, p as rampVendorSchema, u as rampVendorGetInputSchema } from "./vendors-Bx1cgXwC.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|