@keystrokehq/ramp 0.0.1 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/dist/_official/index.d.mts +45 -2
  3. package/dist/_official/index.mjs +1 -1
  4. package/dist/accounting-fields.d.mts +7 -7
  5. package/dist/accounting-fields.mjs +1 -1
  6. package/dist/accounting-gl-accounts.d.mts +3 -3
  7. package/dist/accounting-gl-accounts.mjs +1 -1
  8. package/dist/accounting-subsidiaries.d.mts +3 -3
  9. package/dist/accounting-subsidiaries.mjs +1 -1
  10. package/dist/accounting-sync.d.mts +3 -3
  11. package/dist/accounting-sync.mjs +1 -1
  12. package/dist/accounting-tracking-categories.d.mts +2 -2
  13. package/dist/accounting-tracking-categories.mjs +1 -1
  14. package/dist/accounting-vendors.d.mts +3 -3
  15. package/dist/accounting-vendors.mjs +1 -1
  16. package/dist/applications.d.mts +5 -5
  17. package/dist/applications.mjs +1 -1
  18. package/dist/bills.d.mts +15 -15
  19. package/dist/bills.mjs +1 -1
  20. package/dist/business.d.mts +1 -1
  21. package/dist/business.mjs +1 -1
  22. package/dist/card-programs.d.mts +3 -3
  23. package/dist/card-programs.mjs +1 -1
  24. package/dist/cards.d.mts +9 -9
  25. package/dist/cards.mjs +1 -1
  26. package/dist/cashbacks.d.mts +2 -2
  27. package/dist/cashbacks.mjs +1 -1
  28. package/dist/client.d.mts +2 -2
  29. package/dist/client.mjs +1 -1
  30. package/dist/connection.d.mts +1 -1
  31. package/dist/connection.mjs +1 -1
  32. package/dist/departments.d.mts +5 -5
  33. package/dist/departments.mjs +1 -1
  34. package/dist/entities.d.mts +2 -2
  35. package/dist/entities.mjs +1 -1
  36. package/dist/events.d.mts +1 -1
  37. package/dist/{factory-Da6YVHdL.mjs → factory-sHitXBO_.mjs} +1 -1
  38. package/dist/{integration-Dd6tOtSy.d.mts → integration-D6jpX1pZ.d.mts} +1 -1
  39. package/dist/{integration-BGliAxAS.mjs → integration-DG56PIa4.mjs} +2 -2
  40. package/dist/limits.d.mts +11 -11
  41. package/dist/limits.mjs +1 -1
  42. package/dist/locations.d.mts +5 -5
  43. package/dist/locations.mjs +1 -1
  44. package/dist/memos.d.mts +2 -2
  45. package/dist/memos.mjs +1 -1
  46. package/dist/purchase-orders.d.mts +5 -5
  47. package/dist/purchase-orders.mjs +1 -1
  48. package/dist/receipt-integrations.d.mts +2 -2
  49. package/dist/receipt-integrations.mjs +1 -1
  50. package/dist/receipts.d.mts +3 -3
  51. package/dist/receipts.mjs +1 -1
  52. package/dist/reimbursements.d.mts +5 -5
  53. package/dist/reimbursements.mjs +1 -1
  54. package/dist/schemas/index.d.mts +8 -8
  55. package/dist/spend-programs.d.mts +2 -2
  56. package/dist/spend-programs.mjs +1 -1
  57. package/dist/spend-requests.d.mts +3 -3
  58. package/dist/spend-requests.mjs +1 -1
  59. package/dist/statements.d.mts +2 -2
  60. package/dist/statements.mjs +1 -1
  61. package/dist/transactions.d.mts +13 -13
  62. package/dist/transactions.mjs +1 -1
  63. package/dist/transfers.d.mts +5 -5
  64. package/dist/transfers.mjs +1 -1
  65. package/dist/triggers/index.d.mts +5 -63
  66. package/dist/triggers/index.mjs +14 -93
  67. package/dist/unified-requests.d.mts +2 -2
  68. package/dist/unified-requests.mjs +1 -1
  69. package/dist/users.d.mts +6 -6
  70. package/dist/users.mjs +1 -1
  71. package/dist/vendor-bank-accounts.d.mts +5 -5
  72. package/dist/vendor-bank-accounts.mjs +1 -1
  73. package/dist/{vendors-B7DQrlAn.d.mts → vendors-gH-w9b_R.d.mts} +28 -28
  74. package/dist/vendors.d.mts +5 -5
  75. package/dist/vendors.mjs +1 -1
  76. package/dist/webhooks.d.mts +5 -5
  77. package/dist/webhooks.mjs +1 -1
  78. package/package.json +21 -19
  79. package/dist/provider-app-JO525h-N.d.mts +0 -45
  80. /package/dist/{errors-Sm92tugz.d.mts → errors-Dm2DruuS.d.mts} +0 -0
  81. /package/dist/{webhook-sde3Ui2N.d.mts → webhook-Bp38YQE9.d.mts} +0 -0
@@ -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-Da6YVHdL.mjs";
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.1",
3
+ "version": "0.0.5",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -175,27 +175,21 @@
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/integration-authoring": "^0.0.1",
189
- "@keystrokehq/core": "^0.0.5",
179
+ "@keystrokehq/integration-authoring": "^0.0.5",
190
180
  "zod": "^4.3.6"
191
181
  },
182
+ "peerDependencies": {
183
+ "@keystrokehq/core": ">=0.0.7 <0.1.0"
184
+ },
192
185
  "devDependencies": {
193
- "@types/node": "catalog:",
194
- "@keystrokehq/test-utils": "workspace:*",
195
- "@keystrokehq/typescript-config": "workspace:*",
196
- "tsdown": "catalog:",
197
- "typescript": "catalog:",
198
- "vitest": "catalog:"
186
+ "@types/node": "^22.19.11",
187
+ "tsdown": "^0.20.3",
188
+ "typescript": "^5.9.3",
189
+ "vitest": "^4.0.18",
190
+ "@keystrokehq/core": "^0.0.7",
191
+ "@keystrokehq/test-utils": "0.0.0",
192
+ "@keystrokehq/typescript-config": "0.0.0"
199
193
  },
200
194
  "keywords": [
201
195
  "ramp",
@@ -218,5 +212,13 @@
218
212
  "publishConfig": {
219
213
  "access": "public",
220
214
  "registry": "https://registry.npmjs.org/"
215
+ },
216
+ "scripts": {
217
+ "typecheck": "tsgo --build",
218
+ "build": "tsdown",
219
+ "lint": "biome check .",
220
+ "test:unit": "vitest run --passWithNoTests --project unit",
221
+ "test:int": "vitest run --passWithNoTests --project int",
222
+ "lint:fix": "biome check --write ."
221
223
  }
222
- }
224
+ }
@@ -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 };