@keystrokehq/ramp 0.0.1

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.
Files changed (107) hide show
  1. package/README.md +149 -0
  2. package/dist/_official/index.d.mts +3 -0
  3. package/dist/_official/index.mjs +3 -0
  4. package/dist/_runtime/index.d.mts +1 -0
  5. package/dist/_runtime/index.mjs +1 -0
  6. package/dist/accounting-fields.d.mts +116 -0
  7. package/dist/accounting-fields.mjs +108 -0
  8. package/dist/accounting-gl-accounts.d.mts +63 -0
  9. package/dist/accounting-gl-accounts.mjs +49 -0
  10. package/dist/accounting-i6txC-MI.mjs +116 -0
  11. package/dist/accounting-subsidiaries.d.mts +59 -0
  12. package/dist/accounting-subsidiaries.mjs +49 -0
  13. package/dist/accounting-sync.d.mts +57 -0
  14. package/dist/accounting-sync.mjs +51 -0
  15. package/dist/accounting-tracking-categories.d.mts +36 -0
  16. package/dist/accounting-tracking-categories.mjs +34 -0
  17. package/dist/accounting-vendors.d.mts +62 -0
  18. package/dist/accounting-vendors.mjs +49 -0
  19. package/dist/applications.d.mts +59 -0
  20. package/dist/applications.mjs +35 -0
  21. package/dist/bills-B8W9et3K.mjs +86 -0
  22. package/dist/bills.d.mts +381 -0
  23. package/dist/bills.mjs +134 -0
  24. package/dist/business-CztnWUvt.mjs +83 -0
  25. package/dist/business.d.mts +28 -0
  26. package/dist/business.mjs +20 -0
  27. package/dist/card-programs.d.mts +90 -0
  28. package/dist/card-programs.mjs +50 -0
  29. package/dist/cards-BfgPcR38.mjs +153 -0
  30. package/dist/cards.d.mts +287 -0
  31. package/dist/cards.mjs +166 -0
  32. package/dist/cashbacks.d.mts +46 -0
  33. package/dist/cashbacks.mjs +34 -0
  34. package/dist/client.d.mts +79 -0
  35. package/dist/client.mjs +248 -0
  36. package/dist/common-CUpmNYXw.mjs +64 -0
  37. package/dist/connection.d.mts +2 -0
  38. package/dist/connection.mjs +3 -0
  39. package/dist/departments.d.mts +63 -0
  40. package/dist/departments.mjs +79 -0
  41. package/dist/entities.d.mts +38 -0
  42. package/dist/entities.mjs +34 -0
  43. package/dist/errors-Sm92tugz.d.mts +42 -0
  44. package/dist/events.d.mts +30 -0
  45. package/dist/events.mjs +39 -0
  46. package/dist/factory-Da6YVHdL.mjs +15 -0
  47. package/dist/index.d.mts +1 -0
  48. package/dist/index.mjs +1 -0
  49. package/dist/integration-BGliAxAS.mjs +124 -0
  50. package/dist/integration-Dd6tOtSy.d.mts +47 -0
  51. package/dist/limits.d.mts +179 -0
  52. package/dist/limits.mjs +84 -0
  53. package/dist/locations.d.mts +69 -0
  54. package/dist/locations.mjs +80 -0
  55. package/dist/memos.d.mts +42 -0
  56. package/dist/memos.mjs +36 -0
  57. package/dist/messaging.d.mts +1 -0
  58. package/dist/messaging.mjs +1 -0
  59. package/dist/new-resources-BBJsJEjT.mjs +77 -0
  60. package/dist/organization-BSaEpvBn.mjs +103 -0
  61. package/dist/provider-app-JO525h-N.d.mts +45 -0
  62. package/dist/purchase-orders.d.mts +75 -0
  63. package/dist/purchase-orders.mjs +36 -0
  64. package/dist/receipt-integrations.d.mts +31 -0
  65. package/dist/receipt-integrations.mjs +38 -0
  66. package/dist/receipts-STq41c2M.mjs +53 -0
  67. package/dist/receipts.d.mts +62 -0
  68. package/dist/receipts.mjs +61 -0
  69. package/dist/reimbursements-OknrZUMF.mjs +37 -0
  70. package/dist/reimbursements.d.mts +89 -0
  71. package/dist/reimbursements.mjs +39 -0
  72. package/dist/schemas/index.d.mts +887 -0
  73. package/dist/schemas/index.mjs +56 -0
  74. package/dist/shared-CTTtP5gv.mjs +24 -0
  75. package/dist/spend-programs.d.mts +48 -0
  76. package/dist/spend-programs.mjs +34 -0
  77. package/dist/spend-requests.d.mts +95 -0
  78. package/dist/spend-requests.mjs +53 -0
  79. package/dist/statements.d.mts +41 -0
  80. package/dist/statements.mjs +37 -0
  81. package/dist/transactions-Djd0oIGK.mjs +53 -0
  82. package/dist/transactions.d.mts +181 -0
  83. package/dist/transactions.mjs +81 -0
  84. package/dist/transfers-WBQZVdGP.mjs +40 -0
  85. package/dist/transfers.d.mts +72 -0
  86. package/dist/transfers.mjs +36 -0
  87. package/dist/triggers/index.d.mts +81 -0
  88. package/dist/triggers/index.mjs +199 -0
  89. package/dist/unified-requests.d.mts +67 -0
  90. package/dist/unified-requests.mjs +37 -0
  91. package/dist/users-ufcXrfNK.mjs +74 -0
  92. package/dist/users.d.mts +204 -0
  93. package/dist/users.mjs +101 -0
  94. package/dist/vendor-bank-accounts.d.mts +110 -0
  95. package/dist/vendor-bank-accounts.mjs +83 -0
  96. package/dist/vendors-B7DQrlAn.d.mts +1116 -0
  97. package/dist/vendors-Bx1cgXwC.mjs +83 -0
  98. package/dist/vendors.d.mts +116 -0
  99. package/dist/vendors.mjs +84 -0
  100. package/dist/verification.d.mts +22 -0
  101. package/dist/verification.mjs +38 -0
  102. package/dist/webhook-CsbvcgrC.mjs +61 -0
  103. package/dist/webhook-sde3Ui2N.d.mts +68 -0
  104. package/dist/webhooks-mgmt-d1xgVpWx.mjs +35 -0
  105. package/dist/webhooks.d.mts +83 -0
  106. package/dist/webhooks.mjs +81 -0
  107. package/package.json +222 -0
@@ -0,0 +1,56 @@
1
+ import { a as rampListPaginationInputSchema, c as rampMoneySchema, d as rampResourceEnvelope, f as rampTimestampSchema, i as rampIdSchema, l as rampPageCursorSchema, n as rampCurrencyCodeSchema, o as rampListResponseSchema, r as rampDateRangeInputSchema, s as rampMetadataSchema, t as rampAccountingConnectionIdSchema, u as rampPageInfoSchema } from "../common-CUpmNYXw.mjs";
2
+ import { A as rampAccountingVendorUploadInputSchema, C as rampAccountingTrackingCategoryListInputSchema, D as rampAccountingVendorListInputSchema, E as rampAccountingVendorGetInputSchema, F as rampGlAccountUploadInputSchema, M as rampGlAccountListInputSchema, N as rampGlAccountListSchema, O as rampAccountingVendorListSchema, P as rampGlAccountSchema, S as rampAccountingTrackingCategoryGetInputSchema, T as rampAccountingTrackingCategorySchema, _ as rampAccountingSyncCreateInputSchema, a as rampAccountingFieldListSchema, b as rampAccountingSyncListSchema, c as rampAccountingFieldOptionSchema, d as rampAccountingFieldUpdateInputSchema, f as rampAccountingSubsidiaryGetInputSchema, g as rampAccountingSubsidiaryUploadInputSchema, h as rampAccountingSubsidiarySchema, i as rampAccountingFieldListInputSchema, j as rampGlAccountGetInputSchema, k as rampAccountingVendorSchema, l as rampAccountingFieldOptionUploadInputSchema, m as rampAccountingSubsidiaryListSchema, n as rampAccountingFieldDeleteInputSchema, o as rampAccountingFieldOptionListInputSchema, p as rampAccountingSubsidiaryListInputSchema, r as rampAccountingFieldGetInputSchema, s as rampAccountingFieldOptionListSchema, t as rampAccountingFieldCreateInputSchema, u as rampAccountingFieldSchema, v as rampAccountingSyncGetInputSchema, w as rampAccountingTrackingCategoryListSchema, x as rampAccountingSyncSchema, y as rampAccountingSyncListInputSchema } from "../accounting-i6txC-MI.mjs";
3
+ import { a as rampBillLineItemSchema, c as rampBillRejectInputSchema, d as rampBillUpdateInputSchema, i as rampBillGetInputSchema, l as rampBillSchema, n as rampBillCancelInputSchema, o as rampBillListInputSchema, r as rampBillCreateInputSchema, s as rampBillListSchema, t as rampBillApproveInputSchema, u as rampBillStatusSchema } from "../bills-B8W9et3K.mjs";
4
+ import { a as rampEntitySchema, c as rampSpendProgramListSchema, d as rampSpendRequestCommentSchema, f as rampSpendRequestGetInputSchema, g as rampSpendRequestStatusSchema, h as rampSpendRequestSchema, i as rampEntityListSchema, l as rampSpendProgramSchema, m as rampSpendRequestListSchema, n as rampEntityGetInputSchema, o as rampSpendProgramGetInputSchema, p as rampSpendRequestListInputSchema, r as rampEntityListInputSchema, s as rampSpendProgramListInputSchema, t as rampBusinessSchema, u as rampSpendRequestCommentCreateInputSchema } from "../business-CztnWUvt.mjs";
5
+ import { _ as rampTerminateCardInputSchema, a as rampCardListSchema, c as rampCardProgramListInputSchema, d as rampCardSchema, f as rampCardStateSchema, g as rampSuspendCardInputSchema, h as rampCreateVirtualCardInputSchema, i as rampCardListInputSchema, l as rampCardProgramListSchema, m as rampCreatePhysicalCardInputSchema, n as rampCardFundTransferSchema, o as rampCardProgramCreateInputSchema, p as rampCardUpdateInputSchema, r as rampCardGetInputSchema, s as rampCardProgramGetInputSchema, t as rampCardFulfillmentSchema, u as rampCardProgramSchema, v as rampUnsuspendCardInputSchema } from "../cards-BfgPcR38.mjs";
6
+ import { a as rampApplicationStatusSchema, c as rampPurchaseOrderListSchema, d as rampUnifiedRequestGetInputSchema, f as rampUnifiedRequestListInputSchema, h as rampUnifiedRequestStatusSchema, i as rampApplicationSchema, l as rampPurchaseOrderSchema, m as rampUnifiedRequestSchema, n as rampApplicationListInputSchema, o as rampPurchaseOrderGetInputSchema, p as rampUnifiedRequestListSchema, r as rampApplicationListSchema, s as rampPurchaseOrderListInputSchema, t as rampApplicationGetInputSchema, u as rampPurchaseOrderStatusSchema } from "../new-resources-BBJsJEjT.mjs";
7
+ import { C as rampMemoGetInputSchema, E as rampMemoSchema, S as rampLocationUpdateInputSchema, T as rampMemoListSchema, _ as rampLocationDeleteInputSchema, a as rampDepartmentListSchema, b as rampLocationListSchema, c as rampLimitCreateInputSchema, d as rampLimitIntervalSchema, f as rampLimitListInputSchema, g as rampLocationCreateInputSchema, h as rampLimitUpdateInputSchema, i as rampDepartmentListInputSchema, l as rampLimitDeleteInputSchema, m as rampLimitSchema, n as rampDepartmentDeleteInputSchema, o as rampDepartmentSchema, p as rampLimitListSchema, r as rampDepartmentGetInputSchema, s as rampDepartmentUpdateInputSchema, t as rampDepartmentCreateInputSchema, u as rampLimitGetInputSchema, v as rampLocationGetInputSchema, w as rampMemoListInputSchema, x as rampLocationSchema, y as rampLocationListInputSchema } from "../organization-BSaEpvBn.mjs";
8
+ import { a as rampReceiptListInputSchema, c as rampReceiptUploadInputSchema, d as rampStatementListSchema, f as rampStatementSchema, i as rampReceiptIntegrationOptedInSchema, l as rampStatementGetInputSchema, n as rampReceiptIntegrationOptInInputSchema, o as rampReceiptListSchema, r as rampReceiptIntegrationOptOutInputSchema, s as rampReceiptSchema, t as rampReceiptGetInputSchema, u as rampStatementListInputSchema } from "../receipts-STq41c2M.mjs";
9
+ import { a as rampReimbursementStateSchema, i as rampReimbursementSchema, n as rampReimbursementListInputSchema, r as rampReimbursementListSchema, t as rampReimbursementGetInputSchema } from "../reimbursements-OknrZUMF.mjs";
10
+ import { a as rampTransactionStateSchema, i as rampTransactionSchema, n as rampTransactionListInputSchema, r as rampTransactionListSchema, t as rampTransactionGetInputSchema } from "../transactions-Djd0oIGK.mjs";
11
+ import { a as rampTransferGetInputSchema, c as rampTransferSchema, i as rampCashbackSchema, l as rampTransferStatusSchema, n as rampCashbackListInputSchema, o as rampTransferListInputSchema, r as rampCashbackListSchema, s as rampTransferListSchema, t as rampCashbackGetInputSchema } from "../transfers-WBQZVdGP.mjs";
12
+ import { a as rampUserListInputSchema, c as rampUserSchema, i as rampUserInviteInputSchema, l as rampUserStatusSchema, n as rampUserDeactivateInputSchema, o as rampUserListSchema, r as rampUserGetInputSchema, s as rampUserRoleSchema, t as rampDeferredTaskSchema, u as rampUserUpdateInputSchema } from "../users-ufcXrfNK.mjs";
13
+ import { a as rampVendorBankAccountListSchema, c as rampVendorCreateInputSchema, d as rampVendorListInputSchema, f as rampVendorListSchema, i as rampVendorBankAccountListInputSchema, l as rampVendorDeleteInputSchema, m as rampVendorUpdateInputSchema, n as rampVendorBankAccountDeleteInputSchema, o as rampVendorBankAccountSchema, p as rampVendorSchema, r as rampVendorBankAccountGetInputSchema, s as rampVendorBankAccountUpdateInputSchema, t as rampVendorBankAccountCreateInputSchema, u as rampVendorGetInputSchema } from "../vendors-Bx1cgXwC.mjs";
14
+ import { a as rampWebhookEventEnvelopeSchema, i as rampWebhookChallengeSchema, n as RAMP_WEBHOOK_SIGNATURE_HEADER, o as rampWebhookObjectSchema, r as rampDocumentedWebhookEventTypeSchema, t as RAMP_DOCUMENTED_WEBHOOK_EVENT_TYPES } from "../webhook-CsbvcgrC.mjs";
15
+ import { a as rampWebhookSubscriptionListSchema, i as rampWebhookSubscriptionListInputSchema, n as rampWebhookSubscriptionDeleteInputSchema, o as rampWebhookSubscriptionSchema, r as rampWebhookSubscriptionGetInputSchema, s as rampWebhookSubscriptionUpdateInputSchema, t as rampWebhookSubscriptionCreateInputSchema } from "../webhooks-mgmt-d1xgVpWx.mjs";
16
+ import { z } from "zod";
17
+
18
+ //#region src/schemas/errors.ts
19
+ /**
20
+ * Ramp returns a fairly consistent error body shape:
21
+ * { error_v2: { message, notes, additional_info, error_code } }
22
+ * or a flattened `{ error: string, message?: string }` for older endpoints.
23
+ *
24
+ * We normalize both into a single shape before throwing.
25
+ */
26
+ const rampErrorPayloadSchema = z.object({
27
+ status: z.number().int().optional(),
28
+ error_v2: z.object({
29
+ message: z.string().optional(),
30
+ notes: z.string().optional(),
31
+ additional_info: z.string().optional(),
32
+ error_code: z.string().optional(),
33
+ parameter: z.string().optional()
34
+ }).optional(),
35
+ error: z.string().optional(),
36
+ message: z.string().optional()
37
+ });
38
+ /**
39
+ * Discriminated union of known Ramp failure modes. Emitted by the client to
40
+ * aid downstream retry/approval logic.
41
+ */
42
+ const rampErrorKindSchema = z.enum([
43
+ "network",
44
+ "timeout",
45
+ "auth_revoked",
46
+ "missing_scope",
47
+ "rate_limited",
48
+ "validation",
49
+ "not_found",
50
+ "conflict",
51
+ "server_error",
52
+ "unknown"
53
+ ]);
54
+
55
+ //#endregion
56
+ export { RAMP_DOCUMENTED_WEBHOOK_EVENT_TYPES, RAMP_WEBHOOK_SIGNATURE_HEADER, rampAccountingConnectionIdSchema, rampAccountingFieldCreateInputSchema, rampAccountingFieldDeleteInputSchema, rampAccountingFieldGetInputSchema, rampAccountingFieldListInputSchema, rampAccountingFieldListSchema, rampAccountingFieldOptionListInputSchema, rampAccountingFieldOptionListSchema, rampAccountingFieldOptionSchema, rampAccountingFieldOptionUploadInputSchema, rampAccountingFieldSchema, rampAccountingFieldUpdateInputSchema, rampAccountingSubsidiaryGetInputSchema, rampAccountingSubsidiaryListInputSchema, rampAccountingSubsidiaryListSchema, rampAccountingSubsidiarySchema, rampAccountingSubsidiaryUploadInputSchema, rampAccountingSyncCreateInputSchema, rampAccountingSyncGetInputSchema, rampAccountingSyncListInputSchema, rampAccountingSyncListSchema, rampAccountingSyncSchema, rampAccountingTrackingCategoryGetInputSchema, rampAccountingTrackingCategoryListInputSchema, rampAccountingTrackingCategoryListSchema, rampAccountingTrackingCategorySchema, rampAccountingVendorGetInputSchema, rampAccountingVendorListInputSchema, rampAccountingVendorListSchema, rampAccountingVendorSchema, rampAccountingVendorUploadInputSchema, rampApplicationGetInputSchema, rampApplicationListInputSchema, rampApplicationListSchema, rampApplicationSchema, rampApplicationStatusSchema, rampBillApproveInputSchema, rampBillCancelInputSchema, rampBillCreateInputSchema, rampBillGetInputSchema, rampBillLineItemSchema, rampBillListInputSchema, rampBillListSchema, rampBillRejectInputSchema, rampBillSchema, rampBillStatusSchema, rampBillUpdateInputSchema, rampBusinessSchema, rampCardFulfillmentSchema, rampCardFundTransferSchema, rampCardGetInputSchema, rampCardListInputSchema, rampCardListSchema, rampCardProgramCreateInputSchema, rampCardProgramGetInputSchema, rampCardProgramListInputSchema, rampCardProgramListSchema, rampCardProgramSchema, rampCardSchema, rampCardStateSchema, rampCardUpdateInputSchema, rampCashbackGetInputSchema, rampCashbackListInputSchema, rampCashbackListSchema, rampCashbackSchema, rampCreatePhysicalCardInputSchema, rampCreateVirtualCardInputSchema, rampCurrencyCodeSchema, rampDateRangeInputSchema, rampDeferredTaskSchema, rampDepartmentCreateInputSchema, rampDepartmentDeleteInputSchema, rampDepartmentGetInputSchema, rampDepartmentListInputSchema, rampDepartmentListSchema, rampDepartmentSchema, rampDepartmentUpdateInputSchema, rampDocumentedWebhookEventTypeSchema, rampEntityGetInputSchema, rampEntityListInputSchema, rampEntityListSchema, rampEntitySchema, rampErrorKindSchema, rampErrorPayloadSchema, rampGlAccountGetInputSchema, rampGlAccountListInputSchema, rampGlAccountListSchema, rampGlAccountSchema, rampGlAccountUploadInputSchema, rampIdSchema, rampLimitCreateInputSchema, rampLimitDeleteInputSchema, rampLimitGetInputSchema, rampLimitIntervalSchema, rampLimitListInputSchema, rampLimitListSchema, rampLimitSchema, rampLimitUpdateInputSchema, rampListPaginationInputSchema, rampListResponseSchema, rampLocationCreateInputSchema, rampLocationDeleteInputSchema, rampLocationGetInputSchema, rampLocationListInputSchema, rampLocationListSchema, rampLocationSchema, rampLocationUpdateInputSchema, rampMemoGetInputSchema, rampMemoListInputSchema, rampMemoListSchema, rampMemoSchema, rampMetadataSchema, rampMoneySchema, rampPageCursorSchema, rampPageInfoSchema, rampPurchaseOrderGetInputSchema, rampPurchaseOrderListInputSchema, rampPurchaseOrderListSchema, rampPurchaseOrderSchema, rampPurchaseOrderStatusSchema, rampReceiptGetInputSchema, rampReceiptIntegrationOptInInputSchema, rampReceiptIntegrationOptOutInputSchema, rampReceiptIntegrationOptedInSchema, rampReceiptListInputSchema, rampReceiptListSchema, rampReceiptSchema, rampReceiptUploadInputSchema, rampReimbursementGetInputSchema, rampReimbursementListInputSchema, rampReimbursementListSchema, rampReimbursementSchema, rampReimbursementStateSchema, rampResourceEnvelope, rampSpendProgramGetInputSchema, rampSpendProgramListInputSchema, rampSpendProgramListSchema, rampSpendProgramSchema, rampSpendRequestCommentCreateInputSchema, rampSpendRequestCommentSchema, rampSpendRequestGetInputSchema, rampSpendRequestListInputSchema, rampSpendRequestListSchema, rampSpendRequestSchema, rampSpendRequestStatusSchema, rampStatementGetInputSchema, rampStatementListInputSchema, rampStatementListSchema, rampStatementSchema, rampSuspendCardInputSchema, rampTerminateCardInputSchema, rampTimestampSchema, rampTransactionGetInputSchema, rampTransactionListInputSchema, rampTransactionListSchema, rampTransactionSchema, rampTransactionStateSchema, rampTransferGetInputSchema, rampTransferListInputSchema, rampTransferListSchema, rampTransferSchema, rampTransferStatusSchema, rampUnifiedRequestGetInputSchema, rampUnifiedRequestListInputSchema, rampUnifiedRequestListSchema, rampUnifiedRequestSchema, rampUnifiedRequestStatusSchema, rampUnsuspendCardInputSchema, rampUserDeactivateInputSchema, rampUserGetInputSchema, rampUserInviteInputSchema, rampUserListInputSchema, rampUserListSchema, rampUserRoleSchema, rampUserSchema, rampUserStatusSchema, rampUserUpdateInputSchema, rampVendorBankAccountCreateInputSchema, rampVendorBankAccountDeleteInputSchema, rampVendorBankAccountGetInputSchema, rampVendorBankAccountListInputSchema, rampVendorBankAccountListSchema, rampVendorBankAccountSchema, rampVendorBankAccountUpdateInputSchema, rampVendorCreateInputSchema, rampVendorDeleteInputSchema, rampVendorGetInputSchema, rampVendorListInputSchema, rampVendorListSchema, rampVendorSchema, rampVendorUpdateInputSchema, rampWebhookChallengeSchema, rampWebhookEventEnvelopeSchema, rampWebhookObjectSchema, rampWebhookSubscriptionCreateInputSchema, rampWebhookSubscriptionDeleteInputSchema, rampWebhookSubscriptionGetInputSchema, rampWebhookSubscriptionListInputSchema, rampWebhookSubscriptionListSchema, rampWebhookSubscriptionSchema, rampWebhookSubscriptionUpdateInputSchema };
@@ -0,0 +1,24 @@
1
+ //#region src/shared.ts
2
+ /**
3
+ * Drop `undefined` values from an object without losing type narrowing on the
4
+ * input keys.
5
+ */
6
+ function omitUndefined(value) {
7
+ return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0));
8
+ }
9
+ /**
10
+ * Reverse mapper: accepts our public `{ amountCents, currency }` shape and
11
+ * produces the Ramp wire shape `{ amount, currency_code }`. We preserve
12
+ * `amountCents` when it is `0`; only `undefined` is dropped.
13
+ */
14
+ function unmapRampMoney(value) {
15
+ if (value === void 0) return void 0;
16
+ if (value.amountCents === void 0 || value.currency === void 0) return void 0;
17
+ return {
18
+ amount: value.amountCents,
19
+ currency_code: value.currency
20
+ };
21
+ }
22
+
23
+ //#endregion
24
+ export { unmapRampMoney as n, omitUndefined as t };
@@ -0,0 +1,48 @@
1
+ import * as zod from "zod";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
3
+ import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
+ import * as zod_v4_core0 from "zod/v4/core";
5
+
6
+ //#region src/spend-programs.d.ts
7
+ declare const listSpendPrograms: _keystrokehq_core0.Operation<zod.ZodObject<{
8
+ pageSize: zod.ZodOptional<zod.ZodNumber>;
9
+ cursor: zod.ZodOptional<zod.ZodString>;
10
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
11
+ data: zod.ZodArray<zod.ZodObject<{
12
+ id: zod.ZodString;
13
+ display_name: zod.ZodOptional<zod.ZodString>;
14
+ description: zod.ZodOptional<zod.ZodString>;
15
+ is_shareable: zod.ZodOptional<zod.ZodBoolean>;
16
+ spending_restrictions: zod.ZodOptional<zod.ZodObject<{
17
+ amount: zod.ZodOptional<zod.ZodNumber>;
18
+ currency: zod.ZodOptional<zod.ZodString>;
19
+ interval: zod.ZodOptional<zod.ZodString>;
20
+ }, zod_v4_core0.$loose>>;
21
+ }, zod_v4_core0.$loose>>;
22
+ page: zod.ZodOptional<zod.ZodObject<{
23
+ next: zod.ZodOptional<zod.ZodString>;
24
+ }, zod_v4_core0.$strip>>;
25
+ }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
26
+ RAMP_ACCESS_TOKEN: zod.ZodString;
27
+ }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
28
+ RAMP_ACCESS_TOKEN: zod.ZodString;
29
+ }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
30
+ declare const getSpendProgram: _keystrokehq_core0.Operation<zod.ZodObject<{
31
+ spendProgramId: zod.ZodString;
32
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
33
+ id: zod.ZodString;
34
+ display_name: zod.ZodOptional<zod.ZodString>;
35
+ description: zod.ZodOptional<zod.ZodString>;
36
+ is_shareable: zod.ZodOptional<zod.ZodBoolean>;
37
+ spending_restrictions: zod.ZodOptional<zod.ZodObject<{
38
+ amount: zod.ZodOptional<zod.ZodNumber>;
39
+ currency: zod.ZodOptional<zod.ZodString>;
40
+ interval: zod.ZodOptional<zod.ZodString>;
41
+ }, zod_v4_core0.$loose>>;
42
+ }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
43
+ RAMP_ACCESS_TOKEN: zod.ZodString;
44
+ }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
45
+ RAMP_ACCESS_TOKEN: zod.ZodString;
46
+ }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
47
+ //#endregion
48
+ export { getSpendProgram, listSpendPrograms };
@@ -0,0 +1,34 @@
1
+ import { createRampClient } from "./client.mjs";
2
+ import { c as rampSpendProgramListSchema, l as rampSpendProgramSchema, o as rampSpendProgramGetInputSchema, s as rampSpendProgramListInputSchema } from "./business-CztnWUvt.mjs";
3
+ import { t as rampOperation } from "./factory-Da6YVHdL.mjs";
4
+ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
5
+
6
+ //#region src/spend-programs.ts
7
+ const listSpendPrograms = rampOperation({
8
+ id: "list_spend_programs",
9
+ name: "List Spend Programs",
10
+ description: "List Ramp spend programs — the templates used to mint new limits.",
11
+ input: rampSpendProgramListInputSchema,
12
+ output: rampSpendProgramListSchema,
13
+ run: async (input, credentials) => {
14
+ const client = createRampClient(credentials);
15
+ return rampSpendProgramListSchema.parse(await client.request("/spend-programs", { query: omitUndefined({
16
+ page_size: input.pageSize,
17
+ start: input.cursor
18
+ }) }));
19
+ }
20
+ });
21
+ const getSpendProgram = rampOperation({
22
+ id: "get_spend_program",
23
+ name: "Get Spend Program",
24
+ description: "Fetch a Ramp spend program by id.",
25
+ input: rampSpendProgramGetInputSchema,
26
+ output: rampSpendProgramSchema,
27
+ run: async (input, credentials) => {
28
+ const client = createRampClient(credentials);
29
+ return rampSpendProgramSchema.parse(await client.request(`/spend-programs/${encodeURIComponent(input.spendProgramId)}`));
30
+ }
31
+ });
32
+
33
+ //#endregion
34
+ export { getSpendProgram, listSpendPrograms };
@@ -0,0 +1,95 @@
1
+ import * as zod from "zod";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
3
+ import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
+ import * as zod_v4_core0 from "zod/v4/core";
5
+
6
+ //#region src/spend-requests.d.ts
7
+ declare const listSpendRequests: _keystrokehq_core0.Operation<zod.ZodObject<{
8
+ status: zod.ZodOptional<zod.ZodEnum<{
9
+ PENDING: "PENDING";
10
+ APPROVED: "APPROVED";
11
+ CANCELED: "CANCELED";
12
+ DENIED: "DENIED";
13
+ FULFILLED: "FULFILLED";
14
+ }>>;
15
+ user_id: zod.ZodOptional<zod.ZodString>;
16
+ pageSize: zod.ZodOptional<zod.ZodNumber>;
17
+ cursor: zod.ZodOptional<zod.ZodString>;
18
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
19
+ data: zod.ZodArray<zod.ZodObject<{
20
+ id: zod.ZodString;
21
+ user_id: zod.ZodOptional<zod.ZodString>;
22
+ status: zod.ZodOptional<zod.ZodEnum<{
23
+ PENDING: "PENDING";
24
+ APPROVED: "APPROVED";
25
+ CANCELED: "CANCELED";
26
+ DENIED: "DENIED";
27
+ FULFILLED: "FULFILLED";
28
+ }>>;
29
+ justification: zod.ZodOptional<zod.ZodString>;
30
+ amount: zod.ZodOptional<zod.ZodObject<{
31
+ amountCents: zod.ZodNumber;
32
+ currency: zod.ZodString;
33
+ }, zod_v4_core0.$strip>>;
34
+ created_at: zod.ZodOptional<zod.ZodString>;
35
+ decision: zod.ZodOptional<zod.ZodObject<{
36
+ decided_by: zod.ZodOptional<zod.ZodString>;
37
+ decided_at: zod.ZodOptional<zod.ZodString>;
38
+ status: zod.ZodOptional<zod.ZodString>;
39
+ memo: zod.ZodOptional<zod.ZodString>;
40
+ }, zod_v4_core0.$loose>>;
41
+ }, zod_v4_core0.$loose>>;
42
+ page: zod.ZodOptional<zod.ZodObject<{
43
+ next: zod.ZodOptional<zod.ZodString>;
44
+ }, zod_v4_core0.$strip>>;
45
+ }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
46
+ RAMP_ACCESS_TOKEN: zod.ZodString;
47
+ }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
48
+ RAMP_ACCESS_TOKEN: zod.ZodString;
49
+ }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
50
+ declare const getSpendRequest: _keystrokehq_core0.Operation<zod.ZodObject<{
51
+ spendRequestId: zod.ZodString;
52
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
53
+ id: zod.ZodString;
54
+ user_id: zod.ZodOptional<zod.ZodString>;
55
+ status: zod.ZodOptional<zod.ZodEnum<{
56
+ PENDING: "PENDING";
57
+ APPROVED: "APPROVED";
58
+ CANCELED: "CANCELED";
59
+ DENIED: "DENIED";
60
+ FULFILLED: "FULFILLED";
61
+ }>>;
62
+ justification: zod.ZodOptional<zod.ZodString>;
63
+ amount: zod.ZodOptional<zod.ZodObject<{
64
+ amountCents: zod.ZodNumber;
65
+ currency: zod.ZodString;
66
+ }, zod_v4_core0.$strip>>;
67
+ created_at: zod.ZodOptional<zod.ZodString>;
68
+ decision: zod.ZodOptional<zod.ZodObject<{
69
+ decided_by: zod.ZodOptional<zod.ZodString>;
70
+ decided_at: zod.ZodOptional<zod.ZodString>;
71
+ status: zod.ZodOptional<zod.ZodString>;
72
+ memo: zod.ZodOptional<zod.ZodString>;
73
+ }, zod_v4_core0.$loose>>;
74
+ }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
75
+ RAMP_ACCESS_TOKEN: zod.ZodString;
76
+ }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
77
+ RAMP_ACCESS_TOKEN: zod.ZodString;
78
+ }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
79
+ declare const commentOnSpendRequest: _keystrokehq_core0.Operation<zod.ZodObject<{
80
+ spendRequestId: zod.ZodString;
81
+ body: zod.ZodString;
82
+ idempotency_key: zod.ZodOptional<zod.ZodString>;
83
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
84
+ id: zod.ZodString;
85
+ spend_request_id: zod.ZodOptional<zod.ZodString>;
86
+ user_id: zod.ZodOptional<zod.ZodString>;
87
+ body: zod.ZodOptional<zod.ZodString>;
88
+ created_at: zod.ZodOptional<zod.ZodString>;
89
+ }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
90
+ RAMP_ACCESS_TOKEN: zod.ZodString;
91
+ }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
92
+ RAMP_ACCESS_TOKEN: zod.ZodString;
93
+ }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
94
+ //#endregion
95
+ export { commentOnSpendRequest, getSpendRequest, listSpendRequests };
@@ -0,0 +1,53 @@
1
+ import { createRampClient } from "./client.mjs";
2
+ import { d as rampSpendRequestCommentSchema, f as rampSpendRequestGetInputSchema, h as rampSpendRequestSchema, m as rampSpendRequestListSchema, p as rampSpendRequestListInputSchema, u as rampSpendRequestCommentCreateInputSchema } from "./business-CztnWUvt.mjs";
3
+ import { t as rampOperation } from "./factory-Da6YVHdL.mjs";
4
+ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
5
+
6
+ //#region src/spend-requests.ts
7
+ const listSpendRequests = rampOperation({
8
+ id: "list_spend_requests",
9
+ name: "List Spend Requests",
10
+ description: "List Ramp spend requests awaiting or completing an approval workflow.",
11
+ input: rampSpendRequestListInputSchema,
12
+ output: rampSpendRequestListSchema,
13
+ run: async (input, credentials) => {
14
+ const client = createRampClient(credentials);
15
+ return rampSpendRequestListSchema.parse(await client.request("/spend-requests", { query: omitUndefined({
16
+ status: input.status,
17
+ user_id: input.user_id,
18
+ page_size: input.pageSize,
19
+ start: input.cursor
20
+ }) }));
21
+ }
22
+ });
23
+ const getSpendRequest = rampOperation({
24
+ id: "get_spend_request",
25
+ name: "Get Spend Request",
26
+ description: "Fetch a Ramp spend request by id.",
27
+ input: rampSpendRequestGetInputSchema,
28
+ output: rampSpendRequestSchema,
29
+ run: async (input, credentials) => {
30
+ const client = createRampClient(credentials);
31
+ return rampSpendRequestSchema.parse(await client.request(`/spend-requests/${encodeURIComponent(input.spendRequestId)}`));
32
+ }
33
+ });
34
+ const commentOnSpendRequest = rampOperation({
35
+ id: "comment_on_spend_request",
36
+ name: "Comment On Spend Request",
37
+ description: "Post a comment on an existing Ramp spend request.",
38
+ input: rampSpendRequestCommentCreateInputSchema,
39
+ output: rampSpendRequestCommentSchema,
40
+ needsApproval: true,
41
+ run: async (input, credentials) => {
42
+ const client = createRampClient(credentials);
43
+ const { spendRequestId, body, idempotency_key } = input;
44
+ return rampSpendRequestCommentSchema.parse(await client.request(`/spend-requests/${encodeURIComponent(spendRequestId)}/comments`, {
45
+ method: "POST",
46
+ body: { body },
47
+ ...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
48
+ }));
49
+ }
50
+ });
51
+
52
+ //#endregion
53
+ export { commentOnSpendRequest, getSpendRequest, listSpendRequests };
@@ -0,0 +1,41 @@
1
+ import * as zod from "zod";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
3
+ import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
+ import * as zod_v4_core0 from "zod/v4/core";
5
+
6
+ //#region src/statements.d.ts
7
+ declare const listStatements: _keystrokehq_core0.Operation<zod.ZodObject<{
8
+ entity_id: zod.ZodOptional<zod.ZodString>;
9
+ start: zod.ZodOptional<zod.ZodString>;
10
+ end: zod.ZodOptional<zod.ZodString>;
11
+ pageSize: zod.ZodOptional<zod.ZodNumber>;
12
+ cursor: zod.ZodOptional<zod.ZodString>;
13
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
14
+ data: zod.ZodArray<zod.ZodObject<{
15
+ id: zod.ZodString;
16
+ statement_date: zod.ZodOptional<zod.ZodString>;
17
+ download_url: zod.ZodOptional<zod.ZodString>;
18
+ entity_id: zod.ZodOptional<zod.ZodString>;
19
+ }, zod_v4_core0.$loose>>;
20
+ page: zod.ZodOptional<zod.ZodObject<{
21
+ next: zod.ZodOptional<zod.ZodString>;
22
+ }, zod_v4_core0.$strip>>;
23
+ }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
24
+ RAMP_ACCESS_TOKEN: zod.ZodString;
25
+ }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
26
+ RAMP_ACCESS_TOKEN: zod.ZodString;
27
+ }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
28
+ declare const getStatement: _keystrokehq_core0.Operation<zod.ZodObject<{
29
+ statementId: zod.ZodString;
30
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
31
+ id: zod.ZodString;
32
+ statement_date: zod.ZodOptional<zod.ZodString>;
33
+ download_url: zod.ZodOptional<zod.ZodString>;
34
+ entity_id: zod.ZodOptional<zod.ZodString>;
35
+ }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
36
+ RAMP_ACCESS_TOKEN: zod.ZodString;
37
+ }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
38
+ RAMP_ACCESS_TOKEN: zod.ZodString;
39
+ }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
40
+ //#endregion
41
+ export { getStatement, listStatements };
@@ -0,0 +1,37 @@
1
+ import { createRampClient } from "./client.mjs";
2
+ import { d as rampStatementListSchema, f as rampStatementSchema, l as rampStatementGetInputSchema, u as rampStatementListInputSchema } from "./receipts-STq41c2M.mjs";
3
+ import { t as rampOperation } from "./factory-Da6YVHdL.mjs";
4
+ import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
5
+
6
+ //#region src/statements.ts
7
+ const listStatements = rampOperation({
8
+ id: "list_statements",
9
+ name: "List Statements",
10
+ description: "List monthly Ramp account statements, optionally filtered by entity and date range.",
11
+ input: rampStatementListInputSchema,
12
+ output: rampStatementListSchema,
13
+ run: async (input, credentials) => {
14
+ const client = createRampClient(credentials);
15
+ return rampStatementListSchema.parse(await client.request("/statements", { query: omitUndefined({
16
+ entity_id: input.entity_id,
17
+ from_date: input.start,
18
+ to_date: input.end,
19
+ page_size: input.pageSize,
20
+ start: input.cursor
21
+ }) }));
22
+ }
23
+ });
24
+ const getStatement = rampOperation({
25
+ id: "get_statement",
26
+ name: "Get Statement",
27
+ description: "Fetch a monthly statement by id. Includes a short-lived signed download URL.",
28
+ input: rampStatementGetInputSchema,
29
+ output: rampStatementSchema,
30
+ run: async (input, credentials) => {
31
+ const client = createRampClient(credentials);
32
+ return rampStatementSchema.parse(await client.request(`/statements/${encodeURIComponent(input.statementId)}`));
33
+ }
34
+ });
35
+
36
+ //#endregion
37
+ export { getStatement, listStatements };
@@ -0,0 +1,53 @@
1
+ import { a as rampListPaginationInputSchema, c as rampMoneySchema, f as rampTimestampSchema, i as rampIdSchema, o as rampListResponseSchema, r as rampDateRangeInputSchema } from "./common-CUpmNYXw.mjs";
2
+ import { z } from "zod";
3
+
4
+ //#region src/schemas/transactions.ts
5
+ const rampTransactionStateSchema = z.enum([
6
+ "CLEARED",
7
+ "COMPLETION",
8
+ "DECLINED",
9
+ "ERROR",
10
+ "PENDING",
11
+ "PENDING_INITIATION",
12
+ "PROCESSING"
13
+ ]);
14
+ const rampTransactionSchema = z.object({
15
+ id: rampIdSchema,
16
+ amount: z.number().optional(),
17
+ currency_code: z.string().trim().min(1).optional(),
18
+ merchant_name: z.string().optional(),
19
+ merchant_category_code: z.string().optional(),
20
+ merchant_descriptor: z.string().optional(),
21
+ card_id: rampIdSchema.optional(),
22
+ card_holder: z.object({
23
+ user_id: rampIdSchema.optional(),
24
+ first_name: z.string().optional(),
25
+ last_name: z.string().optional(),
26
+ department_id: rampIdSchema.optional(),
27
+ location_id: rampIdSchema.optional()
28
+ }).passthrough().optional(),
29
+ user_transaction_time: rampTimestampSchema.optional(),
30
+ settlement_date: rampTimestampSchema.optional(),
31
+ state: rampTransactionStateSchema.optional(),
32
+ sk_category_id: z.string().optional(),
33
+ sk_category_name: z.string().optional(),
34
+ money: rampMoneySchema.optional()
35
+ }).passthrough();
36
+ const rampTransactionListInputSchema = z.object({
37
+ department_id: rampIdSchema.optional(),
38
+ location_id: rampIdSchema.optional(),
39
+ card_id: rampIdSchema.optional(),
40
+ entity_id: rampIdSchema.optional(),
41
+ merchant_id: rampIdSchema.optional(),
42
+ user_id: rampIdSchema.optional(),
43
+ sk_category_id: z.string().optional(),
44
+ state: rampTransactionStateSchema.optional(),
45
+ minAmount: z.number().nonnegative().optional(),
46
+ maxAmount: z.number().nonnegative().optional(),
47
+ orderBy: z.enum(["user_transaction_time ASC", "user_transaction_time DESC"]).optional()
48
+ }).merge(rampListPaginationInputSchema).merge(rampDateRangeInputSchema);
49
+ const rampTransactionListSchema = rampListResponseSchema(rampTransactionSchema);
50
+ const rampTransactionGetInputSchema = z.object({ transactionId: rampIdSchema });
51
+
52
+ //#endregion
53
+ export { rampTransactionStateSchema as a, rampTransactionSchema as i, rampTransactionListInputSchema as n, rampTransactionListSchema as r, rampTransactionGetInputSchema as t };
@@ -0,0 +1,181 @@
1
+ import { z } from "zod";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
3
+ import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
+
5
+ //#region src/transactions.d.ts
6
+ declare const listTransactions: _keystrokehq_core0.Operation<z.ZodObject<{
7
+ department_id: z.ZodOptional<z.ZodString>;
8
+ location_id: z.ZodOptional<z.ZodString>;
9
+ card_id: z.ZodOptional<z.ZodString>;
10
+ entity_id: z.ZodOptional<z.ZodString>;
11
+ merchant_id: z.ZodOptional<z.ZodString>;
12
+ user_id: z.ZodOptional<z.ZodString>;
13
+ sk_category_id: z.ZodOptional<z.ZodString>;
14
+ state: z.ZodOptional<z.ZodEnum<{
15
+ PENDING: "PENDING";
16
+ PROCESSING: "PROCESSING";
17
+ CLEARED: "CLEARED";
18
+ COMPLETION: "COMPLETION";
19
+ DECLINED: "DECLINED";
20
+ ERROR: "ERROR";
21
+ PENDING_INITIATION: "PENDING_INITIATION";
22
+ }>>;
23
+ minAmount: z.ZodOptional<z.ZodNumber>;
24
+ maxAmount: z.ZodOptional<z.ZodNumber>;
25
+ orderBy: z.ZodOptional<z.ZodEnum<{
26
+ "user_transaction_time ASC": "user_transaction_time ASC";
27
+ "user_transaction_time DESC": "user_transaction_time DESC";
28
+ }>>;
29
+ pageSize: z.ZodOptional<z.ZodNumber>;
30
+ cursor: z.ZodOptional<z.ZodString>;
31
+ start: z.ZodOptional<z.ZodString>;
32
+ end: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ data: z.ZodArray<z.ZodObject<{
35
+ id: z.ZodString;
36
+ amount: z.ZodOptional<z.ZodNumber>;
37
+ currency_code: z.ZodOptional<z.ZodString>;
38
+ merchant_name: z.ZodOptional<z.ZodString>;
39
+ merchant_category_code: z.ZodOptional<z.ZodString>;
40
+ merchant_descriptor: z.ZodOptional<z.ZodString>;
41
+ card_id: z.ZodOptional<z.ZodString>;
42
+ card_holder: z.ZodOptional<z.ZodObject<{
43
+ user_id: z.ZodOptional<z.ZodString>;
44
+ first_name: z.ZodOptional<z.ZodString>;
45
+ last_name: z.ZodOptional<z.ZodString>;
46
+ department_id: z.ZodOptional<z.ZodString>;
47
+ location_id: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$loose>>;
49
+ user_transaction_time: z.ZodOptional<z.ZodString>;
50
+ settlement_date: z.ZodOptional<z.ZodString>;
51
+ state: z.ZodOptional<z.ZodEnum<{
52
+ PENDING: "PENDING";
53
+ PROCESSING: "PROCESSING";
54
+ CLEARED: "CLEARED";
55
+ COMPLETION: "COMPLETION";
56
+ DECLINED: "DECLINED";
57
+ ERROR: "ERROR";
58
+ PENDING_INITIATION: "PENDING_INITIATION";
59
+ }>>;
60
+ sk_category_id: z.ZodOptional<z.ZodString>;
61
+ sk_category_name: z.ZodOptional<z.ZodString>;
62
+ money: z.ZodOptional<z.ZodObject<{
63
+ amountCents: z.ZodNumber;
64
+ currency: z.ZodString;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$loose>>;
67
+ page: z.ZodOptional<z.ZodObject<{
68
+ next: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>>;
70
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
71
+ RAMP_ACCESS_TOKEN: z.ZodString;
72
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
73
+ RAMP_ACCESS_TOKEN: z.ZodString;
74
+ }, z.core.$strip>>[] | undefined>], undefined>;
75
+ declare const getTransaction: _keystrokehq_core0.Operation<z.ZodObject<{
76
+ transactionId: z.ZodString;
77
+ }, z.core.$strip>, z.ZodObject<{
78
+ id: z.ZodString;
79
+ amount: z.ZodOptional<z.ZodNumber>;
80
+ currency_code: z.ZodOptional<z.ZodString>;
81
+ merchant_name: z.ZodOptional<z.ZodString>;
82
+ merchant_category_code: z.ZodOptional<z.ZodString>;
83
+ merchant_descriptor: z.ZodOptional<z.ZodString>;
84
+ card_id: z.ZodOptional<z.ZodString>;
85
+ card_holder: z.ZodOptional<z.ZodObject<{
86
+ user_id: z.ZodOptional<z.ZodString>;
87
+ first_name: z.ZodOptional<z.ZodString>;
88
+ last_name: z.ZodOptional<z.ZodString>;
89
+ department_id: z.ZodOptional<z.ZodString>;
90
+ location_id: z.ZodOptional<z.ZodString>;
91
+ }, z.core.$loose>>;
92
+ user_transaction_time: z.ZodOptional<z.ZodString>;
93
+ settlement_date: z.ZodOptional<z.ZodString>;
94
+ state: z.ZodOptional<z.ZodEnum<{
95
+ PENDING: "PENDING";
96
+ PROCESSING: "PROCESSING";
97
+ CLEARED: "CLEARED";
98
+ COMPLETION: "COMPLETION";
99
+ DECLINED: "DECLINED";
100
+ ERROR: "ERROR";
101
+ PENDING_INITIATION: "PENDING_INITIATION";
102
+ }>>;
103
+ sk_category_id: z.ZodOptional<z.ZodString>;
104
+ sk_category_name: z.ZodOptional<z.ZodString>;
105
+ money: z.ZodOptional<z.ZodObject<{
106
+ amountCents: z.ZodNumber;
107
+ currency: z.ZodString;
108
+ }, z.core.$strip>>;
109
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
110
+ RAMP_ACCESS_TOKEN: z.ZodString;
111
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
112
+ RAMP_ACCESS_TOKEN: z.ZodString;
113
+ }, z.core.$strip>>[] | undefined>], undefined>;
114
+ declare const listAllTransactions: _keystrokehq_core0.Operation<z.ZodObject<{
115
+ department_id: z.ZodOptional<z.ZodString>;
116
+ location_id: z.ZodOptional<z.ZodString>;
117
+ card_id: z.ZodOptional<z.ZodString>;
118
+ entity_id: z.ZodOptional<z.ZodString>;
119
+ merchant_id: z.ZodOptional<z.ZodString>;
120
+ user_id: z.ZodOptional<z.ZodString>;
121
+ sk_category_id: z.ZodOptional<z.ZodString>;
122
+ state: z.ZodOptional<z.ZodEnum<{
123
+ PENDING: "PENDING";
124
+ PROCESSING: "PROCESSING";
125
+ CLEARED: "CLEARED";
126
+ COMPLETION: "COMPLETION";
127
+ DECLINED: "DECLINED";
128
+ ERROR: "ERROR";
129
+ PENDING_INITIATION: "PENDING_INITIATION";
130
+ }>>;
131
+ minAmount: z.ZodOptional<z.ZodNumber>;
132
+ maxAmount: z.ZodOptional<z.ZodNumber>;
133
+ orderBy: z.ZodOptional<z.ZodEnum<{
134
+ "user_transaction_time ASC": "user_transaction_time ASC";
135
+ "user_transaction_time DESC": "user_transaction_time DESC";
136
+ }>>;
137
+ pageSize: z.ZodOptional<z.ZodNumber>;
138
+ cursor: z.ZodOptional<z.ZodString>;
139
+ start: z.ZodOptional<z.ZodString>;
140
+ end: z.ZodOptional<z.ZodString>;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ data: z.ZodArray<z.ZodObject<{
143
+ id: z.ZodString;
144
+ amount: z.ZodOptional<z.ZodNumber>;
145
+ currency_code: z.ZodOptional<z.ZodString>;
146
+ merchant_name: z.ZodOptional<z.ZodString>;
147
+ merchant_category_code: z.ZodOptional<z.ZodString>;
148
+ merchant_descriptor: z.ZodOptional<z.ZodString>;
149
+ card_id: z.ZodOptional<z.ZodString>;
150
+ card_holder: z.ZodOptional<z.ZodObject<{
151
+ user_id: z.ZodOptional<z.ZodString>;
152
+ first_name: z.ZodOptional<z.ZodString>;
153
+ last_name: z.ZodOptional<z.ZodString>;
154
+ department_id: z.ZodOptional<z.ZodString>;
155
+ location_id: z.ZodOptional<z.ZodString>;
156
+ }, z.core.$loose>>;
157
+ user_transaction_time: z.ZodOptional<z.ZodString>;
158
+ settlement_date: z.ZodOptional<z.ZodString>;
159
+ state: z.ZodOptional<z.ZodEnum<{
160
+ PENDING: "PENDING";
161
+ PROCESSING: "PROCESSING";
162
+ CLEARED: "CLEARED";
163
+ COMPLETION: "COMPLETION";
164
+ DECLINED: "DECLINED";
165
+ ERROR: "ERROR";
166
+ PENDING_INITIATION: "PENDING_INITIATION";
167
+ }>>;
168
+ sk_category_id: z.ZodOptional<z.ZodString>;
169
+ sk_category_name: z.ZodOptional<z.ZodString>;
170
+ money: z.ZodOptional<z.ZodObject<{
171
+ amountCents: z.ZodNumber;
172
+ currency: z.ZodString;
173
+ }, z.core.$strip>>;
174
+ }, z.core.$loose>>;
175
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
176
+ RAMP_ACCESS_TOKEN: z.ZodString;
177
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
178
+ RAMP_ACCESS_TOKEN: z.ZodString;
179
+ }, z.core.$strip>>[] | undefined>], undefined>;
180
+ //#endregion
181
+ export { getTransaction, listAllTransactions, listTransactions };