@keystrokehq/mx_technologies 0.1.0 → 0.1.3
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/cancel-partner-account.cjs +4 -4
- package/dist/actions/cancel-partner-account.cjs.map +1 -1
- package/dist/actions/cancel-partner-account.d.cts +16 -3
- package/dist/actions/cancel-partner-account.d.cts.map +1 -1
- package/dist/actions/cancel-partner-account.d.mts +16 -3
- package/dist/actions/cancel-partner-account.d.mts.map +1 -1
- package/dist/actions/cancel-partner-account.mjs +4 -4
- package/dist/actions/cancel-partner-account.mjs.map +1 -1
- package/dist/actions/create-account.cjs +2 -2
- package/dist/actions/create-account.cjs.map +1 -1
- package/dist/actions/create-account.d.cts +68 -3
- package/dist/actions/create-account.d.cts.map +1 -1
- package/dist/actions/create-account.d.mts +68 -3
- package/dist/actions/create-account.d.mts.map +1 -1
- package/dist/actions/create-account.mjs +2 -2
- package/dist/actions/create-account.mjs.map +1 -1
- package/dist/actions/create-audience-api-credentials.cjs +3 -3
- package/dist/actions/create-audience-api-credentials.cjs.map +1 -1
- package/dist/actions/create-audience-api-credentials.d.cts +12 -3
- package/dist/actions/create-audience-api-credentials.d.cts.map +1 -1
- package/dist/actions/create-audience-api-credentials.d.mts +12 -3
- package/dist/actions/create-audience-api-credentials.d.mts.map +1 -1
- package/dist/actions/create-audience-api-credentials.mjs +3 -3
- package/dist/actions/create-audience-api-credentials.mjs.map +1 -1
- package/dist/actions/create-member.cjs +6 -6
- package/dist/actions/create-member.cjs.map +1 -1
- package/dist/actions/create-member.d.cts +55 -3
- package/dist/actions/create-member.d.cts.map +1 -1
- package/dist/actions/create-member.d.mts +55 -3
- package/dist/actions/create-member.d.mts.map +1 -1
- package/dist/actions/create-member.mjs +6 -6
- package/dist/actions/create-member.mjs.map +1 -1
- package/dist/actions/create-partner-account.cjs +4 -4
- package/dist/actions/create-partner-account.cjs.map +1 -1
- package/dist/actions/create-partner-account.d.cts +21 -3
- package/dist/actions/create-partner-account.d.cts.map +1 -1
- package/dist/actions/create-partner-account.d.mts +21 -3
- package/dist/actions/create-partner-account.d.mts.map +1 -1
- package/dist/actions/create-partner-account.mjs +4 -4
- package/dist/actions/create-partner-account.mjs.map +1 -1
- package/dist/actions/fetch-rewards.cjs +2 -2
- package/dist/actions/fetch-rewards.cjs.map +1 -1
- package/dist/actions/fetch-rewards.d.cts +29 -3
- package/dist/actions/fetch-rewards.d.cts.map +1 -1
- package/dist/actions/fetch-rewards.d.mts +29 -3
- package/dist/actions/fetch-rewards.d.mts.map +1 -1
- package/dist/actions/fetch-rewards.mjs +2 -2
- package/dist/actions/fetch-rewards.mjs.map +1 -1
- package/dist/actions/get-configurable-widget-url.cjs +2 -2
- package/dist/actions/get-configurable-widget-url.cjs.map +1 -1
- package/dist/actions/get-configurable-widget-url.d.cts +43 -3
- package/dist/actions/get-configurable-widget-url.d.cts.map +1 -1
- package/dist/actions/get-configurable-widget-url.d.mts +43 -3
- package/dist/actions/get-configurable-widget-url.d.mts.map +1 -1
- package/dist/actions/get-configurable-widget-url.mjs +2 -2
- package/dist/actions/get-configurable-widget-url.mjs.map +1 -1
- package/dist/actions/list-account-numbers-by-member.cjs +13 -13
- package/dist/actions/list-account-numbers-by-member.cjs.map +1 -1
- package/dist/actions/list-account-numbers-by-member.d.cts +34 -3
- package/dist/actions/list-account-numbers-by-member.d.cts.map +1 -1
- package/dist/actions/list-account-numbers-by-member.d.mts +34 -3
- package/dist/actions/list-account-numbers-by-member.d.mts.map +1 -1
- package/dist/actions/list-account-numbers-by-member.mjs +13 -13
- package/dist/actions/list-account-numbers-by-member.mjs.map +1 -1
- package/dist/actions/list-account-owners.cjs +11 -11
- package/dist/actions/list-account-owners.cjs.map +1 -1
- package/dist/actions/list-account-owners.d.cts +36 -3
- package/dist/actions/list-account-owners.d.cts.map +1 -1
- package/dist/actions/list-account-owners.d.mts +36 -3
- package/dist/actions/list-account-owners.d.mts.map +1 -1
- package/dist/actions/list-account-owners.mjs +11 -11
- package/dist/actions/list-account-owners.mjs.map +1 -1
- package/dist/actions/list-accounts.cjs +11 -11
- package/dist/actions/list-accounts.cjs.map +1 -1
- package/dist/actions/list-accounts.d.cts +44 -3
- package/dist/actions/list-accounts.d.cts.map +1 -1
- package/dist/actions/list-accounts.d.mts +44 -3
- package/dist/actions/list-accounts.d.mts.map +1 -1
- package/dist/actions/list-accounts.mjs +11 -11
- package/dist/actions/list-accounts.mjs.map +1 -1
- package/dist/actions/list-budgets.cjs +20 -20
- package/dist/actions/list-budgets.cjs.map +1 -1
- package/dist/actions/list-budgets.d.cts +36 -3
- package/dist/actions/list-budgets.d.cts.map +1 -1
- package/dist/actions/list-budgets.d.mts +36 -3
- package/dist/actions/list-budgets.d.mts.map +1 -1
- package/dist/actions/list-budgets.mjs +20 -20
- package/dist/actions/list-budgets.mjs.map +1 -1
- package/dist/actions/list-categories.cjs +11 -11
- package/dist/actions/list-categories.cjs.map +1 -1
- package/dist/actions/list-categories.d.cts +28 -3
- package/dist/actions/list-categories.d.cts.map +1 -1
- package/dist/actions/list-categories.d.mts +28 -3
- package/dist/actions/list-categories.d.mts.map +1 -1
- package/dist/actions/list-categories.mjs +11 -11
- package/dist/actions/list-categories.mjs.map +1 -1
- package/dist/actions/list-challenges.cjs +6 -6
- package/dist/actions/list-challenges.cjs.map +1 -1
- package/dist/actions/list-challenges.d.cts +29 -3
- package/dist/actions/list-challenges.d.cts.map +1 -1
- package/dist/actions/list-challenges.d.mts +29 -3
- package/dist/actions/list-challenges.d.mts.map +1 -1
- package/dist/actions/list-challenges.mjs +6 -6
- package/dist/actions/list-challenges.mjs.map +1 -1
- package/dist/actions/list-favorite-institutions.cjs +8 -8
- package/dist/actions/list-favorite-institutions.cjs.map +1 -1
- package/dist/actions/list-favorite-institutions.d.cts +35 -3
- package/dist/actions/list-favorite-institutions.d.cts.map +1 -1
- package/dist/actions/list-favorite-institutions.d.mts +35 -3
- package/dist/actions/list-favorite-institutions.d.mts.map +1 -1
- package/dist/actions/list-favorite-institutions.mjs +8 -8
- package/dist/actions/list-favorite-institutions.mjs.map +1 -1
- package/dist/actions/list-goals.cjs +6 -6
- package/dist/actions/list-goals.cjs.map +1 -1
- package/dist/actions/list-goals.d.cts +37 -3
- package/dist/actions/list-goals.d.cts.map +1 -1
- package/dist/actions/list-goals.d.mts +37 -3
- package/dist/actions/list-goals.d.mts.map +1 -1
- package/dist/actions/list-goals.mjs +6 -6
- package/dist/actions/list-goals.mjs.map +1 -1
- package/dist/actions/list-institution-credentials.cjs +3 -3
- package/dist/actions/list-institution-credentials.cjs.map +1 -1
- package/dist/actions/list-institution-credentials.d.cts +25 -3
- package/dist/actions/list-institution-credentials.d.cts.map +1 -1
- package/dist/actions/list-institution-credentials.d.mts +25 -3
- package/dist/actions/list-institution-credentials.d.mts.map +1 -1
- package/dist/actions/list-institution-credentials.mjs +3 -3
- package/dist/actions/list-institution-credentials.mjs.map +1 -1
- package/dist/actions/list-institutions.cjs +20 -20
- package/dist/actions/list-institutions.cjs.map +1 -1
- package/dist/actions/list-institutions.d.cts +45 -3
- package/dist/actions/list-institutions.d.cts.map +1 -1
- package/dist/actions/list-institutions.d.mts +45 -3
- package/dist/actions/list-institutions.d.mts.map +1 -1
- package/dist/actions/list-institutions.mjs +20 -20
- package/dist/actions/list-institutions.mjs.map +1 -1
- package/dist/actions/list-member-accounts.cjs +7 -7
- package/dist/actions/list-member-accounts.cjs.map +1 -1
- package/dist/actions/list-member-accounts.d.cts +57 -3
- package/dist/actions/list-member-accounts.d.cts.map +1 -1
- package/dist/actions/list-member-accounts.d.mts +57 -3
- package/dist/actions/list-member-accounts.d.mts.map +1 -1
- package/dist/actions/list-member-accounts.mjs +7 -7
- package/dist/actions/list-member-accounts.mjs.map +1 -1
- package/dist/actions/list-members.cjs +7 -7
- package/dist/actions/list-members.cjs.map +1 -1
- package/dist/actions/list-members.d.cts +47 -3
- package/dist/actions/list-members.d.cts.map +1 -1
- package/dist/actions/list-members.d.mts +47 -3
- package/dist/actions/list-members.d.mts.map +1 -1
- package/dist/actions/list-members.mjs +7 -7
- package/dist/actions/list-members.mjs.map +1 -1
- package/dist/actions/list-rewards.cjs +7 -7
- package/dist/actions/list-rewards.cjs.map +1 -1
- package/dist/actions/list-rewards.d.cts +32 -3
- package/dist/actions/list-rewards.d.cts.map +1 -1
- package/dist/actions/list-rewards.d.mts +32 -3
- package/dist/actions/list-rewards.d.mts.map +1 -1
- package/dist/actions/list-rewards.mjs +7 -7
- package/dist/actions/list-rewards.mjs.map +1 -1
- package/dist/actions/list-statements-by-member.cjs +7 -7
- package/dist/actions/list-statements-by-member.cjs.map +1 -1
- package/dist/actions/list-statements-by-member.d.cts +30 -3
- package/dist/actions/list-statements-by-member.d.cts.map +1 -1
- package/dist/actions/list-statements-by-member.d.mts +30 -3
- package/dist/actions/list-statements-by-member.d.mts.map +1 -1
- package/dist/actions/list-statements-by-member.mjs +7 -7
- package/dist/actions/list-statements-by-member.mjs.map +1 -1
- package/dist/actions/list-taggings.cjs +6 -6
- package/dist/actions/list-taggings.cjs.map +1 -1
- package/dist/actions/list-taggings.d.cts +25 -3
- package/dist/actions/list-taggings.d.cts.map +1 -1
- package/dist/actions/list-taggings.d.mts +25 -3
- package/dist/actions/list-taggings.d.mts.map +1 -1
- package/dist/actions/list-taggings.mjs +6 -6
- package/dist/actions/list-taggings.mjs.map +1 -1
- package/dist/actions/list-tags.cjs +4 -4
- package/dist/actions/list-tags.cjs.map +1 -1
- package/dist/actions/list-tags.d.cts +23 -3
- package/dist/actions/list-tags.d.cts.map +1 -1
- package/dist/actions/list-tags.d.mts +23 -3
- package/dist/actions/list-tags.d.mts.map +1 -1
- package/dist/actions/list-tags.mjs +4 -4
- package/dist/actions/list-tags.mjs.map +1 -1
- package/dist/actions/list-transactions-by-member.cjs +47 -47
- package/dist/actions/list-transactions-by-member.cjs.map +1 -1
- package/dist/actions/list-transactions-by-member.d.cts +108 -3
- package/dist/actions/list-transactions-by-member.d.cts.map +1 -1
- package/dist/actions/list-transactions-by-member.d.mts +108 -3
- package/dist/actions/list-transactions-by-member.d.mts.map +1 -1
- package/dist/actions/list-transactions-by-member.mjs +47 -47
- package/dist/actions/list-transactions-by-member.mjs.map +1 -1
- package/dist/actions/list-transactions.cjs +11 -11
- package/dist/actions/list-transactions.cjs.map +1 -1
- package/dist/actions/list-transactions.d.cts +107 -3
- package/dist/actions/list-transactions.d.cts.map +1 -1
- package/dist/actions/list-transactions.d.mts +107 -3
- package/dist/actions/list-transactions.d.mts.map +1 -1
- package/dist/actions/list-transactions.mjs +11 -11
- package/dist/actions/list-transactions.mjs.map +1 -1
- package/dist/actions/list-users.cjs +7 -7
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +43 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +43 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +7 -7
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/read-account.cjs +4 -4
- package/dist/actions/read-account.cjs.map +1 -1
- package/dist/actions/read-account.d.cts +52 -3
- package/dist/actions/read-account.d.cts.map +1 -1
- package/dist/actions/read-account.d.mts +52 -3
- package/dist/actions/read-account.d.mts.map +1 -1
- package/dist/actions/read-account.mjs +4 -4
- package/dist/actions/read-account.mjs.map +1 -1
- package/dist/actions/read-category.cjs +5 -5
- package/dist/actions/read-category.cjs.map +1 -1
- package/dist/actions/read-category.d.cts +16 -3
- package/dist/actions/read-category.d.cts.map +1 -1
- package/dist/actions/read-category.d.mts +16 -3
- package/dist/actions/read-category.d.mts.map +1 -1
- package/dist/actions/read-category.mjs +5 -5
- package/dist/actions/read-category.mjs.map +1 -1
- package/dist/actions/read-fdx-account.cjs.map +1 -1
- package/dist/actions/read-fdx-account.d.cts +30 -3
- package/dist/actions/read-fdx-account.d.cts.map +1 -1
- package/dist/actions/read-fdx-account.d.mts +30 -3
- package/dist/actions/read-fdx-account.d.mts.map +1 -1
- package/dist/actions/read-fdx-account.mjs.map +1 -1
- package/dist/actions/read-institution.cjs +1 -1
- package/dist/actions/read-institution.cjs.map +1 -1
- package/dist/actions/read-institution.d.cts +26 -3
- package/dist/actions/read-institution.d.cts.map +1 -1
- package/dist/actions/read-institution.d.mts +26 -3
- package/dist/actions/read-institution.d.mts.map +1 -1
- package/dist/actions/read-institution.mjs +1 -1
- package/dist/actions/read-institution.mjs.map +1 -1
- package/dist/actions/read-transaction-by-account.cjs +7 -7
- package/dist/actions/read-transaction-by-account.cjs.map +1 -1
- package/dist/actions/read-transaction-by-account.d.cts +91 -3
- package/dist/actions/read-transaction-by-account.d.cts.map +1 -1
- package/dist/actions/read-transaction-by-account.d.mts +91 -3
- package/dist/actions/read-transaction-by-account.d.mts.map +1 -1
- package/dist/actions/read-transaction-by-account.mjs +7 -7
- package/dist/actions/read-transaction-by-account.mjs.map +1 -1
- package/dist/actions/read-transaction-rule.cjs +2 -2
- package/dist/actions/read-transaction-rule.cjs.map +1 -1
- package/dist/actions/read-transaction-rule.d.cts +19 -3
- package/dist/actions/read-transaction-rule.d.cts.map +1 -1
- package/dist/actions/read-transaction-rule.d.mts +19 -3
- package/dist/actions/read-transaction-rule.d.mts.map +1 -1
- package/dist/actions/read-transaction-rule.mjs +2 -2
- package/dist/actions/read-transaction-rule.mjs.map +1 -1
- package/dist/actions/read-transaction.cjs +1 -1
- package/dist/actions/read-transaction.cjs.map +1 -1
- package/dist/actions/read-transaction.d.cts +55 -3
- package/dist/actions/read-transaction.d.cts.map +1 -1
- package/dist/actions/read-transaction.d.mts +55 -3
- package/dist/actions/read-transaction.d.mts.map +1 -1
- package/dist/actions/read-transaction.mjs +1 -1
- package/dist/actions/read-transaction.mjs.map +1 -1
- package/dist/actions/update-transaction-rules.cjs +2 -2
- package/dist/actions/update-transaction-rules.cjs.map +1 -1
- package/dist/actions/update-transaction-rules.d.cts +29 -3
- package/dist/actions/update-transaction-rules.d.cts.map +1 -1
- package/dist/actions/update-transaction-rules.d.mts +29 -3
- package/dist/actions/update-transaction-rules.d.mts.map +1 -1
- package/dist/actions/update-transaction-rules.mjs +2 -2
- package/dist/actions/update-transaction-rules.mjs.map +1 -1
- package/dist/actions/update-transaction.cjs +2 -2
- package/dist/actions/update-transaction.cjs.map +1 -1
- package/dist/actions/update-transaction.d.cts +74 -3
- package/dist/actions/update-transaction.d.cts.map +1 -1
- package/dist/actions/update-transaction.d.mts +74 -3
- package/dist/actions/update-transaction.d.mts.map +1 -1
- package/dist/actions/update-transaction.mjs +2 -2
- package/dist/actions/update-transaction.mjs.map +1 -1
- package/dist/actions/update-users-taggings.cjs +1 -1
- package/dist/actions/update-users-taggings.cjs.map +1 -1
- package/dist/actions/update-users-taggings.d.cts +23 -3
- package/dist/actions/update-users-taggings.d.cts.map +1 -1
- package/dist/actions/update-users-taggings.d.mts +23 -3
- package/dist/actions/update-users-taggings.d.mts.map +1 -1
- package/dist/actions/update-users-taggings.mjs +1 -1
- package/dist/actions/update-users-taggings.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-budgets.cjs","names":["z","action"],"sources":["../../src/actions/list-budgets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListBudgetsInput
|
|
1
|
+
{"version":3,"file":"list-budgets.cjs","names":["z","action"],"sources":["../../src/actions/list-budgets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListBudgetsInput = z.object({\n page: z.number().int().describe(\"Page number for paginated results. Defaults to 1 if not specified.\").optional(),\n user_guid: z.string().describe(\"The unique identifier (GUID) of the MX user. Obtain this from the List Users endpoint.\"),\n records_per_page: z.number().int().describe(\"Number of records per page (10-1000). Defaults to 25 if not specified.\").optional(),\n}).describe(\"Request parameters for listing budgets for a user.\");\nconst MxTechnologiesListBudgets_BudgetSchema = z.object({\n guid: z.string().describe(\"Unique MX-defined budget GUID (e.g., BGT-...).\").nullable(),\n name: z.string().describe(\"User-visible budget name matching the category (e.g., 'Food', 'Bills', 'Entertainment').\").nullable(),\n amount: z.number().describe(\"Target monthly spending limit set by the user for this category.\").nullable(),\n metadata: z.string().describe(\"Partner-defined freeform metadata string.\").nullable().optional(),\n revision: z.number().int().describe(\"Revision number for optimistic concurrency control.\").nullable(),\n user_guid: z.string().describe(\"MX-defined user GUID who owns this budget.\").nullable(),\n created_at: z.string().describe(\"Timestamp (ISO 8601) when the budget was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp (ISO 8601) when the budget was last updated.\").nullable(),\n is_exceeded: z.boolean().describe(\"True if spending has exceeded the budget amount.\").nullable(),\n parent_guid: z.string().describe(\"GUID of the parent budget if this is a sub-budget.\").nullable().optional(),\n is_off_track: z.boolean().describe(\"True if current spending rate suggests the budget will be exceeded.\").nullable(),\n category_guid: z.string().describe(\"MX-defined GUID of the category this budget applies to.\").nullable(),\n percent_spent: z.number().describe(\"Percentage of budget spent: (transaction_total / amount) * 100. Returns 0 if amount is 0.\").nullable(),\n transaction_total: z.number().describe(\"Cumulative amount of transactions under this budget for the current month.\").nullable(),\n projected_spending: z.number().describe(\"Projected total spending for this budget based on current spending patterns.\").nullable(),\n off_track_percentage: z.number().describe(\"Off-track percentage threshold (deprecated field).\").nullable().optional(),\n}).passthrough().describe(\"Budget object representing a spending budget for a specific category.\");\nconst MxTechnologiesListBudgets_PaginationSchema = z.object({\n per_page: z.number().int().describe(\"Number of records per page.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n total_entries: z.number().int().describe(\"Total number of budgets available.\").nullable(),\n}).passthrough().describe(\"Pagination details for list responses.\");\nexport const MxTechnologiesListBudgetsOutput = z.object({\n budgets: z.array(MxTechnologiesListBudgets_BudgetSchema).describe(\"List of budget objects for the user. Empty list if no budgets exist.\"),\n pagination: MxTechnologiesListBudgets_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing budgets.\");\n\nexport const mxTechnologiesListBudgets = action(\"MX_TECHNOLOGIES_LIST_BUDGETS\", {\n slug: \"mx_technologies-list-budgets\",\n name: \"List budgets\",\n description: \"List all budgets for a specific MX user. Budgets track spending limits for categories. Prerequisites: Obtain a valid user_guid from the List Users endpoint first. Note: Budgets are automatically generated based on transaction history or can be manually created. If a user has no budgets, an empty list is returned.\",\n input: MxTechnologiesListBudgetsInput,\n output: MxTechnologiesListBudgetsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACvH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC/H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,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AS,kCAAkC,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sEAAsE;CACxI,YAAY,2CAA2C,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-budgets.d.ts
|
|
4
|
-
declare const MxTechnologiesListBudgetsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MxTechnologiesListBudgetsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
user_guid: z.ZodString;
|
|
7
|
+
records_per_page: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const MxTechnologiesListBudgetsOutput: z.ZodObject<{
|
|
10
|
+
budgets: z.ZodArray<z.ZodObject<{
|
|
11
|
+
guid: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
user_guid: z.ZodNullable<z.ZodString>;
|
|
17
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
18
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
is_exceeded: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
parent_guid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
is_off_track: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
category_guid: z.ZodNullable<z.ZodString>;
|
|
23
|
+
percent_spent: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
transaction_total: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
projected_spending: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
off_track_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
29
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
total_entries: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
|
+
declare const mxTechnologiesListBudgets: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
|
+
user_guid: string;
|
|
37
|
+
page?: number | undefined;
|
|
38
|
+
records_per_page?: number | undefined;
|
|
39
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { mxTechnologiesListBudgets };
|
|
9
42
|
//# sourceMappingURL=list-budgets.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-budgets.d.cts","names":[],"sources":["../../src/actions/list-budgets.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-budgets.d.cts","names":[],"sources":["../../src/actions/list-budgets.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cA6B9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-budgets.d.ts
|
|
4
|
-
declare const MxTechnologiesListBudgetsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MxTechnologiesListBudgetsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
user_guid: z.ZodString;
|
|
7
|
+
records_per_page: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const MxTechnologiesListBudgetsOutput: z.ZodObject<{
|
|
10
|
+
budgets: z.ZodArray<z.ZodObject<{
|
|
11
|
+
guid: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
user_guid: z.ZodNullable<z.ZodString>;
|
|
17
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
18
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
is_exceeded: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
parent_guid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
is_off_track: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
category_guid: z.ZodNullable<z.ZodString>;
|
|
23
|
+
percent_spent: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
transaction_total: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
projected_spending: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
off_track_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
29
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
total_entries: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
|
+
declare const mxTechnologiesListBudgets: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
|
+
user_guid: string;
|
|
37
|
+
page?: number | undefined;
|
|
38
|
+
records_per_page?: number | undefined;
|
|
39
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
40
|
//#endregion
|
|
8
41
|
export { mxTechnologiesListBudgets };
|
|
9
42
|
//# sourceMappingURL=list-budgets.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-budgets.d.mts","names":[],"sources":["../../src/actions/list-budgets.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-budgets.d.mts","names":[],"sources":["../../src/actions/list-budgets.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cA6B9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -7,29 +7,29 @@ const MxTechnologiesListBudgetsInput = z.object({
|
|
|
7
7
|
records_per_page: z.number().int().describe("Number of records per page (10-1000). Defaults to 25 if not specified.").optional()
|
|
8
8
|
}).describe("Request parameters for listing budgets for a user.");
|
|
9
9
|
const MxTechnologiesListBudgets_BudgetSchema = z.object({
|
|
10
|
-
guid: z.string().describe("Unique MX-defined budget GUID (e.g., BGT-...)."),
|
|
11
|
-
name: z.string().describe("User-visible budget name matching the category (e.g., 'Food', 'Bills', 'Entertainment')."),
|
|
12
|
-
amount: z.number().describe("Target monthly spending limit set by the user for this category."),
|
|
10
|
+
guid: z.string().describe("Unique MX-defined budget GUID (e.g., BGT-...).").nullable(),
|
|
11
|
+
name: z.string().describe("User-visible budget name matching the category (e.g., 'Food', 'Bills', 'Entertainment').").nullable(),
|
|
12
|
+
amount: z.number().describe("Target monthly spending limit set by the user for this category.").nullable(),
|
|
13
13
|
metadata: z.string().describe("Partner-defined freeform metadata string.").nullable().optional(),
|
|
14
|
-
revision: z.number().int().describe("Revision number for optimistic concurrency control."),
|
|
15
|
-
user_guid: z.string().describe("MX-defined user GUID who owns this budget."),
|
|
16
|
-
created_at: z.string().describe("Timestamp (ISO 8601) when the budget was created."),
|
|
17
|
-
updated_at: z.string().describe("Timestamp (ISO 8601) when the budget was last updated."),
|
|
18
|
-
is_exceeded: z.boolean().describe("True if spending has exceeded the budget amount."),
|
|
14
|
+
revision: z.number().int().describe("Revision number for optimistic concurrency control.").nullable(),
|
|
15
|
+
user_guid: z.string().describe("MX-defined user GUID who owns this budget.").nullable(),
|
|
16
|
+
created_at: z.string().describe("Timestamp (ISO 8601) when the budget was created.").nullable(),
|
|
17
|
+
updated_at: z.string().describe("Timestamp (ISO 8601) when the budget was last updated.").nullable(),
|
|
18
|
+
is_exceeded: z.boolean().describe("True if spending has exceeded the budget amount.").nullable(),
|
|
19
19
|
parent_guid: z.string().describe("GUID of the parent budget if this is a sub-budget.").nullable().optional(),
|
|
20
|
-
is_off_track: z.boolean().describe("True if current spending rate suggests the budget will be exceeded."),
|
|
21
|
-
category_guid: z.string().describe("MX-defined GUID of the category this budget applies to."),
|
|
22
|
-
percent_spent: z.number().describe("Percentage of budget spent: (transaction_total / amount) * 100. Returns 0 if amount is 0."),
|
|
23
|
-
transaction_total: z.number().describe("Cumulative amount of transactions under this budget for the current month."),
|
|
24
|
-
projected_spending: z.number().describe("Projected total spending for this budget based on current spending patterns."),
|
|
20
|
+
is_off_track: z.boolean().describe("True if current spending rate suggests the budget will be exceeded.").nullable(),
|
|
21
|
+
category_guid: z.string().describe("MX-defined GUID of the category this budget applies to.").nullable(),
|
|
22
|
+
percent_spent: z.number().describe("Percentage of budget spent: (transaction_total / amount) * 100. Returns 0 if amount is 0.").nullable(),
|
|
23
|
+
transaction_total: z.number().describe("Cumulative amount of transactions under this budget for the current month.").nullable(),
|
|
24
|
+
projected_spending: z.number().describe("Projected total spending for this budget based on current spending patterns.").nullable(),
|
|
25
25
|
off_track_percentage: z.number().describe("Off-track percentage threshold (deprecated field).").nullable().optional()
|
|
26
|
-
}).describe("Budget object representing a spending budget for a specific category.");
|
|
26
|
+
}).passthrough().describe("Budget object representing a spending budget for a specific category.");
|
|
27
27
|
const MxTechnologiesListBudgets_PaginationSchema = z.object({
|
|
28
|
-
per_page: z.number().int().describe("Number of records per page."),
|
|
29
|
-
total_pages: z.number().int().describe("Total number of pages available."),
|
|
30
|
-
current_page: z.number().int().describe("Current page number."),
|
|
31
|
-
total_entries: z.number().int().describe("Total number of budgets available.")
|
|
32
|
-
}).describe("Pagination details for list responses.");
|
|
28
|
+
per_page: z.number().int().describe("Number of records per page.").nullable(),
|
|
29
|
+
total_pages: z.number().int().describe("Total number of pages available.").nullable(),
|
|
30
|
+
current_page: z.number().int().describe("Current page number.").nullable(),
|
|
31
|
+
total_entries: z.number().int().describe("Total number of budgets available.").nullable()
|
|
32
|
+
}).passthrough().describe("Pagination details for list responses.");
|
|
33
33
|
const mxTechnologiesListBudgets = action("MX_TECHNOLOGIES_LIST_BUDGETS", {
|
|
34
34
|
slug: "mx_technologies-list-budgets",
|
|
35
35
|
name: "List budgets",
|
|
@@ -38,7 +38,7 @@ const mxTechnologiesListBudgets = action("MX_TECHNOLOGIES_LIST_BUDGETS", {
|
|
|
38
38
|
output: z.object({
|
|
39
39
|
budgets: z.array(MxTechnologiesListBudgets_BudgetSchema).describe("List of budget objects for the user. Empty list if no budgets exist."),
|
|
40
40
|
pagination: MxTechnologiesListBudgets_PaginationSchema.nullable()
|
|
41
|
-
}).describe("Response schema for listing budgets.")
|
|
41
|
+
}).passthrough().describe("Response schema for listing budgets.")
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { mxTechnologiesListBudgets };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-budgets.mjs","names":[],"sources":["../../src/actions/list-budgets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListBudgetsInput
|
|
1
|
+
{"version":3,"file":"list-budgets.mjs","names":[],"sources":["../../src/actions/list-budgets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListBudgetsInput = z.object({\n page: z.number().int().describe(\"Page number for paginated results. Defaults to 1 if not specified.\").optional(),\n user_guid: z.string().describe(\"The unique identifier (GUID) of the MX user. Obtain this from the List Users endpoint.\"),\n records_per_page: z.number().int().describe(\"Number of records per page (10-1000). Defaults to 25 if not specified.\").optional(),\n}).describe(\"Request parameters for listing budgets for a user.\");\nconst MxTechnologiesListBudgets_BudgetSchema = z.object({\n guid: z.string().describe(\"Unique MX-defined budget GUID (e.g., BGT-...).\").nullable(),\n name: z.string().describe(\"User-visible budget name matching the category (e.g., 'Food', 'Bills', 'Entertainment').\").nullable(),\n amount: z.number().describe(\"Target monthly spending limit set by the user for this category.\").nullable(),\n metadata: z.string().describe(\"Partner-defined freeform metadata string.\").nullable().optional(),\n revision: z.number().int().describe(\"Revision number for optimistic concurrency control.\").nullable(),\n user_guid: z.string().describe(\"MX-defined user GUID who owns this budget.\").nullable(),\n created_at: z.string().describe(\"Timestamp (ISO 8601) when the budget was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp (ISO 8601) when the budget was last updated.\").nullable(),\n is_exceeded: z.boolean().describe(\"True if spending has exceeded the budget amount.\").nullable(),\n parent_guid: z.string().describe(\"GUID of the parent budget if this is a sub-budget.\").nullable().optional(),\n is_off_track: z.boolean().describe(\"True if current spending rate suggests the budget will be exceeded.\").nullable(),\n category_guid: z.string().describe(\"MX-defined GUID of the category this budget applies to.\").nullable(),\n percent_spent: z.number().describe(\"Percentage of budget spent: (transaction_total / amount) * 100. Returns 0 if amount is 0.\").nullable(),\n transaction_total: z.number().describe(\"Cumulative amount of transactions under this budget for the current month.\").nullable(),\n projected_spending: z.number().describe(\"Projected total spending for this budget based on current spending patterns.\").nullable(),\n off_track_percentage: z.number().describe(\"Off-track percentage threshold (deprecated field).\").nullable().optional(),\n}).passthrough().describe(\"Budget object representing a spending budget for a specific category.\");\nconst MxTechnologiesListBudgets_PaginationSchema = z.object({\n per_page: z.number().int().describe(\"Number of records per page.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n total_entries: z.number().int().describe(\"Total number of budgets available.\").nullable(),\n}).passthrough().describe(\"Pagination details for list responses.\");\nexport const MxTechnologiesListBudgetsOutput = z.object({\n budgets: z.array(MxTechnologiesListBudgets_BudgetSchema).describe(\"List of budget objects for the user. Empty list if no budgets exist.\"),\n pagination: MxTechnologiesListBudgets_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing budgets.\");\n\nexport const mxTechnologiesListBudgets = action(\"MX_TECHNOLOGIES_LIST_BUDGETS\", {\n slug: \"mx_technologies-list-budgets\",\n name: \"List budgets\",\n description: \"List all budgets for a specific MX user. Budgets track spending limits for categories. Prerequisites: Obtain a valid user_guid from the List Users endpoint first. Note: Budgets are automatically generated based on transaction history or can be manually created. If a user has no budgets, an empty list is returned.\",\n input: MxTechnologiesListBudgetsInput,\n output: MxTechnologiesListBudgetsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,M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C,CAAC,SAAS;CACzI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC9H,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACjI,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AACjG,MAAM,6CAA6C,EAAE,OAAO;CAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACpF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAMlE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,SAAS,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sEAAsE;EACxI,YAAY,2CAA2C,SAAS;CAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
|
|
@@ -7,25 +7,25 @@ const MxTechnologiesListCategoriesInput = zod.z.object({
|
|
|
7
7
|
records_per_page: zod.z.number().int().default(25).describe("Number of records per page (10-1000). Defaults to 25.").optional()
|
|
8
8
|
}).describe("Request parameters for listing categories associated with a user.");
|
|
9
9
|
const MxTechnologiesListCategories_CategorySchema = zod.z.object({
|
|
10
|
-
guid: zod.z.string().describe("The unique identifier (GUID) of the category."),
|
|
11
|
-
name: zod.z.string().describe("The name of the category."),
|
|
10
|
+
guid: zod.z.string().describe("The unique identifier (GUID) of the category.").nullable(),
|
|
11
|
+
name: zod.z.string().describe("The name of the category.").nullable(),
|
|
12
12
|
metadata: zod.z.string().describe("Client-specific meta information for the category. Null for default categories.").nullable().optional(),
|
|
13
|
-
is_income: zod.z.boolean().describe("Whether this category represents income."),
|
|
13
|
+
is_income: zod.z.boolean().describe("Whether this category represents income.").nullable(),
|
|
14
14
|
created_at: zod.z.string().describe("ISO 8601 timestamp when custom category was created (null for defaults).").nullable().optional(),
|
|
15
|
-
is_default: zod.z.boolean().describe("Whether this is a default MX category."),
|
|
15
|
+
is_default: zod.z.boolean().describe("Whether this is a default MX category.").nullable(),
|
|
16
16
|
updated_at: zod.z.string().describe("ISO 8601 timestamp when custom category was last updated (null for defaults).").nullable().optional(),
|
|
17
17
|
parent_guid: zod.z.string().describe("GUID of the parent category, if this is a sub-category.").nullable().optional()
|
|
18
|
-
}).describe("Category object as returned by MX.");
|
|
18
|
+
}).passthrough().describe("Category object as returned by MX.");
|
|
19
19
|
const MxTechnologiesListCategories_PaginationSchema = zod.z.object({
|
|
20
|
-
per_page: zod.z.number().int().describe("Number of records per page."),
|
|
21
|
-
total_pages: zod.z.number().int().describe("Total number of pages available."),
|
|
22
|
-
current_page: zod.z.number().int().describe("Current page number."),
|
|
23
|
-
total_entries: zod.z.number().int().describe("Total number of entries available.")
|
|
24
|
-
}).describe("Pagination details for list responses.");
|
|
20
|
+
per_page: zod.z.number().int().describe("Number of records per page.").nullable(),
|
|
21
|
+
total_pages: zod.z.number().int().describe("Total number of pages available.").nullable(),
|
|
22
|
+
current_page: zod.z.number().int().describe("Current page number.").nullable(),
|
|
23
|
+
total_entries: zod.z.number().int().describe("Total number of entries available.").nullable()
|
|
24
|
+
}).passthrough().describe("Pagination details for list responses.");
|
|
25
25
|
const MxTechnologiesListCategoriesOutput = zod.z.object({
|
|
26
26
|
categories: zod.z.array(MxTechnologiesListCategories_CategorySchema).describe("List of this user's default and custom categories."),
|
|
27
27
|
pagination: MxTechnologiesListCategories_PaginationSchema.nullable()
|
|
28
|
-
}).describe("Response schema for listing categories.");
|
|
28
|
+
}).passthrough().describe("Response schema for listing categories.");
|
|
29
29
|
const mxTechnologiesListCategories = require_action.action("MX_TECHNOLOGIES_LIST_CATEGORIES", {
|
|
30
30
|
slug: "mx_technologies-list-categories",
|
|
31
31
|
name: "List categories",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-categories.cjs","names":["z","action"],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListCategoriesInput
|
|
1
|
+
{"version":3,"file":"list-categories.cjs","names":["z","action"],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListCategoriesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to return. Must be >= 1.\").optional(),\n user_guid: z.string().describe(\"The unique identifier (GUID) of the MX user.\"),\n records_per_page: z.number().int().default(25).describe(\"Number of records per page (10-1000). Defaults to 25.\").optional(),\n}).describe(\"Request parameters for listing categories associated with a user.\");\nconst MxTechnologiesListCategories_CategorySchema = z.object({\n guid: z.string().describe(\"The unique identifier (GUID) of the category.\").nullable(),\n name: z.string().describe(\"The name of the category.\").nullable(),\n metadata: z.string().describe(\"Client-specific meta information for the category. Null for default categories.\").nullable().optional(),\n is_income: z.boolean().describe(\"Whether this category represents income.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when custom category was created (null for defaults).\").nullable().optional(),\n is_default: z.boolean().describe(\"Whether this is a default MX category.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when custom category was last updated (null for defaults).\").nullable().optional(),\n parent_guid: z.string().describe(\"GUID of the parent category, if this is a sub-category.\").nullable().optional(),\n}).passthrough().describe(\"Category object as returned by MX.\");\nconst MxTechnologiesListCategories_PaginationSchema = z.object({\n per_page: z.number().int().describe(\"Number of records per page.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n total_entries: z.number().int().describe(\"Total number of entries available.\").nullable(),\n}).passthrough().describe(\"Pagination details for list responses.\");\nexport const MxTechnologiesListCategoriesOutput = z.object({\n categories: z.array(MxTechnologiesListCategories_CategorySchema).describe(\"List of this user's default and custom categories.\"),\n pagination: MxTechnologiesListCategories_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing categories.\");\n\nexport const mxTechnologiesListCategories = action(\"MX_TECHNOLOGIES_LIST_CATEGORIES\", {\n slug: \"mx_technologies-list-categories\",\n name: \"List categories\",\n description: \"Tool to list all categories for a user. Use when you need to fetch both default and custom categories for a given user GUID.\",\n input: MxTechnologiesListCategoriesInput,\n output: MxTechnologiesListCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC7E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,O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yCAAyC;AAEnE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-categories.d.ts
|
|
4
|
-
declare const MxTechnologiesListCategoriesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MxTechnologiesListCategoriesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
user_guid: z.ZodString;
|
|
7
|
+
records_per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const MxTechnologiesListCategoriesOutput: z.ZodObject<{
|
|
10
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
11
|
+
guid: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
is_income: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
is_default: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
parent_guid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
total_entries: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const mxTechnologiesListCategories: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
user_guid: string;
|
|
29
|
+
page?: number | undefined;
|
|
30
|
+
records_per_page?: number | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { mxTechnologiesListCategories };
|
|
9
34
|
//# sourceMappingURL=list-categories.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-categories.d.cts","names":[],"sources":["../../src/actions/list-categories.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"list-categories.d.cts","names":[],"sources":["../../src/actions/list-categories.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-categories.d.ts
|
|
4
|
-
declare const MxTechnologiesListCategoriesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MxTechnologiesListCategoriesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
user_guid: z.ZodString;
|
|
7
|
+
records_per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const MxTechnologiesListCategoriesOutput: z.ZodObject<{
|
|
10
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
11
|
+
guid: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
is_income: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
is_default: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
parent_guid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
total_entries: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const mxTechnologiesListCategories: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
user_guid: string;
|
|
29
|
+
page?: number | undefined;
|
|
30
|
+
records_per_page?: number | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { mxTechnologiesListCategories };
|
|
9
34
|
//# sourceMappingURL=list-categories.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-categories.d.mts","names":[],"sources":["../../src/actions/list-categories.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"list-categories.d.mts","names":[],"sources":["../../src/actions/list-categories.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -7,21 +7,21 @@ const MxTechnologiesListCategoriesInput = z.object({
|
|
|
7
7
|
records_per_page: z.number().int().default(25).describe("Number of records per page (10-1000). Defaults to 25.").optional()
|
|
8
8
|
}).describe("Request parameters for listing categories associated with a user.");
|
|
9
9
|
const MxTechnologiesListCategories_CategorySchema = z.object({
|
|
10
|
-
guid: z.string().describe("The unique identifier (GUID) of the category."),
|
|
11
|
-
name: z.string().describe("The name of the category."),
|
|
10
|
+
guid: z.string().describe("The unique identifier (GUID) of the category.").nullable(),
|
|
11
|
+
name: z.string().describe("The name of the category.").nullable(),
|
|
12
12
|
metadata: z.string().describe("Client-specific meta information for the category. Null for default categories.").nullable().optional(),
|
|
13
|
-
is_income: z.boolean().describe("Whether this category represents income."),
|
|
13
|
+
is_income: z.boolean().describe("Whether this category represents income.").nullable(),
|
|
14
14
|
created_at: z.string().describe("ISO 8601 timestamp when custom category was created (null for defaults).").nullable().optional(),
|
|
15
|
-
is_default: z.boolean().describe("Whether this is a default MX category."),
|
|
15
|
+
is_default: z.boolean().describe("Whether this is a default MX category.").nullable(),
|
|
16
16
|
updated_at: z.string().describe("ISO 8601 timestamp when custom category was last updated (null for defaults).").nullable().optional(),
|
|
17
17
|
parent_guid: z.string().describe("GUID of the parent category, if this is a sub-category.").nullable().optional()
|
|
18
|
-
}).describe("Category object as returned by MX.");
|
|
18
|
+
}).passthrough().describe("Category object as returned by MX.");
|
|
19
19
|
const MxTechnologiesListCategories_PaginationSchema = z.object({
|
|
20
|
-
per_page: z.number().int().describe("Number of records per page."),
|
|
21
|
-
total_pages: z.number().int().describe("Total number of pages available."),
|
|
22
|
-
current_page: z.number().int().describe("Current page number."),
|
|
23
|
-
total_entries: z.number().int().describe("Total number of entries available.")
|
|
24
|
-
}).describe("Pagination details for list responses.");
|
|
20
|
+
per_page: z.number().int().describe("Number of records per page.").nullable(),
|
|
21
|
+
total_pages: z.number().int().describe("Total number of pages available.").nullable(),
|
|
22
|
+
current_page: z.number().int().describe("Current page number.").nullable(),
|
|
23
|
+
total_entries: z.number().int().describe("Total number of entries available.").nullable()
|
|
24
|
+
}).passthrough().describe("Pagination details for list responses.");
|
|
25
25
|
const mxTechnologiesListCategories = action("MX_TECHNOLOGIES_LIST_CATEGORIES", {
|
|
26
26
|
slug: "mx_technologies-list-categories",
|
|
27
27
|
name: "List categories",
|
|
@@ -30,7 +30,7 @@ const mxTechnologiesListCategories = action("MX_TECHNOLOGIES_LIST_CATEGORIES", {
|
|
|
30
30
|
output: z.object({
|
|
31
31
|
categories: z.array(MxTechnologiesListCategories_CategorySchema).describe("List of this user's default and custom categories."),
|
|
32
32
|
pagination: MxTechnologiesListCategories_PaginationSchema.nullable()
|
|
33
|
-
}).describe("Response schema for listing categories.")
|
|
33
|
+
}).passthrough().describe("Response schema for listing categories.")
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { mxTechnologiesListCategories };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-categories.mjs","names":[],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListCategoriesInput
|
|
1
|
+
{"version":3,"file":"list-categories.mjs","names":[],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListCategoriesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to return. Must be >= 1.\").optional(),\n user_guid: z.string().describe(\"The unique identifier (GUID) of the MX user.\"),\n records_per_page: z.number().int().default(25).describe(\"Number of records per page (10-1000). Defaults to 25.\").optional(),\n}).describe(\"Request parameters for listing categories associated with a user.\");\nconst MxTechnologiesListCategories_CategorySchema = z.object({\n guid: z.string().describe(\"The unique identifier (GUID) of the category.\").nullable(),\n name: z.string().describe(\"The name of the category.\").nullable(),\n metadata: z.string().describe(\"Client-specific meta information for the category. Null for default categories.\").nullable().optional(),\n is_income: z.boolean().describe(\"Whether this category represents income.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when custom category was created (null for defaults).\").nullable().optional(),\n is_default: z.boolean().describe(\"Whether this is a default MX category.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when custom category was last updated (null for defaults).\").nullable().optional(),\n parent_guid: z.string().describe(\"GUID of the parent category, if this is a sub-category.\").nullable().optional(),\n}).passthrough().describe(\"Category object as returned by MX.\");\nconst MxTechnologiesListCategories_PaginationSchema = z.object({\n per_page: z.number().int().describe(\"Number of records per page.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages available.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n total_entries: z.number().int().describe(\"Total number of entries available.\").nullable(),\n}).passthrough().describe(\"Pagination details for list responses.\");\nexport const MxTechnologiesListCategoriesOutput = z.object({\n categories: z.array(MxTechnologiesListCategories_CategorySchema).describe(\"List of this user's default and custom categories.\"),\n pagination: MxTechnologiesListCategories_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing categories.\");\n\nexport const mxTechnologiesListCategories = action(\"MX_TECHNOLOGIES_LIST_CATEGORIES\", {\n slug: \"mx_technologies-list-categories\",\n name: \"List categories\",\n description: \"Tool to list all categories for a user. Use when you need to fetch both default and custom categories for a given user GUID.\",\n input: MxTechnologiesListCategoriesInput,\n output: MxTechnologiesListCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC7E,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,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,CAAC,SAAS,oDAAoD;EAC9H,YAAY,8CAA8C,SAAS;CACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -8,21 +8,21 @@ const MxTechnologiesListChallengesInput = zod.z.object({
|
|
|
8
8
|
records_per_page: zod.z.number().int().default(25).describe("Number of records per page; valid range 10–1000 (default 25).").optional()
|
|
9
9
|
}).describe("Request parameters for listing MFA challenges for a specific member.");
|
|
10
10
|
const MxTechnologiesListChallenges_ChallengeSchema = zod.z.object({
|
|
11
|
-
guid: zod.z.string().describe("Globally unique identifier for the challenge."),
|
|
11
|
+
guid: zod.z.string().describe("Globally unique identifier for the challenge.").nullable(),
|
|
12
12
|
type: zod.z.enum([
|
|
13
13
|
"TEXT",
|
|
14
14
|
"OPTIONS",
|
|
15
15
|
"TOKEN",
|
|
16
16
|
"IMAGE_DATA",
|
|
17
17
|
"IMAGE_OPTIONS"
|
|
18
|
-
]).describe("Type of challenge; controls which conditional fields are present."),
|
|
19
|
-
label: zod.z.string().describe("Human-readable prompt presented to the user."),
|
|
18
|
+
]).describe("Type of challenge; controls which conditional fields are present.").nullable(),
|
|
19
|
+
label: zod.z.string().describe("Human-readable prompt presented to the user.").nullable(),
|
|
20
20
|
options: zod.z.array(zod.z.string()).describe("List of selectable responses when type is 'OPTIONS'.").nullable().optional(),
|
|
21
|
-
field_name: zod.z.string().describe("Non-unique key identifying this challenge field."),
|
|
21
|
+
field_name: zod.z.string().describe("Non-unique key identifying this challenge field.").nullable(),
|
|
22
22
|
image_data: zod.z.string().describe("Base64-encoded image when type is 'IMAGE_DATA'.").nullable().optional(),
|
|
23
23
|
image_options: zod.z.array(zod.z.string()).describe("List of encoded images when type is 'IMAGE_OPTIONS'.").nullable().optional()
|
|
24
|
-
}).describe("A single MFA challenge prompt returned by the MX Platform.\n\nConditional fields appear only for certain types:\n - options: when type == 'OPTIONS'\n - image_data: when type == 'IMAGE_DATA'\n - image_options: when type == 'IMAGE_OPTIONS'");
|
|
25
|
-
const MxTechnologiesListChallengesOutput = zod.z.object({ challenges: zod.z.array(MxTechnologiesListChallenges_ChallengeSchema).describe("List of challenge objects to present to the end user.") }).describe("Response schema for listing MFA challenges.");
|
|
24
|
+
}).passthrough().describe("A single MFA challenge prompt returned by the MX Platform.\n\nConditional fields appear only for certain types:\n - options: when type == 'OPTIONS'\n - image_data: when type == 'IMAGE_DATA'\n - image_options: when type == 'IMAGE_OPTIONS'");
|
|
25
|
+
const MxTechnologiesListChallengesOutput = zod.z.object({ challenges: zod.z.array(MxTechnologiesListChallenges_ChallengeSchema).describe("List of challenge objects to present to the end user.") }).passthrough().describe("Response schema for listing MFA challenges.");
|
|
26
26
|
const mxTechnologiesListChallenges = require_action.action("MX_TECHNOLOGIES_LIST_CHALLENGES", {
|
|
27
27
|
slug: "mx_technologies-list-challenges",
|
|
28
28
|
name: "List challenges",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-challenges.cjs","names":["z","action"],"sources":["../../src/actions/list-challenges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListChallengesInput
|
|
1
|
+
{"version":3,"file":"list-challenges.cjs","names":["z","action"],"sources":["../../src/actions/list-challenges.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesListChallengesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for paginated results, must be >= 1.\").optional(),\n user_guid: z.string().describe(\"The unique identifier (GUID) for the MX user (prefix 'USR-').\"),\n member_guid: z.string().describe(\"The unique identifier (GUID) for the member.\"),\n records_per_page: z.number().int().default(25).describe(\"Number of records per page; valid range 10–1000 (default 25).\").optional(),\n}).describe(\"Request parameters for listing MFA challenges for a specific member.\");\nconst MxTechnologiesListChallenges_ChallengeSchema = z.object({\n guid: z.string().describe(\"Globally unique identifier for the challenge.\").nullable(),\n type: z.enum([\"TEXT\", \"OPTIONS\", \"TOKEN\", \"IMAGE_DATA\", \"IMAGE_OPTIONS\"]).describe(\"Type of challenge; controls which conditional fields are present.\").nullable(),\n label: z.string().describe(\"Human-readable prompt presented to the user.\").nullable(),\n options: z.array(z.string()).describe(\"List of selectable responses when type is 'OPTIONS'.\").nullable().optional(),\n field_name: z.string().describe(\"Non-unique key identifying this challenge field.\").nullable(),\n image_data: z.string().describe(\"Base64-encoded image when type is 'IMAGE_DATA'.\").nullable().optional(),\n image_options: z.array(z.string()).describe(\"List of encoded images when type is 'IMAGE_OPTIONS'.\").nullable().optional(),\n}).passthrough().describe(\"A single MFA challenge prompt returned by the MX Platform.\\n\\nConditional fields appear only for certain types:\\n - options: when type == 'OPTIONS'\\n - image_data: when type == 'IMAGE_DATA'\\n - image_options: when type == 'IMAGE_OPTIONS'\");\nexport const MxTechnologiesListChallengesOutput = z.object({\n challenges: z.array(MxTechnologiesListChallenges_ChallengeSchema).describe(\"List of challenge objects to present to the end user.\"),\n}).passthrough().describe(\"Response schema for listing MFA challenges.\");\n\nexport const mxTechnologiesListChallenges = action(\"MX_TECHNOLOGIES_LIST_CHALLENGES\", {\n slug: \"mx_technologies-list-challenges\",\n name: \"List challenges\",\n description: \"Tool to list MFA challenges for a member. Use when the member is in CHALLENGED state to retrieve prompts to answer.\",\n input: MxTechnologiesListChallengesInput,\n output: MxTechnologiesListChallengesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC/E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAA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ts
|
|
4
|
-
declare const MxTechnologiesListChallengesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MxTechnologiesListChallengesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
user_guid: z.ZodString;
|
|
7
|
+
member_guid: z.ZodString;
|
|
8
|
+
records_per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const MxTechnologiesListChallengesOutput: z.ZodObject<{
|
|
11
|
+
challenges: z.ZodArray<z.ZodObject<{
|
|
12
|
+
guid: z.ZodNullable<z.ZodString>;
|
|
13
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
14
|
+
TEXT: "TEXT";
|
|
15
|
+
OPTIONS: "OPTIONS";
|
|
16
|
+
TOKEN: "TOKEN";
|
|
17
|
+
IMAGE_DATA: "IMAGE_DATA";
|
|
18
|
+
IMAGE_OPTIONS: "IMAGE_OPTIONS";
|
|
19
|
+
}>>;
|
|
20
|
+
label: z.ZodNullable<z.ZodString>;
|
|
21
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
22
|
+
field_name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
image_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
image_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const mxTechnologiesListChallenges: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
user_guid: string;
|
|
29
|
+
member_guid: string;
|
|
30
|
+
page?: number | undefined;
|
|
31
|
+
records_per_page?: number | undefined;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { mxTechnologiesListChallenges };
|
|
9
35
|
//# sourceMappingURL=list-challenges.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-challenges.d.cts","names":[],"sources":["../../src/actions/list-challenges.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"list-challenges.d.cts","names":[],"sources":["../../src/actions/list-challenges.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAejC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-challenges.d.ts
|
|
4
|
-
declare const MxTechnologiesListChallengesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MxTechnologiesListChallengesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
user_guid: z.ZodString;
|
|
7
|
+
member_guid: z.ZodString;
|
|
8
|
+
records_per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const MxTechnologiesListChallengesOutput: z.ZodObject<{
|
|
11
|
+
challenges: z.ZodArray<z.ZodObject<{
|
|
12
|
+
guid: z.ZodNullable<z.ZodString>;
|
|
13
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
14
|
+
TEXT: "TEXT";
|
|
15
|
+
OPTIONS: "OPTIONS";
|
|
16
|
+
TOKEN: "TOKEN";
|
|
17
|
+
IMAGE_DATA: "IMAGE_DATA";
|
|
18
|
+
IMAGE_OPTIONS: "IMAGE_OPTIONS";
|
|
19
|
+
}>>;
|
|
20
|
+
label: z.ZodNullable<z.ZodString>;
|
|
21
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
22
|
+
field_name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
image_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
image_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const mxTechnologiesListChallenges: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
user_guid: string;
|
|
29
|
+
member_guid: string;
|
|
30
|
+
page?: number | undefined;
|
|
31
|
+
records_per_page?: number | undefined;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { mxTechnologiesListChallenges };
|
|
9
35
|
//# sourceMappingURL=list-challenges.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-challenges.d.mts","names":[],"sources":["../../src/actions/list-challenges.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"list-challenges.d.mts","names":[],"sources":["../../src/actions/list-challenges.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAejC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|