@keystrokehq/ramp 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/_official/index.d.mts +45 -2
- package/dist/_official/index.mjs +1 -1
- package/dist/accounting-fields.d.mts +7 -7
- package/dist/accounting-fields.mjs +1 -1
- package/dist/accounting-gl-accounts.d.mts +3 -3
- package/dist/accounting-gl-accounts.mjs +1 -1
- package/dist/accounting-subsidiaries.d.mts +3 -3
- package/dist/accounting-subsidiaries.mjs +1 -1
- package/dist/accounting-sync.d.mts +3 -3
- package/dist/accounting-sync.mjs +1 -1
- package/dist/accounting-tracking-categories.d.mts +2 -2
- package/dist/accounting-tracking-categories.mjs +1 -1
- package/dist/accounting-vendors.d.mts +3 -3
- package/dist/accounting-vendors.mjs +1 -1
- package/dist/applications.d.mts +5 -5
- package/dist/applications.mjs +1 -1
- package/dist/bills.d.mts +15 -15
- package/dist/bills.mjs +1 -1
- package/dist/business.d.mts +1 -1
- package/dist/business.mjs +1 -1
- package/dist/card-programs.d.mts +3 -3
- package/dist/card-programs.mjs +1 -1
- package/dist/cards.d.mts +9 -9
- package/dist/cards.mjs +1 -1
- package/dist/cashbacks.d.mts +2 -2
- package/dist/cashbacks.mjs +1 -1
- package/dist/client.d.mts +2 -2
- package/dist/client.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/departments.d.mts +5 -5
- package/dist/departments.mjs +1 -1
- package/dist/entities.d.mts +2 -2
- package/dist/entities.mjs +1 -1
- package/dist/events.d.mts +1 -1
- package/dist/{factory-Da6YVHdL.mjs → factory-sHitXBO_.mjs} +1 -1
- package/dist/{integration-Dd6tOtSy.d.mts → integration-D6jpX1pZ.d.mts} +1 -1
- package/dist/{integration-BGliAxAS.mjs → integration-DG56PIa4.mjs} +2 -2
- package/dist/limits.d.mts +11 -11
- package/dist/limits.mjs +1 -1
- package/dist/locations.d.mts +5 -5
- package/dist/locations.mjs +1 -1
- package/dist/memos.d.mts +2 -2
- package/dist/memos.mjs +1 -1
- package/dist/purchase-orders.d.mts +5 -5
- package/dist/purchase-orders.mjs +1 -1
- package/dist/receipt-integrations.d.mts +2 -2
- package/dist/receipt-integrations.mjs +1 -1
- package/dist/receipts.d.mts +3 -3
- package/dist/receipts.mjs +1 -1
- package/dist/reimbursements.d.mts +5 -5
- package/dist/reimbursements.mjs +1 -1
- package/dist/schemas/index.d.mts +8 -8
- package/dist/spend-programs.d.mts +2 -2
- package/dist/spend-programs.mjs +1 -1
- package/dist/spend-requests.d.mts +3 -3
- package/dist/spend-requests.mjs +1 -1
- package/dist/statements.d.mts +2 -2
- package/dist/statements.mjs +1 -1
- package/dist/transactions.d.mts +13 -13
- package/dist/transactions.mjs +1 -1
- package/dist/transfers.d.mts +5 -5
- package/dist/transfers.mjs +1 -1
- package/dist/triggers/index.d.mts +5 -63
- package/dist/triggers/index.mjs +14 -93
- package/dist/unified-requests.d.mts +2 -2
- package/dist/unified-requests.mjs +1 -1
- package/dist/users.d.mts +6 -6
- package/dist/users.mjs +1 -1
- package/dist/vendor-bank-accounts.d.mts +5 -5
- package/dist/vendor-bank-accounts.mjs +1 -1
- package/dist/{vendors-B7DQrlAn.d.mts → vendors-gH-w9b_R.d.mts} +28 -28
- package/dist/vendors.d.mts +5 -5
- package/dist/vendors.mjs +1 -1
- package/dist/webhooks.d.mts +5 -5
- package/dist/webhooks.mjs +1 -1
- package/package.json +18 -19
- package/dist/provider-app-JO525h-N.d.mts +0 -45
- /package/dist/{errors-Sm92tugz.d.mts → errors-Dm2DruuS.d.mts} +0 -0
- /package/dist/{webhook-sde3Ui2N.d.mts → webhook-Bp38YQE9.d.mts} +0 -0
package/dist/webhooks.d.mts
CHANGED
|
@@ -18,7 +18,7 @@ declare const listWebhookSubscriptions: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
18
18
|
page: z.ZodOptional<z.ZodObject<{
|
|
19
19
|
next: z.ZodOptional<z.ZodString>;
|
|
20
20
|
}, z.core.$strip>>;
|
|
21
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
21
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
22
22
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
23
23
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
24
24
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -32,7 +32,7 @@ declare const getWebhookSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
32
32
|
enabled_events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
33
|
created_at: z.ZodOptional<z.ZodString>;
|
|
34
34
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
35
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
35
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
36
36
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
37
37
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
38
38
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -48,7 +48,7 @@ declare const createWebhookSubscription: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
48
48
|
enabled_events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
49
|
created_at: z.ZodOptional<z.ZodString>;
|
|
50
50
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
51
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
52
52
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
53
53
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
54
54
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -65,7 +65,7 @@ declare const updateWebhookSubscription: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
65
65
|
enabled_events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
66
|
created_at: z.ZodOptional<z.ZodString>;
|
|
67
67
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
68
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
68
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
69
69
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
70
70
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
71
71
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -74,7 +74,7 @@ declare const deleteWebhookSubscription: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
74
74
|
webhookId: z.ZodString;
|
|
75
75
|
}, z.core.$strip>, z.ZodObject<{
|
|
76
76
|
success: z.ZodBoolean;
|
|
77
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
77
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
|
|
78
78
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
79
79
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
80
80
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
package/dist/webhooks.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { a as rampWebhookSubscriptionListSchema, i as rampWebhookSubscriptionListInputSchema, n as rampWebhookSubscriptionDeleteInputSchema, o as rampWebhookSubscriptionSchema, r as rampWebhookSubscriptionGetInputSchema, s as rampWebhookSubscriptionUpdateInputSchema, t as rampWebhookSubscriptionCreateInputSchema } from "./webhooks-mgmt-d1xgVpWx.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/ramp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -175,27 +175,18 @@
|
|
|
175
175
|
"README.md",
|
|
176
176
|
"LICENSE"
|
|
177
177
|
],
|
|
178
|
-
"scripts": {
|
|
179
|
-
"typecheck": "tsgo --build",
|
|
180
|
-
"build": "tsdown",
|
|
181
|
-
"lint": "biome check .",
|
|
182
|
-
"test:unit": "vitest run --passWithNoTests --project unit",
|
|
183
|
-
"test:int": "vitest run --passWithNoTests --project int",
|
|
184
|
-
"prepublishOnly": "pnpm build && pnpm test:unit",
|
|
185
|
-
"lint:fix": "biome check --write ."
|
|
186
|
-
},
|
|
187
178
|
"dependencies": {
|
|
188
|
-
"@keystrokehq/
|
|
189
|
-
"@keystrokehq/
|
|
179
|
+
"@keystrokehq/core": "^0.0.7",
|
|
180
|
+
"@keystrokehq/integration-authoring": "^0.0.4",
|
|
190
181
|
"zod": "^4.3.6"
|
|
191
182
|
},
|
|
192
183
|
"devDependencies": {
|
|
193
|
-
"@types/node": "
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
184
|
+
"@types/node": "^22.19.11",
|
|
185
|
+
"tsdown": "^0.20.3",
|
|
186
|
+
"typescript": "^5.9.3",
|
|
187
|
+
"vitest": "^4.0.18",
|
|
188
|
+
"@keystrokehq/test-utils": "0.0.0",
|
|
189
|
+
"@keystrokehq/typescript-config": "0.0.0"
|
|
199
190
|
},
|
|
200
191
|
"keywords": [
|
|
201
192
|
"ramp",
|
|
@@ -218,5 +209,13 @@
|
|
|
218
209
|
"publishConfig": {
|
|
219
210
|
"access": "public",
|
|
220
211
|
"registry": "https://registry.npmjs.org/"
|
|
212
|
+
},
|
|
213
|
+
"scripts": {
|
|
214
|
+
"typecheck": "tsgo --build",
|
|
215
|
+
"build": "tsdown",
|
|
216
|
+
"lint": "biome check .",
|
|
217
|
+
"test:unit": "vitest run --passWithNoTests --project unit",
|
|
218
|
+
"test:int": "vitest run --passWithNoTests --project int",
|
|
219
|
+
"lint:fix": "biome check --write ."
|
|
221
220
|
}
|
|
222
|
-
}
|
|
221
|
+
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { CredentialSet } from "@keystrokehq/core";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/_official/provider-app.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Internal credential set for the Keystroke-owned Ramp OAuth application.
|
|
8
|
-
*
|
|
9
|
-
* Mirrors the `zoomAppCredentialSet` pattern: stores the client id/secret that
|
|
10
|
-
* Keystroke uses to speak to Ramp's token endpoint, and optionally the webhook
|
|
11
|
-
* signing secret used to verify inbound `X-Ramp-Signature` headers.
|
|
12
|
-
*
|
|
13
|
-
* This is never exposed directly to end users — the public OAuth flow injects
|
|
14
|
-
* access tokens into {@link ramp} (defined in `integration.ts`).
|
|
15
|
-
*/
|
|
16
|
-
declare const rampAppCredentialSet: CredentialSet<"ramp-app", z.ZodObject<{
|
|
17
|
-
clientId: z.ZodString;
|
|
18
|
-
clientSecret: z.ZodString;
|
|
19
|
-
webhookSecret: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
21
|
-
clientId: z.ZodString;
|
|
22
|
-
clientSecret: z.ZodString;
|
|
23
|
-
webhookSecret: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$strip>>[] | undefined>;
|
|
25
|
-
declare const rampPlatformProviderSeed: {
|
|
26
|
-
readonly provider: "ramp";
|
|
27
|
-
readonly appRef: "ramp-platform";
|
|
28
|
-
readonly displayName: "Ramp Platform";
|
|
29
|
-
readonly credentialSetName: "Keystroke Ramp Platform App";
|
|
30
|
-
readonly envShape: {
|
|
31
|
-
readonly KEYSTROKE_PLATFORM_RAMP_CLIENT_ID: z.ZodOptional<z.ZodString>;
|
|
32
|
-
readonly KEYSTROKE_PLATFORM_RAMP_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
|
|
33
|
-
readonly KEYSTROKE_PLATFORM_RAMP_WEBHOOK_SECRET: z.ZodOptional<z.ZodString>;
|
|
34
|
-
};
|
|
35
|
-
readonly requiredEnvKeys: readonly ["KEYSTROKE_PLATFORM_RAMP_CLIENT_ID", "KEYSTROKE_PLATFORM_RAMP_CLIENT_SECRET"];
|
|
36
|
-
readonly externalAppIdEnvKey: "KEYSTROKE_PLATFORM_RAMP_CLIENT_ID";
|
|
37
|
-
readonly buildCredentials: (env: Record<string, string | undefined>) => {
|
|
38
|
-
webhookSecret?: string | undefined;
|
|
39
|
-
clientId: string | undefined;
|
|
40
|
-
clientSecret: string | undefined;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
type RampAppCredentials = z.infer<typeof rampAppCredentialSet.auth>;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { rampAppCredentialSet as n, rampPlatformProviderSeed as r, RampAppCredentials as t };
|
|
File without changes
|
|
File without changes
|