@keystrokehq/ramp 0.0.8 → 0.0.9

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 (99) hide show
  1. package/dist/_official/index.d.mts +2 -2
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/{accounting-i6txC-MI.mjs → accounting-Ceh5QgHA.mjs} +1 -1
  4. package/dist/accounting-fields.d.mts +8 -8
  5. package/dist/accounting-fields.mjs +3 -3
  6. package/dist/accounting-gl-accounts.d.mts +4 -4
  7. package/dist/accounting-gl-accounts.mjs +3 -3
  8. package/dist/accounting-subsidiaries.d.mts +4 -4
  9. package/dist/accounting-subsidiaries.mjs +3 -3
  10. package/dist/accounting-sync.d.mts +4 -4
  11. package/dist/accounting-sync.mjs +3 -3
  12. package/dist/accounting-tracking-categories.d.mts +3 -3
  13. package/dist/accounting-tracking-categories.mjs +3 -3
  14. package/dist/accounting-vendors.d.mts +4 -4
  15. package/dist/accounting-vendors.mjs +3 -3
  16. package/dist/applications.d.mts +6 -6
  17. package/dist/applications.mjs +3 -3
  18. package/dist/{bills-B8W9et3K.mjs → bills-D7vZ5JRH.mjs} +1 -1
  19. package/dist/bills.d.mts +16 -16
  20. package/dist/bills.mjs +3 -3
  21. package/dist/{business-CztnWUvt.mjs → business-DAD870OI.mjs} +1 -1
  22. package/dist/business.d.mts +2 -2
  23. package/dist/business.mjs +2 -2
  24. package/dist/card-programs.d.mts +4 -4
  25. package/dist/card-programs.mjs +3 -3
  26. package/dist/{cards-BfgPcR38.mjs → cards-DNZQtrd7.mjs} +1 -1
  27. package/dist/cards.d.mts +10 -10
  28. package/dist/cards.mjs +4 -4
  29. package/dist/cashbacks.d.mts +3 -3
  30. package/dist/cashbacks.mjs +3 -3
  31. package/dist/client.d.mts +2 -2
  32. package/dist/client.mjs +2 -2
  33. package/dist/connection.d.mts +1 -1
  34. package/dist/connection.mjs +1 -1
  35. package/dist/departments.d.mts +6 -6
  36. package/dist/departments.mjs +3 -3
  37. package/dist/dist-Bbp6t-WQ.mjs +74 -0
  38. package/dist/entities.d.mts +3 -3
  39. package/dist/entities.mjs +3 -3
  40. package/dist/events.d.mts +1 -1
  41. package/dist/events.mjs +1 -1
  42. package/dist/{factory-pbmCYnqr.mjs → factory-hiMPmrYD.mjs} +1 -2
  43. package/dist/{integration-D6jpX1pZ.d.mts → integration-BTjaW9hR.d.mts} +3 -4
  44. package/dist/{integration-8czEQ_pK.mjs → integration-BczMK0aE.mjs} +95 -3
  45. package/dist/limits.d.mts +12 -12
  46. package/dist/limits.mjs +3 -3
  47. package/dist/locations.d.mts +6 -6
  48. package/dist/locations.mjs +3 -3
  49. package/dist/memos.d.mts +3 -3
  50. package/dist/memos.mjs +3 -3
  51. package/dist/{new-resources-BBJsJEjT.mjs → new-resources-Cj_YECLc.mjs} +1 -1
  52. package/dist/{organization-BSaEpvBn.mjs → organization-BdyZhkYN.mjs} +1 -1
  53. package/dist/purchase-orders.d.mts +6 -6
  54. package/dist/purchase-orders.mjs +3 -3
  55. package/dist/receipt-integrations.d.mts +3 -3
  56. package/dist/receipt-integrations.mjs +2 -2
  57. package/dist/{receipts-STq41c2M.mjs → receipts-DKq5Kjhr.mjs} +1 -1
  58. package/dist/receipts.d.mts +4 -4
  59. package/dist/receipts.mjs +3 -3
  60. package/dist/{reimbursements-OknrZUMF.mjs → reimbursements--xBvXROu.mjs} +1 -1
  61. package/dist/reimbursements.d.mts +6 -6
  62. package/dist/reimbursements.mjs +3 -3
  63. package/dist/schemas/index.d.mts +8 -8
  64. package/dist/schemas/index.mjs +15 -15
  65. package/dist/spend-programs.d.mts +3 -3
  66. package/dist/spend-programs.mjs +3 -3
  67. package/dist/spend-requests.d.mts +7 -7
  68. package/dist/spend-requests.mjs +3 -3
  69. package/dist/statements.d.mts +3 -3
  70. package/dist/statements.mjs +3 -3
  71. package/dist/{transactions-Djd0oIGK.mjs → transactions-IIG8obly.mjs} +1 -1
  72. package/dist/transactions.d.mts +9 -9
  73. package/dist/transactions.mjs +3 -3
  74. package/dist/{transfers-WBQZVdGP.mjs → transfers-C-76qq3o.mjs} +1 -1
  75. package/dist/transfers.d.mts +3 -3
  76. package/dist/transfers.mjs +3 -3
  77. package/dist/triggers/index.d.mts +3 -3
  78. package/dist/triggers/index.mjs +11 -11
  79. package/dist/unified-requests.d.mts +6 -6
  80. package/dist/unified-requests.mjs +3 -3
  81. package/dist/{users-ufcXrfNK.mjs → users-Bx4SR4el.mjs} +1 -1
  82. package/dist/users.d.mts +7 -7
  83. package/dist/users.mjs +3 -3
  84. package/dist/vendor-bank-accounts.d.mts +6 -6
  85. package/dist/vendor-bank-accounts.mjs +3 -3
  86. package/dist/{vendors-oZvKUHvt.d.mts → vendors-De3fNIYJ.d.mts} +28 -28
  87. package/dist/{vendors-Bx1cgXwC.mjs → vendors-lAh0yain.mjs} +1 -1
  88. package/dist/vendors.d.mts +6 -6
  89. package/dist/vendors.mjs +3 -3
  90. package/dist/verification.mjs +1 -1
  91. package/dist/{webhook-CsbvcgrC.mjs → webhook-CzjBDCWU.mjs} +1 -1
  92. package/dist/{webhooks-mgmt-d1xgVpWx.mjs → webhooks-mgmt--fU1Uxfa.mjs} +1 -1
  93. package/dist/webhooks.d.mts +6 -6
  94. package/dist/webhooks.mjs +3 -3
  95. package/package.json +4 -4
  96. /package/dist/{common-CUpmNYXw.mjs → common-Dune7BHS.mjs} +0 -0
  97. /package/dist/{errors-CIJf9-v0.d.mts → errors-TrirAChI.d.mts} +0 -0
  98. /package/dist/{shared-CTTtP5gv.mjs → shared-3DudrK5L.mjs} +0 -0
  99. /package/dist/{webhook-Bp38YQE9.d.mts → webhook-sde3Ui2N.d.mts} +0 -0
@@ -1,5 +1,5 @@
1
- import * as zod from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import * as zod from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
  import * as zod_v4_core0 from "zod/v4/core";
5
5
 
@@ -25,7 +25,7 @@ declare const listCardPrograms: _keystrokehq_core0.Operation<zod.ZodObject<{
25
25
  page: zod.ZodOptional<zod.ZodObject<{
26
26
  next: zod.ZodOptional<zod.ZodString>;
27
27
  }, zod_v4_core0.$strip>>;
28
- }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
28
+ }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
29
29
  RAMP_ACCESS_TOKEN: zod.ZodString;
30
30
  }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
31
31
  RAMP_ACCESS_TOKEN: zod.ZodString;
@@ -45,7 +45,7 @@ declare const getCardProgram: _keystrokehq_core0.Operation<zod.ZodObject<{
45
45
  interval: zod.ZodOptional<zod.ZodString>;
46
46
  currency: zod.ZodOptional<zod.ZodString>;
47
47
  }, zod_v4_core0.$loose>>;
48
- }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
48
+ }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
49
49
  RAMP_ACCESS_TOKEN: zod.ZodString;
50
50
  }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
51
51
  RAMP_ACCESS_TOKEN: zod.ZodString;
@@ -81,7 +81,7 @@ declare const createCardProgram: _keystrokehq_core0.Operation<zod.ZodObject<{
81
81
  interval: zod.ZodOptional<zod.ZodString>;
82
82
  currency: zod.ZodOptional<zod.ZodString>;
83
83
  }, zod_v4_core0.$loose>>;
84
- }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
84
+ }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
85
85
  RAMP_ACCESS_TOKEN: zod.ZodString;
86
86
  }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
87
87
  RAMP_ACCESS_TOKEN: zod.ZodString;
@@ -1,7 +1,7 @@
1
1
  import { createRampClient } from "./client.mjs";
2
- import { c as rampCardProgramListInputSchema, l as rampCardProgramListSchema, o as rampCardProgramCreateInputSchema, s as rampCardProgramGetInputSchema, u as rampCardProgramSchema } from "./cards-BfgPcR38.mjs";
3
- import { t as rampOperation } from "./factory-pbmCYnqr.mjs";
4
- import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
2
+ import { c as rampCardProgramListInputSchema, l as rampCardProgramListSchema, o as rampCardProgramCreateInputSchema, s as rampCardProgramGetInputSchema, u as rampCardProgramSchema } from "./cards-DNZQtrd7.mjs";
3
+ import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
4
+ import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
5
5
 
6
6
  //#region src/card-programs.ts
7
7
  const listCardPrograms = rampOperation({
@@ -1,4 +1,4 @@
1
- import { a as rampListPaginationInputSchema, c as rampMoneySchema, f as rampTimestampSchema, i as rampIdSchema, o as rampListResponseSchema } from "./common-CUpmNYXw.mjs";
1
+ import { a as rampListPaginationInputSchema, c as rampMoneySchema, f as rampTimestampSchema, i as rampIdSchema, o as rampListResponseSchema } from "./common-Dune7BHS.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/schemas/cards.ts
package/dist/cards.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/cards.d.ts
@@ -56,7 +56,7 @@ declare const listCards: _keystrokehq_core0.Operation<z.ZodObject<{
56
56
  page: z.ZodOptional<z.ZodObject<{
57
57
  next: z.ZodOptional<z.ZodString>;
58
58
  }, z.core.$strip>>;
59
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
59
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
60
60
  RAMP_ACCESS_TOKEN: z.ZodString;
61
61
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
62
62
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -98,7 +98,7 @@ declare const getCard: _keystrokehq_core0.Operation<z.ZodObject<{
98
98
  lock_date: z.ZodOptional<z.ZodString>;
99
99
  }, z.core.$loose>>;
100
100
  has_program_overridden: z.ZodOptional<z.ZodBoolean>;
101
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
101
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
102
102
  RAMP_ACCESS_TOKEN: z.ZodString;
103
103
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
104
104
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -127,7 +127,7 @@ declare const createVirtualCard: _keystrokehq_core0.Operation<z.ZodObject<{
127
127
  data: z.ZodOptional<z.ZodUnknown>;
128
128
  error: z.ZodOptional<z.ZodUnknown>;
129
129
  created_at: z.ZodOptional<z.ZodString>;
130
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
130
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
131
131
  RAMP_ACCESS_TOKEN: z.ZodString;
132
132
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
133
133
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -160,7 +160,7 @@ declare const createPhysicalCard: _keystrokehq_core0.Operation<z.ZodObject<{
160
160
  data: z.ZodOptional<z.ZodUnknown>;
161
161
  error: z.ZodOptional<z.ZodUnknown>;
162
162
  created_at: z.ZodOptional<z.ZodString>;
163
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
163
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
164
164
  RAMP_ACCESS_TOKEN: z.ZodString;
165
165
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
166
166
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -214,7 +214,7 @@ declare const updateCard: _keystrokehq_core0.Operation<z.ZodObject<{
214
214
  lock_date: z.ZodOptional<z.ZodString>;
215
215
  }, z.core.$loose>>;
216
216
  has_program_overridden: z.ZodOptional<z.ZodBoolean>;
217
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
217
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
218
218
  RAMP_ACCESS_TOKEN: z.ZodString;
219
219
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
220
220
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -227,7 +227,7 @@ declare const suspendCard: _keystrokehq_core0.Operation<z.ZodObject<{
227
227
  data: z.ZodOptional<z.ZodUnknown>;
228
228
  error: z.ZodOptional<z.ZodUnknown>;
229
229
  created_at: z.ZodOptional<z.ZodString>;
230
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
230
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
231
231
  RAMP_ACCESS_TOKEN: z.ZodString;
232
232
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
233
233
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -240,7 +240,7 @@ declare const unsuspendCard: _keystrokehq_core0.Operation<z.ZodObject<{
240
240
  data: z.ZodOptional<z.ZodUnknown>;
241
241
  error: z.ZodOptional<z.ZodUnknown>;
242
242
  created_at: z.ZodOptional<z.ZodString>;
243
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
243
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
244
244
  RAMP_ACCESS_TOKEN: z.ZodString;
245
245
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
246
246
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -254,7 +254,7 @@ declare const terminateCard: _keystrokehq_core0.Operation<z.ZodObject<{
254
254
  data: z.ZodOptional<z.ZodUnknown>;
255
255
  error: z.ZodOptional<z.ZodUnknown>;
256
256
  created_at: z.ZodOptional<z.ZodString>;
257
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
257
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
258
258
  RAMP_ACCESS_TOKEN: z.ZodString;
259
259
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
260
260
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -278,7 +278,7 @@ declare const listCardFundTransfers: _keystrokehq_core0.Operation<z.ZodObject<{
278
278
  page: z.ZodOptional<z.ZodObject<{
279
279
  next: z.ZodOptional<z.ZodString>;
280
280
  }, z.core.$strip>>;
281
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
281
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
282
282
  RAMP_ACCESS_TOKEN: z.ZodString;
283
283
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
284
284
  RAMP_ACCESS_TOKEN: z.ZodString;
package/dist/cards.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createRampClient } from "./client.mjs";
2
- import { _ as rampTerminateCardInputSchema, a as rampCardListSchema, d as rampCardSchema, g as rampSuspendCardInputSchema, h as rampCreateVirtualCardInputSchema, i as rampCardListInputSchema, m as rampCreatePhysicalCardInputSchema, n as rampCardFundTransferSchema, p as rampCardUpdateInputSchema, r as rampCardGetInputSchema, v as rampUnsuspendCardInputSchema } from "./cards-BfgPcR38.mjs";
3
- import { t as rampDeferredTaskSchema } from "./users-ufcXrfNK.mjs";
4
- import { t as rampOperation } from "./factory-pbmCYnqr.mjs";
5
- import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
2
+ import { _ as rampTerminateCardInputSchema, a as rampCardListSchema, d as rampCardSchema, g as rampSuspendCardInputSchema, h as rampCreateVirtualCardInputSchema, i as rampCardListInputSchema, m as rampCreatePhysicalCardInputSchema, n as rampCardFundTransferSchema, p as rampCardUpdateInputSchema, r as rampCardGetInputSchema, v as rampUnsuspendCardInputSchema } from "./cards-DNZQtrd7.mjs";
3
+ import { t as rampDeferredTaskSchema } from "./users-Bx4SR4el.mjs";
4
+ import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
5
+ import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
6
6
  import { z } from "zod";
7
7
 
8
8
  //#region src/cards.ts
@@ -1,5 +1,5 @@
1
- import * as zod from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import * as zod from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
  import * as zod_v4_core0 from "zod/v4/core";
5
5
 
@@ -21,7 +21,7 @@ declare const listCashbacks: _keystrokehq_core0.Operation<zod.ZodObject<{
21
21
  page: zod.ZodOptional<zod.ZodObject<{
22
22
  next: zod.ZodOptional<zod.ZodString>;
23
23
  }, zod_v4_core0.$strip>>;
24
- }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
24
+ }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
25
25
  RAMP_ACCESS_TOKEN: zod.ZodString;
26
26
  }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
27
27
  RAMP_ACCESS_TOKEN: zod.ZodString;
@@ -37,7 +37,7 @@ declare const getCashback: _keystrokehq_core0.Operation<zod.ZodObject<{
37
37
  status: zod.ZodOptional<zod.ZodString>;
38
38
  granted_date: zod.ZodOptional<zod.ZodString>;
39
39
  entity_id: zod.ZodOptional<zod.ZodString>;
40
- }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
40
+ }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
41
41
  RAMP_ACCESS_TOKEN: zod.ZodString;
42
42
  }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
43
43
  RAMP_ACCESS_TOKEN: zod.ZodString;
@@ -1,7 +1,7 @@
1
1
  import { createRampClient } from "./client.mjs";
2
- import { i as rampCashbackSchema, n as rampCashbackListInputSchema, r as rampCashbackListSchema, t as rampCashbackGetInputSchema } from "./transfers-WBQZVdGP.mjs";
3
- import { t as rampOperation } from "./factory-pbmCYnqr.mjs";
4
- import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
2
+ import { i as rampCashbackSchema, n as rampCashbackListInputSchema, r as rampCashbackListSchema, t as rampCashbackGetInputSchema } from "./transfers-C-76qq3o.mjs";
3
+ import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
4
+ import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
5
5
 
6
6
  //#region src/cashbacks.ts
7
7
  const listCashbacks = rampOperation({
package/dist/client.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { n as RampCredentials } from "./integration-D6jpX1pZ.mjs";
2
- import { t as RampErrorKind } from "./errors-CIJf9-v0.mjs";
1
+ import { n as RampCredentials } from "./integration-BTjaW9hR.mjs";
2
+ import { t as RampErrorKind } from "./errors-TrirAChI.mjs";
3
3
 
4
4
  //#region src/client.d.ts
5
5
  declare const RAMP_API_HOSTS: {
package/dist/client.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { n as ramp } from "./integration-8czEQ_pK.mjs";
1
+ import { n as ramp } from "./integration-BczMK0aE.mjs";
2
+ import { t as createErrorNormalizingProxy } from "./dist-Bbp6t-WQ.mjs";
2
3
  import { CredentialRevokedError } from "@keystrokehq/core/errors";
3
- import { createErrorNormalizingProxy } from "@keystrokehq/integration-authoring";
4
4
 
5
5
  //#region src/client.ts
6
6
  const RAMP_API_HOSTS = {
@@ -1,2 +1,2 @@
1
- import { a as rampBundle, i as ramp, n as RampCredentials, o as rampOfficialIntegration, r as RampOAuthScope, t as RAMP_OAUTH_SCOPES } from "./integration-D6jpX1pZ.mjs";
1
+ import { a as rampBundle, i as ramp, n as RampCredentials, o as rampOfficialIntegration, r as RampOAuthScope, t as RAMP_OAUTH_SCOPES } from "./integration-BTjaW9hR.mjs";
2
2
  export { RAMP_OAUTH_SCOPES, type RampCredentials, type RampOAuthScope, ramp, rampBundle, rampOfficialIntegration };
@@ -1,3 +1,3 @@
1
- import { i as rampOfficialIntegration, n as ramp, r as rampBundle, t as RAMP_OAUTH_SCOPES } from "./integration-8czEQ_pK.mjs";
1
+ import { i as rampOfficialIntegration, n as ramp, r as rampBundle, t as RAMP_OAUTH_SCOPES } from "./integration-BczMK0aE.mjs";
2
2
 
3
3
  export { RAMP_OAUTH_SCOPES, ramp, rampBundle, rampOfficialIntegration };
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/departments.d.ts
@@ -14,7 +14,7 @@ declare const listDepartments: _keystrokehq_core0.Operation<z.ZodObject<{
14
14
  page: z.ZodOptional<z.ZodObject<{
15
15
  next: z.ZodOptional<z.ZodString>;
16
16
  }, z.core.$strip>>;
17
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
17
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
18
18
  RAMP_ACCESS_TOKEN: z.ZodString;
19
19
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
20
20
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -24,7 +24,7 @@ declare const getDepartment: _keystrokehq_core0.Operation<z.ZodObject<{
24
24
  }, z.core.$strip>, z.ZodObject<{
25
25
  id: z.ZodString;
26
26
  name: z.ZodOptional<z.ZodString>;
27
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
27
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
28
28
  RAMP_ACCESS_TOKEN: z.ZodString;
29
29
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
30
30
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -34,7 +34,7 @@ declare const createDepartment: _keystrokehq_core0.Operation<z.ZodObject<{
34
34
  }, z.core.$strip>, z.ZodObject<{
35
35
  id: z.ZodString;
36
36
  name: z.ZodOptional<z.ZodString>;
37
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
37
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
38
38
  RAMP_ACCESS_TOKEN: z.ZodString;
39
39
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
40
40
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -45,7 +45,7 @@ declare const updateDepartment: _keystrokehq_core0.Operation<z.ZodObject<{
45
45
  }, z.core.$strip>, z.ZodObject<{
46
46
  id: z.ZodString;
47
47
  name: z.ZodOptional<z.ZodString>;
48
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
48
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
49
49
  RAMP_ACCESS_TOKEN: z.ZodString;
50
50
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
51
51
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -54,7 +54,7 @@ declare const deleteDepartment: _keystrokehq_core0.Operation<z.ZodObject<{
54
54
  departmentId: z.ZodString;
55
55
  }, z.core.$strip>, z.ZodObject<{
56
56
  success: z.ZodBoolean;
57
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
57
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
58
58
  RAMP_ACCESS_TOKEN: z.ZodString;
59
59
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
60
60
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -1,7 +1,7 @@
1
1
  import { createRampClient } from "./client.mjs";
2
- import { a as rampDepartmentListSchema, i as rampDepartmentListInputSchema, n as rampDepartmentDeleteInputSchema, o as rampDepartmentSchema, r as rampDepartmentGetInputSchema, s as rampDepartmentUpdateInputSchema, t as rampDepartmentCreateInputSchema } from "./organization-BSaEpvBn.mjs";
3
- import { t as rampOperation } from "./factory-pbmCYnqr.mjs";
4
- import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
2
+ import { a as rampDepartmentListSchema, i as rampDepartmentListInputSchema, n as rampDepartmentDeleteInputSchema, o as rampDepartmentSchema, r as rampDepartmentGetInputSchema, s as rampDepartmentUpdateInputSchema, t as rampDepartmentCreateInputSchema } from "./organization-BdyZhkYN.mjs";
3
+ import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
4
+ import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/departments.ts
@@ -0,0 +1,74 @@
1
+ import { Operation } from "@keystrokehq/core";
2
+ import { z } from "zod";
3
+ import { pollingTrigger } from "@keystrokehq/core/trigger";
4
+
5
+ //#region ../../packages/integration-authoring/dist/index.mjs
6
+ function isThenable(value) {
7
+ return !!value && typeof value === "object" && "then" in value && typeof value.then === "function";
8
+ }
9
+ function createErrorNormalizingProxy(target, normalizeError, path = []) {
10
+ return new Proxy(target, { get(obj, property, receiver) {
11
+ const value = Reflect.get(obj, property, receiver);
12
+ if (typeof value === "function") return (...args) => {
13
+ try {
14
+ const result = value.apply(obj, args);
15
+ if (isThenable(result)) return result.then(void 0, (error) => {
16
+ throw normalizeError(error, { methodPath: [...path, String(property)].join(".") });
17
+ });
18
+ return result;
19
+ } catch (error) {
20
+ throw normalizeError(error, { methodPath: [...path, String(property)].join(".") });
21
+ }
22
+ };
23
+ if (value && typeof value === "object") return createErrorNormalizingProxy(value, normalizeError, [...path, String(property)]);
24
+ return value;
25
+ } });
26
+ }
27
+ const IntegrationConfigSchema = z.object({
28
+ id: z.string().min(1),
29
+ name: z.string().min(1),
30
+ description: z.string().optional()
31
+ });
32
+ function resolveMetadata(metadata, defaults) {
33
+ return {
34
+ id: metadata?.id ?? defaults.defaultId,
35
+ description: metadata?.description ?? defaults.defaultDescription
36
+ };
37
+ }
38
+ function resolveAuthorPayload(payload, mapPayload) {
39
+ if (!mapPayload) return payload;
40
+ return mapPayload(payload);
41
+ }
42
+ function createIntegrationTriggerBindingFactory(config) {
43
+ const bind = (options) => {
44
+ const resolvedMetadata = resolveMetadata(options, config);
45
+ const baseTrigger = config.createBaseTrigger(resolvedMetadata);
46
+ const userTransform = options?.transform;
47
+ return baseTrigger({ transform: userTransform || config.mapPayload ? (runtimePayload, request) => {
48
+ const authorPayload = resolveAuthorPayload(runtimePayload, config.mapPayload);
49
+ if (authorPayload === null) throw new Error(`Trigger "${resolvedMetadata.id}" mapPayload returned null after the trigger filter passed; tighten the trigger filter schema.`);
50
+ if (!userTransform) return authorPayload;
51
+ return userTransform(authorPayload, request);
52
+ } : void 0 });
53
+ };
54
+ return Object.freeze(bind);
55
+ }
56
+ function createPollingTriggerBindingFactory(config) {
57
+ return createIntegrationTriggerBindingFactory({
58
+ defaultId: config.defaultId,
59
+ defaultDescription: config.defaultDescription,
60
+ mapPayload: config.mapPayload,
61
+ createBaseTrigger: (metadata) => pollingTrigger({
62
+ id: metadata.id,
63
+ description: metadata.description,
64
+ schedule: config.schedule,
65
+ response: config.response,
66
+ poll: config.poll,
67
+ ...config.credentialSets ? { credentialSets: config.credentialSets } : {},
68
+ ...config.filter ? { filter: config.filter } : {}
69
+ })
70
+ });
71
+ }
72
+
73
+ //#endregion
74
+ export { createPollingTriggerBindingFactory as n, createErrorNormalizingProxy as t };
@@ -1,5 +1,5 @@
1
- import * as zod from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import * as zod from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
  import * as zod_v4_core0 from "zod/v4/core";
5
5
 
@@ -17,7 +17,7 @@ declare const listEntities: _keystrokehq_core0.Operation<zod.ZodObject<{
17
17
  page: zod.ZodOptional<zod.ZodObject<{
18
18
  next: zod.ZodOptional<zod.ZodString>;
19
19
  }, zod_v4_core0.$strip>>;
20
- }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
20
+ }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
21
21
  RAMP_ACCESS_TOKEN: zod.ZodString;
22
22
  }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
23
23
  RAMP_ACCESS_TOKEN: zod.ZodString;
@@ -29,7 +29,7 @@ declare const getEntity: _keystrokehq_core0.Operation<zod.ZodObject<{
29
29
  entity_name: zod.ZodOptional<zod.ZodString>;
30
30
  country_code: zod.ZodOptional<zod.ZodString>;
31
31
  is_primary: zod.ZodOptional<zod.ZodBoolean>;
32
- }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
32
+ }, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
33
33
  RAMP_ACCESS_TOKEN: zod.ZodString;
34
34
  }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
35
35
  RAMP_ACCESS_TOKEN: zod.ZodString;
package/dist/entities.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createRampClient } from "./client.mjs";
2
- import { a as rampEntitySchema, i as rampEntityListSchema, n as rampEntityGetInputSchema, r as rampEntityListInputSchema } from "./business-CztnWUvt.mjs";
3
- import { t as rampOperation } from "./factory-pbmCYnqr.mjs";
4
- import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
2
+ import { a as rampEntitySchema, i as rampEntityListSchema, n as rampEntityGetInputSchema, r as rampEntityListInputSchema } from "./business-DAD870OI.mjs";
3
+ import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
4
+ import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
5
5
 
6
6
  //#region src/entities.ts
7
7
  const listEntities = rampOperation({
package/dist/events.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as RampWebhookEventEnvelope, c as rampWebhookEventEnvelopeSchema, r as RampDocumentedWebhookEventType, t as RAMP_DOCUMENTED_WEBHOOK_EVENT_TYPES } from "./webhook-Bp38YQE9.mjs";
1
+ import { a as RampWebhookEventEnvelope, c as rampWebhookEventEnvelopeSchema, r as RampDocumentedWebhookEventType, t as RAMP_DOCUMENTED_WEBHOOK_EVENT_TYPES } from "./webhook-sde3Ui2N.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/events.d.ts
package/dist/events.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as rampWebhookEventEnvelopeSchema, t as RAMP_DOCUMENTED_WEBHOOK_EVENT_TYPES } from "./webhook-CsbvcgrC.mjs";
1
+ import { a as rampWebhookEventEnvelopeSchema, t as RAMP_DOCUMENTED_WEBHOOK_EVENT_TYPES } from "./webhook-CzjBDCWU.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/events.ts
@@ -1,5 +1,4 @@
1
- import { n as ramp } from "./integration-8czEQ_pK.mjs";
2
- import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
1
+ import { n as ramp, s as createOfficialOperationFactory } from "./integration-BczMK0aE.mjs";
3
2
 
4
3
  //#region src/factory.ts
5
4
  /**
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
- import { z } from "zod";
3
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
4
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
4
  import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
5
 
@@ -33,10 +32,10 @@ declare const rampOfficialIntegration: {
33
32
  };
34
33
  }[];
35
34
  };
36
- declare const rampBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"ramp", z.ZodObject<{
35
+ declare const rampBundle: undefined<"ramp", z.ZodObject<{
37
36
  RAMP_ACCESS_TOKEN: z.ZodString;
38
37
  }, z.core.$strip>>;
39
- declare const ramp: _keystrokehq_core0.CredentialSet<"keystroke:ramp", z.ZodObject<{
38
+ declare const ramp: _keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
40
39
  RAMP_ACCESS_TOKEN: z.ZodString;
41
40
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
42
41
  RAMP_ACCESS_TOKEN: z.ZodString;
@@ -1,7 +1,99 @@
1
- import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
1
+ import { CredentialSet, Operation } from "@keystrokehq/core";
2
2
  import { z } from "zod";
3
- import { CredentialSet } from "@keystrokehq/core";
4
3
 
4
+ //#region ../../packages/integration-authoring/dist/official/runtime.mjs
5
+ const REGISTRY_KEY = "__ks_official_integration_metadata_registry";
6
+ function getRegistry() {
7
+ const globalStore = globalThis;
8
+ if (!globalStore[REGISTRY_KEY]) globalStore[REGISTRY_KEY] = /* @__PURE__ */ new WeakMap();
9
+ return globalStore[REGISTRY_KEY];
10
+ }
11
+ function registerOfficialOperation(operation, metadata) {
12
+ getRegistry().set(operation, Object.freeze({ ...metadata }));
13
+ }
14
+
15
+ //#endregion
16
+ //#region ../../packages/integration-authoring/dist/official/index.mjs
17
+ const OFFICIAL_CREDENTIAL_SET_ID_PREFIX = "keystroke:";
18
+ function officialCredentialSetId(id) {
19
+ return `${OFFICIAL_CREDENTIAL_SET_ID_PREFIX}${id}`;
20
+ }
21
+ function stripOfficialCredentialSetIdPrefix(id) {
22
+ return id.startsWith(OFFICIAL_CREDENTIAL_SET_ID_PREFIX) ? id.slice(10) : id;
23
+ }
24
+ /**
25
+ * Creates a factory for Keystroke-official integration operations.
26
+ *
27
+ * It keeps the same flat `run(input, credentials)` ergonomics as the generic
28
+ * operation factory, while registering official metadata for builder/runtime
29
+ * operation metadata.
30
+ */
31
+ function createOfficialOperationFactory(credentialSet) {
32
+ const integrationId = stripOfficialCredentialSetIdPrefix(credentialSet.id);
33
+ return (config) => {
34
+ const wrappedRun = async (input, ctx) => {
35
+ const creds = ctx.credentials[credentialSet.id];
36
+ return config.run(input, creds);
37
+ };
38
+ const operation = new Operation({
39
+ id: config.id,
40
+ name: config.name,
41
+ description: config.description,
42
+ input: config.input,
43
+ output: config.output,
44
+ credentialSets: [credentialSet],
45
+ ...config.tags !== void 0 ? { tags: config.tags } : {},
46
+ ...config.needsApproval !== void 0 ? { needsApproval: config.needsApproval } : {},
47
+ ...config.requiredOAuthScopes !== void 0 ? { requiredOAuthScopes: config.requiredOAuthScopes } : {},
48
+ ...config.retries !== void 0 ? { retries: config.retries } : {},
49
+ ...config.timeout !== void 0 ? { timeout: config.timeout } : {},
50
+ ...config.maxDurationMs !== void 0 ? { maxDurationMs: config.maxDurationMs } : {},
51
+ run: wrappedRun
52
+ });
53
+ registerOfficialOperation(operation, { integrationId });
54
+ return operation;
55
+ };
56
+ }
57
+ /**
58
+ * Creates an official integration bundle from a single config object.
59
+ *
60
+ * - Creates the public `CredentialSet` internally.
61
+ * - Accepts optional `internal` fields for Keystroke-owned platform credentials.
62
+ */
63
+ function defineOfficialIntegration(config) {
64
+ const internalCredentialSets = config.internal ?? {};
65
+ const allInternalCredentialSets = [
66
+ ...internalCredentialSets.providerApp ? [internalCredentialSets.providerApp] : [],
67
+ ...internalCredentialSets.providerAppVariants ?? [],
68
+ ...internalCredentialSets.webhookVerification ? [internalCredentialSets.webhookVerification] : [],
69
+ ...internalCredentialSets.other ?? []
70
+ ];
71
+ const credentialSet = new CredentialSet({
72
+ id: config.id,
73
+ name: config.name,
74
+ description: config.description,
75
+ auth: config.auth,
76
+ ...config.connections ? { connections: config.connections } : {},
77
+ ...config.proxy ? { proxy: config.proxy } : {},
78
+ ...config.needsRawSecret === true ? { needsRawSecret: true } : {}
79
+ });
80
+ return Object.freeze({
81
+ integration: {
82
+ id: config.id,
83
+ name: config.name,
84
+ ...config.description !== void 0 ? { description: config.description } : {},
85
+ auth: config.auth,
86
+ ...config.proxy ? { proxy: config.proxy } : {},
87
+ ...config.needsRawSecret === true ? { needsRawSecret: true } : {},
88
+ ...config.connections ? { connections: config.connections } : {}
89
+ },
90
+ credentialSet,
91
+ internalCredentialSets,
92
+ allInternalCredentialSets
93
+ });
94
+ }
95
+
96
+ //#endregion
5
97
  //#region src/_official/provider-app.ts
6
98
  /**
7
99
  * Internal credential set for the Keystroke-owned Ramp OAuth application.
@@ -121,4 +213,4 @@ const rampBundle = defineOfficialIntegration({
121
213
  const ramp = rampBundle.credentialSet;
122
214
 
123
215
  //#endregion
124
- export { rampAppCredentialSet as a, rampOfficialIntegration as i, ramp as n, rampOfficialProviderSeed as o, rampBundle as r, RAMP_OAUTH_SCOPES as t };
216
+ export { rampAppCredentialSet as a, rampOfficialIntegration as i, ramp as n, rampOfficialProviderSeed as o, rampBundle as r, createOfficialOperationFactory as s, RAMP_OAUTH_SCOPES as t };