@keystrokehq/ramp 0.0.7 → 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.
- package/dist/_official/index.d.mts +2 -2
- package/dist/_official/index.mjs +1 -1
- package/dist/{accounting-i6txC-MI.mjs → accounting-Ceh5QgHA.mjs} +1 -1
- package/dist/accounting-fields.d.mts +8 -8
- package/dist/accounting-fields.mjs +10 -10
- package/dist/accounting-gl-accounts.d.mts +4 -4
- package/dist/accounting-gl-accounts.mjs +6 -6
- package/dist/accounting-subsidiaries.d.mts +4 -4
- package/dist/accounting-subsidiaries.mjs +6 -6
- package/dist/accounting-sync.d.mts +4 -4
- package/dist/accounting-sync.mjs +6 -6
- package/dist/accounting-tracking-categories.d.mts +3 -3
- package/dist/accounting-tracking-categories.mjs +5 -5
- package/dist/accounting-vendors.d.mts +4 -4
- package/dist/accounting-vendors.mjs +6 -6
- package/dist/applications.d.mts +6 -6
- package/dist/applications.mjs +5 -5
- package/dist/{bills-B8W9et3K.mjs → bills-D7vZ5JRH.mjs} +1 -1
- package/dist/bills.d.mts +24 -24
- package/dist/bills.mjs +10 -10
- package/dist/{business-CztnWUvt.mjs → business-DAD870OI.mjs} +1 -1
- package/dist/business.d.mts +2 -2
- package/dist/business.mjs +3 -3
- package/dist/card-programs.d.mts +4 -4
- package/dist/card-programs.mjs +6 -6
- package/dist/{cards-BfgPcR38.mjs → cards-DNZQtrd7.mjs} +1 -1
- package/dist/cards.d.mts +10 -10
- package/dist/cards.mjs +13 -13
- package/dist/cashbacks.d.mts +3 -3
- package/dist/cashbacks.mjs +5 -5
- package/dist/client.d.mts +2 -2
- package/dist/client.mjs +2 -2
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/departments.d.mts +6 -6
- package/dist/departments.mjs +8 -8
- package/dist/dist-Bbp6t-WQ.mjs +74 -0
- package/dist/entities.d.mts +3 -3
- package/dist/entities.mjs +5 -5
- package/dist/{errors-Dm2DruuS.d.mts → errors-TrirAChI.d.mts} +1 -1
- package/dist/events.d.mts +1 -1
- package/dist/events.mjs +1 -1
- package/dist/{factory-pbmCYnqr.mjs → factory-hiMPmrYD.mjs} +1 -2
- package/dist/{integration-D6jpX1pZ.d.mts → integration-BTjaW9hR.d.mts} +3 -4
- package/dist/{integration-8czEQ_pK.mjs → integration-BczMK0aE.mjs} +95 -3
- package/dist/limits.d.mts +6 -6
- package/dist/limits.mjs +8 -8
- package/dist/locations.d.mts +6 -6
- package/dist/locations.mjs +8 -8
- package/dist/memos.d.mts +3 -3
- package/dist/memos.mjs +5 -5
- package/dist/{new-resources-BBJsJEjT.mjs → new-resources-Cj_YECLc.mjs} +1 -1
- package/dist/{organization-BSaEpvBn.mjs → organization-BdyZhkYN.mjs} +1 -1
- package/dist/purchase-orders.d.mts +6 -6
- package/dist/purchase-orders.mjs +5 -5
- package/dist/receipt-integrations.d.mts +3 -3
- package/dist/receipt-integrations.mjs +4 -4
- package/dist/{receipts-STq41c2M.mjs → receipts-DKq5Kjhr.mjs} +1 -1
- package/dist/receipts.d.mts +4 -4
- package/dist/receipts.mjs +6 -6
- package/dist/{reimbursements-OknrZUMF.mjs → reimbursements--xBvXROu.mjs} +1 -1
- package/dist/reimbursements.d.mts +6 -6
- package/dist/reimbursements.mjs +5 -5
- package/dist/schemas/index.d.mts +3 -3
- package/dist/schemas/index.mjs +15 -15
- package/dist/spend-programs.d.mts +3 -3
- package/dist/spend-programs.mjs +5 -5
- package/dist/spend-requests.d.mts +4 -4
- package/dist/spend-requests.mjs +6 -6
- package/dist/statements.d.mts +3 -3
- package/dist/statements.mjs +5 -5
- package/dist/{transactions-Djd0oIGK.mjs → transactions-IIG8obly.mjs} +1 -1
- package/dist/transactions.d.mts +9 -9
- package/dist/transactions.mjs +6 -6
- package/dist/{transfers-WBQZVdGP.mjs → transfers-C-76qq3o.mjs} +1 -1
- package/dist/transfers.d.mts +9 -9
- package/dist/transfers.mjs +5 -5
- package/dist/triggers/index.d.mts +3 -3
- package/dist/triggers/index.mjs +11 -11
- package/dist/unified-requests.d.mts +3 -3
- package/dist/unified-requests.mjs +5 -5
- package/dist/{users-ufcXrfNK.mjs → users-Bx4SR4el.mjs} +1 -1
- package/dist/users.d.mts +7 -7
- package/dist/users.mjs +9 -9
- package/dist/vendor-bank-accounts.d.mts +6 -6
- package/dist/vendor-bank-accounts.mjs +8 -8
- package/dist/{vendors-gH-w9b_R.d.mts → vendors-De3fNIYJ.d.mts} +32 -32
- package/dist/{vendors-Bx1cgXwC.mjs → vendors-lAh0yain.mjs} +1 -1
- package/dist/vendors.d.mts +6 -6
- package/dist/vendors.mjs +8 -8
- package/dist/verification.mjs +1 -1
- package/dist/{webhook-CsbvcgrC.mjs → webhook-CzjBDCWU.mjs} +1 -1
- package/dist/{webhooks-mgmt-d1xgVpWx.mjs → webhooks-mgmt--fU1Uxfa.mjs} +1 -1
- package/dist/webhooks.d.mts +6 -6
- package/dist/webhooks.mjs +8 -8
- package/package.json +4 -4
- /package/dist/{common-CUpmNYXw.mjs → common-Dune7BHS.mjs} +0 -0
- /package/dist/{shared-CTTtP5gv.mjs → shared-3DudrK5L.mjs} +0 -0
- /package/dist/{webhook-Bp38YQE9.d.mts → webhook-sde3Ui2N.d.mts} +0 -0
package/dist/departments.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/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<"
|
|
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<"
|
|
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<"
|
|
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<"
|
|
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<"
|
|
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;
|
package/dist/departments.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
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
|
|
8
8
|
const listDepartments = rampOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "ramp.list-departments",
|
|
10
10
|
name: "List Departments",
|
|
11
11
|
description: "List all departments configured for the connected Ramp business.",
|
|
12
12
|
input: rampDepartmentListInputSchema,
|
|
@@ -20,7 +20,7 @@ const listDepartments = rampOperation({
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const getDepartment = rampOperation({
|
|
23
|
-
id: "
|
|
23
|
+
id: "ramp.get-department",
|
|
24
24
|
name: "Get Department",
|
|
25
25
|
description: "Fetch a Ramp department by id.",
|
|
26
26
|
input: rampDepartmentGetInputSchema,
|
|
@@ -31,7 +31,7 @@ const getDepartment = rampOperation({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const createDepartment = rampOperation({
|
|
34
|
-
id: "
|
|
34
|
+
id: "ramp.create-department",
|
|
35
35
|
name: "Create Department",
|
|
36
36
|
description: "Create a new department in the Ramp org hierarchy.",
|
|
37
37
|
input: rampDepartmentCreateInputSchema,
|
|
@@ -46,7 +46,7 @@ const createDepartment = rampOperation({
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
const updateDepartment = rampOperation({
|
|
49
|
-
id: "
|
|
49
|
+
id: "ramp.update-department",
|
|
50
50
|
name: "Update Department",
|
|
51
51
|
description: "Rename an existing Ramp department.",
|
|
52
52
|
input: rampDepartmentUpdateInputSchema,
|
|
@@ -63,7 +63,7 @@ const updateDepartment = rampOperation({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
const deleteDepartment = rampOperation({
|
|
66
|
-
id: "
|
|
66
|
+
id: "ramp.delete-department",
|
|
67
67
|
name: "Delete Department",
|
|
68
68
|
description: "Delete a Ramp department by id.",
|
|
69
69
|
input: rampDepartmentDeleteInputSchema,
|
|
@@ -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 };
|
package/dist/entities.d.mts
CHANGED
|
@@ -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<"
|
|
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<"
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
|
-
import { a as rampEntitySchema, i as rampEntityListSchema, n as rampEntityGetInputSchema, r as rampEntityListInputSchema } from "./business-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
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({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-entities",
|
|
9
9
|
name: "List Entities",
|
|
10
10
|
description: "List legal entities configured under the connected Ramp business.",
|
|
11
11
|
input: rampEntityListInputSchema,
|
|
@@ -19,7 +19,7 @@ const listEntities = rampOperation({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const getEntity = rampOperation({
|
|
22
|
-
id: "
|
|
22
|
+
id: "ramp.get-entity",
|
|
23
23
|
name: "Get Entity",
|
|
24
24
|
description: "Fetch a Ramp legal entity by id.",
|
|
25
25
|
input: rampEntityGetInputSchema,
|
|
@@ -27,8 +27,8 @@ type RampErrorPayload = z.infer<typeof rampErrorPayloadSchema>;
|
|
|
27
27
|
*/
|
|
28
28
|
declare const rampErrorKindSchema: z.ZodEnum<{
|
|
29
29
|
unknown: "unknown";
|
|
30
|
-
network: "network";
|
|
31
30
|
timeout: "timeout";
|
|
31
|
+
network: "network";
|
|
32
32
|
auth_revoked: "auth_revoked";
|
|
33
33
|
missing_scope: "missing_scope";
|
|
34
34
|
rate_limited: "rate_limited";
|
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-
|
|
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-
|
|
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-
|
|
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:
|
|
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<"
|
|
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 {
|
|
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 };
|
package/dist/limits.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/limits.d.ts
|
|
@@ -38,7 +38,7 @@ declare const listLimits: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
38
38
|
page: z.ZodOptional<z.ZodObject<{
|
|
39
39
|
next: z.ZodOptional<z.ZodString>;
|
|
40
40
|
}, z.core.$strip>>;
|
|
41
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
41
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
42
42
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
43
43
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
44
44
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -69,7 +69,7 @@ declare const getLimit: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
69
69
|
currency: z.ZodString;
|
|
70
70
|
}, z.core.$strip>>;
|
|
71
71
|
created_at: z.ZodOptional<z.ZodString>;
|
|
72
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
72
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
73
73
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
74
74
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
75
75
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -117,7 +117,7 @@ declare const createLimit: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
117
117
|
currency: z.ZodString;
|
|
118
118
|
}, z.core.$strip>>;
|
|
119
119
|
created_at: z.ZodOptional<z.ZodString>;
|
|
120
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
120
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
121
121
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
122
122
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
123
123
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -161,7 +161,7 @@ declare const updateLimit: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
161
161
|
currency: z.ZodString;
|
|
162
162
|
}, z.core.$strip>>;
|
|
163
163
|
created_at: z.ZodOptional<z.ZodString>;
|
|
164
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
164
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
165
165
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
166
166
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
167
167
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -170,7 +170,7 @@ declare const deleteLimit: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
170
170
|
limitId: z.ZodString;
|
|
171
171
|
}, z.core.$strip>, z.ZodObject<{
|
|
172
172
|
success: z.ZodBoolean;
|
|
173
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
173
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
174
174
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
175
175
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
176
176
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
package/dist/limits.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
|
-
import { c as rampLimitCreateInputSchema, f as rampLimitListInputSchema, h as rampLimitUpdateInputSchema, l as rampLimitDeleteInputSchema, m as rampLimitSchema, p as rampLimitListSchema, u as rampLimitGetInputSchema } from "./organization-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
2
|
+
import { c as rampLimitCreateInputSchema, f as rampLimitListInputSchema, h as rampLimitUpdateInputSchema, l as rampLimitDeleteInputSchema, m as rampLimitSchema, p as rampLimitListSchema, u as rampLimitGetInputSchema } 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/limits.ts
|
|
8
8
|
const listLimits = rampOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "ramp.list-limits",
|
|
10
10
|
name: "List Limits",
|
|
11
11
|
description: "List Ramp spending limits. Supports filtering by user, spend program, and entity.",
|
|
12
12
|
input: rampLimitListInputSchema,
|
|
@@ -23,7 +23,7 @@ const listLimits = rampOperation({
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
const getLimit = rampOperation({
|
|
26
|
-
id: "
|
|
26
|
+
id: "ramp.get-limit",
|
|
27
27
|
name: "Get Limit",
|
|
28
28
|
description: "Fetch a Ramp limit by id.",
|
|
29
29
|
input: rampLimitGetInputSchema,
|
|
@@ -34,7 +34,7 @@ const getLimit = rampOperation({
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
const createLimit = rampOperation({
|
|
37
|
-
id: "
|
|
37
|
+
id: "ramp.create-limit",
|
|
38
38
|
name: "Create Limit",
|
|
39
39
|
description: "Create a new Ramp spending limit for a set of users.",
|
|
40
40
|
input: rampLimitCreateInputSchema,
|
|
@@ -51,7 +51,7 @@ const createLimit = rampOperation({
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
const updateLimit = rampOperation({
|
|
54
|
-
id: "
|
|
54
|
+
id: "ramp.update-limit",
|
|
55
55
|
name: "Update Limit",
|
|
56
56
|
description: "Update display name or spending restrictions on an existing Ramp limit.",
|
|
57
57
|
input: rampLimitUpdateInputSchema,
|
|
@@ -68,7 +68,7 @@ const updateLimit = rampOperation({
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
const deleteLimit = rampOperation({
|
|
71
|
-
id: "
|
|
71
|
+
id: "ramp.delete-limit",
|
|
72
72
|
name: "Delete Limit",
|
|
73
73
|
description: "Delete a Ramp spending limit by id.",
|
|
74
74
|
input: rampLimitDeleteInputSchema,
|
package/dist/locations.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/locations.d.ts
|
|
@@ -16,7 +16,7 @@ declare const listLocations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
16
16
|
page: z.ZodOptional<z.ZodObject<{
|
|
17
17
|
next: z.ZodOptional<z.ZodString>;
|
|
18
18
|
}, z.core.$strip>>;
|
|
19
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
19
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
20
20
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
21
21
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
22
22
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -27,7 +27,7 @@ declare const getLocation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
27
27
|
id: z.ZodString;
|
|
28
28
|
name: z.ZodOptional<z.ZodString>;
|
|
29
29
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
30
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
31
31
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
32
32
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
33
33
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -39,7 +39,7 @@ declare const createLocation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
39
39
|
id: z.ZodString;
|
|
40
40
|
name: z.ZodOptional<z.ZodString>;
|
|
41
41
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
42
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
42
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
43
43
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
44
44
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
45
45
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -51,7 +51,7 @@ declare const updateLocation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
51
51
|
id: z.ZodString;
|
|
52
52
|
name: z.ZodOptional<z.ZodString>;
|
|
53
53
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
54
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
55
55
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
56
56
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
57
57
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -60,7 +60,7 @@ declare const deleteLocation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
60
60
|
locationId: z.ZodString;
|
|
61
61
|
}, z.core.$strip>, z.ZodObject<{
|
|
62
62
|
success: z.ZodBoolean;
|
|
63
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
63
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
64
64
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
65
65
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
66
66
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
package/dist/locations.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
|
-
import { S as rampLocationUpdateInputSchema, _ as rampLocationDeleteInputSchema, b as rampLocationListSchema, g as rampLocationCreateInputSchema, v as rampLocationGetInputSchema, x as rampLocationSchema, y as rampLocationListInputSchema } from "./organization-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
2
|
+
import { S as rampLocationUpdateInputSchema, _ as rampLocationDeleteInputSchema, b as rampLocationListSchema, g as rampLocationCreateInputSchema, v as rampLocationGetInputSchema, x as rampLocationSchema, y as rampLocationListInputSchema } 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/locations.ts
|
|
8
8
|
const listLocations = rampOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "ramp.list-locations",
|
|
10
10
|
name: "List Locations",
|
|
11
11
|
description: "List locations configured in the Ramp business, optionally filtered by entity.",
|
|
12
12
|
input: rampLocationListInputSchema,
|
|
@@ -21,7 +21,7 @@ const listLocations = rampOperation({
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const getLocation = rampOperation({
|
|
24
|
-
id: "
|
|
24
|
+
id: "ramp.get-location",
|
|
25
25
|
name: "Get Location",
|
|
26
26
|
description: "Fetch a Ramp location by id.",
|
|
27
27
|
input: rampLocationGetInputSchema,
|
|
@@ -32,7 +32,7 @@ const getLocation = rampOperation({
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
const createLocation = rampOperation({
|
|
35
|
-
id: "
|
|
35
|
+
id: "ramp.create-location",
|
|
36
36
|
name: "Create Location",
|
|
37
37
|
description: "Create a new location in the Ramp business.",
|
|
38
38
|
input: rampLocationCreateInputSchema,
|
|
@@ -47,7 +47,7 @@ const createLocation = rampOperation({
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
const updateLocation = rampOperation({
|
|
50
|
-
id: "
|
|
50
|
+
id: "ramp.update-location",
|
|
51
51
|
name: "Update Location",
|
|
52
52
|
description: "Rename an existing Ramp location.",
|
|
53
53
|
input: rampLocationUpdateInputSchema,
|
|
@@ -64,7 +64,7 @@ const updateLocation = rampOperation({
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
const deleteLocation = rampOperation({
|
|
67
|
-
id: "
|
|
67
|
+
id: "ramp.delete-location",
|
|
68
68
|
name: "Delete Location",
|
|
69
69
|
description: "Delete a Ramp location by id.",
|
|
70
70
|
input: rampLocationDeleteInputSchema,
|
package/dist/memos.d.mts
CHANGED
|
@@ -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
|
|
|
@@ -20,7 +20,7 @@ declare const listMemos: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
20
20
|
page: zod.ZodOptional<zod.ZodObject<{
|
|
21
21
|
next: zod.ZodOptional<zod.ZodString>;
|
|
22
22
|
}, zod_v4_core0.$strip>>;
|
|
23
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
23
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
24
24
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
25
25
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
26
26
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -33,7 +33,7 @@ declare const getMemo: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
33
33
|
user_id: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
body: zod.ZodOptional<zod.ZodString>;
|
|
35
35
|
created_at: zod.ZodOptional<zod.ZodString>;
|
|
36
|
-
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
36
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
37
37
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
38
38
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
39
39
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
package/dist/memos.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
|
-
import { C as rampMemoGetInputSchema, E as rampMemoSchema, T as rampMemoListSchema, w as rampMemoListInputSchema } from "./organization-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
2
|
+
import { C as rampMemoGetInputSchema, E as rampMemoSchema, T as rampMemoListSchema, w as rampMemoListInputSchema } from "./organization-BdyZhkYN.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/memos.ts
|
|
7
7
|
const listMemos = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-memos",
|
|
9
9
|
name: "List Memos",
|
|
10
10
|
description: "List Ramp memos attached to transactions or users.",
|
|
11
11
|
input: rampMemoListInputSchema,
|
|
@@ -21,7 +21,7 @@ const listMemos = rampOperation({
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const getMemo = rampOperation({
|
|
24
|
-
id: "
|
|
24
|
+
id: "ramp.get-memo",
|
|
25
25
|
name: "Get Memo",
|
|
26
26
|
description: "Fetch a Ramp memo by id.",
|
|
27
27
|
input: rampMemoGetInputSchema,
|