@fuul/mcp-server 1.6.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/incentives/incentive-create-payload-guide.d.ts +47 -0
- package/dist/incentives/incentive-create-payload-guide.d.ts.map +1 -0
- package/dist/incentives/incentive-create-payload-guide.js +157 -0
- package/dist/incentives/incentive-create-payload-guide.js.map +1 -0
- package/dist/incentives/incentive-write-handlers.d.ts +5 -0
- package/dist/incentives/incentive-write-handlers.d.ts.map +1 -0
- package/dist/incentives/incentive-write-handlers.js +34 -0
- package/dist/incentives/incentive-write-handlers.js.map +1 -0
- package/dist/index.js +73 -5
- package/dist/index.js.map +1 -1
- package/dist/referral-attribution/referral-attribution-handlers.d.ts +11 -1
- package/dist/referral-attribution/referral-attribution-handlers.d.ts.map +1 -1
- package/dist/referral-attribution/referral-attribution-handlers.js +40 -9
- package/dist/referral-attribution/referral-attribution-handlers.js.map +1 -1
- package/dist/tools/tool-descriptions.d.ts +9 -2
- package/dist/tools/tool-descriptions.d.ts.map +1 -1
- package/dist/tools/tool-descriptions.js +55 -7
- package/dist/tools/tool-descriptions.js.map +1 -1
- package/dist/tools/tool-schemas.d.ts +249 -24
- package/dist/tools/tool-schemas.d.ts.map +1 -1
- package/dist/tools/tool-schemas.js +62 -4
- package/dist/tools/tool-schemas.js.map +1 -1
- package/dist/triggers/trigger-create-payload-guide.d.ts +33 -0
- package/dist/triggers/trigger-create-payload-guide.d.ts.map +1 -0
- package/dist/triggers/trigger-create-payload-guide.js +171 -0
- package/dist/triggers/trigger-create-payload-guide.js.map +1 -0
- package/dist/triggers/trigger-write-handlers.d.ts +5 -0
- package/dist/triggers/trigger-write-handlers.d.ts.map +1 -0
- package/dist/triggers/trigger-write-handlers.js +38 -0
- package/dist/triggers/trigger-write-handlers.js.map +1 -0
- package/package.json +1 -1
|
@@ -26,6 +26,28 @@ export function buildDeleteReferralPath(code, query) {
|
|
|
26
26
|
const encoded = encodeURIComponent(code);
|
|
27
27
|
return qs ? `/api/v1/referral_codes/${encoded}/referrals?${qs}` : `/api/v1/referral_codes/${encoded}/referrals`;
|
|
28
28
|
}
|
|
29
|
+
export function buildUseReferralCodePath(code, query) {
|
|
30
|
+
const qs = buildNestQueryString(query);
|
|
31
|
+
const encoded = encodeURIComponent(code);
|
|
32
|
+
return qs ? `/api/v1/referral_codes/${encoded}/use?${qs}` : `/api/v1/referral_codes/${encoded}/use`;
|
|
33
|
+
}
|
|
34
|
+
export function buildGetUserReferrerPath(query) {
|
|
35
|
+
const qs = buildNestQueryString(query);
|
|
36
|
+
return qs ? `/api/v1/user/referrer?${qs}` : '/api/v1/user/referrer';
|
|
37
|
+
}
|
|
38
|
+
function normalizePatchUseResult(data) {
|
|
39
|
+
if (data === undefined || data === null || data === '') {
|
|
40
|
+
return { status: 'used' };
|
|
41
|
+
}
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
export async function runGetUserReferrer(api, bearer, input) {
|
|
45
|
+
const path = buildGetUserReferrerPath({
|
|
46
|
+
user_identifier: input.user_identifier,
|
|
47
|
+
user_identifier_type: input.user_identifier_type,
|
|
48
|
+
});
|
|
49
|
+
return api.getJson(path, { bearerToken: bearer });
|
|
50
|
+
}
|
|
29
51
|
export async function runUpdateUserReferrer(api, bearer, input) {
|
|
30
52
|
assertWriteConfirmedOrDryRun(input);
|
|
31
53
|
const body = buildUpdateUserReferrerBody(input);
|
|
@@ -35,6 +57,18 @@ export async function runUpdateUserReferrer(api, bearer, input) {
|
|
|
35
57
|
}
|
|
36
58
|
return api.putJson(path, body, { bearerToken: bearer });
|
|
37
59
|
}
|
|
60
|
+
export async function runUseReferralCode(api, bearer, input) {
|
|
61
|
+
assertWriteConfirmedOrDryRun(input);
|
|
62
|
+
const path = buildUseReferralCodePath(input.referral_code, {
|
|
63
|
+
user_identifier: input.user_identifier,
|
|
64
|
+
user_identifier_type: input.user_identifier_type,
|
|
65
|
+
});
|
|
66
|
+
if (input.dry_run === true) {
|
|
67
|
+
return { dry_run: true, would_patch: path, body: {} };
|
|
68
|
+
}
|
|
69
|
+
const data = await api.patchJson(path, {}, { bearerToken: bearer });
|
|
70
|
+
return normalizePatchUseResult(data);
|
|
71
|
+
}
|
|
38
72
|
export async function runRemoveUserFromReferralCode(api, bearer, input) {
|
|
39
73
|
assertWriteConfirmedOrDryRun(input);
|
|
40
74
|
const path = buildDeleteReferralPath(input.referral_code, {
|
|
@@ -64,18 +98,15 @@ export async function runSwapUserReferralCode(api, bearer, input) {
|
|
|
64
98
|
referrer_identifier: input.from_referrer_identifier,
|
|
65
99
|
referrer_identifier_type: input.from_referrer_identifier_type,
|
|
66
100
|
});
|
|
67
|
-
const
|
|
101
|
+
const usePath = buildUseReferralCodePath(input.to_referral_code, {
|
|
68
102
|
user_identifier: input.user_identifier,
|
|
69
103
|
user_identifier_type: input.user_identifier_type,
|
|
70
|
-
referrer_identifier: input.to_referrer_identifier,
|
|
71
|
-
referrer_identifier_type: input.to_referrer_identifier_type,
|
|
72
|
-
referral_code: input.to_referral_code,
|
|
73
104
|
});
|
|
74
105
|
if (input.dry_run === true) {
|
|
75
106
|
return {
|
|
76
107
|
dry_run: true,
|
|
77
108
|
step1_remove: { would_delete: removePath, body: {} },
|
|
78
|
-
|
|
109
|
+
step2_use: { would_patch: usePath, body: {} },
|
|
79
110
|
};
|
|
80
111
|
}
|
|
81
112
|
let removeResult;
|
|
@@ -91,15 +122,15 @@ export async function runSwapUserReferralCode(api, bearer, input) {
|
|
|
91
122
|
}
|
|
92
123
|
}
|
|
93
124
|
try {
|
|
94
|
-
const
|
|
95
|
-
return { remove: removeResult,
|
|
125
|
+
const useResult = normalizePatchUseResult(await api.patchJson(usePath, {}, { bearerToken: bearer }));
|
|
126
|
+
return { remove: removeResult, use: useResult };
|
|
96
127
|
}
|
|
97
128
|
catch (e) {
|
|
98
|
-
const
|
|
129
|
+
const useError = e instanceof ApiRequestError ? { message: e.message, status: e.status } : { message: e instanceof Error ? e.message : String(e) };
|
|
99
130
|
return {
|
|
100
131
|
partial: true,
|
|
101
132
|
remove: removeResult,
|
|
102
|
-
|
|
133
|
+
use_error: useError,
|
|
103
134
|
};
|
|
104
135
|
}
|
|
105
136
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referral-attribution-handlers.js","sourceRoot":"","sources":["../../src/referral-attribution/referral-attribution-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAsB,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"referral-attribution-handlers.js","sourceRoot":"","sources":["../../src/referral-attribution/referral-attribution-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAsB,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAS7D,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC;IACvC,sCAAsC;IACtC,sCAAsC;IACtC,6DAA6D;CAC9D,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CAAC,OAAe;IACrD,OAAO,wBAAwB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,MAGC;IAED,MAAM,IAAI,GAA4B;QACpC,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;QACjD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;QAC/C,wBAAwB,EAAE,MAAM,CAAC,wBAAwB;KAC1D,CAAC;IACF,IAAI,MAAM,CAAC,aAAa,IAAI,IAAI,IAAI,MAAM,CAAC,aAAa,KAAK,EAAE,EAA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E,GAAG,EAAE,SAAS,EAAE,CAAC;IAClD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,QAAQ,GACZ,CAAC,YAAY,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QACpI,OAAO;YACL,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,YAAY;YACpB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
export declare const PING_DESCRIPTION = "Health check: returns \"pong\" if the MCP process is running. No API calls. Example: invoke with empty input {}.";
|
|
5
5
|
export declare const WHOAMI_DESCRIPTION = "Returns the current Fuul dashboard user as JSON from GET /api/v1/auth/user. Requires prior CLI login (tokens in ~/.fuul/tokens.json). Example: {} after `npm run cli -- login`.";
|
|
6
6
|
export declare const LIST_CHAINS_DESCRIPTION = "Lists supported blockchain chains from GET /public-api/v1/metadata/chains. Uses server metadata (not a hardcoded catalog); responses are cached with ETag/Cache-Control. Each chain includes snake_case fields such as chain_id, is_testnet, optional svm_network and webapp_capabilities, and can_be_used_for_payouts (boolean: true where Fuul reward/payout infra is deployed). Params: none (pass {}). Pagination: not exposed by this tool until the API adds cursor/limit.";
|
|
7
|
-
export declare const LIST_TRIGGER_TYPES_DESCRIPTION
|
|
8
|
-
export declare const LIST_PAYOUT_SCHEMAS_DESCRIPTION
|
|
7
|
+
export declare const LIST_TRIGGER_TYPES_DESCRIPTION: string;
|
|
8
|
+
export declare const LIST_PAYOUT_SCHEMAS_DESCRIPTION: string;
|
|
9
9
|
export declare const LIST_PROJECTS_DESCRIPTION = "Lists dashboard projects for the current user: GET /api/v1/projects with optional ?page= (1-based) and ?query=. Example: {\"page\":1} or {\"query\":\"acme\"}.";
|
|
10
10
|
export declare const GET_PROJECT_DESCRIPTION: string;
|
|
11
11
|
export declare const LIST_INCENTIVES_DESCRIPTION: string;
|
|
@@ -14,6 +14,11 @@ export declare const GET_TRIGGER_DESCRIPTION: string;
|
|
|
14
14
|
export declare const UPDATE_PAYOUT_TERM_DESCRIPTION: string;
|
|
15
15
|
export declare const UPDATE_PROJECT_TIER_DESCRIPTION: string;
|
|
16
16
|
export declare const UPDATE_AUDIENCE_DESCRIPTION: string;
|
|
17
|
+
export declare const CREATE_TRIGGER_DESCRIPTION: string;
|
|
18
|
+
export declare const DELETE_TRIGGER_DESCRIPTION: string;
|
|
19
|
+
export declare const CREATE_INCENTIVE_DESCRIPTION: string;
|
|
20
|
+
export declare const DELETE_CONVERSION_DESCRIPTION: string;
|
|
21
|
+
export declare const DELETE_INCENTIVE_DESCRIPTION: string;
|
|
17
22
|
export declare const UPDATE_TRIGGER_DESCRIPTION: string;
|
|
18
23
|
export declare const LIST_PAYOUTS_PENDING_APPROVAL_DESCRIPTION = "Lists payouts pending approval: GET /api/v1/projects/:projectId/payouts/pending-approval. Optional page, page_size. Example: {\"project_id\":\"<uuid>\",\"page\":1,\"page_size\":50}.";
|
|
19
24
|
export declare const LIST_REWARDS_PAYOUTS_DESCRIPTION = "Lists rewards payouts history: GET /api/v1/projects/:projectId/payouts/rewards-payouts. Optional page, page_size, status, from_date, to_date. Example: {\"project_id\":\"<uuid>\",\"page\":1}.";
|
|
@@ -28,7 +33,9 @@ export declare const UPDATE_PROJECT_AFFILIATE_PUBLIC_DESCRIPTION: string;
|
|
|
28
33
|
export declare const SEND_EVENT_DESCRIPTION: string;
|
|
29
34
|
export declare const SEND_BATCH_EVENTS_DESCRIPTION: string;
|
|
30
35
|
export declare const CHECK_EVENT_STATUS_DESCRIPTION: string;
|
|
36
|
+
export declare const GET_USER_REFERRER_DESCRIPTION: string;
|
|
31
37
|
export declare const UPDATE_USER_REFERRER_DESCRIPTION: string;
|
|
38
|
+
export declare const USE_REFERRAL_CODE_DESCRIPTION: string;
|
|
32
39
|
export declare const REMOVE_USER_FROM_REFERRAL_CODE_DESCRIPTION: string;
|
|
33
40
|
export declare const SWAP_USER_REFERRAL_CODE_DESCRIPTION: string;
|
|
34
41
|
//# sourceMappingURL=tool-descriptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-descriptions.d.ts","sourceRoot":"","sources":["../../src/tools/tool-descriptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,gBAAgB,qHAAmH,CAAC;AAEjJ,eAAO,MAAM,kBAAkB,oLACoJ,CAAC;AAEpL,eAAO,MAAM,uBAAuB,qdACgb,CAAC;AAErd,eAAO,MAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"tool-descriptions.d.ts","sourceRoot":"","sources":["../../src/tools/tool-descriptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,gBAAgB,qHAAmH,CAAC;AAEjJ,eAAO,MAAM,kBAAkB,oLACoJ,CAAC;AAEpL,eAAO,MAAM,uBAAuB,qdACgb,CAAC;AAErd,eAAO,MAAM,8BAA8B,QAIY,CAAC;AAExD,eAAO,MAAM,+BAA+B,QAG6F,CAAC;AAE1I,eAAO,MAAM,yBAAyB,mKACsH,CAAC;AAE7J,eAAO,MAAM,uBAAuB,QAK+B,CAAC;AAEpE,eAAO,MAAM,2BAA2B,QAGH,CAAC;AAEtC,eAAO,MAAM,yBAAyB,QAGwB,CAAC;AAE/D,eAAO,MAAM,uBAAuB,QAGuB,CAAC;AAE5D,eAAO,MAAM,8BAA8B,QAKwF,CAAC;AAEpI,eAAO,MAAM,+BAA+B,QAEyF,CAAC;AAEtI,eAAO,MAAM,2BAA2B,QAEgF,CAAC;AAEzH,eAAO,MAAM,0BAA0B,QAQyK,CAAC;AAWjN,eAAO,MAAM,0BAA0B,QAKsE,CAAC;AAE9G,eAAO,MAAM,4BAA4B,QAMgE,CAAC;AAE1G,eAAO,MAAM,6BAA6B,QAG4F,CAAC;AAEvI,eAAO,MAAM,4BAA4B,QAG8D,CAAC;AAExG,eAAO,MAAM,0BAA0B,QAOwF,CAAC;AAEhI,eAAO,MAAM,yCAAyC,0LAC2H,CAAC;AAElL,eAAO,MAAM,gCAAgC,mMAC+I,CAAC;AAE7L,eAAO,MAAM,2BAA2B,oQACiN,CAAC;AAE1P,eAAO,MAAM,0BAA0B,2GAA2G,CAAC;AAInJ,eAAO,MAAM,sCAAsC,QAKlC,CAAC;AAElB,eAAO,MAAM,6CAA6C,QAIzC,CAAC;AAElB,eAAO,MAAM,4CAA4C,QAIxC,CAAC;AAKlB,eAAO,MAAM,wCAAwC,QAGuC,CAAC;AAE7F,eAAO,MAAM,2CAA2C,QAG6G,CAAC;AAEtK,eAAO,MAAM,2CAA2C,QAG0D,CAAC;AAKnH,eAAO,MAAM,sBAAsB,QAY2G,CAAC;AAE/I,eAAO,MAAM,6BAA6B,QASsH,CAAC;AAEjK,eAAO,MAAM,8BAA8B,QAQsC,CAAC;AAElF,eAAO,MAAM,6BAA6B,QAGyC,CAAC;AAEpF,eAAO,MAAM,gCAAgC,QAG+J,CAAC;AAE7M,eAAO,MAAM,6BAA6B,QAGoH,CAAC;AAE/J,eAAO,MAAM,0CAA0C,QAGiL,CAAC;AAEzO,eAAO,MAAM,mCAAmC,QAG6N,CAAC"}
|
|
@@ -4,8 +4,13 @@
|
|
|
4
4
|
export const PING_DESCRIPTION = 'Health check: returns "pong" if the MCP process is running. No API calls. Example: invoke with empty input {}.';
|
|
5
5
|
export const WHOAMI_DESCRIPTION = 'Returns the current Fuul dashboard user as JSON from GET /api/v1/auth/user. Requires prior CLI login (tokens in ~/.fuul/tokens.json). Example: {} after `npm run cli -- login`.';
|
|
6
6
|
export const LIST_CHAINS_DESCRIPTION = 'Lists supported blockchain chains from GET /public-api/v1/metadata/chains. Uses server metadata (not a hardcoded catalog); responses are cached with ETag/Cache-Control. Each chain includes snake_case fields such as chain_id, is_testnet, optional svm_network and webapp_capabilities, and can_be_used_for_payouts (boolean: true where Fuul reward/payout infra is deployed). Params: none (pass {}). Pagination: not exposed by this tool until the API adds cursor/limit.';
|
|
7
|
-
export const LIST_TRIGGER_TYPES_DESCRIPTION = 'Lists trigger type metadata from GET /public-api/v1/metadata/trigger-types (cached)
|
|
8
|
-
|
|
7
|
+
export const LIST_TRIGGER_TYPES_DESCRIPTION = 'Lists trigger type metadata from GET /public-api/v1/metadata/trigger-types (cached), enriched for create_trigger. ' +
|
|
8
|
+
'Each trigger_types[] row includes: context_json_schema (field definitions), create_payload_layout (flat_dto | context_only | context_and_root_fields), create_payload_notes, and create_payload_example when available. ' +
|
|
9
|
+
'Top-level create_trigger_payload_guide explains the three layouts (same as fuul-webapp encode.ts). ' +
|
|
10
|
+
'Always call this before create_trigger. Params: {}.';
|
|
11
|
+
export const LIST_PAYOUT_SCHEMAS_DESCRIPTION = 'Lists payout schema metadata from GET /public-api/v1/metadata/payout-schemas (cached), enriched for create_incentive. ' +
|
|
12
|
+
'Includes enums, payout_term_dto.schemes (per PayoutScheme), plus reward_types[] with create_payload_example for: fixed-reward, variable-reward, proportional-pool, leaderboard. ' +
|
|
13
|
+
'Top-level create_incentive_payload_guide documents body shape and webapp encode.ts mappers. Call before create_incentive. Params: {}.';
|
|
9
14
|
export const LIST_PROJECTS_DESCRIPTION = 'Lists dashboard projects for the current user: GET /api/v1/projects with optional ?page= (1-based) and ?query=. Example: {"page":1} or {"query":"acme"}.';
|
|
10
15
|
export const GET_PROJECT_DESCRIPTION = 'Loads one project (draft + published trigger mapping). Calls GET /api/v1/projects/:projectId and GET /api/v1/projects/:projectId/customizations in parallel. ' +
|
|
11
16
|
'Replaces triggers[] with scoped rows: ref, signature, draft_trigger_id, published_trigger_id, draft, published. ' +
|
|
@@ -30,8 +35,45 @@ export const UPDATE_PROJECT_TIER_DESCRIPTION = 'Updates a project affiliate tier
|
|
|
30
35
|
'At least one field required. dry_run then confirmed. Example: {"project_id":"<uuid>","tier_id":"<uuid>","rank":2,"dry_run":true}.';
|
|
31
36
|
export const UPDATE_AUDIENCE_DESCRIPTION = 'Updates an audience (user list): PATCH /api/v1/projects/:projectId/audiences/:audienceId. Body matches CreateOrUpdateAudienceDto: name (required), optional conditions[] (signature + parameters), condition_match_mode "any"|"all" (required if conditions non-empty), contractId. ' +
|
|
32
37
|
'dry_run then confirmed. Example dry_run: {"project_id":"<uuid>","audience_id":"<uuid>","name":"VIP","dry_run":true}.';
|
|
38
|
+
export const CREATE_TRIGGER_DESCRIPTION = 'Creates a draft trigger: POST /api/v1/projects/:projectId/triggers. Body matches CreateTriggerDto (fuul-webapp triggersService.create / encodeByTriggerType). ' +
|
|
39
|
+
'REQUIRED: call list_trigger_types first; use trigger_types[].id as trigger.type and follow create_payload_layout for that id. ' +
|
|
40
|
+
'Layouts: (1) flat_dto — types custom/classic: put context_json_schema fields at trigger ROOT (signature, event_type, expressions, payable, end_user_identifier_property, contract_ids), NOT nested only in context. ' +
|
|
41
|
+
'(2) context_only — token-holder, liquidity-pool-v2: fields only under trigger.context. ' +
|
|
42
|
+
'(3) context_and_root_fields — most presets: fields under trigger.context plus end_user_identifier_property at root when needed. ' +
|
|
43
|
+
'Use create_payload_example from list_trigger_types when present. Call list_chains for chain_id. dry_run then confirmed. ' +
|
|
44
|
+
'Token-holder: {"name":"...","description":"...","type":"token-holder","context":{"token_address":"0x...","chain_id":1,"volume_currency_expression":"0x..."}}. ' +
|
|
45
|
+
'Custom off-chain: {"name":"...","description":"...","type":"custom","signature":"event_name","event_type":"off-chain-event","end_user_identifier_property":"address","payable":true,...expressions at root}.';
|
|
46
|
+
const REPLACE_TRIGGER_TOKEN_FLOW = 'Replace-trigger flow (token/chain change; after telling the user update_trigger cannot change token_address/chain_id): ' +
|
|
47
|
+
'(1) get_project or list_incentives — list every incentive/conversion whose triggers[] includes this draft_trigger_id; ' +
|
|
48
|
+
'(2) delete_conversion for each draft_conversion_id (removes conversion + trigger links); ' +
|
|
49
|
+
'(3) delete_trigger; ' +
|
|
50
|
+
'(4) create_trigger with the new context; ' +
|
|
51
|
+
'(5) create_incentive if the program must be recreated. ' +
|
|
52
|
+
'Do not call delete_trigger until step 2 is done for all linked conversions.';
|
|
53
|
+
export const DELETE_TRIGGER_DESCRIPTION = 'Deletes a draft trigger: DELETE /api/v1/projects/:projectId/triggers/:triggerId. Use draft_trigger_id from get_project. ' +
|
|
54
|
+
'Requires dry_run then confirmed. Never call without explicit user approval. ' +
|
|
55
|
+
'Mandatory pre-check: call get_project or list_incentives and find every conversion (draft_conversion_id) linked to this draft_trigger_id. ' +
|
|
56
|
+
REPLACE_TRIGGER_TOKEN_FLOW +
|
|
57
|
+
' If delete still returns HTTP 422, report remaining links and stop — do not retry delete_trigger blindly.';
|
|
58
|
+
export const CREATE_INCENTIVE_DESCRIPTION = 'Creates a draft incentive (conversion): POST /api/v1/projects/:projectId/incentives. Body: name, trigger_ids[] (draft_trigger_id), payout_terms[] (PayoutTermDto, min 1 each). ' +
|
|
59
|
+
'REQUIRED: list_payout_schemas first — pick reward_types[].id (fixed-reward | variable-reward | proportional-pool | leaderboard) and use create_payload_example. ' +
|
|
60
|
+
'Schemes on wire: pay-per-attribution (fixed/variable), pool, rank. type: point | onchain-currency. payee_type: affiliate | end-user | both. ' +
|
|
61
|
+
'Fixed: calculation_strategy fixed, referrer_amount/referral_amount. Variable: calculation_strategy variable, trigger_amount_source, base_currency, *_amount_percentage. ' +
|
|
62
|
+
'Pool: scheme pool, amount_source, pool_amount, pool_duration, pool_calculation_day_cron. Leaderboard: scheme rank, rank_scheme_config.ranks, pool window fields. ' +
|
|
63
|
+
'MCP normalizes variable terms (referral_amount → referral_amount_percentage). dry_run then confirmed.';
|
|
64
|
+
export const DELETE_CONVERSION_DESCRIPTION = 'Deletes a draft conversion (incentive): DELETE /api/v1/projects/:projectId/incentives/:conversionId. Use draft_conversion_id from list_incentives or get_project conversions[]. ' +
|
|
65
|
+
'Soft-deletes the conversion, its payout terms, and conversion_triggers links so delete_trigger can succeed. dry_run then confirmed. ' +
|
|
66
|
+
'Required before delete_trigger when replacing a trigger (token/chain change). Prefer this tool over delete_incentive in that flow.';
|
|
67
|
+
export const DELETE_INCENTIVE_DESCRIPTION = 'Deletes a draft incentive (conversion): DELETE /api/v1/projects/:projectId/incentives/:conversionId. Same API as delete_conversion. ' +
|
|
68
|
+
'Use draft_conversion_id from list_incentives or get_project conversions[]. dry_run then confirmed. ' +
|
|
69
|
+
'When replacing a trigger, use delete_conversion (step 2 of the replace flow) before delete_trigger.';
|
|
33
70
|
export const UPDATE_TRIGGER_DESCRIPTION = 'Updates a trigger: PATCH /api/v1/projects/:projectId/triggers/:triggerId. Partial body matching UpdateTriggerDto (name, description, event_type, expressions, payable, ref, contract_ids as single-element array, etc.). ' +
|
|
34
|
-
'
|
|
71
|
+
'Does NOT update context fields such as token_address or chain_id — those are immutable after create. ' +
|
|
72
|
+
'If the user asks to change token_address, chain_id, or the tracked token/contract: do NOT call PATCH. First inform the user clearly: "This cannot be updated in place; you must delete the trigger and create a new one with the new token/chain." ' +
|
|
73
|
+
'Then, only with explicit user approval, run the replace flow: ' +
|
|
74
|
+
REPLACE_TRIGGER_TOKEN_FLOW +
|
|
75
|
+
' Never skip step 1 — always list linked conversions before delete_trigger. ' +
|
|
76
|
+
'At least one patch field required for allowed fields only. dry_run then confirmed. Use get_trigger first for current state.';
|
|
35
77
|
export const LIST_PAYOUTS_PENDING_APPROVAL_DESCRIPTION = 'Lists payouts pending approval: GET /api/v1/projects/:projectId/payouts/pending-approval. Optional page, page_size. Example: {"project_id":"<uuid>","page":1,"page_size":50}.';
|
|
36
78
|
export const LIST_REWARDS_PAYOUTS_DESCRIPTION = 'Lists rewards payouts history: GET /api/v1/projects/:projectId/payouts/rewards-payouts. Optional page, page_size, status, from_date, to_date. Example: {"project_id":"<uuid>","page":1}.';
|
|
37
79
|
export const APPROVE_PAYOUTS_DESCRIPTION = 'Approves payouts: PATCH /api/v1/projects/:projectId/payouts/approve. Body: payout_ids OR date filters (server validates mutual exclusivity). dry_run then confirmed. Example dry_run: {"project_id":"<uuid>","payout_ids":["<uuid>"],"dry_run":true}.';
|
|
@@ -91,13 +133,19 @@ export const CHECK_EVENT_STATUS_DESCRIPTION = 'Check event ingestion and downstr
|
|
|
91
133
|
RATE_LIMIT_HINT +
|
|
92
134
|
' Example status: {"user_identifier":"0x...","user_identifier_type":"evm_address","event_name":"trade"}. ' +
|
|
93
135
|
'Example verbose: {"verbose":true,"dedup_id":"swap-123","event_name":"trade"}.';
|
|
94
|
-
export const
|
|
136
|
+
export const GET_USER_REFERRER_DESCRIPTION = 'Read a user referrer from user_referrers: GET /api/v1/user/referrer?user_identifier=&user_identifier_type=. Returns referrer_identifier, referrer_code, referrer_codes, referrer_name, referrer_user_rebate_rate (null referrer fields when unassigned). Unlike GET /referral_codes/status, this reflects PUT /user-referrers assignments even without referral_code_uses.' +
|
|
95
137
|
PROJECT_API_KEY_HINT +
|
|
96
|
-
'
|
|
138
|
+
' Example: {"user_identifier":"0xUser...","user_identifier_type":"evm_address"}.';
|
|
139
|
+
export const UPDATE_USER_REFERRER_DESCRIPTION = 'Admin override: create or overwrite user_referrers via PUT /api/v1/user-referrers (idempotent upsert). Sets source=project_imported; does NOT create referral_code_uses or increment actual_uses (status may stay referred:false). For real code redemption use use_referral_code instead. Requires service_role project API key.' +
|
|
140
|
+
PROJECT_API_KEY_HINT +
|
|
141
|
+
' dry_run then confirmed. Example dry_run: {"user_identifier":"0xUser...","user_identifier_type":"evm_address","referrer_identifier":"0xKol...","referrer_identifier_type":"evm_address","dry_run":true}.';
|
|
142
|
+
export const USE_REFERRAL_CODE_DESCRIPTION = 'Redeem a referral code for a user: PATCH /api/v1/referral_codes/:code/use. Creates referral_code_uses, increments actual_uses, sets user_referrers with source=code_redemption (GET /referral_codes/status → referred:true). Referrer is the code owner (do not pass referrer_identifier). Requires user has no existing referrer unless service_role idempotent replay of the same code. No wallet signature with service_role.' +
|
|
143
|
+
PROJECT_API_KEY_HINT +
|
|
144
|
+
' dry_run then confirmed. Example dry_run: {"referral_code":"PROMO2024","user_identifier":"0xUser...","user_identifier_type":"evm_address","dry_run":true}.';
|
|
97
145
|
export const REMOVE_USER_FROM_REFERRAL_CODE_DESCRIPTION = 'Remove a user from a referral code: DELETE /api/v1/referral_codes/:code/referrals. Atomically deletes user_referrers + referral_code_uses and decrements actual_uses. Not idempotent on the API; this tool maps known 422 cases to {"already_removed":true,"reason":"..."} for safe retries. Requires service_role project API key (no wallet signature).' +
|
|
98
146
|
PROJECT_API_KEY_HINT +
|
|
99
147
|
' dry_run then confirmed. Example dry_run: {"referral_code":"PROMO2024","user_identifier":"0xUser...","user_identifier_type":"evm_address","referrer_identifier":"0xKol...","referrer_identifier_type":"evm_address","dry_run":true}.';
|
|
100
|
-
export const SWAP_USER_REFERRAL_CODE_DESCRIPTION = '
|
|
148
|
+
export const SWAP_USER_REFERRAL_CODE_DESCRIPTION = 'Move a user between referral codes with full redemption semantics: DELETE from from_referral_code then PATCH /api/v1/referral_codes/:to_referral_code/use (not atomic). Step 1 tolerates already-removed 422s (e.g. user never had a prior code). Step 2 assigns to the owner of to_referral_code — there are no to_referrer_* params. If PATCH /use fails after DELETE, response has partial:true with use_error; complete with use_referral_code or update_user_referrer. Legacy PUT-only users (user_referrers without referral_code_use) may block step 2 with "User already has a referrer". For first assign with no prior code, use use_referral_code directly. Requires service_role project API key.' +
|
|
101
149
|
PROJECT_API_KEY_HINT +
|
|
102
|
-
' dry_run then confirmed. Example dry_run: {"user_identifier":"0xUser...","user_identifier_type":"evm_address","from_referral_code":"OLD","from_referrer_identifier":"0xOldKol...","from_referrer_identifier_type":"evm_address","
|
|
150
|
+
' dry_run then confirmed. Example dry_run: {"user_identifier":"0xUser...","user_identifier_type":"evm_address","from_referral_code":"OLD","from_referrer_identifier":"0xOldKol...","from_referrer_identifier_type":"evm_address","to_referral_code":"NEW","dry_run":true}.';
|
|
103
151
|
//# sourceMappingURL=tool-descriptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-descriptions.js","sourceRoot":"","sources":["../../src/tools/tool-descriptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,gHAAgH,CAAC;AAEjJ,MAAM,CAAC,MAAM,kBAAkB,GAC7B,iLAAiL,CAAC;AAEpL,MAAM,CAAC,MAAM,uBAAuB,GAClC,kdAAkd,CAAC;AAErd,MAAM,CAAC,MAAM,8BAA8B,GACzC,
|
|
1
|
+
{"version":3,"file":"tool-descriptions.js","sourceRoot":"","sources":["../../src/tools/tool-descriptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,gHAAgH,CAAC;AAEjJ,MAAM,CAAC,MAAM,kBAAkB,GAC7B,iLAAiL,CAAC;AAEpL,MAAM,CAAC,MAAM,uBAAuB,GAClC,kdAAkd,CAAC;AAErd,MAAM,CAAC,MAAM,8BAA8B,GACzC,oHAAoH;IACpH,0NAA0N;IAC1N,qGAAqG;IACrG,qDAAqD,CAAC;AAExD,MAAM,CAAC,MAAM,+BAA+B,GAC1C,wHAAwH;IACxH,kLAAkL;IAClL,uIAAuI,CAAC;AAE1I,MAAM,CAAC,MAAM,yBAAyB,GACpC,0JAA0J,CAAC;AAE7J,MAAM,CAAC,MAAM,uBAAuB,GAClC,+JAA+J;IAC/J,kHAAkH;IAClH,8HAA8H;IAC9H,wJAAwJ;IACxJ,iEAAiE,CAAC;AAEpE,MAAM,CAAC,MAAM,2BAA2B,GACtC,gJAAgJ;IAChJ,oIAAoI;IACpI,mCAAmC,CAAC;AAEtC,MAAM,CAAC,MAAM,yBAAyB,GACpC,qJAAqJ;IACrJ,mJAAmJ;IACnJ,4DAA4D,CAAC;AAE/D,MAAM,CAAC,MAAM,uBAAuB,GAClC,0JAA0J;IAC1J,4IAA4I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AA8B,GACzC,gMAAgM;IAChM,4IAA4I;IAC5I,6KAA6K;IAC7K,oBAAoB;IACpB,sBAAsB;IACtB,eAAe;IACf,0GAA0G;IAC1G,+EAA+E,CAAC;AAElF,MAAM,CAAC,MAAM,6BAA6B,GACxC,4WAA4W;IAC5W,oBAAoB;IACpB,iFAAiF,CAAC;AAEpF,MAAM,CAAC,MAAM,gCAAgC,GAC3C,mUAAmU;IACnU,oBAAoB;IACpB,0MAA0M,CAAC;AAE7M,MAAM,CAAC,MAAM,6BAA6B,GACxC,kaAAka;IACla,oBAAoB;IACpB,4JAA4J,CAAC;AAE/J,MAAM,CAAC,MAAM,0CAA0C,GACrD,2VAA2V;IAC3V,oBAAoB;IACpB,sOAAsO,CAAC;AAEzO,MAAM,CAAC,MAAM,mCAAmC,GAC9C,+qBAA+qB;IAC/qB,oBAAoB;IACpB,2QAA2Q,CAAC"}
|
|
@@ -420,6 +420,169 @@ export declare const updateTriggerInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
420
420
|
contract_ids?: string[] | undefined;
|
|
421
421
|
}>;
|
|
422
422
|
export type UpdateTriggerInput = z.infer<typeof updateTriggerInputSchema>;
|
|
423
|
+
/** POST body matches fuul-server CreateTriggerDto (same shape as fuul-webapp triggersService.create). */
|
|
424
|
+
export declare const createTriggerFieldsSchema: z.ZodObject<{
|
|
425
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
426
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
+
} & {
|
|
428
|
+
project_id: z.ZodString;
|
|
429
|
+
trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
430
|
+
}, "strip", z.ZodTypeAny, {
|
|
431
|
+
project_id: string;
|
|
432
|
+
trigger: Record<string, unknown>;
|
|
433
|
+
dry_run?: boolean | undefined;
|
|
434
|
+
confirmed?: boolean | undefined;
|
|
435
|
+
}, {
|
|
436
|
+
project_id: string;
|
|
437
|
+
trigger: Record<string, unknown>;
|
|
438
|
+
dry_run?: boolean | undefined;
|
|
439
|
+
confirmed?: boolean | undefined;
|
|
440
|
+
}>;
|
|
441
|
+
export declare const createTriggerInputSchema: z.ZodEffects<z.ZodObject<{
|
|
442
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
+
} & {
|
|
445
|
+
project_id: z.ZodString;
|
|
446
|
+
trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
447
|
+
}, "strip", z.ZodTypeAny, {
|
|
448
|
+
project_id: string;
|
|
449
|
+
trigger: Record<string, unknown>;
|
|
450
|
+
dry_run?: boolean | undefined;
|
|
451
|
+
confirmed?: boolean | undefined;
|
|
452
|
+
}, {
|
|
453
|
+
project_id: string;
|
|
454
|
+
trigger: Record<string, unknown>;
|
|
455
|
+
dry_run?: boolean | undefined;
|
|
456
|
+
confirmed?: boolean | undefined;
|
|
457
|
+
}>, {
|
|
458
|
+
project_id: string;
|
|
459
|
+
trigger: Record<string, unknown>;
|
|
460
|
+
dry_run?: boolean | undefined;
|
|
461
|
+
confirmed?: boolean | undefined;
|
|
462
|
+
}, {
|
|
463
|
+
project_id: string;
|
|
464
|
+
trigger: Record<string, unknown>;
|
|
465
|
+
dry_run?: boolean | undefined;
|
|
466
|
+
confirmed?: boolean | undefined;
|
|
467
|
+
}>;
|
|
468
|
+
export type CreateTriggerInput = z.infer<typeof createTriggerInputSchema>;
|
|
469
|
+
export declare const deleteTriggerFieldsSchema: z.ZodObject<{
|
|
470
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
+
} & {
|
|
473
|
+
project_id: z.ZodString;
|
|
474
|
+
trigger_id: z.ZodString;
|
|
475
|
+
}, "strip", z.ZodTypeAny, {
|
|
476
|
+
project_id: string;
|
|
477
|
+
trigger_id: string;
|
|
478
|
+
dry_run?: boolean | undefined;
|
|
479
|
+
confirmed?: boolean | undefined;
|
|
480
|
+
}, {
|
|
481
|
+
project_id: string;
|
|
482
|
+
trigger_id: string;
|
|
483
|
+
dry_run?: boolean | undefined;
|
|
484
|
+
confirmed?: boolean | undefined;
|
|
485
|
+
}>;
|
|
486
|
+
export declare const deleteTriggerInputSchema: z.ZodObject<{
|
|
487
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
488
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
} & {
|
|
490
|
+
project_id: z.ZodString;
|
|
491
|
+
trigger_id: z.ZodString;
|
|
492
|
+
}, "strip", z.ZodTypeAny, {
|
|
493
|
+
project_id: string;
|
|
494
|
+
trigger_id: string;
|
|
495
|
+
dry_run?: boolean | undefined;
|
|
496
|
+
confirmed?: boolean | undefined;
|
|
497
|
+
}, {
|
|
498
|
+
project_id: string;
|
|
499
|
+
trigger_id: string;
|
|
500
|
+
dry_run?: boolean | undefined;
|
|
501
|
+
confirmed?: boolean | undefined;
|
|
502
|
+
}>;
|
|
503
|
+
export type DeleteTriggerInput = z.infer<typeof deleteTriggerInputSchema>;
|
|
504
|
+
export declare const createIncentiveFieldsSchema: z.ZodObject<{
|
|
505
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
506
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
507
|
+
} & {
|
|
508
|
+
project_id: z.ZodString;
|
|
509
|
+
name: z.ZodString;
|
|
510
|
+
trigger_ids: z.ZodArray<z.ZodString, "many">;
|
|
511
|
+
payout_terms: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
|
|
512
|
+
}, "strip", z.ZodTypeAny, {
|
|
513
|
+
project_id: string;
|
|
514
|
+
name: string;
|
|
515
|
+
trigger_ids: string[];
|
|
516
|
+
payout_terms: Record<string, unknown>[];
|
|
517
|
+
dry_run?: boolean | undefined;
|
|
518
|
+
confirmed?: boolean | undefined;
|
|
519
|
+
}, {
|
|
520
|
+
project_id: string;
|
|
521
|
+
name: string;
|
|
522
|
+
trigger_ids: string[];
|
|
523
|
+
payout_terms: Record<string, unknown>[];
|
|
524
|
+
dry_run?: boolean | undefined;
|
|
525
|
+
confirmed?: boolean | undefined;
|
|
526
|
+
}>;
|
|
527
|
+
export declare const createIncentiveInputSchema: z.ZodObject<{
|
|
528
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
529
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
530
|
+
} & {
|
|
531
|
+
project_id: z.ZodString;
|
|
532
|
+
name: z.ZodString;
|
|
533
|
+
trigger_ids: z.ZodArray<z.ZodString, "many">;
|
|
534
|
+
payout_terms: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
|
|
535
|
+
}, "strip", z.ZodTypeAny, {
|
|
536
|
+
project_id: string;
|
|
537
|
+
name: string;
|
|
538
|
+
trigger_ids: string[];
|
|
539
|
+
payout_terms: Record<string, unknown>[];
|
|
540
|
+
dry_run?: boolean | undefined;
|
|
541
|
+
confirmed?: boolean | undefined;
|
|
542
|
+
}, {
|
|
543
|
+
project_id: string;
|
|
544
|
+
name: string;
|
|
545
|
+
trigger_ids: string[];
|
|
546
|
+
payout_terms: Record<string, unknown>[];
|
|
547
|
+
dry_run?: boolean | undefined;
|
|
548
|
+
confirmed?: boolean | undefined;
|
|
549
|
+
}>;
|
|
550
|
+
export type CreateIncentiveInput = z.infer<typeof createIncentiveInputSchema>;
|
|
551
|
+
export declare const deleteIncentiveFieldsSchema: z.ZodObject<{
|
|
552
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
553
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
554
|
+
} & {
|
|
555
|
+
project_id: z.ZodString;
|
|
556
|
+
conversion_id: z.ZodString;
|
|
557
|
+
}, "strip", z.ZodTypeAny, {
|
|
558
|
+
project_id: string;
|
|
559
|
+
conversion_id: string;
|
|
560
|
+
dry_run?: boolean | undefined;
|
|
561
|
+
confirmed?: boolean | undefined;
|
|
562
|
+
}, {
|
|
563
|
+
project_id: string;
|
|
564
|
+
conversion_id: string;
|
|
565
|
+
dry_run?: boolean | undefined;
|
|
566
|
+
confirmed?: boolean | undefined;
|
|
567
|
+
}>;
|
|
568
|
+
export declare const deleteIncentiveInputSchema: z.ZodObject<{
|
|
569
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
570
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
571
|
+
} & {
|
|
572
|
+
project_id: z.ZodString;
|
|
573
|
+
conversion_id: z.ZodString;
|
|
574
|
+
}, "strip", z.ZodTypeAny, {
|
|
575
|
+
project_id: string;
|
|
576
|
+
conversion_id: string;
|
|
577
|
+
dry_run?: boolean | undefined;
|
|
578
|
+
confirmed?: boolean | undefined;
|
|
579
|
+
}, {
|
|
580
|
+
project_id: string;
|
|
581
|
+
conversion_id: string;
|
|
582
|
+
dry_run?: boolean | undefined;
|
|
583
|
+
confirmed?: boolean | undefined;
|
|
584
|
+
}>;
|
|
585
|
+
export type DeleteIncentiveInput = z.infer<typeof deleteIncentiveInputSchema>;
|
|
423
586
|
export declare const listPayoutsPendingApprovalSchema: z.ZodObject<{
|
|
424
587
|
project_id: z.ZodString;
|
|
425
588
|
page: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3782,6 +3945,84 @@ export declare const removeUserFromReferralCodeInputSchema: z.ZodObject<{
|
|
|
3782
3945
|
project_api_key?: string | undefined;
|
|
3783
3946
|
}>;
|
|
3784
3947
|
export type RemoveUserFromReferralCodeInput = z.infer<typeof removeUserFromReferralCodeInputSchema>;
|
|
3948
|
+
export declare const getUserReferrerFieldsSchema: z.ZodObject<{
|
|
3949
|
+
project_api_key: z.ZodOptional<z.ZodString>;
|
|
3950
|
+
} & {
|
|
3951
|
+
user_identifier: z.ZodString;
|
|
3952
|
+
user_identifier_type: z.ZodEnum<["evm_address", "solana_address", "sui_address", "xrpl_address", "email", "uuid"]>;
|
|
3953
|
+
}, "strip", z.ZodTypeAny, {
|
|
3954
|
+
user_identifier: string;
|
|
3955
|
+
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3956
|
+
project_api_key?: string | undefined;
|
|
3957
|
+
}, {
|
|
3958
|
+
user_identifier: string;
|
|
3959
|
+
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3960
|
+
project_api_key?: string | undefined;
|
|
3961
|
+
}>;
|
|
3962
|
+
export declare const getUserReferrerInputSchema: z.ZodObject<{
|
|
3963
|
+
project_api_key: z.ZodOptional<z.ZodString>;
|
|
3964
|
+
} & {
|
|
3965
|
+
user_identifier: z.ZodString;
|
|
3966
|
+
user_identifier_type: z.ZodEnum<["evm_address", "solana_address", "sui_address", "xrpl_address", "email", "uuid"]>;
|
|
3967
|
+
}, "strip", z.ZodTypeAny, {
|
|
3968
|
+
user_identifier: string;
|
|
3969
|
+
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3970
|
+
project_api_key?: string | undefined;
|
|
3971
|
+
}, {
|
|
3972
|
+
user_identifier: string;
|
|
3973
|
+
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3974
|
+
project_api_key?: string | undefined;
|
|
3975
|
+
}>;
|
|
3976
|
+
export type GetUserReferrerInput = z.infer<typeof getUserReferrerInputSchema>;
|
|
3977
|
+
export declare const useReferralCodeFieldsSchema: z.ZodObject<{
|
|
3978
|
+
project_api_key: z.ZodOptional<z.ZodString>;
|
|
3979
|
+
} & {
|
|
3980
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
3981
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
3982
|
+
} & {
|
|
3983
|
+
referral_code: z.ZodString;
|
|
3984
|
+
user_identifier: z.ZodString;
|
|
3985
|
+
user_identifier_type: z.ZodEnum<["evm_address", "solana_address", "sui_address", "xrpl_address", "email", "uuid"]>;
|
|
3986
|
+
}, "strip", z.ZodTypeAny, {
|
|
3987
|
+
user_identifier: string;
|
|
3988
|
+
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3989
|
+
referral_code: string;
|
|
3990
|
+
dry_run?: boolean | undefined;
|
|
3991
|
+
confirmed?: boolean | undefined;
|
|
3992
|
+
project_api_key?: string | undefined;
|
|
3993
|
+
}, {
|
|
3994
|
+
user_identifier: string;
|
|
3995
|
+
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3996
|
+
referral_code: string;
|
|
3997
|
+
dry_run?: boolean | undefined;
|
|
3998
|
+
confirmed?: boolean | undefined;
|
|
3999
|
+
project_api_key?: string | undefined;
|
|
4000
|
+
}>;
|
|
4001
|
+
export declare const useReferralCodeInputSchema: z.ZodObject<{
|
|
4002
|
+
project_api_key: z.ZodOptional<z.ZodString>;
|
|
4003
|
+
} & {
|
|
4004
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
4005
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
4006
|
+
} & {
|
|
4007
|
+
referral_code: z.ZodString;
|
|
4008
|
+
user_identifier: z.ZodString;
|
|
4009
|
+
user_identifier_type: z.ZodEnum<["evm_address", "solana_address", "sui_address", "xrpl_address", "email", "uuid"]>;
|
|
4010
|
+
}, "strip", z.ZodTypeAny, {
|
|
4011
|
+
user_identifier: string;
|
|
4012
|
+
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
4013
|
+
referral_code: string;
|
|
4014
|
+
dry_run?: boolean | undefined;
|
|
4015
|
+
confirmed?: boolean | undefined;
|
|
4016
|
+
project_api_key?: string | undefined;
|
|
4017
|
+
}, {
|
|
4018
|
+
user_identifier: string;
|
|
4019
|
+
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
4020
|
+
referral_code: string;
|
|
4021
|
+
dry_run?: boolean | undefined;
|
|
4022
|
+
confirmed?: boolean | undefined;
|
|
4023
|
+
project_api_key?: string | undefined;
|
|
4024
|
+
}>;
|
|
4025
|
+
export type UseReferralCodeInput = z.infer<typeof useReferralCodeInputSchema>;
|
|
3785
4026
|
export declare const swapUserReferralCodeFieldsSchema: z.ZodObject<{
|
|
3786
4027
|
project_api_key: z.ZodOptional<z.ZodString>;
|
|
3787
4028
|
} & {
|
|
@@ -3793,33 +4034,27 @@ export declare const swapUserReferralCodeFieldsSchema: z.ZodObject<{
|
|
|
3793
4034
|
from_referral_code: z.ZodString;
|
|
3794
4035
|
from_referrer_identifier: z.ZodString;
|
|
3795
4036
|
from_referrer_identifier_type: z.ZodEnum<["evm_address", "solana_address", "sui_address", "xrpl_address", "email", "uuid"]>;
|
|
3796
|
-
|
|
3797
|
-
to_referrer_identifier_type: z.ZodEnum<["evm_address", "solana_address", "sui_address", "xrpl_address", "email", "uuid"]>;
|
|
3798
|
-
to_referral_code: z.ZodOptional<z.ZodString>;
|
|
4037
|
+
to_referral_code: z.ZodString;
|
|
3799
4038
|
}, "strip", z.ZodTypeAny, {
|
|
3800
4039
|
user_identifier: string;
|
|
3801
4040
|
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3802
4041
|
from_referral_code: string;
|
|
3803
4042
|
from_referrer_identifier: string;
|
|
3804
4043
|
from_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3805
|
-
|
|
3806
|
-
to_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
4044
|
+
to_referral_code: string;
|
|
3807
4045
|
dry_run?: boolean | undefined;
|
|
3808
4046
|
confirmed?: boolean | undefined;
|
|
3809
4047
|
project_api_key?: string | undefined;
|
|
3810
|
-
to_referral_code?: string | undefined;
|
|
3811
4048
|
}, {
|
|
3812
4049
|
user_identifier: string;
|
|
3813
4050
|
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3814
4051
|
from_referral_code: string;
|
|
3815
4052
|
from_referrer_identifier: string;
|
|
3816
4053
|
from_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3817
|
-
|
|
3818
|
-
to_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
4054
|
+
to_referral_code: string;
|
|
3819
4055
|
dry_run?: boolean | undefined;
|
|
3820
4056
|
confirmed?: boolean | undefined;
|
|
3821
4057
|
project_api_key?: string | undefined;
|
|
3822
|
-
to_referral_code?: string | undefined;
|
|
3823
4058
|
}>;
|
|
3824
4059
|
export declare const swapUserReferralCodeInputSchema: z.ZodEffects<z.ZodObject<{
|
|
3825
4060
|
project_api_key: z.ZodOptional<z.ZodString>;
|
|
@@ -3832,57 +4067,47 @@ export declare const swapUserReferralCodeInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3832
4067
|
from_referral_code: z.ZodString;
|
|
3833
4068
|
from_referrer_identifier: z.ZodString;
|
|
3834
4069
|
from_referrer_identifier_type: z.ZodEnum<["evm_address", "solana_address", "sui_address", "xrpl_address", "email", "uuid"]>;
|
|
3835
|
-
|
|
3836
|
-
to_referrer_identifier_type: z.ZodEnum<["evm_address", "solana_address", "sui_address", "xrpl_address", "email", "uuid"]>;
|
|
3837
|
-
to_referral_code: z.ZodOptional<z.ZodString>;
|
|
4070
|
+
to_referral_code: z.ZodString;
|
|
3838
4071
|
}, "strip", z.ZodTypeAny, {
|
|
3839
4072
|
user_identifier: string;
|
|
3840
4073
|
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3841
4074
|
from_referral_code: string;
|
|
3842
4075
|
from_referrer_identifier: string;
|
|
3843
4076
|
from_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3844
|
-
|
|
3845
|
-
to_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
4077
|
+
to_referral_code: string;
|
|
3846
4078
|
dry_run?: boolean | undefined;
|
|
3847
4079
|
confirmed?: boolean | undefined;
|
|
3848
4080
|
project_api_key?: string | undefined;
|
|
3849
|
-
to_referral_code?: string | undefined;
|
|
3850
4081
|
}, {
|
|
3851
4082
|
user_identifier: string;
|
|
3852
4083
|
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3853
4084
|
from_referral_code: string;
|
|
3854
4085
|
from_referrer_identifier: string;
|
|
3855
4086
|
from_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3856
|
-
|
|
3857
|
-
to_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
4087
|
+
to_referral_code: string;
|
|
3858
4088
|
dry_run?: boolean | undefined;
|
|
3859
4089
|
confirmed?: boolean | undefined;
|
|
3860
4090
|
project_api_key?: string | undefined;
|
|
3861
|
-
to_referral_code?: string | undefined;
|
|
3862
4091
|
}>, {
|
|
3863
4092
|
user_identifier: string;
|
|
3864
4093
|
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3865
4094
|
from_referral_code: string;
|
|
3866
4095
|
from_referrer_identifier: string;
|
|
3867
4096
|
from_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3868
|
-
|
|
3869
|
-
to_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
4097
|
+
to_referral_code: string;
|
|
3870
4098
|
dry_run?: boolean | undefined;
|
|
3871
4099
|
confirmed?: boolean | undefined;
|
|
3872
4100
|
project_api_key?: string | undefined;
|
|
3873
|
-
to_referral_code?: string | undefined;
|
|
3874
4101
|
}, {
|
|
3875
4102
|
user_identifier: string;
|
|
3876
4103
|
user_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3877
4104
|
from_referral_code: string;
|
|
3878
4105
|
from_referrer_identifier: string;
|
|
3879
4106
|
from_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
3880
|
-
|
|
3881
|
-
to_referrer_identifier_type: "evm_address" | "solana_address" | "sui_address" | "xrpl_address" | "email" | "uuid";
|
|
4107
|
+
to_referral_code: string;
|
|
3882
4108
|
dry_run?: boolean | undefined;
|
|
3883
4109
|
confirmed?: boolean | undefined;
|
|
3884
4110
|
project_api_key?: string | undefined;
|
|
3885
|
-
to_referral_code?: string | undefined;
|
|
3886
4111
|
}>;
|
|
3887
4112
|
export type SwapUserReferralCodeInput = z.infer<typeof swapUserReferralCodeInputSchema>;
|
|
3888
4113
|
//# sourceMappingURL=tool-schemas.d.ts.map
|