@keystrokehq/ramp 0.1.2 → 0.1.3
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/README.md +1 -1
- package/dist/actions/create-department.cjs +1 -1
- package/dist/actions/create-department.cjs.map +1 -1
- package/dist/actions/create-department.d.cts +1 -1
- package/dist/actions/create-department.d.mts +1 -1
- package/dist/actions/create-department.mjs +1 -1
- package/dist/actions/create-department.mjs.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.cjs +1 -1
- package/dist/actions/create-inventory-item-accounting-field.cjs.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.d.cts +1 -1
- package/dist/actions/create-inventory-item-accounting-field.d.mts +1 -1
- package/dist/actions/create-inventory-item-accounting-field.mjs +1 -1
- package/dist/actions/create-inventory-item-accounting-field.mjs.map +1 -1
- package/dist/actions/create-memo.cjs +1 -1
- package/dist/actions/create-memo.cjs.map +1 -1
- package/dist/actions/create-memo.d.cts +1 -1
- package/dist/actions/create-memo.d.mts +1 -1
- package/dist/actions/create-memo.mjs +1 -1
- package/dist/actions/create-memo.mjs.map +1 -1
- package/dist/actions/create-mileage-reimbursement.cjs +9 -9
- package/dist/actions/create-mileage-reimbursement.cjs.map +1 -1
- package/dist/actions/create-mileage-reimbursement.d.cts +13 -13
- package/dist/actions/create-mileage-reimbursement.d.mts +13 -13
- package/dist/actions/create-mileage-reimbursement.mjs +9 -9
- package/dist/actions/create-mileage-reimbursement.mjs.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.cjs +1 -1
- package/dist/actions/create-new-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.d.cts +1 -1
- package/dist/actions/create-new-custom-accounting-field.d.mts +1 -1
- package/dist/actions/create-new-custom-accounting-field.mjs +1 -1
- package/dist/actions/create-new-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.cjs +1 -1
- package/dist/actions/create-tax-code-accounting-field.cjs.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.d.cts +1 -1
- package/dist/actions/create-tax-code-accounting-field.d.mts +1 -1
- package/dist/actions/create-tax-code-accounting-field.mjs +1 -1
- package/dist/actions/create-tax-code-accounting-field.mjs.map +1 -1
- package/dist/actions/create-user-invite.cjs +1 -1
- package/dist/actions/create-user-invite.cjs.map +1 -1
- package/dist/actions/create-user-invite.d.cts +1 -1
- package/dist/actions/create-user-invite.d.mts +1 -1
- package/dist/actions/create-user-invite.mjs +1 -1
- package/dist/actions/create-user-invite.mjs.map +1 -1
- package/dist/actions/create-webhook-subscription.cjs +3 -3
- package/dist/actions/create-webhook-subscription.cjs.map +1 -1
- package/dist/actions/create-webhook-subscription.d.cts +4 -4
- package/dist/actions/create-webhook-subscription.d.mts +4 -4
- package/dist/actions/create-webhook-subscription.mjs +3 -3
- package/dist/actions/create-webhook-subscription.mjs.map +1 -1
- package/dist/actions/deactivate-user.cjs +1 -1
- package/dist/actions/deactivate-user.cjs.map +1 -1
- package/dist/actions/deactivate-user.d.cts +1 -1
- package/dist/actions/deactivate-user.d.cts.map +1 -1
- package/dist/actions/deactivate-user.d.mts +1 -1
- package/dist/actions/deactivate-user.d.mts.map +1 -1
- package/dist/actions/deactivate-user.mjs +1 -1
- package/dist/actions/deactivate-user.mjs.map +1 -1
- package/dist/actions/delete-accounting-account.cjs +1 -1
- package/dist/actions/delete-accounting-account.cjs.map +1 -1
- package/dist/actions/delete-accounting-account.d.cts +1 -1
- package/dist/actions/delete-accounting-account.d.mts +1 -1
- package/dist/actions/delete-accounting-account.mjs +1 -1
- package/dist/actions/delete-accounting-account.mjs.map +1 -1
- package/dist/actions/delete-accounting-connection.cjs +1 -1
- package/dist/actions/delete-accounting-connection.cjs.map +1 -1
- package/dist/actions/delete-accounting-connection.d.cts +1 -1
- package/dist/actions/delete-accounting-connection.d.mts +1 -1
- package/dist/actions/delete-accounting-connection.mjs +1 -1
- package/dist/actions/delete-accounting-connection.mjs.map +1 -1
- package/dist/actions/delete-accounting-fields.cjs +1 -1
- package/dist/actions/delete-accounting-fields.cjs.map +1 -1
- package/dist/actions/delete-accounting-fields.d.cts +1 -1
- package/dist/actions/delete-accounting-fields.d.mts +1 -1
- package/dist/actions/delete-accounting-fields.mjs +1 -1
- package/dist/actions/delete-accounting-fields.mjs.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.cjs +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.d.cts +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.d.mts +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.mjs +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.cjs +1 -1
- package/dist/actions/delete-accounting-tax-code-options.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.d.cts +1 -1
- package/dist/actions/delete-accounting-tax-code-options.d.mts +1 -1
- package/dist/actions/delete-accounting-tax-code-options.mjs +1 -1
- package/dist/actions/delete-accounting-tax-code-options.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code.cjs +1 -1
- package/dist/actions/delete-accounting-tax-code.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code.d.cts +1 -1
- package/dist/actions/delete-accounting-tax-code.d.mts +1 -1
- package/dist/actions/delete-accounting-tax-code.mjs +1 -1
- package/dist/actions/delete-accounting-tax-code.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.cjs +1 -1
- package/dist/actions/delete-accounting-tax-rates.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.d.cts +1 -1
- package/dist/actions/delete-accounting-tax-rates.d.mts +1 -1
- package/dist/actions/delete-accounting-tax-rates.mjs +1 -1
- package/dist/actions/delete-accounting-tax-rates.mjs.map +1 -1
- package/dist/actions/delete-accounting-vendors.cjs +1 -1
- package/dist/actions/delete-accounting-vendors.cjs.map +1 -1
- package/dist/actions/delete-accounting-vendors.d.cts +1 -1
- package/dist/actions/delete-accounting-vendors.d.mts +1 -1
- package/dist/actions/delete-accounting-vendors.mjs +1 -1
- package/dist/actions/delete-accounting-vendors.mjs.map +1 -1
- package/dist/actions/delete-custom-field-option.cjs +1 -1
- package/dist/actions/delete-custom-field-option.cjs.map +1 -1
- package/dist/actions/delete-custom-field-option.d.cts +1 -1
- package/dist/actions/delete-custom-field-option.d.mts +1 -1
- package/dist/actions/delete-custom-field-option.mjs +1 -1
- package/dist/actions/delete-custom-field-option.mjs.map +1 -1
- package/dist/actions/delete-inventory-item-field.cjs +1 -1
- package/dist/actions/delete-inventory-item-field.cjs.map +1 -1
- package/dist/actions/delete-inventory-item-field.d.cts +1 -1
- package/dist/actions/delete-inventory-item-field.d.mts +1 -1
- package/dist/actions/delete-inventory-item-field.mjs +1 -1
- package/dist/actions/delete-inventory-item-field.mjs.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.cjs +8 -8
- package/dist/actions/delete-spend-allocation-delete-users.cjs.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.d.cts +13 -13
- package/dist/actions/delete-spend-allocation-delete-users.d.mts +13 -13
- package/dist/actions/delete-spend-allocation-delete-users.mjs +8 -8
- package/dist/actions/delete-spend-allocation-delete-users.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -1
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +1 -1
- package/dist/actions/delete-webhook.d.mts +1 -1
- package/dist/actions/delete-webhook.mjs +1 -1
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/fetch-accounting-account.cjs +2 -2
- package/dist/actions/fetch-accounting-account.cjs.map +1 -1
- package/dist/actions/fetch-accounting-account.d.cts +2 -2
- package/dist/actions/fetch-accounting-account.d.mts +2 -2
- package/dist/actions/fetch-accounting-account.mjs +2 -2
- package/dist/actions/fetch-accounting-account.mjs.map +1 -1
- package/dist/actions/fetch-accounting-vendor.cjs +2 -2
- package/dist/actions/fetch-accounting-vendor.cjs.map +1 -1
- package/dist/actions/fetch-accounting-vendor.d.cts +2 -2
- package/dist/actions/fetch-accounting-vendor.d.mts +2 -2
- package/dist/actions/fetch-accounting-vendor.mjs +2 -2
- package/dist/actions/fetch-accounting-vendor.mjs.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.cjs +2 -2
- package/dist/actions/fetch-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.d.cts +2 -2
- package/dist/actions/fetch-custom-accounting-field.d.mts +2 -2
- package/dist/actions/fetch-custom-accounting-field.mjs +2 -2
- package/dist/actions/fetch-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/get-accounting-accounts.cjs +4 -4
- package/dist/actions/get-accounting-accounts.cjs.map +1 -1
- package/dist/actions/get-accounting-accounts.d.cts +4 -4
- package/dist/actions/get-accounting-accounts.d.mts +4 -4
- package/dist/actions/get-accounting-accounts.mjs +4 -4
- package/dist/actions/get-accounting-accounts.mjs.map +1 -1
- package/dist/actions/get-accounting-all-connections.cjs +2 -2
- package/dist/actions/get-accounting-all-connections.cjs.map +1 -1
- package/dist/actions/get-accounting-all-connections.d.cts +2 -2
- package/dist/actions/get-accounting-all-connections.d.mts +2 -2
- package/dist/actions/get-accounting-all-connections.mjs +2 -2
- package/dist/actions/get-accounting-all-connections.mjs.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.cjs +2 -2
- package/dist/actions/get-accounting-connection-by-id.cjs.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.d.cts +2 -2
- package/dist/actions/get-accounting-connection-by-id.d.mts +2 -2
- package/dist/actions/get-accounting-connection-by-id.mjs +2 -2
- package/dist/actions/get-accounting-connection-by-id.mjs.map +1 -1
- package/dist/actions/get-accounting-connection.cjs +2 -2
- package/dist/actions/get-accounting-connection.cjs.map +1 -1
- package/dist/actions/get-accounting-connection.d.cts +2 -2
- package/dist/actions/get-accounting-connection.d.mts +2 -2
- package/dist/actions/get-accounting-connection.mjs +2 -2
- package/dist/actions/get-accounting-connection.mjs.map +1 -1
- package/dist/actions/get-accounting-fields.cjs +3 -3
- package/dist/actions/get-accounting-fields.cjs.map +1 -1
- package/dist/actions/get-accounting-fields.d.cts +3 -3
- package/dist/actions/get-accounting-fields.d.mts +3 -3
- package/dist/actions/get-accounting-fields.mjs +3 -3
- package/dist/actions/get-accounting-fields.mjs.map +1 -1
- package/dist/actions/get-accounting-vendors.cjs +3 -3
- package/dist/actions/get-accounting-vendors.cjs.map +1 -1
- package/dist/actions/get-accounting-vendors.d.cts +3 -3
- package/dist/actions/get-accounting-vendors.d.mts +3 -3
- package/dist/actions/get-accounting-vendors.mjs +3 -3
- package/dist/actions/get-accounting-vendors.mjs.map +1 -1
- package/dist/actions/get-all-transactions.cjs +3 -3
- package/dist/actions/get-all-transactions.cjs.map +1 -1
- package/dist/actions/get-all-transactions.d.cts +3 -3
- package/dist/actions/get-all-transactions.d.mts +3 -3
- package/dist/actions/get-all-transactions.mjs +3 -3
- package/dist/actions/get-all-transactions.mjs.map +1 -1
- package/dist/actions/get-card-vault-resource.cjs +1 -1
- package/dist/actions/get-card-vault-resource.cjs.map +1 -1
- package/dist/actions/get-card-vault-resource.d.cts +1 -1
- package/dist/actions/get-card-vault-resource.d.mts +1 -1
- package/dist/actions/get-card-vault-resource.mjs +1 -1
- package/dist/actions/get-card-vault-resource.mjs.map +1 -1
- package/dist/actions/get-card.cjs +5 -5
- package/dist/actions/get-card.cjs.map +1 -1
- package/dist/actions/get-card.d.cts +5 -5
- package/dist/actions/get-card.d.mts +5 -5
- package/dist/actions/get-card.mjs +5 -5
- package/dist/actions/get-card.mjs.map +1 -1
- package/dist/actions/get-custom-field-option.cjs +1 -1
- package/dist/actions/get-custom-field-option.cjs.map +1 -1
- package/dist/actions/get-custom-field-option.d.cts +1 -1
- package/dist/actions/get-custom-field-option.d.mts +1 -1
- package/dist/actions/get-custom-field-option.mjs +1 -1
- package/dist/actions/get-custom-field-option.mjs.map +1 -1
- package/dist/actions/get-department.cjs +1 -1
- package/dist/actions/get-department.cjs.map +1 -1
- package/dist/actions/get-department.d.cts +1 -1
- package/dist/actions/get-department.d.mts +1 -1
- package/dist/actions/get-department.mjs +1 -1
- package/dist/actions/get-department.mjs.map +1 -1
- package/dist/actions/get-inventory-item-field.cjs +1 -1
- package/dist/actions/get-inventory-item-field.cjs.map +1 -1
- package/dist/actions/get-inventory-item-field.d.cts +1 -1
- package/dist/actions/get-inventory-item-field.d.mts +1 -1
- package/dist/actions/get-inventory-item-field.mjs +1 -1
- package/dist/actions/get-inventory-item-field.mjs.map +1 -1
- package/dist/actions/get-memo.cjs +1 -1
- package/dist/actions/get-memo.cjs.map +1 -1
- package/dist/actions/get-memo.d.cts +1 -1
- package/dist/actions/get-memo.d.mts +1 -1
- package/dist/actions/get-memo.mjs +1 -1
- package/dist/actions/get-memo.mjs.map +1 -1
- package/dist/actions/get-reimbursement.cjs +5 -5
- package/dist/actions/get-reimbursement.cjs.map +1 -1
- package/dist/actions/get-reimbursement.d.cts +7 -7
- package/dist/actions/get-reimbursement.d.mts +7 -7
- package/dist/actions/get-reimbursement.mjs +5 -5
- package/dist/actions/get-reimbursement.mjs.map +1 -1
- package/dist/actions/get-spend-limit.cjs +14 -14
- package/dist/actions/get-spend-limit.cjs.map +1 -1
- package/dist/actions/get-spend-limit.d.cts +19 -19
- package/dist/actions/get-spend-limit.d.mts +19 -19
- package/dist/actions/get-spend-limit.mjs +14 -14
- package/dist/actions/get-spend-limit.mjs.map +1 -1
- package/dist/actions/get-statement.cjs +1 -1
- package/dist/actions/get-statement.cjs.map +1 -1
- package/dist/actions/get-statement.d.cts +1 -1
- package/dist/actions/get-statement.d.mts +1 -1
- package/dist/actions/get-statement.mjs +1 -1
- package/dist/actions/get-statement.mjs.map +1 -1
- package/dist/actions/get-transaction.cjs +1 -1
- package/dist/actions/get-transaction.cjs.map +1 -1
- package/dist/actions/get-transaction.d.cts +1 -1
- package/dist/actions/get-transaction.d.mts +1 -1
- package/dist/actions/get-transaction.mjs +1 -1
- package/dist/actions/get-transaction.mjs.map +1 -1
- package/dist/actions/get-user.cjs +2 -2
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +2 -2
- package/dist/actions/get-user.d.mts +2 -2
- package/dist/actions/get-user.mjs +2 -2
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-deferred-status.cjs +3 -3
- package/dist/actions/get-users-deferred-status.cjs.map +1 -1
- package/dist/actions/get-users-deferred-status.d.cts +3 -3
- package/dist/actions/get-users-deferred-status.d.mts +3 -3
- package/dist/actions/get-users-deferred-status.mjs +3 -3
- package/dist/actions/get-users-deferred-status.mjs.map +1 -1
- package/dist/actions/get-vendor.cjs +3 -3
- package/dist/actions/get-vendor.cjs.map +1 -1
- package/dist/actions/get-vendor.d.cts +6 -6
- package/dist/actions/get-vendor.d.mts +6 -6
- package/dist/actions/get-vendor.mjs +3 -3
- package/dist/actions/get-vendor.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +1 -1
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +1 -1
- package/dist/actions/get-webhook.d.mts +1 -1
- package/dist/actions/get-webhook.mjs +1 -1
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/issue-virtual-card.cjs +3 -3
- package/dist/actions/issue-virtual-card.cjs.map +1 -1
- package/dist/actions/issue-virtual-card.d.cts +3 -3
- package/dist/actions/issue-virtual-card.d.mts +3 -3
- package/dist/actions/issue-virtual-card.mjs +3 -3
- package/dist/actions/issue-virtual-card.mjs.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.cjs +3 -3
- package/dist/actions/list-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.d.cts +3 -3
- package/dist/actions/list-accounting-inventory-item-options.d.mts +3 -3
- package/dist/actions/list-accounting-inventory-item-options.mjs +3 -3
- package/dist/actions/list-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/list-accounting-tax-rates.cjs +3 -3
- package/dist/actions/list-accounting-tax-rates.cjs.map +1 -1
- package/dist/actions/list-accounting-tax-rates.d.cts +3 -3
- package/dist/actions/list-accounting-tax-rates.d.mts +3 -3
- package/dist/actions/list-accounting-tax-rates.mjs +3 -3
- package/dist/actions/list-accounting-tax-rates.mjs.map +1 -1
- package/dist/actions/list-cards.cjs +7 -7
- package/dist/actions/list-cards.cjs.map +1 -1
- package/dist/actions/list-cards.d.cts +7 -7
- package/dist/actions/list-cards.d.mts +7 -7
- package/dist/actions/list-cards.mjs +7 -7
- package/dist/actions/list-cards.mjs.map +1 -1
- package/dist/actions/list-departments.cjs +3 -3
- package/dist/actions/list-departments.cjs.map +1 -1
- package/dist/actions/list-departments.d.cts +3 -3
- package/dist/actions/list-departments.d.mts +3 -3
- package/dist/actions/list-departments.mjs +3 -3
- package/dist/actions/list-departments.mjs.map +1 -1
- package/dist/actions/list-memos.cjs +3 -3
- package/dist/actions/list-memos.cjs.map +1 -1
- package/dist/actions/list-memos.d.cts +3 -3
- package/dist/actions/list-memos.d.mts +3 -3
- package/dist/actions/list-memos.mjs +3 -3
- package/dist/actions/list-memos.mjs.map +1 -1
- package/dist/actions/list-reimbursements.cjs +7 -7
- package/dist/actions/list-reimbursements.cjs.map +1 -1
- package/dist/actions/list-reimbursements.d.cts +9 -9
- package/dist/actions/list-reimbursements.d.mts +9 -9
- package/dist/actions/list-reimbursements.mjs +7 -7
- package/dist/actions/list-reimbursements.mjs.map +1 -1
- package/dist/actions/list-statements.cjs +6 -6
- package/dist/actions/list-statements.cjs.map +1 -1
- package/dist/actions/list-statements.d.cts +15 -15
- package/dist/actions/list-statements.d.mts +15 -15
- package/dist/actions/list-statements.mjs +6 -6
- package/dist/actions/list-statements.mjs.map +1 -1
- package/dist/actions/list-users.cjs +4 -4
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +4 -4
- package/dist/actions/list-users.d.mts +4 -4
- package/dist/actions/list-users.mjs +4 -4
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-vendors-accounts.cjs +3 -3
- package/dist/actions/list-vendors-accounts.cjs.map +1 -1
- package/dist/actions/list-vendors-accounts.d.cts +3 -3
- package/dist/actions/list-vendors-accounts.d.mts +3 -3
- package/dist/actions/list-vendors-accounts.mjs +3 -3
- package/dist/actions/list-vendors-accounts.mjs.map +1 -1
- package/dist/actions/list-vendors-contacts.cjs +3 -3
- package/dist/actions/list-vendors-contacts.cjs.map +1 -1
- package/dist/actions/list-vendors-contacts.d.cts +3 -3
- package/dist/actions/list-vendors-contacts.d.mts +3 -3
- package/dist/actions/list-vendors-contacts.mjs +3 -3
- package/dist/actions/list-vendors-contacts.mjs.map +1 -1
- package/dist/actions/list-vendors-credits.cjs +9 -9
- package/dist/actions/list-vendors-credits.cjs.map +1 -1
- package/dist/actions/list-vendors-credits.d.cts +21 -21
- package/dist/actions/list-vendors-credits.d.mts +21 -21
- package/dist/actions/list-vendors-credits.mjs +9 -9
- package/dist/actions/list-vendors-credits.mjs.map +1 -1
- package/dist/actions/list-vendors.cjs +5 -5
- package/dist/actions/list-vendors.cjs.map +1 -1
- package/dist/actions/list-vendors.d.cts +6 -6
- package/dist/actions/list-vendors.d.mts +6 -6
- package/dist/actions/list-vendors.mjs +5 -5
- package/dist/actions/list-vendors.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +2 -2
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +2 -2
- package/dist/actions/list-webhooks.d.mts +2 -2
- package/dist/actions/list-webhooks.mjs +2 -2
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.cjs +3 -3
- package/dist/actions/options-for-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.d.cts +3 -3
- package/dist/actions/options-for-custom-accounting-field.d.mts +3 -3
- package/dist/actions/options-for-custom-accounting-field.mjs +3 -3
- package/dist/actions/options-for-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/patch-accounting-connection.cjs +2 -2
- package/dist/actions/patch-accounting-connection.cjs.map +1 -1
- package/dist/actions/patch-accounting-connection.d.cts +2 -2
- package/dist/actions/patch-accounting-connection.d.mts +2 -2
- package/dist/actions/patch-accounting-connection.mjs +2 -2
- package/dist/actions/patch-accounting-connection.mjs.map +1 -1
- package/dist/actions/patch-card-resource.cjs +1 -1
- package/dist/actions/patch-card-resource.cjs.map +1 -1
- package/dist/actions/patch-card-resource.d.cts +1 -1
- package/dist/actions/patch-card-resource.d.mts +1 -1
- package/dist/actions/patch-card-resource.mjs +1 -1
- package/dist/actions/patch-card-resource.mjs.map +1 -1
- package/dist/actions/patch-custom-field-option.cjs +1 -1
- package/dist/actions/patch-custom-field-option.cjs.map +1 -1
- package/dist/actions/patch-custom-field-option.d.cts +1 -1
- package/dist/actions/patch-custom-field-option.d.mts +1 -1
- package/dist/actions/patch-custom-field-option.mjs +1 -1
- package/dist/actions/patch-custom-field-option.mjs.map +1 -1
- package/dist/actions/patch-gl-account-resource.cjs +2 -2
- package/dist/actions/patch-gl-account-resource.cjs.map +1 -1
- package/dist/actions/patch-gl-account-resource.d.cts +2 -2
- package/dist/actions/patch-gl-account-resource.d.mts +2 -2
- package/dist/actions/patch-gl-account-resource.mjs +2 -2
- package/dist/actions/patch-gl-account-resource.mjs.map +1 -1
- package/dist/actions/patch-inventory-item-field.cjs +1 -1
- package/dist/actions/patch-inventory-item-field.cjs.map +1 -1
- package/dist/actions/patch-inventory-item-field.d.cts +1 -1
- package/dist/actions/patch-inventory-item-field.d.mts +1 -1
- package/dist/actions/patch-inventory-item-field.mjs +1 -1
- package/dist/actions/patch-inventory-item-field.mjs.map +1 -1
- package/dist/actions/post-accounting-accounts.cjs +4 -4
- package/dist/actions/post-accounting-accounts.cjs.map +1 -1
- package/dist/actions/post-accounting-accounts.d.cts +5 -4
- package/dist/actions/post-accounting-accounts.d.mts +5 -4
- package/dist/actions/post-accounting-accounts.mjs +4 -4
- package/dist/actions/post-accounting-accounts.mjs.map +1 -1
- package/dist/actions/post-accounting-connection.cjs +2 -2
- package/dist/actions/post-accounting-connection.cjs.map +1 -1
- package/dist/actions/post-accounting-connection.d.cts +2 -2
- package/dist/actions/post-accounting-connection.d.mts +2 -2
- package/dist/actions/post-accounting-connection.mjs +2 -2
- package/dist/actions/post-accounting-connection.mjs.map +1 -1
- package/dist/actions/post-accounting-vendors.cjs +4 -4
- package/dist/actions/post-accounting-vendors.cjs.map +1 -1
- package/dist/actions/post-accounting-vendors.d.cts +5 -4
- package/dist/actions/post-accounting-vendors.d.mts +5 -4
- package/dist/actions/post-accounting-vendors.mjs +4 -4
- package/dist/actions/post-accounting-vendors.mjs.map +1 -1
- package/dist/actions/post-inventory-item-options.cjs +3 -3
- package/dist/actions/post-inventory-item-options.cjs.map +1 -1
- package/dist/actions/post-inventory-item-options.d.cts +4 -3
- package/dist/actions/post-inventory-item-options.d.mts +4 -3
- package/dist/actions/post-inventory-item-options.mjs +3 -3
- package/dist/actions/post-inventory-item-options.mjs.map +1 -1
- package/dist/actions/post-physical-card.cjs +2 -2
- package/dist/actions/post-physical-card.cjs.map +1 -1
- package/dist/actions/post-physical-card.d.cts +3 -3
- package/dist/actions/post-physical-card.d.mts +3 -3
- package/dist/actions/post-physical-card.mjs +2 -2
- package/dist/actions/post-physical-card.mjs.map +1 -1
- package/dist/actions/reactivate-accounting-connection.cjs +2 -2
- package/dist/actions/reactivate-accounting-connection.cjs.map +1 -1
- package/dist/actions/reactivate-accounting-connection.d.cts +2 -2
- package/dist/actions/reactivate-accounting-connection.d.mts +2 -2
- package/dist/actions/reactivate-accounting-connection.mjs +2 -2
- package/dist/actions/reactivate-accounting-connection.mjs.map +1 -1
- package/dist/actions/reactivate-user.cjs +1 -1
- package/dist/actions/reactivate-user.cjs.map +1 -1
- package/dist/actions/reactivate-user.d.cts +1 -1
- package/dist/actions/reactivate-user.d.cts.map +1 -1
- package/dist/actions/reactivate-user.d.mts +1 -1
- package/dist/actions/reactivate-user.d.mts.map +1 -1
- package/dist/actions/reactivate-user.mjs +1 -1
- package/dist/actions/reactivate-user.mjs.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.cjs +9 -9
- package/dist/actions/submit-reimbursement-receipt.cjs.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.d.cts +13 -13
- package/dist/actions/submit-reimbursement-receipt.d.mts +13 -13
- package/dist/actions/submit-reimbursement-receipt.mjs +9 -9
- package/dist/actions/submit-reimbursement-receipt.mjs.map +1 -1
- package/dist/actions/suspend-card.cjs +1 -1
- package/dist/actions/suspend-card.cjs.map +1 -1
- package/dist/actions/suspend-card.d.cts +1 -1
- package/dist/actions/suspend-card.d.mts +1 -1
- package/dist/actions/suspend-card.mjs +1 -1
- package/dist/actions/suspend-card.mjs.map +1 -1
- package/dist/actions/terminate-card.cjs +1 -1
- package/dist/actions/terminate-card.cjs.map +1 -1
- package/dist/actions/terminate-card.d.cts +1 -1
- package/dist/actions/terminate-card.d.mts +1 -1
- package/dist/actions/terminate-card.mjs +1 -1
- package/dist/actions/terminate-card.mjs.map +1 -1
- package/dist/actions/update-accounting-field.cjs +1 -1
- package/dist/actions/update-accounting-field.cjs.map +1 -1
- package/dist/actions/update-accounting-field.d.cts +1 -1
- package/dist/actions/update-accounting-field.d.mts +1 -1
- package/dist/actions/update-accounting-field.mjs +1 -1
- package/dist/actions/update-accounting-field.mjs.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.cjs +1 -1
- package/dist/actions/update-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.d.cts +1 -1
- package/dist/actions/update-accounting-inventory-item-options.d.mts +1 -1
- package/dist/actions/update-accounting-inventory-item-options.mjs +1 -1
- package/dist/actions/update-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.cjs +1 -1
- package/dist/actions/update-accounting-tax-code-options.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.d.cts +1 -1
- package/dist/actions/update-accounting-tax-code-options.d.mts +1 -1
- package/dist/actions/update-accounting-tax-code-options.mjs +1 -1
- package/dist/actions/update-accounting-tax-code-options.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-code.cjs +1 -1
- package/dist/actions/update-accounting-tax-code.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-code.d.cts +1 -1
- package/dist/actions/update-accounting-tax-code.d.mts +1 -1
- package/dist/actions/update-accounting-tax-code.mjs +1 -1
- package/dist/actions/update-accounting-tax-code.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-rate.cjs +1 -1
- package/dist/actions/update-accounting-tax-rate.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-rate.d.cts +1 -1
- package/dist/actions/update-accounting-tax-rate.d.mts +1 -1
- package/dist/actions/update-accounting-tax-rate.mjs +1 -1
- package/dist/actions/update-accounting-tax-rate.mjs.map +1 -1
- package/dist/actions/update-accounting-vendor.cjs +2 -2
- package/dist/actions/update-accounting-vendor.cjs.map +1 -1
- package/dist/actions/update-accounting-vendor.d.cts +2 -2
- package/dist/actions/update-accounting-vendor.d.mts +2 -2
- package/dist/actions/update-accounting-vendor.mjs +2 -2
- package/dist/actions/update-accounting-vendor.mjs.map +1 -1
- package/dist/actions/update-card-limit.cjs +4 -4
- package/dist/actions/update-card-limit.cjs.map +1 -1
- package/dist/actions/update-card-limit.d.cts +4 -4
- package/dist/actions/update-card-limit.d.mts +4 -4
- package/dist/actions/update-card-limit.mjs +4 -4
- package/dist/actions/update-card-limit.mjs.map +1 -1
- package/dist/actions/update-department.cjs +1 -1
- package/dist/actions/update-department.cjs.map +1 -1
- package/dist/actions/update-department.d.cts +1 -1
- package/dist/actions/update-department.d.mts +1 -1
- package/dist/actions/update-department.mjs +1 -1
- package/dist/actions/update-department.mjs.map +1 -1
- package/dist/actions/update-limits.cjs +9 -9
- package/dist/actions/update-limits.cjs.map +1 -1
- package/dist/actions/update-limits.d.cts +15 -14
- package/dist/actions/update-limits.d.mts +15 -14
- package/dist/actions/update-limits.mjs +9 -9
- package/dist/actions/update-limits.mjs.map +1 -1
- package/dist/actions/update-user.cjs +1 -1
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +1 -1
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +1 -1
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +1 -1
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/actions/upload-new-options.cjs +3 -3
- package/dist/actions/upload-new-options.cjs.map +1 -1
- package/dist/actions/upload-new-options.d.cts +4 -3
- package/dist/actions/upload-new-options.d.mts +4 -3
- package/dist/actions/upload-new-options.mjs +3 -3
- package/dist/actions/upload-new-options.mjs.map +1 -1
- package/dist/actions/upload-tax-code-options.cjs +3 -3
- package/dist/actions/upload-tax-code-options.cjs.map +1 -1
- package/dist/actions/upload-tax-code-options.d.cts +4 -3
- package/dist/actions/upload-tax-code-options.d.mts +4 -3
- package/dist/actions/upload-tax-code-options.mjs +3 -3
- package/dist/actions/upload-tax-code-options.mjs.map +1 -1
- package/dist/actions/upload-tax-rates.cjs +3 -3
- package/dist/actions/upload-tax-rates.cjs.map +1 -1
- package/dist/actions/upload-tax-rates.d.cts +4 -3
- package/dist/actions/upload-tax-rates.d.mts +4 -3
- package/dist/actions/upload-tax-rates.mjs +3 -3
- package/dist/actions/upload-tax-rates.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -11,23 +11,23 @@ const RampGetSpendLimit_CardSchema = z.object({
|
|
|
11
11
|
display_name: z.string().describe("Display name of the card").nullable().optional(),
|
|
12
12
|
cardholder_id: z.string().describe("Unique identifier of the cardholder").nullable().optional(),
|
|
13
13
|
via_new_product_or_service: z.boolean().describe("Indicates if card was created via new product or service").nullable().optional()
|
|
14
|
-
}).describe("Card information linked to the spend limit.");
|
|
15
|
-
const RampGetSpendLimit_UserSchema = z.object({ user_id: z.string().describe("Unique identifier of the user").nullable() }).describe("User with access to spend from the limit.");
|
|
14
|
+
}).passthrough().describe("Card information linked to the spend limit.");
|
|
15
|
+
const RampGetSpendLimit_UserSchema = z.object({ user_id: z.string().describe("Unique identifier of the user").nullable() }).passthrough().describe("User with access to spend from the limit.");
|
|
16
16
|
const RampGetSpendLimit_AmountCurrencySchema = z.object({
|
|
17
17
|
amount: z.number().describe("Monetary amount in minor units (cents)").nullable().optional(),
|
|
18
18
|
currency_code: z.string().describe("Currency code (e.g., USD)").nullable().optional(),
|
|
19
19
|
minor_unit_conversion_rate: z.number().int().describe("Conversion rate for minor units (e.g., 100 for cents to dollars)").nullable().optional()
|
|
20
|
-
}).describe("Amount and currency representation.");
|
|
20
|
+
}).passthrough().describe("Amount and currency representation.");
|
|
21
21
|
const RampGetSpendLimit_BalanceSchema = z.object({
|
|
22
22
|
total: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
23
23
|
cleared: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
24
24
|
pending: RampGetSpendLimit_AmountCurrencySchema.nullable().optional()
|
|
25
|
-
}).describe("Details about the current balance of the limit.");
|
|
25
|
+
}).passthrough().describe("Details about the current balance of the limit.");
|
|
26
26
|
const RampGetSpendLimit_SuspensionSchema = z.object({
|
|
27
27
|
inserted_at: z.string().describe("Timestamp when suspension was applied in ISO8601 format").nullable(),
|
|
28
28
|
acting_user_id: z.string().describe("ID of the user who initiated the suspension").nullable(),
|
|
29
29
|
suspended_by_ramp: z.boolean().describe("Indicates if the suspension was initiated by Ramp").nullable()
|
|
30
|
-
}).describe("Suspension (lock) on the limit.");
|
|
30
|
+
}).passthrough().describe("Suspension (lock) on the limit.");
|
|
31
31
|
const RampGetSpendLimit_RestrictionsSchema = z.object({
|
|
32
32
|
limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
33
33
|
interval: z.string().describe("Spending interval (e.g., MONTHLY, YEARLY)").nullable().optional(),
|
|
@@ -40,17 +40,17 @@ const RampGetSpendLimit_RestrictionsSchema = z.object({
|
|
|
40
40
|
blocked_categories: z.array(z.number().int()).describe("List of blocked merchant category codes").nullable().optional(),
|
|
41
41
|
next_interval_reset: z.string().describe("Next interval reset date in ISO8601 format").nullable().optional(),
|
|
42
42
|
transaction_amount_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional()
|
|
43
|
-
}).describe("Restrictions imposed on this limit.");
|
|
43
|
+
}).passthrough().describe("Restrictions imposed on this limit.");
|
|
44
44
|
const RampGetSpendLimit_PermittedSpendTypesSchema = z.object({
|
|
45
45
|
primary_card_enabled: z.boolean().describe("Indicates if primary card spending is enabled").nullable(),
|
|
46
46
|
reimbursements_enabled: z.boolean().describe("Indicates if reimbursements are enabled").nullable()
|
|
47
|
-
}).describe("Specifies the permitted spend types of the limit.");
|
|
48
|
-
const RampGetSpendLimit_FieldValueSchema = z.object({ value: z.string().describe("The field value").nullable().optional() }).describe("Field value for custom form fields.");
|
|
47
|
+
}).passthrough().describe("Specifies the permitted spend types of the limit.");
|
|
48
|
+
const RampGetSpendLimit_FieldValueSchema = z.object({ value: z.string().describe("The field value").nullable().optional() }).passthrough().describe("Field value for custom form fields.");
|
|
49
49
|
const RampGetSpendLimit_FormFieldSchema = z.object({
|
|
50
50
|
value: RampGetSpendLimit_FieldValueSchema.nullable().optional(),
|
|
51
51
|
field_type: z.string().describe("Type of the field (e.g., TEXT)").nullable().optional(),
|
|
52
52
|
mapped_fields: z.array(z.string()).describe("List of mapped field identifiers").nullable().optional()
|
|
53
|
-
}).describe("Custom form field definition.");
|
|
53
|
+
}).passthrough().describe("Custom form field definition.");
|
|
54
54
|
const RampGetSpendLimit_CustomFormFieldSchema = z.object({
|
|
55
55
|
field: RampGetSpendLimit_FormFieldSchema.nullable().optional(),
|
|
56
56
|
label: z.string().describe("Field label").nullable().optional(),
|
|
@@ -63,16 +63,16 @@ const RampGetSpendLimit_CustomFormFieldSchema = z.object({
|
|
|
63
63
|
is_mapped_to_ironclad_field: z.boolean().describe("Indicates if mapped to Ironclad field").nullable().optional(),
|
|
64
64
|
is_used_in_approval_workflow_condition: z.boolean().describe("Indicates if used in approval workflow condition").nullable().optional(),
|
|
65
65
|
is_used_in_custom_form_workflow_condition: z.boolean().describe("Indicates if used in custom form workflow condition").nullable().optional()
|
|
66
|
-
}).describe("Custom form field with metadata.");
|
|
66
|
+
}).passthrough().describe("Custom form field with metadata.");
|
|
67
67
|
const RampGetSpendLimit_CustomFormSchema = z.object({
|
|
68
68
|
label: z.string().describe("Label of the custom form").nullable().optional(),
|
|
69
69
|
fields: z.array(RampGetSpendLimit_CustomFormFieldSchema).describe("List of fields in the custom form").nullable().optional()
|
|
70
|
-
}).describe("Custom form definition.");
|
|
70
|
+
}).passthrough().describe("Custom form definition.");
|
|
71
71
|
const RampGetSpendLimit_CustomFormCollectionLogEntrySchema = z.object({
|
|
72
72
|
forms: z.array(RampGetSpendLimit_CustomFormSchema).describe("List of custom forms").nullable().optional(),
|
|
73
73
|
label: z.string().describe("Label of the collection").nullable().optional()
|
|
74
|
-
}).describe("Custom form collection log entry.");
|
|
75
|
-
const RampGetSpendLimit_CustomFormCollectionResponseSchema = z.object({ custom_form_collection_log_entry: RampGetSpendLimit_CustomFormCollectionLogEntrySchema.nullable().optional() }).describe("Custom form collection with an associated response log entry.");
|
|
74
|
+
}).passthrough().describe("Custom form collection log entry.");
|
|
75
|
+
const RampGetSpendLimit_CustomFormCollectionResponseSchema = z.object({ custom_form_collection_log_entry: RampGetSpendLimit_CustomFormCollectionLogEntrySchema.nullable().optional() }).passthrough().describe("Custom form collection with an associated response log entry.");
|
|
76
76
|
const rampGetSpendLimit = action("RAMP_GET_SPEND_LIMIT", {
|
|
77
77
|
slug: "ramp-get-spend-limit",
|
|
78
78
|
name: "Get Spend Limit",
|
|
@@ -94,7 +94,7 @@ const rampGetSpendLimit = action("RAMP_GET_SPEND_LIMIT", {
|
|
|
94
94
|
permitted_spend_types: RampGetSpendLimit_PermittedSpendTypesSchema.nullable(),
|
|
95
95
|
has_program_overridden: z.boolean().describe("Indicates if the limit's settings override those of its Spend Program").nullable(),
|
|
96
96
|
custom_form_collection_response: RampGetSpendLimit_CustomFormCollectionResponseSchema.nullable().optional()
|
|
97
|
-
}).describe("Response containing detailed information about a spend limit.")
|
|
97
|
+
}).passthrough().describe("Response containing detailed information about a spend limit.")
|
|
98
98
|
});
|
|
99
99
|
//#endregion
|
|
100
100
|
export { rampGetSpendLimit };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-spend-limit.mjs","names":[],"sources":["../../src/actions/get-spend-limit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetSpendLimitInput = z.object({\n spend_limit_id: z.string().describe(\"The unique identifier (UUID) of the spend limit to retrieve\"),\n});\nconst RampGetSpendLimit_CardSchema = z.object({\n card_id: z.string().describe(\"Unique identifier of the card\").nullable(),\n last_four: z.string().describe(\"Last four digits of the card number\").nullable().optional(),\n created_at: z.string().describe(\"Card creation timestamp in ISO8601 format\").nullable().optional(),\n expiration: z.string().describe(\"Card expiration date in MMYY format\").nullable().optional(),\n is_ap_card: z.boolean().describe(\"Indicates if this is an accounts payable card\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the card\").nullable().optional(),\n cardholder_id: z.string().describe(\"Unique identifier of the cardholder\").nullable().optional(),\n via_new_product_or_service: z.boolean().describe(\"Indicates if card was created via new product or service\").nullable().optional(),\n}).describe(\"Card information linked to the spend limit.\");\nconst RampGetSpendLimit_UserSchema = z.object({\n user_id: z.string().describe(\"Unique identifier of the user\").nullable(),\n}).describe(\"User with access to spend from the limit.\");\nconst RampGetSpendLimit_AmountCurrencySchema = z.object({\n amount: z.number().describe(\"Monetary amount in minor units (cents)\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate for minor units (e.g., 100 for cents to dollars)\").nullable().optional(),\n}).describe(\"Amount and currency representation.\");\nconst RampGetSpendLimit_BalanceSchema = z.object({\n total: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n cleared: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n pending: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n}).describe(\"Details about the current balance of the limit.\");\nconst RampGetSpendLimit_SuspensionSchema = z.object({\n inserted_at: z.string().describe(\"Timestamp when suspension was applied in ISO8601 format\").nullable(),\n acting_user_id: z.string().describe(\"ID of the user who initiated the suspension\").nullable(),\n suspended_by_ramp: z.boolean().describe(\"Indicates if the suspension was initiated by Ramp\").nullable(),\n}).describe(\"Suspension (lock) on the limit.\");\nconst RampGetSpendLimit_RestrictionsSchema = z.object({\n limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n interval: z.string().describe(\"Spending interval (e.g., MONTHLY, YEARLY)\").nullable().optional(),\n auto_lock_date: z.string().describe(\"Date when the limit will be automatically locked in ISO8601 format\").nullable().optional(),\n allowed_vendors: z.array(z.number().int()).describe(\"List of allowed vendor IDs\").nullable().optional(),\n blocked_vendors: z.array(z.number().int()).describe(\"List of blocked vendor IDs\").nullable().optional(),\n temporary_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n start_of_interval: z.string().describe(\"Start of current interval in ISO8601 format\").nullable().optional(),\n allowed_categories: z.array(z.number().int()).describe(\"List of allowed merchant category codes\").nullable().optional(),\n blocked_categories: z.array(z.number().int()).describe(\"List of blocked merchant category codes\").nullable().optional(),\n next_interval_reset: z.string().describe(\"Next interval reset date in ISO8601 format\").nullable().optional(),\n transaction_amount_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n}).describe(\"Restrictions imposed on this limit.\");\nconst RampGetSpendLimit_PermittedSpendTypesSchema = z.object({\n primary_card_enabled: z.boolean().describe(\"Indicates if primary card spending is enabled\").nullable(),\n reimbursements_enabled: z.boolean().describe(\"Indicates if reimbursements are enabled\").nullable(),\n}).describe(\"Specifies the permitted spend types of the limit.\");\nconst RampGetSpendLimit_FieldValueSchema = z.object({\n value: z.string().describe(\"The field value\").nullable().optional(),\n}).describe(\"Field value for custom form fields.\");\nconst RampGetSpendLimit_FormFieldSchema = z.object({\n value: RampGetSpendLimit_FieldValueSchema.nullable().optional(),\n field_type: z.string().describe(\"Type of the field (e.g., TEXT)\").nullable().optional(),\n mapped_fields: z.array(z.string()).describe(\"List of mapped field identifiers\").nullable().optional(),\n}).describe(\"Custom form field definition.\");\nconst RampGetSpendLimit_CustomFormFieldSchema = z.object({\n field: RampGetSpendLimit_FormFieldSchema.nullable().optional(),\n label: z.string().describe(\"Field label\").nullable().optional(),\n field_id: z.string().describe(\"Unique identifier of the field\").nullable().optional(),\n required: z.boolean().describe(\"Indicates if field is required\").nullable().optional(),\n conditions: z.record(z.string(), z.unknown()).describe(\"Field conditions\").nullable().optional(),\n description: z.string().describe(\"Field description\").nullable().optional(),\n validation_errors: z.array(z.string()).describe(\"List of validation errors\").nullable().optional(),\n value_display_string: z.string().describe(\"Display string for the field value\").nullable().optional(),\n is_mapped_to_ironclad_field: z.boolean().describe(\"Indicates if mapped to Ironclad field\").nullable().optional(),\n is_used_in_approval_workflow_condition: z.boolean().describe(\"Indicates if used in approval workflow condition\").nullable().optional(),\n is_used_in_custom_form_workflow_condition: z.boolean().describe(\"Indicates if used in custom form workflow condition\").nullable().optional(),\n}).describe(\"Custom form field with metadata.\");\nconst RampGetSpendLimit_CustomFormSchema = z.object({\n label: z.string().describe(\"Label of the custom form\").nullable().optional(),\n fields: z.array(RampGetSpendLimit_CustomFormFieldSchema).describe(\"List of fields in the custom form\").nullable().optional(),\n}).describe(\"Custom form definition.\");\nconst RampGetSpendLimit_CustomFormCollectionLogEntrySchema = z.object({\n forms: z.array(RampGetSpendLimit_CustomFormSchema).describe(\"List of custom forms\").nullable().optional(),\n label: z.string().describe(\"Label of the collection\").nullable().optional(),\n}).describe(\"Custom form collection log entry.\");\nconst RampGetSpendLimit_CustomFormCollectionResponseSchema = z.object({\n custom_form_collection_log_entry: RampGetSpendLimit_CustomFormCollectionLogEntrySchema.nullable().optional(),\n}).describe(\"Custom form collection with an associated response log entry.\");\nexport const RampGetSpendLimitOutput = z.object({\n id: z.string().describe(\"Unique identifier of the limit\").nullable(),\n cards: z.array(RampGetSpendLimit_CardSchema).describe(\"List of cards linked to this limit\"),\n state: z.string().describe(\"Current state of the limit (ACTIVE, SUSPENDED, or TERMINATED)\").nullable(),\n users: z.array(RampGetSpendLimit_UserSchema).describe(\"Members who can spend from the limit\"),\n balance: RampGetSpendLimit_BalanceSchema.nullable().optional(),\n entity_id: z.string().describe(\"Associated business entity of the limit (UUID)\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the spend limit is created in ISO8601 format\").nullable(),\n suspension: RampGetSpendLimit_SuspensionSchema.nullable().optional(),\n display_name: z.string().describe(\"Display name of the limit and all linked cards\").nullable(),\n is_shareable: z.boolean().describe(\"Whether this spend limit is shareable\").nullable(),\n restrictions: RampGetSpendLimit_RestrictionsSchema.nullable().optional(),\n spend_program_id: z.string().describe(\"Unique identifier of the associated Spend Program (UUID)\").nullable().optional(),\n permitted_spend_types: RampGetSpendLimit_PermittedSpendTypesSchema.nullable(),\n has_program_overridden: z.boolean().describe(\"Indicates if the limit's settings override those of its Spend Program\").nullable(),\n custom_form_collection_response: RampGetSpendLimit_CustomFormCollectionResponseSchema.nullable().optional(),\n}).describe(\"Response containing detailed information about a spend limit.\");\n\nexport const rampGetSpendLimit = action(\"RAMP_GET_SPEND_LIMIT\", {\n slug: \"ramp-get-spend-limit\",\n name: \"Get Spend Limit\",\n description: \"Tool to fetch detailed information about a specific spend limit. Use when you need to retrieve comprehensive limit details including balance, restrictions, linked cards, and users.\",\n input: RampGetSpendLimitInput,\n output: RampGetSpendLimitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE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4CAA4C,SAAS;EAC5E,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAC/H,iCAAiC,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-spend-limit.mjs","names":[],"sources":["../../src/actions/get-spend-limit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetSpendLimitInput = z.object({\n spend_limit_id: z.string().describe(\"The unique identifier (UUID) of the spend limit to retrieve\"),\n});\nconst RampGetSpendLimit_CardSchema = z.object({\n card_id: z.string().describe(\"Unique identifier of the card\").nullable(),\n last_four: z.string().describe(\"Last four digits of the card number\").nullable().optional(),\n created_at: z.string().describe(\"Card creation timestamp in ISO8601 format\").nullable().optional(),\n expiration: z.string().describe(\"Card expiration date in MMYY format\").nullable().optional(),\n is_ap_card: z.boolean().describe(\"Indicates if this is an accounts payable card\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the card\").nullable().optional(),\n cardholder_id: z.string().describe(\"Unique identifier of the cardholder\").nullable().optional(),\n via_new_product_or_service: z.boolean().describe(\"Indicates if card was created via new product or service\").nullable().optional(),\n}).passthrough().describe(\"Card information linked to the spend limit.\");\nconst RampGetSpendLimit_UserSchema = z.object({\n user_id: z.string().describe(\"Unique identifier of the user\").nullable(),\n}).passthrough().describe(\"User with access to spend from the limit.\");\nconst RampGetSpendLimit_AmountCurrencySchema = z.object({\n amount: z.number().describe(\"Monetary amount in minor units (cents)\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate for minor units (e.g., 100 for cents to dollars)\").nullable().optional(),\n}).passthrough().describe(\"Amount and currency representation.\");\nconst RampGetSpendLimit_BalanceSchema = z.object({\n total: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n cleared: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n pending: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n}).passthrough().describe(\"Details about the current balance of the limit.\");\nconst RampGetSpendLimit_SuspensionSchema = z.object({\n inserted_at: z.string().describe(\"Timestamp when suspension was applied in ISO8601 format\").nullable(),\n acting_user_id: z.string().describe(\"ID of the user who initiated the suspension\").nullable(),\n suspended_by_ramp: z.boolean().describe(\"Indicates if the suspension was initiated by Ramp\").nullable(),\n}).passthrough().describe(\"Suspension (lock) on the limit.\");\nconst RampGetSpendLimit_RestrictionsSchema = z.object({\n limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n interval: z.string().describe(\"Spending interval (e.g., MONTHLY, YEARLY)\").nullable().optional(),\n auto_lock_date: z.string().describe(\"Date when the limit will be automatically locked in ISO8601 format\").nullable().optional(),\n allowed_vendors: z.array(z.number().int()).describe(\"List of allowed vendor IDs\").nullable().optional(),\n blocked_vendors: z.array(z.number().int()).describe(\"List of blocked vendor IDs\").nullable().optional(),\n temporary_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n start_of_interval: z.string().describe(\"Start of current interval in ISO8601 format\").nullable().optional(),\n allowed_categories: z.array(z.number().int()).describe(\"List of allowed merchant category codes\").nullable().optional(),\n blocked_categories: z.array(z.number().int()).describe(\"List of blocked merchant category codes\").nullable().optional(),\n next_interval_reset: z.string().describe(\"Next interval reset date in ISO8601 format\").nullable().optional(),\n transaction_amount_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n}).passthrough().describe(\"Restrictions imposed on this limit.\");\nconst RampGetSpendLimit_PermittedSpendTypesSchema = z.object({\n primary_card_enabled: z.boolean().describe(\"Indicates if primary card spending is enabled\").nullable(),\n reimbursements_enabled: z.boolean().describe(\"Indicates if reimbursements are enabled\").nullable(),\n}).passthrough().describe(\"Specifies the permitted spend types of the limit.\");\nconst RampGetSpendLimit_FieldValueSchema = z.object({\n value: z.string().describe(\"The field value\").nullable().optional(),\n}).passthrough().describe(\"Field value for custom form fields.\");\nconst RampGetSpendLimit_FormFieldSchema = z.object({\n value: RampGetSpendLimit_FieldValueSchema.nullable().optional(),\n field_type: z.string().describe(\"Type of the field (e.g., TEXT)\").nullable().optional(),\n mapped_fields: z.array(z.string()).describe(\"List of mapped field identifiers\").nullable().optional(),\n}).passthrough().describe(\"Custom form field definition.\");\nconst RampGetSpendLimit_CustomFormFieldSchema = z.object({\n field: RampGetSpendLimit_FormFieldSchema.nullable().optional(),\n label: z.string().describe(\"Field label\").nullable().optional(),\n field_id: z.string().describe(\"Unique identifier of the field\").nullable().optional(),\n required: z.boolean().describe(\"Indicates if field is required\").nullable().optional(),\n conditions: z.record(z.string(), z.unknown()).describe(\"Field conditions\").nullable().optional(),\n description: z.string().describe(\"Field description\").nullable().optional(),\n validation_errors: z.array(z.string()).describe(\"List of validation errors\").nullable().optional(),\n value_display_string: z.string().describe(\"Display string for the field value\").nullable().optional(),\n is_mapped_to_ironclad_field: z.boolean().describe(\"Indicates if mapped to Ironclad field\").nullable().optional(),\n is_used_in_approval_workflow_condition: z.boolean().describe(\"Indicates if used in approval workflow condition\").nullable().optional(),\n is_used_in_custom_form_workflow_condition: z.boolean().describe(\"Indicates if used in custom form workflow condition\").nullable().optional(),\n}).passthrough().describe(\"Custom form field with metadata.\");\nconst RampGetSpendLimit_CustomFormSchema = z.object({\n label: z.string().describe(\"Label of the custom form\").nullable().optional(),\n fields: z.array(RampGetSpendLimit_CustomFormFieldSchema).describe(\"List of fields in the custom form\").nullable().optional(),\n}).passthrough().describe(\"Custom form definition.\");\nconst RampGetSpendLimit_CustomFormCollectionLogEntrySchema = z.object({\n forms: z.array(RampGetSpendLimit_CustomFormSchema).describe(\"List of custom forms\").nullable().optional(),\n label: z.string().describe(\"Label of the collection\").nullable().optional(),\n}).passthrough().describe(\"Custom form collection log entry.\");\nconst RampGetSpendLimit_CustomFormCollectionResponseSchema = z.object({\n custom_form_collection_log_entry: RampGetSpendLimit_CustomFormCollectionLogEntrySchema.nullable().optional(),\n}).passthrough().describe(\"Custom form collection with an associated response log entry.\");\nexport const RampGetSpendLimitOutput = z.object({\n id: z.string().describe(\"Unique identifier of the limit\").nullable(),\n cards: z.array(RampGetSpendLimit_CardSchema).describe(\"List of cards linked to this limit\"),\n state: z.string().describe(\"Current state of the limit (ACTIVE, SUSPENDED, or TERMINATED)\").nullable(),\n users: z.array(RampGetSpendLimit_UserSchema).describe(\"Members who can spend from the limit\"),\n balance: RampGetSpendLimit_BalanceSchema.nullable().optional(),\n entity_id: z.string().describe(\"Associated business entity of the limit (UUID)\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the spend limit is created in ISO8601 format\").nullable(),\n suspension: RampGetSpendLimit_SuspensionSchema.nullable().optional(),\n display_name: z.string().describe(\"Display name of the limit and all linked cards\").nullable(),\n is_shareable: z.boolean().describe(\"Whether this spend limit is shareable\").nullable(),\n restrictions: RampGetSpendLimit_RestrictionsSchema.nullable().optional(),\n spend_program_id: z.string().describe(\"Unique identifier of the associated Spend Program (UUID)\").nullable().optional(),\n permitted_spend_types: RampGetSpendLimit_PermittedSpendTypesSchema.nullable(),\n has_program_overridden: z.boolean().describe(\"Indicates if the limit's settings override those of its Spend Program\").nullable(),\n custom_form_collection_response: RampGetSpendLimit_CustomFormCollectionResponseSchema.nullable().optional(),\n}).passthrough().describe(\"Response containing detailed information about a spend limit.\");\n\nexport const rampGetSpendLimit = action(\"RAMP_GET_SPEND_LIMIT\", {\n slug: \"ramp-get-spend-limit\",\n name: \"Get Spend Limit\",\n description: \"Tool to fetch detailed information about a specific spend limit. Use when you need to retrieve comprehensive limit details including balance, restrictions, linked cards, and users.\",\n input: RampGetSpendLimitInput,\n output: RampGetSpendLimitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EACnG,CAAC;AACD,MAAM,+BAA+B,EAAE,OAAO;CAC5C,S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S,CAAC,CAAC,SAAS;EACvE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,uBAAuB,4CAA4C,SAAS;EAC5E,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAC/H,iCAAiC,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
|
|
@@ -35,7 +35,7 @@ const RampGetStatement_FileDownloadDataSchema = zod.z.object({
|
|
|
35
35
|
id: zod.z.string().describe("Unique identifier of the statement.").nullable(),
|
|
36
36
|
download_url: zod.z.string().describe("URL to download the statement file.").nullable().optional()
|
|
37
37
|
}).passthrough().describe("Data returned when requesting a statement in PDF or CSV format.");
|
|
38
|
-
const RampGetStatementOutput = zod.z.object({ response_data: zod.z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]) });
|
|
38
|
+
const RampGetStatementOutput = zod.z.object({ response_data: zod.z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]) }).passthrough();
|
|
39
39
|
const rampGetStatement = require_action.action("RAMP_GET_STATEMENT", {
|
|
40
40
|
slug: "ramp-get-statement",
|
|
41
41
|
name: "Get Statement",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-statement.cjs","names":["z","action"],"sources":["../../src/actions/get-statement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetStatementInput = z.object({\n format: z.enum([\"json\", \"pdf\", \"csv\"]).default(\"json\").describe(\"Format of the statement: json, pdf, csv\").optional(),\n statement_id: z.string().describe(\"ID of the statement to retrieve\"),\n});\nconst RampGetStatement_MonetaryAmountSchema = z.object({\n amount: z.number().int().describe(\"The amount in minor units (e.g., cents).\").nullable(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD').\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major currency units (e.g., 100 for USD).\").nullable(),\n}).passthrough().describe(\"Represents a monetary amount with currency information.\");\nconst RampGetStatement_StatementLineSchema = z.object({\n id: z.string().describe(\"Unique identifier for the statement line.\").nullable(),\n type: z.string().describe(\"Type of statement line (e.g., 'CARD_TRANSACTION').\").nullable(),\n cleared_at: z.string().describe(\"Timestamp when the transaction was cleared (ISO 8601 format).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Represents a line item within a statement.\");\nconst RampGetStatement_StatementDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\").nullable(),\n credits: RampGetStatement_MonetaryAmountSchema.nullable().optional(),\n end_date: z.string().describe(\"End date of the statement period (ISO 8601 format).\").nullable().optional(),\n payments: RampGetStatement_MonetaryAmountSchema.nullable(),\n start_date: z.string().describe(\"Start date of the statement period (ISO 8601 format).\").nullable().optional(),\n statement_url: z.string().describe(\"URL to download the statement PDF.\").nullable().optional(),\n ending_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n opening_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n statement_lines: z.array(RampGetStatement_StatementLineSchema).describe(\"List of statement line items.\").nullable().optional(),\n}).passthrough().describe(\"Detailed statement data returned by the API.\");\nconst RampGetStatement_FileDownloadDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\").nullable(),\n download_url: z.string().describe(\"URL to download the statement file.\").nullable().optional(),\n}).passthrough().describe(\"Data returned when requesting a statement in PDF or CSV format.\");\nexport const RampGetStatementOutput = z.object({\n response_data: z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]),\n});\n\nexport const rampGetStatement = action(\"RAMP_GET_STATEMENT\", {\n slug: \"ramp-get-statement\",\n name: \"Get Statement\",\n description: \"Tool for retrieving statement details or downloading statements. Supports JSON, PDF, and C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AAC,SAAS;CACxE,SAAS,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,sCAAsC,SAAS;CACzD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,gBAAgB,sCAAsC,SAAS;CAC/D,iBAAiB,sCAAsC,SAAS;CAChE,iBAAiBA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAC3F,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,eAAeA,IAAAA,EAAE,MAAM,CAAC,sCAAsC,uCAAuC,CAAC,EACxG,CAAC;
|
|
1
|
+
{"version":3,"file":"get-statement.cjs","names":["z","action"],"sources":["../../src/actions/get-statement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetStatementInput = z.object({\n format: z.enum([\"json\", \"pdf\", \"csv\"]).default(\"json\").describe(\"Format of the statement: json, pdf, csv\").optional(),\n statement_id: z.string().describe(\"ID of the statement to retrieve\"),\n});\nconst RampGetStatement_MonetaryAmountSchema = z.object({\n amount: z.number().int().describe(\"The amount in minor units (e.g., cents).\").nullable(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD').\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major currency units (e.g., 100 for USD).\").nullable(),\n}).passthrough().describe(\"Represents a monetary amount with currency information.\");\nconst RampGetStatement_StatementLineSchema = z.object({\n id: z.string().describe(\"Unique identifier for the statement line.\").nullable(),\n type: z.string().describe(\"Type of statement line (e.g., 'CARD_TRANSACTION').\").nullable(),\n cleared_at: z.string().describe(\"Timestamp when the transaction was cleared (ISO 8601 format).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Represents a line item within a statement.\");\nconst RampGetStatement_StatementDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\").nullable(),\n credits: RampGetStatement_MonetaryAmountSchema.nullable().optional(),\n end_date: z.string().describe(\"End date of the statement period (ISO 8601 format).\").nullable().optional(),\n payments: RampGetStatement_MonetaryAmountSchema.nullable(),\n start_date: z.string().describe(\"Start date of the statement period (ISO 8601 format).\").nullable().optional(),\n statement_url: z.string().describe(\"URL to download the statement PDF.\").nullable().optional(),\n ending_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n opening_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n statement_lines: z.array(RampGetStatement_StatementLineSchema).describe(\"List of statement line items.\").nullable().optional(),\n}).passthrough().describe(\"Detailed statement data returned by the API.\");\nconst RampGetStatement_FileDownloadDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\").nullable(),\n download_url: z.string().describe(\"URL to download the statement file.\").nullable().optional(),\n}).passthrough().describe(\"Data returned when requesting a statement in PDF or CSV format.\");\nexport const RampGetStatementOutput = z.object({\n response_data: z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]),\n}).passthrough();\n\nexport const rampGetStatement = action(\"RAMP_GET_STATEMENT\", {\n slug: \"ramp-get-statement\",\n name: \"Get Statement\",\n description: \"Tool for retrieving statement details or downloading statements. Supports JSON, PDF, and CSV formats for financial reporting.\",\n input: RampGetStatementInput,\n output: RampGetStatementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACrE,CAAC;AACD,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACrF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAA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|
@@ -45,7 +45,7 @@ declare const RampGetStatementOutput: z.ZodObject<{
|
|
|
45
45
|
id: z.ZodNullable<z.ZodString>;
|
|
46
46
|
download_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
}, z.core.$loose>]>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const rampGetStatement: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
statement_id: string;
|
|
51
51
|
format?: "json" | "pdf" | "csv" | undefined;
|
|
@@ -45,7 +45,7 @@ declare const RampGetStatementOutput: z.ZodObject<{
|
|
|
45
45
|
id: z.ZodNullable<z.ZodString>;
|
|
46
46
|
download_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
}, z.core.$loose>]>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const rampGetStatement: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
statement_id: string;
|
|
51
51
|
format?: "json" | "pdf" | "csv" | undefined;
|
|
@@ -40,7 +40,7 @@ const rampGetStatement = action("RAMP_GET_STATEMENT", {
|
|
|
40
40
|
name: "Get Statement",
|
|
41
41
|
description: "Tool for retrieving statement details or downloading statements. Supports JSON, PDF, and CSV formats for financial reporting.",
|
|
42
42
|
input: RampGetStatementInput,
|
|
43
|
-
output: z.object({ response_data: z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]) })
|
|
43
|
+
output: z.object({ response_data: z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]) }).passthrough()
|
|
44
44
|
});
|
|
45
45
|
//#endregion
|
|
46
46
|
export { rampGetStatement };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-statement.mjs","names":[],"sources":["../../src/actions/get-statement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetStatementInput = z.object({\n format: z.enum([\"json\", \"pdf\", \"csv\"]).default(\"json\").describe(\"Format of the statement: json, pdf, csv\").optional(),\n statement_id: z.string().describe(\"ID of the statement to retrieve\"),\n});\nconst RampGetStatement_MonetaryAmountSchema = z.object({\n amount: z.number().int().describe(\"The amount in minor units (e.g., cents).\").nullable(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD').\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major currency units (e.g., 100 for USD).\").nullable(),\n}).passthrough().describe(\"Represents a monetary amount with currency information.\");\nconst RampGetStatement_StatementLineSchema = z.object({\n id: z.string().describe(\"Unique identifier for the statement line.\").nullable(),\n type: z.string().describe(\"Type of statement line (e.g., 'CARD_TRANSACTION').\").nullable(),\n cleared_at: z.string().describe(\"Timestamp when the transaction was cleared (ISO 8601 format).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Represents a line item within a statement.\");\nconst RampGetStatement_StatementDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\").nullable(),\n credits: RampGetStatement_MonetaryAmountSchema.nullable().optional(),\n end_date: z.string().describe(\"End date of the statement period (ISO 8601 format).\").nullable().optional(),\n payments: RampGetStatement_MonetaryAmountSchema.nullable(),\n start_date: z.string().describe(\"Start date of the statement period (ISO 8601 format).\").nullable().optional(),\n statement_url: z.string().describe(\"URL to download the statement PDF.\").nullable().optional(),\n ending_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n opening_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n statement_lines: z.array(RampGetStatement_StatementLineSchema).describe(\"List of statement line items.\").nullable().optional(),\n}).passthrough().describe(\"Detailed statement data returned by the API.\");\nconst RampGetStatement_FileDownloadDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\").nullable(),\n download_url: z.string().describe(\"URL to download the statement file.\").nullable().optional(),\n}).passthrough().describe(\"Data returned when requesting a statement in PDF or CSV format.\");\nexport const RampGetStatementOutput = z.object({\n response_data: z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]),\n});\n\nexport const rampGetStatement = action(\"RAMP_GET_STATEMENT\", {\n slug: \"ramp-get-statement\",\n name: \"Get Statement\",\n description: \"Tool for retrieving statement details or downloading statements. Supports JSON, PDF, and CSV formats for financial reporting.\",\n input: RampGetStatementInput,\n output: RampGetStatementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACrE,CAAC;AACD,MAAM,wCAAwC,EAAE,OAAO;CACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACrF,4BAA4B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,SAAS,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,sCAAsC,SAAS;CACzD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,gBAAgB,sCAAsC,SAAS;CAC/D,iBAAiB,sCAAsC,SAAS;CAChE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAK3F,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,eAAe,EAAE,MAAM,CAAC,sCAAsC,uCAAuC,CAAC,EACxG,
|
|
1
|
+
{"version":3,"file":"get-statement.mjs","names":[],"sources":["../../src/actions/get-statement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetStatementInput = z.object({\n format: z.enum([\"json\", \"pdf\", \"csv\"]).default(\"json\").describe(\"Format of the statement: json, pdf, csv\").optional(),\n statement_id: z.string().describe(\"ID of the statement to retrieve\"),\n});\nconst RampGetStatement_MonetaryAmountSchema = z.object({\n amount: z.number().int().describe(\"The amount in minor units (e.g., cents).\").nullable(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD').\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major currency units (e.g., 100 for USD).\").nullable(),\n}).passthrough().describe(\"Represents a monetary amount with currency information.\");\nconst RampGetStatement_StatementLineSchema = z.object({\n id: z.string().describe(\"Unique identifier for the statement line.\").nullable(),\n type: z.string().describe(\"Type of statement line (e.g., 'CARD_TRANSACTION').\").nullable(),\n cleared_at: z.string().describe(\"Timestamp when the transaction was cleared (ISO 8601 format).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Represents a line item within a statement.\");\nconst RampGetStatement_StatementDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\").nullable(),\n credits: RampGetStatement_MonetaryAmountSchema.nullable().optional(),\n end_date: z.string().describe(\"End date of the statement period (ISO 8601 format).\").nullable().optional(),\n payments: RampGetStatement_MonetaryAmountSchema.nullable(),\n start_date: z.string().describe(\"Start date of the statement period (ISO 8601 format).\").nullable().optional(),\n statement_url: z.string().describe(\"URL to download the statement PDF.\").nullable().optional(),\n ending_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n opening_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n statement_lines: z.array(RampGetStatement_StatementLineSchema).describe(\"List of statement line items.\").nullable().optional(),\n}).passthrough().describe(\"Detailed statement data returned by the API.\");\nconst RampGetStatement_FileDownloadDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\").nullable(),\n download_url: z.string().describe(\"URL to download the statement file.\").nullable().optional(),\n}).passthrough().describe(\"Data returned when requesting a statement in PDF or CSV format.\");\nexport const RampGetStatementOutput = z.object({\n response_data: z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]),\n}).passthrough();\n\nexport const rampGetStatement = action(\"RAMP_GET_STATEMENT\", {\n slug: \"ramp-get-statement\",\n name: \"Get Statement\",\n description: \"Tool for retrieving statement details or downloading statements. Supports JSON, PDF, and CSV formats for financial reporting.\",\n input: RampGetStatementInput,\n output: RampGetStatementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACrE,CAAC;AACD,MAAM,wCAAwC,EAAE,OAAO;CACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACrF,4BAA4B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,SAAS,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,sCAAsC,SAAS;CACzD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,gBAAgB,sCAAsC,SAAS;CAC/D,iBAAiB,sCAAsC,SAAS;CAChE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAK3F,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,eAAe,EAAE,MAAM,CAAC,sCAAsC,uCAAuC,CAAC,EACxG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -24,7 +24,7 @@ const RampGetTransactionOutput = zod.z.object({
|
|
|
24
24
|
amount: zod.z.number().describe("Transaction amount").nullable(),
|
|
25
25
|
card_id: zod.z.string().describe("Identifier of the card used for the transaction").nullable().optional(),
|
|
26
26
|
trip_id: zod.z.string().describe("Trip ID if associated with a trip").nullable().optional(),
|
|
27
|
-
disputes: zod.z.array(zod.z.
|
|
27
|
+
disputes: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of disputes").nullable().optional(),
|
|
28
28
|
limit_id: zod.z.string().describe("Limit ID associated with the transaction").nullable().optional(),
|
|
29
29
|
receipts: zod.z.array(zod.z.string()).describe("List of receipt IDs").nullable().optional(),
|
|
30
30
|
entity_id: zod.z.string().describe("Business entity ID").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-transaction.cjs","names":["z","action"],"sources":["../../src/actions/get-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetTransactionInput = z.object({\n transaction_id: z.string().describe(\"ID of the transaction to retrieve\"),\n});\nconst RampGetTransaction_CardHolderSchema = z.object({\n user_id: z.string().describe(\"User identifier\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the cardholder\").nullable().optional(),\n first_name: z.string().describe(\"First name of the cardholder\").nullable().optional(),\n employee_id: z.string().describe(\"Employee identifier\").nullable().optional(),\n location_id: z.string().describe(\"Location identifier\").nullable().optional(),\n department_id: z.string().describe(\"Department identifier\").nullable().optional(),\n location_name: z.string().describe(\"Location name\").nullable().optional(),\n department_name: z.string().describe(\"Department name\").nullable().optional(),\n}).passthrough().describe(\"Card holder information\");\nconst RampGetTransaction_PolicyViolationSchema = z.object({\n memo: z.string().describe(\"Policy violation memo\").nullable().optional(),\n type: z.string().describe(\"Type of policy violation\").nullable().optional(),\n created_at: z.string().describe(\"When the violation was created\").nullable().optional(),\n}).passthrough().describe(\"Policy violation information\");\nexport const RampGetTransactionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transaction\").nullable(),\n memo: z.string().describe(\"Memo or note associated with the transaction\").nullable().optional(),\n state: z.string().describe(\"Current state or status of the transaction\").nullable(),\n amount: z.number().describe(\"Transaction amount\").nullable(),\n card_id: z.string().describe(\"Identifier of the card used for the transaction\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID if associated with a trip\").nullable().optional(),\n disputes: z.array(z.
|
|
1
|
+
{"version":3,"file":"get-transaction.cjs","names":["z","action"],"sources":["../../src/actions/get-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetTransactionInput = z.object({\n transaction_id: z.string().describe(\"ID of the transaction to retrieve\"),\n});\nconst RampGetTransaction_CardHolderSchema = z.object({\n user_id: z.string().describe(\"User identifier\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the cardholder\").nullable().optional(),\n first_name: z.string().describe(\"First name of the cardholder\").nullable().optional(),\n employee_id: z.string().describe(\"Employee identifier\").nullable().optional(),\n location_id: z.string().describe(\"Location identifier\").nullable().optional(),\n department_id: z.string().describe(\"Department identifier\").nullable().optional(),\n location_name: z.string().describe(\"Location name\").nullable().optional(),\n department_name: z.string().describe(\"Department name\").nullable().optional(),\n}).passthrough().describe(\"Card holder information\");\nconst RampGetTransaction_PolicyViolationSchema = z.object({\n memo: z.string().describe(\"Policy violation memo\").nullable().optional(),\n type: z.string().describe(\"Type of policy violation\").nullable().optional(),\n created_at: z.string().describe(\"When the violation was created\").nullable().optional(),\n}).passthrough().describe(\"Policy violation information\");\nexport const RampGetTransactionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transaction\").nullable(),\n memo: z.string().describe(\"Memo or note associated with the transaction\").nullable().optional(),\n state: z.string().describe(\"Current state or status of the transaction\").nullable(),\n amount: z.number().describe(\"Transaction amount\").nullable(),\n card_id: z.string().describe(\"Identifier of the card used for the transaction\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID if associated with a trip\").nullable().optional(),\n disputes: z.array(z.record(z.string(), z.unknown())).describe(\"List of disputes\").nullable().optional(),\n limit_id: z.string().describe(\"Limit ID associated with the transaction\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt IDs\").nullable().optional(),\n entity_id: z.string().describe(\"Business entity ID\").nullable().optional(),\n trip_name: z.string().describe(\"Trip name if associated with a trip\").nullable().optional(),\n card_holder: RampGetTransaction_CardHolderSchema.nullable().optional(),\n merchant_id: z.string().describe(\"Unique identifier for the merchant\").nullable().optional(),\n sync_status: z.string().describe(\"Sync status of the transaction\").nullable().optional(),\n card_present: z.boolean().describe(\"Whether the card was physically present\").nullable().optional(),\n statement_id: z.string().describe(\"Statement ID for the transaction\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code for the transaction\").nullable().optional(),\n merchant_name: z.string().describe(\"Name of the merchant where the transaction occurred\").nullable().optional(),\n sk_category_id: z.number().int().describe(\"Ramp category ID\").nullable().optional(),\n accounting_date: z.string().describe(\"Date for accounting purposes\").nullable().optional(),\n settlement_date: z.string().describe(\"Date when the transaction was settled\").nullable().optional(),\n sk_category_name: z.string().describe(\"Ramp category name\").nullable().optional(),\n policy_violations: z.array(RampGetTransaction_PolicyViolationSchema).describe(\"List of policy violations\").nullable().optional(),\n merchant_descriptor: z.string().describe(\"Merchant descriptor\").nullable().optional(),\n user_transaction_time: z.string().describe(\"Timestamp when the transaction occurred\").nullable().optional(),\n}).passthrough().describe(\"Response containing transaction details\");\n\nexport const rampGetTransaction = action(\"RAMP_GET_TRANSACTION\", {\n slug: \"ramp-get-transaction\",\n name: \"Get Transaction Details\",\n description: \"Tool for retrieving complete details of a specific transaction. Includes merchant details, receipts, accounting codes, and dispute information.\",\n input: RampGetTransactionInput,\n output: RampGetTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,EACzE,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,WAAWA,IA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ACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const RampGetTransactionOutput: z.ZodObject<{
|
|
|
11
11
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
12
12
|
card_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
disputes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
14
|
+
disputes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
15
15
|
limit_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
receipts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
17
|
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -11,7 +11,7 @@ declare const RampGetTransactionOutput: z.ZodObject<{
|
|
|
11
11
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
12
12
|
card_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
disputes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
14
|
+
disputes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
15
15
|
limit_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
receipts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
17
|
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -29,7 +29,7 @@ const rampGetTransaction = action("RAMP_GET_TRANSACTION", {
|
|
|
29
29
|
amount: z.number().describe("Transaction amount").nullable(),
|
|
30
30
|
card_id: z.string().describe("Identifier of the card used for the transaction").nullable().optional(),
|
|
31
31
|
trip_id: z.string().describe("Trip ID if associated with a trip").nullable().optional(),
|
|
32
|
-
disputes: z.array(z.
|
|
32
|
+
disputes: z.array(z.record(z.string(), z.unknown())).describe("List of disputes").nullable().optional(),
|
|
33
33
|
limit_id: z.string().describe("Limit ID associated with the transaction").nullable().optional(),
|
|
34
34
|
receipts: z.array(z.string()).describe("List of receipt IDs").nullable().optional(),
|
|
35
35
|
entity_id: z.string().describe("Business entity ID").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-transaction.mjs","names":[],"sources":["../../src/actions/get-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetTransactionInput = z.object({\n transaction_id: z.string().describe(\"ID of the transaction to retrieve\"),\n});\nconst RampGetTransaction_CardHolderSchema = z.object({\n user_id: z.string().describe(\"User identifier\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the cardholder\").nullable().optional(),\n first_name: z.string().describe(\"First name of the cardholder\").nullable().optional(),\n employee_id: z.string().describe(\"Employee identifier\").nullable().optional(),\n location_id: z.string().describe(\"Location identifier\").nullable().optional(),\n department_id: z.string().describe(\"Department identifier\").nullable().optional(),\n location_name: z.string().describe(\"Location name\").nullable().optional(),\n department_name: z.string().describe(\"Department name\").nullable().optional(),\n}).passthrough().describe(\"Card holder information\");\nconst RampGetTransaction_PolicyViolationSchema = z.object({\n memo: z.string().describe(\"Policy violation memo\").nullable().optional(),\n type: z.string().describe(\"Type of policy violation\").nullable().optional(),\n created_at: z.string().describe(\"When the violation was created\").nullable().optional(),\n}).passthrough().describe(\"Policy violation information\");\nexport const RampGetTransactionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transaction\").nullable(),\n memo: z.string().describe(\"Memo or note associated with the transaction\").nullable().optional(),\n state: z.string().describe(\"Current state or status of the transaction\").nullable(),\n amount: z.number().describe(\"Transaction amount\").nullable(),\n card_id: z.string().describe(\"Identifier of the card used for the transaction\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID if associated with a trip\").nullable().optional(),\n disputes: z.array(z.
|
|
1
|
+
{"version":3,"file":"get-transaction.mjs","names":[],"sources":["../../src/actions/get-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetTransactionInput = z.object({\n transaction_id: z.string().describe(\"ID of the transaction to retrieve\"),\n});\nconst RampGetTransaction_CardHolderSchema = z.object({\n user_id: z.string().describe(\"User identifier\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the cardholder\").nullable().optional(),\n first_name: z.string().describe(\"First name of the cardholder\").nullable().optional(),\n employee_id: z.string().describe(\"Employee identifier\").nullable().optional(),\n location_id: z.string().describe(\"Location identifier\").nullable().optional(),\n department_id: z.string().describe(\"Department identifier\").nullable().optional(),\n location_name: z.string().describe(\"Location name\").nullable().optional(),\n department_name: z.string().describe(\"Department name\").nullable().optional(),\n}).passthrough().describe(\"Card holder information\");\nconst RampGetTransaction_PolicyViolationSchema = z.object({\n memo: z.string().describe(\"Policy violation memo\").nullable().optional(),\n type: z.string().describe(\"Type of policy violation\").nullable().optional(),\n created_at: z.string().describe(\"When the violation was created\").nullable().optional(),\n}).passthrough().describe(\"Policy violation information\");\nexport const RampGetTransactionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transaction\").nullable(),\n memo: z.string().describe(\"Memo or note associated with the transaction\").nullable().optional(),\n state: z.string().describe(\"Current state or status of the transaction\").nullable(),\n amount: z.number().describe(\"Transaction amount\").nullable(),\n card_id: z.string().describe(\"Identifier of the card used for the transaction\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID if associated with a trip\").nullable().optional(),\n disputes: z.array(z.record(z.string(), z.unknown())).describe(\"List of disputes\").nullable().optional(),\n limit_id: z.string().describe(\"Limit ID associated with the transaction\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt IDs\").nullable().optional(),\n entity_id: z.string().describe(\"Business entity ID\").nullable().optional(),\n trip_name: z.string().describe(\"Trip name if associated with a trip\").nullable().optional(),\n card_holder: RampGetTransaction_CardHolderSchema.nullable().optional(),\n merchant_id: z.string().describe(\"Unique identifier for the merchant\").nullable().optional(),\n sync_status: z.string().describe(\"Sync status of the transaction\").nullable().optional(),\n card_present: z.boolean().describe(\"Whether the card was physically present\").nullable().optional(),\n statement_id: z.string().describe(\"Statement ID for the transaction\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code for the transaction\").nullable().optional(),\n merchant_name: z.string().describe(\"Name of the merchant where the transaction occurred\").nullable().optional(),\n sk_category_id: z.number().int().describe(\"Ramp category ID\").nullable().optional(),\n accounting_date: z.string().describe(\"Date for accounting purposes\").nullable().optional(),\n settlement_date: z.string().describe(\"Date when the transaction was settled\").nullable().optional(),\n sk_category_name: z.string().describe(\"Ramp category name\").nullable().optional(),\n policy_violations: z.array(RampGetTransaction_PolicyViolationSchema).describe(\"List of policy violations\").nullable().optional(),\n merchant_descriptor: z.string().describe(\"Merchant descriptor\").nullable().optional(),\n user_transaction_time: z.string().describe(\"Timestamp when the transaction occurred\").nullable().optional(),\n}).passthrough().describe(\"Response containing transaction details\");\n\nexport const rampGetTransaction = action(\"RAMP_GET_TRANSACTION\", {\n slug: \"ramp-get-transaction\",\n name: \"Get Transaction Details\",\n description: \"Tool for retrieving complete details of a specific transaction. Includes merchant details, receipts, accounting codes, and dispute information.\",\n input: RampGetTransactionInput,\n output: RampGetTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,EACzE,CAAC;AACD,MAAM,sCAAsC,EAAE,OAAO;CACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CA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O,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,mBAAmB,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const RampGetUserInput = zod.z.object({ user_id: zod.z.string().describe("The un
|
|
|
5
5
|
const RampGetUser_CustomFieldSchema = zod.z.object({
|
|
6
6
|
name: zod.z.string().describe("Name of the custom field.").nullable(),
|
|
7
7
|
value: zod.z.string().describe("Value of the custom field.").nullable()
|
|
8
|
-
}).describe("Custom field metadata attached to a user.");
|
|
8
|
+
}).passthrough().describe("Custom field metadata attached to a user.");
|
|
9
9
|
const RampGetUserOutput = zod.z.object({
|
|
10
10
|
id: zod.z.string().describe("Unique identifier of the user (UUID format).").nullable(),
|
|
11
11
|
role: zod.z.string().describe("The employee's role. Possible values: AUDITOR, BUSINESS_ADMIN, BUSINESS_BOOKKEEPER, BUSINESS_OWNER, BUSINESS_USER, GUEST_USER, IT_ADMIN.").nullable(),
|
|
@@ -23,7 +23,7 @@ const RampGetUserOutput = zod.z.object({
|
|
|
23
23
|
custom_fields: zod.z.array(RampGetUser_CustomFieldSchema).describe("A list of custom fields of the user."),
|
|
24
24
|
department_id: zod.z.string().describe("Unique identifier of the employee's department (UUID format).").nullable().optional(),
|
|
25
25
|
scheduled_deactivation_date: zod.z.string().describe("The date when the user is scheduled to be deactivated. Presented in ISO8601 format.").nullable().optional()
|
|
26
|
-
}).describe("Response containing detailed information about a Ramp user.");
|
|
26
|
+
}).passthrough().describe("Response containing detailed information about a Ramp user.");
|
|
27
27
|
const rampGetUser = require_action.action("RAMP_GET_USER", {
|
|
28
28
|
slug: "ramp-get-user",
|
|
29
29
|
name: "Get User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier (UUID) of the user to retrieve\"),\n});\nconst RampGetUser_CustomFieldSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n value: z.string().describe(\"Value of the custom field.\").nullable(),\n}).describe(\"Custom field metadata attached to a user.\");\nexport const RampGetUserOutput = z.object({\n id: z.string().describe(\"Unique identifier of the user (UUID format).\").nullable(),\n role: z.string().describe(\"The employee's role. Possible values: AUDITOR, BUSINESS_ADMIN, BUSINESS_BOOKKEEPER, BUSINESS_OWNER, BUSINESS_USER, GUEST_USER, IT_ADMIN.\").nullable(),\n email: z.string().describe(\"The employee's email address.\").nullable(),\n phone: z.string().describe(\"The employee's phone number.\").nullable().optional(),\n status: z.string().describe(\"Current status of the user account. Possible values: INVITE_EXPIRED, INVITE_PENDING, USER_ACTIVE, USER_INACTIVE, USER_ONBOARDING, USER_SUSPENDED.\").nullable(),\n entity_id: z.string().describe(\"Unique identifier of business entity user is associated with (UUID format).\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the employee.\").nullable(),\n first_name: z.string().describe(\"First name of the employee.\").nullable(),\n is_manager: z.boolean().describe(\"Whether the employee is a manager.\").nullable(),\n manager_id: z.string().describe(\"Unique identifier of the employee's manager (UUID format).\").nullable().optional(),\n business_id: z.string().describe(\"Unique identifier of the company that the employee is working for (UUID format).\").nullable().optional(),\n employee_id: z.string().describe(\"An alternative identifier for an employee, coming from external systems, which can be used in place of an email.\").nullable().optional(),\n location_id: z.string().describe(\"Unique identifier of the employee's location (UUID format).\").nullable().optional(),\n custom_fields: z.array(RampGetUser_CustomFieldSchema).describe(\"A list of custom fields of the user.\"),\n department_id: z.string().describe(\"Unique identifier of the employee's department (UUID format).\").nullable().optional(),\n scheduled_deactivation_date: z.string().describe(\"The date when the user is scheduled to be deactivated. Presented in ISO8601 format.\").nullable().optional(),\n}).describe(\"Response containing detailed information about a Ramp user.\");\n\nexport const rampGetUser = action(\"RAMP_GET_USER\", {\n slug: \"ramp-get-user\",\n name: \"Get User\",\n description: \"Tool to retrieve detailed information about a specific Ramp user by their ID. Use when you need complete user profile information including role, status, department, and custom fields.\",\n input: RampGetUserInput,\n output: RampGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAmBA,IAAAA,EAAE,OAAO,EACvC,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EACrF,CAAC;AACD,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier (UUID) of the user to retrieve\"),\n});\nconst RampGetUser_CustomFieldSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n value: z.string().describe(\"Value of the custom field.\").nullable(),\n}).passthrough().describe(\"Custom field metadata attached to a user.\");\nexport const RampGetUserOutput = z.object({\n id: z.string().describe(\"Unique identifier of the user (UUID format).\").nullable(),\n role: z.string().describe(\"The employee's role. Possible values: AUDITOR, BUSINESS_ADMIN, BUSINESS_BOOKKEEPER, BUSINESS_OWNER, BUSINESS_USER, GUEST_USER, IT_ADMIN.\").nullable(),\n email: z.string().describe(\"The employee's email address.\").nullable(),\n phone: z.string().describe(\"The employee's phone number.\").nullable().optional(),\n status: z.string().describe(\"Current status of the user account. Possible values: INVITE_EXPIRED, INVITE_PENDING, USER_ACTIVE, USER_INACTIVE, USER_ONBOARDING, USER_SUSPENDED.\").nullable(),\n entity_id: z.string().describe(\"Unique identifier of business entity user is associated with (UUID format).\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the employee.\").nullable(),\n first_name: z.string().describe(\"First name of the employee.\").nullable(),\n is_manager: z.boolean().describe(\"Whether the employee is a manager.\").nullable(),\n manager_id: z.string().describe(\"Unique identifier of the employee's manager (UUID format).\").nullable().optional(),\n business_id: z.string().describe(\"Unique identifier of the company that the employee is working for (UUID format).\").nullable().optional(),\n employee_id: z.string().describe(\"An alternative identifier for an employee, coming from external systems, which can be used in place of an email.\").nullable().optional(),\n location_id: z.string().describe(\"Unique identifier of the employee's location (UUID format).\").nullable().optional(),\n custom_fields: z.array(RampGetUser_CustomFieldSchema).describe(\"A list of custom fields of the user.\"),\n department_id: z.string().describe(\"Unique identifier of the employee's department (UUID format).\").nullable().optional(),\n scheduled_deactivation_date: z.string().describe(\"The date when the user is scheduled to be deactivated. Presented in ISO8601 format.\").nullable().optional(),\n}).passthrough().describe(\"Response containing detailed information about a Ramp user.\");\n\nexport const rampGetUser = action(\"RAMP_GET_USER\", {\n slug: \"ramp-get-user\",\n name: \"Get User\",\n description: \"Tool to retrieve detailed information about a specific Ramp user by their ID. Use when you need complete user profile information including role, status, department, and custom fields.\",\n input: RampGetUserInput,\n output: RampGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAmBA,IAAAA,EAAE,OAAO,EACvC,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EACrF,CAAC;AACD,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CAC/K,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CAC1L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sCAAsC;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,cAAcC,eAAAA,OAAO,iBAAiB;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -21,10 +21,10 @@ declare const RampGetUserOutput: z.ZodObject<{
|
|
|
21
21
|
custom_fields: z.ZodArray<z.ZodObject<{
|
|
22
22
|
name: z.ZodNullable<z.ZodString>;
|
|
23
23
|
value: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
department_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
scheduled_deactivation_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>;
|
|
28
28
|
declare const rampGetUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
29
|
user_id: string;
|
|
30
30
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -21,10 +21,10 @@ declare const RampGetUserOutput: z.ZodObject<{
|
|
|
21
21
|
custom_fields: z.ZodArray<z.ZodObject<{
|
|
22
22
|
name: z.ZodNullable<z.ZodString>;
|
|
23
23
|
value: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
department_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
scheduled_deactivation_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>;
|
|
28
28
|
declare const rampGetUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
29
|
user_id: string;
|
|
30
30
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const RampGetUserInput = z.object({ user_id: z.string().describe("The unique ide
|
|
|
5
5
|
const RampGetUser_CustomFieldSchema = z.object({
|
|
6
6
|
name: z.string().describe("Name of the custom field.").nullable(),
|
|
7
7
|
value: z.string().describe("Value of the custom field.").nullable()
|
|
8
|
-
}).describe("Custom field metadata attached to a user.");
|
|
8
|
+
}).passthrough().describe("Custom field metadata attached to a user.");
|
|
9
9
|
const rampGetUser = action("RAMP_GET_USER", {
|
|
10
10
|
slug: "ramp-get-user",
|
|
11
11
|
name: "Get User",
|
|
@@ -28,7 +28,7 @@ const rampGetUser = action("RAMP_GET_USER", {
|
|
|
28
28
|
custom_fields: z.array(RampGetUser_CustomFieldSchema).describe("A list of custom fields of the user."),
|
|
29
29
|
department_id: z.string().describe("Unique identifier of the employee's department (UUID format).").nullable().optional(),
|
|
30
30
|
scheduled_deactivation_date: z.string().describe("The date when the user is scheduled to be deactivated. Presented in ISO8601 format.").nullable().optional()
|
|
31
|
-
}).describe("Response containing detailed information about a Ramp user.")
|
|
31
|
+
}).passthrough().describe("Response containing detailed information about a Ramp user.")
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { rampGetUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier (UUID) of the user to retrieve\"),\n});\nconst RampGetUser_CustomFieldSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n value: z.string().describe(\"Value of the custom field.\").nullable(),\n}).describe(\"Custom field metadata attached to a user.\");\nexport const RampGetUserOutput = z.object({\n id: z.string().describe(\"Unique identifier of the user (UUID format).\").nullable(),\n role: z.string().describe(\"The employee's role. Possible values: AUDITOR, BUSINESS_ADMIN, BUSINESS_BOOKKEEPER, BUSINESS_OWNER, BUSINESS_USER, GUEST_USER, IT_ADMIN.\").nullable(),\n email: z.string().describe(\"The employee's email address.\").nullable(),\n phone: z.string().describe(\"The employee's phone number.\").nullable().optional(),\n status: z.string().describe(\"Current status of the user account. Possible values: INVITE_EXPIRED, INVITE_PENDING, USER_ACTIVE, USER_INACTIVE, USER_ONBOARDING, USER_SUSPENDED.\").nullable(),\n entity_id: z.string().describe(\"Unique identifier of business entity user is associated with (UUID format).\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the employee.\").nullable(),\n first_name: z.string().describe(\"First name of the employee.\").nullable(),\n is_manager: z.boolean().describe(\"Whether the employee is a manager.\").nullable(),\n manager_id: z.string().describe(\"Unique identifier of the employee's manager (UUID format).\").nullable().optional(),\n business_id: z.string().describe(\"Unique identifier of the company that the employee is working for (UUID format).\").nullable().optional(),\n employee_id: z.string().describe(\"An alternative identifier for an employee, coming from external systems, which can be used in place of an email.\").nullable().optional(),\n location_id: z.string().describe(\"Unique identifier of the employee's location (UUID format).\").nullable().optional(),\n custom_fields: z.array(RampGetUser_CustomFieldSchema).describe(\"A list of custom fields of the user.\"),\n department_id: z.string().describe(\"Unique identifier of the employee's department (UUID format).\").nullable().optional(),\n scheduled_deactivation_date: z.string().describe(\"The date when the user is scheduled to be deactivated. Presented in ISO8601 format.\").nullable().optional(),\n}).describe(\"Response containing detailed information about a Ramp user.\");\n\nexport const rampGetUser = action(\"RAMP_GET_USER\", {\n slug: \"ramp-get-user\",\n name: \"Get User\",\n description: \"Tool to retrieve detailed information about a specific Ramp user by their ID. Use when you need complete user profile information including role, status, department, and custom fields.\",\n input: RampGetUserInput,\n output: RampGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAmB,EAAE,OAAO,EACvC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EACrF,CAAC;AACD,MAAM,gCAAgC,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier (UUID) of the user to retrieve\"),\n});\nconst RampGetUser_CustomFieldSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n value: z.string().describe(\"Value of the custom field.\").nullable(),\n}).passthrough().describe(\"Custom field metadata attached to a user.\");\nexport const RampGetUserOutput = z.object({\n id: z.string().describe(\"Unique identifier of the user (UUID format).\").nullable(),\n role: z.string().describe(\"The employee's role. Possible values: AUDITOR, BUSINESS_ADMIN, BUSINESS_BOOKKEEPER, BUSINESS_OWNER, BUSINESS_USER, GUEST_USER, IT_ADMIN.\").nullable(),\n email: z.string().describe(\"The employee's email address.\").nullable(),\n phone: z.string().describe(\"The employee's phone number.\").nullable().optional(),\n status: z.string().describe(\"Current status of the user account. Possible values: INVITE_EXPIRED, INVITE_PENDING, USER_ACTIVE, USER_INACTIVE, USER_ONBOARDING, USER_SUSPENDED.\").nullable(),\n entity_id: z.string().describe(\"Unique identifier of business entity user is associated with (UUID format).\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the employee.\").nullable(),\n first_name: z.string().describe(\"First name of the employee.\").nullable(),\n is_manager: z.boolean().describe(\"Whether the employee is a manager.\").nullable(),\n manager_id: z.string().describe(\"Unique identifier of the employee's manager (UUID format).\").nullable().optional(),\n business_id: z.string().describe(\"Unique identifier of the company that the employee is working for (UUID format).\").nullable().optional(),\n employee_id: z.string().describe(\"An alternative identifier for an employee, coming from external systems, which can be used in place of an email.\").nullable().optional(),\n location_id: z.string().describe(\"Unique identifier of the employee's location (UUID format).\").nullable().optional(),\n custom_fields: z.array(RampGetUser_CustomFieldSchema).describe(\"A list of custom fields of the user.\"),\n department_id: z.string().describe(\"Unique identifier of the employee's department (UUID format).\").nullable().optional(),\n scheduled_deactivation_date: z.string().describe(\"The date when the user is scheduled to be deactivated. Presented in ISO8601 format.\").nullable().optional(),\n}).passthrough().describe(\"Response containing detailed information about a Ramp user.\");\n\nexport const rampGetUser = action(\"RAMP_GET_USER\", {\n slug: \"ramp-get-user\",\n name: \"Get User\",\n description: \"Tool to retrieve detailed information about a specific Ramp user by their ID. Use when you need complete user profile information including role, status, department, and custom fields.\",\n input: RampGetUserInput,\n output: RampGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAmB,EAAE,OAAO,EACvC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAA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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,eAAe,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sCAAsC;EACrG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAOhB;AACV,CAAC"}
|
|
@@ -5,20 +5,20 @@ const RampGetUsersDeferredStatusInput = zod.z.object({ task_id: zod.z.string().d
|
|
|
5
5
|
const RampGetUsersDeferredStatus_DeferredTaskDataSchema = zod.z.object({
|
|
6
6
|
error: zod.z.string().describe("Error message if the deferred task failed").nullable().optional(),
|
|
7
7
|
user_id: zod.z.string().describe("UUID of the user created or affected by the deferred task").nullable().optional()
|
|
8
|
-
}).describe("Detailed data of the deferred task.");
|
|
8
|
+
}).passthrough().describe("Detailed data of the deferred task.");
|
|
9
9
|
const RampGetUsersDeferredStatus_DeferredTaskStatusSchema = zod.z.enum([
|
|
10
10
|
"STARTED",
|
|
11
11
|
"IN_PROGRESS",
|
|
12
12
|
"ERROR",
|
|
13
13
|
"SUCCESS"
|
|
14
14
|
]).describe("Status of the deferred task.");
|
|
15
|
-
const RampGetUsersDeferredStatus_DeferredTaskContextSchema = zod.z.object({ acting_user_id: zod.z.string().describe("UUID of the user who initiated the deferred task").nullable().optional() }).describe("Context information for the deferred task.");
|
|
15
|
+
const RampGetUsersDeferredStatus_DeferredTaskContextSchema = zod.z.object({ acting_user_id: zod.z.string().describe("UUID of the user who initiated the deferred task").nullable().optional() }).passthrough().describe("Context information for the deferred task.");
|
|
16
16
|
const RampGetUsersDeferredStatusOutput = zod.z.object({
|
|
17
17
|
id: zod.z.string().describe("Unique identifier of the deferred task (UUID format)").nullable(),
|
|
18
18
|
data: RampGetUsersDeferredStatus_DeferredTaskDataSchema.nullable().optional(),
|
|
19
19
|
status: RampGetUsersDeferredStatus_DeferredTaskStatusSchema.nullable(),
|
|
20
20
|
context: RampGetUsersDeferredStatus_DeferredTaskContextSchema.nullable().optional()
|
|
21
|
-
}).describe("Response containing the status of a deferred user task.");
|
|
21
|
+
}).passthrough().describe("Response containing the status of a deferred user task.");
|
|
22
22
|
const rampGetUsersDeferredStatus = require_action.action("RAMP_GET_USERS_DEFERRED_STATUS", {
|
|
23
23
|
slug: "ramp-get-users-deferred-status",
|
|
24
24
|
name: "Get Users Deferred Status",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users-deferred-status.cjs","names":["z","action"],"sources":["../../src/actions/get-users-deferred-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetUsersDeferredStatusInput = z.object({\n task_id: z.string().describe(\"Unique identifier of the deferred task to retrieve status for (UUID format)\"),\n});\nconst RampGetUsersDeferredStatus_DeferredTaskDataSchema = z.object({\n error: z.string().describe(\"Error message if the deferred task failed\").nullable().optional(),\n user_id: z.string().describe(\"UUID of the user created or affected by the deferred task\").nullable().optional(),\n}).describe(\"Detailed data of the deferred task.\");\nconst RampGetUsersDeferredStatus_DeferredTaskStatusSchema = z.enum([\"STARTED\", \"IN_PROGRESS\", \"ERROR\", \"SUCCESS\"]).describe(\"Status of the deferred task.\");\nconst RampGetUsersDeferredStatus_DeferredTaskContextSchema = z.object({\n acting_user_id: z.string().describe(\"UUID of the user who initiated the deferred task\").nullable().optional(),\n}).describe(\"Context information for the deferred task.\");\nexport const RampGetUsersDeferredStatusOutput = z.object({\n id: z.string().describe(\"Unique identifier of the deferred task (UUID format)\").nullable(),\n data: RampGetUsersDeferredStatus_DeferredTaskDataSchema.nullable().optional(),\n status: RampGetUsersDeferredStatus_DeferredTaskStatusSchema.nullable(),\n context: RampGetUsersDeferredStatus_DeferredTaskContextSchema.nullable().optional(),\n}).describe(\"Response containing the status of a deferred user task.\");\n\nexport const rampGetUsersDeferredStatus = action(\"RAMP_GET_USERS_DEFERRED_STATUS\", {\n slug: \"ramp-get-users-deferred-status\",\n name: \"Get Users Deferred Status\",\n description: \"Tool for fetching the status of a deferred user task. Use when you need to check the progress or outcome of asynchronous user operations like user creation.\",\n input: RampGetUsersDeferredStatusInput,\n output: RampGetUsersDeferredStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,EAC5G,CAAC;AACD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,qCAAqC;
|
|
1
|
+
{"version":3,"file":"get-users-deferred-status.cjs","names":["z","action"],"sources":["../../src/actions/get-users-deferred-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetUsersDeferredStatusInput = z.object({\n task_id: z.string().describe(\"Unique identifier of the deferred task to retrieve status for (UUID format)\"),\n});\nconst RampGetUsersDeferredStatus_DeferredTaskDataSchema = z.object({\n error: z.string().describe(\"Error message if the deferred task failed\").nullable().optional(),\n user_id: z.string().describe(\"UUID of the user created or affected by the deferred task\").nullable().optional(),\n}).passthrough().describe(\"Detailed data of the deferred task.\");\nconst RampGetUsersDeferredStatus_DeferredTaskStatusSchema = z.enum([\"STARTED\", \"IN_PROGRESS\", \"ERROR\", \"SUCCESS\"]).describe(\"Status of the deferred task.\");\nconst RampGetUsersDeferredStatus_DeferredTaskContextSchema = z.object({\n acting_user_id: z.string().describe(\"UUID of the user who initiated the deferred task\").nullable().optional(),\n}).passthrough().describe(\"Context information for the deferred task.\");\nexport const RampGetUsersDeferredStatusOutput = z.object({\n id: z.string().describe(\"Unique identifier of the deferred task (UUID format)\").nullable(),\n data: RampGetUsersDeferredStatus_DeferredTaskDataSchema.nullable().optional(),\n status: RampGetUsersDeferredStatus_DeferredTaskStatusSchema.nullable(),\n context: RampGetUsersDeferredStatus_DeferredTaskContextSchema.nullable().optional(),\n}).passthrough().describe(\"Response containing the status of a deferred user task.\");\n\nexport const rampGetUsersDeferredStatus = action(\"RAMP_GET_USERS_DEFERRED_STATUS\", {\n slug: \"ramp-get-users-deferred-status\",\n name: \"Get Users Deferred Status\",\n description: \"Tool for fetching the status of a deferred user task. Use when you need to check the progress or outcome of asynchronous user operations like user creation.\",\n input: RampGetUsersDeferredStatusInput,\n output: RampGetUsersDeferredStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,EAC5G,CAAC;AACD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,sDAAsDA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAe;CAAS;AAAS,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1J,MAAM,uDAAuDA,IAAAA,EAAE,OAAO,EACpE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzF,MAAM,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQ,oDAAoD,SAAS;CACrE,SAAS,qDAAqD,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const RampGetUsersDeferredStatusOutput: z.ZodObject<{
|
|
|
9
9
|
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
10
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>;
|
|
13
13
|
status: z.ZodNullable<z.ZodEnum<{
|
|
14
14
|
STARTED: "STARTED";
|
|
15
15
|
IN_PROGRESS: "IN_PROGRESS";
|
|
@@ -18,8 +18,8 @@ declare const RampGetUsersDeferredStatusOutput: z.ZodObject<{
|
|
|
18
18
|
}>>;
|
|
19
19
|
context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
acting_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
22
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const rampGetUsersDeferredStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
task_id: string;
|
|
25
25
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -9,7 +9,7 @@ declare const RampGetUsersDeferredStatusOutput: z.ZodObject<{
|
|
|
9
9
|
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
10
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>;
|
|
13
13
|
status: z.ZodNullable<z.ZodEnum<{
|
|
14
14
|
STARTED: "STARTED";
|
|
15
15
|
IN_PROGRESS: "IN_PROGRESS";
|
|
@@ -18,8 +18,8 @@ declare const RampGetUsersDeferredStatusOutput: z.ZodObject<{
|
|
|
18
18
|
}>>;
|
|
19
19
|
context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
acting_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
22
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const rampGetUsersDeferredStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
task_id: string;
|
|
25
25
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|